@cartridge/controller-wasm 0.3.5 → 0.3.7

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.
@@ -15,9 +15,7 @@ function getUint8ArrayMemory0() {
15
15
  return cachedUint8ArrayMemory0;
16
16
  }
17
17
 
18
- const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
19
-
20
- let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
18
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
21
19
 
22
20
  cachedTextDecoder.decode();
23
21
 
@@ -26,7 +24,7 @@ let numBytesDecoded = 0;
26
24
  function decodeText(ptr, len) {
27
25
  numBytesDecoded += len;
28
26
  if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
29
- cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
27
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
30
28
  cachedTextDecoder.decode();
31
29
  numBytesDecoded = len;
32
30
  }
@@ -38,7 +36,7 @@ function getStringFromWasm0(ptr, len) {
38
36
  return decodeText(ptr, len);
39
37
  }
40
38
 
41
- const heap = new Array(128).fill(undefined);
39
+ let heap = new Array(128).fill(undefined);
42
40
 
43
41
  heap.push(undefined, null, true, false);
44
42
 
@@ -57,22 +55,18 @@ function getObject(idx) { return heap[idx]; }
57
55
 
58
56
  let WASM_VECTOR_LEN = 0;
59
57
 
60
- const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
61
-
62
- const cachedTextEncoder = new lTextEncoder('utf-8');
58
+ const cachedTextEncoder = new TextEncoder();
63
59
 
64
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
65
- ? function (arg, view) {
66
- return cachedTextEncoder.encodeInto(arg, view);
60
+ if (!('encodeInto' in cachedTextEncoder)) {
61
+ cachedTextEncoder.encodeInto = function (arg, view) {
62
+ const buf = cachedTextEncoder.encode(arg);
63
+ view.set(buf);
64
+ return {
65
+ read: arg.length,
66
+ written: buf.length
67
+ };
68
+ }
67
69
  }
68
- : function (arg, view) {
69
- const buf = cachedTextEncoder.encode(arg);
70
- view.set(buf);
71
- return {
72
- read: arg.length,
73
- written: buf.length
74
- };
75
- });
76
70
 
