@applemusic-like-lyrics/lyric 0.4.1 → 1.0.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 +17 -9
- package/dist/amll-lyric.cjs +1984 -0
- package/dist/amll-lyric.cjs.map +1 -0
- package/dist/amll-lyric.d.cts +219 -0
- package/dist/amll-lyric.d.mts +219 -0
- package/dist/amll-lyric.mjs +1963 -0
- package/dist/amll-lyric.mjs.map +1 -0
- package/package.json +49 -40
- package/LICENSE +0 -661
- package/pkg/amll_lyric.d.ts +0 -187
- package/pkg/amll_lyric.js +0 -9
- package/pkg/amll_lyric_bg.js +0 -585
- package/pkg/amll_lyric_bg.wasm +0 -0
- package/pkg/amll_lyric_bg.wasm.d.ts +0 -25
package/pkg/amll_lyric_bg.js
DELETED
|
@@ -1,585 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {string} hex_data
|
|
3
|
-
* @returns {string}
|
|
4
|
-
*/
|
|
5
|
-
export function decryptQrcHex(hex_data) {
|
|
6
|
-
let deferred2_0;
|
|
7
|
-
let deferred2_1;
|
|
8
|
-
try {
|
|
9
|
-
const ptr0 = passStringToWasm0(hex_data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
10
|
-
const len0 = WASM_VECTOR_LEN;
|
|
11
|
-
const ret = wasm.decryptQrcHex(ptr0, len0);
|
|
12
|
-
deferred2_0 = ret[0];
|
|
13
|
-
deferred2_1 = ret[1];
|
|
14
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
15
|
-
} finally {
|
|
16
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @param {string} src
|
|
22
|
-
* @returns {any}
|
|
23
|
-
*/
|
|
24
|
-
export function parseEslrc(src) {
|
|
25
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
26
|
-
const len0 = WASM_VECTOR_LEN;
|
|
27
|
-
const ret = wasm.parseEslrc(ptr0, len0);
|
|
28
|
-
return ret;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @param {string} src
|
|
33
|
-
* @returns {any}
|
|
34
|
-
*/
|
|
35
|
-
export function parseLrc(src) {
|
|
36
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
37
|
-
const len0 = WASM_VECTOR_LEN;
|
|
38
|
-
const ret = wasm.parseLrc(ptr0, len0);
|
|
39
|
-
return ret;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @param {string} src
|
|
44
|
-
* @returns {any}
|
|
45
|
-
*/
|
|
46
|
-
export function parseLys(src) {
|
|
47
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
48
|
-
const len0 = WASM_VECTOR_LEN;
|
|
49
|
-
const ret = wasm.parseLys(ptr0, len0);
|
|
50
|
-
return ret;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @param {string} src
|
|
55
|
-
* @returns {any}
|
|
56
|
-
*/
|
|
57
|
-
export function parseQrc(src) {
|
|
58
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
59
|
-
const len0 = WASM_VECTOR_LEN;
|
|
60
|
-
const ret = wasm.parseQrc(ptr0, len0);
|
|
61
|
-
return ret;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @param {string} src
|
|
66
|
-
* @returns {any}
|
|
67
|
-
*/
|
|
68
|
-
export function parseTTML(src) {
|
|
69
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
70
|
-
const len0 = WASM_VECTOR_LEN;
|
|
71
|
-
const ret = wasm.parseTTML(ptr0, len0);
|
|
72
|
-
return ret;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @param {string} src
|
|
77
|
-
* @returns {any}
|
|
78
|
-
*/
|
|
79
|
-
export function parseYrc(src) {
|
|
80
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
81
|
-
const len0 = WASM_VECTOR_LEN;
|
|
82
|
-
const ret = wasm.parseYrc(ptr0, len0);
|
|
83
|
-
return ret;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @param {any} lrc
|
|
88
|
-
* @returns {string}
|
|
89
|
-
*/
|
|
90
|
-
export function stringifyAss(lrc) {
|
|
91
|
-
let deferred1_0;
|
|
92
|
-
let deferred1_1;
|
|
93
|
-
try {
|
|
94
|
-
const ret = wasm.stringifyAss(lrc);
|
|
95
|
-
deferred1_0 = ret[0];
|
|
96
|
-
deferred1_1 = ret[1];
|
|
97
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
98
|
-
} finally {
|
|
99
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @param {any} lrc
|
|
105
|
-
* @returns {string}
|
|
106
|
-
*/
|
|
107
|
-
export function stringifyEslrc(lrc) {
|
|
108
|
-
let deferred1_0;
|
|
109
|
-
let deferred1_1;
|
|
110
|
-
try {
|
|
111
|
-
const ret = wasm.stringifyEslrc(lrc);
|
|
112
|
-
deferred1_0 = ret[0];
|
|
113
|
-
deferred1_1 = ret[1];
|
|
114
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
115
|
-
} finally {
|
|
116
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @param {any} lrc
|
|
122
|
-
* @returns {string}
|
|
123
|
-
*/
|
|
124
|
-
export function stringifyLrc(lrc) {
|
|
125
|
-
let deferred1_0;
|
|
126
|
-
let deferred1_1;
|
|
127
|
-
try {
|
|
128
|
-
const ret = wasm.stringifyLrc(lrc);
|
|
129
|
-
deferred1_0 = ret[0];
|
|
130
|
-
deferred1_1 = ret[1];
|
|
131
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
132
|
-
} finally {
|
|
133
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* @param {any} lrc
|
|
139
|
-
* @returns {string}
|
|
140
|
-
*/
|
|
141
|
-
export function stringifyLys(lrc) {
|
|
142
|
-
let deferred1_0;
|
|
143
|
-
let deferred1_1;
|
|
144
|
-
try {
|
|
145
|
-
const ret = wasm.stringifyLys(lrc);
|
|
146
|
-
deferred1_0 = ret[0];
|
|
147
|
-
deferred1_1 = ret[1];
|
|
148
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
149
|
-
} finally {
|
|
150
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* @param {any} lrc
|
|
156
|
-
* @returns {string}
|
|
157
|
-
*/
|
|
158
|
-
export function stringifyQrc(lrc) {
|
|
159
|
-
let deferred1_0;
|
|
160
|
-
let deferred1_1;
|
|
161
|
-
try {
|
|
162
|
-
const ret = wasm.stringifyQrc(lrc);
|
|
163
|
-
deferred1_0 = ret[0];
|
|
164
|
-
deferred1_1 = ret[1];
|
|
165
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
166
|
-
} finally {
|
|
167
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* @param {any} lrc
|
|
173
|
-
* @returns {string}
|
|
174
|
-
*/
|
|
175
|
-
export function stringifyTTML(lrc) {
|
|
176
|
-
let deferred1_0;
|
|
177
|
-
let deferred1_1;
|
|
178
|
-
try {
|
|
179
|
-
const ret = wasm.stringifyTTML(lrc);
|
|
180
|
-
deferred1_0 = ret[0];
|
|
181
|
-
deferred1_1 = ret[1];
|
|
182
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
183
|
-
} finally {
|
|
184
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* @param {any} lrc
|
|
190
|
-
* @returns {string}
|
|
191
|
-
*/
|
|
192
|
-
export function stringifyYrc(lrc) {
|
|
193
|
-
let deferred1_0;
|
|
194
|
-
let deferred1_1;
|
|
195
|
-
try {
|
|
196
|
-
const ret = wasm.stringifyYrc(lrc);
|
|
197
|
-
deferred1_0 = ret[0];
|
|
198
|
-
deferred1_1 = ret[1];
|
|
199
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
200
|
-
} finally {
|
|
201
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* When the `console_error_panic_hook` feature is enabled, we can call the
|
|
207
|
-
* `set_panic_hook` function at least once during initialization, and then
|
|
208
|
-
* we will get better error messages if our code ever panics.
|
|
209
|
-
*
|
|
210
|
-
* For more details see
|
|
211
|
-
* https://github.com/rustwasm/console_error_panic_hook#readme
|
|
212
|
-
*/
|
|
213
|
-
export function wasm_start() {
|
|
214
|
-
wasm.wasm_start();
|
|
215
|
-
}
|
|
216
|
-
export function __wbg_Error_2e59b1b37a9a34c3(arg0, arg1) {
|
|
217
|
-
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
218
|
-
return ret;
|
|
219
|
-
}
|
|
220
|
-
export function __wbg_Number_e6ffdb596c888833(arg0) {
|
|
221
|
-
const ret = Number(arg0);
|
|
222
|
-
return ret;
|
|
223
|
-
}
|
|
224
|
-
export function __wbg___wbindgen_bigint_get_as_i64_2c5082002e4826e2(arg0, arg1) {
|
|
225
|
-
const v = arg1;
|
|
226
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
227
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
228
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
229
|
-
}
|
|
230
|
-
export function __wbg___wbindgen_boolean_get_a86c216575a75c30(arg0) {
|
|
231
|
-
const v = arg0;
|
|
232
|
-
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
233
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
234
|
-
}
|
|
235
|
-
export function __wbg___wbindgen_debug_string_dd5d2d07ce9e6c57(arg0, arg1) {
|
|
236
|
-
const ret = debugString(arg1);
|
|
237
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
238
|
-
const len1 = WASM_VECTOR_LEN;
|
|
239
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
240
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
241
|
-
}
|
|
242
|
-
export function __wbg___wbindgen_in_4bd7a57e54337366(arg0, arg1) {
|
|
243
|
-
const ret = arg0 in arg1;
|
|
244
|
-
return ret;
|
|
245
|
-
}
|
|
246
|
-
export function __wbg___wbindgen_is_bigint_6c98f7e945dacdde(arg0) {
|
|
247
|
-
const ret = typeof(arg0) === 'bigint';
|
|
248
|
-
return ret;
|
|
249
|
-
}
|
|
250
|
-
export function __wbg___wbindgen_is_function_49868bde5eb1e745(arg0) {
|
|
251
|
-
const ret = typeof(arg0) === 'function';
|
|
252
|
-
return ret;
|
|
253
|
-
}
|
|
254
|
-
export function __wbg___wbindgen_is_object_40c5a80572e8f9d3(arg0) {
|
|
255
|
-
const val = arg0;
|
|
256
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
257
|
-
return ret;
|
|
258
|
-
}
|
|
259
|
-
export function __wbg___wbindgen_is_undefined_c0cca72b82b86f4d(arg0) {
|
|
260
|
-
const ret = arg0 === undefined;
|
|
261
|
-
return ret;
|
|
262
|
-
}
|
|
263
|
-
export function __wbg___wbindgen_jsval_eq_7d430e744a913d26(arg0, arg1) {
|
|
264
|
-
const ret = arg0 === arg1;
|
|
265
|
-
return ret;
|
|
266
|
-
}
|
|
267
|
-
export function __wbg___wbindgen_jsval_loose_eq_3a72ae764d46d944(arg0, arg1) {
|
|
268
|
-
const ret = arg0 == arg1;
|
|
269
|
-
return ret;
|
|
270
|
-
}
|
|
271
|
-
export function __wbg___wbindgen_number_get_7579aab02a8a620c(arg0, arg1) {
|
|
272
|
-
const obj = arg1;
|
|
273
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
274
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
275
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
276
|
-
}
|
|
277
|
-
export function __wbg___wbindgen_string_get_914df97fcfa788f2(arg0, arg1) {
|
|
278
|
-
const obj = arg1;
|
|
279
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
280
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
|
-
var len1 = WASM_VECTOR_LEN;
|
|
282
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
283
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
284
|
-
}
|
|
285
|
-
export function __wbg___wbindgen_throw_81fc77679af83bc6(arg0, arg1) {
|
|
286
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
287
|
-
}
|
|
288
|
-
export function __wbg_call_7f2987183bb62793() { return handleError(function (arg0, arg1) {
|
|
289
|
-
const ret = arg0.call(arg1);
|
|
290
|
-
return ret;
|
|
291
|
-
}, arguments); }
|
|
292
|
-
export function __wbg_done_547d467e97529006(arg0) {
|
|
293
|
-
const ret = arg0.done;
|
|
294
|
-
return ret;
|
|
295
|
-
}
|
|
296
|
-
export function __wbg_get_ed0642c4b9d31ddf() { return handleError(function (arg0, arg1) {
|
|
297
|
-
const ret = Reflect.get(arg0, arg1);
|
|
298
|
-
return ret;
|
|
299
|
-
}, arguments); }
|
|
300
|
-
export function __wbg_get_unchecked_7d7babe32e9e6a54(arg0, arg1) {
|
|
301
|
-
const ret = arg0[arg1 >>> 0];
|
|
302
|
-
return ret;
|
|
303
|
-
}
|
|
304
|
-
export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
|
|
305
|
-
const ret = arg0[arg1];
|
|
306
|
-
return ret;
|
|
307
|
-
}
|
|
308
|
-
export function __wbg_instanceof_ArrayBuffer_ff7c1337a5e3b33a(arg0) {
|
|
309
|
-
let result;
|
|
310
|
-
try {
|
|
311
|
-
result = arg0 instanceof ArrayBuffer;
|
|
312
|
-
} catch (_) {
|
|
313
|
-
result = false;
|
|
314
|
-
}
|
|
315
|
-
const ret = result;
|
|
316
|
-
return ret;
|
|
317
|
-
}
|
|
318
|
-
export function __wbg_instanceof_Uint8Array_4b8da683deb25d72(arg0) {
|
|
319
|
-
let result;
|
|
320
|
-
try {
|
|
321
|
-
result = arg0 instanceof Uint8Array;
|
|
322
|
-
} catch (_) {
|
|
323
|
-
result = false;
|
|
324
|
-
}
|
|
325
|
-
const ret = result;
|
|
326
|
-
return ret;
|
|
327
|
-
}
|
|
328
|
-
export function __wbg_isArray_db61795ad004c139(arg0) {
|
|
329
|
-
const ret = Array.isArray(arg0);
|
|
330
|
-
return ret;
|
|
331
|
-
}
|
|
332
|
-
export function __wbg_isSafeInteger_ea83862ba994770c(arg0) {
|
|
333
|
-
const ret = Number.isSafeInteger(arg0);
|
|
334
|
-
return ret;
|
|
335
|
-
}
|
|
336
|
-
export function __wbg_iterator_de403ef31815a3e6() {
|
|
337
|
-
const ret = Symbol.iterator;
|
|
338
|
-
return ret;
|
|
339
|
-
}
|
|
340
|
-
export function __wbg_length_0c32cb8543c8e4c8(arg0) {
|
|
341
|
-
const ret = arg0.length;
|
|
342
|
-
return ret;
|
|
343
|
-
}
|
|
344
|
-
export function __wbg_length_6e821edde497a532(arg0) {
|
|
345
|
-
const ret = arg0.length;
|
|
346
|
-
return ret;
|
|
347
|
-
}
|
|
348
|
-
export function __wbg_new_4f9fafbb3909af72() {
|
|
349
|
-
const ret = new Object();
|
|
350
|
-
return ret;
|
|
351
|
-
}
|
|
352
|
-
export function __wbg_new_a560378ea1240b14(arg0) {
|
|
353
|
-
const ret = new Uint8Array(arg0);
|
|
354
|
-
return ret;
|
|
355
|
-
}
|
|
356
|
-
export function __wbg_new_f3c9df4f38f3f798() {
|
|
357
|
-
const ret = new Array();
|
|
358
|
-
return ret;
|
|
359
|
-
}
|
|
360
|
-
export function __wbg_next_01132ed6134b8ef5(arg0) {
|
|
361
|
-
const ret = arg0.next;
|
|
362
|
-
return ret;
|
|
363
|
-
}
|
|
364
|
-
export function __wbg_next_b3713ec761a9dbfd() { return handleError(function (arg0) {
|
|
365
|
-
const ret = arg0.next();
|
|
366
|
-
return ret;
|
|
367
|
-
}, arguments); }
|
|
368
|
-
export function __wbg_prototypesetcall_3e05eb9545565046(arg0, arg1, arg2) {
|
|
369
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
370
|
-
}
|
|
371
|
-
export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
372
|
-
arg0[arg1] = arg2;
|
|
373
|
-
}
|
|
374
|
-
export function __wbg_set_6c60b2e8ad0e9383(arg0, arg1, arg2) {
|
|
375
|
-
arg0[arg1 >>> 0] = arg2;
|
|
376
|
-
}
|
|
377
|
-
export function __wbg_value_7f6052747ccf940f(arg0) {
|
|
378
|
-
const ret = arg0.value;
|
|
379
|
-
return ret;
|
|
380
|
-
}
|
|
381
|
-
export function __wbindgen_cast_0000000000000001(arg0) {
|
|
382
|
-
// Cast intrinsic for `F64 -> Externref`.
|
|
383
|
-
const ret = arg0;
|
|
384
|
-
return ret;
|
|
385
|
-
}
|
|
386
|
-
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
387
|
-
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
388
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
389
|
-
return ret;
|
|
390
|
-
}
|
|
391
|
-
export function __wbindgen_cast_0000000000000003(arg0) {
|
|
392
|
-
// Cast intrinsic for `U64 -> Externref`.
|
|
393
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
394
|
-
return ret;
|
|
395
|
-
}
|
|
396
|
-
export function __wbindgen_init_externref_table() {
|
|
397
|
-
const table = wasm.__wbindgen_externrefs;
|
|
398
|
-
const offset = table.grow(4);
|
|
399
|
-
table.set(0, undefined);
|
|
400
|
-
table.set(offset + 0, undefined);
|
|
401
|
-
table.set(offset + 1, null);
|
|
402
|
-
table.set(offset + 2, true);
|
|
403
|
-
table.set(offset + 3, false);
|
|
404
|
-
}
|
|
405
|
-
function addToExternrefTable0(obj) {
|
|
406
|
-
const idx = wasm.__externref_table_alloc();
|
|
407
|
-
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
408
|
-
return idx;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
function debugString(val) {
|
|
412
|
-
// primitive types
|
|
413
|
-
const type = typeof val;
|
|
414
|
-
if (type == 'number' || type == 'boolean' || val == null) {
|
|
415
|
-
return `${val}`;
|
|
416
|
-
}
|
|
417
|
-
if (type == 'string') {
|
|
418
|
-
return `"${val}"`;
|
|
419
|
-
}
|
|
420
|
-
if (type == 'symbol') {
|
|
421
|
-
const description = val.description;
|
|
422
|
-
if (description == null) {
|
|
423
|
-
return 'Symbol';
|
|
424
|
-
} else {
|
|
425
|
-
return `Symbol(${description})`;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
if (type == 'function') {
|
|
429
|
-
const name = val.name;
|
|
430
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
431
|
-
return `Function(${name})`;
|
|
432
|
-
} else {
|
|
433
|
-
return 'Function';
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
// objects
|
|
437
|
-
if (Array.isArray(val)) {
|
|
438
|
-
const length = val.length;
|
|
439
|
-
let debug = '[';
|
|
440
|
-
if (length > 0) {
|
|
441
|
-
debug += debugString(val[0]);
|
|
442
|
-
}
|
|
443
|
-
for(let i = 1; i < length; i++) {
|
|
444
|
-
debug += ', ' + debugString(val[i]);
|
|
445
|
-
}
|
|
446
|
-
debug += ']';
|
|
447
|
-
return debug;
|
|
448
|
-
}
|
|
449
|
-
// Test for built-in
|
|
450
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
451
|
-
let className;
|
|
452
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
453
|
-
className = builtInMatches[1];
|
|
454
|
-
} else {
|
|
455
|
-
// Failed to match the standard '[object ClassName]'
|
|
456
|
-
return toString.call(val);
|
|
457
|
-
}
|
|
458
|
-
if (className == 'Object') {
|
|
459
|
-
// we're a user defined class or Object
|
|
460
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
461
|
-
// easier than looping through ownProperties of `val`.
|
|
462
|
-
try {
|
|
463
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
464
|
-
} catch (_) {
|
|
465
|
-
return 'Object';
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
// errors
|
|
469
|
-
if (val instanceof Error) {
|
|
470
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
471
|
-
}
|
|
472
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
473
|
-
return className;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
477
|
-
ptr = ptr >>> 0;
|
|
478
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
let cachedDataViewMemory0 = null;
|
|
482
|
-
function getDataViewMemory0() {
|
|
483
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
484
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
485
|
-
}
|
|
486
|
-
return cachedDataViewMemory0;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
function getStringFromWasm0(ptr, len) {
|
|
490
|
-
ptr = ptr >>> 0;
|
|
491
|
-
return decodeText(ptr, len);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
let cachedUint8ArrayMemory0 = null;
|
|
495
|
-
function getUint8ArrayMemory0() {
|
|
496
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
497
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
498
|
-
}
|
|
499
|
-
return cachedUint8ArrayMemory0;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
function handleError(f, args) {
|
|
503
|
-
try {
|
|
504
|
-
return f.apply(this, args);
|
|
505
|
-
} catch (e) {
|
|
506
|
-
const idx = addToExternrefTable0(e);
|
|
507
|
-
wasm.__wbindgen_exn_store(idx);
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
function isLikeNone(x) {
|
|
512
|
-
return x === undefined || x === null;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
516
|
-
if (realloc === undefined) {
|
|
517
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
518
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
519
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
520
|
-
WASM_VECTOR_LEN = buf.length;
|
|
521
|
-
return ptr;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
let len = arg.length;
|
|
525
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
526
|
-
|
|
527
|
-
const mem = getUint8ArrayMemory0();
|
|
528
|
-
|
|
529
|
-
let offset = 0;
|
|
530
|
-
|
|
531
|
-
for (; offset < len; offset++) {
|
|
532
|
-
const code = arg.charCodeAt(offset);
|
|
533
|
-
if (code > 0x7F) break;
|
|
534
|
-
mem[ptr + offset] = code;
|
|
535
|
-
}
|
|
536
|
-
if (offset !== len) {
|
|
537
|
-
if (offset !== 0) {
|
|
538
|
-
arg = arg.slice(offset);
|
|
539
|
-
}
|
|
540
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
541
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
542
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
543
|
-
|
|
544
|
-
offset += ret.written;
|
|
545
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
WASM_VECTOR_LEN = offset;
|
|
549
|
-
return ptr;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
553
|
-
cachedTextDecoder.decode();
|
|
554
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
555
|
-
let numBytesDecoded = 0;
|
|
556
|
-
function decodeText(ptr, len) {
|
|
557
|
-
numBytesDecoded += len;
|
|
558
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
559
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
560
|
-
cachedTextDecoder.decode();
|
|
561
|
-
numBytesDecoded = len;
|
|
562
|
-
}
|
|
563
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
const cachedTextEncoder = new TextEncoder();
|
|
567
|
-
|
|
568
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
569
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
570
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
571
|
-
view.set(buf);
|
|
572
|
-
return {
|
|
573
|
-
read: arg.length,
|
|
574
|
-
written: buf.length
|
|
575
|
-
};
|
|
576
|
-
};
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
let WASM_VECTOR_LEN = 0;
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
let wasm;
|
|
583
|
-
export function __wbg_set_wasm(val) {
|
|
584
|
-
wasm = val;
|
|
585
|
-
}
|
package/pkg/amll_lyric_bg.wasm
DELETED
|
Binary file
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const decryptQrcHex: (a: number, b: number) => [number, number];
|
|
5
|
-
export const parseEslrc: (a: number, b: number) => any;
|
|
6
|
-
export const parseLrc: (a: number, b: number) => any;
|
|
7
|
-
export const parseLys: (a: number, b: number) => any;
|
|
8
|
-
export const parseQrc: (a: number, b: number) => any;
|
|
9
|
-
export const parseTTML: (a: number, b: number) => any;
|
|
10
|
-
export const parseYrc: (a: number, b: number) => any;
|
|
11
|
-
export const stringifyAss: (a: any) => [number, number];
|
|
12
|
-
export const stringifyEslrc: (a: any) => [number, number];
|
|
13
|
-
export const stringifyLrc: (a: any) => [number, number];
|
|
14
|
-
export const stringifyLys: (a: any) => [number, number];
|
|
15
|
-
export const stringifyQrc: (a: any) => [number, number];
|
|
16
|
-
export const stringifyTTML: (a: any) => [number, number];
|
|
17
|
-
export const stringifyYrc: (a: any) => [number, number];
|
|
18
|
-
export const wasm_start: () => void;
|
|
19
|
-
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
20
|
-
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
21
|
-
export const __wbindgen_exn_store: (a: number) => void;
|
|
22
|
-
export const __externref_table_alloc: () => number;
|
|
23
|
-
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
24
|
-
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
25
|
-
export const __wbindgen_start: () => void;
|