@hashgraphonline/standards-sdk 0.0.68 → 0.0.69
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/es/hcs-10/browser.d.ts.map +1 -1
- package/dist/es/standards-sdk.es100.js +3 -3
- package/dist/es/standards-sdk.es100.js.map +1 -1
- package/dist/es/standards-sdk.es101.js +3 -15
- package/dist/es/standards-sdk.es101.js.map +1 -1
- package/dist/es/standards-sdk.es102.js +15 -4
- package/dist/es/standards-sdk.es102.js.map +1 -1
- package/dist/es/standards-sdk.es103.js +5 -39
- package/dist/es/standards-sdk.es103.js.map +1 -1
- package/dist/es/standards-sdk.es104.js +38 -39
- package/dist/es/standards-sdk.es104.js.map +1 -1
- package/dist/es/standards-sdk.es105.js +37 -34
- package/dist/es/standards-sdk.es105.js.map +1 -1
- package/dist/es/standards-sdk.es106.js +34 -75
- package/dist/es/standards-sdk.es106.js.map +1 -1
- package/dist/es/standards-sdk.es107.js +77 -2281
- package/dist/es/standards-sdk.es107.js.map +1 -1
- package/dist/es/standards-sdk.es108.js +1 -1
- package/dist/es/standards-sdk.es113.js +1 -1
- package/dist/es/standards-sdk.es114.js +2 -2
- package/dist/es/standards-sdk.es12.js +3 -3
- package/dist/es/standards-sdk.es14.js +1 -1
- package/dist/es/standards-sdk.es17.js +2 -2
- package/dist/es/standards-sdk.es18.js +3 -3
- package/dist/es/standards-sdk.es20.js +966 -1692
- package/dist/es/standards-sdk.es20.js.map +1 -1
- package/dist/es/standards-sdk.es21.js +1767 -3
- package/dist/es/standards-sdk.es21.js.map +1 -1
- package/dist/es/standards-sdk.es22.js +36 -4167
- package/dist/es/standards-sdk.es22.js.map +1 -1
- package/dist/es/standards-sdk.es23.js +48 -5
- package/dist/es/standards-sdk.es23.js.map +1 -1
- package/dist/es/standards-sdk.es24.js +6627 -36
- package/dist/es/standards-sdk.es24.js.map +1 -1
- package/dist/es/standards-sdk.es25.js +3 -48
- package/dist/es/standards-sdk.es25.js.map +1 -1
- package/dist/es/standards-sdk.es26.js +2 -6627
- package/dist/es/standards-sdk.es26.js.map +1 -1
- package/dist/es/standards-sdk.es27.js +5 -2
- package/dist/es/standards-sdk.es27.js.map +1 -1
- package/dist/es/standards-sdk.es28.js +4086 -960
- package/dist/es/standards-sdk.es28.js.map +1 -1
- package/dist/es/standards-sdk.es32.js +3 -4
- package/dist/es/standards-sdk.es32.js.map +1 -1
- package/dist/es/standards-sdk.es33.js +164 -2
- package/dist/es/standards-sdk.es33.js.map +1 -1
- package/dist/es/standards-sdk.es34.js +2 -3
- package/dist/es/standards-sdk.es34.js.map +1 -1
- package/dist/es/standards-sdk.es35.js +177 -146
- package/dist/es/standards-sdk.es35.js.map +1 -1
- package/dist/es/standards-sdk.es36.js +408 -334
- package/dist/es/standards-sdk.es36.js.map +1 -1
- package/dist/es/standards-sdk.es37.js +24 -5
- package/dist/es/standards-sdk.es37.js.map +1 -1
- package/dist/es/standards-sdk.es38.js +125 -165
- package/dist/es/standards-sdk.es38.js.map +1 -1
- package/dist/es/standards-sdk.es39.js +13 -76
- package/dist/es/standards-sdk.es39.js.map +1 -1
- package/dist/es/standards-sdk.es4.js +1 -1
- package/dist/es/standards-sdk.es40.js +26 -111
- package/dist/es/standards-sdk.es40.js.map +1 -1
- package/dist/es/standards-sdk.es41.js +24 -47
- package/dist/es/standards-sdk.es41.js.map +1 -1
- package/dist/es/standards-sdk.es42.js +20 -9
- package/dist/es/standards-sdk.es42.js.map +1 -1
- package/dist/es/standards-sdk.es43.js +37 -90
- package/dist/es/standards-sdk.es43.js.map +1 -1
- package/dist/es/standards-sdk.es44.js +17 -3
- package/dist/es/standards-sdk.es44.js.map +1 -1
- package/dist/es/standards-sdk.es45.js +61 -2
- package/dist/es/standards-sdk.es45.js.map +1 -1
- package/dist/es/standards-sdk.es46.js +1283 -107
- package/dist/es/standards-sdk.es46.js.map +1 -1
- package/dist/es/standards-sdk.es47.js +143 -69
- package/dist/es/standards-sdk.es47.js.map +1 -1
- package/dist/es/standards-sdk.es48.js +90 -5
- package/dist/es/standards-sdk.es48.js.map +1 -1
- package/dist/es/standards-sdk.es49.js +83 -4
- package/dist/es/standards-sdk.es49.js.map +1 -1
- package/dist/es/standards-sdk.es5.js +3 -3
- package/dist/es/standards-sdk.es50.js +26 -215
- package/dist/es/standards-sdk.es50.js.map +1 -1
- package/dist/es/standards-sdk.es51.js +6 -58
- package/dist/es/standards-sdk.es51.js.map +1 -1
- package/dist/es/standards-sdk.es52.js +159 -69
- package/dist/es/standards-sdk.es52.js.map +1 -1
- package/dist/es/standards-sdk.es53.js +2 -2
- package/dist/es/standards-sdk.es54.js +785 -166
- package/dist/es/standards-sdk.es54.js.map +1 -1
- package/dist/es/standards-sdk.es55.js +163 -80
- package/dist/es/standards-sdk.es55.js.map +1 -1
- package/dist/es/standards-sdk.es56.js +142 -5
- package/dist/es/standards-sdk.es56.js.map +1 -1
- package/dist/es/standards-sdk.es57.js +3 -142
- package/dist/es/standards-sdk.es57.js.map +1 -1
- package/dist/es/standards-sdk.es58.js +17 -191
- package/dist/es/standards-sdk.es58.js.map +1 -1
- package/dist/es/standards-sdk.es59.js +22 -433
- package/dist/es/standards-sdk.es59.js.map +1 -1
- package/dist/es/standards-sdk.es60.js +24 -23
- package/dist/es/standards-sdk.es60.js.map +1 -1
- package/dist/es/standards-sdk.es61.js +34 -135
- package/dist/es/standards-sdk.es61.js.map +1 -1
- package/dist/es/standards-sdk.es62.js +358 -12
- package/dist/es/standards-sdk.es62.js.map +1 -1
- package/dist/es/standards-sdk.es63.js +5 -28
- package/dist/es/standards-sdk.es63.js.map +1 -1
- package/dist/es/standards-sdk.es64.js +173 -23
- package/dist/es/standards-sdk.es64.js.map +1 -1
- package/dist/es/standards-sdk.es65.js +75 -15
- package/dist/es/standards-sdk.es65.js.map +1 -1
- package/dist/es/standards-sdk.es66.js +109 -39
- package/dist/es/standards-sdk.es66.js.map +1 -1
- package/dist/es/standards-sdk.es67.js +48 -14
- package/dist/es/standards-sdk.es67.js.map +1 -1
- package/dist/es/standards-sdk.es68.js +9 -60
- package/dist/es/standards-sdk.es68.js.map +1 -1
- package/dist/es/standards-sdk.es69.js +73 -1265
- package/dist/es/standards-sdk.es69.js.map +1 -1
- package/dist/es/standards-sdk.es7.js +3 -3
- package/dist/es/standards-sdk.es70.js +3 -147
- package/dist/es/standards-sdk.es70.js.map +1 -1
- package/dist/es/standards-sdk.es71.js +2 -84
- package/dist/es/standards-sdk.es71.js.map +1 -1
- package/dist/es/standards-sdk.es72.js +108 -27
- package/dist/es/standards-sdk.es72.js.map +1 -1
- package/dist/es/standards-sdk.es73.js +69 -154
- package/dist/es/standards-sdk.es73.js.map +1 -1
- package/dist/es/standards-sdk.es74.js +5 -792
- package/dist/es/standards-sdk.es74.js.map +1 -1
- package/dist/es/standards-sdk.es75.js +4 -31
- package/dist/es/standards-sdk.es75.js.map +1 -1
- package/dist/es/standards-sdk.es76.js +212 -54
- package/dist/es/standards-sdk.es76.js.map +1 -1
- package/dist/es/standards-sdk.es77.js +55 -47
- package/dist/es/standards-sdk.es77.js.map +1 -1
- package/dist/es/standards-sdk.es78.js +69 -10
- package/dist/es/standards-sdk.es78.js.map +1 -1
- package/dist/es/standards-sdk.es79.js +95 -59
- package/dist/es/standards-sdk.es79.js.map +1 -1
- package/dist/es/standards-sdk.es8.js +17 -3
- package/dist/es/standards-sdk.es8.js.map +1 -1
- package/dist/es/standards-sdk.es80.js +2 -6
- package/dist/es/standards-sdk.es80.js.map +1 -1
- package/dist/es/standards-sdk.es81.js +15 -14
- package/dist/es/standards-sdk.es81.js.map +1 -1
- package/dist/es/standards-sdk.es82.js +409 -7
- package/dist/es/standards-sdk.es82.js.map +1 -1
- package/dist/es/standards-sdk.es83.js +31 -44
- package/dist/es/standards-sdk.es83.js.map +1 -1
- package/dist/es/standards-sdk.es84.js +63 -2
- package/dist/es/standards-sdk.es84.js.map +1 -1
- package/dist/es/standards-sdk.es85.js +47 -133
- package/dist/es/standards-sdk.es85.js.map +1 -1
- package/dist/es/standards-sdk.es86.js +10 -172
- package/dist/es/standards-sdk.es86.js.map +1 -1
- package/dist/es/standards-sdk.es87.js +63 -25
- package/dist/es/standards-sdk.es87.js.map +1 -1
- package/dist/es/standards-sdk.es88.js +6 -26
- package/dist/es/standards-sdk.es88.js.map +1 -1
- package/dist/es/standards-sdk.es89.js +14 -37
- package/dist/es/standards-sdk.es89.js.map +1 -1
- package/dist/es/standards-sdk.es9.js +1 -1
- package/dist/es/standards-sdk.es90.js +7 -101
- package/dist/es/standards-sdk.es90.js.map +1 -1
- package/dist/es/standards-sdk.es91.js +45 -2
- package/dist/es/standards-sdk.es91.js.map +1 -1
- package/dist/es/standards-sdk.es92.js +2 -16
- package/dist/es/standards-sdk.es92.js.map +1 -1
- package/dist/es/standards-sdk.es93.js +131 -404
- package/dist/es/standards-sdk.es93.js.map +1 -1
- package/dist/es/standards-sdk.es94.js +172 -21
- package/dist/es/standards-sdk.es94.js.map +1 -1
- package/dist/es/standards-sdk.es95.js +2281 -12
- package/dist/es/standards-sdk.es95.js.map +1 -1
- package/dist/es/standards-sdk.es96.js +13 -13
- package/dist/es/standards-sdk.es96.js.map +1 -1
- package/dist/es/standards-sdk.es97.js +13 -32
- package/dist/es/standards-sdk.es97.js.map +1 -1
- package/dist/es/standards-sdk.es98.js +30 -13
- package/dist/es/standards-sdk.es98.js.map +1 -1
- package/dist/es/standards-sdk.es99.js +14 -3
- package/dist/es/standards-sdk.es99.js.map +1 -1
- package/dist/umd/hcs-10/browser.d.ts.map +1 -1
- package/dist/umd/standards-sdk.umd.js +1 -1
- package/dist/umd/standards-sdk.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,142 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (Array.isArray(values)) {
|
|
12
|
-
arrayValues = values;
|
|
13
|
-
} else if (values && typeof values === "object") {
|
|
14
|
-
let unique = {};
|
|
15
|
-
arrayValues = coders.map((coder) => {
|
|
16
|
-
const name = coder.localName;
|
|
17
|
-
assert(name, "cannot encode object for signature with missing names", "INVALID_ARGUMENT", { argument: "values", info: { coder }, value: values });
|
|
18
|
-
assert(!unique[name], "cannot encode object for signature with duplicate names", "INVALID_ARGUMENT", { argument: "values", info: { coder }, value: values });
|
|
19
|
-
unique[name] = true;
|
|
20
|
-
return values[name];
|
|
21
|
-
});
|
|
22
|
-
} else {
|
|
23
|
-
assertArgument(false, "invalid tuple value", "tuple", values);
|
|
24
|
-
}
|
|
25
|
-
assertArgument(coders.length === arrayValues.length, "types/value length mismatch", "tuple", values);
|
|
26
|
-
let staticWriter = new Writer();
|
|
27
|
-
let dynamicWriter = new Writer();
|
|
28
|
-
let updateFuncs = [];
|
|
29
|
-
coders.forEach((coder, index) => {
|
|
30
|
-
let value = arrayValues[index];
|
|
31
|
-
if (coder.dynamic) {
|
|
32
|
-
let dynamicOffset = dynamicWriter.length;
|
|
33
|
-
coder.encode(dynamicWriter, value);
|
|
34
|
-
let updateFunc = staticWriter.writeUpdatableValue();
|
|
35
|
-
updateFuncs.push((baseOffset) => {
|
|
36
|
-
updateFunc(baseOffset + dynamicOffset);
|
|
37
|
-
});
|
|
38
|
-
} else {
|
|
39
|
-
coder.encode(staticWriter, value);
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
updateFuncs.forEach((func) => {
|
|
43
|
-
func(staticWriter.length);
|
|
44
|
-
});
|
|
45
|
-
let length = writer.appendWriter(staticWriter);
|
|
46
|
-
length += writer.appendWriter(dynamicWriter);
|
|
47
|
-
return length;
|
|
1
|
+
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
2
|
+
const u8a = (a) => a instanceof Uint8Array;
|
|
3
|
+
const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
4
|
+
const isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
5
|
+
if (!isLE)
|
|
6
|
+
throw new Error("Non little-endian hardware is not supported");
|
|
7
|
+
function utf8ToBytes(str) {
|
|
8
|
+
if (typeof str !== "string")
|
|
9
|
+
throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
|
|
10
|
+
return new Uint8Array(new TextEncoder().encode(str));
|
|
48
11
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
if (coder.dynamic) {
|
|
56
|
-
let offset = reader.readIndex();
|
|
57
|
-
let offsetReader = baseReader.subReader(offset);
|
|
58
|
-
try {
|
|
59
|
-
value = coder.decode(offsetReader);
|
|
60
|
-
} catch (error) {
|
|
61
|
-
if (isError(error, "BUFFER_OVERRUN")) {
|
|
62
|
-
throw error;
|
|
63
|
-
}
|
|
64
|
-
value = error;
|
|
65
|
-
value.baseType = coder.name;
|
|
66
|
-
value.name = coder.localName;
|
|
67
|
-
value.type = coder.type;
|
|
68
|
-
}
|
|
69
|
-
} else {
|
|
70
|
-
try {
|
|
71
|
-
value = coder.decode(reader);
|
|
72
|
-
} catch (error) {
|
|
73
|
-
if (isError(error, "BUFFER_OVERRUN")) {
|
|
74
|
-
throw error;
|
|
75
|
-
}
|
|
76
|
-
value = error;
|
|
77
|
-
value.baseType = coder.name;
|
|
78
|
-
value.name = coder.localName;
|
|
79
|
-
value.type = coder.type;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
if (value == void 0) {
|
|
83
|
-
throw new Error("investigate");
|
|
84
|
-
}
|
|
85
|
-
values.push(value);
|
|
86
|
-
keys.push(coder.localName || null);
|
|
87
|
-
});
|
|
88
|
-
return Result.fromItems(values, keys);
|
|
12
|
+
function toBytes(data) {
|
|
13
|
+
if (typeof data === "string")
|
|
14
|
+
data = utf8ToBytes(data);
|
|
15
|
+
if (!u8a(data))
|
|
16
|
+
throw new Error(`expected Uint8Array, got ${typeof data}`);
|
|
17
|
+
return data;
|
|
89
18
|
}
|
|
90
|
-
class
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
super("array", type, localName, dynamic);
|
|
95
|
-
__publicField(this, "coder");
|
|
96
|
-
__publicField(this, "length");
|
|
97
|
-
defineProperties(this, { coder, length });
|
|
98
|
-
}
|
|
99
|
-
defaultValue() {
|
|
100
|
-
const defaultChild = this.coder.defaultValue();
|
|
101
|
-
const result = [];
|
|
102
|
-
for (let i = 0; i < this.length; i++) {
|
|
103
|
-
result.push(defaultChild);
|
|
104
|
-
}
|
|
105
|
-
return result;
|
|
106
|
-
}
|
|
107
|
-
encode(writer, _value) {
|
|
108
|
-
const value = Typed.dereference(_value, "array");
|
|
109
|
-
if (!Array.isArray(value)) {
|
|
110
|
-
this._throwError("expected array value", value);
|
|
111
|
-
}
|
|
112
|
-
let count = this.length;
|
|
113
|
-
if (count === -1) {
|
|
114
|
-
count = value.length;
|
|
115
|
-
writer.writeValue(value.length);
|
|
116
|
-
}
|
|
117
|
-
assertArgumentCount(value.length, count, "coder array" + (this.localName ? " " + this.localName : ""));
|
|
118
|
-
let coders = [];
|
|
119
|
-
for (let i = 0; i < value.length; i++) {
|
|
120
|
-
coders.push(this.coder);
|
|
121
|
-
}
|
|
122
|
-
return pack(writer, coders, value);
|
|
123
|
-
}
|
|
124
|
-
decode(reader) {
|
|
125
|
-
let count = this.length;
|
|
126
|
-
if (count === -1) {
|
|
127
|
-
count = reader.readIndex();
|
|
128
|
-
assert(count * WordSize <= reader.dataLength, "insufficient data length", "BUFFER_OVERRUN", { buffer: reader.bytes, offset: count * WordSize, length: reader.dataLength });
|
|
129
|
-
}
|
|
130
|
-
let coders = [];
|
|
131
|
-
for (let i = 0; i < count; i++) {
|
|
132
|
-
coders.push(new AnonymousCoder(this.coder));
|
|
133
|
-
}
|
|
134
|
-
return unpack(reader, coders);
|
|
19
|
+
class Hash {
|
|
20
|
+
// Safe version that clones internal state
|
|
21
|
+
clone() {
|
|
22
|
+
return this._cloneInto();
|
|
135
23
|
}
|
|
136
24
|
}
|
|
25
|
+
function wrapConstructor(hashCons) {
|
|
26
|
+
const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
|
|
27
|
+
const tmp = hashCons();
|
|
28
|
+
hashC.outputLen = tmp.outputLen;
|
|
29
|
+
hashC.blockLen = tmp.blockLen;
|
|
30
|
+
hashC.create = () => hashCons();
|
|
31
|
+
return hashC;
|
|
32
|
+
}
|
|
137
33
|
export {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
34
|
+
Hash,
|
|
35
|
+
isLE,
|
|
36
|
+
toBytes,
|
|
37
|
+
u32,
|
|
38
|
+
utf8ToBytes,
|
|
39
|
+
wrapConstructor
|
|
141
40
|
};
|
|
142
41
|
//# sourceMappingURL=standards-sdk.es61.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standards-sdk.es61.js","sources":["../../node_modules/
|
|
1
|
+
{"version":3,"file":"standards-sdk.es61.js","sources":["../../node_modules/@noble/hashes/esm/utils.js"],"sourcesContent":["/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */\n// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+.\n// node.js versions earlier than v19 don't declare it in global scope.\n// For node.js, package.json#exports field mapping rewrites import\n// from `crypto` to `cryptoNode`, which imports native module.\n// Makes the utils un-importable in browsers without a bundler.\n// Once node.js 18 is deprecated, we can just drop the import.\nimport { crypto } from '@noble/hashes/crypto';\nconst u8a = (a) => a instanceof Uint8Array;\n// Cast array to different type\nexport const u8 = (arr) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);\nexport const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));\n// Cast array to view\nexport const createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength);\n// The rotate right (circular right shift) operation for uint32\nexport const rotr = (word, shift) => (word << (32 - shift)) | (word >>> shift);\n// big-endian hardware is rare. Just in case someone still decides to run hashes:\n// early-throw an error because we don't support BE yet.\nexport const isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44;\nif (!isLE)\n throw new Error('Non little-endian hardware is not supported');\nconst hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, '0'));\n/**\n * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123'\n */\nexport function bytesToHex(bytes) {\n if (!u8a(bytes))\n throw new Error('Uint8Array expected');\n // pre-caching improves the speed 6x\n let hex = '';\n for (let i = 0; i < bytes.length; i++) {\n hex += hexes[bytes[i]];\n }\n return hex;\n}\n/**\n * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23])\n */\nexport function hexToBytes(hex) {\n if (typeof hex !== 'string')\n throw new Error('hex string expected, got ' + typeof hex);\n const len = hex.length;\n if (len % 2)\n throw new Error('padded hex string expected, got unpadded hex of length ' + len);\n const array = new Uint8Array(len / 2);\n for (let i = 0; i < array.length; i++) {\n const j = i * 2;\n const hexByte = hex.slice(j, j + 2);\n const byte = Number.parseInt(hexByte, 16);\n if (Number.isNaN(byte) || byte < 0)\n throw new Error('Invalid byte sequence');\n array[i] = byte;\n }\n return array;\n}\n// There is no setImmediate in browser and setTimeout is slow.\n// call of async fn will return Promise, which will be fullfiled only on\n// next scheduler queue processing step and this is exactly what we need.\nexport const nextTick = async () => { };\n// Returns control to thread each 'tick' ms to avoid blocking\nexport async function asyncLoop(iters, tick, cb) {\n let ts = Date.now();\n for (let i = 0; i < iters; i++) {\n cb(i);\n // Date.now() is not monotonic, so in case if clock goes backwards we return return control too\n const diff = Date.now() - ts;\n if (diff >= 0 && diff < tick)\n continue;\n await nextTick();\n ts += diff;\n }\n}\n/**\n * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])\n */\nexport function utf8ToBytes(str) {\n if (typeof str !== 'string')\n throw new Error(`utf8ToBytes expected string, got ${typeof str}`);\n return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809\n}\n/**\n * Normalizes (non-hex) string or Uint8Array to Uint8Array.\n * Warning: when Uint8Array is passed, it would NOT get copied.\n * Keep in mind for future mutable operations.\n */\nexport function toBytes(data) {\n if (typeof data === 'string')\n data = utf8ToBytes(data);\n if (!u8a(data))\n throw new Error(`expected Uint8Array, got ${typeof data}`);\n return data;\n}\n/**\n * Copies several Uint8Arrays into one.\n */\nexport function concatBytes(...arrays) {\n const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0));\n let pad = 0; // walk through each item, ensure they have proper type\n arrays.forEach((a) => {\n if (!u8a(a))\n throw new Error('Uint8Array expected');\n r.set(a, pad);\n pad += a.length;\n });\n return r;\n}\n// For runtime check if class implements interface\nexport class Hash {\n // Safe version that clones internal state\n clone() {\n return this._cloneInto();\n }\n}\nconst toStr = {}.toString;\nexport function checkOpts(defaults, opts) {\n if (opts !== undefined && toStr.call(opts) !== '[object Object]')\n throw new Error('Options should be object or undefined');\n const merged = Object.assign(defaults, opts);\n return merged;\n}\nexport function wrapConstructor(hashCons) {\n const hashC = (msg) => hashCons().update(toBytes(msg)).digest();\n const tmp = hashCons();\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = () => hashCons();\n return hashC;\n}\nexport function wrapConstructorWithOpts(hashCons) {\n const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();\n const tmp = hashCons({});\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = (opts) => hashCons(opts);\n return hashC;\n}\nexport function wrapXOFConstructorWithOpts(hashCons) {\n const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();\n const tmp = hashCons({});\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = (opts) => hashCons(opts);\n return hashC;\n}\n/**\n * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS.\n */\nexport function randomBytes(bytesLength = 32) {\n if (crypto && typeof crypto.getRandomValues === 'function') {\n return crypto.getRandomValues(new Uint8Array(bytesLength));\n }\n throw new Error('crypto.getRandomValues must be defined');\n}\n//# sourceMappingURL=utils.js.map"],"names":[],"mappings":"AAAA;AAQA,MAAM,MAAM,CAAC,MAAM,aAAa;AAGpB,MAAC,MAAM,CAAC,QAAQ,IAAI,YAAY,IAAI,QAAQ,IAAI,YAAY,KAAK,MAAM,IAAI,aAAa,CAAC,CAAC;AAO1F,MAAC,OAAO,IAAI,WAAW,IAAI,YAAY,CAAC,SAAU,CAAC,EAAE,MAAM,EAAE,CAAC,MAAM;AAChF,IAAI,CAAC;AACD,QAAM,IAAI,MAAM,6CAA6C;AAuD1D,SAAS,YAAY,KAAK;AAC7B,MAAI,OAAO,QAAQ;AACf,UAAM,IAAI,MAAM,oCAAoC,OAAO,GAAG,EAAE;AACpE,SAAO,IAAI,WAAW,IAAI,YAAa,EAAC,OAAO,GAAG,CAAC;AACvD;AAMO,SAAS,QAAQ,MAAM;AAC1B,MAAI,OAAO,SAAS;AAChB,WAAO,YAAY,IAAI;AAC3B,MAAI,CAAC,IAAI,IAAI;AACT,UAAM,IAAI,MAAM,4BAA4B,OAAO,IAAI,EAAE;AAC7D,SAAO;AACX;AAgBO,MAAM,KAAK;AAAA;AAAA,EAEd,QAAQ;AACJ,WAAO,KAAK,WAAY;AAAA,EAChC;AACA;AAQO,SAAS,gBAAgB,UAAU;AACtC,QAAM,QAAQ,CAAC,QAAQ,SAAU,EAAC,OAAO,QAAQ,GAAG,CAAC,EAAE,OAAQ;AAC/D,QAAM,MAAM,SAAU;AACtB,QAAM,YAAY,IAAI;AACtB,QAAM,WAAW,IAAI;AACrB,QAAM,SAAS,MAAM,SAAU;AAC/B,SAAO;AACX;","x_google_ignoreList":[0]}
|
|
@@ -1,21 +1,367 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import global from "./standards-sdk.es32.js";
|
|
2
|
+
import process$1 from "./standards-sdk.es33.js";
|
|
3
|
+
import bind from "./standards-sdk.es63.js";
|
|
4
|
+
const { toString } = Object.prototype;
|
|
5
|
+
const { getPrototypeOf } = Object;
|
|
6
|
+
const kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
7
|
+
const str = toString.call(thing);
|
|
8
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
9
|
+
})(/* @__PURE__ */ Object.create(null));
|
|
10
|
+
const kindOfTest = (type) => {
|
|
11
|
+
type = type.toLowerCase();
|
|
12
|
+
return (thing) => kindOf(thing) === type;
|
|
13
|
+
};
|
|
14
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
15
|
+
const { isArray } = Array;
|
|
16
|
+
const isUndefined = typeOfTest("undefined");
|
|
17
|
+
function isBuffer(val) {
|
|
18
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
19
|
+
}
|
|
20
|
+
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
21
|
+
function isArrayBufferView(val) {
|
|
22
|
+
let result;
|
|
23
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
24
|
+
result = ArrayBuffer.isView(val);
|
|
25
|
+
} else {
|
|
26
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
6
27
|
}
|
|
7
|
-
|
|
28
|
+
return result;
|
|
29
|
+
}
|
|
30
|
+
const isString = typeOfTest("string");
|
|
31
|
+
const isFunction = typeOfTest("function");
|
|
32
|
+
const isNumber = typeOfTest("number");
|
|
33
|
+
const isObject = (thing) => thing !== null && typeof thing === "object";
|
|
34
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
35
|
+
const isPlainObject = (val) => {
|
|
36
|
+
if (kindOf(val) !== "object") {
|
|
8
37
|
return false;
|
|
9
38
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
39
|
+
const prototype = getPrototypeOf(val);
|
|
40
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
|
|
41
|
+
};
|
|
42
|
+
const isDate = kindOfTest("Date");
|
|
43
|
+
const isFile = kindOfTest("File");
|
|
44
|
+
const isBlob = kindOfTest("Blob");
|
|
45
|
+
const isFileList = kindOfTest("FileList");
|
|
46
|
+
const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
47
|
+
const isFormData = (thing) => {
|
|
48
|
+
let kind;
|
|
49
|
+
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
50
|
+
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
51
|
+
};
|
|
52
|
+
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
53
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
54
|
+
const trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
55
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
56
|
+
if (obj === null || typeof obj === "undefined") {
|
|
57
|
+
return;
|
|
13
58
|
}
|
|
14
|
-
|
|
15
|
-
|
|
59
|
+
let i;
|
|
60
|
+
let l;
|
|
61
|
+
if (typeof obj !== "object") {
|
|
62
|
+
obj = [obj];
|
|
16
63
|
}
|
|
64
|
+
if (isArray(obj)) {
|
|
65
|
+
for (i = 0, l = obj.length; i < l; i++) {
|
|
66
|
+
fn.call(null, obj[i], i, obj);
|
|
67
|
+
}
|
|
68
|
+
} else {
|
|
69
|
+
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
70
|
+
const len = keys.length;
|
|
71
|
+
let key;
|
|
72
|
+
for (i = 0; i < len; i++) {
|
|
73
|
+
key = keys[i];
|
|
74
|
+
fn.call(null, obj[key], key, obj);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function findKey(obj, key) {
|
|
79
|
+
key = key.toLowerCase();
|
|
80
|
+
const keys = Object.keys(obj);
|
|
81
|
+
let i = keys.length;
|
|
82
|
+
let _key;
|
|
83
|
+
while (i-- > 0) {
|
|
84
|
+
_key = keys[i];
|
|
85
|
+
if (key === _key.toLowerCase()) {
|
|
86
|
+
return _key;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return null;
|
|
17
90
|
}
|
|
91
|
+
const _global = (() => {
|
|
92
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
93
|
+
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
94
|
+
})();
|
|
95
|
+
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
96
|
+
function merge() {
|
|
97
|
+
const { caseless } = isContextDefined(this) && this || {};
|
|
98
|
+
const result = {};
|
|
99
|
+
const assignValue = (val, key) => {
|
|
100
|
+
const targetKey = caseless && findKey(result, key) || key;
|
|
101
|
+
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
102
|
+
result[targetKey] = merge(result[targetKey], val);
|
|
103
|
+
} else if (isPlainObject(val)) {
|
|
104
|
+
result[targetKey] = merge({}, val);
|
|
105
|
+
} else if (isArray(val)) {
|
|
106
|
+
result[targetKey] = val.slice();
|
|
107
|
+
} else {
|
|
108
|
+
result[targetKey] = val;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
for (let i = 0, l = arguments.length; i < l; i++) {
|
|
112
|
+
arguments[i] && forEach(arguments[i], assignValue);
|
|
113
|
+
}
|
|
114
|
+
return result;
|
|
115
|
+
}
|
|
116
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
117
|
+
forEach(b, (val, key) => {
|
|
118
|
+
if (thisArg && isFunction(val)) {
|
|
119
|
+
a[key] = bind(val, thisArg);
|
|
120
|
+
} else {
|
|
121
|
+
a[key] = val;
|
|
122
|
+
}
|
|
123
|
+
}, { allOwnKeys });
|
|
124
|
+
return a;
|
|
125
|
+
};
|
|
126
|
+
const stripBOM = (content) => {
|
|
127
|
+
if (content.charCodeAt(0) === 65279) {
|
|
128
|
+
content = content.slice(1);
|
|
129
|
+
}
|
|
130
|
+
return content;
|
|
131
|
+
};
|
|
132
|
+
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
133
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
134
|
+
constructor.prototype.constructor = constructor;
|
|
135
|
+
Object.defineProperty(constructor, "super", {
|
|
136
|
+
value: superConstructor.prototype
|
|
137
|
+
});
|
|
138
|
+
props && Object.assign(constructor.prototype, props);
|
|
139
|
+
};
|
|
140
|
+
const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
|
|
141
|
+
let props;
|
|
142
|
+
let i;
|
|
143
|
+
let prop;
|
|
144
|
+
const merged = {};
|
|
145
|
+
destObj = destObj || {};
|
|
146
|
+
if (sourceObj == null) return destObj;
|
|
147
|
+
do {
|
|
148
|
+
props = Object.getOwnPropertyNames(sourceObj);
|
|
149
|
+
i = props.length;
|
|
150
|
+
while (i-- > 0) {
|
|
151
|
+
prop = props[i];
|
|
152
|
+
if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
|
|
153
|
+
destObj[prop] = sourceObj[prop];
|
|
154
|
+
merged[prop] = true;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
158
|
+
} while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
|
|
159
|
+
return destObj;
|
|
160
|
+
};
|
|
161
|
+
const endsWith = (str, searchString, position) => {
|
|
162
|
+
str = String(str);
|
|
163
|
+
if (position === void 0 || position > str.length) {
|
|
164
|
+
position = str.length;
|
|
165
|
+
}
|
|
166
|
+
position -= searchString.length;
|
|
167
|
+
const lastIndex = str.indexOf(searchString, position);
|
|
168
|
+
return lastIndex !== -1 && lastIndex === position;
|
|
169
|
+
};
|
|
170
|
+
const toArray = (thing) => {
|
|
171
|
+
if (!thing) return null;
|
|
172
|
+
if (isArray(thing)) return thing;
|
|
173
|
+
let i = thing.length;
|
|
174
|
+
if (!isNumber(i)) return null;
|
|
175
|
+
const arr = new Array(i);
|
|
176
|
+
while (i-- > 0) {
|
|
177
|
+
arr[i] = thing[i];
|
|
178
|
+
}
|
|
179
|
+
return arr;
|
|
180
|
+
};
|
|
181
|
+
const isTypedArray = /* @__PURE__ */ ((TypedArray) => {
|
|
182
|
+
return (thing) => {
|
|
183
|
+
return TypedArray && thing instanceof TypedArray;
|
|
184
|
+
};
|
|
185
|
+
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
186
|
+
const forEachEntry = (obj, fn) => {
|
|
187
|
+
const generator = obj && obj[Symbol.iterator];
|
|
188
|
+
const iterator = generator.call(obj);
|
|
189
|
+
let result;
|
|
190
|
+
while ((result = iterator.next()) && !result.done) {
|
|
191
|
+
const pair = result.value;
|
|
192
|
+
fn.call(obj, pair[0], pair[1]);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
const matchAll = (regExp, str) => {
|
|
196
|
+
let matches;
|
|
197
|
+
const arr = [];
|
|
198
|
+
while ((matches = regExp.exec(str)) !== null) {
|
|
199
|
+
arr.push(matches);
|
|
200
|
+
}
|
|
201
|
+
return arr;
|
|
202
|
+
};
|
|
203
|
+
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
204
|
+
const toCamelCase = (str) => {
|
|
205
|
+
return str.toLowerCase().replace(
|
|
206
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
207
|
+
function replacer(m, p1, p2) {
|
|
208
|
+
return p1.toUpperCase() + p2;
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
};
|
|
212
|
+
const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
213
|
+
const isRegExp = kindOfTest("RegExp");
|
|
214
|
+
const reduceDescriptors = (obj, reducer) => {
|
|
215
|
+
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
216
|
+
const reducedDescriptors = {};
|
|
217
|
+
forEach(descriptors, (descriptor, name) => {
|
|
218
|
+
let ret;
|
|
219
|
+
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
220
|
+
reducedDescriptors[name] = ret || descriptor;
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
Object.defineProperties(obj, reducedDescriptors);
|
|
224
|
+
};
|
|
225
|
+
const freezeMethods = (obj) => {
|
|
226
|
+
reduceDescriptors(obj, (descriptor, name) => {
|
|
227
|
+
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
const value = obj[name];
|
|
231
|
+
if (!isFunction(value)) return;
|
|
232
|
+
descriptor.enumerable = false;
|
|
233
|
+
if ("writable" in descriptor) {
|
|
234
|
+
descriptor.writable = false;
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
if (!descriptor.set) {
|
|
238
|
+
descriptor.set = () => {
|
|
239
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
const toObjectSet = (arrayOrString, delimiter) => {
|
|
245
|
+
const obj = {};
|
|
246
|
+
const define = (arr) => {
|
|
247
|
+
arr.forEach((value) => {
|
|
248
|
+
obj[value] = true;
|
|
249
|
+
});
|
|
250
|
+
};
|
|
251
|
+
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
252
|
+
return obj;
|
|
253
|
+
};
|
|
254
|
+
const noop = () => {
|
|
255
|
+
};
|
|
256
|
+
const toFiniteNumber = (value, defaultValue) => {
|
|
257
|
+
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
258
|
+
};
|
|
259
|
+
function isSpecCompliantForm(thing) {
|
|
260
|
+
return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
|
|
261
|
+
}
|
|
262
|
+
const toJSONObject = (obj) => {
|
|
263
|
+
const stack = new Array(10);
|
|
264
|
+
const visit = (source, i) => {
|
|
265
|
+
if (isObject(source)) {
|
|
266
|
+
if (stack.indexOf(source) >= 0) {
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
if (!("toJSON" in source)) {
|
|
270
|
+
stack[i] = source;
|
|
271
|
+
const target = isArray(source) ? [] : {};
|
|
272
|
+
forEach(source, (value, key) => {
|
|
273
|
+
const reducedValue = visit(value, i + 1);
|
|
274
|
+
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
275
|
+
});
|
|
276
|
+
stack[i] = void 0;
|
|
277
|
+
return target;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return source;
|
|
281
|
+
};
|
|
282
|
+
return visit(obj, 0);
|
|
283
|
+
};
|
|
284
|
+
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
285
|
+
const isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
286
|
+
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
287
|
+
if (setImmediateSupported) {
|
|
288
|
+
return setImmediate;
|
|
289
|
+
}
|
|
290
|
+
return postMessageSupported ? ((token, callbacks) => {
|
|
291
|
+
_global.addEventListener("message", ({ source, data }) => {
|
|
292
|
+
if (source === _global && data === token) {
|
|
293
|
+
callbacks.length && callbacks.shift()();
|
|
294
|
+
}
|
|
295
|
+
}, false);
|
|
296
|
+
return (cb) => {
|
|
297
|
+
callbacks.push(cb);
|
|
298
|
+
_global.postMessage(token, "*");
|
|
299
|
+
};
|
|
300
|
+
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
301
|
+
})(
|
|
302
|
+
typeof setImmediate === "function",
|
|
303
|
+
isFunction(_global.postMessage)
|
|
304
|
+
);
|
|
305
|
+
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process$1 !== "undefined" && process$1.nextTick || _setImmediate;
|
|
306
|
+
const utils = {
|
|
307
|
+
isArray,
|
|
308
|
+
isArrayBuffer,
|
|
309
|
+
isBuffer,
|
|
310
|
+
isFormData,
|
|
311
|
+
isArrayBufferView,
|
|
312
|
+
isString,
|
|
313
|
+
isNumber,
|
|
314
|
+
isBoolean,
|
|
315
|
+
isObject,
|
|
316
|
+
isPlainObject,
|
|
317
|
+
isReadableStream,
|
|
318
|
+
isRequest,
|
|
319
|
+
isResponse,
|
|
320
|
+
isHeaders,
|
|
321
|
+
isUndefined,
|
|
322
|
+
isDate,
|
|
323
|
+
isFile,
|
|
324
|
+
isBlob,
|
|
325
|
+
isRegExp,
|
|
326
|
+
isFunction,
|
|
327
|
+
isStream,
|
|
328
|
+
isURLSearchParams,
|
|
329
|
+
isTypedArray,
|
|
330
|
+
isFileList,
|
|
331
|
+
forEach,
|
|
332
|
+
merge,
|
|
333
|
+
extend,
|
|
334
|
+
trim,
|
|
335
|
+
stripBOM,
|
|
336
|
+
inherits,
|
|
337
|
+
toFlatObject,
|
|
338
|
+
kindOf,
|
|
339
|
+
kindOfTest,
|
|
340
|
+
endsWith,
|
|
341
|
+
toArray,
|
|
342
|
+
forEachEntry,
|
|
343
|
+
matchAll,
|
|
344
|
+
isHTMLForm,
|
|
345
|
+
hasOwnProperty,
|
|
346
|
+
hasOwnProp: hasOwnProperty,
|
|
347
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
348
|
+
reduceDescriptors,
|
|
349
|
+
freezeMethods,
|
|
350
|
+
toObjectSet,
|
|
351
|
+
toCamelCase,
|
|
352
|
+
noop,
|
|
353
|
+
toFiniteNumber,
|
|
354
|
+
findKey,
|
|
355
|
+
global: _global,
|
|
356
|
+
isContextDefined,
|
|
357
|
+
isSpecCompliantForm,
|
|
358
|
+
toJSONObject,
|
|
359
|
+
isAsyncFn,
|
|
360
|
+
isThenable,
|
|
361
|
+
setImmediate: _setImmediate,
|
|
362
|
+
asap
|
|
363
|
+
};
|
|
18
364
|
export {
|
|
19
|
-
|
|
365
|
+
utils as default
|
|
20
366
|
};
|
|
21
367
|
//# sourceMappingURL=standards-sdk.es62.js.map
|