@kevisual/router 0.2.10 → 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 +78 -40
- package/dist/router-browser.js +1214 -493
- package/dist/router-define.d.ts +53 -38
- package/dist/router-simple.js +1 -1
- package/dist/router.d.ts +78 -40
- package/dist/router.js +1263 -540
- package/dist/ws.d.ts +53 -38
- package/dist/ws.js +14 -14
- package/package.json +7 -6
- package/src/browser.ts +2 -0
- package/src/index.ts +2 -0
- 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.js
CHANGED
|
@@ -45,7 +45,7 @@ var __export = (target, all) => {
|
|
|
45
45
|
};
|
|
46
46
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
47
47
|
|
|
48
|
-
//
|
|
48
|
+
// node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.js
|
|
49
49
|
var require_eventemitter3 = __commonJS((exports, module) => {
|
|
50
50
|
var has = Object.prototype.hasOwnProperty;
|
|
51
51
|
var prefix = "~";
|
|
@@ -223,7 +223,7 @@ var require_eventemitter3 = __commonJS((exports, module) => {
|
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
|
|
226
|
-
//
|
|
226
|
+
// node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js
|
|
227
227
|
var require_core = __commonJS((exports, module) => {
|
|
228
228
|
(function(root, factory) {
|
|
229
229
|
if (typeof exports === "object") {
|
|
@@ -508,7 +508,7 @@ var require_core = __commonJS((exports, module) => {
|
|
|
508
508
|
});
|
|
509
509
|
});
|
|
510
510
|
|
|
511
|
-
//
|
|
511
|
+
// node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js
|
|
512
512
|
var require_md5 = __commonJS((exports, module) => {
|
|
513
513
|
(function(root, factory) {
|
|
514
514
|
if (typeof exports === "object") {
|
|
@@ -685,7 +685,7 @@ var require_md5 = __commonJS((exports, module) => {
|
|
|
685
685
|
});
|
|
686
686
|
});
|
|
687
687
|
|
|
688
|
-
// node_modules/ws/lib/constants.js
|
|
688
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/constants.js
|
|
689
689
|
var require_constants = __commonJS((exports, module) => {
|
|
690
690
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
691
691
|
var hasBlob = typeof Blob !== "undefined";
|
|
@@ -704,7 +704,7 @@ var require_constants = __commonJS((exports, module) => {
|
|
|
704
704
|
};
|
|
705
705
|
});
|
|
706
706
|
|
|
707
|
-
// node_modules/ws/lib/buffer-util.js
|
|
707
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/buffer-util.js
|
|
708
708
|
var require_buffer_util = __commonJS((exports, module) => {
|
|
709
709
|
var { EMPTY_BUFFER } = require_constants();
|
|
710
710
|
var FastBuffer = Buffer[Symbol.species];
|
|
@@ -765,7 +765,7 @@ var require_buffer_util = __commonJS((exports, module) => {
|
|
|
765
765
|
};
|
|
766
766
|
});
|
|
767
767
|
|
|
768
|
-
// node_modules/ws/lib/limiter.js
|
|
768
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/limiter.js
|
|
769
769
|
var require_limiter = __commonJS((exports, module) => {
|
|
770
770
|
var kDone = Symbol("kDone");
|
|
771
771
|
var kRun = Symbol("kRun");
|
|
@@ -797,7 +797,7 @@ var require_limiter = __commonJS((exports, module) => {
|
|
|
797
797
|
module.exports = Limiter;
|
|
798
798
|
});
|
|
799
799
|
|
|
800
|
-
// node_modules/ws/lib/permessage-deflate.js
|
|
800
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/permessage-deflate.js
|
|
801
801
|
var require_permessage_deflate = __commonJS((exports, module) => {
|
|
802
802
|
var zlib = __require("zlib");
|
|
803
803
|
var bufferUtil = require_buffer_util();
|
|
@@ -1057,7 +1057,7 @@ var require_permessage_deflate = __commonJS((exports, module) => {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
});
|
|
1059
1059
|
|
|
1060
|
-
// node_modules/ws/lib/validation.js
|
|
1060
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/validation.js
|
|
1061
1061
|
var require_validation = __commonJS((exports, module) => {
|
|
1062
1062
|
var { isUtf8 } = __require("buffer");
|
|
1063
1063
|
var { hasBlob } = require_constants();
|
|
@@ -1237,7 +1237,7 @@ var require_validation = __commonJS((exports, module) => {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
});
|
|
1239
1239
|
|
|
1240
|
-
// node_modules/ws/lib/receiver.js
|
|
1240
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/receiver.js
|
|
1241
1241
|
var require_receiver = __commonJS((exports, module) => {
|
|
1242
1242
|
var { Writable } = __require("stream");
|
|
1243
1243
|
var PerMessageDeflate = require_permessage_deflate();
|
|
@@ -1349,14 +1349,14 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
const buf = this.consume(2);
|
|
1351
1351
|
if ((buf[0] & 48) !== 0) {
|
|
1352
|
-
const
|
|
1353
|
-
cb(
|
|
1352
|
+
const error51 = this.createError(RangeError, "RSV2 and RSV3 must be clear", true, 1002, "WS_ERR_UNEXPECTED_RSV_2_3");
|
|
1353
|
+
cb(error51);
|
|
1354
1354
|
return;
|
|
1355
1355
|
}
|
|
1356
1356
|
const compressed = (buf[0] & 64) === 64;
|
|
1357
1357
|
if (compressed && !this._extensions[PerMessageDeflate.extensionName]) {
|
|
1358
|
-
const
|
|
1359
|
-
cb(
|
|
1358
|
+
const error51 = this.createError(RangeError, "RSV1 must be clear", true, 1002, "WS_ERR_UNEXPECTED_RSV_1");
|
|
1359
|
+
cb(error51);
|
|
1360
1360
|
return;
|
|
1361
1361
|
}
|
|
1362
1362
|
this._fin = (buf[0] & 128) === 128;
|
|
@@ -1364,42 +1364,42 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
1364
1364
|
this._payloadLength = buf[1] & 127;
|
|
1365
1365
|
if (this._opcode === 0) {
|
|
1366
1366
|
if (compressed) {
|
|
1367
|
-
const
|
|
1368
|
-
cb(
|
|
1367
|
+
const error51 = this.createError(RangeError, "RSV1 must be clear", true, 1002, "WS_ERR_UNEXPECTED_RSV_1");
|
|
1368
|
+
cb(error51);
|
|
1369
1369
|
return;
|
|
1370
1370
|
}
|
|
1371
1371
|
if (!this._fragmented) {
|
|
1372
|
-
const
|
|
1373
|
-
cb(
|
|
1372
|
+
const error51 = this.createError(RangeError, "invalid opcode 0", true, 1002, "WS_ERR_INVALID_OPCODE");
|
|
1373
|
+
cb(error51);
|
|
1374
1374
|
return;
|
|
1375
1375
|
}
|
|
1376
1376
|
this._opcode = this._fragmented;
|
|
1377
1377
|
} else if (this._opcode === 1 || this._opcode === 2) {
|
|
1378
1378
|
if (this._fragmented) {
|
|
1379
|
-
const
|
|
1380
|
-
cb(
|
|
1379
|
+
const error51 = this.createError(RangeError, `invalid opcode ${this._opcode}`, true, 1002, "WS_ERR_INVALID_OPCODE");
|
|
1380
|
+
cb(error51);
|
|
1381
1381
|
return;
|
|
1382
1382
|
}
|
|
1383
1383
|
this._compressed = compressed;
|
|
1384
1384
|
} else if (this._opcode > 7 && this._opcode < 11) {
|
|
1385
1385
|
if (!this._fin) {
|
|
1386
|
-
const
|
|
1387
|
-
cb(
|
|
1386
|
+
const error51 = this.createError(RangeError, "FIN must be set", true, 1002, "WS_ERR_EXPECTED_FIN");
|
|
1387
|
+
cb(error51);
|
|
1388
1388
|
return;
|
|
1389
1389
|
}
|
|
1390
1390
|
if (compressed) {
|
|
1391
|
-
const
|
|
1392
|
-
cb(
|
|
1391
|
+
const error51 = this.createError(RangeError, "RSV1 must be clear", true, 1002, "WS_ERR_UNEXPECTED_RSV_1");
|
|
1392
|
+
cb(error51);
|
|
1393
1393
|
return;
|
|
1394
1394
|
}
|
|
1395
1395
|
if (this._payloadLength > 125 || this._opcode === 8 && this._payloadLength === 1) {
|
|
1396
|
-
const
|
|
1397
|
-
cb(
|
|
1396
|
+
const error51 = this.createError(RangeError, `invalid payload length ${this._payloadLength}`, true, 1002, "WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");
|
|
1397
|
+
cb(error51);
|
|
1398
1398
|
return;
|
|
1399
1399
|
}
|
|
1400
1400
|
} else {
|
|
1401
|
-
const
|
|
1402
|
-
cb(
|
|
1401
|
+
const error51 = this.createError(RangeError, `invalid opcode ${this._opcode}`, true, 1002, "WS_ERR_INVALID_OPCODE");
|
|
1402
|
+
cb(error51);
|
|
1403
1403
|
return;
|
|
1404
1404
|
}
|
|
1405
1405
|
if (!this._fin && !this._fragmented)
|
|
@@ -1407,13 +1407,13 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
1407
1407
|
this._masked = (buf[1] & 128) === 128;
|
|
1408
1408
|
if (this._isServer) {
|
|
1409
1409
|
if (!this._masked) {
|
|
1410
|
-
const
|
|
1411
|
-
cb(
|
|
1410
|
+
const error51 = this.createError(RangeError, "MASK must be set", true, 1002, "WS_ERR_EXPECTED_MASK");
|
|
1411
|
+
cb(error51);
|
|
1412
1412
|
return;
|
|
1413
1413
|
}
|
|
1414
1414
|
} else if (this._masked) {
|
|
1415
|
-
const
|
|
1416
|
-
cb(
|
|
1415
|
+
const error51 = this.createError(RangeError, "MASK must be clear", true, 1002, "WS_ERR_UNEXPECTED_MASK");
|
|
1416
|
+
cb(error51);
|
|
1417
1417
|
return;
|
|
1418
1418
|
}
|
|
1419
1419
|
if (this._payloadLength === 126)
|
|
@@ -1439,8 +1439,8 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
1439
1439
|
const buf = this.consume(8);
|
|
1440
1440
|
const num = buf.readUInt32BE(0);
|
|
1441
1441
|
if (num > Math.pow(2, 53 - 32) - 1) {
|
|
1442
|
-
const
|
|
1443
|
-
cb(
|
|
1442
|
+
const error51 = this.createError(RangeError, "Unsupported WebSocket frame: payload length > 2^53 - 1", false, 1009, "WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");
|
|
1443
|
+
cb(error51);
|
|
1444
1444
|
return;
|
|
1445
1445
|
}
|
|
1446
1446
|
this._payloadLength = num * Math.pow(2, 32) + buf.readUInt32BE(4);
|
|
@@ -1450,8 +1450,8 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
1450
1450
|
if (this._payloadLength && this._opcode < 8) {
|
|
1451
1451
|
this._totalPayloadLength += this._payloadLength;
|
|
1452
1452
|
if (this._totalPayloadLength > this._maxPayload && this._maxPayload > 0) {
|
|
1453
|
-
const
|
|
1454
|
-
cb(
|
|
1453
|
+
const error51 = this.createError(RangeError, "Max payload size exceeded", false, 1009, "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");
|
|
1454
|
+
cb(error51);
|
|
1455
1455
|
return;
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
@@ -1503,8 +1503,8 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
1503
1503
|
if (buf.length) {
|
|
1504
1504
|
this._messageLength += buf.length;
|
|
1505
1505
|
if (this._messageLength > this._maxPayload && this._maxPayload > 0) {
|
|
1506
|
-
const
|
|
1507
|
-
cb(
|
|
1506
|
+
const error51 = this.createError(RangeError, "Max payload size exceeded", false, 1009, "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");
|
|
1507
|
+
cb(error51);
|
|
1508
1508
|
return;
|
|
1509
1509
|
}
|
|
1510
1510
|
this._fragments.push(buf);
|
|
@@ -1550,8 +1550,8 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
1550
1550
|
} else {
|
|
1551
1551
|
const buf = concat(fragments, messageLength);
|
|
1552
1552
|
if (!this._skipUTF8Validation && !isValidUTF8(buf)) {
|
|
1553
|
-
const
|
|
1554
|
-
cb(
|
|
1553
|
+
const error51 = this.createError(Error, "invalid UTF-8 sequence", true, 1007, "WS_ERR_INVALID_UTF8");
|
|
1554
|
+
cb(error51);
|
|
1555
1555
|
return;
|
|
1556
1556
|
}
|
|
1557
1557
|
if (this._state === INFLATING || this._allowSynchronousEvents) {
|
|
@@ -1576,14 +1576,14 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
1576
1576
|
} else {
|
|
1577
1577
|
const code = data.readUInt16BE(0);
|
|
1578
1578
|
if (!isValidStatusCode(code)) {
|
|
1579
|
-
const
|
|
1580
|
-
cb(
|
|
1579
|
+
const error51 = this.createError(RangeError, `invalid status code ${code}`, true, 1002, "WS_ERR_INVALID_CLOSE_CODE");
|
|
1580
|
+
cb(error51);
|
|
1581
1581
|
return;
|
|
1582
1582
|
}
|
|
1583
1583
|
const buf = new FastBuffer(data.buffer, data.byteOffset + 2, data.length - 2);
|
|
1584
1584
|
if (!this._skipUTF8Validation && !isValidUTF8(buf)) {
|
|
1585
|
-
const
|
|
1586
|
-
cb(
|
|
1585
|
+
const error51 = this.createError(Error, "invalid UTF-8 sequence", true, 1007, "WS_ERR_INVALID_UTF8");
|
|
1586
|
+
cb(error51);
|
|
1587
1587
|
return;
|
|
1588
1588
|
}
|
|
1589
1589
|
this._loop = false;
|
|
@@ -1618,7 +1618,7 @@ var require_receiver = __commonJS((exports, module) => {
|
|
|
1618
1618
|
module.exports = Receiver;
|
|
1619
1619
|
});
|
|
1620
1620
|
|
|
1621
|
-
// node_modules/ws/lib/sender.js
|
|
1621
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/sender.js
|
|
1622
1622
|
var require_sender = __commonJS((exports, module) => {
|
|
1623
1623
|
var { Duplex } = __require("stream");
|
|
1624
1624
|
var { randomFillSync } = __require("crypto");
|
|
@@ -1972,7 +1972,7 @@ var require_sender = __commonJS((exports, module) => {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
});
|
|
1974
1974
|
|
|
1975
|
-
// node_modules/ws/lib/event-target.js
|
|
1975
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/event-target.js
|
|
1976
1976
|
var require_event_target = __commonJS((exports, module) => {
|
|
1977
1977
|
var { kForOnEventAttribute, kListener } = require_constants();
|
|
1978
1978
|
var kCode = Symbol("kCode");
|
|
@@ -2073,10 +2073,10 @@ var require_event_target = __commonJS((exports, module) => {
|
|
|
2073
2073
|
callListener(handler, this, event);
|
|
2074
2074
|
};
|
|
2075
2075
|
} else if (type === "error") {
|
|
2076
|
-
wrapper = function onError(
|
|
2076
|
+
wrapper = function onError(error51) {
|
|
2077
2077
|
const event = new ErrorEvent("error", {
|
|
2078
|
-
error:
|
|
2079
|
-
message:
|
|
2078
|
+
error: error51,
|
|
2079
|
+
message: error51.message
|
|
2080
2080
|
});
|
|
2081
2081
|
event[kTarget] = this;
|
|
2082
2082
|
callListener(handler, this, event);
|
|
@@ -2123,7 +2123,7 @@ var require_event_target = __commonJS((exports, module) => {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
});
|
|
2125
2125
|
|
|
2126
|
-
// node_modules/ws/lib/extension.js
|
|
2126
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/extension.js
|
|
2127
2127
|
var require_extension = __commonJS((exports, module) => {
|
|
2128
2128
|
var { tokenChars } = require_validation();
|
|
2129
2129
|
function push(dest, name, elem) {
|
|
@@ -2288,7 +2288,7 @@ var require_extension = __commonJS((exports, module) => {
|
|
|
2288
2288
|
module.exports = { format, parse: parse5 };
|
|
2289
2289
|
});
|
|
2290
2290
|
|
|
2291
|
-
// node_modules/ws/lib/websocket.js
|
|
2291
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/websocket.js
|
|
2292
2292
|
var require_websocket = __commonJS((exports, module) => {
|
|
2293
2293
|
var EventEmitter2 = __require("events");
|
|
2294
2294
|
var https = __require("https");
|
|
@@ -3047,7 +3047,7 @@ var require_websocket = __commonJS((exports, module) => {
|
|
|
3047
3047
|
}
|
|
3048
3048
|
});
|
|
3049
3049
|
|
|
3050
|
-
// node_modules/ws/lib/stream.js
|
|
3050
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/stream.js
|
|
3051
3051
|
var require_stream = __commonJS((exports, module) => {
|
|
3052
3052
|
var WebSocket = require_websocket();
|
|
3053
3053
|
var { Duplex } = __require("stream");
|
|
@@ -3080,7 +3080,7 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
3080
3080
|
if (!duplex.push(data))
|
|
3081
3081
|
ws.pause();
|
|
3082
3082
|
});
|
|
3083
|
-
ws.once("error", function
|
|
3083
|
+
ws.once("error", function error51(err) {
|
|
3084
3084
|
if (duplex.destroyed)
|
|
3085
3085
|
return;
|
|
3086
3086
|
terminateOnDestroy = false;
|
|
@@ -3098,7 +3098,7 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
3098
3098
|
return;
|
|
3099
3099
|
}
|
|
3100
3100
|
let called = false;
|
|
3101
|
-
ws.once("error", function
|
|
3101
|
+
ws.once("error", function error51(err2) {
|
|
3102
3102
|
called = true;
|
|
3103
3103
|
callback(err2);
|
|
3104
3104
|
});
|
|
@@ -3150,7 +3150,7 @@ var require_stream = __commonJS((exports, module) => {
|
|
|
3150
3150
|
module.exports = createWebSocketStream;
|
|
3151
3151
|
});
|
|
3152
3152
|
|
|
3153
|
-
// node_modules/ws/lib/subprotocol.js
|
|
3153
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/subprotocol.js
|
|
3154
3154
|
var require_subprotocol = __commonJS((exports, module) => {
|
|
3155
3155
|
var { tokenChars } = require_validation();
|
|
3156
3156
|
function parse5(header) {
|
|
@@ -3195,7 +3195,7 @@ var require_subprotocol = __commonJS((exports, module) => {
|
|
|
3195
3195
|
module.exports = { parse: parse5 };
|
|
3196
3196
|
});
|
|
3197
3197
|
|
|
3198
|
-
// node_modules/ws/lib/websocket-server.js
|
|
3198
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/lib/websocket-server.js
|
|
3199
3199
|
var require_websocket_server = __commonJS((exports, module) => {
|
|
3200
3200
|
var EventEmitter2 = __require("events");
|
|
3201
3201
|
var http = __require("http");
|
|
@@ -3568,7 +3568,7 @@ function pick(obj, keys) {
|
|
|
3568
3568
|
return result;
|
|
3569
3569
|
}
|
|
3570
3570
|
|
|
3571
|
-
//
|
|
3571
|
+
// node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs
|
|
3572
3572
|
var import__ = __toESM(require_eventemitter3(), 1);
|
|
3573
3573
|
// node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
|
|
3574
3574
|
function isUnsafeProperty(key) {
|
|
@@ -3702,7 +3702,7 @@ var listenProcess = async ({ app, mockProcess, params = {}, timeout: timeout2 =
|
|
|
3702
3702
|
}
|
|
3703
3703
|
};
|
|
3704
3704
|
|
|
3705
|
-
//
|
|
3705
|
+
// node_modules/zod/v4/classic/external.js
|
|
3706
3706
|
var exports_external = {};
|
|
3707
3707
|
__export(exports_external, {
|
|
3708
3708
|
xor: () => xor2,
|
|
@@ -3804,6 +3804,7 @@ __export(exports_external, {
|
|
|
3804
3804
|
iso: () => exports_iso,
|
|
3805
3805
|
ipv6: () => ipv62,
|
|
3806
3806
|
ipv4: () => ipv42,
|
|
3807
|
+
invertCodec: () => invertCodec,
|
|
3807
3808
|
intersection: () => intersection2,
|
|
3808
3809
|
int64: () => int64,
|
|
3809
3810
|
int32: () => int32,
|
|
@@ -3943,7 +3944,7 @@ __export(exports_external, {
|
|
|
3943
3944
|
$brand: () => $brand
|
|
3944
3945
|
});
|
|
3945
3946
|
|
|
3946
|
-
//
|
|
3947
|
+
// node_modules/zod/v4/core/index.js
|
|
3947
3948
|
var exports_core2 = {};
|
|
3948
3949
|
__export(exports_core2, {
|
|
3949
3950
|
version: () => version,
|
|
@@ -4221,8 +4222,9 @@ __export(exports_core2, {
|
|
|
4221
4222
|
$ZodAny: () => $ZodAny
|
|
4222
4223
|
});
|
|
4223
4224
|
|
|
4224
|
-
//
|
|
4225
|
-
var
|
|
4225
|
+
// node_modules/zod/v4/core/core.js
|
|
4226
|
+
var _a;
|
|
4227
|
+
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
4226
4228
|
status: "aborted"
|
|
4227
4229
|
});
|
|
4228
4230
|
function $constructor(name, initializer, params) {
|
|
@@ -4257,10 +4259,10 @@ function $constructor(name, initializer, params) {
|
|
|
4257
4259
|
}
|
|
4258
4260
|
Object.defineProperty(Definition, "name", { value: name });
|
|
4259
4261
|
function _(def) {
|
|
4260
|
-
var
|
|
4262
|
+
var _a2;
|
|
4261
4263
|
const inst = params?.Parent ? new Definition : this;
|
|
4262
4264
|
init(inst, def);
|
|
4263
|
-
(
|
|
4265
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
4264
4266
|
for (const fn of inst._zod.deferred) {
|
|
4265
4267
|
fn();
|
|
4266
4268
|
}
|
|
@@ -4291,13 +4293,14 @@ class $ZodEncodeError extends Error {
|
|
|
4291
4293
|
this.name = "ZodEncodeError";
|
|
4292
4294
|
}
|
|
4293
4295
|
}
|
|
4294
|
-
|
|
4296
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
4297
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
4295
4298
|
function config(newConfig) {
|
|
4296
4299
|
if (newConfig)
|
|
4297
4300
|
Object.assign(globalConfig, newConfig);
|
|
4298
4301
|
return globalConfig;
|
|
4299
4302
|
}
|
|
4300
|
-
//
|
|
4303
|
+
// node_modules/zod/v4/core/util.js
|
|
4301
4304
|
var exports_util = {};
|
|
4302
4305
|
__export(exports_util, {
|
|
4303
4306
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -4339,6 +4342,7 @@ __export(exports_util, {
|
|
|
4339
4342
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
4340
4343
|
finalizeIssue: () => finalizeIssue,
|
|
4341
4344
|
extend: () => extend,
|
|
4345
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
4342
4346
|
escapeRegex: () => escapeRegex,
|
|
4343
4347
|
esc: () => esc,
|
|
4344
4348
|
defineLazy: () => defineLazy,
|
|
@@ -4409,21 +4413,14 @@ function cleanRegex(source) {
|
|
|
4409
4413
|
return source.slice(start, end);
|
|
4410
4414
|
}
|
|
4411
4415
|
function floatSafeRemainder(val, step) {
|
|
4412
|
-
const
|
|
4413
|
-
const
|
|
4414
|
-
|
|
4415
|
-
if (
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
}
|
|
4421
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
4422
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
4423
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
4424
|
-
return valInt % stepInt / 10 ** decCount;
|
|
4425
|
-
}
|
|
4426
|
-
var EVALUATING = Symbol("evaluating");
|
|
4416
|
+
const ratio = val / step;
|
|
4417
|
+
const roundedRatio = Math.round(ratio);
|
|
4418
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
4419
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
4420
|
+
return 0;
|
|
4421
|
+
return ratio - roundedRatio;
|
|
4422
|
+
}
|
|
4423
|
+
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
4427
4424
|
function defineLazy(object, key, getter) {
|
|
4428
4425
|
let value = undefined;
|
|
4429
4426
|
Object.defineProperty(object, key, {
|
|
@@ -4501,7 +4498,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
4501
4498
|
function isObject(data) {
|
|
4502
4499
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
4503
4500
|
}
|
|
4504
|
-
var allowsEval = cached(() => {
|
|
4501
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
4502
|
+
if (globalConfig.jitless) {
|
|
4503
|
+
return false;
|
|
4504
|
+
}
|
|
4505
4505
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
4506
4506
|
return false;
|
|
4507
4507
|
}
|
|
@@ -4534,6 +4534,10 @@ function shallowClone(o) {
|
|
|
4534
4534
|
return { ...o };
|
|
4535
4535
|
if (Array.isArray(o))
|
|
4536
4536
|
return [...o];
|
|
4537
|
+
if (o instanceof Map)
|
|
4538
|
+
return new Map(o);
|
|
4539
|
+
if (o instanceof Set)
|
|
4540
|
+
return new Set(o);
|
|
4537
4541
|
return o;
|
|
4538
4542
|
}
|
|
4539
4543
|
function numKeys(data) {
|
|
@@ -4589,8 +4593,15 @@ var getParsedType = (data) => {
|
|
|
4589
4593
|
throw new Error(`Unknown data type: ${t}`);
|
|
4590
4594
|
}
|
|
4591
4595
|
};
|
|
4592
|
-
var propertyKeyTypes = new Set(["string", "number", "symbol"]);
|
|
4593
|
-
var primitiveTypes = new Set([
|
|
4596
|
+
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
4597
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
4598
|
+
"string",
|
|
4599
|
+
"number",
|
|
4600
|
+
"bigint",
|
|
4601
|
+
"boolean",
|
|
4602
|
+
"symbol",
|
|
4603
|
+
"undefined"
|
|
4604
|
+
]);
|
|
4594
4605
|
function escapeRegex(str) {
|
|
4595
4606
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4596
4607
|
}
|
|
@@ -4759,6 +4770,9 @@ function safeExtend(schema, shape) {
|
|
|
4759
4770
|
return clone2(schema, def);
|
|
4760
4771
|
}
|
|
4761
4772
|
function merge2(a, b) {
|
|
4773
|
+
if (a._zod.def.checks?.length) {
|
|
4774
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
4775
|
+
}
|
|
4762
4776
|
const def = mergeDefs(a._zod.def, {
|
|
4763
4777
|
get shape() {
|
|
4764
4778
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -4768,7 +4782,7 @@ function merge2(a, b) {
|
|
|
4768
4782
|
get catchall() {
|
|
4769
4783
|
return b._zod.def.catchall;
|
|
4770
4784
|
},
|
|
4771
|
-
checks: []
|
|
4785
|
+
checks: b._zod.def.checks ?? []
|
|
4772
4786
|
});
|
|
4773
4787
|
return clone2(a, def);
|
|
4774
4788
|
}
|
|
@@ -4851,10 +4865,20 @@ function aborted(x, startIndex = 0) {
|
|
|
4851
4865
|
}
|
|
4852
4866
|
return false;
|
|
4853
4867
|
}
|
|
4868
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
4869
|
+
if (x.aborted === true)
|
|
4870
|
+
return true;
|
|
4871
|
+
for (let i = startIndex;i < x.issues.length; i++) {
|
|
4872
|
+
if (x.issues[i]?.continue === false) {
|
|
4873
|
+
return true;
|
|
4874
|
+
}
|
|
4875
|
+
}
|
|
4876
|
+
return false;
|
|
4877
|
+
}
|
|
4854
4878
|
function prefixIssues(path, issues) {
|
|
4855
4879
|
return issues.map((iss) => {
|
|
4856
|
-
var
|
|
4857
|
-
(
|
|
4880
|
+
var _a2;
|
|
4881
|
+
(_a2 = iss).path ?? (_a2.path = []);
|
|
4858
4882
|
iss.path.unshift(path);
|
|
4859
4883
|
return iss;
|
|
4860
4884
|
});
|
|
@@ -4863,17 +4887,14 @@ function unwrapMessage(message) {
|
|
|
4863
4887
|
return typeof message === "string" ? message : message?.message;
|
|
4864
4888
|
}
|
|
4865
4889
|
function finalizeIssue(iss, ctx, config2) {
|
|
4866
|
-
const
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
delete full.continue;
|
|
4873
|
-
if (!ctx?.reportInput) {
|
|
4874
|
-
delete full.input;
|
|
4890
|
+
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";
|
|
4891
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest2 } = iss;
|
|
4892
|
+
rest2.path ?? (rest2.path = []);
|
|
4893
|
+
rest2.message = message;
|
|
4894
|
+
if (ctx?.reportInput) {
|
|
4895
|
+
rest2.input = _input;
|
|
4875
4896
|
}
|
|
4876
|
-
return
|
|
4897
|
+
return rest2;
|
|
4877
4898
|
}
|
|
4878
4899
|
function getSizableOrigin(input) {
|
|
4879
4900
|
if (input instanceof Set)
|
|
@@ -4971,7 +4992,7 @@ class Class {
|
|
|
4971
4992
|
constructor(..._args) {}
|
|
4972
4993
|
}
|
|
4973
4994
|
|
|
4974
|
-
//
|
|
4995
|
+
// node_modules/zod/v4/core/errors.js
|
|
4975
4996
|
var initializer = (inst, def) => {
|
|
4976
4997
|
inst.name = "$ZodError";
|
|
4977
4998
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -5005,30 +5026,33 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
|
5005
5026
|
}
|
|
5006
5027
|
function formatError(error, mapper = (issue2) => issue2.message) {
|
|
5007
5028
|
const fieldErrors = { _errors: [] };
|
|
5008
|
-
const processError = (error2) => {
|
|
5029
|
+
const processError = (error2, path = []) => {
|
|
5009
5030
|
for (const issue2 of error2.issues) {
|
|
5010
5031
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
5011
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
5032
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
5012
5033
|
} else if (issue2.code === "invalid_key") {
|
|
5013
|
-
processError({ issues: issue2.issues });
|
|
5034
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
5014
5035
|
} else if (issue2.code === "invalid_element") {
|
|
5015
|
-
processError({ issues: issue2.issues });
|
|
5016
|
-
} else if (issue2.path.length === 0) {
|
|
5017
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
5036
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
5018
5037
|
} else {
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5038
|
+
const fullpath = [...path, ...issue2.path];
|
|
5039
|
+
if (fullpath.length === 0) {
|
|
5040
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
5041
|
+
} else {
|
|
5042
|
+
let curr = fieldErrors;
|
|
5043
|
+
let i = 0;
|
|
5044
|
+
while (i < fullpath.length) {
|
|
5045
|
+
const el = fullpath[i];
|
|
5046
|
+
const terminal = i === fullpath.length - 1;
|
|
5047
|
+
if (!terminal) {
|
|
5048
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
5049
|
+
} else {
|
|
5050
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
5051
|
+
curr[el]._errors.push(mapper(issue2));
|
|
5052
|
+
}
|
|
5053
|
+
curr = curr[el];
|
|
5054
|
+
i++;
|
|
5029
5055
|
}
|
|
5030
|
-
curr = curr[el];
|
|
5031
|
-
i++;
|
|
5032
5056
|
}
|
|
5033
5057
|
}
|
|
5034
5058
|
}
|
|
@@ -5039,14 +5063,14 @@ function formatError(error, mapper = (issue2) => issue2.message) {
|
|
|
5039
5063
|
function treeifyError(error, mapper = (issue2) => issue2.message) {
|
|
5040
5064
|
const result = { errors: [] };
|
|
5041
5065
|
const processError = (error2, path = []) => {
|
|
5042
|
-
var
|
|
5066
|
+
var _a2, _b;
|
|
5043
5067
|
for (const issue2 of error2.issues) {
|
|
5044
5068
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
5045
|
-
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
5069
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
5046
5070
|
} else if (issue2.code === "invalid_key") {
|
|
5047
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
5071
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
5048
5072
|
} else if (issue2.code === "invalid_element") {
|
|
5049
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
5073
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
5050
5074
|
} else {
|
|
5051
5075
|
const fullpath = [...path, ...issue2.path];
|
|
5052
5076
|
if (fullpath.length === 0) {
|
|
@@ -5060,7 +5084,7 @@ function treeifyError(error, mapper = (issue2) => issue2.message) {
|
|
|
5060
5084
|
const terminal = i === fullpath.length - 1;
|
|
5061
5085
|
if (typeof el === "string") {
|
|
5062
5086
|
curr.properties ?? (curr.properties = {});
|
|
5063
|
-
(
|
|
5087
|
+
(_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
|
|
5064
5088
|
curr = curr.properties[el];
|
|
5065
5089
|
} else {
|
|
5066
5090
|
curr.items ?? (curr.items = []);
|
|
@@ -5108,9 +5132,9 @@ function prettifyError(error) {
|
|
|
5108
5132
|
`);
|
|
5109
5133
|
}
|
|
5110
5134
|
|
|
5111
|
-
//
|
|
5135
|
+
// node_modules/zod/v4/core/parse.js
|
|
5112
5136
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
5113
|
-
const ctx = _ctx ?
|
|
5137
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
5114
5138
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
5115
5139
|
if (result instanceof Promise) {
|
|
5116
5140
|
throw new $ZodAsyncError;
|
|
@@ -5124,7 +5148,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
5124
5148
|
};
|
|
5125
5149
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
5126
5150
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
5127
|
-
const ctx = _ctx ?
|
|
5151
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
5128
5152
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
5129
5153
|
if (result instanceof Promise)
|
|
5130
5154
|
result = await result;
|
|
@@ -5149,7 +5173,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
5149
5173
|
};
|
|
5150
5174
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
5151
5175
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
5152
|
-
const ctx = _ctx ?
|
|
5176
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
5153
5177
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
5154
5178
|
if (result instanceof Promise)
|
|
5155
5179
|
result = await result;
|
|
@@ -5160,7 +5184,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
5160
5184
|
};
|
|
5161
5185
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
5162
5186
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
5163
|
-
const ctx = _ctx ?
|
|
5187
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
5164
5188
|
return _parse(_Err)(schema, value, ctx);
|
|
5165
5189
|
};
|
|
5166
5190
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -5169,7 +5193,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
5169
5193
|
};
|
|
5170
5194
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
5171
5195
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
5172
|
-
const ctx = _ctx ?
|
|
5196
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
5173
5197
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
5174
5198
|
};
|
|
5175
5199
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -5178,7 +5202,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
5178
5202
|
};
|
|
5179
5203
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
5180
5204
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
5181
|
-
const ctx = _ctx ?
|
|
5205
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
5182
5206
|
return _safeParse(_Err)(schema, value, ctx);
|
|
5183
5207
|
};
|
|
5184
5208
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -5187,7 +5211,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
5187
5211
|
};
|
|
5188
5212
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
5189
5213
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
5190
|
-
const ctx = _ctx ?
|
|
5214
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
5191
5215
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
5192
5216
|
};
|
|
5193
5217
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -5195,7 +5219,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
5195
5219
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
5196
5220
|
};
|
|
5197
5221
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
5198
|
-
//
|
|
5222
|
+
// node_modules/zod/v4/core/regexes.js
|
|
5199
5223
|
var exports_regexes = {};
|
|
5200
5224
|
__export(exports_regexes, {
|
|
5201
5225
|
xid: () => xid,
|
|
@@ -5235,6 +5259,7 @@ __export(exports_regexes, {
|
|
|
5235
5259
|
ipv4: () => ipv4,
|
|
5236
5260
|
integer: () => integer,
|
|
5237
5261
|
idnEmail: () => idnEmail,
|
|
5262
|
+
httpProtocol: () => httpProtocol,
|
|
5238
5263
|
html5Email: () => html5Email,
|
|
5239
5264
|
hostname: () => hostname,
|
|
5240
5265
|
hex: () => hex,
|
|
@@ -5257,7 +5282,7 @@ __export(exports_regexes, {
|
|
|
5257
5282
|
base64url: () => base64url,
|
|
5258
5283
|
base64: () => base64
|
|
5259
5284
|
});
|
|
5260
|
-
var cuid = /^[cC][
|
|
5285
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
5261
5286
|
var cuid2 = /^[0-9a-z]+$/;
|
|
5262
5287
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
5263
5288
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -5296,6 +5321,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
5296
5321
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
5297
5322
|
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])?)*\.?$/;
|
|
5298
5323
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
5324
|
+
var httpProtocol = /^https?$/;
|
|
5299
5325
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
5300
5326
|
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])))`;
|
|
5301
5327
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -5352,12 +5378,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
5352
5378
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
5353
5379
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
5354
5380
|
|
|
5355
|
-
//
|
|
5381
|
+
// node_modules/zod/v4/core/checks.js
|
|
5356
5382
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
5357
|
-
var
|
|
5383
|
+
var _a2;
|
|
5358
5384
|
inst._zod ?? (inst._zod = {});
|
|
5359
5385
|
inst._zod.def = def;
|
|
5360
|
-
(
|
|
5386
|
+
(_a2 = inst._zod).onattach ?? (_a2.onattach = []);
|
|
5361
5387
|
});
|
|
5362
5388
|
var numericOriginMap = {
|
|
5363
5389
|
number: "number",
|
|
@@ -5423,8 +5449,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
5423
5449
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
5424
5450
|
$ZodCheck.init(inst, def);
|
|
5425
5451
|
inst._zod.onattach.push((inst2) => {
|
|
5426
|
-
var
|
|
5427
|
-
(
|
|
5452
|
+
var _a2;
|
|
5453
|
+
(_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
|
|
5428
5454
|
});
|
|
5429
5455
|
inst._zod.check = (payload) => {
|
|
5430
5456
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -5557,9 +5583,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
5557
5583
|
};
|
|
5558
5584
|
});
|
|
5559
5585
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
5560
|
-
var
|
|
5586
|
+
var _a2;
|
|
5561
5587
|
$ZodCheck.init(inst, def);
|
|
5562
|
-
(
|
|
5588
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
5563
5589
|
const val = payload.value;
|
|
5564
5590
|
return !nullish(val) && val.size !== undefined;
|
|
5565
5591
|
});
|
|
@@ -5585,9 +5611,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
5585
5611
|
};
|
|
5586
5612
|
});
|
|
5587
5613
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
5588
|
-
var
|
|
5614
|
+
var _a2;
|
|
5589
5615
|
$ZodCheck.init(inst, def);
|
|
5590
|
-
(
|
|
5616
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
5591
5617
|
const val = payload.value;
|
|
5592
5618
|
return !nullish(val) && val.size !== undefined;
|
|
5593
5619
|
});
|
|
@@ -5613,9 +5639,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
5613
5639
|
};
|
|
5614
5640
|
});
|
|
5615
5641
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
5616
|
-
var
|
|
5642
|
+
var _a2;
|
|
5617
5643
|
$ZodCheck.init(inst, def);
|
|
5618
|
-
(
|
|
5644
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
5619
5645
|
const val = payload.value;
|
|
5620
5646
|
return !nullish(val) && val.size !== undefined;
|
|
5621
5647
|
});
|
|
@@ -5643,9 +5669,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
5643
5669
|
};
|
|
5644
5670
|
});
|
|
5645
5671
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
5646
|
-
var
|
|
5672
|
+
var _a2;
|
|
5647
5673
|
$ZodCheck.init(inst, def);
|
|
5648
|
-
(
|
|
5674
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
5649
5675
|
const val = payload.value;
|
|
5650
5676
|
return !nullish(val) && val.length !== undefined;
|
|
5651
5677
|
});
|
|
@@ -5672,9 +5698,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
5672
5698
|
};
|
|
5673
5699
|
});
|
|
5674
5700
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
5675
|
-
var
|
|
5701
|
+
var _a2;
|
|
5676
5702
|
$ZodCheck.init(inst, def);
|
|
5677
|
-
(
|
|
5703
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
5678
5704
|
const val = payload.value;
|
|
5679
5705
|
return !nullish(val) && val.length !== undefined;
|
|
5680
5706
|
});
|
|
@@ -5701,9 +5727,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
5701
5727
|
};
|
|
5702
5728
|
});
|
|
5703
5729
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
5704
|
-
var
|
|
5730
|
+
var _a2;
|
|
5705
5731
|
$ZodCheck.init(inst, def);
|
|
5706
|
-
(
|
|
5732
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
5707
5733
|
const val = payload.value;
|
|
5708
5734
|
return !nullish(val) && val.length !== undefined;
|
|
5709
5735
|
});
|
|
@@ -5732,7 +5758,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
5732
5758
|
};
|
|
5733
5759
|
});
|
|
5734
5760
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
5735
|
-
var
|
|
5761
|
+
var _a2, _b;
|
|
5736
5762
|
$ZodCheck.init(inst, def);
|
|
5737
5763
|
inst._zod.onattach.push((inst2) => {
|
|
5738
5764
|
const bag = inst2._zod.bag;
|
|
@@ -5743,7 +5769,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
5743
5769
|
}
|
|
5744
5770
|
});
|
|
5745
5771
|
if (def.pattern)
|
|
5746
|
-
(
|
|
5772
|
+
(_a2 = inst._zod).check ?? (_a2.check = (payload) => {
|
|
5747
5773
|
def.pattern.lastIndex = 0;
|
|
5748
5774
|
if (def.pattern.test(payload.value))
|
|
5749
5775
|
return;
|
|
@@ -5899,7 +5925,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
5899
5925
|
};
|
|
5900
5926
|
});
|
|
5901
5927
|
|
|
5902
|
-
//
|
|
5928
|
+
// node_modules/zod/v4/core/doc.js
|
|
5903
5929
|
class Doc {
|
|
5904
5930
|
constructor(args = []) {
|
|
5905
5931
|
this.content = [];
|
|
@@ -5937,16 +5963,16 @@ class Doc {
|
|
|
5937
5963
|
}
|
|
5938
5964
|
}
|
|
5939
5965
|
|
|
5940
|
-
//
|
|
5966
|
+
// node_modules/zod/v4/core/versions.js
|
|
5941
5967
|
var version = {
|
|
5942
5968
|
major: 4,
|
|
5943
|
-
minor:
|
|
5944
|
-
patch:
|
|
5969
|
+
minor: 4,
|
|
5970
|
+
patch: 1
|
|
5945
5971
|
};
|
|
5946
5972
|
|
|
5947
|
-
//
|
|
5973
|
+
// node_modules/zod/v4/core/schemas.js
|
|
5948
5974
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
5949
|
-
var
|
|
5975
|
+
var _a2;
|
|
5950
5976
|
inst ?? (inst = {});
|
|
5951
5977
|
inst._zod.def = def;
|
|
5952
5978
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -5961,7 +5987,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
5961
5987
|
}
|
|
5962
5988
|
}
|
|
5963
5989
|
if (checks.length === 0) {
|
|
5964
|
-
(
|
|
5990
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
5965
5991
|
inst._zod.deferred?.push(() => {
|
|
5966
5992
|
inst._zod.run = inst._zod.parse;
|
|
5967
5993
|
});
|
|
@@ -5971,6 +5997,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
5971
5997
|
let asyncResult;
|
|
5972
5998
|
for (const ch of checks2) {
|
|
5973
5999
|
if (ch._zod.def.when) {
|
|
6000
|
+
if (explicitlyAborted(payload))
|
|
6001
|
+
continue;
|
|
5974
6002
|
const shouldRun = ch._zod.def.when(payload);
|
|
5975
6003
|
if (!shouldRun)
|
|
5976
6004
|
continue;
|
|
@@ -6110,6 +6138,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
6110
6138
|
inst._zod.check = (payload) => {
|
|
6111
6139
|
try {
|
|
6112
6140
|
const trimmed = payload.value.trim();
|
|
6141
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
6142
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
6143
|
+
payload.issues.push({
|
|
6144
|
+
code: "invalid_format",
|
|
6145
|
+
format: "url",
|
|
6146
|
+
note: "Invalid URL format",
|
|
6147
|
+
input: payload.value,
|
|
6148
|
+
inst,
|
|
6149
|
+
continue: !def.abort
|
|
6150
|
+
});
|
|
6151
|
+
return;
|
|
6152
|
+
}
|
|
6153
|
+
}
|
|
6113
6154
|
const url = new URL(trimmed);
|
|
6114
6155
|
if (def.hostname) {
|
|
6115
6156
|
def.hostname.lastIndex = 0;
|
|
@@ -6263,6 +6304,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
6263
6304
|
function isValidBase64(data) {
|
|
6264
6305
|
if (data === "")
|
|
6265
6306
|
return true;
|
|
6307
|
+
if (/\s/.test(data))
|
|
6308
|
+
return false;
|
|
6266
6309
|
if (data.length % 4 !== 0)
|
|
6267
6310
|
return false;
|
|
6268
6311
|
try {
|
|
@@ -6452,8 +6495,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
6452
6495
|
$ZodType.init(inst, def);
|
|
6453
6496
|
inst._zod.pattern = _undefined;
|
|
6454
6497
|
inst._zod.values = new Set([undefined]);
|
|
6455
|
-
inst._zod.optin = "optional";
|
|
6456
|
-
inst._zod.optout = "optional";
|
|
6457
6498
|
inst._zod.parse = (payload, _ctx) => {
|
|
6458
6499
|
const input = payload.value;
|
|
6459
6500
|
if (typeof input === "undefined")
|
|
@@ -6581,15 +6622,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
6581
6622
|
return payload;
|
|
6582
6623
|
};
|
|
6583
6624
|
});
|
|
6584
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
6625
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
6626
|
+
const isPresent = key in input;
|
|
6585
6627
|
if (result.issues.length) {
|
|
6586
|
-
if (isOptionalOut && !
|
|
6628
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
6587
6629
|
return;
|
|
6588
6630
|
}
|
|
6589
6631
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
6590
6632
|
}
|
|
6633
|
+
if (!isPresent && !isOptionalIn) {
|
|
6634
|
+
if (!result.issues.length) {
|
|
6635
|
+
final.issues.push({
|
|
6636
|
+
code: "invalid_type",
|
|
6637
|
+
expected: "nonoptional",
|
|
6638
|
+
input: undefined,
|
|
6639
|
+
path: [key]
|
|
6640
|
+
});
|
|
6641
|
+
}
|
|
6642
|
+
return;
|
|
6643
|
+
}
|
|
6591
6644
|
if (result.value === undefined) {
|
|
6592
|
-
if (
|
|
6645
|
+
if (isPresent) {
|
|
6593
6646
|
final.value[key] = undefined;
|
|
6594
6647
|
}
|
|
6595
6648
|
} else {
|
|
@@ -6617,8 +6670,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
6617
6670
|
const keySet = def.keySet;
|
|
6618
6671
|
const _catchall = def.catchall._zod;
|
|
6619
6672
|
const t = _catchall.def.type;
|
|
6673
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
6620
6674
|
const isOptionalOut = _catchall.optout === "optional";
|
|
6621
6675
|
for (const key in input) {
|
|
6676
|
+
if (key === "__proto__")
|
|
6677
|
+
continue;
|
|
6622
6678
|
if (keySet.has(key))
|
|
6623
6679
|
continue;
|
|
6624
6680
|
if (t === "never") {
|
|
@@ -6627,9 +6683,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
6627
6683
|
}
|
|
6628
6684
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
6629
6685
|
if (r instanceof Promise) {
|
|
6630
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
6686
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
6631
6687
|
} else {
|
|
6632
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
6688
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
6633
6689
|
}
|
|
6634
6690
|
}
|
|
6635
6691
|
if (unrecognized.length) {
|
|
@@ -6695,12 +6751,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
6695
6751
|
const shape = value.shape;
|
|
6696
6752
|
for (const key of value.keys) {
|
|
6697
6753
|
const el = shape[key];
|
|
6754
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
6698
6755
|
const isOptionalOut = el._zod.optout === "optional";
|
|
6699
6756
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
6700
6757
|
if (r instanceof Promise) {
|
|
6701
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
6758
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
6702
6759
|
} else {
|
|
6703
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
6760
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
6704
6761
|
}
|
|
6705
6762
|
}
|
|
6706
6763
|
if (!catchall) {
|
|
@@ -6731,9 +6788,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
6731
6788
|
const id = ids[key];
|
|
6732
6789
|
const k = esc(key);
|
|
6733
6790
|
const schema = shape[key];
|
|
6791
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
6734
6792
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
6735
6793
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
6736
|
-
if (isOptionalOut) {
|
|
6794
|
+
if (isOptionalIn && isOptionalOut) {
|
|
6737
6795
|
doc.write(`
|
|
6738
6796
|
if (${id}.issues.length) {
|
|
6739
6797
|
if (${k} in input) {
|
|
@@ -6752,6 +6810,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
6752
6810
|
newResult[${k}] = ${id}.value;
|
|
6753
6811
|
}
|
|
6754
6812
|
|
|
6813
|
+
`);
|
|
6814
|
+
} else if (!isOptionalIn) {
|
|
6815
|
+
doc.write(`
|
|
6816
|
+
const ${id}_present = ${k} in input;
|
|
6817
|
+
if (${id}.issues.length) {
|
|
6818
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
6819
|
+
...iss,
|
|
6820
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
6821
|
+
})));
|
|
6822
|
+
}
|
|
6823
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
6824
|
+
payload.issues.push({
|
|
6825
|
+
code: "invalid_type",
|
|
6826
|
+
expected: "nonoptional",
|
|
6827
|
+
input: undefined,
|
|
6828
|
+
path: [${k}]
|
|
6829
|
+
});
|
|
6830
|
+
}
|
|
6831
|
+
|
|
6832
|
+
if (${id}_present) {
|
|
6833
|
+
if (${id}.value === undefined) {
|
|
6834
|
+
newResult[${k}] = undefined;
|
|
6835
|
+
} else {
|
|
6836
|
+
newResult[${k}] = ${id}.value;
|
|
6837
|
+
}
|
|
6838
|
+
}
|
|
6839
|
+
|
|
6755
6840
|
`);
|
|
6756
6841
|
} else {
|
|
6757
6842
|
doc.write(`
|
|
@@ -6845,10 +6930,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
6845
6930
|
}
|
|
6846
6931
|
return;
|
|
6847
6932
|
});
|
|
6848
|
-
const
|
|
6849
|
-
const first = def.options[0]._zod.run;
|
|
6933
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
6850
6934
|
inst._zod.parse = (payload, ctx) => {
|
|
6851
|
-
if (
|
|
6935
|
+
if (first) {
|
|
6852
6936
|
return first(payload, ctx);
|
|
6853
6937
|
}
|
|
6854
6938
|
let async = false;
|
|
@@ -6901,10 +6985,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
6901
6985
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
6902
6986
|
$ZodUnion.init(inst, def);
|
|
6903
6987
|
def.inclusive = false;
|
|
6904
|
-
const
|
|
6905
|
-
const first = def.options[0]._zod.run;
|
|
6988
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
6906
6989
|
inst._zod.parse = (payload, ctx) => {
|
|
6907
|
-
if (
|
|
6990
|
+
if (first) {
|
|
6908
6991
|
return first(payload, ctx);
|
|
6909
6992
|
}
|
|
6910
6993
|
let async = false;
|
|
@@ -6979,7 +7062,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
6979
7062
|
if (opt) {
|
|
6980
7063
|
return opt._zod.run(payload, ctx);
|
|
6981
7064
|
}
|
|
6982
|
-
if (def.unionFallback) {
|
|
7065
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
6983
7066
|
return _super(payload, ctx);
|
|
6984
7067
|
}
|
|
6985
7068
|
payload.issues.push({
|
|
@@ -6987,6 +7070,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
6987
7070
|
errors: [],
|
|
6988
7071
|
note: "No matching discriminator",
|
|
6989
7072
|
discriminator: def.discriminator,
|
|
7073
|
+
options: Array.from(disc.value.keys()),
|
|
6990
7074
|
input,
|
|
6991
7075
|
path: [def.discriminator],
|
|
6992
7076
|
inst
|
|
@@ -7108,64 +7192,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
7108
7192
|
}
|
|
7109
7193
|
payload.value = [];
|
|
7110
7194
|
const proms = [];
|
|
7111
|
-
const
|
|
7112
|
-
const
|
|
7195
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
7196
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
7113
7197
|
if (!def.rest) {
|
|
7114
|
-
|
|
7115
|
-
const tooSmall = input.length < optStart - 1;
|
|
7116
|
-
if (tooBig || tooSmall) {
|
|
7198
|
+
if (input.length < optinStart) {
|
|
7117
7199
|
payload.issues.push({
|
|
7118
|
-
|
|
7200
|
+
code: "too_small",
|
|
7201
|
+
minimum: optinStart,
|
|
7202
|
+
inclusive: true,
|
|
7119
7203
|
input,
|
|
7120
7204
|
inst,
|
|
7121
7205
|
origin: "array"
|
|
7122
7206
|
});
|
|
7123
7207
|
return payload;
|
|
7124
7208
|
}
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7209
|
+
if (input.length > items.length) {
|
|
7210
|
+
payload.issues.push({
|
|
7211
|
+
code: "too_big",
|
|
7212
|
+
maximum: items.length,
|
|
7213
|
+
inclusive: true,
|
|
7214
|
+
input,
|
|
7215
|
+
inst,
|
|
7216
|
+
origin: "array"
|
|
7217
|
+
});
|
|
7132
7218
|
}
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
}, ctx);
|
|
7137
|
-
if (
|
|
7138
|
-
proms.push(
|
|
7219
|
+
}
|
|
7220
|
+
const itemResults = new Array(items.length);
|
|
7221
|
+
for (let i = 0;i < items.length; i++) {
|
|
7222
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
7223
|
+
if (r instanceof Promise) {
|
|
7224
|
+
proms.push(r.then((rr) => {
|
|
7225
|
+
itemResults[i] = rr;
|
|
7226
|
+
}));
|
|
7139
7227
|
} else {
|
|
7140
|
-
|
|
7228
|
+
itemResults[i] = r;
|
|
7141
7229
|
}
|
|
7142
7230
|
}
|
|
7143
7231
|
if (def.rest) {
|
|
7232
|
+
let i = items.length - 1;
|
|
7144
7233
|
const rest2 = input.slice(items.length);
|
|
7145
7234
|
for (const el of rest2) {
|
|
7146
7235
|
i++;
|
|
7147
|
-
const result = def.rest._zod.run({
|
|
7148
|
-
value: el,
|
|
7149
|
-
issues: []
|
|
7150
|
-
}, ctx);
|
|
7236
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
7151
7237
|
if (result instanceof Promise) {
|
|
7152
|
-
proms.push(result.then((
|
|
7238
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
7153
7239
|
} else {
|
|
7154
7240
|
handleTupleResult(result, payload, i);
|
|
7155
7241
|
}
|
|
7156
7242
|
}
|
|
7157
7243
|
}
|
|
7158
|
-
if (proms.length)
|
|
7159
|
-
return Promise.all(proms).then(() => payload);
|
|
7160
|
-
|
|
7244
|
+
if (proms.length) {
|
|
7245
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
7246
|
+
}
|
|
7247
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
7161
7248
|
};
|
|
7162
7249
|
});
|
|
7250
|
+
function getTupleOptStart(items, key) {
|
|
7251
|
+
for (let i = items.length - 1;i >= 0; i--) {
|
|
7252
|
+
if (items[i]._zod[key] !== "optional")
|
|
7253
|
+
return i + 1;
|
|
7254
|
+
}
|
|
7255
|
+
return 0;
|
|
7256
|
+
}
|
|
7163
7257
|
function handleTupleResult(result, final, index) {
|
|
7164
7258
|
if (result.issues.length) {
|
|
7165
7259
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
7166
7260
|
}
|
|
7167
7261
|
final.value[index] = result.value;
|
|
7168
7262
|
}
|
|
7263
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
7264
|
+
for (let i = 0;i < items.length; i++) {
|
|
7265
|
+
const r = itemResults[i];
|
|
7266
|
+
const isPresent = i < input.length;
|
|
7267
|
+
if (r.issues.length) {
|
|
7268
|
+
if (!isPresent && i >= optoutStart) {
|
|
7269
|
+
final.value.length = i;
|
|
7270
|
+
break;
|
|
7271
|
+
}
|
|
7272
|
+
final.issues.push(...prefixIssues(i, r.issues));
|
|
7273
|
+
}
|
|
7274
|
+
final.value[i] = r.value;
|
|
7275
|
+
}
|
|
7276
|
+
for (let i = final.value.length - 1;i >= input.length; i--) {
|
|
7277
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
|
|
7278
|
+
final.value.length = i;
|
|
7279
|
+
} else {
|
|
7280
|
+
break;
|
|
7281
|
+
}
|
|
7282
|
+
}
|
|
7283
|
+
return final;
|
|
7284
|
+
}
|
|
7169
7285
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
7170
7286
|
$ZodType.init(inst, def);
|
|
7171
7287
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -7187,19 +7303,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
7187
7303
|
for (const key of values) {
|
|
7188
7304
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
7189
7305
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
7306
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
7307
|
+
if (keyResult instanceof Promise) {
|
|
7308
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
7309
|
+
}
|
|
7310
|
+
if (keyResult.issues.length) {
|
|
7311
|
+
payload.issues.push({
|
|
7312
|
+
code: "invalid_key",
|
|
7313
|
+
origin: "record",
|
|
7314
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
7315
|
+
input: key,
|
|
7316
|
+
path: [key],
|
|
7317
|
+
inst
|
|
7318
|
+
});
|
|
7319
|
+
continue;
|
|
7320
|
+
}
|
|
7321
|
+
const outKey = keyResult.value;
|
|
7190
7322
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
7191
7323
|
if (result instanceof Promise) {
|
|
7192
7324
|
proms.push(result.then((result2) => {
|
|
7193
7325
|
if (result2.issues.length) {
|
|
7194
7326
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
7195
7327
|
}
|
|
7196
|
-
payload.value[
|
|
7328
|
+
payload.value[outKey] = result2.value;
|
|
7197
7329
|
}));
|
|
7198
7330
|
} else {
|
|
7199
7331
|
if (result.issues.length) {
|
|
7200
7332
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
7201
7333
|
}
|
|
7202
|
-
payload.value[
|
|
7334
|
+
payload.value[outKey] = result.value;
|
|
7203
7335
|
}
|
|
7204
7336
|
}
|
|
7205
7337
|
}
|
|
@@ -7223,6 +7355,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
7223
7355
|
for (const key of Reflect.ownKeys(input)) {
|
|
7224
7356
|
if (key === "__proto__")
|
|
7225
7357
|
continue;
|
|
7358
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
7359
|
+
continue;
|
|
7226
7360
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
7227
7361
|
if (keyResult instanceof Promise) {
|
|
7228
7362
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -7866,7 +8000,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
7866
8000
|
});
|
|
7867
8001
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
7868
8002
|
$ZodType.init(inst, def);
|
|
7869
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
8003
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
8004
|
+
const d = def;
|
|
8005
|
+
if (!d._cachedInner)
|
|
8006
|
+
d._cachedInner = def.getter();
|
|
8007
|
+
return d._cachedInner;
|
|
8008
|
+
});
|
|
7870
8009
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
7871
8010
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
7872
8011
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
|
|
@@ -7906,7 +8045,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
7906
8045
|
payload.issues.push(issue(_iss));
|
|
7907
8046
|
}
|
|
7908
8047
|
}
|
|
7909
|
-
//
|
|
8048
|
+
// node_modules/zod/v4/locales/index.js
|
|
7910
8049
|
var exports_locales = {};
|
|
7911
8050
|
__export(exports_locales, {
|
|
7912
8051
|
zhTW: () => zh_TW_default,
|
|
@@ -7923,6 +8062,7 @@ __export(exports_locales, {
|
|
|
7923
8062
|
sv: () => sv_default,
|
|
7924
8063
|
sl: () => sl_default,
|
|
7925
8064
|
ru: () => ru_default,
|
|
8065
|
+
ro: () => ro_default,
|
|
7926
8066
|
pt: () => pt_default,
|
|
7927
8067
|
ps: () => ps_default,
|
|
7928
8068
|
pl: () => pl_default,
|
|
@@ -7942,6 +8082,7 @@ __export(exports_locales, {
|
|
|
7942
8082
|
id: () => id_default,
|
|
7943
8083
|
hy: () => hy_default,
|
|
7944
8084
|
hu: () => hu_default,
|
|
8085
|
+
hr: () => hr_default,
|
|
7945
8086
|
he: () => he_default,
|
|
7946
8087
|
frCA: () => fr_CA_default,
|
|
7947
8088
|
fr: () => fr_default,
|
|
@@ -7950,6 +8091,7 @@ __export(exports_locales, {
|
|
|
7950
8091
|
es: () => es_default,
|
|
7951
8092
|
eo: () => eo_default,
|
|
7952
8093
|
en: () => en_default,
|
|
8094
|
+
el: () => el_default,
|
|
7953
8095
|
de: () => de_default,
|
|
7954
8096
|
da: () => da_default,
|
|
7955
8097
|
cs: () => cs_default,
|
|
@@ -7960,7 +8102,7 @@ __export(exports_locales, {
|
|
|
7960
8102
|
ar: () => ar_default
|
|
7961
8103
|
});
|
|
7962
8104
|
|
|
7963
|
-
//
|
|
8105
|
+
// node_modules/zod/v4/locales/ar.js
|
|
7964
8106
|
var error = () => {
|
|
7965
8107
|
const Sizable = {
|
|
7966
8108
|
string: { unit: "حرف", verb: "أن يحوي" },
|
|
@@ -8066,7 +8208,7 @@ function ar_default() {
|
|
|
8066
8208
|
localeError: error()
|
|
8067
8209
|
};
|
|
8068
8210
|
}
|
|
8069
|
-
//
|
|
8211
|
+
// node_modules/zod/v4/locales/az.js
|
|
8070
8212
|
var error2 = () => {
|
|
8071
8213
|
const Sizable = {
|
|
8072
8214
|
string: { unit: "simvol", verb: "olmalıdır" },
|
|
@@ -8171,7 +8313,7 @@ function az_default() {
|
|
|
8171
8313
|
localeError: error2()
|
|
8172
8314
|
};
|
|
8173
8315
|
}
|
|
8174
|
-
//
|
|
8316
|
+
// node_modules/zod/v4/locales/be.js
|
|
8175
8317
|
function getBelarusianPlural(count, one, few, many) {
|
|
8176
8318
|
const absCount = Math.abs(count);
|
|
8177
8319
|
const lastDigit = absCount % 10;
|
|
@@ -8327,7 +8469,7 @@ function be_default() {
|
|
|
8327
8469
|
localeError: error3()
|
|
8328
8470
|
};
|
|
8329
8471
|
}
|
|
8330
|
-
//
|
|
8472
|
+
// node_modules/zod/v4/locales/bg.js
|
|
8331
8473
|
var error4 = () => {
|
|
8332
8474
|
const Sizable = {
|
|
8333
8475
|
string: { unit: "символа", verb: "да съдържа" },
|
|
@@ -8447,7 +8589,7 @@ function bg_default() {
|
|
|
8447
8589
|
localeError: error4()
|
|
8448
8590
|
};
|
|
8449
8591
|
}
|
|
8450
|
-
//
|
|
8592
|
+
// node_modules/zod/v4/locales/ca.js
|
|
8451
8593
|
var error5 = () => {
|
|
8452
8594
|
const Sizable = {
|
|
8453
8595
|
string: { unit: "caràcters", verb: "contenir" },
|
|
@@ -8554,7 +8696,7 @@ function ca_default() {
|
|
|
8554
8696
|
localeError: error5()
|
|
8555
8697
|
};
|
|
8556
8698
|
}
|
|
8557
|
-
//
|
|
8699
|
+
// node_modules/zod/v4/locales/cs.js
|
|
8558
8700
|
var error6 = () => {
|
|
8559
8701
|
const Sizable = {
|
|
8560
8702
|
string: { unit: "znaků", verb: "mít" },
|
|
@@ -8665,7 +8807,7 @@ function cs_default() {
|
|
|
8665
8807
|
localeError: error6()
|
|
8666
8808
|
};
|
|
8667
8809
|
}
|
|
8668
|
-
//
|
|
8810
|
+
// node_modules/zod/v4/locales/da.js
|
|
8669
8811
|
var error7 = () => {
|
|
8670
8812
|
const Sizable = {
|
|
8671
8813
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -8780,7 +8922,7 @@ function da_default() {
|
|
|
8780
8922
|
localeError: error7()
|
|
8781
8923
|
};
|
|
8782
8924
|
}
|
|
8783
|
-
//
|
|
8925
|
+
// node_modules/zod/v4/locales/de.js
|
|
8784
8926
|
var error8 = () => {
|
|
8785
8927
|
const Sizable = {
|
|
8786
8928
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -8888,8 +9030,117 @@ function de_default() {
|
|
|
8888
9030
|
localeError: error8()
|
|
8889
9031
|
};
|
|
8890
9032
|
}
|
|
8891
|
-
//
|
|
9033
|
+
// node_modules/zod/v4/locales/el.js
|
|
8892
9034
|
var error9 = () => {
|
|
9035
|
+
const Sizable = {
|
|
9036
|
+
string: { unit: "χαρακτήρες", verb: "να έχει" },
|
|
9037
|
+
file: { unit: "bytes", verb: "να έχει" },
|
|
9038
|
+
array: { unit: "στοιχεία", verb: "να έχει" },
|
|
9039
|
+
set: { unit: "στοιχεία", verb: "να έχει" },
|
|
9040
|
+
map: { unit: "καταχωρήσεις", verb: "να έχει" }
|
|
9041
|
+
};
|
|
9042
|
+
function getSizing(origin) {
|
|
9043
|
+
return Sizable[origin] ?? null;
|
|
9044
|
+
}
|
|
9045
|
+
const FormatDictionary = {
|
|
9046
|
+
regex: "είσοδος",
|
|
9047
|
+
email: "διεύθυνση email",
|
|
9048
|
+
url: "URL",
|
|
9049
|
+
emoji: "emoji",
|
|
9050
|
+
uuid: "UUID",
|
|
9051
|
+
uuidv4: "UUIDv4",
|
|
9052
|
+
uuidv6: "UUIDv6",
|
|
9053
|
+
nanoid: "nanoid",
|
|
9054
|
+
guid: "GUID",
|
|
9055
|
+
cuid: "cuid",
|
|
9056
|
+
cuid2: "cuid2",
|
|
9057
|
+
ulid: "ULID",
|
|
9058
|
+
xid: "XID",
|
|
9059
|
+
ksuid: "KSUID",
|
|
9060
|
+
datetime: "ISO ημερομηνία και ώρα",
|
|
9061
|
+
date: "ISO ημερομηνία",
|
|
9062
|
+
time: "ISO ώρα",
|
|
9063
|
+
duration: "ISO διάρκεια",
|
|
9064
|
+
ipv4: "διεύθυνση IPv4",
|
|
9065
|
+
ipv6: "διεύθυνση IPv6",
|
|
9066
|
+
mac: "διεύθυνση MAC",
|
|
9067
|
+
cidrv4: "εύρος IPv4",
|
|
9068
|
+
cidrv6: "εύρος IPv6",
|
|
9069
|
+
base64: "συμβολοσειρά κωδικοποιημένη σε base64",
|
|
9070
|
+
base64url: "συμβολοσειρά κωδικοποιημένη σε base64url",
|
|
9071
|
+
json_string: "συμβολοσειρά JSON",
|
|
9072
|
+
e164: "αριθμός E.164",
|
|
9073
|
+
jwt: "JWT",
|
|
9074
|
+
template_literal: "είσοδος"
|
|
9075
|
+
};
|
|
9076
|
+
const TypeDictionary = {
|
|
9077
|
+
nan: "NaN"
|
|
9078
|
+
};
|
|
9079
|
+
return (issue2) => {
|
|
9080
|
+
switch (issue2.code) {
|
|
9081
|
+
case "invalid_type": {
|
|
9082
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9083
|
+
const receivedType = parsedType(issue2.input);
|
|
9084
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9085
|
+
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
9086
|
+
return `Μη έγκυρη είσοδος: αναμενόταν instanceof ${issue2.expected}, λήφθηκε ${received}`;
|
|
9087
|
+
}
|
|
9088
|
+
return `Μη έγκυρη είσοδος: αναμενόταν ${expected}, λήφθηκε ${received}`;
|
|
9089
|
+
}
|
|
9090
|
+
case "invalid_value":
|
|
9091
|
+
if (issue2.values.length === 1)
|
|
9092
|
+
return `Μη έγκυρη είσοδος: αναμενόταν ${stringifyPrimitive(issue2.values[0])}`;
|
|
9093
|
+
return `Μη έγκυρη επιλογή: αναμενόταν ένα από ${joinValues(issue2.values, "|")}`;
|
|
9094
|
+
case "too_big": {
|
|
9095
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
9096
|
+
const sizing = getSizing(issue2.origin);
|
|
9097
|
+
if (sizing)
|
|
9098
|
+
return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να έχει ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "στοιχεία"}`;
|
|
9099
|
+
return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να είναι ${adj}${issue2.maximum.toString()}`;
|
|
9100
|
+
}
|
|
9101
|
+
case "too_small": {
|
|
9102
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
9103
|
+
const sizing = getSizing(issue2.origin);
|
|
9104
|
+
if (sizing) {
|
|
9105
|
+
return `Πολύ μικρό: αναμενόταν ${issue2.origin} να έχει ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
9106
|
+
}
|
|
9107
|
+
return `Πολύ μικρό: αναμενόταν ${issue2.origin} να είναι ${adj}${issue2.minimum.toString()}`;
|
|
9108
|
+
}
|
|
9109
|
+
case "invalid_format": {
|
|
9110
|
+
const _issue = issue2;
|
|
9111
|
+
if (_issue.format === "starts_with") {
|
|
9112
|
+
return `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${_issue.prefix}"`;
|
|
9113
|
+
}
|
|
9114
|
+
if (_issue.format === "ends_with")
|
|
9115
|
+
return `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${_issue.suffix}"`;
|
|
9116
|
+
if (_issue.format === "includes")
|
|
9117
|
+
return `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${_issue.includes}"`;
|
|
9118
|
+
if (_issue.format === "regex")
|
|
9119
|
+
return `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${_issue.pattern}`;
|
|
9120
|
+
return `Μη έγκυρο: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
9121
|
+
}
|
|
9122
|
+
case "not_multiple_of":
|
|
9123
|
+
return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${issue2.divisor}`;
|
|
9124
|
+
case "unrecognized_keys":
|
|
9125
|
+
return `Άγνωστ${issue2.keys.length > 1 ? "α" : "ο"} κλειδ${issue2.keys.length > 1 ? "ιά" : "ί"}: ${joinValues(issue2.keys, ", ")}`;
|
|
9126
|
+
case "invalid_key":
|
|
9127
|
+
return `Μη έγκυρο κλειδί στο ${issue2.origin}`;
|
|
9128
|
+
case "invalid_union":
|
|
9129
|
+
return "Μη έγκυρη είσοδος";
|
|
9130
|
+
case "invalid_element":
|
|
9131
|
+
return `Μη έγκυρη τιμή στο ${issue2.origin}`;
|
|
9132
|
+
default:
|
|
9133
|
+
return `Μη έγκυρη είσοδος`;
|
|
9134
|
+
}
|
|
9135
|
+
};
|
|
9136
|
+
};
|
|
9137
|
+
function el_default() {
|
|
9138
|
+
return {
|
|
9139
|
+
localeError: error9()
|
|
9140
|
+
};
|
|
9141
|
+
}
|
|
9142
|
+
// node_modules/zod/v4/locales/en.js
|
|
9143
|
+
var error10 = () => {
|
|
8893
9144
|
const Sizable = {
|
|
8894
9145
|
string: { unit: "characters", verb: "to have" },
|
|
8895
9146
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -8981,6 +9232,10 @@ var error9 = () => {
|
|
|
8981
9232
|
case "invalid_key":
|
|
8982
9233
|
return `Invalid key in ${issue2.origin}`;
|
|
8983
9234
|
case "invalid_union":
|
|
9235
|
+
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
9236
|
+
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
9237
|
+
return `Invalid discriminator value. Expected ${opts}`;
|
|
9238
|
+
}
|
|
8984
9239
|
return "Invalid input";
|
|
8985
9240
|
case "invalid_element":
|
|
8986
9241
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -8991,11 +9246,11 @@ var error9 = () => {
|
|
|
8991
9246
|
};
|
|
8992
9247
|
function en_default() {
|
|
8993
9248
|
return {
|
|
8994
|
-
localeError:
|
|
9249
|
+
localeError: error10()
|
|
8995
9250
|
};
|
|
8996
9251
|
}
|
|
8997
|
-
//
|
|
8998
|
-
var
|
|
9252
|
+
// node_modules/zod/v4/locales/eo.js
|
|
9253
|
+
var error11 = () => {
|
|
8999
9254
|
const Sizable = {
|
|
9000
9255
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
9001
9256
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -9100,11 +9355,11 @@ var error10 = () => {
|
|
|
9100
9355
|
};
|
|
9101
9356
|
function eo_default() {
|
|
9102
9357
|
return {
|
|
9103
|
-
localeError:
|
|
9358
|
+
localeError: error11()
|
|
9104
9359
|
};
|
|
9105
9360
|
}
|
|
9106
|
-
//
|
|
9107
|
-
var
|
|
9361
|
+
// node_modules/zod/v4/locales/es.js
|
|
9362
|
+
var error12 = () => {
|
|
9108
9363
|
const Sizable = {
|
|
9109
9364
|
string: { unit: "caracteres", verb: "tener" },
|
|
9110
9365
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -9232,11 +9487,11 @@ var error11 = () => {
|
|
|
9232
9487
|
};
|
|
9233
9488
|
function es_default() {
|
|
9234
9489
|
return {
|
|
9235
|
-
localeError:
|
|
9490
|
+
localeError: error12()
|
|
9236
9491
|
};
|
|
9237
9492
|
}
|
|
9238
|
-
//
|
|
9239
|
-
var
|
|
9493
|
+
// node_modules/zod/v4/locales/fa.js
|
|
9494
|
+
var error13 = () => {
|
|
9240
9495
|
const Sizable = {
|
|
9241
9496
|
string: { unit: "کاراکتر", verb: "داشته باشد" },
|
|
9242
9497
|
file: { unit: "بایت", verb: "داشته باشد" },
|
|
@@ -9346,11 +9601,11 @@ var error12 = () => {
|
|
|
9346
9601
|
};
|
|
9347
9602
|
function fa_default() {
|
|
9348
9603
|
return {
|
|
9349
|
-
localeError:
|
|
9604
|
+
localeError: error13()
|
|
9350
9605
|
};
|
|
9351
9606
|
}
|
|
9352
|
-
//
|
|
9353
|
-
var
|
|
9607
|
+
// node_modules/zod/v4/locales/fi.js
|
|
9608
|
+
var error14 = () => {
|
|
9354
9609
|
const Sizable = {
|
|
9355
9610
|
string: { unit: "merkkiä", subject: "merkkijonon" },
|
|
9356
9611
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -9458,11 +9713,11 @@ var error13 = () => {
|
|
|
9458
9713
|
};
|
|
9459
9714
|
function fi_default() {
|
|
9460
9715
|
return {
|
|
9461
|
-
localeError:
|
|
9716
|
+
localeError: error14()
|
|
9462
9717
|
};
|
|
9463
9718
|
}
|
|
9464
|
-
//
|
|
9465
|
-
var
|
|
9719
|
+
// node_modules/zod/v4/locales/fr.js
|
|
9720
|
+
var error15 = () => {
|
|
9466
9721
|
const Sizable = {
|
|
9467
9722
|
string: { unit: "caractères", verb: "avoir" },
|
|
9468
9723
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -9503,9 +9758,27 @@ var error14 = () => {
|
|
|
9503
9758
|
template_literal: "entrée"
|
|
9504
9759
|
};
|
|
9505
9760
|
const TypeDictionary = {
|
|
9506
|
-
|
|
9761
|
+
string: "chaîne",
|
|
9507
9762
|
number: "nombre",
|
|
9508
|
-
|
|
9763
|
+
int: "entier",
|
|
9764
|
+
boolean: "booléen",
|
|
9765
|
+
bigint: "grand entier",
|
|
9766
|
+
symbol: "symbole",
|
|
9767
|
+
undefined: "indéfini",
|
|
9768
|
+
null: "null",
|
|
9769
|
+
never: "jamais",
|
|
9770
|
+
void: "vide",
|
|
9771
|
+
date: "date",
|
|
9772
|
+
array: "tableau",
|
|
9773
|
+
object: "objet",
|
|
9774
|
+
tuple: "tuple",
|
|
9775
|
+
record: "enregistrement",
|
|
9776
|
+
map: "carte",
|
|
9777
|
+
set: "ensemble",
|
|
9778
|
+
file: "fichier",
|
|
9779
|
+
nonoptional: "non-optionnel",
|
|
9780
|
+
nan: "NaN",
|
|
9781
|
+
function: "fonction"
|
|
9509
9782
|
};
|
|
9510
9783
|
return (issue2) => {
|
|
9511
9784
|
switch (issue2.code) {
|
|
@@ -9526,16 +9799,15 @@ var error14 = () => {
|
|
|
9526
9799
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
9527
9800
|
const sizing = getSizing(issue2.origin);
|
|
9528
9801
|
if (sizing)
|
|
9529
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
|
|
9530
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
|
|
9802
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
|
|
9803
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
|
|
9531
9804
|
}
|
|
9532
9805
|
case "too_small": {
|
|
9533
9806
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
9534
9807
|
const sizing = getSizing(issue2.origin);
|
|
9535
|
-
if (sizing)
|
|
9536
|
-
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
9537
|
-
}
|
|
9538
|
-
return `Trop petit : ${issue2.origin} doit être ${adj}${issue2.minimum.toString()}`;
|
|
9808
|
+
if (sizing)
|
|
9809
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
9810
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.minimum.toString()}`;
|
|
9539
9811
|
}
|
|
9540
9812
|
case "invalid_format": {
|
|
9541
9813
|
const _issue = issue2;
|
|
@@ -9566,11 +9838,11 @@ var error14 = () => {
|
|
|
9566
9838
|
};
|
|
9567
9839
|
function fr_default() {
|
|
9568
9840
|
return {
|
|
9569
|
-
localeError:
|
|
9841
|
+
localeError: error15()
|
|
9570
9842
|
};
|
|
9571
9843
|
}
|
|
9572
|
-
//
|
|
9573
|
-
var
|
|
9844
|
+
// node_modules/zod/v4/locales/fr-CA.js
|
|
9845
|
+
var error16 = () => {
|
|
9574
9846
|
const Sizable = {
|
|
9575
9847
|
string: { unit: "caractères", verb: "avoir" },
|
|
9576
9848
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -9673,11 +9945,11 @@ var error15 = () => {
|
|
|
9673
9945
|
};
|
|
9674
9946
|
function fr_CA_default() {
|
|
9675
9947
|
return {
|
|
9676
|
-
localeError:
|
|
9948
|
+
localeError: error16()
|
|
9677
9949
|
};
|
|
9678
9950
|
}
|
|
9679
|
-
//
|
|
9680
|
-
var
|
|
9951
|
+
// node_modules/zod/v4/locales/he.js
|
|
9952
|
+
var error17 = () => {
|
|
9681
9953
|
const TypeNames = {
|
|
9682
9954
|
string: { label: "מחרוזת", gender: "f" },
|
|
9683
9955
|
number: { label: "מספר", gender: "m" },
|
|
@@ -9866,23 +10138,23 @@ var error16 = () => {
|
|
|
9866
10138
|
};
|
|
9867
10139
|
function he_default() {
|
|
9868
10140
|
return {
|
|
9869
|
-
localeError:
|
|
10141
|
+
localeError: error17()
|
|
9870
10142
|
};
|
|
9871
10143
|
}
|
|
9872
|
-
//
|
|
9873
|
-
var
|
|
10144
|
+
// node_modules/zod/v4/locales/hr.js
|
|
10145
|
+
var error18 = () => {
|
|
9874
10146
|
const Sizable = {
|
|
9875
|
-
string: { unit: "
|
|
9876
|
-
file: { unit: "
|
|
9877
|
-
array: { unit: "
|
|
9878
|
-
set: { unit: "
|
|
10147
|
+
string: { unit: "znakova", verb: "imati" },
|
|
10148
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
10149
|
+
array: { unit: "stavki", verb: "imati" },
|
|
10150
|
+
set: { unit: "stavki", verb: "imati" }
|
|
9879
10151
|
};
|
|
9880
10152
|
function getSizing(origin) {
|
|
9881
10153
|
return Sizable[origin] ?? null;
|
|
9882
10154
|
}
|
|
9883
10155
|
const FormatDictionary = {
|
|
9884
|
-
regex: "
|
|
9885
|
-
email: "email
|
|
10156
|
+
regex: "unos",
|
|
10157
|
+
email: "email adresa",
|
|
9886
10158
|
url: "URL",
|
|
9887
10159
|
emoji: "emoji",
|
|
9888
10160
|
uuid: "UUID",
|
|
@@ -9895,25 +10167,37 @@ var error17 = () => {
|
|
|
9895
10167
|
ulid: "ULID",
|
|
9896
10168
|
xid: "XID",
|
|
9897
10169
|
ksuid: "KSUID",
|
|
9898
|
-
datetime: "ISO
|
|
9899
|
-
date: "ISO
|
|
9900
|
-
time: "ISO
|
|
9901
|
-
duration: "ISO
|
|
9902
|
-
ipv4: "IPv4
|
|
9903
|
-
ipv6: "IPv6
|
|
9904
|
-
cidrv4: "IPv4
|
|
9905
|
-
cidrv6: "IPv6
|
|
9906
|
-
base64: "base64
|
|
9907
|
-
base64url: "base64url
|
|
9908
|
-
json_string: "JSON
|
|
9909
|
-
e164: "E.164
|
|
10170
|
+
datetime: "ISO datum i vrijeme",
|
|
10171
|
+
date: "ISO datum",
|
|
10172
|
+
time: "ISO vrijeme",
|
|
10173
|
+
duration: "ISO trajanje",
|
|
10174
|
+
ipv4: "IPv4 adresa",
|
|
10175
|
+
ipv6: "IPv6 adresa",
|
|
10176
|
+
cidrv4: "IPv4 raspon",
|
|
10177
|
+
cidrv6: "IPv6 raspon",
|
|
10178
|
+
base64: "base64 kodirani tekst",
|
|
10179
|
+
base64url: "base64url kodirani tekst",
|
|
10180
|
+
json_string: "JSON tekst",
|
|
10181
|
+
e164: "E.164 broj",
|
|
9910
10182
|
jwt: "JWT",
|
|
9911
|
-
template_literal: "
|
|
10183
|
+
template_literal: "unos"
|
|
9912
10184
|
};
|
|
9913
10185
|
const TypeDictionary = {
|
|
9914
10186
|
nan: "NaN",
|
|
9915
|
-
|
|
9916
|
-
|
|
10187
|
+
string: "tekst",
|
|
10188
|
+
number: "broj",
|
|
10189
|
+
boolean: "boolean",
|
|
10190
|
+
array: "niz",
|
|
10191
|
+
object: "objekt",
|
|
10192
|
+
set: "skup",
|
|
10193
|
+
file: "datoteka",
|
|
10194
|
+
date: "datum",
|
|
10195
|
+
bigint: "bigint",
|
|
10196
|
+
symbol: "simbol",
|
|
10197
|
+
undefined: "undefined",
|
|
10198
|
+
null: "null",
|
|
10199
|
+
function: "funkcija",
|
|
10200
|
+
map: "mapa"
|
|
9917
10201
|
};
|
|
9918
10202
|
return (issue2) => {
|
|
9919
10203
|
switch (issue2.code) {
|
|
@@ -9922,19 +10206,129 @@ var error17 = () => {
|
|
|
9922
10206
|
const receivedType = parsedType(issue2.input);
|
|
9923
10207
|
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9924
10208
|
if (/^[A-Z]/.test(issue2.expected)) {
|
|
9925
|
-
return
|
|
10209
|
+
return `Neispravan unos: očekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
9926
10210
|
}
|
|
9927
|
-
return
|
|
10211
|
+
return `Neispravan unos: očekuje se ${expected}, a primljeno je ${received}`;
|
|
9928
10212
|
}
|
|
9929
10213
|
case "invalid_value":
|
|
9930
10214
|
if (issue2.values.length === 1)
|
|
9931
|
-
return
|
|
9932
|
-
return
|
|
10215
|
+
return `Neispravna vrijednost: očekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
10216
|
+
return `Neispravna opcija: očekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
9933
10217
|
case "too_big": {
|
|
9934
10218
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
9935
10219
|
const sizing = getSizing(issue2.origin);
|
|
10220
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
9936
10221
|
if (sizing)
|
|
9937
|
-
return `
|
|
10222
|
+
return `Preveliko: očekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
10223
|
+
return `Preveliko: očekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
10224
|
+
}
|
|
10225
|
+
case "too_small": {
|
|
10226
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
10227
|
+
const sizing = getSizing(issue2.origin);
|
|
10228
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
10229
|
+
if (sizing) {
|
|
10230
|
+
return `Premalo: očekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
10231
|
+
}
|
|
10232
|
+
return `Premalo: očekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
10233
|
+
}
|
|
10234
|
+
case "invalid_format": {
|
|
10235
|
+
const _issue = issue2;
|
|
10236
|
+
if (_issue.format === "starts_with")
|
|
10237
|
+
return `Neispravan tekst: mora započinjati s "${_issue.prefix}"`;
|
|
10238
|
+
if (_issue.format === "ends_with")
|
|
10239
|
+
return `Neispravan tekst: mora završavati s "${_issue.suffix}"`;
|
|
10240
|
+
if (_issue.format === "includes")
|
|
10241
|
+
return `Neispravan tekst: mora sadržavati "${_issue.includes}"`;
|
|
10242
|
+
if (_issue.format === "regex")
|
|
10243
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
10244
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
10245
|
+
}
|
|
10246
|
+
case "not_multiple_of":
|
|
10247
|
+
return `Neispravan broj: mora biti višekratnik od ${issue2.divisor}`;
|
|
10248
|
+
case "unrecognized_keys":
|
|
10249
|
+
return `Neprepoznat${issue2.keys.length > 1 ? "i ključevi" : " ključ"}: ${joinValues(issue2.keys, ", ")}`;
|
|
10250
|
+
case "invalid_key":
|
|
10251
|
+
return `Neispravan ključ u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
10252
|
+
case "invalid_union":
|
|
10253
|
+
return "Neispravan unos";
|
|
10254
|
+
case "invalid_element":
|
|
10255
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
10256
|
+
default:
|
|
10257
|
+
return `Neispravan unos`;
|
|
10258
|
+
}
|
|
10259
|
+
};
|
|
10260
|
+
};
|
|
10261
|
+
function hr_default() {
|
|
10262
|
+
return {
|
|
10263
|
+
localeError: error18()
|
|
10264
|
+
};
|
|
10265
|
+
}
|
|
10266
|
+
// node_modules/zod/v4/locales/hu.js
|
|
10267
|
+
var error19 = () => {
|
|
10268
|
+
const Sizable = {
|
|
10269
|
+
string: { unit: "karakter", verb: "legyen" },
|
|
10270
|
+
file: { unit: "byte", verb: "legyen" },
|
|
10271
|
+
array: { unit: "elem", verb: "legyen" },
|
|
10272
|
+
set: { unit: "elem", verb: "legyen" }
|
|
10273
|
+
};
|
|
10274
|
+
function getSizing(origin) {
|
|
10275
|
+
return Sizable[origin] ?? null;
|
|
10276
|
+
}
|
|
10277
|
+
const FormatDictionary = {
|
|
10278
|
+
regex: "bemenet",
|
|
10279
|
+
email: "email cím",
|
|
10280
|
+
url: "URL",
|
|
10281
|
+
emoji: "emoji",
|
|
10282
|
+
uuid: "UUID",
|
|
10283
|
+
uuidv4: "UUIDv4",
|
|
10284
|
+
uuidv6: "UUIDv6",
|
|
10285
|
+
nanoid: "nanoid",
|
|
10286
|
+
guid: "GUID",
|
|
10287
|
+
cuid: "cuid",
|
|
10288
|
+
cuid2: "cuid2",
|
|
10289
|
+
ulid: "ULID",
|
|
10290
|
+
xid: "XID",
|
|
10291
|
+
ksuid: "KSUID",
|
|
10292
|
+
datetime: "ISO időbélyeg",
|
|
10293
|
+
date: "ISO dátum",
|
|
10294
|
+
time: "ISO idő",
|
|
10295
|
+
duration: "ISO időintervallum",
|
|
10296
|
+
ipv4: "IPv4 cím",
|
|
10297
|
+
ipv6: "IPv6 cím",
|
|
10298
|
+
cidrv4: "IPv4 tartomány",
|
|
10299
|
+
cidrv6: "IPv6 tartomány",
|
|
10300
|
+
base64: "base64-kódolt string",
|
|
10301
|
+
base64url: "base64url-kódolt string",
|
|
10302
|
+
json_string: "JSON string",
|
|
10303
|
+
e164: "E.164 szám",
|
|
10304
|
+
jwt: "JWT",
|
|
10305
|
+
template_literal: "bemenet"
|
|
10306
|
+
};
|
|
10307
|
+
const TypeDictionary = {
|
|
10308
|
+
nan: "NaN",
|
|
10309
|
+
number: "szám",
|
|
10310
|
+
array: "tömb"
|
|
10311
|
+
};
|
|
10312
|
+
return (issue2) => {
|
|
10313
|
+
switch (issue2.code) {
|
|
10314
|
+
case "invalid_type": {
|
|
10315
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
10316
|
+
const receivedType = parsedType(issue2.input);
|
|
10317
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
10318
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
10319
|
+
return `Érvénytelen bemenet: a várt érték instanceof ${issue2.expected}, a kapott érték ${received}`;
|
|
10320
|
+
}
|
|
10321
|
+
return `Érvénytelen bemenet: a várt érték ${expected}, a kapott érték ${received}`;
|
|
10322
|
+
}
|
|
10323
|
+
case "invalid_value":
|
|
10324
|
+
if (issue2.values.length === 1)
|
|
10325
|
+
return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue2.values[0])}`;
|
|
10326
|
+
return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue2.values, "|")}`;
|
|
10327
|
+
case "too_big": {
|
|
10328
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
10329
|
+
const sizing = getSizing(issue2.origin);
|
|
10330
|
+
if (sizing)
|
|
10331
|
+
return `Túl nagy: ${issue2.origin ?? "érték"} mérete túl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
|
|
9938
10332
|
return `Túl nagy: a bemeneti érték ${issue2.origin ?? "érték"} túl nagy: ${adj}${issue2.maximum.toString()}`;
|
|
9939
10333
|
}
|
|
9940
10334
|
case "too_small": {
|
|
@@ -9974,10 +10368,10 @@ var error17 = () => {
|
|
|
9974
10368
|
};
|
|
9975
10369
|
function hu_default() {
|
|
9976
10370
|
return {
|
|
9977
|
-
localeError:
|
|
10371
|
+
localeError: error19()
|
|
9978
10372
|
};
|
|
9979
10373
|
}
|
|
9980
|
-
//
|
|
10374
|
+
// node_modules/zod/v4/locales/hy.js
|
|
9981
10375
|
function getArmenianPlural(count, one, many) {
|
|
9982
10376
|
return Math.abs(count) === 1 ? one : many;
|
|
9983
10377
|
}
|
|
@@ -9988,7 +10382,7 @@ function withDefiniteArticle(word) {
|
|
|
9988
10382
|
const lastChar = word[word.length - 1];
|
|
9989
10383
|
return word + (vowels.includes(lastChar) ? "ն" : "ը");
|
|
9990
10384
|
}
|
|
9991
|
-
var
|
|
10385
|
+
var error20 = () => {
|
|
9992
10386
|
const Sizable = {
|
|
9993
10387
|
string: {
|
|
9994
10388
|
unit: {
|
|
@@ -10121,11 +10515,11 @@ var error18 = () => {
|
|
|
10121
10515
|
};
|
|
10122
10516
|
function hy_default() {
|
|
10123
10517
|
return {
|
|
10124
|
-
localeError:
|
|
10518
|
+
localeError: error20()
|
|
10125
10519
|
};
|
|
10126
10520
|
}
|
|
10127
|
-
//
|
|
10128
|
-
var
|
|
10521
|
+
// node_modules/zod/v4/locales/id.js
|
|
10522
|
+
var error21 = () => {
|
|
10129
10523
|
const Sizable = {
|
|
10130
10524
|
string: { unit: "karakter", verb: "memiliki" },
|
|
10131
10525
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -10227,11 +10621,11 @@ var error19 = () => {
|
|
|
10227
10621
|
};
|
|
10228
10622
|
function id_default() {
|
|
10229
10623
|
return {
|
|
10230
|
-
localeError:
|
|
10624
|
+
localeError: error21()
|
|
10231
10625
|
};
|
|
10232
10626
|
}
|
|
10233
|
-
//
|
|
10234
|
-
var
|
|
10627
|
+
// node_modules/zod/v4/locales/is.js
|
|
10628
|
+
var error22 = () => {
|
|
10235
10629
|
const Sizable = {
|
|
10236
10630
|
string: { unit: "stafi", verb: "að hafa" },
|
|
10237
10631
|
file: { unit: "bæti", verb: "að hafa" },
|
|
@@ -10336,11 +10730,11 @@ var error20 = () => {
|
|
|
10336
10730
|
};
|
|
10337
10731
|
function is_default() {
|
|
10338
10732
|
return {
|
|
10339
|
-
localeError:
|
|
10733
|
+
localeError: error22()
|
|
10340
10734
|
};
|
|
10341
10735
|
}
|
|
10342
|
-
//
|
|
10343
|
-
var
|
|
10736
|
+
// node_modules/zod/v4/locales/it.js
|
|
10737
|
+
var error23 = () => {
|
|
10344
10738
|
const Sizable = {
|
|
10345
10739
|
string: { unit: "caratteri", verb: "avere" },
|
|
10346
10740
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -10425,7 +10819,7 @@ var error21 = () => {
|
|
|
10425
10819
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
10426
10820
|
if (_issue.format === "regex")
|
|
10427
10821
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
10428
|
-
return `
|
|
10822
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
10429
10823
|
}
|
|
10430
10824
|
case "not_multiple_of":
|
|
10431
10825
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -10444,11 +10838,11 @@ var error21 = () => {
|
|
|
10444
10838
|
};
|
|
10445
10839
|
function it_default() {
|
|
10446
10840
|
return {
|
|
10447
|
-
localeError:
|
|
10841
|
+
localeError: error23()
|
|
10448
10842
|
};
|
|
10449
10843
|
}
|
|
10450
|
-
//
|
|
10451
|
-
var
|
|
10844
|
+
// node_modules/zod/v4/locales/ja.js
|
|
10845
|
+
var error24 = () => {
|
|
10452
10846
|
const Sizable = {
|
|
10453
10847
|
string: { unit: "文字", verb: "である" },
|
|
10454
10848
|
file: { unit: "バイト", verb: "である" },
|
|
@@ -10551,11 +10945,11 @@ var error22 = () => {
|
|
|
10551
10945
|
};
|
|
10552
10946
|
function ja_default() {
|
|
10553
10947
|
return {
|
|
10554
|
-
localeError:
|
|
10948
|
+
localeError: error24()
|
|
10555
10949
|
};
|
|
10556
10950
|
}
|
|
10557
|
-
//
|
|
10558
|
-
var
|
|
10951
|
+
// node_modules/zod/v4/locales/ka.js
|
|
10952
|
+
var error25 = () => {
|
|
10559
10953
|
const Sizable = {
|
|
10560
10954
|
string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
|
|
10561
10955
|
file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" },
|
|
@@ -10588,9 +10982,9 @@ var error23 = () => {
|
|
|
10588
10982
|
ipv6: "IPv6 მისამართი",
|
|
10589
10983
|
cidrv4: "IPv4 დიაპაზონი",
|
|
10590
10984
|
cidrv6: "IPv6 დიაპაზონი",
|
|
10591
|
-
base64: "base64-კოდირებული
|
|
10592
|
-
base64url: "base64url-კოდირებული
|
|
10593
|
-
json_string: "JSON
|
|
10985
|
+
base64: "base64-კოდირებული ველი",
|
|
10986
|
+
base64url: "base64url-კოდირებული ველი",
|
|
10987
|
+
json_string: "JSON ველი",
|
|
10594
10988
|
e164: "E.164 ნომერი",
|
|
10595
10989
|
jwt: "JWT",
|
|
10596
10990
|
template_literal: "შეყვანა"
|
|
@@ -10598,7 +10992,7 @@ var error23 = () => {
|
|
|
10598
10992
|
const TypeDictionary = {
|
|
10599
10993
|
nan: "NaN",
|
|
10600
10994
|
number: "რიცხვი",
|
|
10601
|
-
string: "
|
|
10995
|
+
string: "ველი",
|
|
10602
10996
|
boolean: "ბულეანი",
|
|
10603
10997
|
function: "ფუნქცია",
|
|
10604
10998
|
array: "მასივი"
|
|
@@ -10636,14 +11030,14 @@ var error23 = () => {
|
|
|
10636
11030
|
case "invalid_format": {
|
|
10637
11031
|
const _issue = issue2;
|
|
10638
11032
|
if (_issue.format === "starts_with") {
|
|
10639
|
-
return `არასწორი
|
|
11033
|
+
return `არასწორი ველი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
|
|
10640
11034
|
}
|
|
10641
11035
|
if (_issue.format === "ends_with")
|
|
10642
|
-
return `არასწორი
|
|
11036
|
+
return `არასწორი ველი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
|
|
10643
11037
|
if (_issue.format === "includes")
|
|
10644
|
-
return `არასწორი
|
|
11038
|
+
return `არასწორი ველი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
|
|
10645
11039
|
if (_issue.format === "regex")
|
|
10646
|
-
return `არასწორი
|
|
11040
|
+
return `არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
|
|
10647
11041
|
return `არასწორი ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
10648
11042
|
}
|
|
10649
11043
|
case "not_multiple_of":
|
|
@@ -10663,11 +11057,11 @@ var error23 = () => {
|
|
|
10663
11057
|
};
|
|
10664
11058
|
function ka_default() {
|
|
10665
11059
|
return {
|
|
10666
|
-
localeError:
|
|
11060
|
+
localeError: error25()
|
|
10667
11061
|
};
|
|
10668
11062
|
}
|
|
10669
|
-
//
|
|
10670
|
-
var
|
|
11063
|
+
// node_modules/zod/v4/locales/km.js
|
|
11064
|
+
var error26 = () => {
|
|
10671
11065
|
const Sizable = {
|
|
10672
11066
|
string: { unit: "តួអក្សរ", verb: "គួរមាន" },
|
|
10673
11067
|
file: { unit: "បៃ", verb: "គួរមាន" },
|
|
@@ -10773,16 +11167,16 @@ var error24 = () => {
|
|
|
10773
11167
|
};
|
|
10774
11168
|
function km_default() {
|
|
10775
11169
|
return {
|
|
10776
|
-
localeError:
|
|
11170
|
+
localeError: error26()
|
|
10777
11171
|
};
|
|
10778
11172
|
}
|
|
10779
11173
|
|
|
10780
|
-
//
|
|
11174
|
+
// node_modules/zod/v4/locales/kh.js
|
|
10781
11175
|
function kh_default() {
|
|
10782
11176
|
return km_default();
|
|
10783
11177
|
}
|
|
10784
|
-
//
|
|
10785
|
-
var
|
|
11178
|
+
// node_modules/zod/v4/locales/ko.js
|
|
11179
|
+
var error27 = () => {
|
|
10786
11180
|
const Sizable = {
|
|
10787
11181
|
string: { unit: "문자", verb: "to have" },
|
|
10788
11182
|
file: { unit: "바이트", verb: "to have" },
|
|
@@ -10889,10 +11283,10 @@ var error25 = () => {
|
|
|
10889
11283
|
};
|
|
10890
11284
|
function ko_default() {
|
|
10891
11285
|
return {
|
|
10892
|
-
localeError:
|
|
11286
|
+
localeError: error27()
|
|
10893
11287
|
};
|
|
10894
11288
|
}
|
|
10895
|
-
//
|
|
11289
|
+
// node_modules/zod/v4/locales/lt.js
|
|
10896
11290
|
var capitalizeFirstCharacter = (text) => {
|
|
10897
11291
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
10898
11292
|
};
|
|
@@ -10906,7 +11300,7 @@ function getUnitTypeFromNumber(number2) {
|
|
|
10906
11300
|
return "one";
|
|
10907
11301
|
return "few";
|
|
10908
11302
|
}
|
|
10909
|
-
var
|
|
11303
|
+
var error28 = () => {
|
|
10910
11304
|
const Sizable = {
|
|
10911
11305
|
string: {
|
|
10912
11306
|
unit: {
|
|
@@ -11092,11 +11486,11 @@ var error26 = () => {
|
|
|
11092
11486
|
};
|
|
11093
11487
|
function lt_default() {
|
|
11094
11488
|
return {
|
|
11095
|
-
localeError:
|
|
11489
|
+
localeError: error28()
|
|
11096
11490
|
};
|
|
11097
11491
|
}
|
|
11098
|
-
//
|
|
11099
|
-
var
|
|
11492
|
+
// node_modules/zod/v4/locales/mk.js
|
|
11493
|
+
var error29 = () => {
|
|
11100
11494
|
const Sizable = {
|
|
11101
11495
|
string: { unit: "знаци", verb: "да имаат" },
|
|
11102
11496
|
file: { unit: "бајти", verb: "да имаат" },
|
|
@@ -11201,11 +11595,11 @@ var error27 = () => {
|
|
|
11201
11595
|
};
|
|
11202
11596
|
function mk_default() {
|
|
11203
11597
|
return {
|
|
11204
|
-
localeError:
|
|
11598
|
+
localeError: error29()
|
|
11205
11599
|
};
|
|
11206
11600
|
}
|
|
11207
|
-
//
|
|
11208
|
-
var
|
|
11601
|
+
// node_modules/zod/v4/locales/ms.js
|
|
11602
|
+
var error30 = () => {
|
|
11209
11603
|
const Sizable = {
|
|
11210
11604
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
11211
11605
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -11308,11 +11702,11 @@ var error28 = () => {
|
|
|
11308
11702
|
};
|
|
11309
11703
|
function ms_default() {
|
|
11310
11704
|
return {
|
|
11311
|
-
localeError:
|
|
11705
|
+
localeError: error30()
|
|
11312
11706
|
};
|
|
11313
11707
|
}
|
|
11314
|
-
//
|
|
11315
|
-
var
|
|
11708
|
+
// node_modules/zod/v4/locales/nl.js
|
|
11709
|
+
var error31 = () => {
|
|
11316
11710
|
const Sizable = {
|
|
11317
11711
|
string: { unit: "tekens", verb: "heeft" },
|
|
11318
11712
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -11418,11 +11812,11 @@ var error29 = () => {
|
|
|
11418
11812
|
};
|
|
11419
11813
|
function nl_default() {
|
|
11420
11814
|
return {
|
|
11421
|
-
localeError:
|
|
11815
|
+
localeError: error31()
|
|
11422
11816
|
};
|
|
11423
11817
|
}
|
|
11424
|
-
//
|
|
11425
|
-
var
|
|
11818
|
+
// node_modules/zod/v4/locales/no.js
|
|
11819
|
+
var error32 = () => {
|
|
11426
11820
|
const Sizable = {
|
|
11427
11821
|
string: { unit: "tegn", verb: "å ha" },
|
|
11428
11822
|
file: { unit: "bytes", verb: "å ha" },
|
|
@@ -11526,11 +11920,11 @@ var error30 = () => {
|
|
|
11526
11920
|
};
|
|
11527
11921
|
function no_default() {
|
|
11528
11922
|
return {
|
|
11529
|
-
localeError:
|
|
11923
|
+
localeError: error32()
|
|
11530
11924
|
};
|
|
11531
11925
|
}
|
|
11532
|
-
//
|
|
11533
|
-
var
|
|
11926
|
+
// node_modules/zod/v4/locales/ota.js
|
|
11927
|
+
var error33 = () => {
|
|
11534
11928
|
const Sizable = {
|
|
11535
11929
|
string: { unit: "harf", verb: "olmalıdır" },
|
|
11536
11930
|
file: { unit: "bayt", verb: "olmalıdır" },
|
|
@@ -11635,11 +12029,11 @@ var error31 = () => {
|
|
|
11635
12029
|
};
|
|
11636
12030
|
function ota_default() {
|
|
11637
12031
|
return {
|
|
11638
|
-
localeError:
|
|
12032
|
+
localeError: error33()
|
|
11639
12033
|
};
|
|
11640
12034
|
}
|
|
11641
|
-
//
|
|
11642
|
-
var
|
|
12035
|
+
// node_modules/zod/v4/locales/ps.js
|
|
12036
|
+
var error34 = () => {
|
|
11643
12037
|
const Sizable = {
|
|
11644
12038
|
string: { unit: "توکي", verb: "ولري" },
|
|
11645
12039
|
file: { unit: "بایټس", verb: "ولري" },
|
|
@@ -11749,11 +12143,11 @@ var error32 = () => {
|
|
|
11749
12143
|
};
|
|
11750
12144
|
function ps_default() {
|
|
11751
12145
|
return {
|
|
11752
|
-
localeError:
|
|
12146
|
+
localeError: error34()
|
|
11753
12147
|
};
|
|
11754
12148
|
}
|
|
11755
|
-
//
|
|
11756
|
-
var
|
|
12149
|
+
// node_modules/zod/v4/locales/pl.js
|
|
12150
|
+
var error35 = () => {
|
|
11757
12151
|
const Sizable = {
|
|
11758
12152
|
string: { unit: "znaków", verb: "mieć" },
|
|
11759
12153
|
file: { unit: "bajtów", verb: "mieć" },
|
|
@@ -11858,11 +12252,11 @@ var error33 = () => {
|
|
|
11858
12252
|
};
|
|
11859
12253
|
function pl_default() {
|
|
11860
12254
|
return {
|
|
11861
|
-
localeError:
|
|
12255
|
+
localeError: error35()
|
|
11862
12256
|
};
|
|
11863
12257
|
}
|
|
11864
|
-
//
|
|
11865
|
-
var
|
|
12258
|
+
// node_modules/zod/v4/locales/pt.js
|
|
12259
|
+
var error36 = () => {
|
|
11866
12260
|
const Sizable = {
|
|
11867
12261
|
string: { unit: "caracteres", verb: "ter" },
|
|
11868
12262
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -11966,10 +12360,129 @@ var error34 = () => {
|
|
|
11966
12360
|
};
|
|
11967
12361
|
function pt_default() {
|
|
11968
12362
|
return {
|
|
11969
|
-
localeError:
|
|
12363
|
+
localeError: error36()
|
|
12364
|
+
};
|
|
12365
|
+
}
|
|
12366
|
+
// node_modules/zod/v4/locales/ro.js
|
|
12367
|
+
var error37 = () => {
|
|
12368
|
+
const Sizable = {
|
|
12369
|
+
string: { unit: "caractere", verb: "să aibă" },
|
|
12370
|
+
file: { unit: "octeți", verb: "să aibă" },
|
|
12371
|
+
array: { unit: "elemente", verb: "să aibă" },
|
|
12372
|
+
set: { unit: "elemente", verb: "să aibă" },
|
|
12373
|
+
map: { unit: "intrări", verb: "să aibă" }
|
|
12374
|
+
};
|
|
12375
|
+
function getSizing(origin) {
|
|
12376
|
+
return Sizable[origin] ?? null;
|
|
12377
|
+
}
|
|
12378
|
+
const FormatDictionary = {
|
|
12379
|
+
regex: "intrare",
|
|
12380
|
+
email: "adresă de email",
|
|
12381
|
+
url: "URL",
|
|
12382
|
+
emoji: "emoji",
|
|
12383
|
+
uuid: "UUID",
|
|
12384
|
+
uuidv4: "UUIDv4",
|
|
12385
|
+
uuidv6: "UUIDv6",
|
|
12386
|
+
nanoid: "nanoid",
|
|
12387
|
+
guid: "GUID",
|
|
12388
|
+
cuid: "cuid",
|
|
12389
|
+
cuid2: "cuid2",
|
|
12390
|
+
ulid: "ULID",
|
|
12391
|
+
xid: "XID",
|
|
12392
|
+
ksuid: "KSUID",
|
|
12393
|
+
datetime: "dată și oră ISO",
|
|
12394
|
+
date: "dată ISO",
|
|
12395
|
+
time: "oră ISO",
|
|
12396
|
+
duration: "durată ISO",
|
|
12397
|
+
ipv4: "adresă IPv4",
|
|
12398
|
+
ipv6: "adresă IPv6",
|
|
12399
|
+
mac: "adresă MAC",
|
|
12400
|
+
cidrv4: "interval IPv4",
|
|
12401
|
+
cidrv6: "interval IPv6",
|
|
12402
|
+
base64: "șir codat base64",
|
|
12403
|
+
base64url: "șir codat base64url",
|
|
12404
|
+
json_string: "șir JSON",
|
|
12405
|
+
e164: "număr E.164",
|
|
12406
|
+
jwt: "JWT",
|
|
12407
|
+
template_literal: "intrare"
|
|
12408
|
+
};
|
|
12409
|
+
const TypeDictionary = {
|
|
12410
|
+
nan: "NaN",
|
|
12411
|
+
string: "șir",
|
|
12412
|
+
number: "număr",
|
|
12413
|
+
boolean: "boolean",
|
|
12414
|
+
function: "funcție",
|
|
12415
|
+
array: "matrice",
|
|
12416
|
+
object: "obiect",
|
|
12417
|
+
undefined: "nedefinit",
|
|
12418
|
+
symbol: "simbol",
|
|
12419
|
+
bigint: "număr mare",
|
|
12420
|
+
void: "void",
|
|
12421
|
+
never: "never",
|
|
12422
|
+
map: "hartă",
|
|
12423
|
+
set: "set"
|
|
12424
|
+
};
|
|
12425
|
+
return (issue2) => {
|
|
12426
|
+
switch (issue2.code) {
|
|
12427
|
+
case "invalid_type": {
|
|
12428
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
12429
|
+
const receivedType = parsedType(issue2.input);
|
|
12430
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
12431
|
+
return `Intrare invalidă: așteptat ${expected}, primit ${received}`;
|
|
12432
|
+
}
|
|
12433
|
+
case "invalid_value":
|
|
12434
|
+
if (issue2.values.length === 1)
|
|
12435
|
+
return `Intrare invalidă: așteptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
12436
|
+
return `Opțiune invalidă: așteptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
12437
|
+
case "too_big": {
|
|
12438
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
12439
|
+
const sizing = getSizing(issue2.origin);
|
|
12440
|
+
if (sizing)
|
|
12441
|
+
return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
12442
|
+
return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} să fie ${adj}${issue2.maximum.toString()}`;
|
|
12443
|
+
}
|
|
12444
|
+
case "too_small": {
|
|
12445
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
12446
|
+
const sizing = getSizing(issue2.origin);
|
|
12447
|
+
if (sizing) {
|
|
12448
|
+
return `Prea mic: așteptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
12449
|
+
}
|
|
12450
|
+
return `Prea mic: așteptat ca ${issue2.origin} să fie ${adj}${issue2.minimum.toString()}`;
|
|
12451
|
+
}
|
|
12452
|
+
case "invalid_format": {
|
|
12453
|
+
const _issue = issue2;
|
|
12454
|
+
if (_issue.format === "starts_with") {
|
|
12455
|
+
return `Șir invalid: trebuie să înceapă cu "${_issue.prefix}"`;
|
|
12456
|
+
}
|
|
12457
|
+
if (_issue.format === "ends_with")
|
|
12458
|
+
return `Șir invalid: trebuie să se termine cu "${_issue.suffix}"`;
|
|
12459
|
+
if (_issue.format === "includes")
|
|
12460
|
+
return `Șir invalid: trebuie să includă "${_issue.includes}"`;
|
|
12461
|
+
if (_issue.format === "regex")
|
|
12462
|
+
return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;
|
|
12463
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
12464
|
+
}
|
|
12465
|
+
case "not_multiple_of":
|
|
12466
|
+
return `Număr invalid: trebuie să fie multiplu de ${issue2.divisor}`;
|
|
12467
|
+
case "unrecognized_keys":
|
|
12468
|
+
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
12469
|
+
case "invalid_key":
|
|
12470
|
+
return `Cheie invalidă în ${issue2.origin}`;
|
|
12471
|
+
case "invalid_union":
|
|
12472
|
+
return "Intrare invalidă";
|
|
12473
|
+
case "invalid_element":
|
|
12474
|
+
return `Valoare invalidă în ${issue2.origin}`;
|
|
12475
|
+
default:
|
|
12476
|
+
return `Intrare invalidă`;
|
|
12477
|
+
}
|
|
12478
|
+
};
|
|
12479
|
+
};
|
|
12480
|
+
function ro_default() {
|
|
12481
|
+
return {
|
|
12482
|
+
localeError: error37()
|
|
11970
12483
|
};
|
|
11971
12484
|
}
|
|
11972
|
-
//
|
|
12485
|
+
// node_modules/zod/v4/locales/ru.js
|
|
11973
12486
|
function getRussianPlural(count, one, few, many) {
|
|
11974
12487
|
const absCount = Math.abs(count);
|
|
11975
12488
|
const lastDigit = absCount % 10;
|
|
@@ -11985,7 +12498,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
11985
12498
|
}
|
|
11986
12499
|
return many;
|
|
11987
12500
|
}
|
|
11988
|
-
var
|
|
12501
|
+
var error38 = () => {
|
|
11989
12502
|
const Sizable = {
|
|
11990
12503
|
string: {
|
|
11991
12504
|
unit: {
|
|
@@ -12122,11 +12635,11 @@ var error35 = () => {
|
|
|
12122
12635
|
};
|
|
12123
12636
|
function ru_default() {
|
|
12124
12637
|
return {
|
|
12125
|
-
localeError:
|
|
12638
|
+
localeError: error38()
|
|
12126
12639
|
};
|
|
12127
12640
|
}
|
|
12128
|
-
//
|
|
12129
|
-
var
|
|
12641
|
+
// node_modules/zod/v4/locales/sl.js
|
|
12642
|
+
var error39 = () => {
|
|
12130
12643
|
const Sizable = {
|
|
12131
12644
|
string: { unit: "znakov", verb: "imeti" },
|
|
12132
12645
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -12231,11 +12744,11 @@ var error36 = () => {
|
|
|
12231
12744
|
};
|
|
12232
12745
|
function sl_default() {
|
|
12233
12746
|
return {
|
|
12234
|
-
localeError:
|
|
12747
|
+
localeError: error39()
|
|
12235
12748
|
};
|
|
12236
12749
|
}
|
|
12237
|
-
//
|
|
12238
|
-
var
|
|
12750
|
+
// node_modules/zod/v4/locales/sv.js
|
|
12751
|
+
var error40 = () => {
|
|
12239
12752
|
const Sizable = {
|
|
12240
12753
|
string: { unit: "tecken", verb: "att ha" },
|
|
12241
12754
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -12341,11 +12854,11 @@ var error37 = () => {
|
|
|
12341
12854
|
};
|
|
12342
12855
|
function sv_default() {
|
|
12343
12856
|
return {
|
|
12344
|
-
localeError:
|
|
12857
|
+
localeError: error40()
|
|
12345
12858
|
};
|
|
12346
12859
|
}
|
|
12347
|
-
//
|
|
12348
|
-
var
|
|
12860
|
+
// node_modules/zod/v4/locales/ta.js
|
|
12861
|
+
var error41 = () => {
|
|
12349
12862
|
const Sizable = {
|
|
12350
12863
|
string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
12351
12864
|
file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
@@ -12451,11 +12964,11 @@ var error38 = () => {
|
|
|
12451
12964
|
};
|
|
12452
12965
|
function ta_default() {
|
|
12453
12966
|
return {
|
|
12454
|
-
localeError:
|
|
12967
|
+
localeError: error41()
|
|
12455
12968
|
};
|
|
12456
12969
|
}
|
|
12457
|
-
//
|
|
12458
|
-
var
|
|
12970
|
+
// node_modules/zod/v4/locales/th.js
|
|
12971
|
+
var error42 = () => {
|
|
12459
12972
|
const Sizable = {
|
|
12460
12973
|
string: { unit: "ตัวอักษร", verb: "ควรมี" },
|
|
12461
12974
|
file: { unit: "ไบต์", verb: "ควรมี" },
|
|
@@ -12561,11 +13074,11 @@ var error39 = () => {
|
|
|
12561
13074
|
};
|
|
12562
13075
|
function th_default() {
|
|
12563
13076
|
return {
|
|
12564
|
-
localeError:
|
|
13077
|
+
localeError: error42()
|
|
12565
13078
|
};
|
|
12566
13079
|
}
|
|
12567
|
-
//
|
|
12568
|
-
var
|
|
13080
|
+
// node_modules/zod/v4/locales/tr.js
|
|
13081
|
+
var error43 = () => {
|
|
12569
13082
|
const Sizable = {
|
|
12570
13083
|
string: { unit: "karakter", verb: "olmalı" },
|
|
12571
13084
|
file: { unit: "bayt", verb: "olmalı" },
|
|
@@ -12666,11 +13179,11 @@ var error40 = () => {
|
|
|
12666
13179
|
};
|
|
12667
13180
|
function tr_default() {
|
|
12668
13181
|
return {
|
|
12669
|
-
localeError:
|
|
13182
|
+
localeError: error43()
|
|
12670
13183
|
};
|
|
12671
13184
|
}
|
|
12672
|
-
//
|
|
12673
|
-
var
|
|
13185
|
+
// node_modules/zod/v4/locales/uk.js
|
|
13186
|
+
var error44 = () => {
|
|
12674
13187
|
const Sizable = {
|
|
12675
13188
|
string: { unit: "символів", verb: "матиме" },
|
|
12676
13189
|
file: { unit: "байтів", verb: "матиме" },
|
|
@@ -12774,16 +13287,16 @@ var error41 = () => {
|
|
|
12774
13287
|
};
|
|
12775
13288
|
function uk_default() {
|
|
12776
13289
|
return {
|
|
12777
|
-
localeError:
|
|
13290
|
+
localeError: error44()
|
|
12778
13291
|
};
|
|
12779
13292
|
}
|
|
12780
13293
|
|
|
12781
|
-
//
|
|
13294
|
+
// node_modules/zod/v4/locales/ua.js
|
|
12782
13295
|
function ua_default() {
|
|
12783
13296
|
return uk_default();
|
|
12784
13297
|
}
|
|
12785
|
-
//
|
|
12786
|
-
var
|
|
13298
|
+
// node_modules/zod/v4/locales/ur.js
|
|
13299
|
+
var error45 = () => {
|
|
12787
13300
|
const Sizable = {
|
|
12788
13301
|
string: { unit: "حروف", verb: "ہونا" },
|
|
12789
13302
|
file: { unit: "بائٹس", verb: "ہونا" },
|
|
@@ -12889,16 +13402,17 @@ var error42 = () => {
|
|
|
12889
13402
|
};
|
|
12890
13403
|
function ur_default() {
|
|
12891
13404
|
return {
|
|
12892
|
-
localeError:
|
|
13405
|
+
localeError: error45()
|
|
12893
13406
|
};
|
|
12894
13407
|
}
|
|
12895
|
-
//
|
|
12896
|
-
var
|
|
13408
|
+
// node_modules/zod/v4/locales/uz.js
|
|
13409
|
+
var error46 = () => {
|
|
12897
13410
|
const Sizable = {
|
|
12898
13411
|
string: { unit: "belgi", verb: "bo‘lishi kerak" },
|
|
12899
13412
|
file: { unit: "bayt", verb: "bo‘lishi kerak" },
|
|
12900
13413
|
array: { unit: "element", verb: "bo‘lishi kerak" },
|
|
12901
|
-
set: { unit: "element", verb: "bo‘lishi kerak" }
|
|
13414
|
+
set: { unit: "element", verb: "bo‘lishi kerak" },
|
|
13415
|
+
map: { unit: "yozuv", verb: "bo‘lishi kerak" }
|
|
12902
13416
|
};
|
|
12903
13417
|
function getSizing(origin) {
|
|
12904
13418
|
return Sizable[origin] ?? null;
|
|
@@ -12998,11 +13512,11 @@ var error43 = () => {
|
|
|
12998
13512
|
};
|
|
12999
13513
|
function uz_default() {
|
|
13000
13514
|
return {
|
|
13001
|
-
localeError:
|
|
13515
|
+
localeError: error46()
|
|
13002
13516
|
};
|
|
13003
13517
|
}
|
|
13004
|
-
//
|
|
13005
|
-
var
|
|
13518
|
+
// node_modules/zod/v4/locales/vi.js
|
|
13519
|
+
var error47 = () => {
|
|
13006
13520
|
const Sizable = {
|
|
13007
13521
|
string: { unit: "ký tự", verb: "có" },
|
|
13008
13522
|
file: { unit: "byte", verb: "có" },
|
|
@@ -13106,11 +13620,11 @@ var error44 = () => {
|
|
|
13106
13620
|
};
|
|
13107
13621
|
function vi_default() {
|
|
13108
13622
|
return {
|
|
13109
|
-
localeError:
|
|
13623
|
+
localeError: error47()
|
|
13110
13624
|
};
|
|
13111
13625
|
}
|
|
13112
|
-
//
|
|
13113
|
-
var
|
|
13626
|
+
// node_modules/zod/v4/locales/zh-CN.js
|
|
13627
|
+
var error48 = () => {
|
|
13114
13628
|
const Sizable = {
|
|
13115
13629
|
string: { unit: "字符", verb: "包含" },
|
|
13116
13630
|
file: { unit: "字节", verb: "包含" },
|
|
@@ -13215,11 +13729,11 @@ var error45 = () => {
|
|
|
13215
13729
|
};
|
|
13216
13730
|
function zh_CN_default() {
|
|
13217
13731
|
return {
|
|
13218
|
-
localeError:
|
|
13732
|
+
localeError: error48()
|
|
13219
13733
|
};
|
|
13220
13734
|
}
|
|
13221
|
-
//
|
|
13222
|
-
var
|
|
13735
|
+
// node_modules/zod/v4/locales/zh-TW.js
|
|
13736
|
+
var error49 = () => {
|
|
13223
13737
|
const Sizable = {
|
|
13224
13738
|
string: { unit: "字元", verb: "擁有" },
|
|
13225
13739
|
file: { unit: "位元組", verb: "擁有" },
|
|
@@ -13322,11 +13836,11 @@ var error46 = () => {
|
|
|
13322
13836
|
};
|
|
13323
13837
|
function zh_TW_default() {
|
|
13324
13838
|
return {
|
|
13325
|
-
localeError:
|
|
13839
|
+
localeError: error49()
|
|
13326
13840
|
};
|
|
13327
13841
|
}
|
|
13328
|
-
//
|
|
13329
|
-
var
|
|
13842
|
+
// node_modules/zod/v4/locales/yo.js
|
|
13843
|
+
var error50 = () => {
|
|
13330
13844
|
const Sizable = {
|
|
13331
13845
|
string: { unit: "àmi", verb: "ní" },
|
|
13332
13846
|
file: { unit: "bytes", verb: "ní" },
|
|
@@ -13429,11 +13943,11 @@ var error47 = () => {
|
|
|
13429
13943
|
};
|
|
13430
13944
|
function yo_default() {
|
|
13431
13945
|
return {
|
|
13432
|
-
localeError:
|
|
13946
|
+
localeError: error50()
|
|
13433
13947
|
};
|
|
13434
13948
|
}
|
|
13435
|
-
//
|
|
13436
|
-
var
|
|
13949
|
+
// node_modules/zod/v4/core/registries.js
|
|
13950
|
+
var _a2;
|
|
13437
13951
|
var $output = Symbol("ZodOutput");
|
|
13438
13952
|
var $input = Symbol("ZodInput");
|
|
13439
13953
|
|
|
@@ -13480,9 +13994,9 @@ class $ZodRegistry {
|
|
|
13480
13994
|
function registry() {
|
|
13481
13995
|
return new $ZodRegistry;
|
|
13482
13996
|
}
|
|
13483
|
-
(
|
|
13997
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
13484
13998
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
13485
|
-
//
|
|
13999
|
+
// node_modules/zod/v4/core/api.js
|
|
13486
14000
|
function _string(Class2, params) {
|
|
13487
14001
|
return new Class2({
|
|
13488
14002
|
type: "string",
|
|
@@ -14286,7 +14800,7 @@ function _refine(Class2, fn, _params) {
|
|
|
14286
14800
|
});
|
|
14287
14801
|
return schema;
|
|
14288
14802
|
}
|
|
14289
|
-
function _superRefine(fn) {
|
|
14803
|
+
function _superRefine(fn, params) {
|
|
14290
14804
|
const ch = _check((payload) => {
|
|
14291
14805
|
payload.addIssue = (issue2) => {
|
|
14292
14806
|
if (typeof issue2 === "string") {
|
|
@@ -14303,7 +14817,7 @@ function _superRefine(fn) {
|
|
|
14303
14817
|
}
|
|
14304
14818
|
};
|
|
14305
14819
|
return fn(payload.value, payload);
|
|
14306
|
-
});
|
|
14820
|
+
}, params);
|
|
14307
14821
|
return ch;
|
|
14308
14822
|
}
|
|
14309
14823
|
function _check(fn, params) {
|
|
@@ -14402,7 +14916,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
14402
14916
|
const inst = new Class2(def);
|
|
14403
14917
|
return inst;
|
|
14404
14918
|
}
|
|
14405
|
-
//
|
|
14919
|
+
// node_modules/zod/v4/core/to-json-schema.js
|
|
14406
14920
|
function initializeContext(params) {
|
|
14407
14921
|
let target = params?.target ?? "draft-2020-12";
|
|
14408
14922
|
if (target === "draft-4")
|
|
@@ -14424,7 +14938,7 @@ function initializeContext(params) {
|
|
|
14424
14938
|
};
|
|
14425
14939
|
}
|
|
14426
14940
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
14427
|
-
var
|
|
14941
|
+
var _a3;
|
|
14428
14942
|
const def = schema._zod.def;
|
|
14429
14943
|
const seen = ctx.seen.get(schema);
|
|
14430
14944
|
if (seen) {
|
|
@@ -14471,8 +14985,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
14471
14985
|
delete result.schema.examples;
|
|
14472
14986
|
delete result.schema.default;
|
|
14473
14987
|
}
|
|
14474
|
-
if (ctx.io === "input" && result.schema
|
|
14475
|
-
(
|
|
14988
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
14989
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
14476
14990
|
delete result.schema._prefault;
|
|
14477
14991
|
const _result = ctx.seen.get(schema);
|
|
14478
14992
|
return _result.schema;
|
|
@@ -14649,10 +15163,15 @@ function finalize(ctx, schema) {
|
|
|
14649
15163
|
result.$id = ctx.external.uri(id);
|
|
14650
15164
|
}
|
|
14651
15165
|
Object.assign(result, root.def ?? root.schema);
|
|
15166
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
15167
|
+
if (rootMetaId !== undefined && result.id === rootMetaId)
|
|
15168
|
+
delete result.id;
|
|
14652
15169
|
const defs = ctx.external?.defs ?? {};
|
|
14653
15170
|
for (const entry of ctx.seen.entries()) {
|
|
14654
15171
|
const seen = entry[1];
|
|
14655
15172
|
if (seen.def && seen.defId) {
|
|
15173
|
+
if (seen.def.id === seen.defId)
|
|
15174
|
+
delete seen.def.id;
|
|
14656
15175
|
defs[seen.defId] = seen.def;
|
|
14657
15176
|
}
|
|
14658
15177
|
}
|
|
@@ -14747,7 +15266,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
14747
15266
|
extractDefs(ctx, schema);
|
|
14748
15267
|
return finalize(ctx, schema);
|
|
14749
15268
|
};
|
|
14750
|
-
//
|
|
15269
|
+
// node_modules/zod/v4/core/json-schema-processors.js
|
|
14751
15270
|
var formatMap = {
|
|
14752
15271
|
guid: "uuid",
|
|
14753
15272
|
url: "uri",
|
|
@@ -14794,39 +15313,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
14794
15313
|
json.type = "integer";
|
|
14795
15314
|
else
|
|
14796
15315
|
json.type = "number";
|
|
14797
|
-
|
|
14798
|
-
|
|
15316
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
15317
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
15318
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
15319
|
+
if (exMin) {
|
|
15320
|
+
if (legacy) {
|
|
14799
15321
|
json.minimum = exclusiveMinimum;
|
|
14800
15322
|
json.exclusiveMinimum = true;
|
|
14801
15323
|
} else {
|
|
14802
15324
|
json.exclusiveMinimum = exclusiveMinimum;
|
|
14803
15325
|
}
|
|
14804
|
-
}
|
|
14805
|
-
if (typeof minimum === "number") {
|
|
15326
|
+
} else if (typeof minimum === "number") {
|
|
14806
15327
|
json.minimum = minimum;
|
|
14807
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
14808
|
-
if (exclusiveMinimum >= minimum)
|
|
14809
|
-
delete json.minimum;
|
|
14810
|
-
else
|
|
14811
|
-
delete json.exclusiveMinimum;
|
|
14812
|
-
}
|
|
14813
15328
|
}
|
|
14814
|
-
if (
|
|
14815
|
-
if (
|
|
15329
|
+
if (exMax) {
|
|
15330
|
+
if (legacy) {
|
|
14816
15331
|
json.maximum = exclusiveMaximum;
|
|
14817
15332
|
json.exclusiveMaximum = true;
|
|
14818
15333
|
} else {
|
|
14819
15334
|
json.exclusiveMaximum = exclusiveMaximum;
|
|
14820
15335
|
}
|
|
14821
|
-
}
|
|
14822
|
-
if (typeof maximum === "number") {
|
|
15336
|
+
} else if (typeof maximum === "number") {
|
|
14823
15337
|
json.maximum = maximum;
|
|
14824
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
14825
|
-
if (exclusiveMaximum <= maximum)
|
|
14826
|
-
delete json.maximum;
|
|
14827
|
-
else
|
|
14828
|
-
delete json.exclusiveMaximum;
|
|
14829
|
-
}
|
|
14830
15338
|
}
|
|
14831
15339
|
if (typeof multipleOf === "number")
|
|
14832
15340
|
json.multipleOf = multipleOf;
|
|
@@ -14994,7 +15502,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
14994
15502
|
if (typeof maximum === "number")
|
|
14995
15503
|
json.maxItems = maximum;
|
|
14996
15504
|
json.type = "array";
|
|
14997
|
-
json.items = process2(def.element, ctx, {
|
|
15505
|
+
json.items = process2(def.element, ctx, {
|
|
15506
|
+
...params,
|
|
15507
|
+
path: [...params.path, "items"]
|
|
15508
|
+
});
|
|
14998
15509
|
};
|
|
14999
15510
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
15000
15511
|
const json = _json;
|
|
@@ -15292,7 +15803,7 @@ function toJSONSchema(input, params) {
|
|
|
15292
15803
|
extractDefs(ctx, input);
|
|
15293
15804
|
return finalize(ctx, input);
|
|
15294
15805
|
}
|
|
15295
|
-
//
|
|
15806
|
+
// node_modules/zod/v4/core/json-schema-generator.js
|
|
15296
15807
|
class JSONSchemaGenerator {
|
|
15297
15808
|
get metadataRegistry() {
|
|
15298
15809
|
return this.ctx.metadataRegistry;
|
|
@@ -15351,9 +15862,9 @@ class JSONSchemaGenerator {
|
|
|
15351
15862
|
return plainResult;
|
|
15352
15863
|
}
|
|
15353
15864
|
}
|
|
15354
|
-
//
|
|
15865
|
+
// node_modules/zod/v4/core/json-schema.js
|
|
15355
15866
|
var exports_json_schema = {};
|
|
15356
|
-
//
|
|
15867
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
15357
15868
|
var exports_schemas2 = {};
|
|
15358
15869
|
__export(exports_schemas2, {
|
|
15359
15870
|
xor: () => xor2,
|
|
@@ -15413,6 +15924,7 @@ __export(exports_schemas2, {
|
|
|
15413
15924
|
json: () => json,
|
|
15414
15925
|
ipv6: () => ipv62,
|
|
15415
15926
|
ipv4: () => ipv42,
|
|
15927
|
+
invertCodec: () => invertCodec,
|
|
15416
15928
|
intersection: () => intersection2,
|
|
15417
15929
|
int64: () => int64,
|
|
15418
15930
|
int32: () => int32,
|
|
@@ -15522,7 +16034,7 @@ __export(exports_schemas2, {
|
|
|
15522
16034
|
ZodAny: () => ZodAny
|
|
15523
16035
|
});
|
|
15524
16036
|
|
|
15525
|
-
//
|
|
16037
|
+
// node_modules/zod/v4/classic/checks.js
|
|
15526
16038
|
var exports_checks2 = {};
|
|
15527
16039
|
__export(exports_checks2, {
|
|
15528
16040
|
uppercase: () => _uppercase,
|
|
@@ -15556,7 +16068,7 @@ __export(exports_checks2, {
|
|
|
15556
16068
|
endsWith: () => _endsWith
|
|
15557
16069
|
});
|
|
15558
16070
|
|
|
15559
|
-
//
|
|
16071
|
+
// node_modules/zod/v4/classic/iso.js
|
|
15560
16072
|
var exports_iso = {};
|
|
15561
16073
|
__export(exports_iso, {
|
|
15562
16074
|
time: () => time2,
|
|
@@ -15597,7 +16109,7 @@ function duration2(params) {
|
|
|
15597
16109
|
return _isoDuration(ZodISODuration, params);
|
|
15598
16110
|
}
|
|
15599
16111
|
|
|
15600
|
-
//
|
|
16112
|
+
// node_modules/zod/v4/classic/errors.js
|
|
15601
16113
|
var initializer2 = (inst, issues) => {
|
|
15602
16114
|
$ZodError.init(inst, issues);
|
|
15603
16115
|
inst.name = "ZodError";
|
|
@@ -15627,12 +16139,12 @@ var initializer2 = (inst, issues) => {
|
|
|
15627
16139
|
}
|
|
15628
16140
|
});
|
|
15629
16141
|
};
|
|
15630
|
-
var ZodError = $constructor("ZodError", initializer2);
|
|
15631
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
16142
|
+
var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
16143
|
+
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
15632
16144
|
Parent: Error
|
|
15633
16145
|
});
|
|
15634
16146
|
|
|
15635
|
-
//
|
|
16147
|
+
// node_modules/zod/v4/classic/parse.js
|
|
15636
16148
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
15637
16149
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
15638
16150
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -15646,7 +16158,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
15646
16158
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
15647
16159
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
15648
16160
|
|
|
15649
|
-
//
|
|
16161
|
+
// node_modules/zod/v4/classic/schemas.js
|
|
16162
|
+
var _installedGroups = /* @__PURE__ */ new WeakMap;
|
|
16163
|
+
function _installLazyMethods(inst, group, methods) {
|
|
16164
|
+
const proto = Object.getPrototypeOf(inst);
|
|
16165
|
+
let installed = _installedGroups.get(proto);
|
|
16166
|
+
if (!installed) {
|
|
16167
|
+
installed = new Set;
|
|
16168
|
+
_installedGroups.set(proto, installed);
|
|
16169
|
+
}
|
|
16170
|
+
if (installed.has(group))
|
|
16171
|
+
return;
|
|
16172
|
+
installed.add(group);
|
|
16173
|
+
for (const key in methods) {
|
|
16174
|
+
const fn = methods[key];
|
|
16175
|
+
Object.defineProperty(proto, key, {
|
|
16176
|
+
configurable: true,
|
|
16177
|
+
enumerable: false,
|
|
16178
|
+
get() {
|
|
16179
|
+
const bound = fn.bind(this);
|
|
16180
|
+
Object.defineProperty(this, key, {
|
|
16181
|
+
configurable: true,
|
|
16182
|
+
writable: true,
|
|
16183
|
+
enumerable: true,
|
|
16184
|
+
value: bound
|
|
16185
|
+
});
|
|
16186
|
+
return bound;
|
|
16187
|
+
},
|
|
16188
|
+
set(v) {
|
|
16189
|
+
Object.defineProperty(this, key, {
|
|
16190
|
+
configurable: true,
|
|
16191
|
+
writable: true,
|
|
16192
|
+
enumerable: true,
|
|
16193
|
+
value: v
|
|
16194
|
+
});
|
|
16195
|
+
}
|
|
16196
|
+
});
|
|
16197
|
+
}
|
|
16198
|
+
}
|
|
15650
16199
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
15651
16200
|
$ZodType.init(inst, def);
|
|
15652
16201
|
Object.assign(inst["~standard"], {
|
|
@@ -15659,23 +16208,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
15659
16208
|
inst.def = def;
|
|
15660
16209
|
inst.type = def.type;
|
|
15661
16210
|
Object.defineProperty(inst, "_def", { value: def });
|
|
15662
|
-
inst.check = (...checks2) => {
|
|
15663
|
-
return inst.clone(exports_util.mergeDefs(def, {
|
|
15664
|
-
checks: [
|
|
15665
|
-
...def.checks ?? [],
|
|
15666
|
-
...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
15667
|
-
]
|
|
15668
|
-
}), {
|
|
15669
|
-
parent: true
|
|
15670
|
-
});
|
|
15671
|
-
};
|
|
15672
|
-
inst.with = inst.check;
|
|
15673
|
-
inst.clone = (def2, params) => clone2(inst, def2, params);
|
|
15674
|
-
inst.brand = () => inst;
|
|
15675
|
-
inst.register = (reg, meta2) => {
|
|
15676
|
-
reg.add(inst, meta2);
|
|
15677
|
-
return inst;
|
|
15678
|
-
};
|
|
15679
16211
|
inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse });
|
|
15680
16212
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
15681
16213
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -15689,45 +16221,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
15689
16221
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
15690
16222
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
15691
16223
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
15692
|
-
inst
|
|
15693
|
-
|
|
15694
|
-
|
|
15695
|
-
|
|
15696
|
-
|
|
15697
|
-
|
|
15698
|
-
|
|
15699
|
-
|
|
15700
|
-
|
|
15701
|
-
|
|
15702
|
-
|
|
15703
|
-
|
|
15704
|
-
|
|
15705
|
-
|
|
15706
|
-
|
|
15707
|
-
|
|
15708
|
-
|
|
15709
|
-
|
|
15710
|
-
|
|
15711
|
-
|
|
15712
|
-
|
|
15713
|
-
|
|
16224
|
+
_installLazyMethods(inst, "ZodType", {
|
|
16225
|
+
check(...chks) {
|
|
16226
|
+
const def2 = this.def;
|
|
16227
|
+
return this.clone(exports_util.mergeDefs(def2, {
|
|
16228
|
+
checks: [
|
|
16229
|
+
...def2.checks ?? [],
|
|
16230
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
16231
|
+
]
|
|
16232
|
+
}), { parent: true });
|
|
16233
|
+
},
|
|
16234
|
+
with(...chks) {
|
|
16235
|
+
return this.check(...chks);
|
|
16236
|
+
},
|
|
16237
|
+
clone(def2, params) {
|
|
16238
|
+
return clone2(this, def2, params);
|
|
16239
|
+
},
|
|
16240
|
+
brand() {
|
|
16241
|
+
return this;
|
|
16242
|
+
},
|
|
16243
|
+
register(reg, meta2) {
|
|
16244
|
+
reg.add(this, meta2);
|
|
16245
|
+
return this;
|
|
16246
|
+
},
|
|
16247
|
+
refine(check, params) {
|
|
16248
|
+
return this.check(refine(check, params));
|
|
16249
|
+
},
|
|
16250
|
+
superRefine(refinement, params) {
|
|
16251
|
+
return this.check(superRefine(refinement, params));
|
|
16252
|
+
},
|
|
16253
|
+
overwrite(fn) {
|
|
16254
|
+
return this.check(_overwrite(fn));
|
|
16255
|
+
},
|
|
16256
|
+
optional() {
|
|
16257
|
+
return optional(this);
|
|
16258
|
+
},
|
|
16259
|
+
exactOptional() {
|
|
16260
|
+
return exactOptional(this);
|
|
16261
|
+
},
|
|
16262
|
+
nullable() {
|
|
16263
|
+
return nullable(this);
|
|
16264
|
+
},
|
|
16265
|
+
nullish() {
|
|
16266
|
+
return optional(nullable(this));
|
|
16267
|
+
},
|
|
16268
|
+
nonoptional(params) {
|
|
16269
|
+
return nonoptional(this, params);
|
|
16270
|
+
},
|
|
16271
|
+
array() {
|
|
16272
|
+
return array(this);
|
|
16273
|
+
},
|
|
16274
|
+
or(arg) {
|
|
16275
|
+
return union2([this, arg]);
|
|
16276
|
+
},
|
|
16277
|
+
and(arg) {
|
|
16278
|
+
return intersection2(this, arg);
|
|
16279
|
+
},
|
|
16280
|
+
transform(tx) {
|
|
16281
|
+
return pipe(this, transform(tx));
|
|
16282
|
+
},
|
|
16283
|
+
default(d) {
|
|
16284
|
+
return _default2(this, d);
|
|
16285
|
+
},
|
|
16286
|
+
prefault(d) {
|
|
16287
|
+
return prefault(this, d);
|
|
16288
|
+
},
|
|
16289
|
+
catch(params) {
|
|
16290
|
+
return _catch2(this, params);
|
|
16291
|
+
},
|
|
16292
|
+
pipe(target) {
|
|
16293
|
+
return pipe(this, target);
|
|
16294
|
+
},
|
|
16295
|
+
readonly() {
|
|
16296
|
+
return readonly(this);
|
|
16297
|
+
},
|
|
16298
|
+
describe(description) {
|
|
16299
|
+
const cl = this.clone();
|
|
16300
|
+
globalRegistry.add(cl, { description });
|
|
16301
|
+
return cl;
|
|
16302
|
+
},
|
|
16303
|
+
meta(...args) {
|
|
16304
|
+
if (args.length === 0)
|
|
16305
|
+
return globalRegistry.get(this);
|
|
16306
|
+
const cl = this.clone();
|
|
16307
|
+
globalRegistry.add(cl, args[0]);
|
|
16308
|
+
return cl;
|
|
16309
|
+
},
|
|
16310
|
+
isOptional() {
|
|
16311
|
+
return this.safeParse(undefined).success;
|
|
16312
|
+
},
|
|
16313
|
+
isNullable() {
|
|
16314
|
+
return this.safeParse(null).success;
|
|
16315
|
+
},
|
|
16316
|
+
apply(fn) {
|
|
16317
|
+
return fn(this);
|
|
16318
|
+
}
|
|
16319
|
+
});
|
|
15714
16320
|
Object.defineProperty(inst, "description", {
|
|
15715
16321
|
get() {
|
|
15716
16322
|
return globalRegistry.get(inst)?.description;
|
|
15717
16323
|
},
|
|
15718
16324
|
configurable: true
|
|
15719
16325
|
});
|
|
15720
|
-
inst.meta = (...args) => {
|
|
15721
|
-
if (args.length === 0) {
|
|
15722
|
-
return globalRegistry.get(inst);
|
|
15723
|
-
}
|
|
15724
|
-
const cl = inst.clone();
|
|
15725
|
-
globalRegistry.add(cl, args[0]);
|
|
15726
|
-
return cl;
|
|
15727
|
-
};
|
|
15728
|
-
inst.isOptional = () => inst.safeParse(undefined).success;
|
|
15729
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
15730
|
-
inst.apply = (fn) => fn(inst);
|
|
15731
16326
|
return inst;
|
|
15732
16327
|
});
|
|
15733
16328
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -15738,21 +16333,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
15738
16333
|
inst.format = bag.format ?? null;
|
|
15739
16334
|
inst.minLength = bag.minimum ?? null;
|
|
15740
16335
|
inst.maxLength = bag.maximum ?? null;
|
|
15741
|
-
inst
|
|
15742
|
-
|
|
15743
|
-
|
|
15744
|
-
|
|
15745
|
-
|
|
15746
|
-
|
|
15747
|
-
|
|
15748
|
-
|
|
15749
|
-
|
|
15750
|
-
|
|
15751
|
-
|
|
15752
|
-
|
|
15753
|
-
|
|
15754
|
-
|
|
15755
|
-
|
|
16336
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
16337
|
+
regex(...args) {
|
|
16338
|
+
return this.check(_regex(...args));
|
|
16339
|
+
},
|
|
16340
|
+
includes(...args) {
|
|
16341
|
+
return this.check(_includes(...args));
|
|
16342
|
+
},
|
|
16343
|
+
startsWith(...args) {
|
|
16344
|
+
return this.check(_startsWith(...args));
|
|
16345
|
+
},
|
|
16346
|
+
endsWith(...args) {
|
|
16347
|
+
return this.check(_endsWith(...args));
|
|
16348
|
+
},
|
|
16349
|
+
min(...args) {
|
|
16350
|
+
return this.check(_minLength(...args));
|
|
16351
|
+
},
|
|
16352
|
+
max(...args) {
|
|
16353
|
+
return this.check(_maxLength(...args));
|
|
16354
|
+
},
|
|
16355
|
+
length(...args) {
|
|
16356
|
+
return this.check(_length(...args));
|
|
16357
|
+
},
|
|
16358
|
+
nonempty(...args) {
|
|
16359
|
+
return this.check(_minLength(1, ...args));
|
|
16360
|
+
},
|
|
16361
|
+
lowercase(params) {
|
|
16362
|
+
return this.check(_lowercase(params));
|
|
16363
|
+
},
|
|
16364
|
+
uppercase(params) {
|
|
16365
|
+
return this.check(_uppercase(params));
|
|
16366
|
+
},
|
|
16367
|
+
trim() {
|
|
16368
|
+
return this.check(_trim());
|
|
16369
|
+
},
|
|
16370
|
+
normalize(...args) {
|
|
16371
|
+
return this.check(_normalize(...args));
|
|
16372
|
+
},
|
|
16373
|
+
toLowerCase() {
|
|
16374
|
+
return this.check(_toLowerCase());
|
|
16375
|
+
},
|
|
16376
|
+
toUpperCase() {
|
|
16377
|
+
return this.check(_toUpperCase());
|
|
16378
|
+
},
|
|
16379
|
+
slugify() {
|
|
16380
|
+
return this.check(_slugify());
|
|
16381
|
+
}
|
|
16382
|
+
});
|
|
15756
16383
|
});
|
|
15757
16384
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
15758
16385
|
$ZodString.init(inst, def);
|
|
@@ -15831,7 +16458,7 @@ function url(params) {
|
|
|
15831
16458
|
}
|
|
15832
16459
|
function httpUrl(params) {
|
|
15833
16460
|
return _url(ZodURL, {
|
|
15834
|
-
protocol:
|
|
16461
|
+
protocol: exports_regexes.httpProtocol,
|
|
15835
16462
|
hostname: exports_regexes.domain,
|
|
15836
16463
|
...exports_util.normalizeParams(params)
|
|
15837
16464
|
});
|
|
@@ -15973,21 +16600,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
15973
16600
|
$ZodNumber.init(inst, def);
|
|
15974
16601
|
ZodType.init(inst, def);
|
|
15975
16602
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
15976
|
-
inst
|
|
15977
|
-
|
|
15978
|
-
|
|
15979
|
-
|
|
15980
|
-
|
|
15981
|
-
|
|
15982
|
-
|
|
15983
|
-
|
|
15984
|
-
|
|
15985
|
-
|
|
15986
|
-
|
|
15987
|
-
|
|
15988
|
-
|
|
15989
|
-
|
|
15990
|
-
|
|
16603
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
16604
|
+
gt(value, params) {
|
|
16605
|
+
return this.check(_gt(value, params));
|
|
16606
|
+
},
|
|
16607
|
+
gte(value, params) {
|
|
16608
|
+
return this.check(_gte(value, params));
|
|
16609
|
+
},
|
|
16610
|
+
min(value, params) {
|
|
16611
|
+
return this.check(_gte(value, params));
|
|
16612
|
+
},
|
|
16613
|
+
lt(value, params) {
|
|
16614
|
+
return this.check(_lt(value, params));
|
|
16615
|
+
},
|
|
16616
|
+
lte(value, params) {
|
|
16617
|
+
return this.check(_lte(value, params));
|
|
16618
|
+
},
|
|
16619
|
+
max(value, params) {
|
|
16620
|
+
return this.check(_lte(value, params));
|
|
16621
|
+
},
|
|
16622
|
+
int(params) {
|
|
16623
|
+
return this.check(int(params));
|
|
16624
|
+
},
|
|
16625
|
+
safe(params) {
|
|
16626
|
+
return this.check(int(params));
|
|
16627
|
+
},
|
|
16628
|
+
positive(params) {
|
|
16629
|
+
return this.check(_gt(0, params));
|
|
16630
|
+
},
|
|
16631
|
+
nonnegative(params) {
|
|
16632
|
+
return this.check(_gte(0, params));
|
|
16633
|
+
},
|
|
16634
|
+
negative(params) {
|
|
16635
|
+
return this.check(_lt(0, params));
|
|
16636
|
+
},
|
|
16637
|
+
nonpositive(params) {
|
|
16638
|
+
return this.check(_lte(0, params));
|
|
16639
|
+
},
|
|
16640
|
+
multipleOf(value, params) {
|
|
16641
|
+
return this.check(_multipleOf(value, params));
|
|
16642
|
+
},
|
|
16643
|
+
step(value, params) {
|
|
16644
|
+
return this.check(_multipleOf(value, params));
|
|
16645
|
+
},
|
|
16646
|
+
finite() {
|
|
16647
|
+
return this;
|
|
16648
|
+
}
|
|
16649
|
+
});
|
|
15991
16650
|
const bag = inst._zod.bag;
|
|
15992
16651
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
15993
16652
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -16134,11 +16793,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
16134
16793
|
ZodType.init(inst, def);
|
|
16135
16794
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
16136
16795
|
inst.element = def.element;
|
|
16137
|
-
inst
|
|
16138
|
-
|
|
16139
|
-
|
|
16140
|
-
|
|
16141
|
-
|
|
16796
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
16797
|
+
min(n, params) {
|
|
16798
|
+
return this.check(_minLength(n, params));
|
|
16799
|
+
},
|
|
16800
|
+
nonempty(params) {
|
|
16801
|
+
return this.check(_minLength(1, params));
|
|
16802
|
+
},
|
|
16803
|
+
max(n, params) {
|
|
16804
|
+
return this.check(_maxLength(n, params));
|
|
16805
|
+
},
|
|
16806
|
+
length(n, params) {
|
|
16807
|
+
return this.check(_length(n, params));
|
|
16808
|
+
},
|
|
16809
|
+
unwrap() {
|
|
16810
|
+
return this.element;
|
|
16811
|
+
}
|
|
16812
|
+
});
|
|
16142
16813
|
});
|
|
16143
16814
|
function array(element, params) {
|
|
16144
16815
|
return _array(ZodArray, element, params);
|
|
@@ -16154,23 +16825,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
16154
16825
|
exports_util.defineLazy(inst, "shape", () => {
|
|
16155
16826
|
return def.shape;
|
|
16156
16827
|
});
|
|
16157
|
-
inst
|
|
16158
|
-
|
|
16159
|
-
|
|
16160
|
-
|
|
16161
|
-
|
|
16162
|
-
|
|
16163
|
-
|
|
16164
|
-
|
|
16165
|
-
|
|
16166
|
-
|
|
16167
|
-
|
|
16168
|
-
|
|
16169
|
-
|
|
16170
|
-
|
|
16171
|
-
|
|
16172
|
-
|
|
16173
|
-
|
|
16828
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
16829
|
+
keyof() {
|
|
16830
|
+
return _enum2(Object.keys(this._zod.def.shape));
|
|
16831
|
+
},
|
|
16832
|
+
catchall(catchall) {
|
|
16833
|
+
return this.clone({ ...this._zod.def, catchall });
|
|
16834
|
+
},
|
|
16835
|
+
passthrough() {
|
|
16836
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
16837
|
+
},
|
|
16838
|
+
loose() {
|
|
16839
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
16840
|
+
},
|
|
16841
|
+
strict() {
|
|
16842
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
16843
|
+
},
|
|
16844
|
+
strip() {
|
|
16845
|
+
return this.clone({ ...this._zod.def, catchall: undefined });
|
|
16846
|
+
},
|
|
16847
|
+
extend(incoming) {
|
|
16848
|
+
return exports_util.extend(this, incoming);
|
|
16849
|
+
},
|
|
16850
|
+
safeExtend(incoming) {
|
|
16851
|
+
return exports_util.safeExtend(this, incoming);
|
|
16852
|
+
},
|
|
16853
|
+
merge(other) {
|
|
16854
|
+
return exports_util.merge(this, other);
|
|
16855
|
+
},
|
|
16856
|
+
pick(mask) {
|
|
16857
|
+
return exports_util.pick(this, mask);
|
|
16858
|
+
},
|
|
16859
|
+
omit(mask) {
|
|
16860
|
+
return exports_util.omit(this, mask);
|
|
16861
|
+
},
|
|
16862
|
+
partial(...args) {
|
|
16863
|
+
return exports_util.partial(ZodOptional, this, args[0]);
|
|
16864
|
+
},
|
|
16865
|
+
required(...args) {
|
|
16866
|
+
return exports_util.required(ZodNonOptional, this, args[0]);
|
|
16867
|
+
}
|
|
16868
|
+
});
|
|
16174
16869
|
});
|
|
16175
16870
|
function object(shape, params) {
|
|
16176
16871
|
const def = {
|
|
@@ -16275,6 +16970,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
16275
16970
|
inst.valueType = def.valueType;
|
|
16276
16971
|
});
|
|
16277
16972
|
function record(keyType, valueType, params) {
|
|
16973
|
+
if (!valueType || !valueType._zod) {
|
|
16974
|
+
return new ZodRecord({
|
|
16975
|
+
type: "record",
|
|
16976
|
+
keyType: string2(),
|
|
16977
|
+
valueType: keyType,
|
|
16978
|
+
...exports_util.normalizeParams(valueType)
|
|
16979
|
+
});
|
|
16980
|
+
}
|
|
16278
16981
|
return new ZodRecord({
|
|
16279
16982
|
type: "record",
|
|
16280
16983
|
keyType,
|
|
@@ -16603,6 +17306,16 @@ function codec(in_, out, params) {
|
|
|
16603
17306
|
reverseTransform: params.encode
|
|
16604
17307
|
});
|
|
16605
17308
|
}
|
|
17309
|
+
function invertCodec(codec2) {
|
|
17310
|
+
const def = codec2._zod.def;
|
|
17311
|
+
return new ZodCodec({
|
|
17312
|
+
type: "pipe",
|
|
17313
|
+
in: def.out,
|
|
17314
|
+
out: def.in,
|
|
17315
|
+
transform: def.reverseTransform,
|
|
17316
|
+
reverseTransform: def.transform
|
|
17317
|
+
});
|
|
17318
|
+
}
|
|
16606
17319
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
16607
17320
|
$ZodReadonly.init(inst, def);
|
|
16608
17321
|
ZodType.init(inst, def);
|
|
@@ -16681,8 +17394,8 @@ function custom(fn, _params) {
|
|
|
16681
17394
|
function refine(fn, _params = {}) {
|
|
16682
17395
|
return _refine(ZodCustom, fn, _params);
|
|
16683
17396
|
}
|
|
16684
|
-
function superRefine(fn) {
|
|
16685
|
-
return _superRefine(fn);
|
|
17397
|
+
function superRefine(fn, params) {
|
|
17398
|
+
return _superRefine(fn, params);
|
|
16686
17399
|
}
|
|
16687
17400
|
var describe2 = describe;
|
|
16688
17401
|
var meta2 = meta;
|
|
@@ -16722,7 +17435,7 @@ function json(params) {
|
|
|
16722
17435
|
function preprocess(fn, schema) {
|
|
16723
17436
|
return pipe(transform(fn), schema);
|
|
16724
17437
|
}
|
|
16725
|
-
//
|
|
17438
|
+
// node_modules/zod/v4/classic/compat.js
|
|
16726
17439
|
var ZodIssueCode = {
|
|
16727
17440
|
invalid_type: "invalid_type",
|
|
16728
17441
|
too_big: "too_big",
|
|
@@ -16746,13 +17459,13 @@ function getErrorMap() {
|
|
|
16746
17459
|
}
|
|
16747
17460
|
var ZodFirstPartyTypeKind;
|
|
16748
17461
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
16749
|
-
//
|
|
17462
|
+
// node_modules/zod/v4/classic/from-json-schema.js
|
|
16750
17463
|
var z = {
|
|
16751
17464
|
...exports_schemas2,
|
|
16752
17465
|
...exports_checks2,
|
|
16753
17466
|
iso: exports_iso
|
|
16754
17467
|
};
|
|
16755
|
-
var RECOGNIZED_KEYS = new Set([
|
|
17468
|
+
var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
|
|
16756
17469
|
"$schema",
|
|
16757
17470
|
"$ref",
|
|
16758
17471
|
"$defs",
|
|
@@ -17126,12 +17839,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
17126
17839
|
default:
|
|
17127
17840
|
throw new Error(`Unsupported type: ${type}`);
|
|
17128
17841
|
}
|
|
17129
|
-
if (schema.description) {
|
|
17130
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
17131
|
-
}
|
|
17132
|
-
if (schema.default !== undefined) {
|
|
17133
|
-
zodSchema = zodSchema.default(schema.default);
|
|
17134
|
-
}
|
|
17135
17842
|
return zodSchema;
|
|
17136
17843
|
}
|
|
17137
17844
|
function convertSchema(schema, ctx) {
|
|
@@ -17168,6 +17875,9 @@ function convertSchema(schema, ctx) {
|
|
|
17168
17875
|
if (schema.readOnly === true) {
|
|
17169
17876
|
baseSchema = z.readonly(baseSchema);
|
|
17170
17877
|
}
|
|
17878
|
+
if (schema.default !== undefined) {
|
|
17879
|
+
baseSchema = baseSchema.default(schema.default);
|
|
17880
|
+
}
|
|
17171
17881
|
const extraMeta = {};
|
|
17172
17882
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
17173
17883
|
for (const key of coreMetadataKeys) {
|
|
@@ -17189,25 +17899,34 @@ function convertSchema(schema, ctx) {
|
|
|
17189
17899
|
if (Object.keys(extraMeta).length > 0) {
|
|
17190
17900
|
ctx.registry.add(baseSchema, extraMeta);
|
|
17191
17901
|
}
|
|
17902
|
+
if (schema.description) {
|
|
17903
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
17904
|
+
}
|
|
17192
17905
|
return baseSchema;
|
|
17193
17906
|
}
|
|
17194
17907
|
function fromJSONSchema(schema, params) {
|
|
17195
17908
|
if (typeof schema === "boolean") {
|
|
17196
17909
|
return schema ? z.any() : z.never();
|
|
17197
17910
|
}
|
|
17198
|
-
|
|
17199
|
-
|
|
17911
|
+
let normalized;
|
|
17912
|
+
try {
|
|
17913
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
17914
|
+
} catch {
|
|
17915
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
17916
|
+
}
|
|
17917
|
+
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
17918
|
+
const defs = normalized.$defs || normalized.definitions || {};
|
|
17200
17919
|
const ctx = {
|
|
17201
17920
|
version: version2,
|
|
17202
17921
|
defs,
|
|
17203
17922
|
refs: new Map,
|
|
17204
17923
|
processing: new Set,
|
|
17205
|
-
rootSchema:
|
|
17924
|
+
rootSchema: normalized,
|
|
17206
17925
|
registry: params?.registry ?? globalRegistry
|
|
17207
17926
|
};
|
|
17208
|
-
return convertSchema(
|
|
17927
|
+
return convertSchema(normalized, ctx);
|
|
17209
17928
|
}
|
|
17210
|
-
//
|
|
17929
|
+
// node_modules/zod/v4/classic/coerce.js
|
|
17211
17930
|
var exports_coerce = {};
|
|
17212
17931
|
__export(exports_coerce, {
|
|
17213
17932
|
string: () => string3,
|
|
@@ -17232,14 +17951,16 @@ function date4(params) {
|
|
|
17232
17951
|
return _coercedDate(ZodDate, params);
|
|
17233
17952
|
}
|
|
17234
17953
|
|
|
17235
|
-
//
|
|
17954
|
+
// node_modules/zod/v4/classic/external.js
|
|
17236
17955
|
config(en_default());
|
|
17237
|
-
//
|
|
17956
|
+
// node_modules/nanoid/index.js
|
|
17238
17957
|
import { webcrypto as crypto } from "node:crypto";
|
|
17239
17958
|
var POOL_SIZE_MULTIPLIER = 128;
|
|
17240
17959
|
var pool;
|
|
17241
17960
|
var poolOffset;
|
|
17242
17961
|
function fillPool(bytes) {
|
|
17962
|
+
if (bytes < 0 || bytes > 1024)
|
|
17963
|
+
throw new RangeError("Wrong ID size");
|
|
17243
17964
|
if (!pool || pool.length < bytes) {
|
|
17244
17965
|
pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
|
|
17245
17966
|
crypto.getRandomValues(pool);
|
|
@@ -18429,10 +19150,10 @@ function createHandleCtx(req, res) {
|
|
|
18429
19150
|
res: handRes
|
|
18430
19151
|
};
|
|
18431
19152
|
}
|
|
18432
|
-
var resultError = (
|
|
19153
|
+
var resultError = (error51, code = 500) => {
|
|
18433
19154
|
const r = {
|
|
18434
19155
|
code,
|
|
18435
|
-
message:
|
|
19156
|
+
message: error51
|
|
18436
19157
|
};
|
|
18437
19158
|
return JSON.stringify(r);
|
|
18438
19159
|
};
|
|
@@ -18651,7 +19372,7 @@ class ServerBase {
|
|
|
18651
19372
|
}
|
|
18652
19373
|
}
|
|
18653
19374
|
|
|
18654
|
-
// node_modules/ws/wrapper.mjs
|
|
19375
|
+
// node_modules/.pnpm/@kevisual+ws@8.0.0/node_modules/@kevisual/ws/wrapper.mjs
|
|
18655
19376
|
var import_stream = __toESM(require_stream(), 1);
|
|
18656
19377
|
var import_receiver = __toESM(require_receiver(), 1);
|
|
18657
19378
|
var import_sender = __toESM(require_sender(), 1);
|
|
@@ -19087,6 +19808,7 @@ export {
|
|
|
19087
19808
|
util,
|
|
19088
19809
|
tool,
|
|
19089
19810
|
toJSONSchema3 as toJSONSchema,
|
|
19811
|
+
listenProcess,
|
|
19090
19812
|
handleServer,
|
|
19091
19813
|
fromJSONSchema3 as fromJSONSchema,
|
|
19092
19814
|
define2 as define,
|
|
@@ -19097,6 +19819,7 @@ export {
|
|
|
19097
19819
|
QueryUtil,
|
|
19098
19820
|
QueryRouterServer,
|
|
19099
19821
|
QueryRouter,
|
|
19822
|
+
MockProcess,
|
|
19100
19823
|
Mini,
|
|
19101
19824
|
CustomError,
|
|
19102
19825
|
App
|