@provablehq/wasm 0.11.0 → 0.11.1

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.
@@ -9,18 +9,6 @@ export function initThreadPool(url: URL, num_threads: number): Promise<void>;
9
9
  * Values above 4 are clamped to debug.
10
10
  */
11
11
  export function setWasmLogLevel(level: number): void;
12
- /**
13
- * Verify a SNARK proof against a verifying key and public inputs.
14
- *
15
- * This function verifies a proof produced by an Aleo program that may not be deployed on chain.
16
- * It directly invokes the Varuna proof verification from snarkVM.
17
- *
18
- * @param {VerifyingKey} verifying_key The verifying key for the circuit
19
- * @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
20
- * @param {Proof} proof The proof to verify
21
- * @returns {boolean} True if the proof is valid, false otherwise
22
- */
23
- export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, proof: Proof): boolean;
24
12
  /**
25
13
  * Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
26
14
  *
@@ -33,6 +21,18 @@ export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, pro
33
21
  * @returns {boolean} True if the batch proof is valid, false otherwise
34
22
  */
35
23
  export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>, proof: Proof): boolean;
24
+ /**
25
+ * Verify a SNARK proof against a verifying key and public inputs.
26
+ *
27
+ * This function verifies a proof produced by an Aleo program that may not be deployed on chain.
28
+ * It directly invokes the Varuna proof verification from snarkVM.
29
+ *
30
+ * @param {VerifyingKey} verifying_key The verifying key for the circuit
31
+ * @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
32
+ * @param {Proof} proof The proof to verify
33
+ * @returns {boolean} True if the proof is valid, false otherwise
34
+ */
35
+ export function snarkVerify(verifying_key: VerifyingKey, inputs: Array<any>, proof: Proof): boolean;
36
36
  /**
37
37
  * Verify an execution. Executions with multiple transitions must have the program source code and
38
38
  * verifying keys of imported functions supplied from outside to correctly verify. Also, this does
@@ -47,7 +47,6 @@ export function snarkVerifyBatch(verifying_keys: Array<any>, inputs: Array<any>,
47
47
  * @returns {boolean} True if the execution is valid, false otherwise
48
48
  */
49
49
  export function verifyFunctionExecution(execution: Execution, verifying_key: VerifyingKey, program: Program, function_id: string, imports: object | null | undefined, imported_verifying_keys: object | null | undefined, block_height: number, program_imports?: ProgramImports | null): boolean;
50
- export function stringToField(string: string): Field;
51
50
  /**
52
51
  * Set test consensus version heights for testing.
53
52
  *
@@ -57,9 +56,10 @@ export function stringToField(string: string): Field;
57
56
  * import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
58
57
  *
59
58
  * Set the consensus version heights.
60
- * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13");
59
+ * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14");
61
60
  */
62
61
  export function getOrInitConsensusVersionTestHeights(heights?: string | null): Array<any>;
62
+ export function stringToField(string: string): Field;
63
63
  /**
64
64
  * Public address of an Aleo account
65
65
  */
Binary file
@@ -321,26 +321,25 @@ function addBorrowedObject(obj) {
321
321
  return stack_pointer;
322
322
  }
323
323
  /**
324
- * Verify a SNARK proof against a verifying key and public inputs.
324
+ * Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
325
325
  *
326
- * This function verifies a proof produced by an Aleo program that may not be deployed on chain.
327
- * It directly invokes the Varuna proof verification from snarkVM.
326
+ * This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
327
+ * Each verifying key is paired with one or more sets of public inputs (instances).
328
328
  *
329
- * @param {VerifyingKey} verifying_key The verifying key for the circuit
330
- * @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
331
- * @param {Proof} proof The proof to verify
332
- * @returns {boolean} True if the proof is valid, false otherwise
333
- * @param {VerifyingKey} verifying_key
329
+ * @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
330
+ * @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
331
+ * @param {Proof} proof The batch proof to verify
332
+ * @returns {boolean} True if the batch proof is valid, false otherwise
333
+ * @param {Array<any>} verifying_keys
334
334
  * @param {Array<any>} inputs
335
335
  * @param {Proof} proof
336
336
  * @returns {boolean}
337
337
  */
