@next/swc-wasm-web 12.3.2-canary.2 → 12.3.2-canary.20
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.d.ts +7 -5
- package/wasm.js +295 -59
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -50,21 +50,23 @@ export interface InitOutput {
|
|
|
50
50
|
readonly __wbindgen_malloc: (a: number) => number;
|
|
51
51
|
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
|
52
52
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
53
|
-
readonly
|
|
53
|
+
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf0bd547216a53344: (a: number, b: number, c: number) => void;
|
|
54
54
|
readonly __wbindgen_free: (a: number, b: number) => void;
|
|
55
55
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
56
|
-
readonly
|
|
56
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__h3c64c44d7e6869aa: (a: number, b: number, c: number, d: number) => void;
|
|
57
57
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
60
61
|
/**
|
|
61
|
-
*
|
|
62
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
63
|
+
* a precompiled `WebAssembly.Module`.
|
|
62
64
|
*
|
|
63
|
-
* @param {
|
|
65
|
+
* @param {SyncInitInput} module
|
|
64
66
|
*
|
|
65
67
|
* @returns {InitOutput}
|
|
66
68
|
*/
|
|
67
|
-
export function initSync(
|
|
69
|
+
export function initSync(module: SyncInitInput): InitOutput;
|
|
68
70
|
|
|
69
71
|
/**
|
|
70
72
|
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
package/wasm.js
CHANGED
|
@@ -21,23 +21,6 @@ function takeObject(idx) {
|
|
|
21
21
|
return ret;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
25
|
-
|
|
26
|
-
cachedTextDecoder.decode();
|
|
27
|
-
|
|
28
|
-
let cachedUint8Memory0 = new Uint8Array();
|
|
29
|
-
|
|
30
|
-
function getUint8Memory0() {
|
|
31
|
-
if (cachedUint8Memory0.byteLength === 0) {
|
|
32
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
33
|
-
}
|
|
34
|
-
return cachedUint8Memory0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function getStringFromWasm0(ptr, len) {
|
|
38
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
24
|
function addHeapObject(obj) {
|
|
42
25
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
43
26
|
const idx = heap_next;
|
|
@@ -47,8 +30,82 @@ function addHeapObject(obj) {
|
|
|
47
30
|
return idx;
|
|
48
31
|
}
|
|
49
32
|
|
|
33
|
+
function debugString(val) {
|
|
34
|
+
// primitive types
|
|
35
|
+
const type = typeof val;
|
|
36
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
37
|
+
return `${val}`;
|
|
38
|
+
}
|
|
39
|
+
if (type == 'string') {
|
|
40
|
+
return `"${val}"`;
|
|
41
|
+
}
|
|
42
|
+
if (type == 'symbol') {
|
|
43
|
+
const description = val.description;
|
|
44
|
+
if (description == null) {
|
|
45
|
+
return 'Symbol';
|
|
46
|
+
} else {
|
|
47
|
+
return `Symbol(${description})`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (type == 'function') {
|
|
51
|
+
const name = val.name;
|
|
52
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
53
|
+
return `Function(${name})`;
|
|
54
|
+
} else {
|
|
55
|
+
return 'Function';
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
// objects
|
|
59
|
+
if (Array.isArray(val)) {
|
|
60
|
+
const length = val.length;
|
|
61
|
+
let debug = '[';
|
|
62
|
+
if (length > 0) {
|
|
63
|
+
debug += debugString(val[0]);
|
|
64
|
+
}
|
|
65
|
+
for(let i = 1; i < length; i++) {
|
|
66
|
+
debug += ', ' + debugString(val[i]);
|
|
67
|
+
}
|
|
68
|
+
debug += ']';
|
|
69
|
+
return debug;
|
|
70
|
+
}
|
|
71
|
+
// Test for built-in
|
|
72
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
73
|
+
let className;
|
|
74
|
+
if (builtInMatches.length > 1) {
|
|
75
|
+
className = builtInMatches[1];
|
|
76
|
+
} else {
|
|
77
|
+
// Failed to match the standard '[object ClassName]'
|
|
78
|
+
return toString.call(val);
|
|
79
|
+
}
|
|
80
|
+
if (className == 'Object') {
|
|
81
|
+
// we're a user defined class or Object
|
|
82
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
83
|
+
// easier than looping through ownProperties of `val`.
|
|
84
|
+
try {
|
|
85
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
86
|
+
} catch (_) {
|
|
87
|
+
return 'Object';
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
// errors
|
|
91
|
+
if (val instanceof Error) {
|
|
92
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
93
|
+
}
|
|
94
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
95
|
+
return className;
|
|
96
|
+
}
|
|
97
|
+
|
|
50
98
|
let WASM_VECTOR_LEN = 0;
|
|
51
99
|
|
|
100
|
+
let cachedUint8Memory0 = new Uint8Array();
|
|
101
|
+
|
|
102
|
+
function getUint8Memory0() {
|
|
103
|
+
if (cachedUint8Memory0.byteLength === 0) {
|
|
104
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
105
|
+
}
|
|
106
|
+
return cachedUint8Memory0;
|
|
107
|
+
}
|
|
108
|
+
|
|
52
109
|
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
53
110
|
|
|
54
111
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -115,6 +172,23 @@ function isLikeNone(x) {
|
|
|
115
172
|
return x === undefined || x === null;
|
|
116
173
|
}
|
|
117
174
|
|
|
175
|
+
let cachedFloat64Memory0 = new Float64Array();
|
|
176
|
+
|
|
177
|
+
function getFloat64Memory0() {
|
|
178
|
+
if (cachedFloat64Memory0.byteLength === 0) {
|
|
179
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
180
|
+
}
|
|
181
|
+
return cachedFloat64Memory0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
185
|
+
|
|
186
|
+
cachedTextDecoder.decode();
|
|
187
|
+
|
|
188
|
+
function getStringFromWasm0(ptr, len) {
|
|
189
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
190
|
+
}
|
|
191
|
+
|
|
118
192
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
119
193
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
120
194
|
const real = (...args) => {
|
|
@@ -139,8 +213,8 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
139
213
|
|
|
140
214
|
return real;
|
|
141
215
|
}
|
|
142
|
-
function
|
|
143
|
-
wasm.
|
|
216
|
+
function __wbg_adapter_34(arg0, arg1, arg2) {
|
|
217
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf0bd547216a53344(arg0, arg1, addHeapObject(arg2));
|
|
144
218
|
}
|
|
145
219
|
|
|
146
220
|
function getCachedStringFromWasm0(ptr, len) {
|
|
@@ -158,8 +232,8 @@ function handleError(f, args) {
|
|
|
158
232
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
159
233
|
}
|
|
160
234
|
}
|
|
161
|
-
function
|
|
162
|
-
wasm.
|
|
235
|
+
function __wbg_adapter_79(arg0, arg1, arg2, arg3) {
|
|
236
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h3c64c44d7e6869aa(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
163
237
|
}
|
|
164
238
|
|
|
165
239
|
/**
|
|
@@ -289,49 +363,212 @@ async function load(module, imports) {
|
|
|
289
363
|
function getImports() {
|
|
290
364
|
const imports = {};
|
|
291
365
|
imports.wbg = {};
|
|
292
|
-
imports.wbg.
|
|
366
|
+
imports.wbg.__wbg_new0_a57059d72c5b7aee = function() {
|
|
293
367
|
const ret = new Date();
|
|
294
368
|
return addHeapObject(ret);
|
|
295
369
|
};
|
|
296
|
-
imports.wbg.
|
|
297
|
-
const ret = getObject(arg0).
|
|
370
|
+
imports.wbg.__wbg_getTimezoneOffset_89bd4275e1ca8341 = function(arg0) {
|
|
371
|
+
const ret = getObject(arg0).getTimezoneOffset();
|
|
298
372
|
return ret;
|
|
299
373
|
};
|
|
300
374
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
301
375
|
takeObject(arg0);
|
|
302
376
|
};
|
|
303
|
-
imports.wbg.
|
|
304
|
-
const ret = getObject(arg0).
|
|
377
|
+
imports.wbg.__wbg_getTime_cb82adb2556ed13e = function(arg0) {
|
|
378
|
+
const ret = getObject(arg0).getTime();
|
|
305
379
|
return ret;
|
|
306
380
|
};
|
|
307
|
-
imports.wbg.
|
|
381
|
+
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
308
382
|
const ret = new Error();
|
|
309
383
|
return addHeapObject(ret);
|
|
310
384
|
};
|
|
311
|
-
imports.wbg.
|
|
385
|
+
imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
312
386
|
const ret = getObject(arg1).stack;
|
|
313
387
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
314
388
|
const len0 = WASM_VECTOR_LEN;
|
|
315
389
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
316
390
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
317
391
|
};
|
|
318
|
-
imports.wbg.
|
|
392
|
+
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
319
393
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
320
394
|
if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1); }
|
|
321
395
|
console.error(v0);
|
|
322
396
|
};
|
|
397
|
+
imports.wbg.__wbg_iterator_6f9d4f28845f426c = function() {
|
|
398
|
+
const ret = Symbol.iterator;
|
|
399
|
+
return addHeapObject(ret);
|
|
400
|
+
};
|
|
401
|
+
imports.wbg.__wbg_get_765201544a2b6869 = function() { return handleError(function (arg0, arg1) {
|
|
402
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
403
|
+
return addHeapObject(ret);
|
|
404
|
+
}, arguments) };
|
|
405
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
406
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
407
|
+
return ret;
|
|
408
|
+
};
|
|
409
|
+
imports.wbg.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {
|
|
410
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
411
|
+
return addHeapObject(ret);
|
|
412
|
+
}, arguments) };
|
|
413
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
414
|
+
const val = getObject(arg0);
|
|
415
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
416
|
+
return ret;
|
|
417
|
+
};
|
|
418
|
+
imports.wbg.__wbg_next_579e583d33566a86 = function(arg0) {
|
|
419
|
+
const ret = getObject(arg0).next;
|
|
420
|
+
return addHeapObject(ret);
|
|
421
|
+
};
|
|
422
|
+
imports.wbg.__wbg_length_9e1ae1900cb0fbd5 = function(arg0) {
|
|
423
|
+
const ret = getObject(arg0).length;
|
|
424
|
+
return ret;
|
|
425
|
+
};
|
|
426
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
427
|
+
const ret = wasm.memory;
|
|
428
|
+
return addHeapObject(ret);
|
|
429
|
+
};
|
|
430
|
+
imports.wbg.__wbg_buffer_3f3d764d4747d564 = function(arg0) {
|
|
431
|
+
const ret = getObject(arg0).buffer;
|
|
432
|
+
return addHeapObject(ret);
|
|
433
|
+
};
|
|
434
|
+
imports.wbg.__wbg_new_8c3f0052272a457a = function(arg0) {
|
|
435
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
436
|
+
return addHeapObject(ret);
|
|
437
|
+
};
|
|
438
|
+
imports.wbg.__wbg_set_83db9690f9353e79 = function(arg0, arg1, arg2) {
|
|
439
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
440
|
+
};
|
|
441
|
+
imports.wbg.__wbg_has_8359f114ce042f5a = function() { return handleError(function (arg0, arg1) {
|
|
442
|
+
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
443
|
+
return ret;
|
|
444
|
+
}, arguments) };
|
|
445
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
446
|
+
const ret = debugString(getObject(arg1));
|
|
447
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
448
|
+
const len0 = WASM_VECTOR_LEN;
|
|
449
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
450
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
451
|
+
};
|
|
452
|
+
imports.wbg.__wbg_entries_65a76a413fc91037 = function(arg0) {
|
|
453
|
+
const ret = Object.entries(getObject(arg0));
|
|
454
|
+
return addHeapObject(ret);
|
|
455
|
+
};
|
|
456
|
+
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
457
|
+
const ret = getObject(arg0) === null;
|
|
458
|
+
return ret;
|
|
459
|
+
};
|
|
460
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
461
|
+
const ret = getObject(arg0) === undefined;
|
|
462
|
+
return ret;
|
|
463
|
+
};
|
|
464
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
465
|
+
const v = getObject(arg0);
|
|
466
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
467
|
+
return ret;
|
|
468
|
+
};
|
|
469
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
470
|
+
const obj = getObject(arg1);
|
|
471
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
472
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
473
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
474
|
+
};
|
|
475
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
476
|
+
const obj = getObject(arg1);
|
|
477
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
478
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
479
|
+
var len0 = WASM_VECTOR_LEN;
|
|
480
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
481
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
482
|
+
};
|
|
483
|
+
imports.wbg.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function(arg0) {
|
|
484
|
+
let result;
|
|
485
|
+
try {
|
|
486
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
487
|
+
} catch {
|
|
488
|
+
result = false;
|
|
489
|
+
}
|
|
490
|
+
const ret = result;
|
|
491
|
+
return ret;
|
|
492
|
+
};
|
|
493
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b = function(arg0) {
|
|
494
|
+
let result;
|
|
495
|
+
try {
|
|
496
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
497
|
+
} catch {
|
|
498
|
+
result = false;
|
|
499
|
+
}
|
|
500
|
+
const ret = result;
|
|
501
|
+
return ret;
|
|
502
|
+
};
|
|
503
|
+
imports.wbg.__wbg_new_8d2af00bc1e329ee = function(arg0, arg1) {
|
|
504
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
505
|
+
const ret = new Error(v0);
|
|
506
|
+
return addHeapObject(ret);
|
|
507
|
+
};
|
|
323
508
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
324
509
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
325
510
|
return addHeapObject(ret);
|
|
326
511
|
};
|
|
327
|
-
imports.wbg.
|
|
512
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
513
|
+
const ret = getObject(arg0);
|
|
514
|
+
return addHeapObject(ret);
|
|
515
|
+
};
|
|
516
|
+
imports.wbg.__wbg_get_2268d91a19a98b92 = function(arg0, arg1) {
|
|
517
|
+
const ret = getObject(arg0)[takeObject(arg1)];
|
|
518
|
+
return addHeapObject(ret);
|
|
519
|
+
};
|
|
520
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
521
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
522
|
+
return ret;
|
|
523
|
+
};
|
|
524
|
+
imports.wbg.__wbg_length_6e3bbe7c8bd4dbd8 = function(arg0) {
|
|
525
|
+
const ret = getObject(arg0).length;
|
|
526
|
+
return ret;
|
|
527
|
+
};
|
|
528
|
+
imports.wbg.__wbg_get_57245cc7d7c7619d = function(arg0, arg1) {
|
|
529
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
530
|
+
return addHeapObject(ret);
|
|
531
|
+
};
|
|
532
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
533
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
534
|
+
return ret;
|
|
535
|
+
};
|
|
536
|
+
imports.wbg.__wbg_BigInt_06819bca5a5bedef = function(arg0) {
|
|
537
|
+
const ret = BigInt(getObject(arg0));
|
|
538
|
+
return ret;
|
|
539
|
+
};
|
|
540
|
+
imports.wbg.__wbg_BigInt_d0c7d465bfa30d3b = function(arg0) {
|
|
541
|
+
const ret = BigInt(arg0);
|
|
542
|
+
return addHeapObject(ret);
|
|
543
|
+
};
|
|
544
|
+
imports.wbg.__wbg_is_40a66842732708e7 = function(arg0, arg1) {
|
|
545
|
+
const ret = Object.is(getObject(arg0), getObject(arg1));
|
|
546
|
+
return ret;
|
|
547
|
+
};
|
|
548
|
+
imports.wbg.__wbg_isSafeInteger_dfa0593e8d7ac35a = function(arg0) {
|
|
549
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
550
|
+
return ret;
|
|
551
|
+
};
|
|
552
|
+
imports.wbg.__wbg_isArray_27c46c67f498e15d = function(arg0) {
|
|
553
|
+
const ret = Array.isArray(getObject(arg0));
|
|
554
|
+
return ret;
|
|
555
|
+
};
|
|
556
|
+
imports.wbg.__wbg_BigInt_67359e71cae1c6c9 = function(arg0) {
|
|
557
|
+
const ret = BigInt(getObject(arg0));
|
|
558
|
+
return ret;
|
|
559
|
+
};
|
|
560
|
+
imports.wbg.__wbg_BigInt_1fab4952b6c4a499 = function(arg0) {
|
|
561
|
+
const ret = BigInt(BigInt.asUintN(64, arg0));
|
|
562
|
+
return addHeapObject(ret);
|
|
563
|
+
};
|
|
564
|
+
imports.wbg.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
|
|
328
565
|
try {
|
|
329
566
|
var state0 = {a: arg0, b: arg1};
|
|
330
567
|
var cb0 = (arg0, arg1) => {
|
|
331
568
|
const a = state0.a;
|
|
332
569
|
state0.a = 0;
|
|
333
570
|
try {
|
|
334
|
-
return
|
|
571
|
+
return __wbg_adapter_79(a, state0.b, arg0, arg1);
|
|
335
572
|
} finally {
|
|
336
573
|
state0.a = a;
|
|
337
574
|
}
|
|
@@ -342,38 +579,33 @@ imports.wbg.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
|
|
342
579
|
state0.a = state0.b = 0;
|
|
343
580
|
}
|
|
344
581
|
};
|
|
345
|
-
imports.wbg.
|
|
346
|
-
const ret = getObject(arg0).
|
|
582
|
+
imports.wbg.__wbg_next_aaef7c8aa5e212ac = function() { return handleError(function (arg0) {
|
|
583
|
+
const ret = getObject(arg0).next();
|
|
347
584
|
return addHeapObject(ret);
|
|
348
585
|
}, arguments) };
|
|
349
|
-
imports.wbg.
|
|
350
|
-
const ret =
|
|
351
|
-
return
|
|
586
|
+
imports.wbg.__wbg_done_1b73b0672e15f234 = function(arg0) {
|
|
587
|
+
const ret = getObject(arg0).done;
|
|
588
|
+
return ret;
|
|
352
589
|
};
|
|
353
|
-
imports.wbg.
|
|
354
|
-
const
|
|
355
|
-
|
|
356
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
357
|
-
const len0 = WASM_VECTOR_LEN;
|
|
358
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
359
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
590
|
+
imports.wbg.__wbg_value_1ccc36bc03462d71 = function(arg0) {
|
|
591
|
+
const ret = getObject(arg0).value;
|
|
592
|
+
return addHeapObject(ret);
|
|
360
593
|
};
|
|
361
|
-
imports.wbg.
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
594
|
+
imports.wbg.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
595
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
596
|
+
return addHeapObject(ret);
|
|
597
|
+
}, arguments) };
|
|
598
|
+
imports.wbg.__wbg_new_0b9bfdd97583284e = function() {
|
|
599
|
+
const ret = new Object();
|
|
600
|
+
return addHeapObject(ret);
|
|
368
601
|
};
|
|
369
|
-
imports.wbg.
|
|
370
|
-
|
|
371
|
-
return ret;
|
|
602
|
+
imports.wbg.__wbg_set_c943d600fa71e4dd = function(arg0, arg1, arg2) {
|
|
603
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
372
604
|
};
|
|
373
605
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
374
606
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
375
607
|
};
|
|
376
|
-
imports.wbg.
|
|
608
|
+
imports.wbg.__wbg_resolve_99fe17964f31ffc0 = function(arg0) {
|
|
377
609
|
const ret = Promise.resolve(getObject(arg0));
|
|
378
610
|
return addHeapObject(ret);
|
|
379
611
|
};
|
|
@@ -386,12 +618,12 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
|
386
618
|
const ret = false;
|
|
387
619
|
return ret;
|
|
388
620
|
};
|
|
389
|
-
imports.wbg.
|
|
621
|
+
imports.wbg.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
|
|
390
622
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
391
623
|
return addHeapObject(ret);
|
|
392
624
|
};
|
|
393
|
-
imports.wbg.
|
|
394
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
625
|
+
imports.wbg.__wbindgen_closure_wrapper19290 = function(arg0, arg1, arg2) {
|
|
626
|
+
const ret = makeMutClosure(arg0, arg1, 263, __wbg_adapter_34);
|
|
395
627
|
return addHeapObject(ret);
|
|
396
628
|
};
|
|
397
629
|
|
|
@@ -405,6 +637,7 @@ function initMemory(imports, maybe_memory) {
|
|
|
405
637
|
function finalizeInit(instance, module) {
|
|
406
638
|
wasm = instance.exports;
|
|
407
639
|
init.__wbindgen_wasm_module = module;
|
|
640
|
+
cachedFloat64Memory0 = new Float64Array();
|
|
408
641
|
cachedInt32Memory0 = new Int32Array();
|
|
409
642
|
cachedUint8Memory0 = new Uint8Array();
|
|
410
643
|
|
|
@@ -412,12 +645,15 @@ function finalizeInit(instance, module) {
|
|
|
412
645
|
return wasm;
|
|
413
646
|
}
|
|
414
647
|
|
|
415
|
-
function initSync(
|
|
648
|
+
function initSync(module) {
|
|
416
649
|
const imports = getImports();
|
|
417
650
|
|
|
418
651
|
initMemory(imports);
|
|
419
652
|
|
|
420
|
-
|
|
653
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
654
|
+
module = new WebAssembly.Module(module);
|
|
655
|
+
}
|
|
656
|
+
|
|
421
657
|
const instance = new WebAssembly.Instance(module, imports);
|
|
422
658
|
|
|
423
659
|
return finalizeInit(instance, module);
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|