@next/swc-wasm-web 14.1.2-canary.6 → 14.1.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/swc-wasm-web",
3
- "version": "14.1.2-canary.6",
3
+ "version": "14.1.2",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -61,13 +61,13 @@ export interface InitOutput {
61
61
  readonly transform: (a: number, b: number) => number;
62
62
  readonly parseSync: (a: number, b: number, c: number) => void;
63
63
  readonly parse: (a: number, b: number) => number;
64
- readonly __wbindgen_malloc: (a: number, b: number) => number;
65
- readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
64
+ readonly __wbindgen_malloc: (a: number) => number;
65
+ readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
66
66
  readonly __wbindgen_export_2: WebAssembly.Table;
67
- readonly wasm_bindgen_db1a10163f1cae81___convert__closures__invoke1_mut___wasm_bindgen_db1a10163f1cae81___JsValue_____: (a: number, b: number, c: number) => void;
68
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
67
+ readonly wasm_bindgen_48203e07820231a3___convert__closures__invoke1_mut___wasm_bindgen_48203e07820231a3___JsValue_____: (a: number, b: number, c: number) => void;
68
+ readonly __wbindgen_free: (a: number, b: number) => void;
69
69
  readonly __wbindgen_exn_store: (a: number) => void;
70
- readonly wasm_bindgen_db1a10163f1cae81___convert__closures__invoke2_mut___wasm_bindgen_db1a10163f1cae81___JsValue__wasm_bindgen_db1a10163f1cae81___JsValue_____: (a: number, b: number, c: number, d: number) => void;
70
+ readonly wasm_bindgen_48203e07820231a3___convert__closures__invoke2_mut___wasm_bindgen_48203e07820231a3___JsValue__wasm_bindgen_48203e07820231a3___JsValue_____: (a: number, b: number, c: number, d: number) => void;
71
71
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
72
72
  }
73
73
 
@@ -90,4 +90,4 @@ export function initSync(module: SyncInitInput): InitOutput;
90
90
  *
91
91
  * @returns {Promise<InitOutput>}
92
92
  */
93
- export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
93
+ export default function init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
package/wasm.js CHANGED
@@ -29,9 +29,9 @@ function addHeapObject(obj) {
29
29
  return idx;
30
30
  }
31
31
 
32
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
32
+ const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
33
33
 
34
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
34
+ cachedTextDecoder.decode();
35
35
 
36
36
  let cachedUint8Memory0 = null;
37
37
 
@@ -43,7 +43,6 @@ function getUint8Memory0() {
43
43
  }
44
44
 
45
45
  function getStringFromWasm0(ptr, len) {
46
- ptr = ptr >>> 0;
47
46
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
48
47
  }
49
48
 
