@wishknish/knishio-client-js 0.7.6 → 0.7.8
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/README.md +66 -0
- package/dist/client.cjs.js +36 -26
- package/dist/client.cjs.js.map +1 -1
- package/dist/client.es.mjs +583 -419
- package/dist/client.es.mjs.map +1 -1
- package/dist/client.iife.js +36 -26
- package/dist/client.iife.js.map +1 -1
- package/package.json +1 -1
- package/src/KnishIOClient.js +114 -3
- package/src/Molecule.js +35 -11
- package/src/index.js +4 -0
- package/src/libraries/urql/UrqlClientWrapper.js +9 -5
- package/src/query/QueryEmbeddingStatus.js +132 -0
- package/src/response/ResponseEmbeddingStatus.js +100 -0
package/dist/client.es.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var en = Object.defineProperty;
|
|
2
|
+
var tn = (o, e, t) => e in o ? en(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var Q = (o, e, t) => tn(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import L from "jssha";
|
|
5
|
-
import { gql as O, cacheExchange as
|
|
6
|
-
import { createClient as
|
|
7
|
-
import { pipe as
|
|
5
|
+
import { gql as O, cacheExchange as nn, fetchExchange as sn, subscriptionExchange as rn, createClient as on } from "@urql/core";
|
|
6
|
+
import { createClient as an } from "graphql-ws";
|
|
7
|
+
import { pipe as ln, map as cn, subscribe as un } from "wonka";
|
|
8
8
|
typeof self > "u" && (global.self = global);
|
|
9
|
-
class
|
|
9
|
+
class Wt {
|
|
10
10
|
/**
|
|
11
11
|
* Converts the given buffer to a string containing its hexadecimal representation.
|
|
12
12
|
*
|
|
@@ -85,7 +85,7 @@ function st(o = 256, e = "abcdef0123456789") {
|
|
|
85
85
|
let t = new Uint8Array(o);
|
|
86
86
|
return t = crypto.getRandomValues(t), t = t.map((n) => e.charCodeAt(n % e.length)), String.fromCharCode.apply(null, t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function hn(o, e, t, n, s) {
|
|
89
89
|
if (n = n || "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()-_=+[{]}\\|;:'\",<.>/?¿¡", s = s || n, e > n.length || t > s.length)
|
|
90
90
|
return console.warn("Strings::charsetBaseConvert() - Can't convert", o, "to base", t, "greater than symbol table length. src-table:", n.length, "dest-table:", s.length), !1;
|
|
91
91
|
let i = BigInt(0);
|
|
@@ -98,24 +98,24 @@ function cn(o, e, t, n, s) {
|
|
|
98
98
|
}
|
|
99
99
|
return a || "0";
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
101
|
+
function dn(o) {
|
|
102
|
+
return Wt.toHex(o, {});
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function pn(o) {
|
|
105
|
+
return Wt.toUint8Array(o);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
const e =
|
|
107
|
+
function fn(o) {
|
|
108
|
+
const e = pn(o);
|
|
109
109
|
return btoa(String.fromCharCode.apply(null, e));
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function mn(o) {
|
|
112
112
|
const e = new Uint8Array(atob(o).split("").map((t) => t.charCodeAt(0)));
|
|
113
|
-
return
|
|
113
|
+
return dn(e);
|
|
114
114
|
}
|
|
115
115
|
function Ve(o) {
|
|
116
116
|
return /^[A-F0-9]+$/i.test(o);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function yn(o) {
|
|
119
119
|
return (typeof o == "number" || typeof o == "string" && o.trim() !== "") && !isNaN(o);
|
|
120
120
|
}
|
|
121
121
|
let pe = class {
|
|
@@ -155,10 +155,10 @@ let pe = class {
|
|
|
155
155
|
return t;
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
-
function
|
|
159
|
-
return o.length ? [o.slice(0, e)].concat(
|
|
158
|
+
function gn(o, e) {
|
|
159
|
+
return o.length ? [o.slice(0, e)].concat(gn(o.slice(e), e)) : [];
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function bn(o, e) {
|
|
162
162
|
let t, n, s;
|
|
163
163
|
const r = [Array, Date, Number, String, Boolean], i = Object.prototype.toString;
|
|
164
164
|
for (e = e || [], t = 0; t < e.length; t += 2)
|
|
@@ -168,11 +168,11 @@ function yn(o, e) {
|
|
|
168
168
|
i.call(o) === i.call(s = new r[t](o)) && (n = t ? s : []);
|
|
169
169
|
e.push(o, n);
|
|
170
170
|
for (t in o)
|
|
171
|
-
e.hasOwnProperty.call(o, t) && (n[t] =
|
|
171
|
+
e.hasOwnProperty.call(o, t) && (n[t] = bn(o[t], e));
|
|
172
172
|
}
|
|
173
173
|
return n || o;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function wn(...o) {
|
|
176
176
|
return [].concat(...o.map((e, t) => {
|
|
177
177
|
const n = o.slice(0);
|
|
178
178
|
n.splice(t, 1);
|
|
@@ -218,7 +218,7 @@ class rt {
|
|
|
218
218
|
})) {
|
|
219
219
|
const i = r.map((a) => a.key);
|
|
220
220
|
this.policy[s] || (this.policy[s] = {});
|
|
221
|
-
for (const a of
|
|
221
|
+
for (const a of wn(e, i))
|
|
222
222
|
this.policy[s][a] || (this.policy[s][a] = s === "write" && !["characters", "pubkey"].includes(a) ? ["self"] : ["all"]);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
@@ -419,7 +419,7 @@ class oe {
|
|
|
419
419
|
return oe.structure(this);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
class
|
|
422
|
+
class kn extends oe {
|
|
423
423
|
constructor({
|
|
424
424
|
position: e = null,
|
|
425
425
|
walletAddress: t = null,
|
|
@@ -437,8 +437,8 @@ class bn extends oe {
|
|
|
437
437
|
super(), this.position = e, this.walletAddress = t, this.isotope = n, this.token = s, this.value = r, this.batchId = i, this.metaType = a, this.metaId = c, this.meta = u, this.index = l, this.createdAt = h, this.version = p;
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const
|
|
441
|
-
4:
|
|
440
|
+
const qe = {
|
|
441
|
+
4: kn
|
|
442
442
|
};
|
|
443
443
|
class g {
|
|
444
444
|
/**
|
|
@@ -471,7 +471,7 @@ class g {
|
|
|
471
471
|
index: h = null,
|
|
472
472
|
version: p = null
|
|
473
473
|
}) {
|
|
474
|
-
this.position = e, this.walletAddress = t, this.isotope = n, this.token = s, this.value = r !== null ? String(r) : null, this.batchId = i, this.metaType = a, this.metaId = c, this.meta = u ? pe.normalizeMeta(u) : [], this.index = h, this.otsFragment = l, this.createdAt = String(+/* @__PURE__ */ new Date()), p !== null && Object.prototype.hasOwnProperty.call(
|
|
474
|
+
this.position = e, this.walletAddress = t, this.isotope = n, this.token = s, this.value = r !== null ? String(r) : null, this.batchId = i, this.metaType = a, this.metaId = c, this.meta = u ? pe.normalizeMeta(u) : [], this.index = h, this.otsFragment = l, this.createdAt = String(+/* @__PURE__ */ new Date()), p !== null && Object.prototype.hasOwnProperty.call(qe, p) && (this.version = String(p));
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
477
|
*
|
|
@@ -650,8 +650,8 @@ class g {
|
|
|
650
650
|
if (!(r instanceof g))
|
|
651
651
|
throw new ae();
|
|
652
652
|
return r;
|
|
653
|
-
}), s.every((r) => r.version && Object.prototype.hasOwnProperty.call(
|
|
654
|
-
n.update(JSON.stringify(s.map((r) =>
|
|
653
|
+
}), s.every((r) => r.version && Object.prototype.hasOwnProperty.call(qe, r.version)))
|
|
654
|
+
n.update(JSON.stringify(s.map((r) => qe[r.version].create(r).view())));
|
|
655
655
|
else {
|
|
656
656
|
const r = String(e.length);
|
|
657
657
|
let i = [];
|
|
@@ -666,7 +666,7 @@ class g {
|
|
|
666
666
|
case "array":
|
|
667
667
|
return n.getHash("ARRAYBUFFER", { outputLen: 256 });
|
|
668
668
|
default:
|
|
669
|
-
return
|
|
669
|
+
return hn(n.getHash("HEX", { outputLen: 256 }), 16, 17, "0123456789abcdef", "0123456789abcdefg").padStart(64, "0");
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
static jsonSerialization(e, t) {
|
|
@@ -808,31 +808,31 @@ class ze extends x {
|
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
const Ce = /* @__PURE__ */ BigInt(2 ** 32 - 1), ct = /* @__PURE__ */ BigInt(32);
|
|
811
|
-
function
|
|
811
|
+
function Sn(o, e = !1) {
|
|
812
812
|
return e ? { h: Number(o & Ce), l: Number(o >> ct & Ce) } : { h: Number(o >> ct & Ce) | 0, l: Number(o & Ce) | 0 };
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function _n(o, e = !1) {
|
|
815
815
|
const t = o.length;
|
|
816
816
|
let n = new Uint32Array(t), s = new Uint32Array(t);
|
|
817
817
|
for (let r = 0; r < t; r++) {
|
|
818
|
-
const { h: i, l: a } =
|
|
818
|
+
const { h: i, l: a } = Sn(o[r], e);
|
|
819
819
|
[n[r], s[r]] = [i, a];
|
|
820
820
|
}
|
|
821
821
|
return [n, s];
|
|
822
822
|
}
|
|
823
|
-
const
|
|
823
|
+
const $n = (o, e, t) => o << t | e >>> 32 - t, An = (o, e, t) => e << t | o >>> 32 - t, vn = (o, e, t) => e << t - 32 | o >>> 64 - t, xn = (o, e, t) => o << t - 32 | e >>> 64 - t;
|
|
824
824
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
825
|
-
function
|
|
825
|
+
function In(o) {
|
|
826
826
|
return o instanceof Uint8Array || ArrayBuffer.isView(o) && o.constructor.name === "Uint8Array";
|
|
827
827
|
}
|
|
828
828
|
function ut(o, e = "") {
|
|
829
829
|
if (!Number.isSafeInteger(o) || o < 0) {
|
|
830
830
|
const t = e && `"${e}" `;
|
|
831
|
-
throw new Error(`${t}expected integer
|
|
831
|
+
throw new Error(`${t}expected integer >= 0, got ${o}`);
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
834
|
function D(o, e, t = "") {
|
|
835
|
-
const n =
|
|
835
|
+
const n = In(o), s = o == null ? void 0 : o.length, r = e !== void 0;
|
|
836
836
|
if (!n || r && s !== e) {
|
|
837
837
|
const i = t && `"${t}" `, a = r ? ` of length ${e}` : "", c = n ? `length=${s}` : `type=${typeof o}`;
|
|
838
838
|
throw new Error(i + "expected Uint8Array" + a + ", got " + c);
|
|
@@ -845,34 +845,34 @@ function ht(o, e = !0) {
|
|
|
845
845
|
if (e && o.finished)
|
|
846
846
|
throw new Error("Hash#digest() has already been called");
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function Tn(o, e) {
|
|
849
849
|
D(o, void 0, "digestInto() output");
|
|
850
850
|
const t = e.outputLen;
|
|
851
851
|
if (o.length < t)
|
|
852
852
|
throw new Error('"digestInto() output" expected to be of length >=' + t);
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function qt(o) {
|
|
855
855
|
return new Uint32Array(o.buffer, o.byteOffset, Math.floor(o.byteLength / 4));
|
|
856
856
|
}
|
|
857
857
|
function Ut(...o) {
|
|
858
858
|
for (let e = 0; e < o.length; e++)
|
|
859
859
|
o[e].fill(0);
|
|
860
860
|
}
|
|
861
|
-
const
|
|
862
|
-
function
|
|
861
|
+
const Mn = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
862
|
+
function Cn(o) {
|
|
863
863
|
return o << 24 & 4278190080 | o << 8 & 16711680 | o >>> 8 & 65280 | o >>> 24 & 255;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function En(o) {
|
|
866
866
|
for (let e = 0; e < o.length; e++)
|
|
867
|
-
o[e] =
|
|
867
|
+
o[e] = Cn(o[e]);
|
|
868
868
|
return o;
|
|
869
869
|
}
|
|
870
|
-
const dt =
|
|
871
|
-
function
|
|
870
|
+
const dt = Mn ? (o) => o : En;
|
|
871
|
+
function Bt(o, e = {}) {
|
|
872
872
|
const t = (s, r) => o(r).update(s).digest(), n = o(void 0);
|
|
873
873
|
return t.outputLen = n.outputLen, t.blockLen = n.blockLen, t.create = (s) => o(s), Object.assign(t, e), Object.freeze(t);
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function On(o = 32) {
|
|
876
876
|
const e = typeof globalThis == "object" ? globalThis.crypto : null;
|
|
877
877
|
if (typeof (e == null ? void 0 : e.getRandomValues) != "function")
|
|
878
878
|
throw new Error("crypto.getRandomValues must be defined");
|
|
@@ -880,16 +880,16 @@ function Cn(o = 32) {
|
|
|
880
880
|
}
|
|
881
881
|
const Ne = (o) => ({
|
|
882
882
|
oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, o])
|
|
883
|
-
}),
|
|
883
|
+
}), Rn = BigInt(0), ge = BigInt(1), Wn = BigInt(2), qn = BigInt(7), Un = BigInt(256), Bn = BigInt(113), Ht = [], Pt = [], Kt = [];
|
|
884
884
|
for (let o = 0, e = ge, t = 1, n = 0; o < 24; o++) {
|
|
885
|
-
[t, n] = [n, (2 * t + 3 * n) % 5],
|
|
886
|
-
let s =
|
|
885
|
+
[t, n] = [n, (2 * t + 3 * n) % 5], Ht.push(2 * (5 * n + t)), Pt.push((o + 1) * (o + 2) / 2 % 64);
|
|
886
|
+
let s = Rn;
|
|
887
887
|
for (let r = 0; r < 7; r++)
|
|
888
|
-
e = (e << ge ^ (e >>
|
|
889
|
-
|
|
888
|
+
e = (e << ge ^ (e >> qn) * Bn) % Un, e & Wn && (s ^= ge << (ge << BigInt(r)) - ge);
|
|
889
|
+
Kt.push(s);
|
|
890
890
|
}
|
|
891
|
-
const
|
|
892
|
-
function
|
|
891
|
+
const Nt = _n(Kt, !0), Hn = Nt[0], Pn = Nt[1], pt = (o, e, t) => t > 32 ? vn(o, e, t) : $n(o, e, t), ft = (o, e, t) => t > 32 ? xn(o, e, t) : An(o, e, t);
|
|
892
|
+
function Kn(o, e = 24) {
|
|
893
893
|
const t = new Uint32Array(10);
|
|
894
894
|
for (let n = 24 - e; n < 24; n++) {
|
|
895
895
|
for (let i = 0; i < 10; i++)
|
|
@@ -901,7 +901,7 @@ function Hn(o, e = 24) {
|
|
|
901
901
|
}
|
|
902
902
|
let s = o[2], r = o[3];
|
|
903
903
|
for (let i = 0; i < 24; i++) {
|
|
904
|
-
const a =
|
|
904
|
+
const a = Pt[i], c = pt(s, r, a), u = ft(s, r, a), l = Ht[i];
|
|
905
905
|
s = o[l], r = o[l + 1], o[l] = c, o[l + 1] = u;
|
|
906
906
|
}
|
|
907
907
|
for (let i = 0; i < 50; i += 10) {
|
|
@@ -910,33 +910,33 @@ function Hn(o, e = 24) {
|
|
|
910
910
|
for (let a = 0; a < 10; a++)
|
|
911
911
|
o[i + a] ^= ~t[(a + 2) % 10] & t[(a + 4) % 10];
|
|
912
912
|
}
|
|
913
|
-
o[0] ^=
|
|
913
|
+
o[0] ^= Hn[n], o[1] ^= Pn[n];
|
|
914
914
|
}
|
|
915
915
|
Ut(t);
|
|
916
916
|
}
|
|
917
917
|
class Fe {
|
|
918
918
|
// NOTE: we accept arguments in bytes instead of bits here.
|
|
919
919
|
constructor(e, t, n, s = !1, r = 24) {
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
920
|
+
Q(this, "state");
|
|
921
|
+
Q(this, "pos", 0);
|
|
922
|
+
Q(this, "posOut", 0);
|
|
923
|
+
Q(this, "finished", !1);
|
|
924
|
+
Q(this, "state32");
|
|
925
|
+
Q(this, "destroyed", !1);
|
|
926
|
+
Q(this, "blockLen");
|
|
927
|
+
Q(this, "suffix");
|
|
928
|
+
Q(this, "outputLen");
|
|
929
|
+
Q(this, "enableXOF", !1);
|
|
930
|
+
Q(this, "rounds");
|
|
931
931
|
if (this.blockLen = e, this.suffix = t, this.outputLen = n, this.enableXOF = s, this.rounds = r, ut(n, "outputLen"), !(0 < e && e < 200))
|
|
932
932
|
throw new Error("only keccak-f1600 function is supported");
|
|
933
|
-
this.state = new Uint8Array(200), this.state32 =
|
|
933
|
+
this.state = new Uint8Array(200), this.state32 = qt(this.state);
|
|
934
934
|
}
|
|
935
935
|
clone() {
|
|
936
936
|
return this._cloneInto();
|
|
937
937
|
}
|
|
938
938
|
keccak() {
|
|
939
|
-
dt(this.state32),
|
|
939
|
+
dt(this.state32), Kn(this.state32, this.rounds), dt(this.state32), this.posOut = 0, this.pos = 0;
|
|
940
940
|
}
|
|
941
941
|
update(e) {
|
|
942
942
|
ht(this), D(e);
|
|
@@ -975,7 +975,7 @@ class Fe {
|
|
|
975
975
|
return ut(e), this.xofInto(new Uint8Array(e));
|
|
976
976
|
}
|
|
977
977
|
digestInto(e) {
|
|
978
|
-
if (
|
|
978
|
+
if (Tn(e, this), this.finished)
|
|
979
979
|
throw new Error("digest() was already called");
|
|
980
980
|
return this.writeInto(e), this.destroy(), e;
|
|
981
981
|
}
|
|
@@ -990,17 +990,17 @@ class Fe {
|
|
|
990
990
|
return e || (e = new Fe(t, n, s, i, r)), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = r, e.suffix = n, e.outputLen = s, e.enableXOF = i, e.destroyed = this.destroyed, e;
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
|
-
const
|
|
993
|
+
const Ft = (o, e, t, n = {}) => Bt(() => new Fe(e, o, t), n), Nn = /* @__PURE__ */ Ft(
|
|
994
994
|
6,
|
|
995
995
|
136,
|
|
996
996
|
32,
|
|
997
997
|
/* @__PURE__ */ Ne(8)
|
|
998
|
-
),
|
|
998
|
+
), Fn = /* @__PURE__ */ Ft(
|
|
999
999
|
6,
|
|
1000
1000
|
72,
|
|
1001
1001
|
64,
|
|
1002
1002
|
/* @__PURE__ */ Ne(10)
|
|
1003
|
-
),
|
|
1003
|
+
), Lt = (o, e, t, n = {}) => Bt((s = {}) => new Fe(e, o, s.dkLen === void 0 ? t : s.dkLen, !0), n), Ln = /* @__PURE__ */ Lt(31, 168, 16, /* @__PURE__ */ Ne(11)), Qt = /* @__PURE__ */ Lt(31, 136, 32, /* @__PURE__ */ Ne(12));
|
|
1004
1004
|
function it(o) {
|
|
1005
1005
|
if (!Number.isSafeInteger(o) || o < 0 || o > 4294967295)
|
|
1006
1006
|
throw new Error("wrong u32 integer:" + o);
|
|
@@ -1009,23 +1009,23 @@ function it(o) {
|
|
|
1009
1009
|
function jt(o) {
|
|
1010
1010
|
return it(o), (o & o - 1) === 0 && o !== 0;
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function Dt(o, e) {
|
|
1013
1013
|
it(o);
|
|
1014
1014
|
let t = 0;
|
|
1015
1015
|
for (let n = 0; n < e; n++, o >>>= 1)
|
|
1016
1016
|
t = t << 1 | o & 1;
|
|
1017
1017
|
return t;
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function Vt(o) {
|
|
1020
1020
|
return it(o), 31 - Math.clz32(o);
|
|
1021
1021
|
}
|
|
1022
1022
|
function mt(o) {
|
|
1023
1023
|
const e = o.length;
|
|
1024
1024
|
if (e < 2 || !jt(e))
|
|
1025
1025
|
throw new Error("n must be a power of 2 and greater than 1. Got " + e);
|
|
1026
|
-
const t =
|
|
1026
|
+
const t = Vt(e);
|
|
1027
1027
|
for (let n = 0; n < e; n++) {
|
|
1028
|
-
const s =
|
|
1028
|
+
const s = Dt(n, t);
|
|
1029
1029
|
if (n < s) {
|
|
1030
1030
|
const r = o[n];
|
|
1031
1031
|
o[n] = o[s], o[s] = r;
|
|
@@ -1034,7 +1034,7 @@ function mt(o) {
|
|
|
1034
1034
|
return o;
|
|
1035
1035
|
}
|
|
1036
1036
|
const yt = (o, e) => {
|
|
1037
|
-
const { N: t, roots: n, dit: s, invertButterflies: r = !1, skipStages: i = 0, brp: a = !0 } = e, c =
|
|
1037
|
+
const { N: t, roots: n, dit: s, invertButterflies: r = !1, skipStages: i = 0, brp: a = !0 } = e, c = Vt(t);
|
|
1038
1038
|
if (!jt(t))
|
|
1039
1039
|
throw new Error("FFT: Polynomial size should be power of two");
|
|
1040
1040
|
const u = s !== r;
|
|
@@ -1048,8 +1048,8 @@ const yt = (o, e) => {
|
|
|
1048
1048
|
for (let y = 0, w = p++; y < A; y++) {
|
|
1049
1049
|
const C = r ? s ? t - w : w : y * M, k = f + y, $ = f + y + A, v = n[C], I = l[$], S = l[k];
|
|
1050
1050
|
if (u) {
|
|
1051
|
-
const
|
|
1052
|
-
l[k] = o.add(S,
|
|
1051
|
+
const U = o.mul(I, v);
|
|
1052
|
+
l[k] = o.add(S, U), l[$] = o.sub(S, U);
|
|
1053
1053
|
} else r ? (l[k] = o.add(I, S), l[$] = o.mul(o.sub(I, S), v)) : (l[k] = o.add(S, I), l[$] = o.mul(o.sub(S, I), v));
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
@@ -1057,7 +1057,7 @@ const yt = (o, e) => {
|
|
|
1057
1057
|
};
|
|
1058
1058
|
};
|
|
1059
1059
|
/*! noble-post-quantum - MIT License (c) 2024 Paul Miller (paulmillr.com) */
|
|
1060
|
-
const gt =
|
|
1060
|
+
const gt = On;
|
|
1061
1061
|
function Je(o, e) {
|
|
1062
1062
|
if (o.length !== e.length)
|
|
1063
1063
|
return !1;
|
|
@@ -1066,10 +1066,10 @@ function Je(o, e) {
|
|
|
1066
1066
|
t |= o[n] ^ e[n];
|
|
1067
1067
|
return t === 0;
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function Qn(o) {
|
|
1070
1070
|
return Uint8Array.from(o);
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function Ue(o, ...e) {
|
|
1073
1073
|
const t = (s) => typeof s == "number" ? s : s.bytesLen, n = e.reduce((s, r) => s + t(r), 0);
|
|
1074
1074
|
return {
|
|
1075
1075
|
bytesLen: n,
|
|
@@ -1127,7 +1127,7 @@ function bt(o) {
|
|
|
1127
1127
|
return (1 << o) - 1;
|
|
1128
1128
|
}
|
|
1129
1129
|
/*! noble-post-quantum - MIT License (c) 2024 Paul Miller (paulmillr.com) */
|
|
1130
|
-
const
|
|
1130
|
+
const jn = (o) => {
|
|
1131
1131
|
const { newPoly: e, N: t, Q: n, F: s, ROOT_OF_UNITY: r, brvBits: i } = o, a = (f, y = n) => {
|
|
1132
1132
|
const w = f % y | 0;
|
|
1133
1133
|
return (w >= 0 ? w | 0 : y + w | 0) | 0;
|
|
@@ -1138,7 +1138,7 @@ const Ln = (o) => {
|
|
|
1138
1138
|
function u() {
|
|
1139
1139
|
const f = e(t);
|
|
1140
1140
|
for (let y = 0; y < t; y++) {
|
|
1141
|
-
const w =
|
|
1141
|
+
const w = Dt(y, i), C = BigInt(r) ** BigInt(w) % BigInt(n);
|
|
1142
1142
|
f[y] = Number(C) | 0;
|
|
1143
1143
|
}
|
|
1144
1144
|
return f;
|
|
@@ -1171,21 +1171,21 @@ const Ln = (o) => {
|
|
|
1171
1171
|
bytesLen: C,
|
|
1172
1172
|
encode: (k) => {
|
|
1173
1173
|
const $ = new Uint8Array(C);
|
|
1174
|
-
for (let v = 0, I = 0, S = 0,
|
|
1174
|
+
for (let v = 0, I = 0, S = 0, U = 0; v < k.length; v++)
|
|
1175
1175
|
for (I |= (y.encode(k[v]) & w) << S, S += f; S >= 8; S -= 8, I >>= 8)
|
|
1176
|
-
$[
|
|
1176
|
+
$[U++] = I & bt(S);
|
|
1177
1177
|
return $;
|
|
1178
1178
|
},
|
|
1179
1179
|
decode: (k) => {
|
|
1180
1180
|
const $ = e(t);
|
|
1181
|
-
for (let v = 0, I = 0, S = 0,
|
|
1181
|
+
for (let v = 0, I = 0, S = 0, U = 0; v < k.length; v++)
|
|
1182
1182
|
for (I |= k[v] << S, S += 8; S >= f; S -= f, I >>= f)
|
|
1183
|
-
$[
|
|
1183
|
+
$[U++] = y.decode(I & w);
|
|
1184
1184
|
return $;
|
|
1185
1185
|
}
|
|
1186
1186
|
};
|
|
1187
1187
|
} };
|
|
1188
|
-
},
|
|
1188
|
+
}, Dn = (o) => (e, t) => {
|
|
1189
1189
|
t || (t = o.blockLen);
|
|
1190
1190
|
const n = new Uint8Array(e.length + 2);
|
|
1191
1191
|
n.set(e);
|
|
@@ -1198,18 +1198,18 @@ const Ln = (o) => {
|
|
|
1198
1198
|
i.destroy(), G(r, n);
|
|
1199
1199
|
}
|
|
1200
1200
|
};
|
|
1201
|
-
},
|
|
1201
|
+
}, Vn = /* @__PURE__ */ Dn(Ln);
|
|
1202
1202
|
/*! noble-post-quantum - MIT License (c) 2024 Paul Miller (paulmillr.com) */
|
|
1203
|
-
const F = 256, le = 3329,
|
|
1203
|
+
const F = 256, le = 3329, zn = 3303, Jn = 17, { mod: $e, nttZetas: Gn, NTT: ne, bitsCoder: Xn } = jn({
|
|
1204
1204
|
N: F,
|
|
1205
1205
|
Q: le,
|
|
1206
|
-
F:
|
|
1207
|
-
ROOT_OF_UNITY:
|
|
1206
|
+
F: zn,
|
|
1207
|
+
ROOT_OF_UNITY: Jn,
|
|
1208
1208
|
newPoly: (o) => new Uint16Array(o),
|
|
1209
1209
|
brvBits: 7
|
|
1210
|
-
}),
|
|
1210
|
+
}), Zn = {
|
|
1211
1211
|
768: { N: F, Q: le, K: 3, ETA1: 2, ETA2: 2, du: 10, dv: 4, RBGstrength: 192 }
|
|
1212
|
-
},
|
|
1212
|
+
}, Yn = (o) => {
|
|
1213
1213
|
if (o >= 12)
|
|
1214
1214
|
return { encode: (t) => t, decode: (t) => t };
|
|
1215
1215
|
const e = 2 ** (o - 1);
|
|
@@ -1219,24 +1219,24 @@ const F = 256, le = 3329, Dn = 3303, Vn = 17, { mod: $e, nttZetas: zn, NTT: ne,
|
|
|
1219
1219
|
// const decompress = (i: number) => round((Q / 2 ** d) * i);
|
|
1220
1220
|
decode: (t) => t * le + e >>> o
|
|
1221
1221
|
};
|
|
1222
|
-
}, be = (o) =>
|
|
1222
|
+
}, be = (o) => Xn(o, Yn(o));
|
|
1223
1223
|
function se(o, e) {
|
|
1224
1224
|
for (let t = 0; t < F; t++)
|
|
1225
1225
|
o[t] = $e(o[t] + e[t]);
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function es(o, e) {
|
|
1228
1228
|
for (let t = 0; t < F; t++)
|
|
1229
1229
|
o[t] = $e(o[t] - e[t]);
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function ts(o, e, t, n, s) {
|
|
1232
1232
|
const r = $e(e * n * s + o * t), i = $e(o * n + e * t);
|
|
1233
1233
|
return { c0: r, c1: i };
|
|
1234
1234
|
}
|
|
1235
1235
|
function Ee(o, e) {
|
|
1236
1236
|
for (let t = 0; t < F / 2; t++) {
|
|
1237
|
-
let n =
|
|
1237
|
+
let n = Gn[64 + (t >> 1)];
|
|
1238
1238
|
t & 1 && (n = -n);
|
|
1239
|
-
const { c0: s, c1: r } =
|
|
1239
|
+
const { c0: s, c1: r } = ts(o[2 * t + 0], o[2 * t + 1], e[2 * t + 0], e[2 * t + 1], n);
|
|
1240
1240
|
o[2 * t + 0] = s, o[2 * t + 1] = r;
|
|
1241
1241
|
}
|
|
1242
1242
|
return o;
|
|
@@ -1255,7 +1255,7 @@ function wt(o) {
|
|
|
1255
1255
|
return e;
|
|
1256
1256
|
}
|
|
1257
1257
|
function we(o, e, t, n) {
|
|
1258
|
-
const s = o(n * F / 4, e, t), r = new Uint16Array(F), i =
|
|
1258
|
+
const s = o(n * F / 4, e, t), r = new Uint16Array(F), i = qt(s);
|
|
1259
1259
|
let a = 0;
|
|
1260
1260
|
for (let c = 0, u = 0, l = 0, h = 0; c < i.length; c++) {
|
|
1261
1261
|
let p = i[c];
|
|
@@ -1266,8 +1266,8 @@ function we(o, e, t, n) {
|
|
|
1266
1266
|
throw new Error(`sampleCBD: leftover bits: ${a}`);
|
|
1267
1267
|
return r;
|
|
1268
1268
|
}
|
|
1269
|
-
const
|
|
1270
|
-
const { K: e, PRF: t, XOF: n, HASH512: s, ETA1: r, ETA2: i, du: a, dv: c } = o, u = be(1), l = be(c), h = be(a), p =
|
|
1269
|
+
const ns = (o) => {
|
|
1270
|
+
const { K: e, PRF: t, XOF: n, HASH512: s, ETA1: r, ETA2: i, du: a, dv: c } = o, u = be(1), l = be(c), h = be(a), p = Ue("publicKey", Ge(be(12), e), 32), d = Ge(be(12), e), b = Ue("ciphertext", Ge(h, e), l), A = Ue("seed", 32, 32);
|
|
1271
1271
|
return {
|
|
1272
1272
|
secretCoder: d,
|
|
1273
1273
|
lengths: {
|
|
@@ -1284,12 +1284,12 @@ const es = (o) => {
|
|
|
1284
1284
|
k.push(ne.encode(we(t, C, S, r)));
|
|
1285
1285
|
const v = n(w);
|
|
1286
1286
|
for (let S = 0; S < e; S++) {
|
|
1287
|
-
const
|
|
1287
|
+
const U = ne.encode(we(t, C, e + S, r));
|
|
1288
1288
|
for (let R = 0; R < e; R++) {
|
|
1289
1289
|
const ce = wt(v.get(R, S));
|
|
1290
|
-
se(
|
|
1290
|
+
se(U, Ee(ce, k[R]));
|
|
1291
1291
|
}
|
|
1292
|
-
$.push(
|
|
1292
|
+
$.push(U);
|
|
1293
1293
|
}
|
|
1294
1294
|
v.clean();
|
|
1295
1295
|
const I = {
|
|
@@ -1306,27 +1306,27 @@ const es = (o) => {
|
|
|
1306
1306
|
for (let R = 0; R < e; R++) {
|
|
1307
1307
|
const ce = we(t, y, e + R, i), De = new Uint16Array(F);
|
|
1308
1308
|
for (let Me = 0; Me < e; Me++) {
|
|
1309
|
-
const
|
|
1310
|
-
se(De, Ee(
|
|
1309
|
+
const Yt = wt($.get(R, Me));
|
|
1310
|
+
se(De, Ee(Yt, k[Me]));
|
|
1311
1311
|
}
|
|
1312
1312
|
se(ce, ne.decode(De)), I.push(ce), se(v, Ee(w[R], k[R])), G(De);
|
|
1313
1313
|
}
|
|
1314
1314
|
$.clean();
|
|
1315
1315
|
const S = we(t, y, 2 * e, i);
|
|
1316
1316
|
se(S, ne.decode(v));
|
|
1317
|
-
const
|
|
1318
|
-
return se(
|
|
1317
|
+
const U = u.decode(f);
|
|
1318
|
+
return se(U, S), G(w, k, v, S), b.encode([I, U]);
|
|
1319
1319
|
},
|
|
1320
1320
|
decrypt: (M, f) => {
|
|
1321
1321
|
const [y, w] = b.decode(M), C = d.decode(f), k = new Uint16Array(F);
|
|
1322
1322
|
for (let $ = 0; $ < e; $++)
|
|
1323
1323
|
se(k, Ee(C[$], ne.encode(y[$])));
|
|
1324
|
-
return
|
|
1324
|
+
return es(w, ne.decode(k)), G(k, C, y), u.encode(w);
|
|
1325
1325
|
}
|
|
1326
1326
|
};
|
|
1327
1327
|
};
|
|
1328
|
-
function
|
|
1329
|
-
const e =
|
|
1328
|
+
function ss(o) {
|
|
1329
|
+
const e = ns(o), { HASH256: t, HASH512: n, KDF: s } = o, { secretCoder: r, lengths: i } = e, a = Ue("secretKey", i.secretKey, i.publicKey, 32, 32), c = 32, u = 64;
|
|
1330
1330
|
return {
|
|
1331
1331
|
info: { type: "ml-kem" },
|
|
1332
1332
|
lengths: {
|
|
@@ -1347,7 +1347,7 @@ function ts(o) {
|
|
|
1347
1347
|
},
|
|
1348
1348
|
encapsulate: (l, h = gt(c)) => {
|
|
1349
1349
|
D(l, i.publicKey, "publicKey"), D(h, c, "message");
|
|
1350
|
-
const p = l.subarray(0, 384 * o.K), d = r.encode(r.decode(
|
|
1350
|
+
const p = l.subarray(0, 384 * o.K), d = r.encode(r.decode(Qn(p)));
|
|
1351
1351
|
if (!Je(d, p))
|
|
1352
1352
|
throw G(d), new Error("ML-KEM.encapsulate: wrong publicKey modulus");
|
|
1353
1353
|
G(d);
|
|
@@ -1364,18 +1364,18 @@ function ts(o) {
|
|
|
1364
1364
|
}
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return
|
|
1369
|
-
}
|
|
1370
|
-
const
|
|
1371
|
-
HASH256:
|
|
1372
|
-
HASH512:
|
|
1373
|
-
KDF:
|
|
1374
|
-
XOF:
|
|
1375
|
-
PRF:
|
|
1376
|
-
}, Xe = /* @__PURE__ */
|
|
1377
|
-
...
|
|
1378
|
-
...
|
|
1367
|
+
function rs(o, e, t) {
|
|
1368
|
+
return Qt.create({ dkLen: o }).update(e).update(new Uint8Array([t])).digest();
|
|
1369
|
+
}
|
|
1370
|
+
const is = {
|
|
1371
|
+
HASH256: Nn,
|
|
1372
|
+
HASH512: Fn,
|
|
1373
|
+
KDF: Qt,
|
|
1374
|
+
XOF: Vn,
|
|
1375
|
+
PRF: rs
|
|
1376
|
+
}, Xe = /* @__PURE__ */ ss({
|
|
1377
|
+
...is,
|
|
1378
|
+
...Zn[768]
|
|
1379
1379
|
});
|
|
1380
1380
|
class _ {
|
|
1381
1381
|
/**
|
|
@@ -1696,7 +1696,7 @@ class ke extends x {
|
|
|
1696
1696
|
super(e, t, n), this.name = "AtomIndexException";
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
1699
|
-
class
|
|
1699
|
+
class os extends x {
|
|
1700
1700
|
/**
|
|
1701
1701
|
* Class constructor
|
|
1702
1702
|
*
|
|
@@ -1708,7 +1708,7 @@ class rs extends x {
|
|
|
1708
1708
|
super(e, t, n), this.name = "MolecularHashMismatchException";
|
|
1709
1709
|
}
|
|
1710
1710
|
}
|
|
1711
|
-
class
|
|
1711
|
+
class as extends x {
|
|
1712
1712
|
/**
|
|
1713
1713
|
* Class constructor
|
|
1714
1714
|
*
|
|
@@ -1732,7 +1732,7 @@ class kt extends x {
|
|
|
1732
1732
|
super(e, t, n), this.name = "PolicyInvalidException";
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
class
|
|
1735
|
+
class zt extends x {
|
|
1736
1736
|
/**
|
|
1737
1737
|
* Class constructor
|
|
1738
1738
|
*
|
|
@@ -1744,7 +1744,7 @@ class Vt extends x {
|
|
|
1744
1744
|
super(e, t, n), this.name = "SignatureMalformedException";
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
|
-
class
|
|
1747
|
+
class ls extends x {
|
|
1748
1748
|
/**
|
|
1749
1749
|
* Class constructor
|
|
1750
1750
|
*
|
|
@@ -1802,7 +1802,7 @@ class _t extends x {
|
|
|
1802
1802
|
super(e, t, n), this.name = "TransferRemainderException";
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
|
-
class
|
|
1805
|
+
class cs extends x {
|
|
1806
1806
|
/**
|
|
1807
1807
|
* Class constructor
|
|
1808
1808
|
*
|
|
@@ -1940,7 +1940,7 @@ class _e {
|
|
|
1940
1940
|
* @param {string} amount
|
|
1941
1941
|
*/
|
|
1942
1942
|
set amount(e) {
|
|
1943
|
-
if (!
|
|
1943
|
+
if (!yn(e))
|
|
1944
1944
|
throw new ee("Parameter amount should be a string containing numbers");
|
|
1945
1945
|
this.__amount = e;
|
|
1946
1946
|
}
|
|
@@ -2210,7 +2210,7 @@ class ve {
|
|
|
2210
2210
|
*/
|
|
2211
2211
|
constructor(e) {
|
|
2212
2212
|
if (e.molecularHash === null)
|
|
2213
|
-
throw new
|
|
2213
|
+
throw new as();
|
|
2214
2214
|
if (!e.atoms.length)
|
|
2215
2215
|
throw new ae();
|
|
2216
2216
|
for (const t of e.atoms)
|
|
@@ -2498,7 +2498,7 @@ class ve {
|
|
|
2498
2498
|
if (i < 0)
|
|
2499
2499
|
throw new Se();
|
|
2500
2500
|
if (c.walletAddress === s.walletAddress)
|
|
2501
|
-
throw new
|
|
2501
|
+
throw new cs();
|
|
2502
2502
|
}
|
|
2503
2503
|
r += i;
|
|
2504
2504
|
}
|
|
@@ -2525,7 +2525,7 @@ class ve {
|
|
|
2525
2525
|
if (this.molecule.molecularHash !== g.hashAtoms({
|
|
2526
2526
|
atoms: this.molecule.atoms
|
|
2527
2527
|
}))
|
|
2528
|
-
throw new
|
|
2528
|
+
throw new os();
|
|
2529
2529
|
return !0;
|
|
2530
2530
|
}
|
|
2531
2531
|
/**
|
|
@@ -2542,8 +2542,8 @@ class ve {
|
|
|
2542
2542
|
).reduce(
|
|
2543
2543
|
(p, d) => p + d
|
|
2544
2544
|
);
|
|
2545
|
-
if (t.length !== 2048 && (t =
|
|
2546
|
-
throw new
|
|
2545
|
+
if (t.length !== 2048 && (t = mn(t), t.length !== 2048))
|
|
2546
|
+
throw new zt();
|
|
2547
2547
|
const n = He(t, 128);
|
|
2548
2548
|
let s = "";
|
|
2549
2549
|
for (const p in n) {
|
|
@@ -2560,7 +2560,7 @@ class ve {
|
|
|
2560
2560
|
let l = u.walletAddress;
|
|
2561
2561
|
const h = T.get(u.aggregatedMeta(), "signingWallet");
|
|
2562
2562
|
if (h && (l = T.get(JSON.parse(h), "address")), c !== l)
|
|
2563
|
-
throw new
|
|
2563
|
+
throw new ls();
|
|
2564
2564
|
return !0;
|
|
2565
2565
|
}
|
|
2566
2566
|
/**
|
|
@@ -2687,9 +2687,10 @@ class z {
|
|
|
2687
2687
|
sourceWallet: n = null,
|
|
2688
2688
|
remainderWallet: s = null,
|
|
2689
2689
|
cellSlug: r = null,
|
|
2690
|
-
version: i = null
|
|
2690
|
+
version: i = null,
|
|
2691
|
+
continuIdPosition: a = null
|
|
2691
2692
|
}) {
|
|
2692
|
-
this.status = null, this.molecularHash = null, this.createdAt = String(+/* @__PURE__ */ new Date()), this.cellSlugOrigin = this.cellSlug = r, this.secret = e, this.bundle = t, this.sourceWallet = n, this.atoms = [], this.parentHashes = [], i !== null && Object.prototype.hasOwnProperty.call(
|
|
2693
|
+
this.status = null, this.molecularHash = null, this.createdAt = String(+/* @__PURE__ */ new Date()), this.cellSlugOrigin = this.cellSlug = r, this.secret = e, this.bundle = t, this.sourceWallet = n, this.continuIdPosition = a, this.atoms = [], this.parentHashes = [], i !== null && Object.prototype.hasOwnProperty.call(qe, i) && (this.version = String(i)), (s || n) && (this.remainderWallet = s || _.create({
|
|
2693
2694
|
secret: e,
|
|
2694
2695
|
bundle: t,
|
|
2695
2696
|
token: n.token,
|
|
@@ -2858,7 +2859,7 @@ class z {
|
|
|
2858
2859
|
bundle: this.bundle
|
|
2859
2860
|
}));
|
|
2860
2861
|
const e = {};
|
|
2861
|
-
return this.sourceWallet && this.sourceWallet.position && (e.previousPosition = this.sourceWallet.position), this.remainderWallet.pubkey && (e.pubkey = this.remainderWallet.pubkey), this.remainderWallet.characters && (e.characters = this.remainderWallet.characters), this.addAtom(g.create({
|
|
2862
|
+
return this.continuIdPosition ? e.previousPosition = this.continuIdPosition : this.sourceWallet && this.sourceWallet.position && (e.previousPosition = this.sourceWallet.position), this.remainderWallet.pubkey && (e.pubkey = this.remainderWallet.pubkey), this.remainderWallet.characters && (e.characters = this.remainderWallet.characters), this.addAtom(g.create({
|
|
2862
2863
|
isotope: "I",
|
|
2863
2864
|
wallet: this.remainderWallet,
|
|
2864
2865
|
metaType: "walletBundle",
|
|
@@ -2882,14 +2883,8 @@ class z {
|
|
|
2882
2883
|
policy: s = {}
|
|
2883
2884
|
}) {
|
|
2884
2885
|
const r = new P(n);
|
|
2885
|
-
r.addPolicy(s)
|
|
2886
|
-
|
|
2887
|
-
secret: this.secret,
|
|
2888
|
-
bundle: this.sourceWallet.bundle,
|
|
2889
|
-
token: "USER"
|
|
2890
|
-
});
|
|
2891
|
-
return this.addAtom(g.create({
|
|
2892
|
-
wallet: i,
|
|
2886
|
+
return r.addPolicy(s), this.addAtom(g.create({
|
|
2887
|
+
wallet: this.sourceWallet,
|
|
2893
2888
|
isotope: "R",
|
|
2894
2889
|
metaType: e,
|
|
2895
2890
|
metaId: t,
|
|
@@ -2939,10 +2934,20 @@ class z {
|
|
|
2939
2934
|
throw new Ye("Molecule::burnToken() - Amount to burn must be positive!");
|
|
2940
2935
|
if (this.sourceWallet.balance - e < 0)
|
|
2941
2936
|
throw new ue();
|
|
2937
|
+
const n = new _({
|
|
2938
|
+
bundle: "0000000000000000000000000000000000000000000000000000000000000000",
|
|
2939
|
+
token: this.sourceWallet.token
|
|
2940
|
+
});
|
|
2942
2941
|
return this.addAtom(g.create({
|
|
2943
2942
|
isotope: "V",
|
|
2944
2943
|
wallet: this.sourceWallet,
|
|
2945
|
-
value: -
|
|
2944
|
+
value: -this.sourceWallet.balance
|
|
2945
|
+
})), this.addAtom(g.create({
|
|
2946
|
+
isotope: "V",
|
|
2947
|
+
wallet: n,
|
|
2948
|
+
value: e,
|
|
2949
|
+
metaType: "walletBundle",
|
|
2950
|
+
metaId: n.bundle
|
|
2946
2951
|
})), this.addAtom(g.create({
|
|
2947
2952
|
isotope: "V",
|
|
2948
2953
|
wallet: this.remainderWallet,
|
|
@@ -3373,7 +3378,7 @@ class z {
|
|
|
3373
3378
|
let r = s.position;
|
|
3374
3379
|
const i = T.get(s.aggregatedMeta(), "signingWallet");
|
|
3375
3380
|
if (i && (r = T.get(JSON.parse(i), "position")), !r)
|
|
3376
|
-
throw new
|
|
3381
|
+
throw new zt("Signing wallet must have a position!");
|
|
3377
3382
|
const a = _.generateKey({
|
|
3378
3383
|
secret: this.secret,
|
|
3379
3384
|
token: s.token,
|
|
@@ -3386,7 +3391,7 @@ class z {
|
|
|
3386
3391
|
b = new L("SHAKE256", "TEXT").update(b).getHash("HEX", { outputLen: 512 });
|
|
3387
3392
|
l += b;
|
|
3388
3393
|
}
|
|
3389
|
-
n && (l =
|
|
3394
|
+
n && (l = fn(l));
|
|
3390
3395
|
const h = He(l, Math.ceil(l.length / this.atoms.length));
|
|
3391
3396
|
let p = null;
|
|
3392
3397
|
for (let d = 0, b = h.length; d < b; d++)
|
|
@@ -3894,7 +3899,7 @@ class E {
|
|
|
3894
3899
|
return this;
|
|
3895
3900
|
}
|
|
3896
3901
|
}
|
|
3897
|
-
class
|
|
3902
|
+
class K {
|
|
3898
3903
|
/**
|
|
3899
3904
|
* @param {UrqlClientWrapper} graphQLClient
|
|
3900
3905
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4004,7 +4009,7 @@ class N {
|
|
|
4004
4009
|
return {};
|
|
4005
4010
|
}
|
|
4006
4011
|
}
|
|
4007
|
-
class
|
|
4012
|
+
class us extends E {
|
|
4008
4013
|
/**
|
|
4009
4014
|
* Class constructor
|
|
4010
4015
|
*
|
|
@@ -4035,7 +4040,7 @@ class ls extends E {
|
|
|
4035
4040
|
}), e.address = t.address, e.position = t.position, e.bundle = t.bundleHash, e.batchId = t.batchId, e.characters = t.characters, e.pubkey = t.pubkey, e.balance = String(t.amount != null ? t.amount : 0)), e;
|
|
4036
4041
|
}
|
|
4037
4042
|
}
|
|
4038
|
-
class
|
|
4043
|
+
class hs extends K {
|
|
4039
4044
|
/**
|
|
4040
4045
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4041
4046
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4069,13 +4074,13 @@ class cs extends N {
|
|
|
4069
4074
|
* @return {ResponseContinuId}
|
|
4070
4075
|
*/
|
|
4071
4076
|
createResponse(e) {
|
|
4072
|
-
return new
|
|
4077
|
+
return new us({
|
|
4073
4078
|
query: this,
|
|
4074
4079
|
json: e
|
|
4075
4080
|
});
|
|
4076
4081
|
}
|
|
4077
4082
|
}
|
|
4078
|
-
class
|
|
4083
|
+
class ds extends E {
|
|
4079
4084
|
/**
|
|
4080
4085
|
* Class constructor
|
|
4081
4086
|
*
|
|
@@ -4107,7 +4112,7 @@ class us extends E {
|
|
|
4107
4112
|
}), t;
|
|
4108
4113
|
}
|
|
4109
4114
|
}
|
|
4110
|
-
class
|
|
4115
|
+
class ps extends K {
|
|
4111
4116
|
/**
|
|
4112
4117
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4113
4118
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4134,7 +4139,7 @@ class hs extends N {
|
|
|
4134
4139
|
* @return {ResponseWalletBundle}
|
|
4135
4140
|
*/
|
|
4136
4141
|
createResponse(e) {
|
|
4137
|
-
return new
|
|
4142
|
+
return new ds({
|
|
4138
4143
|
query: this,
|
|
4139
4144
|
json: e
|
|
4140
4145
|
});
|
|
@@ -4215,7 +4220,7 @@ class Le extends E {
|
|
|
4215
4220
|
return this.getWallets();
|
|
4216
4221
|
}
|
|
4217
4222
|
}
|
|
4218
|
-
class
|
|
4223
|
+
class fs extends K {
|
|
4219
4224
|
/**
|
|
4220
4225
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4221
4226
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4263,7 +4268,7 @@ class ds extends N {
|
|
|
4263
4268
|
});
|
|
4264
4269
|
}
|
|
4265
4270
|
}
|
|
4266
|
-
class
|
|
4271
|
+
class ms extends E {
|
|
4267
4272
|
/**
|
|
4268
4273
|
* Class constructor
|
|
4269
4274
|
*
|
|
@@ -4292,7 +4297,7 @@ class ps extends E {
|
|
|
4292
4297
|
});
|
|
4293
4298
|
}
|
|
4294
4299
|
}
|
|
4295
|
-
class
|
|
4300
|
+
class ys extends K {
|
|
4296
4301
|
/**
|
|
4297
4302
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4298
4303
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4327,13 +4332,13 @@ class fs extends N {
|
|
|
4327
4332
|
* @return {ResponseBalance}
|
|
4328
4333
|
*/
|
|
4329
4334
|
createResponse(e) {
|
|
4330
|
-
return new
|
|
4335
|
+
return new ms({
|
|
4331
4336
|
query: this,
|
|
4332
4337
|
json: e
|
|
4333
4338
|
});
|
|
4334
4339
|
}
|
|
4335
4340
|
}
|
|
4336
|
-
class
|
|
4341
|
+
class gs extends E {
|
|
4337
4342
|
/**
|
|
4338
4343
|
* Class constructor
|
|
4339
4344
|
*
|
|
@@ -4367,7 +4372,7 @@ class ms extends E {
|
|
|
4367
4372
|
return n.instances && (t.instances = n.instances), n.instanceCount && (t.instanceCount = n.instanceCount), n.paginatorInfo && (t.paginatorInfo = n.paginatorInfo), t;
|
|
4368
4373
|
}
|
|
4369
4374
|
}
|
|
4370
|
-
class At extends
|
|
4375
|
+
class At extends K {
|
|
4371
4376
|
/**
|
|
4372
4377
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4373
4378
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4436,13 +4441,13 @@ class At extends N {
|
|
|
4436
4441
|
* @return {ResponseMetaType}
|
|
4437
4442
|
*/
|
|
4438
4443
|
createResponse(e) {
|
|
4439
|
-
return new
|
|
4444
|
+
return new gs({
|
|
4440
4445
|
query: this,
|
|
4441
4446
|
json: e
|
|
4442
4447
|
});
|
|
4443
4448
|
}
|
|
4444
4449
|
}
|
|
4445
|
-
class Ie extends
|
|
4450
|
+
class Ie extends K {
|
|
4446
4451
|
/**
|
|
4447
4452
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4448
4453
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4523,7 +4528,7 @@ class Ie extends N {
|
|
|
4523
4528
|
return t.dataKey = "data.Batch", t;
|
|
4524
4529
|
}
|
|
4525
4530
|
}
|
|
4526
|
-
class
|
|
4531
|
+
class bs extends K {
|
|
4527
4532
|
/**
|
|
4528
4533
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4529
4534
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4628,7 +4633,7 @@ class V extends E {
|
|
|
4628
4633
|
return this.$__payload;
|
|
4629
4634
|
}
|
|
4630
4635
|
}
|
|
4631
|
-
class
|
|
4636
|
+
class Qe extends K {
|
|
4632
4637
|
/**
|
|
4633
4638
|
* Creates a new Request for the given parameters
|
|
4634
4639
|
*
|
|
@@ -4672,7 +4677,7 @@ class je extends N {
|
|
|
4672
4677
|
return {};
|
|
4673
4678
|
}
|
|
4674
4679
|
}
|
|
4675
|
-
class
|
|
4680
|
+
class q extends Qe {
|
|
4676
4681
|
/**
|
|
4677
4682
|
* @param {UrqlClientWrapper} graphQLClient
|
|
4678
4683
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -4743,7 +4748,7 @@ class U extends je {
|
|
|
4743
4748
|
return this.$__molecule;
|
|
4744
4749
|
}
|
|
4745
4750
|
}
|
|
4746
|
-
class
|
|
4751
|
+
class ws extends V {
|
|
4747
4752
|
/**
|
|
4748
4753
|
* return the authorization key
|
|
4749
4754
|
*
|
|
@@ -4804,7 +4809,7 @@ class gs extends V {
|
|
|
4804
4809
|
return this.payloadKey("key");
|
|
4805
4810
|
}
|
|
4806
4811
|
}
|
|
4807
|
-
class
|
|
4812
|
+
class ks extends q {
|
|
4808
4813
|
/**
|
|
4809
4814
|
*
|
|
4810
4815
|
* @param {object} meta
|
|
@@ -4819,15 +4824,15 @@ class bs extends U {
|
|
|
4819
4824
|
* @return {ResponseRequestAuthorization}
|
|
4820
4825
|
*/
|
|
4821
4826
|
createResponse(e) {
|
|
4822
|
-
return new
|
|
4827
|
+
return new ws({
|
|
4823
4828
|
query: this,
|
|
4824
4829
|
json: e
|
|
4825
4830
|
});
|
|
4826
4831
|
}
|
|
4827
4832
|
}
|
|
4828
|
-
class
|
|
4833
|
+
class Ss extends V {
|
|
4829
4834
|
}
|
|
4830
|
-
class
|
|
4835
|
+
class _s extends q {
|
|
4831
4836
|
/**
|
|
4832
4837
|
* @param {Wallet|null} recipientWallet
|
|
4833
4838
|
* @param {number|null} amount
|
|
@@ -4853,15 +4858,15 @@ class ks extends U {
|
|
|
4853
4858
|
* @return {ResponseCreateToken}
|
|
4854
4859
|
*/
|
|
4855
4860
|
createResponse(e) {
|
|
4856
|
-
return new
|
|
4861
|
+
return new Ss({
|
|
4857
4862
|
query: this,
|
|
4858
4863
|
json: e
|
|
4859
4864
|
});
|
|
4860
4865
|
}
|
|
4861
4866
|
}
|
|
4862
|
-
class
|
|
4867
|
+
class $s extends V {
|
|
4863
4868
|
}
|
|
4864
|
-
class
|
|
4869
|
+
class As extends q {
|
|
4865
4870
|
/**
|
|
4866
4871
|
* Fills a Molecule with the appropriate atoms and prepares for broadcast
|
|
4867
4872
|
*
|
|
@@ -4896,13 +4901,13 @@ class _s extends U {
|
|
|
4896
4901
|
* @return {ResponseRequestTokens}
|
|
4897
4902
|
*/
|
|
4898
4903
|
createResponse(e) {
|
|
4899
|
-
return new
|
|
4904
|
+
return new $s({
|
|
4900
4905
|
query: this,
|
|
4901
4906
|
json: e
|
|
4902
4907
|
});
|
|
4903
4908
|
}
|
|
4904
4909
|
}
|
|
4905
|
-
class
|
|
4910
|
+
class vs extends V {
|
|
4906
4911
|
/**
|
|
4907
4912
|
* Returns result of the transfer
|
|
4908
4913
|
*
|
|
@@ -4916,7 +4921,7 @@ class $s extends V {
|
|
|
4916
4921
|
return e.reason = typeof t.reason > "u" ? "Invalid response from server" : t.reason, e.status = typeof t.status > "u" ? "rejected" : t.status, e;
|
|
4917
4922
|
}
|
|
4918
4923
|
}
|
|
4919
|
-
class
|
|
4924
|
+
class xs extends q {
|
|
4920
4925
|
/**
|
|
4921
4926
|
* Fills the Molecule with provided wallet and amount data
|
|
4922
4927
|
*
|
|
@@ -4939,15 +4944,15 @@ class As extends U {
|
|
|
4939
4944
|
* @return {ResponseTransferTokens}
|
|
4940
4945
|
*/
|
|
4941
4946
|
createResponse(e) {
|
|
4942
|
-
return new
|
|
4947
|
+
return new vs({
|
|
4943
4948
|
query: this,
|
|
4944
4949
|
json: e
|
|
4945
4950
|
});
|
|
4946
4951
|
}
|
|
4947
4952
|
}
|
|
4948
|
-
class
|
|
4953
|
+
class Is extends V {
|
|
4949
4954
|
}
|
|
4950
|
-
class
|
|
4955
|
+
class Ts extends q {
|
|
4951
4956
|
fillMolecule({
|
|
4952
4957
|
type: e,
|
|
4953
4958
|
contact: t,
|
|
@@ -4966,15 +4971,15 @@ class xs extends U {
|
|
|
4966
4971
|
* @return {ResponseCreateIdentifier}
|
|
4967
4972
|
*/
|
|
4968
4973
|
createResponse(e) {
|
|
4969
|
-
return new
|
|
4974
|
+
return new Is({
|
|
4970
4975
|
query: this,
|
|
4971
4976
|
json: e
|
|
4972
4977
|
});
|
|
4973
4978
|
}
|
|
4974
4979
|
}
|
|
4975
|
-
class
|
|
4980
|
+
class Ms extends V {
|
|
4976
4981
|
}
|
|
4977
|
-
class
|
|
4982
|
+
class Cs extends q {
|
|
4978
4983
|
/**
|
|
4979
4984
|
* Class constructor
|
|
4980
4985
|
*
|
|
@@ -5000,15 +5005,15 @@ class Ts extends U {
|
|
|
5000
5005
|
* @return {ResponseClaimShadowWallet}
|
|
5001
5006
|
*/
|
|
5002
5007
|
createResponse(e) {
|
|
5003
|
-
return new
|
|
5008
|
+
return new Ms({
|
|
5004
5009
|
query: this,
|
|
5005
5010
|
json: e
|
|
5006
5011
|
});
|
|
5007
5012
|
}
|
|
5008
5013
|
}
|
|
5009
|
-
class
|
|
5014
|
+
class Es extends V {
|
|
5010
5015
|
}
|
|
5011
|
-
class
|
|
5016
|
+
class Os extends q {
|
|
5012
5017
|
/**
|
|
5013
5018
|
* Fills a molecule with an appropriate metadata atom
|
|
5014
5019
|
*
|
|
@@ -5037,15 +5042,15 @@ class Cs extends U {
|
|
|
5037
5042
|
* @return {ResponseCreateMeta}
|
|
5038
5043
|
*/
|
|
5039
5044
|
createResponse(e) {
|
|
5040
|
-
return new
|
|
5045
|
+
return new Es({
|
|
5041
5046
|
query: this,
|
|
5042
5047
|
json: e
|
|
5043
5048
|
});
|
|
5044
5049
|
}
|
|
5045
5050
|
}
|
|
5046
|
-
class
|
|
5051
|
+
class Rs extends V {
|
|
5047
5052
|
}
|
|
5048
|
-
class
|
|
5053
|
+
class Ws extends q {
|
|
5049
5054
|
/**
|
|
5050
5055
|
* Fills a molecule with a P-isotope peering atom
|
|
5051
5056
|
*
|
|
@@ -5065,15 +5070,15 @@ class Os extends U {
|
|
|
5065
5070
|
* @return {ResponsePeering}
|
|
5066
5071
|
*/
|
|
5067
5072
|
createResponse(e) {
|
|
5068
|
-
return new
|
|
5073
|
+
return new Rs({
|
|
5069
5074
|
query: this,
|
|
5070
5075
|
json: e
|
|
5071
5076
|
});
|
|
5072
5077
|
}
|
|
5073
5078
|
}
|
|
5074
|
-
class
|
|
5079
|
+
class qs extends V {
|
|
5075
5080
|
}
|
|
5076
|
-
class
|
|
5081
|
+
class Us extends q {
|
|
5077
5082
|
/**
|
|
5078
5083
|
* Fills a molecule with an A-isotope append request atom
|
|
5079
5084
|
*
|
|
@@ -5102,13 +5107,13 @@ class Ws extends U {
|
|
|
5102
5107
|
* @return {ResponseAppendRequest}
|
|
5103
5108
|
*/
|
|
5104
5109
|
createResponse(e) {
|
|
5105
|
-
return new
|
|
5110
|
+
return new qs({
|
|
5106
5111
|
query: this,
|
|
5107
5112
|
json: e
|
|
5108
5113
|
});
|
|
5109
5114
|
}
|
|
5110
5115
|
}
|
|
5111
|
-
class
|
|
5116
|
+
class Bs extends E {
|
|
5112
5117
|
/**
|
|
5113
5118
|
* Class constructor
|
|
5114
5119
|
*
|
|
@@ -5142,7 +5147,7 @@ class Us extends E {
|
|
|
5142
5147
|
return T.get(this.data(), "message");
|
|
5143
5148
|
}
|
|
5144
5149
|
}
|
|
5145
|
-
class
|
|
5150
|
+
class Hs extends Qe {
|
|
5146
5151
|
/**
|
|
5147
5152
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5148
5153
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -5165,15 +5170,15 @@ class qs extends je {
|
|
|
5165
5170
|
* @return {ResponseLinkIdentifier}
|
|
5166
5171
|
*/
|
|
5167
5172
|
createResponse(e) {
|
|
5168
|
-
return new
|
|
5173
|
+
return new Bs({
|
|
5169
5174
|
query: this,
|
|
5170
5175
|
json: e
|
|
5171
5176
|
});
|
|
5172
5177
|
}
|
|
5173
5178
|
}
|
|
5174
|
-
class
|
|
5179
|
+
class Ps extends V {
|
|
5175
5180
|
}
|
|
5176
|
-
class
|
|
5181
|
+
class Ks extends q {
|
|
5177
5182
|
fillMolecule(e) {
|
|
5178
5183
|
this.$__molecule.initWalletCreation(e), this.$__molecule.sign({}), this.$__molecule.check();
|
|
5179
5184
|
}
|
|
@@ -5184,13 +5189,13 @@ class Hs extends U {
|
|
|
5184
5189
|
* @return {ResponseCreateWallet}
|
|
5185
5190
|
*/
|
|
5186
5191
|
createResponse(e) {
|
|
5187
|
-
return new
|
|
5192
|
+
return new Ps({
|
|
5188
5193
|
query: this,
|
|
5189
5194
|
json: e
|
|
5190
5195
|
});
|
|
5191
5196
|
}
|
|
5192
5197
|
}
|
|
5193
|
-
class
|
|
5198
|
+
class Ns extends E {
|
|
5194
5199
|
/**
|
|
5195
5200
|
* Class constructor
|
|
5196
5201
|
*
|
|
@@ -5292,7 +5297,7 @@ class Ps extends E {
|
|
|
5292
5297
|
return this.payloadKey("encrypt");
|
|
5293
5298
|
}
|
|
5294
5299
|
}
|
|
5295
|
-
class
|
|
5300
|
+
class Fs extends Qe {
|
|
5296
5301
|
/**
|
|
5297
5302
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5298
5303
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -5313,7 +5318,7 @@ class Ks extends je {
|
|
|
5313
5318
|
* @return {ResponseRequestAuthorizationGuest}
|
|
5314
5319
|
*/
|
|
5315
5320
|
createResponse(e) {
|
|
5316
|
-
return new
|
|
5321
|
+
return new Ns({
|
|
5317
5322
|
query: this,
|
|
5318
5323
|
json: e
|
|
5319
5324
|
});
|
|
@@ -5331,7 +5336,7 @@ class vt extends x {
|
|
|
5331
5336
|
super(e, t, n), this.name = "WalletShadowException";
|
|
5332
5337
|
}
|
|
5333
5338
|
}
|
|
5334
|
-
class
|
|
5339
|
+
class Ls extends x {
|
|
5335
5340
|
/**
|
|
5336
5341
|
* Class constructor
|
|
5337
5342
|
*
|
|
@@ -5355,7 +5360,7 @@ class Re extends x {
|
|
|
5355
5360
|
super(e, t, n), this.name = "StackableUnitAmountException";
|
|
5356
5361
|
}
|
|
5357
5362
|
}
|
|
5358
|
-
class
|
|
5363
|
+
class je {
|
|
5359
5364
|
/**
|
|
5360
5365
|
*
|
|
5361
5366
|
* @param {UrqlClientWrapper} graphQLClient
|
|
@@ -5425,7 +5430,7 @@ class Qe {
|
|
|
5425
5430
|
return this.$__variables;
|
|
5426
5431
|
}
|
|
5427
5432
|
}
|
|
5428
|
-
class
|
|
5433
|
+
class Qs extends je {
|
|
5429
5434
|
constructor(e) {
|
|
5430
5435
|
super(e), this.$__subscribe = O`
|
|
5431
5436
|
subscription onCreateMolecule ( $bundle: String! ) {
|
|
@@ -5475,7 +5480,7 @@ class Fs extends Qe {
|
|
|
5475
5480
|
`;
|
|
5476
5481
|
}
|
|
5477
5482
|
}
|
|
5478
|
-
class
|
|
5483
|
+
class js extends je {
|
|
5479
5484
|
constructor(e) {
|
|
5480
5485
|
super(e), this.$__subscribe = O`
|
|
5481
5486
|
subscription onWalletStatus ( $bundle: String!, $token: String! ) {
|
|
@@ -5489,7 +5494,7 @@ class Ls extends Qe {
|
|
|
5489
5494
|
`;
|
|
5490
5495
|
}
|
|
5491
5496
|
}
|
|
5492
|
-
class
|
|
5497
|
+
class Ds extends je {
|
|
5493
5498
|
constructor(e) {
|
|
5494
5499
|
super(e), this.$__subscribe = O`
|
|
5495
5500
|
subscription onActiveWallet ( $bundle: String! ) {
|
|
@@ -5532,7 +5537,7 @@ class js extends Qe {
|
|
|
5532
5537
|
`;
|
|
5533
5538
|
}
|
|
5534
5539
|
}
|
|
5535
|
-
class
|
|
5540
|
+
class Vs extends je {
|
|
5536
5541
|
constructor(e) {
|
|
5537
5542
|
super(e), this.$__subscribe = O`
|
|
5538
5543
|
subscription onActiveUser ( $metaType: String!, $metaId: String! ) {
|
|
@@ -5547,7 +5552,7 @@ class Qs extends Qe {
|
|
|
5547
5552
|
}`;
|
|
5548
5553
|
}
|
|
5549
5554
|
}
|
|
5550
|
-
class
|
|
5555
|
+
class zs extends E {
|
|
5551
5556
|
/**
|
|
5552
5557
|
* Class constructor
|
|
5553
5558
|
*
|
|
@@ -5565,7 +5570,7 @@ class Ds extends E {
|
|
|
5565
5570
|
});
|
|
5566
5571
|
}
|
|
5567
5572
|
}
|
|
5568
|
-
class
|
|
5573
|
+
class Js extends Qe {
|
|
5569
5574
|
/**
|
|
5570
5575
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5571
5576
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -5608,13 +5613,13 @@ class Vs extends je {
|
|
|
5608
5613
|
* @return {ResponseActiveSession}
|
|
5609
5614
|
*/
|
|
5610
5615
|
createResponse(e) {
|
|
5611
|
-
return new
|
|
5616
|
+
return new zs({
|
|
5612
5617
|
query: this,
|
|
5613
5618
|
json: e
|
|
5614
5619
|
});
|
|
5615
5620
|
}
|
|
5616
5621
|
}
|
|
5617
|
-
class
|
|
5622
|
+
class Gs extends E {
|
|
5618
5623
|
/**
|
|
5619
5624
|
* Class constructor
|
|
5620
5625
|
*
|
|
@@ -5643,7 +5648,7 @@ class zs extends E {
|
|
|
5643
5648
|
return t;
|
|
5644
5649
|
}
|
|
5645
5650
|
}
|
|
5646
|
-
class
|
|
5651
|
+
class Xs extends K {
|
|
5647
5652
|
/**
|
|
5648
5653
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5649
5654
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -5665,13 +5670,13 @@ class Js extends N {
|
|
|
5665
5670
|
* @return {ResponseQueryActiveSession}
|
|
5666
5671
|
*/
|
|
5667
5672
|
createResponse(e) {
|
|
5668
|
-
return new
|
|
5673
|
+
return new Gs({
|
|
5669
5674
|
query: this,
|
|
5670
5675
|
json: e
|
|
5671
5676
|
});
|
|
5672
5677
|
}
|
|
5673
5678
|
}
|
|
5674
|
-
class
|
|
5679
|
+
class Zs extends E {
|
|
5675
5680
|
/**
|
|
5676
5681
|
* Class constructor
|
|
5677
5682
|
*
|
|
@@ -5696,7 +5701,7 @@ class Gs extends E {
|
|
|
5696
5701
|
return e;
|
|
5697
5702
|
}
|
|
5698
5703
|
}
|
|
5699
|
-
class
|
|
5704
|
+
class Ys extends K {
|
|
5700
5705
|
/**
|
|
5701
5706
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5702
5707
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -5784,13 +5789,13 @@ class Xs extends N {
|
|
|
5784
5789
|
* @return {ResponseQueryUserActivity}
|
|
5785
5790
|
*/
|
|
5786
5791
|
createResponse(e) {
|
|
5787
|
-
return new
|
|
5792
|
+
return new Zs({
|
|
5788
5793
|
query: this,
|
|
5789
5794
|
json: e
|
|
5790
5795
|
});
|
|
5791
5796
|
}
|
|
5792
5797
|
}
|
|
5793
|
-
class
|
|
5798
|
+
class er extends K {
|
|
5794
5799
|
/**
|
|
5795
5800
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5796
5801
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -5833,7 +5838,7 @@ class xt extends x {
|
|
|
5833
5838
|
super(e, t, n), this.name = "AuthorizationRejectedException";
|
|
5834
5839
|
}
|
|
5835
5840
|
}
|
|
5836
|
-
class
|
|
5841
|
+
class tr extends E {
|
|
5837
5842
|
/**
|
|
5838
5843
|
* Class constructor
|
|
5839
5844
|
*
|
|
@@ -5881,7 +5886,7 @@ class Ys extends E {
|
|
|
5881
5886
|
return t;
|
|
5882
5887
|
}
|
|
5883
5888
|
}
|
|
5884
|
-
class It extends
|
|
5889
|
+
class It extends K {
|
|
5885
5890
|
/**
|
|
5886
5891
|
* @param {UrqlClientWrapper} graphQLClient
|
|
5887
5892
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -6003,7 +6008,7 @@ class It extends N {
|
|
|
6003
6008
|
indexes: v,
|
|
6004
6009
|
index: I,
|
|
6005
6010
|
filter: S,
|
|
6006
|
-
latest:
|
|
6011
|
+
latest: U,
|
|
6007
6012
|
queryArgs: R
|
|
6008
6013
|
}) {
|
|
6009
6014
|
return t && (e = e || [], e.push(t)), s && (n = n || [], n.push(s)), i && (r = r || [], r.push(i)), c && (a = a || [], a.push(c)), l && (u = u || [], u.push(l)), p && (h = h || [], h.push(p)), b && (d = d || [], d.push(b)), M && (A = A || [], A.push(M)), y && (f = f || [], f.push(y)), C && (w = w || [], w.push(C)), $ && (k = k || [], k.push($)), I && (v = v || [], v.push(I)), {
|
|
@@ -6020,7 +6025,7 @@ class It extends N {
|
|
|
6020
6025
|
metaIds: k,
|
|
6021
6026
|
indexes: v,
|
|
6022
6027
|
filter: S,
|
|
6023
|
-
latest:
|
|
6028
|
+
latest: U,
|
|
6024
6029
|
queryArgs: R
|
|
6025
6030
|
};
|
|
6026
6031
|
}
|
|
@@ -6031,13 +6036,13 @@ class It extends N {
|
|
|
6031
6036
|
* @return {ResponseAtom}
|
|
6032
6037
|
*/
|
|
6033
6038
|
createResponse(e) {
|
|
6034
|
-
return new
|
|
6039
|
+
return new tr({
|
|
6035
6040
|
query: this,
|
|
6036
6041
|
json: e
|
|
6037
6042
|
});
|
|
6038
6043
|
}
|
|
6039
6044
|
}
|
|
6040
|
-
class
|
|
6045
|
+
class nr extends E {
|
|
6041
6046
|
/**
|
|
6042
6047
|
* Class constructor
|
|
6043
6048
|
*
|
|
@@ -6062,7 +6067,7 @@ class er extends E {
|
|
|
6062
6067
|
return e && e.callback ? JSON.parse(e.callback) : null;
|
|
6063
6068
|
}
|
|
6064
6069
|
}
|
|
6065
|
-
class
|
|
6070
|
+
class sr extends K {
|
|
6066
6071
|
/**
|
|
6067
6072
|
* @param {UrqlClientWrapper} graphQLClient
|
|
6068
6073
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -6088,13 +6093,13 @@ class tr extends N {
|
|
|
6088
6093
|
* @return {ResponsePolicy}
|
|
6089
6094
|
*/
|
|
6090
6095
|
createResponse(e) {
|
|
6091
|
-
return new
|
|
6096
|
+
return new nr({
|
|
6092
6097
|
query: this,
|
|
6093
6098
|
json: e
|
|
6094
6099
|
});
|
|
6095
6100
|
}
|
|
6096
6101
|
}
|
|
6097
|
-
class
|
|
6102
|
+
class rr extends E {
|
|
6098
6103
|
/**
|
|
6099
6104
|
* Class constructor
|
|
6100
6105
|
*
|
|
@@ -6123,7 +6128,7 @@ class nr extends E {
|
|
|
6123
6128
|
return n.instances && (t.instances = n.instances), n.instanceCount && (t.instanceCount = n.instanceCount), n.paginatorInfo && (t.paginatorInfo = n.paginatorInfo), t;
|
|
6124
6129
|
}
|
|
6125
6130
|
}
|
|
6126
|
-
class Tt extends
|
|
6131
|
+
class Tt extends K {
|
|
6127
6132
|
/**
|
|
6128
6133
|
* @param {UrqlClientWrapper} graphQLClient
|
|
6129
6134
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -6209,7 +6214,7 @@ class Tt extends N {
|
|
|
6209
6214
|
* @return {ResponseMetaTypeViaAtom}
|
|
6210
6215
|
*/
|
|
6211
6216
|
createResponse(e) {
|
|
6212
|
-
return new
|
|
6217
|
+
return new rr({
|
|
6213
6218
|
query: this,
|
|
6214
6219
|
json: e
|
|
6215
6220
|
});
|
|
@@ -6316,7 +6321,7 @@ class ot extends E {
|
|
|
6316
6321
|
};
|
|
6317
6322
|
}
|
|
6318
6323
|
}
|
|
6319
|
-
class Mt extends
|
|
6324
|
+
class Mt extends K {
|
|
6320
6325
|
/**
|
|
6321
6326
|
* @param {UrqlClientWrapper} graphQLClient
|
|
6322
6327
|
* @param {KnishIOClient} knishIOClient
|
|
@@ -6429,9 +6434,95 @@ class Mt extends N {
|
|
|
6429
6434
|
});
|
|
6430
6435
|
}
|
|
6431
6436
|
}
|
|
6432
|
-
class
|
|
6437
|
+
class ir extends E {
|
|
6438
|
+
/**
|
|
6439
|
+
* Class constructor
|
|
6440
|
+
*
|
|
6441
|
+
* @param {Query} query
|
|
6442
|
+
* @param {object} json
|
|
6443
|
+
*/
|
|
6444
|
+
constructor({
|
|
6445
|
+
query: e,
|
|
6446
|
+
json: t
|
|
6447
|
+
}) {
|
|
6448
|
+
super({
|
|
6449
|
+
query: e,
|
|
6450
|
+
json: t,
|
|
6451
|
+
dataKey: "data.embeddingStatus"
|
|
6452
|
+
});
|
|
6453
|
+
}
|
|
6454
|
+
/**
|
|
6455
|
+
* Returns the array of embedding status items, or null if empty.
|
|
6456
|
+
*
|
|
6457
|
+
* Each item contains:
|
|
6458
|
+
* - metaType {string} - Metadata type (echoed from input)
|
|
6459
|
+
* - metaId {string} - Instance identifier (echoed from input)
|
|
6460
|
+
* - state {string} - PENDING | STALE | COMPLETE
|
|
6461
|
+
* - totalMetas {number} - Total meta rows for this instance
|
|
6462
|
+
* - embeddedCount {number} - Rows with current-model embeddings
|
|
6463
|
+
* - embeddedAt {number|null} - Unix epoch of most recent embedding
|
|
6464
|
+
* - model {string|null} - Model name used for embeddings
|
|
6465
|
+
*
|
|
6466
|
+
* @return {Array<object>|null}
|
|
6467
|
+
*/
|
|
6468
|
+
payload() {
|
|
6469
|
+
const e = this.data();
|
|
6470
|
+
return !e || !Array.isArray(e) || e.length === 0 ? null : e;
|
|
6471
|
+
}
|
|
6433
6472
|
}
|
|
6434
|
-
class
|
|
6473
|
+
class Ct extends K {
|
|
6474
|
+
/**
|
|
6475
|
+
* @param {UrqlClientWrapper} graphQLClient
|
|
6476
|
+
* @param {KnishIOClient} knishIOClient
|
|
6477
|
+
*/
|
|
6478
|
+
constructor(e, t) {
|
|
6479
|
+
super(e, t), this.$__query = O`query( $metaType: String, $metaId: String, $instances: [EmbeddingStatusInput!] ) {
|
|
6480
|
+
embeddingStatus( metaType: $metaType, metaId: $metaId, instances: $instances ) {
|
|
6481
|
+
metaType,
|
|
6482
|
+
metaId,
|
|
6483
|
+
state,
|
|
6484
|
+
totalMetas,
|
|
6485
|
+
embeddedCount,
|
|
6486
|
+
embeddedAt,
|
|
6487
|
+
model
|
|
6488
|
+
}
|
|
6489
|
+
}`;
|
|
6490
|
+
}
|
|
6491
|
+
/**
|
|
6492
|
+
* Builds a GraphQL-friendly variables object for embedding status queries.
|
|
6493
|
+
*
|
|
6494
|
+
* Single mode: createVariables({ metaType: 'product', metaId: 'SKU-001' })
|
|
6495
|
+
* Bulk mode: createVariables({ instances: [{ metaType: 'product', metaId: 'SKU-001' }, ...] })
|
|
6496
|
+
*
|
|
6497
|
+
* @param {string|null} metaType
|
|
6498
|
+
* @param {string|null} metaId
|
|
6499
|
+
* @param {Array<{metaType: string, metaId: string}>|null} instances
|
|
6500
|
+
* @return {{}}
|
|
6501
|
+
*/
|
|
6502
|
+
static createVariables({
|
|
6503
|
+
metaType: e = null,
|
|
6504
|
+
metaId: t = null,
|
|
6505
|
+
instances: n = null
|
|
6506
|
+
}) {
|
|
6507
|
+
const s = {};
|
|
6508
|
+
return n && n.length > 0 && (s.instances = n), e && (s.metaType = e), t && (s.metaId = t), s;
|
|
6509
|
+
}
|
|
6510
|
+
/**
|
|
6511
|
+
* Returns a Response object
|
|
6512
|
+
*
|
|
6513
|
+
* @param {object} json
|
|
6514
|
+
* @return {ResponseEmbeddingStatus}
|
|
6515
|
+
*/
|
|
6516
|
+
createResponse(e) {
|
|
6517
|
+
return new ir({
|
|
6518
|
+
query: this,
|
|
6519
|
+
json: e
|
|
6520
|
+
});
|
|
6521
|
+
}
|
|
6522
|
+
}
|
|
6523
|
+
class or extends V {
|
|
6524
|
+
}
|
|
6525
|
+
class ar extends q {
|
|
6435
6526
|
/**
|
|
6436
6527
|
*
|
|
6437
6528
|
* @param {string} metaType
|
|
@@ -6459,13 +6550,13 @@ class rr extends U {
|
|
|
6459
6550
|
* @return {ResponseCreateRule}
|
|
6460
6551
|
*/
|
|
6461
6552
|
createResponse(e) {
|
|
6462
|
-
return new
|
|
6553
|
+
return new or({
|
|
6463
6554
|
query: this,
|
|
6464
6555
|
json: e
|
|
6465
6556
|
});
|
|
6466
6557
|
}
|
|
6467
6558
|
}
|
|
6468
|
-
class
|
|
6559
|
+
class lr extends q {
|
|
6469
6560
|
/**
|
|
6470
6561
|
* Fills the Molecule with provided wallet and amount data
|
|
6471
6562
|
*
|
|
@@ -6482,7 +6573,7 @@ class ir extends U {
|
|
|
6482
6573
|
}), this.$__molecule.sign({}), this.$__molecule.check(this.$__molecule.sourceWallet);
|
|
6483
6574
|
}
|
|
6484
6575
|
}
|
|
6485
|
-
class
|
|
6576
|
+
class cr extends q {
|
|
6486
6577
|
/**
|
|
6487
6578
|
*
|
|
6488
6579
|
* @param recipients
|
|
@@ -6582,10 +6673,10 @@ function Z(o, e) {
|
|
|
6582
6673
|
};
|
|
6583
6674
|
}
|
|
6584
6675
|
}
|
|
6585
|
-
var W = { exclude: [], include: [], logging: !0 },
|
|
6586
|
-
typeof window < "u" && (
|
|
6587
|
-
},
|
|
6588
|
-
return Object.fromEntries(Object.entries(
|
|
6676
|
+
var W = { exclude: [], include: [], logging: !0 }, Jt = {}, ur = { timeout: "true" }, J = function(o, e) {
|
|
6677
|
+
typeof window < "u" && (Jt[o] = e);
|
|
6678
|
+
}, hr = function() {
|
|
6679
|
+
return Object.fromEntries(Object.entries(Jt).filter((function(o) {
|
|
6589
6680
|
var e, t = o[0];
|
|
6590
6681
|
return !(!((e = W == null ? void 0 : W.exclude) === null || e === void 0) && e.includes(t));
|
|
6591
6682
|
})).filter((function(o) {
|
|
@@ -6603,7 +6694,7 @@ function We(o) {
|
|
|
6603
6694
|
return o ^= o >>> 16, o = Math.imul(o, 2246822507), o ^= o >>> 13, o = Math.imul(o, 3266489909), (o ^= o >>> 16) >>> 0;
|
|
6604
6695
|
}
|
|
6605
6696
|
var B = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
6606
|
-
function
|
|
6697
|
+
function j(o, e) {
|
|
6607
6698
|
return o << e | o >>> 32 - e;
|
|
6608
6699
|
}
|
|
6609
6700
|
function at(o, e) {
|
|
@@ -6613,7 +6704,7 @@ function at(o, e) {
|
|
|
6613
6704
|
(function(r, i) {
|
|
6614
6705
|
for (var a = r.byteLength / 16 | 0, c = new Uint32Array(r, 0, 4 * a), u = 0; u < a; u++) {
|
|
6615
6706
|
var l = c.subarray(4 * u, 4 * (u + 1));
|
|
6616
|
-
l[0] = Math.imul(l[0], B[0]), l[0] =
|
|
6707
|
+
l[0] = Math.imul(l[0], B[0]), l[0] = j(l[0], 15), l[0] = Math.imul(l[0], B[1]), i[0] = i[0] ^ l[0], i[0] = j(i[0], 19), i[0] = i[0] + i[1], i[0] = Math.imul(i[0], 5) + 1444728091, l[1] = Math.imul(l[1], B[1]), l[1] = j(l[1], 16), l[1] = Math.imul(l[1], B[2]), i[1] = i[1] ^ l[1], i[1] = j(i[1], 17), i[1] = i[1] + i[2], i[1] = Math.imul(i[1], 5) + 197830471, l[2] = Math.imul(l[2], B[2]), l[2] = j(l[2], 17), l[2] = Math.imul(l[2], B[3]), i[2] = i[2] ^ l[2], i[2] = j(i[2], 15), i[2] = i[2] + i[3], i[2] = Math.imul(i[2], 5) + 2530024501, l[3] = Math.imul(l[3], B[3]), l[3] = j(l[3], 18), l[3] = Math.imul(l[3], B[0]), i[3] = i[3] ^ l[3], i[3] = j(i[3], 13), i[3] = i[3] + i[0], i[3] = Math.imul(i[3], 5) + 850148119;
|
|
6617
6708
|
}
|
|
6618
6709
|
})(o, n), (function(r, i) {
|
|
6619
6710
|
var a = r.byteLength / 16 | 0, c = r.byteLength % 16, u = new Uint32Array(4), l = new Uint8Array(r, 16 * a, c);
|
|
@@ -6623,7 +6714,7 @@ function at(o, e) {
|
|
|
6623
6714
|
case 14:
|
|
6624
6715
|
u[3] = u[3] ^ l[13] << 8;
|
|
6625
6716
|
case 13:
|
|
6626
|
-
u[3] = u[3] ^ l[12] << 0, u[3] = Math.imul(u[3], B[3]), u[3] =
|
|
6717
|
+
u[3] = u[3] ^ l[12] << 0, u[3] = Math.imul(u[3], B[3]), u[3] = j(u[3], 18), u[3] = Math.imul(u[3], B[0]), i[3] = i[3] ^ u[3];
|
|
6627
6718
|
case 12:
|
|
6628
6719
|
u[2] = u[2] ^ l[11] << 24;
|
|
6629
6720
|
case 11:
|
|
@@ -6631,7 +6722,7 @@ function at(o, e) {
|
|
|
6631
6722
|
case 10:
|
|
6632
6723
|
u[2] = u[2] ^ l[9] << 8;
|
|
6633
6724
|
case 9:
|
|
6634
|
-
u[2] = u[2] ^ l[8] << 0, u[2] = Math.imul(u[2], B[2]), u[2] =
|
|
6725
|
+
u[2] = u[2] ^ l[8] << 0, u[2] = Math.imul(u[2], B[2]), u[2] = j(u[2], 17), u[2] = Math.imul(u[2], B[3]), i[2] = i[2] ^ u[2];
|
|
6635
6726
|
case 8:
|
|
6636
6727
|
u[1] = u[1] ^ l[7] << 24;
|
|
6637
6728
|
case 7:
|
|
@@ -6639,7 +6730,7 @@ function at(o, e) {
|
|
|
6639
6730
|
case 6:
|
|
6640
6731
|
u[1] = u[1] ^ l[5] << 8;
|
|
6641
6732
|
case 5:
|
|
6642
|
-
u[1] = u[1] ^ l[4] << 0, u[1] = Math.imul(u[1], B[1]), u[1] =
|
|
6733
|
+
u[1] = u[1] ^ l[4] << 0, u[1] = Math.imul(u[1], B[1]), u[1] = j(u[1], 16), u[1] = Math.imul(u[1], B[2]), i[1] = i[1] ^ u[1];
|
|
6643
6734
|
case 4:
|
|
6644
6735
|
u[0] = u[0] ^ l[3] << 24;
|
|
6645
6736
|
case 3:
|
|
@@ -6647,7 +6738,7 @@ function at(o, e) {
|
|
|
6647
6738
|
case 2:
|
|
6648
6739
|
u[0] = u[0] ^ l[1] << 8;
|
|
6649
6740
|
case 1:
|
|
6650
|
-
u[0] = u[0] ^ l[0] << 0, u[0] = Math.imul(u[0], B[0]), u[0] =
|
|
6741
|
+
u[0] = u[0] ^ l[0] << 0, u[0] = Math.imul(u[0], B[0]), u[0] = j(u[0], 15), u[0] = Math.imul(u[0], B[1]), i[0] = i[0] ^ u[0];
|
|
6651
6742
|
}
|
|
6652
6743
|
})(o, n), (function(r, i) {
|
|
6653
6744
|
i[0] = i[0] ^ r.byteLength, i[1] = i[1] ^ r.byteLength, i[2] = i[2] ^ r.byteLength, i[3] = i[3] ^ r.byteLength, i[0] = i[0] + i[1] | 0, i[0] = i[0] + i[2] | 0, i[0] = i[0] + i[3] | 0, i[1] = i[1] + i[0] | 0, i[2] = i[2] + i[0] | 0, i[3] = i[3] + i[0] | 0, i[0] = We(i[0]), i[1] = We(i[1]), i[2] = We(i[2]), i[3] = We(i[3]), i[0] = i[0] + i[1] | 0, i[0] = i[0] + i[2] | 0, i[0] = i[0] + i[3] | 0, i[1] = i[1] + i[0] | 0, i[2] = i[2] + i[0] | 0, i[3] = i[3] + i[0] | 0;
|
|
@@ -6657,35 +6748,35 @@ function at(o, e) {
|
|
|
6657
6748
|
return r.toString(16).padStart(2, "0");
|
|
6658
6749
|
})).join("");
|
|
6659
6750
|
}
|
|
6660
|
-
function
|
|
6751
|
+
function dr(o, e) {
|
|
6661
6752
|
return new Promise((function(t) {
|
|
6662
6753
|
setTimeout((function() {
|
|
6663
6754
|
return t(e);
|
|
6664
6755
|
}), o);
|
|
6665
6756
|
}));
|
|
6666
6757
|
}
|
|
6667
|
-
function
|
|
6758
|
+
function pr(o, e, t) {
|
|
6668
6759
|
return Promise.all(o.map((function(n) {
|
|
6669
|
-
return Promise.race([n,
|
|
6760
|
+
return Promise.race([n, dr(e, t)]);
|
|
6670
6761
|
})));
|
|
6671
6762
|
}
|
|
6672
|
-
var
|
|
6673
|
-
function
|
|
6674
|
-
return
|
|
6763
|
+
var fr = "0.19.1";
|
|
6764
|
+
function mr() {
|
|
6765
|
+
return fr;
|
|
6675
6766
|
}
|
|
6676
|
-
function
|
|
6767
|
+
function Gt() {
|
|
6677
6768
|
return X(this, void 0, void 0, (function() {
|
|
6678
6769
|
var o, e, t, n, s;
|
|
6679
6770
|
return Z(this, (function(r) {
|
|
6680
6771
|
switch (r.label) {
|
|
6681
6772
|
case 0:
|
|
6682
|
-
return r.trys.push([0, 2, , 3]), o =
|
|
6773
|
+
return r.trys.push([0, 2, , 3]), o = hr(), e = Object.keys(o), [4, pr(Object.values(o), (W == null ? void 0 : W.timeout) || 1e3, ur)];
|
|
6683
6774
|
case 1:
|
|
6684
6775
|
return t = r.sent(), n = t.filter((function(i) {
|
|
6685
6776
|
return i !== void 0;
|
|
6686
6777
|
})), s = {}, n.forEach((function(i, a) {
|
|
6687
6778
|
s[e[a]] = i;
|
|
6688
|
-
})), [2,
|
|
6779
|
+
})), [2, Xt(s, W.exclude || [], W.include || [], "")];
|
|
6689
6780
|
case 2:
|
|
6690
6781
|
throw r.sent();
|
|
6691
6782
|
case 3:
|
|
@@ -6694,7 +6785,7 @@ function Jt() {
|
|
|
6694
6785
|
}));
|
|
6695
6786
|
}));
|
|
6696
6787
|
}
|
|
6697
|
-
function
|
|
6788
|
+
function Xt(o, e, t, n) {
|
|
6698
6789
|
n === void 0 && (n = "");
|
|
6699
6790
|
for (var s = {}, r = function(u, l) {
|
|
6700
6791
|
var h = n + u + ".";
|
|
@@ -6706,7 +6797,7 @@ function Gt(o, e, t, n) {
|
|
|
6706
6797
|
}));
|
|
6707
6798
|
p && !d || (s[u] = l);
|
|
6708
6799
|
} else {
|
|
6709
|
-
var b =
|
|
6800
|
+
var b = Xt(l, e, t, h);
|
|
6710
6801
|
Object.keys(b).length > 0 && (s[u] = b);
|
|
6711
6802
|
}
|
|
6712
6803
|
}, i = 0, a = Object.entries(o); i < a.length; i++) {
|
|
@@ -6715,13 +6806,13 @@ function Gt(o, e, t, n) {
|
|
|
6715
6806
|
}
|
|
6716
6807
|
return s;
|
|
6717
6808
|
}
|
|
6718
|
-
function
|
|
6809
|
+
function yr(o) {
|
|
6719
6810
|
return X(this, void 0, void 0, (function() {
|
|
6720
6811
|
var e, t;
|
|
6721
6812
|
return Z(this, (function(n) {
|
|
6722
6813
|
switch (n.label) {
|
|
6723
6814
|
case 0:
|
|
6724
|
-
return n.trys.push([0, 2, , 3]), [4,
|
|
6815
|
+
return n.trys.push([0, 2, , 3]), [4, Gt()];
|
|
6725
6816
|
case 1:
|
|
6726
6817
|
return e = n.sent(), t = at(JSON.stringify(e)), Math.random() < 1e-3 && W.logging && (function(s, r) {
|
|
6727
6818
|
X(this, void 0, void 0, (function() {
|
|
@@ -6729,7 +6820,7 @@ function pr(o) {
|
|
|
6729
6820
|
return Z(this, (function(c) {
|
|
6730
6821
|
switch (c.label) {
|
|
6731
6822
|
case 0:
|
|
6732
|
-
if (i = "https://logging.thumbmarkjs.com/v1/log", a = { thumbmark: s, components: r, version:
|
|
6823
|
+
if (i = "https://logging.thumbmarkjs.com/v1/log", a = { thumbmark: s, components: r, version: mr() }, sessionStorage.getItem("_tmjs_l")) return [3, 4];
|
|
6733
6824
|
sessionStorage.setItem("_tmjs_l", "1"), c.label = 1;
|
|
6734
6825
|
case 1:
|
|
6735
6826
|
return c.trys.push([1, 3, , 4]), [4, fetch(i, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(a) })];
|
|
@@ -6750,19 +6841,19 @@ function pr(o) {
|
|
|
6750
6841
|
}));
|
|
6751
6842
|
}));
|
|
6752
6843
|
}
|
|
6753
|
-
function
|
|
6844
|
+
function gr(o) {
|
|
6754
6845
|
for (var e = 0, t = 0; t < o.length; ++t) e += Math.abs(o[t]);
|
|
6755
6846
|
return e;
|
|
6756
6847
|
}
|
|
6757
|
-
function
|
|
6848
|
+
function Zt(o, e, t) {
|
|
6758
6849
|
for (var n = [], s = 0; s < o[0].data.length; s++) {
|
|
6759
6850
|
for (var r = [], i = 0; i < o.length; i++) r.push(o[i].data[s]);
|
|
6760
|
-
n.push(
|
|
6851
|
+
n.push(br(r));
|
|
6761
6852
|
}
|
|
6762
6853
|
var a = new Uint8ClampedArray(n);
|
|
6763
6854
|
return new ImageData(a, e, t);
|
|
6764
6855
|
}
|
|
6765
|
-
function
|
|
6856
|
+
function br(o) {
|
|
6766
6857
|
if (o.length === 0) return 0;
|
|
6767
6858
|
for (var e = {}, t = 0, n = o; t < n.length; t++)
|
|
6768
6859
|
e[r = n[t]] = (e[r] || 0) + 1;
|
|
@@ -6787,7 +6878,7 @@ J("audio", (function() {
|
|
|
6787
6878
|
r.frequency.value = 1e3;
|
|
6788
6879
|
var i, a = n.createDynamicsCompressor();
|
|
6789
6880
|
a.threshold.value = -50, a.knee.value = 40, a.ratio.value = 12, a.attack.value = 0, a.release.value = 0.2, r.connect(a), a.connect(n.destination), r.start(), n.oncomplete = function(c) {
|
|
6790
|
-
i = c.renderedBuffer.getChannelData(0), e({ sampleHash:
|
|
6881
|
+
i = c.renderedBuffer.getChannelData(0), e({ sampleHash: gr(i), oscillator: r.type, maxChannels: n.destination.maxChannelCount, channelCountMode: s.channelCountMode });
|
|
6791
6882
|
}, n.startRendering();
|
|
6792
6883
|
} catch (c) {
|
|
6793
6884
|
console.error("Error creating audio fingerprint:", c), t(c);
|
|
@@ -6796,14 +6887,14 @@ J("audio", (function() {
|
|
|
6796
6887
|
}));
|
|
6797
6888
|
}));
|
|
6798
6889
|
}));
|
|
6799
|
-
var
|
|
6890
|
+
var wr = Te().name !== "SamsungBrowser" ? 1 : 3, Et = 280, Ot = 20;
|
|
6800
6891
|
Te().name != "Firefox" && J("canvas", (function() {
|
|
6801
6892
|
return document.createElement("canvas").getContext("2d"), new Promise((function(o) {
|
|
6802
|
-
var e = Array.from({ length:
|
|
6893
|
+
var e = Array.from({ length: wr }, (function() {
|
|
6803
6894
|
return (function() {
|
|
6804
6895
|
var t = document.createElement("canvas"), n = t.getContext("2d");
|
|
6805
6896
|
if (!n) return new ImageData(1, 1);
|
|
6806
|
-
t.width =
|
|
6897
|
+
t.width = Et, t.height = Ot;
|
|
6807
6898
|
var s = n.createLinearGradient(0, 0, t.width, t.height);
|
|
6808
6899
|
s.addColorStop(0, "red"), s.addColorStop(0.16666666666666666, "orange"), s.addColorStop(0.3333333333333333, "yellow"), s.addColorStop(0.5, "green"), s.addColorStop(0.6666666666666666, "blue"), s.addColorStop(0.8333333333333334, "indigo"), s.addColorStop(1, "violet"), n.fillStyle = s, n.fillRect(0, 0, t.width, t.height);
|
|
6809
6900
|
var r = "Random Text WMwmil10Oo";
|
|
@@ -6812,15 +6903,15 @@ Te().name != "Firefox" && J("canvas", (function() {
|
|
|
6812
6903
|
return i;
|
|
6813
6904
|
})();
|
|
6814
6905
|
}));
|
|
6815
|
-
o({ commonImageDataHash: at(
|
|
6906
|
+
o({ commonImageDataHash: at(Zt(e, Et, Ot).data.toString()).toString() });
|
|
6816
6907
|
}));
|
|
6817
6908
|
}));
|
|
6818
|
-
var tt,
|
|
6819
|
-
function
|
|
6909
|
+
var tt, kr = ["Arial", "Arial Black", "Arial Narrow", "Arial Rounded MT", "Arimo", "Archivo", "Barlow", "Bebas Neue", "Bitter", "Bookman", "Calibri", "Cabin", "Candara", "Century", "Century Gothic", "Comic Sans MS", "Constantia", "Courier", "Courier New", "Crimson Text", "DM Mono", "DM Sans", "DM Serif Display", "DM Serif Text", "Dosis", "Droid Sans", "Exo", "Fira Code", "Fira Sans", "Franklin Gothic Medium", "Garamond", "Geneva", "Georgia", "Gill Sans", "Helvetica", "Impact", "Inconsolata", "Indie Flower", "Inter", "Josefin Sans", "Karla", "Lato", "Lexend", "Lucida Bright", "Lucida Console", "Lucida Sans Unicode", "Manrope", "Merriweather", "Merriweather Sans", "Montserrat", "Myriad", "Noto Sans", "Nunito", "Nunito Sans", "Open Sans", "Optima", "Orbitron", "Oswald", "Pacifico", "Palatino", "Perpetua", "PT Sans", "PT Serif", "Poppins", "Prompt", "Public Sans", "Quicksand", "Rajdhani", "Recursive", "Roboto", "Roboto Condensed", "Rockwell", "Rubik", "Segoe Print", "Segoe Script", "Segoe UI", "Sora", "Source Sans Pro", "Space Mono", "Tahoma", "Taviraj", "Times", "Times New Roman", "Titillium Web", "Trebuchet MS", "Ubuntu", "Varela Round", "Verdana", "Work Sans"], Sr = ["monospace", "sans-serif", "serif"];
|
|
6910
|
+
function Rt(o, e) {
|
|
6820
6911
|
if (!o) throw new Error("Canvas context not supported");
|
|
6821
6912
|
return o.font, o.font = "72px ".concat(e), o.measureText("WwMmLli0Oo").width;
|
|
6822
6913
|
}
|
|
6823
|
-
function
|
|
6914
|
+
function _r() {
|
|
6824
6915
|
var o, e = document.createElement("canvas"), t = (o = e.getContext("webgl")) !== null && o !== void 0 ? o : e.getContext("experimental-webgl");
|
|
6825
6916
|
if (t && "getParameter" in t) try {
|
|
6826
6917
|
var n = (t.getParameter(t.VENDOR) || "").toString(), s = (t.getParameter(t.RENDERER) || "").toString(), r = { vendor: n, renderer: s, version: (t.getParameter(t.VERSION) || "").toString(), shadingLanguageVersion: (t.getParameter(t.SHADING_LANGUAGE_VERSION) || "").toString() };
|
|
@@ -6836,11 +6927,11 @@ function wr() {
|
|
|
6836
6927
|
}
|
|
6837
6928
|
return "undefined";
|
|
6838
6929
|
}
|
|
6839
|
-
function
|
|
6930
|
+
function $r() {
|
|
6840
6931
|
var o = new Float32Array(1), e = new Uint8Array(o.buffer);
|
|
6841
6932
|
return o[0] = 1 / 0, o[0] = o[0] - o[0], e[3];
|
|
6842
6933
|
}
|
|
6843
|
-
function
|
|
6934
|
+
function Ar(o, e) {
|
|
6844
6935
|
var t = {};
|
|
6845
6936
|
return e.forEach((function(n) {
|
|
6846
6937
|
var s = (function(r) {
|
|
@@ -6862,7 +6953,7 @@ function Sr(o, e) {
|
|
|
6862
6953
|
s && (t[n] = s);
|
|
6863
6954
|
})), t;
|
|
6864
6955
|
}
|
|
6865
|
-
function
|
|
6956
|
+
function vr() {
|
|
6866
6957
|
var o = [], e = { "prefers-contrast": ["high", "more", "low", "less", "forced", "no-preference"], "any-hover": ["hover", "none"], "any-pointer": ["none", "coarse", "fine"], pointer: ["none", "coarse", "fine"], hover: ["hover", "none"], update: ["fast", "slow"], "inverted-colors": ["inverted", "none"], "prefers-reduced-motion": ["reduce", "no-preference"], "prefers-reduced-transparency": ["reduce", "no-preference"], scripting: ["none", "initial-only", "enabled"], "forced-colors": ["active", "none"] };
|
|
6867
6958
|
return Object.keys(e).forEach((function(t) {
|
|
6868
6959
|
e[t].forEach((function(n) {
|
|
@@ -6870,7 +6961,7 @@ function _r() {
|
|
|
6870
6961
|
}));
|
|
6871
6962
|
})), o;
|
|
6872
6963
|
}
|
|
6873
|
-
function
|
|
6964
|
+
function xr() {
|
|
6874
6965
|
if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
|
|
6875
6966
|
for (var o = window.ApplePaySession.supportsVersion, e = 15; e > 0; e--) if (o(e)) return e;
|
|
6876
6967
|
} catch {
|
|
@@ -6908,10 +6999,10 @@ Te().name != "Firefox" && J("fonts", (function() {
|
|
|
6908
6999
|
return X(o, void 0, void 0, (function() {
|
|
6909
7000
|
var r, i, a, c;
|
|
6910
7001
|
return Z(this, (function(u) {
|
|
6911
|
-
return r = s.createElement("canvas"), i = r.getContext("2d"), a =
|
|
6912
|
-
return
|
|
6913
|
-
})), c = {},
|
|
6914
|
-
var h =
|
|
7002
|
+
return r = s.createElement("canvas"), i = r.getContext("2d"), a = Sr.map((function(l) {
|
|
7003
|
+
return Rt(i, l);
|
|
7004
|
+
})), c = {}, kr.forEach((function(l) {
|
|
7005
|
+
var h = Rt(i, l);
|
|
6915
7006
|
a.includes(h) || (c[l] = h);
|
|
6916
7007
|
})), e(c), [2];
|
|
6917
7008
|
}));
|
|
@@ -6924,7 +7015,7 @@ Te().name != "Firefox" && J("fonts", (function() {
|
|
|
6924
7015
|
})), J("hardware", (function() {
|
|
6925
7016
|
return new Promise((function(o, e) {
|
|
6926
7017
|
var t = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, n = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
6927
|
-
o({ videocard:
|
|
7018
|
+
o({ videocard: _r(), architecture: $r(), deviceMemory: t.toString() || "undefined", jsHeapSizeLimit: n.jsHeapSizeLimit || 0 });
|
|
6928
7019
|
}));
|
|
6929
7020
|
})), J("locales", (function() {
|
|
6930
7021
|
return new Promise((function(o) {
|
|
@@ -6960,7 +7051,7 @@ Te().name != "Firefox" && J("fonts", (function() {
|
|
|
6960
7051
|
}));
|
|
6961
7052
|
})();
|
|
6962
7053
|
})), [2, Promise.all(o).then((function(t) {
|
|
6963
|
-
return
|
|
7054
|
+
return Ar(t, tt);
|
|
6964
7055
|
}))];
|
|
6965
7056
|
}));
|
|
6966
7057
|
}));
|
|
@@ -6975,23 +7066,23 @@ Te().name != "Firefox" && J("fonts", (function() {
|
|
|
6975
7066
|
}));
|
|
6976
7067
|
})), J("screen", (function() {
|
|
6977
7068
|
return new Promise((function(o) {
|
|
6978
|
-
o({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches:
|
|
7069
|
+
o({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: vr() });
|
|
6979
7070
|
}));
|
|
6980
7071
|
})), J("system", (function() {
|
|
6981
7072
|
return new Promise((function(o) {
|
|
6982
7073
|
var e = Te();
|
|
6983
|
-
o({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: e.name, version: e.version }, applePayVersion:
|
|
7074
|
+
o({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: e.name, version: e.version }, applePayVersion: xr() });
|
|
6984
7075
|
}));
|
|
6985
7076
|
}));
|
|
6986
|
-
var
|
|
7077
|
+
var N, Ir = Te().name !== "SamsungBrowser" ? 1 : 3, m = null;
|
|
6987
7078
|
J("webgl", (function() {
|
|
6988
7079
|
return X(this, void 0, void 0, (function() {
|
|
6989
7080
|
var o;
|
|
6990
7081
|
return Z(this, (function(e) {
|
|
6991
|
-
typeof document < "u" && ((
|
|
7082
|
+
typeof document < "u" && ((N = document.createElement("canvas")).width = 200, N.height = 100, m = N.getContext("webgl"));
|
|
6992
7083
|
try {
|
|
6993
7084
|
if (!m) throw new Error("WebGL not supported");
|
|
6994
|
-
return o = Array.from({ length:
|
|
7085
|
+
return o = Array.from({ length: Ir }, (function() {
|
|
6995
7086
|
return (function() {
|
|
6996
7087
|
try {
|
|
6997
7088
|
if (!m) throw new Error("WebGL not supported");
|
|
@@ -7015,21 +7106,21 @@ J("webgl", (function() {
|
|
|
7015
7106
|
m.useProgram(i);
|
|
7016
7107
|
for (var a = 137, c = new Float32Array(4 * a), u = 2 * Math.PI / a, l = 0; l < a; l++) {
|
|
7017
7108
|
var h = l * u;
|
|
7018
|
-
c[4 * l] = 0, c[4 * l + 1] = 0, c[4 * l + 2] = Math.cos(h) * (
|
|
7109
|
+
c[4 * l] = 0, c[4 * l + 1] = 0, c[4 * l + 2] = Math.cos(h) * (N.width / 2), c[4 * l + 3] = Math.sin(h) * (N.height / 2);
|
|
7019
7110
|
}
|
|
7020
7111
|
var p = m.createBuffer();
|
|
7021
7112
|
m.bindBuffer(m.ARRAY_BUFFER, p), m.bufferData(m.ARRAY_BUFFER, c, m.STATIC_DRAW);
|
|
7022
7113
|
var d = m.getAttribLocation(i, "position");
|
|
7023
|
-
m.enableVertexAttribArray(d), m.vertexAttribPointer(d, 2, m.FLOAT, !1, 0, 0), m.viewport(0, 0,
|
|
7024
|
-
var b = new Uint8ClampedArray(
|
|
7025
|
-
return m.readPixels(0, 0,
|
|
7114
|
+
m.enableVertexAttribArray(d), m.vertexAttribPointer(d, 2, m.FLOAT, !1, 0, 0), m.viewport(0, 0, N.width, N.height), m.clearColor(0, 0, 0, 1), m.clear(m.COLOR_BUFFER_BIT), m.drawArrays(m.LINES, 0, 2 * a);
|
|
7115
|
+
var b = new Uint8ClampedArray(N.width * N.height * 4);
|
|
7116
|
+
return m.readPixels(0, 0, N.width, N.height, m.RGBA, m.UNSIGNED_BYTE, b), new ImageData(b, N.width, N.height);
|
|
7026
7117
|
} catch {
|
|
7027
7118
|
return new ImageData(1, 1);
|
|
7028
7119
|
} finally {
|
|
7029
7120
|
m && (m.bindBuffer(m.ARRAY_BUFFER, null), m.useProgram(null), m.viewport(0, 0, m.drawingBufferWidth, m.drawingBufferHeight), m.clearColor(0, 0, 0, 0));
|
|
7030
7121
|
}
|
|
7031
7122
|
})();
|
|
7032
|
-
})), [2, { commonImageHash: at(
|
|
7123
|
+
})), [2, { commonImageHash: at(Zt(o, N.width, N.height).data.toString()).toString() }];
|
|
7033
7124
|
} catch {
|
|
7034
7125
|
return [2, { webgl: "unsupported" }];
|
|
7035
7126
|
}
|
|
@@ -7049,26 +7140,26 @@ J("math", (function() {
|
|
|
7049
7140
|
}));
|
|
7050
7141
|
}));
|
|
7051
7142
|
}));
|
|
7052
|
-
class
|
|
7143
|
+
class Tr {
|
|
7053
7144
|
constructor({ serverUri: e, socket: t = null, encrypt: n = !1 }) {
|
|
7054
7145
|
this.$__client = this.createUrqlClient({ serverUri: e, socket: t, encrypt: n }), this.$__authToken = "", this.$__pubkey = null, this.$__wallet = null, this.serverUri = e, this.soketi = t, this.cipherLink = !!n, this.$__subscriptionManager = /* @__PURE__ */ new Map();
|
|
7055
7146
|
}
|
|
7056
7147
|
createUrqlClient({ serverUri: e, socket: t, encrypt: n }) {
|
|
7057
|
-
const s = [
|
|
7148
|
+
const s = [nn, sn];
|
|
7058
7149
|
if (t && t.socketUri) {
|
|
7059
|
-
const r =
|
|
7150
|
+
const r = an({
|
|
7060
7151
|
url: t.socketUri,
|
|
7061
7152
|
connectionParams: () => ({
|
|
7062
7153
|
authToken: this.$__authToken
|
|
7063
7154
|
})
|
|
7064
7155
|
});
|
|
7065
|
-
s.push(
|
|
7156
|
+
s.push(rn({
|
|
7066
7157
|
forwardSubscription: (i) => ({
|
|
7067
7158
|
subscribe: (a) => ({ unsubscribe: r.subscribe(i, a) })
|
|
7068
7159
|
})
|
|
7069
7160
|
}));
|
|
7070
7161
|
}
|
|
7071
|
-
return
|
|
7162
|
+
return on({
|
|
7072
7163
|
url: e,
|
|
7073
7164
|
exchanges: s,
|
|
7074
7165
|
fetchOptions: () => ({
|
|
@@ -7096,14 +7187,15 @@ class vr {
|
|
|
7096
7187
|
return this.formatResponse(s);
|
|
7097
7188
|
}
|
|
7098
7189
|
subscribe(e, t) {
|
|
7099
|
-
const { query: n, variables: s, operationName: r } = e,
|
|
7190
|
+
const { query: n, variables: s, operationName: r } = e, i = ln(
|
|
7100
7191
|
this.$__client.subscription(n, s),
|
|
7101
|
-
|
|
7192
|
+
cn((a) => {
|
|
7102
7193
|
t(this.formatResponse(a));
|
|
7194
|
+
}),
|
|
7195
|
+
un(() => {
|
|
7103
7196
|
})
|
|
7104
|
-
)
|
|
7105
|
-
|
|
7106
|
-
return this.$__subscriptionManager.set(r, { unsubscribe: i }), {
|
|
7197
|
+
);
|
|
7198
|
+
return this.$__subscriptionManager.set(r, i), {
|
|
7107
7199
|
unsubscribe: () => this.unsubscribe(r)
|
|
7108
7200
|
};
|
|
7109
7201
|
}
|
|
@@ -7168,7 +7260,7 @@ class vr {
|
|
|
7168
7260
|
});
|
|
7169
7261
|
}
|
|
7170
7262
|
}
|
|
7171
|
-
class
|
|
7263
|
+
class qr {
|
|
7172
7264
|
/**
|
|
7173
7265
|
* Class constructor
|
|
7174
7266
|
*
|
|
@@ -7219,7 +7311,7 @@ class Or {
|
|
|
7219
7311
|
const c = this.$__uris[a];
|
|
7220
7312
|
this.$__authTokenObjects[c] = null;
|
|
7221
7313
|
}
|
|
7222
|
-
this.log("info", `KnishIOClient::initialize() - Initializing new Knish.IO client session for SDK version ${r}...`), this.$__client = s || new
|
|
7314
|
+
this.log("info", `KnishIOClient::initialize() - Initializing new Knish.IO client session for SDK version ${r}...`), this.$__client = s || new Tr({
|
|
7223
7315
|
socket: {
|
|
7224
7316
|
socketUri: null,
|
|
7225
7317
|
appKey: "knishio",
|
|
@@ -7273,7 +7365,7 @@ class Or {
|
|
|
7273
7365
|
* Reset common properties
|
|
7274
7366
|
*/
|
|
7275
7367
|
reset() {
|
|
7276
|
-
this.$__secret = "", this.$__bundle = "", this.remainderWallet = null;
|
|
7368
|
+
this.$__secret = "", this.$__bundle = "", this.remainderWallet = null, this.$__capabilityCache = {};
|
|
7277
7369
|
}
|
|
7278
7370
|
/**
|
|
7279
7371
|
* Returns the currently defined Cell identifier for this session
|
|
@@ -7302,6 +7394,18 @@ class Or {
|
|
|
7302
7394
|
this.$__client.setUri(t);
|
|
7303
7395
|
}
|
|
7304
7396
|
}
|
|
7397
|
+
/**
|
|
7398
|
+
* Sets the WebSocket (subscription) endpoint for this session.
|
|
7399
|
+
*
|
|
7400
|
+
* `setUri()` only updates the HTTP endpoint; the subscription socket is built once
|
|
7401
|
+
* at construction from the `socket.socketUri` passed in. This lets a caller re-point
|
|
7402
|
+
* the socket when the endpoint changes (F-8a, E2E gauntlet 2026-06-02).
|
|
7403
|
+
*
|
|
7404
|
+
* @param {string} socketUri
|
|
7405
|
+
*/
|
|
7406
|
+
setSocketUri(e) {
|
|
7407
|
+
this.$__client && typeof this.$__client.setSocketUri == "function" && this.$__client.setSocketUri({ socketUri: e, appKey: "knishio" });
|
|
7408
|
+
}
|
|
7305
7409
|
/**
|
|
7306
7410
|
* Retrieves the endpoint URI for this session
|
|
7307
7411
|
*
|
|
@@ -7389,10 +7493,10 @@ class Or {
|
|
|
7389
7493
|
* @returns {Promise<string>} A promise that resolves to the device fingerprint as a string.
|
|
7390
7494
|
*/
|
|
7391
7495
|
getFingerprint() {
|
|
7392
|
-
return
|
|
7496
|
+
return yr();
|
|
7393
7497
|
}
|
|
7394
7498
|
getFingerprintData() {
|
|
7395
|
-
return
|
|
7499
|
+
return Gt();
|
|
7396
7500
|
}
|
|
7397
7501
|
/**
|
|
7398
7502
|
* Retrieves this session's wallet used for signing the next Molecule
|
|
@@ -7434,7 +7538,16 @@ class Or {
|
|
|
7434
7538
|
sourceWallet: n = null,
|
|
7435
7539
|
remainderWallet: s = null
|
|
7436
7540
|
}) {
|
|
7437
|
-
|
|
7541
|
+
this.log("info", "KnishIOClient::createMolecule() - Creating a new molecule..."), e = e || this.getSecret(), t = t || this.getBundle();
|
|
7542
|
+
let r = null;
|
|
7543
|
+
if (n && n.token !== "USER")
|
|
7544
|
+
if (this.lastMoleculeQuery && this.getRemainderWallet() && this.getRemainderWallet().token === "USER" && this.lastMoleculeQuery.response() && this.lastMoleculeQuery.response().success())
|
|
7545
|
+
r = this.getRemainderWallet().position;
|
|
7546
|
+
else {
|
|
7547
|
+
const i = await this.getSourceWallet();
|
|
7548
|
+
r = i ? i.position : null;
|
|
7549
|
+
}
|
|
7550
|
+
return !n && this.lastMoleculeQuery && this.getRemainderWallet().token === "USER" && this.lastMoleculeQuery.response() && this.lastMoleculeQuery.response().success() && (n = this.getRemainderWallet()), n === null && (n = await this.getSourceWallet()), this.remainderWallet = s || _.create({
|
|
7438
7551
|
secret: e,
|
|
7439
7552
|
bundle: t,
|
|
7440
7553
|
token: "USER",
|
|
@@ -7445,7 +7558,8 @@ class Or {
|
|
|
7445
7558
|
sourceWallet: n,
|
|
7446
7559
|
remainderWallet: this.getRemainderWallet(),
|
|
7447
7560
|
cellSlug: this.getCellSlug(),
|
|
7448
|
-
version: this.getServerSdkVersion()
|
|
7561
|
+
version: this.getServerSdkVersion(),
|
|
7562
|
+
continuIdPosition: r
|
|
7449
7563
|
});
|
|
7450
7564
|
}
|
|
7451
7565
|
/**
|
|
@@ -7478,7 +7592,7 @@ class Or {
|
|
|
7478
7592
|
}) {
|
|
7479
7593
|
this.log("info", `KnishIOClient::createMoleculeQuery() - Creating a new ${e.name} query...`);
|
|
7480
7594
|
const n = t || await this.createMolecule({}), s = new e(this.client(), this, n);
|
|
7481
|
-
if (!(s instanceof
|
|
7595
|
+
if (!(s instanceof q))
|
|
7482
7596
|
throw new ee(`${this.constructor.name}::createMoleculeMutation() - This method only accepts MutationProposeMolecule!`);
|
|
7483
7597
|
return this.lastMoleculeQuery = s, s;
|
|
7484
7598
|
}
|
|
@@ -7541,7 +7655,7 @@ class Or {
|
|
|
7541
7655
|
bundle: t = null,
|
|
7542
7656
|
type: n = "regular"
|
|
7543
7657
|
}) {
|
|
7544
|
-
const s = this.createQuery(
|
|
7658
|
+
const s = this.createQuery(ys);
|
|
7545
7659
|
return this.executeQuery(s, {
|
|
7546
7660
|
bundleHash: t || this.getBundle(),
|
|
7547
7661
|
token: e,
|
|
@@ -7579,7 +7693,7 @@ class Or {
|
|
|
7579
7693
|
bundle: e,
|
|
7580
7694
|
closure: t
|
|
7581
7695
|
}) {
|
|
7582
|
-
return await this.createSubscribe(
|
|
7696
|
+
return await this.createSubscribe(Qs).execute({
|
|
7583
7697
|
variables: {
|
|
7584
7698
|
bundle: e || this.getBundle()
|
|
7585
7699
|
},
|
|
@@ -7601,7 +7715,7 @@ class Or {
|
|
|
7601
7715
|
}) {
|
|
7602
7716
|
if (!t)
|
|
7603
7717
|
throw new ee(`${this.constructor.name}::subscribeWalletStatus() - Token parameter is required!`);
|
|
7604
|
-
return this.createSubscribe(
|
|
7718
|
+
return this.createSubscribe(js).execute({
|
|
7605
7719
|
variables: {
|
|
7606
7720
|
bundle: e || this.getBundle(),
|
|
7607
7721
|
token: t
|
|
@@ -7620,7 +7734,7 @@ class Or {
|
|
|
7620
7734
|
bundle: e,
|
|
7621
7735
|
closure: t
|
|
7622
7736
|
}) {
|
|
7623
|
-
return this.createSubscribe(
|
|
7737
|
+
return this.createSubscribe(Ds).execute({
|
|
7624
7738
|
variables: {
|
|
7625
7739
|
bundle: e || this.getBundle()
|
|
7626
7740
|
},
|
|
@@ -7640,7 +7754,7 @@ class Or {
|
|
|
7640
7754
|
metaId: t,
|
|
7641
7755
|
closure: n
|
|
7642
7756
|
}) {
|
|
7643
|
-
return this.createSubscribe(
|
|
7757
|
+
return this.createSubscribe(Vs).execute({
|
|
7644
7758
|
variables: {
|
|
7645
7759
|
metaType: e,
|
|
7646
7760
|
metaId: t
|
|
@@ -7749,6 +7863,54 @@ class Or {
|
|
|
7749
7863
|
const t = await this.queryMeta(e), n = t.payload();
|
|
7750
7864
|
return n && (n.integrity = t.verifyIntegrity()), t;
|
|
7751
7865
|
}
|
|
7866
|
+
/**
|
|
7867
|
+
* Probes the connected server to check whether it supports a named root query field.
|
|
7868
|
+
* Result is cached per URI so the network round-trip happens at most once per URI.
|
|
7869
|
+
*
|
|
7870
|
+
* Uses GraphQL introspection which is universally supported by spec-compliant servers.
|
|
7871
|
+
*
|
|
7872
|
+
* @param {string} fieldName - The root Query field name to check (e.g. 'embeddingStatus')
|
|
7873
|
+
* @return {Promise<boolean>}
|
|
7874
|
+
*/
|
|
7875
|
+
async hasQueryField(e) {
|
|
7876
|
+
var s, r, i;
|
|
7877
|
+
const n = `${this.getUri()}::${e}`;
|
|
7878
|
+
if (typeof this.$__capabilityCache[n] == "boolean")
|
|
7879
|
+
return this.$__capabilityCache[n];
|
|
7880
|
+
try {
|
|
7881
|
+
const a = await this.$__client.query({
|
|
7882
|
+
query: "{ __schema { queryType { fields { name } } } }",
|
|
7883
|
+
variables: {}
|
|
7884
|
+
}), u = (((i = (r = (s = a == null ? void 0 : a.data) == null ? void 0 : s.__schema) == null ? void 0 : r.queryType) == null ? void 0 : i.fields) || []).some((l) => l.name === e);
|
|
7885
|
+
return this.$__capabilityCache[n] = u, u;
|
|
7886
|
+
} catch (a) {
|
|
7887
|
+
return this.log("warn", `KnishIOClient::hasQueryField() - Capability probe for '${e}' failed: ${a.message}`), this.$__capabilityCache[n] = !1, !1;
|
|
7888
|
+
}
|
|
7889
|
+
}
|
|
7890
|
+
/**
|
|
7891
|
+
* Queries embedding status for one or more meta instances (DataBraid observability).
|
|
7892
|
+
*
|
|
7893
|
+
* If the connected server does not support the embeddingStatus query,
|
|
7894
|
+
* returns null without throwing an error (graceful degradation).
|
|
7895
|
+
*
|
|
7896
|
+
* Single mode: queryEmbeddingStatus({ metaType: 'product', metaId: 'SKU-001' })
|
|
7897
|
+
* Bulk mode: queryEmbeddingStatus({ instances: [{ metaType: 'product', metaId: 'SKU-001' }, ...] })
|
|
7898
|
+
*
|
|
7899
|
+
* @param {string|null} metaType - Metadata type (single-instance mode)
|
|
7900
|
+
* @param {string|null} metaId - Instance identifier (single-instance mode)
|
|
7901
|
+
* @param {Array<{metaType: string, metaId: string}>|null} instances - Bulk mode input
|
|
7902
|
+
* @return {Promise<ResponseEmbeddingStatus|null>} Response with payload(), or null if unsupported
|
|
7903
|
+
*/
|
|
7904
|
+
async queryEmbeddingStatus({
|
|
7905
|
+
metaType: e = null,
|
|
7906
|
+
metaId: t = null,
|
|
7907
|
+
instances: n = null
|
|
7908
|
+
}) {
|
|
7909
|
+
if (this.log("info", `KnishIOClient::queryEmbeddingStatus() - Checking embedding status for metaType: ${e || "(bulk)"}...`), !await this.hasQueryField("embeddingStatus"))
|
|
7910
|
+
return this.log("warn", "KnishIOClient::queryEmbeddingStatus() - Server does not support embeddingStatus query. Returning null."), null;
|
|
7911
|
+
const r = this.createQuery(Ct), i = Ct.createVariables({ metaType: e, metaId: t, instances: n });
|
|
7912
|
+
return this.executeQuery(r, i);
|
|
7913
|
+
}
|
|
7752
7914
|
/**
|
|
7753
7915
|
* Query batch to get cascading meta instances by batchID
|
|
7754
7916
|
*
|
|
@@ -7774,7 +7936,7 @@ class Or {
|
|
|
7774
7936
|
batchId: e
|
|
7775
7937
|
}) {
|
|
7776
7938
|
this.log("info", `KnishIOClient::queryBatchHistory() - Querying cascading meta instances for batchId: ${e}...`);
|
|
7777
|
-
const t = this.createQuery(
|
|
7939
|
+
const t = this.createQuery(bs);
|
|
7778
7940
|
return await this.executeQuery(t, {
|
|
7779
7941
|
batchId: e
|
|
7780
7942
|
});
|
|
@@ -7840,7 +8002,7 @@ class Or {
|
|
|
7840
8002
|
indexes: v,
|
|
7841
8003
|
index: I,
|
|
7842
8004
|
filter: S,
|
|
7843
|
-
latest:
|
|
8005
|
+
latest: U,
|
|
7844
8006
|
queryArgs: R = {
|
|
7845
8007
|
limit: 15,
|
|
7846
8008
|
offset: 1
|
|
@@ -7874,7 +8036,7 @@ class Or {
|
|
|
7874
8036
|
indexes: v,
|
|
7875
8037
|
index: I,
|
|
7876
8038
|
filter: S,
|
|
7877
|
-
latest:
|
|
8039
|
+
latest: U,
|
|
7878
8040
|
queryArgs: R
|
|
7879
8041
|
}));
|
|
7880
8042
|
}
|
|
@@ -7891,7 +8053,7 @@ class Or {
|
|
|
7891
8053
|
secret: this.getSecret(),
|
|
7892
8054
|
token: e
|
|
7893
8055
|
}), n = await this.createMoleculeMutation({
|
|
7894
|
-
mutationClass:
|
|
8056
|
+
mutationClass: Ks
|
|
7895
8057
|
});
|
|
7896
8058
|
return n.fillMolecule(t), await this.executeQuery(n);
|
|
7897
8059
|
}
|
|
@@ -7908,7 +8070,7 @@ class Or {
|
|
|
7908
8070
|
metaType: t,
|
|
7909
8071
|
metaId: n
|
|
7910
8072
|
}) {
|
|
7911
|
-
const s = this.createQuery(
|
|
8073
|
+
const s = this.createQuery(Xs);
|
|
7912
8074
|
return await this.executeQuery(s, {
|
|
7913
8075
|
bundleHash: e,
|
|
7914
8076
|
metaType: t,
|
|
@@ -7943,7 +8105,7 @@ class Or {
|
|
|
7943
8105
|
countBy: u,
|
|
7944
8106
|
interval: l
|
|
7945
8107
|
}) {
|
|
7946
|
-
const h = this.createQuery(
|
|
8108
|
+
const h = this.createQuery(Ys);
|
|
7947
8109
|
return await this.executeQuery(h, {
|
|
7948
8110
|
bundleHash: e,
|
|
7949
8111
|
metaType: t,
|
|
@@ -7983,7 +8145,7 @@ class Or {
|
|
|
7983
8145
|
timeZone: c,
|
|
7984
8146
|
json: u = {}
|
|
7985
8147
|
}) {
|
|
7986
|
-
const l = this.createQuery(
|
|
8148
|
+
const l = this.createQuery(Js);
|
|
7987
8149
|
return await this.executeQuery(l, {
|
|
7988
8150
|
bundleHash: e,
|
|
7989
8151
|
metaType: t,
|
|
@@ -8021,7 +8183,7 @@ class Or {
|
|
|
8021
8183
|
const i = T.get(n || {}, "fungibility");
|
|
8022
8184
|
if (i === "stackable" && (n.batchId = s || he({})), ["nonfungible", "stackable"].includes(i) && r.length > 0) {
|
|
8023
8185
|
if (T.get(n || {}, "decimals") > 0)
|
|
8024
|
-
throw new
|
|
8186
|
+
throw new Ls();
|
|
8025
8187
|
if (t > 0)
|
|
8026
8188
|
throw new Re();
|
|
8027
8189
|
t = r.length, n.splittable = 1, n.decimals = 0, n.tokenUnits = JSON.stringify(r);
|
|
@@ -8032,7 +8194,7 @@ class Or {
|
|
|
8032
8194
|
token: e,
|
|
8033
8195
|
batchId: s
|
|
8034
8196
|
}), c = await this.createMoleculeMutation({
|
|
8035
|
-
mutationClass:
|
|
8197
|
+
mutationClass: _s
|
|
8036
8198
|
});
|
|
8037
8199
|
return c.fillMolecule({
|
|
8038
8200
|
recipientWallet: a,
|
|
@@ -8057,7 +8219,7 @@ class Or {
|
|
|
8057
8219
|
}) {
|
|
8058
8220
|
const r = await this.createMoleculeMutation(
|
|
8059
8221
|
{
|
|
8060
|
-
mutationClass:
|
|
8222
|
+
mutationClass: ar,
|
|
8061
8223
|
molecule: await this.createMolecule({
|
|
8062
8224
|
secret: this.getSecret()
|
|
8063
8225
|
})
|
|
@@ -8087,7 +8249,7 @@ class Or {
|
|
|
8087
8249
|
}) {
|
|
8088
8250
|
const r = await this.createMoleculeMutation(
|
|
8089
8251
|
{
|
|
8090
|
-
mutationClass:
|
|
8252
|
+
mutationClass: Os,
|
|
8091
8253
|
molecule: await this.createMolecule({
|
|
8092
8254
|
secret: this.getSecret()
|
|
8093
8255
|
})
|
|
@@ -8110,7 +8272,7 @@ class Or {
|
|
|
8110
8272
|
host: e
|
|
8111
8273
|
}) {
|
|
8112
8274
|
const t = await this.createMoleculeMutation({
|
|
8113
|
-
mutationClass:
|
|
8275
|
+
mutationClass: Ws,
|
|
8114
8276
|
molecule: await this.createMolecule({
|
|
8115
8277
|
secret: this.getSecret()
|
|
8116
8278
|
})
|
|
@@ -8135,7 +8297,7 @@ class Or {
|
|
|
8135
8297
|
meta: s = {}
|
|
8136
8298
|
}) {
|
|
8137
8299
|
const r = await this.createMoleculeMutation({
|
|
8138
|
-
mutationClass:
|
|
8300
|
+
mutationClass: Us,
|
|
8139
8301
|
molecule: await this.createMolecule({
|
|
8140
8302
|
secret: this.getSecret()
|
|
8141
8303
|
})
|
|
@@ -8161,7 +8323,7 @@ class Or {
|
|
|
8161
8323
|
code: n
|
|
8162
8324
|
}) {
|
|
8163
8325
|
const s = await this.createMoleculeMutation({
|
|
8164
|
-
mutationClass:
|
|
8326
|
+
mutationClass: Ts
|
|
8165
8327
|
});
|
|
8166
8328
|
return s.fillMolecule({
|
|
8167
8329
|
type: e,
|
|
@@ -8180,7 +8342,7 @@ class Or {
|
|
|
8180
8342
|
type: e,
|
|
8181
8343
|
contact: t
|
|
8182
8344
|
}) {
|
|
8183
|
-
const n = this.createQuery(
|
|
8345
|
+
const n = this.createQuery(Hs);
|
|
8184
8346
|
return await this.executeQuery(n, {
|
|
8185
8347
|
bundle: this.getBundle(),
|
|
8186
8348
|
type: e,
|
|
@@ -8211,7 +8373,7 @@ class Or {
|
|
|
8211
8373
|
bundle: this.getBundle()
|
|
8212
8374
|
}), s.check();
|
|
8213
8375
|
const r = await this.createMoleculeMutation({
|
|
8214
|
-
mutationClass:
|
|
8376
|
+
mutationClass: q,
|
|
8215
8377
|
molecule: s
|
|
8216
8378
|
});
|
|
8217
8379
|
return await this.executeQuery(r);
|
|
@@ -8227,7 +8389,7 @@ class Or {
|
|
|
8227
8389
|
metaType: e,
|
|
8228
8390
|
metaId: t
|
|
8229
8391
|
}) {
|
|
8230
|
-
const n = this.createQuery(
|
|
8392
|
+
const n = this.createQuery(sr);
|
|
8231
8393
|
return await this.executeQuery(n, {
|
|
8232
8394
|
metaType: e,
|
|
8233
8395
|
metaId: t
|
|
@@ -8249,7 +8411,7 @@ class Or {
|
|
|
8249
8411
|
unspent: n = !0
|
|
8250
8412
|
}) {
|
|
8251
8413
|
this.log("info", `KnishIOClient::queryWallets() - Querying wallets${e ? ` for ${e}` : ""}...`);
|
|
8252
|
-
const s = this.createQuery(
|
|
8414
|
+
const s = this.createQuery(fs);
|
|
8253
8415
|
return this.executeQuery(s, {
|
|
8254
8416
|
bundleHash: e || this.getBundle(),
|
|
8255
8417
|
token: t,
|
|
@@ -8271,7 +8433,7 @@ class Or {
|
|
|
8271
8433
|
raw: n = !1
|
|
8272
8434
|
}) {
|
|
8273
8435
|
this.log("info", `KnishIOClient::queryBundle() - Querying wallet bundle metadata${e ? ` for ${e}` : ""}...`), e || (e = this.getBundle()), typeof e == "string" && (e = [e]);
|
|
8274
|
-
const s = this.createQuery(
|
|
8436
|
+
const s = this.createQuery(ps);
|
|
8275
8437
|
return this.executeQuery(s, { bundleHashes: e }).then((r) => n ? r : r.payload());
|
|
8276
8438
|
}
|
|
8277
8439
|
/**
|
|
@@ -8283,7 +8445,7 @@ class Or {
|
|
|
8283
8445
|
async queryContinuId({
|
|
8284
8446
|
bundle: e
|
|
8285
8447
|
}) {
|
|
8286
|
-
const t = this.createQuery(
|
|
8448
|
+
const t = this.createQuery(hs);
|
|
8287
8449
|
return this.executeQuery(t, {
|
|
8288
8450
|
bundle: e
|
|
8289
8451
|
});
|
|
@@ -8315,7 +8477,7 @@ class Or {
|
|
|
8315
8477
|
}) {
|
|
8316
8478
|
let a, c;
|
|
8317
8479
|
r = r || {};
|
|
8318
|
-
const u = this.createQuery(
|
|
8480
|
+
const u = this.createQuery(er), l = await this.executeQuery(u, {
|
|
8319
8481
|
slug: e
|
|
8320
8482
|
}), h = T.get(l.data(), "0.fungibility") === "stackable";
|
|
8321
8483
|
if (!h && i !== null)
|
|
@@ -8330,7 +8492,7 @@ class Or {
|
|
|
8330
8492
|
token: e
|
|
8331
8493
|
})), t instanceof _ && (a = "wallet", r.position = t.position, r.bundle = t.bundle, c = t.address)) : (a = "walletBundle", c = this.getBundle());
|
|
8332
8494
|
const p = await this.createMoleculeMutation({
|
|
8333
|
-
mutationClass:
|
|
8495
|
+
mutationClass: As
|
|
8334
8496
|
});
|
|
8335
8497
|
return p.fillMolecule({
|
|
8336
8498
|
token: e,
|
|
@@ -8356,7 +8518,7 @@ class Or {
|
|
|
8356
8518
|
molecule: n = null
|
|
8357
8519
|
}) {
|
|
8358
8520
|
const s = await this.createMoleculeMutation({
|
|
8359
|
-
mutationClass:
|
|
8521
|
+
mutationClass: Cs,
|
|
8360
8522
|
molecule: n
|
|
8361
8523
|
});
|
|
8362
8524
|
return s.fillMolecule({
|
|
@@ -8441,7 +8603,7 @@ class Or {
|
|
|
8441
8603
|
sourceWallet: i,
|
|
8442
8604
|
remainderWallet: c
|
|
8443
8605
|
}), l = await this.createMoleculeMutation({
|
|
8444
|
-
mutationClass:
|
|
8606
|
+
mutationClass: xs,
|
|
8445
8607
|
molecule: u
|
|
8446
8608
|
});
|
|
8447
8609
|
return l.fillMolecule({
|
|
@@ -8474,7 +8636,7 @@ class Or {
|
|
|
8474
8636
|
sourceWallet: s,
|
|
8475
8637
|
remainderWallet: r
|
|
8476
8638
|
}), a = await this.createMoleculeMutation({
|
|
8477
|
-
mutationClass:
|
|
8639
|
+
mutationClass: lr,
|
|
8478
8640
|
molecule: i
|
|
8479
8641
|
});
|
|
8480
8642
|
return a.fillMolecule({
|
|
@@ -8507,7 +8669,7 @@ class Or {
|
|
|
8507
8669
|
sourceWallet: n,
|
|
8508
8670
|
remainderWallet: r
|
|
8509
8671
|
}), a = await this.createMoleculeMutation({
|
|
8510
|
-
mutationClass:
|
|
8672
|
+
mutationClass: cr,
|
|
8511
8673
|
molecule: i
|
|
8512
8674
|
}), c = {};
|
|
8513
8675
|
return c[this.getBundle()] = t, a.fillMolecule({
|
|
@@ -8549,9 +8711,9 @@ class Or {
|
|
|
8549
8711
|
});
|
|
8550
8712
|
i.burnToken({ amount: t }), i.sign({
|
|
8551
8713
|
bundle: this.getBundle()
|
|
8552
|
-
}), i.check();
|
|
8714
|
+
}), i.check(s);
|
|
8553
8715
|
const a = await this.createMoleculeMutation({
|
|
8554
|
-
mutationClass:
|
|
8716
|
+
mutationClass: q,
|
|
8555
8717
|
molecule: i
|
|
8556
8718
|
});
|
|
8557
8719
|
return this.executeQuery(a);
|
|
@@ -8584,7 +8746,7 @@ class Or {
|
|
|
8584
8746
|
bundle: this.getBundle()
|
|
8585
8747
|
}), i.check();
|
|
8586
8748
|
const a = await this.createMoleculeMutation({
|
|
8587
|
-
mutationClass:
|
|
8749
|
+
mutationClass: q,
|
|
8588
8750
|
molecule: i
|
|
8589
8751
|
});
|
|
8590
8752
|
return this.executeQuery(a);
|
|
@@ -8633,7 +8795,7 @@ class Or {
|
|
|
8633
8795
|
bundle: this.getBundle()
|
|
8634
8796
|
}), u.check();
|
|
8635
8797
|
const l = await this.createMoleculeMutation({
|
|
8636
|
-
mutationClass:
|
|
8798
|
+
mutationClass: q,
|
|
8637
8799
|
molecule: u
|
|
8638
8800
|
});
|
|
8639
8801
|
return this.executeQuery(l);
|
|
@@ -8653,7 +8815,7 @@ class Or {
|
|
|
8653
8815
|
const n = new _({
|
|
8654
8816
|
secret: nt(await this.getFingerprint()),
|
|
8655
8817
|
token: "AUTH"
|
|
8656
|
-
}), s = await this.createQuery(
|
|
8818
|
+
}), s = await this.createQuery(Fs), r = {
|
|
8657
8819
|
cellSlug: e,
|
|
8658
8820
|
pubkey: n.pubkey,
|
|
8659
8821
|
encrypt: t
|
|
@@ -8689,7 +8851,7 @@ class Or {
|
|
|
8689
8851
|
secret: e,
|
|
8690
8852
|
sourceWallet: n
|
|
8691
8853
|
}), r = await this.createMoleculeMutation({
|
|
8692
|
-
mutationClass:
|
|
8854
|
+
mutationClass: ks,
|
|
8693
8855
|
molecule: s
|
|
8694
8856
|
});
|
|
8695
8857
|
r.fillMolecule({ meta: { encrypt: t ? "true" : "false" } });
|
|
@@ -8775,7 +8937,7 @@ class Or {
|
|
|
8775
8937
|
}
|
|
8776
8938
|
}
|
|
8777
8939
|
}
|
|
8778
|
-
class
|
|
8940
|
+
class Ur extends E {
|
|
8779
8941
|
/**
|
|
8780
8942
|
* Class constructor
|
|
8781
8943
|
*
|
|
@@ -8858,106 +9020,108 @@ export {
|
|
|
8858
9020
|
de as Decimal,
|
|
8859
9021
|
T as Dot,
|
|
8860
9022
|
te as InvalidResponseException,
|
|
8861
|
-
|
|
9023
|
+
qr as KnishIOClient,
|
|
8862
9024
|
pe as Meta,
|
|
8863
9025
|
H as MetaMissingException,
|
|
8864
|
-
|
|
8865
|
-
|
|
9026
|
+
os as MolecularHashMismatchException,
|
|
9027
|
+
as as MolecularHashMissingException,
|
|
8866
9028
|
z as Molecule,
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
9029
|
+
Qe as Mutation,
|
|
9030
|
+
Js as MutationActiveSession,
|
|
9031
|
+
Us as MutationAppendRequest,
|
|
9032
|
+
Cs as MutationClaimShadowWallet,
|
|
9033
|
+
Ts as MutationCreateIdentifier,
|
|
9034
|
+
Os as MutationCreateMeta,
|
|
9035
|
+
ar as MutationCreateRule,
|
|
9036
|
+
_s as MutationCreateToken,
|
|
9037
|
+
Ks as MutationCreateWallet,
|
|
9038
|
+
lr as MutationDepositBufferToken,
|
|
9039
|
+
Hs as MutationLinkIdentifier,
|
|
9040
|
+
Ws as MutationPeering,
|
|
9041
|
+
q as MutationProposeMolecule,
|
|
9042
|
+
ks as MutationRequestAuthorization,
|
|
9043
|
+
Fs as MutationRequestAuthorizationGuest,
|
|
9044
|
+
As as MutationRequestTokens,
|
|
9045
|
+
xs as MutationTransferTokens,
|
|
9046
|
+
cr as MutationWithdrawBufferToken,
|
|
8885
9047
|
Ye as NegativeAmountException,
|
|
8886
9048
|
kt as PolicyInvalidException,
|
|
8887
9049
|
rt as PolicyMeta,
|
|
8888
|
-
|
|
8889
|
-
|
|
9050
|
+
K as Query,
|
|
9051
|
+
Xs as QueryActiveSession,
|
|
8890
9052
|
It as QueryAtom,
|
|
8891
|
-
|
|
9053
|
+
ys as QueryBalance,
|
|
8892
9054
|
Ie as QueryBatch,
|
|
8893
|
-
|
|
8894
|
-
|
|
9055
|
+
bs as QueryBatchHistory,
|
|
9056
|
+
hs as QueryContinuId,
|
|
9057
|
+
Ct as QueryEmbeddingStatus,
|
|
8895
9058
|
At as QueryMetaType,
|
|
8896
9059
|
Tt as QueryMetaTypeViaAtom,
|
|
8897
9060
|
Mt as QueryMetaTypeViaMolecule,
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
9061
|
+
sr as QueryPolicy,
|
|
9062
|
+
er as QueryToken,
|
|
9063
|
+
Ys as QueryUserActivity,
|
|
9064
|
+
ps as QueryWalletBundle,
|
|
9065
|
+
fs as QueryWalletList,
|
|
8903
9066
|
E as Response,
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
9067
|
+
zs as ResponseActiveSession,
|
|
9068
|
+
qs as ResponseAppendRequest,
|
|
9069
|
+
tr as ResponseAtom,
|
|
9070
|
+
Ur as ResponseAuthorizationGuest,
|
|
9071
|
+
ms as ResponseBalance,
|
|
9072
|
+
Ms as ResponseClaimShadowWallet,
|
|
9073
|
+
us as ResponseContinuId,
|
|
9074
|
+
Is as ResponseCreateIdentifier,
|
|
9075
|
+
Es as ResponseCreateMeta,
|
|
9076
|
+
or as ResponseCreateRule,
|
|
9077
|
+
Ss as ResponseCreateToken,
|
|
9078
|
+
Ps as ResponseCreateWallet,
|
|
9079
|
+
ir as ResponseEmbeddingStatus,
|
|
9080
|
+
Bs as ResponseLinkIdentifier,
|
|
9081
|
+
gs as ResponseMetaType,
|
|
9082
|
+
rr as ResponseMetaTypeViaAtom,
|
|
8919
9083
|
ot as ResponseMetaTypeViaMolecule,
|
|
8920
|
-
|
|
8921
|
-
|
|
9084
|
+
Rs as ResponsePeering,
|
|
9085
|
+
nr as ResponsePolicy,
|
|
8922
9086
|
V as ResponseProposeMolecule,
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
9087
|
+
Gs as ResponseQueryActiveSession,
|
|
9088
|
+
Zs as ResponseQueryUserActivity,
|
|
9089
|
+
ws as ResponseRequestAuthorization,
|
|
9090
|
+
Ns as ResponseRequestAuthorizationGuest,
|
|
9091
|
+
$s as ResponseRequestTokens,
|
|
9092
|
+
vs as ResponseTransferTokens,
|
|
9093
|
+
ds as ResponseWalletBundle,
|
|
8930
9094
|
Le as ResponseWalletList,
|
|
8931
|
-
|
|
8932
|
-
|
|
9095
|
+
zt as SignatureMalformedException,
|
|
9096
|
+
ls as SignatureMismatchException,
|
|
8933
9097
|
Re as StackableUnitAmountException,
|
|
8934
|
-
|
|
9098
|
+
Ls as StackableUnitDecimalsException,
|
|
8935
9099
|
me as TokenUnit,
|
|
8936
9100
|
Y as TransferBalanceException,
|
|
8937
9101
|
Se as TransferMalformedException,
|
|
8938
9102
|
St as TransferMismatchedException,
|
|
8939
9103
|
_t as TransferRemainderException,
|
|
8940
|
-
|
|
9104
|
+
cs as TransferToSelfException,
|
|
8941
9105
|
Oe as TransferUnbalancedException,
|
|
8942
9106
|
Ke as UnauthenticatedException,
|
|
8943
9107
|
_ as Wallet,
|
|
8944
9108
|
vt as WalletShadowException,
|
|
8945
9109
|
re as WrongTokenTypeException,
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
9110
|
+
mn as base64ToHex,
|
|
9111
|
+
dn as bufferToHexString,
|
|
9112
|
+
hn as charsetBaseConvert,
|
|
9113
|
+
gn as chunkArray,
|
|
8950
9114
|
He as chunkSubstr,
|
|
8951
|
-
|
|
8952
|
-
|
|
9115
|
+
bn as deepCloning,
|
|
9116
|
+
wn as diff,
|
|
8953
9117
|
he as generateBatchId,
|
|
8954
9118
|
fe as generateBundleHash,
|
|
8955
9119
|
nt as generateSecret,
|
|
8956
|
-
|
|
8957
|
-
|
|
9120
|
+
pn as hexStringToBuffer,
|
|
9121
|
+
fn as hexToBase64,
|
|
8958
9122
|
ye as intersect,
|
|
8959
9123
|
Ve as isHex,
|
|
8960
|
-
|
|
9124
|
+
yn as isNumeric,
|
|
8961
9125
|
st as randomString,
|
|
8962
9126
|
lt as shake256
|
|
8963
9127
|
};
|