@next/swc-wasm-web 12.3.2-canary.7 → 13.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/package.json +1 -1
- package/wasm.d.ts +7 -5
- package/wasm.js +312 -69
- 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__h7a4a409b6b744f49: (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__h6f762af111249e4b: (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,39 @@ function addHeapObject(obj) {
|
|
|
47
30
|
return idx;
|
|
48
31
|
}
|
|
49
32
|
|
|
33
|
+
function isLikeNone(x) {
|
|
34
|
+
return x === undefined || x === null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
let cachedFloat64Memory0 = new Float64Array();
|
|
38
|
+
|
|
39
|
+
function getFloat64Memory0() {
|
|
40
|
+
if (cachedFloat64Memory0.byteLength === 0) {
|
|
41
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
42
|
+
}
|
|
43
|
+
return cachedFloat64Memory0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
let cachedInt32Memory0 = new Int32Array();
|
|
47
|
+
|
|
48
|
+
function getInt32Memory0() {
|
|
49
|
+
if (cachedInt32Memory0.byteLength === 0) {
|
|
50
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
51
|
+
}
|
|
52
|
+
return cachedInt32Memory0;
|
|
53
|
+
}
|
|
54
|
+
|
|
50
55
|
let WASM_VECTOR_LEN = 0;
|
|
51
56
|
|
|
57
|
+
let cachedUint8Memory0 = new Uint8Array();
|
|
58
|
+
|
|
59
|
+
function getUint8Memory0() {
|
|
60
|
+
if (cachedUint8Memory0.byteLength === 0) {
|
|
61
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
62
|
+
}
|
|
63
|
+
return cachedUint8Memory0;
|
|
64
|
+
}
|
|
65
|
+
|
|
52
66
|
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
53
67
|
|
|
54
68
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -102,17 +116,86 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
102
116
|
return ptr;
|
|
103
117
|
}
|
|
104
118
|
|
|
105
|
-
|
|
119
|
+
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
106
120
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
121
|
+
cachedTextDecoder.decode();
|
|
122
|
+
|
|
123
|
+
function getStringFromWasm0(ptr, len) {
|
|
124
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function debugString(val) {
|
|
128
|
+
// primitive types
|
|
129
|
+
const type = typeof val;
|
|
130
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
131
|
+
return `${val}`;
|
|
110
132
|
}
|
|
111
|
-
|
|
133
|
+
if (type == 'string') {
|
|
134
|
+
return `"${val}"`;
|
|
135
|
+
}
|
|
136
|
+
if (type == 'symbol') {
|
|
137
|
+
const description = val.description;
|
|
138
|
+
if (description == null) {
|
|
139
|
+
return 'Symbol';
|
|
140
|
+
} else {
|
|
141
|
+
return `Symbol(${description})`;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
if (type == 'function') {
|
|
145
|
+
const name = val.name;
|
|
146
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
147
|
+
return `Function(${name})`;
|
|
148
|
+
} else {
|
|
149
|
+
return 'Function';
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
// objects
|
|
153
|
+
if (Array.isArray(val)) {
|
|
154
|
+
const length = val.length;
|
|
155
|
+
let debug = '[';
|
|
156
|
+
if (length > 0) {
|
|
157
|
+
debug += debugString(val[0]);
|
|
158
|
+
}
|
|
159
|
+
for(let i = 1; i < length; i++) {
|
|
160
|
+
debug += ', ' + debugString(val[i]);
|
|
161
|
+
}
|
|
162
|
+
debug += ']';
|
|
163
|
+
return debug;
|
|
164
|
+
}
|
|
165
|
+
// Test for built-in
|
|
166
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
167
|
+
let className;
|
|
168
|
+
if (builtInMatches.length > 1) {
|
|
169
|
+
className = builtInMatches[1];
|
|
170
|
+
} else {
|
|
171
|
+
// Failed to match the standard '[object ClassName]'
|
|
172
|
+
return toString.call(val);
|
|
173
|
+
}
|
|
174
|
+
if (className == 'Object') {
|
|
175
|
+
// we're a user defined class or Object
|
|
176
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
177
|
+
// easier than looping through ownProperties of `val`.
|
|
178
|
+
try {
|
|
179
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
180
|
+
} catch (_) {
|
|
181
|
+
return 'Object';
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
// errors
|
|
185
|
+
if (val instanceof Error) {
|
|
186
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
187
|
+
}
|
|
188
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
189
|
+
return className;
|
|
112
190
|
}
|
|
113
191
|
|
|
114
|
-
|
|
115
|
-
|
|
192
|
+
let cachedBigInt64Memory0 = new BigInt64Array();
|
|
193
|
+
|
|
194
|
+
function getBigInt64Memory0() {
|
|
195
|
+
if (cachedBigInt64Memory0.byteLength === 0) {
|
|
196
|
+
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
|
197
|
+
}
|
|
198
|
+
return cachedBigInt64Memory0;
|
|
116
199
|
}
|
|
117
200
|
|
|
118
201
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
@@ -139,8 +222,8 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
139
222
|
|
|
140
223
|
return real;
|
|
141
224
|
}
|
|
142
|
-
function
|
|
143
|
-
wasm.
|
|
225
|
+
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
226
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7a4a409b6b744f49(arg0, arg1, addHeapObject(arg2));
|
|
144
227
|
}
|
|
145
228
|
|
|
146
229
|
function getCachedStringFromWasm0(ptr, len) {
|
|
@@ -158,8 +241,8 @@ function handleError(f, args) {
|
|
|
158
241
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
159
242
|
}
|
|
160
243
|
}
|
|
161
|
-
function
|
|
162
|
-
wasm.
|
|
244
|
+
function __wbg_adapter_87(arg0, arg1, arg2, arg3) {
|
|
245
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h6f762af111249e4b(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
163
246
|
}
|
|
164
247
|
|
|
165
248
|
/**
|
|
@@ -289,49 +372,221 @@ async function load(module, imports) {
|
|
|
289
372
|
function getImports() {
|
|
290
373
|
const imports = {};
|
|
291
374
|
imports.wbg = {};
|
|
292
|
-
imports.wbg.
|
|
375
|
+
imports.wbg.__wbg_new0_a57059d72c5b7aee = function() {
|
|
293
376
|
const ret = new Date();
|
|
294
377
|
return addHeapObject(ret);
|
|
295
378
|
};
|
|
296
|
-
imports.wbg.
|
|
297
|
-
const ret = getObject(arg0).
|
|
379
|
+
imports.wbg.__wbg_getTimezoneOffset_89bd4275e1ca8341 = function(arg0) {
|
|
380
|
+
const ret = getObject(arg0).getTimezoneOffset();
|
|
298
381
|
return ret;
|
|
299
382
|
};
|
|
300
383
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
301
384
|
takeObject(arg0);
|
|
302
385
|
};
|
|
303
|
-
imports.wbg.
|
|
304
|
-
const ret = getObject(arg0).
|
|
386
|
+
imports.wbg.__wbg_getTime_cb82adb2556ed13e = function(arg0) {
|
|
387
|
+
const ret = getObject(arg0).getTime();
|
|
305
388
|
return ret;
|
|
306
389
|
};
|
|
307
|
-
imports.wbg.
|
|
390
|
+
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
308
391
|
const ret = new Error();
|
|
309
392
|
return addHeapObject(ret);
|
|
310
393
|
};
|
|
311
|
-
imports.wbg.
|
|
394
|
+
imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
312
395
|
const ret = getObject(arg1).stack;
|
|
313
396
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
314
397
|
const len0 = WASM_VECTOR_LEN;
|
|
315
398
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
316
399
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
317
400
|
};
|
|
318
|
-
imports.wbg.
|
|
401
|
+
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
319
402
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
320
403
|
if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1); }
|
|
321
404
|
console.error(v0);
|
|
322
405
|
};
|
|
406
|
+
imports.wbg.__wbg_iterator_6f9d4f28845f426c = function() {
|
|
407
|
+
const ret = Symbol.iterator;
|
|
408
|
+
return addHeapObject(ret);
|
|
409
|
+
};
|
|
410
|
+
imports.wbg.__wbg_get_765201544a2b6869 = function() { return handleError(function (arg0, arg1) {
|
|
411
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
412
|
+
return addHeapObject(ret);
|
|
413
|
+
}, arguments) };
|
|
414
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
415
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
416
|
+
return ret;
|
|
417
|
+
};
|
|
418
|
+
imports.wbg.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {
|
|
419
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
420
|
+
return addHeapObject(ret);
|
|
421
|
+
}, arguments) };
|
|
422
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
423
|
+
const val = getObject(arg0);
|
|
424
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
425
|
+
return ret;
|
|
426
|
+
};
|
|
427
|
+
imports.wbg.__wbg_next_579e583d33566a86 = function(arg0) {
|
|
428
|
+
const ret = getObject(arg0).next;
|
|
429
|
+
return addHeapObject(ret);
|
|
430
|
+
};
|
|
431
|
+
imports.wbg.__wbg_length_9e1ae1900cb0fbd5 = function(arg0) {
|
|
432
|
+
const ret = getObject(arg0).length;
|
|
433
|
+
return ret;
|
|
434
|
+
};
|
|
435
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
436
|
+
const ret = wasm.memory;
|
|
437
|
+
return addHeapObject(ret);
|
|
438
|
+
};
|
|
439
|
+
imports.wbg.__wbg_buffer_3f3d764d4747d564 = function(arg0) {
|
|
440
|
+
const ret = getObject(arg0).buffer;
|
|
441
|
+
return addHeapObject(ret);
|
|
442
|
+
};
|
|
443
|
+
imports.wbg.__wbg_new_8c3f0052272a457a = function(arg0) {
|
|
444
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
445
|
+
return addHeapObject(ret);
|
|
446
|
+
};
|
|
447
|
+
imports.wbg.__wbg_set_83db9690f9353e79 = function(arg0, arg1, arg2) {
|
|
448
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
449
|
+
};
|
|
450
|
+
imports.wbg.__wbg_entries_65a76a413fc91037 = function(arg0) {
|
|
451
|
+
const ret = Object.entries(getObject(arg0));
|
|
452
|
+
return addHeapObject(ret);
|
|
453
|
+
};
|
|
454
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
455
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
456
|
+
return ret;
|
|
457
|
+
};
|
|
458
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
459
|
+
const v = getObject(arg0);
|
|
460
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
461
|
+
return ret;
|
|
462
|
+
};
|
|
463
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
464
|
+
const obj = getObject(arg1);
|
|
465
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
466
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
467
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
468
|
+
};
|
|
469
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
470
|
+
const obj = getObject(arg1);
|
|
471
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
472
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
473
|
+
var len0 = WASM_VECTOR_LEN;
|
|
474
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
475
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
476
|
+
};
|
|
477
|
+
imports.wbg.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function(arg0) {
|
|
478
|
+
let result;
|
|
479
|
+
try {
|
|
480
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
481
|
+
} catch {
|
|
482
|
+
result = false;
|
|
483
|
+
}
|
|
484
|
+
const ret = result;
|
|
485
|
+
return ret;
|
|
486
|
+
};
|
|
487
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b = function(arg0) {
|
|
488
|
+
let result;
|
|
489
|
+
try {
|
|
490
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
491
|
+
} catch {
|
|
492
|
+
result = false;
|
|
493
|
+
}
|
|
494
|
+
const ret = result;
|
|
495
|
+
return ret;
|
|
496
|
+
};
|
|
497
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
498
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
499
|
+
return addHeapObject(ret);
|
|
500
|
+
};
|
|
323
501
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
324
502
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
325
503
|
return addHeapObject(ret);
|
|
326
504
|
};
|
|
327
|
-
imports.wbg.
|
|
505
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
506
|
+
const ret = getObject(arg0);
|
|
507
|
+
return addHeapObject(ret);
|
|
508
|
+
};
|
|
509
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
510
|
+
const ret = debugString(getObject(arg1));
|
|
511
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
512
|
+
const len0 = WASM_VECTOR_LEN;
|
|
513
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
514
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
515
|
+
};
|
|
516
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
517
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
518
|
+
return ret;
|
|
519
|
+
};
|
|
520
|
+
imports.wbg.__wbg_length_6e3bbe7c8bd4dbd8 = function(arg0) {
|
|
521
|
+
const ret = getObject(arg0).length;
|
|
522
|
+
return ret;
|
|
523
|
+
};
|
|
524
|
+
imports.wbg.__wbg_get_57245cc7d7c7619d = function(arg0, arg1) {
|
|
525
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
526
|
+
return addHeapObject(ret);
|
|
527
|
+
};
|
|
528
|
+
imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
529
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
530
|
+
return addHeapObject(ret);
|
|
531
|
+
};
|
|
532
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
533
|
+
const ret = getObject(arg0) === undefined;
|
|
534
|
+
return ret;
|
|
535
|
+
};
|
|
536
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
537
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
538
|
+
return ret;
|
|
539
|
+
};
|
|
540
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
541
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
542
|
+
return ret;
|
|
543
|
+
};
|
|
544
|
+
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
545
|
+
const v = getObject(arg1);
|
|
546
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
547
|
+
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0n : ret;
|
|
548
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
549
|
+
};
|
|
550
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
551
|
+
const ret = arg0;
|
|
552
|
+
return addHeapObject(ret);
|
|
553
|
+
};
|
|
554
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
555
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
556
|
+
return ret;
|
|
557
|
+
};
|
|
558
|
+
imports.wbg.__wbg_isSafeInteger_dfa0593e8d7ac35a = function(arg0) {
|
|
559
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
560
|
+
return ret;
|
|
561
|
+
};
|
|
562
|
+
imports.wbg.__wbg_isArray_27c46c67f498e15d = function(arg0) {
|
|
563
|
+
const ret = Array.isArray(getObject(arg0));
|
|
564
|
+
return ret;
|
|
565
|
+
};
|
|
566
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
567
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
568
|
+
return addHeapObject(ret);
|
|
569
|
+
};
|
|
570
|
+
imports.wbg.__wbg_next_aaef7c8aa5e212ac = function() { return handleError(function (arg0) {
|
|
571
|
+
const ret = getObject(arg0).next();
|
|
572
|
+
return addHeapObject(ret);
|
|
573
|
+
}, arguments) };
|
|
574
|
+
imports.wbg.__wbg_done_1b73b0672e15f234 = function(arg0) {
|
|
575
|
+
const ret = getObject(arg0).done;
|
|
576
|
+
return ret;
|
|
577
|
+
};
|
|
578
|
+
imports.wbg.__wbg_value_1ccc36bc03462d71 = function(arg0) {
|
|
579
|
+
const ret = getObject(arg0).value;
|
|
580
|
+
return addHeapObject(ret);
|
|
581
|
+
};
|
|
582
|
+
imports.wbg.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
|
|
328
583
|
try {
|
|
329
584
|
var state0 = {a: arg0, b: arg1};
|
|
330
585
|
var cb0 = (arg0, arg1) => {
|
|
331
586
|
const a = state0.a;
|
|
332
587
|
state0.a = 0;
|
|
333
588
|
try {
|
|
334
|
-
return
|
|
589
|
+
return __wbg_adapter_87(a, state0.b, arg0, arg1);
|
|
335
590
|
} finally {
|
|
336
591
|
state0.a = a;
|
|
337
592
|
}
|
|
@@ -342,38 +597,21 @@ imports.wbg.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
|
|
342
597
|
state0.a = state0.b = 0;
|
|
343
598
|
}
|
|
344
599
|
};
|
|
345
|
-
imports.wbg.
|
|
346
|
-
const ret =
|
|
347
|
-
return addHeapObject(ret);
|
|
348
|
-
}, arguments) };
|
|
349
|
-
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
|
|
350
|
-
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
600
|
+
imports.wbg.__wbg_new_0b9bfdd97583284e = function() {
|
|
601
|
+
const ret = new Object();
|
|
351
602
|
return addHeapObject(ret);
|
|
352
603
|
};
|
|
353
|
-
imports.wbg.
|
|
354
|
-
|
|
355
|
-
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
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;
|
|
360
|
-
};
|
|
361
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
362
|
-
const obj = getObject(arg1);
|
|
363
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
364
|
-
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
365
|
-
var len0 = WASM_VECTOR_LEN;
|
|
366
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
367
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
368
|
-
};
|
|
369
|
-
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
370
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
371
|
-
return ret;
|
|
604
|
+
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
605
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
372
606
|
};
|
|
607
|
+
imports.wbg.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
608
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
609
|
+
return addHeapObject(ret);
|
|
610
|
+
}, arguments) };
|
|
373
611
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
374
612
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
375
613
|
};
|
|
376
|
-
imports.wbg.
|
|
614
|
+
imports.wbg.__wbg_resolve_99fe17964f31ffc0 = function(arg0) {
|
|
377
615
|
const ret = Promise.resolve(getObject(arg0));
|
|
378
616
|
return addHeapObject(ret);
|
|
379
617
|
};
|
|
@@ -386,12 +624,12 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
|
386
624
|
const ret = false;
|
|
387
625
|
return ret;
|
|
388
626
|
};
|
|
389
|
-
imports.wbg.
|
|
627
|
+
imports.wbg.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
|
|
390
628
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
391
629
|
return addHeapObject(ret);
|
|
392
630
|
};
|
|
393
|
-
imports.wbg.
|
|
394
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
631
|
+
imports.wbg.__wbindgen_closure_wrapper22024 = function(arg0, arg1, arg2) {
|
|
632
|
+
const ret = makeMutClosure(arg0, arg1, 263, __wbg_adapter_46);
|
|
395
633
|
return addHeapObject(ret);
|
|
396
634
|
};
|
|
397
635
|
|
|
@@ -405,6 +643,8 @@ function initMemory(imports, maybe_memory) {
|
|
|
405
643
|
function finalizeInit(instance, module) {
|
|
406
644
|
wasm = instance.exports;
|
|
407
645
|
init.__wbindgen_wasm_module = module;
|
|
646
|
+
cachedBigInt64Memory0 = new BigInt64Array();
|
|
647
|
+
cachedFloat64Memory0 = new Float64Array();
|
|
408
648
|
cachedInt32Memory0 = new Int32Array();
|
|
409
649
|
cachedUint8Memory0 = new Uint8Array();
|
|
410
650
|
|
|
@@ -412,12 +652,15 @@ function finalizeInit(instance, module) {
|
|
|
412
652
|
return wasm;
|
|
413
653
|
}
|
|
414
654
|
|
|
415
|
-
function initSync(
|
|
655
|
+
function initSync(module) {
|
|
416
656
|
const imports = getImports();
|
|
417
657
|
|
|
418
658
|
initMemory(imports);
|
|
419
659
|
|
|
420
|
-
|
|
660
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
661
|
+
module = new WebAssembly.Module(module);
|
|
662
|
+
}
|
|
663
|
+
|
|
421
664
|
const instance = new WebAssembly.Instance(module, imports);
|
|
422
665
|
|
|
423
666
|
return finalizeInit(instance, module);
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|