@applemusic-like-lyrics/lyric 0.2.4 → 0.4.0
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 +23 -22
- package/package.json +7 -2
- package/pkg/amll_lyric.d.ts +61 -58
- package/pkg/amll_lyric.js +4 -2
- package/pkg/amll_lyric_bg.js +457 -553
- package/pkg/amll_lyric_bg.wasm +0 -0
- package/pkg/amll_lyric_bg.wasm.d.ts +22 -21
- package/pkg/lyric.d.ts +0 -138
- package/pkg/lyric.js +0 -4
- package/pkg/lyric_bg.js +0 -746
- package/pkg/lyric_bg.wasm +0 -0
- package/pkg/lyric_bg.wasm.d.ts +0 -21
package/pkg/lyric_bg.js
DELETED
|
@@ -1,746 +0,0 @@
|
|
|
1
|
-
let wasm;
|
|
2
|
-
export function __wbg_set_wasm(val) {
|
|
3
|
-
wasm = val;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
8
|
-
|
|
9
|
-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
10
|
-
|
|
11
|
-
cachedTextDecoder.decode();
|
|
12
|
-
|
|
13
|
-
let cachedUint8Memory0 = null;
|
|
14
|
-
|
|
15
|
-
function getUint8Memory0() {
|
|
16
|
-
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
17
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
18
|
-
}
|
|
19
|
-
return cachedUint8Memory0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function getStringFromWasm0(ptr, len) {
|
|
23
|
-
ptr = ptr >>> 0;
|
|
24
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const heap = new Array(128).fill(undefined);
|
|
28
|
-
|
|
29
|
-
heap.push(undefined, null, true, false);
|
|
30
|
-
|
|
31
|
-
let heap_next = heap.length;
|
|
32
|
-
|
|
33
|
-
function addHeapObject(obj) {
|
|
34
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
35
|
-
const idx = heap_next;
|
|
36
|
-
heap_next = heap[idx];
|
|
37
|
-
|
|
38
|
-
if (typeof(heap_next) !== 'number') throw new Error('corrupt heap');
|
|
39
|
-
|
|
40
|
-
heap[idx] = obj;
|
|
41
|
-
return idx;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function getObject(idx) { return heap[idx]; }
|
|
45
|
-
|
|
46
|
-
function _assertBoolean(n) {
|
|
47
|
-
if (typeof(n) !== 'boolean') {
|
|
48
|
-
throw new Error('expected a boolean argument');
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function _assertNum(n) {
|
|
53
|
-
if (typeof(n) !== 'number') throw new Error('expected a number argument');
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
let WASM_VECTOR_LEN = 0;
|
|
57
|
-
|
|
58
|
-
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
59
|
-
|
|
60
|
-
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
61
|
-
|
|
62
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
63
|
-
? function (arg, view) {
|
|
64
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
65
|
-
}
|
|
66
|
-
: function (arg, view) {
|
|
67
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
68
|
-
view.set(buf);
|
|
69
|
-
return {
|
|
70
|
-
read: arg.length,
|
|
71
|
-
written: buf.length
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
76
|
-
|
|
77
|
-
if (typeof(arg) !== 'string') throw new Error('expected a string argument');
|
|
78
|
-
|
|
79
|
-
if (realloc === undefined) {
|
|
80
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
81
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
82
|
-
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
83
|
-
WASM_VECTOR_LEN = buf.length;
|
|
84
|
-
return ptr;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
let len = arg.length;
|
|
88
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
89
|
-
|
|
90
|
-
const mem = getUint8Memory0();
|
|
91
|
-
|
|
92
|
-
let offset = 0;
|
|
93
|
-
|
|
94
|
-
for (; offset < len; offset++) {
|
|
95
|
-
const code = arg.charCodeAt(offset);
|
|
96
|
-
if (code > 0x7F) break;
|
|
97
|
-
mem[ptr + offset] = code;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (offset !== len) {
|
|
101
|
-
if (offset !== 0) {
|
|
102
|
-
arg = arg.slice(offset);
|
|
103
|
-
}
|
|
104
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
105
|
-
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
106
|
-
const ret = encodeString(arg, view);
|
|
107
|
-
if (ret.read !== arg.length) throw new Error('failed to pass whole string');
|
|
108
|
-
offset += ret.written;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
WASM_VECTOR_LEN = offset;
|
|
112
|
-
return ptr;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function isLikeNone(x) {
|
|
116
|
-
return x === undefined || x === null;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
let cachedInt32Memory0 = null;
|
|
120
|
-
|
|
121
|
-
function getInt32Memory0() {
|
|
122
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
123
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
124
|
-
}
|
|
125
|
-
return cachedInt32Memory0;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
function dropObject(idx) {
|
|
129
|
-
if (idx < 132) return;
|
|
130
|
-
heap[idx] = heap_next;
|
|
131
|
-
heap_next = idx;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
function takeObject(idx) {
|
|
135
|
-
const ret = getObject(idx);
|
|
136
|
-
dropObject(idx);
|
|
137
|
-
return ret;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
let cachedFloat64Memory0 = null;
|
|
141
|
-
|
|
142
|
-
function getFloat64Memory0() {
|
|
143
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
144
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
145
|
-
}
|
|
146
|
-
return cachedFloat64Memory0;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
function debugString(val) {
|
|
150
|
-
// primitive types
|
|
151
|
-
const type = typeof val;
|
|
152
|
-
if (type == 'number' || type == 'boolean' || val == null) {
|
|
153
|
-
return `${val}`;
|
|
154
|
-
}
|
|
155
|
-
if (type == 'string') {
|
|
156
|
-
return `"${val}"`;
|
|
157
|
-
}
|
|
158
|
-
if (type == 'symbol') {
|
|
159
|
-
const description = val.description;
|
|
160
|
-
if (description == null) {
|
|
161
|
-
return 'Symbol';
|
|
162
|
-
} else {
|
|
163
|
-
return `Symbol(${description})`;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
if (type == 'function') {
|
|
167
|
-
const name = val.name;
|
|
168
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
169
|
-
return `Function(${name})`;
|
|
170
|
-
} else {
|
|
171
|
-
return 'Function';
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
// objects
|
|
175
|
-
if (Array.isArray(val)) {
|
|
176
|
-
const length = val.length;
|
|
177
|
-
let debug = '[';
|
|
178
|
-
if (length > 0) {
|
|
179
|
-
debug += debugString(val[0]);
|
|
180
|
-
}
|
|
181
|
-
for(let i = 1; i < length; i++) {
|
|
182
|
-
debug += ', ' + debugString(val[i]);
|
|
183
|
-
}
|
|
184
|
-
debug += ']';
|
|
185
|
-
return debug;
|
|
186
|
-
}
|
|
187
|
-
// Test for built-in
|
|
188
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
189
|
-
let className;
|
|
190
|
-
if (builtInMatches.length > 1) {
|
|
191
|
-
className = builtInMatches[1];
|
|
192
|
-
} else {
|
|
193
|
-
// Failed to match the standard '[object ClassName]'
|
|
194
|
-
return toString.call(val);
|
|
195
|
-
}
|
|
196
|
-
if (className == 'Object') {
|
|
197
|
-
// we're a user defined class or Object
|
|
198
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
199
|
-
// easier than looping through ownProperties of `val`.
|
|
200
|
-
try {
|
|
201
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
202
|
-
} catch (_) {
|
|
203
|
-
return 'Object';
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
// errors
|
|
207
|
-
if (val instanceof Error) {
|
|
208
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
209
|
-
}
|
|
210
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
211
|
-
return className;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
function _assertBigInt(n) {
|
|
215
|
-
if (typeof(n) !== 'bigint') throw new Error('expected a bigint argument');
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
let cachedBigInt64Memory0 = null;
|
|
219
|
-
|
|
220
|
-
function getBigInt64Memory0() {
|
|
221
|
-
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
222
|
-
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
|
223
|
-
}
|
|
224
|
-
return cachedBigInt64Memory0;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* @param {string} src
|
|
228
|
-
* @returns {any}
|
|
229
|
-
*/
|
|
230
|
-
export function parseLrc(src) {
|
|
231
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
232
|
-
const len0 = WASM_VECTOR_LEN;
|
|
233
|
-
const ret = wasm.parseLrc(ptr0, len0);
|
|
234
|
-
return takeObject(ret);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* @param {any} lrc
|
|
239
|
-
* @returns {string}
|
|
240
|
-
*/
|
|
241
|
-
export function stringifyLrc(lrc) {
|
|
242
|
-
let deferred1_0;
|
|
243
|
-
let deferred1_1;
|
|
244
|
-
try {
|
|
245
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
246
|
-
wasm.stringifyLrc(retptr, addHeapObject(lrc));
|
|
247
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
248
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
249
|
-
deferred1_0 = r0;
|
|
250
|
-
deferred1_1 = r1;
|
|
251
|
-
return getStringFromWasm0(r0, r1);
|
|
252
|
-
} finally {
|
|
253
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
254
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* @param {string} hex_data
|
|
260
|
-
* @returns {string}
|
|
261
|
-
*/
|
|
262
|
-
export function decryptQrcHex(hex_data) {
|
|
263
|
-
let deferred2_0;
|
|
264
|
-
let deferred2_1;
|
|
265
|
-
try {
|
|
266
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
267
|
-
const ptr0 = passStringToWasm0(hex_data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
268
|
-
const len0 = WASM_VECTOR_LEN;
|
|
269
|
-
wasm.decryptQrcHex(retptr, ptr0, len0);
|
|
270
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
271
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
272
|
-
deferred2_0 = r0;
|
|
273
|
-
deferred2_1 = r1;
|
|
274
|
-
return getStringFromWasm0(r0, r1);
|
|
275
|
-
} finally {
|
|
276
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
277
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* @param {string} src
|
|
283
|
-
* @returns {any}
|
|
284
|
-
*/
|
|
285
|
-
export function parseLys(src) {
|
|
286
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
287
|
-
const len0 = WASM_VECTOR_LEN;
|
|
288
|
-
const ret = wasm.parseLys(ptr0, len0);
|
|
289
|
-
return takeObject(ret);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* @param {any} lrc
|
|
294
|
-
* @returns {string}
|
|
295
|
-
*/
|
|
296
|
-
export function stringifyLys(lrc) {
|
|
297
|
-
let deferred1_0;
|
|
298
|
-
let deferred1_1;
|
|
299
|
-
try {
|
|
300
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
301
|
-
wasm.stringifyLys(retptr, addHeapObject(lrc));
|
|
302
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
303
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
304
|
-
deferred1_0 = r0;
|
|
305
|
-
deferred1_1 = r1;
|
|
306
|
-
return getStringFromWasm0(r0, r1);
|
|
307
|
-
} finally {
|
|
308
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
309
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* @param {string} src
|
|
315
|
-
* @returns {any}
|
|
316
|
-
*/
|
|
317
|
-
export function parseEslrc(src) {
|
|
318
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
319
|
-
const len0 = WASM_VECTOR_LEN;
|
|
320
|
-
const ret = wasm.parseEslrc(ptr0, len0);
|
|
321
|
-
return takeObject(ret);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* @param {any} lrc
|
|
326
|
-
* @returns {string}
|
|
327
|
-
*/
|
|
328
|
-
export function stringifyEslrc(lrc) {
|
|
329
|
-
let deferred1_0;
|
|
330
|
-
let deferred1_1;
|
|
331
|
-
try {
|
|
332
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
333
|
-
wasm.stringifyEslrc(retptr, addHeapObject(lrc));
|
|
334
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
335
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
336
|
-
deferred1_0 = r0;
|
|
337
|
-
deferred1_1 = r1;
|
|
338
|
-
return getStringFromWasm0(r0, r1);
|
|
339
|
-
} finally {
|
|
340
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
341
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* @param {string} src
|
|
347
|
-
* @returns {any}
|
|
348
|
-
*/
|
|
349
|
-
export function parseYrc(src) {
|
|
350
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
351
|
-
const len0 = WASM_VECTOR_LEN;
|
|
352
|
-
const ret = wasm.parseYrc(ptr0, len0);
|
|
353
|
-
return takeObject(ret);
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* @param {any} lrc
|
|
358
|
-
* @returns {string}
|
|
359
|
-
*/
|
|
360
|
-
export function stringifyYrc(lrc) {
|
|
361
|
-
let deferred1_0;
|
|
362
|
-
let deferred1_1;
|
|
363
|
-
try {
|
|
364
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
365
|
-
wasm.stringifyYrc(retptr, addHeapObject(lrc));
|
|
366
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
367
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
368
|
-
deferred1_0 = r0;
|
|
369
|
-
deferred1_1 = r1;
|
|
370
|
-
return getStringFromWasm0(r0, r1);
|
|
371
|
-
} finally {
|
|
372
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
373
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* @param {string} src
|
|
379
|
-
* @returns {any}
|
|
380
|
-
*/
|
|
381
|
-
export function parseQrc(src) {
|
|
382
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
383
|
-
const len0 = WASM_VECTOR_LEN;
|
|
384
|
-
const ret = wasm.parseQrc(ptr0, len0);
|
|
385
|
-
return takeObject(ret);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* @param {any} lrc
|
|
390
|
-
* @returns {string}
|
|
391
|
-
*/
|
|
392
|
-
export function stringifyQrc(lrc) {
|
|
393
|
-
let deferred1_0;
|
|
394
|
-
let deferred1_1;
|
|
395
|
-
try {
|
|
396
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
397
|
-
wasm.stringifyQrc(retptr, addHeapObject(lrc));
|
|
398
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
399
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
400
|
-
deferred1_0 = r0;
|
|
401
|
-
deferred1_1 = r1;
|
|
402
|
-
return getStringFromWasm0(r0, r1);
|
|
403
|
-
} finally {
|
|
404
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
405
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* @param {any} lrc
|
|
411
|
-
* @returns {string}
|
|
412
|
-
*/
|
|
413
|
-
export function stringifyAss(lrc) {
|
|
414
|
-
let deferred1_0;
|
|
415
|
-
let deferred1_1;
|
|
416
|
-
try {
|
|
417
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
418
|
-
wasm.stringifyAss(retptr, addHeapObject(lrc));
|
|
419
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
420
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
421
|
-
deferred1_0 = r0;
|
|
422
|
-
deferred1_1 = r1;
|
|
423
|
-
return getStringFromWasm0(r0, r1);
|
|
424
|
-
} finally {
|
|
425
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
426
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* When the `console_error_panic_hook` feature is enabled, we can call the
|
|
432
|
-
* `set_panic_hook` function at least once during initialization, and then
|
|
433
|
-
* we will get better error messages if our code ever panics.
|
|
434
|
-
*
|
|
435
|
-
* For more details see
|
|
436
|
-
* https://github.com/rustwasm/console_error_panic_hook#readme
|
|
437
|
-
*/
|
|
438
|
-
export function set_panic_hook() {
|
|
439
|
-
wasm.set_panic_hook();
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
function logError(f, args) {
|
|
443
|
-
try {
|
|
444
|
-
return f.apply(this, args);
|
|
445
|
-
} catch (e) {
|
|
446
|
-
let error = (function () {
|
|
447
|
-
try {
|
|
448
|
-
return e instanceof Error ? `${e.message}\n\nStack:\n${e.stack}` : e.toString();
|
|
449
|
-
} catch(_) {
|
|
450
|
-
return "<failed to stringify thrown value>";
|
|
451
|
-
}
|
|
452
|
-
}());
|
|
453
|
-
console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:", error);
|
|
454
|
-
throw e;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
function handleError(f, args) {
|
|
459
|
-
try {
|
|
460
|
-
return f.apply(this, args);
|
|
461
|
-
} catch (e) {
|
|
462
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
export function __wbindgen_error_new(arg0, arg1) {
|
|
467
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
468
|
-
return addHeapObject(ret);
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
export function __wbindgen_is_undefined(arg0) {
|
|
472
|
-
const ret = getObject(arg0) === undefined;
|
|
473
|
-
_assertBoolean(ret);
|
|
474
|
-
return ret;
|
|
475
|
-
};
|
|
476
|
-
|
|
477
|
-
export function __wbindgen_in(arg0, arg1) {
|
|
478
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
479
|
-
_assertBoolean(ret);
|
|
480
|
-
return ret;
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
export function __wbindgen_boolean_get(arg0) {
|
|
484
|
-
const v = getObject(arg0);
|
|
485
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
486
|
-
_assertNum(ret);
|
|
487
|
-
return ret;
|
|
488
|
-
};
|
|
489
|
-
|
|
490
|
-
export function __wbindgen_string_get(arg0, arg1) {
|
|
491
|
-
const obj = getObject(arg1);
|
|
492
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
493
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
494
|
-
var len1 = WASM_VECTOR_LEN;
|
|
495
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
496
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
export function __wbindgen_is_bigint(arg0) {
|
|
500
|
-
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
501
|
-
_assertBoolean(ret);
|
|
502
|
-
return ret;
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
export function __wbindgen_is_object(arg0) {
|
|
506
|
-
const val = getObject(arg0);
|
|
507
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
508
|
-
_assertBoolean(ret);
|
|
509
|
-
return ret;
|
|
510
|
-
};
|
|
511
|
-
|
|
512
|
-
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
513
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
514
|
-
_assertBoolean(ret);
|
|
515
|
-
return ret;
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
export function __wbindgen_bigint_from_u64(arg0) {
|
|
519
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
520
|
-
return addHeapObject(ret);
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
export function __wbindgen_object_drop_ref(arg0) {
|
|
524
|
-
takeObject(arg0);
|
|
525
|
-
};
|
|
526
|
-
|
|
527
|
-
export function __wbg_error_f851667af71bcfc6() { return logError(function (arg0, arg1) {
|
|
528
|
-
let deferred0_0;
|
|
529
|
-
let deferred0_1;
|
|
530
|
-
try {
|
|
531
|
-
deferred0_0 = arg0;
|
|
532
|
-
deferred0_1 = arg1;
|
|
533
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
534
|
-
} finally {
|
|
535
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
536
|
-
}
|
|
537
|
-
}, arguments) };
|
|
538
|
-
|
|
539
|
-
export function __wbg_new_abda76e883ba8a5f() { return logError(function () {
|
|
540
|
-
const ret = new Error();
|
|
541
|
-
return addHeapObject(ret);
|
|
542
|
-
}, arguments) };
|
|
543
|
-
|
|
544
|
-
export function __wbg_stack_658279fe44541cf6() { return logError(function (arg0, arg1) {
|
|
545
|
-
const ret = getObject(arg1).stack;
|
|
546
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
547
|
-
const len1 = WASM_VECTOR_LEN;
|
|
548
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
549
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
550
|
-
}, arguments) };
|
|
551
|
-
|
|
552
|
-
export function __wbindgen_as_number(arg0) {
|
|
553
|
-
const ret = +getObject(arg0);
|
|
554
|
-
return ret;
|
|
555
|
-
};
|
|
556
|
-
|
|
557
|
-
export function __wbindgen_number_get(arg0, arg1) {
|
|
558
|
-
const obj = getObject(arg1);
|
|
559
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
560
|
-
if (!isLikeNone(ret)) {
|
|
561
|
-
_assertNum(ret);
|
|
562
|
-
}
|
|
563
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
564
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
export function __wbindgen_number_new(arg0) {
|
|
568
|
-
const ret = arg0;
|
|
569
|
-
return addHeapObject(ret);
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
export function __wbindgen_string_new(arg0, arg1) {
|
|
573
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
574
|
-
return addHeapObject(ret);
|
|
575
|
-
};
|
|
576
|
-
|
|
577
|
-
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
578
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
579
|
-
_assertBoolean(ret);
|
|
580
|
-
return ret;
|
|
581
|
-
};
|
|
582
|
-
|
|
583
|
-
export function __wbindgen_object_clone_ref(arg0) {
|
|
584
|
-
const ret = getObject(arg0);
|
|
585
|
-
return addHeapObject(ret);
|
|
586
|
-
};
|
|
587
|
-
|
|
588
|
-
export function __wbg_getwithrefkey_4a92a5eca60879b9() { return logError(function (arg0, arg1) {
|
|
589
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
590
|
-
return addHeapObject(ret);
|
|
591
|
-
}, arguments) };
|
|
592
|
-
|
|
593
|
-
export function __wbg_set_9182712abebf82ef() { return logError(function (arg0, arg1, arg2) {
|
|
594
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
595
|
-
}, arguments) };
|
|
596
|
-
|
|
597
|
-
export function __wbg_new_898a68150f225f2e() { return logError(function () {
|
|
598
|
-
const ret = new Array();
|
|
599
|
-
return addHeapObject(ret);
|
|
600
|
-
}, arguments) };
|
|
601
|
-
|
|
602
|
-
export function __wbg_get_44be0491f933a435() { return logError(function (arg0, arg1) {
|
|
603
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
604
|
-
return addHeapObject(ret);
|
|
605
|
-
}, arguments) };
|
|
606
|
-
|
|
607
|
-
export function __wbg_set_502d29070ea18557() { return logError(function (arg0, arg1, arg2) {
|
|
608
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
609
|
-
}, arguments) };
|
|
610
|
-
|
|
611
|
-
export function __wbg_isArray_4c24b343cb13cfb1() { return logError(function (arg0) {
|
|
612
|
-
const ret = Array.isArray(getObject(arg0));
|
|
613
|
-
_assertBoolean(ret);
|
|
614
|
-
return ret;
|
|
615
|
-
}, arguments) };
|
|
616
|
-
|
|
617
|
-
export function __wbg_length_fff51ee6522a1a18() { return logError(function (arg0) {
|
|
618
|
-
const ret = getObject(arg0).length;
|
|
619
|
-
_assertNum(ret);
|
|
620
|
-
return ret;
|
|
621
|
-
}, arguments) };
|
|
622
|
-
|
|
623
|
-
export function __wbg_instanceof_ArrayBuffer_39ac22089b74fddb() { return logError(function (arg0) {
|
|
624
|
-
let result;
|
|
625
|
-
try {
|
|
626
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
627
|
-
} catch {
|
|
628
|
-
result = false;
|
|
629
|
-
}
|
|
630
|
-
const ret = result;
|
|
631
|
-
_assertBoolean(ret);
|
|
632
|
-
return ret;
|
|
633
|
-
}, arguments) };
|
|
634
|
-
|
|
635
|
-
export function __wbg_call_cb65541d95d71282() { return handleError(function (arg0, arg1) {
|
|
636
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
637
|
-
return addHeapObject(ret);
|
|
638
|
-
}, arguments) };
|
|
639
|
-
|
|
640
|
-
export function __wbg_next_ddb3312ca1c4e32a() { return handleError(function (arg0) {
|
|
641
|
-
const ret = getObject(arg0).next();
|
|
642
|
-
return addHeapObject(ret);
|
|
643
|
-
}, arguments) };
|
|
644
|
-
|
|
645
|
-
export function __wbg_next_526fc47e980da008() { return logError(function (arg0) {
|
|
646
|
-
const ret = getObject(arg0).next;
|
|
647
|
-
return addHeapObject(ret);
|
|
648
|
-
}, arguments) };
|
|
649
|
-
|
|
650
|
-
export function __wbg_done_5c1f01fb660d73b5() { return logError(function (arg0) {
|
|
651
|
-
const ret = getObject(arg0).done;
|
|
652
|
-
_assertBoolean(ret);
|
|
653
|
-
return ret;
|
|
654
|
-
}, arguments) };
|
|
655
|
-
|
|
656
|
-
export function __wbg_value_1695675138684bd5() { return logError(function (arg0) {
|
|
657
|
-
const ret = getObject(arg0).value;
|
|
658
|
-
return addHeapObject(ret);
|
|
659
|
-
}, arguments) };
|
|
660
|
-
|
|
661
|
-
export function __wbg_isSafeInteger_bb8e18dd21c97288() { return logError(function (arg0) {
|
|
662
|
-
const ret = Number.isSafeInteger(getObject(arg0));
|
|
663
|
-
_assertBoolean(ret);
|
|
664
|
-
return ret;
|
|
665
|
-
}, arguments) };
|
|
666
|
-
|
|
667
|
-
export function __wbg_new_b51585de1b234aff() { return logError(function () {
|
|
668
|
-
const ret = new Object();
|
|
669
|
-
return addHeapObject(ret);
|
|
670
|
-
}, arguments) };
|
|
671
|
-
|
|
672
|
-
export function __wbg_iterator_97f0c81209c6c35a() { return logError(function () {
|
|
673
|
-
const ret = Symbol.iterator;
|
|
674
|
-
return addHeapObject(ret);
|
|
675
|
-
}, arguments) };
|
|
676
|
-
|
|
677
|
-
export function __wbg_instanceof_Uint8Array_d8d9cb2b8e8ac1d4() { return logError(function (arg0) {
|
|
678
|
-
let result;
|
|
679
|
-
try {
|
|
680
|
-
result = getObject(arg0) instanceof Uint8Array;
|
|
681
|
-
} catch {
|
|
682
|
-
result = false;
|
|
683
|
-
}
|
|
684
|
-
const ret = result;
|
|
685
|
-
_assertBoolean(ret);
|
|
686
|
-
return ret;
|
|
687
|
-
}, arguments) };
|
|
688
|
-
|
|
689
|
-
export function __wbg_new_8125e318e6245eed() { return logError(function (arg0) {
|
|
690
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
691
|
-
return addHeapObject(ret);
|
|
692
|
-
}, arguments) };
|
|
693
|
-
|
|
694
|
-
export function __wbg_length_72e2208bbc0efc61() { return logError(function (arg0) {
|
|
695
|
-
const ret = getObject(arg0).length;
|
|
696
|
-
_assertNum(ret);
|
|
697
|
-
return ret;
|
|
698
|
-
}, arguments) };
|
|
699
|
-
|
|
700
|
-
export function __wbg_set_5cf90238115182c3() { return logError(function (arg0, arg1, arg2) {
|
|
701
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
702
|
-
}, arguments) };
|
|
703
|
-
|
|
704
|
-
export function __wbindgen_is_function(arg0) {
|
|
705
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
706
|
-
_assertBoolean(ret);
|
|
707
|
-
return ret;
|
|
708
|
-
};
|
|
709
|
-
|
|
710
|
-
export function __wbg_get_97b561fb56f034b5() { return handleError(function (arg0, arg1) {
|
|
711
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
712
|
-
return addHeapObject(ret);
|
|
713
|
-
}, arguments) };
|
|
714
|
-
|
|
715
|
-
export function __wbg_buffer_085ec1f694018c4f() { return logError(function (arg0) {
|
|
716
|
-
const ret = getObject(arg0).buffer;
|
|
717
|
-
return addHeapObject(ret);
|
|
718
|
-
}, arguments) };
|
|
719
|
-
|
|
720
|
-
export function __wbindgen_debug_string(arg0, arg1) {
|
|
721
|
-
const ret = debugString(getObject(arg1));
|
|
722
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
723
|
-
const len1 = WASM_VECTOR_LEN;
|
|
724
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
725
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
726
|
-
};
|
|
727
|
-
|
|
728
|
-
export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
729
|
-
const v = getObject(arg1);
|
|
730
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
731
|
-
if (!isLikeNone(ret)) {
|
|
732
|
-
_assertBigInt(ret);
|
|
733
|
-
}
|
|
734
|
-
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
|
|
735
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
736
|
-
};
|
|
737
|
-
|
|
738
|
-
export function __wbindgen_throw(arg0, arg1) {
|
|
739
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
740
|
-
};
|
|
741
|
-
|
|
742
|
-
export function __wbindgen_memory() {
|
|
743
|
-
const ret = wasm.memory;
|
|
744
|
-
return addHeapObject(ret);
|
|
745
|
-
};
|
|
746
|
-
|