@dsh-remote/relay 3.0.8 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/main.js +179 -138
- package/package.json +11 -12
package/dist/bundle/main.js
CHANGED
|
@@ -40,9 +40,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
40
40
|
mod
|
|
41
41
|
));
|
|
42
42
|
|
|
43
|
-
//
|
|
43
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/constants.js
|
|
44
44
|
var require_constants = __commonJS({
|
|
45
|
-
"
|
|
45
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/constants.js"(exports, module) {
|
|
46
46
|
"use strict";
|
|
47
47
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
48
48
|
var hasBlob = typeof Blob !== "undefined";
|
|
@@ -63,9 +63,9 @@ var require_constants = __commonJS({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
//
|
|
66
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/buffer-util.js
|
|
67
67
|
var require_buffer_util = __commonJS({
|
|
68
|
-
"
|
|
68
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
69
69
|
"use strict";
|
|
70
70
|
var { EMPTY_BUFFER } = require_constants();
|
|
71
71
|
var FastBuffer = Buffer[Symbol.species];
|
|
@@ -138,9 +138,9 @@ var require_buffer_util = __commonJS({
|
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
//
|
|
141
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/limiter.js
|
|
142
142
|
var require_limiter = __commonJS({
|
|
143
|
-
"
|
|
143
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/limiter.js"(exports, module) {
|
|
144
144
|
"use strict";
|
|
145
145
|
var kDone = /* @__PURE__ */ Symbol("kDone");
|
|
146
146
|
var kRun = /* @__PURE__ */ Symbol("kRun");
|
|
@@ -188,9 +188,9 @@ var require_limiter = __commonJS({
|
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
|
|
191
|
-
//
|
|
191
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/permessage-deflate.js
|
|
192
192
|
var require_permessage_deflate = __commonJS({
|
|
193
|
-
"
|
|
193
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
|
194
194
|
"use strict";
|
|
195
195
|
var zlib = __require("zlib");
|
|
196
196
|
var bufferUtil = require_buffer_util();
|
|
@@ -571,9 +571,9 @@ var require_permessage_deflate = __commonJS({
|
|
|
571
571
|
}
|
|
572
572
|
});
|
|
573
573
|
|
|
574
|
-
//
|
|
574
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/validation.js
|
|
575
575
|
var require_validation = __commonJS({
|
|
576
|
-
"
|
|
576
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/validation.js"(exports, module) {
|
|
577
577
|
"use strict";
|
|
578
578
|
var { isUtf8 } = __require("buffer");
|
|
579
579
|
var { hasBlob } = require_constants();
|
|
@@ -772,9 +772,9 @@ var require_validation = __commonJS({
|
|
|
772
772
|
}
|
|
773
773
|
});
|
|
774
774
|
|
|
775
|
-
//
|
|
775
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/receiver.js
|
|
776
776
|
var require_receiver = __commonJS({
|
|
777
|
-
"
|
|
777
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/receiver.js"(exports, module) {
|
|
778
778
|
"use strict";
|
|
779
779
|
var { Writable } = __require("stream");
|
|
780
780
|
var PerMessageDeflate2 = require_permessage_deflate();
|
|
@@ -1395,9 +1395,9 @@ var require_receiver = __commonJS({
|
|
|
1395
1395
|
}
|
|
1396
1396
|
});
|
|
1397
1397
|
|
|
1398
|
-
//
|
|
1398
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/sender.js
|
|
1399
1399
|
var require_sender = __commonJS({
|
|
1400
|
-
"
|
|
1400
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/sender.js"(exports, module) {
|
|
1401
1401
|
"use strict";
|
|
1402
1402
|
var { Duplex } = __require("stream");
|
|
1403
1403
|
var { randomFillSync } = __require("crypto");
|
|
@@ -1888,9 +1888,9 @@ var require_sender = __commonJS({
|
|
|
1888
1888
|
}
|
|
1889
1889
|
});
|
|
1890
1890
|
|
|
1891
|
-
//
|
|
1891
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/event-target.js
|
|
1892
1892
|
var require_event_target = __commonJS({
|
|
1893
|
-
"
|
|
1893
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/event-target.js"(exports, module) {
|
|
1894
1894
|
"use strict";
|
|
1895
1895
|
var { kForOnEventAttribute, kListener } = require_constants();
|
|
1896
1896
|
var kCode = /* @__PURE__ */ Symbol("kCode");
|
|
@@ -2117,9 +2117,9 @@ var require_event_target = __commonJS({
|
|
|
2117
2117
|
}
|
|
2118
2118
|
});
|
|
2119
2119
|
|
|
2120
|
-
//
|
|
2120
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/extension.js
|
|
2121
2121
|
var require_extension = __commonJS({
|
|
2122
|
-
"
|
|
2122
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/extension.js"(exports, module) {
|
|
2123
2123
|
"use strict";
|
|
2124
2124
|
var { tokenChars } = require_validation();
|
|
2125
2125
|
function push(dest, name, elem) {
|
|
@@ -2270,16 +2270,16 @@ var require_extension = __commonJS({
|
|
|
2270
2270
|
}
|
|
2271
2271
|
});
|
|
2272
2272
|
|
|
2273
|
-
//
|
|
2273
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/websocket.js
|
|
2274
2274
|
var require_websocket = __commonJS({
|
|
2275
|
-
"
|
|
2275
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/websocket.js"(exports, module) {
|
|
2276
2276
|
"use strict";
|
|
2277
2277
|
var EventEmitter = __require("events");
|
|
2278
2278
|
var https = __require("https");
|
|
2279
2279
|
var http = __require("http");
|
|
2280
2280
|
var net = __require("net");
|
|
2281
2281
|
var tls = __require("tls");
|
|
2282
|
-
var { randomBytes:
|
|
2282
|
+
var { randomBytes: randomBytes3, createHash } = __require("crypto");
|
|
2283
2283
|
var { Duplex, Readable } = __require("stream");
|
|
2284
2284
|
var { URL: URL2 } = __require("url");
|
|
2285
2285
|
var PerMessageDeflate2 = require_permessage_deflate();
|
|
@@ -2830,7 +2830,7 @@ var require_websocket = __commonJS({
|
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
2832
|
const defaultPort = isSecure ? 443 : 80;
|
|
2833
|
-
const key =
|
|
2833
|
+
const key = randomBytes3(16).toString("base64");
|
|
2834
2834
|
const request = isSecure ? https.request : http.request;
|
|
2835
2835
|
const protocolSet = /* @__PURE__ */ new Set();
|
|
2836
2836
|
let perMessageDeflate;
|
|
@@ -3179,9 +3179,9 @@ var require_websocket = __commonJS({
|
|
|
3179
3179
|
}
|
|
3180
3180
|
});
|
|
3181
3181
|
|
|
3182
|
-
//
|
|
3182
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/stream.js
|
|
3183
3183
|
var require_stream = __commonJS({
|
|
3184
|
-
"
|
|
3184
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/stream.js"(exports, module) {
|
|
3185
3185
|
"use strict";
|
|
3186
3186
|
var WebSocket3 = require_websocket();
|
|
3187
3187
|
var { Duplex } = __require("stream");
|
|
@@ -3277,9 +3277,9 @@ var require_stream = __commonJS({
|
|
|
3277
3277
|
}
|
|
3278
3278
|
});
|
|
3279
3279
|
|
|
3280
|
-
//
|
|
3280
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/subprotocol.js
|
|
3281
3281
|
var require_subprotocol = __commonJS({
|
|
3282
|
-
"
|
|
3282
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/subprotocol.js"(exports, module) {
|
|
3283
3283
|
"use strict";
|
|
3284
3284
|
var { tokenChars } = require_validation();
|
|
3285
3285
|
function parse3(header) {
|
|
@@ -3322,9 +3322,9 @@ var require_subprotocol = __commonJS({
|
|
|
3322
3322
|
}
|
|
3323
3323
|
});
|
|
3324
3324
|
|
|
3325
|
-
//
|
|
3325
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/websocket-server.js
|
|
3326
3326
|
var require_websocket_server = __commonJS({
|
|
3327
|
-
"
|
|
3327
|
+
"node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/websocket-server.js"(exports, module) {
|
|
3328
3328
|
"use strict";
|
|
3329
3329
|
var EventEmitter = __require("events");
|
|
3330
3330
|
var http = __require("http");
|
|
@@ -3726,7 +3726,7 @@ var require_websocket_server = __commonJS({
|
|
|
3726
3726
|
// src/main.ts
|
|
3727
3727
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
3728
3728
|
|
|
3729
|
-
//
|
|
3729
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/external.js
|
|
3730
3730
|
var external_exports = {};
|
|
3731
3731
|
__export(external_exports, {
|
|
3732
3732
|
$brand: () => $brand,
|
|
@@ -3989,7 +3989,7 @@ __export(external_exports, {
|
|
|
3989
3989
|
xor: () => xor
|
|
3990
3990
|
});
|
|
3991
3991
|
|
|
3992
|
-
//
|
|
3992
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/index.js
|
|
3993
3993
|
var core_exports2 = {};
|
|
3994
3994
|
__export(core_exports2, {
|
|
3995
3995
|
$ZodAny: () => $ZodAny,
|
|
@@ -4306,7 +4306,7 @@ __export(core_exports2, {
|
|
|
4306
4306
|
withParser: () => withParser
|
|
4307
4307
|
});
|
|
4308
4308
|
|
|
4309
|
-
//
|
|
4309
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
|
|
4310
4310
|
var util_exports = {};
|
|
4311
4311
|
__export(util_exports, {
|
|
4312
4312
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -5149,7 +5149,7 @@ function constantCatch(value) {
|
|
|
5149
5149
|
return fn;
|
|
5150
5150
|
}
|
|
5151
5151
|
|
|
5152
|
-
//
|
|
5152
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
|
|
5153
5153
|
var _a;
|
|
5154
5154
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
5155
5155
|
status: "aborted"
|
|
@@ -5271,7 +5271,7 @@ function config(newConfig) {
|
|
|
5271
5271
|
return globalConfig;
|
|
5272
5272
|
}
|
|
5273
5273
|
|
|
5274
|
-
//
|
|
5274
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
|
|
5275
5275
|
function _getMessage() {
|
|
5276
5276
|
const internals = this._zod;
|
|
5277
5277
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -5463,7 +5463,7 @@ function prettifyError(error62) {
|
|
|
5463
5463
|
return lines.join("\n");
|
|
5464
5464
|
}
|
|
5465
5465
|
|
|
5466
|
-
//
|
|
5466
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
|
|
5467
5467
|
function finalizeParams(callee, params) {
|
|
5468
5468
|
return { callee: params?.callee ?? callee, Err: params?.Err };
|
|
5469
5469
|
}
|
|
@@ -5623,7 +5623,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
5623
5623
|
};
|
|
5624
5624
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
5625
5625
|
|
|
5626
|
-
//
|
|
5626
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/regexes.js
|
|
5627
5627
|
var regexes_exports = {};
|
|
5628
5628
|
__export(regexes_exports, {
|
|
5629
5629
|
anyString: () => anyString,
|
|
@@ -5795,7 +5795,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
5795
5795
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
5796
5796
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
5797
5797
|
|
|
5798
|
-
//
|
|
5798
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.js
|
|
5799
5799
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
5800
5800
|
var _a3;
|
|
5801
5801
|
inst._zod ?? (inst._zod = {});
|
|
@@ -6271,7 +6271,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
6271
6271
|
};
|
|
6272
6272
|
});
|
|
6273
6273
|
|
|
6274
|
-
//
|
|
6274
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.js
|
|
6275
6275
|
var Doc = class {
|
|
6276
6276
|
constructor(args = [], closed = {}) {
|
|
6277
6277
|
this.content = [];
|
|
@@ -6312,14 +6312,14 @@ ${content.join("\n")}
|
|
|
6312
6312
|
}
|
|
6313
6313
|
};
|
|
6314
6314
|
|
|
6315
|
-
//
|
|
6315
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.js
|
|
6316
6316
|
var version = {
|
|
6317
6317
|
major: 4,
|
|
6318
6318
|
minor: 6,
|
|
6319
6319
|
patch: 5
|
|
6320
6320
|
};
|
|
6321
6321
|
|
|
6322
|
-
//
|
|
6322
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.js
|
|
6323
6323
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
6324
6324
|
var _a3;
|
|
6325
6325
|
inst ?? (inst = {});
|
|
@@ -8733,7 +8733,7 @@ function handleRefineResult(result, payload, input2, inst) {
|
|
|
8733
8733
|
}
|
|
8734
8734
|
}
|
|
8735
8735
|
|
|
8736
|
-
//
|
|
8736
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
|
|
8737
8737
|
var $ZodCyclicError = class extends Error {
|
|
8738
8738
|
constructor() {
|
|
8739
8739
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -9010,7 +9010,7 @@ function isBackEdge(ctx, value) {
|
|
|
9010
9010
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
9011
9011
|
}
|
|
9012
9012
|
|
|
9013
|
-
//
|
|
9013
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/index.js
|
|
9014
9014
|
var locales_exports = {};
|
|
9015
9015
|
__export(locales_exports, {
|
|
9016
9016
|
ar: () => ar_default,
|
|
@@ -9078,7 +9078,7 @@ __export(locales_exports, {
|
|
|
9078
9078
|
zhTW: () => zh_TW_default
|
|
9079
9079
|
});
|
|
9080
9080
|
|
|
9081
|
-
//
|
|
9081
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ar.js
|
|
9082
9082
|
var error = () => {
|
|
9083
9083
|
const Sizable = {
|
|
9084
9084
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -9190,7 +9190,7 @@ function ar_default() {
|
|
|
9190
9190
|
};
|
|
9191
9191
|
}
|
|
9192
9192
|
|
|
9193
|
-
//
|
|
9193
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/az.js
|
|
9194
9194
|
var error2 = () => {
|
|
9195
9195
|
const Sizable = {
|
|
9196
9196
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -9301,7 +9301,7 @@ function az_default() {
|
|
|
9301
9301
|
};
|
|
9302
9302
|
}
|
|
9303
9303
|
|
|
9304
|
-
//
|
|
9304
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/be.js
|
|
9305
9305
|
function getBelarusianPlural(count, one, few, many) {
|
|
9306
9306
|
const absCount = Math.abs(count);
|
|
9307
9307
|
const lastDigit = absCount % 10;
|
|
@@ -9470,7 +9470,7 @@ function be_default() {
|
|
|
9470
9470
|
};
|
|
9471
9471
|
}
|
|
9472
9472
|
|
|
9473
|
-
//
|
|
9473
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/bg.js
|
|
9474
9474
|
var error4 = () => {
|
|
9475
9475
|
const Sizable = {
|
|
9476
9476
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -9596,7 +9596,7 @@ function bg_default() {
|
|
|
9596
9596
|
};
|
|
9597
9597
|
}
|
|
9598
9598
|
|
|
9599
|
-
//
|
|
9599
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/bn.js
|
|
9600
9600
|
var error5 = () => {
|
|
9601
9601
|
const Sizable = {
|
|
9602
9602
|
string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" },
|
|
@@ -9710,7 +9710,7 @@ function bn_default() {
|
|
|
9710
9710
|
};
|
|
9711
9711
|
}
|
|
9712
9712
|
|
|
9713
|
-
//
|
|
9713
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ca.js
|
|
9714
9714
|
var error6 = () => {
|
|
9715
9715
|
const Sizable = {
|
|
9716
9716
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -9824,7 +9824,7 @@ function ca_default() {
|
|
|
9824
9824
|
};
|
|
9825
9825
|
}
|
|
9826
9826
|
|
|
9827
|
-
//
|
|
9827
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ckb.js
|
|
9828
9828
|
var error7 = () => {
|
|
9829
9829
|
const Sizable = {
|
|
9830
9830
|
string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" },
|
|
@@ -9957,7 +9957,7 @@ function ckb_default() {
|
|
|
9957
9957
|
};
|
|
9958
9958
|
}
|
|
9959
9959
|
|
|
9960
|
-
//
|
|
9960
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/cs.js
|
|
9961
9961
|
var error8 = () => {
|
|
9962
9962
|
const Sizable = {
|
|
9963
9963
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -10074,7 +10074,7 @@ function cs_default() {
|
|
|
10074
10074
|
};
|
|
10075
10075
|
}
|
|
10076
10076
|
|
|
10077
|
-
//
|
|
10077
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/da.js
|
|
10078
10078
|
var error9 = () => {
|
|
10079
10079
|
const Sizable = {
|
|
10080
10080
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -10195,7 +10195,7 @@ function da_default() {
|
|
|
10195
10195
|
};
|
|
10196
10196
|
}
|
|
10197
10197
|
|
|
10198
|
-
//
|
|
10198
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/de.js
|
|
10199
10199
|
var error10 = () => {
|
|
10200
10200
|
const Sizable = {
|
|
10201
10201
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -10309,7 +10309,7 @@ function de_default() {
|
|
|
10309
10309
|
};
|
|
10310
10310
|
}
|
|
10311
10311
|
|
|
10312
|
-
//
|
|
10312
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/el.js
|
|
10313
10313
|
var error11 = () => {
|
|
10314
10314
|
const Sizable = {
|
|
10315
10315
|
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
@@ -10422,7 +10422,7 @@ function el_default() {
|
|
|
10422
10422
|
};
|
|
10423
10423
|
}
|
|
10424
10424
|
|
|
10425
|
-
//
|
|
10425
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
|
|
10426
10426
|
var error12 = () => {
|
|
10427
10427
|
const Sizable = {
|
|
10428
10428
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -10547,7 +10547,7 @@ function en_default() {
|
|
|
10547
10547
|
};
|
|
10548
10548
|
}
|
|
10549
10549
|
|
|
10550
|
-
//
|
|
10550
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/eo.js
|
|
10551
10551
|
var error13 = () => {
|
|
10552
10552
|
const Sizable = {
|
|
10553
10553
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -10662,7 +10662,7 @@ function eo_default() {
|
|
|
10662
10662
|
};
|
|
10663
10663
|
}
|
|
10664
10664
|
|
|
10665
|
-
//
|
|
10665
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/es.js
|
|
10666
10666
|
var error14 = () => {
|
|
10667
10667
|
const Sizable = {
|
|
10668
10668
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -10799,7 +10799,7 @@ function es_default() {
|
|
|
10799
10799
|
};
|
|
10800
10800
|
}
|
|
10801
10801
|
|
|
10802
|
-
//
|
|
10802
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fa.js
|
|
10803
10803
|
var error15 = () => {
|
|
10804
10804
|
const Sizable = {
|
|
10805
10805
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -10919,7 +10919,7 @@ function fa_default() {
|
|
|
10919
10919
|
};
|
|
10920
10920
|
}
|
|
10921
10921
|
|
|
10922
|
-
//
|
|
10922
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fi.js
|
|
10923
10923
|
var error16 = () => {
|
|
10924
10924
|
const Sizable = {
|
|
10925
10925
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -11037,7 +11037,7 @@ function fi_default() {
|
|
|
11037
11037
|
};
|
|
11038
11038
|
}
|
|
11039
11039
|
|
|
11040
|
-
//
|
|
11040
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fr.js
|
|
11041
11041
|
var error17 = () => {
|
|
11042
11042
|
const Sizable = {
|
|
11043
11043
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -11167,7 +11167,7 @@ function fr_default() {
|
|
|
11167
11167
|
};
|
|
11168
11168
|
}
|
|
11169
11169
|
|
|
11170
|
-
//
|
|
11170
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fr-CA.js
|
|
11171
11171
|
var error18 = () => {
|
|
11172
11172
|
const Sizable = {
|
|
11173
11173
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -11280,7 +11280,7 @@ function fr_CA_default() {
|
|
|
11280
11280
|
};
|
|
11281
11281
|
}
|
|
11282
11282
|
|
|
11283
|
-
//
|
|
11283
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/gu.js
|
|
11284
11284
|
var error19 = () => {
|
|
11285
11285
|
const Sizable = {
|
|
11286
11286
|
string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" },
|
|
@@ -11394,7 +11394,7 @@ function gu_default() {
|
|
|
11394
11394
|
};
|
|
11395
11395
|
}
|
|
11396
11396
|
|
|
11397
|
-
//
|
|
11397
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/he.js
|
|
11398
11398
|
var error20 = () => {
|
|
11399
11399
|
const TypeNames = {
|
|
11400
11400
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -11596,7 +11596,7 @@ function he_default() {
|
|
|
11596
11596
|
};
|
|
11597
11597
|
}
|
|
11598
11598
|
|
|
11599
|
-
//
|
|
11599
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hi.js
|
|
11600
11600
|
var error21 = () => {
|
|
11601
11601
|
const Sizable = {
|
|
11602
11602
|
string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" },
|
|
@@ -11708,7 +11708,7 @@ function hi_default() {
|
|
|
11708
11708
|
};
|
|
11709
11709
|
}
|
|
11710
11710
|
|
|
11711
|
-
//
|
|
11711
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hr.js
|
|
11712
11712
|
var error22 = () => {
|
|
11713
11713
|
const Sizable = {
|
|
11714
11714
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -11835,7 +11835,7 @@ function hr_default() {
|
|
|
11835
11835
|
};
|
|
11836
11836
|
}
|
|
11837
11837
|
|
|
11838
|
-
//
|
|
11838
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hu.js
|
|
11839
11839
|
var error23 = () => {
|
|
11840
11840
|
const Sizable = {
|
|
11841
11841
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -11949,7 +11949,7 @@ function hu_default() {
|
|
|
11949
11949
|
};
|
|
11950
11950
|
}
|
|
11951
11951
|
|
|
11952
|
-
//
|
|
11952
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hy.js
|
|
11953
11953
|
function getArmenianPlural(count, one, many) {
|
|
11954
11954
|
return Math.abs(count) === 1 ? one : many;
|
|
11955
11955
|
}
|
|
@@ -12108,7 +12108,7 @@ function hy_default() {
|
|
|
12108
12108
|
};
|
|
12109
12109
|
}
|
|
12110
12110
|
|
|
12111
|
-
//
|
|
12111
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/id.js
|
|
12112
12112
|
var error25 = () => {
|
|
12113
12113
|
const Sizable = {
|
|
12114
12114
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -12220,7 +12220,7 @@ function id_default() {
|
|
|
12220
12220
|
};
|
|
12221
12221
|
}
|
|
12222
12222
|
|
|
12223
|
-
//
|
|
12223
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/is.js
|
|
12224
12224
|
var error26 = () => {
|
|
12225
12225
|
const Sizable = {
|
|
12226
12226
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -12335,7 +12335,7 @@ function is_default() {
|
|
|
12335
12335
|
};
|
|
12336
12336
|
}
|
|
12337
12337
|
|
|
12338
|
-
//
|
|
12338
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/it.js
|
|
12339
12339
|
var error27 = () => {
|
|
12340
12340
|
const Sizable = {
|
|
12341
12341
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -12449,7 +12449,7 @@ function it_default() {
|
|
|
12449
12449
|
};
|
|
12450
12450
|
}
|
|
12451
12451
|
|
|
12452
|
-
//
|
|
12452
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ja.js
|
|
12453
12453
|
var error28 = () => {
|
|
12454
12454
|
const Sizable = {
|
|
12455
12455
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -12562,7 +12562,7 @@ function ja_default() {
|
|
|
12562
12562
|
};
|
|
12563
12563
|
}
|
|
12564
12564
|
|
|
12565
|
-
//
|
|
12565
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ka.js
|
|
12566
12566
|
var error29 = () => {
|
|
12567
12567
|
const Sizable = {
|
|
12568
12568
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -12680,7 +12680,7 @@ function ka_default() {
|
|
|
12680
12680
|
};
|
|
12681
12681
|
}
|
|
12682
12682
|
|
|
12683
|
-
//
|
|
12683
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/km.js
|
|
12684
12684
|
var error30 = () => {
|
|
12685
12685
|
const Sizable = {
|
|
12686
12686
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -12796,12 +12796,12 @@ function km_default() {
|
|
|
12796
12796
|
};
|
|
12797
12797
|
}
|
|
12798
12798
|
|
|
12799
|
-
//
|
|
12799
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/kh.js
|
|
12800
12800
|
function kh_default() {
|
|
12801
12801
|
return km_default();
|
|
12802
12802
|
}
|
|
12803
12803
|
|
|
12804
|
-
//
|
|
12804
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/kn.js
|
|
12805
12805
|
var error31 = () => {
|
|
12806
12806
|
const Sizable = {
|
|
12807
12807
|
string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" },
|
|
@@ -12917,7 +12917,7 @@ function kn_default() {
|
|
|
12917
12917
|
};
|
|
12918
12918
|
}
|
|
12919
12919
|
|
|
12920
|
-
//
|
|
12920
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ko.js
|
|
12921
12921
|
var error32 = () => {
|
|
12922
12922
|
const Sizable = {
|
|
12923
12923
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -13034,7 +13034,7 @@ function ko_default() {
|
|
|
13034
13034
|
};
|
|
13035
13035
|
}
|
|
13036
13036
|
|
|
13037
|
-
//
|
|
13037
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/lt.js
|
|
13038
13038
|
var capitalizeFirstCharacter = (text) => {
|
|
13039
13039
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
13040
13040
|
};
|
|
@@ -13242,7 +13242,7 @@ function lt_default() {
|
|
|
13242
13242
|
};
|
|
13243
13243
|
}
|
|
13244
13244
|
|
|
13245
|
-
//
|
|
13245
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/mk.js
|
|
13246
13246
|
var error34 = () => {
|
|
13247
13247
|
const Sizable = {
|
|
13248
13248
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -13357,7 +13357,7 @@ function mk_default() {
|
|
|
13357
13357
|
};
|
|
13358
13358
|
}
|
|
13359
13359
|
|
|
13360
|
-
//
|
|
13360
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ms.js
|
|
13361
13361
|
var error35 = () => {
|
|
13362
13362
|
const Sizable = {
|
|
13363
13363
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -13470,7 +13470,7 @@ function ms_default() {
|
|
|
13470
13470
|
};
|
|
13471
13471
|
}
|
|
13472
13472
|
|
|
13473
|
-
//
|
|
13473
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ne.js
|
|
13474
13474
|
var error36 = () => {
|
|
13475
13475
|
const Sizable = {
|
|
13476
13476
|
string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" },
|
|
@@ -13582,7 +13582,7 @@ function ne_default() {
|
|
|
13582
13582
|
};
|
|
13583
13583
|
}
|
|
13584
13584
|
|
|
13585
|
-
//
|
|
13585
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/nl.js
|
|
13586
13586
|
var error37 = () => {
|
|
13587
13587
|
const Sizable = {
|
|
13588
13588
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -13698,7 +13698,7 @@ function nl_default() {
|
|
|
13698
13698
|
};
|
|
13699
13699
|
}
|
|
13700
13700
|
|
|
13701
|
-
//
|
|
13701
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/nn.js
|
|
13702
13702
|
var error38 = () => {
|
|
13703
13703
|
const Sizable = {
|
|
13704
13704
|
string: { unit: "teikn", verb: "\xE5 ha" },
|
|
@@ -13812,7 +13812,7 @@ function nn_default() {
|
|
|
13812
13812
|
};
|
|
13813
13813
|
}
|
|
13814
13814
|
|
|
13815
|
-
//
|
|
13815
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/no.js
|
|
13816
13816
|
var error39 = () => {
|
|
13817
13817
|
const Sizable = {
|
|
13818
13818
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -13926,7 +13926,7 @@ function no_default() {
|
|
|
13926
13926
|
};
|
|
13927
13927
|
}
|
|
13928
13928
|
|
|
13929
|
-
//
|
|
13929
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ota.js
|
|
13930
13930
|
var error40 = () => {
|
|
13931
13931
|
const Sizable = {
|
|
13932
13932
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -14041,7 +14041,7 @@ function ota_default() {
|
|
|
14041
14041
|
};
|
|
14042
14042
|
}
|
|
14043
14043
|
|
|
14044
|
-
//
|
|
14044
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ps.js
|
|
14045
14045
|
var error41 = () => {
|
|
14046
14046
|
const Sizable = {
|
|
14047
14047
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -14161,7 +14161,7 @@ function ps_default() {
|
|
|
14161
14161
|
};
|
|
14162
14162
|
}
|
|
14163
14163
|
|
|
14164
|
-
//
|
|
14164
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pl.js
|
|
14165
14165
|
var error42 = () => {
|
|
14166
14166
|
const Sizable = {
|
|
14167
14167
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -14276,7 +14276,7 @@ function pl_default() {
|
|
|
14276
14276
|
};
|
|
14277
14277
|
}
|
|
14278
14278
|
|
|
14279
|
-
//
|
|
14279
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pt.js
|
|
14280
14280
|
var error43 = () => {
|
|
14281
14281
|
const Sizable = {
|
|
14282
14282
|
string: { unit: "caracteres" },
|
|
@@ -14420,7 +14420,7 @@ function pt_default() {
|
|
|
14420
14420
|
};
|
|
14421
14421
|
}
|
|
14422
14422
|
|
|
14423
|
-
//
|
|
14423
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pt-BR.js
|
|
14424
14424
|
var error44 = () => {
|
|
14425
14425
|
const Sizable = {
|
|
14426
14426
|
string: { unit: "caracteres" },
|
|
@@ -14565,7 +14565,7 @@ function pt_BR_default() {
|
|
|
14565
14565
|
};
|
|
14566
14566
|
}
|
|
14567
14567
|
|
|
14568
|
-
//
|
|
14568
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ro.js
|
|
14569
14569
|
var error45 = () => {
|
|
14570
14570
|
const Sizable = {
|
|
14571
14571
|
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
@@ -14688,7 +14688,7 @@ function ro_default() {
|
|
|
14688
14688
|
};
|
|
14689
14689
|
}
|
|
14690
14690
|
|
|
14691
|
-
//
|
|
14691
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ru.js
|
|
14692
14692
|
function getRussianPlural(count, one, few, many) {
|
|
14693
14693
|
const absCount = Math.abs(count);
|
|
14694
14694
|
const lastDigit = absCount % 10;
|
|
@@ -14857,7 +14857,7 @@ function ru_default() {
|
|
|
14857
14857
|
};
|
|
14858
14858
|
}
|
|
14859
14859
|
|
|
14860
|
-
//
|
|
14860
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sk.js
|
|
14861
14861
|
var error47 = () => {
|
|
14862
14862
|
const Sizable = {
|
|
14863
14863
|
string: { unit: "znakov", verb: "ma\u0165" },
|
|
@@ -14974,7 +14974,7 @@ function sk_default() {
|
|
|
14974
14974
|
};
|
|
14975
14975
|
}
|
|
14976
14976
|
|
|
14977
|
-
//
|
|
14977
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sl.js
|
|
14978
14978
|
var error48 = () => {
|
|
14979
14979
|
const Sizable = {
|
|
14980
14980
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -15089,7 +15089,7 @@ function sl_default() {
|
|
|
15089
15089
|
};
|
|
15090
15090
|
}
|
|
15091
15091
|
|
|
15092
|
-
//
|
|
15092
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sv.js
|
|
15093
15093
|
var error49 = () => {
|
|
15094
15094
|
const Sizable = {
|
|
15095
15095
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -15205,7 +15205,7 @@ function sv_default() {
|
|
|
15205
15205
|
};
|
|
15206
15206
|
}
|
|
15207
15207
|
|
|
15208
|
-
//
|
|
15208
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ta.js
|
|
15209
15209
|
var error50 = () => {
|
|
15210
15210
|
const Sizable = {
|
|
15211
15211
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -15321,7 +15321,7 @@ function ta_default() {
|
|
|
15321
15321
|
};
|
|
15322
15322
|
}
|
|
15323
15323
|
|
|
15324
|
-
//
|
|
15324
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tg.js
|
|
15325
15325
|
var error51 = () => {
|
|
15326
15326
|
const Sizable = {
|
|
15327
15327
|
string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
|
|
@@ -15438,7 +15438,7 @@ function tg_default() {
|
|
|
15438
15438
|
};
|
|
15439
15439
|
}
|
|
15440
15440
|
|
|
15441
|
-
//
|
|
15441
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/th.js
|
|
15442
15442
|
var error52 = () => {
|
|
15443
15443
|
const Sizable = {
|
|
15444
15444
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -15554,7 +15554,7 @@ function th_default() {
|
|
|
15554
15554
|
};
|
|
15555
15555
|
}
|
|
15556
15556
|
|
|
15557
|
-
//
|
|
15557
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tk.js
|
|
15558
15558
|
var error53 = () => {
|
|
15559
15559
|
const Sizable = {
|
|
15560
15560
|
string: { unit: "simwol", verb: "bolmaly" },
|
|
@@ -15662,7 +15662,7 @@ function tk_default() {
|
|
|
15662
15662
|
};
|
|
15663
15663
|
}
|
|
15664
15664
|
|
|
15665
|
-
//
|
|
15665
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tr.js
|
|
15666
15666
|
var error54 = () => {
|
|
15667
15667
|
const Sizable = {
|
|
15668
15668
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -15773,7 +15773,7 @@ function tr_default() {
|
|
|
15773
15773
|
};
|
|
15774
15774
|
}
|
|
15775
15775
|
|
|
15776
|
-
//
|
|
15776
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/uk.js
|
|
15777
15777
|
var error55 = () => {
|
|
15778
15778
|
const Sizable = {
|
|
15779
15779
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -15887,12 +15887,12 @@ function uk_default() {
|
|
|
15887
15887
|
};
|
|
15888
15888
|
}
|
|
15889
15889
|
|
|
15890
|
-
//
|
|
15890
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ua.js
|
|
15891
15891
|
function ua_default() {
|
|
15892
15892
|
return uk_default();
|
|
15893
15893
|
}
|
|
15894
15894
|
|
|
15895
|
-
//
|
|
15895
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ur.js
|
|
15896
15896
|
var error56 = () => {
|
|
15897
15897
|
const Sizable = {
|
|
15898
15898
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -16008,7 +16008,7 @@ function ur_default() {
|
|
|
16008
16008
|
};
|
|
16009
16009
|
}
|
|
16010
16010
|
|
|
16011
|
-
//
|
|
16011
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/uz.js
|
|
16012
16012
|
var error57 = () => {
|
|
16013
16013
|
const Sizable = {
|
|
16014
16014
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -16122,7 +16122,7 @@ function uz_default() {
|
|
|
16122
16122
|
};
|
|
16123
16123
|
}
|
|
16124
16124
|
|
|
16125
|
-
//
|
|
16125
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/vi.js
|
|
16126
16126
|
var error58 = () => {
|
|
16127
16127
|
const Sizable = {
|
|
16128
16128
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -16236,7 +16236,7 @@ function vi_default() {
|
|
|
16236
16236
|
};
|
|
16237
16237
|
}
|
|
16238
16238
|
|
|
16239
|
-
//
|
|
16239
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/zh-CN.js
|
|
16240
16240
|
var error59 = () => {
|
|
16241
16241
|
const Sizable = {
|
|
16242
16242
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -16351,7 +16351,7 @@ function zh_CN_default() {
|
|
|
16351
16351
|
};
|
|
16352
16352
|
}
|
|
16353
16353
|
|
|
16354
|
-
//
|
|
16354
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/zh-TW.js
|
|
16355
16355
|
var error60 = () => {
|
|
16356
16356
|
const Sizable = {
|
|
16357
16357
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -16464,7 +16464,7 @@ function zh_TW_default() {
|
|
|
16464
16464
|
};
|
|
16465
16465
|
}
|
|
16466
16466
|
|
|
16467
|
-
//
|
|
16467
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/yo.js
|
|
16468
16468
|
var error61 = () => {
|
|
16469
16469
|
const Sizable = {
|
|
16470
16470
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -16577,7 +16577,7 @@ function yo_default() {
|
|
|
16577
16577
|
};
|
|
16578
16578
|
}
|
|
16579
16579
|
|
|
16580
|
-
//
|
|
16580
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
|
|
16581
16581
|
var _a2;
|
|
16582
16582
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
16583
16583
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
@@ -16627,7 +16627,7 @@ function registry() {
|
|
|
16627
16627
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
16628
16628
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
16629
16629
|
|
|
16630
|
-
//
|
|
16630
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/compile.js
|
|
16631
16631
|
var INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
|
|
16632
16632
|
var FALLBACK_FLAG = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
|
|
16633
16633
|
var ZodCompileAsyncError = class extends Error {
|
|
@@ -18229,7 +18229,7 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
|
|
|
18229
18229
|
return accessor;
|
|
18230
18230
|
}
|
|
18231
18231
|
|
|
18232
|
-
//
|
|
18232
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
|
|
18233
18233
|
function snapshotChecks(def) {
|
|
18234
18234
|
if (def.checks)
|
|
18235
18235
|
def.checks = [...def.checks];
|
|
@@ -19288,7 +19288,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
19288
19288
|
return inst;
|
|
19289
19289
|
}
|
|
19290
19290
|
|
|
19291
|
-
//
|
|
19291
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
|
|
19292
19292
|
function assignProps(target, ...sources) {
|
|
19293
19293
|
for (const source of sources) {
|
|
19294
19294
|
for (const key of Reflect.ownKeys(source)) {
|
|
@@ -19818,7 +19818,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
19818
19818
|
return finalize(ctx, schema);
|
|
19819
19819
|
};
|
|
19820
19820
|
|
|
19821
|
-
//
|
|
19821
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
|
|
19822
19822
|
var narrowMin = (agg, key, value) => {
|
|
19823
19823
|
if (agg[key] === void 0 || value > agg[key])
|
|
19824
19824
|
agg[key] = value;
|
|
@@ -20566,7 +20566,7 @@ function toJSONSchema(input2, params) {
|
|
|
20566
20566
|
return finalize(ctx, input2);
|
|
20567
20567
|
}
|
|
20568
20568
|
|
|
20569
|
-
//
|
|
20569
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-generator.js
|
|
20570
20570
|
var JSONSchemaGenerator = class {
|
|
20571
20571
|
/** @deprecated Access via ctx instead */
|
|
20572
20572
|
get metadataRegistry() {
|
|
@@ -20644,10 +20644,10 @@ var JSONSchemaGenerator = class {
|
|
|
20644
20644
|
}
|
|
20645
20645
|
};
|
|
20646
20646
|
|
|
20647
|
-
//
|
|
20647
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema.js
|
|
20648
20648
|
var json_schema_exports = {};
|
|
20649
20649
|
|
|
20650
|
-
//
|
|
20650
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
|
|
20651
20651
|
var schemas_exports2 = {};
|
|
20652
20652
|
__export(schemas_exports2, {
|
|
20653
20653
|
ZodAny: () => ZodAny,
|
|
@@ -20828,7 +20828,7 @@ __export(schemas_exports2, {
|
|
|
20828
20828
|
xor: () => xor
|
|
20829
20829
|
});
|
|
20830
20830
|
|
|
20831
|
-
//
|
|
20831
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/checks.js
|
|
20832
20832
|
var checks_exports2 = {};
|
|
20833
20833
|
__export(checks_exports2, {
|
|
20834
20834
|
endsWith: () => _endsWith,
|
|
@@ -20863,7 +20863,7 @@ __export(checks_exports2, {
|
|
|
20863
20863
|
uppercase: () => _uppercase
|
|
20864
20864
|
});
|
|
20865
20865
|
|
|
20866
|
-
//
|
|
20866
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
|
|
20867
20867
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
20868
20868
|
function _lazyMethod(proto, key, make) {
|
|
20869
20869
|
Object.defineProperty(proto, key, {
|
|
@@ -20909,7 +20909,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, void 0
|
|
|
20909
20909
|
Parent: Error
|
|
20910
20910
|
});
|
|
20911
20911
|
|
|
20912
|
-
//
|
|
20912
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.js
|
|
20913
20913
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
20914
20914
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
20915
20915
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -20923,7 +20923,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
20923
20923
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
20924
20924
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
20925
20925
|
|
|
20926
|
-
//
|
|
20926
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
|
|
20927
20927
|
function _ensureDefaultLocale() {
|
|
20928
20928
|
if (!globalConfig.localeError)
|
|
20929
20929
|
config(en_default());
|
|
@@ -22388,7 +22388,7 @@ function preprocess(fn, schema) {
|
|
|
22388
22388
|
});
|
|
22389
22389
|
}
|
|
22390
22390
|
|
|
22391
|
-
//
|
|
22391
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/compat.js
|
|
22392
22392
|
var ZodIssueCode = {
|
|
22393
22393
|
invalid_type: "invalid_type",
|
|
22394
22394
|
too_big: "too_big",
|
|
@@ -22414,7 +22414,7 @@ var ZodFirstPartyTypeKind;
|
|
|
22414
22414
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
22415
22415
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
22416
22416
|
|
|
22417
|
-
//
|
|
22417
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/iso.js
|
|
22418
22418
|
var iso_exports = {};
|
|
22419
22419
|
__export(iso_exports, {
|
|
22420
22420
|
ZodISODate: () => ZodISODate,
|
|
@@ -22439,7 +22439,7 @@ function duration2(params) {
|
|
|
22439
22439
|
return _isoDuration(ZodISODuration, params);
|
|
22440
22440
|
}
|
|
22441
22441
|
|
|
22442
|
-
//
|
|
22442
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/from-json-schema.js
|
|
22443
22443
|
var z = {
|
|
22444
22444
|
...schemas_exports2,
|
|
22445
22445
|
...checks_exports2,
|
|
@@ -23172,7 +23172,7 @@ function fromJSONSchema(schema, params) {
|
|
|
23172
23172
|
return convertSchema(normalized, ctx);
|
|
23173
23173
|
}
|
|
23174
23174
|
|
|
23175
|
-
//
|
|
23175
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/visit.js
|
|
23176
23176
|
var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving");
|
|
23177
23177
|
function visit(schema, fnOrHandlers) {
|
|
23178
23178
|
const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => {
|
|
@@ -23327,7 +23327,7 @@ function visit(schema, fnOrHandlers) {
|
|
|
23327
23327
|
return run(schema);
|
|
23328
23328
|
}
|
|
23329
23329
|
|
|
23330
|
-
//
|
|
23330
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/deep-partial.js
|
|
23331
23331
|
function deepPartial(schema) {
|
|
23332
23332
|
return visit(schema, {
|
|
23333
23333
|
object: (s) => s.partial(),
|
|
@@ -23339,7 +23339,7 @@ function deepPartial(schema) {
|
|
|
23339
23339
|
});
|
|
23340
23340
|
}
|
|
23341
23341
|
|
|
23342
|
-
//
|
|
23342
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/in-out.js
|
|
23343
23343
|
function withChecks(side, checks) {
|
|
23344
23344
|
if (!checks?.length)
|
|
23345
23345
|
return side;
|
|
@@ -23369,7 +23369,7 @@ function output(schema) {
|
|
|
23369
23369
|
});
|
|
23370
23370
|
}
|
|
23371
23371
|
|
|
23372
|
-
//
|
|
23372
|
+
// node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/coerce.js
|
|
23373
23373
|
var coerce_exports = {};
|
|
23374
23374
|
__export(coerce_exports, {
|
|
23375
23375
|
bigint: () => bigint3,
|
|
@@ -23394,7 +23394,7 @@ function date4(params) {
|
|
|
23394
23394
|
return _coercedDate(ZodDate, params);
|
|
23395
23395
|
}
|
|
23396
23396
|
|
|
23397
|
-
//
|
|
23397
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.0.6/node_modules/@dsh-remote/protocol/dist/src/wire/limits.js
|
|
23398
23398
|
var MAX_RELAY_MESSAGE_BYTES = 1024 * 1024;
|
|
23399
23399
|
var MAX_CIPHERTEXT_BYTES = MAX_RELAY_MESSAGE_BYTES - 8 * 1024;
|
|
23400
23400
|
var MAX_IMAGE_ATTACHMENTS = 4;
|
|
@@ -23403,7 +23403,7 @@ var MAX_ATTACHMENT_BYTES = 512 * 1024;
|
|
|
23403
23403
|
var MAX_ATTACHMENT_TOTAL_BYTES = 512 * 1024;
|
|
23404
23404
|
var IDEMPOTENCY_WINDOW_MS = 5 * 60 * 1e3;
|
|
23405
23405
|
|
|
23406
|
-
//
|
|
23406
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.0.6/node_modules/@dsh-remote/protocol/dist/src/wire/frames.js
|
|
23407
23407
|
var PROTOCOL_VERSION = 1;
|
|
23408
23408
|
var MIN_SUPPORTED_PROTOCOL = 1;
|
|
23409
23409
|
var PAIRING_TOKEN_RE = /^\d{6}$/;
|
|
@@ -23855,9 +23855,9 @@ function loadConfig(env, version2) {
|
|
|
23855
23855
|
|
|
23856
23856
|
// src/server.ts
|
|
23857
23857
|
import { createServer } from "node:http";
|
|
23858
|
-
import { randomUUID as randomUUID2, timingSafeEqual } from "node:crypto";
|
|
23858
|
+
import { randomBytes as randomBytes2, randomUUID as randomUUID2, timingSafeEqual } from "node:crypto";
|
|
23859
23859
|
|
|
23860
|
-
//
|
|
23860
|
+
// node_modules/.pnpm/ws@8.22.0/node_modules/ws/wrapper.mjs
|
|
23861
23861
|
var import_stream = __toESM(require_stream(), 1);
|
|
23862
23862
|
var import_extension = __toESM(require_extension(), 1);
|
|
23863
23863
|
var import_permessage_deflate = __toESM(require_permessage_deflate(), 1);
|
|
@@ -23867,7 +23867,7 @@ var import_subprotocol = __toESM(require_subprotocol(), 1);
|
|
|
23867
23867
|
var import_websocket = __toESM(require_websocket(), 1);
|
|
23868
23868
|
var import_websocket_server = __toESM(require_websocket_server(), 1);
|
|
23869
23869
|
|
|
23870
|
-
//
|
|
23870
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.0.6/node_modules/@dsh-remote/protocol/dist/src/identity/ids.js
|
|
23871
23871
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
23872
23872
|
var CONVERSATION_ID_PREFIX = "c_";
|
|
23873
23873
|
function newConversationId() {
|
|
@@ -23877,10 +23877,10 @@ function newHostId() {
|
|
|
23877
23877
|
return randomBytes(4).toString("hex");
|
|
23878
23878
|
}
|
|
23879
23879
|
|
|
23880
|
-
//
|
|
23880
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.0.6/node_modules/@dsh-remote/protocol/dist/src/platform/sleep.js
|
|
23881
23881
|
var SLEEP_BACKENDS = ["caffeinate", "systemd-inhibit", "unsupported"];
|
|
23882
23882
|
|
|
23883
|
-
//
|
|
23883
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.0.6/node_modules/@dsh-remote/protocol/dist/src/wire/payloads.js
|
|
23884
23884
|
var SESSION_STATES = [
|
|
23885
23885
|
"idle",
|
|
23886
23886
|
"running",
|
|
@@ -24291,7 +24291,7 @@ var PAYLOAD_TYPES = {
|
|
|
24291
24291
|
evSessionHistory: "ev.session_history"
|
|
24292
24292
|
};
|
|
24293
24293
|
|
|
24294
|
-
//
|
|
24294
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.0.6/node_modules/@dsh-remote/protocol/dist/src/wire/registry.js
|
|
24295
24295
|
var ENDPOINT_FRAME_NAMES = [
|
|
24296
24296
|
"hello",
|
|
24297
24297
|
"pair-begin",
|
|
@@ -24383,7 +24383,7 @@ var CAPABILITY_IDS = [
|
|
|
24383
24383
|
];
|
|
24384
24384
|
var CAPABILITY_SET = new Set(CAPABILITY_IDS);
|
|
24385
24385
|
|
|
24386
|
-
//
|
|
24386
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.0.6/node_modules/@dsh-remote/protocol/dist/src/wire/negotiate.js
|
|
24387
24387
|
function negotiateProtocol(peerProtocol, own2 = PROTOCOL_VERSION, min = MIN_SUPPORTED_PROTOCOL) {
|
|
24388
24388
|
if (peerProtocol === void 0 || peerProtocol === null) {
|
|
24389
24389
|
return verdictFor(1, own2, min, true);
|
|
@@ -24423,13 +24423,13 @@ function verdictFor(peer, own2, min, missing) {
|
|
|
24423
24423
|
return { ok: true, version: peer, missing };
|
|
24424
24424
|
}
|
|
24425
24425
|
|
|
24426
|
-
//
|
|
24426
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.0.6/node_modules/@dsh-remote/protocol/dist/src/wire/errors.js
|
|
24427
24427
|
var WAIT_HINTABLE = /* @__PURE__ */ new Set(["rate_limited", "pair_table_full"]);
|
|
24428
24428
|
function wantsRetryAfter(code) {
|
|
24429
24429
|
return typeof code === "string" && WAIT_HINTABLE.has(code);
|
|
24430
24430
|
}
|
|
24431
24431
|
|
|
24432
|
-
//
|
|
24432
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.0.6/node_modules/@dsh-remote/protocol/dist/src/wire/outbound.js
|
|
24433
24433
|
function helloOkForClient(clientId, protocol) {
|
|
24434
24434
|
return { t: "hello-ok", role: "client", clientId, ...protocol === void 0 ? {} : { protocol } };
|
|
24435
24435
|
}
|
|
@@ -24507,7 +24507,7 @@ function encBatchToRelay(sessionId, items) {
|
|
|
24507
24507
|
return { t: "enc-batch", sessionId, items: items.map((item) => ({ ...item })) };
|
|
24508
24508
|
}
|
|
24509
24509
|
|
|
24510
|
-
//
|
|
24510
|
+
// node_modules/.pnpm/@dsh-remote+protocol@3.0.6/node_modules/@dsh-remote/protocol/dist/src/wire/classify.js
|
|
24511
24511
|
function frameTypeOf(value) {
|
|
24512
24512
|
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
24513
24513
|
return void 0;
|
|
@@ -25147,6 +25147,8 @@ function tokenMatches(expected, got) {
|
|
|
25147
25147
|
if (a.length !== b.length) return false;
|
|
25148
25148
|
return timingSafeEqual(a, b);
|
|
25149
25149
|
}
|
|
25150
|
+
var CLAIM_MIN_INTERVAL_MS = 4e3;
|
|
25151
|
+
var CLAIM_TRACK_MAX = 1e4;
|
|
25150
25152
|
function createRelay(config2) {
|
|
25151
25153
|
const log = new Log(config2.logLevel);
|
|
25152
25154
|
const state = new RelayState({ maxPendingPairs: config2.maxPendingPairs });
|
|
@@ -25155,10 +25157,24 @@ function createRelay(config2) {
|
|
|
25155
25157
|
const pairStatusBudget = new Budget(config2.pairStatusBudgetPerSec);
|
|
25156
25158
|
const peers = /* @__PURE__ */ new WeakMap();
|
|
25157
25159
|
let shuttingDown = false;
|
|
25160
|
+
let currentHostToken = config2.hostToken;
|
|
25161
|
+
const lastClaimAt = /* @__PURE__ */ new Map();
|
|
25158
25162
|
let sweepTimer;
|
|
25159
25163
|
let pingTimer;
|
|
25160
25164
|
let lastPingAt = 0;
|
|
25161
25165
|
let lastCountersAt = 0;
|
|
25166
|
+
function rotateHostToken() {
|
|
25167
|
+
currentHostToken = randomBytes2(24).toString("hex");
|
|
25168
|
+
if (lastClaimAt.size >= CLAIM_TRACK_MAX) {
|
|
25169
|
+
const drop = lastClaimAt.size - CLAIM_TRACK_MAX + 1;
|
|
25170
|
+
let i = 0;
|
|
25171
|
+
for (const key of lastClaimAt.keys()) {
|
|
25172
|
+
lastClaimAt.delete(key);
|
|
25173
|
+
if (++i >= drop) break;
|
|
25174
|
+
}
|
|
25175
|
+
}
|
|
25176
|
+
return currentHostToken;
|
|
25177
|
+
}
|
|
25162
25178
|
const persistence = { enabled: config2.stateFile !== "", restored: 0, savedAt: 0, writes: 0, failures: 0 };
|
|
25163
25179
|
if (persistence.enabled) {
|
|
25164
25180
|
persistence.restored = restoreState(config2.stateFile, state, log, startedAt);
|
|
@@ -25284,12 +25300,12 @@ function createRelay(config2) {
|
|
|
25284
25300
|
}
|
|
25285
25301
|
peer.protocol = frame.protocol;
|
|
25286
25302
|
if (frame.role === "host") {
|
|
25287
|
-
if (!
|
|
25303
|
+
if (!currentHostToken) {
|
|
25288
25304
|
sendError(peer, "internal", "relay has no host token configured");
|
|
25289
25305
|
peer.ws.close(1011);
|
|
25290
25306
|
return;
|
|
25291
25307
|
}
|
|
25292
|
-
if (!frame.token || !tokenMatches(
|
|
25308
|
+
if (!frame.token || !tokenMatches(currentHostToken, frame.token)) {
|
|
25293
25309
|
peer.authAttempts += 1;
|
|
25294
25310
|
log.warn("host auth failed", { attempts: peer.authAttempts });
|
|
25295
25311
|
sendError(peer, "bad_token");
|
|
@@ -25765,6 +25781,31 @@ function createRelay(config2) {
|
|
|
25765
25781
|
res.end(JSON.stringify(health()));
|
|
25766
25782
|
return;
|
|
25767
25783
|
}
|
|
25784
|
+
if (url2.pathname === "/api/claim-token") {
|
|
25785
|
+
if (req.method !== "POST") {
|
|
25786
|
+
res.statusCode = 405;
|
|
25787
|
+
res.end(JSON.stringify({ error: "use POST" }));
|
|
25788
|
+
return;
|
|
25789
|
+
}
|
|
25790
|
+
if (shuttingDown) {
|
|
25791
|
+
res.statusCode = 503;
|
|
25792
|
+
res.end(JSON.stringify({ error: "shutting_down" }));
|
|
25793
|
+
return;
|
|
25794
|
+
}
|
|
25795
|
+
const now = Date.now();
|
|
25796
|
+
const ip = req.socket.remoteAddress ?? "unknown";
|
|
25797
|
+
const last = lastClaimAt.get(ip) ?? 0;
|
|
25798
|
+
if (now - last < CLAIM_MIN_INTERVAL_MS) {
|
|
25799
|
+
res.statusCode = 429;
|
|
25800
|
+
res.end(JSON.stringify({ error: "too_soon", retryAfterMs: CLAIM_MIN_INTERVAL_MS - (now - last) }));
|
|
25801
|
+
return;
|
|
25802
|
+
}
|
|
25803
|
+
lastClaimAt.set(ip, now);
|
|
25804
|
+
const token = rotateHostToken();
|
|
25805
|
+
log.info("host token claimed", { ip });
|
|
25806
|
+
res.end(JSON.stringify({ token, rotatedAt: new Date(now).toISOString() }));
|
|
25807
|
+
return;
|
|
25808
|
+
}
|
|
25768
25809
|
if (url2.pathname === "/api/info") {
|
|
25769
25810
|
res.end(JSON.stringify({ publicUrl: config2.publicUrl, protocol: PROTOCOL_VERSION }));
|
|
25770
25811
|
return;
|
|
@@ -25951,7 +25992,7 @@ function registerSignalHandlers(shutdown) {
|
|
|
25951
25992
|
|
|
25952
25993
|
// src/main.ts
|
|
25953
25994
|
function readVersion() {
|
|
25954
|
-
if ("3.
|
|
25995
|
+
if ("3.1.2") return "3.1.2";
|
|
25955
25996
|
try {
|
|
25956
25997
|
const pkg = JSON.parse(readFileSync2(new URL("../../package.json", import.meta.url), "utf8"));
|
|
25957
25998
|
if (typeof pkg.version === "string") return pkg.version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-remote/relay",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "DSH Remote Control 的零知识 WebSocket 中继:只做路由,不碰载荷明文。可自托管的单文件产物。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,15 +26,6 @@
|
|
|
26
26
|
"node": ">=20"
|
|
27
27
|
},
|
|
28
28
|
"main": "./dist/bundle/main.js",
|
|
29
|
-
"scripts": {
|
|
30
|
-
"clean": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true })\"",
|
|
31
|
-
"build": "tsc -p tsconfig.json && node scripts/bundle-relay.mjs",
|
|
32
|
-
"start": "node dist/bundle/main.js",
|
|
33
|
-
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
34
|
-
"test": "tsc -p tsconfig.json && node scripts/bundle-relay.mjs && node --test --test-timeout=60000 \"tests/*.test.mjs\"",
|
|
35
|
-
"format": "prettier --write .",
|
|
36
|
-
"format:check": "prettier --check ."
|
|
37
|
-
},
|
|
38
29
|
"dependencies": {},
|
|
39
30
|
"devDependencies": {
|
|
40
31
|
"@dsh-remote/protocol": "^3.0.0",
|
|
@@ -45,7 +36,6 @@
|
|
|
45
36
|
"typescript": "^7.0.2",
|
|
46
37
|
"ws": "^8.18.0"
|
|
47
38
|
},
|
|
48
|
-
"packageManager": "pnpm@11.7.0",
|
|
49
39
|
"bin": {
|
|
50
40
|
"dsh-remote-relay": "./dist/bundle/main.js"
|
|
51
41
|
},
|
|
@@ -57,5 +47,14 @@
|
|
|
57
47
|
"publishConfig": {
|
|
58
48
|
"access": "public",
|
|
59
49
|
"provenance": true
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"clean": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true })\"",
|
|
53
|
+
"build": "tsc -p tsconfig.json && node scripts/bundle-relay.mjs",
|
|
54
|
+
"start": "node dist/bundle/main.js",
|
|
55
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
56
|
+
"test": "tsc -p tsconfig.json && node scripts/bundle-relay.mjs && node --test --test-timeout=60000 \"tests/*.test.mjs\"",
|
|
57
|
+
"format": "prettier --write .",
|
|
58
|
+
"format:check": "prettier --check ."
|
|
60
59
|
}
|
|
61
|
-
}
|
|
60
|
+
}
|