@coinbase/cdp-core 0.0.87 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.native10.js +1 -1
- package/dist/esm/index.native101.js +2 -2
- package/dist/esm/index.native105.js +3 -3
- package/dist/esm/index.native106.js +31 -2
- package/dist/esm/index.native107.js +28 -65
- package/dist/esm/index.native108.js +2 -367
- package/dist/esm/index.native109.js +65 -28
- package/dist/esm/index.native110.js +364 -28
- package/dist/esm/index.native122.js +5 -35
- package/dist/esm/index.native123.js +40 -60
- package/dist/esm/index.native124.js +35 -5
- package/dist/esm/index.native125.js +60 -40
- package/dist/esm/index.native197.js +37 -107
- package/dist/esm/index.native199.js +69 -7
- package/dist/esm/index.native2.js +35 -30
- package/dist/esm/index.native200.js +35 -2
- package/dist/esm/index.native201.js +17 -374
- package/dist/esm/index.native202.js +7 -835
- package/dist/esm/index.native203.js +2 -39
- package/dist/esm/index.native204.js +378 -2
- package/dist/esm/index.native205.js +835 -69
- package/dist/esm/index.native206.js +106 -32
- package/dist/esm/index.native207.js +2 -21
- package/dist/esm/index.native222.js +2 -2
- package/dist/esm/index.native223.js +2 -2
- package/dist/esm/index.native224.js +2 -2
- package/dist/esm/index.native225.js +1 -1
- package/dist/esm/index.native3.js +1 -1
- package/dist/esm/index.native67.js +97 -60
- package/dist/esm/index.native9.js +1 -1
- package/dist/esm/index.native90.js +2 -2
- package/dist/esm/index.web102.js +12 -12
- package/dist/esm/index.web106.js +3 -3
- package/dist/esm/index.web107.js +2 -31
- package/dist/esm/index.web108.js +65 -28
- package/dist/esm/index.web109.js +367 -2
- package/dist/esm/index.web110.js +28 -65
- package/dist/esm/index.web111.js +28 -364
- package/dist/esm/index.web116.js +1 -1
- package/dist/esm/index.web117.js +2 -2
- package/dist/esm/index.web123.js +1 -1
- package/dist/esm/index.web127.js +4 -17
- package/dist/esm/index.web128.js +16 -44
- package/dist/esm/index.web129.js +45 -13
- package/dist/esm/index.web130.js +13 -55
- package/dist/esm/index.web131.js +55 -6
- package/dist/esm/index.web132.js +6 -21
- package/dist/esm/index.web133.js +21 -3
- package/dist/esm/index.web134.js +3 -3
- package/dist/esm/index.web135.js +3 -34
- package/dist/esm/index.web136.js +32 -10
- package/dist/esm/index.web137.js +12 -4
- package/dist/esm/index.web138.js +4 -28
- package/dist/esm/index.web139.js +28 -6
- package/dist/esm/index.web140.js +6 -42
- package/dist/esm/index.web141.js +41 -54
- package/dist/esm/index.web142.js +54 -126
- package/dist/esm/index.web143.js +127 -23
- package/dist/esm/index.web144.js +22 -11
- package/dist/esm/index.web145.js +9 -101
- package/dist/esm/index.web146.js +104 -6
- package/dist/esm/index.web147.js +7 -3
- package/dist/esm/index.web148.js +3 -15
- package/dist/esm/index.web149.js +14 -34
- package/dist/esm/index.web150.js +31 -75
- package/dist/esm/index.web151.js +79 -2
- package/dist/esm/index.web152.js +2 -2
- package/dist/esm/index.web153.js +2 -38
- package/dist/esm/index.web154.js +36 -5
- package/dist/esm/index.web155.js +5 -33
- package/dist/esm/index.web156.js +34 -8
- package/dist/esm/index.web157.js +8 -10
- package/dist/esm/index.web158.js +10 -11
- package/dist/esm/index.web159.js +11 -13
- package/dist/esm/index.web160.js +13 -18
- package/dist/esm/index.web161.js +18 -5
- package/dist/esm/index.web162.js +6 -5
- package/dist/esm/index.web163.js +5 -11
- package/dist/esm/index.web164.js +10 -4
- package/dist/esm/index.web165.js +14 -103
- package/dist/esm/index.web166.js +27 -77
- package/dist/esm/index.web167.js +7 -79
- package/dist/esm/index.web168.js +3 -14
- package/dist/esm/index.web169.js +16 -16
- package/dist/esm/index.web170.js +8 -7
- package/dist/esm/index.web171.js +7 -3
- package/dist/esm/index.web172.js +70 -18
- package/dist/esm/index.web173.js +28 -8
- package/dist/esm/index.web174.js +3 -7
- package/dist/esm/index.web175.js +7 -72
- package/dist/esm/index.web176.js +4 -28
- package/dist/esm/index.web177.js +14 -3
- package/dist/esm/index.web178.js +19 -15
- package/dist/esm/index.web179.js +61 -4
- package/dist/esm/index.web180.js +16 -13
- package/dist/esm/index.web181.js +19 -15
- package/dist/esm/index.web182.js +8 -61
- package/dist/esm/index.web183.js +41 -16
- package/dist/esm/index.web184.js +7 -23
- package/dist/esm/index.web185.js +20 -8
- package/dist/esm/index.web186.js +102 -41
- package/dist/esm/index.web187.js +78 -7
- package/dist/esm/index.web188.js +79 -20
- package/dist/esm/index.web189.js +1 -1
- package/dist/esm/index.web190.js +3 -3
- package/dist/esm/index.web192.js +3 -3
- package/dist/esm/index.web194.js +3 -3
- package/dist/esm/index.web195.js +2 -8
- package/dist/esm/index.web196.js +109 -2
- package/dist/esm/index.web197.js +2 -378
- package/dist/esm/index.web198.js +7 -835
- package/dist/esm/index.web199.js +2 -39
- package/dist/esm/index.web2.js +34 -29
- package/dist/esm/index.web200.js +378 -2
- package/dist/esm/index.web201.js +835 -69
- package/dist/esm/index.web202.js +37 -33
- package/dist/esm/index.web203.js +2 -21
- package/dist/esm/index.web204.js +70 -2
- package/dist/esm/index.web205.js +34 -20
- package/dist/esm/index.web206.js +19 -18
- package/dist/esm/index.web207.js +2 -33
- package/dist/esm/index.web208.js +20 -6
- package/dist/esm/index.web209.js +20 -2
- package/dist/esm/index.web210.js +31 -107
- package/dist/esm/index.web211.js +7 -2
- package/dist/esm/index.web213.js +47 -2
- package/dist/esm/index.web214.js +18 -2
- package/dist/esm/index.web215.js +28 -2
- package/dist/esm/index.web216.js +8 -18
- package/dist/esm/index.web217.js +9 -26
- package/dist/esm/index.web218.js +13 -8
- package/dist/esm/index.web219.js +10 -11
- package/dist/esm/index.web220.js +15 -11
- package/dist/esm/index.web221.js +80 -9
- package/dist/esm/index.web222.js +2 -17
- package/dist/esm/index.web223.js +2 -81
- package/dist/esm/index.web224.js +2 -47
- package/dist/esm/index.web226.js +14 -78
- package/dist/esm/index.web227.js +78 -14
- package/dist/esm/index.web3.js +1 -1
- package/dist/esm/index.web66.js +97 -60
- package/dist/esm/index.web8.js +1 -1
- package/dist/esm/index.web9.js +1 -1
- package/dist/esm/index.web92.js +2 -2
- package/dist/native/index.native10.js +1 -1
- package/dist/native/index.native101.js +2 -2
- package/dist/native/index.native105.js +3 -3
- package/dist/native/index.native106.js +31 -2
- package/dist/native/index.native107.js +28 -65
- package/dist/native/index.native108.js +2 -367
- package/dist/native/index.native109.js +65 -28
- package/dist/native/index.native110.js +364 -28
- package/dist/native/index.native122.js +5 -35
- package/dist/native/index.native123.js +40 -60
- package/dist/native/index.native124.js +35 -5
- package/dist/native/index.native125.js +60 -40
- package/dist/native/index.native197.js +37 -107
- package/dist/native/index.native199.js +69 -7
- package/dist/native/index.native2.js +35 -30
- package/dist/native/index.native200.js +35 -2
- package/dist/native/index.native201.js +17 -374
- package/dist/native/index.native202.js +7 -835
- package/dist/native/index.native203.js +2 -39
- package/dist/native/index.native204.js +378 -2
- package/dist/native/index.native205.js +835 -69
- package/dist/native/index.native206.js +106 -32
- package/dist/native/index.native207.js +2 -21
- package/dist/native/index.native222.js +2 -2
- package/dist/native/index.native223.js +2 -2
- package/dist/native/index.native224.js +2 -2
- package/dist/native/index.native225.js +1 -1
- package/dist/native/index.native3.js +1 -1
- package/dist/native/index.native67.js +97 -60
- package/dist/native/index.native9.js +1 -1
- package/dist/native/index.native90.js +2 -2
- package/dist/native-types/auth/authManager.d.ts +1 -1
- package/dist/native-types/version.d.ts +1 -1
- package/dist/types/auth/authManager.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index.web102.js +12 -12
- package/dist/web/index.web106.js +3 -3
- package/dist/web/index.web107.js +2 -31
- package/dist/web/index.web108.js +65 -28
- package/dist/web/index.web109.js +367 -2
- package/dist/web/index.web110.js +28 -65
- package/dist/web/index.web111.js +28 -364
- package/dist/web/index.web116.js +1 -1
- package/dist/web/index.web117.js +2 -2
- package/dist/web/index.web123.js +1 -1
- package/dist/web/index.web127.js +4 -17
- package/dist/web/index.web128.js +16 -44
- package/dist/web/index.web129.js +45 -13
- package/dist/web/index.web130.js +13 -55
- package/dist/web/index.web131.js +55 -6
- package/dist/web/index.web132.js +6 -21
- package/dist/web/index.web133.js +21 -3
- package/dist/web/index.web134.js +3 -3
- package/dist/web/index.web135.js +3 -34
- package/dist/web/index.web136.js +32 -10
- package/dist/web/index.web137.js +12 -4
- package/dist/web/index.web138.js +4 -28
- package/dist/web/index.web139.js +28 -6
- package/dist/web/index.web140.js +6 -42
- package/dist/web/index.web141.js +41 -54
- package/dist/web/index.web142.js +54 -126
- package/dist/web/index.web143.js +127 -23
- package/dist/web/index.web144.js +22 -11
- package/dist/web/index.web145.js +9 -101
- package/dist/web/index.web146.js +104 -6
- package/dist/web/index.web147.js +7 -3
- package/dist/web/index.web148.js +3 -15
- package/dist/web/index.web149.js +14 -34
- package/dist/web/index.web150.js +31 -75
- package/dist/web/index.web151.js +79 -2
- package/dist/web/index.web152.js +2 -2
- package/dist/web/index.web153.js +2 -38
- package/dist/web/index.web154.js +36 -5
- package/dist/web/index.web155.js +5 -33
- package/dist/web/index.web156.js +34 -8
- package/dist/web/index.web157.js +8 -10
- package/dist/web/index.web158.js +10 -11
- package/dist/web/index.web159.js +11 -13
- package/dist/web/index.web160.js +13 -18
- package/dist/web/index.web161.js +18 -5
- package/dist/web/index.web162.js +6 -5
- package/dist/web/index.web163.js +5 -11
- package/dist/web/index.web164.js +10 -4
- package/dist/web/index.web165.js +14 -103
- package/dist/web/index.web166.js +27 -77
- package/dist/web/index.web167.js +7 -79
- package/dist/web/index.web168.js +3 -14
- package/dist/web/index.web169.js +16 -16
- package/dist/web/index.web170.js +8 -7
- package/dist/web/index.web171.js +7 -3
- package/dist/web/index.web172.js +70 -18
- package/dist/web/index.web173.js +28 -8
- package/dist/web/index.web174.js +3 -7
- package/dist/web/index.web175.js +7 -72
- package/dist/web/index.web176.js +4 -28
- package/dist/web/index.web177.js +14 -3
- package/dist/web/index.web178.js +19 -15
- package/dist/web/index.web179.js +61 -4
- package/dist/web/index.web180.js +16 -13
- package/dist/web/index.web181.js +19 -15
- package/dist/web/index.web182.js +8 -61
- package/dist/web/index.web183.js +41 -16
- package/dist/web/index.web184.js +7 -23
- package/dist/web/index.web185.js +20 -8
- package/dist/web/index.web186.js +102 -41
- package/dist/web/index.web187.js +78 -7
- package/dist/web/index.web188.js +79 -20
- package/dist/web/index.web189.js +1 -1
- package/dist/web/index.web190.js +3 -3
- package/dist/web/index.web192.js +3 -3
- package/dist/web/index.web194.js +3 -3
- package/dist/web/index.web195.js +2 -8
- package/dist/web/index.web196.js +109 -2
- package/dist/web/index.web197.js +2 -378
- package/dist/web/index.web198.js +7 -835
- package/dist/web/index.web199.js +2 -39
- package/dist/web/index.web2.js +34 -29
- package/dist/web/index.web200.js +378 -2
- package/dist/web/index.web201.js +835 -69
- package/dist/web/index.web202.js +37 -33
- package/dist/web/index.web203.js +2 -21
- package/dist/web/index.web204.js +70 -2
- package/dist/web/index.web205.js +34 -20
- package/dist/web/index.web206.js +19 -18
- package/dist/web/index.web207.js +2 -33
- package/dist/web/index.web208.js +20 -6
- package/dist/web/index.web209.js +20 -2
- package/dist/web/index.web210.js +31 -107
- package/dist/web/index.web211.js +7 -2
- package/dist/web/index.web213.js +47 -2
- package/dist/web/index.web214.js +18 -2
- package/dist/web/index.web215.js +28 -2
- package/dist/web/index.web216.js +8 -18
- package/dist/web/index.web217.js +9 -26
- package/dist/web/index.web218.js +13 -8
- package/dist/web/index.web219.js +10 -11
- package/dist/web/index.web220.js +15 -11
- package/dist/web/index.web221.js +80 -9
- package/dist/web/index.web222.js +2 -17
- package/dist/web/index.web223.js +2 -81
- package/dist/web/index.web224.js +2 -47
- package/dist/web/index.web226.js +14 -78
- package/dist/web/index.web227.js +78 -14
- package/dist/web/index.web3.js +1 -1
- package/dist/web/index.web66.js +97 -60
- package/dist/web/index.web8.js +1 -1
- package/dist/web/index.web9.js +1 -1
- package/dist/web/index.web92.js +2 -2
- package/dist/web-types/auth/authManager.d.ts +1 -1
- package/dist/web-types/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/web/index.web131.js
CHANGED
|
@@ -1,9 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isHex as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { BaseError as g } from "./index.web142.js";
|
|
2
|
+
import { isHex as x } from "./index.web135.js";
|
|
3
|
+
import { pad as s } from "./index.web136.js";
|
|
4
|
+
import { assertSize as u } from "./index.web144.js";
|
|
5
|
+
import { numberToHex as h } from "./index.web129.js";
|
|
6
|
+
const A = /* @__PURE__ */ new TextEncoder();
|
|
7
|
+
function F(e, n = {}) {
|
|
8
|
+
return typeof e == "number" || typeof e == "bigint" ? T(e, n) : typeof e == "boolean" ? B(e, n) : x(e) ? y(e, n) : l(e, n);
|
|
9
|
+
}
|
|
10
|
+
function B(e, n = {}) {
|
|
11
|
+
const r = new Uint8Array(1);
|
|
12
|
+
return r[0] = Number(e), typeof n.size == "number" ? (u(r, { size: n.size }), s(r, { size: n.size })) : r;
|
|
13
|
+
}
|
|
14
|
+
const t = {
|
|
15
|
+
zero: 48,
|
|
16
|
+
nine: 57,
|
|
17
|
+
A: 65,
|
|
18
|
+
F: 70,
|
|
19
|
+
a: 97,
|
|
20
|
+
f: 102
|
|
21
|
+
};
|
|
22
|
+
function m(e) {
|
|
23
|
+
if (e >= t.zero && e <= t.nine)
|
|
24
|
+
return e - t.zero;
|
|
25
|
+
if (e >= t.A && e <= t.F)
|
|
26
|
+
return e - (t.A - 10);
|
|
27
|
+
if (e >= t.a && e <= t.f)
|
|
28
|
+
return e - (t.a - 10);
|
|
29
|
+
}
|
|
30
|
+
function y(e, n = {}) {
|
|
31
|
+
let r = e;
|
|
32
|
+
n.size && (u(r, { size: n.size }), r = s(r, { dir: "right", size: n.size }));
|
|
33
|
+
let i = r.slice(2);
|
|
34
|
+
i.length % 2 && (i = `0${i}`);
|
|
35
|
+
const z = i.length / 2, d = new Uint8Array(z);
|
|
36
|
+
for (let f = 0, o = 0; f < z; f++) {
|
|
37
|
+
const b = m(i.charCodeAt(o++)), c = m(i.charCodeAt(o++));
|
|
38
|
+
if (b === void 0 || c === void 0)
|
|
39
|
+
throw new g(`Invalid byte sequence ("${i[o - 2]}${i[o - 1]}" in "${i}").`);
|
|
40
|
+
d[f] = b * 16 + c;
|
|
41
|
+
}
|
|
42
|
+
return d;
|
|
43
|
+
}
|
|
44
|
+
function T(e, n) {
|
|
45
|
+
const r = h(e, n);
|
|
46
|
+
return y(r);
|
|
47
|
+
}
|
|
48
|
+
function l(e, n = {}) {
|
|
49
|
+
const r = A.encode(e);
|
|
50
|
+
return typeof n.size == "number" ? (u(r, { size: n.size }), s(r, { dir: "right", size: n.size })) : r;
|
|
6
51
|
}
|
|
7
52
|
export {
|
|
8
|
-
|
|
53
|
+
B as boolToBytes,
|
|
54
|
+
y as hexToBytes,
|
|
55
|
+
T as numberToBytes,
|
|
56
|
+
l as stringToBytes,
|
|
57
|
+
F as toBytes
|
|
9
58
|
};
|
package/dist/web/index.web132.js
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
writable: !0,
|
|
7
|
-
value: void 0
|
|
8
|
-
}), this.maxSize = e;
|
|
9
|
-
}
|
|
10
|
-
get(e) {
|
|
11
|
-
const t = super.get(e);
|
|
12
|
-
return super.has(e) && t !== void 0 && (this.delete(e), super.set(e, t)), t;
|
|
13
|
-
}
|
|
14
|
-
set(e, t) {
|
|
15
|
-
if (super.set(e, t), this.maxSize && this.size > this.maxSize) {
|
|
16
|
-
const s = this.keys().next().value;
|
|
17
|
-
s && this.delete(s);
|
|
18
|
-
}
|
|
19
|
-
return this;
|
|
20
|
-
}
|
|
1
|
+
import { keccak_256 as o } from "./index.web146.js";
|
|
2
|
+
import { isHex as r } from "./index.web135.js";
|
|
3
|
+
import { toBytes as c } from "./index.web131.js";
|
|
4
|
+
function k(t, e) {
|
|
5
|
+
return o(r(t, { strict: !1 }) ? c(t) : t);
|
|
21
6
|
}
|
|
22
7
|
export {
|
|
23
|
-
|
|
8
|
+
k as keccak256
|
|
24
9
|
};
|
package/dist/web/index.web133.js
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
class r extends Map {
|
|
2
|
+
constructor(e) {
|
|
3
|
+
super(), Object.defineProperty(this, "maxSize", {
|
|
4
|
+
enumerable: !0,
|
|
5
|
+
configurable: !0,
|
|
6
|
+
writable: !0,
|
|
7
|
+
value: void 0
|
|
8
|
+
}), this.maxSize = e;
|
|
9
|
+
}
|
|
10
|
+
get(e) {
|
|
11
|
+
const t = super.get(e);
|
|
12
|
+
return super.has(e) && t !== void 0 && (this.delete(e), super.set(e, t)), t;
|
|
13
|
+
}
|
|
14
|
+
set(e, t) {
|
|
15
|
+
if (super.set(e, t), this.maxSize && this.size > this.maxSize) {
|
|
16
|
+
const s = this.keys().next().value;
|
|
17
|
+
s && this.delete(s);
|
|
18
|
+
}
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
3
21
|
}
|
|
4
22
|
export {
|
|
5
|
-
|
|
23
|
+
r as LruMap
|
|
6
24
|
};
|
package/dist/web/index.web134.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function e
|
|
2
|
-
return
|
|
1
|
+
function n(e) {
|
|
2
|
+
return `0x${e.reduce((c, r) => c + r.replace("0x", ""), "")}`;
|
|
3
3
|
}
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
n as concatHex
|
|
6
6
|
};
|
package/dist/web/index.web135.js
CHANGED
|
@@ -1,37 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return typeof n == "string" ? p(n, { dir: r, size: t }) : i(n, { dir: r, size: t });
|
|
4
|
-
}
|
|
5
|
-
function p(n, { dir: r, size: t = 32 } = {}) {
|
|
6
|
-
if (t === null)
|
|
7
|
-
return n;
|
|
8
|
-
const e = n.replace("0x", "");
|
|
9
|
-
if (e.length > t * 2)
|
|
10
|
-
throw new d({
|
|
11
|
-
size: Math.ceil(e.length / 2),
|
|
12
|
-
targetSize: t,
|
|
13
|
-
type: "hex"
|
|
14
|
-
});
|
|
15
|
-
return `0x${e[r === "right" ? "padEnd" : "padStart"](t * 2, "0")}`;
|
|
16
|
-
}
|
|
17
|
-
function i(n, { dir: r, size: t = 32 } = {}) {
|
|
18
|
-
if (t === null)
|
|
19
|
-
return n;
|
|
20
|
-
if (n.length > t)
|
|
21
|
-
throw new d({
|
|
22
|
-
size: n.length,
|
|
23
|
-
targetSize: t,
|
|
24
|
-
type: "bytes"
|
|
25
|
-
});
|
|
26
|
-
const e = new Uint8Array(t);
|
|
27
|
-
for (let a = 0; a < t; a++) {
|
|
28
|
-
const o = r === "right";
|
|
29
|
-
e[o ? a : t - a - 1] = n[o ? a : n.length - a - 1];
|
|
30
|
-
}
|
|
31
|
-
return e;
|
|
1
|
+
function e(t, { strict: r = !0 } = {}) {
|
|
2
|
+
return !t || typeof t != "string" ? !1 : r ? /^0x[0-9a-fA-F]*$/.test(t) : t.startsWith("0x");
|
|
32
3
|
}
|
|
33
4
|
export {
|
|
34
|
-
|
|
35
|
-
i as padBytes,
|
|
36
|
-
p as padHex
|
|
5
|
+
e as isHex
|
|
37
6
|
};
|
package/dist/web/index.web136.js
CHANGED
|
@@ -1,15 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { SizeExceedsPaddingSizeError as d } from "./index.web137.js";
|
|
2
|
+
function f(n, { dir: r, size: t = 32 } = {}) {
|
|
3
|
+
return typeof n == "string" ? p(n, { dir: r, size: t }) : i(n, { dir: r, size: t });
|
|
4
|
+
}
|
|
5
|
+
function p(n, { dir: r, size: t = 32 } = {}) {
|
|
6
|
+
if (t === null)
|
|
7
|
+
return n;
|
|
8
|
+
const e = n.replace("0x", "");
|
|
9
|
+
if (e.length > t * 2)
|
|
10
|
+
throw new d({
|
|
11
|
+
size: Math.ceil(e.length / 2),
|
|
12
|
+
targetSize: t,
|
|
13
|
+
type: "hex"
|
|
14
|
+
});
|
|
15
|
+
return `0x${e[r === "right" ? "padEnd" : "padStart"](t * 2, "0")}`;
|
|
6
16
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
17
|
+
function i(n, { dir: r, size: t = 32 } = {}) {
|
|
18
|
+
if (t === null)
|
|
19
|
+
return n;
|
|
20
|
+
if (n.length > t)
|
|
21
|
+
throw new d({
|
|
22
|
+
size: n.length,
|
|
23
|
+
targetSize: t,
|
|
24
|
+
type: "bytes"
|
|
25
|
+
});
|
|
26
|
+
const e = new Uint8Array(t);
|
|
27
|
+
for (let a = 0; a < t; a++) {
|
|
28
|
+
const o = r === "right";
|
|
29
|
+
e[o ? a : t - a - 1] = n[o ? a : n.length - a - 1];
|
|
10
30
|
}
|
|
31
|
+
return e;
|
|
11
32
|
}
|
|
12
33
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
34
|
+
f as pad,
|
|
35
|
+
i as padBytes,
|
|
36
|
+
p as padHex
|
|
15
37
|
};
|
package/dist/web/index.web137.js
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { BaseError as o } from "./index.web142.js";
|
|
2
|
+
class d extends o {
|
|
3
|
+
constructor({ offset: r, position: s, size: e }) {
|
|
4
|
+
super(`Slice ${s === "start" ? "starting" : "ending"} at offset "${r}" is out-of-bounds (size: ${e}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
class n extends o {
|
|
8
|
+
constructor({ size: r, targetSize: s, type: e }) {
|
|
9
|
+
super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} size (${r}) exceeds padding size (${s}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
10
|
+
}
|
|
4
11
|
}
|
|
5
12
|
export {
|
|
6
|
-
|
|
13
|
+
n as SizeExceedsPaddingSizeError,
|
|
14
|
+
d as SliceOffsetOutOfBoundsError
|
|
7
15
|
};
|
package/dist/web/index.web138.js
CHANGED
|
@@ -1,31 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function O(e, f, i, { strict: o } = {}) {
|
|
5
|
-
return c(e, { strict: !1 }) ? l(e, f, i, {
|
|
6
|
-
strict: o
|
|
7
|
-
}) : u(e, f, i, {
|
|
8
|
-
strict: o
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
function t(e, f, i) {
|
|
12
|
-
if (s(e) !== i - f)
|
|
13
|
-
throw new n({
|
|
14
|
-
offset: i,
|
|
15
|
-
position: "end",
|
|
16
|
-
size: s(e)
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function u(e, f, i, { strict: o } = {}) {
|
|
20
|
-
const r = e.slice(f, i);
|
|
21
|
-
return o && t(r, f, i), r;
|
|
22
|
-
}
|
|
23
|
-
function l(e, f, i, { strict: o } = {}) {
|
|
24
|
-
const r = `0x${e.replace("0x", "").slice(f * 2, i * 2)}`;
|
|
25
|
-
return o && t(r, f, i), r;
|
|
1
|
+
import { isHex as r } from "./index.web135.js";
|
|
2
|
+
function i(t) {
|
|
3
|
+
return r(t, { strict: !1 }) ? Math.ceil((t.length - 2) / 2) : t.length;
|
|
26
4
|
}
|
|
27
5
|
export {
|
|
28
|
-
|
|
29
|
-
u as sliceBytes,
|
|
30
|
-
l as sliceHex
|
|
6
|
+
i as size
|
|
31
7
|
};
|
package/dist/web/index.web139.js
CHANGED
|
@@ -1,9 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return
|
|
1
|
+
import { SliceOffsetOutOfBoundsError as n } from "./index.web137.js";
|
|
2
|
+
import { isHex as c } from "./index.web135.js";
|
|
3
|
+
import { size as s } from "./index.web138.js";
|
|
4
|
+
function O(e, f, i, { strict: o } = {}) {
|
|
5
|
+
return c(e, { strict: !1 }) ? l(e, f, i, {
|
|
6
|
+
strict: o
|
|
7
|
+
}) : u(e, f, i, {
|
|
8
|
+
strict: o
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function t(e, f, i) {
|
|
12
|
+
if (s(e) !== i - f)
|
|
13
|
+
throw new n({
|
|
14
|
+
offset: i,
|
|
15
|
+
position: "end",
|
|
16
|
+
size: s(e)
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function u(e, f, i, { strict: o } = {}) {
|
|
20
|
+
const r = e.slice(f, i);
|
|
21
|
+
return o && t(r, f, i), r;
|
|
22
|
+
}
|
|
23
|
+
function l(e, f, i, { strict: o } = {}) {
|
|
24
|
+
const r = `0x${e.replace("0x", "").slice(f * 2, i * 2)}`;
|
|
25
|
+
return o && t(r, f, i), r;
|
|
6
26
|
}
|
|
7
27
|
export {
|
|
8
|
-
|
|
28
|
+
O as slice,
|
|
29
|
+
u as sliceBytes,
|
|
30
|
+
l as sliceHex
|
|
9
31
|
};
|
package/dist/web/index.web140.js
CHANGED
|
@@ -1,45 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const i = s(n), h = r(new Uint8Array(i.length));
|
|
7
|
-
return i.encode(h), e === "hex" ? u(h.bytes) : h.bytes;
|
|
8
|
-
}
|
|
9
|
-
function s(n) {
|
|
10
|
-
return Array.isArray(n) ? p(n.map((e) => s(e))) : y(n);
|
|
11
|
-
}
|
|
12
|
-
function p(n) {
|
|
13
|
-
const e = n.reduce((t, f) => t + f.length, 0), i = o(e);
|
|
14
|
-
return {
|
|
15
|
-
length: e <= 55 ? 1 + e : 1 + i + e,
|
|
16
|
-
encode(t) {
|
|
17
|
-
e <= 55 ? t.pushByte(192 + e) : (t.pushByte(247 + i), i === 1 ? t.pushUint8(e) : i === 2 ? t.pushUint16(e) : i === 3 ? t.pushUint24(e) : t.pushUint32(e));
|
|
18
|
-
for (const { encode: f } of n)
|
|
19
|
-
f(t);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function y(n) {
|
|
24
|
-
const e = typeof n == "string" ? g(n) : n, i = o(e.length);
|
|
25
|
-
return {
|
|
26
|
-
length: e.length === 1 && e[0] < 128 ? 1 : e.length <= 55 ? 1 + e.length : 1 + i + e.length,
|
|
27
|
-
encode(t) {
|
|
28
|
-
e.length === 1 && e[0] < 128 ? t.pushBytes(e) : e.length <= 55 ? (t.pushByte(128 + e.length), t.pushBytes(e)) : (t.pushByte(183 + i), i === 1 ? t.pushUint8(e.length) : i === 2 ? t.pushUint16(e.length) : i === 3 ? t.pushUint24(e.length) : t.pushUint32(e.length), t.pushBytes(e));
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function o(n) {
|
|
33
|
-
if (n < 2 ** 8)
|
|
34
|
-
return 1;
|
|
35
|
-
if (n < 2 ** 16)
|
|
36
|
-
return 2;
|
|
37
|
-
if (n < 2 ** 24)
|
|
38
|
-
return 3;
|
|
39
|
-
if (n < 2 ** 32)
|
|
40
|
-
return 4;
|
|
41
|
-
throw new l("Length is too large.");
|
|
1
|
+
function f(e, { dir: n = "left" } = {}) {
|
|
2
|
+
let t = typeof e == "string" ? e.replace("0x", "") : e, i = 0;
|
|
3
|
+
for (let l = 0; l < t.length - 1 && t[n === "left" ? l : t.length - l - 1].toString() === "0"; l++)
|
|
4
|
+
i++;
|
|
5
|
+
return t = n === "left" ? t.slice(i) : t.slice(0, t.length - i), typeof e == "string" ? (t.length === 1 && n === "right" && (t = `${t}0`), `0x${t.length % 2 === 1 ? `0${t}` : t}`) : t;
|
|
42
6
|
}
|
|
43
7
|
export {
|
|
44
|
-
|
|
8
|
+
f as trim
|
|
45
9
|
};
|
package/dist/web/index.web141.js
CHANGED
|
@@ -1,58 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
value: void 0
|
|
32
|
-
}), Object.defineProperty(this, "shortMessage", {
|
|
33
|
-
enumerable: !0,
|
|
34
|
-
configurable: !0,
|
|
35
|
-
writable: !0,
|
|
36
|
-
value: void 0
|
|
37
|
-
}), Object.defineProperty(this, "version", {
|
|
38
|
-
enumerable: !0,
|
|
39
|
-
configurable: !0,
|
|
40
|
-
writable: !0,
|
|
41
|
-
value: void 0
|
|
42
|
-
}), Object.defineProperty(this, "name", {
|
|
43
|
-
enumerable: !0,
|
|
44
|
-
configurable: !0,
|
|
45
|
-
writable: !0,
|
|
46
|
-
value: "BaseError"
|
|
47
|
-
}), this.details = i, this.docsPath = n, this.metaMessages = e.metaMessages, this.name = e.name ?? this.name, this.shortMessage = t, this.version = o;
|
|
48
|
-
}
|
|
49
|
-
walk(t) {
|
|
50
|
-
return c(this, t);
|
|
51
|
-
}
|
|
1
|
+
import { BaseError as l } from "./index.web142.js";
|
|
2
|
+
import { createCursor as r } from "./index.web143.js";
|
|
3
|
+
import { hexToBytes as g } from "./index.web131.js";
|
|
4
|
+
import { bytesToHex as u } from "./index.web129.js";
|
|
5
|
+
function m(n, e = "hex") {
|
|
6
|
+
const i = s(n), h = r(new Uint8Array(i.length));
|
|
7
|
+
return i.encode(h), e === "hex" ? u(h.bytes) : h.bytes;
|
|
8
|
+
}
|
|
9
|
+
function s(n) {
|
|
10
|
+
return Array.isArray(n) ? p(n.map((e) => s(e))) : y(n);
|
|
11
|
+
}
|
|
12
|
+
function p(n) {
|
|
13
|
+
const e = n.reduce((t, f) => t + f.length, 0), i = o(e);
|
|
14
|
+
return {
|
|
15
|
+
length: e <= 55 ? 1 + e : 1 + i + e,
|
|
16
|
+
encode(t) {
|
|
17
|
+
e <= 55 ? t.pushByte(192 + e) : (t.pushByte(247 + i), i === 1 ? t.pushUint8(e) : i === 2 ? t.pushUint16(e) : i === 3 ? t.pushUint24(e) : t.pushUint32(e));
|
|
18
|
+
for (const { encode: f } of n)
|
|
19
|
+
f(t);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function y(n) {
|
|
24
|
+
const e = typeof n == "string" ? g(n) : n, i = o(e.length);
|
|
25
|
+
return {
|
|
26
|
+
length: e.length === 1 && e[0] < 128 ? 1 : e.length <= 55 ? 1 + e.length : 1 + i + e.length,
|
|
27
|
+
encode(t) {
|
|
28
|
+
e.length === 1 && e[0] < 128 ? t.pushBytes(e) : e.length <= 55 ? (t.pushByte(128 + e.length), t.pushBytes(e)) : (t.pushByte(183 + i), i === 1 ? t.pushUint8(e.length) : i === 2 ? t.pushUint16(e.length) : i === 3 ? t.pushUint24(e.length) : t.pushUint32(e.length), t.pushBytes(e));
|
|
29
|
+
}
|
|
30
|
+
};
|
|
52
31
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
32
|
+
function o(n) {
|
|
33
|
+
if (n < 2 ** 8)
|
|
34
|
+
return 1;
|
|
35
|
+
if (n < 2 ** 16)
|
|
36
|
+
return 2;
|
|
37
|
+
if (n < 2 ** 24)
|
|
38
|
+
return 3;
|
|
39
|
+
if (n < 2 ** 32)
|
|
40
|
+
return 4;
|
|
41
|
+
throw new l("Length is too large.");
|
|
55
42
|
}
|
|
56
43
|
export {
|
|
57
|
-
|
|
44
|
+
m as toRlp
|
|
58
45
|
};
|
package/dist/web/index.web142.js
CHANGED
|
@@ -1,130 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
position: 0,
|
|
6
|
-
positionReadCount: /* @__PURE__ */ new Map(),
|
|
7
|
-
recursiveReadCount: 0,
|
|
8
|
-
recursiveReadLimit: Number.POSITIVE_INFINITY,
|
|
9
|
-
assertReadLimit() {
|
|
10
|
-
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
|
11
|
-
throw new n({
|
|
12
|
-
count: this.recursiveReadCount + 1,
|
|
13
|
-
limit: this.recursiveReadLimit
|
|
14
|
-
});
|
|
15
|
-
},
|
|
16
|
-
assertPosition(t) {
|
|
17
|
-
if (t < 0 || t > this.bytes.length - 1)
|
|
18
|
-
throw new e({
|
|
19
|
-
length: this.bytes.length,
|
|
20
|
-
position: t
|
|
21
|
-
});
|
|
22
|
-
},
|
|
23
|
-
decrementPosition(t) {
|
|
24
|
-
if (t < 0)
|
|
25
|
-
throw new o({ offset: t });
|
|
26
|
-
const i = this.position - t;
|
|
27
|
-
this.assertPosition(i), this.position = i;
|
|
28
|
-
},
|
|
29
|
-
getReadCount(t) {
|
|
30
|
-
return this.positionReadCount.get(t || this.position) || 0;
|
|
31
|
-
},
|
|
32
|
-
incrementPosition(t) {
|
|
33
|
-
if (t < 0)
|
|
34
|
-
throw new o({ offset: t });
|
|
35
|
-
const i = this.position + t;
|
|
36
|
-
this.assertPosition(i), this.position = i;
|
|
37
|
-
},
|
|
38
|
-
inspectByte(t) {
|
|
39
|
-
const i = t ?? this.position;
|
|
40
|
-
return this.assertPosition(i), this.bytes[i];
|
|
41
|
-
},
|
|
42
|
-
inspectBytes(t, i) {
|
|
43
|
-
const s = i ?? this.position;
|
|
44
|
-
return this.assertPosition(s + t - 1), this.bytes.subarray(s, s + t);
|
|
45
|
-
},
|
|
46
|
-
inspectUint8(t) {
|
|
47
|
-
const i = t ?? this.position;
|
|
48
|
-
return this.assertPosition(i), this.bytes[i];
|
|
49
|
-
},
|
|
50
|
-
inspectUint16(t) {
|
|
51
|
-
const i = t ?? this.position;
|
|
52
|
-
return this.assertPosition(i + 1), this.dataView.getUint16(i);
|
|
53
|
-
},
|
|
54
|
-
inspectUint24(t) {
|
|
55
|
-
const i = t ?? this.position;
|
|
56
|
-
return this.assertPosition(i + 2), (this.dataView.getUint16(i) << 8) + this.dataView.getUint8(i + 2);
|
|
57
|
-
},
|
|
58
|
-
inspectUint32(t) {
|
|
59
|
-
const i = t ?? this.position;
|
|
60
|
-
return this.assertPosition(i + 3), this.dataView.getUint32(i);
|
|
61
|
-
},
|
|
62
|
-
pushByte(t) {
|
|
63
|
-
this.assertPosition(this.position), this.bytes[this.position] = t, this.position++;
|
|
64
|
-
},
|
|
65
|
-
pushBytes(t) {
|
|
66
|
-
this.assertPosition(this.position + t.length - 1), this.bytes.set(t, this.position), this.position += t.length;
|
|
67
|
-
},
|
|
68
|
-
pushUint8(t) {
|
|
69
|
-
this.assertPosition(this.position), this.bytes[this.position] = t, this.position++;
|
|
70
|
-
},
|
|
71
|
-
pushUint16(t) {
|
|
72
|
-
this.assertPosition(this.position + 1), this.dataView.setUint16(this.position, t), this.position += 2;
|
|
73
|
-
},
|
|
74
|
-
pushUint24(t) {
|
|
75
|
-
this.assertPosition(this.position + 2), this.dataView.setUint16(this.position, t >> 8), this.dataView.setUint8(this.position + 2, t & 255), this.position += 3;
|
|
76
|
-
},
|
|
77
|
-
pushUint32(t) {
|
|
78
|
-
this.assertPosition(this.position + 3), this.dataView.setUint32(this.position, t), this.position += 4;
|
|
79
|
-
},
|
|
80
|
-
readByte() {
|
|
81
|
-
this.assertReadLimit(), this._touch();
|
|
82
|
-
const t = this.inspectByte();
|
|
83
|
-
return this.position++, t;
|
|
84
|
-
},
|
|
85
|
-
readBytes(t, i) {
|
|
86
|
-
this.assertReadLimit(), this._touch();
|
|
87
|
-
const s = this.inspectBytes(t);
|
|
88
|
-
return this.position += i ?? t, s;
|
|
89
|
-
},
|
|
90
|
-
readUint8() {
|
|
91
|
-
this.assertReadLimit(), this._touch();
|
|
92
|
-
const t = this.inspectUint8();
|
|
93
|
-
return this.position += 1, t;
|
|
94
|
-
},
|
|
95
|
-
readUint16() {
|
|
96
|
-
this.assertReadLimit(), this._touch();
|
|
97
|
-
const t = this.inspectUint16();
|
|
98
|
-
return this.position += 2, t;
|
|
99
|
-
},
|
|
100
|
-
readUint24() {
|
|
101
|
-
this.assertReadLimit(), this._touch();
|
|
102
|
-
const t = this.inspectUint24();
|
|
103
|
-
return this.position += 3, t;
|
|
104
|
-
},
|
|
105
|
-
readUint32() {
|
|
106
|
-
this.assertReadLimit(), this._touch();
|
|
107
|
-
const t = this.inspectUint32();
|
|
108
|
-
return this.position += 4, t;
|
|
109
|
-
},
|
|
110
|
-
get remaining() {
|
|
111
|
-
return this.bytes.length - this.position;
|
|
112
|
-
},
|
|
113
|
-
setPosition(t) {
|
|
114
|
-
const i = this.position;
|
|
115
|
-
return this.assertPosition(t), this.position = t, () => this.position = i;
|
|
116
|
-
},
|
|
117
|
-
_touch() {
|
|
118
|
-
if (this.recursiveReadLimit === Number.POSITIVE_INFINITY)
|
|
119
|
-
return;
|
|
120
|
-
const t = this.getReadCount();
|
|
121
|
-
this.positionReadCount.set(this.position, t + 1), t > 0 && this.recursiveReadCount++;
|
|
122
|
-
}
|
|
1
|
+
import { version as o } from "./index.web207.js";
|
|
2
|
+
let r = {
|
|
3
|
+
getDocsUrl: ({ docsBaseUrl: s, docsPath: t = "", docsSlug: e }) => t ? `${s ?? "https://viem.sh"}${t}${e ? `#${e}` : ""}` : void 0,
|
|
4
|
+
version: `viem@${o}`
|
|
123
5
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
6
|
+
class u extends Error {
|
|
7
|
+
constructor(t, e = {}) {
|
|
8
|
+
const i = e.cause instanceof u ? e.cause.details : e.cause?.message ? e.cause.message : e.details, n = e.cause instanceof u && e.cause.docsPath || e.docsPath, a = r.getDocsUrl?.({ ...e, docsPath: n }), l = [
|
|
9
|
+
t || "An error occurred.",
|
|
10
|
+
"",
|
|
11
|
+
...e.metaMessages ? [...e.metaMessages, ""] : [],
|
|
12
|
+
...a ? [`Docs: ${a}`] : [],
|
|
13
|
+
...i ? [`Details: ${i}`] : [],
|
|
14
|
+
...r.version ? [`Version: ${r.version}`] : []
|
|
15
|
+
].join(`
|
|
16
|
+
`);
|
|
17
|
+
super(l, e.cause ? { cause: e.cause } : void 0), Object.defineProperty(this, "details", {
|
|
18
|
+
enumerable: !0,
|
|
19
|
+
configurable: !0,
|
|
20
|
+
writable: !0,
|
|
21
|
+
value: void 0
|
|
22
|
+
}), Object.defineProperty(this, "docsPath", {
|
|
23
|
+
enumerable: !0,
|
|
24
|
+
configurable: !0,
|
|
25
|
+
writable: !0,
|
|
26
|
+
value: void 0
|
|
27
|
+
}), Object.defineProperty(this, "metaMessages", {
|
|
28
|
+
enumerable: !0,
|
|
29
|
+
configurable: !0,
|
|
30
|
+
writable: !0,
|
|
31
|
+
value: void 0
|
|
32
|
+
}), Object.defineProperty(this, "shortMessage", {
|
|
33
|
+
enumerable: !0,
|
|
34
|
+
configurable: !0,
|
|
35
|
+
writable: !0,
|
|
36
|
+
value: void 0
|
|
37
|
+
}), Object.defineProperty(this, "version", {
|
|
38
|
+
enumerable: !0,
|
|
39
|
+
configurable: !0,
|
|
40
|
+
writable: !0,
|
|
41
|
+
value: void 0
|
|
42
|
+
}), Object.defineProperty(this, "name", {
|
|
43
|
+
enumerable: !0,
|
|
44
|
+
configurable: !0,
|
|
45
|
+
writable: !0,
|
|
46
|
+
value: "BaseError"
|
|
47
|
+
}), this.details = i, this.docsPath = n, this.metaMessages = e.metaMessages, this.name = e.name ?? this.name, this.shortMessage = t, this.version = o;
|
|
48
|
+
}
|
|
49
|
+
walk(t) {
|
|
50
|
+
return c(this, t);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function c(s, t) {
|
|
54
|
+
return t?.(s) ? s : s && typeof s == "object" && "cause" in s && s.cause !== void 0 ? c(s.cause, t) : t ? null : s;
|
|
127
55
|
}
|
|
128
56
|
export {
|
|
129
|
-
|
|
57
|
+
u as BaseError
|
|
130
58
|
};
|