@xyo-network/xl1-cli 2.0.10 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli-min.mjs +545 -526
- package/dist/cli-min.mjs.map +1 -1
- package/package.json +50 -50
package/dist/cli-min.mjs
CHANGED
|
@@ -6,7 +6,6 @@ import https from "https";
|
|
|
6
6
|
import { gunzipSync } from "zlib";
|
|
7
7
|
import { createHash as createHash$2, createHmac, pbkdf2Sync, randomBytes as randomBytes$4 } from "crypto";
|
|
8
8
|
import * as nc from "node:crypto";
|
|
9
|
-
import { subtle } from "node:crypto";
|
|
10
9
|
import fs, { readFileSync, readdirSync, statSync, writeFile } from "fs";
|
|
11
10
|
import path, { basename, dirname, extname, join, normalize, relative, resolve } from "path";
|
|
12
11
|
import os from "os";
|
|
@@ -46431,7 +46430,7 @@ async function spawn(worker, options) {
|
|
|
46431
46430
|
getWorkerImplementation().blob;
|
|
46432
46431
|
var Worker2$1 = getWorkerImplementation().default;
|
|
46433
46432
|
//#endregion
|
|
46434
|
-
//#region ../../node_modules/.pnpm/@xyo-network+wasm@6.0.
|
|
46433
|
+
//#region ../../node_modules/.pnpm/@xyo-network+wasm@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-base@2.7.1_@o_13c372df400e44459fc0a885fe0fb9d1/node_modules/@xyo-network/wasm/dist/neutral/index.mjs
|
|
46435
46434
|
var validate$2 = (bytes) => Promise.resolve(WebAssembly.validate(new Uint8Array(bytes)));
|
|
46436
46435
|
var bigInt = async () => {
|
|
46437
46436
|
try {
|
|
@@ -47022,7 +47021,7 @@ var WasmSupport = class _WasmSupport {
|
|
|
47022
47021
|
* @license MIT
|
|
47023
47022
|
*/
|
|
47024
47023
|
//#endregion
|
|
47025
|
-
//#region ../../node_modules/.pnpm/@xyo-network+hash@6.0.
|
|
47024
|
+
//#region ../../node_modules/.pnpm/@xyo-network+hash@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-base@2.7.1_@o_a901f1a83b3f5419571f6b5106a145be/node_modules/@xyo-network/hash/dist/node/index.mjs
|
|
47026
47025
|
var import_index_umd = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
47027
47026
|
(function(global, factory) {
|
|
47028
47027
|
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 = {}));
|
|
@@ -49279,10 +49278,10 @@ var sortFields = (obj) => {
|
|
|
49279
49278
|
return result;
|
|
49280
49279
|
};
|
|
49281
49280
|
var subtleHashFunc = () => {
|
|
49282
|
-
const { subtle
|
|
49281
|
+
const { subtle } = __require("@xylabs/platform");
|
|
49283
49282
|
const { expose } = __require("@xylabs/threads/worker");
|
|
49284
49283
|
expose({ async hash(data) {
|
|
49285
|
-
return await
|
|
49284
|
+
return await subtle.digest("SHA-256", data);
|
|
49286
49285
|
} });
|
|
49287
49286
|
};
|
|
49288
49287
|
var wasmHashFunc = () => {
|
|
@@ -49412,7 +49411,7 @@ var ObjectHasher = class _ObjectHasher extends ObjectWrapper {
|
|
|
49412
49411
|
}
|
|
49413
49412
|
static async subtleHash(data) {
|
|
49414
49413
|
const pool = this.subtleHashPool;
|
|
49415
|
-
if (pool === null) return await subtle.digest("SHA-256", data);
|
|
49414
|
+
if (pool === null) return await globalThis.crypto.subtle.digest("SHA-256", data);
|
|
49416
49415
|
return await pool.queue(async (thread) => await thread.hash(data));
|
|
49417
49416
|
}
|
|
49418
49417
|
static async wasmHash(data) {
|
|
@@ -49442,7 +49441,7 @@ var NodeObjectHasher = class extends ObjectHasher {
|
|
|
49442
49441
|
static createNodeWorker = createNodeWorker;
|
|
49443
49442
|
};
|
|
49444
49443
|
//#endregion
|
|
49445
|
-
//#region ../../node_modules/.pnpm/@xyo-network+payload-model@6.0.
|
|
49444
|
+
//#region ../../node_modules/.pnpm/@xyo-network+payload-model@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-base_ed7cce93908df622ba94b1ce295d7b9f/node_modules/@xyo-network/payload-model/dist/neutral/index.mjs
|
|
49446
49445
|
var SchemaRegEx = /^(?:[a-z0-9]+\.)*[a-z0-9]+$/;
|
|
49447
49446
|
var SchemaZod = /* @__PURE__ */ pipe$1((/* @__PURE__ */ string$3()).check(/* @__PURE__ */ _regex(SchemaRegEx)), /* @__PURE__ */ transform$1((v) => v));
|
|
49448
49447
|
var isSchema = zodIsFactory(SchemaZod);
|
|
@@ -49662,7 +49661,7 @@ var isPayloadBundle = zodIsFactory(PayloadBundleZod);
|
|
|
49662
49661
|
zodToFactory(PayloadBundleZod, "asPayloadBundle");
|
|
49663
49662
|
asSchema("network.xyo.payload.set", true);
|
|
49664
49663
|
//#endregion
|
|
49665
|
-
//#region ../../node_modules/.pnpm/@xyo-network+payload-builder@6.0.
|
|
49664
|
+
//#region ../../node_modules/.pnpm/@xyo-network+payload-builder@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-ba_ef3d0fbefd2d37e8ab16fe0d710ca1cd/node_modules/@xyo-network/payload-builder/dist/neutral/index.mjs
|
|
49666
49665
|
var omitSchema = (payload) => {
|
|
49667
49666
|
const result = structuredClone(payload);
|
|
49668
49667
|
delete result.schema;
|
|
@@ -49833,7 +49832,7 @@ var PayloadBuilder = class _PayloadBuilder {
|
|
|
49833
49832
|
}
|
|
49834
49833
|
};
|
|
49835
49834
|
//#endregion
|
|
49836
|
-
//#region ../../node_modules/.pnpm/@xyo-network+schema-name-validator@6.0.
|
|
49835
|
+
//#region ../../node_modules/.pnpm/@xyo-network+schema-name-validator@6.0.8/node_modules/@xyo-network/schema-name-validator/dist/neutral/index.mjs
|
|
49837
49836
|
var SchemaNameValidator = class {
|
|
49838
49837
|
schema;
|
|
49839
49838
|
_parts;
|
|
@@ -49900,7 +49899,7 @@ var SchemaNameValidator = class {
|
|
|
49900
49899
|
}
|
|
49901
49900
|
};
|
|
49902
49901
|
//#endregion
|
|
49903
|
-
//#region ../../node_modules/.pnpm/@xyo-network+payload-validator@6.0.
|
|
49902
|
+
//#region ../../node_modules/.pnpm/@xyo-network+payload-validator@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-_d91a6844ba8011d1ee2aca3db60fadd3/node_modules/@xyo-network/payload-validator/dist/neutral/index.mjs
|
|
49904
49903
|
var defaultSchemaNameValidatorFactory = (schema) => new SchemaNameValidator(schema);
|
|
49905
49904
|
var PayloadValidator = class _PayloadValidator extends ValidatorBase {
|
|
49906
49905
|
static schemaNameValidatorFactory = defaultSchemaNameValidatorFactory;
|
|
@@ -49929,7 +49928,7 @@ var PayloadValidator = class _PayloadValidator extends ValidatorBase {
|
|
|
49929
49928
|
}
|
|
49930
49929
|
};
|
|
49931
49930
|
//#endregion
|
|
49932
|
-
//#region ../../node_modules/.pnpm/@xyo-network+payload-wrapper@6.0.
|
|
49931
|
+
//#region ../../node_modules/.pnpm/@xyo-network+payload-wrapper@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-ba_2f1be9351c7eca3616cb9a518b1887bd/node_modules/@xyo-network/payload-wrapper/dist/neutral/index.mjs
|
|
49933
49932
|
var isPayloadWrapperBase = (value) => {
|
|
49934
49933
|
return value instanceof PayloadWrapperBase;
|
|
49935
49934
|
};
|
|
@@ -50042,10 +50041,473 @@ var payloadJsonSchema = {
|
|
|
50042
50041
|
type: "object"
|
|
50043
50042
|
};
|
|
50044
50043
|
//#endregion
|
|
50045
|
-
//#region ../../node_modules/.pnpm/@xyo-network+config-payload-plugin@6.0.
|
|
50044
|
+
//#region ../../node_modules/.pnpm/@xyo-network+config-payload-plugin@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-tr_1c5006b9325c050345e5ad457bafb9af/node_modules/@xyo-network/config-payload-plugin/dist/neutral/index.mjs
|
|
50046
50045
|
var ConfigSchema = asSchema("network.xyo.config", true);
|
|
50047
50046
|
//#endregion
|
|
50048
|
-
//#region ../../node_modules/.pnpm/@
|
|
50047
|
+
//#region ../../node_modules/.pnpm/@scure+base@2.2.0/node_modules/@scure/base/index.js
|
|
50048
|
+
/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
50049
|
+
function isBytes$1(a) {
|
|
50050
|
+
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in a && a.BYTES_PER_ELEMENT === 1;
|
|
50051
|
+
}
|
|
50052
|
+
function isArrayOf(isString, arr) {
|
|
50053
|
+
if (!Array.isArray(arr)) return false;
|
|
50054
|
+
if (arr.length === 0) return true;
|
|
50055
|
+
if (isString) return arr.every((item) => typeof item === "string");
|
|
50056
|
+
else return arr.every((item) => Number.isSafeInteger(item));
|
|
50057
|
+
}
|
|
50058
|
+
function afn(input) {
|
|
50059
|
+
if (typeof input !== "function") throw new TypeError("function expected");
|
|
50060
|
+
return true;
|
|
50061
|
+
}
|
|
50062
|
+
function astr(label, input) {
|
|
50063
|
+
if (typeof input !== "string") throw new TypeError(`${label}: string expected`);
|
|
50064
|
+
return true;
|
|
50065
|
+
}
|
|
50066
|
+
function anumber$1(n) {
|
|
50067
|
+
if (typeof n !== "number") throw new TypeError(`number expected, got ${typeof n}`);
|
|
50068
|
+
if (!Number.isSafeInteger(n)) throw new RangeError(`invalid integer: ${n}`);
|
|
50069
|
+
}
|
|
50070
|
+
function aArr(input) {
|
|
50071
|
+
if (!Array.isArray(input)) throw new TypeError("array expected");
|
|
50072
|
+
}
|
|
50073
|
+
function astrArr(label, input) {
|
|
50074
|
+
if (!isArrayOf(true, input)) throw new TypeError(`${label}: array of strings expected`);
|
|
50075
|
+
}
|
|
50076
|
+
function anumArr(label, input) {
|
|
50077
|
+
if (!isArrayOf(false, input)) throw new TypeError(`${label}: array of numbers expected`);
|
|
50078
|
+
}
|
|
50079
|
+
/**
|
|
50080
|
+
* @__NO_SIDE_EFFECTS__
|
|
50081
|
+
*/
|
|
50082
|
+
function chain(...args) {
|
|
50083
|
+
const id = (a) => a;
|
|
50084
|
+
const wrap = (a, b) => (c) => a(b(c));
|
|
50085
|
+
return {
|
|
50086
|
+
encode: args.map((x) => x.encode).reduceRight(wrap, id),
|
|
50087
|
+
decode: args.map((x) => x.decode).reduce(wrap, id)
|
|
50088
|
+
};
|
|
50089
|
+
}
|
|
50090
|
+
/**
|
|
50091
|
+
* Encodes integer radix representation to array of strings using alphabet and back.
|
|
50092
|
+
* Could also be array of strings.
|
|
50093
|
+
* @__NO_SIDE_EFFECTS__
|
|
50094
|
+
*/
|
|
50095
|
+
function alphabet(letters) {
|
|
50096
|
+
const lettersA = typeof letters === "string" ? letters.split("") : letters;
|
|
50097
|
+
const len = lettersA.length;
|
|
50098
|
+
astrArr("alphabet", lettersA);
|
|
50099
|
+
const indexes = new Map(lettersA.map((l, i) => [l, i]));
|
|
50100
|
+
return {
|
|
50101
|
+
encode: (digits) => {
|
|
50102
|
+
aArr(digits);
|
|
50103
|
+
return digits.map((i) => {
|
|
50104
|
+
if (!Number.isSafeInteger(i) || i < 0 || i >= len) throw new Error(`alphabet.encode: digit index outside alphabet "${i}". Allowed: ${letters}`);
|
|
50105
|
+
return lettersA[i];
|
|
50106
|
+
});
|
|
50107
|
+
},
|
|
50108
|
+
decode: (input) => {
|
|
50109
|
+
aArr(input);
|
|
50110
|
+
return input.map((letter) => {
|
|
50111
|
+
astr("alphabet.decode", letter);
|
|
50112
|
+
const i = indexes.get(letter);
|
|
50113
|
+
if (i === void 0) throw new Error(`Unknown letter: "${letter}". Allowed: ${letters}`);
|
|
50114
|
+
return i;
|
|
50115
|
+
});
|
|
50116
|
+
}
|
|
50117
|
+
};
|
|
50118
|
+
}
|
|
50119
|
+
/**
|
|
50120
|
+
* @__NO_SIDE_EFFECTS__
|
|
50121
|
+
*/
|
|
50122
|
+
function join$1(separator = "") {
|
|
50123
|
+
astr("join", separator);
|
|
50124
|
+
return {
|
|
50125
|
+
encode: (from) => {
|
|
50126
|
+
astrArr("join.decode", from);
|
|
50127
|
+
return from.join(separator);
|
|
50128
|
+
},
|
|
50129
|
+
decode: (to) => {
|
|
50130
|
+
astr("join.decode", to);
|
|
50131
|
+
return to.split(separator);
|
|
50132
|
+
}
|
|
50133
|
+
};
|
|
50134
|
+
}
|
|
50135
|
+
/**
|
|
50136
|
+
* Pad strings array so it has integer number of bits
|
|
50137
|
+
* @__NO_SIDE_EFFECTS__
|
|
50138
|
+
*/
|
|
50139
|
+
function padding(bits, chr = "=") {
|
|
50140
|
+
anumber$1(bits);
|
|
50141
|
+
astr("padding", chr);
|
|
50142
|
+
return {
|
|
50143
|
+
encode(data) {
|
|
50144
|
+
astrArr("padding.encode", data);
|
|
50145
|
+
while (data.length * bits % 8) data.push(chr);
|
|
50146
|
+
return data;
|
|
50147
|
+
},
|
|
50148
|
+
decode(input) {
|
|
50149
|
+
astrArr("padding.decode", input);
|
|
50150
|
+
let end = input.length;
|
|
50151
|
+
if (end * bits % 8) throw new Error("padding: invalid, string should have whole number of bytes");
|
|
50152
|
+
for (; end > 0 && input[end - 1] === chr; end--) if ((end - 1) * bits % 8 === 0) throw new Error("padding: invalid, string has too much padding");
|
|
50153
|
+
return input.slice(0, end);
|
|
50154
|
+
}
|
|
50155
|
+
};
|
|
50156
|
+
}
|
|
50157
|
+
/**
|
|
50158
|
+
* @__NO_SIDE_EFFECTS__
|
|
50159
|
+
*/
|
|
50160
|
+
function normalize$1(fn) {
|
|
50161
|
+
afn(fn);
|
|
50162
|
+
return {
|
|
50163
|
+
encode: (from) => from,
|
|
50164
|
+
decode: (to) => fn(to)
|
|
50165
|
+
};
|
|
50166
|
+
}
|
|
50167
|
+
/**
|
|
50168
|
+
* Slow: O(n^2) time complexity
|
|
50169
|
+
*/
|
|
50170
|
+
function convertRadix(data, from, to) {
|
|
50171
|
+
if (from < 2) throw new RangeError(`convertRadix: invalid from=${from}, base cannot be less than 2`);
|
|
50172
|
+
if (to < 2) throw new RangeError(`convertRadix: invalid to=${to}, base cannot be less than 2`);
|
|
50173
|
+
aArr(data);
|
|
50174
|
+
if (!data.length) return [];
|
|
50175
|
+
let pos = 0;
|
|
50176
|
+
const res = [];
|
|
50177
|
+
const digits = Array.from(data, (d) => {
|
|
50178
|
+
anumber$1(d);
|
|
50179
|
+
if (d < 0 || d >= from) throw new Error(`invalid integer: ${d}`);
|
|
50180
|
+
return d;
|
|
50181
|
+
});
|
|
50182
|
+
const dlen = digits.length;
|
|
50183
|
+
while (true) {
|
|
50184
|
+
let carry = 0;
|
|
50185
|
+
let done = true;
|
|
50186
|
+
for (let i = pos; i < dlen; i++) {
|
|
50187
|
+
const digit = digits[i];
|
|
50188
|
+
const fromCarry = from * carry;
|
|
50189
|
+
const digitBase = fromCarry + digit;
|
|
50190
|
+
if (!Number.isSafeInteger(digitBase) || fromCarry / from !== carry || digitBase - digit !== fromCarry) throw new Error("convertRadix: carry overflow");
|
|
50191
|
+
const div = digitBase / to;
|
|
50192
|
+
carry = digitBase % to;
|
|
50193
|
+
const rounded = Math.floor(div);
|
|
50194
|
+
digits[i] = rounded;
|
|
50195
|
+
if (!Number.isSafeInteger(rounded) || rounded * to + carry !== digitBase) throw new Error("convertRadix: carry overflow");
|
|
50196
|
+
if (!done) continue;
|
|
50197
|
+
else if (!rounded) pos = i;
|
|
50198
|
+
else done = false;
|
|
50199
|
+
}
|
|
50200
|
+
res.push(carry);
|
|
50201
|
+
if (done) break;
|
|
50202
|
+
}
|
|
50203
|
+
for (let i = 0; i < data.length - 1 && data[i] === 0; i++) res.push(0);
|
|
50204
|
+
return res.reverse();
|
|
50205
|
+
}
|
|
50206
|
+
const gcd = (a, b) => b === 0 ? a : gcd(b, a % b);
|
|
50207
|
+
const radix2carry = /* @__NO_SIDE_EFFECTS__ */ (from, to) => from + (to - gcd(from, to));
|
|
50208
|
+
const powers = /* @__PURE__ */ (() => {
|
|
50209
|
+
let res = [];
|
|
50210
|
+
for (let i = 0; i < 40; i++) res.push(2 ** i);
|
|
50211
|
+
return res;
|
|
50212
|
+
})();
|
|
50213
|
+
/**
|
|
50214
|
+
* Implemented with numbers, because BigInt is 5x slower
|
|
50215
|
+
*/
|
|
50216
|
+
function convertRadix2(data, from, to, padding) {
|
|
50217
|
+
aArr(data);
|
|
50218
|
+
if (from <= 0 || from > 32) throw new RangeError(`convertRadix2: wrong from=${from}`);
|
|
50219
|
+
if (to <= 0 || to > 32) throw new RangeError(`convertRadix2: wrong to=${to}`);
|
|
50220
|
+
if (/* @__PURE__ */ radix2carry(from, to) > 32) throw new Error(`convertRadix2: carry overflow from=${from} to=${to} carryBits=${/* @__PURE__ */ radix2carry(from, to)}`);
|
|
50221
|
+
let carry = 0;
|
|
50222
|
+
let pos = 0;
|
|
50223
|
+
const max = powers[from];
|
|
50224
|
+
const mask = powers[to] - 1;
|
|
50225
|
+
const res = [];
|
|
50226
|
+
for (const n of data) {
|
|
50227
|
+
anumber$1(n);
|
|
50228
|
+
if (n >= max) throw new Error(`convertRadix2: invalid data word=${n} from=${from}`);
|
|
50229
|
+
carry = carry << from | n;
|
|
50230
|
+
if (pos + from > 32) throw new Error(`convertRadix2: carry overflow pos=${pos} from=${from}`);
|
|
50231
|
+
pos += from;
|
|
50232
|
+
for (; pos >= to; pos -= to) res.push((carry >> pos - to & mask) >>> 0);
|
|
50233
|
+
const pow = powers[pos];
|
|
50234
|
+
if (pow === void 0) throw new Error("invalid carry");
|
|
50235
|
+
carry &= pow - 1;
|
|
50236
|
+
}
|
|
50237
|
+
carry = carry << to - pos & mask;
|
|
50238
|
+
if (!padding && pos >= from) throw new Error("Excess padding");
|
|
50239
|
+
if (!padding && carry > 0) throw new Error(`Non-zero padding: ${carry}`);
|
|
50240
|
+
if (padding && pos > 0) res.push(carry >>> 0);
|
|
50241
|
+
return res;
|
|
50242
|
+
}
|
|
50243
|
+
/**
|
|
50244
|
+
* @__NO_SIDE_EFFECTS__
|
|
50245
|
+
*/
|
|
50246
|
+
function radix(num) {
|
|
50247
|
+
anumber$1(num);
|
|
50248
|
+
const _256 = 2 ** 8;
|
|
50249
|
+
return {
|
|
50250
|
+
encode: (bytes) => {
|
|
50251
|
+
if (!isBytes$1(bytes)) throw new TypeError("radix.encode input should be Uint8Array");
|
|
50252
|
+
return convertRadix(Array.from(bytes), _256, num);
|
|
50253
|
+
},
|
|
50254
|
+
decode: (digits) => {
|
|
50255
|
+
anumArr("radix.decode", digits);
|
|
50256
|
+
return Uint8Array.from(convertRadix(digits, num, _256));
|
|
50257
|
+
}
|
|
50258
|
+
};
|
|
50259
|
+
}
|
|
50260
|
+
/**
|
|
50261
|
+
* If both bases are power of same number (like `2**8 <-> 2**64`),
|
|
50262
|
+
* there is a linear algorithm. For now we have implementation for power-of-two bases only.
|
|
50263
|
+
* @__NO_SIDE_EFFECTS__
|
|
50264
|
+
*/
|
|
50265
|
+
function radix2(bits, revPadding = false) {
|
|
50266
|
+
anumber$1(bits);
|
|
50267
|
+
if (bits <= 0 || bits > 32) throw new RangeError("radix2: bits should be in (0..32]");
|
|
50268
|
+
if (/* @__PURE__ */ radix2carry(8, bits) > 32 || /* @__PURE__ */ radix2carry(bits, 8) > 32) throw new RangeError("radix2: carry overflow");
|
|
50269
|
+
return {
|
|
50270
|
+
encode: (bytes) => {
|
|
50271
|
+
if (!isBytes$1(bytes)) throw new TypeError("radix2.encode input should be Uint8Array");
|
|
50272
|
+
return convertRadix2(Array.from(bytes), 8, bits, !revPadding);
|
|
50273
|
+
},
|
|
50274
|
+
decode: (digits) => {
|
|
50275
|
+
anumArr("radix2.decode", digits);
|
|
50276
|
+
return Uint8Array.from(convertRadix2(digits, bits, 8, revPadding));
|
|
50277
|
+
}
|
|
50278
|
+
};
|
|
50279
|
+
}
|
|
50280
|
+
function unsafeWrapper(fn) {
|
|
50281
|
+
afn(fn);
|
|
50282
|
+
return function(...args) {
|
|
50283
|
+
try {
|
|
50284
|
+
return fn.apply(null, args);
|
|
50285
|
+
} catch (e) {}
|
|
50286
|
+
};
|
|
50287
|
+
}
|
|
50288
|
+
function checksum(len, fn) {
|
|
50289
|
+
anumber$1(len);
|
|
50290
|
+
if (len <= 0) throw new RangeError(`checksum length must be positive: ${len}`);
|
|
50291
|
+
afn(fn);
|
|
50292
|
+
const _fn = fn;
|
|
50293
|
+
return {
|
|
50294
|
+
encode(data) {
|
|
50295
|
+
if (!isBytes$1(data)) throw new TypeError("checksum.encode: input should be Uint8Array");
|
|
50296
|
+
const sum = _fn(data).slice(0, len);
|
|
50297
|
+
const res = new Uint8Array(data.length + len);
|
|
50298
|
+
res.set(data);
|
|
50299
|
+
res.set(sum, data.length);
|
|
50300
|
+
return res;
|
|
50301
|
+
},
|
|
50302
|
+
decode(data) {
|
|
50303
|
+
if (!isBytes$1(data)) throw new TypeError("checksum.decode: input should be Uint8Array");
|
|
50304
|
+
const payload = data.slice(0, -len);
|
|
50305
|
+
const oldChecksum = data.slice(-len);
|
|
50306
|
+
const newChecksum = _fn(payload).slice(0, len);
|
|
50307
|
+
for (let i = 0; i < len; i++) if (newChecksum[i] !== oldChecksum[i]) throw new Error("Invalid checksum");
|
|
50308
|
+
return payload;
|
|
50309
|
+
}
|
|
50310
|
+
};
|
|
50311
|
+
}
|
|
50312
|
+
/**
|
|
50313
|
+
* Low-level building blocks used by the exported codecs.
|
|
50314
|
+
* @example
|
|
50315
|
+
* Build a radix-32 coder from the low-level helpers.
|
|
50316
|
+
* ```ts
|
|
50317
|
+
* import { utils } from '@scure/base';
|
|
50318
|
+
* utils.radix2(5).encode(Uint8Array.from([1, 2, 3]));
|
|
50319
|
+
* ```
|
|
50320
|
+
*/
|
|
50321
|
+
const utils = /* @__PURE__ */ Object.freeze({
|
|
50322
|
+
alphabet,
|
|
50323
|
+
chain,
|
|
50324
|
+
checksum,
|
|
50325
|
+
convertRadix,
|
|
50326
|
+
convertRadix2,
|
|
50327
|
+
radix,
|
|
50328
|
+
radix2,
|
|
50329
|
+
join: join$1,
|
|
50330
|
+
padding
|
|
50331
|
+
});
|
|
50332
|
+
/**
|
|
50333
|
+
* base16 encoding from RFC 4648.
|
|
50334
|
+
* This codec uses RFC 4648 Table 5's uppercase alphabet directly.
|
|
50335
|
+
* RFC 4648 §8 calls base16 "case-insensitive hex encoding", but we intentionally do not case-fold decode input here.
|
|
50336
|
+
* Use `hex` for case-insensitive hex decoding.
|
|
50337
|
+
* @example
|
|
50338
|
+
* ```js
|
|
50339
|
+
* base16.encode(Uint8Array.from([0x12, 0xab]));
|
|
50340
|
+
* // => '12AB'
|
|
50341
|
+
* ```
|
|
50342
|
+
*/
|
|
50343
|
+
const base16 = /* @__PURE__ */ Object.freeze(chain(radix2(4), alphabet("0123456789ABCDEF"), join$1("")));
|
|
50344
|
+
chain(radix2(5), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"), padding(5), join$1(""));
|
|
50345
|
+
chain(radix2(5), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"), join$1(""));
|
|
50346
|
+
chain(radix2(5), alphabet("0123456789ABCDEFGHIJKLMNOPQRSTUV"), padding(5), join$1(""));
|
|
50347
|
+
chain(radix2(5), alphabet("0123456789ABCDEFGHIJKLMNOPQRSTUV"), join$1(""));
|
|
50348
|
+
chain(radix2(5), alphabet("0123456789ABCDEFGHJKMNPQRSTVWXYZ"), join$1(""), normalize$1((s) => s.toUpperCase().replace(/O/g, "0").replace(/[IL]/g, "1")));
|
|
50349
|
+
const hasBase64Builtin = /* @__PURE__ */ (() => typeof Uint8Array.from([]).toBase64 === "function" && typeof Uint8Array.fromBase64 === "function")();
|
|
50350
|
+
hasBase64Builtin || chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), padding(6), join$1(""));
|
|
50351
|
+
chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), join$1(""));
|
|
50352
|
+
hasBase64Builtin || chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"), padding(6), join$1(""));
|
|
50353
|
+
/**
|
|
50354
|
+
* base64 from RFC 4648, using URL-safe alphabet. No padding.
|
|
50355
|
+
* Use `base64url` for padded version.
|
|
50356
|
+
* @example
|
|
50357
|
+
* ```js
|
|
50358
|
+
* base64urlnopad.encode(Uint8Array.from([0x12, 0xab]));
|
|
50359
|
+
* // => 'Eqs'
|
|
50360
|
+
* base64urlnopad.decode('Eqs');
|
|
50361
|
+
* // => Uint8Array.from([0x12, 0xab])
|
|
50362
|
+
* ```
|
|
50363
|
+
*/
|
|
50364
|
+
const base64urlnopad = /* @__PURE__ */ Object.freeze(chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"), join$1("")));
|
|
50365
|
+
const genBase58 = /* @__NO_SIDE_EFFECTS__ */ (abc) => chain(radix(58), alphabet(abc), join$1(""));
|
|
50366
|
+
/**
|
|
50367
|
+
* base58: base64 without ambigous characters +, /, 0, O, I, l.
|
|
50368
|
+
* Quadratic (O(n^2)) - so, can't be used on large inputs.
|
|
50369
|
+
* @example
|
|
50370
|
+
* ```js
|
|
50371
|
+
* const text = base58.encode(Uint8Array.from([0, 1, 2]));
|
|
50372
|
+
* base58.decode(text);
|
|
50373
|
+
* // => Uint8Array.from([0, 1, 2])
|
|
50374
|
+
* ```
|
|
50375
|
+
*/
|
|
50376
|
+
const base58 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"));
|
|
50377
|
+
const BECH_ALPHABET = chain(alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), join$1(""));
|
|
50378
|
+
const POLYMOD_GENERATORS = [
|
|
50379
|
+
996825010,
|
|
50380
|
+
642813549,
|
|
50381
|
+
513874426,
|
|
50382
|
+
1027748829,
|
|
50383
|
+
705979059
|
|
50384
|
+
];
|
|
50385
|
+
function bech32Polymod(pre) {
|
|
50386
|
+
const b = pre >> 25;
|
|
50387
|
+
let chk = (pre & 33554431) << 5;
|
|
50388
|
+
for (let i = 0; i < POLYMOD_GENERATORS.length; i++) if ((b >> i & 1) === 1) chk ^= POLYMOD_GENERATORS[i];
|
|
50389
|
+
return chk;
|
|
50390
|
+
}
|
|
50391
|
+
function bechChecksum(prefix, words, encodingConst = 1) {
|
|
50392
|
+
const len = prefix.length;
|
|
50393
|
+
let chk = 1;
|
|
50394
|
+
for (let i = 0; i < len; i++) {
|
|
50395
|
+
const c = prefix.charCodeAt(i);
|
|
50396
|
+
if (c < 33 || c > 126) throw new Error(`Invalid prefix (${prefix})`);
|
|
50397
|
+
chk = bech32Polymod(chk) ^ c >> 5;
|
|
50398
|
+
}
|
|
50399
|
+
chk = bech32Polymod(chk);
|
|
50400
|
+
for (let i = 0; i < len; i++) chk = bech32Polymod(chk) ^ prefix.charCodeAt(i) & 31;
|
|
50401
|
+
for (let v of words) chk = bech32Polymod(chk) ^ v;
|
|
50402
|
+
for (let i = 0; i < 6; i++) chk = bech32Polymod(chk);
|
|
50403
|
+
chk ^= encodingConst;
|
|
50404
|
+
return BECH_ALPHABET.encode(convertRadix2([chk % powers[30]], 30, 5, false));
|
|
50405
|
+
}
|
|
50406
|
+
/**
|
|
50407
|
+
* @__NO_SIDE_EFFECTS__
|
|
50408
|
+
*/
|
|
50409
|
+
function genBech32(encoding) {
|
|
50410
|
+
const ENCODING_CONST = encoding === "bech32" ? 1 : 734539939;
|
|
50411
|
+
const _words = radix2(5);
|
|
50412
|
+
const fromWords = _words.decode;
|
|
50413
|
+
const toWords = _words.encode;
|
|
50414
|
+
const fromWordsUnsafe = unsafeWrapper(fromWords);
|
|
50415
|
+
function encode(prefix, words, limit = 90) {
|
|
50416
|
+
astr("bech32.encode prefix", prefix);
|
|
50417
|
+
if (isBytes$1(words)) words = Array.from(words);
|
|
50418
|
+
anumArr("bech32.encode", words);
|
|
50419
|
+
const plen = prefix.length;
|
|
50420
|
+
if (plen === 0) throw new TypeError(`Invalid prefix length ${plen}`);
|
|
50421
|
+
const actualLength = plen + 7 + words.length;
|
|
50422
|
+
if (limit !== false && actualLength > limit) throw new TypeError(`Length ${actualLength} exceeds limit ${limit}`);
|
|
50423
|
+
const lowered = prefix.toLowerCase();
|
|
50424
|
+
const sum = bechChecksum(lowered, words, ENCODING_CONST);
|
|
50425
|
+
return `${lowered}1${BECH_ALPHABET.encode(words)}${sum}`;
|
|
50426
|
+
}
|
|
50427
|
+
function decode(str, limit = 90) {
|
|
50428
|
+
astr("bech32.decode input", str);
|
|
50429
|
+
const slen = str.length;
|
|
50430
|
+
if (slen < 8 || limit !== false && slen > limit) throw new TypeError(`invalid string length: ${slen} (${str}). Expected (8..${limit})`);
|
|
50431
|
+
const lowered = str.toLowerCase();
|
|
50432
|
+
if (str !== lowered && str !== str.toUpperCase()) throw new Error(`String must be lowercase or uppercase`);
|
|
50433
|
+
const sepIndex = lowered.lastIndexOf("1");
|
|
50434
|
+
if (sepIndex === 0 || sepIndex === -1) throw new Error(`Letter "1" must be present between prefix and data only`);
|
|
50435
|
+
const prefix = lowered.slice(0, sepIndex);
|
|
50436
|
+
const data = lowered.slice(sepIndex + 1);
|
|
50437
|
+
if (data.length < 6) throw new Error("Data must be at least 6 characters long");
|
|
50438
|
+
const words = BECH_ALPHABET.decode(data).slice(0, -6);
|
|
50439
|
+
const sum = bechChecksum(prefix, words, ENCODING_CONST);
|
|
50440
|
+
if (!data.endsWith(sum)) throw new Error(`Invalid checksum in ${str}: expected "${sum}"`);
|
|
50441
|
+
return {
|
|
50442
|
+
prefix,
|
|
50443
|
+
words
|
|
50444
|
+
};
|
|
50445
|
+
}
|
|
50446
|
+
const decodeUnsafe = unsafeWrapper(decode);
|
|
50447
|
+
function decodeToBytes(str) {
|
|
50448
|
+
const { prefix, words } = decode(str, false);
|
|
50449
|
+
return {
|
|
50450
|
+
prefix,
|
|
50451
|
+
words,
|
|
50452
|
+
bytes: fromWords(words)
|
|
50453
|
+
};
|
|
50454
|
+
}
|
|
50455
|
+
function encodeFromBytes(prefix, bytes) {
|
|
50456
|
+
return encode(prefix, toWords(bytes));
|
|
50457
|
+
}
|
|
50458
|
+
return {
|
|
50459
|
+
encode,
|
|
50460
|
+
decode,
|
|
50461
|
+
encodeFromBytes,
|
|
50462
|
+
decodeToBytes,
|
|
50463
|
+
decodeUnsafe,
|
|
50464
|
+
fromWords,
|
|
50465
|
+
fromWordsUnsafe,
|
|
50466
|
+
toWords
|
|
50467
|
+
};
|
|
50468
|
+
}
|
|
50469
|
+
genBech32("bech32");
|
|
50470
|
+
/**
|
|
50471
|
+
* bech32m from BIP 350. Operates on words.
|
|
50472
|
+
* It was to mitigate `bech32` weaknesses.
|
|
50473
|
+
* For high-level helpers, check out {@link https://github.com/paulmillr/scure-btc-signer | scure-btc-signer}.
|
|
50474
|
+
* @example
|
|
50475
|
+
* Convert bytes to words, encode them with bech32m, then decode back.
|
|
50476
|
+
* ```ts
|
|
50477
|
+
* const words = bech32m.toWords(Uint8Array.from([1, 2, 3]));
|
|
50478
|
+
* const text = bech32m.encode('bc', words);
|
|
50479
|
+
* bech32m.decode(text);
|
|
50480
|
+
* ```
|
|
50481
|
+
*/
|
|
50482
|
+
const bech32m = /* @__PURE__ */ Object.freeze(genBech32("bech32m"));
|
|
50483
|
+
/* @__PURE__ */ (() => typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function")() || chain(radix2(4), alphabet("0123456789abcdef"), join$1(""), normalize$1((s) => {
|
|
50484
|
+
if (typeof s !== "string" || s.length % 2 !== 0) throw new TypeError(`hex.decode: expected string, got ${typeof s} with length ${s.length}`);
|
|
50485
|
+
return s.toLowerCase();
|
|
50486
|
+
}));
|
|
50487
|
+
//#endregion
|
|
50488
|
+
//#region ../../node_modules/.pnpm/@xyo-network+address@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-base@2.7.1_34827f8a0994a652f915630fa0438f0c/node_modules/@xyo-network/address/dist/neutral/index.mjs
|
|
50489
|
+
var XyoLegacyAddressZod = AddressZod;
|
|
50490
|
+
zodToFactory(XyoLegacyAddressZod, "toXyoLegacyAddress");
|
|
50491
|
+
function tryDecodeQuantAddress(address) {
|
|
50492
|
+
if (address !== address.toLowerCase()) return void 0;
|
|
50493
|
+
try {
|
|
50494
|
+
const { bytes, prefix } = bech32m.decodeToBytes(address);
|
|
50495
|
+
return bytes.length === 20 ? {
|
|
50496
|
+
bytes,
|
|
50497
|
+
hrp: prefix
|
|
50498
|
+
} : void 0;
|
|
50499
|
+
} catch {
|
|
50500
|
+
return;
|
|
50501
|
+
}
|
|
50502
|
+
}
|
|
50503
|
+
var XyoQuantAddressZod = /* @__PURE__ */ pipe$1((/* @__PURE__ */ string$3()).check(/* @__PURE__ */ refine$2((v) => tryDecodeQuantAddress(v) !== void 0)), /* @__PURE__ */ transform$1((v) => v));
|
|
50504
|
+
zodToFactory(XyoQuantAddressZod, "toXyoQuantAddress");
|
|
50505
|
+
var XyoAddressRegEx = /^(?:[0-9a-f]{40}|[a-z0-9]{1,83}1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38})$/;
|
|
50506
|
+
var XyoAddressZod = /* @__PURE__ */ union$2([XyoLegacyAddressZod, XyoQuantAddressZod]);
|
|
50507
|
+
var asXyoAddress = zodAsFactory(XyoAddressZod, "asXyoAddress");
|
|
50508
|
+
var toXyoAddress = zodToFactory(XyoAddressZod, "toXyoAddress");
|
|
50509
|
+
//#endregion
|
|
50510
|
+
//#region ../../node_modules/.pnpm/@xyo-network+account-model@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-base_8af10908dfda77d49135981563a58618/node_modules/@xyo-network/account-model/dist/neutral/index.mjs
|
|
50049
50511
|
var isPhraseInitializationConfig = (value) => {
|
|
50050
50512
|
if (typeof value === "object" && value !== null) return typeof value.phrase === "string";
|
|
50051
50513
|
return false;
|
|
@@ -50062,23 +50524,19 @@ var isAccountInstance = (account) => {
|
|
|
50062
50524
|
if (typeof account !== "object" || account === null) return false;
|
|
50063
50525
|
return typeof account.address === "string";
|
|
50064
50526
|
};
|
|
50065
|
-
var AccountAlgorithmPrefix = {
|
|
50066
|
-
"secp256k1": null,
|
|
50067
|
-
"ml-dsa-65": "qr1"
|
|
50068
|
-
};
|
|
50069
|
-
function algorithmFromAddress(address) {
|
|
50070
|
-
const underscore = address.indexOf("_");
|
|
50071
|
-
if (underscore === -1) return "secp256k1";
|
|
50072
|
-
const prefix = address.slice(0, underscore);
|
|
50073
|
-
if (prefix === AccountAlgorithmPrefix["ml-dsa-65"]) return "ml-dsa-65";
|
|
50074
|
-
throw new Error(`Unknown address algorithm prefix [${prefix}]`);
|
|
50075
|
-
}
|
|
50076
|
-
function stripAddressPrefix(address) {
|
|
50077
|
-
const underscore = address.indexOf("_");
|
|
50078
|
-
return underscore === -1 ? address : address.slice(underscore + 1);
|
|
50079
|
-
}
|
|
50080
50527
|
function addressTo20Bytes(address) {
|
|
50081
|
-
|
|
50528
|
+
const decoded = tryDecodeQuantAddress(address);
|
|
50529
|
+
return decoded === void 0 ? toUint8Array(address, 20).buffer : decoded.bytes.buffer;
|
|
50530
|
+
}
|
|
50531
|
+
var AlgorithmHrpEntries = [["ml-dsa-65", "qm65"]];
|
|
50532
|
+
Object.fromEntries(AlgorithmHrpEntries);
|
|
50533
|
+
var HrpToAlgorithm = Object.fromEntries(AlgorithmHrpEntries.map(([algorithm, hrp]) => [hrp, algorithm]));
|
|
50534
|
+
function algorithmFromAddress(address) {
|
|
50535
|
+
const decoded = tryDecodeQuantAddress(address);
|
|
50536
|
+
if (decoded === void 0) return "secp256k1";
|
|
50537
|
+
const algorithm = HrpToAlgorithm[decoded.hrp];
|
|
50538
|
+
if (algorithm === void 0) throw new Error(`Unknown address algorithm HRP [${decoded.hrp}]`);
|
|
50539
|
+
return algorithm;
|
|
50082
50540
|
}
|
|
50083
50541
|
var JwtAlg = Enum({ ES256K: "ES256K" });
|
|
50084
50542
|
var JwtTyp = Enum({ JWT: "JWT" });
|
|
@@ -50585,436 +51043,7 @@ const wrapSecp256k1Wasm = (secp256k1Wasm, randomSeed) => {
|
|
|
50585
51043
|
*/
|
|
50586
51044
|
const instantiateSecp256k1 = async (randomSeed) => wrapSecp256k1Wasm(await instantiateSecp256k1Wasm(), randomSeed);
|
|
50587
51045
|
//#endregion
|
|
50588
|
-
//#region ../../node_modules/.pnpm/@
|
|
50589
|
-
/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
50590
|
-
function isBytes$1(a) {
|
|
50591
|
-
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in a && a.BYTES_PER_ELEMENT === 1;
|
|
50592
|
-
}
|
|
50593
|
-
function isArrayOf(isString, arr) {
|
|
50594
|
-
if (!Array.isArray(arr)) return false;
|
|
50595
|
-
if (arr.length === 0) return true;
|
|
50596
|
-
if (isString) return arr.every((item) => typeof item === "string");
|
|
50597
|
-
else return arr.every((item) => Number.isSafeInteger(item));
|
|
50598
|
-
}
|
|
50599
|
-
function afn(input) {
|
|
50600
|
-
if (typeof input !== "function") throw new TypeError("function expected");
|
|
50601
|
-
return true;
|
|
50602
|
-
}
|
|
50603
|
-
function astr(label, input) {
|
|
50604
|
-
if (typeof input !== "string") throw new TypeError(`${label}: string expected`);
|
|
50605
|
-
return true;
|
|
50606
|
-
}
|
|
50607
|
-
function anumber$1(n) {
|
|
50608
|
-
if (typeof n !== "number") throw new TypeError(`number expected, got ${typeof n}`);
|
|
50609
|
-
if (!Number.isSafeInteger(n)) throw new RangeError(`invalid integer: ${n}`);
|
|
50610
|
-
}
|
|
50611
|
-
function aArr(input) {
|
|
50612
|
-
if (!Array.isArray(input)) throw new TypeError("array expected");
|
|
50613
|
-
}
|
|
50614
|
-
function astrArr(label, input) {
|
|
50615
|
-
if (!isArrayOf(true, input)) throw new TypeError(`${label}: array of strings expected`);
|
|
50616
|
-
}
|
|
50617
|
-
function anumArr(label, input) {
|
|
50618
|
-
if (!isArrayOf(false, input)) throw new TypeError(`${label}: array of numbers expected`);
|
|
50619
|
-
}
|
|
50620
|
-
/**
|
|
50621
|
-
* @__NO_SIDE_EFFECTS__
|
|
50622
|
-
*/
|
|
50623
|
-
function chain(...args) {
|
|
50624
|
-
const id = (a) => a;
|
|
50625
|
-
const wrap = (a, b) => (c) => a(b(c));
|
|
50626
|
-
return {
|
|
50627
|
-
encode: args.map((x) => x.encode).reduceRight(wrap, id),
|
|
50628
|
-
decode: args.map((x) => x.decode).reduce(wrap, id)
|
|
50629
|
-
};
|
|
50630
|
-
}
|
|
50631
|
-
/**
|
|
50632
|
-
* Encodes integer radix representation to array of strings using alphabet and back.
|
|
50633
|
-
* Could also be array of strings.
|
|
50634
|
-
* @__NO_SIDE_EFFECTS__
|
|
50635
|
-
*/
|
|
50636
|
-
function alphabet(letters) {
|
|
50637
|
-
const lettersA = typeof letters === "string" ? letters.split("") : letters;
|
|
50638
|
-
const len = lettersA.length;
|
|
50639
|
-
astrArr("alphabet", lettersA);
|
|
50640
|
-
const indexes = new Map(lettersA.map((l, i) => [l, i]));
|
|
50641
|
-
return {
|
|
50642
|
-
encode: (digits) => {
|
|
50643
|
-
aArr(digits);
|
|
50644
|
-
return digits.map((i) => {
|
|
50645
|
-
if (!Number.isSafeInteger(i) || i < 0 || i >= len) throw new Error(`alphabet.encode: digit index outside alphabet "${i}". Allowed: ${letters}`);
|
|
50646
|
-
return lettersA[i];
|
|
50647
|
-
});
|
|
50648
|
-
},
|
|
50649
|
-
decode: (input) => {
|
|
50650
|
-
aArr(input);
|
|
50651
|
-
return input.map((letter) => {
|
|
50652
|
-
astr("alphabet.decode", letter);
|
|
50653
|
-
const i = indexes.get(letter);
|
|
50654
|
-
if (i === void 0) throw new Error(`Unknown letter: "${letter}". Allowed: ${letters}`);
|
|
50655
|
-
return i;
|
|
50656
|
-
});
|
|
50657
|
-
}
|
|
50658
|
-
};
|
|
50659
|
-
}
|
|
50660
|
-
/**
|
|
50661
|
-
* @__NO_SIDE_EFFECTS__
|
|
50662
|
-
*/
|
|
50663
|
-
function join$1(separator = "") {
|
|
50664
|
-
astr("join", separator);
|
|
50665
|
-
return {
|
|
50666
|
-
encode: (from) => {
|
|
50667
|
-
astrArr("join.decode", from);
|
|
50668
|
-
return from.join(separator);
|
|
50669
|
-
},
|
|
50670
|
-
decode: (to) => {
|
|
50671
|
-
astr("join.decode", to);
|
|
50672
|
-
return to.split(separator);
|
|
50673
|
-
}
|
|
50674
|
-
};
|
|
50675
|
-
}
|
|
50676
|
-
/**
|
|
50677
|
-
* Pad strings array so it has integer number of bits
|
|
50678
|
-
* @__NO_SIDE_EFFECTS__
|
|
50679
|
-
*/
|
|
50680
|
-
function padding(bits, chr = "=") {
|
|
50681
|
-
anumber$1(bits);
|
|
50682
|
-
astr("padding", chr);
|
|
50683
|
-
return {
|
|
50684
|
-
encode(data) {
|
|
50685
|
-
astrArr("padding.encode", data);
|
|
50686
|
-
while (data.length * bits % 8) data.push(chr);
|
|
50687
|
-
return data;
|
|
50688
|
-
},
|
|
50689
|
-
decode(input) {
|
|
50690
|
-
astrArr("padding.decode", input);
|
|
50691
|
-
let end = input.length;
|
|
50692
|
-
if (end * bits % 8) throw new Error("padding: invalid, string should have whole number of bytes");
|
|
50693
|
-
for (; end > 0 && input[end - 1] === chr; end--) if ((end - 1) * bits % 8 === 0) throw new Error("padding: invalid, string has too much padding");
|
|
50694
|
-
return input.slice(0, end);
|
|
50695
|
-
}
|
|
50696
|
-
};
|
|
50697
|
-
}
|
|
50698
|
-
/**
|
|
50699
|
-
* @__NO_SIDE_EFFECTS__
|
|
50700
|
-
*/
|
|
50701
|
-
function normalize$1(fn) {
|
|
50702
|
-
afn(fn);
|
|
50703
|
-
return {
|
|
50704
|
-
encode: (from) => from,
|
|
50705
|
-
decode: (to) => fn(to)
|
|
50706
|
-
};
|
|
50707
|
-
}
|
|
50708
|
-
/**
|
|
50709
|
-
* Slow: O(n^2) time complexity
|
|
50710
|
-
*/
|
|
50711
|
-
function convertRadix(data, from, to) {
|
|
50712
|
-
if (from < 2) throw new RangeError(`convertRadix: invalid from=${from}, base cannot be less than 2`);
|
|
50713
|
-
if (to < 2) throw new RangeError(`convertRadix: invalid to=${to}, base cannot be less than 2`);
|
|
50714
|
-
aArr(data);
|
|
50715
|
-
if (!data.length) return [];
|
|
50716
|
-
let pos = 0;
|
|
50717
|
-
const res = [];
|
|
50718
|
-
const digits = Array.from(data, (d) => {
|
|
50719
|
-
anumber$1(d);
|
|
50720
|
-
if (d < 0 || d >= from) throw new Error(`invalid integer: ${d}`);
|
|
50721
|
-
return d;
|
|
50722
|
-
});
|
|
50723
|
-
const dlen = digits.length;
|
|
50724
|
-
while (true) {
|
|
50725
|
-
let carry = 0;
|
|
50726
|
-
let done = true;
|
|
50727
|
-
for (let i = pos; i < dlen; i++) {
|
|
50728
|
-
const digit = digits[i];
|
|
50729
|
-
const fromCarry = from * carry;
|
|
50730
|
-
const digitBase = fromCarry + digit;
|
|
50731
|
-
if (!Number.isSafeInteger(digitBase) || fromCarry / from !== carry || digitBase - digit !== fromCarry) throw new Error("convertRadix: carry overflow");
|
|
50732
|
-
const div = digitBase / to;
|
|
50733
|
-
carry = digitBase % to;
|
|
50734
|
-
const rounded = Math.floor(div);
|
|
50735
|
-
digits[i] = rounded;
|
|
50736
|
-
if (!Number.isSafeInteger(rounded) || rounded * to + carry !== digitBase) throw new Error("convertRadix: carry overflow");
|
|
50737
|
-
if (!done) continue;
|
|
50738
|
-
else if (!rounded) pos = i;
|
|
50739
|
-
else done = false;
|
|
50740
|
-
}
|
|
50741
|
-
res.push(carry);
|
|
50742
|
-
if (done) break;
|
|
50743
|
-
}
|
|
50744
|
-
for (let i = 0; i < data.length - 1 && data[i] === 0; i++) res.push(0);
|
|
50745
|
-
return res.reverse();
|
|
50746
|
-
}
|
|
50747
|
-
const gcd = (a, b) => b === 0 ? a : gcd(b, a % b);
|
|
50748
|
-
const radix2carry = /* @__NO_SIDE_EFFECTS__ */ (from, to) => from + (to - gcd(from, to));
|
|
50749
|
-
const powers = /* @__PURE__ */ (() => {
|
|
50750
|
-
let res = [];
|
|
50751
|
-
for (let i = 0; i < 40; i++) res.push(2 ** i);
|
|
50752
|
-
return res;
|
|
50753
|
-
})();
|
|
50754
|
-
/**
|
|
50755
|
-
* Implemented with numbers, because BigInt is 5x slower
|
|
50756
|
-
*/
|
|
50757
|
-
function convertRadix2(data, from, to, padding) {
|
|
50758
|
-
aArr(data);
|
|
50759
|
-
if (from <= 0 || from > 32) throw new RangeError(`convertRadix2: wrong from=${from}`);
|
|
50760
|
-
if (to <= 0 || to > 32) throw new RangeError(`convertRadix2: wrong to=${to}`);
|
|
50761
|
-
if (/* @__PURE__ */ radix2carry(from, to) > 32) throw new Error(`convertRadix2: carry overflow from=${from} to=${to} carryBits=${/* @__PURE__ */ radix2carry(from, to)}`);
|
|
50762
|
-
let carry = 0;
|
|
50763
|
-
let pos = 0;
|
|
50764
|
-
const max = powers[from];
|
|
50765
|
-
const mask = powers[to] - 1;
|
|
50766
|
-
const res = [];
|
|
50767
|
-
for (const n of data) {
|
|
50768
|
-
anumber$1(n);
|
|
50769
|
-
if (n >= max) throw new Error(`convertRadix2: invalid data word=${n} from=${from}`);
|
|
50770
|
-
carry = carry << from | n;
|
|
50771
|
-
if (pos + from > 32) throw new Error(`convertRadix2: carry overflow pos=${pos} from=${from}`);
|
|
50772
|
-
pos += from;
|
|
50773
|
-
for (; pos >= to; pos -= to) res.push((carry >> pos - to & mask) >>> 0);
|
|
50774
|
-
const pow = powers[pos];
|
|
50775
|
-
if (pow === void 0) throw new Error("invalid carry");
|
|
50776
|
-
carry &= pow - 1;
|
|
50777
|
-
}
|
|
50778
|
-
carry = carry << to - pos & mask;
|
|
50779
|
-
if (!padding && pos >= from) throw new Error("Excess padding");
|
|
50780
|
-
if (!padding && carry > 0) throw new Error(`Non-zero padding: ${carry}`);
|
|
50781
|
-
if (padding && pos > 0) res.push(carry >>> 0);
|
|
50782
|
-
return res;
|
|
50783
|
-
}
|
|
50784
|
-
/**
|
|
50785
|
-
* @__NO_SIDE_EFFECTS__
|
|
50786
|
-
*/
|
|
50787
|
-
function radix(num) {
|
|
50788
|
-
anumber$1(num);
|
|
50789
|
-
const _256 = 2 ** 8;
|
|
50790
|
-
return {
|
|
50791
|
-
encode: (bytes) => {
|
|
50792
|
-
if (!isBytes$1(bytes)) throw new TypeError("radix.encode input should be Uint8Array");
|
|
50793
|
-
return convertRadix(Array.from(bytes), _256, num);
|
|
50794
|
-
},
|
|
50795
|
-
decode: (digits) => {
|
|
50796
|
-
anumArr("radix.decode", digits);
|
|
50797
|
-
return Uint8Array.from(convertRadix(digits, num, _256));
|
|
50798
|
-
}
|
|
50799
|
-
};
|
|
50800
|
-
}
|
|
50801
|
-
/**
|
|
50802
|
-
* If both bases are power of same number (like `2**8 <-> 2**64`),
|
|
50803
|
-
* there is a linear algorithm. For now we have implementation for power-of-two bases only.
|
|
50804
|
-
* @__NO_SIDE_EFFECTS__
|
|
50805
|
-
*/
|
|
50806
|
-
function radix2(bits, revPadding = false) {
|
|
50807
|
-
anumber$1(bits);
|
|
50808
|
-
if (bits <= 0 || bits > 32) throw new RangeError("radix2: bits should be in (0..32]");
|
|
50809
|
-
if (/* @__PURE__ */ radix2carry(8, bits) > 32 || /* @__PURE__ */ radix2carry(bits, 8) > 32) throw new RangeError("radix2: carry overflow");
|
|
50810
|
-
return {
|
|
50811
|
-
encode: (bytes) => {
|
|
50812
|
-
if (!isBytes$1(bytes)) throw new TypeError("radix2.encode input should be Uint8Array");
|
|
50813
|
-
return convertRadix2(Array.from(bytes), 8, bits, !revPadding);
|
|
50814
|
-
},
|
|
50815
|
-
decode: (digits) => {
|
|
50816
|
-
anumArr("radix2.decode", digits);
|
|
50817
|
-
return Uint8Array.from(convertRadix2(digits, bits, 8, revPadding));
|
|
50818
|
-
}
|
|
50819
|
-
};
|
|
50820
|
-
}
|
|
50821
|
-
function unsafeWrapper(fn) {
|
|
50822
|
-
afn(fn);
|
|
50823
|
-
return function(...args) {
|
|
50824
|
-
try {
|
|
50825
|
-
return fn.apply(null, args);
|
|
50826
|
-
} catch (e) {}
|
|
50827
|
-
};
|
|
50828
|
-
}
|
|
50829
|
-
function checksum(len, fn) {
|
|
50830
|
-
anumber$1(len);
|
|
50831
|
-
if (len <= 0) throw new RangeError(`checksum length must be positive: ${len}`);
|
|
50832
|
-
afn(fn);
|
|
50833
|
-
const _fn = fn;
|
|
50834
|
-
return {
|
|
50835
|
-
encode(data) {
|
|
50836
|
-
if (!isBytes$1(data)) throw new TypeError("checksum.encode: input should be Uint8Array");
|
|
50837
|
-
const sum = _fn(data).slice(0, len);
|
|
50838
|
-
const res = new Uint8Array(data.length + len);
|
|
50839
|
-
res.set(data);
|
|
50840
|
-
res.set(sum, data.length);
|
|
50841
|
-
return res;
|
|
50842
|
-
},
|
|
50843
|
-
decode(data) {
|
|
50844
|
-
if (!isBytes$1(data)) throw new TypeError("checksum.decode: input should be Uint8Array");
|
|
50845
|
-
const payload = data.slice(0, -len);
|
|
50846
|
-
const oldChecksum = data.slice(-len);
|
|
50847
|
-
const newChecksum = _fn(payload).slice(0, len);
|
|
50848
|
-
for (let i = 0; i < len; i++) if (newChecksum[i] !== oldChecksum[i]) throw new Error("Invalid checksum");
|
|
50849
|
-
return payload;
|
|
50850
|
-
}
|
|
50851
|
-
};
|
|
50852
|
-
}
|
|
50853
|
-
/**
|
|
50854
|
-
* Low-level building blocks used by the exported codecs.
|
|
50855
|
-
* @example
|
|
50856
|
-
* Build a radix-32 coder from the low-level helpers.
|
|
50857
|
-
* ```ts
|
|
50858
|
-
* import { utils } from '@scure/base';
|
|
50859
|
-
* utils.radix2(5).encode(Uint8Array.from([1, 2, 3]));
|
|
50860
|
-
* ```
|
|
50861
|
-
*/
|
|
50862
|
-
const utils = /* @__PURE__ */ Object.freeze({
|
|
50863
|
-
alphabet,
|
|
50864
|
-
chain,
|
|
50865
|
-
checksum,
|
|
50866
|
-
convertRadix,
|
|
50867
|
-
convertRadix2,
|
|
50868
|
-
radix,
|
|
50869
|
-
radix2,
|
|
50870
|
-
join: join$1,
|
|
50871
|
-
padding
|
|
50872
|
-
});
|
|
50873
|
-
/**
|
|
50874
|
-
* base16 encoding from RFC 4648.
|
|
50875
|
-
* This codec uses RFC 4648 Table 5's uppercase alphabet directly.
|
|
50876
|
-
* RFC 4648 §8 calls base16 "case-insensitive hex encoding", but we intentionally do not case-fold decode input here.
|
|
50877
|
-
* Use `hex` for case-insensitive hex decoding.
|
|
50878
|
-
* @example
|
|
50879
|
-
* ```js
|
|
50880
|
-
* base16.encode(Uint8Array.from([0x12, 0xab]));
|
|
50881
|
-
* // => '12AB'
|
|
50882
|
-
* ```
|
|
50883
|
-
*/
|
|
50884
|
-
const base16 = /* @__PURE__ */ Object.freeze(chain(radix2(4), alphabet("0123456789ABCDEF"), join$1("")));
|
|
50885
|
-
chain(radix2(5), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"), padding(5), join$1(""));
|
|
50886
|
-
chain(radix2(5), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"), join$1(""));
|
|
50887
|
-
chain(radix2(5), alphabet("0123456789ABCDEFGHIJKLMNOPQRSTUV"), padding(5), join$1(""));
|
|
50888
|
-
chain(radix2(5), alphabet("0123456789ABCDEFGHIJKLMNOPQRSTUV"), join$1(""));
|
|
50889
|
-
chain(radix2(5), alphabet("0123456789ABCDEFGHJKMNPQRSTVWXYZ"), join$1(""), normalize$1((s) => s.toUpperCase().replace(/O/g, "0").replace(/[IL]/g, "1")));
|
|
50890
|
-
const hasBase64Builtin = /* @__PURE__ */ (() => typeof Uint8Array.from([]).toBase64 === "function" && typeof Uint8Array.fromBase64 === "function")();
|
|
50891
|
-
hasBase64Builtin || chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), padding(6), join$1(""));
|
|
50892
|
-
chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), join$1(""));
|
|
50893
|
-
hasBase64Builtin || chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"), padding(6), join$1(""));
|
|
50894
|
-
/**
|
|
50895
|
-
* base64 from RFC 4648, using URL-safe alphabet. No padding.
|
|
50896
|
-
* Use `base64url` for padded version.
|
|
50897
|
-
* @example
|
|
50898
|
-
* ```js
|
|
50899
|
-
* base64urlnopad.encode(Uint8Array.from([0x12, 0xab]));
|
|
50900
|
-
* // => 'Eqs'
|
|
50901
|
-
* base64urlnopad.decode('Eqs');
|
|
50902
|
-
* // => Uint8Array.from([0x12, 0xab])
|
|
50903
|
-
* ```
|
|
50904
|
-
*/
|
|
50905
|
-
const base64urlnopad = /* @__PURE__ */ Object.freeze(chain(radix2(6), alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"), join$1("")));
|
|
50906
|
-
const genBase58 = /* @__NO_SIDE_EFFECTS__ */ (abc) => chain(radix(58), alphabet(abc), join$1(""));
|
|
50907
|
-
/**
|
|
50908
|
-
* base58: base64 without ambigous characters +, /, 0, O, I, l.
|
|
50909
|
-
* Quadratic (O(n^2)) - so, can't be used on large inputs.
|
|
50910
|
-
* @example
|
|
50911
|
-
* ```js
|
|
50912
|
-
* const text = base58.encode(Uint8Array.from([0, 1, 2]));
|
|
50913
|
-
* base58.decode(text);
|
|
50914
|
-
* // => Uint8Array.from([0, 1, 2])
|
|
50915
|
-
* ```
|
|
50916
|
-
*/
|
|
50917
|
-
const base58 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"));
|
|
50918
|
-
const BECH_ALPHABET = chain(alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), join$1(""));
|
|
50919
|
-
const POLYMOD_GENERATORS = [
|
|
50920
|
-
996825010,
|
|
50921
|
-
642813549,
|
|
50922
|
-
513874426,
|
|
50923
|
-
1027748829,
|
|
50924
|
-
705979059
|
|
50925
|
-
];
|
|
50926
|
-
function bech32Polymod(pre) {
|
|
50927
|
-
const b = pre >> 25;
|
|
50928
|
-
let chk = (pre & 33554431) << 5;
|
|
50929
|
-
for (let i = 0; i < POLYMOD_GENERATORS.length; i++) if ((b >> i & 1) === 1) chk ^= POLYMOD_GENERATORS[i];
|
|
50930
|
-
return chk;
|
|
50931
|
-
}
|
|
50932
|
-
function bechChecksum(prefix, words, encodingConst = 1) {
|
|
50933
|
-
const len = prefix.length;
|
|
50934
|
-
let chk = 1;
|
|
50935
|
-
for (let i = 0; i < len; i++) {
|
|
50936
|
-
const c = prefix.charCodeAt(i);
|
|
50937
|
-
if (c < 33 || c > 126) throw new Error(`Invalid prefix (${prefix})`);
|
|
50938
|
-
chk = bech32Polymod(chk) ^ c >> 5;
|
|
50939
|
-
}
|
|
50940
|
-
chk = bech32Polymod(chk);
|
|
50941
|
-
for (let i = 0; i < len; i++) chk = bech32Polymod(chk) ^ prefix.charCodeAt(i) & 31;
|
|
50942
|
-
for (let v of words) chk = bech32Polymod(chk) ^ v;
|
|
50943
|
-
for (let i = 0; i < 6; i++) chk = bech32Polymod(chk);
|
|
50944
|
-
chk ^= encodingConst;
|
|
50945
|
-
return BECH_ALPHABET.encode(convertRadix2([chk % powers[30]], 30, 5, false));
|
|
50946
|
-
}
|
|
50947
|
-
/**
|
|
50948
|
-
* @__NO_SIDE_EFFECTS__
|
|
50949
|
-
*/
|
|
50950
|
-
function genBech32(encoding) {
|
|
50951
|
-
const ENCODING_CONST = encoding === "bech32" ? 1 : 734539939;
|
|
50952
|
-
const _words = radix2(5);
|
|
50953
|
-
const fromWords = _words.decode;
|
|
50954
|
-
const toWords = _words.encode;
|
|
50955
|
-
const fromWordsUnsafe = unsafeWrapper(fromWords);
|
|
50956
|
-
function encode(prefix, words, limit = 90) {
|
|
50957
|
-
astr("bech32.encode prefix", prefix);
|
|
50958
|
-
if (isBytes$1(words)) words = Array.from(words);
|
|
50959
|
-
anumArr("bech32.encode", words);
|
|
50960
|
-
const plen = prefix.length;
|
|
50961
|
-
if (plen === 0) throw new TypeError(`Invalid prefix length ${plen}`);
|
|
50962
|
-
const actualLength = plen + 7 + words.length;
|
|
50963
|
-
if (limit !== false && actualLength > limit) throw new TypeError(`Length ${actualLength} exceeds limit ${limit}`);
|
|
50964
|
-
const lowered = prefix.toLowerCase();
|
|
50965
|
-
const sum = bechChecksum(lowered, words, ENCODING_CONST);
|
|
50966
|
-
return `${lowered}1${BECH_ALPHABET.encode(words)}${sum}`;
|
|
50967
|
-
}
|
|
50968
|
-
function decode(str, limit = 90) {
|
|
50969
|
-
astr("bech32.decode input", str);
|
|
50970
|
-
const slen = str.length;
|
|
50971
|
-
if (slen < 8 || limit !== false && slen > limit) throw new TypeError(`invalid string length: ${slen} (${str}). Expected (8..${limit})`);
|
|
50972
|
-
const lowered = str.toLowerCase();
|
|
50973
|
-
if (str !== lowered && str !== str.toUpperCase()) throw new Error(`String must be lowercase or uppercase`);
|
|
50974
|
-
const sepIndex = lowered.lastIndexOf("1");
|
|
50975
|
-
if (sepIndex === 0 || sepIndex === -1) throw new Error(`Letter "1" must be present between prefix and data only`);
|
|
50976
|
-
const prefix = lowered.slice(0, sepIndex);
|
|
50977
|
-
const data = lowered.slice(sepIndex + 1);
|
|
50978
|
-
if (data.length < 6) throw new Error("Data must be at least 6 characters long");
|
|
50979
|
-
const words = BECH_ALPHABET.decode(data).slice(0, -6);
|
|
50980
|
-
const sum = bechChecksum(prefix, words, ENCODING_CONST);
|
|
50981
|
-
if (!data.endsWith(sum)) throw new Error(`Invalid checksum in ${str}: expected "${sum}"`);
|
|
50982
|
-
return {
|
|
50983
|
-
prefix,
|
|
50984
|
-
words
|
|
50985
|
-
};
|
|
50986
|
-
}
|
|
50987
|
-
const decodeUnsafe = unsafeWrapper(decode);
|
|
50988
|
-
function decodeToBytes(str) {
|
|
50989
|
-
const { prefix, words } = decode(str, false);
|
|
50990
|
-
return {
|
|
50991
|
-
prefix,
|
|
50992
|
-
words,
|
|
50993
|
-
bytes: fromWords(words)
|
|
50994
|
-
};
|
|
50995
|
-
}
|
|
50996
|
-
function encodeFromBytes(prefix, bytes) {
|
|
50997
|
-
return encode(prefix, toWords(bytes));
|
|
50998
|
-
}
|
|
50999
|
-
return {
|
|
51000
|
-
encode,
|
|
51001
|
-
decode,
|
|
51002
|
-
encodeFromBytes,
|
|
51003
|
-
decodeToBytes,
|
|
51004
|
-
decodeUnsafe,
|
|
51005
|
-
fromWords,
|
|
51006
|
-
fromWordsUnsafe,
|
|
51007
|
-
toWords
|
|
51008
|
-
};
|
|
51009
|
-
}
|
|
51010
|
-
genBech32("bech32");
|
|
51011
|
-
genBech32("bech32m");
|
|
51012
|
-
/* @__PURE__ */ (() => typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function")() || chain(radix2(4), alphabet("0123456789abcdef"), join$1(""), normalize$1((s) => {
|
|
51013
|
-
if (typeof s !== "string" || s.length % 2 !== 0) throw new TypeError(`hex.decode: expected string, got ${typeof s} with length ${s.length}`);
|
|
51014
|
-
return s.toLowerCase();
|
|
51015
|
-
}));
|
|
51016
|
-
//#endregion
|
|
51017
|
-
//#region ../../node_modules/.pnpm/@xyo-network+data@6.0.7_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-base@2.7.1_@o_b985dba4ece598280ee656c4918a8332/node_modules/@xyo-network/data/dist/neutral/index.mjs
|
|
51046
|
+
//#region ../../node_modules/.pnpm/@xyo-network+data@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-base@2.7.1_@o_e93838516467e8f8cf559f3d37aadd23/node_modules/@xyo-network/data/dist/neutral/index.mjs
|
|
51018
51047
|
var AbstractData = class _AbstractData {
|
|
51019
51048
|
get length() {
|
|
51020
51049
|
return this.bytes.byteLength;
|
|
@@ -51054,7 +51083,7 @@ var Data = class _Data extends AbstractData {
|
|
|
51054
51083
|
}
|
|
51055
51084
|
};
|
|
51056
51085
|
//#endregion
|
|
51057
|
-
//#region ../../node_modules/.pnpm/@xyo-network+elliptic@6.0.
|
|
51086
|
+
//#region ../../node_modules/.pnpm/@xyo-network+elliptic@6.0.8_@bitauth+libauth@3.0.0_@opentelemetry+api@1.9.1_@openteleme_ec5c98d6ca3ca8e2f166e7513e56727c/node_modules/@xyo-network/elliptic/dist/neutral/index.mjs
|
|
51058
51087
|
var wasmSupportStatic = new WasmSupport([
|
|
51059
51088
|
"bigInt",
|
|
51060
51089
|
"mutableGlobals",
|
|
@@ -51129,7 +51158,7 @@ var Elliptic = class {
|
|
|
51129
51158
|
}
|
|
51130
51159
|
};
|
|
51131
51160
|
//#endregion
|
|
51132
|
-
//#region ../../node_modules/.pnpm/@xyo-network+account@6.0.
|
|
51161
|
+
//#region ../../node_modules/.pnpm/@xyo-network+account@6.0.8_@bitauth+libauth@3.0.0_@opentelemetry+api@1.9.1_@opentelemet_62f0ac8024ee9d7274b5275208bbb3bb/node_modules/@xyo-network/account/dist/neutral/index.mjs
|
|
51133
51162
|
var __defProp$27 = Object.defineProperty;
|
|
51134
51163
|
var __getOwnPropDesc$26 = Object.getOwnPropertyDescriptor;
|
|
51135
51164
|
var __defNormalProp$24 = (obj, key, value) => key in obj ? __defProp$27(obj, key, {
|
|
@@ -51481,14 +51510,14 @@ __publicField$24(Account, "_addressMap", {});
|
|
|
51481
51510
|
__publicField$24(Account, "_protectedConstructorKey", /* @__PURE__ */ Symbol());
|
|
51482
51511
|
Account = __decorateClass$26([staticImplements()], Account);
|
|
51483
51512
|
//#endregion
|
|
51484
|
-
//#region ../../node_modules/.pnpm/@xyo-network+query-payload-plugin@6.0.
|
|
51513
|
+
//#region ../../node_modules/.pnpm/@xyo-network+query-payload-plugin@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-tra_33fd005c448dca22a290bf3cf204c08c/node_modules/@xyo-network/query-payload-plugin/dist/neutral/index.mjs
|
|
51485
51514
|
var QuerySchema = asSchema("network.xyo.query", true);
|
|
51486
51515
|
//#endregion
|
|
51487
|
-
//#region ../../node_modules/.pnpm/@xyo-network+schema-payload-plugin@6.0.
|
|
51516
|
+
//#region ../../node_modules/.pnpm/@xyo-network+schema-payload-plugin@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-tr_96e34f6572122cf3cb11677e77b5f4db/node_modules/@xyo-network/schema-payload-plugin/dist/neutral/index.mjs
|
|
51488
51517
|
var SchemaSchema = asSchema("network.xyo.schema", true);
|
|
51489
51518
|
var isSchemaPayload = isPayloadOfSchemaType(SchemaSchema);
|
|
51490
51519
|
//#endregion
|
|
51491
|
-
//#region ../../node_modules/.pnpm/@xyo-network+manifest-model@6.0.
|
|
51520
|
+
//#region ../../node_modules/.pnpm/@xyo-network+manifest-model@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-bas_84de818fb61fa6c5cfd2d242967edd04/node_modules/@xyo-network/manifest-model/dist/neutral/index.mjs
|
|
51492
51521
|
var isString$1 = (value) => typeof value === "string";
|
|
51493
51522
|
var asBrandedZod = (schema) => {
|
|
51494
51523
|
return /* @__PURE__ */ pipe$1(schema, /* @__PURE__ */ transform$1((value) => value));
|
|
@@ -51563,17 +51592,7 @@ zodToFactory(/* @__PURE__ */ extend(NodeManifestZod, { schema: /* @__PURE__ */ l
|
|
|
51563
51592
|
zodToFactory(/* @__PURE__ */ extend(ModuleManifestZod, { schema: /* @__PURE__ */ union$2([/* @__PURE__ */ literal$2(ModuleManifestPayloadSchema), /* @__PURE__ */ literal$2(NodeManifestPayloadSchema)]) }), "toModuleManifestPayload");
|
|
51564
51593
|
zodToFactory(/* @__PURE__ */ extend(PackageManifestZod, { schema: /* @__PURE__ */ literal$2(PackageManifestPayloadSchema) }), "toPackageManifestPayload");
|
|
51565
51594
|
//#endregion
|
|
51566
|
-
//#region ../../node_modules/.pnpm/@xyo-network+
|
|
51567
|
-
var XyoLegacyAddressZod = AddressZod;
|
|
51568
|
-
zodToFactory(XyoLegacyAddressZod, "toXyoLegacyAddress");
|
|
51569
|
-
var XyoQuant1AddressZod = /* @__PURE__ */ pipe$1((/* @__PURE__ */ string$3()).check(/* @__PURE__ */ _regex(/^qr1_[0-9a-f]{40}$/)), /* @__PURE__ */ transform$1((v) => v));
|
|
51570
|
-
zodToFactory(XyoQuant1AddressZod, "toXyoQuant1Address");
|
|
51571
|
-
var XyoAddressRegEx = /^(?:qr1_)?[0-9a-f]{40}$/;
|
|
51572
|
-
var XyoAddressZod = /* @__PURE__ */ union$2([XyoLegacyAddressZod, XyoQuant1AddressZod]);
|
|
51573
|
-
var asXyoAddress = zodAsFactory(XyoAddressZod, "asXyoAddress");
|
|
51574
|
-
var toXyoAddress = zodToFactory(XyoAddressZod, "toXyoAddress");
|
|
51575
|
-
//#endregion
|
|
51576
|
-
//#region ../../node_modules/.pnpm/@xyo-network+boundwitness-model@6.0.7_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace_62fb41e5307635fedda703bcbd6df99b/node_modules/@xyo-network/boundwitness-model/dist/neutral/index.mjs
|
|
51595
|
+
//#region ../../node_modules/.pnpm/@xyo-network+boundwitness-model@6.0.8_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace_bfe819ee7b54b243cb346e073ab244fd/node_modules/@xyo-network/boundwitness-model/dist/neutral/index.mjs
|
|
51577
51596
|
var BoundWitnessSchema = asSchema("network.xyo.boundwitness", true);
|
|
51578
51597
|
var SignaturesMetaZod = /* @__PURE__ */ object$4({ $signatures: /* @__PURE__ */ array$2(/* @__PURE__ */ union$2([HexZod, /* @__PURE__ */ _null$1()])) });
|
|
51579
51598
|
var UnsignedSignaturesMetaZod = /* @__PURE__ */ object$4({ $signatures: /* @__PURE__ */ array$2(/* @__PURE__ */ _null$1()) });
|
|
@@ -51599,7 +51618,7 @@ var UnsignedBoundWitnessZod = /* @__PURE__ */ extend(BoundWitnessZod, UnsignedSi
|
|
|
51599
51618
|
UnsignedBoundWitnessZod.shape;
|
|
51600
51619
|
var isQueryBoundWitness = (x) => isBoundWitness(x) && x?.query !== void 0;
|
|
51601
51620
|
//#endregion
|
|
51602
|
-
//#region ../../node_modules/.pnpm/@xyo-network+boundwitness-builder@6.0.
|
|
51621
|
+
//#region ../../node_modules/.pnpm/@xyo-network+boundwitness-builder@6.0.8_@bitauth+libauth@3.0.0_@opentelemetry+api@1.9.1_75de14e34567261e7126982e233b61b4/node_modules/@xyo-network/boundwitness-builder/dist/neutral/index.mjs
|
|
51603
51622
|
var GeneratedBoundWitnessFields = [
|
|
51604
51623
|
"addresses",
|
|
51605
51624
|
"payload_hashes",
|
|
@@ -51798,7 +51817,7 @@ var QueryBoundWitnessBuilder = class extends BoundWitnessBuilder {
|
|
|
51798
51817
|
}
|
|
51799
51818
|
};
|
|
51800
51819
|
//#endregion
|
|
51801
|
-
//#region ../../node_modules/.pnpm/@xyo-network+boundwitness-validator@6.0.
|
|
51820
|
+
//#region ../../node_modules/.pnpm/@xyo-network+boundwitness-validator@6.0.8_@bitauth+libauth@3.0.0_@opentelemetry+api@1.9_ee8fd001b738fe062b2e55a2440cf00a/node_modules/@xyo-network/boundwitness-validator/dist/neutral/index.mjs
|
|
51802
51821
|
var boundWitnessArrayPropertyContains = (bw, prop, value) => {
|
|
51803
51822
|
return bw[prop]?.includes(value);
|
|
51804
51823
|
};
|
|
@@ -51888,7 +51907,7 @@ var BoundWitnessValidator = class _BoundWitnessValidator extends PayloadValidato
|
|
|
51888
51907
|
}
|
|
51889
51908
|
};
|
|
51890
51909
|
//#endregion
|
|
51891
|
-
//#region ../../node_modules/.pnpm/@xyo-network+boundwitness-wrapper@6.0.
|
|
51910
|
+
//#region ../../node_modules/.pnpm/@xyo-network+boundwitness-wrapper@6.0.8_@bitauth+libauth@3.0.0_@opentelemetry+api@1.9.1_133fe3ff85e1853992a10cde81bdcb4b/node_modules/@xyo-network/boundwitness-wrapper/dist/neutral/index.mjs
|
|
51892
51911
|
var isBoundWitnessWrapper = (value) => {
|
|
51893
51912
|
if (isPayloadWrapperBase(value)) return typeof value.payloadsDataHashMap === "function";
|
|
51894
51913
|
return false;
|
|
@@ -54811,7 +54830,7 @@ zero
|
|
|
54811
54830
|
zone
|
|
54812
54831
|
zoo`.split("\n"));
|
|
54813
54832
|
//#endregion
|
|
54814
|
-
//#region ../../node_modules/.pnpm/@xyo-network+wallet@6.0.
|
|
54833
|
+
//#region ../../node_modules/.pnpm/@xyo-network+wallet@6.0.8_@bitauth+libauth@3.0.0_@opentelemetry+api@1.9.1_@opentelemetr_144797494d453ffeb8ae7974f56f1ba4/node_modules/@xyo-network/wallet/dist/neutral/index.mjs
|
|
54815
54834
|
var __defProp$26 = Object.defineProperty;
|
|
54816
54835
|
var __getOwnPropDesc$25 = Object.getOwnPropertyDescriptor;
|
|
54817
54836
|
var __defNormalProp$23 = (obj, key, value) => key in obj ? __defProp$26(obj, key, {
|
|
@@ -60841,7 +60860,7 @@ var require_ajv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
60841
60860
|
});
|
|
60842
60861
|
}));
|
|
60843
60862
|
//#endregion
|
|
60844
|
-
//#region ../../node_modules/.pnpm/@xyo-network+module-model@6.0.
|
|
60863
|
+
//#region ../../node_modules/.pnpm/@xyo-network+module-model@6.0.3_f563ee6b342dfde5fdd35fc68a3ce7f2/node_modules/@xyo-network/module-model/dist/neutral/index.mjs
|
|
60845
60864
|
var ModuleConfigSchema = asSchema("network.xyo.module.config", true);
|
|
60846
60865
|
function creatableModule() {
|
|
60847
60866
|
return (constructor) => {};
|
|
@@ -61701,13 +61720,13 @@ var T = (u) => !!u && u === Math.floor(u) && u > 0 && isFinite(u), j = (u) => T(
|
|
|
61701
61720
|
}
|
|
61702
61721
|
};
|
|
61703
61722
|
//#endregion
|
|
61704
|
-
//#region ../../node_modules/.pnpm/@xyo-network+diviner-payload-model@6.0.
|
|
61723
|
+
//#region ../../node_modules/.pnpm/@xyo-network+diviner-payload-model@6.0.3_f563ee6b342dfde5fdd35fc68a3ce7f2/node_modules/@xyo-network/diviner-payload-model/dist/neutral/index.mjs
|
|
61705
61724
|
var PayloadDivinerSchema = asSchema("network.xyo.diviner.payload", true);
|
|
61706
61725
|
var PayloadDivinerConfigSchema = asSchema(`${PayloadDivinerSchema}.config`, true);
|
|
61707
61726
|
var isPayloadDivinerQueryPayload = isPayloadOfSchemaType(asSchema(`${PayloadDivinerSchema}.query`, true));
|
|
61708
61727
|
var asPayloadDivinerQueryPayload = AsObjectFactory.create(isPayloadDivinerQueryPayload);
|
|
61709
61728
|
//#endregion
|
|
61710
|
-
//#region ../../node_modules/.pnpm/@xyo-network+module-resolver@6.0.
|
|
61729
|
+
//#region ../../node_modules/.pnpm/@xyo-network+module-resolver@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/module-resolver/dist/neutral/index.mjs
|
|
61711
61730
|
var AbstractModuleResolver = class extends Base {
|
|
61712
61731
|
get priority() {
|
|
61713
61732
|
return this.params.priority ?? ObjectResolverPriority.Normal;
|
|
@@ -62152,7 +62171,7 @@ var CompositeModuleResolver = class _CompositeModuleResolver extends AbstractMod
|
|
|
62152
62171
|
}
|
|
62153
62172
|
};
|
|
62154
62173
|
//#endregion
|
|
62155
|
-
//#region ../../node_modules/.pnpm/@xyo-network+node-model@6.0.
|
|
62174
|
+
//#region ../../node_modules/.pnpm/@xyo-network+node-model@6.0.3_f563ee6b342dfde5fdd35fc68a3ce7f2/node_modules/@xyo-network/node-model/dist/neutral/index.mjs
|
|
62156
62175
|
var NodeAttachQuerySchema = asSchema("network.xyo.query.node.attach", true);
|
|
62157
62176
|
var NodeAttachedQuerySchema = asSchema("network.xyo.query.node.attached", true);
|
|
62158
62177
|
var NodeCertifyQuerySchema = asSchema("network.xyo.query.node.certify", true);
|
|
@@ -62175,7 +62194,7 @@ var asAttachableNodeInstance = AsObjectFactory.create(isAttachableNodeInstance);
|
|
|
62175
62194
|
var ChildCertificationSchema = asSchema("network.xyo.child.certification", true);
|
|
62176
62195
|
var NodeConfigSchema = asSchema("network.xyo.node.config", true);
|
|
62177
62196
|
//#endregion
|
|
62178
|
-
//#region ../../node_modules/.pnpm/@xyo-network+module-abstract@6.0.
|
|
62197
|
+
//#region ../../node_modules/.pnpm/@xyo-network+module-abstract@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/module-abstract/dist/neutral/index.mjs
|
|
62179
62198
|
var isDetermineAccountFromAccountParams = (params) => {
|
|
62180
62199
|
assertEx(isUndefined(params.accountPath), () => "accountPath may not be provided when account is provided");
|
|
62181
62200
|
return isDefined(params.account);
|
|
@@ -62929,7 +62948,7 @@ var LoggerModuleStatusReporter = class {
|
|
|
62929
62948
|
}
|
|
62930
62949
|
};
|
|
62931
62950
|
//#endregion
|
|
62932
|
-
//#region ../../node_modules/.pnpm/@xyo-network+archivist-abstract@6.0.
|
|
62951
|
+
//#region ../../node_modules/.pnpm/@xyo-network+archivist-abstract@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/archivist-abstract/dist/neutral/index.mjs
|
|
62933
62952
|
var StorageClassLabel = "network.xyo.storage.class";
|
|
62934
62953
|
var NOT_IMPLEMENTED = "Not implemented";
|
|
62935
62954
|
var AbstractArchivist = class _AbstractArchivist extends AbstractModuleInstance {
|
|
@@ -63403,7 +63422,7 @@ var AbstractArchivist = class _AbstractArchivist extends AbstractModuleInstance
|
|
|
63403
63422
|
}
|
|
63404
63423
|
};
|
|
63405
63424
|
//#endregion
|
|
63406
|
-
//#region ../../node_modules/.pnpm/@xyo-network+archivist-generic@6.0.
|
|
63425
|
+
//#region ../../node_modules/.pnpm/@xyo-network+archivist-generic@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/archivist-generic/dist/neutral/index.mjs
|
|
63407
63426
|
var __defProp$25 = Object.defineProperty;
|
|
63408
63427
|
var __getOwnPropDesc$24 = Object.getOwnPropertyDescriptor;
|
|
63409
63428
|
var __getProtoOf$7 = Object.getPrototypeOf;
|
|
@@ -63486,7 +63505,7 @@ __publicField$22(GenericArchivist, "labels", {
|
|
|
63486
63505
|
});
|
|
63487
63506
|
GenericArchivist = __decorateClass$24([creatableModule()], GenericArchivist);
|
|
63488
63507
|
//#endregion
|
|
63489
|
-
//#region ../../node_modules/.pnpm/@xyo-network+archivist-memory@6.0.
|
|
63508
|
+
//#region ../../node_modules/.pnpm/@xyo-network+archivist-memory@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/archivist-memory/dist/neutral/index.mjs
|
|
63490
63509
|
var __defProp$24 = Object.defineProperty;
|
|
63491
63510
|
var __getOwnPropDesc$23 = Object.getOwnPropertyDescriptor;
|
|
63492
63511
|
var __getProtoOf$6 = Object.getPrototypeOf;
|
|
@@ -63625,7 +63644,7 @@ __publicField$21(MemoryArchivist, "labels", {
|
|
|
63625
63644
|
});
|
|
63626
63645
|
MemoryArchivist = __decorateClass$23([creatableModule()], MemoryArchivist);
|
|
63627
63646
|
//#endregion
|
|
63628
|
-
//#region ../../node_modules/.pnpm/@xyo-network+module-wrapper@6.0.
|
|
63647
|
+
//#region ../../node_modules/.pnpm/@xyo-network+module-wrapper@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/module-wrapper/dist/neutral/index.mjs
|
|
63629
63648
|
var __defProp$23 = Object.defineProperty;
|
|
63630
63649
|
var __getOwnPropDesc$22 = Object.getOwnPropertyDescriptor;
|
|
63631
63650
|
var __defNormalProp$20 = (obj, key, value) => key in obj ? __defProp$23(obj, key, {
|
|
@@ -63984,7 +64003,7 @@ var ArchivistWrapper = class extends ModuleWrapper {
|
|
|
63984
64003
|
}
|
|
63985
64004
|
};
|
|
63986
64005
|
//#endregion
|
|
63987
|
-
//#region ../../node_modules/.pnpm/@xyo-network+bridge-model@6.0.
|
|
64006
|
+
//#region ../../node_modules/.pnpm/@xyo-network+bridge-model@6.0.3_f563ee6b342dfde5fdd35fc68a3ce7f2/node_modules/@xyo-network/bridge-model/dist/neutral/index.mjs
|
|
63988
64007
|
var BridgeConnectQuerySchema = asSchema("network.xyo.query.bridge.connect", true);
|
|
63989
64008
|
var BridgeDisconnectQuerySchema = asSchema("network.xyo.query.bridge.disconnect", true);
|
|
63990
64009
|
var BridgeExposeQuerySchema = asSchema("network.xyo.query.bridge.expose", true);
|
|
@@ -64000,7 +64019,7 @@ var isAttachableBridgeInstance = new IsObjectFactory().create({}, [isBridgeInsta
|
|
|
64000
64019
|
AsObjectFactory.create(isAttachableBridgeInstance);
|
|
64001
64020
|
var BridgeConfigSchema = asSchema("network.xyo.bridge.config", true);
|
|
64002
64021
|
//#endregion
|
|
64003
|
-
//#region ../../node_modules/.pnpm/@xyo-network+diviner-model@6.0.
|
|
64022
|
+
//#region ../../node_modules/.pnpm/@xyo-network+diviner-model@6.0.3_f563ee6b342dfde5fdd35fc68a3ce7f2/node_modules/@xyo-network/diviner-model/dist/neutral/index.mjs
|
|
64004
64023
|
var DivinerDivineQuerySchema = asSchema("network.xyo.query.diviner.divine", true);
|
|
64005
64024
|
var isDivinerInstance = new IsInstanceFactory().create({ divine: "function" }, [isModuleInstance]);
|
|
64006
64025
|
var isDivinerModule = new IsQueryableModuleFactory().create([DivinerDivineQuerySchema]);
|
|
@@ -64105,7 +64124,7 @@ var NodeWrapper = class extends ModuleWrapper {
|
|
|
64105
64124
|
}
|
|
64106
64125
|
};
|
|
64107
64126
|
//#endregion
|
|
64108
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sentinel-model@6.0.
|
|
64127
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sentinel-model@6.0.3_f563ee6b342dfde5fdd35fc68a3ce7f2/node_modules/@xyo-network/sentinel-model/dist/neutral/index.mjs
|
|
64109
64128
|
var SentinelReportQuerySchema = asSchema("network.xyo.query.sentinel.report", true);
|
|
64110
64129
|
var isSentinelInstance = new IsInstanceFactory().create({ report: "function" }, [isModuleInstance]);
|
|
64111
64130
|
var isSentinelModule = new IsQueryableModuleFactory().create([SentinelReportQuerySchema]);
|
|
@@ -64140,7 +64159,7 @@ var SentinelWrapper = class extends ModuleWrapper {
|
|
|
64140
64159
|
}
|
|
64141
64160
|
};
|
|
64142
64161
|
//#endregion
|
|
64143
|
-
//#region ../../node_modules/.pnpm/@xyo-network+witness-model@6.0.
|
|
64162
|
+
//#region ../../node_modules/.pnpm/@xyo-network+witness-model@6.0.3_f563ee6b342dfde5fdd35fc68a3ce7f2/node_modules/@xyo-network/witness-model/dist/neutral/index.mjs
|
|
64144
64163
|
var WitnessObserveQuerySchema = asSchema("network.xyo.query.witness.observe", true);
|
|
64145
64164
|
var isWitnessInstance = new IsInstanceFactory().create({ observe: "function" }, [isModuleInstance]);
|
|
64146
64165
|
var isWitnessModule = new IsQueryableModuleFactory().create([WitnessObserveQuerySchema]);
|
|
@@ -64165,7 +64184,7 @@ var WitnessWrapper = class extends ModuleWrapper {
|
|
|
64165
64184
|
}
|
|
64166
64185
|
};
|
|
64167
64186
|
//#endregion
|
|
64168
|
-
//#region ../../node_modules/.pnpm/@xyo-network+bridge-abstract@6.0.
|
|
64187
|
+
//#region ../../node_modules/.pnpm/@xyo-network+bridge-abstract@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/bridge-abstract/dist/neutral/index.mjs
|
|
64169
64188
|
var AbstractBridge = class _AbstractBridge extends AbstractModuleInstance {
|
|
64170
64189
|
static configSchemas = [...super.configSchemas, BridgeConfigSchema];
|
|
64171
64190
|
static defaultConfigSchema = BridgeConfigSchema;
|
|
@@ -64576,7 +64595,7 @@ var AbstractModuleProxy = class extends AbstractModuleInstance {
|
|
|
64576
64595
|
}
|
|
64577
64596
|
};
|
|
64578
64597
|
//#endregion
|
|
64579
|
-
//#region ../../node_modules/.pnpm/@xyo-network+diviner-abstract@6.0.
|
|
64598
|
+
//#region ../../node_modules/.pnpm/@xyo-network+diviner-abstract@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/diviner-abstract/dist/neutral/index.mjs
|
|
64580
64599
|
var delayedResolve = async (parent, id, closure, as = asModuleInstance, timeout = 3e4, logger) => {
|
|
64581
64600
|
const start = Date.now();
|
|
64582
64601
|
let result;
|
|
@@ -64688,7 +64707,7 @@ var AbstractDiviner = class _AbstractDiviner extends AbstractModuleInstance {
|
|
|
64688
64707
|
}
|
|
64689
64708
|
};
|
|
64690
64709
|
//#endregion
|
|
64691
|
-
//#region ../../node_modules/.pnpm/@xyo-network+node-abstract@6.0.
|
|
64710
|
+
//#region ../../node_modules/.pnpm/@xyo-network+node-abstract@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/node-abstract/dist/neutral/index.mjs
|
|
64692
64711
|
var AbstractNode = class _AbstractNode extends AbstractModuleInstance {
|
|
64693
64712
|
static configSchemas = [...super.configSchemas, NodeConfigSchema];
|
|
64694
64713
|
static defaultConfigSchema = NodeConfigSchema;
|
|
@@ -64891,7 +64910,7 @@ var NodeHelper = {
|
|
|
64891
64910
|
attachedPublicModules
|
|
64892
64911
|
};
|
|
64893
64912
|
//#endregion
|
|
64894
|
-
//#region ../../node_modules/.pnpm/@xyo-network+node-memory@6.0.
|
|
64913
|
+
//#region ../../node_modules/.pnpm/@xyo-network+node-memory@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/node-memory/dist/neutral/index.mjs
|
|
64895
64914
|
var __defProp$22 = Object.defineProperty;
|
|
64896
64915
|
var __getOwnPropDesc$21 = Object.getOwnPropertyDescriptor;
|
|
64897
64916
|
var __decorateClass$21 = (decorators, target, key, kind) => {
|
|
@@ -65112,7 +65131,7 @@ var MemoryNodeHelper = {
|
|
|
65112
65131
|
flatAttachToNewNode
|
|
65113
65132
|
};
|
|
65114
65133
|
//#endregion
|
|
65115
|
-
//#region ../../node_modules/.pnpm/@xyo-network+manifest-wrapper@6.0.
|
|
65134
|
+
//#region ../../node_modules/.pnpm/@xyo-network+manifest-wrapper@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/manifest-wrapper/dist/neutral/index.mjs
|
|
65116
65135
|
var ManifestWrapper = class extends PayloadWrapper {
|
|
65117
65136
|
locator;
|
|
65118
65137
|
logger;
|
|
@@ -65202,7 +65221,7 @@ var ManifestWrapper = class extends PayloadWrapper {
|
|
|
65202
65221
|
}
|
|
65203
65222
|
};
|
|
65204
65223
|
//#endregion
|
|
65205
|
-
//#region ../../node_modules/.pnpm/@xyo-network+archivist-view@6.0.
|
|
65224
|
+
//#region ../../node_modules/.pnpm/@xyo-network+archivist-view@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/archivist-view/dist/neutral/index.mjs
|
|
65206
65225
|
var __defProp$21 = Object.defineProperty;
|
|
65207
65226
|
var __getOwnPropDesc$20 = Object.getOwnPropertyDescriptor;
|
|
65208
65227
|
var __getProtoOf$5 = Object.getPrototypeOf;
|
|
@@ -65261,7 +65280,7 @@ __publicField$19(ViewArchivist, "labels", {
|
|
|
65261
65280
|
});
|
|
65262
65281
|
ViewArchivist = __decorateClass$20([labeledCreatableModule()], ViewArchivist);
|
|
65263
65282
|
//#endregion
|
|
65264
|
-
//#region ../../node_modules/.pnpm/@xyo-network+bridge-http@6.0.
|
|
65283
|
+
//#region ../../node_modules/.pnpm/@xyo-network+bridge-http@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/bridge-http/dist/neutral/index.mjs
|
|
65265
65284
|
var __defProp$20 = Object.defineProperty;
|
|
65266
65285
|
var __getOwnPropDesc$19 = Object.getOwnPropertyDescriptor;
|
|
65267
65286
|
var __getProtoOf$4 = Object.getPrototypeOf;
|
|
@@ -65534,7 +65553,7 @@ __publicField$18(HttpBridge, "fetchClient", new FetchJsonClient());
|
|
|
65534
65553
|
__publicField$18(HttpBridge, "maxFailureCacheSize", 1e3);
|
|
65535
65554
|
HttpBridge = __decorateClass$19([creatableModule()], HttpBridge);
|
|
65536
65555
|
//#endregion
|
|
65537
|
-
//#region ../../node_modules/.pnpm/@xyo-network+diviner-boundwitness@6.0.
|
|
65556
|
+
//#region ../../node_modules/.pnpm/@xyo-network+diviner-boundwitness@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/diviner-boundwitness/dist/neutral/memory.mjs
|
|
65538
65557
|
var applyBoundWitnessDivinerQueryPayload = (filter, payloads = []) => {
|
|
65539
65558
|
if (!filter) return [];
|
|
65540
65559
|
const { addresses, cursor, destination, limit, order = "desc", payload_hashes, payload_schemas, sourceQuery } = filter;
|
|
@@ -65573,7 +65592,7 @@ var MemoryBoundWitnessDiviner = class extends BoundWitnessDiviner {
|
|
|
65573
65592
|
}
|
|
65574
65593
|
};
|
|
65575
65594
|
//#endregion
|
|
65576
|
-
//#region ../../node_modules/.pnpm/@xyo-network+diviner-identity@6.0.
|
|
65595
|
+
//#region ../../node_modules/.pnpm/@xyo-network+diviner-identity@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/diviner-identity/dist/neutral/index.mjs
|
|
65577
65596
|
var __defProp$19 = Object.defineProperty;
|
|
65578
65597
|
var __getOwnPropDesc$18 = Object.getOwnPropertyDescriptor;
|
|
65579
65598
|
var __defNormalProp$17 = (obj, key, value) => key in obj ? __defProp$19(obj, key, {
|
|
@@ -65597,13 +65616,13 @@ var IdentityDiviner = class extends AbstractDiviner {
|
|
|
65597
65616
|
__publicField$17(IdentityDiviner, "targetSchema", asSchema("network.xyo.test", true));
|
|
65598
65617
|
IdentityDiviner = __decorateClass$18([creatableModule()], IdentityDiviner);
|
|
65599
65618
|
//#endregion
|
|
65600
|
-
//#region ../../node_modules/.pnpm/@xyo-network+diviner-payload-abstract@6.0.
|
|
65619
|
+
//#region ../../node_modules/.pnpm/@xyo-network+diviner-payload-abstract@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/diviner-payload-abstract/dist/neutral/index.mjs
|
|
65601
65620
|
var PayloadDiviner = class extends AbstractDiviner {
|
|
65602
65621
|
static configSchemas = [...super.configSchemas, PayloadDivinerConfigSchema];
|
|
65603
65622
|
static defaultConfigSchema = PayloadDivinerConfigSchema;
|
|
65604
65623
|
};
|
|
65605
65624
|
//#endregion
|
|
65606
|
-
//#region ../../node_modules/.pnpm/@xyo-network+diviner-payload-generic@6.0.
|
|
65625
|
+
//#region ../../node_modules/.pnpm/@xyo-network+diviner-payload-generic@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/diviner-payload-generic/dist/neutral/index.mjs
|
|
65607
65626
|
var __defProp$18 = Object.defineProperty;
|
|
65608
65627
|
var __getOwnPropDesc$17 = Object.getOwnPropertyDescriptor;
|
|
65609
65628
|
var __getProtoOf$3 = Object.getPrototypeOf;
|
|
@@ -65739,7 +65758,7 @@ __publicField$16(GenericPayloadDiviner, "configSchemas", [...__superGet$3(Generi
|
|
|
65739
65758
|
__publicField$16(GenericPayloadDiviner, "defaultConfigSchema", GenericPayloadDivinerConfigSchema);
|
|
65740
65759
|
GenericPayloadDiviner = __decorateClass$17([creatableModule()], GenericPayloadDiviner);
|
|
65741
65760
|
//#endregion
|
|
65742
|
-
//#region ../../node_modules/.pnpm/@xyo-network+node-view@6.0.
|
|
65761
|
+
//#region ../../node_modules/.pnpm/@xyo-network+node-view@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/node-view/dist/neutral/index.mjs
|
|
65743
65762
|
var __defProp$17 = Object.defineProperty;
|
|
65744
65763
|
var __getOwnPropDesc$16 = Object.getOwnPropertyDescriptor;
|
|
65745
65764
|
var __getProtoOf$2 = Object.getPrototypeOf;
|
|
@@ -65837,7 +65856,7 @@ __publicField$15(ViewNode, "defaultConfigSchema", ViewNodeConfigSchema);
|
|
|
65837
65856
|
__publicField$15(ViewNode, "labels", { ...ModuleLimitationViewLabel });
|
|
65838
65857
|
ViewNode = __decorateClass$16([creatableModule()], ViewNode);
|
|
65839
65858
|
//#endregion
|
|
65840
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sentinel-abstract@6.0.
|
|
65859
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sentinel-abstract@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/sentinel-abstract/dist/neutral/index.mjs
|
|
65841
65860
|
var AbstractSentinel = class _AbstractSentinel extends AbstractModuleInstance {
|
|
65842
65861
|
static configSchemas = [...super.configSchemas, SentinelConfigSchema];
|
|
65843
65862
|
static defaultConfigSchema = SentinelConfigSchema;
|
|
@@ -65943,7 +65962,7 @@ var AbstractSentinel = class _AbstractSentinel extends AbstractModuleInstance {
|
|
|
65943
65962
|
}
|
|
65944
65963
|
};
|
|
65945
65964
|
//#endregion
|
|
65946
|
-
//#region ../../node_modules/.pnpm/@xyo-network+sentinel-memory@6.0.
|
|
65965
|
+
//#region ../../node_modules/.pnpm/@xyo-network+sentinel-memory@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/sentinel-memory/dist/neutral/index.mjs
|
|
65947
65966
|
var SentinelIntervalAutomationWrapper = class extends PayloadWrapper {
|
|
65948
65967
|
constructor(payload) {
|
|
65949
65968
|
super(payload);
|
|
@@ -66279,7 +66298,7 @@ var AbstractWitness = class _AbstractWitness extends AbstractModuleInstance {
|
|
|
66279
66298
|
}
|
|
66280
66299
|
};
|
|
66281
66300
|
//#endregion
|
|
66282
|
-
//#region ../../node_modules/.pnpm/@xyo-network+witness-adhoc@6.0.
|
|
66301
|
+
//#region ../../node_modules/.pnpm/@xyo-network+witness-adhoc@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/witness-adhoc/dist/neutral/index.mjs
|
|
66283
66302
|
var AdhocWitnessConfigSchema = asSchema("network.xyo.witness.adhoc.config", true);
|
|
66284
66303
|
var AdhocWitness = class extends AbstractWitness {
|
|
66285
66304
|
static configSchemas = [...super.configSchemas, AdhocWitnessConfigSchema];
|
|
@@ -66292,7 +66311,7 @@ var AdhocWitness = class extends AbstractWitness {
|
|
|
66292
66311
|
}
|
|
66293
66312
|
};
|
|
66294
66313
|
//#endregion
|
|
66295
|
-
//#region ../../node_modules/.pnpm/@xyo-network+module-factory-locator@6.0.
|
|
66314
|
+
//#region ../../node_modules/.pnpm/@xyo-network+module-factory-locator@6.0.3_4298f5eac6f1f26f412a138645b7ca2f/node_modules/@xyo-network/module-factory-locator/dist/neutral/index.mjs
|
|
66296
66315
|
var standardCreatableModulesList = [
|
|
66297
66316
|
HttpBridge.factory(),
|
|
66298
66317
|
ViewArchivist.factory(),
|
|
@@ -68582,7 +68601,7 @@ config$1(en_default());
|
|
|
68582
68601
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/index.js
|
|
68583
68602
|
var zod_default = external_exports;
|
|
68584
68603
|
//#endregion
|
|
68585
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol-model@2.0.
|
|
68604
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol-model@2.0.9_4e7fa7794c2fba9de0019c27526e059f/node_modules/@xyo-network/xl1-protocol-model/dist/neutral/index.mjs
|
|
68586
68605
|
var BridgeDetailsDestinationFieldsZod = /* @__PURE__ */ object$4({
|
|
68587
68606
|
/**
|
|
68588
68607
|
* Destination network
|
|
@@ -69236,7 +69255,7 @@ var TransactionRejectionSchema = asSchema("network.xyo.transaction.rejection", t
|
|
|
69236
69255
|
var isTransactionRejection = isPayloadOfSchemaType(TransactionRejectionSchema);
|
|
69237
69256
|
AsObjectFactory.create(isTransactionRejection);
|
|
69238
69257
|
//#endregion
|
|
69239
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol-lib@2.0.
|
|
69258
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol-lib@2.0.9_4e7fa7794c2fba9de0019c27526e059f/node_modules/@xyo-network/xl1-protocol-lib/dist/neutral/index.mjs
|
|
69240
69259
|
function derivedReceiveAddress(address, scope) {
|
|
69241
69260
|
return toAddress(keccak256(new TextEncoder().encode(isDefined(scope) ? `${scope}|${address}` : address)).slice(-40), { prefix: false });
|
|
69242
69261
|
}
|
|
@@ -71392,7 +71411,7 @@ function getOriginalId(rawRequest) {
|
|
|
71392
71411
|
return [void 0, false];
|
|
71393
71412
|
}
|
|
71394
71413
|
//#endregion
|
|
71395
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol-sdk@2.0.
|
|
71414
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-protocol-sdk@2.0.9_350720122920e22d15c967ce4468a2be/node_modules/@xyo-network/xl1-protocol-sdk/dist/neutral/index.mjs
|
|
71396
71415
|
var __defProp$16 = Object.defineProperty;
|
|
71397
71416
|
var __getOwnPropDesc$15 = Object.getOwnPropertyDescriptor;
|
|
71398
71417
|
var __defNormalProp$14 = (obj, key, value) => key in obj ? __defProp$16(obj, key, {
|
|
@@ -75490,7 +75509,7 @@ function _v4(options, buf, offset) {
|
|
|
75490
75509
|
return unsafeStringify(rnds);
|
|
75491
75510
|
}
|
|
75492
75511
|
//#endregion
|
|
75493
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-rpc@2.0.
|
|
75512
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-rpc@2.0.9_4ac830f32c25a110251e682872f2ac80/node_modules/@xyo-network/xl1-rpc/dist/node/index-node.mjs
|
|
75494
75513
|
var __defProp$15 = Object.defineProperty;
|
|
75495
75514
|
var __getOwnPropDesc$14 = Object.getOwnPropertyDescriptor;
|
|
75496
75515
|
var __defNormalProp$13 = (obj, key, value) => key in obj ? __defProp$15(obj, key, {
|
|
@@ -77820,7 +77839,7 @@ var JsonRpcDataLakeViewer = class extends JsonRpcDataLakeViewerMethods {};
|
|
|
77820
77839
|
__publicField$13(JsonRpcDataLakeViewer, "dependencies", []);
|
|
77821
77840
|
JsonRpcDataLakeViewer = __decorateClass$14([creatableProvider()], JsonRpcDataLakeViewer);
|
|
77822
77841
|
//#endregion
|
|
77823
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-providers@2.0.
|
|
77842
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-providers@2.0.9_4ac830f32c25a110251e682872f2ac80/node_modules/@xyo-network/xl1-providers/dist/node/index.mjs
|
|
77824
77843
|
var __defProp$14 = Object.defineProperty;
|
|
77825
77844
|
var __getOwnPropDesc$13 = Object.getOwnPropertyDescriptor;
|
|
77826
77845
|
var __defNormalProp$12 = (obj, key, value) => key in obj ? __defProp$14(obj, key, {
|
|
@@ -78834,7 +78853,7 @@ __publicField$12(SimpleDeadLetterQueueViewer, "dependencies", []);
|
|
|
78834
78853
|
__publicField$12(SimpleDeadLetterQueueViewer, "monikers", [DeadLetterQueueViewerMoniker]);
|
|
78835
78854
|
SimpleDeadLetterQueueViewer = __decorateClass$13([creatableProvider()], SimpleDeadLetterQueueViewer);
|
|
78836
78855
|
//#endregion
|
|
78837
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-schema@2.0.
|
|
78856
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-schema@2.0.9_4e7fa7794c2fba9de0019c27526e059f/node_modules/@xyo-network/xl1-schema/dist/neutral/index.mjs
|
|
78838
78857
|
var BlockBoundWitnessJsonSchema = {
|
|
78839
78858
|
...boundWitnessJsonSchema,
|
|
78840
78859
|
$id: "https://schemas.xyo.network/2.0/block",
|
|
@@ -79092,7 +79111,7 @@ var TransferPayloadJsonSchema = {
|
|
|
79092
79111
|
};
|
|
79093
79112
|
var TransferPayloadJsonSchemaPayload = new PayloadBuilder({ schema: SchemaSchema }).fields({ definition: TransferPayloadJsonSchema }).build();
|
|
79094
79113
|
//#endregion
|
|
79095
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-validation@2.0.
|
|
79114
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-validation@2.0.9_4e7fa7794c2fba9de0019c27526e059f/node_modules/@xyo-network/xl1-validation/dist/neutral/index.mjs
|
|
79096
79115
|
var import_ajv = require_ajv();
|
|
79097
79116
|
function maxTransactionFeeCost(tx) {
|
|
79098
79117
|
const { base, gasLimit, priority } = tx.fees;
|
|
@@ -79284,7 +79303,7 @@ var validateTransaction = async (context, tx, additionalValidators) => {
|
|
|
79284
79303
|
}
|
|
79285
79304
|
};
|
|
79286
79305
|
//#endregion
|
|
79287
|
-
//#region ../../node_modules/.pnpm/@xyo-network+xl1-wrappers@2.0.
|
|
79306
|
+
//#region ../../node_modules/.pnpm/@xyo-network+xl1-wrappers@2.0.9_350720122920e22d15c967ce4468a2be/node_modules/@xyo-network/xl1-wrappers/dist/neutral/index.mjs
|
|
79288
79307
|
function parseHexOrBigInt(value) {
|
|
79289
79308
|
return AttoXL1(typeof value === "bigint" ? value : hexToBigInt(value));
|
|
79290
79309
|
}
|
|
@@ -101449,7 +101468,7 @@ function initTelemetry(params) {
|
|
|
101449
101468
|
};
|
|
101450
101469
|
}
|
|
101451
101470
|
//#endregion
|
|
101452
|
-
//#region ../../node_modules/.pnpm/@xylabs+mongo@6.0.7_mongodb@7.2.
|
|
101471
|
+
//#region ../../node_modules/.pnpm/@xylabs+mongo@6.0.7_mongodb@7.2.0_socks@2.8.9_/node_modules/@xylabs/mongo/dist/node/index.mjs
|
|
101453
101472
|
var MongoClientWrapper = class _MongoClientWrapper {
|
|
101454
101473
|
/** Global cache of wrapper instances keyed by connection URI. */
|
|
101455
101474
|
static clients = /* @__PURE__ */ new Map();
|
|
@@ -101783,14 +101802,14 @@ var canUseEvmProvider = (context) => {
|
|
|
101783
101802
|
return canUseInfuraProvider(context) || canUseJsonRpcProvider(context);
|
|
101784
101803
|
};
|
|
101785
101804
|
//#endregion
|
|
101786
|
-
//#region ../../node_modules/.pnpm/@xyo-network+archivist-model-mongodb@6.0.
|
|
101805
|
+
//#region ../../node_modules/.pnpm/@xyo-network+archivist-model-mongodb@6.0.3_e7719bdf72cb6838f5ea61a2a49f17f1/node_modules/@xyo-network/archivist-model-mongodb/dist/node/index.mjs
|
|
101787
101806
|
var MongoDBArchivistConfigSchema = asSchema("network.xyo.archivist.mongodb.config", true);
|
|
101788
101807
|
//#endregion
|
|
101789
|
-
//#region ../../node_modules/.pnpm/@xyo-network+module-model-mongodb@6.0.
|
|
101808
|
+
//#region ../../node_modules/.pnpm/@xyo-network+module-model-mongodb@6.0.3_e7719bdf72cb6838f5ea61a2a49f17f1/node_modules/@xyo-network/module-model-mongodb/dist/node/index.mjs
|
|
101790
101809
|
var MongoDBStorageClassLabels = { "network.xyo.storage.class": "mongodb" };
|
|
101791
101810
|
asSchema("network.xyo.module.mongodb.config", true);
|
|
101792
101811
|
//#endregion
|
|
101793
|
-
//#region ../../node_modules/.pnpm/@xyo-network+module-abstract-mongodb@6.0.
|
|
101812
|
+
//#region ../../node_modules/.pnpm/@xyo-network+module-abstract-mongodb@6.0.3_e7719bdf72cb6838f5ea61a2a49f17f1/node_modules/@xyo-network/module-abstract-mongodb/dist/node/index.mjs
|
|
101794
101813
|
var __defProp$8 = Object.defineProperty;
|
|
101795
101814
|
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
101796
101815
|
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, {
|
|
@@ -102048,7 +102067,7 @@ var ensureExistingCollectionIsCapped = async (sdk, max, docSize = 1024) => {
|
|
|
102048
102067
|
});
|
|
102049
102068
|
};
|
|
102050
102069
|
//#endregion
|
|
102051
|
-
//#region ../../node_modules/.pnpm/@xyo-network+payload-mongodb@6.0.
|
|
102070
|
+
//#region ../../node_modules/.pnpm/@xyo-network+payload-mongodb@6.0.3_f563ee6b342dfde5fdd35fc68a3ce7f2/node_modules/@xyo-network/payload-mongodb/dist/node/index.mjs
|
|
102052
102071
|
function payloadFromDbRepresentation(value) {
|
|
102053
102072
|
const clone = structuredClone(value);
|
|
102054
102073
|
const metaNormalized = {};
|
|
@@ -102076,7 +102095,7 @@ var toDbRepresentation = (value) => {
|
|
|
102076
102095
|
return isBoundWitness(value) ? boundWitnessToDbRepresentation(value) : payloadToDbRepresentation(value);
|
|
102077
102096
|
};
|
|
102078
102097
|
//#endregion
|
|
102079
|
-
//#region ../../node_modules/.pnpm/@xyo-network+archivist-mongodb@6.0.
|
|
102098
|
+
//#region ../../node_modules/.pnpm/@xyo-network+archivist-mongodb@6.0.3_005ea510b83cc0e2a46e8263109d7411/node_modules/@xyo-network/archivist-mongodb/dist/node/index.mjs
|
|
102080
102099
|
var validByType = async (payloads = []) => {
|
|
102081
102100
|
const results = [[], []];
|
|
102082
102101
|
await Promise.all(payloads.map(async (payload) => {
|
|
@@ -102290,7 +102309,7 @@ var MongoDBArchivistV2Deletable = class extends MongoDBArchivistV2 {
|
|
|
102290
102309
|
];
|
|
102291
102310
|
};
|
|
102292
102311
|
//#endregion
|
|
102293
|
-
//#region ../../node_modules/.pnpm/@xyo-network+archivist-lmdb@6.0.
|
|
102312
|
+
//#region ../../node_modules/.pnpm/@xyo-network+archivist-lmdb@6.0.3_61ea4bb3e32f5f7b9b0213d28586090a/node_modules/@xyo-network/archivist-lmdb/dist/browser/index.mjs
|
|
102294
102313
|
var __defProp$7 = Object.defineProperty;
|
|
102295
102314
|
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
102296
102315
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -205937,7 +205956,7 @@ function producerCommand(getConfiguration, getLocatorsFromConfig) {
|
|
|
205937
205956
|
};
|
|
205938
205957
|
}
|
|
205939
205958
|
//#endregion
|
|
205940
|
-
//#region ../../node_modules/.pnpm/@xyo-network+storage-model@8.0.0_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-
|
|
205959
|
+
//#region ../../node_modules/.pnpm/@xyo-network+storage-model@8.0.0_@opentelemetry+api@1.9.1_@opentelemetry+sdk-trace-base_d3b1949f705deb53b831c6ad84401dfd/node_modules/@xyo-network/storage-model/dist/neutral/index.mjs
|
|
205941
205960
|
var WalletKindMap = {
|
|
205942
205961
|
os: "os",
|
|
205943
205962
|
user: "user"
|
|
@@ -205945,7 +205964,7 @@ var WalletKindMap = {
|
|
|
205945
205964
|
/*! store2 - v2.14.4 - 2024-12-26
|
|
205946
205965
|
* Copyright (c) 2024 Nathan Bubna; Licensed MIT */
|
|
205947
205966
|
//#endregion
|
|
205948
|
-
//#region ../../node_modules/.pnpm/@xyo-network+bios@8.0.
|
|
205967
|
+
//#region ../../node_modules/.pnpm/@xyo-network+bios@8.0.0_65760e866f24715c869604757c4be0a0/node_modules/@xyo-network/bios/dist/neutral/index.mjs
|
|
205949
205968
|
var import_store2 = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
205950
205969
|
(function(window, define) {
|
|
205951
205970
|
var _ = {
|
|
@@ -212609,7 +212628,7 @@ function defaultScrapePortForActors(actors) {
|
|
|
212609
212628
|
var configuration;
|
|
212610
212629
|
var skipInsecureConfirm = false;
|
|
212611
212630
|
var dumpProviders = false;
|
|
212612
|
-
var version = isDefined("2.0.
|
|
212631
|
+
var version = isDefined("2.0.12") ? "2.0.12" : "unknown";
|
|
212613
212632
|
function getConfiguration() {
|
|
212614
212633
|
return configuration;
|
|
212615
212634
|
}
|