@cartridge/controller-wasm 0.3.6 → 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();
@@ -335,24 +332,24 @@ export function signerToGuid(signer) {
335
332
  return takeObject(ret);
336
333
  }
337
334
 
338
- function __wbg_adapter_38(arg0, arg1, arg2) {
339
- wasm.__wbindgen_export_5(arg0, arg1, addHeapObject(arg2));
335
+ function __wbg_adapter_8(arg0, arg1) {
336
+ wasm.__wbindgen_export_5(arg0, arg1);
340
337
  }
341
338
 
342
- function __wbg_adapter_41(arg0, arg1) {
343
- wasm.__wbindgen_export_6(arg0, arg1);
339
+ function __wbg_adapter_13(arg0, arg1, arg2) {
340
+ wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
344
341
  }
345
342
 
346
- function __wbg_adapter_44(arg0, arg1, arg2) {
343
+ function __wbg_adapter_16(arg0, arg1, arg2) {
347
344
  wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
348
345
  }
349
346
 
350
- function __wbg_adapter_282(arg0, arg1, arg2, arg3) {
347
+ function __wbg_adapter_257(arg0, arg1, arg2, arg3) {
351
348
  wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
352
349
  }
353
350
 
354
351
  /**
355
- * @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}
356
353
  */
357
354
  export const ErrorCode = Object.freeze({
358
355
  StarknetFailedToReceiveTransaction: 1, "1": "StarknetFailedToReceiveTransaction",
@@ -423,6 +420,8 @@ export const ErrorCode = Object.freeze({
423
420
  TransactionTimeout: 139, "139": "TransactionTimeout",
424
421
  ConversionError: 140, "140": "ConversionError",
425
422
  InvalidChainId: 141, "141": "InvalidChainId",
423
+ SessionRefreshRequired: 142, "142": "SessionRefreshRequired",
424
+ ManualExecutionRequired: 143, "143": "ManualExecutionRequired",
426
425
  });
427
426
 
428
427
  const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
@@ -462,42 +461,29 @@ export class CartridgeAccount {
462
461
  * # Parameters
463
462
  * - `app_id`: Application identifier.
464
463
  * - `rpc_url`: The URL of the JSON-RPC endpoint.
465
- * - `chain_id`: Identifier of the blockchain network to interact with.
466
464
  * - `address`: The blockchain address associated with the account.
467
465
  * - `username`: Username associated with the account.
468
466
  * - `owner`: A Owner struct containing the owner signer and associated data.
469
467
  * @param {string} app_id
470
468
  * @param {JsFelt} class_hash
471
469
  * @param {string} rpc_url
472
- * @param {JsFelt} chain_id
473
470
  * @param {JsFelt} address
474
471
  * @param {string} username
475
472
  * @param {Owner} owner
476
473
  * @param {string} cartridge_api_url
477
- * @returns {CartridgeAccountWithMeta}
474
+ * @returns {Promise<CartridgeAccountWithMeta>}
478
475
  */
479
- static new(app_id, class_hash, rpc_url, chain_id, address, username, owner, cartridge_api_url) {
480
- try {
481
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
482
- const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
483
- const len0 = WASM_VECTOR_LEN;
484
- const ptr1 = passStringToWasm0(rpc_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
485
- const len1 = WASM_VECTOR_LEN;
486
- const ptr2 = passStringToWasm0(username, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
487
- const len2 = WASM_VECTOR_LEN;
488
- const ptr3 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
489
- const len3 = WASM_VECTOR_LEN;
490
- wasm.cartridgeaccount_new(retptr, ptr0, len0, addHeapObject(class_hash), ptr1, len1, addHeapObject(chain_id), addHeapObject(address), ptr2, len2, addHeapObject(owner), ptr3, len3);
491
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
492
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
493
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
494
- if (r2) {
495
- throw takeObject(r1);
496
- }
497
- return CartridgeAccountWithMeta.__wrap(r0);
498
- } finally {
499
- wasm.__wbindgen_add_to_stack_pointer(16);
500
- }
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);
501
487
  }
502
488
  /**
503
489
  * Creates a new `CartridgeAccount` instance with a randomly generated Starknet signer.
@@ -506,62 +492,38 @@ export class CartridgeAccount {
506
492
  * # Parameters
507
493
  * - `app_id`: Application identifier.
508
494
  * - `rpc_url`: The URL of the JSON-RPC endpoint.
509
- * - `chain_id`: Identifier of the blockchain network to interact with.
510
495
  * - `username`: Username associated with the account.
511
496
  * @param {string} app_id
512
497
  * @param {JsFelt} class_hash
513
498
  * @param {string} rpc_url
514
- * @param {JsFelt} chain_id
515
499
  * @param {string} username
516
500
  * @param {string} cartridge_api_url
517
- * @returns {CartridgeAccountWithMeta}
501
+ * @returns {Promise<CartridgeAccountWithMeta>}
518
502
  */
519
- static newHeadless(app_id, class_hash, rpc_url, chain_id, username, cartridge_api_url) {
520
- try {
521
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
522
- const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
523
- const len0 = WASM_VECTOR_LEN;
524
- const ptr1 = passStringToWasm0(rpc_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
525
- const len1 = WASM_VECTOR_LEN;
526
- const ptr2 = passStringToWasm0(username, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
527
- const len2 = WASM_VECTOR_LEN;
528
- const ptr3 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
529
- const len3 = WASM_VECTOR_LEN;
530
- wasm.cartridgeaccount_newHeadless(retptr, ptr0, len0, addHeapObject(class_hash), ptr1, len1, addHeapObject(chain_id), ptr2, len2, ptr3, len3);
531
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
532
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
533
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
534
- if (r2) {
535
- throw takeObject(r1);
536
- }
537
- return CartridgeAccountWithMeta.__wrap(r0);
538
- } finally {
539
- wasm.__wbindgen_add_to_stack_pointer(16);
540
- }
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);
541
514
  }
542
515
  /**
543
516
  * @param {string} app_id
544
517
  * @param {string} cartridge_api_url
545
- * @returns {CartridgeAccountWithMeta | undefined}
518
+ * @returns {Promise<CartridgeAccountWithMeta | undefined>}
546
519
  */
547
520
  static fromStorage(app_id, cartridge_api_url) {
548
- try {
549
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
550
- const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
551
- const len0 = WASM_VECTOR_LEN;
552
- const ptr1 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
553
- const len1 = WASM_VECTOR_LEN;
554
- wasm.cartridgeaccount_fromStorage(retptr, ptr0, len0, ptr1, len1);
555
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
556
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
557
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
558
- if (r2) {
559
- throw takeObject(r1);
560
- }
561
- return r0 === 0 ? undefined : CartridgeAccountWithMeta.__wrap(r0);
562
- } finally {
563
- wasm.__wbindgen_add_to_stack_pointer(16);
564
- }
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);
565
527
  }
566
528
  /**
567
529
  * @returns {Promise<void>}
@@ -706,6 +668,17 @@ export class CartridgeAccount {
706
668
  const ret = wasm.cartridgeaccount_executeFromOutsideV3(this.__wbg_ptr, ptr0, len0, isLikeNone(fee_source) ? 0 : addHeapObject(fee_source));
707
669
  return takeObject(ret);
708
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
+ }
709
682
  /**
710
683
  * @param {Policy[]} policies
711
684
  * @param {JsFelt | null} [public_key]
@@ -815,6 +788,7 @@ export class CartridgeAccount {
815
788
  return takeObject(ret);
816
789
  }
817
790
  }
791
+ if (Symbol.dispose) CartridgeAccount.prototype[Symbol.dispose] = CartridgeAccount.prototype.free;
818
792
 
819
793
  const CartridgeAccountMetaFinalization = (typeof FinalizationRegistry === 'undefined')
820
794
  ? { register: () => {}, unregister: () => {} }
@@ -982,6 +956,7 @@ export class CartridgeAccountMeta {
982
956
  return takeObject(ret);
983
957
  }
984
958
  }
959
+ if (Symbol.dispose) CartridgeAccountMeta.prototype[Symbol.dispose] = CartridgeAccountMeta.prototype.free;
985
960
 
986
961
  const CartridgeAccountWithMetaFinalization = (typeof FinalizationRegistry === 'undefined')
987
962
  ? { register: () => {}, unregister: () => {} }
@@ -1030,6 +1005,7 @@ export class CartridgeAccountWithMeta {
1030
1005
  return CartridgeAccount.__wrap(ret);
1031
1006
  }
1032
1007
  }
1008
+ if (Symbol.dispose) CartridgeAccountWithMeta.prototype[Symbol.dispose] = CartridgeAccountWithMeta.prototype.free;
1033
1009
 
1034
1010
  const ControllerFactoryFinalization = (typeof FinalizationRegistry === 'undefined')
1035
1011
  ? { register: () => {}, unregister: () => {} }
@@ -1051,33 +1027,21 @@ export class ControllerFactory {
1051
1027
  /**
1052
1028
  * @param {string} app_id
1053
1029
  * @param {string} cartridge_api_url
1054
- * @returns {CartridgeAccountWithMeta | undefined}
1030
+ * @returns {Promise<CartridgeAccountWithMeta | undefined>}
1055
1031
  */
1056
1032
  static fromStorage(app_id, cartridge_api_url) {
1057
- try {
1058
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1059
- const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1060
- const len0 = WASM_VECTOR_LEN;
1061
- const ptr1 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1062
- const len1 = WASM_VECTOR_LEN;
1063
- wasm.cartridgeaccount_fromStorage(retptr, ptr0, len0, ptr1, len1);
1064
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1065
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1066
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1067
- if (r2) {
1068
- throw takeObject(r1);
1069
- }
1070
- return r0 === 0 ? undefined : CartridgeAccountWithMeta.__wrap(r0);
1071
- } finally {
1072
- wasm.__wbindgen_add_to_stack_pointer(16);
1073
- }
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);
1074
1039
  }
1075
1040
  /**
1076
1041
  * @param {string} app_id
1077
1042
  * @param {string} username
1078
1043
  * @param {JsFelt} class_hash
1079
1044
  * @param {string} rpc_url
1080
- * @param {JsFelt} chain_id
1081
1045
  * @param {JsFelt} address
1082
1046
  * @param {Owner} owner
1083
1047
  * @param {string} cartridge_api_url
@@ -1085,7 +1049,7 @@ export class ControllerFactory {
1085
1049
  * @param {boolean | null} [is_controller_registered]
1086
1050
  * @returns {Promise<LoginResult>}
1087
1051
  */
1088
- 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) {
1089
1053
  const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1090
1054
  const len0 = WASM_VECTOR_LEN;
1091
1055
  const ptr1 = passStringToWasm0(username, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -1094,7 +1058,7 @@ export class ControllerFactory {
1094
1058
  const len2 = WASM_VECTOR_LEN;
1095
1059
  const ptr3 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1096
1060
  const len3 = WASM_VECTOR_LEN;
1097
- 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);
1098
1062
  return takeObject(ret);
1099
1063
  }
1100
1064
  /**
@@ -1103,13 +1067,12 @@ export class ControllerFactory {
1103
1067
  * @param {string} username
1104
1068
  * @param {JsFelt} class_hash
1105
1069
  * @param {string} rpc_url
1106
- * @param {JsFelt} chain_id
1107
1070
  * @param {JsFelt} address
1108
1071
  * @param {Owner} owner
1109
1072
  * @param {string} cartridge_api_url
1110
1073
  * @returns {Promise<CartridgeAccountWithMeta>}
1111
1074
  */
1112
- 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) {
1113
1076
  const ptr0 = passStringToWasm0(app_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1114
1077
  const len0 = WASM_VECTOR_LEN;
1115
1078
  const ptr1 = passStringToWasm0(username, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -1118,10 +1081,11 @@ export class ControllerFactory {
1118
1081
  const len2 = WASM_VECTOR_LEN;
1119
1082
  const ptr3 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1120
1083
  const len3 = WASM_VECTOR_LEN;
1121
- 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);
1122
1085
  return takeObject(ret);
1123
1086
  }
1124
1087
  }
1088
+ if (Symbol.dispose) ControllerFactory.prototype[Symbol.dispose] = ControllerFactory.prototype.free;
1125
1089
 
1126
1090
  const JsControllerErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1127
1091
  ? { register: () => {}, unregister: () => {} }
@@ -1216,6 +1180,7 @@ export class JsControllerError {
1216
1180
  wasm.__wbg_set_jscontrollererror_data(this.__wbg_ptr, ptr0, len0);
1217
1181
  }
1218
1182
  }
1183
+ if (Symbol.dispose) JsControllerError.prototype[Symbol.dispose] = JsControllerError.prototype.free;
1219
1184
 
1220
1185
  const LoginResultFinalization = (typeof FinalizationRegistry === 'undefined')
1221
1186
  ? { register: () => {}, unregister: () => {} }
@@ -1251,8 +1216,9 @@ export class LoginResult {
1251
1216
  return takeObject(ret);
1252
1217
  }
1253
1218
  }
1219
+ if (Symbol.dispose) LoginResult.prototype[Symbol.dispose] = LoginResult.prototype.free;
1254
1220
 
1255
- export function __wbg_Error_0497d5bdba9362e5(arg0, arg1) {
1221
+ export function __wbg_Error_e17e777aac105295(arg0, arg1) {
1256
1222
  const ret = Error(getStringFromWasm0(arg0, arg1));
1257
1223
  return addHeapObject(ret);
1258
1224
  };
@@ -1265,39 +1231,34 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
1265
1231
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1266
1232
  };
1267
1233
 
1268
- export function __wbg_abort_18ba44d46e13d7fe(arg0) {
1234
+ export function __wbg_abort_67e1b49bf6614565(arg0) {
1269
1235
  getObject(arg0).abort();
1270
1236
  };
1271
1237
 
1272
- export function __wbg_abort_4198a1129c47f21a(arg0, arg1) {
1238
+ export function __wbg_abort_d830bf2e9aa6ec5b(arg0, arg1) {
1273
1239
  getObject(arg0).abort(getObject(arg1));
1274
1240
  };
1275
1241
 
1276
- 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) {
1277
1243
  getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1278
1244
  }, arguments) };
1279
1245
 
1280
- 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) {
1281
1247
  getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1282
1248
  }, arguments) };
1283
1249
 
1284
- export function __wbg_arrayBuffer_d58b858456021d7f() { return handleError(function (arg0) {
1250
+ export function __wbg_arrayBuffer_9c99b8e2809e8cbb() { return handleError(function (arg0) {
1285
1251
  const ret = getObject(arg0).arrayBuffer();
1286
1252
  return addHeapObject(ret);
1287
1253
  }, arguments) };
1288
1254
 
1289
- export function __wbg_buffer_a1a27a0dfa70165d(arg0) {
1290
- const ret = getObject(arg0).buffer;
1291
- return addHeapObject(ret);
1292
- };
1293
-
1294
- export function __wbg_call_f2db6205e5c51dc8() { return handleError(function (arg0, arg1, arg2) {
1295
- 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));
1296
1257
  return addHeapObject(ret);
1297
1258
  }, arguments) };
1298
1259
 
1299
- export function __wbg_call_fbe8be8bf6436ce5() { return handleError(function (arg0, arg1) {
1300
- 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));
1301
1262
  return addHeapObject(ret);
1302
1263
  }, arguments) };
