@swc/wasm-web 1.3.17 → 1.3.19
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/package.json +1 -1
- package/wasm-web.d.ts +36 -36
- package/wasm-web.js +314 -52
- package/wasm-web_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm-web.d.ts
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
|
+
export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
|
|
5
|
+
export function minifySync(code: string, opts?: JsMinifyOptions): Output;
|
|
6
|
+
|
|
7
|
+
export function parse(src: string, options: ParseOptions & {
|
|
8
|
+
isModule: false;
|
|
9
|
+
}): Promise<Script>;
|
|
10
|
+
export function parse(src: string, options?: ParseOptions): Promise<Module>;
|
|
11
|
+
export function parseSync(src: string, options: ParseOptions & {
|
|
12
|
+
isModule: false;
|
|
13
|
+
}): Script;
|
|
14
|
+
export function parseSync(src: string, options?: ParseOptions): Module;
|
|
15
|
+
|
|
16
|
+
export function print(m: Program, options?: Options): Promise<Output>;
|
|
17
|
+
export function printSync(m: Program, options?: Options): Output
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Note: this interface currently does not do _actual_ async work, only provides
|
|
21
|
+
* a corresponding async interfaces to the `@swc/core`'s interface.
|
|
22
|
+
*/
|
|
23
|
+
export function transform(
|
|
24
|
+
code: string | Program,
|
|
25
|
+
options?: Options,
|
|
26
|
+
experimental_plugin_bytes_resolver?: any
|
|
27
|
+
): Promise<Output>;
|
|
28
|
+
/**
|
|
29
|
+
* @param {string} code
|
|
30
|
+
* @param {Options} opts
|
|
31
|
+
* @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
|
|
32
|
+
* specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
|
|
33
|
+
* interface, likely will change.
|
|
34
|
+
* @returns {Output}
|
|
35
|
+
*/
|
|
36
|
+
export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
4
40
|
export interface Plugin {
|
|
5
41
|
(module: Program): Program;
|
|
6
42
|
}
|
|
@@ -2790,42 +2826,6 @@ export interface Invalid extends Node, HasSpan {
|
|
|
2790
2826
|
|
|
2791
2827
|
|
|
2792
2828
|
|
|
2793
|
-
export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
|
|
2794
|
-
export function minifySync(code: string, opts?: JsMinifyOptions): Output;
|
|
2795
|
-
|
|
2796
|
-
export function parse(src: string, options: ParseOptions & {
|
|
2797
|
-
isModule: false;
|
|
2798
|
-
}): Promise<Script>;
|
|
2799
|
-
export function parse(src: string, options?: ParseOptions): Promise<Module>;
|
|
2800
|
-
export function parseSync(src: string, options: ParseOptions & {
|
|
2801
|
-
isModule: false;
|
|
2802
|
-
}): Script;
|
|
2803
|
-
export function parseSync(src: string, options?: ParseOptions): Module;
|
|
2804
|
-
|
|
2805
|
-
export function print(m: Program, options?: Options): Promise<Output>;
|
|
2806
|
-
export function printSync(m: Program, options?: Options): Output
|
|
2807
|
-
|
|
2808
|
-
/**
|
|
2809
|
-
* Note: this interface currently does not do _actual_ async work, only provides
|
|
2810
|
-
* a corresponding async interfaces to the `@swc/core`'s interface.
|
|
2811
|
-
*/
|
|
2812
|
-
export function transform(
|
|
2813
|
-
code: string | Program,
|
|
2814
|
-
options?: Options,
|
|
2815
|
-
experimental_plugin_bytes_resolver?: any
|
|
2816
|
-
): Promise<Output>;
|
|
2817
|
-
/**
|
|
2818
|
-
* @param {string} code
|
|
2819
|
-
* @param {Options} opts
|
|
2820
|
-
* @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
|
|
2821
|
-
* specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
|
|
2822
|
-
* interface, likely will change.
|
|
2823
|
-
* @returns {Output}
|
|
2824
|
-
*/
|
|
2825
|
-
export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
2829
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
2830
2830
|
|
|
2831
2831
|
export interface InitOutput {
|
package/wasm-web.js
CHANGED
|
@@ -1,14 +1,40 @@
|
|
|
1
1
|
|
|
2
2
|
let wasm;
|
|
3
3
|
|
|
4
|
+
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
5
|
+
|
|
6
|
+
cachedTextDecoder.decode();
|
|
7
|
+
|
|
8
|
+
let cachedUint8Memory0 = new Uint8Array();
|
|
9
|
+
|
|
10
|
+
function getUint8Memory0() {
|
|
11
|
+
if (cachedUint8Memory0.byteLength === 0) {
|
|
12
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
13
|
+
}
|
|
14
|
+
return cachedUint8Memory0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function getStringFromWasm0(ptr, len) {
|
|
18
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
19
|
+
}
|
|
20
|
+
|
|
4
21
|
const heap = new Array(32).fill(undefined);
|
|
5
22
|
|
|
6
23
|
heap.push(undefined, null, true, false);
|
|
7
24
|
|
|
8
|
-
function getObject(idx) { return heap[idx]; }
|
|
9
|
-
|
|
10
25
|
let heap_next = heap.length;
|
|
11
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
|
+
function getObject(idx) { return heap[idx]; }
|
|
37
|
+
|
|
12
38
|
function dropObject(idx) {
|
|
13
39
|
if (idx < 36) return;
|
|
14
40
|
heap[idx] = heap_next;
|
|
@@ -23,15 +49,6 @@ function takeObject(idx) {
|
|
|
23
49
|
|
|
24
50
|
let WASM_VECTOR_LEN = 0;
|
|
25
51
|
|
|
26
|
-
let cachedUint8Memory0 = new Uint8Array();
|
|
27
|
-
|
|
28
|
-
function getUint8Memory0() {
|
|
29
|
-
if (cachedUint8Memory0.byteLength === 0) {
|
|
30
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
31
|
-
}
|
|
32
|
-
return cachedUint8Memory0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
52
|
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
36
53
|
|
|
37
54
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -98,21 +115,87 @@ function getInt32Memory0() {
|
|
|
98
115
|
return cachedInt32Memory0;
|
|
99
116
|
}
|
|
100
117
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
cachedTextDecoder.decode();
|
|
118
|
+
let cachedBigInt64Memory0 = new BigInt64Array();
|
|
104
119
|
|
|
105
|
-
function
|
|
106
|
-
|
|
120
|
+
function getBigInt64Memory0() {
|
|
121
|
+
if (cachedBigInt64Memory0.byteLength === 0) {
|
|
122
|
+
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
|
123
|
+
}
|
|
124
|
+
return cachedBigInt64Memory0;
|
|
107
125
|
}
|
|
108
126
|
|
|
109
|
-
|
|
110
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
111
|
-
const idx = heap_next;
|
|
112
|
-
heap_next = heap[idx];
|
|
127
|
+
let cachedFloat64Memory0 = new Float64Array();
|
|
113
128
|
|
|
114
|
-
|
|
115
|
-
|
|
129
|
+
function getFloat64Memory0() {
|
|
130
|
+
if (cachedFloat64Memory0.byteLength === 0) {
|
|
131
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
132
|
+
}
|
|
133
|
+
return cachedFloat64Memory0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function debugString(val) {
|
|
137
|
+
// primitive types
|
|
138
|
+
const type = typeof val;
|
|
139
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
140
|
+
return `${val}`;
|
|
141
|
+
}
|
|
142
|
+
if (type == 'string') {
|
|
143
|
+
return `"${val}"`;
|
|
144
|
+
}
|
|
145
|
+
if (type == 'symbol') {
|
|
146
|
+
const description = val.description;
|
|
147
|
+
if (description == null) {
|
|
148
|
+
return 'Symbol';
|
|
149
|
+
} else {
|
|
150
|
+
return `Symbol(${description})`;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
if (type == 'function') {
|
|
154
|
+
const name = val.name;
|
|
155
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
156
|
+
return `Function(${name})`;
|
|
157
|
+
} else {
|
|
158
|
+
return 'Function';
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
// objects
|
|
162
|
+
if (Array.isArray(val)) {
|
|
163
|
+
const length = val.length;
|
|
164
|
+
let debug = '[';
|
|
165
|
+
if (length > 0) {
|
|
166
|
+
debug += debugString(val[0]);
|
|
167
|
+
}
|
|
168
|
+
for(let i = 1; i < length; i++) {
|
|
169
|
+
debug += ', ' + debugString(val[i]);
|
|
170
|
+
}
|
|
171
|
+
debug += ']';
|
|
172
|
+
return debug;
|
|
173
|
+
}
|
|
174
|
+
// Test for built-in
|
|
175
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
176
|
+
let className;
|
|
177
|
+
if (builtInMatches.length > 1) {
|
|
178
|
+
className = builtInMatches[1];
|
|
179
|
+
} else {
|
|
180
|
+
// Failed to match the standard '[object ClassName]'
|
|
181
|
+
return toString.call(val);
|
|
182
|
+
}
|
|
183
|
+
if (className == 'Object') {
|
|
184
|
+
// we're a user defined class or Object
|
|
185
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
186
|
+
// easier than looping through ownProperties of `val`.
|
|
187
|
+
try {
|
|
188
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
189
|
+
} catch (_) {
|
|
190
|
+
return 'Object';
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
// errors
|
|
194
|
+
if (val instanceof Error) {
|
|
195
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
196
|
+
}
|
|
197
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
198
|
+
return className;
|
|
116
199
|
}
|
|
117
200
|
|
|
118
201
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
@@ -139,7 +222,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
139
222
|
|
|
140
223
|
return real;
|
|
141
224
|
}
|
|
142
|
-
function
|
|
225
|
+
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
143
226
|
wasm.__wbindgen_export_3(arg0, arg1, addHeapObject(arg2));
|
|
144
227
|
}
|
|
145
228
|
|
|
@@ -284,7 +367,7 @@ function handleError(f, args) {
|
|
|
284
367
|
wasm.__wbindgen_export_5(addHeapObject(e));
|
|
285
368
|
}
|
|
286
369
|
}
|
|
287
|
-
function
|
|
370
|
+
function __wbg_adapter_107(arg0, arg1, arg2, arg3) {
|
|
288
371
|
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
289
372
|
}
|
|
290
373
|
|
|
@@ -322,9 +405,63 @@ async function load(module, imports) {
|
|
|
322
405
|
function getImports() {
|
|
323
406
|
const imports = {};
|
|
324
407
|
imports.wbg = {};
|
|
408
|
+
imports.wbg.__wbg_new_0b9bfdd97583284e = function() {
|
|
409
|
+
const ret = new Object();
|
|
410
|
+
return addHeapObject(ret);
|
|
411
|
+
};
|
|
412
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
413
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
414
|
+
return addHeapObject(ret);
|
|
415
|
+
};
|
|
416
|
+
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
417
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
418
|
+
};
|
|
325
419
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
326
420
|
takeObject(arg0);
|
|
327
421
|
};
|
|
422
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
423
|
+
const ret = arg0;
|
|
424
|
+
return addHeapObject(ret);
|
|
425
|
+
};
|
|
426
|
+
imports.wbg.__wbg_new_1d9a920c6bfc44a8 = function() {
|
|
427
|
+
const ret = new Array();
|
|
428
|
+
return addHeapObject(ret);
|
|
429
|
+
};
|
|
430
|
+
imports.wbg.__wbg_set_a68214f35c417fa9 = function(arg0, arg1, arg2) {
|
|
431
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
432
|
+
};
|
|
433
|
+
imports.wbg.__wbg_new_268f7b7dd3430798 = function() {
|
|
434
|
+
const ret = new Map();
|
|
435
|
+
return addHeapObject(ret);
|
|
436
|
+
};
|
|
437
|
+
imports.wbg.__wbg_set_933729cf5b66ac11 = function(arg0, arg1, arg2) {
|
|
438
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
439
|
+
return addHeapObject(ret);
|
|
440
|
+
};
|
|
441
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
442
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
443
|
+
return ret;
|
|
444
|
+
};
|
|
445
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
446
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
447
|
+
return addHeapObject(ret);
|
|
448
|
+
};
|
|
449
|
+
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
450
|
+
const ret = getObject(arg0) === null;
|
|
451
|
+
return ret;
|
|
452
|
+
};
|
|
453
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
454
|
+
const ret = getObject(arg0) === undefined;
|
|
455
|
+
return ret;
|
|
456
|
+
};
|
|
457
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
458
|
+
const obj = getObject(arg1);
|
|
459
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
460
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
461
|
+
var len0 = WASM_VECTOR_LEN;
|
|
462
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
463
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
464
|
+
};
|
|
328
465
|
imports.wbg.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
|
|
329
466
|
try {
|
|
330
467
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -332,7 +469,7 @@ function getImports() {
|
|
|
332
469
|
const a = state0.a;
|
|
333
470
|
state0.a = 0;
|
|
334
471
|
try {
|
|
335
|
-
return
|
|
472
|
+
return __wbg_adapter_107(a, state0.b, arg0, arg1);
|
|
336
473
|
} finally {
|
|
337
474
|
state0.a = a;
|
|
338
475
|
}
|
|
@@ -343,46 +480,96 @@ function getImports() {
|
|
|
343
480
|
state0.a = state0.b = 0;
|
|
344
481
|
}
|
|
345
482
|
};
|
|
346
|
-
imports.wbg.
|
|
347
|
-
const ret = getObject(arg0)
|
|
483
|
+
imports.wbg.__wbg_next_aaef7c8aa5e212ac = function() { return handleError(function (arg0) {
|
|
484
|
+
const ret = getObject(arg0).next();
|
|
485
|
+
return addHeapObject(ret);
|
|
486
|
+
}, arguments) };
|
|
487
|
+
imports.wbg.__wbg_done_1b73b0672e15f234 = function(arg0) {
|
|
488
|
+
const ret = getObject(arg0).done;
|
|
348
489
|
return ret;
|
|
349
490
|
};
|
|
350
|
-
imports.wbg.
|
|
351
|
-
const ret = getObject(arg0)
|
|
491
|
+
imports.wbg.__wbg_value_1ccc36bc03462d71 = function(arg0) {
|
|
492
|
+
const ret = getObject(arg0).value;
|
|
493
|
+
return addHeapObject(ret);
|
|
494
|
+
};
|
|
495
|
+
imports.wbg.__wbg_get_57245cc7d7c7619d = function(arg0, arg1) {
|
|
496
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
497
|
+
return addHeapObject(ret);
|
|
498
|
+
};
|
|
499
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
500
|
+
const v = getObject(arg0);
|
|
501
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
352
502
|
return ret;
|
|
353
503
|
};
|
|
354
|
-
imports.wbg.
|
|
355
|
-
const
|
|
504
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
505
|
+
const val = getObject(arg0);
|
|
506
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
356
507
|
return ret;
|
|
357
508
|
};
|
|
358
|
-
imports.wbg.
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
509
|
+
imports.wbg.__wbg_entries_65a76a413fc91037 = function(arg0) {
|
|
510
|
+
const ret = Object.entries(getObject(arg0));
|
|
511
|
+
return addHeapObject(ret);
|
|
512
|
+
};
|
|
513
|
+
imports.wbg.__wbg_length_6e3bbe7c8bd4dbd8 = function(arg0) {
|
|
514
|
+
const ret = getObject(arg0).length;
|
|
515
|
+
return ret;
|
|
516
|
+
};
|
|
517
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
518
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
519
|
+
return ret;
|
|
520
|
+
};
|
|
521
|
+
imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
522
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
523
|
+
return addHeapObject(ret);
|
|
524
|
+
};
|
|
525
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
526
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
527
|
+
return ret;
|
|
528
|
+
};
|
|
529
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
530
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
531
|
+
return ret;
|
|
365
532
|
};
|
|
366
|
-
imports.wbg.
|
|
533
|
+
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
534
|
+
const v = getObject(arg1);
|
|
535
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
536
|
+
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0n : ret;
|
|
537
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
538
|
+
};
|
|
539
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
540
|
+
const ret = arg0;
|
|
541
|
+
return addHeapObject(ret);
|
|
542
|
+
};
|
|
543
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
544
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
545
|
+
return ret;
|
|
546
|
+
};
|
|
547
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
367
548
|
const obj = getObject(arg1);
|
|
368
|
-
const ret =
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
372
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
549
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
550
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
551
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
373
552
|
};
|
|
374
|
-
imports.wbg.
|
|
375
|
-
const ret =
|
|
553
|
+
imports.wbg.__wbg_isSafeInteger_dfa0593e8d7ac35a = function(arg0) {
|
|
554
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
555
|
+
return ret;
|
|
556
|
+
};
|
|
557
|
+
imports.wbg.__wbg_isArray_27c46c67f498e15d = function(arg0) {
|
|
558
|
+
const ret = Array.isArray(getObject(arg0));
|
|
559
|
+
return ret;
|
|
560
|
+
};
|
|
561
|
+
imports.wbg.__wbg_iterator_6f9d4f28845f426c = function() {
|
|
562
|
+
const ret = Symbol.iterator;
|
|
563
|
+
return addHeapObject(ret);
|
|
564
|
+
};
|
|
565
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
566
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
376
567
|
return addHeapObject(ret);
|
|
377
568
|
};
|
|
378
569
|
imports.wbg.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
379
570
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
380
571
|
return addHeapObject(ret);
|
|
381
572
|
}, arguments) };
|
|
382
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
383
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
384
|
-
return addHeapObject(ret);
|
|
385
|
-
};
|
|
386
573
|
imports.wbg.__wbg_new0_a57059d72c5b7aee = function() {
|
|
387
574
|
const ret = new Date();
|
|
388
575
|
return addHeapObject(ret);
|
|
@@ -411,6 +598,79 @@ function getImports() {
|
|
|
411
598
|
if (arg0 !== 0) { wasm.__wbindgen_export_4(arg0, arg1); }
|
|
412
599
|
console.error(v0);
|
|
413
600
|
};
|
|
601
|
+
imports.wbg.__wbg_get_765201544a2b6869 = function() { return handleError(function (arg0, arg1) {
|
|
602
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
603
|
+
return addHeapObject(ret);
|
|
604
|
+
}, arguments) };
|
|
605
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
606
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
607
|
+
return ret;
|
|
608
|
+
};
|
|
609
|
+
imports.wbg.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {
|
|
610
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
611
|
+
return addHeapObject(ret);
|
|
612
|
+
}, arguments) };
|
|
613
|
+
imports.wbg.__wbg_next_579e583d33566a86 = function(arg0) {
|
|
614
|
+
const ret = getObject(arg0).next;
|
|
615
|
+
return addHeapObject(ret);
|
|
616
|
+
};
|
|
617
|
+
imports.wbg.__wbg_length_9e1ae1900cb0fbd5 = function(arg0) {
|
|
618
|
+
const ret = getObject(arg0).length;
|
|
619
|
+
return ret;
|
|
620
|
+
};
|
|
621
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
622
|
+
const ret = wasm.memory;
|
|
623
|
+
return addHeapObject(ret);
|
|
624
|
+
};
|
|
625
|
+
imports.wbg.__wbg_buffer_3f3d764d4747d564 = function(arg0) {
|
|
626
|
+
const ret = getObject(arg0).buffer;
|
|
627
|
+
return addHeapObject(ret);
|
|
628
|
+
};
|
|
629
|
+
imports.wbg.__wbg_new_8c3f0052272a457a = function(arg0) {
|
|
630
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
631
|
+
return addHeapObject(ret);
|
|
632
|
+
};
|
|
633
|
+
imports.wbg.__wbg_set_83db9690f9353e79 = function(arg0, arg1, arg2) {
|
|
634
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
635
|
+
};
|
|
636
|
+
imports.wbg.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function(arg0) {
|
|
637
|
+
let result;
|
|
638
|
+
try {
|
|
639
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
640
|
+
} catch {
|
|
641
|
+
result = false;
|
|
642
|
+
}
|
|
643
|
+
const ret = result;
|
|
644
|
+
return ret;
|
|
645
|
+
};
|
|
646
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b = function(arg0) {
|
|
647
|
+
let result;
|
|
648
|
+
try {
|
|
649
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
650
|
+
} catch {
|
|
651
|
+
result = false;
|
|
652
|
+
}
|
|
653
|
+
const ret = result;
|
|
654
|
+
return ret;
|
|
655
|
+
};
|
|
656
|
+
imports.wbg.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
657
|
+
const ret = String(getObject(arg1));
|
|
658
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
659
|
+
const len0 = WASM_VECTOR_LEN;
|
|
660
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
661
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
662
|
+
};
|
|
663
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
664
|
+
const ret = getObject(arg0);
|
|
665
|
+
return addHeapObject(ret);
|
|
666
|
+
};
|
|
667
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
668
|
+
const ret = debugString(getObject(arg1));
|
|
669
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
670
|
+
const len0 = WASM_VECTOR_LEN;
|
|
671
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
672
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
673
|
+
};
|
|
414
674
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
415
675
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
416
676
|
};
|
|
@@ -431,8 +691,8 @@ imports.wbg.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
|
|
|
431
691
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
432
692
|
return addHeapObject(ret);
|
|
433
693
|
};
|
|
434
|
-
imports.wbg.
|
|
435
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
694
|
+
imports.wbg.__wbindgen_closure_wrapper18933 = function(arg0, arg1, arg2) {
|
|
695
|
+
const ret = makeMutClosure(arg0, arg1, 226, __wbg_adapter_50);
|
|
436
696
|
return addHeapObject(ret);
|
|
437
697
|
};
|
|
438
698
|
|
|
@@ -446,6 +706,8 @@ function initMemory(imports, maybe_memory) {
|
|
|
446
706
|
function finalizeInit(instance, module) {
|
|
447
707
|
wasm = instance.exports;
|
|
448
708
|
init.__wbindgen_wasm_module = module;
|
|
709
|
+
cachedBigInt64Memory0 = new BigInt64Array();
|
|
710
|
+
cachedFloat64Memory0 = new Float64Array();
|
|
449
711
|
cachedInt32Memory0 = new Int32Array();
|
|
450
712
|
cachedUint8Memory0 = new Uint8Array();
|
|
451
713
|
|
package/wasm-web_bg.wasm
CHANGED
|
Binary file
|