338
- function snarkVerify(verifying_key, inputs, proof) {
338
+ function snarkVerifyBatch(verifying_keys, inputs, proof) {
339
339
  try {
340
340
  const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
341
- _assertClass(verifying_key, VerifyingKey);
342
341
  _assertClass(proof, Proof);
343
- wasm$1.snarkVerify(retptr, verifying_key.__wbg_ptr, addHeapObject(inputs), proof.__wbg_ptr);
342
+ wasm$1.snarkVerifyBatch(retptr, addHeapObject(verifying_keys), addHeapObject(inputs), proof.__wbg_ptr);
344
343
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
345
344
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
346
345
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -354,25 +353,26 @@ function snarkVerify(verifying_key, inputs, proof) {
354
353
  }
355
354
 
356
355
  /**
357
- * Verify a batch SNARK proof against multiple verifying keys and their corresponding public inputs.
356
+ * Verify a SNARK proof against a verifying key and public inputs.
358
357
  *
359
- * This function verifies a batch proof produced by Aleo programs that may not be deployed on chain.
360
- * Each verifying key is paired with one or more sets of public inputs (instances).
358
+ * This function verifies a proof produced by an Aleo program that may not be deployed on chain.
359
+ * It directly invokes the Varuna proof verification from snarkVM.
361
360
  *
362
- * @param {Array<string>} verifying_keys Array of verifying key strings, one per circuit
363
- * @param {Array<Array<Array<string>>>} inputs 3D array of field element strings [circuit_idx][instance_idx][field_idx]
364
- * @param {Proof} proof The batch proof to verify
365
- * @returns {boolean} True if the batch proof is valid, false otherwise
366
- * @param {Array<any>} verifying_keys
361
+ * @param {VerifyingKey} verifying_key The verifying key for the circuit
362
+ * @param {Array<string>} inputs Array of field element strings representing public inputs (e.g. ["1field", "2field"])
363
+ * @param {Proof} proof The proof to verify
364
+ * @returns {boolean} True if the proof is valid, false otherwise
365
+ * @param {VerifyingKey} verifying_key
367
366
  * @param {Array<any>} inputs
368
367
  * @param {Proof} proof
369
368
  * @returns {boolean}
370
369
  */
371
- function snarkVerifyBatch(verifying_keys, inputs, proof) {
370
+ function snarkVerify(verifying_key, inputs, proof) {
372
371
  try {
373
372
  const retptr = wasm$1.__wbindgen_add_to_stack_pointer(-16);
373
+ _assertClass(verifying_key, VerifyingKey);
374
374
  _assertClass(proof, Proof);
375
- wasm$1.snarkVerifyBatch(retptr, addHeapObject(verifying_keys), addHeapObject(inputs), proof.__wbg_ptr);
375
+ wasm$1.snarkVerify(retptr, verifying_key.__wbg_ptr, addHeapObject(inputs), proof.__wbg_ptr);
376
376
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
377
377
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
378
378
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -433,6 +433,26 @@ function verifyFunctionExecution(execution, verifying_key, program, function_id,
433
433
  }
434
434
  }
435
435
 
436
+ /**
437
+ * Set test consensus version heights for testing.
438
+ *
439
+ * @param {string | undefined} heights The block heights at which each consensus version applies. This input should be a simple csv list of block heights and there should be one number for each consensus version. If left undefined, the default test heights will be applied.
440
+ *
441
+ * @example
442
+ * import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
443
+ *
444
+ * Set the consensus version heights.
445
+ * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14");
446
+ * @param {string | null} [heights]
447
+ * @returns {Array<any>}
448
+ */
449
+ function getOrInitConsensusVersionTestHeights(heights) {
450
+ var ptr0 = isLikeNone(heights) ? 0 : passStringToWasm0(heights, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
451
+ var len0 = WASM_VECTOR_LEN;
452
+ const ret = wasm$1.getOrInitConsensusVersionTestHeights(ptr0, len0);
453
+ return takeObject(ret);
454
+ }
455
+
436
456
  /**
437
457
  * @param {string} string
438
458
  * @returns {Field}
@@ -455,26 +475,6 @@ function stringToField(string) {
455
475
  }
456
476
  }
457
477
 
458
- /**
459
- * Set test consensus version heights for testing.
460
- *
461
- * @param {string | undefined} heights The block heights at which each consensus version applies. This input should be a simple csv list of block heights and there should be one number for each consensus version. If left undefined, the default test heights will be applied.
462
- *
463
- * @example
464
- * import { getOrInitConsensusVersionTestHeights } from '@provablehq/sdk';
465
- *
466
- * Set the consensus version heights.
467
- * getOrInitConsensusVersionTestHeights("0,1,2,3,4,5,6,7,8,9,10,11,12,13");
468
- * @param {string | null} [heights]
469
- * @returns {Array<any>}
470
- */
471
- function getOrInitConsensusVersionTestHeights(heights) {
472
- var ptr0 = isLikeNone(heights) ? 0 : passStringToWasm0(heights, wasm$1.__wbindgen_export, wasm$1.__wbindgen_export2);
473
- var len0 = WASM_VECTOR_LEN;
474
- const ret = wasm$1.getOrInitConsensusVersionTestHeights(ptr0, len0);
475
- return takeObject(ret);
476
- }
477
-
478
478
  function passArrayJsValueToWasm0(array, malloc) {
479
479
  const ptr = malloc(array.length * 4, 4) >>> 0;
480
480
  const mem = getDataViewMemory0();
@@ -494,16 +494,16 @@ function getArrayJsValueFromWasm0(ptr, len) {
494
494
  }
495
495
  return result;
496
496
  }
497
- function __wasm_bindgen_func_elem_8655(arg0, arg1, arg2) {
498
- wasm$1.__wasm_bindgen_func_elem_8655(arg0, arg1, addHeapObject(arg2));
497
+ function __wasm_bindgen_func_elem_7372(arg0, arg1) {
498
+ wasm$1.__wasm_bindgen_func_elem_7372(arg0, arg1);
499
499
  }
500
500
 
501
- function __wasm_bindgen_func_elem_7286(arg0, arg1) {
502
- wasm$1.__wasm_bindgen_func_elem_7286(arg0, arg1);
501
+ function __wasm_bindgen_func_elem_8740(arg0, arg1, arg2) {
502
+ wasm$1.__wasm_bindgen_func_elem_8740(arg0, arg1, addHeapObject(arg2));
503
503
  }
504
504
 
505
- function __wasm_bindgen_func_elem_7558(arg0, arg1, arg2, arg3) {
506
- wasm$1.__wasm_bindgen_func_elem_7558(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
505
+ function __wasm_bindgen_func_elem_7644(arg0, arg1, arg2, arg3) {
506
+ wasm$1.__wasm_bindgen_func_elem_7644(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
507
507
  }
508
508
 
509
509
  const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
@@ -19023,10 +19023,6 @@ function __wbg_get_imports(memory) {
19023
19023
  const ret = typeof(val) === 'object' && val !== null;
19024
19024
  return ret;
19025
19025
  };
19026
- imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
19027
- const ret = typeof(getObject(arg0)) === 'string';
19028
- return ret;
19029
- };
19030
19026
  imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
19031
19027
  const ret = getObject(arg0) === undefined;
19032
19028
  return ret;
@@ -19108,10 +19104,6 @@ function __wbg_get_imports(memory) {
19108
19104
  const ret = clearTimeout(takeObject(arg0));
19109
19105
  return addHeapObject(ret);
19110
19106
  };
19111
- imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
19112
- const ret = getObject(arg0).crypto;
19113
- return addHeapObject(ret);
19114
- };
19115
19107
  imports.wbg.__wbg_data_ee4306d069f24f2d = function(arg0) {
19116
19108
  const ret = getObject(arg0).data;
19117
19109
  return addHeapObject(ret);
@@ -19155,8 +19147,8 @@ function __wbg_get_imports(memory) {
19155
19147
  const ret = Array.from(getObject(arg0));
19156
19148
  return addHeapObject(ret);
19157
19149
  };
19158
- imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
19159
- getObject(arg0).getRandomValues(getObject(arg1));
19150
+ imports.wbg.__wbg_getRandomValues_90e56bff4f3b89fb = function() { return handleError(function (arg0) {
19151
+ globalThis.crypto.getRandomValues(getObject(arg0));
19160
19152
  }, arguments) };
19161
19153
  imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
19162
19154
  const ret = getObject(arg0)[arg1 >>> 0];
@@ -19246,13 +19238,9 @@ function __wbg_get_imports(memory) {
19246
19238
  const ret = getObject(arg0).length;
19247
19239
  return ret;
19248
19240
  };
19249
- imports.wbg.__wbg_log_b88efcc0ed7757a6 = function(arg0, arg1) {
19241
+ imports.wbg.__wbg_log_e77f2654b14580d9 = function(arg0, arg1) {
19250
19242
  console.log(getStringFromWasm0(arg0, arg1));
19251
19243
  };
19252
- imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
19253
- const ret = getObject(arg0).msCrypto;
19254
- return addHeapObject(ret);
19255
- };
19256
19244
  imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
19257
19245
  const ret = new Object();
19258
19246
  return addHeapObject(ret);
@@ -19268,7 +19256,7 @@ function __wbg_get_imports(memory) {
19268
19256
  const a = state0.a;
19269
19257
  state0.a = 0;
19270
19258
  try {
19271
- return __wasm_bindgen_func_elem_7558(a, state0.b, arg0, arg1);
19259
+ return __wasm_bindgen_func_elem_7644(a, state0.b, arg0, arg1);
19272
19260
  } finally {
19273
19261
  state0.a = a;
19274
19262
  }
@@ -19335,10 +19323,6 @@ function __wbg_get_imports(memory) {
19335
19323
  const ret = getObject(arg0).next;
19336
19324
  return addHeapObject(ret);
19337
19325
  };
19338
- imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
19339
- const ret = getObject(arg0).node;
19340
- return addHeapObject(ret);
19341
- };
19342
19326
  imports.wbg.__wbg_of_3192b3b018b8f660 = function(arg0, arg1, arg2) {
19343
19327
  const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
19344
19328
  return addHeapObject(ret);
@@ -19356,10 +19340,6 @@ function __wbg_get_imports(memory) {
19356
19340
  imports.wbg.__wbg_postMessage_f34857ca078c8536 = function() { return handleError(function (arg0, arg1) {
19357
19341
  getObject(arg0).postMessage(getObject(arg1));
19358
19342
  }, arguments) };
19359
- imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
19360
- const ret = getObject(arg0).process;
19361
- return addHeapObject(ret);
19362
- };
19363
19343
  imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
19364
19344
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
19365
19345
  };
@@ -19378,9 +19358,6 @@ function __wbg_get_imports(memory) {
19378
19358
  imports.wbg.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
19379
19359
  queueMicrotask(getObject(arg0));
19380
19360
  };
19381
- imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
19382
- getObject(arg0).randomFillSync(takeObject(arg1));
19383
- }, arguments) };
19384
19361
  imports.wbg.__wbg_recordciphertext_new = function(arg0) {
19385
19362
  const ret = RecordCiphertext.__wrap(arg0);
19386
19363
  return addHeapObject(ret);
@@ -19393,10 +19370,6 @@ function __wbg_get_imports(memory) {
19393
19370
  const ret = RecordPlaintext.__wrap(arg0);
19394
19371
  return addHeapObject(ret);
19395
19372
  };
19396
- imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
19397
- const ret = module.require;
19398
- return addHeapObject(ret);
19399
- }, arguments) };
19400
19373
  imports.wbg.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
19401
19374
  const ret = Promise.resolve(getObject(arg0));
19402
19375
  return addHeapObject(ret);
@@ -19455,7 +19428,7 @@ function __wbg_get_imports(memory) {
19455
19428
  const ret = Signature.__wrap(arg0);
19456
19429
  return addHeapObject(ret);
19457
19430
  };
19458
- imports.wbg.__wbg_spawnWorker_6ede797d507e374c = function(arg0, arg1, arg2, arg3) {
19431
+ imports.wbg.__wbg_spawnWorker_77887968658d2179 = function(arg0, arg1, arg2, arg3) {
19459
19432
  const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
19460
19433
  return addHeapObject(ret);
19461
19434
  };
@@ -19494,10 +19467,6 @@ function __wbg_get_imports(memory) {
19494
19467
  const ret = JSON.stringify(getObject(arg0));
19495
19468
  return addHeapObject(ret);
19496
19469
  }, arguments) };
19497
- imports.wbg.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
19498
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
19499
- return addHeapObject(ret);
19500
- };
19501
19470
  imports.wbg.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
19502
19471
  const ret = getObject(arg0).then(getObject(arg1));
19503
19472
  return addHeapObject(ret);
@@ -19533,10 +19502,6 @@ function __wbg_get_imports(memory) {
19533
19502
  const ret = VerifyingKey.__wrap(arg0);
19534
19503
  return addHeapObject(ret);
19535
19504
  };
19536
- imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
19537
- const ret = getObject(arg0).versions;
19538
- return addHeapObject(ret);
19539
- };
19540
19505
  imports.wbg.__wbg_waitAsync_2c4b633ebb554615 = function() {
19541
19506
  const ret = Atomics.waitAsync;
19542
19507
  return addHeapObject(ret);
@@ -19545,11 +19510,21 @@ function __wbg_get_imports(memory) {
19545
19510
  const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
19546
19511
  return addHeapObject(ret);
19547
19512
  };
19513
+ imports.wbg.__wbindgen_cast_073ddd2b87fab8ab = function(arg0, arg1) {
19514
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [], shim_idx: 467, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19515
+ const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7371, __wasm_bindgen_func_elem_7372);
19516
+ return addHeapObject(ret);
19517
+ };
19548
19518
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
19549
19519
  // Cast intrinsic for `Ref(String) -> Externref`.
19550
19520
  const ret = getStringFromWasm0(arg0, arg1);
19551
19521
  return addHeapObject(ret);
19552
19522
  };
19523
+ imports.wbg.__wbindgen_cast_263b62405be3c669 = function(arg0, arg1) {
19524
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 361, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19525
+ const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7371, __wasm_bindgen_func_elem_8740);
19526
+ return addHeapObject(ret);
19527
+ };
19553
19528
  imports.wbg.__wbindgen_cast_2ddd8a25ff58642a = function(arg0, arg1) {
19554
19529
  // Cast intrinsic for `I128 -> Externref`.
19555
19530
  const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
@@ -19560,9 +19535,9 @@ function __wbg_get_imports(memory) {
19560
19535
  const ret = BigInt.asUintN(64, arg0);
19561
19536
  return addHeapObject(ret);
19562
19537
  };
19563
- imports.wbg.__wbindgen_cast_711d7deea8fc39ca = function(arg0, arg1) {
19564
- // Cast intrinsic for `Closure(Closure { dtor_idx: 356, function: Function { arguments: [Externref], shim_idx: 357, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19565
- const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7285, __wasm_bindgen_func_elem_8655);
19538
+ imports.wbg.__wbindgen_cast_5cd376b701f56c0e = function(arg0, arg1) {
19539
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 360, function: Function { arguments: [Externref], shim_idx: 361, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19540
+ const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7371, __wasm_bindgen_func_elem_8740);
19566
19541
  return addHeapObject(ret);
19567
19542
  };
19568
19543
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
@@ -19570,21 +19545,6 @@ function __wbg_get_imports(memory) {
19570
19545
  const ret = arg0;
19571
19546
  return addHeapObject(ret);
19572
19547
  };
19573
- imports.wbg.__wbindgen_cast_cada7727142cd213 = function(arg0, arg1) {
19574
- // Cast intrinsic for `Closure(Closure { dtor_idx: 356, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 357, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19575
- const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7285, __wasm_bindgen_func_elem_8655);
19576
- return addHeapObject(ret);
19577
- };
19578
- imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
19579
- // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
19580
- const ret = getArrayU8FromWasm0(arg0, arg1);
19581
- return addHeapObject(ret);
19582
- };
19583
- imports.wbg.__wbindgen_cast_cdf07f87b2615f8c = function(arg0, arg1) {
19584
- // Cast intrinsic for `Closure(Closure { dtor_idx: 356, function: Function { arguments: [], shim_idx: 462, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
19585
- const ret = makeMutClosure(arg0, arg1, wasm$1.__wasm_bindgen_func_elem_7285, __wasm_bindgen_func_elem_7286);
19586
- return addHeapObject(ret);
19587
- };
19588
19548
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
19589
19549
  // Cast intrinsic for `F64 -> Externref`.
19590
19550
  const ret = arg0;