@ariestools/cli 0.1.9 → 0.1.11
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/bin/aries.mjs +562 -394
- package/dist/bin/daemons/datalake-dev.mjs +1094 -119
- package/dist/node/datalake.d.ts +147 -27
- package/package.json +11 -9
|
@@ -13,6 +13,7 @@ import { Worker } from "node:worker_threads";
|
|
|
13
13
|
import tty from "node:tty";
|
|
14
14
|
import { channel, tracingChannel } from "node:diagnostics_channel";
|
|
15
15
|
import { appendFileSync, existsSync, mkdirSync, readFileSync, readdirSync, renameSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
16
|
+
import { gunzipSync as gunzipSync$1 } from "node:zlib";
|
|
16
17
|
import { LmdbArchivist, LmdbArchivistConfigSchema } from "@xyo-network/archivist-lmdb";
|
|
17
18
|
//#region \0rolldown/runtime.js
|
|
18
19
|
var __create = Object.create;
|
|
@@ -1470,10 +1471,10 @@ var $ZodRegistry = class {
|
|
|
1470
1471
|
return this._map.has(schema);
|
|
1471
1472
|
}
|
|
1472
1473
|
};
|
|
1473
|
-
function registry$
|
|
1474
|
+
function registry$2() {
|
|
1474
1475
|
return new $ZodRegistry();
|
|
1475
1476
|
}
|
|
1476
|
-
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry$
|
|
1477
|
+
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry$2());
|
|
1477
1478
|
globalThis.__zod_globalRegistry;
|
|
1478
1479
|
//#endregion
|
|
1479
1480
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
@@ -3517,7 +3518,7 @@ var init_esm = __esmMin((() => {
|
|
|
3517
3518
|
};
|
|
3518
3519
|
}));
|
|
3519
3520
|
//#endregion
|
|
3520
|
-
//#region ../../node_modules/.pnpm/@ariestools+telemetry@8.1.
|
|
3521
|
+
//#region ../../node_modules/.pnpm/@ariestools+telemetry@8.1.3_@opentelemetry+api@1.9.1/node_modules/@ariestools/telemetry/dist/neutral/index.mjs
|
|
3521
3522
|
init_esm();
|
|
3522
3523
|
async function timeBudget(name, logger, func, budget, status = false) {
|
|
3523
3524
|
const start = Date.now();
|
|
@@ -3681,7 +3682,7 @@ function spanDurationInMillis(span2) {
|
|
|
3681
3682
|
}
|
|
3682
3683
|
});
|
|
3683
3684
|
//#endregion
|
|
3684
|
-
//#region ../../node_modules/.pnpm/@ariestools+sdk@8.1.
|
|
3685
|
+
//#region ../../node_modules/.pnpm/@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3/node_modules/@ariestools/sdk/dist/node/index.mjs
|
|
3685
3686
|
var __defProp$13 = Object.defineProperty;
|
|
3686
3687
|
var __getOwnPropDesc$13 = Object.getOwnPropertyDescriptor;
|
|
3687
3688
|
var __decorateClass$13 = (decorators, target, key, kind) => {
|
|
@@ -4092,7 +4093,7 @@ var AddressZod = /* @__PURE__ */ pipe((/* @__PURE__ */ string$1()).check(/* @__P
|
|
|
4092
4093
|
var assertError = (value, assert, defaultMessage) => {
|
|
4093
4094
|
if (!isUndefined(assert)) {
|
|
4094
4095
|
const assertString = typeof assert === "string" ? assert : typeof assert === "boolean" ? defaultMessage : assert(value, defaultMessage);
|
|
4095
|
-
if (isString$1(assertString)
|
|
4096
|
+
if (assertString === true || isString$1(assertString)) throw new Error(assertString === true ? defaultMessage : assertString);
|
|
4096
4097
|
}
|
|
4097
4098
|
};
|
|
4098
4099
|
var handleError = (error, handler) => {
|
|
@@ -5002,7 +5003,7 @@ function getFunctionName(depth = 2) {
|
|
|
5002
5003
|
let newIndex;
|
|
5003
5004
|
const stackParts = error.stack?.split("\n")[depth]?.split(" ");
|
|
5004
5005
|
const funcName = stackParts?.find((item, index) => {
|
|
5005
|
-
if (item
|
|
5006
|
+
if (item === "at" || item.length === 0) return;
|
|
5006
5007
|
if (item === "new") newIndex = index;
|
|
5007
5008
|
return true;
|
|
5008
5009
|
}) ?? "<unknown>";
|
|
@@ -5532,7 +5533,7 @@ var toSafeJsonObject = (value, cycleList, maxDepth = 3) => {
|
|
|
5532
5533
|
return result;
|
|
5533
5534
|
};
|
|
5534
5535
|
var toSafeJsonValue = (value, cycleList, maxDepth = 3) => {
|
|
5535
|
-
if (
|
|
5536
|
+
if (typeof value === "object" && maxDepth <= 0) return "[MaxDepth]";
|
|
5536
5537
|
if (cycleList?.includes(value) === true) return "[Circular]";
|
|
5537
5538
|
switch (typeof value) {
|
|
5538
5539
|
case "string":
|
|
@@ -6055,7 +6056,7 @@ const bech32m = /* @__PURE__ */ Object.freeze(genBech32("bech32m"));
|
|
|
6055
6056
|
return s.toLowerCase();
|
|
6056
6057
|
}));
|
|
6057
6058
|
//#endregion
|
|
6058
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
6059
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/address.mjs
|
|
6059
6060
|
var XyoLegacyAddressZod = AddressZod;
|
|
6060
6061
|
function encodeQuantAddress(hrp, bytes) {
|
|
6061
6062
|
return bech32m.encodeFromBytes(hrp, toUint8Array(bytes));
|
|
@@ -6076,7 +6077,7 @@ var XyoQuantAddressZod = /* @__PURE__ */ pipe((/* @__PURE__ */ string$1()).check
|
|
|
6076
6077
|
var XyoAddressRegEx = /^(?:[0-9a-f]{40}|[a-z0-9]{1,83}1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38})$/;
|
|
6077
6078
|
var XyoAddressZod = /* @__PURE__ */ union$1([XyoLegacyAddressZod, XyoQuantAddressZod]);
|
|
6078
6079
|
//#endregion
|
|
6079
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
6080
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/account-model.mjs
|
|
6080
6081
|
var isPhraseInitializationConfig = (value) => {
|
|
6081
6082
|
if (typeof value === "object" && value !== null) return typeof value.phrase === "string";
|
|
6082
6083
|
return false;
|
|
@@ -6117,13 +6118,13 @@ function algorithmFromAddress(address) {
|
|
|
6117
6118
|
var JwtAlg = Enum({ ES256K: "ES256K" });
|
|
6118
6119
|
var JwtTyp = Enum({ JWT: "JWT" });
|
|
6119
6120
|
var JwtSchema = Enum({ Signin: "network.xyo.auth.signin" });
|
|
6120
|
-
var registry = {};
|
|
6121
|
+
var registry$1 = {};
|
|
6121
6122
|
function registerVerifier(algorithm, fn) {
|
|
6122
|
-
registry[algorithm] = fn;
|
|
6123
|
+
registry$1[algorithm] = fn;
|
|
6123
6124
|
}
|
|
6124
6125
|
async function verifySignature(address, hash, signature) {
|
|
6125
6126
|
const algorithm = algorithmFromAddress(address);
|
|
6126
|
-
const fn = registry[algorithm];
|
|
6127
|
+
const fn = registry$1[algorithm];
|
|
6127
6128
|
if (!fn) throw new Error(`No verifier registered for algorithm [${algorithm}]. Did you import the account package?`);
|
|
6128
6129
|
return await fn(address, hash, signature);
|
|
6129
6130
|
}
|
|
@@ -53504,7 +53505,7 @@ var LangZh = class LangZh extends Wordlist {
|
|
|
53504
53505
|
};
|
|
53505
53506
|
LangCz.wordlist(), LangEn.wordlist(), LangEs.wordlist(), LangFr.wordlist(), LangIt.wordlist(), LangPt.wordlist(), LangJa.wordlist(), LangKo.wordlist(), LangZh.wordlist("cn"), LangZh.wordlist("tw");
|
|
53506
53507
|
//#endregion
|
|
53507
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
53508
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/data.mjs
|
|
53508
53509
|
var AbstractData = class {
|
|
53509
53510
|
/** Type guard for {@link AbstractData} instances. */
|
|
53510
53511
|
static is(value) {
|
|
@@ -53559,7 +53560,7 @@ var Data = class _Data extends AbstractData {
|
|
|
53559
53560
|
}
|
|
53560
53561
|
};
|
|
53561
53562
|
//#endregion
|
|
53562
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
53563
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/wasm.mjs
|
|
53563
53564
|
var validate = (bytes) => Promise.resolve(WebAssembly.validate(new Uint8Array(bytes)));
|
|
53564
53565
|
var bigInt = async () => {
|
|
53565
53566
|
try {
|
|
@@ -54145,7 +54146,7 @@ var WasmSupport = class _WasmSupport {
|
|
|
54145
54146
|
}
|
|
54146
54147
|
};
|
|
54147
54148
|
//#endregion
|
|
54148
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
54149
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/elliptic.mjs
|
|
54149
54150
|
var wasmSupportStatic$1 = new WasmSupport([
|
|
54150
54151
|
"bigInt",
|
|
54151
54152
|
"mutableGlobals",
|
|
@@ -54270,7 +54271,7 @@ var Elliptic = class {
|
|
|
54270
54271
|
}
|
|
54271
54272
|
};
|
|
54272
54273
|
//#endregion
|
|
54273
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
54274
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/account.mjs
|
|
54274
54275
|
var __defProp$12 = Object.defineProperty;
|
|
54275
54276
|
var __getOwnPropDesc$12 = Object.getOwnPropertyDescriptor;
|
|
54276
54277
|
var __defNormalProp$11 = (obj, key, value) => key in obj ? __defProp$12(obj, key, {
|
|
@@ -54795,7 +54796,7 @@ __publicField$11(Account, "_addressMap", {});
|
|
|
54795
54796
|
__publicField$11(Account, "_protectedConstructorKey", /* @__PURE__ */ Symbol());
|
|
54796
54797
|
Account = __decorateClass$12([staticImplements()], Account);
|
|
54797
54798
|
//#endregion
|
|
54798
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
54799
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/payload-model.mjs
|
|
54799
54800
|
var SchemaRegEx = /^(?:[a-z0-9]+\.)*[a-z0-9]+$/;
|
|
54800
54801
|
var SchemaZod = /* @__PURE__ */ pipe((/* @__PURE__ */ string$1()).check(/* @__PURE__ */ _regex(SchemaRegEx)), /* @__PURE__ */ transform((v) => v));
|
|
54801
54802
|
var isSchema = zodIsFactory(SchemaZod);
|
|
@@ -55027,7 +55028,7 @@ var QueryFieldsZod = /* @__PURE__ */ object$1({
|
|
|
55027
55028
|
minBid: /* @__PURE__ */ optional(/* @__PURE__ */ number$1())
|
|
55028
55029
|
});
|
|
55029
55030
|
//#endregion
|
|
55030
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
55031
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/boundwitness-model.mjs
|
|
55031
55032
|
var BoundWitnessSchema = asSchema("network.xyo.boundwitness", true);
|
|
55032
55033
|
var SignaturesMetaZod = /* @__PURE__ */ object$1({ $signatures: /* @__PURE__ */ array(/* @__PURE__ */ union$1([HexZod, /* @__PURE__ */ _null()])) });
|
|
55033
55034
|
var UnsignedSignaturesMetaZod = /* @__PURE__ */ object$1({ $signatures: /* @__PURE__ */ array(/* @__PURE__ */ _null()) });
|
|
@@ -56401,7 +56402,7 @@ function multicast(coldObservable) {
|
|
|
56401
56402
|
});
|
|
56402
56403
|
}
|
|
56403
56404
|
//#endregion
|
|
56404
|
-
//#region ../../node_modules/.pnpm/@ariestools+threads@8.1.
|
|
56405
|
+
//#region ../../node_modules/.pnpm/@ariestools+threads@8.1.3_@opentelemetry+api@1.9.1_observable-fns@0.6.1_supports-color@10.2.2_zod@4.4.3/node_modules/@ariestools/threads/dist/node/master/index-node.mjs
|
|
56405
56406
|
cpus().length;
|
|
56406
56407
|
function resolveScriptPath(scriptPath, baseURL) {
|
|
56407
56408
|
const makeAbsolute = (filePath) => {
|
|
@@ -56409,8 +56410,11 @@ function resolveScriptPath(scriptPath, baseURL) {
|
|
|
56409
56410
|
};
|
|
56410
56411
|
return makeAbsolute(scriptPath);
|
|
56411
56412
|
}
|
|
56413
|
+
var registry = {
|
|
56414
|
+
allWorkers: [],
|
|
56415
|
+
signalHandlers: /* @__PURE__ */ new Map()
|
|
56416
|
+
};
|
|
56412
56417
|
function initWorkerThreadsWorker() {
|
|
56413
|
-
let allWorkers = [];
|
|
56414
56418
|
class Worker3 extends Worker {
|
|
56415
56419
|
mappedEventListeners;
|
|
56416
56420
|
constructor(scriptPath, options) {
|
|
@@ -56421,7 +56425,10 @@ function initWorkerThreadsWorker() {
|
|
|
56421
56425
|
});
|
|
56422
56426
|
else super(resolvedScriptPath, options);
|
|
56423
56427
|
this.mappedEventListeners = /* @__PURE__ */ new WeakMap();
|
|
56424
|
-
allWorkers.push(this);
|
|
56428
|
+
registry.allWorkers.push(this);
|
|
56429
|
+
this.once("exit", () => {
|
|
56430
|
+
registry.allWorkers = registry.allWorkers.filter((worker) => worker !== this);
|
|
56431
|
+
});
|
|
56425
56432
|
}
|
|
56426
56433
|
addEventListener(eventName, rawListener) {
|
|
56427
56434
|
const listener = (message) => {
|
|
@@ -56435,19 +56442,6 @@ function initWorkerThreadsWorker() {
|
|
|
56435
56442
|
this.off(eventName, listener);
|
|
56436
56443
|
}
|
|
56437
56444
|
}
|
|
56438
|
-
const terminateWorkersAndMaster = () => {
|
|
56439
|
-
(async () => {
|
|
56440
|
-
try {
|
|
56441
|
-
await Promise.all(allWorkers.map((worker) => worker.terminate()));
|
|
56442
|
-
process.exit(0);
|
|
56443
|
-
} catch {
|
|
56444
|
-
process.exit(1);
|
|
56445
|
-
}
|
|
56446
|
-
})();
|
|
56447
|
-
allWorkers = [];
|
|
56448
|
-
};
|
|
56449
|
-
process.on("SIGINT", () => terminateWorkersAndMaster());
|
|
56450
|
-
process.on("SIGTERM", () => terminateWorkersAndMaster());
|
|
56451
56445
|
class BlobWorker2 extends Worker3 {
|
|
56452
56446
|
constructor(blob, options) {
|
|
56453
56447
|
super(Buffer.from(blob).toString("utf-8"), {
|
|
@@ -57107,7 +57101,7 @@ var Worker2 = getWorkerImplementation().default;
|
|
|
57107
57101
|
* @license MIT
|
|
57108
57102
|
*/
|
|
57109
57103
|
//#endregion
|
|
57110
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
57104
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/node/hash.mjs
|
|
57111
57105
|
var import_index_umd = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
57112
57106
|
(function(global, factory) {
|
|
57113
57107
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.hashwasm = {}));
|
|
@@ -59579,7 +59573,7 @@ var NodeObjectHasher = class extends ObjectHasher {
|
|
|
59579
59573
|
static createNodeWorker = createNodeWorker;
|
|
59580
59574
|
};
|
|
59581
59575
|
//#endregion
|
|
59582
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
59576
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/payload-builder.mjs
|
|
59583
59577
|
var omitSchema = (payload) => {
|
|
59584
59578
|
const result = structuredClone(payload);
|
|
59585
59579
|
delete result.schema;
|
|
@@ -59853,7 +59847,7 @@ var PayloadBuilder = class _PayloadBuilder {
|
|
|
59853
59847
|
}
|
|
59854
59848
|
};
|
|
59855
59849
|
//#endregion
|
|
59856
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
59850
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/schema-name-validator.mjs
|
|
59857
59851
|
var SchemaNameValidator = class {
|
|
59858
59852
|
_parts;
|
|
59859
59853
|
_rootDomain;
|
|
@@ -59921,7 +59915,7 @@ function domainLevel(validator, level) {
|
|
|
59921
59915
|
return validator.parts?.slice(0, level + 1).toReversed().join(".");
|
|
59922
59916
|
}
|
|
59923
59917
|
//#endregion
|
|
59924
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
59918
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/payload-validator.mjs
|
|
59925
59919
|
var defaultSchemaNameValidatorFactory = (schema) => new SchemaNameValidator(schema);
|
|
59926
59920
|
var PayloadValidator = class _PayloadValidator extends ValidatorBase {
|
|
59927
59921
|
static schemaNameValidatorFactory = defaultSchemaNameValidatorFactory;
|
|
@@ -59970,7 +59964,7 @@ var PayloadValidator = class _PayloadValidator extends ValidatorBase {
|
|
|
59970
59964
|
}
|
|
59971
59965
|
};
|
|
59972
59966
|
//#endregion
|
|
59973
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
59967
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/payload-wrapper.mjs
|
|
59974
59968
|
var isPayloadWrapperBase = (value) => {
|
|
59975
59969
|
return value instanceof PayloadWrapperBase;
|
|
59976
59970
|
};
|
|
@@ -60155,7 +60149,7 @@ var payloadJsonSchema = {
|
|
|
60155
60149
|
type: "object"
|
|
60156
60150
|
};
|
|
60157
60151
|
//#endregion
|
|
60158
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
60152
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/boundwitness-builder.mjs
|
|
60159
60153
|
var isSigningParty = (party) => "sign" in party;
|
|
60160
60154
|
var GeneratedBoundWitnessFields = [
|
|
60161
60155
|
"addresses",
|
|
@@ -60499,7 +60493,7 @@ var QueryBoundWitnessBuilder = class extends BoundWitnessBuilder {
|
|
|
60499
60493
|
}
|
|
60500
60494
|
};
|
|
60501
60495
|
//#endregion
|
|
60502
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
60496
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/boundwitness-validator.mjs
|
|
60503
60497
|
var validateArraysSameLength = (a, b, message = "Array length mismatch") => {
|
|
60504
60498
|
return a.length == b.length ? [] : [/* @__PURE__ */ new Error(`${message} [${a.length} !== ${b.length}]`)];
|
|
60505
60499
|
};
|
|
@@ -60625,7 +60619,7 @@ var BoundWitnessValidator = class _BoundWitnessValidator extends PayloadValidato
|
|
|
60625
60619
|
}
|
|
60626
60620
|
};
|
|
60627
60621
|
//#endregion
|
|
60628
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
60622
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/boundwitness-wrapper.mjs
|
|
60629
60623
|
var isBoundWitnessWrapper = (value) => {
|
|
60630
60624
|
if (isPayloadWrapperBase(value)) return typeof value.payloadsDataHashMap === "function";
|
|
60631
60625
|
return false;
|
|
@@ -60930,7 +60924,7 @@ var SignatureRegEx = HexRegExMinMax(64, 5261);
|
|
|
60930
60924
|
({ ...payloadJsonSchema.properties }), XyoAddressRegEx.source, HashRegEx.source, SchemaRegEx.source, HashRegEx.source, HashRegEx.source, HashRegEx.source, HashRegEx.source, HashRegEx.source, SignatureRegEx.source;
|
|
60931
60925
|
({ ...payloadJsonSchema }), [...payloadJsonSchema.required];
|
|
60932
60926
|
//#endregion
|
|
60933
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
60927
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/config-payload-plugin.mjs
|
|
60934
60928
|
var ConfigSchema = asSchema("network.xyo.config", true);
|
|
60935
60929
|
asSchema("network.xyo.schema", true);
|
|
60936
60930
|
asSchema("network.xyo.domain.config", true);
|
|
@@ -60957,7 +60951,7 @@ DomainConfigFieldsZod.shape;
|
|
|
60957
60951
|
DomainConfigFieldsZod.shape;
|
|
60958
60952
|
asSchema("network.xyo.id", true);
|
|
60959
60953
|
//#endregion
|
|
60960
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
60954
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/query-payload-plugin.mjs
|
|
60961
60955
|
var QuerySchema = asSchema("network.xyo.query", true);
|
|
60962
60956
|
asSchema("network.xyo.value", true);
|
|
60963
60957
|
//#endregion
|
|
@@ -62706,7 +62700,7 @@ const ml_dsa65 = /* @__PURE__ */ (() => getDilithium({
|
|
|
62706
62700
|
securityLevel: 192
|
|
62707
62701
|
}))();
|
|
62708
62702
|
//#endregion
|
|
62709
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
62703
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/pqc.mjs
|
|
62710
62704
|
var MlDsa = class {
|
|
62711
62705
|
/** Concatenated public key + signature length in bytes. */
|
|
62712
62706
|
static bundleLength = 5261;
|
|
@@ -62983,7 +62977,7 @@ replaceTraps((oldTraps) => ({
|
|
|
62983
62977
|
}
|
|
62984
62978
|
}));
|
|
62985
62979
|
//#endregion
|
|
62986
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
62980
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/previous-hash-store-storage.mjs
|
|
62987
62981
|
var InMemoryBackend = class {
|
|
62988
62982
|
data = /* @__PURE__ */ new Map();
|
|
62989
62983
|
get(key) {
|
|
@@ -62998,7 +62992,7 @@ var InMemoryBackend = class {
|
|
|
62998
62992
|
};
|
|
62999
62993
|
new InMemoryBackend();
|
|
63000
62994
|
//#endregion
|
|
63001
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
62995
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/quant-account.mjs
|
|
63002
62996
|
var __defProp$11 = Object.defineProperty;
|
|
63003
62997
|
var __getOwnPropDesc$11 = Object.getOwnPropertyDescriptor;
|
|
63004
62998
|
var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$11(obj, key, {
|
|
@@ -65676,7 +65670,7 @@ zero
|
|
|
65676
65670
|
zone
|
|
65677
65671
|
zoo`.split("\n"));
|
|
65678
65672
|
//#endregion
|
|
65679
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
65673
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/wallet.mjs
|
|
65680
65674
|
var __defProp$10 = Object.defineProperty;
|
|
65681
65675
|
var __getOwnPropDesc$10 = Object.getOwnPropertyDescriptor;
|
|
65682
65676
|
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$10(obj, key, {
|
|
@@ -65886,7 +65880,7 @@ var NodeManifestPayloadSchema = asSchema("network.xyo.node.manifest", true);
|
|
|
65886
65880
|
asSchema("network.xyo.network.node", true);
|
|
65887
65881
|
asSchema("network.xyo.network", true);
|
|
65888
65882
|
//#endregion
|
|
65889
|
-
//#region ../../node_modules/.pnpm/@ariestools+sdk@8.1.
|
|
65883
|
+
//#region ../../node_modules/.pnpm/@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3/node_modules/@ariestools/sdk/dist/neutral/geo.mjs
|
|
65890
65884
|
var boundingBoxToBoundary = (box) => {
|
|
65891
65885
|
return [
|
|
65892
65886
|
box.getNorthWest(),
|
|
@@ -66162,7 +66156,7 @@ var GeoJson = class _GeoJson {
|
|
|
66162
66156
|
}
|
|
66163
66157
|
};
|
|
66164
66158
|
//#endregion
|
|
66165
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
66159
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/quadkey.mjs
|
|
66166
66160
|
var RelativeDirectionConstantLookup = {
|
|
66167
66161
|
e: 1,
|
|
66168
66162
|
n: -2,
|
|
@@ -66490,7 +66484,7 @@ function gridOffsetForDigit(digit, blockSize) {
|
|
|
66490
66484
|
}
|
|
66491
66485
|
});
|
|
66492
66486
|
//#endregion
|
|
66493
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.
|
|
66487
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk-protocol-core@7.2.2_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod_e3037e945b6aa9d20a93ce0deff04109/node_modules/@xyo-network/sdk-protocol-core/dist/neutral/quant-wallet.mjs
|
|
66494
66488
|
var __defProp$9 = Object.defineProperty;
|
|
66495
66489
|
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
66496
66490
|
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$9(obj, key, {
|
|
@@ -69482,8 +69476,8 @@ var require_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
69482
69476
|
};
|
|
69483
69477
|
}));
|
|
69484
69478
|
//#endregion
|
|
69485
|
-
//#region ../../node_modules/.pnpm/fast-uri@3.1.
|
|
69486
|
-
var require_utils$
|
|
69479
|
+
//#region ../../node_modules/.pnpm/fast-uri@3.1.4/node_modules/fast-uri/lib/utils.js
|
|
69480
|
+
var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
69487
69481
|
/** @type {(value: string) => boolean} */
|
|
69488
69482
|
const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
69489
69483
|
/** @type {(value: string) => boolean} */
|
|
@@ -69854,9 +69848,9 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
69854
69848
|
};
|
|
69855
69849
|
}));
|
|
69856
69850
|
//#endregion
|
|
69857
|
-
//#region ../../node_modules/.pnpm/fast-uri@3.1.
|
|
69858
|
-
var require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
69859
|
-
const { isUUID } = require_utils$
|
|
69851
|
+
//#region ../../node_modules/.pnpm/fast-uri@3.1.4/node_modules/fast-uri/lib/schemes.js
|
|
69852
|
+
var require_schemes$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
69853
|
+
const { isUUID } = require_utils$3();
|
|
69860
69854
|
const URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
69861
69855
|
const supportedSchemeNames = [
|
|
69862
69856
|
"http",
|
|
@@ -70037,10 +70031,10 @@ var require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
70037
70031
|
};
|
|
70038
70032
|
}));
|
|
70039
70033
|
//#endregion
|
|
70040
|
-
//#region ../../node_modules/.pnpm/fast-uri@3.1.
|
|
70041
|
-
var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
70042
|
-
const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils$
|
|
70043
|
-
const { SCHEMES, getSchemeHandler } = require_schemes();
|
|
70034
|
+
//#region ../../node_modules/.pnpm/fast-uri@3.1.4/node_modules/fast-uri/index.js
|
|
70035
|
+
var require_fast_uri$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
70036
|
+
const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils$3();
|
|
70037
|
+
const { SCHEMES, getSchemeHandler } = require_schemes$1();
|
|
70044
70038
|
/**
|
|
70045
70039
|
* @template {import('./types/index').URIComponent|string} T
|
|
70046
70040
|
* @param {T} uri
|
|
@@ -70176,6 +70170,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
70176
70170
|
return uriTokens.join("");
|
|
70177
70171
|
}
|
|
70178
70172
|
const URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
70173
|
+
const AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
70179
70174
|
/**
|
|
70180
70175
|
* @param {import('./types/index').URIComponent} parsed
|
|
70181
70176
|
* @param {RegExpMatchArray} matches
|
|
@@ -70206,6 +70201,11 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
70206
70201
|
let isIP = false;
|
|
70207
70202
|
if (options.reference === "suffix") if (options.scheme) uri = options.scheme + ":" + uri;
|
|
70208
70203
|
else uri = "//" + uri;
|
|
70204
|
+
const authorityMatch = uri.match(AUTHORITY_PREFIX);
|
|
70205
|
+
if (authorityMatch !== null && authorityMatch[1].indexOf("\\") !== -1) {
|
|
70206
|
+
parsed.error = "URI authority must not contain a literal backslash.";
|
|
70207
|
+
malformedAuthorityOrPort = true;
|
|
70208
|
+
}
|
|
70209
70209
|
const matches = uri.match(URI_PARSE);
|
|
70210
70210
|
if (matches) {
|
|
70211
70211
|
parsed.scheme = matches[1];
|
|
@@ -70315,7 +70315,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
70315
70315
|
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
|
|
70316
70316
|
var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
70317
70317
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
70318
|
-
const uri = require_fast_uri();
|
|
70318
|
+
const uri = require_fast_uri$1();
|
|
70319
70319
|
uri.code = "require(\"ajv/dist/runtime/uri\").default";
|
|
70320
70320
|
exports.default = uri;
|
|
70321
70321
|
}));
|
|
@@ -73323,7 +73323,7 @@ var I = class d {
|
|
|
73323
73323
|
}
|
|
73324
73324
|
};
|
|
73325
73325
|
//#endregion
|
|
73326
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
73326
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/module-model.mjs
|
|
73327
73327
|
var ArchivingModuleConfigZod = /* @__PURE__ */ object$1({ archiving: /* @__PURE__ */ optional(/* @__PURE__ */ object$1({
|
|
73328
73328
|
archivists: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ custom())),
|
|
73329
73329
|
queries: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ custom()))
|
|
@@ -73538,7 +73538,7 @@ var isAttachableArchivistInstance = new IsObjectFactory().create({}, [isArchivis
|
|
|
73538
73538
|
AsObjectFactory.create(isAttachableArchivistInstance);
|
|
73539
73539
|
var ArchivistConfigSchema = asSchema("network.xyo.archivist.config", true);
|
|
73540
73540
|
//#endregion
|
|
73541
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
73541
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/diviner-model.mjs
|
|
73542
73542
|
var DivinerDivineQuerySchema = asSchema("network.xyo.query.diviner.divine", true);
|
|
73543
73543
|
({ ...QueryFieldsZod.shape });
|
|
73544
73544
|
var isDivinerInstance = new IsInstanceFactory().create({ divine: "function" }, [isModuleInstance]);
|
|
@@ -73551,7 +73551,7 @@ var isAttachableDivinerInstance = new IsObjectFactory().create({}, [isDivinerIns
|
|
|
73551
73551
|
AsObjectFactory.create(isAttachableDivinerInstance);
|
|
73552
73552
|
var DivinerConfigSchema = asSchema("network.xyo.diviner.config", true);
|
|
73553
73553
|
//#endregion
|
|
73554
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
73554
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/diviner-payload-model.mjs
|
|
73555
73555
|
var PayloadDivinerSchema = asSchema("network.xyo.diviner.payload", true);
|
|
73556
73556
|
var PayloadDivinerConfigSchema = asSchema(`${PayloadDivinerSchema}.config`, true);
|
|
73557
73557
|
var asPayloadDivinerQueryPayload = zodAsFactory(/* @__PURE__ */ extend(PayloadZodOfSchema(asSchema(`${PayloadDivinerSchema}.query`, true)), {
|
|
@@ -73562,7 +73562,7 @@ var asPayloadDivinerQueryPayload = zodAsFactory(/* @__PURE__ */ extend(PayloadZo
|
|
|
73562
73562
|
schemas: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ custom()))
|
|
73563
73563
|
}), "asPayloadDivinerQueryPayload");
|
|
73564
73564
|
//#endregion
|
|
73565
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
73565
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/module-resolver.mjs
|
|
73566
73566
|
var AbstractModuleResolver = class extends Base {
|
|
73567
73567
|
get priority() {
|
|
73568
73568
|
return this.params.priority ?? ObjectResolverPriority.Normal;
|
|
@@ -74007,7 +74007,7 @@ var CompositeModuleResolver = class _CompositeModuleResolver extends AbstractMod
|
|
|
74007
74007
|
}
|
|
74008
74008
|
};
|
|
74009
74009
|
//#endregion
|
|
74010
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
74010
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/node-model.mjs
|
|
74011
74011
|
var NodeAttachQuerySchema = asSchema("network.xyo.query.node.attach", true);
|
|
74012
74012
|
({ ...QueryFieldsZod.shape });
|
|
74013
74013
|
var NodeAttachedQuerySchema = asSchema("network.xyo.query.node.attached", true);
|
|
@@ -74035,7 +74035,7 @@ var asAttachableNodeInstance = AsObjectFactory.create(isAttachableNodeInstance);
|
|
|
74035
74035
|
var ChildCertificationSchema = asSchema("network.xyo.child.certification", true);
|
|
74036
74036
|
var NodeConfigSchema = asSchema("network.xyo.node.config", true);
|
|
74037
74037
|
//#endregion
|
|
74038
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
74038
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/module-abstract.mjs
|
|
74039
74039
|
var isDetermineAccountFromAccountParams = (params) => {
|
|
74040
74040
|
assertEx(isUndefined(params.accountPath), () => "accountPath may not be provided when account is provided");
|
|
74041
74041
|
return isDefined(params.account);
|
|
@@ -74797,7 +74797,7 @@ var AbstractModuleInstance = class _AbstractModuleInstance extends AbstractModul
|
|
|
74797
74797
|
}
|
|
74798
74798
|
};
|
|
74799
74799
|
//#endregion
|
|
74800
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
74800
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/archivist-abstract.mjs
|
|
74801
74801
|
var StorageClassLabel = "network.xyo.storage.class";
|
|
74802
74802
|
var NOT_IMPLEMENTED = "Not implemented";
|
|
74803
74803
|
var AbstractArchivist = class _AbstractArchivist extends AbstractModuleInstance {
|
|
@@ -75271,7 +75271,7 @@ var AbstractArchivist = class _AbstractArchivist extends AbstractModuleInstance
|
|
|
75271
75271
|
}
|
|
75272
75272
|
};
|
|
75273
75273
|
//#endregion
|
|
75274
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
75274
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/archivist-generic.mjs
|
|
75275
75275
|
var __defProp$8 = Object.defineProperty;
|
|
75276
75276
|
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
75277
75277
|
var __getProtoOf$5 = Object.getPrototypeOf;
|
|
@@ -75354,7 +75354,7 @@ __publicField$7(GenericArchivist, "labels", {
|
|
|
75354
75354
|
});
|
|
75355
75355
|
GenericArchivist = __decorateClass$8([creatableModule()], GenericArchivist);
|
|
75356
75356
|
//#endregion
|
|
75357
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
75357
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/archivist-view.mjs
|
|
75358
75358
|
var __defProp$7 = Object.defineProperty;
|
|
75359
75359
|
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
75360
75360
|
var __getProtoOf$4 = Object.getPrototypeOf;
|
|
@@ -75413,7 +75413,7 @@ __publicField$6(ViewArchivist, "labels", {
|
|
|
75413
75413
|
});
|
|
75414
75414
|
ViewArchivist = __decorateClass$7([labeledCreatableModule()], ViewArchivist);
|
|
75415
75415
|
//#endregion
|
|
75416
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
75416
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/bridge-model.mjs
|
|
75417
75417
|
var BridgeConnectQuerySchema = asSchema("network.xyo.query.bridge.connect", true);
|
|
75418
75418
|
({ ...QueryFieldsZod.shape });
|
|
75419
75419
|
var BridgeDisconnectQuerySchema = asSchema("network.xyo.query.bridge.disconnect", true);
|
|
@@ -75433,7 +75433,7 @@ var isAttachableBridgeInstance = new IsObjectFactory().create({}, [isBridgeInsta
|
|
|
75433
75433
|
AsObjectFactory.create(isAttachableBridgeInstance);
|
|
75434
75434
|
var BridgeConfigSchema = asSchema("network.xyo.bridge.config", true);
|
|
75435
75435
|
//#endregion
|
|
75436
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
75436
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/module-wrapper.mjs
|
|
75437
75437
|
var __defProp$6 = Object.defineProperty;
|
|
75438
75438
|
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
75439
75439
|
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$6(obj, key, {
|
|
@@ -75885,7 +75885,7 @@ var NodeWrapper = class extends ModuleWrapper {
|
|
|
75885
75885
|
}
|
|
75886
75886
|
};
|
|
75887
75887
|
//#endregion
|
|
75888
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
75888
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/sentinel-model.mjs
|
|
75889
75889
|
var SentinelReportQuerySchema = asSchema("network.xyo.query.sentinel.report", true);
|
|
75890
75890
|
({ ...QueryFieldsZod.shape });
|
|
75891
75891
|
var isSentinelInstance = new IsInstanceFactory().create({ report: "function" }, [isModuleInstance]);
|
|
@@ -75940,7 +75940,7 @@ var SentinelWrapper = class extends ModuleWrapper {
|
|
|
75940
75940
|
}
|
|
75941
75941
|
};
|
|
75942
75942
|
//#endregion
|
|
75943
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
75943
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/witness-model.mjs
|
|
75944
75944
|
var WitnessObserveQuerySchema = asSchema("network.xyo.query.witness.observe", true);
|
|
75945
75945
|
({ ...QueryFieldsZod.shape });
|
|
75946
75946
|
var isWitnessInstance = new IsInstanceFactory().create({ observe: "function" }, [isModuleInstance]);
|
|
@@ -75966,7 +75966,7 @@ var WitnessWrapper = class extends ModuleWrapper {
|
|
|
75966
75966
|
}
|
|
75967
75967
|
};
|
|
75968
75968
|
//#endregion
|
|
75969
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
75969
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/bridge-abstract.mjs
|
|
75970
75970
|
var AbstractBridge = class _AbstractBridge extends AbstractModuleInstance {
|
|
75971
75971
|
static configSchemas = [...super.configSchemas, BridgeConfigSchema];
|
|
75972
75972
|
static defaultConfigSchema = BridgeConfigSchema;
|
|
@@ -76377,7 +76377,7 @@ var AbstractModuleProxy = class extends AbstractModuleInstance {
|
|
|
76377
76377
|
}
|
|
76378
76378
|
};
|
|
76379
76379
|
//#endregion
|
|
76380
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
76380
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/bridge-http.mjs
|
|
76381
76381
|
var __defProp$5 = Object.defineProperty;
|
|
76382
76382
|
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
76383
76383
|
var __getProtoOf$3 = Object.getPrototypeOf;
|
|
@@ -76650,7 +76650,7 @@ __publicField$4(HttpBridge, "fetchClient", new FetchJsonClient());
|
|
|
76650
76650
|
__publicField$4(HttpBridge, "maxFailureCacheSize", 1e3);
|
|
76651
76651
|
HttpBridge = __decorateClass$5([creatableModule()], HttpBridge);
|
|
76652
76652
|
//#endregion
|
|
76653
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
76653
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/diviner-abstract.mjs
|
|
76654
76654
|
var delayedResolve = async (parent, id, closure, as = asModuleInstance, timeout = 3e4, logger) => {
|
|
76655
76655
|
const start = Date.now();
|
|
76656
76656
|
let result;
|
|
@@ -76762,7 +76762,7 @@ var AbstractDiviner = class _AbstractDiviner extends AbstractModuleInstance {
|
|
|
76762
76762
|
}
|
|
76763
76763
|
};
|
|
76764
76764
|
//#endregion
|
|
76765
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
76765
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/diviner-boundwitness.mjs
|
|
76766
76766
|
var BoundWitnessDivinerSchema$1 = asSchema("network.xyo.diviner.boundwitness", true);
|
|
76767
76767
|
var BoundWitnessDivinerConfigSchema$1 = asSchema(`${BoundWitnessDivinerSchema$1}.config`, true);
|
|
76768
76768
|
(class extends AbstractDiviner {
|
|
@@ -76771,7 +76771,7 @@ var BoundWitnessDivinerConfigSchema$1 = asSchema(`${BoundWitnessDivinerSchema$1}
|
|
|
76771
76771
|
});
|
|
76772
76772
|
asSchema(`${BoundWitnessDivinerSchema$1}.query`, true), { ...QueryFieldsZod.shape };
|
|
76773
76773
|
//#endregion
|
|
76774
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
76774
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/diviner-identity.mjs
|
|
76775
76775
|
var __defProp$4 = Object.defineProperty;
|
|
76776
76776
|
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
76777
76777
|
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$4(obj, key, {
|
|
@@ -76795,13 +76795,13 @@ var IdentityDiviner = class extends AbstractDiviner {
|
|
|
76795
76795
|
__publicField$3(IdentityDiviner, "targetSchema", asSchema("network.xyo.test", true));
|
|
76796
76796
|
IdentityDiviner = __decorateClass$4([creatableModule()], IdentityDiviner);
|
|
76797
76797
|
//#endregion
|
|
76798
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
76798
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/diviner-payload-abstract.mjs
|
|
76799
76799
|
var PayloadDiviner = class extends AbstractDiviner {
|
|
76800
76800
|
static configSchemas = [...super.configSchemas, PayloadDivinerConfigSchema];
|
|
76801
76801
|
static defaultConfigSchema = PayloadDivinerConfigSchema;
|
|
76802
76802
|
};
|
|
76803
76803
|
//#endregion
|
|
76804
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
76804
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/diviner-payload-generic.mjs
|
|
76805
76805
|
var __defProp$3 = Object.defineProperty;
|
|
76806
76806
|
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
76807
76807
|
var __getProtoOf$2 = Object.getPrototypeOf;
|
|
@@ -76946,7 +76946,7 @@ asSchema("network.xyo.location.range.query", true);
|
|
|
76946
76946
|
asSchema("network.xyo.location.range.answer", true);
|
|
76947
76947
|
asSchema("network.xyo.diviner.remote.config", true);
|
|
76948
76948
|
//#endregion
|
|
76949
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
76949
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/archivist-memory.mjs
|
|
76950
76950
|
var __defProp$2 = Object.defineProperty;
|
|
76951
76951
|
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
76952
76952
|
var __getProtoOf$1 = Object.getPrototypeOf;
|
|
@@ -77085,7 +77085,7 @@ __publicField$1(MemoryArchivist, "labels", {
|
|
|
77085
77085
|
});
|
|
77086
77086
|
MemoryArchivist = __decorateClass$2([creatableModule()], MemoryArchivist);
|
|
77087
77087
|
//#endregion
|
|
77088
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
77088
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/node-abstract.mjs
|
|
77089
77089
|
var AbstractNode = class _AbstractNode extends AbstractModuleInstance {
|
|
77090
77090
|
static configSchemas = [...super.configSchemas, NodeConfigSchema];
|
|
77091
77091
|
static defaultConfigSchema = NodeConfigSchema;
|
|
@@ -77288,7 +77288,7 @@ var NodeHelper = {
|
|
|
77288
77288
|
attachedPublicModules
|
|
77289
77289
|
};
|
|
77290
77290
|
//#endregion
|
|
77291
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
77291
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/node-memory.mjs
|
|
77292
77292
|
var __defProp$1 = Object.defineProperty;
|
|
77293
77293
|
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
77294
77294
|
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
@@ -77509,7 +77509,7 @@ var MemoryNodeHelper = {
|
|
|
77509
77509
|
flatAttachToNewNode
|
|
77510
77510
|
};
|
|
77511
77511
|
//#endregion
|
|
77512
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
77512
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/diviner-boundwitness.memory.mjs
|
|
77513
77513
|
var applyBoundWitnessDivinerQueryPayload = (filter, payloads = []) => {
|
|
77514
77514
|
if (!filter) return [];
|
|
77515
77515
|
const { addresses, cursor, destination, limit, order = "desc", payload_hashes, payload_schemas, sourceQuery } = filter;
|
|
@@ -77548,7 +77548,7 @@ var MemoryBoundWitnessDiviner = class extends BoundWitnessDiviner {
|
|
|
77548
77548
|
}
|
|
77549
77549
|
};
|
|
77550
77550
|
//#endregion
|
|
77551
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
77551
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/node-view.mjs
|
|
77552
77552
|
var __defProp = Object.defineProperty;
|
|
77553
77553
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
77554
77554
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -77646,7 +77646,7 @@ __publicField(ViewNode, "defaultConfigSchema", ViewNodeConfigSchema);
|
|
|
77646
77646
|
__publicField(ViewNode, "labels", { ...ModuleLimitationViewLabel });
|
|
77647
77647
|
ViewNode = __decorateClass([creatableModule()], ViewNode);
|
|
77648
77648
|
//#endregion
|
|
77649
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
77649
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/sentinel-abstract.mjs
|
|
77650
77650
|
var AbstractSentinel = class _AbstractSentinel extends AbstractModuleInstance {
|
|
77651
77651
|
static configSchemas = [...super.configSchemas, SentinelConfigSchema];
|
|
77652
77652
|
static defaultConfigSchema = SentinelConfigSchema;
|
|
@@ -77752,7 +77752,7 @@ var AbstractSentinel = class _AbstractSentinel extends AbstractModuleInstance {
|
|
|
77752
77752
|
}
|
|
77753
77753
|
};
|
|
77754
77754
|
//#endregion
|
|
77755
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
77755
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/sentinel-memory.mjs
|
|
77756
77756
|
var SentinelIntervalAutomationWrapper = class extends PayloadWrapper {
|
|
77757
77757
|
constructor(payload) {
|
|
77758
77758
|
super(payload);
|
|
@@ -78023,7 +78023,7 @@ var MemorySentinel = class extends AbstractSentinel {
|
|
|
78023
78023
|
}
|
|
78024
78024
|
};
|
|
78025
78025
|
//#endregion
|
|
78026
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
78026
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/witness-abstract.mjs
|
|
78027
78027
|
var AbstractWitness = class _AbstractWitness extends AbstractModuleInstance {
|
|
78028
78028
|
static configSchemas = [...super.configSchemas, WitnessConfigSchema];
|
|
78029
78029
|
static defaultConfigSchema = WitnessConfigSchema;
|
|
@@ -78091,7 +78091,7 @@ var AbstractWitness = class _AbstractWitness extends AbstractModuleInstance {
|
|
|
78091
78091
|
}
|
|
78092
78092
|
};
|
|
78093
78093
|
//#endregion
|
|
78094
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.
|
|
78094
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sdk@7.2.1_@ariestools+sdk@8.1.3_@opentelemetry+api@1.9.1_zod@4.4.3__@opent_17fee32f2668cb1c2390db1dd02c1af4/node_modules/@xyo-network/sdk/dist/neutral/witness-adhoc.mjs
|
|
78095
78095
|
var AdhocWitnessConfigSchema = asSchema("network.xyo.witness.adhoc.config", true);
|
|
78096
78096
|
var AdhocWitness = class extends AbstractWitness {
|
|
78097
78097
|
static configSchemas = [...super.configSchemas, AdhocWitnessConfigSchema];
|
|
@@ -81352,7 +81352,7 @@ var require_error$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
81352
81352
|
module.exports.createError = createError;
|
|
81353
81353
|
}));
|
|
81354
81354
|
//#endregion
|
|
81355
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81355
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/lib/errors.js
|
|
81356
81356
|
var require_errors$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81357
81357
|
const { createError } = require_error$1();
|
|
81358
81358
|
module.exports = {
|
|
@@ -81367,7 +81367,7 @@ var require_errors$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
81367
81367
|
};
|
|
81368
81368
|
}));
|
|
81369
81369
|
//#endregion
|
|
81370
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81370
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/lib/symbols.js
|
|
81371
81371
|
var require_symbols$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81372
81372
|
module.exports = {
|
|
81373
81373
|
kAvvio: Symbol("avvio.Boot"),
|
|
@@ -81382,7 +81382,7 @@ var require_symbols$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
81382
81382
|
};
|
|
81383
81383
|
}));
|
|
81384
81384
|
//#endregion
|
|
81385
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81385
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/lib/time-tree.js
|
|
81386
81386
|
var require_time_tree = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81387
81387
|
const { kUntrackNode, kTrackNode, kGetParent, kGetNode, kAddNode } = require_symbols$2();
|
|
81388
81388
|
/**
|
|
@@ -81545,13 +81545,13 @@ var require_time_tree = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
81545
81545
|
module.exports = { TimeTree };
|
|
81546
81546
|
}));
|
|
81547
81547
|
//#endregion
|
|
81548
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81548
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/lib/debug.js
|
|
81549
81549
|
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81550
81550
|
const { debuglog } = __require$1("node:util");
|
|
81551
81551
|
module.exports = { debug: debuglog("avvio") };
|
|
81552
81552
|
}));
|
|
81553
81553
|
//#endregion
|
|
81554
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81554
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/lib/create-promise.js
|
|
81555
81555
|
var require_create_promise = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81556
81556
|
/**
|
|
81557
81557
|
* @callback PromiseResolve
|
|
@@ -81590,7 +81590,7 @@ var require_create_promise = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
81590
81590
|
module.exports = { createPromise };
|
|
81591
81591
|
}));
|
|
81592
81592
|
//#endregion
|
|
81593
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81593
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/lib/get-plugin-name.js
|
|
81594
81594
|
var require_get_plugin_name = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81595
81595
|
const { kPluginMeta } = require_symbols$2();
|
|
81596
81596
|
/**
|
|
@@ -81608,7 +81608,7 @@ var require_get_plugin_name = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
81608
81608
|
module.exports = { getPluginName };
|
|
81609
81609
|
}));
|
|
81610
81610
|
//#endregion
|
|
81611
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81611
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/lib/is-promise-like.js
|
|
81612
81612
|
var require_is_promise_like = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81613
81613
|
/**
|
|
81614
81614
|
* @param {any} maybePromiseLike
|
|
@@ -81620,7 +81620,7 @@ var require_is_promise_like = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
81620
81620
|
module.exports = { isPromiseLike };
|
|
81621
81621
|
}));
|
|
81622
81622
|
//#endregion
|
|
81623
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81623
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/lib/plugin.js
|
|
81624
81624
|
var require_plugin = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81625
81625
|
const { EventEmitter: EventEmitter$10 } = __require$1("node:events");
|
|
81626
81626
|
const { inherits: inherits$2 } = __require$1("node:util");
|
|
@@ -81825,7 +81825,7 @@ var require_plugin = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
81825
81825
|
module.exports = { Plugin };
|
|
81826
81826
|
}));
|
|
81827
81827
|
//#endregion
|
|
81828
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81828
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/lib/validate-plugin.js
|
|
81829
81829
|
var require_validate_plugin = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81830
81830
|
const { AVV_ERR_PLUGIN_NOT_VALID } = require_errors$2();
|
|
81831
81831
|
/**
|
|
@@ -81842,7 +81842,7 @@ var require_validate_plugin = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
81842
81842
|
module.exports = { validatePlugin };
|
|
81843
81843
|
}));
|
|
81844
81844
|
//#endregion
|
|
81845
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81845
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/lib/is-bundled-or-typescript-plugin.js
|
|
81846
81846
|
var require_is_bundled_or_typescript_plugin = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81847
81847
|
/**
|
|
81848
81848
|
* bundled or typescript plugin
|
|
@@ -81859,7 +81859,7 @@ var require_is_bundled_or_typescript_plugin = /* @__PURE__ */ __commonJSMin(((ex
|
|
|
81859
81859
|
module.exports = { isBundledOrTypescriptPlugin };
|
|
81860
81860
|
}));
|
|
81861
81861
|
//#endregion
|
|
81862
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81862
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/lib/thenify.js
|
|
81863
81863
|
var require_thenify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81864
81864
|
const { debug } = require_debug$1();
|
|
81865
81865
|
const { kThenifyDoNotWrap } = require_symbols$2();
|
|
@@ -81902,7 +81902,7 @@ var require_thenify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
81902
81902
|
module.exports = { thenify };
|
|
81903
81903
|
}));
|
|
81904
81904
|
//#endregion
|
|
81905
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81905
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/lib/execute-with-thenable.js
|
|
81906
81906
|
var require_execute_with_thenable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81907
81907
|
const { isPromiseLike } = require_is_promise_like();
|
|
81908
81908
|
const { kAvvio } = require_symbols$2();
|
|
@@ -81930,8 +81930,8 @@ var require_execute_with_thenable = /* @__PURE__ */ __commonJSMin(((exports, mod
|
|
|
81930
81930
|
module.exports = { executeWithThenable };
|
|
81931
81931
|
}));
|
|
81932
81932
|
//#endregion
|
|
81933
|
-
//#region ../../node_modules/.pnpm/avvio@9.
|
|
81934
|
-
var
|
|
81933
|
+
//#region ../../node_modules/.pnpm/avvio@9.3.0/node_modules/avvio/index.js
|
|
81934
|
+
var require_avvio = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
81935
81935
|
const fastq = require_queue();
|
|
81936
81936
|
const EE = __require$1("node:events").EventEmitter;
|
|
81937
81937
|
const inherits$1 = __require$1("node:util").inherits;
|
|
@@ -82230,9 +82230,12 @@ var require_boot = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82230
82230
|
executeWithThenable(func, [], cb);
|
|
82231
82231
|
} else if (func.length === 1) executeWithThenable(func, [err], cb);
|
|
82232
82232
|
else if (this._opts.timeout === 0) {
|
|
82233
|
+
let completed = false;
|
|
82233
82234
|
const wrapCb = (err) => {
|
|
82235
|
+
if (completed) return;
|
|
82236
|
+
completed = true;
|
|
82234
82237
|
this._error = err;
|
|
82235
|
-
cb
|
|
82238
|
+
process.nextTick(cb, this._error);
|
|
82236
82239
|
};
|
|
82237
82240
|
if (func.length === 2) func(err, wrapCb);
|
|
82238
82241
|
else func(err, context, wrapCb);
|
|
@@ -82254,8 +82257,9 @@ var require_boot = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
82254
82257
|
function timeoutCb(err) {
|
|
82255
82258
|
if (timer) {
|
|
82256
82259
|
clearTimeout(timer);
|
|
82260
|
+
timer = null;
|
|
82257
82261
|
this._error = err;
|
|
82258
|
-
cb
|
|
82262
|
+
process.nextTick(cb, this._error);
|
|
82259
82263
|
}
|
|
82260
82264
|
}
|
|
82261
82265
|
}
|
|
@@ -89870,7 +89874,7 @@ var require_schemas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89870
89874
|
};
|
|
89871
89875
|
}));
|
|
89872
89876
|
//#endregion
|
|
89873
|
-
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.
|
|
89877
|
+
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.1/node_modules/fast-json-stringify/lib/serializer.js
|
|
89874
89878
|
var require_serializer$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89875
89879
|
const STR_ESCAPE = /[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;
|
|
89876
89880
|
module.exports = class Serializer {
|
|
@@ -94413,7 +94417,7 @@ var require_jtd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94413
94417
|
//#endregion
|
|
94414
94418
|
//#region ../../node_modules/.pnpm/@fastify+ajv-compiler@4.0.5/node_modules/@fastify/ajv-compiler/lib/default-ajv-options.js
|
|
94415
94419
|
var require_default_ajv_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
94416
|
-
const fastUri = require_fast_uri();
|
|
94420
|
+
const fastUri = require_fast_uri$1();
|
|
94417
94421
|
module.exports = Object.freeze({
|
|
94418
94422
|
coerceTypes: "array",
|
|
94419
94423
|
useDefaults: true,
|
|
@@ -95170,7 +95174,934 @@ var require_json_schema_ref_resolver = /* @__PURE__ */ __commonJSMin(((exports,
|
|
|
95170
95174
|
module.exports = { RefResolver };
|
|
95171
95175
|
}));
|
|
95172
95176
|
//#endregion
|
|
95173
|
-
//#region ../../node_modules/.pnpm/fast-
|
|
95177
|
+
//#region ../../node_modules/.pnpm/fast-uri@4.1.1/node_modules/fast-uri/lib/utils.js
|
|
95178
|
+
var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
95179
|
+
/** @type {(value: string) => boolean} */
|
|
95180
|
+
const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
95181
|
+
/** @type {(value: string) => boolean} */
|
|
95182
|
+
const isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
95183
|
+
/** @type {(value: string) => boolean} */
|
|
95184
|
+
const isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
95185
|
+
/** @type {(value: string) => boolean} */
|
|
95186
|
+
const isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
95187
|
+
/** @type {(value: string) => boolean} */
|
|
95188
|
+
const isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
|
|
95189
|
+
/** @type {(value: string) => boolean} */
|
|
95190
|
+
const isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/?]$/iu);
|
|
95191
|
+
/**
|
|
95192
|
+
* @param {Array<string>} input
|
|
95193
|
+
* @returns {string}
|
|
95194
|
+
*/
|
|
95195
|
+
function stringArrayToHexStripped(input) {
|
|
95196
|
+
let acc = "";
|
|
95197
|
+
let code = 0;
|
|
95198
|
+
let i = 0;
|
|
95199
|
+
for (i = 0; i < input.length; i++) {
|
|
95200
|
+
code = input[i].charCodeAt(0);
|
|
95201
|
+
if (code === 48) continue;
|
|
95202
|
+
if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) return "";
|
|
95203
|
+
acc += input[i];
|
|
95204
|
+
break;
|
|
95205
|
+
}
|
|
95206
|
+
for (i += 1; i < input.length; i++) {
|
|
95207
|
+
code = input[i].charCodeAt(0);
|
|
95208
|
+
if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) return "";
|
|
95209
|
+
acc += input[i];
|
|
95210
|
+
}
|
|
95211
|
+
return acc;
|
|
95212
|
+
}
|
|
95213
|
+
/**
|
|
95214
|
+
* @typedef {Object} GetIPV6Result
|
|
95215
|
+
* @property {boolean} error - Indicates if there was an error parsing the IPv6 address.
|
|
95216
|
+
* @property {string} address - The parsed IPv6 address.
|
|
95217
|
+
* @property {string} [zone] - The zone identifier, if present.
|
|
95218
|
+
*/
|
|
95219
|
+
/**
|
|
95220
|
+
* @param {string} value
|
|
95221
|
+
* @returns {boolean}
|
|
95222
|
+
*/
|
|
95223
|
+
const nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
|
|
95224
|
+
/**
|
|
95225
|
+
* @param {Array<string>} buffer
|
|
95226
|
+
* @returns {boolean}
|
|
95227
|
+
*/
|
|
95228
|
+
function consumeIsZone(buffer) {
|
|
95229
|
+
buffer.length = 0;
|
|
95230
|
+
return true;
|
|
95231
|
+
}
|
|
95232
|
+
/**
|
|
95233
|
+
* @param {Array<string>} buffer
|
|
95234
|
+
* @param {Array<string>} address
|
|
95235
|
+
* @param {GetIPV6Result} output
|
|
95236
|
+
* @returns {boolean}
|
|
95237
|
+
*/
|
|
95238
|
+
function consumeHextets(buffer, address, output) {
|
|
95239
|
+
if (buffer.length) {
|
|
95240
|
+
const hex = stringArrayToHexStripped(buffer);
|
|
95241
|
+
if (hex !== "") address.push(hex);
|
|
95242
|
+
else {
|
|
95243
|
+
output.error = true;
|
|
95244
|
+
return false;
|
|
95245
|
+
}
|
|
95246
|
+
buffer.length = 0;
|
|
95247
|
+
}
|
|
95248
|
+
return true;
|
|
95249
|
+
}
|
|
95250
|
+
/**
|
|
95251
|
+
* @param {string} input
|
|
95252
|
+
* @returns {GetIPV6Result}
|
|
95253
|
+
*/
|
|
95254
|
+
function getIPV6(input) {
|
|
95255
|
+
let tokenCount = 0;
|
|
95256
|
+
const output = {
|
|
95257
|
+
error: false,
|
|
95258
|
+
address: "",
|
|
95259
|
+
zone: ""
|
|
95260
|
+
};
|
|
95261
|
+
/** @type {Array<string>} */
|
|
95262
|
+
const address = [];
|
|
95263
|
+
/** @type {Array<string>} */
|
|
95264
|
+
const buffer = [];
|
|
95265
|
+
let endipv6Encountered = false;
|
|
95266
|
+
let endIpv6 = false;
|
|
95267
|
+
let consume = consumeHextets;
|
|
95268
|
+
for (let i = 0; i < input.length; i++) {
|
|
95269
|
+
const cursor = input[i];
|
|
95270
|
+
if (cursor === "[" || cursor === "]") continue;
|
|
95271
|
+
if (cursor === ":") {
|
|
95272
|
+
if (endipv6Encountered === true) endIpv6 = true;
|
|
95273
|
+
if (!consume(buffer, address, output)) break;
|
|
95274
|
+
if (++tokenCount > 7) {
|
|
95275
|
+
output.error = true;
|
|
95276
|
+
break;
|
|
95277
|
+
}
|
|
95278
|
+
if (i > 0 && input[i - 1] === ":") endipv6Encountered = true;
|
|
95279
|
+
address.push(":");
|
|
95280
|
+
continue;
|
|
95281
|
+
} else if (cursor === "%") {
|
|
95282
|
+
if (!consume(buffer, address, output)) break;
|
|
95283
|
+
consume = consumeIsZone;
|
|
95284
|
+
} else {
|
|
95285
|
+
buffer.push(cursor);
|
|
95286
|
+
continue;
|
|
95287
|
+
}
|
|
95288
|
+
}
|
|
95289
|
+
if (buffer.length) if (consume === consumeIsZone) output.zone = buffer.join("");
|
|
95290
|
+
else if (endIpv6) address.push(buffer.join(""));
|
|
95291
|
+
else address.push(stringArrayToHexStripped(buffer));
|
|
95292
|
+
output.address = address.join("");
|
|
95293
|
+
return output;
|
|
95294
|
+
}
|
|
95295
|
+
/**
|
|
95296
|
+
* @typedef {Object} NormalizeIPv6Result
|
|
95297
|
+
* @property {string} host - The normalized host.
|
|
95298
|
+
* @property {string} [escapedHost] - The escaped host.
|
|
95299
|
+
* @property {boolean} isIPV6 - Indicates if the host is an IPv6 address.
|
|
95300
|
+
*/
|
|
95301
|
+
/**
|
|
95302
|
+
* @param {string} host
|
|
95303
|
+
* @returns {NormalizeIPv6Result}
|
|
95304
|
+
*/
|
|
95305
|
+
function normalizeIPv6(host) {
|
|
95306
|
+
if (findToken(host, ":") < 2) return {
|
|
95307
|
+
host,
|
|
95308
|
+
isIPV6: false
|
|
95309
|
+
};
|
|
95310
|
+
const ipv6 = getIPV6(host);
|
|
95311
|
+
if (!ipv6.error) {
|
|
95312
|
+
let newHost = ipv6.address;
|
|
95313
|
+
let escapedHost = ipv6.address;
|
|
95314
|
+
if (ipv6.zone) {
|
|
95315
|
+
newHost += "%" + ipv6.zone;
|
|
95316
|
+
escapedHost += "%25" + ipv6.zone;
|
|
95317
|
+
}
|
|
95318
|
+
return {
|
|
95319
|
+
host: newHost,
|
|
95320
|
+
isIPV6: true,
|
|
95321
|
+
escapedHost
|
|
95322
|
+
};
|
|
95323
|
+
} else return {
|
|
95324
|
+
host,
|
|
95325
|
+
isIPV6: false
|
|
95326
|
+
};
|
|
95327
|
+
}
|
|
95328
|
+
/**
|
|
95329
|
+
* @param {string} str
|
|
95330
|
+
* @param {string} token
|
|
95331
|
+
* @returns {number}
|
|
95332
|
+
*/
|
|
95333
|
+
function findToken(str, token) {
|
|
95334
|
+
let ind = 0;
|
|
95335
|
+
for (let i = 0; i < str.length; i++) if (str[i] === token) ind++;
|
|
95336
|
+
return ind;
|
|
95337
|
+
}
|
|
95338
|
+
/**
|
|
95339
|
+
* @param {string} path
|
|
95340
|
+
* @returns {string}
|
|
95341
|
+
*
|
|
95342
|
+
* @see https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4
|
|
95343
|
+
*/
|
|
95344
|
+
function removeDotSegments(path) {
|
|
95345
|
+
let input = path;
|
|
95346
|
+
const output = [];
|
|
95347
|
+
let nextSlash = -1;
|
|
95348
|
+
let len = 0;
|
|
95349
|
+
while (len = input.length) {
|
|
95350
|
+
if (len === 1) if (input === ".") break;
|
|
95351
|
+
else if (input === "/") {
|
|
95352
|
+
output.push("/");
|
|
95353
|
+
break;
|
|
95354
|
+
} else {
|
|
95355
|
+
output.push(input);
|
|
95356
|
+
break;
|
|
95357
|
+
}
|
|
95358
|
+
else if (len === 2) {
|
|
95359
|
+
if (input[0] === ".") {
|
|
95360
|
+
if (input[1] === ".") break;
|
|
95361
|
+
else if (input[1] === "/") {
|
|
95362
|
+
input = input.slice(2);
|
|
95363
|
+
continue;
|
|
95364
|
+
}
|
|
95365
|
+
} else if (input[0] === "/") {
|
|
95366
|
+
if (input[1] === ".") {
|
|
95367
|
+
output.push("/");
|
|
95368
|
+
break;
|
|
95369
|
+
}
|
|
95370
|
+
}
|
|
95371
|
+
} else if (len === 3) {
|
|
95372
|
+
if (input === "/..") {
|
|
95373
|
+
if (output.length !== 0) output.pop();
|
|
95374
|
+
output.push("/");
|
|
95375
|
+
break;
|
|
95376
|
+
}
|
|
95377
|
+
}
|
|
95378
|
+
if (input[0] === ".") {
|
|
95379
|
+
if (input[1] === ".") {
|
|
95380
|
+
if (input[2] === "/") {
|
|
95381
|
+
input = input.slice(3);
|
|
95382
|
+
continue;
|
|
95383
|
+
}
|
|
95384
|
+
} else if (input[1] === "/") {
|
|
95385
|
+
input = input.slice(2);
|
|
95386
|
+
continue;
|
|
95387
|
+
}
|
|
95388
|
+
} else if (input[0] === "/") {
|
|
95389
|
+
if (input[1] === ".") {
|
|
95390
|
+
if (input[2] === "/") {
|
|
95391
|
+
input = input.slice(2);
|
|
95392
|
+
continue;
|
|
95393
|
+
} else if (input[2] === ".") {
|
|
95394
|
+
if (input[3] === "/") {
|
|
95395
|
+
input = input.slice(3);
|
|
95396
|
+
if (output.length !== 0) output.pop();
|
|
95397
|
+
continue;
|
|
95398
|
+
}
|
|
95399
|
+
}
|
|
95400
|
+
}
|
|
95401
|
+
}
|
|
95402
|
+
if ((nextSlash = input.indexOf("/", 1)) === -1) {
|
|
95403
|
+
output.push(input);
|
|
95404
|
+
break;
|
|
95405
|
+
} else {
|
|
95406
|
+
output.push(input.slice(0, nextSlash));
|
|
95407
|
+
input = input.slice(nextSlash);
|
|
95408
|
+
}
|
|
95409
|
+
}
|
|
95410
|
+
return output.join("");
|
|
95411
|
+
}
|
|
95412
|
+
/**
|
|
95413
|
+
* Re-escape RFC 3986 gen-delims that must not appear literally in the host.
|
|
95414
|
+
* After the URI regex parses, these characters cannot be literal in the host
|
|
95415
|
+
* field, so any that appear after decoding came from percent-encoding and
|
|
95416
|
+
* must be restored to prevent authority structure changes.
|
|
95417
|
+
*
|
|
95418
|
+
* @param {string} host
|
|
95419
|
+
* @param {boolean} isIP - true for IPv4/IPv6 hosts (skip colon re-escaping)
|
|
95420
|
+
* @returns {string}
|
|
95421
|
+
*/
|
|
95422
|
+
const HOST_DELIMS = {
|
|
95423
|
+
"@": "%40",
|
|
95424
|
+
"/": "%2F",
|
|
95425
|
+
"?": "%3F",
|
|
95426
|
+
"#": "%23",
|
|
95427
|
+
":": "%3A"
|
|
95428
|
+
};
|
|
95429
|
+
const HOST_DELIM_RE = /[@/?#:]/g;
|
|
95430
|
+
const HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
95431
|
+
function reescapeHostDelimiters(host, isIP) {
|
|
95432
|
+
const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
|
|
95433
|
+
re.lastIndex = 0;
|
|
95434
|
+
return host.replace(re, (ch) => HOST_DELIMS[ch]);
|
|
95435
|
+
}
|
|
95436
|
+
/**
|
|
95437
|
+
* Normalizes percent escapes and optionally decodes only unreserved ASCII bytes.
|
|
95438
|
+
* Reserved delimiters such as `%2F` and `%2E` stay escaped.
|
|
95439
|
+
*
|
|
95440
|
+
* @param {string} input
|
|
95441
|
+
* @param {boolean} [decodeUnreserved=false]
|
|
95442
|
+
* @returns {string}
|
|
95443
|
+
*/
|
|
95444
|
+
function normalizePercentEncoding(input, decodeUnreserved = false) {
|
|
95445
|
+
if (input.indexOf("%") === -1) return input;
|
|
95446
|
+
let output = "";
|
|
95447
|
+
for (let i = 0; i < input.length; i++) {
|
|
95448
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
95449
|
+
const hex = input.slice(i + 1, i + 3);
|
|
95450
|
+
if (isHexPair(hex)) {
|
|
95451
|
+
const normalizedHex = hex.toUpperCase();
|
|
95452
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
95453
|
+
if (decodeUnreserved && isUnreserved(decoded)) output += decoded;
|
|
95454
|
+
else output += "%" + normalizedHex;
|
|
95455
|
+
i += 2;
|
|
95456
|
+
continue;
|
|
95457
|
+
}
|
|
95458
|
+
}
|
|
95459
|
+
output += input[i];
|
|
95460
|
+
}
|
|
95461
|
+
return output;
|
|
95462
|
+
}
|
|
95463
|
+
/** Pre-built `%XX` strings for every byte. Avoids per-call hex math/concat. */
|
|
95464
|
+
const BYTE_HEX = new Array(256);
|
|
95465
|
+
{
|
|
95466
|
+
const HEX_DIGITS = "0123456789ABCDEF";
|
|
95467
|
+
for (let i = 0; i < 256; i++) BYTE_HEX[i] = "%" + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 15];
|
|
95468
|
+
}
|
|
95469
|
+
/**
|
|
95470
|
+
* Mirrors the pass-through set of the deprecated `escape()` global:
|
|
95471
|
+
* `A-Z a-z 0-9 * + - . / @ _`. Keeps drop-in semantics for ASCII input.
|
|
95472
|
+
*
|
|
95473
|
+
* @param {number} cp
|
|
95474
|
+
* @returns {boolean}
|
|
95475
|
+
*/
|
|
95476
|
+
function isEscapeSafe(cp) {
|
|
95477
|
+
return cp >= 48 && cp <= 57 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 42 || cp === 43 || cp === 45 || cp === 46 || cp === 47 || cp === 64 || cp === 95;
|
|
95478
|
+
}
|
|
95479
|
+
/**
|
|
95480
|
+
* RFC 3986 percent-encode a non-ASCII Unicode code point as UTF-8 bytes.
|
|
95481
|
+
* Caller handles the ASCII branch inline for speed.
|
|
95482
|
+
*
|
|
95483
|
+
* @param {number} cp - Unicode code point (>= 0x80, <= 0x10FFFF)
|
|
95484
|
+
* @returns {string}
|
|
95485
|
+
*/
|
|
95486
|
+
function percentEncodeNonAscii(cp) {
|
|
95487
|
+
if (cp < 2048) return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
|
|
95488
|
+
if (cp < 65536) return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
|
|
95489
|
+
return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
|
|
95490
|
+
}
|
|
95491
|
+
/**
|
|
95492
|
+
* Normalizes path data without turning reserved escapes into live path syntax.
|
|
95493
|
+
* Valid escapes are uppercased, raw unsafe characters are escaped, and only
|
|
95494
|
+
* unreserved bytes that are not `.` are decoded.
|
|
95495
|
+
*
|
|
95496
|
+
* @param {string} input
|
|
95497
|
+
* @returns {string}
|
|
95498
|
+
*/
|
|
95499
|
+
function normalizePathEncoding(input) {
|
|
95500
|
+
let output = "";
|
|
95501
|
+
for (let i = 0; i < input.length; i++) {
|
|
95502
|
+
const ch = input[i];
|
|
95503
|
+
if (ch === "%" && i + 2 < input.length) {
|
|
95504
|
+
const hex = input.slice(i + 1, i + 3);
|
|
95505
|
+
if (isHexPair(hex)) {
|
|
95506
|
+
const normalizedHex = hex.toUpperCase();
|
|
95507
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
95508
|
+
if (decoded !== "." && isUnreserved(decoded)) output += decoded;
|
|
95509
|
+
else output += "%" + normalizedHex;
|
|
95510
|
+
i += 2;
|
|
95511
|
+
continue;
|
|
95512
|
+
}
|
|
95513
|
+
}
|
|
95514
|
+
if (isPathCharacter(ch)) output += ch;
|
|
95515
|
+
else {
|
|
95516
|
+
const code = input.charCodeAt(i);
|
|
95517
|
+
if (code < 128) output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
|
|
95518
|
+
else if (code < 55296 || code > 57343) output += percentEncodeNonAscii(code);
|
|
95519
|
+
else if (code <= 56319 && i + 1 < input.length) {
|
|
95520
|
+
const low = input.charCodeAt(i + 1);
|
|
95521
|
+
if (low >= 56320 && low <= 57343) {
|
|
95522
|
+
output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
95523
|
+
i++;
|
|
95524
|
+
} else output += percentEncodeNonAscii(65533);
|
|
95525
|
+
} else output += percentEncodeNonAscii(65533);
|
|
95526
|
+
}
|
|
95527
|
+
}
|
|
95528
|
+
return output;
|
|
95529
|
+
}
|
|
95530
|
+
/**
|
|
95531
|
+
* Normalizes the percent-encoding of a query or fragment component.
|
|
95532
|
+
*
|
|
95533
|
+
* Like `normalizePathEncoding`, but uses the query/fragment character set
|
|
95534
|
+
* (which additionally allows `?`) and decodes `.` since it has no dot-segment
|
|
95535
|
+
* meaning outside of a path.
|
|
95536
|
+
*
|
|
95537
|
+
* @param {string} input
|
|
95538
|
+
* @returns {string}
|
|
95539
|
+
*/
|
|
95540
|
+
function normalizeQueryFragmentEncoding(input) {
|
|
95541
|
+
let output = "";
|
|
95542
|
+
for (let i = 0; i < input.length; i++) {
|
|
95543
|
+
const ch = input[i];
|
|
95544
|
+
if (ch === "%" && i + 2 < input.length) {
|
|
95545
|
+
const hex = input.slice(i + 1, i + 3);
|
|
95546
|
+
if (isHexPair(hex)) {
|
|
95547
|
+
const normalizedHex = hex.toUpperCase();
|
|
95548
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
95549
|
+
if (isUnreserved(decoded)) output += decoded;
|
|
95550
|
+
else output += "%" + normalizedHex;
|
|
95551
|
+
i += 2;
|
|
95552
|
+
continue;
|
|
95553
|
+
}
|
|
95554
|
+
}
|
|
95555
|
+
if (isQueryFragmentCharacter(ch)) output += ch;
|
|
95556
|
+
else {
|
|
95557
|
+
const code = input.charCodeAt(i);
|
|
95558
|
+
if (code < 128) output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
|
|
95559
|
+
else if (code < 55296 || code > 57343) output += percentEncodeNonAscii(code);
|
|
95560
|
+
else if (code <= 56319 && i + 1 < input.length) {
|
|
95561
|
+
const low = input.charCodeAt(i + 1);
|
|
95562
|
+
if (low >= 56320 && low <= 57343) {
|
|
95563
|
+
output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
95564
|
+
i++;
|
|
95565
|
+
} else output += percentEncodeNonAscii(65533);
|
|
95566
|
+
} else output += percentEncodeNonAscii(65533);
|
|
95567
|
+
}
|
|
95568
|
+
}
|
|
95569
|
+
return output;
|
|
95570
|
+
}
|
|
95571
|
+
/**
|
|
95572
|
+
* Escapes a component while preserving existing valid percent escapes.
|
|
95573
|
+
*
|
|
95574
|
+
* @param {string} input
|
|
95575
|
+
* @returns {string}
|
|
95576
|
+
*/
|
|
95577
|
+
function escapePreservingEscapes(input) {
|
|
95578
|
+
let output = "";
|
|
95579
|
+
for (let i = 0; i < input.length; i++) {
|
|
95580
|
+
const ch = input[i];
|
|
95581
|
+
if (ch === "%" && i + 2 < input.length) {
|
|
95582
|
+
const hex = input.slice(i + 1, i + 3);
|
|
95583
|
+
if (isHexPair(hex)) {
|
|
95584
|
+
output += "%" + hex.toUpperCase();
|
|
95585
|
+
i += 2;
|
|
95586
|
+
continue;
|
|
95587
|
+
}
|
|
95588
|
+
}
|
|
95589
|
+
const code = input.charCodeAt(i);
|
|
95590
|
+
if (code < 128) output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
|
|
95591
|
+
else if (code < 55296 || code > 57343) output += percentEncodeNonAscii(code);
|
|
95592
|
+
else if (code <= 56319 && i + 1 < input.length) {
|
|
95593
|
+
const low = input.charCodeAt(i + 1);
|
|
95594
|
+
if (low >= 56320 && low <= 57343) {
|
|
95595
|
+
output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
95596
|
+
i++;
|
|
95597
|
+
} else output += percentEncodeNonAscii(65533);
|
|
95598
|
+
} else output += percentEncodeNonAscii(65533);
|
|
95599
|
+
}
|
|
95600
|
+
return output;
|
|
95601
|
+
}
|
|
95602
|
+
/**
|
|
95603
|
+
* @param {import('../types/index').URIComponent} component
|
|
95604
|
+
* @returns {string|undefined}
|
|
95605
|
+
*/
|
|
95606
|
+
function recomposeAuthority(component) {
|
|
95607
|
+
const uriTokens = [];
|
|
95608
|
+
if (component.userinfo !== void 0) {
|
|
95609
|
+
uriTokens.push(component.userinfo);
|
|
95610
|
+
uriTokens.push("@");
|
|
95611
|
+
}
|
|
95612
|
+
if (component.host !== void 0) {
|
|
95613
|
+
let host = unescape(component.host);
|
|
95614
|
+
if (!isIPv4(host)) {
|
|
95615
|
+
const ipV6res = normalizeIPv6(host);
|
|
95616
|
+
if (ipV6res.isIPV6 === true) host = `[${ipV6res.escapedHost}]`;
|
|
95617
|
+
else host = reescapeHostDelimiters(host, false);
|
|
95618
|
+
}
|
|
95619
|
+
uriTokens.push(host);
|
|
95620
|
+
}
|
|
95621
|
+
if (typeof component.port === "number" || typeof component.port === "string") {
|
|
95622
|
+
uriTokens.push(":");
|
|
95623
|
+
uriTokens.push(String(component.port));
|
|
95624
|
+
}
|
|
95625
|
+
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
95626
|
+
}
|
|
95627
|
+
module.exports = {
|
|
95628
|
+
nonSimpleDomain,
|
|
95629
|
+
recomposeAuthority,
|
|
95630
|
+
reescapeHostDelimiters,
|
|
95631
|
+
normalizePercentEncoding,
|
|
95632
|
+
normalizePathEncoding,
|
|
95633
|
+
normalizeQueryFragmentEncoding,
|
|
95634
|
+
escapePreservingEscapes,
|
|
95635
|
+
removeDotSegments,
|
|
95636
|
+
isIPv4,
|
|
95637
|
+
isUUID,
|
|
95638
|
+
normalizeIPv6,
|
|
95639
|
+
stringArrayToHexStripped
|
|
95640
|
+
};
|
|
95641
|
+
}));
|
|
95642
|
+
//#endregion
|
|
95643
|
+
//#region ../../node_modules/.pnpm/fast-uri@4.1.1/node_modules/fast-uri/lib/schemes.js
|
|
95644
|
+
var require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
95645
|
+
const { isUUID } = require_utils$2();
|
|
95646
|
+
const URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
95647
|
+
const supportedSchemeNames = [
|
|
95648
|
+
"http",
|
|
95649
|
+
"https",
|
|
95650
|
+
"ws",
|
|
95651
|
+
"wss",
|
|
95652
|
+
"urn",
|
|
95653
|
+
"urn:uuid"
|
|
95654
|
+
];
|
|
95655
|
+
/** @typedef {supportedSchemeNames[number]} SchemeName */
|
|
95656
|
+
/**
|
|
95657
|
+
* @param {string} name
|
|
95658
|
+
* @returns {name is SchemeName}
|
|
95659
|
+
*/
|
|
95660
|
+
function isValidSchemeName(name) {
|
|
95661
|
+
return supportedSchemeNames.indexOf(name) !== -1;
|
|
95662
|
+
}
|
|
95663
|
+
/**
|
|
95664
|
+
* @callback SchemeFn
|
|
95665
|
+
* @param {import('../types/index').URIComponent} component
|
|
95666
|
+
* @param {import('../types/index').Options} options
|
|
95667
|
+
* @returns {import('../types/index').URIComponent}
|
|
95668
|
+
*/
|
|
95669
|
+
/**
|
|
95670
|
+
* @typedef {Object} SchemeHandler
|
|
95671
|
+
* @property {SchemeName} scheme - The scheme name.
|
|
95672
|
+
* @property {boolean} [domainHost] - Indicates if the scheme supports domain hosts.
|
|
95673
|
+
* @property {SchemeFn} parse - Function to parse the URI component for this scheme.
|
|
95674
|
+
* @property {SchemeFn} serialize - Function to serialize the URI component for this scheme.
|
|
95675
|
+
* @property {boolean} [skipNormalize] - Indicates if normalization should be skipped for this scheme.
|
|
95676
|
+
* @property {boolean} [absolutePath] - Indicates if the scheme uses absolute paths.
|
|
95677
|
+
* @property {boolean} [unicodeSupport] - Indicates if the scheme supports Unicode.
|
|
95678
|
+
*/
|
|
95679
|
+
/**
|
|
95680
|
+
* @param {import('../types/index').URIComponent} wsComponent
|
|
95681
|
+
* @returns {boolean}
|
|
95682
|
+
*/
|
|
95683
|
+
function wsIsSecure(wsComponent) {
|
|
95684
|
+
if (wsComponent.secure === true) return true;
|
|
95685
|
+
else if (wsComponent.secure === false) return false;
|
|
95686
|
+
else if (wsComponent.scheme) return wsComponent.scheme.length === 3 && (wsComponent.scheme[0] === "w" || wsComponent.scheme[0] === "W") && (wsComponent.scheme[1] === "s" || wsComponent.scheme[1] === "S") && (wsComponent.scheme[2] === "s" || wsComponent.scheme[2] === "S");
|
|
95687
|
+
else return false;
|
|
95688
|
+
}
|
|
95689
|
+
/** @type {SchemeFn} */
|
|
95690
|
+
function httpParse(component) {
|
|
95691
|
+
if (!component.host) component.error = component.error || "HTTP URIs must have a host.";
|
|
95692
|
+
return component;
|
|
95693
|
+
}
|
|
95694
|
+
/** @type {SchemeFn} */
|
|
95695
|
+
function httpSerialize(component) {
|
|
95696
|
+
const secure = String(component.scheme).toLowerCase() === "https";
|
|
95697
|
+
if (component.port === (secure ? 443 : 80) || component.port === "") component.port = void 0;
|
|
95698
|
+
if (!component.path) component.path = "/";
|
|
95699
|
+
return component;
|
|
95700
|
+
}
|
|
95701
|
+
/** @type {SchemeFn} */
|
|
95702
|
+
function wsParse(wsComponent) {
|
|
95703
|
+
wsComponent.secure = wsIsSecure(wsComponent);
|
|
95704
|
+
wsComponent.resourceName = (wsComponent.path || "/") + (wsComponent.query ? "?" + wsComponent.query : "");
|
|
95705
|
+
wsComponent.path = void 0;
|
|
95706
|
+
wsComponent.query = void 0;
|
|
95707
|
+
return wsComponent;
|
|
95708
|
+
}
|
|
95709
|
+
/** @type {SchemeFn} */
|
|
95710
|
+
function wsSerialize(wsComponent) {
|
|
95711
|
+
if (wsComponent.port === (wsIsSecure(wsComponent) ? 443 : 80) || wsComponent.port === "") wsComponent.port = void 0;
|
|
95712
|
+
if (typeof wsComponent.secure === "boolean") {
|
|
95713
|
+
wsComponent.scheme = wsComponent.secure ? "wss" : "ws";
|
|
95714
|
+
wsComponent.secure = void 0;
|
|
95715
|
+
}
|
|
95716
|
+
if (wsComponent.resourceName) {
|
|
95717
|
+
const [path, query] = wsComponent.resourceName.split("?");
|
|
95718
|
+
wsComponent.path = path && path !== "/" ? path : void 0;
|
|
95719
|
+
wsComponent.query = query;
|
|
95720
|
+
wsComponent.resourceName = void 0;
|
|
95721
|
+
}
|
|
95722
|
+
wsComponent.fragment = void 0;
|
|
95723
|
+
return wsComponent;
|
|
95724
|
+
}
|
|
95725
|
+
/** @type {SchemeFn} */
|
|
95726
|
+
function urnParse(urnComponent, options) {
|
|
95727
|
+
if (!urnComponent.path) {
|
|
95728
|
+
urnComponent.error = "URN can not be parsed";
|
|
95729
|
+
return urnComponent;
|
|
95730
|
+
}
|
|
95731
|
+
const matches = urnComponent.path.match(URN_REG);
|
|
95732
|
+
if (matches) {
|
|
95733
|
+
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
95734
|
+
urnComponent.nid = matches[1].toLowerCase();
|
|
95735
|
+
urnComponent.nss = matches[2];
|
|
95736
|
+
const schemeHandler = getSchemeHandler(`${scheme}:${options.nid || urnComponent.nid}`);
|
|
95737
|
+
urnComponent.path = void 0;
|
|
95738
|
+
if (schemeHandler) urnComponent = schemeHandler.parse(urnComponent, options);
|
|
95739
|
+
} else urnComponent.error = urnComponent.error || "URN can not be parsed.";
|
|
95740
|
+
return urnComponent;
|
|
95741
|
+
}
|
|
95742
|
+
/** @type {SchemeFn} */
|
|
95743
|
+
function urnSerialize(urnComponent, options) {
|
|
95744
|
+
if (urnComponent.nid === void 0) throw new Error("URN without nid cannot be serialized");
|
|
95745
|
+
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
95746
|
+
const nid = urnComponent.nid.toLowerCase();
|
|
95747
|
+
const schemeHandler = getSchemeHandler(`${scheme}:${options.nid || nid}`);
|
|
95748
|
+
if (schemeHandler) urnComponent = schemeHandler.serialize(urnComponent, options);
|
|
95749
|
+
const uriComponent = urnComponent;
|
|
95750
|
+
const nss = urnComponent.nss;
|
|
95751
|
+
uriComponent.path = `${nid || options.nid}:${nss}`;
|
|
95752
|
+
options.skipEscape = true;
|
|
95753
|
+
return uriComponent;
|
|
95754
|
+
}
|
|
95755
|
+
/** @type {SchemeFn} */
|
|
95756
|
+
function urnuuidParse(urnComponent, options) {
|
|
95757
|
+
const uuidComponent = urnComponent;
|
|
95758
|
+
uuidComponent.uuid = uuidComponent.nss;
|
|
95759
|
+
uuidComponent.nss = void 0;
|
|
95760
|
+
if (!options.tolerant && (!uuidComponent.uuid || !isUUID(uuidComponent.uuid))) uuidComponent.error = uuidComponent.error || "UUID is not valid.";
|
|
95761
|
+
return uuidComponent;
|
|
95762
|
+
}
|
|
95763
|
+
/** @type {SchemeFn} */
|
|
95764
|
+
function urnuuidSerialize(uuidComponent) {
|
|
95765
|
+
const urnComponent = uuidComponent;
|
|
95766
|
+
urnComponent.nss = (uuidComponent.uuid || "").toLowerCase();
|
|
95767
|
+
return urnComponent;
|
|
95768
|
+
}
|
|
95769
|
+
const http = {
|
|
95770
|
+
scheme: "http",
|
|
95771
|
+
domainHost: true,
|
|
95772
|
+
parse: httpParse,
|
|
95773
|
+
serialize: httpSerialize
|
|
95774
|
+
};
|
|
95775
|
+
const https = {
|
|
95776
|
+
scheme: "https",
|
|
95777
|
+
domainHost: http.domainHost,
|
|
95778
|
+
parse: httpParse,
|
|
95779
|
+
serialize: httpSerialize
|
|
95780
|
+
};
|
|
95781
|
+
const ws = {
|
|
95782
|
+
scheme: "ws",
|
|
95783
|
+
domainHost: true,
|
|
95784
|
+
parse: wsParse,
|
|
95785
|
+
serialize: wsSerialize
|
|
95786
|
+
};
|
|
95787
|
+
const SCHEMES = {
|
|
95788
|
+
http,
|
|
95789
|
+
https,
|
|
95790
|
+
ws,
|
|
95791
|
+
wss: {
|
|
95792
|
+
scheme: "wss",
|
|
95793
|
+
domainHost: ws.domainHost,
|
|
95794
|
+
parse: ws.parse,
|
|
95795
|
+
serialize: ws.serialize
|
|
95796
|
+
},
|
|
95797
|
+
urn: {
|
|
95798
|
+
scheme: "urn",
|
|
95799
|
+
parse: urnParse,
|
|
95800
|
+
serialize: urnSerialize,
|
|
95801
|
+
skipNormalize: true
|
|
95802
|
+
},
|
|
95803
|
+
"urn:uuid": {
|
|
95804
|
+
scheme: "urn:uuid",
|
|
95805
|
+
parse: urnuuidParse,
|
|
95806
|
+
serialize: urnuuidSerialize,
|
|
95807
|
+
skipNormalize: true
|
|
95808
|
+
}
|
|
95809
|
+
};
|
|
95810
|
+
Object.setPrototypeOf(SCHEMES, null);
|
|
95811
|
+
/**
|
|
95812
|
+
* @param {string|undefined} scheme
|
|
95813
|
+
* @returns {SchemeHandler|undefined}
|
|
95814
|
+
*/
|
|
95815
|
+
function getSchemeHandler(scheme) {
|
|
95816
|
+
return scheme && (SCHEMES[scheme] || SCHEMES[scheme.toLowerCase()]) || void 0;
|
|
95817
|
+
}
|
|
95818
|
+
module.exports = {
|
|
95819
|
+
wsIsSecure,
|
|
95820
|
+
SCHEMES,
|
|
95821
|
+
isValidSchemeName,
|
|
95822
|
+
getSchemeHandler
|
|
95823
|
+
};
|
|
95824
|
+
}));
|
|
95825
|
+
//#endregion
|
|
95826
|
+
//#region ../../node_modules/.pnpm/fast-uri@4.1.1/node_modules/fast-uri/index.js
|
|
95827
|
+
var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
95828
|
+
const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, normalizeQueryFragmentEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils$2();
|
|
95829
|
+
const { SCHEMES, getSchemeHandler } = require_schemes();
|
|
95830
|
+
/**
|
|
95831
|
+
* @template {import('./types/index').URIComponent|string} T
|
|
95832
|
+
* @param {T} uri
|
|
95833
|
+
* @param {import('./types/index').Options} [options]
|
|
95834
|
+
* @returns {T}
|
|
95835
|
+
*/
|
|
95836
|
+
function normalize(uri, options) {
|
|
95837
|
+
if (typeof uri === "string") uri = normalizeString(uri, options);
|
|
95838
|
+
else if (typeof uri === "object") uri = parse(serialize(uri, options), options);
|
|
95839
|
+
return uri;
|
|
95840
|
+
}
|
|
95841
|
+
/**
|
|
95842
|
+
* @param {string} baseURI
|
|
95843
|
+
* @param {string} relativeURI
|
|
95844
|
+
* @param {import('./types/index').Options} [options]
|
|
95845
|
+
* @returns {string}
|
|
95846
|
+
*/
|
|
95847
|
+
function resolve(baseURI, relativeURI, options) {
|
|
95848
|
+
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
95849
|
+
const resolved = resolveComponent(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true);
|
|
95850
|
+
schemelessOptions.skipEscape = true;
|
|
95851
|
+
return serialize(resolved, schemelessOptions);
|
|
95852
|
+
}
|
|
95853
|
+
/**
|
|
95854
|
+
* @param {import ('./types/index').URIComponent} base
|
|
95855
|
+
* @param {import ('./types/index').URIComponent} relative
|
|
95856
|
+
* @param {import('./types/index').Options} [options]
|
|
95857
|
+
* @param {boolean} [skipNormalization=false]
|
|
95858
|
+
* @returns {import ('./types/index').URIComponent}
|
|
95859
|
+
*/
|
|
95860
|
+
function resolveComponent(base, relative, options, skipNormalization) {
|
|
95861
|
+
/** @type {import('./types/index').URIComponent} */
|
|
95862
|
+
const target = {};
|
|
95863
|
+
if (!skipNormalization) {
|
|
95864
|
+
base = parse(serialize(base, options), options);
|
|
95865
|
+
relative = parse(serialize(relative, options), options);
|
|
95866
|
+
}
|
|
95867
|
+
options = options || {};
|
|
95868
|
+
if (!options.tolerant && relative.scheme) {
|
|
95869
|
+
target.scheme = relative.scheme;
|
|
95870
|
+
target.userinfo = relative.userinfo;
|
|
95871
|
+
target.host = relative.host;
|
|
95872
|
+
target.port = relative.port;
|
|
95873
|
+
target.path = removeDotSegments(relative.path || "");
|
|
95874
|
+
target.query = relative.query;
|
|
95875
|
+
} else {
|
|
95876
|
+
if (relative.userinfo !== void 0 || relative.host !== void 0 || relative.port !== void 0) {
|
|
95877
|
+
target.userinfo = relative.userinfo;
|
|
95878
|
+
target.host = relative.host;
|
|
95879
|
+
target.port = relative.port;
|
|
95880
|
+
target.path = removeDotSegments(relative.path || "");
|
|
95881
|
+
target.query = relative.query;
|
|
95882
|
+
} else {
|
|
95883
|
+
if (!relative.path) {
|
|
95884
|
+
target.path = base.path;
|
|
95885
|
+
if (relative.query !== void 0) target.query = relative.query;
|
|
95886
|
+
else target.query = base.query;
|
|
95887
|
+
} else {
|
|
95888
|
+
if (relative.path[0] === "/") target.path = removeDotSegments(relative.path);
|
|
95889
|
+
else {
|
|
95890
|
+
if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) target.path = "/" + relative.path;
|
|
95891
|
+
else if (!base.path) target.path = relative.path;
|
|
95892
|
+
else target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
95893
|
+
target.path = removeDotSegments(target.path);
|
|
95894
|
+
}
|
|
95895
|
+
target.query = relative.query;
|
|
95896
|
+
}
|
|
95897
|
+
target.userinfo = base.userinfo;
|
|
95898
|
+
target.host = base.host;
|
|
95899
|
+
target.port = base.port;
|
|
95900
|
+
}
|
|
95901
|
+
target.scheme = base.scheme;
|
|
95902
|
+
}
|
|
95903
|
+
target.fragment = relative.fragment;
|
|
95904
|
+
return target;
|
|
95905
|
+
}
|
|
95906
|
+
/**
|
|
95907
|
+
* @param {import ('./types/index').URIComponent|string} uriA
|
|
95908
|
+
* @param {import ('./types/index').URIComponent|string} uriB
|
|
95909
|
+
* @param {import ('./types/index').Options} options
|
|
95910
|
+
* @returns {boolean}
|
|
95911
|
+
*/
|
|
95912
|
+
function equal(uriA, uriB, options) {
|
|
95913
|
+
const normalizedA = normalizeComparableURI(uriA, options);
|
|
95914
|
+
const normalizedB = normalizeComparableURI(uriB, options);
|
|
95915
|
+
return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA.toLowerCase() === normalizedB.toLowerCase();
|
|
95916
|
+
}
|
|
95917
|
+
/**
|
|
95918
|
+
* @param {Readonly<import('./types/index').URIComponent>} cmpts
|
|
95919
|
+
* @param {import('./types/index').Options} [opts]
|
|
95920
|
+
* @returns {string}
|
|
95921
|
+
*/
|
|
95922
|
+
function serialize(cmpts, opts) {
|
|
95923
|
+
const component = {
|
|
95924
|
+
host: cmpts.host,
|
|
95925
|
+
scheme: cmpts.scheme,
|
|
95926
|
+
userinfo: cmpts.userinfo,
|
|
95927
|
+
port: cmpts.port,
|
|
95928
|
+
path: cmpts.path,
|
|
95929
|
+
query: cmpts.query,
|
|
95930
|
+
nid: cmpts.nid,
|
|
95931
|
+
nss: cmpts.nss,
|
|
95932
|
+
uuid: cmpts.uuid,
|
|
95933
|
+
fragment: cmpts.fragment,
|
|
95934
|
+
reference: cmpts.reference,
|
|
95935
|
+
resourceName: cmpts.resourceName,
|
|
95936
|
+
secure: cmpts.secure,
|
|
95937
|
+
error: ""
|
|
95938
|
+
};
|
|
95939
|
+
const options = Object.assign({}, opts);
|
|
95940
|
+
const uriTokens = [];
|
|
95941
|
+
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
95942
|
+
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
95943
|
+
if (component.path !== void 0) if (!options.skipEscape) {
|
|
95944
|
+
component.path = escapePreservingEscapes(component.path);
|
|
95945
|
+
if (component.scheme !== void 0) component.path = component.path.split("%3A").join(":");
|
|
95946
|
+
} else component.path = normalizePercentEncoding(component.path);
|
|
95947
|
+
if (options.reference !== "suffix" && component.scheme) uriTokens.push(component.scheme, ":");
|
|
95948
|
+
const authority = recomposeAuthority(component);
|
|
95949
|
+
if (authority !== void 0) {
|
|
95950
|
+
if (options.reference !== "suffix") uriTokens.push("//");
|
|
95951
|
+
uriTokens.push(authority);
|
|
95952
|
+
if (component.path && component.path[0] !== "/") uriTokens.push("/");
|
|
95953
|
+
}
|
|
95954
|
+
if (component.path !== void 0) {
|
|
95955
|
+
let s = component.path;
|
|
95956
|
+
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) s = removeDotSegments(s);
|
|
95957
|
+
if (authority === void 0 && s[0] === "/" && s[1] === "/") s = "/%2F" + s.slice(2);
|
|
95958
|
+
uriTokens.push(s);
|
|
95959
|
+
}
|
|
95960
|
+
if (component.query !== void 0) uriTokens.push("?", component.query);
|
|
95961
|
+
if (component.fragment !== void 0) uriTokens.push("#", component.fragment);
|
|
95962
|
+
return uriTokens.join("");
|
|
95963
|
+
}
|
|
95964
|
+
const URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
95965
|
+
const AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
95966
|
+
/**
|
|
95967
|
+
* @param {import('./types/index').URIComponent} parsed
|
|
95968
|
+
* @param {RegExpMatchArray} matches
|
|
95969
|
+
* @returns {string|undefined}
|
|
95970
|
+
*/
|
|
95971
|
+
function getParseError(parsed, matches) {
|
|
95972
|
+
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") return "URI path must start with \"/\" when authority is present.";
|
|
95973
|
+
if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) return "URI port is malformed.";
|
|
95974
|
+
}
|
|
95975
|
+
/**
|
|
95976
|
+
* @param {string} uri
|
|
95977
|
+
* @param {import('./types/index').Options} [opts]
|
|
95978
|
+
* @returns {{ parsed: import('./types/index').URIComponent, malformedAuthorityOrPort: boolean }}
|
|
95979
|
+
*/
|
|
95980
|
+
function parseWithStatus(uri, opts) {
|
|
95981
|
+
const options = Object.assign({}, opts);
|
|
95982
|
+
/** @type {import('./types/index').URIComponent} */
|
|
95983
|
+
const parsed = {
|
|
95984
|
+
scheme: void 0,
|
|
95985
|
+
userinfo: void 0,
|
|
95986
|
+
host: "",
|
|
95987
|
+
port: void 0,
|
|
95988
|
+
path: "",
|
|
95989
|
+
query: void 0,
|
|
95990
|
+
fragment: void 0
|
|
95991
|
+
};
|
|
95992
|
+
let malformedAuthorityOrPort = false;
|
|
95993
|
+
let isIP = false;
|
|
95994
|
+
if (options.reference === "suffix") if (options.scheme) uri = options.scheme + ":" + uri;
|
|
95995
|
+
else uri = "//" + uri;
|
|
95996
|
+
const authorityMatch = uri.match(AUTHORITY_PREFIX);
|
|
95997
|
+
if (authorityMatch !== null && authorityMatch[1].indexOf("\\") !== -1) {
|
|
95998
|
+
parsed.error = "URI authority must not contain a literal backslash.";
|
|
95999
|
+
malformedAuthorityOrPort = true;
|
|
96000
|
+
}
|
|
96001
|
+
const matches = uri.match(URI_PARSE);
|
|
96002
|
+
if (matches) {
|
|
96003
|
+
parsed.scheme = matches[1] === void 0 ? void 0 : matches[1].toLowerCase();
|
|
96004
|
+
parsed.userinfo = matches[3];
|
|
96005
|
+
parsed.host = matches[4];
|
|
96006
|
+
parsed.port = parseInt(matches[5], 10);
|
|
96007
|
+
parsed.path = matches[6] || "";
|
|
96008
|
+
parsed.query = matches[7];
|
|
96009
|
+
parsed.fragment = matches[8];
|
|
96010
|
+
if (isNaN(parsed.port)) parsed.port = matches[5];
|
|
96011
|
+
const parseError = getParseError(parsed, matches);
|
|
96012
|
+
if (parseError !== void 0) {
|
|
96013
|
+
parsed.error = parsed.error || parseError;
|
|
96014
|
+
malformedAuthorityOrPort = true;
|
|
96015
|
+
}
|
|
96016
|
+
if (parsed.host) if (isIPv4(parsed.host) === false) {
|
|
96017
|
+
const ipv6result = normalizeIPv6(parsed.host);
|
|
96018
|
+
parsed.host = ipv6result.host.toLowerCase();
|
|
96019
|
+
isIP = ipv6result.isIPV6;
|
|
96020
|
+
} else isIP = true;
|
|
96021
|
+
if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && parsed.query === void 0 && !parsed.path) parsed.reference = "same-document";
|
|
96022
|
+
else if (parsed.scheme === void 0) parsed.reference = "relative";
|
|
96023
|
+
else if (parsed.fragment === void 0) parsed.reference = "absolute";
|
|
96024
|
+
else parsed.reference = "uri";
|
|
96025
|
+
if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
96026
|
+
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
|
|
96027
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
96028
|
+
if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) try {
|
|
96029
|
+
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
96030
|
+
} catch (e) {
|
|
96031
|
+
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
96032
|
+
}
|
|
96033
|
+
}
|
|
96034
|
+
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
96035
|
+
if (uri.indexOf("%") !== -1) {
|
|
96036
|
+
if (parsed.scheme !== void 0) parsed.scheme = unescape(parsed.scheme);
|
|
96037
|
+
if (parsed.host !== void 0) parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
|
|
96038
|
+
}
|
|
96039
|
+
if (parsed.path) parsed.path = normalizePathEncoding(parsed.path);
|
|
96040
|
+
if (parsed.query) parsed.query = normalizeQueryFragmentEncoding(parsed.query);
|
|
96041
|
+
if (parsed.fragment) parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
|
|
96042
|
+
}
|
|
96043
|
+
if (schemeHandler && schemeHandler.parse) schemeHandler.parse(parsed, options);
|
|
96044
|
+
} else parsed.error = parsed.error || "URI can not be parsed.";
|
|
96045
|
+
return {
|
|
96046
|
+
parsed,
|
|
96047
|
+
malformedAuthorityOrPort
|
|
96048
|
+
};
|
|
96049
|
+
}
|
|
96050
|
+
/**
|
|
96051
|
+
* @param {string} uri
|
|
96052
|
+
* @param {import('./types/index').Options} [opts]
|
|
96053
|
+
* @returns
|
|
96054
|
+
*/
|
|
96055
|
+
function parse(uri, opts) {
|
|
96056
|
+
return parseWithStatus(uri, opts).parsed;
|
|
96057
|
+
}
|
|
96058
|
+
/**
|
|
96059
|
+
* @param {string} uri
|
|
96060
|
+
* @param {import('./types/index').Options} [opts]
|
|
96061
|
+
* @returns {string}
|
|
96062
|
+
*/
|
|
96063
|
+
function normalizeString(uri, opts) {
|
|
96064
|
+
return normalizeStringWithStatus(uri, opts).normalized;
|
|
96065
|
+
}
|
|
96066
|
+
/**
|
|
96067
|
+
* @param {string} uri
|
|
96068
|
+
* @param {import('./types/index').Options} [opts]
|
|
96069
|
+
* @returns {{ normalized: string, malformedAuthorityOrPort: boolean }}
|
|
96070
|
+
*/
|
|
96071
|
+
function normalizeStringWithStatus(uri, opts) {
|
|
96072
|
+
const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
|
|
96073
|
+
return {
|
|
96074
|
+
normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
|
|
96075
|
+
malformedAuthorityOrPort
|
|
96076
|
+
};
|
|
96077
|
+
}
|
|
96078
|
+
/**
|
|
96079
|
+
* @param {import ('./types/index').URIComponent|string} uri
|
|
96080
|
+
* @param {import('./types/index').Options} [opts]
|
|
96081
|
+
* @returns {string|undefined}
|
|
96082
|
+
*/
|
|
96083
|
+
function normalizeComparableURI(uri, opts) {
|
|
96084
|
+
if (typeof uri === "string") {
|
|
96085
|
+
const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
|
|
96086
|
+
return malformedAuthorityOrPort ? void 0 : normalized;
|
|
96087
|
+
}
|
|
96088
|
+
if (typeof uri === "object") return serialize(uri, opts);
|
|
96089
|
+
}
|
|
96090
|
+
const fastUri = {
|
|
96091
|
+
SCHEMES,
|
|
96092
|
+
normalize,
|
|
96093
|
+
resolve,
|
|
96094
|
+
resolveComponent,
|
|
96095
|
+
equal,
|
|
96096
|
+
serialize,
|
|
96097
|
+
parse
|
|
96098
|
+
};
|
|
96099
|
+
module.exports = fastUri;
|
|
96100
|
+
module.exports.default = fastUri;
|
|
96101
|
+
module.exports.fastUri = fastUri;
|
|
96102
|
+
}));
|
|
96103
|
+
//#endregion
|
|
96104
|
+
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.1/node_modules/fast-json-stringify/lib/validator.js
|
|
95174
96105
|
var require_validator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
95175
96106
|
const Ajv = require_ajv();
|
|
95176
96107
|
const fastUri = require_fast_uri();
|
|
@@ -95235,7 +96166,7 @@ var require_validator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
95235
96166
|
};
|
|
95236
96167
|
}));
|
|
95237
96168
|
//#endregion
|
|
95238
|
-
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.
|
|
96169
|
+
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.1/node_modules/fast-json-stringify/lib/location.js
|
|
95239
96170
|
var require_location = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
95240
96171
|
module.exports = class Location {
|
|
95241
96172
|
constructor(schema, schemaId, jsonPointer = "#") {
|
|
@@ -95252,7 +96183,7 @@ var require_location = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
95252
96183
|
};
|
|
95253
96184
|
}));
|
|
95254
96185
|
//#endregion
|
|
95255
|
-
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.
|
|
96186
|
+
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.1/node_modules/fast-json-stringify/lib/schema-validator.js
|
|
95256
96187
|
var require_schema_validator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
95257
96188
|
module.exports = validate10;
|
|
95258
96189
|
module.exports.default = validate10;
|
|
@@ -97045,7 +97976,7 @@ var require_merge_json_schemas = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
97045
97976
|
};
|
|
97046
97977
|
}));
|
|
97047
97978
|
//#endregion
|
|
97048
|
-
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.
|
|
97979
|
+
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.1/node_modules/fast-json-stringify/lib/merge-schemas.js
|
|
97049
97980
|
var require_merge_schemas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97050
97981
|
const { mergeSchemas: _mergeSchemas } = require_merge_json_schemas();
|
|
97051
97982
|
function mergeSchemas(schemas) {
|
|
@@ -97054,7 +97985,7 @@ var require_merge_schemas = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
97054
97985
|
module.exports = mergeSchemas;
|
|
97055
97986
|
}));
|
|
97056
97987
|
//#endregion
|
|
97057
|
-
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.
|
|
97988
|
+
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.1/node_modules/fast-json-stringify/lib/standalone.js
|
|
97058
97989
|
var require_standalone$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97059
97990
|
function buildStandaloneCode(contextFunc, context, serializer, validator) {
|
|
97060
97991
|
let ajvDependencyCode = "";
|
|
@@ -97082,7 +98013,7 @@ var require_standalone$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
97082
98013
|
};
|
|
97083
98014
|
}));
|
|
97084
98015
|
//#endregion
|
|
97085
|
-
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.
|
|
98016
|
+
//#region ../../node_modules/.pnpm/fast-json-stringify@7.0.1/node_modules/fast-json-stringify/index.js
|
|
97086
98017
|
var require_fast_json_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
97087
98018
|
const { RefResolver } = require_json_schema_ref_resolver();
|
|
97088
98019
|
const Serializer = require_serializer$1();
|
|
@@ -97090,7 +98021,6 @@ var require_fast_json_stringify = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
97090
98021
|
const Location = require_location();
|
|
97091
98022
|
const validate = require_schema_validator();
|
|
97092
98023
|
const mergeSchemas = require_merge_schemas();
|
|
97093
|
-
const SINGLE_TICK = /'/g;
|
|
97094
98024
|
let largeArraySize = 2e4;
|
|
97095
98025
|
let largeArrayMechanism = "default";
|
|
97096
98026
|
const serializerFns = `
|
|
@@ -97339,7 +98269,7 @@ const asInteger = serializer.asInteger.bind(serializer)
|
|
|
97339
98269
|
code += "json += JSON_STR_BEGIN_OBJECT\n";
|
|
97340
98270
|
const localUid = context.uid++;
|
|
97341
98271
|
let addComma = "";
|
|
97342
|
-
if (
|
|
98272
|
+
if (propertiesKeys.length > 0 && requiredProperties.includes(propertiesKeys[0])) {
|
|
97343
98273
|
for (let i = 0; i < propertiesKeys.length; i++) {
|
|
97344
98274
|
const key = propertiesKeys[i];
|
|
97345
98275
|
const propertyLocation = propertiesLocation.getPropertyLocation(key);
|
|
@@ -97831,7 +98761,7 @@ const asInteger = serializer.asInteger.bind(serializer)
|
|
|
97831
98761
|
json += JSON_STR_NULL
|
|
97832
98762
|
} else {
|
|
97833
98763
|
`;
|
|
97834
|
-
code += `json +=
|
|
98764
|
+
code += `json += ${JSON.stringify(JSON.stringify(schema.const))}`;
|
|
97835
98765
|
if (hasNullType) code += `
|
|
97836
98766
|
}
|
|
97837
98767
|
`;
|
|
@@ -105176,7 +106106,7 @@ var require_light_my_request = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
105176
106106
|
//#region ../../node_modules/.pnpm/fastify@5.10.0/node_modules/fastify/fastify.js
|
|
105177
106107
|
var require_fastify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
105178
106108
|
const VERSION = "5.10.0";
|
|
105179
|
-
const Avvio =
|
|
106109
|
+
const Avvio = require_avvio();
|
|
105180
106110
|
const http$1 = __require$1("node:http");
|
|
105181
106111
|
const diagnostics = __require$1("node:diagnostics_channel");
|
|
105182
106112
|
let lightMyRequest;
|
|
@@ -110669,6 +111599,47 @@ function registerPlaneErrorHandler(app) {
|
|
|
110669
111599
|
});
|
|
110670
111600
|
});
|
|
110671
111601
|
}
|
|
111602
|
+
function isGzipEncoding(header) {
|
|
111603
|
+
if (header === void 0) return false;
|
|
111604
|
+
return (Array.isArray(header) ? header.join(",") : header).split(",").map((part) => part.trim().toLowerCase()).includes("gzip");
|
|
111605
|
+
}
|
|
111606
|
+
/**
|
|
111607
|
+
* Registers a buffer-based JSON parser that gunzips when Content-Encoding is gzip.
|
|
111608
|
+
* Replaces Fastify's default `application/json` parser.
|
|
111609
|
+
*/
|
|
111610
|
+
function registerGzipJsonParser(app, options = {}) {
|
|
111611
|
+
const maxDecodedBytes = options.maxDecodedBytes ?? 10485760;
|
|
111612
|
+
app.removeContentTypeParser("application/json");
|
|
111613
|
+
app.addContentTypeParser("application/json", { parseAs: "buffer" }, (request, body, done) => {
|
|
111614
|
+
try {
|
|
111615
|
+
let bytes = body;
|
|
111616
|
+
if (isGzipEncoding(request.headers["content-encoding"])) {
|
|
111617
|
+
if (bytes.length === 0) {
|
|
111618
|
+
done(/* @__PURE__ */ new Error("Empty gzip body"), void 0);
|
|
111619
|
+
return;
|
|
111620
|
+
}
|
|
111621
|
+
try {
|
|
111622
|
+
bytes = gunzipSync$1(bytes);
|
|
111623
|
+
} catch {
|
|
111624
|
+
done(/* @__PURE__ */ new Error("Invalid or truncated gzip body"), void 0);
|
|
111625
|
+
return;
|
|
111626
|
+
}
|
|
111627
|
+
if (bytes.byteLength > maxDecodedBytes) {
|
|
111628
|
+
done(/* @__PURE__ */ new Error(`Decoded JSON body exceeds limit of ${maxDecodedBytes} bytes`), void 0);
|
|
111629
|
+
return;
|
|
111630
|
+
}
|
|
111631
|
+
}
|
|
111632
|
+
if (bytes.byteLength === 0) {
|
|
111633
|
+
done(null, null);
|
|
111634
|
+
return;
|
|
111635
|
+
}
|
|
111636
|
+
const text = bytes.toString("utf8");
|
|
111637
|
+
done(null, JSON.parse(text));
|
|
111638
|
+
} catch (error) {
|
|
111639
|
+
done(error instanceof Error ? error : new Error(String(error)), void 0);
|
|
111640
|
+
}
|
|
111641
|
+
});
|
|
111642
|
+
}
|
|
110672
111643
|
//#endregion
|
|
110673
111644
|
//#region src/plugins/metricsPlugin.ts
|
|
110674
111645
|
/**
|
|
@@ -111201,7 +112172,11 @@ function registerUsageRoute(app, deps) {
|
|
|
111201
112172
|
* Does not start listening — callers decide between `listen()` and `inject()`.
|
|
111202
112173
|
*/
|
|
111203
112174
|
async function buildPlaneServer(options) {
|
|
111204
|
-
const app = (0, import_fastify.default)({
|
|
112175
|
+
const app = (0, import_fastify.default)({
|
|
112176
|
+
logger: options.logger ?? false,
|
|
112177
|
+
bodyLimit: 10 * 1024 * 1024
|
|
112178
|
+
});
|
|
112179
|
+
registerGzipJsonParser(app);
|
|
111205
112180
|
registerPlaneErrorHandler(app);
|
|
111206
112181
|
let limiter;
|
|
111207
112182
|
if (options.rateLimiter !== false) {
|