@bitwarden/sdk-internal 0.2.0-main.4 → 0.2.0-main.40

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.
@@ -78,10 +78,6 @@ function passStringToWasm0(arg, malloc, realloc) {
78
78
  return ptr;
79
79
  }
80
80
 
81
- function isLikeNone(x) {
82
- return x === undefined || x === null;
83
- }
84
-
85
81
  let cachedDataViewMemory0 = null;
86
82
 
87
83
  function getDataViewMemory0() {
@@ -96,8 +92,34 @@ function getDataViewMemory0() {
96
92
  return cachedDataViewMemory0;
97
93
  }
98
94
 
95
+ let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
96
+
97
+ cachedTextDecoder.decode();
98
+
99
+ function getStringFromWasm0(ptr, len) {
100
+ ptr = ptr >>> 0;
101
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
102
+ }
103
+
99
104
  let heap_next = heap.length;
100
105
 
106
+ function addHeapObject(obj) {
107
+ if (heap_next === heap.length) heap.push(heap.length + 1);
108
+ const idx = heap_next;
109
+ heap_next = heap[idx];
110
+
111
+ heap[idx] = obj;
112
+ return idx;
113
+ }
114
+
115
+ function handleError(f, args) {
116
+ try {
117
+ return f.apply(this, args);
118
+ } catch (e) {
119
+ wasm.__wbindgen_exn_store(addHeapObject(e));
120
+ }
121
+ }
122
+
101
123
  function dropObject(idx) {
102
124
  if (idx < 132) return;
103
125
  heap[idx] = heap_next;
@@ -110,22 +132,40 @@ function takeObject(idx) {
110
132
  return ret;
111
133
  }
112
134
 
113
- function addHeapObject(obj) {
114
- if (heap_next === heap.length) heap.push(heap.length + 1);
115
- const idx = heap_next;
116
- heap_next = heap[idx];
117
-
118
- heap[idx] = obj;
119
- return idx;
135
+ function isLikeNone(x) {
136
+ return x === undefined || x === null;
120
137
  }
121
138
 
122
- let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
123
-
124
- cachedTextDecoder.decode();
139
+ const CLOSURE_DTORS =
140
+ typeof FinalizationRegistry === "undefined"
141
+ ? { register: () => {}, unregister: () => {} }
142
+ : new FinalizationRegistry((state) => {
143
+ wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b);
144
+ });
125
145
 
126
- function getStringFromWasm0(ptr, len) {
127
- ptr = ptr >>> 0;
128
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
146
+ function makeMutClosure(arg0, arg1, dtor, f) {
147
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
148
+ const real = (...args) => {
149
+ // First up with a closure we increment the internal reference
150
+ // count. This ensures that the Rust closure environment won't
151
+ // be deallocated while we're invoking it.
152
+ state.cnt++;
153
+ const a = state.a;
154
+ state.a = 0;
155
+ try {
156
+ return f(a, state.b, ...args);
157
+ } finally {
158
+ if (--state.cnt === 0) {
159
+ wasm.__wbindgen_export_4.get(state.dtor)(a, state.b);
160
+ CLOSURE_DTORS.unregister(state);
161
+ } else {
162
+ state.a = a;
163
+ }
164
+ }
165
+ };
166
+ real.original = state;
167
+ CLOSURE_DTORS.register(real, state, state);
168
+ return real;
129
169
  }
130
170
 
131
171
  function debugString(val) {
@@ -169,7 +209,7 @@ function debugString(val) {
169
209
  // Test for built-in
170
210
  const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
171
211
  let className;
172
- if (builtInMatches.length > 1) {
212
+ if (builtInMatches && builtInMatches.length > 1) {
173
213
  className = builtInMatches[1];
174
214
  } else {
175
215
  // Failed to match the standard '[object ClassName]'
@@ -193,54 +233,95 @@ function debugString(val) {
193
233
  return className;
194
234
  }
195
235
 
196
- const CLOSURE_DTORS =
197
- typeof FinalizationRegistry === "undefined"
198
- ? { register: () => {}, unregister: () => {} }
199
- : new FinalizationRegistry((state) => {
200
- wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);
201
- });
236
+ let stack_pointer = 128;
202
237
 
203
- function makeMutClosure(arg0, arg1, dtor, f) {
204
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
205
- const real = (...args) => {
206
- // First up with a closure we increment the internal reference
207
- // count. This ensures that the Rust closure environment won't
208
- // be deallocated while we're invoking it.
209
- state.cnt++;
210
- const a = state.a;
211
- state.a = 0;
212
- try {
213
- return f(a, state.b, ...args);
214
- } finally {
215
- if (--state.cnt === 0) {
216
- wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
217
- CLOSURE_DTORS.unregister(state);
218
- } else {
219
- state.a = a;
220
- }
221
- }
222
- };
223
- real.original = state;
224
- CLOSURE_DTORS.register(real, state, state);
225
- return real;
238
+ function addBorrowedObject(obj) {
239
+ if (stack_pointer == 1) throw new Error("out of js stack");
240
+ heap[--stack_pointer] = obj;
241
+ return stack_pointer;
226
242
  }
243
+ /**
244
+ * @param {any} error
245
+ * @returns {boolean}
246
+ */
247
+ module.exports.isCoreError = function (error) {
248
+ try {
249
+ const ret = wasm.isCoreError(addBorrowedObject(error));
250
+ return ret !== 0;
251
+ } finally {
252
+ heap[stack_pointer++] = undefined;
253
+ }
254
+ };
255
+
256
+ /**
257
+ * @param {any} error
258
+ * @returns {boolean}
259
+ */
260
+ module.exports.isEncryptionSettingsError = function (error) {
261
+ try {
262
+ const ret = wasm.isEncryptionSettingsError(addBorrowedObject(error));
263
+ return ret !== 0;
264
+ } finally {
265
+ heap[stack_pointer++] = undefined;
266
+ }
267
+ };
268
+
269
+ /**
270
+ * @param {any} error
271
+ * @returns {boolean}
272
+ */
273
+ module.exports.isKeyGenerationError = function (error) {
274
+ try {
275
+ const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
276
+ return ret !== 0;
277
+ } finally {
278
+ heap[stack_pointer++] = undefined;
279
+ }
280
+ };
281
+
282
+ /**
283
+ * @param {any} error
284
+ * @returns {boolean}
285
+ */
286
+ module.exports.isTestError = function (error) {
287
+ try {
288
+ const ret = wasm.isTestError(addBorrowedObject(error));
289
+ return ret !== 0;
290
+ } finally {
291
+ heap[stack_pointer++] = undefined;
292
+ }
293
+ };
294
+
295
+ /**
296
+ * @param {KeyAlgorithm} key_algorithm
297
+ * @returns {GenerateSshKeyResult}
298
+ */
299
+ module.exports.generate_ssh_key = function (key_algorithm) {
300
+ try {
301
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
302
+ wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
303
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
304
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
305
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
306
+ if (r2) {
307
+ throw takeObject(r1);
308
+ }
309
+ return takeObject(r0);
310
+ } finally {
311
+ wasm.__wbindgen_add_to_stack_pointer(16);
312
+ }
313
+ };
314
+
227
315
  function __wbg_adapter_38(arg0, arg1, arg2) {
228
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hec6c9a85ed863308(
316
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb80710307d9edf75(
229
317
  arg0,
230
318
  arg1,
231
319
  addHeapObject(arg2),
232
320
  );
233
321
  }
234
322
 
235
- function handleError(f, args) {
236
- try {
237
- return f.apply(this, args);
238
- } catch (e) {
239
- wasm.__wbindgen_exn_store(addHeapObject(e));
240
- }
241
- }
242
- function __wbg_adapter_100(arg0, arg1, arg2, arg3) {
243
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h29c3505e35b3c82d(
323
+ function __wbg_adapter_127(arg0, arg1, arg2, arg3) {
324
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h1aea760ed40205bc(
244
325
  arg0,
245
326
  arg1,
246
327
  addHeapObject(arg2),
@@ -248,6 +329,9 @@ function __wbg_adapter_100(arg0, arg1, arg2, arg3) {
248
329
  );
249
330
  }
250
331
 
332
+ /**
333
+ * @enum {0 | 1 | 2 | 3 | 4}
334
+ */
251
335
  module.exports.LogLevel = Object.freeze({
252
336
  Trace: 0,
253
337
  0: "Trace",
@@ -339,21 +423,13 @@ class BitwardenClient {
339
423
  }
340
424
  /**
341
425
  * @param {string} msg
426
+ * @returns {Promise<void>}
342
427
  */
343
428
  throw(msg) {
344
- try {
345
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
346
- const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
347
- const len0 = WASM_VECTOR_LEN;
348
- wasm.bitwardenclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
349
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
350
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
351
- if (r1) {
352
- throw takeObject(r0);
353
- }
354
- } finally {
355
- wasm.__wbindgen_add_to_stack_pointer(16);
356
- }
429
+ const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
430
+ const len0 = WASM_VECTOR_LEN;
431
+ const ret = wasm.bitwardenclient_throw(this.__wbg_ptr, ptr0, len0);
432
+ return takeObject(ret);
357
433
  }
358
434
  /**
359
435
  * Test method, calls http endpoint
@@ -428,6 +504,51 @@ class ClientCrypto {
428
504
  const ret = wasm.clientcrypto_initialize_org_crypto(this.__wbg_ptr, addHeapObject(req));
429
505
  return takeObject(ret);
430
506
  }
507
+ /**
508
+ * Generates a new key pair and encrypts the private key with the provided user key.
509
+ * Crypto initialization not required.
510
+ * @param {string} user_key
511
+ * @returns {MakeKeyPairResponse}
512
+ */
513
+ make_key_pair(user_key) {
514
+ try {
515
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
516
+ const ptr0 = passStringToWasm0(user_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
517
+ const len0 = WASM_VECTOR_LEN;
518
+ wasm.clientcrypto_make_key_pair(retptr, this.__wbg_ptr, ptr0, len0);
519
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
520
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
521
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
522
+ if (r2) {
523
+ throw takeObject(r1);
524
+ }
525
+ return takeObject(r0);
526
+ } finally {
527
+ wasm.__wbindgen_add_to_stack_pointer(16);
528
+ }
529
+ }
530
+ /**
531
+ * Verifies a user's asymmetric keys by decrypting the private key with the provided user
532
+ * key. Returns if the private key is decryptable and if it is a valid matching key.
533
+ * Crypto initialization not required.
534
+ * @param {VerifyAsymmetricKeysRequest} request
535
+ * @returns {VerifyAsymmetricKeysResponse}
536
+ */
537
+ verify_asymmetric_keys(request) {
538
+ try {
539
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
540
+ wasm.clientcrypto_verify_asymmetric_keys(retptr, this.__wbg_ptr, addHeapObject(request));
541
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
542
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
543
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
544
+ if (r2) {
545
+ throw takeObject(r1);
546
+ }
547
+ return takeObject(r0);
548
+ } finally {
549
+ wasm.__wbindgen_add_to_stack_pointer(16);
550
+ }
551
+ }
431
552
  }
432
553
  module.exports.ClientCrypto = ClientCrypto;
433
554
 
@@ -514,162 +635,161 @@ class ClientVault {
514
635
  }
515
636
  module.exports.ClientVault = ClientVault;
516
637
 
517
- module.exports.__wbindgen_string_get = function (arg0, arg1) {
518
- const obj = getObject(arg1);
519
- const ret = typeof obj === "string" ? obj : undefined;
520
- var ptr1 = isLikeNone(ret)
521
- ? 0
522
- : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
523
- var len1 = WASM_VECTOR_LEN;
638
+ module.exports.__wbg_String_8f0eb39a4a4c2f66 = function (arg0, arg1) {
639
+ const ret = String(getObject(arg1));
640
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
641
+ const len1 = WASM_VECTOR_LEN;
524
642
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
525
643
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
526
644
  };
527
645
 
528
- module.exports.__wbindgen_object_drop_ref = function (arg0) {
529
- takeObject(arg0);
530
- };
531
-
532
- module.exports.__wbindgen_is_object = function (arg0) {
533
- const val = getObject(arg0);
534
- const ret = typeof val === "object" && val !== null;
535
- return ret;
536
- };
537
-
538
- module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function (arg0, arg1) {
539
- const ret = getObject(arg0)[getObject(arg1)];
540
- return addHeapObject(ret);
541
- };
542
-
543
- module.exports.__wbindgen_is_undefined = function (arg0) {
544
- const ret = getObject(arg0) === undefined;
545
- return ret;
646
+ module.exports.__wbg_abort_05026c983d86824c = function (arg0) {
647
+ getObject(arg0).abort();
546
648
  };
547
649
 
548
- module.exports.__wbindgen_in = function (arg0, arg1) {
549
- const ret = getObject(arg0) in getObject(arg1);
550
- return ret;
650
+ module.exports.__wbg_append_66f7cb821a84ee22 = function () {
651
+ return handleError(function (arg0, arg1, arg2, arg3, arg4) {
652
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
653
+ }, arguments);
551
654
  };
552
655
 
553
- module.exports.__wbg_isSafeInteger_b9dff570f01a9100 = function (arg0) {
554
- const ret = Number.isSafeInteger(getObject(arg0));
555
- return ret;
656
+ module.exports.__wbg_append_72d1635ad8643998 = function () {
657
+ return handleError(function (arg0, arg1, arg2, arg3, arg4) {
658
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
659
+ }, arguments);
556
660
  };
557
661
 
558
- module.exports.__wbindgen_as_number = function (arg0) {
559
- const ret = +getObject(arg0);
560
- return ret;
662
+ module.exports.__wbg_append_7606a4b52c36db7b = function () {
663
+ return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
664
+ getObject(arg0).append(
665
+ getStringFromWasm0(arg1, arg2),
666
+ getObject(arg3),
667
+ getStringFromWasm0(arg4, arg5),
668
+ );
669
+ }, arguments);
561
670
  };
562
671
 
563
- module.exports.__wbindgen_is_string = function (arg0) {
564
- const ret = typeof getObject(arg0) === "string";
565
- return ret;
672
+ module.exports.__wbg_append_f513a7a3683bdc23 = function () {
673
+ return handleError(function (arg0, arg1, arg2, arg3) {
674
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getObject(arg3));
675
+ }, arguments);
566
676
  };
567
677
 
568
- module.exports.__wbg_entries_c02034de337d3ee2 = function (arg0) {
569
- const ret = Object.entries(getObject(arg0));
678
+ module.exports.__wbg_buffer_61b7ce01341d7f88 = function (arg0) {
679
+ const ret = getObject(arg0).buffer;
570
680
  return addHeapObject(ret);
571
681
  };
572
682
 
573
- module.exports.__wbg_length_f217bbbf7e8e4df4 = function (arg0) {
574
- const ret = getObject(arg0).length;
575
- return ret;
683
+ module.exports.__wbg_call_500db948e69c7330 = function () {
684
+ return handleError(function (arg0, arg1, arg2) {
685
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
686
+ return addHeapObject(ret);
687
+ }, arguments);
576
688
  };
577
689
 
578
- module.exports.__wbg_get_5419cf6b954aa11d = function (arg0, arg1) {
579
- const ret = getObject(arg0)[arg1 >>> 0];
580
- return addHeapObject(ret);
690
+ module.exports.__wbg_call_b0d8e36992d9900d = function () {
691
+ return handleError(function (arg0, arg1) {
692
+ const ret = getObject(arg0).call(getObject(arg1));
693
+ return addHeapObject(ret);
694
+ }, arguments);
581
695
  };
582
696
 
583
- module.exports.__wbindgen_object_clone_ref = function (arg0) {
584
- const ret = getObject(arg0);
697
+ module.exports.__wbg_crypto_ed58b8e10a292839 = function (arg0) {
698
+ const ret = getObject(arg0).crypto;
585
699
  return addHeapObject(ret);
586
700
  };
587
701
 
588
- module.exports.__wbg_next_b06e115d1b01e10b = function () {
589
- return handleError(function (arg0) {
590
- const ret = getObject(arg0).next();
591
- return addHeapObject(ret);
592
- }, arguments);
702
+ module.exports.__wbg_debug_19114f11037e4658 = function (arg0, arg1, arg2, arg3) {
703
+ console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
593
704
  };
594
705
 
595
- module.exports.__wbg_done_983b5ffcaec8c583 = function (arg0) {
706
+ module.exports.__wbg_done_f22c1561fa919baa = function (arg0) {
596
707
  const ret = getObject(arg0).done;
597
708
  return ret;
598
709
  };
599
710
 
600
- module.exports.__wbg_value_2ab8a198c834c26a = function (arg0) {
601
- const ret = getObject(arg0).value;
711
+ module.exports.__wbg_entries_4f2bb9b0d701c0f6 = function (arg0) {
712
+ const ret = Object.entries(getObject(arg0));
602
713
  return addHeapObject(ret);
603
714
  };
604
715
 
605
- module.exports.__wbg_new_17961b5a90c523d5 = function (arg0, arg1) {
606
- let deferred0_0;
607
- let deferred0_1;
716
+ module.exports.__wbg_error_483d659117b6f3f6 = function (arg0, arg1, arg2, arg3) {
717
+ console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
718
+ };
719
+
720
+ module.exports.__wbg_error_7534b8e9a36f1ab4 = function (arg0, arg1) {
721
+ let deferred0_0;
722
+ let deferred0_1;
608
723
  try {
609
724
  deferred0_0 = arg0;
610
725
  deferred0_1 = arg1;
611
- const ret = new Error(getStringFromWasm0(arg0, arg1));
612
- return addHeapObject(ret);
726
+ console.error(getStringFromWasm0(arg0, arg1));
613
727
  } finally {
614
728
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
615
729
  }
616
730
  };
617
731
 
618
- module.exports.__wbg_call_3bfa248576352471 = function () {
619
- return handleError(function (arg0, arg1, arg2) {
620
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
621
- return addHeapObject(ret);
622
- }, arguments);
623
- };
624
-
625
- module.exports.__wbg_new_e69b5f66fda8f13c = function () {
626
- const ret = new Object();
732
+ module.exports.__wbg_fetch_229368eecee9d217 = function (arg0, arg1) {
733
+ const ret = getObject(arg0).fetch(getObject(arg1));
627
734
  return addHeapObject(ret);
628
735
  };
629
736
 
630
- module.exports.__wbg_setmethod_ce2da76000b02f6a = function (arg0, arg1, arg2) {
631
- getObject(arg0).method = getStringFromWasm0(arg1, arg2);
737
+ module.exports.__wbg_fetch_b335d17f45a8b5a1 = function (arg0) {
738
+ const ret = fetch(getObject(arg0));
739
+ return addHeapObject(ret);
632
740
  };
633
741
 
634
- module.exports.__wbg_new_a9ae04a5200606a5 = function () {
635
- return handleError(function () {
636
- const ret = new Headers();
637
- return addHeapObject(ret);
742
+ module.exports.__wbg_getRandomValues_bcb4912f16000dc4 = function () {
743
+ return handleError(function (arg0, arg1) {
744
+ getObject(arg0).getRandomValues(getObject(arg1));
638
745
  }, arguments);
639
746
  };
640
747
 
641
- module.exports.__wbg_setheaders_f5205d36e423a544 = function (arg0, arg1) {
642
- getObject(arg0).headers = getObject(arg1);
748
+ module.exports.__wbg_get_9aa3dff3f0266054 = function (arg0, arg1) {
749
+ const ret = getObject(arg0)[arg1 >>> 0];
750
+ return addHeapObject(ret);
643
751
  };
644
752
 
645
- module.exports.__wbg_setmode_4919fd636102c586 = function (arg0, arg1) {
646
- getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
753
+ module.exports.__wbg_get_bbccf8970793c087 = function () {
754
+ return handleError(function (arg0, arg1) {
755
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
756
+ return addHeapObject(ret);
757
+ }, arguments);
647
758
  };
648
759
 
649
- module.exports.__wbg_setcredentials_a4e661320cdb9738 = function (arg0, arg1) {
650
- getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
760
+ module.exports.__wbg_getwithrefkey_1dc361bd10053bfe = function (arg0, arg1) {
761
+ const ret = getObject(arg0)[getObject(arg1)];
762
+ return addHeapObject(ret);
651
763
  };
652
764
 
653
- module.exports.__wbg_setbody_aa8b691bec428bf4 = function (arg0, arg1) {
654
- getObject(arg0).body = getObject(arg1);
765
+ module.exports.__wbg_has_94c2fc1d261bbfe9 = function () {
766
+ return handleError(function (arg0, arg1) {
767
+ const ret = Reflect.has(getObject(arg0), getObject(arg1));
768
+ return ret;
769
+ }, arguments);
655
770
  };
656
771
 
657
- module.exports.__wbg_signal_9acfcec9e7dffc22 = function (arg0) {
658
- const ret = getObject(arg0).signal;
772
+ module.exports.__wbg_headers_24e3e19fe3f187c0 = function (arg0) {
773
+ const ret = getObject(arg0).headers;
659
774
  return addHeapObject(ret);
660
775
  };
661
776
 
662
- module.exports.__wbg_setsignal_812ccb8269a7fd90 = function (arg0, arg1) {
663
- getObject(arg0).signal = getObject(arg1);
777
+ module.exports.__wbg_info_18e75e6ce8a36a90 = function (arg0, arg1, arg2, arg3) {
778
+ console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
664
779
  };
665
780
 
666
- module.exports.__wbg_append_8b3e7f74a47ea7d5 = function () {
667
- return handleError(function (arg0, arg1, arg2, arg3, arg4) {
668
- getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
669
- }, arguments);
781
+ module.exports.__wbg_instanceof_ArrayBuffer_670ddde44cdb2602 = function (arg0) {
782
+ let result;
783
+ try {
784
+ result = getObject(arg0) instanceof ArrayBuffer;
785
+ } catch (_) {
786
+ result = false;
787
+ }
788
+ const ret = result;
789
+ return ret;
670
790
  };
671
791
 
672
- module.exports.__wbg_instanceof_Response_3c0e210a57ff751d = function (arg0) {
792
+ module.exports.__wbg_instanceof_Response_d3453657e10c4300 = function (arg0) {
673
793
  let result;
674
794
  try {
675
795
  result = getObject(arg0) instanceof Response;
@@ -680,75 +800,73 @@ module.exports.__wbg_instanceof_Response_3c0e210a57ff751d = function (arg0) {
680
800
  return ret;
681
801
  };
682
802
 
683
- module.exports.__wbg_status_5f4e900d22140a18 = function (arg0) {
684
- const ret = getObject(arg0).status;
803
+ module.exports.__wbg_instanceof_Uint8Array_28af5bc19d6acad8 = function (arg0) {
804
+ let result;
805
+ try {
806
+ result = getObject(arg0) instanceof Uint8Array;
807
+ } catch (_) {
808
+ result = false;
809
+ }
810
+ const ret = result;
685
811
  return ret;
686
812
  };
687
813
 
688
- module.exports.__wbg_url_58af972663531d16 = function (arg0, arg1) {
689
- const ret = getObject(arg1).url;
690
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
691
- const len1 = WASM_VECTOR_LEN;
692
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
693
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
814
+ module.exports.__wbg_isSafeInteger_12f5549b2fca23f4 = function (arg0) {
815
+ const ret = Number.isSafeInteger(getObject(arg0));
816
+ return ret;
694
817
  };
695
818
 
696
- module.exports.__wbg_headers_1b9bf90c73fae600 = function (arg0) {
697
- const ret = getObject(arg0).headers;
819
+ module.exports.__wbg_iterator_23604bb983791576 = function () {
820
+ const ret = Symbol.iterator;
698
821
  return addHeapObject(ret);
699
822
  };
700
823
 
701
- module.exports.__wbg_stringify_eead5648c09faaf8 = function () {
702
- return handleError(function (arg0) {
703
- const ret = JSON.stringify(getObject(arg0));
704
- return addHeapObject(ret);
705
- }, arguments);
824
+ module.exports.__wbg_length_65d1cd11729ced11 = function (arg0) {
825
+ const ret = getObject(arg0).length;
826
+ return ret;
706
827
  };
707
828
 
708
- module.exports.__wbg_abort_c57daab47a6c1215 = function (arg0) {
709
- getObject(arg0).abort();
829
+ module.exports.__wbg_length_d65cf0786bfc5739 = function (arg0) {
830
+ const ret = getObject(arg0).length;
831
+ return ret;
710
832
  };
711
833
 
712
- module.exports.__wbg_text_ebeee8b31af4c919 = function () {
713
- return handleError(function (arg0) {
714
- const ret = getObject(arg0).text();
715
- return addHeapObject(ret);
716
- }, arguments);
834
+ module.exports.__wbg_log_bc77772961bf21bb = function (arg0, arg1, arg2, arg3) {
835
+ console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
717
836
  };
718
837
 
719
- module.exports.__wbindgen_string_new = function (arg0, arg1) {
720
- const ret = getStringFromWasm0(arg0, arg1);
838
+ module.exports.__wbg_msCrypto_0a36e2ec3a343d26 = function (arg0) {
839
+ const ret = getObject(arg0).msCrypto;
721
840
  return addHeapObject(ret);
722
841
  };
723
842
 
724
- module.exports.__wbindgen_jsval_loose_eq = function (arg0, arg1) {
725
- const ret = getObject(arg0) == getObject(arg1);
726
- return ret;
843
+ module.exports.__wbg_new_079af0206358fe9d = function () {
844
+ return handleError(function () {
845
+ const ret = new FormData();
846
+ return addHeapObject(ret);
847
+ }, arguments);
727
848
  };
728
849
 
729
- module.exports.__wbindgen_cb_drop = function (arg0) {
730
- const obj = takeObject(arg0).original;
731
- if (obj.cnt-- == 1) {
732
- obj.a = 0;
733
- return true;
734
- }
735
- const ret = false;
736
- return ret;
850
+ module.exports.__wbg_new_254fa9eac11932ae = function () {
851
+ const ret = new Array();
852
+ return addHeapObject(ret);
737
853
  };
738
854
 
739
- module.exports.__wbindgen_error_new = function (arg0, arg1) {
740
- const ret = new Error(getStringFromWasm0(arg0, arg1));
741
- return addHeapObject(ret);
855
+ module.exports.__wbg_new_35d748855c4620b9 = function () {
856
+ return handleError(function () {
857
+ const ret = new Headers();
858
+ return addHeapObject(ret);
859
+ }, arguments);
742
860
  };
743
861
 
744
- module.exports.__wbg_new_1073970097e5a420 = function (arg0, arg1) {
862
+ module.exports.__wbg_new_3d446df9155128ef = function (arg0, arg1) {
745
863
  try {
746
864
  var state0 = { a: arg0, b: arg1 };
747
865
  var cb0 = (arg0, arg1) => {
748
866
  const a = state0.a;
749
867
  state0.a = 0;
750
868
  try {
751
- return __wbg_adapter_100(a, state0.b, arg0, arg1);
869
+ return __wbg_adapter_127(a, state0.b, arg0, arg1);
752
870
  } finally {
753
871
  state0.a = a;
754
872
  }
@@ -760,240 +878,281 @@ module.exports.__wbg_new_1073970097e5a420 = function (arg0, arg1) {
760
878
  }
761
879
  };
762
880
 
763
- module.exports.__wbg_set_f975102236d3c502 = function (arg0, arg1, arg2) {
764
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
881
+ module.exports.__wbg_new_3ff5b33b1ce712df = function (arg0) {
882
+ const ret = new Uint8Array(getObject(arg0));
883
+ return addHeapObject(ret);
765
884
  };
766
885
 
767
- module.exports.__wbg_new_abda76e883ba8a5f = function () {
768
- const ret = new Error();
886
+ module.exports.__wbg_new_5f48f21d4be11586 = function () {
887
+ return handleError(function () {
888
+ const ret = new AbortController();
889
+ return addHeapObject(ret);
890
+ }, arguments);
891
+ };
892
+
893
+ module.exports.__wbg_new_6799ef630abee97c = function (arg0, arg1) {
894
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
769
895
  return addHeapObject(ret);
770
896
  };
771
897
 
772
- module.exports.__wbg_stack_658279fe44541cf6 = function (arg0, arg1) {
773
- const ret = getObject(arg1).stack;
774
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
775
- const len1 = WASM_VECTOR_LEN;
776
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
777
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
898
+ module.exports.__wbg_new_688846f374351c92 = function () {
899
+ const ret = new Object();
900
+ return addHeapObject(ret);
778
901
  };
779
902
 
780
- module.exports.__wbg_error_f851667af71bcfc6 = function (arg0, arg1) {
903
+ module.exports.__wbg_new_8a6f238a6ece86ea = function () {
904
+ const ret = new Error();
905
+ return addHeapObject(ret);
906
+ };
907
+
908
+ module.exports.__wbg_new_f24b6d53abe5bc82 = function (arg0, arg1) {
781
909
  let deferred0_0;
782
910
  let deferred0_1;
783
911
  try {
784
912
  deferred0_0 = arg0;
785
913
  deferred0_1 = arg1;
786
- console.error(getStringFromWasm0(arg0, arg1));
914
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
915
+ return addHeapObject(ret);
787
916
  } finally {
788
917
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
789
918
  }
790
919
  };
791
920
 
792
- module.exports.__wbg_self_bf91bf94d9e04084 = function () {
793
- return handleError(function () {
794
- const ret = self.self;
795
- return addHeapObject(ret);
796
- }, arguments);
921
+ module.exports.__wbg_newnoargs_fd9e4bf8be2bc16d = function (arg0, arg1) {
922
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
923
+ return addHeapObject(ret);
797
924
  };
798
925
 
799
- module.exports.__wbg_window_52dd9f07d03fd5f8 = function () {
800
- return handleError(function () {
801
- const ret = window.window;
802
- return addHeapObject(ret);
803
- }, arguments);
926
+ module.exports.__wbg_newwithbyteoffsetandlength_ba35896968751d91 = function (arg0, arg1, arg2) {
927
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
928
+ return addHeapObject(ret);
804
929
  };
805
930
 
806
- module.exports.__wbg_globalThis_05c129bf37fcf1be = function () {
807
- return handleError(function () {
808
- const ret = globalThis.globalThis;
809
- return addHeapObject(ret);
810
- }, arguments);
931
+ module.exports.__wbg_newwithlength_34ce8f1051e74449 = function (arg0) {
932
+ const ret = new Uint8Array(arg0 >>> 0);
933
+ return addHeapObject(ret);
811
934
  };
812
935
 
813
- module.exports.__wbg_global_3eca19bb09e9c484 = function () {
814
- return handleError(function () {
815
- const ret = global.global;
936
+ module.exports.__wbg_newwithstrandinit_a1f6583f20e4faff = function () {
937
+ return handleError(function (arg0, arg1, arg2) {
938
+ const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
816
939
  return addHeapObject(ret);
817
940
  }, arguments);
818
941
  };
819
942
 
820
- module.exports.__wbg_newnoargs_1ede4bf2ebbaaf43 = function (arg0, arg1) {
821
- const ret = new Function(getStringFromWasm0(arg0, arg1));
822
- return addHeapObject(ret);
823
- };
824
-
825
- module.exports.__wbg_call_a9ef466721e824f2 = function () {
943
+ module.exports.__wbg_newwithu8arraysequenceandoptions_75a3b40c32d6c988 = function () {
826
944
  return handleError(function (arg0, arg1) {
827
- const ret = getObject(arg0).call(getObject(arg1));
945
+ const ret = new Blob(getObject(arg0), getObject(arg1));
828
946
  return addHeapObject(ret);
829
947
  }, arguments);
830
948
  };
831
949
 
832
- module.exports.__wbg_iterator_695d699a44d6234c = function () {
833
- const ret = Symbol.iterator;
834
- return addHeapObject(ret);
835
- };
836
-
837
- module.exports.__wbg_get_ef828680c64da212 = function () {
838
- return handleError(function (arg0, arg1) {
839
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
950
+ module.exports.__wbg_next_01dd9234a5bf6d05 = function () {
951
+ return handleError(function (arg0) {
952
+ const ret = getObject(arg0).next();
840
953
  return addHeapObject(ret);
841
954
  }, arguments);
842
955
  };
843
956
 
844
- module.exports.__wbindgen_is_function = function (arg0) {
845
- const ret = typeof getObject(arg0) === "function";
846
- return ret;
957
+ module.exports.__wbg_next_137428deb98342b0 = function (arg0) {
958
+ const ret = getObject(arg0).next;
959
+ return addHeapObject(ret);
847
960
  };
848
961
 
849
- module.exports.__wbg_next_13b477da1eaa3897 = function (arg0) {
850
- const ret = getObject(arg0).next;
962
+ module.exports.__wbg_node_02999533c4ea02e3 = function (arg0) {
963
+ const ret = getObject(arg0).node;
851
964
  return addHeapObject(ret);
852
965
  };
853
966
 
854
- module.exports.__wbg_new_034f913e7636e987 = function () {
855
- const ret = new Array();
967
+ module.exports.__wbg_process_5c1d670bc53614b8 = function (arg0) {
968
+ const ret = getObject(arg0).process;
856
969
  return addHeapObject(ret);
857
970
  };
858
971
 
859
- module.exports.__wbg_push_36cf4d81d7da33d1 = function (arg0, arg1) {
972
+ module.exports.__wbg_push_6edad0df4b546b2c = function (arg0, arg1) {
860
973
  const ret = getObject(arg0).push(getObject(arg1));
861
974
  return ret;
862
975
  };
863
976
 
864
- module.exports.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function (arg0) {
865
- let result;
866
- try {
867
- result = getObject(arg0) instanceof ArrayBuffer;
868
- } catch (_) {
869
- result = false;
870
- }
871
- const ret = result;
872
- return ret;
977
+ module.exports.__wbg_queueMicrotask_2181040e064c0dc8 = function (arg0) {
978
+ queueMicrotask(getObject(arg0));
873
979
  };
874
980
 
875
- module.exports.__wbg_new_70a2f23d1565c04c = function (arg0, arg1) {
876
- const ret = new Error(getStringFromWasm0(arg0, arg1));
981
+ module.exports.__wbg_queueMicrotask_ef9ac43769cbcc4f = function (arg0) {
982
+ const ret = getObject(arg0).queueMicrotask;
877
983
  return addHeapObject(ret);
878
984
  };
879
985
 
880
- module.exports.__wbg_has_bd717f25f195f23d = function () {
986
+ module.exports.__wbg_randomFillSync_ab2cfe79ebbf2740 = function () {
881
987
  return handleError(function (arg0, arg1) {
882
- const ret = Reflect.has(getObject(arg0), getObject(arg1));
883
- return ret;
988
+ getObject(arg0).randomFillSync(takeObject(arg1));
989
+ }, arguments);
990
+ };
991
+
992
+ module.exports.__wbg_require_79b1e9274cde3c87 = function () {
993
+ return handleError(function () {
994
+ const ret = module.require;
995
+ return addHeapObject(ret);
884
996
  }, arguments);
885
997
  };
886
998
 
887
- module.exports.__wbg_resolve_0aad7c1484731c99 = function (arg0) {
999
+ module.exports.__wbg_resolve_0bf7c44d641804f9 = function (arg0) {
888
1000
  const ret = Promise.resolve(getObject(arg0));
889
1001
  return addHeapObject(ret);
890
1002
  };
891
1003
 
892
- module.exports.__wbg_then_748f75edfb032440 = function (arg0, arg1) {
893
- const ret = getObject(arg0).then(getObject(arg1));
894
- return addHeapObject(ret);
1004
+ module.exports.__wbg_set_23d69db4e5c66a6e = function (arg0, arg1, arg2) {
1005
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
895
1006
  };
896
1007
 
897
- module.exports.__wbg_then_4866a7d9f55d8f3e = function (arg0, arg1, arg2) {
898
- const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
899
- return addHeapObject(ret);
1008
+ module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
1009
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
900
1010
  };
901
1011
 
902
- module.exports.__wbindgen_memory = function () {
903
- const ret = wasm.memory;
904
- return addHeapObject(ret);
1012
+ module.exports.__wbg_setbody_64920df008e48adc = function (arg0, arg1) {
1013
+ getObject(arg0).body = getObject(arg1);
905
1014
  };
906
1015
 
907
- module.exports.__wbg_buffer_ccaed51a635d8a2d = function (arg0) {
908
- const ret = getObject(arg0).buffer;
909
- return addHeapObject(ret);
1016
+ module.exports.__wbg_setcredentials_cfc15e48e3a3a535 = function (arg0, arg1) {
1017
+ getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
910
1018
  };
911
1019
 
912
- module.exports.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function (arg0, arg1, arg2) {
913
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
914
- return addHeapObject(ret);
1020
+ module.exports.__wbg_setheaders_4c921e8e226bdfa7 = function (arg0, arg1) {
1021
+ getObject(arg0).headers = getObject(arg1);
915
1022
  };
916
1023
 
917
- module.exports.__wbg_length_9254c4bd3b9f23c4 = function (arg0) {
918
- const ret = getObject(arg0).length;
919
- return ret;
1024
+ module.exports.__wbg_setmethod_cfc7f688ba46a6be = function (arg0, arg1, arg2) {
1025
+ getObject(arg0).method = getStringFromWasm0(arg1, arg2);
920
1026
  };
921
1027
 
922
- module.exports.__wbg_new_fec2611eb9180f95 = function (arg0) {
923
- const ret = new Uint8Array(getObject(arg0));
924
- return addHeapObject(ret);
1028
+ module.exports.__wbg_setmode_cd03637eb7da01e0 = function (arg0, arg1) {
1029
+ getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
925
1030
  };
926
1031
 
927
- module.exports.__wbg_set_ec2fcf81bc573fd9 = function (arg0, arg1, arg2) {
928
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1032
+ module.exports.__wbg_setname_c0e2d6f348c746f4 = function (arg0, arg1, arg2) {
1033
+ let deferred0_0;
1034
+ let deferred0_1;
1035
+ try {
1036
+ deferred0_0 = arg1;
1037
+ deferred0_1 = arg2;
1038
+ getObject(arg0).name = getStringFromWasm0(arg1, arg2);
1039
+ } finally {
1040
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1041
+ }
929
1042
  };
930
1043
 
931
- module.exports.__wbg_instanceof_Uint8Array_df0761410414ef36 = function (arg0) {
932
- let result;
1044
+ module.exports.__wbg_setsignal_f766190d206f09e5 = function (arg0, arg1) {
1045
+ getObject(arg0).signal = getObject(arg1);
1046
+ };
1047
+
1048
+ module.exports.__wbg_settype_fd39465d237c2f36 = function (arg0, arg1, arg2) {
1049
+ getObject(arg0).type = getStringFromWasm0(arg1, arg2);
1050
+ };
1051
+
1052
+ module.exports.__wbg_setvariant_d1d41b778dfe9c17 = function (arg0, arg1, arg2) {
1053
+ let deferred0_0;
1054
+ let deferred0_1;
933
1055
  try {
934
- result = getObject(arg0) instanceof Uint8Array;
935
- } catch (_) {
936
- result = false;
1056
+ deferred0_0 = arg1;
1057
+ deferred0_1 = arg2;
1058
+ getObject(arg0).variant = getStringFromWasm0(arg1, arg2);
1059
+ } finally {
1060
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
937
1061
  }
938
- const ret = result;
939
- return ret;
940
1062
  };
941
1063
 
942
- module.exports.__wbg_new_4e7308fbedde3997 = function () {
943
- return handleError(function () {
944
- const ret = new FormData();
945
- return addHeapObject(ret);
946
- }, arguments);
1064
+ module.exports.__wbg_signal_1fdadeba2d04660e = function (arg0) {
1065
+ const ret = getObject(arg0).signal;
1066
+ return addHeapObject(ret);
947
1067
  };
948
1068
 
949
- module.exports.__wbg_append_43a4b1c9d5df4168 = function () {
950
- return handleError(function (arg0, arg1, arg2, arg3, arg4) {
951
- getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
952
- }, arguments);
1069
+ module.exports.__wbg_stack_0ed75d68575b0f3c = function (arg0, arg1) {
1070
+ const ret = getObject(arg1).stack;
1071
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1072
+ const len1 = WASM_VECTOR_LEN;
1073
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1074
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
953
1075
  };
954
1076
 
955
- module.exports.__wbg_settype_623d2ee701e6310a = function (arg0, arg1, arg2) {
956
- getObject(arg0).type = getStringFromWasm0(arg1, arg2);
1077
+ module.exports.__wbg_static_accessor_GLOBAL_0be7472e492ad3e3 = function () {
1078
+ const ret = typeof global === "undefined" ? null : global;
1079
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
957
1080
  };
958
1081
 
959
- module.exports.__wbg_newwithu8arraysequenceandoptions_d41c0fdf78490206 = function () {
960
- return handleError(function (arg0, arg1) {
961
- const ret = new Blob(getObject(arg0), getObject(arg1));
1082
+ module.exports.__wbg_static_accessor_GLOBAL_THIS_1a6eb482d12c9bfb = function () {
1083
+ const ret = typeof globalThis === "undefined" ? null : globalThis;
1084
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1085
+ };
1086
+
1087
+ module.exports.__wbg_static_accessor_SELF_1dc398a895c82351 = function () {
1088
+ const ret = typeof self === "undefined" ? null : self;
1089
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1090
+ };
1091
+
1092
+ module.exports.__wbg_static_accessor_WINDOW_ae1c80c7eea8d64a = function () {
1093
+ const ret = typeof window === "undefined" ? null : window;
1094
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1095
+ };
1096
+
1097
+ module.exports.__wbg_status_317f53bc4c7638df = function (arg0) {
1098
+ const ret = getObject(arg0).status;
1099
+ return ret;
1100
+ };
1101
+
1102
+ module.exports.__wbg_stringify_f4f701bc34ceda61 = function () {
1103
+ return handleError(function (arg0) {
1104
+ const ret = JSON.stringify(getObject(arg0));
962
1105
  return addHeapObject(ret);
963
1106
  }, arguments);
964
1107
  };
965
1108
 
966
- module.exports.__wbg_append_7ee78799a92a9731 = function () {
967
- return handleError(function (arg0, arg1, arg2, arg3) {
968
- getObject(arg0).append(getStringFromWasm0(arg1, arg2), getObject(arg3));
969
- }, arguments);
1109
+ module.exports.__wbg_subarray_46adeb9b86949d12 = function (arg0, arg1, arg2) {
1110
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1111
+ return addHeapObject(ret);
970
1112
  };
971
1113
 
972
- module.exports.__wbg_append_8135c71037096394 = function () {
973
- return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
974
- getObject(arg0).append(
975
- getStringFromWasm0(arg1, arg2),
976
- getObject(arg3),
977
- getStringFromWasm0(arg4, arg5),
978
- );
1114
+ module.exports.__wbg_text_dfc4cb7631d2eb34 = function () {
1115
+ return handleError(function (arg0) {
1116
+ const ret = getObject(arg0).text();
1117
+ return addHeapObject(ret);
979
1118
  }, arguments);
980
1119
  };
981
1120
 
982
- module.exports.__wbg_fetch_f8d735ba6fe1b719 = function (arg0) {
983
- const ret = fetch(getObject(arg0));
1121
+ module.exports.__wbg_then_0438fad860fe38e1 = function (arg0, arg1) {
1122
+ const ret = getObject(arg0).then(getObject(arg1));
984
1123
  return addHeapObject(ret);
985
1124
  };
986
1125
 
987
- module.exports.__wbg_fetch_1fdc4448ed9eec00 = function (arg0, arg1) {
988
- const ret = getObject(arg0).fetch(getObject(arg1));
1126
+ module.exports.__wbg_then_0ffafeddf0e182a4 = function (arg0, arg1, arg2) {
1127
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
989
1128
  return addHeapObject(ret);
990
1129
  };
991
1130
 
992
- module.exports.__wbg_new_75169ae5a9683c55 = function () {
993
- return handleError(function () {
994
- const ret = new AbortController();
995
- return addHeapObject(ret);
996
- }, arguments);
1131
+ module.exports.__wbg_url_5327bc0a41a9b085 = function (arg0, arg1) {
1132
+ const ret = getObject(arg1).url;
1133
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1134
+ const len1 = WASM_VECTOR_LEN;
1135
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1136
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1137
+ };
1138
+
1139
+ module.exports.__wbg_value_4c32fd138a88eee2 = function (arg0) {
1140
+ const ret = getObject(arg0).value;
1141
+ return addHeapObject(ret);
1142
+ };
1143
+
1144
+ module.exports.__wbg_versions_c71aa1626a93e0a1 = function (arg0) {
1145
+ const ret = getObject(arg0).versions;
1146
+ return addHeapObject(ret);
1147
+ };
1148
+
1149
+ module.exports.__wbg_warn_cb8be8bbf790a5d6 = function (arg0, arg1, arg2, arg3) {
1150
+ console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1151
+ };
1152
+
1153
+ module.exports.__wbindgen_as_number = function (arg0) {
1154
+ const ret = +getObject(arg0);
1155
+ return ret;
997
1156
  };
998
1157
 
999
1158
  module.exports.__wbindgen_boolean_get = function (arg0) {
@@ -1002,19 +1161,19 @@ module.exports.__wbindgen_boolean_get = function (arg0) {
1002
1161
  return ret;
1003
1162
  };
1004
1163
 
1005
- module.exports.__wbindgen_number_get = function (arg0, arg1) {
1006
- const obj = getObject(arg1);
1007
- const ret = typeof obj === "number" ? obj : undefined;
1008
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1009
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1164
+ module.exports.__wbindgen_cb_drop = function (arg0) {
1165
+ const obj = takeObject(arg0).original;
1166
+ if (obj.cnt-- == 1) {
1167
+ obj.a = 0;
1168
+ return true;
1169
+ }
1170
+ const ret = false;
1171
+ return ret;
1010
1172
  };
1011
1173
 
1012
- module.exports.__wbg_String_b9412f8799faab3e = function (arg0, arg1) {
1013
- const ret = String(getObject(arg1));
1014
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1015
- const len1 = WASM_VECTOR_LEN;
1016
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1017
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1174
+ module.exports.__wbindgen_closure_wrapper1933 = function (arg0, arg1, arg2) {
1175
+ const ret = makeMutClosure(arg0, arg1, 549, __wbg_adapter_38);
1176
+ return addHeapObject(ret);
1018
1177
  };
1019
1178
 
1020
1179
  module.exports.__wbindgen_debug_string = function (arg0, arg1) {
@@ -1025,51 +1184,83 @@ module.exports.__wbindgen_debug_string = function (arg0, arg1) {
1025
1184
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1026
1185
  };
1027
1186
 
1028
- module.exports.__wbindgen_throw = function (arg0, arg1) {
1029
- throw new Error(getStringFromWasm0(arg0, arg1));
1187
+ module.exports.__wbindgen_error_new = function (arg0, arg1) {
1188
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1189
+ return addHeapObject(ret);
1030
1190
  };
1031
1191
 
1032
- module.exports.__wbg_queueMicrotask_848aa4969108a57e = function (arg0) {
1033
- const ret = getObject(arg0).queueMicrotask;
1034
- return addHeapObject(ret);
1192
+ module.exports.__wbindgen_in = function (arg0, arg1) {
1193
+ const ret = getObject(arg0) in getObject(arg1);
1194
+ return ret;
1035
1195
  };
1036
1196
 
1037
- module.exports.__wbg_queueMicrotask_c5419c06eab41e73 = function (arg0) {
1038
- queueMicrotask(getObject(arg0));
1197
+ module.exports.__wbindgen_is_function = function (arg0) {
1198
+ const ret = typeof getObject(arg0) === "function";
1199
+ return ret;
1039
1200
  };
1040
1201
 
1041
- module.exports.__wbg_newwithstrandinit_4b92c89af0a8e383 = function () {
1042
- return handleError(function (arg0, arg1, arg2) {
1043
- const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
1044
- return addHeapObject(ret);
1045
- }, arguments);
1202
+ module.exports.__wbindgen_is_object = function (arg0) {
1203
+ const val = getObject(arg0);
1204
+ const ret = typeof val === "object" && val !== null;
1205
+ return ret;
1046
1206
  };
1047
1207
 
1048
- module.exports.__wbg_debug_a0b6c2c5ac9a4bfd = function (arg0, arg1, arg2, arg3) {
1049
- console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1208
+ module.exports.__wbindgen_is_string = function (arg0) {
1209
+ const ret = typeof getObject(arg0) === "string";
1210
+ return ret;
1050
1211
  };
1051
1212
 
1052
- module.exports.__wbg_error_4d17c5bb1ca90c94 = function (arg0, arg1, arg2, arg3) {
1053
- console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1213
+ module.exports.__wbindgen_is_undefined = function (arg0) {
1214
+ const ret = getObject(arg0) === undefined;
1215
+ return ret;
1054
1216
  };
1055
1217
 
1056
- module.exports.__wbg_info_1c7fba7da21072d1 = function (arg0, arg1, arg2, arg3) {
1057
- console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1218
+ module.exports.__wbindgen_jsval_loose_eq = function (arg0, arg1) {
1219
+ const ret = getObject(arg0) == getObject(arg1);
1220
+ return ret;
1058
1221
  };
1059
1222
 
1060
- module.exports.__wbg_log_4de37a0274d94769 = function (arg0, arg1, arg2, arg3) {
1061
- console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1223
+ module.exports.__wbindgen_memory = function () {
1224
+ const ret = wasm.memory;
1225
+ return addHeapObject(ret);
1062
1226
  };
1063
1227
 
1064
- module.exports.__wbg_warn_2e2787d40aad9a81 = function (arg0, arg1, arg2, arg3) {
1065
- console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1228
+ module.exports.__wbindgen_number_get = function (arg0, arg1) {
1229
+ const obj = getObject(arg1);
1230
+ const ret = typeof obj === "number" ? obj : undefined;
1231
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1232
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1066
1233
  };
1067
1234
 
1068
- module.exports.__wbindgen_closure_wrapper1610 = function (arg0, arg1, arg2) {
1069
- const ret = makeMutClosure(arg0, arg1, 425, __wbg_adapter_38);
1235
+ module.exports.__wbindgen_object_clone_ref = function (arg0) {
1236
+ const ret = getObject(arg0);
1070
1237
  return addHeapObject(ret);
1071
1238
  };
1072
1239
 
1240
+ module.exports.__wbindgen_object_drop_ref = function (arg0) {
1241
+ takeObject(arg0);
1242
+ };
1243
+
1244
+ module.exports.__wbindgen_string_get = function (arg0, arg1) {
1245
+ const obj = getObject(arg1);
1246
+ const ret = typeof obj === "string" ? obj : undefined;
1247
+ var ptr1 = isLikeNone(ret)
1248
+ ? 0
1249
+ : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1250
+ var len1 = WASM_VECTOR_LEN;
1251
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1252
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1253
+ };
1254
+
1255
+ module.exports.__wbindgen_string_new = function (arg0, arg1) {
1256
+ const ret = getStringFromWasm0(arg0, arg1);
1257
+ return addHeapObject(ret);
1258
+ };
1259
+
1260
+ module.exports.__wbindgen_throw = function (arg0, arg1) {
1261
+ throw new Error(getStringFromWasm0(arg0, arg1));
1262
+ };
1263
+
1073
1264
  const path = require("path").join(__dirname, "bitwarden_wasm_internal_bg.wasm");
1074
1265
  const bytes = require("fs").readFileSync(path);
1075
1266