@noir-lang/acvm_js 0.45.0 → 0.46.0-7936262.nightly

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/web/acvm_js.js CHANGED
@@ -6,20 +6,6 @@ heap.push(undefined, null, true, false);
6
6
 
7
7
  function getObject(idx) { return heap[idx]; }
8
8
 
9
- let heap_next = heap.length;
10
-
11
- function dropObject(idx) {
12
- if (idx < 132) return;
13
- heap[idx] = heap_next;
14
- heap_next = idx;
15
- }
16
-
17
- function takeObject(idx) {
18
- const ret = getObject(idx);
19
- dropObject(idx);
20
- return ret;
21
- }
22
-
23
9
  function isLikeNone(x) {
24
10
  return x === undefined || x === null;
25
11
  }
@@ -42,6 +28,29 @@ function getInt32Memory0() {
42
28
  return cachedInt32Memory0;
43
29
  }
44
30
 
31
+ let heap_next = heap.length;
32
+
33
+ function dropObject(idx) {
34
+ if (idx < 132) return;
35
+ heap[idx] = heap_next;
36
+ heap_next = idx;
37
+ }
38
+
39
+ function takeObject(idx) {
40
+ const ret = getObject(idx);
41
+ dropObject(idx);
42
+ return ret;
43
+ }
44
+
45
+ function addHeapObject(obj) {
46
+ if (heap_next === heap.length) heap.push(heap.length + 1);
47
+ const idx = heap_next;
48
+ heap_next = heap[idx];
49
+
50
+ heap[idx] = obj;
51
+ return idx;
52
+ }
53
+
45
54
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
46
55
 
47
56
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -60,15 +69,6 @@ function getStringFromWasm0(ptr, len) {
60
69
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
61
70
  }
62
71
 
63
- function addHeapObject(obj) {
64
- if (heap_next === heap.length) heap.push(heap.length + 1);
65
- const idx = heap_next;
66
- heap_next = heap[idx];
67
-
68
- heap[idx] = obj;
69
- return idx;
70
- }
71
-
72
72
  let WASM_VECTOR_LEN = 0;
73
73
 
74
74
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -124,15 +124,6 @@ function passStringToWasm0(arg, malloc, realloc) {
124
124
  return ptr;
125
125
  }
126
126
 
