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