@@ -71,7 +70,7 @@ function getInt32Memory0() {
71
70
 
72
71
  let WASM_VECTOR_LEN = 0;
73
72
 
74
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
73
+ const cachedTextEncoder = new TextEncoder('utf-8');
75
74
 
76
75
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
77
76
  ? function (arg, view) {
@@ -90,14 +89,14 @@ function passStringToWasm0(arg, malloc, realloc) {
90
89
 
91
90
  if (realloc === undefined) {
92
91
  const buf = cachedTextEncoder.encode(arg);
93
- const ptr = malloc(buf.length, 1) >>> 0;
92
+ const ptr = malloc(buf.length);
94
93
  getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
95
94
  WASM_VECTOR_LEN = buf.length;
96
95
  return ptr;
97
96
  }
98
97
 
99
98
  let len = arg.length;
100
- let ptr = malloc(len, 1) >>> 0;
99
+ let ptr = malloc(len);
101
100
 
102
101
  const mem = getUint8Memory0();
103
102
 
@@ -113,12 +112,11 @@ function passStringToWasm0(arg, malloc, realloc) {
113
112
  if (offset !== 0) {
114
113
  arg = arg.slice(offset);
115
114
  }
116
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
115
+ ptr = realloc(ptr, len, len = offset + arg.length * 3);
117
116
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
118
117
  const ret = encodeString(arg, view);
119
118
 
120
119
  offset += ret.written;
121
- ptr = realloc(ptr, len, offset, 1) >>> 0;
122
120
  }
123
121
 
124
122
  WASM_VECTOR_LEN = offset;
@@ -199,12 +197,6 @@ function debugString(val) {
199
197
  return className;
200
198
  }
201
199
 
202
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
203
- ? { register: () => {}, unregister: () => {} }
204
- : new FinalizationRegistry(state => {
205
- wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
206
- });
207
-
208
200
  function makeMutClosure(arg0, arg1, dtor, f) {
209
201
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
210
202
  const real = (...args) => {
@@ -219,18 +211,18 @@ function makeMutClosure(arg0, arg1, dtor, f) {
219
211
  } finally {
220
212
  if (--state.cnt === 0) {
221
213
  wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
222
- CLOSURE_DTORS.unregister(state);
214
+
223
215
  } else {
224
216
  state.a = a;
225
217
  }
226
218
  }
227
219
  };
228
220
  real.original = state;
229
- CLOSURE_DTORS.register(real, state, state);
221
+
230
222
  return real;
231
223
  }
232
224
  function __wbg_adapter_48(arg0, arg1, arg2) {
233
- wasm.wasm_bindgen_db1a10163f1cae81___convert__closures__invoke1_mut___wasm_bindgen_db1a10163f1cae81___JsValue_____(arg0, arg1, addHeapObject(arg2));
225
+ wasm.wasm_bindgen_48203e07820231a3___convert__closures__invoke1_mut___wasm_bindgen_48203e07820231a3___JsValue_____(arg0, arg1, addHeapObject(arg2));
234
226
  }
235
227
 
236
228
  function getCachedStringFromWasm0(ptr, len) {
@@ -249,7 +241,7 @@ function handleError(f, args) {
249
241
  }
250
242
  }
251
243
  function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
252
- wasm.wasm_bindgen_db1a10163f1cae81___convert__closures__invoke2_mut___wasm_bindgen_db1a10163f1cae81___JsValue__wasm_bindgen_db1a10163f1cae81___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
244
+ wasm.wasm_bindgen_48203e07820231a3___convert__closures__invoke2_mut___wasm_bindgen_48203e07820231a3___JsValue__wasm_bindgen_48203e07820231a3___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
253
245
  }
254
246
 
255
247
  /**
@@ -376,7 +368,7 @@ export function parse(s, opts) {
376
368
  return takeObject(ret);
377
369
  }
378
370
 
379
- async function __wbg_load(module, imports) {
371
+ async function load(module, imports) {
380
372
  if (typeof Response === 'function' && module instanceof Response) {
381
373
  if (typeof WebAssembly.instantiateStreaming === 'function') {
382
374
  try {
@@ -407,13 +399,17 @@ async function __wbg_load(module, imports) {
407
399
  }
408
400
  }
409
401
 
410
- function __wbg_get_imports() {
402
+ function getImports() {
411
403
  const imports = {};
412
404
  imports.wbg = {};
413
- imports.wbg.__wbg_new0_7a6141101f2206da = function() {
405
+ imports.wbg.__wbg_new0_25059e40b1c02766 = function() {
414
406
  const ret = new Date();
415
407
  return addHeapObject(ret);
416
408
  };
409
+ imports.wbg.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
410
+ const ret = getObject(arg0).getTime();
411
+ return ret;
412
+ };
417
413
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
418
414
  takeObject(arg0);
419
415
  };
@@ -421,63 +417,92 @@ function __wbg_get_imports() {
421
417
  const ret = arg0;
422
418
  return addHeapObject(ret);
423
419
  };
424
- imports.wbg.__wbg_new_a9d80688888b4894 = function(arg0) {
420
+ imports.wbg.__wbg_new_f127e324c1313064 = function(arg0) {
425
421
  const ret = new Date(getObject(arg0));
426
422
  return addHeapObject(ret);
427
423
  };
428
- imports.wbg.__wbg_getTimezoneOffset_840b552f34917133 = function(arg0) {
424
+ imports.wbg.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
429
425
  const ret = getObject(arg0).getTimezoneOffset();
430
426
  return ret;
431
427
  };
432
- imports.wbg.__wbg_getTime_0e03c3f524be31ef = function(arg0) {
433
- const ret = getObject(arg0).getTime();
434
- return ret;
435
- };
436
428
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
437
429
  const ret = new Error();
438
430
  return addHeapObject(ret);
439
431
  };
440
432
  imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
441
433
  const ret = getObject(arg1).stack;
442
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
443
- const len1 = WASM_VECTOR_LEN;
444
- getInt32Memory0()[arg0 / 4 + 1] = len1;
445
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
434
+ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
435
+ const len0 = WASM_VECTOR_LEN;
436
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
437
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
446
438
  };
447
439
  imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
448
440
  var v0 = getCachedStringFromWasm0(arg0, arg1);
449
- if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
441
+ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1); }
450
442
  console.error(v0);
451
443
  };
452
444
  imports.wbg.__wbindgen_memory = function() {
453
445
  const ret = wasm.memory;
454
446
  return addHeapObject(ret);
455
447
  };
456
- imports.wbg.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
448
+ imports.wbg.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
457
449
  const ret = getObject(arg0).buffer;
458
450
  return addHeapObject(ret);
459
451
  };
460
- imports.wbg.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
452
+ imports.wbg.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) {
461
453
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
462
454
  return addHeapObject(ret);
463
455
  };
464
456
  imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
465
457
  getObject(arg0).randomFillSync(takeObject(arg1));
466
458
  }, arguments) };
467
- imports.wbg.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
459
+ imports.wbg.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
468
460
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
469
461
  return addHeapObject(ret);
470
462
  };
471
463
  imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
472
464
  getObject(arg0).getRandomValues(getObject(arg1));
473
465
  }, arguments) };
474
- imports.wbg.__wbg_new_b1f2d6842d615181 = function(arg0) {
466
+ imports.wbg.__wbg_new_537b7341ce90bb31 = function(arg0) {
475
467
  const ret = new Uint8Array(getObject(arg0));
476
468
  return addHeapObject(ret);
477
469
  };
478
- imports.wbg.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
470
+ imports.wbg.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
479
471
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
480
472
  };
473
+ imports.wbg.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
474
+ const ret = self.self;
475
+ return addHeapObject(ret);
476
+ }, arguments) };
477
+ imports.wbg.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
478
+ const ret = window.window;
479
+ return addHeapObject(ret);
480
+ }, arguments) };
481
+ imports.wbg.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
482
+ const ret = globalThis.globalThis;
483
+ return addHeapObject(ret);
484
+ }, arguments) };
485
+ imports.wbg.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
486
+ const ret = global.global;
487
+ return addHeapObject(ret);
488
+ }, arguments) };
489
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
490
+ const ret = getObject(arg0) === undefined;
491
+ return ret;
492
+ };
493
+ imports.wbg.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
494
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
495
+ const ret = new Function(v0);
496
+ return addHeapObject(ret);
497
+ };
498
+ imports.wbg.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
499
+ const ret = getObject(arg0).call(getObject(arg1));
500
+ return addHeapObject(ret);
501
+ }, arguments) };
502
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
503
+ const ret = getObject(arg0);
504
+ return addHeapObject(ret);
505
+ };
481
506
  imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
482
507
  const ret = getObject(arg0).crypto;
483
508
  return addHeapObject(ret);
@@ -507,7 +532,7 @@ imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
507
532
  const ret = getObject(arg0).msCrypto;
508
533
  return addHeapObject(ret);
509
534
  };
510
- imports.wbg.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
535
+ imports.wbg.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
511
536
  const ret = new Uint8Array(arg0 >>> 0);
512
537
  return addHeapObject(ret);
513
538
  };
@@ -523,56 +548,23 @@ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
523
548
  const ret = getStringFromWasm0(arg0, arg1);
524
549
  return addHeapObject(ret);
525
550
  };
526
- imports.wbg.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(function (arg0, arg1, arg2) {
551
+ imports.wbg.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
527
552
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
528
553
  return addHeapObject(ret);
529
554
  }, arguments) };
530
- imports.wbg.__wbg_iterator_40027cdd598da26b = function() {
555
+ imports.wbg.__wbg_iterator_55f114446221aa5a = function() {
531
556
  const ret = Symbol.iterator;
532
557
  return addHeapObject(ret);
533
558
  };
534
- imports.wbg.__wbg_get_3fddfed2c83f434c = function() { return handleError(function (arg0, arg1) {
559
+ imports.wbg.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
535
560
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
536
561
  return addHeapObject(ret);
537
562
  }, arguments) };
538
- imports.wbg.__wbg_call_3f093dd26d5569f8 = function() { return handleError(function (arg0, arg1) {
539
- const ret = getObject(arg0).call(getObject(arg1));
540
- return addHeapObject(ret);
541
- }, arguments) };
542
- imports.wbg.__wbg_next_586204376d2ed373 = function(arg0) {
563
+ imports.wbg.__wbg_next_b7d530c04fd8b217 = function(arg0) {
543
564
  const ret = getObject(arg0).next;
544
565
  return addHeapObject(ret);
545
566
  };
546
- imports.wbg.__wbg_self_05040bd9523805b9 = function() { return handleError(function () {
547
- const ret = self.self;
548
- return addHeapObject(ret);
549
- }, arguments) };
550
- imports.wbg.__wbg_window_adc720039f2cb14f = function() { return handleError(function () {
551
- const ret = window.window;
552
- return addHeapObject(ret);
553
- }, arguments) };
554
- imports.wbg.__wbg_globalThis_622105db80c1457d = function() { return handleError(function () {
555
- const ret = globalThis.globalThis;
556
- return addHeapObject(ret);
557
- }, arguments) };
558
- imports.wbg.__wbg_global_f56b013ed9bcf359 = function() { return handleError(function () {
559
- const ret = global.global;
560
- return addHeapObject(ret);
561
- }, arguments) };
562
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
563
- const ret = getObject(arg0) === undefined;
564
- return ret;
565
- };
566
- imports.wbg.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
567
- var v0 = getCachedStringFromWasm0(arg0, arg1);
568
- const ret = new Function(v0);
569
- return addHeapObject(ret);
570
- };
571
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
572
- const ret = getObject(arg0);
573
- return addHeapObject(ret);
574
- };
575
- imports.wbg.__wbg_length_21c4b0ae73cba59d = function(arg0) {
567
+ imports.wbg.__wbg_length_27a2afe8ab42b09f = function(arg0) {
576
568
  const ret = getObject(arg0).length;
577
569
  return ret;
578
570
  };
@@ -580,7 +572,7 @@ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
580
572
  const ret = new Error(getStringFromWasm0(arg0, arg1));
581
573
  return addHeapObject(ret);
582
574
  };
583
- imports.wbg.__wbg_entries_488960b196cfb6a5 = function(arg0) {
575
+ imports.wbg.__wbg_entries_4e1315b774245952 = function(arg0) {
584
576
  const ret = Object.entries(getObject(arg0));
585
577
  return addHeapObject(ret);
586
578
  };
@@ -602,44 +594,44 @@ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
602
594
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
603
595
  const obj = getObject(arg1);
604
596
  const ret = typeof(obj) === 'string' ? obj : undefined;
605
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
606
- var len1 = WASM_VECTOR_LEN;
607
- getInt32Memory0()[arg0 / 4 + 1] = len1;
608
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
597
+ var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
598
+ var len0 = WASM_VECTOR_LEN;
599
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
600
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
609
601
  };
610
- imports.wbg.__wbg_instanceof_Uint8Array_c299a4ee232e76ba = function(arg0) {
602
+ imports.wbg.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
611
603
  let result;
612
604
  try {
613
605
  result = getObject(arg0) instanceof Uint8Array;
614
- } catch (_) {
606
+ } catch {
615
607
  result = false;
616
608
  }
617
609
  const ret = result;
618
610
  return ret;
619
611
  };
620
- imports.wbg.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
612
+ imports.wbg.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
621
613
  let result;
622
614
  try {
623
615
  result = getObject(arg0) instanceof ArrayBuffer;
624
- } catch (_) {
616
+ } catch {
625
617
  result = false;
626
618
  }
627
619
  const ret = result;
628
620
  return ret;
629
621
  };
630
- imports.wbg.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
622
+ imports.wbg.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
631
623
  const ret = getObject(arg0)[arg1 >>> 0];
632
624
  return addHeapObject(ret);
633
625
  };
634
- imports.wbg.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
626
+ imports.wbg.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
635
627
  const ret = getObject(arg0).next();
636
628
  return addHeapObject(ret);
637
629
  }, arguments) };
638
- imports.wbg.__wbg_done_90b14d6f6eacc42f = function(arg0) {
630
+ imports.wbg.__wbg_done_1ebec03bbd919843 = function(arg0) {
639
631
  const ret = getObject(arg0).done;
640
632
  return ret;
641
633
  };
642
- imports.wbg.__wbg_value_3158be908c80a75e = function(arg0) {
634
+ imports.wbg.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
643
635
  const ret = getObject(arg0).value;
644
636
  return addHeapObject(ret);
645
637
  };
@@ -665,11 +657,11 @@ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
665
657
  const ret = BigInt.asUintN(64, arg0);
666
658
  return addHeapObject(ret);
667
659
  };
668
- imports.wbg.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
660
+ imports.wbg.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
669
661
  const ret = Number.isSafeInteger(getObject(arg0));
670
662
  return ret;
671
663
  };
672
- imports.wbg.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
664
+ imports.wbg.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
673
665
  const ret = Array.isArray(getObject(arg0));
674
666
  return ret;
675
667
  };
@@ -677,7 +669,7 @@ imports.wbg.__wbindgen_in = function(arg0, arg1) {
677
669
  const ret = getObject(arg0) in getObject(arg1);
678
670
  return ret;
679
671
  };
680
- imports.wbg.__wbg_length_161c0d89c6535c1d = function(arg0) {
672
+ imports.wbg.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
681
673
  const ret = getObject(arg0).length;
682
674
  return ret;
683
675
  };
@@ -685,21 +677,14 @@ imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
685
677
  const ret = getObject(arg0)[getObject(arg1)];
686
678
  return addHeapObject(ret);
687
679
  };
688
- imports.wbg.__wbg_new_632630b5cec17f21 = function() {
689
- const ret = new Object();
690
- return addHeapObject(ret);
691
- };
692
- imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
693
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
694
- };
695
680
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
696
681
  const ret = debugString(getObject(arg1));
697
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
698
- const len1 = WASM_VECTOR_LEN;
699
- getInt32Memory0()[arg0 / 4 + 1] = len1;
700
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
682
+ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
683
+ const len0 = WASM_VECTOR_LEN;
684
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
685
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
701
686
  };
702
- imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
687
+ imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
703
688
  try {
704
689
  var state0 = {a: arg0, b: arg1};
705
690
  var cb0 = (arg0, arg1) => {
@@ -717,21 +702,21 @@ imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
717
702
  state0.a = state0.b = 0;
718
703
  }
719
704
  };
705
+ imports.wbg.__wbg_new_f9876326328f45ed = function() {
706
+ const ret = new Object();
707
+ return addHeapObject(ret);
708
+ };
709
+ imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
710
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
711
+ };
720
712
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
721
713
  throw new Error(getStringFromWasm0(arg0, arg1));
722
714
  };
723
- imports.wbg.__wbg_then_f9e58f5a50f43eae = function(arg0, arg1) {
715
+ imports.wbg.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
724
716
  const ret = getObject(arg0).then(getObject(arg1));
725
717
  return addHeapObject(ret);
726
718
  };
727
- imports.wbg.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) {
728
- queueMicrotask(getObject(arg0));
729
- };
730
- imports.wbg.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) {
731
- const ret = getObject(arg0).queueMicrotask;
732
- return addHeapObject(ret);
733
- };
734
- imports.wbg.__wbg_resolve_5da6faf2c96fd1d5 = function(arg0) {
719
+ imports.wbg.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
735
720
  const ret = Promise.resolve(getObject(arg0));
736
721
  return addHeapObject(ret);
737
722
  };
@@ -744,21 +729,21 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
744
729
  const ret = false;
745
730
  return ret;
746
731
  };
747
- imports.wbg.__wbindgen_closure_wrapper26372 = function(arg0, arg1, arg2) {
748
- const ret = makeMutClosure(arg0, arg1, 431, __wbg_adapter_48);
732
+ imports.wbg.__wbindgen_closure_wrapper23829 = function(arg0, arg1, arg2) {
733
+ const ret = makeMutClosure(arg0, arg1, 361, __wbg_adapter_48);
749
734
  return addHeapObject(ret);
750
735
  };
751
736
 
752
737
  return imports;
753
738
  }
754
739
 
755
- function __wbg_init_memory(imports, maybe_memory) {
740
+ function initMemory(imports, maybe_memory) {
756
741
 
757
742
  }
758
743
 
759
- function __wbg_finalize_init(instance, module) {
744
+ function finalizeInit(instance, module) {
760
745
  wasm = instance.exports;
761
- __wbg_init.__wbindgen_wasm_module = module;
746
+ init.__wbindgen_wasm_module = module;
762
747
  cachedBigInt64Memory0 = null;
763
748
  cachedFloat64Memory0 = null;
764
749
  cachedInt32Memory0 = null;
@@ -769,11 +754,9 @@ function __wbg_finalize_init(instance, module) {
769
754
  }
770
755
 
771
756
  function initSync(module) {
772
- if (wasm !== undefined) return wasm;
757
+ const imports = getImports();
773
758
 
774
- const imports = __wbg_get_imports();
775
-
776
- __wbg_init_memory(imports);
759
+ initMemory(imports);
777
760
 
778
761
  if (!(module instanceof WebAssembly.Module)) {
779
762
  module = new WebAssembly.Module(module);
@@ -781,27 +764,25 @@ function initSync(module) {
781
764
 
782
765
  const instance = new WebAssembly.Instance(module, imports);
783
766
 
784
- return __wbg_finalize_init(instance, module);
767
+ return finalizeInit(instance, module);
785
768
  }
786
769
 
787
- async function __wbg_init(input) {
788
- if (wasm !== undefined) return wasm;
789
-
770
+ async function init(input) {
790
771
  if (typeof input === 'undefined') {
791
772
  input = new URL('wasm_bg.wasm', import.meta.url);
792
773
  }
793
- const imports = __wbg_get_imports();
774
+ const imports = getImports();
794
775
 
795
776
  if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
796
777
  input = fetch(input);
797
778
  }
798
779
 
799
- __wbg_init_memory(imports);
780
+ initMemory(imports);
800
781
 
801
- const { instance, module } = await __wbg_load(await input, imports);
782
+ const { instance, module } = await load(await input, imports);
802
783
 
803
- return __wbg_finalize_init(instance, module);
784
+ return finalizeInit(instance, module);
804
785
  }
805
786
 
806
787
  export { initSync }
807
- export default __wbg_init;
788
+ export default init;
package/wasm_bg.wasm CHANGED
Binary file