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