@noir-lang/acvm_js 0.27.0 → 0.28.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/nodejs/acvm_js.js CHANGED
@@ -3,26 +3,6 @@ imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
4
  const { TextDecoder, TextEncoder } = require(`util`);
5
5
 
6
- const heap = new Array(128).fill(undefined);
7
-
8
- heap.push(undefined, null, true, false);
9
-
10
- function getObject(idx) { return heap[idx]; }
11
-
12
- let heap_next = heap.length;
13
-
14
- function dropObject(idx) {
15
- if (idx < 132) return;
16
- heap[idx] = heap_next;
17
- heap_next = idx;
18
- }
19
-
20
- function takeObject(idx) {
21
- const ret = getObject(idx);
22
- dropObject(idx);
23
- return ret;
24
- }
25
-
26
6
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
27
7
 
28
8
  cachedTextDecoder.decode();
@@ -41,6 +21,12 @@ function getStringFromWasm0(ptr, len) {
41
21
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
42
22
  }
43
23
 
24
+ const heap = new Array(128).fill(undefined);
25
+
26
+ heap.push(undefined, null, true, false);
27
+
28
+ let heap_next = heap.length;
29
+
44
30
  function addHeapObject(obj) {
45
31
  if (heap_next === heap.length) heap.push(heap.length + 1);
46
32
  const idx = heap_next;
@@ -50,6 +36,20 @@ function addHeapObject(obj) {
50
36
  return idx;
51
37
  }
52
38
 
39
+ function getObject(idx) { return heap[idx]; }
40
+
41
+ function dropObject(idx) {
42
+ if (idx < 132) return;
43
+ heap[idx] = heap_next;
44
+ heap_next = idx;
45
+ }
46
+
47
+ function takeObject(idx) {
48
+ const ret = getObject(idx);
49
+ dropObject(idx);
50
+ return ret;
51
+ }
52
+
53
53
  function isLikeNone(x) {
54
54
  return x === undefined || x === null;
55
55
  }
@@ -93,14 +93,14 @@ function passStringToWasm0(arg, malloc, realloc) {
93
93
 
94
94
  if (realloc === undefined) {
95
95
  const buf = cachedTextEncoder.encode(arg);
96
- const ptr = malloc(buf.length, 1) >>> 0;
96
+ const ptr = malloc(buf.length) >>> 0;
97
97
  getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
98
98
  WASM_VECTOR_LEN = buf.length;
99
99
  return ptr;
100
100
  }
101
101
 
102
102
  let len = arg.length;
103
- let ptr = malloc(len, 1) >>> 0;
103
+ let ptr = malloc(len) >>> 0;
104
104
 
105
105
  const mem = getUint8Memory0();
106
106
 
@@ -116,7 +116,7 @@ function passStringToWasm0(arg, malloc, realloc) {
116
116
  if (offset !== 0) {
117
117
  arg = arg.slice(offset);
118
118
  }
119
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
119
+ ptr = realloc(ptr, len, len = offset + arg.length * 3) >>> 0;
120
120
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
121
121
  const ret = encodeString(arg, view);
122
122
 
@@ -226,18 +226,9 @@ function makeMutClosure(arg0, arg1, dtor, f) {
226
226
  return real;
227
227
  }
228
228
  function __wbg_adapter_54(arg0, arg1, arg2) {
229
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7be0e81f38bcb593(arg0, arg1, addHeapObject(arg2));
229
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1dfec0dba43a4c9e(arg0, arg1, addHeapObject(arg2));
230
230
  }
231
231
 
232
- /**
233
- * Returns the `BuildInfo` object containing information about how the installed package was built.
234
- * @returns {BuildInfo} - Information on how the installed package was built.
235
- */
236
- module.exports.buildInfo = function() {
237
- const ret = wasm.buildInfo();
238
- return takeObject(ret);
239
- };
240
-
241
232
  function _assertClass(instance, klass) {
242
233
  if (!(instance instanceof klass)) {
243
234
  throw new Error(`expected instance of ${klass.name}`);
@@ -246,7 +237,7 @@ function _assertClass(instance, klass) {
246
237
  }
247
238
 
248
239
  function passArray8ToWasm0(arg, malloc) {
249
- const ptr = malloc(arg.length * 1, 1) >>> 0;
240
+ const ptr = malloc(arg.length * 1) >>> 0;
250
241
  getUint8Memory0().set(arg, ptr / 1);
251
242
  WASM_VECTOR_LEN = arg.length;
252
243
  return ptr;
@@ -344,6 +335,143 @@ module.exports.compressWitness = function(witness_map) {
344
335
  }
345
336
  };
346
337
 
338
+ /**
339
+ * Verifies a ECDSA signature over the secp256r1 curve.
340
+ * @param {Uint8Array} hashed_msg
341
+ * @param {Uint8Array} public_key_x_bytes
342
+ * @param {Uint8Array} public_key_y_bytes
343
+ * @param {Uint8Array} signature
344
+ * @returns {boolean}
345
+ */
346
+ module.exports.ecdsa_secp256r1_verify = function(hashed_msg, public_key_x_bytes, public_key_y_bytes, signature) {
347
+ const ptr0 = passArray8ToWasm0(hashed_msg, wasm.__wbindgen_malloc);
348
+ const len0 = WASM_VECTOR_LEN;
349
+ const ptr1 = passArray8ToWasm0(public_key_x_bytes, wasm.__wbindgen_malloc);
350
+ const len1 = WASM_VECTOR_LEN;
351
+ const ptr2 = passArray8ToWasm0(public_key_y_bytes, wasm.__wbindgen_malloc);
352
+ const len2 = WASM_VECTOR_LEN;
353
+ const ptr3 = passArray8ToWasm0(signature, wasm.__wbindgen_malloc);
354
+ const len3 = WASM_VECTOR_LEN;
355
+ const ret = wasm.ecdsa_secp256r1_verify(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
356
+ return ret !== 0;
357
+ };
358
+
359
+ /**
360
+ * Calculates the Blake2s256 hash of the input bytes and represents these as a single field element.
361
+ * Verifies a ECDSA signature over the secp256k1 curve.
362
+ * @param {Uint8Array} hashed_msg
363
+ * @param {Uint8Array} public_key_x_bytes
364
+ * @param {Uint8Array} public_key_y_bytes
365
+ * @param {Uint8Array} signature
366
+ * @returns {boolean}
367
+ */
368
+ module.exports.ecdsa_secp256k1_verify = function(hashed_msg, public_key_x_bytes, public_key_y_bytes, signature) {
369
+ const ptr0 = passArray8ToWasm0(hashed_msg, wasm.__wbindgen_malloc);
370
+ const len0 = WASM_VECTOR_LEN;
371
+ const ptr1 = passArray8ToWasm0(public_key_x_bytes, wasm.__wbindgen_malloc);
372
+ const len1 = WASM_VECTOR_LEN;
373
+ const ptr2 = passArray8ToWasm0(public_key_y_bytes, wasm.__wbindgen_malloc);
374
+ const len2 = WASM_VECTOR_LEN;
375
+ const ptr3 = passArray8ToWasm0(signature, wasm.__wbindgen_malloc);
376
+ const len3 = WASM_VECTOR_LEN;
377
+ const ret = wasm.ecdsa_secp256k1_verify(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
378
+ return ret !== 0;
379
+ };
380
+
381
+ /**
382
+ * Calculates the Keccak256 hash of the input bytes
383
+ * @param {Uint8Array} inputs
384
+ * @returns {Uint8Array}
385
+ */
386
+ module.exports.keccak256 = function(inputs) {
387
+ try {
388
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
389
+ const ptr0 = passArray8ToWasm0(inputs, wasm.__wbindgen_malloc);
390
+ const len0 = WASM_VECTOR_LEN;
391
+ wasm.keccak256(retptr, ptr0, len0);
392
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
393
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
394
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
395
+ wasm.__wbindgen_free(r0, r1 * 1);
396
+ return v2;
397
+ } finally {
398
+ wasm.__wbindgen_add_to_stack_pointer(16);
399
+ }
400
+ };
401
+
402
+ /**
403
+ * Calculates the Blake2s256 hash of the input bytes
404
+ * @param {Uint8Array} inputs
405
+ * @returns {Uint8Array}
406
+ */
407
+ module.exports.blake2s256 = function(inputs) {
408
+ try {
409
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
410
+ const ptr0 = passArray8ToWasm0(inputs, wasm.__wbindgen_malloc);
411
+ const len0 = WASM_VECTOR_LEN;
412
+ wasm.blake2s256(retptr, ptr0, len0);
413
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
414
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
415
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
416
+ wasm.__wbindgen_free(r0, r1 * 1);
417
+ return v2;
418
+ } finally {
419
+ wasm.__wbindgen_add_to_stack_pointer(16);
420
+ }
421
+ };
422
+
423
+ /**
424
+ * Calculates the SHA256 hash of the input bytes
425
+ * @param {Uint8Array} inputs
426
+ * @returns {Uint8Array}
427
+ */
428
+ module.exports.sha256 = function(inputs) {
429
+ try {
430
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
431
+ const ptr0 = passArray8ToWasm0(inputs, wasm.__wbindgen_malloc);
432
+ const len0 = WASM_VECTOR_LEN;
433
+ wasm.sha256(retptr, ptr0, len0);
434
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
435
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
436
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
437
+ wasm.__wbindgen_free(r0, r1 * 1);
438
+ return v2;
439
+ } finally {
440
+ wasm.__wbindgen_add_to_stack_pointer(16);
441
+ }
442
+ };
443
+
444
+ /**
445
+ * Performs a bitwise XOR operation between `lhs` and `rhs`
446
+ * @param {string} lhs
447
+ * @param {string} rhs
448
+ * @returns {string}
449
+ */
450
+ module.exports.xor = function(lhs, rhs) {
451
+ const ret = wasm.xor(addHeapObject(lhs), addHeapObject(rhs));
452
+ return takeObject(ret);
453
+ };
454
+
455
+ /**
456
+ * Performs a bitwise AND operation between `lhs` and `rhs`
457
+ * @param {string} lhs
458
+ * @param {string} rhs
459
+ * @returns {string}
460
+ */
461
+ module.exports.and = function(lhs, rhs) {
462
+ const ret = wasm.and(addHeapObject(lhs), addHeapObject(rhs));
463
+ return takeObject(ret);
464
+ };
465
+
466
+ /**
467
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
468
+ * @returns {BuildInfo} - Information on how the installed package was built.
469
+ */
470
+ module.exports.buildInfo = function() {
471
+ const ret = wasm.buildInfo();
472
+ return takeObject(ret);
473
+ };
474
+
347
475
  /**
348
476
  * Sets the package's logging level.
349
477
  *
@@ -444,8 +572,8 @@ function handleError(f, args) {
444
572
  wasm.__wbindgen_exn_store(addHeapObject(e));
445
573
  }
446
574
  }
447
- function __wbg_adapter_148(arg0, arg1, arg2, arg3) {
448
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h2cc2a3675130eda0(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
575
+ function __wbg_adapter_155(arg0, arg1, arg2, arg3) {
576
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h43234701b229d587(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
449
577
  }
450
578
 
451
579
  /**
@@ -499,10 +627,6 @@ class WasmBlackBoxFunctionSolver {
499
627
  }
500
628
  module.exports.WasmBlackBoxFunctionSolver = WasmBlackBoxFunctionSolver;
501
629
 
502
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
503
- takeObject(arg0);
504
- };
505
-
506
630
  module.exports.__wbindgen_error_new = function(arg0, arg1) {
507
631
  const ret = new Error(getStringFromWasm0(arg0, arg1));
508
632
  return addHeapObject(ret);
@@ -513,9 +637,8 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
513
637
  return addHeapObject(ret);
514
638
  };
515
639
 
516
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
517
- const ret = getStringFromWasm0(arg0, arg1);
518
- return addHeapObject(ret);
640
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
641
+ takeObject(arg0);
519
642
  };
520
643
 
521
644
  module.exports.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
@@ -523,13 +646,13 @@ module.exports.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
523
646
  return addHeapObject(ret);
524
647
  };
525
648
 
526
- module.exports.__wbindgen_is_undefined = function(arg0) {
527
- const ret = getObject(arg0) === undefined;
528
- return ret;
649
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
650
+ const ret = getStringFromWasm0(arg0, arg1);
651
+ return addHeapObject(ret);
529
652
  };
530
653
 
531
- module.exports.__wbindgen_is_array = function(arg0) {
532
- const ret = Array.isArray(getObject(arg0));
654
+ module.exports.__wbindgen_is_undefined = function(arg0) {
655
+ const ret = getObject(arg0) === undefined;
533
656
  return ret;
534
657
  };
535
658
 
@@ -540,21 +663,11 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
540
663
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
541
664
  };
542
665
 
543
- module.exports.__wbindgen_cb_drop = function(arg0) {
544
- const obj = takeObject(arg0).original;
545
- if (obj.cnt-- == 1) {
546
- obj.a = 0;
547
- return true;
548
- }
549
- const ret = false;
666
+ module.exports.__wbindgen_is_array = function(arg0) {
667
+ const ret = Array.isArray(getObject(arg0));
550
668
  return ret;
551
669
  };
552
670
 
553
- module.exports.__wbg_constructor_6b4742a211e48095 = function(arg0) {
554
- const ret = new Error(takeObject(arg0));
555
- return addHeapObject(ret);
556
- };
557
-
558
671
  module.exports.__wbindgen_string_get = function(arg0, arg1) {
559
672
  const obj = getObject(arg1);
560
673
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -564,7 +677,22 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
564
677
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
565
678
  };
566
679
 
567
- module.exports.__wbg_new_212eeacc588e41ad = function() {
680
+ module.exports.__wbg_constructor_bd5b3ba6619fce81 = function(arg0) {
681
+ const ret = new Error(takeObject(arg0));
682
+ return addHeapObject(ret);
683
+ };
684
+
685
+ module.exports.__wbindgen_cb_drop = function(arg0) {
686
+ const obj = takeObject(arg0).original;
687
+ if (obj.cnt-- == 1) {
688
+ obj.a = 0;
689
+ return true;
690
+ }
691
+ const ret = false;
692
+ return ret;
693
+ };
694
+
695
+ module.exports.__wbg_new_d6cb182577c81490 = function() {
568
696
  const ret = new Map();
569
697
  return addHeapObject(ret);
570
698
  };
@@ -600,7 +728,7 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
600
728
  deferred0_1 = arg1;
601
729
  console.error(getStringFromWasm0(arg0, arg1));
602
730
  } finally {
603
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
731
+ wasm.__wbindgen_free(deferred0_0, deferred0_1);
604
732
  }
605
733
  };
606
734
 
@@ -671,14 +799,6 @@ module.exports.__wbindgen_is_symbol = function(arg0) {
671
799
  return ret;
672
800
  };
673
801
 
674
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
675
- getObject(arg0).getRandomValues(getObject(arg1));
676
- }, arguments) };
677
-
678
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
679
- getObject(arg0).randomFillSync(takeObject(arg1));
680
- }, arguments) };
681
-
682
802
  module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
683
803
  const ret = getObject(arg0).crypto;
684
804
  return addHeapObject(ret);
@@ -709,115 +829,123 @@ module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(
709
829
  return addHeapObject(ret);
710
830
  }, arguments) };
711
831
 
712
- module.exports.__wbg_debug_9b8701f894da9929 = function(arg0, arg1, arg2, arg3) {
832
+ module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
833
+ getObject(arg0).getRandomValues(getObject(arg1));
834
+ }, arguments) };
835
+
836
+ module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
837
+ getObject(arg0).randomFillSync(takeObject(arg1));
838
+ }, arguments) };
839
+
840
+ module.exports.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {
713
841
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
714
842
  };
715
843
 
716
- module.exports.__wbg_error_788ae33f81d3b84b = function(arg0) {
844
+ module.exports.__wbg_error_a7e23606158b68b9 = function(arg0) {
717
845
  console.error(getObject(arg0));
718
846
  };
719
847
 
720
- module.exports.__wbg_error_d9bce418caafb712 = function(arg0, arg1, arg2, arg3) {
848
+ module.exports.__wbg_error_50f42b952a595a23 = function(arg0, arg1, arg2, arg3) {
721
849
  console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
722
850
  };
723
851
 
724
- module.exports.__wbg_info_bb52f40b06f679de = function(arg0, arg1, arg2, arg3) {
852
+ module.exports.__wbg_info_24d8f53d98f12b95 = function(arg0, arg1, arg2, arg3) {
725
853
  console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
726
854
  };
727
855
 
728
- module.exports.__wbg_log_ea7093e35e3efd07 = function(arg0, arg1, arg2, arg3) {
856
+ module.exports.__wbg_log_9b164efbe6db702f = function(arg0, arg1, arg2, arg3) {
729
857
  console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
730
858
  };
731
859
 
732
- module.exports.__wbg_warn_dfc0e0cf544a13bd = function(arg0, arg1, arg2, arg3) {
860
+ module.exports.__wbg_warn_8342bfbc6028193a = function(arg0, arg1, arg2, arg3) {
733
861
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
734
862
  };
735
863
 
736
- module.exports.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
864
+ module.exports.__wbg_get_7303ed2ef026b2f5 = function(arg0, arg1) {
737
865
  const ret = getObject(arg0)[arg1 >>> 0];
738
866
  return addHeapObject(ret);
739
867
  };
740
868
 
741
- module.exports.__wbg_length_fff51ee6522a1a18 = function(arg0) {
869
+ module.exports.__wbg_length_820c786973abdd8a = function(arg0) {
742
870
  const ret = getObject(arg0).length;
743
871
  return ret;
744
872
  };
745
873
 
746
- module.exports.__wbg_new_898a68150f225f2e = function() {
874
+ module.exports.__wbg_new_0394642eae39db16 = function() {
747
875
  const ret = new Array();
748
876
  return addHeapObject(ret);
749
877
  };
750
878
 
751
- module.exports.__wbg_BigInt_025925c4804d8575 = function(arg0) {
879
+ module.exports.__wbg_BigInt_9523742cb675bb6f = function(arg0) {
752
880
  const ret = BigInt(getObject(arg0));
753
881
  return addHeapObject(ret);
754
882
  };
755
883
 
756
- module.exports.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
884
+ module.exports.__wbg_newnoargs_c9e6043b8ad84109 = function(arg0, arg1) {
757
885
  const ret = new Function(getStringFromWasm0(arg0, arg1));
758
886
  return addHeapObject(ret);
759
887
  };
760
888
 
761
- module.exports.__wbg_get_97b561fb56f034b5 = function() { return handleError(function (arg0, arg1) {
889
+ module.exports.__wbg_get_f53c921291c381bd = function() { return handleError(function (arg0, arg1) {
762
890
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
763
891
  return addHeapObject(ret);
764
892
  }, arguments) };
765
893
 
766
- module.exports.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
894
+ module.exports.__wbg_call_557a2f2deacc4912 = function() { return handleError(function (arg0, arg1) {
767
895
  const ret = getObject(arg0).call(getObject(arg1));
768
896
  return addHeapObject(ret);
769
897
  }, arguments) };
770
898
 
771
- module.exports.__wbg_new_b51585de1b234aff = function() {
899
+ module.exports.__wbg_new_2b6fea4ea03b1b95 = function() {
772
900
  const ret = new Object();
773
901
  return addHeapObject(ret);
774
902
  };
775
903
 
776
- module.exports.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
904
+ module.exports.__wbg_self_742dd6eab3e9211e = function() { return handleError(function () {
777
905
  const ret = self.self;
778
906
  return addHeapObject(ret);
779
907
  }, arguments) };
780
908
 
781
- module.exports.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
909
+ module.exports.__wbg_window_c409e731db53a0e2 = function() { return handleError(function () {
782
910
  const ret = window.window;
783
911
  return addHeapObject(ret);
784
912
  }, arguments) };
785
913
 
786
- module.exports.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
914
+ module.exports.__wbg_globalThis_b70c095388441f2d = function() { return handleError(function () {
787
915
  const ret = globalThis.globalThis;
788
916
  return addHeapObject(ret);
789
917
  }, arguments) };
790
918
 
791
- module.exports.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
919
+ module.exports.__wbg_global_1c72617491ed7194 = function() { return handleError(function () {
792
920
  const ret = global.global;
793
921
  return addHeapObject(ret);
794
922
  }, arguments) };
795
923
 
796
- module.exports.__wbg_newwithlength_3ec098a360da1909 = function(arg0) {
924
+ module.exports.__wbg_newwithlength_cd1db47a173e3944 = function(arg0) {
797
925
  const ret = new Array(arg0 >>> 0);
798
926
  return addHeapObject(ret);
799
927
  };
800
928
 
801
- module.exports.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
929
+ module.exports.__wbg_set_b4da98d504ac6091 = function(arg0, arg1, arg2) {
802
930
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
803
931
  };
804
932
 
805
- module.exports.__wbg_from_d7c216d4616bb368 = function(arg0) {
933
+ module.exports.__wbg_from_6bc98a09a0b58bb1 = function(arg0) {
806
934
  const ret = Array.from(getObject(arg0));
807
935
  return addHeapObject(ret);
808
936
  };
809
937
 
810
- module.exports.__wbg_push_ca1c26067ef907ac = function(arg0, arg1) {
938
+ module.exports.__wbg_push_109cfc26d02582dd = function(arg0, arg1) {
811
939
  const ret = getObject(arg0).push(getObject(arg1));
812
940
  return ret;
813
941
  };
814
942
 
815
- module.exports.__wbg_byteLength_0488a7a303dccf40 = function(arg0) {
943
+ module.exports.__wbg_byteLength_1a59a59856fc656a = function(arg0) {
816
944
  const ret = getObject(arg0).byteLength;
817
945
  return ret;
818
946
  };
819
947
 
820
- module.exports.__wbg_toString_26c114c5f3052ff5 = function(arg0, arg1, arg2) {
948
+ module.exports.__wbg_toString_68dcf9fa017bbb08 = function(arg0, arg1, arg2) {
821
949
  const ret = getObject(arg1).toString(arg2);
822
950
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
823
951
  const len1 = WASM_VECTOR_LEN;
@@ -825,16 +953,16 @@ module.exports.__wbg_toString_26c114c5f3052ff5 = function(arg0, arg1, arg2) {
825
953
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
826
954
  };
827
955
 
828
- module.exports.__wbg_new_d258248ed531ff54 = function(arg0, arg1) {
956
+ module.exports.__wbg_new_87297f22973157c8 = function(arg0, arg1) {
829
957
  const ret = new Error(getStringFromWasm0(arg0, arg1));
830
958
  return addHeapObject(ret);
831
959
  };
832
960
 
833
- module.exports.__wbg_setcause_a60925f08b71876d = function(arg0, arg1) {
961
+ module.exports.__wbg_setcause_394738aae0ce9341 = function(arg0, arg1) {
834
962
  getObject(arg0).cause = getObject(arg1);
835
963
  };
836
964
 
837
- module.exports.__wbg_instanceof_Function_3021b2be9300e7a7 = function(arg0) {
965
+ module.exports.__wbg_instanceof_Function_8e1bcaacb89c4438 = function(arg0) {
838
966
  let result;
839
967
  try {
840
968
  result = getObject(arg0) instanceof Function;
@@ -845,34 +973,34 @@ module.exports.__wbg_instanceof_Function_3021b2be9300e7a7 = function(arg0) {
845
973
  return ret;
846
974
  };
847
975
 
848
- module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
976
+ module.exports.__wbg_call_587b30eea3e09332 = function() { return handleError(function (arg0, arg1, arg2) {
849
977
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
850
978
  return addHeapObject(ret);
851
979
  }, arguments) };
852
980
 
853
- module.exports.__wbg_call_4c92f6aec1e1d6e6 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
981
+ module.exports.__wbg_call_4c73e4aecced6a7d = function() { return handleError(function (arg0, arg1, arg2, arg3) {
854
982
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
855
983
  return addHeapObject(ret);
856
984
  }, arguments) };
857
985
 
858
- module.exports.__wbg_bind_f9d2c8ec337bbbe7 = function(arg0, arg1, arg2) {
986
+ module.exports.__wbg_bind_7d5ce7224bedd5b8 = function(arg0, arg1, arg2) {
859
987
  const ret = getObject(arg0).bind(getObject(arg1), getObject(arg2));
860
988
  return addHeapObject(ret);
861
989
  };
862
990
 
863
- module.exports.__wbg_bind_60a9a80cada2f33c = function(arg0, arg1, arg2, arg3) {
991
+ module.exports.__wbg_bind_f5218b29220675c3 = function(arg0, arg1, arg2, arg3) {
864
992
  const ret = getObject(arg0).bind(getObject(arg1), getObject(arg2), getObject(arg3));
865
993
  return addHeapObject(ret);
866
994
  };
867
995
 
868
- module.exports.__wbg_forEach_d3ffcb118358250b = function(arg0, arg1, arg2) {
996
+ module.exports.__wbg_forEach_942772130a8d06a6 = function(arg0, arg1, arg2) {
869
997
  try {
870
998
  var state0 = {a: arg1, b: arg2};
871
999
  var cb0 = (arg0, arg1) => {
872
1000
  const a = state0.a;
873
1001
  state0.a = 0;
874
1002
  try {
875
- return __wbg_adapter_148(a, state0.b, arg0, arg1);
1003
+ return __wbg_adapter_155(a, state0.b, arg0, arg1);
876
1004
  } finally {
877
1005
  state0.a = a;
878
1006
  }
@@ -883,24 +1011,24 @@ module.exports.__wbg_forEach_d3ffcb118358250b = function(arg0, arg1, arg2) {
883
1011
  }
884
1012
  };
885
1013
 
886
- module.exports.__wbg_set_bedc3d02d0f05eb0 = function(arg0, arg1, arg2) {
1014
+ module.exports.__wbg_set_da7be7bf0e037b14 = function(arg0, arg1, arg2) {
887
1015
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
888
1016
  return addHeapObject(ret);
889
1017
  };
890
1018
 
891
- module.exports.__wbg_constructor_47e9bb352faf1649 = function(arg0) {
1019
+ module.exports.__wbg_constructor_f2623999a1f453eb = function(arg0) {
892
1020
  const ret = getObject(arg0).constructor;
893
1021
  return addHeapObject(ret);
894
1022
  };
895
1023
 
896
- module.exports.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
1024
+ module.exports.__wbg_new_2b55e405e4af4986 = function(arg0, arg1) {
897
1025
  try {
898
1026
  var state0 = {a: arg0, b: arg1};
899
1027
  var cb0 = (arg0, arg1) => {
900
1028
  const a = state0.a;
901
1029
  state0.a = 0;
902
1030
  try {
903
- return __wbg_adapter_148(a, state0.b, arg0, arg1);
1031
+ return __wbg_adapter_155(a, state0.b, arg0, arg1);
904
1032
  } finally {
905
1033
  state0.a = a;
906
1034
  }
@@ -912,76 +1040,76 @@ module.exports.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
912
1040
  }
913
1041
  };
914
1042
 
915
- module.exports.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) {
1043
+ module.exports.__wbg_resolve_ae38ad63c43ff98b = function(arg0) {
916
1044
  const ret = Promise.resolve(getObject(arg0));
917
1045
  return addHeapObject(ret);
918
1046
  };
919
1047
 
920
- module.exports.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
1048
+ module.exports.__wbg_then_8df675b8bb5d5e3c = function(arg0, arg1) {
921
1049
  const ret = getObject(arg0).then(getObject(arg1));
922
1050
  return addHeapObject(ret);
923
1051
  };
924
1052
 
925
- module.exports.__wbg_then_b2267541e2a73865 = function(arg0, arg1, arg2) {
1053
+ module.exports.__wbg_then_835b073a479138e5 = function(arg0, arg1, arg2) {
926
1054
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
927
1055
  return addHeapObject(ret);
928
1056
  };
929
1057
 
930
- module.exports.__wbg_buffer_085ec1f694018c4f = function(arg0) {
1058
+ module.exports.__wbg_buffer_55ba7a6b1b92e2ac = function(arg0) {
931
1059
  const ret = getObject(arg0).buffer;
932
1060
  return addHeapObject(ret);
933
1061
  };
934
1062
 
935
- module.exports.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
1063
+ module.exports.__wbg_newwithbyteoffsetandlength_88d1d8be5df94b9b = function(arg0, arg1, arg2) {
936
1064
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
937
1065
  return addHeapObject(ret);
938
1066
  };
939
1067
 
940
- module.exports.__wbg_new_8125e318e6245eed = function(arg0) {
1068
+ module.exports.__wbg_new_09938a7d020f049b = function(arg0) {
941
1069
  const ret = new Uint8Array(getObject(arg0));
942
1070
  return addHeapObject(ret);
943
1071
  };
944
1072
 
945
- module.exports.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
1073
+ module.exports.__wbg_set_3698e3ca519b3c3c = function(arg0, arg1, arg2) {
946
1074
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
947
1075
  };
948
1076
 
949
- module.exports.__wbg_length_72e2208bbc0efc61 = function(arg0) {
1077
+ module.exports.__wbg_length_0aab7ffd65ad19ed = function(arg0) {
950
1078
  const ret = getObject(arg0).length;
951
1079
  return ret;
952
1080
  };
953
1081
 
954
- module.exports.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
1082
+ module.exports.__wbg_newwithlength_89eeca401d8918c2 = function(arg0) {
955
1083
  const ret = new Uint8Array(arg0 >>> 0);
956
1084
  return addHeapObject(ret);
957
1085
  };
958
1086
 
959
- module.exports.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
1087
+ module.exports.__wbg_subarray_d82be056deb4ad27 = function(arg0, arg1, arg2) {
960
1088
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
961
1089
  return addHeapObject(ret);
962
1090
  };
963
1091
 
964
- module.exports.__wbg_compile_0ef211355a4ebea3 = function(arg0) {
1092
+ module.exports.__wbg_compile_eefe73dfb19bff3d = function(arg0) {
965
1093
  const ret = WebAssembly.compile(getObject(arg0));
966
1094
  return addHeapObject(ret);
967
1095
  };
968
1096
 
969
- module.exports.__wbg_instantiate_8900c71988551df8 = function(arg0, arg1) {
1097
+ module.exports.__wbg_instantiate_e61ee50cd947cd36 = function(arg0, arg1) {
970
1098
  const ret = WebAssembly.instantiate(getObject(arg0), getObject(arg1));
971
1099
  return addHeapObject(ret);
972
1100
  };
973
1101
 
974
- module.exports.__wbg_exports_9484b00cdfd311fc = function(arg0) {
1102
+ module.exports.__wbg_exports_311291a1333429a3 = function(arg0) {
975
1103
  const ret = getObject(arg0).exports;
976
1104
  return addHeapObject(ret);
977
1105
  };
978
1106
 
979
- module.exports.__wbg_exports_b7984a3120d6aba2 = function(arg0) {
1107
+ module.exports.__wbg_exports_12505982ae149cb0 = function(arg0) {
980
1108
  const ret = WebAssembly.Module.exports(getObject(arg0));
981
1109
  return addHeapObject(ret);
982
1110
  };
983
1111
 
984
- module.exports.__wbg_instanceof_Table_ba74319dfec929b1 = function(arg0) {
1112
+ module.exports.__wbg_instanceof_Table_b0af5234a12a19f9 = function(arg0) {
985
1113
  let result;
986
1114
  try {
987
1115
  result = getObject(arg0) instanceof WebAssembly.Table;
@@ -992,12 +1120,12 @@ module.exports.__wbg_instanceof_Table_ba74319dfec929b1 = function(arg0) {
992
1120
  return ret;
993
1121
  };
994
1122
 
995
- module.exports.__wbg_get_9bb402f6a9f0b436 = function() { return handleError(function (arg0, arg1) {
1123
+ module.exports.__wbg_get_b5def15f90c3e295 = function() { return handleError(function (arg0, arg1) {
996
1124
  const ret = getObject(arg0).get(arg1 >>> 0);
997
1125
  return addHeapObject(ret);
998
1126
  }, arguments) };
999
1127
 
1000
- module.exports.__wbg_instanceof_Memory_6b2a8e33c4176794 = function(arg0) {
1128
+ module.exports.__wbg_instanceof_Memory_331618ccd3fa615d = function(arg0) {
1001
1129
  let result;
1002
1130
  try {
1003
1131
  result = getObject(arg0) instanceof WebAssembly.Memory;
@@ -1008,27 +1136,27 @@ module.exports.__wbg_instanceof_Memory_6b2a8e33c4176794 = function(arg0) {
1008
1136
  return ret;
1009
1137
  };
1010
1138
 
1011
- module.exports.__wbg_new_5514c0d576222fc2 = function() { return handleError(function (arg0) {
1139
+ module.exports.__wbg_new_e40873b83efb2dcd = function() { return handleError(function (arg0) {
1012
1140
  const ret = new WebAssembly.Memory(getObject(arg0));
1013
1141
  return addHeapObject(ret);
1014
1142
  }, arguments) };
1015
1143
 
1016
- module.exports.__wbg_apply_f9ecfcbfefaf7349 = function() { return handleError(function (arg0, arg1, arg2) {
1144
+ module.exports.__wbg_apply_46ea2bb0ad750196 = function() { return handleError(function (arg0, arg1, arg2) {
1017
1145
  const ret = Reflect.apply(getObject(arg0), getObject(arg1), getObject(arg2));
1018
1146
  return addHeapObject(ret);
1019
1147
  }, arguments) };
1020
1148
 
1021
- module.exports.__wbg_getPrototypeOf_2782f7ac7c421741 = function() { return handleError(function (arg0) {
1149
+ module.exports.__wbg_getPrototypeOf_7dc7a2328db2bc0e = function() { return handleError(function (arg0) {
1022
1150
  const ret = Reflect.getPrototypeOf(getObject(arg0));
1023
1151
  return addHeapObject(ret);
1024
1152
  }, arguments) };
1025
1153
 
1026
- module.exports.__wbg_set_092e06b0f9d71865 = function() { return handleError(function (arg0, arg1, arg2) {
1154
+ module.exports.__wbg_set_07da13cc24b69217 = function() { return handleError(function (arg0, arg1, arg2) {
1027
1155
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
1028
1156
  return ret;
1029
1157
  }, arguments) };
1030
1158
 
1031
- module.exports.__wbg_parse_670c19d4e984792e = function() { return handleError(function (arg0, arg1) {
1159
+ module.exports.__wbg_parse_76a8a18ca3f8730b = function() { return handleError(function (arg0, arg1) {
1032
1160
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
1033
1161
  return addHeapObject(ret);
1034
1162
  }, arguments) };
@@ -1062,8 +1190,8 @@ module.exports.__wbindgen_function_table = function() {
1062
1190
  return addHeapObject(ret);
1063
1191
  };
1064
1192
 
1065
- module.exports.__wbindgen_closure_wrapper595 = function(arg0, arg1, arg2) {
1066
- const ret = makeMutClosure(arg0, arg1, 189, __wbg_adapter_54);
1193
+ module.exports.__wbindgen_closure_wrapper614 = function(arg0, arg1, arg2) {
1194
+ const ret = makeMutClosure(arg0, arg1, 193, __wbg_adapter_54);
1067
1195
  return addHeapObject(ret);
1068
1196
  };
1069
1197