1303
1264
 
@@ -1311,16 +1272,16 @@ export function __wbg_clearTimeout_6222fede17abcb1a(arg0) {
1311
1272
  return addHeapObject(ret);
1312
1273
  };
1313
1274
 
1314
- export function __wbg_clear_83ec92953c4a8b85() { return handleError(function (arg0) {
1275
+ export function __wbg_clear_376ed5fc63920fe9() { return handleError(function (arg0) {
1315
1276
  getObject(arg0).clear();
1316
1277
  }, arguments) };
1317
1278
 
1318
- export function __wbg_create_9bce3f35d308d4db() { return handleError(function (arg0, arg1) {
1279
+ export function __wbg_create_c28725879a96569c() { return handleError(function (arg0, arg1) {
1319
1280
  const ret = getObject(arg0).create(getObject(arg1));
1320
1281
  return addHeapObject(ret);
1321
1282
  }, arguments) };
1322
1283
 
1323
- export function __wbg_credentials_2111b2d8612be757(arg0) {
1284
+ export function __wbg_credentials_f1f893c6da3e9ee4(arg0) {
1324
1285
  const ret = getObject(arg0).credentials;
1325
1286
  return addHeapObject(ret);
1326
1287
  };
@@ -1330,21 +1291,21 @@ export function __wbg_crypto_574e78ad8b13b65f(arg0) {
1330
1291
  return addHeapObject(ret);
1331
1292
  };
1332
1293
 
1333
- export function __wbg_data_fffd43bf0ca75fff(arg0) {
1294
+ export function __wbg_data_9ab529722bcc4e6c(arg0) {
1334
1295
  const ret = getObject(arg0).data;
1335
1296
  return addHeapObject(ret);
1336
1297
  };
1337
1298
 
1338
- export function __wbg_done_4d01f352bade43b7(arg0) {
1299
+ export function __wbg_done_75ed0ee6dd243d9d(arg0) {
1339
1300
  const ret = getObject(arg0).done;
1340
1301
  return ret;
1341
1302
  };
1342
1303
 
1343
- export function __wbg_error_51ecdd39ec054205(arg0) {
1304
+ export function __wbg_error_99981e16d476aa5c(arg0) {
1344
1305
  console.error(getObject(arg0));
1345
1306
  };
1346
1307
 
1347
- export function __wbg_fetch_a8e43a4e138dfc93(arg0, arg1) {
1308
+ export function __wbg_fetch_87aed7f306ec6d63(arg0, arg1) {
1348
1309
  const ret = getObject(arg0).fetch(getObject(arg1));
1349
1310
  return addHeapObject(ret);
1350
1311
  };
@@ -1359,12 +1320,12 @@ export function __wbg_fetch_f1856afdb49415d1(arg0) {
1359
1320
  return addHeapObject(ret);
1360
1321
  };
1361
1322
 
1362
- export function __wbg_getClientExtensionResults_6e8c179868f9d3bb(arg0) {
1323
+ export function __wbg_getClientExtensionResults_b9c10fd2534468bc(arg0) {
1363
1324
  const ret = getObject(arg0).getClientExtensionResults();
1364
1325
  return addHeapObject(ret);
1365
1326
  };
1366
1327
 
1367
- 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) {
1368
1329
  const ret = getObject(arg1).getItem(getStringFromWasm0(arg2, arg3));
1369
1330
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1370
1331
  var len1 = WASM_VECTOR_LEN;
@@ -1376,17 +1337,17 @@ export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(fu
1376
1337
  getObject(arg0).getRandomValues(getObject(arg1));
1377
1338
  }, arguments) };
1378
1339
 
1379
- export function __wbg_getTime_2afe67905d873e92(arg0) {
1340
+ export function __wbg_getTime_6bb3f64e0f18f817(arg0) {
1380
1341
  const ret = getObject(arg0).getTime();
1381
1342
  return ret;
1382
1343
  };
1383
1344
 
1384
- export function __wbg_get_5d953d918b77e646() { return handleError(function (arg0, arg1) {
1345
+ export function __wbg_get_1cbe414461579d6e() { return handleError(function (arg0, arg1) {
1385
1346
  const ret = getObject(arg0).get(getObject(arg1));
1386
1347
  return addHeapObject(ret);
1387
1348
  }, arguments) };
1388
1349
 
1389
- export function __wbg_get_92470be87867c2e5() { return handleError(function (arg0, arg1) {
1350
+ export function __wbg_get_458e874b43b18b25() { return handleError(function (arg0, arg1) {
1390
1351
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
1391
1352
  return addHeapObject(ret);
1392
1353
  }, arguments) };
@@ -1396,17 +1357,17 @@ export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
1396
1357
  return addHeapObject(ret);
1397
1358
  };
1398
1359
 
1399
- export function __wbg_has_809e438ee9d787a7() { return handleError(function (arg0, arg1) {
1360
+ export function __wbg_has_b89e451f638123e3() { return handleError(function (arg0, arg1) {
1400
1361
  const ret = Reflect.has(getObject(arg0), getObject(arg1));
1401
1362
  return ret;
1402
1363
  }, arguments) };
1403
1364
 
1404
- export function __wbg_headers_0f0cbdc6290b6780(arg0) {
1365
+ export function __wbg_headers_29fec3c72865cd75(arg0) {
1405
1366
  const ret = getObject(arg0).headers;
1406
1367
  return addHeapObject(ret);
1407
1368
  };
1408
1369
 
1409
- export function __wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc(arg0) {
1370
+ export function __wbg_instanceof_ArrayBuffer_67f3012529f6a2dd(arg0) {
1410
1371
  let result;
1411
1372
  try {
1412
1373
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -1417,7 +1378,7 @@ export function __wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc(arg0) {
1417
1378
  return ret;
1418
1379
  };
1419
1380
 
1420
- export function __wbg_instanceof_Object_9a05796038b7a8f6(arg0) {
1381
+ export function __wbg_instanceof_Object_fbf5fef4952ff29b(arg0) {
1421
1382
  let result;
1422
1383
  try {
1423
1384
  result = getObject(arg0) instanceof Object;
@@ -1428,7 +1389,7 @@ export function __wbg_instanceof_Object_9a05796038b7a8f6(arg0) {
1428
1389
  return ret;
1429
1390
  };
1430
1391
 
1431
- export function __wbg_instanceof_Response_e80ce8b7a2b968d2(arg0) {
1392
+ export function __wbg_instanceof_Response_50fde2cd696850bf(arg0) {
1432
1393
  let result;
1433
1394
  try {
1434
1395
  result = getObject(arg0) instanceof Response;
@@ -1439,7 +1400,7 @@ export function __wbg_instanceof_Response_e80ce8b7a2b968d2(arg0) {
1439
1400
  return ret;
1440
1401
  };
1441
1402
 
1442
- export function __wbg_instanceof_Uint8Array_ca460677bc155827(arg0) {
1403
+ export function __wbg_instanceof_Uint8Array_9a8378d955933db7(arg0) {
1443
1404
  let result;
1444
1405
  try {
1445
1406
  result = getObject(arg0) instanceof Uint8Array;
@@ -1450,7 +1411,7 @@ export function __wbg_instanceof_Uint8Array_ca460677bc155827(arg0) {
1450
1411
  return ret;
1451
1412
  };
1452
1413
 
1453
- export function __wbg_instanceof_Window_68f3f67bad1729c1(arg0) {
1414
+ export function __wbg_instanceof_Window_12d20d558ef92592(arg0) {
1454
1415
  let result;
1455
1416
  try {
1456
1417
  result = getObject(arg0) instanceof Window;
@@ -1461,7 +1422,7 @@ export function __wbg_instanceof_Window_68f3f67bad1729c1(arg0) {
1461
1422
  return ret;
1462
1423
  };
1463
1424
 
1464
- export function __wbg_instanceof_WorkerGlobalScope_11f8a14c11024785(arg0) {
1425
+ export function __wbg_instanceof_WorkerGlobalScope_85d487cc157fd065(arg0) {
1465
1426
  let result;
1466
1427
  try {
1467
1428
  result = getObject(arg0) instanceof WorkerGlobalScope;
@@ -1472,7 +1433,7 @@ export function __wbg_instanceof_WorkerGlobalScope_11f8a14c11024785(arg0) {
1472
1433
  return ret;
1473
1434
  };
1474
1435
 
1475
- export function __wbg_iterator_4068add5b2aef7a6() {
1436
+ export function __wbg_iterator_f370b34483c71a1c() {
1476
1437
  const ret = Symbol.iterator;
1477
1438
  return addHeapObject(ret);
1478
1439
  };
@@ -1482,22 +1443,22 @@ export function __wbg_jscontrollererror_new(arg0) {
1482
1443
  return addHeapObject(ret);
1483
1444
  };
1484
1445
 
1485
- export function __wbg_length_ab6d22b5ead75c72(arg0) {
1446
+ export function __wbg_length_6bb7e81f9d7713e4(arg0) {
1486
1447
  const ret = getObject(arg0).length;
1487
1448
  return ret;
1488
1449
  };
1489
1450
 
1490
- export function __wbg_localStorage_6b8d9cd04fe47f68() { return handleError(function (arg0) {
1451
+ export function __wbg_localStorage_9330af8bf39365ba() { return handleError(function (arg0) {
1491
1452
  const ret = getObject(arg0).localStorage;
1492
1453
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1493
1454
  }, arguments) };
1494
1455
 
1495
- export function __wbg_location_53fd1bbab625ae8d(arg0) {
1456
+ export function __wbg_location_92d89c32ae076cab(arg0) {
1496
1457
  const ret = getObject(arg0).location;
1497
1458
  return addHeapObject(ret);
1498
1459
  };
1499
1460
 
1500
- export function __wbg_log_ea240990d83e374e(arg0) {
1461
+ export function __wbg_log_6c7b5f4f00b8ce3f(arg0) {
1501
1462
  console.log(getObject(arg0));
1502
1463
  };
1503
1464
 
@@ -1511,54 +1472,39 @@ export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
1511
1472
  return addHeapObject(ret);
1512
1473
  };
1513
1474
 
1514
- export function __wbg_navigator_fc64ba1417939b25(arg0) {
1475
+ export function __wbg_navigator_65d5ad763926b868(arg0) {
1515
1476
  const ret = getObject(arg0).navigator;
1516
1477
  return addHeapObject(ret);
1517
1478
  };
1518
1479
 
1519
- export function __wbg_new0_97314565408dea38() {
1480
+ export function __wbg_new0_b0a0a38c201e6df5() {
1520
1481
  const ret = new Date();
1521
1482
  return addHeapObject(ret);
1522
1483
  };
1523
1484
 
1524
- export function __wbg_new_07b483f72211fd66() {
1485
+ export function __wbg_new_19c25a3f2fa63a02() {
1525
1486
  const ret = new Object();
1526
1487
  return addHeapObject(ret);
1527
1488
  };
1528
1489
 
1529
- export function __wbg_new_186abcfdff244e42() { return handleError(function () {
1530
- const ret = new AbortController();
1531
- return addHeapObject(ret);
1532
- }, arguments) };
1533
-
1534
- export function __wbg_new_2658d63118834d8e() {
1535
- const ret = new Mutex();
1536
- return addHeapObject(ret);
1537
- };
1538
-
1539
- export function __wbg_new_4796e1cd2eb9ea6d() { return handleError(function () {
1540
- const ret = new Headers();
1541
- return addHeapObject(ret);
1542
- }, arguments) };
1543
-
1544
- export function __wbg_new_58353953ad2097cc() {
1490
+ export function __wbg_new_1f3a344cf3123716() {
1545
1491
  const ret = new Array();
1546
1492
  return addHeapObject(ret);
1547
1493
  };
1548
1494
 
1549
- export function __wbg_new_a979b4b45bd55c7f() {
1550
- const ret = new Map();
1495
+ export function __wbg_new_2658d63118834d8e() {
1496
+ const ret = new Mutex();
1551
1497
  return addHeapObject(ret);
1552
1498
  };
1553
1499
 
1554
- export function __wbg_new_e30c39c06edaabf2(arg0, arg1) {
1500
+ export function __wbg_new_2e3c58a15f39f5f9(arg0, arg1) {
1555
1501
  try {
1556
1502
  var state0 = {a: arg0, b: arg1};
1557
1503
  var cb0 = (arg0, arg1) => {
1558
1504
  const a = state0.a;
1559
1505
  state0.a = 0;
1560
1506
  try {
1561
- return __wbg_adapter_282(a, state0.b, arg0, arg1);
1507
+ return __wbg_adapter_257(a, state0.b, arg0, arg1);
1562
1508
  } finally {
1563
1509
  state0.a = a;
1564
1510
  }
@@ -1570,42 +1516,52 @@ export function __wbg_new_e30c39c06edaabf2(arg0, arg1) {
1570
1516
  }
1571
1517
  };
1572
1518
 
1573
- export function __wbg_new_e52b3efaaa774f96(arg0) {
1574
- const ret = new Uint8Array(getObject(arg0));
1519
+ export function __wbg_new_2ff1f68f3676ea53() {
1520
+ const ret = new Map();
1575
1521
  return addHeapObject(ret);
1576
1522
  };
1577
1523
 
1578
- export function __wbg_newfromslice_7c05ab1297cb2d88(arg0, arg1) {
1579
- const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1524
+ export function __wbg_new_638ebfaedbf32a5e(arg0) {
1525
+ const ret = new Uint8Array(getObject(arg0));
1580
1526
  return addHeapObject(ret);
1581
1527
  };
1582
1528
 
1583
- export function __wbg_newnoargs_ff528e72d35de39a(arg0, arg1) {
1584
- 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));
1585
1541
  return addHeapObject(ret);
1586
1542
  };
1587
1543
 
1588
- export function __wbg_newwithbyteoffsetandlength_3b01ecda099177e8(arg0, arg1, arg2) {
1589
- 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));
1590
1546
  return addHeapObject(ret);
1591
1547
  };
1592
1548
 
1593
- export function __wbg_newwithlength_08f872dc1e3ada2e(arg0) {
1549
+ export function __wbg_newwithlength_a167dcc7aaa3ba77(arg0) {
1594
1550
  const ret = new Uint8Array(arg0 >>> 0);
1595
1551
  return addHeapObject(ret);
1596
1552
  };
1597
1553
 
1598
- export function __wbg_newwithstrandinit_f8a9dbe009d6be37() { return handleError(function (arg0, arg1, arg2) {
1554
+ export function __wbg_newwithstrandinit_b5d168a29a3fd85f() { return handleError(function (arg0, arg1, arg2) {
1599
1555
  const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
1600
1556
  return addHeapObject(ret);
1601
1557
  }, arguments) };
1602
1558
 
1603
- export function __wbg_next_8bb824d217961b5d(arg0) {
1559
+ export function __wbg_next_5b3530e612fde77d(arg0) {
1604
1560
  const ret = getObject(arg0).next;
1605
1561
  return addHeapObject(ret);
1606
1562
  };
1607
1563
 
1608
- export function __wbg_next_e2da48d8fff7439a() { return handleError(function (arg0) {
1564
+ export function __wbg_next_692e82279131b03c() { return handleError(function (arg0) {
1609
1565
  const ret = getObject(arg0).next();
1610
1566
  return addHeapObject(ret);
1611
1567
  }, arguments) };
@@ -1615,7 +1571,7 @@ export function __wbg_node_905d3e251edff8a2(arg0) {
1615
1571
  return addHeapObject(ret);
1616
1572
  };
1617
1573
 
1618
- export function __wbg_now_eb0821f3bd9f6529() {
1574
+ export function __wbg_now_1e80617bcee43265() {
1619
1575
  const ret = Date.now();
1620
1576
  return ret;
1621
1577
  };
@@ -1625,28 +1581,28 @@ export function __wbg_obtain_a9626b3b96e6dc2c(arg0) {
1625
1581
  return addHeapObject(ret);
1626
1582
  };
1627
1583
 
1628
- 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) {
1629
1585
  const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6));
1630
1586
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1631
1587
  }, arguments) };
1632
1588
 
1633
- export function __wbg_origin_5b853de1bb498ae3(arg0, arg1) {
1589
+ export function __wbg_origin_00892013881c6e2b() { return handleError(function (arg0, arg1) {
1634
1590
  const ret = getObject(arg1).origin;
1635
1591
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1636
1592
  const len1 = WASM_VECTOR_LEN;
1637
1593
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1638
1594
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1639
- };
1595
+ }, arguments) };
1640
1596
 
1641
- export function __wbg_origin_5c460f727a4fbf19() { return handleError(function (arg0, arg1) {
1597
+ export function __wbg_origin_e705505d7b153144(arg0, arg1) {
1642
1598
  const ret = getObject(arg1).origin;
1643
1599
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1644
1600
  const len1 = WASM_VECTOR_LEN;
1645
1601
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1646
1602
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1647
- }, arguments) };
1603
+ };
1648
1604
 
1649
- export function __wbg_parse_2e023e23741dc54b(arg0, arg1) {
1605
+ export function __wbg_parse_037c33ab58f9eabf(arg0, arg1) {
1650
1606
  let deferred0_0;
1651
1607
  let deferred0_1;
1652
1608
  try {
@@ -1664,16 +1620,20 @@ export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
1664
1620
  return addHeapObject(ret);
1665
1621
  };
1666
1622
 
1667
- 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) {
1668
1628
  const ret = getObject(arg0).push(getObject(arg1));
1669
1629
  return ret;
1670
1630
  };
1671
1631
 
1672
- export function __wbg_queueMicrotask_46c1df247678729f(arg0) {
1632
+ export function __wbg_queueMicrotask_25d0739ac89e8c88(arg0) {
1673
1633
  queueMicrotask(getObject(arg0));
1674
1634
  };
1675
1635
 
1676
- export function __wbg_queueMicrotask_8acf3ccb75ed8d11(arg0) {
1636
+ export function __wbg_queueMicrotask_4488407636f5bf24(arg0) {
1677
1637
  const ret = getObject(arg0).queueMicrotask;
1678
1638
  return addHeapObject(ret);
1679
1639
  };
@@ -1682,11 +1642,11 @@ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(fun
1682
1642
  getObject(arg0).randomFillSync(takeObject(arg1));
1683
1643
  }, arguments) };
1684
1644
 
1685
- 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) {
1686
1646
  getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1687
1647
  }, arguments) };
1688
1648
 
1689
- export function __wbg_removeItem_1e3718a423f67796() { return handleError(function (arg0, arg1, arg2) {
1649
+ export function __wbg_removeItem_487c5a070c7adaf7() { return handleError(function (arg0, arg1, arg2) {
1690
1650
  getObject(arg0).removeItem(getStringFromWasm0(arg1, arg2));
1691
1651
  }, arguments) };
1692
1652
 
@@ -1695,26 +1655,26 @@ export function __wbg_require_60cc747a6bc5215a() { return handleError(function (
1695
1655
  return addHeapObject(ret);
1696
1656
  }, arguments) };
1697
1657
 
1698
- export function __wbg_resolve_0dac8c580ffd4678(arg0) {
1658
+ export function __wbg_resolve_4055c623acdd6a1b(arg0) {
1699
1659
  const ret = Promise.resolve(getObject(arg0));
1700
1660
  return addHeapObject(ret);
1701
1661
  };
1702
1662
 
1703
- 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) {
1704
1664
  getObject(arg0).setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1705
1665
  }, arguments) };
1706
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
+
1707
1672
  export function __wbg_setTimeout_2b339866a2aa3789(arg0, arg1) {
1708
1673
  const ret = setTimeout(getObject(arg0), arg1);
1709
1674
  return addHeapObject(ret);
1710
1675
  };
1711
1676
 
1712
- export function __wbg_setTimeout_84a114fc6c4403f8() { return handleError(function (arg0, arg1, arg2) {
1713
- const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
1714
- return ret;
1715
- }, arguments) };
1716
-
1717
- export function __wbg_setTimeout_906fea9a7279f446() { return handleError(function (arg0, arg1, arg2) {
1677
+ export function __wbg_setTimeout_98aff77124ecfa08() { return handleError(function (arg0, arg1, arg2) {
1718
1678
  const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
1719
1679
  return ret;
1720
1680
  }, arguments) };
@@ -1727,49 +1687,45 @@ export function __wbg_set_3fda3bac07393de4(arg0, arg1, arg2) {
1727
1687
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1728
1688
  };
1729
1689
 
1730
- export function __wbg_set_7422acbe992d64ab(arg0, arg1, arg2) {
1731
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1732
- };
1733
-
1734
- export function __wbg_set_c43293f93a35998a() { return handleError(function (arg0, arg1, arg2) {
1690
+ export function __wbg_set_453345bcda80b89a() { return handleError(function (arg0, arg1, arg2) {
1735
1691
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
1736
1692
  return ret;
1737
1693
  }, arguments) };
1738
1694
 
1739
- export function __wbg_set_d6bdfd275fb8a4ce(arg0, arg1, arg2) {
1740
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1741
- return addHeapObject(ret);
1695
+ export function __wbg_set_90f6c0f7bd8c0415(arg0, arg1, arg2) {
1696
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1742
1697
  };
1743
1698
 
1744
- export function __wbg_set_fe4e79d1ed3b0e9b(arg0, arg1, arg2) {
1745
- 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);
1746
1702
  };
1747
1703
 
1748
- export function __wbg_setbody_971ec015fc13d6b4(arg0, arg1) {
1704
+ export function __wbg_setbody_c8460bdf44147df8(arg0, arg1) {
1749
1705
  getObject(arg0).body = getObject(arg1);
1750
1706
  };
1751
1707
 
1752
- export function __wbg_setcache_a94cd14dc0cc72a2(arg0, arg1) {
1708
+ export function __wbg_setcache_90ca4ad8a8ad40d3(arg0, arg1) {
1753
1709
  getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
1754
1710
  };
1755
1711
 
1756
- export function __wbg_setcredentials_920d91fb5984c94a(arg0, arg1) {
1712
+ export function __wbg_setcredentials_9cd60d632c9d5dfc(arg0, arg1) {
1757
1713
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
1758
1714
  };
1759
1715
 
1760
- export function __wbg_setheaders_65a4eb4c0443ae61(arg0, arg1) {
1716
+ export function __wbg_setheaders_0052283e2f3503d1(arg0, arg1) {
1761
1717
  getObject(arg0).headers = getObject(arg1);
1762
1718
  };
1763
1719
 
1764
- export function __wbg_setmethod_8ce1be0b4d701b7c(arg0, arg1, arg2) {
1720
+ export function __wbg_setmethod_9b504d5b855b329c(arg0, arg1, arg2) {
1765
1721
  getObject(arg0).method = getStringFromWasm0(arg1, arg2);
1766
1722
  };
1767
1723
 
1768
- export function __wbg_setmode_bd35f026f55b6247(arg0, arg1) {
1724
+ export function __wbg_setmode_a23e1a2ad8b512f8(arg0, arg1) {
1769
1725
  getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
1770
1726
  };
1771
1727
 
1772
- export function __wbg_setsignal_8e72abfe7ee03c97(arg0, arg1) {
1728
+ export function __wbg_setsignal_8c45ad1247a74809(arg0, arg1) {
1773
1729
  getObject(arg0).signal = getObject(arg1);
1774
1730
  };
1775
1731
 
@@ -1791,37 +1747,37 @@ export function __wbg_signMessage_c732ea9d998cac79() { return handleError(functi
1791
1747
  }
1792
1748
  }, arguments) };
1793
1749
 
1794
- export function __wbg_signal_b96223519a041faa(arg0) {
1750
+ export function __wbg_signal_da4d466ce86118b5(arg0) {
1795
1751
  const ret = getObject(arg0).signal;
1796
1752
  return addHeapObject(ret);
1797
1753
  };
1798
1754
 
1799
- export function __wbg_static_accessor_GLOBAL_487c52c58d65314d() {
1755
+ export function __wbg_static_accessor_GLOBAL_8921f820c2ce3f12() {
1800
1756
  const ret = typeof global === 'undefined' ? null : global;
1801
1757
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1802
1758
  };
1803
1759
 
1804
- export function __wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291() {
1760
+ export function __wbg_static_accessor_GLOBAL_THIS_f0a4409105898184() {
1805
1761
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
1806
1762
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1807
1763
  };
1808
1764
 
1809
- export function __wbg_static_accessor_SELF_78c9e3071b912620() {
1765
+ export function __wbg_static_accessor_SELF_995b214ae681ff99() {
1810
1766
  const ret = typeof self === 'undefined' ? null : self;
1811
1767
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1812
1768
  };
1813
1769
 
1814
- export function __wbg_static_accessor_WINDOW_a093d21393777366() {
1770
+ export function __wbg_static_accessor_WINDOW_cde3890479c675ea() {
1815
1771
  const ret = typeof window === 'undefined' ? null : window;
1816
1772
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1817
1773
  };
1818
1774
 
1819
- export function __wbg_status_a54682bbe52f9058(arg0) {
1775
+ export function __wbg_status_3fea3036088621d6(arg0) {
1820
1776
  const ret = getObject(arg0).status;
1821
1777
  return ret;
1822
1778
  };
1823
1779
 
1824
- export function __wbg_stringify_7f942ad6a97a2d11(arg0, arg1) {
1780
+ export function __wbg_stringify_4a34a65f0d4e236f(arg0, arg1) {
1825
1781
  const ret = JSON.stringify(getObject(arg1));
1826
1782
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1827
1783
  var len1 = WASM_VECTOR_LEN;
@@ -1829,32 +1785,32 @@ export function __wbg_stringify_7f942ad6a97a2d11(arg0, arg1) {
1829
1785
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1830
1786
  };
1831
1787
 
1832
- export function __wbg_stringify_c242842b97f054cc() { return handleError(function (arg0) {
1788
+ export function __wbg_stringify_b98c93d0a190446a() { return handleError(function (arg0) {
1833
1789
  const ret = JSON.stringify(getObject(arg0));
1834
1790
  return addHeapObject(ret);
1835
1791
  }, arguments) };
1836
1792
 
1837
- export function __wbg_subarray_dd4ade7d53bd8e26(arg0, arg1, arg2) {
1793
+ export function __wbg_subarray_70fd07feefe14294(arg0, arg1, arg2) {
1838
1794
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1839
1795
  return addHeapObject(ret);
1840
1796
  };
1841
1797
 
1842
- export function __wbg_text_ec0e22f60e30dd2f() { return handleError(function (arg0) {
1798
+ export function __wbg_text_0f69a215637b9b34() { return handleError(function (arg0) {
1843
1799
  const ret = getObject(arg0).text();
1844
1800
  return addHeapObject(ret);
1845
1801
  }, arguments) };
1846
1802
 
1847
- export function __wbg_then_82ab9fb4080f1707(arg0, arg1, arg2) {
1803
+ export function __wbg_then_b33a773d723afa3e(arg0, arg1, arg2) {
1848
1804
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
1849
1805
  return addHeapObject(ret);
1850
1806
  };
1851
1807
 
1852
- export function __wbg_then_db882932c0c714c6(arg0, arg1) {
1808
+ export function __wbg_then_e22500defe16819f(arg0, arg1) {
1853
1809
  const ret = getObject(arg0).then(getObject(arg1));
1854
1810
  return addHeapObject(ret);
1855
1811
  };
1856
1812
 
1857
- export function __wbg_url_e6ed869ea05b7a71(arg0, arg1) {
1813
+ export function __wbg_url_e5720dfacf77b05e(arg0, arg1) {
1858
1814
  const ret = getObject(arg1).url;
1859
1815
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1860
1816
  const len1 = WASM_VECTOR_LEN;
@@ -1862,7 +1818,7 @@ export function __wbg_url_e6ed869ea05b7a71(arg0, arg1) {
1862
1818
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1863
1819
  };
1864
1820
 
1865
- export function __wbg_userAgent_a24a493cd80cbd00() { return handleError(function (arg0, arg1) {
1821
+ export function __wbg_userAgent_2e89808dc5dc17d7() { return handleError(function (arg0, arg1) {
1866
1822
  const ret = getObject(arg1).userAgent;
1867
1823
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1868
1824
  const len1 = WASM_VECTOR_LEN;
@@ -1870,7 +1826,7 @@ export function __wbg_userAgent_a24a493cd80cbd00() { return handleError(function
1870
1826
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1871
1827
  }, arguments) };
1872
1828
 
1873
- export function __wbg_value_17b896954e14f896(arg0) {
1829
+ export function __wbg_value_dd9372230531eade(arg0) {
1874
1830
  const ret = getObject(arg0).value;
1875
1831
  return addHeapObject(ret);
1876
1832
  };
@@ -1880,19 +1836,14 @@ export function __wbg_versions_c01dfd4722a88165(arg0) {
1880
1836
  return addHeapObject(ret);
1881
1837
  };
1882
1838
 
1883
- export function __wbindgen_bigint_from_i64(arg0) {
1884
- const ret = arg0;
1885
- return addHeapObject(ret);
1886
- };
1887
-
1888
- export function __wbindgen_boolean_get(arg0) {
1839
+ export function __wbg_wbindgenbooleanget_3fe6f642c7d97746(arg0) {
1889
1840
  const v = getObject(arg0);
1890
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1891
- return ret;
1841
+ const ret = typeof(v) === 'boolean' ? v : undefined;
1842
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1892
1843
  };
1893
1844
 
1894
- export function __wbindgen_cb_drop(arg0) {
1895
- const obj = takeObject(arg0).original;
1845
+ export function __wbg_wbindgencbdrop_eb10308566512b88(arg0) {
1846
+ const obj = getObject(arg0).original;
1896
1847
  if (obj.cnt-- == 1) {
1897
1848
  obj.a = 0;
1898
1849
  return true;
@@ -1901,22 +1852,7 @@ export function __wbindgen_cb_drop(arg0) {
1901
1852
  return ret;
1902
1853
  };
1903
1854
 
1904
- export function __wbindgen_closure_wrapper3255(arg0, arg1, arg2) {
1905
- const ret = makeClosure(arg0, arg1, 32, __wbg_adapter_38);
1906
- return addHeapObject(ret);
1907
- };
1908
-
1909
- export function __wbindgen_closure_wrapper8269(arg0, arg1, arg2) {
1910
- const ret = makeMutClosure(arg0, arg1, 877, __wbg_adapter_41);
1911
- return addHeapObject(ret);
1912
- };
1913
-
1914
- export function __wbindgen_closure_wrapper8415(arg0, arg1, arg2) {
1915
- const ret = makeMutClosure(arg0, arg1, 909, __wbg_adapter_44);
1916
- return addHeapObject(ret);
1917
- };
1918
-
1919
- export function __wbindgen_debug_string(arg0, arg1) {
1855
+ export function __wbg_wbindgendebugstring_99ef257a3ddda34d(arg0, arg1) {
1920
1856
  const ret = debugString(getObject(arg1));
1921
1857
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1922
1858
  const len1 = WASM_VECTOR_LEN;
@@ -1924,78 +1860,105 @@ export function __wbindgen_debug_string(arg0, arg1) {
1924
1860
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1925
1861
  };
1926
1862
 
1927
- export function __wbindgen_in(arg0, arg1) {
1863
+ export function __wbg_wbindgenin_d7a1ee10933d2d55(arg0, arg1) {
1928
1864
  const ret = getObject(arg0) in getObject(arg1);
1929
1865
  return ret;
1930
1866
  };
1931
1867
 
1932
- export function __wbindgen_is_function(arg0) {
1868
+ export function __wbg_wbindgenisfunction_8cee7dce3725ae74(arg0) {
1933
1869
  const ret = typeof(getObject(arg0)) === 'function';
1934
1870
  return ret;
1935
1871
  };
1936
1872
 
1937
- export function __wbindgen_is_object(arg0) {
1873
+ export function __wbg_wbindgenisobject_307a53c6bd97fbf8(arg0) {
1938
1874
  const val = getObject(arg0);
1939
1875
  const ret = typeof(val) === 'object' && val !== null;
1940
1876
  return ret;
1941
1877
  };
1942
1878
 
1943
- export function __wbindgen_is_string(arg0) {
1879
+ export function __wbg_wbindgenisstring_d4fa939789f003b0(arg0) {
1944
1880
  const ret = typeof(getObject(arg0)) === 'string';
1945
1881
  return ret;
1946
1882
  };
1947
1883
 
1948
- export function __wbindgen_is_undefined(arg0) {
1884
+ export function __wbg_wbindgenisundefined_c4b71d073b92f3c5(arg0) {
1949
1885
  const ret = getObject(arg0) === undefined;
1950
1886
  return ret;
1951
1887
  };
1952
1888
 
1953
- export function __wbindgen_jsval_loose_eq(arg0, arg1) {
1889
+ export function __wbg_wbindgenjsvallooseeq_9bec8c9be826bed1(arg0, arg1) {
1954
1890
  const ret = getObject(arg0) == getObject(arg1);
1955
1891
  return ret;
1956
1892
  };
1957
1893
 
1958
- export function __wbindgen_memory() {
1959
- const ret = wasm.memory;
1960
- return addHeapObject(ret);
1961
- };
1962
-
1963
- export function __wbindgen_number_get(arg0, arg1) {
1894
+ export function __wbg_wbindgennumberget_f74b4c7525ac05cb(arg0, arg1) {
1964
1895
  const obj = getObject(arg1);
1965
1896
  const ret = typeof(obj) === 'number' ? obj : undefined;
1966
1897
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1967
1898
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1968
1899
  };
1969
1900
 
1970
- export function __wbindgen_number_new(arg0) {
1971
- 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);
1972
1917
  return addHeapObject(ret);
1973
1918
  };
1974
1919
 
1975
- export function __wbindgen_object_clone_ref(arg0) {
1976
- 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);
1977
1923
  return addHeapObject(ret);
1978
1924
  };
1979
1925
 
1980
- export function __wbindgen_object_drop_ref(arg0) {
1981
- 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);
1982
1930
  };
1983
1931
 
1984
- export function __wbindgen_string_get(arg0, arg1) {
1985
- const obj = getObject(arg1);
1986
- const ret = typeof(obj) === 'string' ? obj : undefined;
1987
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1988
- var len1 = WASM_VECTOR_LEN;
1989
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1990
- 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);
1991
1936
  };
1992
1937
 
1993
- export function __wbindgen_string_new(arg0, arg1) {
1994
- const ret = getStringFromWasm0(arg0, arg1);
1938
+ export function __wbindgen_cast_9ae0607507abb057(arg0) {
1939
+ // Cast intrinsic for `I64 -> Externref`.
1940
+ const ret = arg0;
1995
1941
  return addHeapObject(ret);
1996
1942
  };
1997
1943
 
1998
- export function __wbindgen_throw(arg0, arg1) {
1999
- 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);
2000
1963
  };
2001
1964