127
- let cachedBigInt64Memory0 = null;
128
-
129
- function getBigInt64Memory0() {
130
- if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
131
- cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
132
- }
133
- return cachedBigInt64Memory0;
134
- }
135
-
136
127
  function debugString(val) {
137
128
  // primitive types
138
129
  const type = typeof val;
@@ -222,30 +213,37 @@ function makeMutClosure(arg0, arg1, dtor, f) {
222
213
 
223
214
  return real;
224
215
  }
225
- function __wbg_adapter_52(arg0, arg1, arg2) {
226
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc5258430255de068(arg0, arg1, addHeapObject(arg2));
216
+ function __wbg_adapter_22(arg0, arg1, arg2) {
217
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h36bac5ff3ea3c380(arg0, arg1, addHeapObject(arg2));
227
218
  }
228
219
 
229
- /**
230
- * Performs a bitwise AND operation between `lhs` and `rhs`
231
- * @param {string} lhs
232
- * @param {string} rhs
233
- * @returns {string}
234
- */
235
- export function and(lhs, rhs) {
236
- const ret = wasm.and(addHeapObject(lhs), addHeapObject(rhs));
237
- return takeObject(ret);
220
+ function getArrayU8FromWasm0(ptr, len) {
221
+ ptr = ptr >>> 0;
222
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
238
223
  }
239
-
240
224
  /**
241
- * Performs a bitwise XOR operation between `lhs` and `rhs`
242
- * @param {string} lhs
243
- * @param {string} rhs
244
- * @returns {string}
225
+ * Compresses a `WitnessMap` into the binary format outputted by Nargo.
226
+ *
227
+ * @param {WitnessMap} witness_map - A witness map.
228
+ * @returns {Uint8Array} A compressed witness map
245
229
  */
246
- export function xor(lhs, rhs) {
247
- const ret = wasm.xor(addHeapObject(lhs), addHeapObject(rhs));
248
- return takeObject(ret);
230
+ export function compressWitness(witness_map) {
231
+ try {
232
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
233
+ wasm.compressWitness(retptr, addHeapObject(witness_map));
234
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
235
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
236
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
237
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
238
+ if (r3) {
239
+ throw takeObject(r2);
240
+ }
241
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
242
+ wasm.__wbindgen_free(r0, r1 * 1);
243
+ return v1;
244
+ } finally {
245
+ wasm.__wbindgen_add_to_stack_pointer(16);
246
+ }
249
247
  }
250
248
 
251
249
  function passArray8ToWasm0(arg, malloc) {
@@ -254,125 +252,80 @@ function passArray8ToWasm0(arg, malloc) {
254
252
  WASM_VECTOR_LEN = arg.length;
255
253
  return ptr;
256
254
  }
257
-
258
- function getArrayU8FromWasm0(ptr, len) {
259
- ptr = ptr >>> 0;
260
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
261
- }
262
255
  /**
263
- * Calculates the SHA256 hash of the input bytes
264
- * @param {Uint8Array} inputs
265
- * @returns {Uint8Array}
256
+ * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
257
+ * This should be used to only fetch the witness map for the main function.
258
+ *
259
+ * @param {Uint8Array} compressed_witness - A compressed witness.
260
+ * @returns {WitnessMap} The decompressed witness map.
266
261
  */
267
- export function sha256(inputs) {
262
+ export function decompressWitness(compressed_witness) {
268
263
  try {
269
264
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
270
- const ptr0 = passArray8ToWasm0(inputs, wasm.__wbindgen_malloc);
265
+ const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
271
266
  const len0 = WASM_VECTOR_LEN;
272
- wasm.sha256(retptr, ptr0, len0);
267
+ wasm.decompressWitness(retptr, ptr0, len0);
273
268
  var r0 = getInt32Memory0()[retptr / 4 + 0];
274
269
  var r1 = getInt32Memory0()[retptr / 4 + 1];
275
- var v2 = getArrayU8FromWasm0(r0, r1).slice();
276
- wasm.__wbindgen_free(r0, r1 * 1);
277
- return v2;
270
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
271
+ if (r2) {
272
+ throw takeObject(r1);
273
+ }
274
+ return takeObject(r0);
278
275
  } finally {
279
276
  wasm.__wbindgen_add_to_stack_pointer(16);
280
277
  }
281
278
  }
282
279
 
283
280
  /**
284
- * Calculates the Blake2s256 hash of the input bytes
285
- * @param {Uint8Array} inputs
286
- * @returns {Uint8Array}
281
+ * Compresses a `WitnessStack` into the binary format outputted by Nargo.
282
+ *
283
+ * @param {WitnessStack} witness_stack - A witness stack.
284
+ * @returns {Uint8Array} A compressed witness stack
287
285
  */
288
- export function blake2s256(inputs) {
286
+ export function compressWitnessStack(witness_stack) {
289
287
  try {
290
288
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
291
- const ptr0 = passArray8ToWasm0(inputs, wasm.__wbindgen_malloc);
292
- const len0 = WASM_VECTOR_LEN;
293
- wasm.blake2s256(retptr, ptr0, len0);
289
+ wasm.compressWitnessStack(retptr, addHeapObject(witness_stack));
294
290
  var r0 = getInt32Memory0()[retptr / 4 + 0];
295
291
  var r1 = getInt32Memory0()[retptr / 4 + 1];
296
- var v2 = getArrayU8FromWasm0(r0, r1).slice();
292
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
293
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
294
+ if (r3) {
295
+ throw takeObject(r2);
296
+ }
297
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
297
298
  wasm.__wbindgen_free(r0, r1 * 1);
298
- return v2;
299
+ return v1;
299
300
  } finally {
300
301
  wasm.__wbindgen_add_to_stack_pointer(16);
301
302
  }
302
303
  }
303
304
 
304
305
  /**
305
- * Calculates the Keccak256 hash of the input bytes
306
- * @param {Uint8Array} inputs
307
- * @returns {Uint8Array}
306
+ * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
307
+ *
308
+ * @param {Uint8Array} compressed_witness - A compressed witness.
309
+ * @returns {WitnessStack} The decompressed witness stack.
308
310
  */
309
- export function keccak256(inputs) {
311
+ export function decompressWitnessStack(compressed_witness) {
310
312
  try {
311
313
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
312
- const ptr0 = passArray8ToWasm0(inputs, wasm.__wbindgen_malloc);
314
+ const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
313
315
  const len0 = WASM_VECTOR_LEN;
314
- wasm.keccak256(retptr, ptr0, len0);
316
+ wasm.decompressWitnessStack(retptr, ptr0, len0);
315
317
  var r0 = getInt32Memory0()[retptr / 4 + 0];
316
318
  var r1 = getInt32Memory0()[retptr / 4 + 1];
317
- var v2 = getArrayU8FromWasm0(r0, r1).slice();
318
- wasm.__wbindgen_free(r0, r1 * 1);
319
- return v2;
319
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
320
+ if (r2) {
321
+ throw takeObject(r1);
322
+ }
323
+ return takeObject(r0);
320
324
  } finally {
321
325
  wasm.__wbindgen_add_to_stack_pointer(16);
322
326
  }
323
327
  }
324
328
 
325
- /**
326
- * Verifies a ECDSA signature over the secp256k1 curve.
327
- * @param {Uint8Array} hashed_msg
328
- * @param {Uint8Array} public_key_x_bytes
329
- * @param {Uint8Array} public_key_y_bytes
330
- * @param {Uint8Array} signature
331
- * @returns {boolean}
332
- */
333
- export function ecdsa_secp256k1_verify(hashed_msg, public_key_x_bytes, public_key_y_bytes, signature) {
334
- const ptr0 = passArray8ToWasm0(hashed_msg, wasm.__wbindgen_malloc);
335
- const len0 = WASM_VECTOR_LEN;
336
- const ptr1 = passArray8ToWasm0(public_key_x_bytes, wasm.__wbindgen_malloc);
337
- const len1 = WASM_VECTOR_LEN;
338
- const ptr2 = passArray8ToWasm0(public_key_y_bytes, wasm.__wbindgen_malloc);
339
- const len2 = WASM_VECTOR_LEN;
340
- const ptr3 = passArray8ToWasm0(signature, wasm.__wbindgen_malloc);
341
- const len3 = WASM_VECTOR_LEN;
342
- const ret = wasm.ecdsa_secp256k1_verify(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
343
- return ret !== 0;
344
- }
345
-
346
- /**
347
- * Verifies a ECDSA signature over the secp256r1 curve.
348
- * @param {Uint8Array} hashed_msg
349
- * @param {Uint8Array} public_key_x_bytes
350
- * @param {Uint8Array} public_key_y_bytes
351
- * @param {Uint8Array} signature
352
- * @returns {boolean}
353
- */
354
- export function ecdsa_secp256r1_verify(hashed_msg, public_key_x_bytes, public_key_y_bytes, signature) {
355
- const ptr0 = passArray8ToWasm0(hashed_msg, wasm.__wbindgen_malloc);
356
- const len0 = WASM_VECTOR_LEN;
357
- const ptr1 = passArray8ToWasm0(public_key_x_bytes, wasm.__wbindgen_malloc);
358
- const len1 = WASM_VECTOR_LEN;
359
- const ptr2 = passArray8ToWasm0(public_key_y_bytes, wasm.__wbindgen_malloc);
360
- const len2 = WASM_VECTOR_LEN;
361
- const ptr3 = passArray8ToWasm0(signature, wasm.__wbindgen_malloc);
362
- const len3 = WASM_VECTOR_LEN;
363
- const ret = wasm.ecdsa_secp256r1_verify(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
364
- return ret !== 0;
365
- }
366
-
367
- /**
368
- * Returns the `BuildInfo` object containing information about how the installed package was built.
369
- * @returns {BuildInfo} - Information on how the installed package was built.
370
- */
371
- export function buildInfo() {
372
- const ret = wasm.buildInfo();
373
- return takeObject(ret);
374
- }
375
-
376
329
  /**
377
330
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
378
331
  *
@@ -458,123 +411,130 @@ export function getPublicWitness(program, solved_witness) {
458
411
  }
459
412
 
460
413
  /**
461
- * Sets the package's logging level.
462
- *
463
- * @param {LogLevel} level - The maximum level of logging to be emitted.
414
+ * Performs a bitwise AND operation between `lhs` and `rhs`
415
+ * @param {string} lhs
416
+ * @param {string} rhs
417
+ * @returns {string}
464
418
  */
465
- export function initLogLevel(filter) {
466
- try {
467
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
468
- const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
469
- const len0 = WASM_VECTOR_LEN;
470
- wasm.initLogLevel(retptr, ptr0, len0);
471
- var r0 = getInt32Memory0()[retptr / 4 + 0];
472
- var r1 = getInt32Memory0()[retptr / 4 + 1];
473
- if (r1) {
474
- throw takeObject(r0);
475
- }
476
- } finally {
477
- wasm.__wbindgen_add_to_stack_pointer(16);
478
- }
419
+ export function and(lhs, rhs) {
420
+ const ret = wasm.and(addHeapObject(lhs), addHeapObject(rhs));
421
+ return takeObject(ret);
479
422
  }
480
423
 
481
424
  /**
482
- * Compresses a `WitnessMap` into the binary format outputted by Nargo.
483
- *
484
- * @param {WitnessMap} witness_map - A witness map.
485
- * @returns {Uint8Array} A compressed witness map
425
+ * Performs a bitwise XOR operation between `lhs` and `rhs`
426
+ * @param {string} lhs
427
+ * @param {string} rhs
428
+ * @returns {string}
486
429
  */
487
- export function compressWitness(witness_map) {
430
+ export function xor(lhs, rhs) {
431
+ const ret = wasm.xor(addHeapObject(lhs), addHeapObject(rhs));
432
+ return takeObject(ret);
433
+ }
434
+
435
+ /**
436
+ * Calculates the SHA256 hash of the input bytes
437
+ * @param {Uint8Array} inputs
438
+ * @returns {Uint8Array}
439
+ */
440
+ export function sha256(inputs) {
488
441
  try {
489
442
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
490
- wasm.compressWitness(retptr, addHeapObject(witness_map));
443
+ const ptr0 = passArray8ToWasm0(inputs, wasm.__wbindgen_malloc);
444
+ const len0 = WASM_VECTOR_LEN;
445
+ wasm.sha256(retptr, ptr0, len0);
491
446
  var r0 = getInt32Memory0()[retptr / 4 + 0];
492
447
  var r1 = getInt32Memory0()[retptr / 4 + 1];
493
- var r2 = getInt32Memory0()[retptr / 4 + 2];
494
- var r3 = getInt32Memory0()[retptr / 4 + 3];
495
- if (r3) {
496
- throw takeObject(r2);
497
- }
498
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
448
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
499
449
  wasm.__wbindgen_free(r0, r1 * 1);
500
- return v1;
450
+ return v2;
501
451
  } finally {
502
452
  wasm.__wbindgen_add_to_stack_pointer(16);
503
453
  }
504
454
  }
505
455
 
506
456
  /**
507
- * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
508
- * This should be used to only fetch the witness map for the main function.
509
- *
510
- * @param {Uint8Array} compressed_witness - A compressed witness.
511
- * @returns {WitnessMap} The decompressed witness map.
457
+ * Calculates the Blake2s256 hash of the input bytes
458
+ * @param {Uint8Array} inputs
459
+ * @returns {Uint8Array}
512
460
  */
513
- export function decompressWitness(compressed_witness) {
461
+ export function blake2s256(inputs) {
514
462
  try {
515
463
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
516
- const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
464
+ const ptr0 = passArray8ToWasm0(inputs, wasm.__wbindgen_malloc);
517
465
  const len0 = WASM_VECTOR_LEN;
518
- wasm.decompressWitness(retptr, ptr0, len0);
466
+ wasm.blake2s256(retptr, ptr0, len0);
519
467
  var r0 = getInt32Memory0()[retptr / 4 + 0];
520
468
  var r1 = getInt32Memory0()[retptr / 4 + 1];
521
- var r2 = getInt32Memory0()[retptr / 4 + 2];
522
- if (r2) {
523
- throw takeObject(r1);
524
- }
525
- return takeObject(r0);
469
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
470
+ wasm.__wbindgen_free(r0, r1 * 1);
471
+ return v2;
526
472
  } finally {
527
473
  wasm.__wbindgen_add_to_stack_pointer(16);
528
474
  }
529
475
  }
530
476
 
531
477
  /**
532
- * Compresses a `WitnessStack` into the binary format outputted by Nargo.
533
- *
534
- * @param {WitnessStack} witness_stack - A witness stack.
535
- * @returns {Uint8Array} A compressed witness stack
478
+ * Calculates the Keccak256 hash of the input bytes
479
+ * @param {Uint8Array} inputs
480
+ * @returns {Uint8Array}
536
481
  */
537
- export function compressWitnessStack(witness_stack) {
482
+ export function keccak256(inputs) {
538
483
  try {
539
484
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
540
- wasm.compressWitnessStack(retptr, addHeapObject(witness_stack));
485
+ const ptr0 = passArray8ToWasm0(inputs, wasm.__wbindgen_malloc);
486
+ const len0 = WASM_VECTOR_LEN;
487
+ wasm.keccak256(retptr, ptr0, len0);
541
488
  var r0 = getInt32Memory0()[retptr / 4 + 0];
542
489
  var r1 = getInt32Memory0()[retptr / 4 + 1];
543
- var r2 = getInt32Memory0()[retptr / 4 + 2];
544
- var r3 = getInt32Memory0()[retptr / 4 + 3];
545
- if (r3) {
546
- throw takeObject(r2);
547
- }
548
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
490
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
549
491
  wasm.__wbindgen_free(r0, r1 * 1);
550
- return v1;
492
+ return v2;
551
493
  } finally {
552
494
  wasm.__wbindgen_add_to_stack_pointer(16);
553
495
  }
554
496
  }
555
497
 
556
498
  /**
557
- * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
558
- *
559
- * @param {Uint8Array} compressed_witness - A compressed witness.
560
- * @returns {WitnessStack} The decompressed witness stack.
499
+ * Verifies a ECDSA signature over the secp256k1 curve.
500
+ * @param {Uint8Array} hashed_msg
501
+ * @param {Uint8Array} public_key_x_bytes
502
+ * @param {Uint8Array} public_key_y_bytes
503
+ * @param {Uint8Array} signature
504
+ * @returns {boolean}
505
+ */
506
+ export function ecdsa_secp256k1_verify(hashed_msg, public_key_x_bytes, public_key_y_bytes, signature) {
507
+ const ptr0 = passArray8ToWasm0(hashed_msg, wasm.__wbindgen_malloc);
508
+ const len0 = WASM_VECTOR_LEN;
509
+ const ptr1 = passArray8ToWasm0(public_key_x_bytes, wasm.__wbindgen_malloc);
510
+ const len1 = WASM_VECTOR_LEN;
511
+ const ptr2 = passArray8ToWasm0(public_key_y_bytes, wasm.__wbindgen_malloc);
512
+ const len2 = WASM_VECTOR_LEN;
513
+ const ptr3 = passArray8ToWasm0(signature, wasm.__wbindgen_malloc);
514
+ const len3 = WASM_VECTOR_LEN;
515
+ const ret = wasm.ecdsa_secp256k1_verify(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
516
+ return ret !== 0;
517
+ }
518
+
519
+ /**
520
+ * Verifies a ECDSA signature over the secp256r1 curve.
521
+ * @param {Uint8Array} hashed_msg
522
+ * @param {Uint8Array} public_key_x_bytes
523
+ * @param {Uint8Array} public_key_y_bytes
524
+ * @param {Uint8Array} signature
525
+ * @returns {boolean}
561
526
  */
562
- export function decompressWitnessStack(compressed_witness) {
563
- try {
564
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
565
- const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
566
- const len0 = WASM_VECTOR_LEN;
567
- wasm.decompressWitnessStack(retptr, ptr0, len0);
568
- var r0 = getInt32Memory0()[retptr / 4 + 0];
569
- var r1 = getInt32Memory0()[retptr / 4 + 1];
570
- var r2 = getInt32Memory0()[retptr / 4 + 2];
571
- if (r2) {
572
- throw takeObject(r1);
573
- }
574
- return takeObject(r0);
575
- } finally {
576
- wasm.__wbindgen_add_to_stack_pointer(16);
577
- }
527
+ export function ecdsa_secp256r1_verify(hashed_msg, public_key_x_bytes, public_key_y_bytes, signature) {
528
+ const ptr0 = passArray8ToWasm0(hashed_msg, wasm.__wbindgen_malloc);
529
+ const len0 = WASM_VECTOR_LEN;
530
+ const ptr1 = passArray8ToWasm0(public_key_x_bytes, wasm.__wbindgen_malloc);
531
+ const len1 = WASM_VECTOR_LEN;
532
+ const ptr2 = passArray8ToWasm0(public_key_y_bytes, wasm.__wbindgen_malloc);
533
+ const len2 = WASM_VECTOR_LEN;
534
+ const ptr3 = passArray8ToWasm0(signature, wasm.__wbindgen_malloc);
535
+ const len3 = WASM_VECTOR_LEN;
536
+ const ret = wasm.ecdsa_secp256r1_verify(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
537
+ return ret !== 0;
578
538
  }
579
539
 
580
540
  /**
@@ -660,45 +620,51 @@ export function executeProgramWithBlackBoxSolver(solver, program, initial_witnes
660
620
  return takeObject(ret);
661
621
  }
662
622
 
663
- function handleError(f, args) {
623
+ /**
624
+ * Sets the package's logging level.
625
+ *
626
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
627
+ */
628
+ export function initLogLevel(filter) {
664
629
  try {
665
- return f.apply(this, args);
666
- } catch (e) {
667
- wasm.__wbindgen_exn_store(addHeapObject(e));
630
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
631
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
632
+ const len0 = WASM_VECTOR_LEN;
633
+ wasm.initLogLevel(retptr, ptr0, len0);
634
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
635
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
636
+ if (r1) {
637
+ throw takeObject(r0);
638
+ }
639
+ } finally {
640
+ wasm.__wbindgen_add_to_stack_pointer(16);
668
641
  }
669
642
  }
670
- function __wbg_adapter_134(arg0, arg1, arg2, arg3, arg4) {
671
- wasm.wasm_bindgen__convert__closures__invoke3_mut__h1e7d8ac96c74bd35(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
672
- }
673
-
674
- function __wbg_adapter_171(arg0, arg1, arg2, arg3) {
675
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h188e918906ff9a40(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
676
- }
677
643
 
678
644
  /**
679
- * A struct representing a Trap
645
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
646
+ * @returns {BuildInfo} - Information on how the installed package was built.
680
647
  */
681
- export class Trap {
682
-
683
- __destroy_into_raw() {
684
- const ptr = this.__wbg_ptr;
685
- this.__wbg_ptr = 0;
648
+ export function buildInfo() {
649
+ const ret = wasm.buildInfo();
650
+ return takeObject(ret);
651
+ }
686
652
 
687
- return ptr;
688
- }
653
+ function __wbg_adapter_81(arg0, arg1, arg2, arg3, arg4) {
654
+ wasm.wasm_bindgen__convert__closures__invoke3_mut__h629417323d5efbaa(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
655
+ }
689
656
 
690
- free() {
691
- const ptr = this.__destroy_into_raw();
692
- wasm.__wbg_trap_free(ptr);
693
- }
694
- /**
695
- * A marker method to indicate that an object is an instance of the `Trap`
696
- * class.
697
- */
698
- static __wbg_wasmer_trap() {
699
- wasm.trap___wbg_wasmer_trap();
657
+ function handleError(f, args) {
658
+ try {
659
+ return f.apply(this, args);
660
+ } catch (e) {
661
+ wasm.__wbindgen_exn_store(addHeapObject(e));
700
662
  }
701
663
  }
664
+ function __wbg_adapter_98(arg0, arg1, arg2, arg3) {
665
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h4efdd1050cfb3ea7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
666
+ }
667
+
702
668
  /**
703
669
  */
704
670
  export class WasmBlackBoxFunctionSolver {
@@ -758,36 +724,16 @@ async function __wbg_load(module, imports) {
758
724
  function __wbg_get_imports() {
759
725
  const imports = {};
760
726
  imports.wbg = {};
761
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
762
- takeObject(arg0);
763
- };
764
727
  imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
765
728
  const obj = getObject(arg1);
766
729
  const ret = typeof(obj) === 'number' ? obj : undefined;
767
730
  getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
768
731
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
769
732
  };
770
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
771
- const ret = getStringFromWasm0(arg0, arg1);
772
- return addHeapObject(ret);
773
- };
774
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
775
- const ret = getObject(arg0) === undefined;
776
- return ret;
777
- };
778
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
779
- const ret = new Error(getStringFromWasm0(arg0, arg1));
780
- return addHeapObject(ret);
781
- };
782
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
783
- const ret = getObject(arg0);
784
- return addHeapObject(ret);
785
- };
786
- imports.wbg.__wbg_constructor_3c870f698332d32a = function(arg0) {
787
- const ret = new Error(takeObject(arg0));
788
- return addHeapObject(ret);
733
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
734
+ takeObject(arg0);
789
735
  };
790
- imports.wbg.__wbg_new_500c474da81d0c8a = function() {
736
+ imports.wbg.__wbg_new_6f6c75f9324b78e8 = function() {
791
737
  const ret = new Map();
792
738
  return addHeapObject(ret);
793
739
  };
@@ -795,6 +741,10 @@ function __wbg_get_imports() {
795
741
  const ret = arg0;
796
742
  return addHeapObject(ret);
797
743
  };
744
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
745
+ const ret = getStringFromWasm0(arg0, arg1);
746
+ return addHeapObject(ret);
747
+ };
798
748
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
799
749
  const obj = getObject(arg1);
800
750
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -803,10 +753,6 @@ function __wbg_get_imports() {
803
753
  getInt32Memory0()[arg0 / 4 + 1] = len1;
804
754
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
805
755
  };
806
- imports.wbg.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
807
- const ret = WasmBlackBoxFunctionSolver.__wrap(arg0);
808
- return addHeapObject(ret);
809
- };
810
756
  imports.wbg.__wbindgen_cb_drop = function(arg0) {
811
757
  const obj = takeObject(arg0).original;
812
758
  if (obj.cnt-- == 1) {
@@ -816,8 +762,8 @@ function __wbg_get_imports() {
816
762
  const ret = false;
817
763
  return ret;
818
764
  };
819
- imports.wbg.__wbg_new_575b760e13535a20 = function() {
820
- const ret = new Array();
765
+ imports.wbg.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
766
+ const ret = WasmBlackBoxFunctionSolver.__wrap(arg0);
821
767
  return addHeapObject(ret);
822
768
  };
823
769
  imports.wbg.__wbindgen_is_array = function(arg0) {
@@ -828,6 +774,14 @@ function __wbg_get_imports() {
828
774
  const ret = typeof(getObject(arg0)) === 'string';
829
775
  return ret;
830
776
  };
777
+ imports.wbg.__wbg_constructor_81b34c49dcbdd2af = function(arg0) {
778
+ const ret = new Error(takeObject(arg0));
779
+ return addHeapObject(ret);
780
+ };
781
+ imports.wbg.__wbg_new_ee5ac63ff3b0fa4d = function() {
782
+ const ret = new Array();
783
+ return addHeapObject(ret);
784
+ };
831
785
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
832
786
  const ret = new Error();
833
787
  return addHeapObject(ret);
@@ -850,53 +804,6 @@ function __wbg_get_imports() {
850
804
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
851
805
  }
852
806
  };
853
- imports.wbg.__wbindgen_ge = function(arg0, arg1) {
854
- const ret = getObject(arg0) >= getObject(arg1);
855
- return ret;
856
- };
857
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
858
- const ret = BigInt.asUintN(64, arg0);
859
- return addHeapObject(ret);
860
- };
861
- imports.wbg.__wbindgen_shr = function(arg0, arg1) {
862
- const ret = getObject(arg0) >> getObject(arg1);
863
- return addHeapObject(ret);
864
- };
865
- imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
866
- const ret = getObject(arg0) === getObject(arg1);
867
- return ret;
868
- };
869
- imports.wbg.__wbindgen_is_bigint = function(arg0) {
870
- const ret = typeof(getObject(arg0)) === 'bigint';
871
- return ret;
872
- };
873
- imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
874
- const ret = arg0;
875
- return addHeapObject(ret);
876
- };
877
- imports.wbg.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
878
- const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
879
- return addHeapObject(ret);
880
- };
881
- imports.wbg.__wbindgen_is_object = function(arg0) {
882
- const val = getObject(arg0);
883
- const ret = typeof(val) === 'object' && val !== null;
884
- return ret;
885
- };
886
- imports.wbg.__wbindgen_is_function = function(arg0) {
887
- const ret = typeof(getObject(arg0)) === 'function';
888
- return ret;
889
- };
890
- imports.wbg.__wbg_instanceof_Global_f4b019d2b45e18ab = function(arg0) {
891
- let result;
892
- try {
893
- result = getObject(arg0) instanceof WebAssembly.Global;
894
- } catch {
895
- result = false;
896
- }
897
- const ret = result;
898
- return ret;
899
- };
900
807
  imports.wbg.__wbg_debug_e3f6a1578e6d45ca = function(arg0) {
901
808
  console.debug(getObject(arg0));
902
809
  };
@@ -921,36 +828,6 @@ function __wbg_get_imports() {
921
828
  imports.wbg.__wbg_warn_8342bfbc6028193a = function(arg0, arg1, arg2, arg3) {
922
829
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
923
830
  };
924
- imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
925
- const ret = getObject(arg0).crypto;
926
- return addHeapObject(ret);
927
- };
928
- imports.wbg.__wbg_process_298734cf255a885d = function(arg0) {
929
- const ret = getObject(arg0).process;
930
- return addHeapObject(ret);
931
- };
932
- imports.wbg.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
933
- const ret = getObject(arg0).versions;
934
- return addHeapObject(ret);
935
- };
936
- imports.wbg.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
937
- const ret = getObject(arg0).node;
938
- return addHeapObject(ret);
939
- };
940
- imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
941
- const ret = getObject(arg0).msCrypto;
942
- return addHeapObject(ret);
943
- };
944
- imports.wbg.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
945
- const ret = module.require;
946
- return addHeapObject(ret);
947
- }, arguments) };
948
- imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
949
- getObject(arg0).randomFillSync(takeObject(arg1));
950
- }, arguments) };
951
- imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
952
- getObject(arg0).getRandomValues(getObject(arg1));
953
- }, arguments) };
954
831
  imports.wbg.__wbg_get_7303ed2ef026b2f5 = function(arg0, arg1) {
955
832
  const ret = getObject(arg0)[arg1 >>> 0];
956
833
  return addHeapObject(ret);
@@ -963,53 +840,10 @@ function __wbg_get_imports() {
963
840
  const ret = new Array();
964
841
  return addHeapObject(ret);
965
842
  };
966
- imports.wbg.__wbg_BigInt_9523742cb675bb6f = function(arg0) {
967
- const ret = BigInt(getObject(arg0));
968
- return addHeapObject(ret);
969
- };
970
- imports.wbg.__wbg_newnoargs_c9e6043b8ad84109 = function(arg0, arg1) {
971
- const ret = new Function(getStringFromWasm0(arg0, arg1));
972
- return addHeapObject(ret);
973
- };
974
843
  imports.wbg.__wbg_new_0f2b71ca2f2a6029 = function() {
975
844
  const ret = new Map();
976
845
  return addHeapObject(ret);
977
846
  };
978
- imports.wbg.__wbg_get_f53c921291c381bd = function() { return handleError(function (arg0, arg1) {
979
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
980
- return addHeapObject(ret);
981
- }, arguments) };
982
- imports.wbg.__wbg_call_557a2f2deacc4912 = function() { return handleError(function (arg0, arg1) {
983
- const ret = getObject(arg0).call(getObject(arg1));
984
- return addHeapObject(ret);
985
- }, arguments) };
986
- imports.wbg.__wbg_new_2b6fea4ea03b1b95 = function() {
987
- const ret = new Object();
988
- return addHeapObject(ret);
989
- };
990
- imports.wbg.__wbg_self_742dd6eab3e9211e = function() { return handleError(function () {
991
- const ret = self.self;
992
- return addHeapObject(ret);
993
- }, arguments) };
994
- imports.wbg.__wbg_window_c409e731db53a0e2 = function() { return handleError(function () {
995
- const ret = window.window;
996
- return addHeapObject(ret);
997
- }, arguments) };
998
- imports.wbg.__wbg_globalThis_b70c095388441f2d = function() { return handleError(function () {
999
- const ret = globalThis.globalThis;
1000
- return addHeapObject(ret);
1001
- }, arguments) };
1002
- imports.wbg.__wbg_global_1c72617491ed7194 = function() { return handleError(function () {
1003
- const ret = global.global;
1004
- return addHeapObject(ret);
1005
- }, arguments) };
1006
- imports.wbg.__wbg_newwithlength_cd1db47a173e3944 = function(arg0) {
1007
- const ret = new Array(arg0 >>> 0);
1008
- return addHeapObject(ret);
1009
- };
1010
- imports.wbg.__wbg_set_b4da98d504ac6091 = function(arg0, arg1, arg2) {
1011
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1012
- };
1013
847
  imports.wbg.__wbg_from_6bc98a09a0b58bb1 = function(arg0) {
1014
848
  const ret = Array.from(getObject(arg0));
1015
849
  return addHeapObject(ret);
@@ -1021,7 +855,7 @@ function __wbg_get_imports() {
1021
855
  const a = state0.a;
1022
856
  state0.a = 0;
1023
857
  try {
1024
- return __wbg_adapter_134(a, state0.b, arg0, arg1, arg2);
858
+ return __wbg_adapter_81(a, state0.b, arg0, arg1, arg2);
1025
859
  } finally {
1026
860
  state0.a = a;
1027
861
  }
@@ -1039,27 +873,6 @@ function __wbg_get_imports() {
1039
873
  const ret = getObject(arg0).reverse();
1040
874
  return addHeapObject(ret);
1041
875
  };
1042
- imports.wbg.__wbg_byteLength_1a59a59856fc656a = function(arg0) {
1043
- const ret = getObject(arg0).byteLength;
1044
- return ret;
1045
- };
1046
- imports.wbg.__wbg_toString_68dcf9fa017bbb08 = function(arg0, arg1, arg2) {
1047
- const ret = getObject(arg1).toString(arg2);
1048
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1049
- const len1 = WASM_VECTOR_LEN;
1050
- getInt32Memory0()[arg0 / 4 + 1] = len1;
1051
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1052
- };
1053
- imports.wbg.__wbg_instanceof_Error_fac23a8832b241da = function(arg0) {
1054
- let result;
1055
- try {
1056
- result = getObject(arg0) instanceof Error;
1057
- } catch {
1058
- result = false;
1059
- }
1060
- const ret = result;
1061
- return ret;
1062
- };
1063
876
  imports.wbg.__wbg_new_87297f22973157c8 = function(arg0, arg1) {
1064
877
  const ret = new Error(getStringFromWasm0(arg0, arg1));
1065
878
  return addHeapObject(ret);
@@ -1067,20 +880,6 @@ function __wbg_get_imports() {
1067
880
  imports.wbg.__wbg_setcause_394738aae0ce9341 = function(arg0, arg1) {
1068
881
  getObject(arg0).cause = getObject(arg1);
1069
882
  };
1070
- imports.wbg.__wbg_message_eab7d45ec69a2135 = function(arg0) {
1071
- const ret = getObject(arg0).message;
1072
- return addHeapObject(ret);
1073
- };
1074
- imports.wbg.__wbg_instanceof_Function_8e1bcaacb89c4438 = function(arg0) {
1075
- let result;
1076
- try {
1077
- result = getObject(arg0) instanceof Function;
1078
- } catch {
1079
- result = false;
1080
- }
1081
- const ret = result;
1082
- return ret;
1083
- };
1084
883
  imports.wbg.__wbg_call_587b30eea3e09332 = function() { return handleError(function (arg0, arg1, arg2) {
1085
884
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1086
885
  return addHeapObject(ret);
@@ -1089,14 +888,6 @@ function __wbg_get_imports() {
1089
888
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
1090
889
  return addHeapObject(ret);
1091
890
  }, arguments) };
1092
- imports.wbg.__wbg_bind_7d5ce7224bedd5b8 = function(arg0, arg1, arg2) {
1093
- const ret = getObject(arg0).bind(getObject(arg1), getObject(arg2));
1094
- return addHeapObject(ret);
1095
- };
1096
- imports.wbg.__wbg_bind_f5218b29220675c3 = function(arg0, arg1, arg2, arg3) {
1097
- const ret = getObject(arg0).bind(getObject(arg1), getObject(arg2), getObject(arg3));
1098
- return addHeapObject(ret);
1099
- };
1100
891
  imports.wbg.__wbg_forEach_942772130a8d06a6 = function(arg0, arg1, arg2) {
1101
892
  try {
1102
893
  var state0 = {a: arg1, b: arg2};
@@ -1104,7 +895,7 @@ function __wbg_get_imports() {
1104
895
  const a = state0.a;
1105
896
  state0.a = 0;
1106
897
  try {
1107
- return __wbg_adapter_171(a, state0.b, arg0, arg1);
898
+ return __wbg_adapter_98(a, state0.b, arg0, arg1);
1108
899
  } finally {
1109
900
  state0.a = a;
1110
901
  }
@@ -1118,28 +909,10 @@ function __wbg_get_imports() {
1118
909
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1119
910
  return addHeapObject(ret);
1120
911
  };
1121
- imports.wbg.__wbg_instanceof_Object_a9e9e5766628e8b5 = function(arg0) {
1122
- let result;
1123
- try {
1124
- result = getObject(arg0) instanceof Object;
1125
- } catch {
1126
- result = false;
1127
- }
1128
- const ret = result;
1129
- return ret;
1130
- };
1131
- imports.wbg.__wbg_constructor_f2623999a1f453eb = function(arg0) {
1132
- const ret = getObject(arg0).constructor;
1133
- return addHeapObject(ret);
1134
- };
1135
912
  imports.wbg.__wbg_fromEntries_d1b310956d20d858 = function() { return handleError(function (arg0) {
1136
913
  const ret = Object.fromEntries(getObject(arg0));
1137
914
  return addHeapObject(ret);
1138
915
  }, arguments) };
1139
- imports.wbg.__wbg_toString_e2b23ac99490a381 = function(arg0) {
1140
- const ret = getObject(arg0).toString();
1141
- return addHeapObject(ret);
1142
- };
1143
916
  imports.wbg.__wbg_values_099fd000c271c313 = function(arg0) {
1144
917
  const ret = Object.values(getObject(arg0));
1145
918
  return addHeapObject(ret);
@@ -1151,7 +924,7 @@ function __wbg_get_imports() {
1151
924
  const a = state0.a;
1152
925
  state0.a = 0;
1153
926
  try {
1154
- return __wbg_adapter_171(a, state0.b, arg0, arg1);
927
+ return __wbg_adapter_98(a, state0.b, arg0, arg1);
1155
928
  } finally {
1156
929
  state0.a = a;
1157
930
  }
@@ -1174,99 +947,14 @@ function __wbg_get_imports() {
1174
947
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
1175
948
  return addHeapObject(ret);
1176
949
  };
1177
- imports.wbg.__wbg_buffer_55ba7a6b1b92e2ac = function(arg0) {
1178
- const ret = getObject(arg0).buffer;
1179
- return addHeapObject(ret);
1180
- };
1181
- imports.wbg.__wbg_newwithbyteoffsetandlength_88d1d8be5df94b9b = function(arg0, arg1, arg2) {
1182
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
1183
- return addHeapObject(ret);
1184
- };
1185
- imports.wbg.__wbg_new_09938a7d020f049b = function(arg0) {
1186
- const ret = new Uint8Array(getObject(arg0));
1187
- return addHeapObject(ret);
1188
- };
1189
- imports.wbg.__wbg_set_3698e3ca519b3c3c = function(arg0, arg1, arg2) {
1190
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1191
- };
1192
- imports.wbg.__wbg_length_0aab7ffd65ad19ed = function(arg0) {
1193
- const ret = getObject(arg0).length;
1194
- return ret;
1195
- };
1196
- imports.wbg.__wbg_newwithlength_89eeca401d8918c2 = function(arg0) {
1197
- const ret = new Uint8Array(arg0 >>> 0);
1198
- return addHeapObject(ret);
1199
- };
1200
- imports.wbg.__wbg_subarray_d82be056deb4ad27 = function(arg0, arg1, arg2) {
1201
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1202
- return addHeapObject(ret);
1203
- };
1204
950
  imports.wbg.__wbg_parse_76a8a18ca3f8730b = function() { return handleError(function (arg0, arg1) {
1205
951
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
1206
952
  return addHeapObject(ret);
1207
953
  }, arguments) };
1208
- imports.wbg.__wbg_compile_eefe73dfb19bff3d = function(arg0) {
1209
- const ret = WebAssembly.compile(getObject(arg0));
1210
- return addHeapObject(ret);
1211
- };
1212
- imports.wbg.__wbg_instantiate_e61ee50cd947cd36 = function(arg0, arg1) {
1213
- const ret = WebAssembly.instantiate(getObject(arg0), getObject(arg1));
1214
- return addHeapObject(ret);
1215
- };
1216
- imports.wbg.__wbg_exports_311291a1333429a3 = function(arg0) {
1217
- const ret = getObject(arg0).exports;
1218
- return addHeapObject(ret);
1219
- };
1220
- imports.wbg.__wbg_exports_12505982ae149cb0 = function(arg0) {
1221
- const ret = WebAssembly.Module.exports(getObject(arg0));
1222
- return addHeapObject(ret);
1223
- };
1224
- imports.wbg.__wbg_instanceof_Table_b0af5234a12a19f9 = function(arg0) {
1225
- let result;
1226
- try {
1227
- result = getObject(arg0) instanceof WebAssembly.Table;
1228
- } catch {
1229
- result = false;
1230
- }
1231
- const ret = result;
1232
- return ret;
1233
- };
1234
- imports.wbg.__wbg_get_b5def15f90c3e295 = function() { return handleError(function (arg0, arg1) {
1235
- const ret = getObject(arg0).get(arg1 >>> 0);
1236
- return addHeapObject(ret);
1237
- }, arguments) };
1238
- imports.wbg.__wbg_instanceof_Memory_331618ccd3fa615d = function(arg0) {
1239
- let result;
1240
- try {
1241
- result = getObject(arg0) instanceof WebAssembly.Memory;
1242
- } catch {
1243
- result = false;
1244
- }
1245
- const ret = result;
1246
- return ret;
1247
- };
1248
- imports.wbg.__wbg_new_e40873b83efb2dcd = function() { return handleError(function (arg0) {
1249
- const ret = new WebAssembly.Memory(getObject(arg0));
1250
- return addHeapObject(ret);
1251
- }, arguments) };
1252
- imports.wbg.__wbg_apply_46ea2bb0ad750196 = function() { return handleError(function (arg0, arg1, arg2) {
1253
- const ret = Reflect.apply(getObject(arg0), getObject(arg1), getObject(arg2));
1254
- return addHeapObject(ret);
1255
- }, arguments) };
1256
- imports.wbg.__wbg_getPrototypeOf_7dc7a2328db2bc0e = function() { return handleError(function (arg0) {
1257
- const ret = Reflect.getPrototypeOf(getObject(arg0));
1258
- return addHeapObject(ret);
1259
- }, arguments) };
1260
954
  imports.wbg.__wbg_set_07da13cc24b69217 = function() { return handleError(function (arg0, arg1, arg2) {
1261
955
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
1262
956
  return ret;
1263
957
  }, arguments) };
1264
- imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
1265
- const v = getObject(arg1);
1266
- const ret = typeof(v) === 'bigint' ? v : undefined;
1267
- getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
1268
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1269
- };
1270
958
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
1271
959
  const ret = debugString(getObject(arg1));
1272
960
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1277,16 +965,8 @@ function __wbg_get_imports() {
1277
965
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1278
966
  throw new Error(getStringFromWasm0(arg0, arg1));
1279
967
  };
1280
- imports.wbg.__wbindgen_memory = function() {
1281
- const ret = wasm.memory;
1282
- return addHeapObject(ret);
1283
- };
1284
- imports.wbg.__wbindgen_function_table = function() {
1285
- const ret = wasm.__wbindgen_export_2;
1286
- return addHeapObject(ret);
1287
- };
1288
- imports.wbg.__wbindgen_closure_wrapper2097 = function(arg0, arg1, arg2) {
1289
- const ret = makeMutClosure(arg0, arg1, 698, __wbg_adapter_52);
968
+ imports.wbg.__wbindgen_closure_wrapper491 = function(arg0, arg1, arg2) {
969
+ const ret = makeMutClosure(arg0, arg1, 201, __wbg_adapter_22);
1290
970
  return addHeapObject(ret);
1291
971
  };
1292
972
 
@@ -1300,7 +980,6 @@ function __wbg_init_memory(imports, maybe_memory) {
1300
980
  function __wbg_finalize_init(instance, module) {
1301
981
  wasm = instance.exports;
1302
982
  __wbg_init.__wbindgen_wasm_module = module;
1303
- cachedBigInt64Memory0 = null;
1304
983
  cachedFloat64Memory0 = null;
1305
984
  cachedInt32Memory0 = null;
1306
985
  cachedUint8Memory0 = null;