77
71
  function passStringToWasm0(arg, malloc, realloc) {
78
72
 
@@ -103,7 +97,7 @@ function passStringToWasm0(arg, malloc, realloc) {
103
97
  }
104
98
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
105
99
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
106
- const ret = encodeString(arg, view);
100
+ const ret = cachedTextEncoder.encodeInto(arg, view);
107
101
 
108
102
  offset += ret.written;
109
103
  ptr = realloc(ptr, len, offset, 1) >>> 0;
@@ -151,59 +145,6 @@ function getArrayU8FromWasm0(ptr, len) {
151
145
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
152
146
  }
153
147
 
154
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
155
- ? { register: () => {}, unregister: () => {} }
156
- : new FinalizationRegistry(state => {
157
- wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b)
158
- });
159
-
160
- function makeClosure(arg0, arg1, dtor, f) {
161
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
162
- const real = (...args) => {
163
- // First up with a closure we increment the internal reference
164
- // count. This ensures that the Rust closure environment won't
165
- // be deallocated while we're invoking it.
166
- state.cnt++;
167
- try {
168
- return f(state.a, state.b, ...args);
169
- } finally {
170
- if (--state.cnt === 0) {
171
- wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b);
172
- state.a = 0;
173
- CLOSURE_DTORS.unregister(state);
174
- }
175
- }
176
- };
177
- real.original = state;
178
- CLOSURE_DTORS.register(real, state, state);
179
- return real;
180
- }
181
-
182
- function makeMutClosure(arg0, arg1, dtor, f) {
183
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
184
- const real = (...args) => {
185
- // First up with a closure we increment the internal reference
186
- // count. This ensures that the Rust closure environment won't
187
- // be deallocated while we're invoking it.
188
- state.cnt++;
189
- const a = state.a;
190
- state.a = 0;
191
- try {
192
- return f(a, state.b, ...args);
193
- } finally {
194
- if (--state.cnt === 0) {
195
- wasm.__wbindgen_export_4.get(state.dtor)(a, state.b);
196
- CLOSURE_DTORS.unregister(state);
197
- } else {
198
- state.a = a;
199
- }
200
- }
201
- };
202
- real.original = state;
203
- CLOSURE_DTORS.register(real, state, state);
204
- return real;
205
- }
206
-
207
148
  function debugString(val) {
208
149
  // primitive types
209
150
  const type = typeof val;
@@ -269,6 +210,62 @@ function debugString(val) {
269
210
  return className;
270
211
  }
271
212
 
213
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
214
+ ? { register: () => {}, unregister: () => {} }
215
+ : new FinalizationRegistry(
216
+ state => {
217
+ wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b);
218
+ }
219
+ );
220
+
221
+ function makeMutClosure(arg0, arg1, dtor, f) {
222
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
223
+ const real = (...args) => {
224
+
225
+ // First up with a closure we increment the internal reference
226
+ // count. This ensures that the Rust closure environment won't
227
+ // be deallocated while we're invoking it.
228
+ state.cnt++;
229
+ const a = state.a;
230
+ state.a = 0;
231
+ try {
232
+ return f(a, state.b, ...args);
233
+ } finally {
234
+ if (--state.cnt === 0) {
235
+ wasm.__wbindgen_export_4.get(state.dtor)(a, state.b);
236
+ CLOSURE_DTORS.unregister(state);
237
+ } else {
238
+ state.a = a;
239
+ }
240
+ }
241
+ };
242
+ real.original = state;
243
+ CLOSURE_DTORS.register(real, state, state);
244
+ return real;
245
+ }
246
+
247
+ function makeClosure(arg0, arg1, dtor, f) {
248
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
249
+ const real = (...args) => {
250
+
251
+ // First up with a closure we increment the internal reference
252
+ // count. This ensures that the Rust closure environment won't
253
+ // be deallocated while we're invoking it.
254
+ state.cnt++;
255
+ try {
256
+ return f(state.a, state.b, ...args);
257
+ } finally {
258
+ if (--state.cnt === 0) {
259
+ wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b); state.a = 0;
260
+ CLOSURE_DTORS.unregister(state);
261
+ }
262
+ }
263
+ };
264
+ real.original = state;
265
+ CLOSURE_DTORS.register(real, state, state);
266
+ return real;
267
+ }
268
+
272
269
  function passArrayJsValueToWasm0(array, malloc) {
273
270
  const ptr = malloc(array.length * 4, 4) >>> 0;
274
271
  const mem = getDataViewMemory0();
@@ -278,15 +275,6 @@ function passArrayJsValueToWasm0(array, malloc) {
278
275
  WASM_VECTOR_LEN = array.length;
279
276
  return ptr;
280
277
  }
281
- /**
282
- * @param {Signer} signer
283
- * @returns {JsFelt}
284
- */
285
- export function signerToGuid(signer) {
286
- const ret = wasm.signerToGuid(addHeapObject(signer));
287
- return takeObject(ret);
288
- }
289
-
290
278
  /**
291
279
  * Computes the Starknet contract address for a controller account without needing a full instance.
292
280
  *
@@ -320,24 +308,48 @@ export function computeAccountAddress(class_hash, owner, salt) {
320
308
  }
321
309
  }
322
310
 
323
- function __wbg_adapter_38(arg0, arg1, arg2) {
324
- wasm.__wbindgen_export_5(arg0, arg1, addHeapObject(arg2));
311
+ /**
312
+ * Subscribes to the creation of a session for a given controller, session_key_guid and cartridge api url.
313
+ * The goal of this function is to know from any place when the register session flow has been completed, and to
314
+ * get the authorization.
315
+ * @param {JsFelt} session_key_guid
316
+ * @param {string} cartridge_api_url
317
+ * @returns {Promise<JsSubscribeSessionResult>}
318
+ */
319
+ export function subscribeCreateSession(session_key_guid, cartridge_api_url) {
320
+ const ptr0 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
321
+ const len0 = WASM_VECTOR_LEN;
322
+ const ret = wasm.subscribeCreateSession(addHeapObject(session_key_guid), ptr0, len0);
323
+ return takeObject(ret);
324
+ }
325
+
326
+ /**
327
+ * @param {Signer} signer
328
+ * @returns {JsFelt}
329
+ */
330
+ export function signerToGuid(signer) {
331
+ const ret = wasm.signerToGuid(addHeapObject(signer));
332
+ return takeObject(ret);
333
+ }
334
+
335
+ function __wbg_adapter_8(arg0, arg1) {
336
+ wasm.__wbindgen_export_5(arg0, arg1);
325
337
  }
326
338
 
327
- function __wbg_adapter_41(arg0, arg1) {
328
- wasm.__wbindgen_export_6(arg0, arg1);
339
+ function __wbg_adapter_13(arg0, arg1, arg2) {
340
+ wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
329
341
  }
330
342
 
331
- function __wbg_adapter_44(arg0, arg1, arg2) {
343
+ function __wbg_adapter_16(arg0, arg1, arg2) {
332
344
  wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
333
345
  }
334
346
 
335
- function __wbg_adapter_282(arg0, arg1, arg2, arg3) {
347
+ function __wbg_adapter_257(arg0, arg1, arg2, arg3) {
336
348
  wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
337
349
  }
338
350
 
339
351
  /**
340
- * @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 64 | 65 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141}
352
+ * @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 64 | 65 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143}
341
353
  */
342
354
  export const ErrorCode = Object.freeze({
343
355
  StarknetFailedToReceiveTransaction: 1, "1": "StarknetFailedToReceiveTransaction",
@@ -408,6 +420,8 @@ export const ErrorCode = Object.freeze({
408
420
  TransactionTimeout: 139, "139": "TransactionTimeout",
409
421
  ConversionError: 140, "140": "ConversionError",
410
422
  InvalidChainId: 141, "141": "InvalidChainId",
423
+ SessionRefreshRequired: 142, "142": "SessionRefreshRequired",
424
+ ManualExecutionRequired: 143, "143": "ManualExecutionRequired",
411
425
  });
412
426
 
413
427
  const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
@@ -447,42 +461,29 @@ export class CartridgeAccount {
447
461
  * # Parameters
448
462
  * - `app_id`: Application identifier.
449
463
  * - `rpc_url`: The URL of the JSON-RPC endpoint.
450
- * - `chain_id`: Identifier of the blockchain network to interact with.
451
464
  * - `address`: The blockchain address associated with the account.
452
465
  * - `username`: Username associated with the account.
453
466
  * - `owner`: A Owner struct containing the owner signer and associated data.
454
467
  * @param {string} app_id
455
468
  * @param {JsFelt} class_hash
456
469
  * @param {string} rpc_url
457
- * @param {JsFelt} chain_id
458
470
  * @param {JsFelt} address
459
471
  * @param {string} username
460
472
  * @param {Owner} owner
461
473
  * @param {string} cartridge_api_url
462
- * @returns {CartridgeAccountWithMeta}
474
+ * @returns {Promise<CartridgeAccountWithMeta>}
463
475
  */
464
- static new(app_id, class_hash, rpc_url, chain_id, address, username, owner, cartridge_api_url) {
465
- try {
466
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
467
- const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
468
- const len0 = WASM_VECTOR_LEN;
469
- const ptr1 = passStringToWasm0(rpc_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
470
- const len1 = WASM_VECTOR_LEN;
471
- const ptr2 = passStringToWasm0(username, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
472
- const len2 = WASM_VECTOR_LEN;
473
- const ptr3 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
474
- const len3 = WASM_VECTOR_LEN;
475
- wasm.cartridgeaccount_new(retptr, ptr0, len0, addHeapObject(class_hash), ptr1, len1, addHeapObject(chain_id), addHeapObject(address), ptr2, len2, addHeapObject(owner), ptr3, len3);
476
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
477
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
478
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
479
- if (r2) {
480
- throw takeObject(r1);
481
- }
482
- return CartridgeAccountWithMeta.__wrap(r0);
483
- } finally {
484
- wasm.__wbindgen_add_to_stack_pointer(16);
485
- }
476
+ static new(app_id, class_hash, rpc_url, address, username, owner, cartridge_api_url) {
477
+ const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
478
+ const len0 = WASM_VECTOR_LEN;
479
+ const ptr1 = passStringToWasm0(rpc_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
480
+ const len1 = WASM_VECTOR_LEN;
481
+ const ptr2 = passStringToWasm0(username, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
482
+ const len2 = WASM_VECTOR_LEN;
483
+ const ptr3 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
484
+ const len3 = WASM_VECTOR_LEN;
485
+ const ret = wasm.cartridgeaccount_new(ptr0, len0, addHeapObject(class_hash), ptr1, len1, addHeapObject(address), ptr2, len2, addHeapObject(owner), ptr3, len3);
486
+ return takeObject(ret);
486
487
  }
487
488
  /**
488
489
  * Creates a new `CartridgeAccount` instance with a randomly generated Starknet signer.
@@ -491,62 +492,38 @@ export class CartridgeAccount {
491
492
  * # Parameters
492
493
  * - `app_id`: Application identifier.
493
494
  * - `rpc_url`: The URL of the JSON-RPC endpoint.
494
- * - `chain_id`: Identifier of the blockchain network to interact with.
495
495
  * - `username`: Username associated with the account.
496
496
  * @param {string} app_id
497
497
  * @param {JsFelt} class_hash
498
498
  * @param {string} rpc_url
499
- * @param {JsFelt} chain_id
500
499
  * @param {string} username
501
500
  * @param {string} cartridge_api_url
502
- * @returns {CartridgeAccountWithMeta}
501
+ * @returns {Promise<CartridgeAccountWithMeta>}
503
502
  */
504
- static newHeadless(app_id, class_hash, rpc_url, chain_id, username, cartridge_api_url) {
505
- try {
506
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
507
- const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
508
- const len0 = WASM_VECTOR_LEN;
509
- const ptr1 = passStringToWasm0(rpc_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
510
- const len1 = WASM_VECTOR_LEN;
511
- const ptr2 = passStringToWasm0(username, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
512
- const len2 = WASM_VECTOR_LEN;
513
- const ptr3 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
514
- const len3 = WASM_VECTOR_LEN;
515
- wasm.cartridgeaccount_newHeadless(retptr, ptr0, len0, addHeapObject(class_hash), ptr1, len1, addHeapObject(chain_id), ptr2, len2, ptr3, len3);
516
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
517
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
518
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
519
- if (r2) {
520
- throw takeObject(r1);
521
- }
522
- return CartridgeAccountWithMeta.__wrap(r0);
523
- } finally {
524
- wasm.__wbindgen_add_to_stack_pointer(16);
525
- }
503
+ static newHeadless(app_id, class_hash, rpc_url, username, cartridge_api_url) {
504
+ const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
505
+ const len0 = WASM_VECTOR_LEN;
506
+ const ptr1 = passStringToWasm0(rpc_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
507
+ const len1 = WASM_VECTOR_LEN;
508
+ const ptr2 = passStringToWasm0(username, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
509
+ const len2 = WASM_VECTOR_LEN;
510
+ const ptr3 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
511
+ const len3 = WASM_VECTOR_LEN;
512
+ const ret = wasm.cartridgeaccount_newHeadless(ptr0, len0, addHeapObject(class_hash), ptr1, len1, ptr2, len2, ptr3, len3);
513
+ return takeObject(ret);
526
514
  }
527
515
  /**
528
516
  * @param {string} app_id
529
517
  * @param {string} cartridge_api_url
530
- * @returns {CartridgeAccountWithMeta | undefined}
518
+ * @returns {Promise<CartridgeAccountWithMeta | undefined>}
531
519
  */
532
520
  static fromStorage(app_id, cartridge_api_url) {
533
- try {
534
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
535
- const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
536
- const len0 = WASM_VECTOR_LEN;
537
- const ptr1 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
538
- const len1 = WASM_VECTOR_LEN;
539
- wasm.cartridgeaccount_fromStorage(retptr, ptr0, len0, ptr1, len1);
540
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
541
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
542
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
543
- if (r2) {
544
- throw takeObject(r1);
545
- }
546
- return r0 === 0 ? undefined : CartridgeAccountWithMeta.__wrap(r0);
547
- } finally {
548
- wasm.__wbindgen_add_to_stack_pointer(16);
549
- }
521
+ const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
522
+ const len0 = WASM_VECTOR_LEN;
523
+ const ptr1 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
524
+ const len1 = WASM_VECTOR_LEN;
525
+ const ret = wasm.cartridgeaccount_fromStorage(ptr0, len0, ptr1, len1);
526
+ return takeObject(ret);
550
527
  }
551
528
  /**
552
529
  * @returns {Promise<void>}
@@ -691,6 +668,17 @@ export class CartridgeAccount {
691
668
  const ret = wasm.cartridgeaccount_executeFromOutsideV3(this.__wbg_ptr, ptr0, len0, isLikeNone(fee_source) ? 0 : addHeapObject(fee_source));
692
669
  return takeObject(ret);
693
670
  }
671
+ /**
672
+ * @param {JsCall[]} calls
673
+ * @param {JsFeeSource | null} [fee_source]
674
+ * @returns {Promise<any>}
675
+ */
676
+ trySessionExecute(calls, fee_source) {
677
+ const ptr0 = passArrayJsValueToWasm0(calls, wasm.__wbindgen_export_0);
678
+ const len0 = WASM_VECTOR_LEN;
679
+ const ret = wasm.cartridgeaccount_trySessionExecute(this.__wbg_ptr, ptr0, len0, isLikeNone(fee_source) ? 0 : addHeapObject(fee_source));
680
+ return takeObject(ret);
681
+ }
694
682
  /**
695
683
  * @param {Policy[]} policies
696
684
  * @param {JsFelt | null} [public_key]
@@ -782,17 +770,6 @@ export class CartridgeAccount {
782
770
  const ret = wasm.cartridgeaccount_hasAuthorizedPoliciesForMessage(this.__wbg_ptr, ptr0, len0);
783
771
  return takeObject(ret);
784
772
  }
785
- /**
786
- * @param {string} controller_id
787
- * @param {JsFelt} session_key_guid
788
- * @returns {Promise<JsSubscribeSessionResult>}
789
- */
790
- subscribeCreateSession(controller_id, session_key_guid) {
791
- const ptr0 = passStringToWasm0(controller_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
792
- const len0 = WASM_VECTOR_LEN;
793
- const ret = wasm.cartridgeaccount_subscribeCreateSession(this.__wbg_ptr, ptr0, len0, addHeapObject(session_key_guid));
794
- return takeObject(ret);
795
- }
796
773
  /**
797
774
  * Signs an OutsideExecution V3 transaction and returns both the OutsideExecution object and its signature.
798
775
  *
@@ -811,6 +788,7 @@ export class CartridgeAccount {
811
788
  return takeObject(ret);
812
789
  }
813
790
  }
791
+ if (Symbol.dispose) CartridgeAccount.prototype[Symbol.dispose] = CartridgeAccount.prototype.free;
814
792
 
815
793
  const CartridgeAccountMetaFinalization = (typeof FinalizationRegistry === 'undefined')
816
794
  ? { register: () => {}, unregister: () => {} }
@@ -978,6 +956,7 @@ export class CartridgeAccountMeta {
978
956
  return takeObject(ret);
979
957
  }
980
958
  }
959
+ if (Symbol.dispose) CartridgeAccountMeta.prototype[Symbol.dispose] = CartridgeAccountMeta.prototype.free;
981
960
 
982
961
  const CartridgeAccountWithMetaFinalization = (typeof FinalizationRegistry === 'undefined')
983
962
  ? { register: () => {}, unregister: () => {} }
@@ -1026,6 +1005,7 @@ export class CartridgeAccountWithMeta {
1026
1005
  return CartridgeAccount.__wrap(ret);
1027
1006
  }
1028
1007
  }
1008
+ if (Symbol.dispose) CartridgeAccountWithMeta.prototype[Symbol.dispose] = CartridgeAccountWithMeta.prototype.free;
1029
1009
 
1030
1010
  const ControllerFactoryFinalization = (typeof FinalizationRegistry === 'undefined')
1031
1011
  ? { register: () => {}, unregister: () => {} }
@@ -1047,33 +1027,21 @@ export class ControllerFactory {
1047
1027
  /**
1048
1028
  * @param {string} app_id
1049
1029
  * @param {string} cartridge_api_url
1050
- * @returns {CartridgeAccountWithMeta | undefined}
1030
+ * @returns {Promise<CartridgeAccountWithMeta | undefined>}
1051
1031
  */
1052
1032
  static fromStorage(app_id, cartridge_api_url) {
1053
- try {
1054
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1055
- const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1056
- const len0 = WASM_VECTOR_LEN;
1057
- const ptr1 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1058
- const len1 = WASM_VECTOR_LEN;
1059
- wasm.cartridgeaccount_fromStorage(retptr, ptr0, len0, ptr1, len1);
1060
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1061
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1062
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1063
- if (r2) {
1064
- throw takeObject(r1);
1065
- }
1066
- return r0 === 0 ? undefined : CartridgeAccountWithMeta.__wrap(r0);
1067
- } finally {
1068
- wasm.__wbindgen_add_to_stack_pointer(16);
1069
- }
1033
+ const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1034
+ const len0 = WASM_VECTOR_LEN;
1035
+ const ptr1 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1036
+ const len1 = WASM_VECTOR_LEN;
1037
+ const ret = wasm.controllerfactory_fromStorage(ptr0, len0, ptr1, len1);
1038
+ return takeObject(ret);
1070
1039
  }
1071
1040
  /**
1072
1041
  * @param {string} app_id
1073
1042
  * @param {string} username
1074
1043
  * @param {JsFelt} class_hash
1075
1044
  * @param {string} rpc_url
1076
- * @param {JsFelt} chain_id
1077
1045
  * @param {JsFelt} address
1078
1046
  * @param {Owner} owner
1079
1047
  * @param {string} cartridge_api_url
@@ -1081,7 +1049,7 @@ export class ControllerFactory {
1081
1049
  * @param {boolean | null} [is_controller_registered]
1082
1050
  * @returns {Promise<LoginResult>}
1083
1051
  */
1084
- static login(app_id, username, class_hash, rpc_url, chain_id, address, owner, cartridge_api_url, session_expires_at_s, is_controller_registered) {
1052
+ static login(app_id, username, class_hash, rpc_url, address, owner, cartridge_api_url, session_expires_at_s, is_controller_registered) {
1085
1053
  const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1086
1054
  const len0 = WASM_VECTOR_LEN;
1087
1055
  const ptr1 = passStringToWasm0(username, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -1090,7 +1058,7 @@ export class ControllerFactory {
1090
1058
  const len2 = WASM_VECTOR_LEN;
1091
1059
  const ptr3 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1092
1060
  const len3 = WASM_VECTOR_LEN;
1093
- const ret = wasm.controllerfactory_login(ptr0, len0, ptr1, len1, addHeapObject(class_hash), ptr2, len2, addHeapObject(chain_id), addHeapObject(address), addHeapObject(owner), ptr3, len3, session_expires_at_s, isLikeNone(is_controller_registered) ? 0xFFFFFF : is_controller_registered ? 1 : 0);
1061
+ const ret = wasm.controllerfactory_login(ptr0, len0, ptr1, len1, addHeapObject(class_hash), ptr2, len2, addHeapObject(address), addHeapObject(owner), ptr3, len3, session_expires_at_s, isLikeNone(is_controller_registered) ? 0xFFFFFF : is_controller_registered ? 1 : 0);
1094
1062
  return takeObject(ret);
1095
1063
  }
1096
1064
  /**
@@ -1099,13 +1067,12 @@ export class ControllerFactory {
1099
1067
  * @param {string} username
1100
1068
  * @param {JsFelt} class_hash
1101
1069
  * @param {string} rpc_url
1102
- * @param {JsFelt} chain_id
1103
1070
  * @param {JsFelt} address
1104
1071
  * @param {Owner} owner
1105
1072
  * @param {string} cartridge_api_url
1106
1073
  * @returns {Promise<CartridgeAccountWithMeta>}
1107
1074
  */
1108
- static apiLogin(app_id, username, class_hash, rpc_url, chain_id, address, owner, cartridge_api_url) {
1075
+ static apiLogin(app_id, username, class_hash, rpc_url, address, owner, cartridge_api_url) {
1109
1076
  const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1110
1077
  const len0 = WASM_VECTOR_LEN;
1111
1078
  const ptr1 = passStringToWasm0(username, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -1114,10 +1081,11 @@ export class ControllerFactory {
1114
1081
  const len2 = WASM_VECTOR_LEN;
1115
1082
  const ptr3 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1116
1083
  const len3 = WASM_VECTOR_LEN;
1117
- const ret = wasm.controllerfactory_apiLogin(ptr0, len0, ptr1, len1, addHeapObject(class_hash), ptr2, len2, addHeapObject(chain_id), addHeapObject(address), addHeapObject(owner), ptr3, len3);
1084
+ const ret = wasm.controllerfactory_apiLogin(ptr0, len0, ptr1, len1, addHeapObject(class_hash), ptr2, len2, addHeapObject(address), addHeapObject(owner), ptr3, len3);
1118
1085
  return takeObject(ret);
1119
1086
  }
1120
1087
  }
1088
+ if (Symbol.dispose) ControllerFactory.prototype[Symbol.dispose] = ControllerFactory.prototype.free;
1121
1089
 
1122
1090
  const JsControllerErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1123
1091
  ? { register: () => {}, unregister: () => {} }
@@ -1212,6 +1180,7 @@ export class JsControllerError {
1212
1180
  wasm.__wbg_set_jscontrollererror_data(this.__wbg_ptr, ptr0, len0);
1213
1181
  }
1214
1182
  }
1183
+ if (Symbol.dispose) JsControllerError.prototype[Symbol.dispose] = JsControllerError.prototype.free;
1215
1184
 
1216
1185
  const LoginResultFinalization = (typeof FinalizationRegistry === 'undefined')
1217
1186
  ? { register: () => {}, unregister: () => {} }
@@ -1247,8 +1216,9 @@ export class LoginResult {
1247
1216
  return takeObject(ret);
1248
1217
  }
1249
1218
  }
1219
+ if (Symbol.dispose) LoginResult.prototype[Symbol.dispose] = LoginResult.prototype.free;
1250
1220
 
1251
- export function __wbg_Error_0497d5bdba9362e5(arg0, arg1) {
1221
+ export function __wbg_Error_e17e777aac105295(arg0, arg1) {
1252
1222
  const ret = Error(getStringFromWasm0(arg0, arg1));
1253
1223
  return addHeapObject(ret);
1254
1224
  };
@@ -1261,39 +1231,34 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
1261
1231
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1262
1232
  };
1263
1233
 
1264
- export function __wbg_abort_18ba44d46e13d7fe(arg0) {
1234
+ export function __wbg_abort_67e1b49bf6614565(arg0) {
1265
1235
  getObject(arg0).abort();
1266
1236
  };
1267
1237
 
1268
- export function __wbg_abort_4198a1129c47f21a(arg0, arg1) {
1238
+ export function __wbg_abort_d830bf2e9aa6ec5b(arg0, arg1) {
1269
1239
  getObject(arg0).abort(getObject(arg1));
1270
1240
  };
1271
1241
 
1272
- export function __wbg_addEventListener_011de4ce408fd067() { return handleError(function (arg0, arg1, arg2, arg3) {
1242
+ export function __wbg_addEventListener_775911544ac9d643() { return handleError(function (arg0, arg1, arg2, arg3) {
1273
1243
  getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1274
1244
  }, arguments) };
1275
1245
 
1276
- export function __wbg_append_0342728346e47425() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1246
+ export function __wbg_append_72a3c0addd2bce38() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1277
1247
  getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1278
1248
  }, arguments) };
1279
1249
 
1280
- export function __wbg_arrayBuffer_d58b858456021d7f() { return handleError(function (arg0) {
1250
+ export function __wbg_arrayBuffer_9c99b8e2809e8cbb() { return handleError(function (arg0) {
1281
1251
  const ret = getObject(arg0).arrayBuffer();
1282
1252
  return addHeapObject(ret);
1283
1253
  }, arguments) };
1284
1254
 
1285
- export function __wbg_buffer_a1a27a0dfa70165d(arg0) {
1286
- const ret = getObject(arg0).buffer;
1287
- return addHeapObject(ret);
1288
- };
1289
-
1290
- export function __wbg_call_f2db6205e5c51dc8() { return handleError(function (arg0, arg1, arg2) {
1291
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1255
+ export function __wbg_call_13410aac570ffff7() { return handleError(function (arg0, arg1) {
1256
+ const ret = getObject(arg0).call(getObject(arg1));
1292
1257
  return addHeapObject(ret);
1293
1258
  }, arguments) };
1294
1259
 
1295
- export function __wbg_call_fbe8be8bf6436ce5() { return handleError(function (arg0, arg1) {
1296
- const ret = getObject(arg0).call(getObject(arg1));
1260
+ export function __wbg_call_a5400b25a865cfd8() { return handleError(function (arg0, arg1, arg2) {
1261
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1297
1262
  return addHeapObject(ret);
1298
1263
  }, arguments) };
1299
1264
 
@@ -1307,16 +1272,16 @@ export function __wbg_clearTimeout_6222fede17abcb1a(arg0) {
1307
1272
  return addHeapObject(ret);
1308
1273
  };
1309
1274
 
1310
- export function __wbg_clear_83ec92953c4a8b85() { return handleError(function (arg0) {
1275
+ export function __wbg_clear_376ed5fc63920fe9() { return handleError(function (arg0) {
1311
1276
  getObject(arg0).clear();
1312
1277
  }, arguments) };
1313
1278
 
1314
- export function __wbg_create_9bce3f35d308d4db() { return handleError(function (arg0, arg1) {
1279
+ export function __wbg_create_c28725879a96569c() { return handleError(function (arg0, arg1) {
1315
1280
  const ret = getObject(arg0).create(getObject(arg1));
1316
1281
  return addHeapObject(ret);
1317
1282
  }, arguments) };
1318
1283
 
1319
- export function __wbg_credentials_2111b2d8612be757(arg0) {
1284
+ export function __wbg_credentials_f1f893c6da3e9ee4(arg0) {
1320
1285
  const ret = getObject(arg0).credentials;
1321
1286
  return addHeapObject(ret);
1322
1287
  };
@@ -1326,21 +1291,21 @@ export function __wbg_crypto_574e78ad8b13b65f(arg0) {
1326
1291
  return addHeapObject(ret);
1327
1292
  };
1328
1293
 
1329
- export function __wbg_data_fffd43bf0ca75fff(arg0) {
1294
+ export function __wbg_data_9ab529722bcc4e6c(arg0) {
1330
1295
  const ret = getObject(arg0).data;
1331
1296
  return addHeapObject(ret);
1332
1297
  };
1333
1298
 
1334
- export function __wbg_done_4d01f352bade43b7(arg0) {
1299
+ export function __wbg_done_75ed0ee6dd243d9d(arg0) {
1335
1300
  const ret = getObject(arg0).done;
1336
1301
  return ret;
1337
1302
  };
1338
1303
 
1339
- export function __wbg_error_51ecdd39ec054205(arg0) {
1304
+ export function __wbg_error_99981e16d476aa5c(arg0) {
1340
1305
  console.error(getObject(arg0));
1341
1306
  };
1342
1307
 
1343
- export function __wbg_fetch_a8e43a4e138dfc93(arg0, arg1) {
1308
+ export function __wbg_fetch_87aed7f306ec6d63(arg0, arg1) {
1344
1309
  const ret = getObject(arg0).fetch(getObject(arg1));
1345
1310
  return addHeapObject(ret);
1346
1311
  };
@@ -1355,12 +1320,12 @@ export function __wbg_fetch_f1856afdb49415d1(arg0) {
1355
1320
  return addHeapObject(ret);
1356
1321
  };
1357
1322
 
1358
- export function __wbg_getClientExtensionResults_6e8c179868f9d3bb(arg0) {
1323
+ export function __wbg_getClientExtensionResults_b9c10fd2534468bc(arg0) {
1359
1324
  const ret = getObject(arg0).getClientExtensionResults();
1360
1325
  return addHeapObject(ret);
1361
1326
  };
1362
1327
 
1363
- export function __wbg_getItem_cc20ea5759555a05() { return handleError(function (arg0, arg1, arg2, arg3) {
1328
+ export function __wbg_getItem_9fc74b31b896f95a() { return handleError(function (arg0, arg1, arg2, arg3) {
1364
1329
  const ret = getObject(arg1).getItem(getStringFromWasm0(arg2, arg3));
1365
1330
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1366
1331
  var len1 = WASM_VECTOR_LEN;
@@ -1372,17 +1337,17 @@ export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(fu
1372
1337
  getObject(arg0).getRandomValues(getObject(arg1));
1373
1338
  }, arguments) };
1374
1339
 
1375
- export function __wbg_getTime_2afe67905d873e92(arg0) {
1340
+ export function __wbg_getTime_6bb3f64e0f18f817(arg0) {
1376
1341
  const ret = getObject(arg0).getTime();
1377
1342
  return ret;
1378
1343
  };
1379
1344
 
1380
- export function __wbg_get_5d953d918b77e646() { return handleError(function (arg0, arg1) {
1345
+ export function __wbg_get_1cbe414461579d6e() { return handleError(function (arg0, arg1) {
1381
1346
  const ret = getObject(arg0).get(getObject(arg1));
1382
1347
  return addHeapObject(ret);
1383
1348
  }, arguments) };
1384
1349
 
1385
- export function __wbg_get_92470be87867c2e5() { return handleError(function (arg0, arg1) {
1350
+ export function __wbg_get_458e874b43b18b25() { return handleError(function (arg0, arg1) {
1386
1351
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
1387
1352
  return addHeapObject(ret);
1388
1353
  }, arguments) };
@@ -1392,17 +1357,17 @@ export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
1392
1357
  return addHeapObject(ret);
1393
1358
  };
1394
1359
 
1395
- export function __wbg_has_809e438ee9d787a7() { return handleError(function (arg0, arg1) {
1360
+ export function __wbg_has_b89e451f638123e3() { return handleError(function (arg0, arg1) {
1396
1361
  const ret = Reflect.has(getObject(arg0), getObject(arg1));
1397
1362
  return ret;
1398
1363
  }, arguments) };
1399
1364
 
1400
- export function __wbg_headers_0f0cbdc6290b6780(arg0) {
1365
+ export function __wbg_headers_29fec3c72865cd75(arg0) {
1401
1366
  const ret = getObject(arg0).headers;
1402
1367
  return addHeapObject(ret);
1403
1368
  };
1404
1369
 
1405
- export function __wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc(arg0) {
1370
+ export function __wbg_instanceof_ArrayBuffer_67f3012529f6a2dd(arg0) {
1406
1371
  let result;
1407
1372
  try {
1408
1373
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -1413,7 +1378,7 @@ export function __wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc(arg0) {
1413
1378
  return ret;
1414
1379
  };
1415
1380
 
1416
- export function __wbg_instanceof_Object_9a05796038b7a8f6(arg0) {
1381
+ export function __wbg_instanceof_Object_fbf5fef4952ff29b(arg0) {
1417
1382
  let result;
1418
1383
  try {
1419
1384
  result = getObject(arg0) instanceof Object;
@@ -1424,7 +1389,7 @@ export function __wbg_instanceof_Object_9a05796038b7a8f6(arg0) {
1424
1389
  return ret;
1425
1390
  };
1426
1391
 
1427
- export function __wbg_instanceof_Response_e80ce8b7a2b968d2(arg0) {
1392
+ export function __wbg_instanceof_Response_50fde2cd696850bf(arg0) {
1428
1393
  let result;
1429
1394
  try {
1430
1395
  result = getObject(arg0) instanceof Response;
@@ -1435,7 +1400,7 @@ export function __wbg_instanceof_Response_e80ce8b7a2b968d2(arg0) {
1435
1400
  return ret;
1436
1401
  };
1437
1402
 
1438
- export function __wbg_instanceof_Uint8Array_ca460677bc155827(arg0) {
1403
+ export function __wbg_instanceof_Uint8Array_9a8378d955933db7(arg0) {
1439
1404
  let result;
1440
1405
  try {
1441
1406
  result = getObject(arg0) instanceof Uint8Array;
@@ -1446,7 +1411,7 @@ export function __wbg_instanceof_Uint8Array_ca460677bc155827(arg0) {
1446
1411
  return ret;
1447
1412
  };
1448
1413
 
1449
- export function __wbg_instanceof_Window_68f3f67bad1729c1(arg0) {
1414
+ export function __wbg_instanceof_Window_12d20d558ef92592(arg0) {
1450
1415
  let result;
1451
1416
  try {
1452
1417
  result = getObject(arg0) instanceof Window;
@@ -1457,7 +1422,7 @@ export function __wbg_instanceof_Window_68f3f67bad1729c1(arg0) {
1457
1422
  return ret;
1458
1423
  };
1459
1424
 
1460
- export function __wbg_instanceof_WorkerGlobalScope_11f8a14c11024785(arg0) {
1425
+ export function __wbg_instanceof_WorkerGlobalScope_85d487cc157fd065(arg0) {
1461
1426
  let result;
1462
1427
  try {
1463
1428
  result = getObject(arg0) instanceof WorkerGlobalScope;
@@ -1468,7 +1433,7 @@ export function __wbg_instanceof_WorkerGlobalScope_11f8a14c11024785(arg0) {
1468
1433
  return ret;
1469
1434
  };
1470
1435
 
1471
- export function __wbg_iterator_4068add5b2aef7a6() {
1436
+ export function __wbg_iterator_f370b34483c71a1c() {
1472
1437
  const ret = Symbol.iterator;
1473
1438
  return addHeapObject(ret);
1474
1439
  };
@@ -1478,22 +1443,22 @@ export function __wbg_jscontrollererror_new(arg0) {
1478
1443
  return addHeapObject(ret);
1479
1444
  };
1480
1445
 
1481
- export function __wbg_length_ab6d22b5ead75c72(arg0) {
1446
+ export function __wbg_length_6bb7e81f9d7713e4(arg0) {
1482
1447
  const ret = getObject(arg0).length;
1483
1448
  return ret;
1484
1449
  };
1485
1450
 
1486
- export function __wbg_localStorage_6b8d9cd04fe47f68() { return handleError(function (arg0) {
1451
+ export function __wbg_localStorage_9330af8bf39365ba() { return handleError(function (arg0) {
1487
1452
  const ret = getObject(arg0).localStorage;
1488
1453
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1489
1454
  }, arguments) };
1490
1455
 
1491
- export function __wbg_location_53fd1bbab625ae8d(arg0) {
1456
+ export function __wbg_location_92d89c32ae076cab(arg0) {
1492
1457
  const ret = getObject(arg0).location;
1493
1458
  return addHeapObject(ret);
1494
1459
  };
1495
1460
 
1496
- export function __wbg_log_ea240990d83e374e(arg0) {
1461
+ export function __wbg_log_6c7b5f4f00b8ce3f(arg0) {
1497
1462
  console.log(getObject(arg0));
1498
1463
  };
1499
1464
 
@@ -1507,54 +1472,39 @@ export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
1507
1472
  return addHeapObject(ret);
1508
1473
  };
1509
1474
 
1510
- export function __wbg_navigator_fc64ba1417939b25(arg0) {
1475
+ export function __wbg_navigator_65d5ad763926b868(arg0) {
1511
1476
  const ret = getObject(arg0).navigator;
1512
1477
  return addHeapObject(ret);
1513
1478
  };
1514
1479
 
1515
- export function __wbg_new0_97314565408dea38() {
1480
+ export function __wbg_new0_b0a0a38c201e6df5() {
1516
1481
  const ret = new Date();
1517
1482
  return addHeapObject(ret);
1518
1483
  };
1519
1484
 
1520
- export function __wbg_new_07b483f72211fd66() {
1485
+ export function __wbg_new_19c25a3f2fa63a02() {
1521
1486
  const ret = new Object();
1522
1487
  return addHeapObject(ret);
1523
1488
  };
1524
1489
 
1525
- export function __wbg_new_186abcfdff244e42() { return handleError(function () {
1526
- const ret = new AbortController();
1527
- return addHeapObject(ret);
1528
- }, arguments) };
1529
-
1530
- export function __wbg_new_2658d63118834d8e() {
1531
- const ret = new Mutex();
1532
- return addHeapObject(ret);
1533
- };
1534
-
1535
- export function __wbg_new_4796e1cd2eb9ea6d() { return handleError(function () {
1536
- const ret = new Headers();
1537
- return addHeapObject(ret);
1538
- }, arguments) };
1539
-
1540
- export function __wbg_new_58353953ad2097cc() {
1490
+ export function __wbg_new_1f3a344cf3123716() {
1541
1491
  const ret = new Array();
1542
1492
  return addHeapObject(ret);
1543
1493
  };
1544
1494
 
1545
- export function __wbg_new_a979b4b45bd55c7f() {
1546
- const ret = new Map();
1495
+ export function __wbg_new_2658d63118834d8e() {
1496
+ const ret = new Mutex();
1547
1497
  return addHeapObject(ret);
1548
1498
  };
1549
1499
 
1550
- export function __wbg_new_e30c39c06edaabf2(arg0, arg1) {
1500
+ export function __wbg_new_2e3c58a15f39f5f9(arg0, arg1) {
1551
1501
  try {
1552
1502
  var state0 = {a: arg0, b: arg1};
1553
1503
  var cb0 = (arg0, arg1) => {
1554
1504
  const a = state0.a;
1555
1505
  state0.a = 0;
1556
1506
  try {
1557
- return __wbg_adapter_282(a, state0.b, arg0, arg1);
1507
+ return __wbg_adapter_257(a, state0.b, arg0, arg1);
1558
1508
  } finally {
1559
1509
  state0.a = a;
1560
1510
  }
@@ -1566,42 +1516,52 @@ export function __wbg_new_e30c39c06edaabf2(arg0, arg1) {
1566
1516
  }
1567
1517
  };
1568
1518
 
1569
- export function __wbg_new_e52b3efaaa774f96(arg0) {
1570
- const ret = new Uint8Array(getObject(arg0));
1519
+ export function __wbg_new_2ff1f68f3676ea53() {
1520
+ const ret = new Map();
1571
1521
  return addHeapObject(ret);
1572
1522
  };
1573
1523
 
1574
- export function __wbg_newfromslice_7c05ab1297cb2d88(arg0, arg1) {
1575
- const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1524
+ export function __wbg_new_638ebfaedbf32a5e(arg0) {
1525
+ const ret = new Uint8Array(getObject(arg0));
1576
1526
  return addHeapObject(ret);
1577
1527
  };
1578
1528
 
1579
- export function __wbg_newnoargs_ff528e72d35de39a(arg0, arg1) {
1580
- const ret = new Function(getStringFromWasm0(arg0, arg1));
1529
+ export function __wbg_new_66b9434b4e59b63e() { return handleError(function () {
1530
+ const ret = new AbortController();
1531
+ return addHeapObject(ret);
1532
+ }, arguments) };
1533
+
1534
+ export function __wbg_new_f6e53210afea8e45() { return handleError(function () {
1535
+ const ret = new Headers();
1536
+ return addHeapObject(ret);
1537
+ }, arguments) };
1538
+
1539
+ export function __wbg_newfromslice_074c56947bd43469(arg0, arg1) {
1540
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1581
1541
  return addHeapObject(ret);
1582
1542
  };
1583
1543
 
1584
- export function __wbg_newwithbyteoffsetandlength_3b01ecda099177e8(arg0, arg1, arg2) {
1585
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
1544
+ export function __wbg_newnoargs_254190557c45b4ec(arg0, arg1) {
1545
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
1586
1546
  return addHeapObject(ret);
1587
1547
  };
1588
1548
 
1589
- export function __wbg_newwithlength_08f872dc1e3ada2e(arg0) {
1549
+ export function __wbg_newwithlength_a167dcc7aaa3ba77(arg0) {
1590
1550
  const ret = new Uint8Array(arg0 >>> 0);
1591
1551
  return addHeapObject(ret);
1592
1552
  };
1593
1553
 
1594
- export function __wbg_newwithstrandinit_f8a9dbe009d6be37() { return handleError(function (arg0, arg1, arg2) {
1554
+ export function __wbg_newwithstrandinit_b5d168a29a3fd85f() { return handleError(function (arg0, arg1, arg2) {
1595
1555
  const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
1596
1556
  return addHeapObject(ret);
1597
1557
  }, arguments) };
1598
1558
 
1599
- export function __wbg_next_8bb824d217961b5d(arg0) {
1559
+ export function __wbg_next_5b3530e612fde77d(arg0) {
1600
1560
  const ret = getObject(arg0).next;
1601
1561
  return addHeapObject(ret);
1602
1562
  };
1603
1563
 
1604
- export function __wbg_next_e2da48d8fff7439a() { return handleError(function (arg0) {
1564
+ export function __wbg_next_692e82279131b03c() { return handleError(function (arg0) {
1605
1565
  const ret = getObject(arg0).next();
1606
1566
  return addHeapObject(ret);
1607
1567
  }, arguments) };
@@ -1611,7 +1571,7 @@ export function __wbg_node_905d3e251edff8a2(arg0) {
1611
1571
  return addHeapObject(ret);
1612
1572
  };
1613
1573
 
1614
- export function __wbg_now_eb0821f3bd9f6529() {
1574
+ export function __wbg_now_1e80617bcee43265() {
1615
1575
  const ret = Date.now();
1616
1576
  return ret;
1617
1577
  };
@@ -1621,28 +1581,28 @@ export function __wbg_obtain_a9626b3b96e6dc2c(arg0) {
1621
1581
  return addHeapObject(ret);
1622
1582
  };
1623
1583
 
1624
- export function __wbg_open_d6f064e185bd26fe() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1584
+ export function __wbg_open_fbf9d84c3371fb48() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1625
1585
  const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6));
1626
1586
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1627
1587
  }, arguments) };
1628
1588
 
1629
- export function __wbg_origin_5b853de1bb498ae3(arg0, arg1) {
1589
+ export function __wbg_origin_00892013881c6e2b() { return handleError(function (arg0, arg1) {
1630
1590
  const ret = getObject(arg1).origin;
1631
1591
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1632
1592
  const len1 = WASM_VECTOR_LEN;
1633
1593
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1634
1594
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1635
- };
1595
+ }, arguments) };
1636
1596
 
1637
- export function __wbg_origin_5c460f727a4fbf19() { return handleError(function (arg0, arg1) {
1597
+ export function __wbg_origin_e705505d7b153144(arg0, arg1) {
1638
1598
  const ret = getObject(arg1).origin;
1639
1599
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1640
1600
  const len1 = WASM_VECTOR_LEN;
1641
1601
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1642
1602
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1643
- }, arguments) };
1603
+ };
1644
1604
 
1645
- export function __wbg_parse_2e023e23741dc54b(arg0, arg1) {
1605
+ export function __wbg_parse_037c33ab58f9eabf(arg0, arg1) {
1646
1606
  let deferred0_0;
1647
1607
  let deferred0_1;
1648
1608
  try {
@@ -1660,16 +1620,20 @@ export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
1660
1620
  return addHeapObject(ret);
1661
1621
  };
1662
1622
 
1663
- export function __wbg_push_73fd7b5550ebf707(arg0, arg1) {
1623
+ export function __wbg_prototypesetcall_3d4a26c1ed734349(arg0, arg1, arg2) {
1624
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
1625
+ };
1626
+
1627
+ export function __wbg_push_330b2eb93e4e1212(arg0, arg1) {
1664
1628
  const ret = getObject(arg0).push(getObject(arg1));
1665
1629
  return ret;
1666
1630
  };
1667
1631
 
1668
- export function __wbg_queueMicrotask_46c1df247678729f(arg0) {
1632
+ export function __wbg_queueMicrotask_25d0739ac89e8c88(arg0) {
1669
1633
  queueMicrotask(getObject(arg0));
1670
1634
  };
1671
1635
 
1672
- export function __wbg_queueMicrotask_8acf3ccb75ed8d11(arg0) {
1636
+ export function __wbg_queueMicrotask_4488407636f5bf24(arg0) {
1673
1637
  const ret = getObject(arg0).queueMicrotask;
1674
1638
  return addHeapObject(ret);
1675
1639
  };
@@ -1678,11 +1642,11 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
1678
1642
  getObject(arg0).randomFillSync(takeObject(arg1));
1679
1643
  }, arguments) };
1680
1644
 
1681
- export function __wbg_removeEventListener_98ce9b0181ba8d74() { return handleError(function (arg0, arg1, arg2, arg3) {
1645
+ export function __wbg_removeEventListener_6d5be9c2821a511e() { return handleError(function (arg0, arg1, arg2, arg3) {
1682
1646
  getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1683
1647
  }, arguments) };
1684
1648
 
1685
- export function __wbg_removeItem_1e3718a423f67796() { return handleError(function (arg0, arg1, arg2) {
1649
+ export function __wbg_removeItem_487c5a070c7adaf7() { return handleError(function (arg0, arg1, arg2) {
1686
1650
  getObject(arg0).removeItem(getStringFromWasm0(arg1, arg2));
1687
1651
  }, arguments) };
1688
1652
 
@@ -1691,26 +1655,26 @@ export function __wbg_require_60cc747a6bc5215a() { return handleError(function (
1691
1655
  return addHeapObject(ret);
1692
1656
  }, arguments) };
1693
1657
 
1694
- export function __wbg_resolve_0dac8c580ffd4678(arg0) {
1658
+ export function __wbg_resolve_4055c623acdd6a1b(arg0) {
1695
1659
  const ret = Promise.resolve(getObject(arg0));
1696
1660
  return addHeapObject(ret);
1697
1661
  };
1698
1662
 
1699
- export function __wbg_setItem_2ac0fcb9e29e3f18() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1663
+ export function __wbg_setItem_7add5eb06a28b38f() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1700
1664
  getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1701
1665
  }, arguments) };
1702
1666
 
1667
+ export function __wbg_setTimeout_2966518f28aef92e() { return handleError(function (arg0, arg1, arg2) {
1668
+ const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
1669
+ return ret;
1670
+ }, arguments) };
1671
+
1703
1672
  export function __wbg_setTimeout_2b339866a2aa3789(arg0, arg1) {
1704
1673
  const ret = setTimeout(getObject(arg0), arg1);
1705
1674
  return addHeapObject(ret);
1706
1675
  };
1707
1676
 
1708
- export function __wbg_setTimeout_84a114fc6c4403f8() { return handleError(function (arg0, arg1, arg2) {
1709
- const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
1710
- return ret;
1711
- }, arguments) };
1712
-
1713
- export function __wbg_setTimeout_906fea9a7279f446() { return handleError(function (arg0, arg1, arg2) {
1677
+ export function __wbg_setTimeout_98aff77124ecfa08() { return handleError(function (arg0, arg1, arg2) {
1714
1678
  const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
1715
1679
  return ret;
1716
1680
  }, arguments) };
@@ -1723,49 +1687,45 @@ export function __wbg_set_3fda3bac07393de4(arg0, arg1, arg2) {
1723
1687
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1724
1688
  };
1725
1689
 
1726
- export function __wbg_set_7422acbe992d64ab(arg0, arg1, arg2) {
1727
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1728
- };
1729
-
1730
- export function __wbg_set_c43293f93a35998a() { return handleError(function (arg0, arg1, arg2) {
1690
+ export function __wbg_set_453345bcda80b89a() { return handleError(function (arg0, arg1, arg2) {
1731
1691
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
1732
1692
  return ret;
1733
1693
  }, arguments) };
1734
1694
 
1735
- export function __wbg_set_d6bdfd275fb8a4ce(arg0, arg1, arg2) {
1736
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1737
- return addHeapObject(ret);
1695
+ export function __wbg_set_90f6c0f7bd8c0415(arg0, arg1, arg2) {
1696
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1738
1697
  };
1739
1698
 
1740
- export function __wbg_set_fe4e79d1ed3b0e9b(arg0, arg1, arg2) {
1741
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1699
+ export function __wbg_set_b7f1cf4fae26fe2a(arg0, arg1, arg2) {
1700
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1701
+ return addHeapObject(ret);
1742
1702
  };
1743
1703
 
1744
- export function __wbg_setbody_971ec015fc13d6b4(arg0, arg1) {
1704
+ export function __wbg_setbody_c8460bdf44147df8(arg0, arg1) {
1745
1705
  getObject(arg0).body = getObject(arg1);
1746
1706
  };
1747
1707
 
1748
- export function __wbg_setcache_a94cd14dc0cc72a2(arg0, arg1) {
1708
+ export function __wbg_setcache_90ca4ad8a8ad40d3(arg0, arg1) {
1749
1709
  getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
1750
1710
  };
1751
1711
 
1752
- export function __wbg_setcredentials_920d91fb5984c94a(arg0, arg1) {
1712
+ export function __wbg_setcredentials_9cd60d632c9d5dfc(arg0, arg1) {
1753
1713
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
1754
1714
  };
1755
1715
 
1756
- export function __wbg_setheaders_65a4eb4c0443ae61(arg0, arg1) {
1716
+ export function __wbg_setheaders_0052283e2f3503d1(arg0, arg1) {
1757
1717
  getObject(arg0).headers = getObject(arg1);
1758
1718
  };
1759
1719
 
1760
- export function __wbg_setmethod_8ce1be0b4d701b7c(arg0, arg1, arg2) {
1720
+ export function __wbg_setmethod_9b504d5b855b329c(arg0, arg1, arg2) {
1761
1721
  getObject(arg0).method = getStringFromWasm0(arg1, arg2);
1762
1722
  };
1763
1723
 
1764
- export function __wbg_setmode_bd35f026f55b6247(arg0, arg1) {
1724
+ export function __wbg_setmode_a23e1a2ad8b512f8(arg0, arg1) {
1765
1725
  getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
1766
1726
  };
1767
1727
 
1768
- export function __wbg_setsignal_8e72abfe7ee03c97(arg0, arg1) {
1728
+ export function __wbg_setsignal_8c45ad1247a74809(arg0, arg1) {
1769
1729
  getObject(arg0).signal = getObject(arg1);
1770
1730
  };
1771
1731
 
@@ -1787,37 +1747,37 @@ export function __wbg_signMessage_c732ea9d998cac79() { return handleError(functi
1787
1747
  }
1788
1748
  }, arguments) };
1789
1749
 
1790
- export function __wbg_signal_b96223519a041faa(arg0) {
1750
+ export function __wbg_signal_da4d466ce86118b5(arg0) {
1791
1751
  const ret = getObject(arg0).signal;
1792
1752
  return addHeapObject(ret);
1793
1753
  };
1794
1754
 
1795
- export function __wbg_static_accessor_GLOBAL_487c52c58d65314d() {
1755
+ export function __wbg_static_accessor_GLOBAL_8921f820c2ce3f12() {
1796
1756
  const ret = typeof global === 'undefined' ? null : global;
1797
1757
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1798
1758
  };
1799
1759
 
1800
- export function __wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291() {
1760
+ export function __wbg_static_accessor_GLOBAL_THIS_f0a4409105898184() {
1801
1761
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
1802
1762
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1803
1763
  };
1804
1764
 
1805
- export function __wbg_static_accessor_SELF_78c9e3071b912620() {
1765
+ export function __wbg_static_accessor_SELF_995b214ae681ff99() {
1806
1766
  const ret = typeof self === 'undefined' ? null : self;
1807
1767
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1808
1768
  };
1809
1769
 
1810
- export function __wbg_static_accessor_WINDOW_a093d21393777366() {
1770
+ export function __wbg_static_accessor_WINDOW_cde3890479c675ea() {
1811
1771
  const ret = typeof window === 'undefined' ? null : window;
1812
1772
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1813
1773
  };
1814
1774
 
1815
- export function __wbg_status_a54682bbe52f9058(arg0) {
1775
+ export function __wbg_status_3fea3036088621d6(arg0) {
1816
1776
  const ret = getObject(arg0).status;
1817
1777
  return ret;
1818
1778
  };
1819
1779
 
1820
- export function __wbg_stringify_7f942ad6a97a2d11(arg0, arg1) {
1780
+ export function __wbg_stringify_4a34a65f0d4e236f(arg0, arg1) {
1821
1781
  const ret = JSON.stringify(getObject(arg1));
1822
1782
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1823
1783
  var len1 = WASM_VECTOR_LEN;
@@ -1825,32 +1785,32 @@ export function __wbg_stringify_7f942ad6a97a2d11(arg0, arg1) {
1825
1785
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1826
1786
  };
1827
1787
 
1828
- export function __wbg_stringify_c242842b97f054cc() { return handleError(function (arg0) {
1788
+ export function __wbg_stringify_b98c93d0a190446a() { return handleError(function (arg0) {
1829
1789
  const ret = JSON.stringify(getObject(arg0));
1830
1790
  return addHeapObject(ret);
1831
1791
  }, arguments) };
1832
1792
 
1833
- export function __wbg_subarray_dd4ade7d53bd8e26(arg0, arg1, arg2) {
1793
+ export function __wbg_subarray_70fd07feefe14294(arg0, arg1, arg2) {
1834
1794
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1835
1795
  return addHeapObject(ret);
1836
1796
  };
1837
1797
 
1838
- export function __wbg_text_ec0e22f60e30dd2f() { return handleError(function (arg0) {
1798
+ export function __wbg_text_0f69a215637b9b34() { return handleError(function (arg0) {
1839
1799
  const ret = getObject(arg0).text();
1840
1800
  return addHeapObject(ret);
1841
1801
  }, arguments) };
1842
1802
 
1843
- export function __wbg_then_82ab9fb4080f1707(arg0, arg1, arg2) {
1803
+ export function __wbg_then_b33a773d723afa3e(arg0, arg1, arg2) {
1844
1804
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
1845
1805
  return addHeapObject(ret);
1846
1806
  };
1847
1807
 
1848
- export function __wbg_then_db882932c0c714c6(arg0, arg1) {
1808
+ export function __wbg_then_e22500defe16819f(arg0, arg1) {
1849
1809
  const ret = getObject(arg0).then(getObject(arg1));
1850
1810
  return addHeapObject(ret);
1851
1811
  };
1852
1812
 
1853
- export function __wbg_url_e6ed869ea05b7a71(arg0, arg1) {
1813
+ export function __wbg_url_e5720dfacf77b05e(arg0, arg1) {
1854
1814
  const ret = getObject(arg1).url;
1855
1815
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1856
1816
  const len1 = WASM_VECTOR_LEN;
@@ -1858,7 +1818,7 @@ export function __wbg_url_e6ed869ea05b7a71(arg0, arg1) {
1858
1818
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1859
1819
  };
1860
1820
 
1861
- export function __wbg_userAgent_a24a493cd80cbd00() { return handleError(function (arg0, arg1) {
1821
+ export function __wbg_userAgent_2e89808dc5dc17d7() { return handleError(function (arg0, arg1) {
1862
1822
  const ret = getObject(arg1).userAgent;
1863
1823
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1864
1824
  const len1 = WASM_VECTOR_LEN;
@@ -1866,7 +1826,7 @@ export function __wbg_userAgent_a24a493cd80cbd00() { return handleError(function
1866
1826
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1867
1827
  }, arguments) };
1868
1828
 
1869
- export function __wbg_value_17b896954e14f896(arg0) {
1829
+ export function __wbg_value_dd9372230531eade(arg0) {
1870
1830
  const ret = getObject(arg0).value;
1871
1831
  return addHeapObject(ret);
1872
1832
  };
@@ -1876,19 +1836,14 @@ export function __wbg_versions_c01dfd4722a88165(arg0) {
1876
1836
  return addHeapObject(ret);
1877
1837
  };
1878
1838
 
1879
- export function __wbindgen_bigint_from_i64(arg0) {
1880
- const ret = arg0;
1881
- return addHeapObject(ret);
1882
- };
1883
-
1884
- export function __wbindgen_boolean_get(arg0) {
1839
+ export function __wbg_wbindgenbooleanget_3fe6f642c7d97746(arg0) {
1885
1840
  const v = getObject(arg0);
1886
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1887
- return ret;
1841
+ const ret = typeof(v) === 'boolean' ? v : undefined;
1842
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1888
1843
  };
1889
1844
 
1890
- export function __wbindgen_cb_drop(arg0) {
1891
- const obj = takeObject(arg0).original;
1845
+ export function __wbg_wbindgencbdrop_eb10308566512b88(arg0) {
1846
+ const obj = getObject(arg0).original;
1892
1847
  if (obj.cnt-- == 1) {
1893
1848
  obj.a = 0;
1894
1849
  return true;
@@ -1897,22 +1852,7 @@ export function __wbindgen_cb_drop(arg0) {
1897
1852
  return ret;
1898
1853
  };
1899
1854
 
1900
- export function __wbindgen_closure_wrapper2606(arg0, arg1, arg2) {
1901
- const ret = makeClosure(arg0, arg1, 32, __wbg_adapter_38);
1902
- return addHeapObject(ret);
1903
- };
1904
-
1905
- export function __wbindgen_closure_wrapper8362(arg0, arg1, arg2) {
1906
- const ret = makeMutClosure(arg0, arg1, 886, __wbg_adapter_41);
1907
- return addHeapObject(ret);
1908
- };
1909
-
1910
- export function __wbindgen_closure_wrapper8509(arg0, arg1, arg2) {
1911
- const ret = makeMutClosure(arg0, arg1, 919, __wbg_adapter_44);
1912
- return addHeapObject(ret);
1913
- };
1914
-
1915
- export function __wbindgen_debug_string(arg0, arg1) {
1855
+ export function __wbg_wbindgendebugstring_99ef257a3ddda34d(arg0, arg1) {
1916
1856
  const ret = debugString(getObject(arg1));
1917
1857
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1918
1858
  const len1 = WASM_VECTOR_LEN;
@@ -1920,78 +1860,105 @@ export function __wbindgen_debug_string(arg0, arg1) {
1920
1860
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1921
1861
  };
1922
1862
 
1923
- export function __wbindgen_in(arg0, arg1) {
1863
+ export function __wbg_wbindgenin_d7a1ee10933d2d55(arg0, arg1) {
1924
1864
  const ret = getObject(arg0) in getObject(arg1);
1925
1865
  return ret;
1926
1866
  };
1927
1867
 
1928
- export function __wbindgen_is_function(arg0) {
1868
+ export function __wbg_wbindgenisfunction_8cee7dce3725ae74(arg0) {
1929
1869
  const ret = typeof(getObject(arg0)) === 'function';
1930
1870
  return ret;
1931
1871
  };
1932
1872
 
1933
- export function __wbindgen_is_object(arg0) {
1873
+ export function __wbg_wbindgenisobject_307a53c6bd97fbf8(arg0) {
1934
1874
  const val = getObject(arg0);
1935
1875
  const ret = typeof(val) === 'object' && val !== null;
1936
1876
  return ret;
1937
1877
  };
1938
1878
 
1939
- export function __wbindgen_is_string(arg0) {
1879
+ export function __wbg_wbindgenisstring_d4fa939789f003b0(arg0) {
1940
1880
  const ret = typeof(getObject(arg0)) === 'string';
1941
1881
  return ret;
1942
1882
  };
1943
1883
 
1944
- export function __wbindgen_is_undefined(arg0) {
1884
+ export function __wbg_wbindgenisundefined_c4b71d073b92f3c5(arg0) {
1945
1885
  const ret = getObject(arg0) === undefined;
1946
1886
  return ret;
1947
1887
  };
1948
1888
 
1949
- export function __wbindgen_jsval_loose_eq(arg0, arg1) {
1889
+ export function __wbg_wbindgenjsvallooseeq_9bec8c9be826bed1(arg0, arg1) {
1950
1890
  const ret = getObject(arg0) == getObject(arg1);
1951
1891
  return ret;
1952
1892
  };
1953
1893
 
1954
- export function __wbindgen_memory() {
1955
- const ret = wasm.memory;
1956
- return addHeapObject(ret);
1957
- };
1958
-
1959
- export function __wbindgen_number_get(arg0, arg1) {
1894
+ export function __wbg_wbindgennumberget_f74b4c7525ac05cb(arg0, arg1) {
1960
1895
  const obj = getObject(arg1);
1961
1896
  const ret = typeof(obj) === 'number' ? obj : undefined;
1962
1897
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1963
1898
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1964
1899
  };
1965
1900
 
1966
- export function __wbindgen_number_new(arg0) {
1967
- const ret = arg0;
1901
+ export function __wbg_wbindgenstringget_0f16a6ddddef376f(arg0, arg1) {
1902
+ const obj = getObject(arg1);
1903
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1904
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1905
+ var len1 = WASM_VECTOR_LEN;
1906
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1907
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1908
+ };
1909
+
1910
+ export function __wbg_wbindgenthrow_451ec1a8469d7eb6(arg0, arg1) {
1911
+ throw new Error(getStringFromWasm0(arg0, arg1));
1912
+ };
1913
+
1914
+ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
1915
+ // Cast intrinsic for `Ref(String) -> Externref`.
1916
+ const ret = getStringFromWasm0(arg0, arg1);
1968
1917
  return addHeapObject(ret);
1969
1918
  };
1970
1919
 
1971
- export function __wbindgen_object_clone_ref(arg0) {
1972
- const ret = getObject(arg0);
1920
+ export function __wbindgen_cast_33d009dfe52396a6(arg0, arg1) {
1921
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 903, function: Function { arguments: [], shim_idx: 904, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1922
+ const ret = makeMutClosure(arg0, arg1, 903, __wbg_adapter_8);
1973
1923
  return addHeapObject(ret);
1974
1924
  };
1975
1925
 
1976
- export function __wbindgen_object_drop_ref(arg0) {
1977
- takeObject(arg0);
1926
+ export function __wbindgen_cast_3ab31798e812bcf8(arg0, arg1) {
1927
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 13, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 14, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1928
+ const ret = makeClosure(arg0, arg1, 13, __wbg_adapter_16);
1929
+ return addHeapObject(ret);
1978
1930
  };
1979
1931
 
1980
- export function __wbindgen_string_get(arg0, arg1) {
1981
- const obj = getObject(arg1);
1982
- const ret = typeof(obj) === 'string' ? obj : undefined;
1983
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1984
- var len1 = WASM_VECTOR_LEN;
1985
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1986
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1932
+ export function __wbindgen_cast_7cf6c7352bd34255(arg0, arg1) {
1933
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 936, function: Function { arguments: [Externref], shim_idx: 937, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1934
+ const ret = makeMutClosure(arg0, arg1, 936, __wbg_adapter_13);
1935
+ return addHeapObject(ret);
1987
1936
  };
1988
1937
 
1989
- export function __wbindgen_string_new(arg0, arg1) {
1990
- const ret = getStringFromWasm0(arg0, arg1);
1938
+ export function __wbindgen_cast_9ae0607507abb057(arg0) {
1939
+ // Cast intrinsic for `I64 -> Externref`.
1940
+ const ret = arg0;
1991
1941
  return addHeapObject(ret);
1992
1942
  };
1993
1943
 
1994
- export function __wbindgen_throw(arg0, arg1) {
1995
- throw new Error(getStringFromWasm0(arg0, arg1));
1944
+ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
1945
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1946
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1947
+ return addHeapObject(ret);
1948
+ };
1949
+
1950
+ export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
1951
+ // Cast intrinsic for `F64 -> Externref`.
1952
+ const ret = arg0;
1953
+ return addHeapObject(ret);
1954
+ };
1955
+
1956
+ export function __wbindgen_object_clone_ref(arg0) {
1957
+ const ret = getObject(arg0);
1958
+ return addHeapObject(ret);
1959
+ };
1960
+
1961
+ export function __wbindgen_object_drop_ref(arg0) {
1962
+ takeObject(arg0);
1996
1963
  };
1997
1964