@xmtp/wasm-bindings 0.0.16 → 0.0.18

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.
@@ -1,5 +1,3 @@
1
- import { SQLite } from './snippets/sqlite-web-90f8afa7b0cd2303/src/js/sqlite3-diesel.js';
2
-
3
1
  let wasm;
4
2
 
5
3
  let WASM_VECTOR_LEN = 0;
@@ -87,7 +85,7 @@ function getStringFromWasm0(ptr, len) {
87
85
 
88
86
  function addToExternrefTable0(obj) {
89
87
  const idx = wasm.__externref_table_alloc();
90
- wasm.__wbindgen_export_5.set(idx, obj);
88
+ wasm.__wbindgen_export_4.set(idx, obj);
91
89
  return idx;
92
90
  }
93
91
 
@@ -104,10 +102,26 @@ function isLikeNone(x) {
104
102
  return x === undefined || x === null;
105
103
  }
106
104
 
105
+ function getArrayJsValueFromWasm0(ptr, len) {
106
+ ptr = ptr >>> 0;
107
+ const mem = getDataViewMemory0();
108
+ const result = [];
109
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
110
+ result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
111
+ }
112
+ wasm.__externref_drop_slice(ptr, len);
113
+ return result;
114
+ }
115
+
116
+ function getArrayU8FromWasm0(ptr, len) {
117
+ ptr = ptr >>> 0;
118
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
119
+ }
120
+
107
121
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
108
122
  ? { register: () => {}, unregister: () => {} }
109
123
  : new FinalizationRegistry(state => {
110
- wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
124
+ wasm.__wbindgen_export_7.get(state.dtor)(state.a, state.b)
111
125
  });
112
126
 
113
127
  function makeMutClosure(arg0, arg1, dtor, f) {
@@ -123,7 +137,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
123
137
  return f(a, state.b, ...args);
124
138
  } finally {
125
139
  if (--state.cnt === 0) {
126
- wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
140
+ wasm.__wbindgen_export_7.get(state.dtor)(a, state.b);
127
141
  CLOSURE_DTORS.unregister(state);
128
142
  } else {
129
143
  state.a = a;
@@ -210,28 +224,24 @@ function passArrayJsValueToWasm0(array, malloc) {
210
224
  return ptr;
211
225
  }
212
226
 
213
- function takeFromExternrefTable0(idx) {
214
- const value = wasm.__wbindgen_export_5.get(idx);
215
- wasm.__externref_table_dealloc(idx);
216
- return value;
217
- }
218
-
219
- function getArrayJsValueFromWasm0(ptr, len) {
220
- ptr = ptr >>> 0;
221
- const mem = getDataViewMemory0();
222
- const result = [];
223
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
224
- result.push(wasm.__wbindgen_export_5.get(mem.getUint32(i, true)));
225
- }
226
- wasm.__externref_drop_slice(ptr, len);
227
- return result;
228
- }
229
-
230
227
  function _assertClass(instance, klass) {
231
228
  if (!(instance instanceof klass)) {
232
229
  throw new Error(`expected instance of ${klass.name}`);
233
230
  }
234
231
  }
232
+
233
+ function passArray8ToWasm0(arg, malloc) {
234
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
235
+ getUint8ArrayMemory0().set(arg, ptr / 1);
236
+ WASM_VECTOR_LEN = arg.length;
237
+ return ptr;
238
+ }
239
+
240
+ function takeFromExternrefTable0(idx) {
241
+ const value = wasm.__wbindgen_export_4.get(idx);
242
+ wasm.__externref_table_dealloc(idx);
243
+ return value;
244
+ }
235
245
  /**
236
246
  * @param {string} host
237
247
  * @param {string} inbox_id
@@ -315,27 +325,73 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
315
325
  }
316
326
  }
317
327
 
318
- function getArrayU8FromWasm0(ptr, len) {
319
- ptr = ptr >>> 0;
320
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
328
+ /**
329
+ * @param {MultiRemoteAttachment} multiRemoteAttachment
330
+ * @returns {Uint8Array}
331
+ */
332
+ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
333
+ _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
334
+ var ptr0 = multiRemoteAttachment.__destroy_into_raw();
335
+ const ret = wasm.encodeMultiRemoteAttachment(ptr0);
336
+ if (ret[2]) {
337
+ throw takeFromExternrefTable0(ret[1]);
338
+ }
339
+ return takeFromExternrefTable0(ret[0]);
321
340
  }
322
341
 
323
- function passArray8ToWasm0(arg, malloc) {
324
- const ptr = malloc(arg.length * 1, 1) >>> 0;
325
- getUint8ArrayMemory0().set(arg, ptr / 1);
326
- WASM_VECTOR_LEN = arg.length;
327
- return ptr;
342
+ /**
343
+ * @param {Uint8Array} bytes
344
+ * @returns {MultiRemoteAttachment}
345
+ */
346
+ export function decodeMultiRemoteAttachment(bytes) {
347
+ const ret = wasm.decodeMultiRemoteAttachment(bytes);
348
+ if (ret[2]) {
349
+ throw takeFromExternrefTable0(ret[1]);
350
+ }
351
+ return MultiRemoteAttachment.__wrap(ret[0]);
352
+ }
353
+
354
+ /**
355
+ * @param {Reaction} reaction
356
+ * @returns {Uint8Array}
357
+ */
358
+ export function encodeReaction(reaction) {
359
+ _assertClass(reaction, Reaction);
360
+ var ptr0 = reaction.__destroy_into_raw();
361
+ const ret = wasm.encodeReaction(ptr0);
362
+ if (ret[2]) {
363
+ throw takeFromExternrefTable0(ret[1]);
364
+ }
365
+ return takeFromExternrefTable0(ret[0]);
366
+ }
367
+
368
+ /**
369
+ * @param {Uint8Array} bytes
370
+ * @returns {Reaction}
371
+ */
372
+ export function decodeReaction(bytes) {
373
+ const ret = wasm.decodeReaction(bytes);
374
+ if (ret[2]) {
375
+ throw takeFromExternrefTable0(ret[1]);
376
+ }
377
+ return Reaction.__wrap(ret[0]);
378
+ }
379
+
380
+ function __wbg_adapter_46(arg0, arg1) {
381
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec(arg0, arg1);
328
382
  }
329
- function __wbg_adapter_52(arg0, arg1) {
330
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb21f8cddfb9e179d(arg0, arg1);
383
+
384
+ function __wbg_adapter_49(arg0, arg1, arg2) {
385
+ wasm.closure3672_externref_shim(arg0, arg1, arg2);
331
386
  }
332
387
 
333
- function __wbg_adapter_55(arg0, arg1, arg2) {
334
- wasm.closure2991_externref_shim(arg0, arg1, arg2);
388
+ function __wbg_adapter_579(arg0, arg1, arg2, arg3, arg4) {
389
+ const ret = wasm.closure4679_externref_shim(arg0, arg1, arg2, arg3, arg4);
390
+ return ret !== 0;
335
391
  }
336
392
 
337
- function __wbg_adapter_650(arg0, arg1, arg2, arg3) {
338
- wasm.closure4013_externref_shim(arg0, arg1, arg2, arg3);
393
+ function __wbg_adapter_680(arg0, arg1, arg2, arg3) {
394
+ wasm.closure4678_externref_shim(arg0, arg1, arg2, arg3);
339
395
  }
340
396
 
341
397
  /**
@@ -354,6 +410,21 @@ export const ConsentState = Object.freeze({
354
410
  Allowed: 1, "1": "Allowed",
355
411
  Denied: 2, "2": "Denied",
356
412
  });
413
+ /**
414
+ * @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}
415
+ */
416
+ export const ContentType = Object.freeze({
417
+ Unknown: 0, "0": "Unknown",
418
+ Text: 1, "1": "Text",
419
+ GroupMembershipChange: 2, "2": "GroupMembershipChange",
420
+ GroupUpdated: 3, "3": "GroupUpdated",
421
+ Reaction: 4, "4": "Reaction",
422
+ ReadReceipt: 5, "5": "ReadReceipt",
423
+ Reply: 6, "6": "Reply",
424
+ Attachment: 7, "7": "Attachment",
425
+ RemoteAttachment: 8, "8": "RemoteAttachment",
426
+ TransactionReference: 9, "9": "TransactionReference",
427
+ });
357
428
  /**
358
429
  * @enum {0 | 1 | 2}
359
430
  */
@@ -432,6 +503,23 @@ export const PermissionUpdateType = Object.freeze({
432
503
  RemoveAdmin: 3, "3": "RemoveAdmin",
433
504
  UpdateMetadata: 4, "4": "UpdateMetadata",
434
505
  });
506
+ /**
507
+ * @enum {0 | 1 | 2}
508
+ */
509
+ export const ReactionAction = Object.freeze({
510
+ Unknown: 0, "0": "Unknown",
511
+ Added: 1, "1": "Added",
512
+ Removed: 2, "2": "Removed",
513
+ });
514
+ /**
515
+ * @enum {0 | 1 | 2 | 3}
516
+ */
517
+ export const ReactionSchema = Object.freeze({
518
+ Unknown: 0, "0": "Unknown",
519
+ Unicode: 1, "1": "Unicode",
520
+ Shortcode: 2, "2": "Shortcode",
521
+ Custom: 3, "3": "Custom",
522
+ });
435
523
  /**
436
524
  * @enum {0 | 1 | 2 | 3}
437
525
  */
@@ -482,27 +570,6 @@ export class Client {
482
570
  const ptr = this.__destroy_into_raw();
483
571
  wasm.__wbg_client_free(ptr, 0);
484
572
  }
485
- /**
486
- * @param {Consent[]} records
487
- * @returns {Promise<void>}
488
- */
489
- setConsentStates(records) {
490
- const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
491
- const len0 = WASM_VECTOR_LEN;
492
- const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
493
- return ret;
494
- }
495
- /**
496
- * @param {ConsentEntityType} entity_type
497
- * @param {string} entity
498
- * @returns {Promise<ConsentState>}
499
- */
500
- getConsentState(entity_type, entity) {
501
- const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
502
- const len0 = WASM_VECTOR_LEN;
503
- const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
504
- return ret;
505
- }
506
573
  /**
507
574
  *
508
575
  * * Get the client's inbox state.
@@ -634,6 +701,27 @@ export class Client {
634
701
  const ret = wasm.client_conversations(this.__wbg_ptr);
635
702
  return Conversations.__wrap(ret);
636
703
  }
704
+ /**
705
+ * @param {Consent[]} records
706
+ * @returns {Promise<void>}
707
+ */
708
+ setConsentStates(records) {
709
+ const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
710
+ const len0 = WASM_VECTOR_LEN;
711
+ const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
712
+ return ret;
713
+ }
714
+ /**
715
+ * @param {ConsentEntityType} entity_type
716
+ * @param {string} entity
717
+ * @returns {Promise<ConsentState>}
718
+ */
719
+ getConsentState(entity_type, entity) {
720
+ const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
721
+ const len0 = WASM_VECTOR_LEN;
722
+ const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
723
+ return ret;
724
+ }
637
725
  /**
638
726
  * @returns {string | undefined}
639
727
  */
@@ -1065,6 +1153,19 @@ export class Conversation {
1065
1153
  const ret = wasm.conversation_findMessages(this.__wbg_ptr, ptr0);
1066
1154
  return ret;
1067
1155
  }
1156
+ /**
1157
+ * @param {ListMessagesOptions | null} [opts]
1158
+ * @returns {Promise<MessageWithReactions[]>}
1159
+ */
1160
+ findMessagesWithReactions(opts) {
1161
+ let ptr0 = 0;
1162
+ if (!isLikeNone(opts)) {
1163
+ _assertClass(opts, ListMessagesOptions);
1164
+ ptr0 = opts.__destroy_into_raw();
1165
+ }
1166
+ const ret = wasm.conversation_findMessagesWithReactions(this.__wbg_ptr, ptr0);
1167
+ return ret;
1168
+ }
1068
1169
  /**
1069
1170
  * @returns {Promise<any>}
1070
1171
  */
@@ -1429,6 +1530,16 @@ export class Conversation {
1429
1530
  }
1430
1531
  return ret[0] !== 0;
1431
1532
  }
1533
+ /**
1534
+ * @returns {any}
1535
+ */
1536
+ getHmacKeys() {
1537
+ const ret = wasm.conversation_getHmacKeys(this.__wbg_ptr);
1538
+ if (ret[2]) {
1539
+ throw takeFromExternrefTable0(ret[1]);
1540
+ }
1541
+ return takeFromExternrefTable0(ret[0]);
1542
+ }
1432
1543
  }
1433
1544
 
1434
1545
  const ConversationListItemFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1757,6 +1868,28 @@ export class Conversations {
1757
1868
  }
1758
1869
  return StreamCloser.__wrap(ret[0]);
1759
1870
  }
1871
+ /**
1872
+ * @param {any} callback
1873
+ * @returns {StreamCloser}
1874
+ */
1875
+ streamConsent(callback) {
1876
+ const ret = wasm.conversations_streamConsent(this.__wbg_ptr, callback);
1877
+ if (ret[2]) {
1878
+ throw takeFromExternrefTable0(ret[1]);
1879
+ }
1880
+ return StreamCloser.__wrap(ret[0]);
1881
+ }
1882
+ /**
1883
+ * @param {any} callback
1884
+ * @returns {StreamCloser}
1885
+ */
1886
+ streamPreferences(callback) {
1887
+ const ret = wasm.conversations_streamPreferences(this.__wbg_ptr, callback);
1888
+ if (ret[2]) {
1889
+ throw takeFromExternrefTable0(ret[1]);
1890
+ }
1891
+ return StreamCloser.__wrap(ret[0]);
1892
+ }
1760
1893
  }
1761
1894
 
1762
1895
  const CreateDMOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2130,7 +2263,7 @@ export class GroupMember {
2130
2263
  set inboxId(arg0) {
2131
2264
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2132
2265
  const len0 = WASM_VECTOR_LEN;
2133
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2266
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
2134
2267
  }
2135
2268
  /**
2136
2269
  * @returns {string[]}
@@ -2412,7 +2545,7 @@ export class InboxState {
2412
2545
  set inboxId(arg0) {
2413
2546
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2414
2547
  const len0 = WASM_VECTOR_LEN;
2415
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2548
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
2416
2549
  }
2417
2550
  /**
2418
2551
  * @returns {string}
@@ -2435,7 +2568,7 @@ export class InboxState {
2435
2568
  set recoveryAddress(arg0) {
2436
2569
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2437
2570
  const len0 = WASM_VECTOR_LEN;
2438
- wasm.__wbg_set_inboxstate_recoveryAddress(this.__wbg_ptr, ptr0, len0);
2571
+ wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
2439
2572
  }
2440
2573
  /**
2441
2574
  * @returns {Installation[]}
@@ -2732,26 +2865,6 @@ export class ListConversationsOptions {
2732
2865
  const ptr = this.__destroy_into_raw();
2733
2866
  wasm.__wbg_listconversationsoptions_free(ptr, 0);
2734
2867
  }
2735
- /**
2736
- * @returns {any[] | undefined}
2737
- */
2738
- get allowedStates() {
2739
- const ret = wasm.__wbg_get_listconversationsoptions_allowedStates(this.__wbg_ptr);
2740
- let v1;
2741
- if (ret[0] !== 0) {
2742
- v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
2743
- wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
2744
- }
2745
- return v1;
2746
- }
2747
- /**
2748
- * @param {any[] | null} [arg0]
2749
- */
2750
- set allowedStates(arg0) {
2751
- var ptr0 = isLikeNone(arg0) ? 0 : passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
2752
- var len0 = WASM_VECTOR_LEN;
2753
- wasm.__wbg_set_listconversationsoptions_allowedStates(this.__wbg_ptr, ptr0, len0);
2754
- }
2755
2868
  /**
2756
2869
  * @returns {any[] | undefined}
2757
2870
  */
@@ -2772,19 +2885,6 @@ export class ListConversationsOptions {
2772
2885
  var len0 = WASM_VECTOR_LEN;
2773
2886
  wasm.__wbg_set_listconversationsoptions_consentStates(this.__wbg_ptr, ptr0, len0);
2774
2887
  }
2775
- /**
2776
- * @returns {ConversationType | undefined}
2777
- */
2778
- get conversationType() {
2779
- const ret = wasm.__wbg_get_listconversationsoptions_conversationType(this.__wbg_ptr);
2780
- return ret === 3 ? undefined : ret;
2781
- }
2782
- /**
2783
- * @param {ConversationType | null} [arg0]
2784
- */
2785
- set conversationType(arg0) {
2786
- wasm.__wbg_set_listconversationsoptions_conversationType(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
2787
- }
2788
2888
  /**
2789
2889
  * @returns {bigint | undefined}
2790
2890
  */
@@ -2796,7 +2896,7 @@ export class ListConversationsOptions {
2796
2896
  * @param {bigint | null} [arg0]
2797
2897
  */
2798
2898
  set createdAfterNs(arg0) {
2799
- wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2899
+ wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2800
2900
  }
2801
2901
  /**
2802
2902
  * @returns {bigint | undefined}
@@ -2824,19 +2924,6 @@ export class ListConversationsOptions {
2824
2924
  set includeDuplicateDms(arg0) {
2825
2925
  wasm.__wbg_set_listconversationsoptions_includeDuplicateDms(this.__wbg_ptr, arg0);
2826
2926
  }
2827
- /**
2828
- * @returns {boolean}
2829
- */
2830
- get includeSyncGroups() {
2831
- const ret = wasm.__wbg_get_listconversationsoptions_includeSyncGroups(this.__wbg_ptr);
2832
- return ret !== 0;
2833
- }
2834
- /**
2835
- * @param {boolean} arg0
2836
- */
2837
- set includeSyncGroups(arg0) {
2838
- wasm.__wbg_set_listconversationsoptions_includeSyncGroups(this.__wbg_ptr, arg0);
2839
- }
2840
2927
  /**
2841
2928
  * @returns {bigint | undefined}
2842
2929
  */
@@ -2851,21 +2938,16 @@ export class ListConversationsOptions {
2851
2938
  wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2852
2939
  }
2853
2940
  /**
2854
- * @param {any[] | null | undefined} allowed_states
2855
2941
  * @param {any[] | null | undefined} consent_states
2856
- * @param {ConversationType | null | undefined} conversation_type
2857
2942
  * @param {bigint | null | undefined} created_after_ns
2858
2943
  * @param {bigint | null | undefined} created_before_ns
2859
2944
  * @param {boolean} include_duplicate_dms
2860
- * @param {boolean} include_sync_groups
2861
2945
  * @param {bigint | null} [limit]
2862
2946
  */
2863
- constructor(allowed_states, consent_states, conversation_type, created_after_ns, created_before_ns, include_duplicate_dms, include_sync_groups, limit) {
2864
- var ptr0 = isLikeNone(allowed_states) ? 0 : passArrayJsValueToWasm0(allowed_states, wasm.__wbindgen_malloc);
2947
+ constructor(consent_states, created_after_ns, created_before_ns, include_duplicate_dms, limit) {
2948
+ var ptr0 = isLikeNone(consent_states) ? 0 : passArrayJsValueToWasm0(consent_states, wasm.__wbindgen_malloc);
2865
2949
  var len0 = WASM_VECTOR_LEN;
2866
- var ptr1 = isLikeNone(consent_states) ? 0 : passArrayJsValueToWasm0(consent_states, wasm.__wbindgen_malloc);
2867
- var len1 = WASM_VECTOR_LEN;
2868
- const ret = wasm.listconversationsoptions_new(ptr0, len0, ptr1, len1, isLikeNone(conversation_type) ? 3 : conversation_type, !isLikeNone(created_after_ns), isLikeNone(created_after_ns) ? BigInt(0) : created_after_ns, !isLikeNone(created_before_ns), isLikeNone(created_before_ns) ? BigInt(0) : created_before_ns, include_duplicate_dms, include_sync_groups, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit);
2950
+ const ret = wasm.listconversationsoptions_new(ptr0, len0, !isLikeNone(created_after_ns), isLikeNone(created_after_ns) ? BigInt(0) : created_after_ns, !isLikeNone(created_before_ns), isLikeNone(created_before_ns) ? BigInt(0) : created_before_ns, include_duplicate_dms, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit);
2869
2951
  this.__wbg_ptr = ret >>> 0;
2870
2952
  ListConversationsOptionsFinalization.register(this, this.__wbg_ptr, this);
2871
2953
  return this;
@@ -2889,6 +2971,26 @@ export class ListMessagesOptions {
2889
2971
  const ptr = this.__destroy_into_raw();
2890
2972
  wasm.__wbg_listmessagesoptions_free(ptr, 0);
2891
2973
  }
2974
+ /**
2975
+ * @returns {any[] | undefined}
2976
+ */
2977
+ get contentTypes() {
2978
+ const ret = wasm.__wbg_get_listmessagesoptions_contentTypes(this.__wbg_ptr);
2979
+ let v1;
2980
+ if (ret[0] !== 0) {
2981
+ v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
2982
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
2983
+ }
2984
+ return v1;
2985
+ }
2986
+ /**
2987
+ * @param {any[] | null} [arg0]
2988
+ */
2989
+ set contentTypes(arg0) {
2990
+ var ptr0 = isLikeNone(arg0) ? 0 : passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
2991
+ var len0 = WASM_VECTOR_LEN;
2992
+ wasm.__wbg_set_listmessagesoptions_contentTypes(this.__wbg_ptr, ptr0, len0);
2993
+ }
2892
2994
  /**
2893
2995
  * @returns {bigint | undefined}
2894
2996
  */
@@ -2900,7 +3002,7 @@ export class ListMessagesOptions {
2900
3002
  * @param {bigint | null} [arg0]
2901
3003
  */
2902
3004
  set sentBeforeNs(arg0) {
2903
- wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3005
+ wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2904
3006
  }
2905
3007
  /**
2906
3008
  * @returns {bigint | undefined}
@@ -2960,9 +3062,12 @@ export class ListMessagesOptions {
2960
3062
  * @param {bigint | null} [limit]
2961
3063
  * @param {DeliveryStatus | null} [delivery_status]
2962
3064
  * @param {SortDirection | null} [direction]
3065
+ * @param {any[] | null} [content_types]
2963
3066
  */
2964
- constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction) {
2965
- const ret = wasm.listmessagesoptions_new(!isLikeNone(sent_before_ns), isLikeNone(sent_before_ns) ? BigInt(0) : sent_before_ns, !isLikeNone(sent_after_ns), isLikeNone(sent_after_ns) ? BigInt(0) : sent_after_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(delivery_status) ? 3 : delivery_status, isLikeNone(direction) ? 2 : direction);
3067
+ constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types) {
3068
+ var ptr0 = isLikeNone(content_types) ? 0 : passArrayJsValueToWasm0(content_types, wasm.__wbindgen_malloc);
3069
+ var len0 = WASM_VECTOR_LEN;
3070
+ const ret = wasm.listmessagesoptions_new(!isLikeNone(sent_before_ns), isLikeNone(sent_before_ns) ? BigInt(0) : sent_before_ns, !isLikeNone(sent_after_ns), isLikeNone(sent_after_ns) ? BigInt(0) : sent_after_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(delivery_status) ? 3 : delivery_status, isLikeNone(direction) ? 2 : direction, ptr0, len0);
2966
3071
  this.__wbg_ptr = ret >>> 0;
2967
3072
  ListMessagesOptionsFinalization.register(this, this.__wbg_ptr, this);
2968
3073
  return this;
@@ -3060,6 +3165,13 @@ export class Message {
3060
3165
  return obj;
3061
3166
  }
3062
3167
 
3168
+ static __unwrap(jsValue) {
3169
+ if (!(jsValue instanceof Message)) {
3170
+ return 0;
3171
+ }
3172
+ return jsValue.__destroy_into_raw();
3173
+ }
3174
+
3063
3175
  __destroy_into_raw() {
3064
3176
  const ptr = this.__wbg_ptr;
3065
3177
  this.__wbg_ptr = 0;
@@ -3282,61 +3394,175 @@ export class MessageDisappearingSettings {
3282
3394
  }
3283
3395
  }
3284
3396
 
3285
- const PermissionPolicySetFinalization = (typeof FinalizationRegistry === 'undefined')
3397
+ const MessageWithReactionsFinalization = (typeof FinalizationRegistry === 'undefined')
3286
3398
  ? { register: () => {}, unregister: () => {} }
3287
- : new FinalizationRegistry(ptr => wasm.__wbg_permissionpolicyset_free(ptr >>> 0, 1));
3399
+ : new FinalizationRegistry(ptr => wasm.__wbg_messagewithreactions_free(ptr >>> 0, 1));
3288
3400
 
3289
- export class PermissionPolicySet {
3401
+ export class MessageWithReactions {
3290
3402
 
3291
3403
  static __wrap(ptr) {
3292
3404
  ptr = ptr >>> 0;
3293
- const obj = Object.create(PermissionPolicySet.prototype);
3405
+ const obj = Object.create(MessageWithReactions.prototype);
3294
3406
  obj.__wbg_ptr = ptr;
3295
- PermissionPolicySetFinalization.register(obj, obj.__wbg_ptr, obj);
3407
+ MessageWithReactionsFinalization.register(obj, obj.__wbg_ptr, obj);
3296
3408
  return obj;
3297
3409
  }
3298
3410
 
3299
3411
  __destroy_into_raw() {
3300
3412
  const ptr = this.__wbg_ptr;
3301
3413
  this.__wbg_ptr = 0;
3302
- PermissionPolicySetFinalization.unregister(this);
3414
+ MessageWithReactionsFinalization.unregister(this);
3303
3415
  return ptr;
3304
3416
  }
3305
3417
 
3306
3418
  free() {
3307
3419
  const ptr = this.__destroy_into_raw();
3308
- wasm.__wbg_permissionpolicyset_free(ptr, 0);
3420
+ wasm.__wbg_messagewithreactions_free(ptr, 0);
3309
3421
  }
3310
3422
  /**
3311
- * @returns {PermissionPolicy}
3423
+ * @returns {Message}
3312
3424
  */
3313
- get addMemberPolicy() {
3314
- const ret = wasm.__wbg_get_permissionpolicyset_addMemberPolicy(this.__wbg_ptr);
3315
- return ret;
3425
+ get message() {
3426
+ const ret = wasm.__wbg_get_messagewithreactions_message(this.__wbg_ptr);
3427
+ return Message.__wrap(ret);
3316
3428
  }
3317
3429
  /**
3318
- * @param {PermissionPolicy} arg0
3430
+ * @param {Message} arg0
3319
3431
  */
3320
- set addMemberPolicy(arg0) {
3321
- wasm.__wbg_set_permissionpolicyset_addMemberPolicy(this.__wbg_ptr, arg0);
3432
+ set message(arg0) {
3433
+ _assertClass(arg0, Message);
3434
+ var ptr0 = arg0.__destroy_into_raw();
3435
+ wasm.__wbg_set_messagewithreactions_message(this.__wbg_ptr, ptr0);
3322
3436
  }
3323
3437
  /**
3324
- * @returns {PermissionPolicy}
3438
+ * @returns {Message[]}
3325
3439
  */
3326
- get removeMemberPolicy() {
3327
- const ret = wasm.__wbg_get_permissionpolicyset_removeMemberPolicy(this.__wbg_ptr);
3328
- return ret;
3440
+ get reactions() {
3441
+ const ret = wasm.__wbg_get_messagewithreactions_reactions(this.__wbg_ptr);
3442
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
3443
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
3444
+ return v1;
3329
3445
  }
3330
3446
  /**
3331
- * @param {PermissionPolicy} arg0
3447
+ * @param {Message[]} arg0
3332
3448
  */
3333
- set removeMemberPolicy(arg0) {
3334
- wasm.__wbg_set_permissionpolicyset_removeMemberPolicy(this.__wbg_ptr, arg0);
3449
+ set reactions(arg0) {
3450
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
3451
+ const len0 = WASM_VECTOR_LEN;
3452
+ wasm.__wbg_set_messagewithreactions_reactions(this.__wbg_ptr, ptr0, len0);
3335
3453
  }
3336
- /**
3337
- * @returns {PermissionPolicy}
3338
- */
3339
- get addAdminPolicy() {
3454
+ }
3455
+
3456
+ const MultiRemoteAttachmentFinalization = (typeof FinalizationRegistry === 'undefined')
3457
+ ? { register: () => {}, unregister: () => {} }
3458
+ : new FinalizationRegistry(ptr => wasm.__wbg_multiremoteattachment_free(ptr >>> 0, 1));
3459
+
3460
+ export class MultiRemoteAttachment {
3461
+
3462
+ static __wrap(ptr) {
3463
+ ptr = ptr >>> 0;
3464
+ const obj = Object.create(MultiRemoteAttachment.prototype);
3465
+ obj.__wbg_ptr = ptr;
3466
+ MultiRemoteAttachmentFinalization.register(obj, obj.__wbg_ptr, obj);
3467
+ return obj;
3468
+ }
3469
+
3470
+ __destroy_into_raw() {
3471
+ const ptr = this.__wbg_ptr;
3472
+ this.__wbg_ptr = 0;
3473
+ MultiRemoteAttachmentFinalization.unregister(this);
3474
+ return ptr;
3475
+ }
3476
+
3477
+ free() {
3478
+ const ptr = this.__destroy_into_raw();
3479
+ wasm.__wbg_multiremoteattachment_free(ptr, 0);
3480
+ }
3481
+ /**
3482
+ * @returns {RemoteAttachmentInfo[]}
3483
+ */
3484
+ get attachments() {
3485
+ const ret = wasm.__wbg_get_multiremoteattachment_attachments(this.__wbg_ptr);
3486
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
3487
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
3488
+ return v1;
3489
+ }
3490
+ /**
3491
+ * @param {RemoteAttachmentInfo[]} arg0
3492
+ */
3493
+ set attachments(arg0) {
3494
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
3495
+ const len0 = WASM_VECTOR_LEN;
3496
+ wasm.__wbg_set_multiremoteattachment_attachments(this.__wbg_ptr, ptr0, len0);
3497
+ }
3498
+ /**
3499
+ * @param {RemoteAttachmentInfo[]} attachments
3500
+ */
3501
+ constructor(attachments) {
3502
+ const ptr0 = passArrayJsValueToWasm0(attachments, wasm.__wbindgen_malloc);
3503
+ const len0 = WASM_VECTOR_LEN;
3504
+ const ret = wasm.multiremoteattachment_new(ptr0, len0);
3505
+ this.__wbg_ptr = ret >>> 0;
3506
+ MultiRemoteAttachmentFinalization.register(this, this.__wbg_ptr, this);
3507
+ return this;
3508
+ }
3509
+ }
3510
+
3511
+ const PermissionPolicySetFinalization = (typeof FinalizationRegistry === 'undefined')
3512
+ ? { register: () => {}, unregister: () => {} }
3513
+ : new FinalizationRegistry(ptr => wasm.__wbg_permissionpolicyset_free(ptr >>> 0, 1));
3514
+
3515
+ export class PermissionPolicySet {
3516
+
3517
+ static __wrap(ptr) {
3518
+ ptr = ptr >>> 0;
3519
+ const obj = Object.create(PermissionPolicySet.prototype);
3520
+ obj.__wbg_ptr = ptr;
3521
+ PermissionPolicySetFinalization.register(obj, obj.__wbg_ptr, obj);
3522
+ return obj;
3523
+ }
3524
+
3525
+ __destroy_into_raw() {
3526
+ const ptr = this.__wbg_ptr;
3527
+ this.__wbg_ptr = 0;
3528
+ PermissionPolicySetFinalization.unregister(this);
3529
+ return ptr;
3530
+ }
3531
+
3532
+ free() {
3533
+ const ptr = this.__destroy_into_raw();
3534
+ wasm.__wbg_permissionpolicyset_free(ptr, 0);
3535
+ }
3536
+ /**
3537
+ * @returns {PermissionPolicy}
3538
+ */
3539
+ get addMemberPolicy() {
3540
+ const ret = wasm.__wbg_get_permissionpolicyset_addMemberPolicy(this.__wbg_ptr);
3541
+ return ret;
3542
+ }
3543
+ /**
3544
+ * @param {PermissionPolicy} arg0
3545
+ */
3546
+ set addMemberPolicy(arg0) {
3547
+ wasm.__wbg_set_permissionpolicyset_addMemberPolicy(this.__wbg_ptr, arg0);
3548
+ }
3549
+ /**
3550
+ * @returns {PermissionPolicy}
3551
+ */
3552
+ get removeMemberPolicy() {
3553
+ const ret = wasm.__wbg_get_permissionpolicyset_removeMemberPolicy(this.__wbg_ptr);
3554
+ return ret;
3555
+ }
3556
+ /**
3557
+ * @param {PermissionPolicy} arg0
3558
+ */
3559
+ set removeMemberPolicy(arg0) {
3560
+ wasm.__wbg_set_permissionpolicyset_removeMemberPolicy(this.__wbg_ptr, arg0);
3561
+ }
3562
+ /**
3563
+ * @returns {PermissionPolicy}
3564
+ */
3565
+ get addAdminPolicy() {
3340
3566
  const ret = wasm.__wbg_get_permissionpolicyset_addAdminPolicy(this.__wbg_ptr);
3341
3567
  return ret;
3342
3568
  }
@@ -3429,6 +3655,346 @@ export class PermissionPolicySet {
3429
3655
  }
3430
3656
  }
3431
3657
 
3658
+ const ReactionFinalization = (typeof FinalizationRegistry === 'undefined')
3659
+ ? { register: () => {}, unregister: () => {} }
3660
+ : new FinalizationRegistry(ptr => wasm.__wbg_reaction_free(ptr >>> 0, 1));
3661
+
3662
+ export class Reaction {
3663
+
3664
+ static __wrap(ptr) {
3665
+ ptr = ptr >>> 0;
3666
+ const obj = Object.create(Reaction.prototype);
3667
+ obj.__wbg_ptr = ptr;
3668
+ ReactionFinalization.register(obj, obj.__wbg_ptr, obj);
3669
+ return obj;
3670
+ }
3671
+
3672
+ __destroy_into_raw() {
3673
+ const ptr = this.__wbg_ptr;
3674
+ this.__wbg_ptr = 0;
3675
+ ReactionFinalization.unregister(this);
3676
+ return ptr;
3677
+ }
3678
+
3679
+ free() {
3680
+ const ptr = this.__destroy_into_raw();
3681
+ wasm.__wbg_reaction_free(ptr, 0);
3682
+ }
3683
+ /**
3684
+ * @returns {string}
3685
+ */
3686
+ get reference() {
3687
+ let deferred1_0;
3688
+ let deferred1_1;
3689
+ try {
3690
+ const ret = wasm.__wbg_get_reaction_reference(this.__wbg_ptr);
3691
+ deferred1_0 = ret[0];
3692
+ deferred1_1 = ret[1];
3693
+ return getStringFromWasm0(ret[0], ret[1]);
3694
+ } finally {
3695
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3696
+ }
3697
+ }
3698
+ /**
3699
+ * @param {string} arg0
3700
+ */
3701
+ set reference(arg0) {
3702
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3703
+ const len0 = WASM_VECTOR_LEN;
3704
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
3705
+ }
3706
+ /**
3707
+ * @returns {string}
3708
+ */
3709
+ get referenceInboxId() {
3710
+ let deferred1_0;
3711
+ let deferred1_1;
3712
+ try {
3713
+ const ret = wasm.__wbg_get_reaction_referenceInboxId(this.__wbg_ptr);
3714
+ deferred1_0 = ret[0];
3715
+ deferred1_1 = ret[1];
3716
+ return getStringFromWasm0(ret[0], ret[1]);
3717
+ } finally {
3718
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3719
+ }
3720
+ }
3721
+ /**
3722
+ * @param {string} arg0
3723
+ */
3724
+ set referenceInboxId(arg0) {
3725
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3726
+ const len0 = WASM_VECTOR_LEN;
3727
+ wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
3728
+ }
3729
+ /**
3730
+ * @returns {ReactionAction}
3731
+ */
3732
+ get action() {
3733
+ const ret = wasm.__wbg_get_groupmember_permissionLevel(this.__wbg_ptr);
3734
+ return ret;
3735
+ }
3736
+ /**
3737
+ * @param {ReactionAction} arg0
3738
+ */
3739
+ set action(arg0) {
3740
+ wasm.__wbg_set_groupmember_permissionLevel(this.__wbg_ptr, arg0);
3741
+ }
3742
+ /**
3743
+ * @returns {string}
3744
+ */
3745
+ get content() {
3746
+ let deferred1_0;
3747
+ let deferred1_1;
3748
+ try {
3749
+ const ret = wasm.__wbg_get_reaction_content(this.__wbg_ptr);
3750
+ deferred1_0 = ret[0];
3751
+ deferred1_1 = ret[1];
3752
+ return getStringFromWasm0(ret[0], ret[1]);
3753
+ } finally {
3754
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3755
+ }
3756
+ }
3757
+ /**
3758
+ * @param {string} arg0
3759
+ */
3760
+ set content(arg0) {
3761
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3762
+ const len0 = WASM_VECTOR_LEN;
3763
+ wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
3764
+ }
3765
+ /**
3766
+ * @returns {ReactionSchema}
3767
+ */
3768
+ get schema() {
3769
+ const ret = wasm.__wbg_get_reaction_schema(this.__wbg_ptr);
3770
+ return ret;
3771
+ }
3772
+ /**
3773
+ * @param {ReactionSchema} arg0
3774
+ */
3775
+ set schema(arg0) {
3776
+ wasm.__wbg_set_reaction_schema(this.__wbg_ptr, arg0);
3777
+ }
3778
+ /**
3779
+ * @param {string} reference
3780
+ * @param {string} referenceInboxId
3781
+ * @param {ReactionAction} action
3782
+ * @param {string} content
3783
+ * @param {ReactionSchema} schema
3784
+ */
3785
+ constructor(reference, referenceInboxId, action, content, schema) {
3786
+ const ptr0 = passStringToWasm0(reference, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3787
+ const len0 = WASM_VECTOR_LEN;
3788
+ const ptr1 = passStringToWasm0(referenceInboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3789
+ const len1 = WASM_VECTOR_LEN;
3790
+ const ptr2 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3791
+ const len2 = WASM_VECTOR_LEN;
3792
+ const ret = wasm.reaction_new(ptr0, len0, ptr1, len1, action, ptr2, len2, schema);
3793
+ this.__wbg_ptr = ret >>> 0;
3794
+ ReactionFinalization.register(this, this.__wbg_ptr, this);
3795
+ return this;
3796
+ }
3797
+ }
3798
+
3799
+ const RemoteAttachmentInfoFinalization = (typeof FinalizationRegistry === 'undefined')
3800
+ ? { register: () => {}, unregister: () => {} }
3801
+ : new FinalizationRegistry(ptr => wasm.__wbg_remoteattachmentinfo_free(ptr >>> 0, 1));
3802
+
3803
+ export class RemoteAttachmentInfo {
3804
+
3805
+ static __wrap(ptr) {
3806
+ ptr = ptr >>> 0;
3807
+ const obj = Object.create(RemoteAttachmentInfo.prototype);
3808
+ obj.__wbg_ptr = ptr;
3809
+ RemoteAttachmentInfoFinalization.register(obj, obj.__wbg_ptr, obj);
3810
+ return obj;
3811
+ }
3812
+
3813
+ static __unwrap(jsValue) {
3814
+ if (!(jsValue instanceof RemoteAttachmentInfo)) {
3815
+ return 0;
3816
+ }
3817
+ return jsValue.__destroy_into_raw();
3818
+ }
3819
+
3820
+ __destroy_into_raw() {
3821
+ const ptr = this.__wbg_ptr;
3822
+ this.__wbg_ptr = 0;
3823
+ RemoteAttachmentInfoFinalization.unregister(this);
3824
+ return ptr;
3825
+ }
3826
+
3827
+ free() {
3828
+ const ptr = this.__destroy_into_raw();
3829
+ wasm.__wbg_remoteattachmentinfo_free(ptr, 0);
3830
+ }
3831
+ /**
3832
+ * @returns {Uint8Array}
3833
+ */
3834
+ get secret() {
3835
+ const ret = wasm.__wbg_get_remoteattachmentinfo_secret(this.__wbg_ptr);
3836
+ return ret;
3837
+ }
3838
+ /**
3839
+ * @param {Uint8Array} arg0
3840
+ */
3841
+ set secret(arg0) {
3842
+ wasm.__wbg_set_remoteattachmentinfo_secret(this.__wbg_ptr, arg0);
3843
+ }
3844
+ /**
3845
+ * @returns {string}
3846
+ */
3847
+ get contentDigest() {
3848
+ let deferred1_0;
3849
+ let deferred1_1;
3850
+ try {
3851
+ const ret = wasm.__wbg_get_remoteattachmentinfo_contentDigest(this.__wbg_ptr);
3852
+ deferred1_0 = ret[0];
3853
+ deferred1_1 = ret[1];
3854
+ return getStringFromWasm0(ret[0], ret[1]);
3855
+ } finally {
3856
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3857
+ }
3858
+ }
3859
+ /**
3860
+ * @param {string} arg0
3861
+ */
3862
+ set contentDigest(arg0) {
3863
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3864
+ const len0 = WASM_VECTOR_LEN;
3865
+ wasm.__wbg_set_remoteattachmentinfo_contentDigest(this.__wbg_ptr, ptr0, len0);
3866
+ }
3867
+ /**
3868
+ * @returns {Uint8Array}
3869
+ */
3870
+ get nonce() {
3871
+ const ret = wasm.__wbg_get_remoteattachmentinfo_nonce(this.__wbg_ptr);
3872
+ return ret;
3873
+ }
3874
+ /**
3875
+ * @param {Uint8Array} arg0
3876
+ */
3877
+ set nonce(arg0) {
3878
+ wasm.__wbg_set_remoteattachmentinfo_nonce(this.__wbg_ptr, arg0);
3879
+ }
3880
+ /**
3881
+ * @returns {string}
3882
+ */
3883
+ get scheme() {
3884
+ let deferred1_0;
3885
+ let deferred1_1;
3886
+ try {
3887
+ const ret = wasm.__wbg_get_remoteattachmentinfo_scheme(this.__wbg_ptr);
3888
+ deferred1_0 = ret[0];
3889
+ deferred1_1 = ret[1];
3890
+ return getStringFromWasm0(ret[0], ret[1]);
3891
+ } finally {
3892
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3893
+ }
3894
+ }
3895
+ /**
3896
+ * @param {string} arg0
3897
+ */
3898
+ set scheme(arg0) {
3899
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3900
+ const len0 = WASM_VECTOR_LEN;
3901
+ wasm.__wbg_set_remoteattachmentinfo_scheme(this.__wbg_ptr, ptr0, len0);
3902
+ }
3903
+ /**
3904
+ * @returns {string}
3905
+ */
3906
+ get url() {
3907
+ let deferred1_0;
3908
+ let deferred1_1;
3909
+ try {
3910
+ const ret = wasm.__wbg_get_remoteattachmentinfo_url(this.__wbg_ptr);
3911
+ deferred1_0 = ret[0];
3912
+ deferred1_1 = ret[1];
3913
+ return getStringFromWasm0(ret[0], ret[1]);
3914
+ } finally {
3915
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3916
+ }
3917
+ }
3918
+ /**
3919
+ * @param {string} arg0
3920
+ */
3921
+ set url(arg0) {
3922
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3923
+ const len0 = WASM_VECTOR_LEN;
3924
+ wasm.__wbg_set_remoteattachmentinfo_url(this.__wbg_ptr, ptr0, len0);
3925
+ }
3926
+ /**
3927
+ * @returns {Uint8Array}
3928
+ */
3929
+ get salt() {
3930
+ const ret = wasm.__wbg_get_remoteattachmentinfo_salt(this.__wbg_ptr);
3931
+ return ret;
3932
+ }
3933
+ /**
3934
+ * @param {Uint8Array} arg0
3935
+ */
3936
+ set salt(arg0) {
3937
+ wasm.__wbg_set_remoteattachmentinfo_salt(this.__wbg_ptr, arg0);
3938
+ }
3939
+ /**
3940
+ * @returns {number | undefined}
3941
+ */
3942
+ get contentLength() {
3943
+ const ret = wasm.__wbg_get_remoteattachmentinfo_contentLength(this.__wbg_ptr);
3944
+ return ret === 0x100000001 ? undefined : ret;
3945
+ }
3946
+ /**
3947
+ * @param {number | null} [arg0]
3948
+ */
3949
+ set contentLength(arg0) {
3950
+ wasm.__wbg_set_remoteattachmentinfo_contentLength(this.__wbg_ptr, isLikeNone(arg0) ? 0x100000001 : (arg0) >>> 0);
3951
+ }
3952
+ /**
3953
+ * @returns {string | undefined}
3954
+ */
3955
+ get filename() {
3956
+ const ret = wasm.__wbg_get_remoteattachmentinfo_filename(this.__wbg_ptr);
3957
+ let v1;
3958
+ if (ret[0] !== 0) {
3959
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
3960
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3961
+ }
3962
+ return v1;
3963
+ }
3964
+ /**
3965
+ * @param {string | null} [arg0]
3966
+ */
3967
+ set filename(arg0) {
3968
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3969
+ var len0 = WASM_VECTOR_LEN;
3970
+ wasm.__wbg_set_remoteattachmentinfo_filename(this.__wbg_ptr, ptr0, len0);
3971
+ }
3972
+ /**
3973
+ * @param {Uint8Array} secret
3974
+ * @param {string} contentDigest
3975
+ * @param {Uint8Array} nonce
3976
+ * @param {string} scheme
3977
+ * @param {string} url
3978
+ * @param {Uint8Array} salt
3979
+ * @param {number | null} [contentLength]
3980
+ * @param {string | null} [filename]
3981
+ */
3982
+ constructor(secret, contentDigest, nonce, scheme, url, salt, contentLength, filename) {
3983
+ const ptr0 = passStringToWasm0(contentDigest, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3984
+ const len0 = WASM_VECTOR_LEN;
3985
+ const ptr1 = passStringToWasm0(scheme, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3986
+ const len1 = WASM_VECTOR_LEN;
3987
+ const ptr2 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3988
+ const len2 = WASM_VECTOR_LEN;
3989
+ var ptr3 = isLikeNone(filename) ? 0 : passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3990
+ var len3 = WASM_VECTOR_LEN;
3991
+ const ret = wasm.remoteattachmentinfo_new(secret, ptr0, len0, nonce, ptr1, len1, ptr2, len2, salt, isLikeNone(contentLength) ? 0x100000001 : (contentLength) >>> 0, ptr3, len3);
3992
+ this.__wbg_ptr = ret >>> 0;
3993
+ RemoteAttachmentInfoFinalization.register(this, this.__wbg_ptr, this);
3994
+ return this;
3995
+ }
3996
+ }
3997
+
3432
3998
  const StreamCloserFinalization = (typeof FinalizationRegistry === 'undefined')
3433
3999
  ? { register: () => {}, unregister: () => {} }
3434
4000
  : new FinalizationRegistry(ptr => wasm.__wbg_streamcloser_free(ptr >>> 0, 1));
@@ -3488,25 +4054,6 @@ export class StreamCloser {
3488
4054
  }
3489
4055
  }
3490
4056
 
3491
- const VersionFinalization = (typeof FinalizationRegistry === 'undefined')
3492
- ? { register: () => {}, unregister: () => {} }
3493
- : new FinalizationRegistry(ptr => wasm.__wbg_version_free(ptr >>> 0, 1));
3494
-
3495
- export class Version {
3496
-
3497
- __destroy_into_raw() {
3498
- const ptr = this.__wbg_ptr;
3499
- this.__wbg_ptr = 0;
3500
- VersionFinalization.unregister(this);
3501
- return ptr;
3502
- }
3503
-
3504
- free() {
3505
- const ptr = this.__destroy_into_raw();
3506
- wasm.__wbg_version_free(ptr, 0);
3507
- }
3508
- }
3509
-
3510
4057
  async function __wbg_load(module, imports) {
3511
4058
  if (typeof Response === 'function' && module instanceof Response) {
3512
4059
  if (typeof WebAssembly.instantiateStreaming === 'function') {
@@ -3541,78 +4088,6 @@ async function __wbg_load(module, imports) {
3541
4088
  function __wbg_get_imports() {
3542
4089
  const imports = {};
3543
4090
  imports.wbg = {};
3544
- imports.wbg.__wbg_SQLITEBLOB_6acbdf0084499c6d = function(arg0) {
3545
- const ret = arg0.SQLITE_BLOB;
3546
- return ret;
3547
- };
3548
- imports.wbg.__wbg_SQLITECONSTRAINTCHECK_078c7421516c6cb0 = function(arg0) {
3549
- const ret = arg0.SQLITE_CONSTRAINT_CHECK;
3550
- return ret;
3551
- };
3552
- imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_542d05e3ee2cb739 = function(arg0) {
3553
- const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
3554
- return ret;
3555
- };
3556
- imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_2e70f645b6727cc2 = function(arg0) {
3557
- const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
3558
- return ret;
3559
- };
3560
- imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_672b0b877eaa70c2 = function(arg0) {
3561
- const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
3562
- return ret;
3563
- };
3564
- imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_99e8e64a3ddb260e = function(arg0) {
3565
- const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
3566
- return ret;
3567
- };
3568
- imports.wbg.__wbg_SQLITEDONE_71e1fe762c2f590a = function(arg0) {
3569
- const ret = arg0.SQLITE_DONE;
3570
- return ret;
3571
- };
3572
- imports.wbg.__wbg_SQLITEFLOAT_0d1b783b6273c5ca = function(arg0) {
3573
- const ret = arg0.SQLITE_FLOAT;
3574
- return ret;
3575
- };
3576
- imports.wbg.__wbg_SQLITEINTEGER_89d30a97ec5964fa = function(arg0) {
3577
- const ret = arg0.SQLITE_INTEGER;
3578
- return ret;
3579
- };
3580
- imports.wbg.__wbg_SQLITENULL_14a0b14e9418f512 = function(arg0) {
3581
- const ret = arg0.SQLITE_NULL;
3582
- return ret;
3583
- };
3584
- imports.wbg.__wbg_SQLITEOK_a0a5a44f4b54bda1 = function(arg0) {
3585
- const ret = arg0.SQLITE_OK;
3586
- return ret;
3587
- };
3588
- imports.wbg.__wbg_SQLITEOPENCREATE_a89e637416473d65 = function(arg0) {
3589
- const ret = arg0.SQLITE_OPEN_CREATE;
3590
- return ret;
3591
- };
3592
- imports.wbg.__wbg_SQLITEOPENREADWRITE_3eb06e2be4a7f535 = function(arg0) {
3593
- const ret = arg0.SQLITE_OPEN_READWRITE;
3594
- return ret;
3595
- };
3596
- imports.wbg.__wbg_SQLITEOPENURI_73f78cdcb3e54f88 = function(arg0) {
3597
- const ret = arg0.SQLITE_OPEN_URI;
3598
- return ret;
3599
- };
3600
- imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_6f142d8bf27893d7 = function(arg0) {
3601
- const ret = arg0.SQLITE_PREPARE_PERSISTENT;
3602
- return ret;
3603
- };
3604
- imports.wbg.__wbg_SQLITEROW_16ddd22277b912f1 = function(arg0) {
3605
- const ret = arg0.SQLITE_ROW;
3606
- return ret;
3607
- };
3608
- imports.wbg.__wbg_SQLITESTATIC_f6e96ea3ff678329 = function(arg0) {
3609
- const ret = arg0.SQLITE_STATIC;
3610
- return ret;
3611
- };
3612
- imports.wbg.__wbg_SQLITETEXT_4dd38105410a0c0a = function(arg0) {
3613
- const ret = arg0.SQLITE_TEXT;
3614
- return ret;
3615
- };
3616
4091
  imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
3617
4092
  const ret = String(arg1);
3618
4093
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -3623,32 +4098,8 @@ function __wbg_get_imports() {
3623
4098
  imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
3624
4099
  arg0.abort();
3625
4100
  };
3626
- imports.wbg.__wbg_allocCString_69f9010fb2b096f0 = function(arg0, arg1, arg2) {
3627
- let deferred0_0;
3628
- let deferred0_1;
3629
- try {
3630
- deferred0_0 = arg1;
3631
- deferred0_1 = arg2;
3632
- const ret = arg0.allocCString(getStringFromWasm0(arg1, arg2));
3633
- return ret;
3634
- } finally {
3635
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3636
- }
3637
- };
3638
- imports.wbg.__wbg_allocPtr_c83ee345784d444f = function(arg0, arg1, arg2) {
3639
- const ret = arg0.allocPtr(arg1 >>> 0, arg2 !== 0);
3640
- return ret;
3641
- };
3642
- imports.wbg.__wbg_alloc_59459fd5c596f36c = function(arg0, arg1) {
3643
- const ret = arg0.alloc(arg1 >>> 0);
3644
- return ret;
3645
- };
3646
- imports.wbg.__wbg_alloc_818f07788ede8415 = function(arg0, arg1) {
3647
- const ret = arg0.alloc(arg1 >>> 0);
3648
- return ret;
3649
- };
3650
- imports.wbg.__wbg_alloc_9ba78eb5db297dec = function(arg0) {
3651
- const ret = arg0.alloc;
4101
+ imports.wbg.__wbg_add_883d9432f9188ef2 = function(arg0, arg1) {
4102
+ const ret = arg0.add(arg1);
3652
4103
  return ret;
3653
4104
  };
3654
4105
  imports.wbg.__wbg_append_8c7dd8d641a5f01b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
@@ -3658,30 +4109,6 @@ function __wbg_get_imports() {
3658
4109
  const ret = arg0.arrayBuffer();
3659
4110
  return ret;
3660
4111
  }, arguments) };
3661
- imports.wbg.__wbg_bindblob_2d3842f5d0645344 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
3662
- const ret = arg0.bind_blob(arg1, arg2, arg3 >>> 0, arg4, arg5);
3663
- return ret;
3664
- };
3665
- imports.wbg.__wbg_binddouble_652de2eaf823b755 = function(arg0, arg1, arg2, arg3) {
3666
- const ret = arg0.bind_double(arg1, arg2, arg3);
3667
- return ret;
3668
- };
3669
- imports.wbg.__wbg_bindint64_ab19debe2f3b2a51 = function(arg0, arg1, arg2, arg3) {
3670
- const ret = arg0.bind_int64(arg1, arg2, arg3);
3671
- return ret;
3672
- };
3673
- imports.wbg.__wbg_bindint_d6ed3d7de087f452 = function(arg0, arg1, arg2, arg3) {
3674
- const ret = arg0.bind_int(arg1, arg2, arg3);
3675
- return ret;
3676
- };
3677
- imports.wbg.__wbg_bindnull_db900eeb1a7f0781 = function(arg0, arg1, arg2) {
3678
- const ret = arg0.bind_null(arg1, arg2);
3679
- return ret;
3680
- };
3681
- imports.wbg.__wbg_bindtext_d7063f12780d715d = function(arg0, arg1, arg2, arg3, arg4, arg5) {
3682
- const ret = arg0.bind_text(arg1, arg2, arg3 >>> 0, arg4, arg5);
3683
- return ret;
3684
- };
3685
4112
  imports.wbg.__wbg_body_0b8fd1fe671660df = function(arg0) {
3686
4113
  const ret = arg0.body;
3687
4114
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -3718,18 +4145,10 @@ function __wbg_get_imports() {
3718
4145
  const ret = arg0.cancel();
3719
4146
  return ret;
3720
4147
  };
3721
- imports.wbg.__wbg_capi_b2cd9cd3325d1164 = function(arg0) {
3722
- const ret = arg0.capi;
3723
- return ret;
3724
- };
3725
4148
  imports.wbg.__wbg_catch_a6e601879b2610e9 = function(arg0, arg1) {
3726
4149
  const ret = arg0.catch(arg1);
3727
4150
  return ret;
3728
4151
  };
3729
- imports.wbg.__wbg_changes_8f2cadd92748538c = function(arg0, arg1) {
3730
- const ret = arg0.changes(arg1);
3731
- return ret;
3732
- };
3733
4152
  imports.wbg.__wbg_clearInterval_dd1e598f425db353 = function(arg0) {
3734
4153
  const ret = clearInterval(arg0);
3735
4154
  return ret;
@@ -3738,34 +4157,24 @@ function __wbg_get_imports() {
3738
4157
  const ret = clearTimeout(arg0);
3739
4158
  return ret;
3740
4159
  };
4160
+ imports.wbg.__wbg_clear_1f96150ecf4061a6 = function(arg0) {
4161
+ arg0.clear();
4162
+ };
4163
+ imports.wbg.__wbg_clear_fca8ee600282eba4 = function(arg0) {
4164
+ arg0.clear();
4165
+ };
3741
4166
  imports.wbg.__wbg_client_new = function(arg0) {
3742
4167
  const ret = Client.__wrap(arg0);
3743
4168
  return ret;
3744
4169
  };
3745
- imports.wbg.__wbg_close_061ae3ddcd90d5b9 = function(arg0, arg1) {
3746
- const ret = arg0.close(arg1);
3747
- return ret;
3748
- };
3749
4170
  imports.wbg.__wbg_close_304cc1fef3466669 = function() { return handleError(function (arg0) {
3750
4171
  arg0.close();
3751
4172
  }, arguments) };
3752
4173
  imports.wbg.__wbg_close_5ce03e29be453811 = function() { return handleError(function (arg0) {
3753
4174
  arg0.close();
3754
4175
  }, arguments) };
3755
- imports.wbg.__wbg_columncount_328a9b2639ca5c51 = function(arg0, arg1) {
3756
- const ret = arg0.column_count(arg1);
3757
- return ret;
3758
- };
3759
- imports.wbg.__wbg_columnname_5421a5f0dfa3eff5 = function(arg0, arg1, arg2, arg3) {
3760
- const ret = arg1.column_name(arg2, arg3);
3761
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3762
- const len1 = WASM_VECTOR_LEN;
3763
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3764
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3765
- };
3766
- imports.wbg.__wbg_columnvalue_88aa9511cf9c6770 = function(arg0, arg1, arg2) {
3767
- const ret = arg0.column_value(arg1, arg2);
3768
- return ret;
4176
+ imports.wbg.__wbg_close_a17af48266bd9942 = function(arg0) {
4177
+ arg0.close();
3769
4178
  };
3770
4179
  imports.wbg.__wbg_consent_unwrap = function(arg0) {
3771
4180
  const ret = Consent.__unwrap(arg0);
@@ -3779,6 +4188,10 @@ function __wbg_get_imports() {
3779
4188
  const ret = ConversationListItem.__wrap(arg0);
3780
4189
  return ret;
3781
4190
  };
4191
+ imports.wbg.__wbg_createSyncAccessHandle_21c18bcd2a29fa13 = function(arg0) {
4192
+ const ret = arg0.createSyncAccessHandle();
4193
+ return ret;
4194
+ };
3782
4195
  imports.wbg.__wbg_create_cfe43ccc88c64e0a = function(arg0) {
3783
4196
  const ret = Object.create(arg0);
3784
4197
  return ret;
@@ -3787,19 +4200,20 @@ function __wbg_get_imports() {
3787
4200
  const ret = arg0.crypto;
3788
4201
  return ret;
3789
4202
  };
3790
- imports.wbg.__wbg_dbhandle_4a844bc7b495c9bd = function(arg0, arg1) {
3791
- const ret = arg0.db_handle(arg1);
3792
- return ret;
3793
- };
3794
- imports.wbg.__wbg_dealloc_83aa46cc9ca6df71 = function(arg0, arg1) {
3795
- arg0.dealloc(arg1 >>> 0);
3796
- };
3797
4203
  imports.wbg.__wbg_debug_3cb59063b29f58c1 = function(arg0) {
3798
4204
  console.debug(arg0);
3799
4205
  };
3800
4206
  imports.wbg.__wbg_debug_e17b51583ca6a632 = function(arg0, arg1, arg2, arg3) {
3801
4207
  console.debug(arg0, arg1, arg2, arg3);
3802
4208
  };
4209
+ imports.wbg.__wbg_delete_36c8630e530a2a1a = function(arg0, arg1) {
4210
+ const ret = arg0.delete(arg1);
4211
+ return ret;
4212
+ };
4213
+ imports.wbg.__wbg_delete_d6860deb47204f3b = function(arg0, arg1) {
4214
+ const ret = arg0.delete(arg1);
4215
+ return ret;
4216
+ };
3803
4217
  imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
3804
4218
  const ret = arg0.done;
3805
4219
  return ret;
@@ -3807,17 +4221,14 @@ function __wbg_get_imports() {
3807
4221
  imports.wbg.__wbg_enqueue_bb16ba72f537dc9e = function() { return handleError(function (arg0, arg1) {
3808
4222
  arg0.enqueue(arg1);
3809
4223
  }, arguments) };
4224
+ imports.wbg.__wbg_entries_19efe296f7d36df9 = function(arg0) {
4225
+ const ret = arg0.entries();
4226
+ return ret;
4227
+ };
3810
4228
  imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
3811
4229
  const ret = Object.entries(arg0);
3812
4230
  return ret;
3813
4231
  };
3814
- imports.wbg.__wbg_errmsg_79ea90bf7680bb35 = function(arg0, arg1, arg2) {
3815
- const ret = arg1.errmsg(arg2);
3816
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3817
- const len1 = WASM_VECTOR_LEN;
3818
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3819
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3820
- };
3821
4232
  imports.wbg.__wbg_error_524f506f44df1645 = function(arg0) {
3822
4233
  console.error(arg0);
3823
4234
  };
@@ -3835,19 +4246,23 @@ function __wbg_get_imports() {
3835
4246
  imports.wbg.__wbg_error_80de38b3f7cc3c3c = function(arg0, arg1, arg2, arg3) {
3836
4247
  console.error(arg0, arg1, arg2, arg3);
3837
4248
  };
3838
- imports.wbg.__wbg_errstr_503ebc5fc9ad1b72 = function(arg0, arg1, arg2) {
3839
- const ret = arg1.errstr(arg2);
3840
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3841
- const len1 = WASM_VECTOR_LEN;
3842
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3843
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3844
- };
3845
- imports.wbg.__wbg_exec_fd553de4a4a4f848 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3846
- arg0.exec(arg1, getStringFromWasm0(arg2, arg3));
3847
- }, arguments) };
3848
- imports.wbg.__wbg_extendederrcode_0835da64030ca814 = function(arg0, arg1) {
3849
- const ret = arg0.extended_errcode(arg1);
3850
- return ret;
4249
+ imports.wbg.__wbg_every_44c3a06a12373d8d = function(arg0, arg1, arg2) {
4250
+ try {
4251
+ var state0 = {a: arg1, b: arg2};
4252
+ var cb0 = (arg0, arg1, arg2) => {
4253
+ const a = state0.a;
4254
+ state0.a = 0;
4255
+ try {
4256
+ return __wbg_adapter_579(a, state0.b, arg0, arg1, arg2);
4257
+ } finally {
4258
+ state0.a = a;
4259
+ }
4260
+ };
4261
+ const ret = arg0.every(cb0);
4262
+ return ret;
4263
+ } finally {
4264
+ state0.a = state0.b = 0;
4265
+ }
3851
4266
  };
3852
4267
  imports.wbg.__wbg_fetch_4465c2b10f21a927 = function(arg0) {
3853
4268
  const ret = fetch(arg0);
@@ -3857,24 +4272,71 @@ function __wbg_get_imports() {
3857
4272
  const ret = arg0.fetch(arg1);
3858
4273
  return ret;
3859
4274
  };
3860
- imports.wbg.__wbg_filename_0235553cd4665109 = function(arg0, arg1, arg2, arg3, arg4) {
3861
- let deferred0_0;
3862
- let deferred0_1;
4275
+ imports.wbg.__wbg_fill_3311db9cdf18c6c4 = function(arg0, arg1, arg2, arg3) {
4276
+ const ret = arg0.fill(arg1, arg2 >>> 0, arg3 >>> 0);
4277
+ return ret;
4278
+ };
4279
+ imports.wbg.__wbg_findIndex_3e4f86a66183a36b = function(arg0, arg1, arg2) {
3863
4280
  try {
3864
- deferred0_0 = arg3;
3865
- deferred0_1 = arg4;
3866
- const ret = arg1.filename(arg2, getStringFromWasm0(arg3, arg4));
3867
- const ptr2 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3868
- const len2 = WASM_VECTOR_LEN;
3869
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len2, true);
3870
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr2, true);
4281
+ var state0 = {a: arg1, b: arg2};
4282
+ var cb0 = (arg0, arg1, arg2) => {
4283
+ const a = state0.a;
4284
+ state0.a = 0;
4285
+ try {
4286
+ return __wbg_adapter_579(a, state0.b, arg0, arg1, arg2);
4287
+ } finally {
4288
+ state0.a = a;
4289
+ }
4290
+ };
4291
+ const ret = arg0.findIndex(cb0);
4292
+ return ret;
3871
4293
  } finally {
3872
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
4294
+ state0.a = state0.b = 0;
3873
4295
  }
3874
4296
  };
3875
- imports.wbg.__wbg_finalize_429654d82c434d47 = function() { return handleError(function (arg0, arg1) {
3876
- arg0.finalize(arg1);
4297
+ imports.wbg.__wbg_flush_1a680a66b21c53d7 = function() { return handleError(function (arg0) {
4298
+ arg0.flush();
3877
4299
  }, arguments) };
4300
+ imports.wbg.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
4301
+ const ret = Array.from(arg0);
4302
+ return ret;
4303
+ };
4304
+ imports.wbg.__wbg_getDate_ef336e14594b35ce = function(arg0) {
4305
+ const ret = arg0.getDate();
4306
+ return ret;
4307
+ };
4308
+ imports.wbg.__wbg_getDay_3da98b461c969439 = function(arg0) {
4309
+ const ret = arg0.getDay();
4310
+ return ret;
4311
+ };
4312
+ imports.wbg.__wbg_getDirectoryHandle_c48a138373d79b3d = function(arg0, arg1, arg2, arg3) {
4313
+ const ret = arg0.getDirectoryHandle(getStringFromWasm0(arg1, arg2), arg3);
4314
+ return ret;
4315
+ };
4316
+ imports.wbg.__wbg_getDirectory_c206b0540c9acc0f = function(arg0) {
4317
+ const ret = arg0.getDirectory();
4318
+ return ret;
4319
+ };
4320
+ imports.wbg.__wbg_getFileHandle_5fb877d1ecc74d52 = function(arg0, arg1, arg2, arg3) {
4321
+ const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
4322
+ return ret;
4323
+ };
4324
+ imports.wbg.__wbg_getFullYear_17d3c9e4db748eb7 = function(arg0) {
4325
+ const ret = arg0.getFullYear();
4326
+ return ret;
4327
+ };
4328
+ imports.wbg.__wbg_getHours_70451b8de3ce8638 = function(arg0) {
4329
+ const ret = arg0.getHours();
4330
+ return ret;
4331
+ };
4332
+ imports.wbg.__wbg_getMinutes_e793d718371e18f7 = function(arg0) {
4333
+ const ret = arg0.getMinutes();
4334
+ return ret;
4335
+ };
4336
+ imports.wbg.__wbg_getMonth_d37edcd23642c97d = function(arg0) {
4337
+ const ret = arg0.getMonth();
4338
+ return ret;
4339
+ };
3878
4340
  imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
3879
4341
  arg0.getRandomValues(arg1);
3880
4342
  }, arguments) };
@@ -3882,6 +4344,30 @@ function __wbg_get_imports() {
3882
4344
  const ret = arg0.getReader();
3883
4345
  return ret;
3884
4346
  }, arguments) };
4347
+ imports.wbg.__wbg_getSeconds_755197b634cca692 = function(arg0) {
4348
+ const ret = arg0.getSeconds();
4349
+ return ret;
4350
+ };
4351
+ imports.wbg.__wbg_getSize_e7dbd5ffa0b43df1 = function() { return handleError(function (arg0) {
4352
+ const ret = arg0.getSize();
4353
+ return ret;
4354
+ }, arguments) };
4355
+ imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
4356
+ const ret = arg0.getTime();
4357
+ return ret;
4358
+ };
4359
+ imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
4360
+ const ret = arg0.getTimezoneOffset();
4361
+ return ret;
4362
+ };
4363
+ imports.wbg.__wbg_getUint32_9c3cc8fde7919ed4 = function(arg0, arg1) {
4364
+ const ret = arg0.getUint32(arg1 >>> 0);
4365
+ return ret;
4366
+ };
4367
+ imports.wbg.__wbg_get_13495dac72693ecc = function(arg0, arg1) {
4368
+ const ret = arg0.get(arg1);
4369
+ return ret;
4370
+ };
3885
4371
  imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
3886
4372
  const ret = Reflect.get(arg0, arg1);
3887
4373
  return ret;
@@ -3894,18 +4380,26 @@ function __wbg_get_imports() {
3894
4380
  const ret = arg0.done;
3895
4381
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
3896
4382
  };
3897
- imports.wbg.__wbg_getvalue_009dcd63692bee1f = function(arg0) {
3898
- const ret = arg0.value;
4383
+ imports.wbg.__wbg_getindex_5b00c274b05714aa = function(arg0, arg1) {
4384
+ const ret = arg0[arg1 >>> 0];
4385
+ return ret;
4386
+ };
4387
+ imports.wbg.__wbg_getindex_d332410fbea81873 = function(arg0, arg1) {
4388
+ const ret = arg0[arg1 >>> 0];
3899
4389
  return ret;
3900
4390
  };
3901
- imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
3902
- const ret = arg0[arg1];
4391
+ imports.wbg.__wbg_getvalue_009dcd63692bee1f = function(arg0) {
4392
+ const ret = arg0.value;
3903
4393
  return ret;
3904
4394
  };
3905
4395
  imports.wbg.__wbg_groupmetadata_new = function(arg0) {
3906
4396
  const ret = GroupMetadata.__wrap(arg0);
3907
4397
  return ret;
3908
4398
  };
4399
+ imports.wbg.__wbg_has_76ca66e2f25d1c49 = function(arg0, arg1) {
4400
+ const ret = arg0.has(arg1);
4401
+ return ret;
4402
+ };
3909
4403
  imports.wbg.__wbg_has_a5ea9117f258a0ec = function() { return handleError(function (arg0, arg1) {
3910
4404
  const ret = Reflect.has(arg0, arg1);
3911
4405
  return ret;
@@ -3914,14 +4408,6 @@ function __wbg_get_imports() {
3914
4408
  const ret = arg0.headers;
3915
4409
  return ret;
3916
4410
  };
3917
- imports.wbg.__wbg_heap8u_253de697ab096b05 = function(arg0) {
3918
- const ret = arg0.heap8u();
3919
- return ret;
3920
- };
3921
- imports.wbg.__wbg_impl_0cd08b475fc5f858 = function(arg0, arg1) {
3922
- const ret = arg0.impl(arg1 >>> 0);
3923
- return ret;
3924
- };
3925
4411
  imports.wbg.__wbg_inboxstate_new = function(arg0) {
3926
4412
  const ret = InboxState.__wrap(arg0);
3927
4413
  return ret;
@@ -3932,10 +4418,6 @@ function __wbg_get_imports() {
3932
4418
  imports.wbg.__wbg_info_3daf2e093e091b66 = function(arg0) {
3933
4419
  console.info(arg0);
3934
4420
  };
3935
- imports.wbg.__wbg_initmodule_694b4b8a6236ad25 = function(arg0) {
3936
- const ret = SQLite.init_module(arg0);
3937
- return ret;
3938
- };
3939
4421
  imports.wbg.__wbg_installation_new = function(arg0) {
3940
4422
  const ret = Installation.__wrap(arg0);
3941
4423
  return ret;
@@ -3964,6 +4446,26 @@ function __wbg_get_imports() {
3964
4446
  const ret = result;
3965
4447
  return ret;
3966
4448
  };
4449
+ imports.wbg.__wbg_instanceof_ServiceWorkerGlobalScope_9662fcbac1190e8b = function(arg0) {
4450
+ let result;
4451
+ try {
4452
+ result = arg0 instanceof ServiceWorkerGlobalScope;
4453
+ } catch (_) {
4454
+ result = false;
4455
+ }
4456
+ const ret = result;
4457
+ return ret;
4458
+ };
4459
+ imports.wbg.__wbg_instanceof_SharedWorkerGlobalScope_1796b9b4c3344538 = function(arg0) {
4460
+ let result;
4461
+ try {
4462
+ result = arg0 instanceof SharedWorkerGlobalScope;
4463
+ } catch (_) {
4464
+ result = false;
4465
+ }
4466
+ const ret = result;
4467
+ return ret;
4468
+ };
3967
4469
  imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
3968
4470
  let result;
3969
4471
  try {
@@ -3974,18 +4476,46 @@ function __wbg_get_imports() {
3974
4476
  const ret = result;
3975
4477
  return ret;
3976
4478
  };
3977
- imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
3978
- const ret = Number.isSafeInteger(arg0);
4479
+ imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
4480
+ let result;
4481
+ try {
4482
+ result = arg0 instanceof Window;
4483
+ } catch (_) {
4484
+ result = false;
4485
+ }
4486
+ const ret = result;
4487
+ return ret;
4488
+ };
4489
+ imports.wbg.__wbg_instanceof_WorkerGlobalScope_dbdbdea7e3b56493 = function(arg0) {
4490
+ let result;
4491
+ try {
4492
+ result = arg0 instanceof WorkerGlobalScope;
4493
+ } catch (_) {
4494
+ result = false;
4495
+ }
4496
+ const ret = result;
3979
4497
  return ret;
3980
4498
  };
3981
4499
  imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
3982
4500
  const ret = Symbol.iterator;
3983
4501
  return ret;
3984
4502
  };
4503
+ imports.wbg.__wbg_keys_4e7df9a04572b339 = function(arg0) {
4504
+ const ret = arg0.keys();
4505
+ return ret;
4506
+ };
4507
+ imports.wbg.__wbg_keys_867d2062f5df73dc = function(arg0) {
4508
+ const ret = arg0.keys();
4509
+ return ret;
4510
+ };
3985
4511
  imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
3986
4512
  const ret = arg0.length;
3987
4513
  return ret;
3988
4514
  };
4515
+ imports.wbg.__wbg_length_d56737991078581b = function(arg0) {
4516
+ const ret = arg0.length;
4517
+ return ret;
4518
+ };
3989
4519
  imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
3990
4520
  const ret = arg0.length;
3991
4521
  return ret;
@@ -4006,10 +4536,26 @@ function __wbg_get_imports() {
4006
4536
  const ret = Message.__wrap(arg0);
4007
4537
  return ret;
4008
4538
  };
4539
+ imports.wbg.__wbg_message_unwrap = function(arg0) {
4540
+ const ret = Message.__unwrap(arg0);
4541
+ return ret;
4542
+ };
4543
+ imports.wbg.__wbg_messagewithreactions_new = function(arg0) {
4544
+ const ret = MessageWithReactions.__wrap(arg0);
4545
+ return ret;
4546
+ };
4009
4547
  imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
4010
4548
  const ret = arg0.msCrypto;
4011
4549
  return ret;
4012
4550
  };
4551
+ imports.wbg.__wbg_navigator_0a9bf1120e24fec2 = function(arg0) {
4552
+ const ret = arg0.navigator;
4553
+ return ret;
4554
+ };
4555
+ imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
4556
+ const ret = new Date();
4557
+ return ret;
4558
+ };
4013
4559
  imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function() { return handleError(function () {
4014
4560
  const ret = new Headers();
4015
4561
  return ret;
@@ -4021,7 +4567,7 @@ function __wbg_get_imports() {
4021
4567
  const a = state0.a;
4022
4568
  state0.a = 0;
4023
4569
  try {
4024
- return __wbg_adapter_650(a, state0.b, arg0, arg1);
4570
+ return __wbg_adapter_680(a, state0.b, arg0, arg1);
4025
4571
  } finally {
4026
4572
  state0.a = a;
4027
4573
  }
@@ -4032,12 +4578,8 @@ function __wbg_get_imports() {
4032
4578
  state0.a = state0.b = 0;
4033
4579
  }
4034
4580
  };
4035
- imports.wbg.__wbg_new_263e3ed0ecf4a0f0 = function() { return handleError(function (arg0) {
4036
- const ret = new WebAssembly.Memory(arg0);
4037
- return ret;
4038
- }, arguments) };
4039
- imports.wbg.__wbg_new_3c34f3fe365c1436 = function(arg0) {
4040
- const ret = new SQLite(arg0);
4581
+ imports.wbg.__wbg_new_31a97dac4f10fab7 = function(arg0) {
4582
+ const ret = new Date(arg0);
4041
4583
  return ret;
4042
4584
  };
4043
4585
  imports.wbg.__wbg_new_405e22f390576ce2 = function() {
@@ -4052,6 +4594,10 @@ function __wbg_get_imports() {
4052
4594
  const ret = new Array();
4053
4595
  return ret;
4054
4596
  };
4597
+ imports.wbg.__wbg_new_7e079fa25e135eb1 = function(arg0, arg1, arg2) {
4598
+ const ret = new DataView(arg0, arg1 >>> 0, arg2 >>> 0);
4599
+ return ret;
4600
+ };
4055
4601
  imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
4056
4602
  const ret = new Error();
4057
4603
  return ret;
@@ -4060,6 +4606,10 @@ function __wbg_get_imports() {
4060
4606
  const ret = new Uint8Array(arg0);
4061
4607
  return ret;
4062
4608
  };
4609
+ imports.wbg.__wbg_new_a239edaa1dc2968f = function(arg0) {
4610
+ const ret = new Set(arg0);
4611
+ return ret;
4612
+ };
4063
4613
  imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
4064
4614
  const ret = new Error(getStringFromWasm0(arg0, arg1));
4065
4615
  return ret;
@@ -4072,6 +4622,10 @@ function __wbg_get_imports() {
4072
4622
  const ret = new Function(getStringFromWasm0(arg0, arg1));
4073
4623
  return ret;
4074
4624
  };
4625
+ imports.wbg.__wbg_newwithbase_161c299e7a34e2eb = function() { return handleError(function (arg0, arg1, arg2, arg3) {
4626
+ const ret = new URL(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
4627
+ return ret;
4628
+ }, arguments) };
4075
4629
  imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
4076
4630
  const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
4077
4631
  return ret;
@@ -4080,10 +4634,18 @@ function __wbg_get_imports() {
4080
4634
  const ret = new Uint8Array(arg0 >>> 0);
4081
4635
  return ret;
4082
4636
  };
4637
+ imports.wbg.__wbg_newwithlength_bd3de93688d68fbc = function(arg0) {
4638
+ const ret = new Uint32Array(arg0 >>> 0);
4639
+ return ret;
4640
+ };
4083
4641
  imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
4084
4642
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
4085
4643
  return ret;
4086
4644
  }, arguments) };
4645
+ imports.wbg.__wbg_newwithyearmonthday_03748851282a850d = function(arg0, arg1, arg2) {
4646
+ const ret = new Date(arg0 >>> 0, arg1, arg2);
4647
+ return ret;
4648
+ };
4087
4649
  imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
4088
4650
  const ret = arg0.next;
4089
4651
  return ret;
@@ -4092,6 +4654,10 @@ function __wbg_get_imports() {
4092
4654
  const ret = arg0.next();
4093
4655
  return ret;
4094
4656
  }, arguments) };
4657
+ imports.wbg.__wbg_next_c3ab0d59847b3b5c = function() { return handleError(function (arg0) {
4658
+ const ret = arg0.next();
4659
+ return ret;
4660
+ }, arguments) };
4095
4661
  imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
4096
4662
  const ret = arg0.node;
4097
4663
  return ret;
@@ -4104,6 +4670,13 @@ function __wbg_get_imports() {
4104
4670
  const ret = Date.now();
4105
4671
  return ret;
4106
4672
  };
4673
+ imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
4674
+ const ret = arg0.now();
4675
+ return ret;
4676
+ };
4677
+ imports.wbg.__wbg_onconsentupdate_72468d8f30c5062c = function(arg0, arg1) {
4678
+ arg0.on_consent_update(arg1);
4679
+ };
4107
4680
  imports.wbg.__wbg_onconversation_43aee3fe67697518 = function(arg0, arg1) {
4108
4681
  arg0.on_conversation(Conversation.__wrap(arg1));
4109
4682
  };
@@ -4113,38 +4686,38 @@ function __wbg_get_imports() {
4113
4686
  imports.wbg.__wbg_onmessage_12923aab4231469e = function(arg0, arg1) {
4114
4687
  arg0.on_message(Message.__wrap(arg1));
4115
4688
  };
4116
- imports.wbg.__wbg_open_aba34ed1b3b52dc4 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
4117
- const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 === 0x100000001 ? undefined : arg3);
4118
- return ret;
4119
- }, arguments) };
4120
- imports.wbg.__wbg_peekPtr_6a7d4078b4e26f07 = function(arg0, arg1) {
4121
- const ret = arg0.peekPtr(arg1);
4122
- return ret;
4689
+ imports.wbg.__wbg_onuserpreferenceupdate_55a901090685a47e = function(arg0, arg1, arg2) {
4690
+ var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
4691
+ wasm.__wbindgen_free(arg1, arg2 * 4, 4);
4692
+ arg0.on_user_preference_update(v0);
4693
+ };
4694
+ imports.wbg.__wbg_pathname_9b0b04c4e19316d0 = function(arg0, arg1) {
4695
+ const ret = arg1.pathname;
4696
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4697
+ const len1 = WASM_VECTOR_LEN;
4698
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4699
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4123
4700
  };
4124
4701
  imports.wbg.__wbg_performance_121b9855d716e029 = function() {
4125
4702
  const ret = globalThis.performance;
4126
4703
  return ret;
4127
4704
  };
4128
- imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) {
4705
+ imports.wbg.__wbg_performance_704644393c4d3310 = function(arg0) {
4129
4706
  const ret = arg0.performance;
4130
- return ret;
4707
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
4131
4708
  };
4132
- imports.wbg.__wbg_pointer_310208402223b1bb = function(arg0) {
4133
- const ret = arg0.pointer;
4709
+ imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) {
4710
+ const ret = arg0.performance;
4134
4711
  return ret;
4135
4712
  };
4136
- imports.wbg.__wbg_preparev3_9322dce970cabecf = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
4137
- const ret = arg0.prepare_v3(arg1, arg2 >>> 0, arg3, arg4 >>> 0, arg5, arg6);
4138
- return ret;
4713
+ imports.wbg.__wbg_performance_c185c0cdc2766575 = function(arg0) {
4714
+ const ret = arg0.performance;
4715
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
4139
4716
  };
4140
4717
  imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
4141
4718
  const ret = arg0.process;
4142
4719
  return ret;
4143
4720
  };
4144
- imports.wbg.__wbg_pstack_66a1730e634b3fee = function(arg0) {
4145
- const ret = arg0.pstack;
4146
- return ret;
4147
- };
4148
4721
  imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
4149
4722
  const ret = arg0.push(arg1);
4150
4723
  return ret;
@@ -4159,24 +4732,37 @@ function __wbg_get_imports() {
4159
4732
  imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
4160
4733
  arg0.randomFillSync(arg1);
4161
4734
  }, arguments) };
4735
+ imports.wbg.__wbg_random_3ad904d98382defe = function() {
4736
+ const ret = Math.random();
4737
+ return ret;
4738
+ };
4739
+ imports.wbg.__wbg_read_50be4c2d01bc12b4 = function() { return handleError(function (arg0, arg1, arg2) {
4740
+ const ret = arg0.read(arg1, arg2);
4741
+ return ret;
4742
+ }, arguments) };
4162
4743
  imports.wbg.__wbg_read_a2434af1186cb56c = function(arg0) {
4163
4744
  const ret = arg0.read();
4164
4745
  return ret;
4165
4746
  };
4166
- imports.wbg.__wbg_registerdieselsqlfunctions_f374322dbb736b21 = function() { return handleError(function (arg0, arg1) {
4167
- arg0.register_diesel_sql_functions(arg1);
4747
+ imports.wbg.__wbg_read_f8fdd4b410209222 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
4748
+ const ret = arg0.read(getArrayU8FromWasm0(arg1, arg2), arg3);
4749
+ return ret;
4168
4750
  }, arguments) };
4169
4751
  imports.wbg.__wbg_releaseLock_091899af97991d2e = function(arg0) {
4170
4752
  arg0.releaseLock();
4171
4753
  };
4754
+ imports.wbg.__wbg_remoteattachmentinfo_new = function(arg0) {
4755
+ const ret = RemoteAttachmentInfo.__wrap(arg0);
4756
+ return ret;
4757
+ };
4758
+ imports.wbg.__wbg_remoteattachmentinfo_unwrap = function(arg0) {
4759
+ const ret = RemoteAttachmentInfo.__unwrap(arg0);
4760
+ return ret;
4761
+ };
4172
4762
  imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
4173
4763
  const ret = module.require;
4174
4764
  return ret;
4175
4765
  }, arguments) };
4176
- imports.wbg.__wbg_reset_a6165093a081b112 = function(arg0, arg1) {
4177
- const ret = arg0.reset(arg1);
4178
- return ret;
4179
- };
4180
4766
  imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
4181
4767
  const ret = Promise.resolve(arg0);
4182
4768
  return ret;
@@ -4184,9 +4770,6 @@ function __wbg_get_imports() {
4184
4770
  imports.wbg.__wbg_respond_1f279fa9f8edcb1c = function() { return handleError(function (arg0, arg1) {
4185
4771
  arg0.respond(arg1 >>> 0);
4186
4772
  }, arguments) };
4187
- imports.wbg.__wbg_restore_43c154983844b05b = function(arg0, arg1) {
4188
- arg0.restore(arg1);
4189
- };
4190
4773
  imports.wbg.__wbg_setInterval_ed3b5e3c3ebb8a6d = function() { return handleError(function (arg0, arg1) {
4191
4774
  const ret = setInterval(arg0, arg1);
4192
4775
  return ret;
@@ -4195,6 +4778,9 @@ function __wbg_get_imports() {
4195
4778
  const ret = setTimeout(arg0, arg1);
4196
4779
  return ret;
4197
4780
  }, arguments) };
4781
+ imports.wbg.__wbg_setUint32_ad8826b8caeaf63d = function(arg0, arg1, arg2) {
4782
+ arg0.setUint32(arg1 >>> 0, arg2 >>> 0);
4783
+ };
4198
4784
  imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
4199
4785
  arg0[arg1 >>> 0] = arg2;
4200
4786
  };
@@ -4212,15 +4798,30 @@ function __wbg_get_imports() {
4212
4798
  const ret = Reflect.set(arg0, arg1, arg2);
4213
4799
  return ret;
4214
4800
  }, arguments) };
4801
+ imports.wbg.__wbg_setat_2a071a392643c10e = function(arg0, arg1) {
4802
+ arg0.at = arg1;
4803
+ };
4215
4804
  imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
4216
4805
  arg0.body = arg1;
4217
4806
  };
4807
+ imports.wbg.__wbg_setcreate_139bad94b2874fb5 = function(arg0, arg1) {
4808
+ arg0.create = arg1 !== 0;
4809
+ };
4810
+ imports.wbg.__wbg_setcreate_4ca762e23d9f78da = function(arg0, arg1) {
4811
+ arg0.create = arg1 !== 0;
4812
+ };
4218
4813
  imports.wbg.__wbg_setcredentials_c3a22f1cd105a2c6 = function(arg0, arg1) {
4219
4814
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
4220
4815
  };
4221
4816
  imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
4222
4817
  arg0.headers = arg1;
4223
4818
  };
4819
+ imports.wbg.__wbg_setindex_c430b78b97744fcc = function(arg0, arg1, arg2) {
4820
+ arg0[arg1 >>> 0] = arg2 >>> 0;
4821
+ };
4822
+ imports.wbg.__wbg_setindex_dcd71eabf405bde1 = function(arg0, arg1, arg2) {
4823
+ arg0[arg1 >>> 0] = arg2;
4824
+ };
4224
4825
  imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
4225
4826
  arg0.method = getStringFromWasm0(arg1, arg2);
4226
4827
  };
@@ -4234,8 +4835,12 @@ function __wbg_get_imports() {
4234
4835
  const ret = arg0.signal;
4235
4836
  return ret;
4236
4837
  };
4237
- imports.wbg.__wbg_sqlite3_0c56434abd1dc461 = function(arg0) {
4238
- const ret = arg0.sqlite3;
4838
+ imports.wbg.__wbg_size_f9d54556ad844dc3 = function(arg0) {
4839
+ const ret = arg0.size;
4840
+ return ret;
4841
+ };
4842
+ imports.wbg.__wbg_slice_972c243648c9fd2e = function(arg0, arg1, arg2) {
4843
+ const ret = arg0.slice(arg1 >>> 0, arg2 >>> 0);
4239
4844
  return ret;
4240
4845
  };
4241
4846
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
@@ -4265,8 +4870,8 @@ function __wbg_get_imports() {
4265
4870
  const ret = arg0.status;
4266
4871
  return ret;
4267
4872
  };
4268
- imports.wbg.__wbg_step_99a553e5d7fbed2f = function(arg0, arg1) {
4269
- const ret = arg0.step(arg1);
4873
+ imports.wbg.__wbg_storage_07eb754b88898955 = function(arg0) {
4874
+ const ret = arg0.storage;
4270
4875
  return ret;
4271
4876
  };
4272
4877
  imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
@@ -4289,6 +4894,16 @@ function __wbg_get_imports() {
4289
4894
  const ret = arg0.then(arg1, arg2);
4290
4895
  return ret;
4291
4896
  };
4897
+ imports.wbg.__wbg_toString_ba82658ec370add0 = function() { return handleError(function (arg0, arg1) {
4898
+ const ret = arg0.toString(arg1);
4899
+ return ret;
4900
+ }, arguments) };
4901
+ imports.wbg.__wbg_truncate_29261a6365c72b01 = function() { return handleError(function (arg0, arg1) {
4902
+ arg0.truncate(arg1 >>> 0);
4903
+ }, arguments) };
4904
+ imports.wbg.__wbg_truncate_4e1b09a0538f4ac4 = function() { return handleError(function (arg0, arg1) {
4905
+ arg0.truncate(arg1);
4906
+ }, arguments) };
4292
4907
  imports.wbg.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
4293
4908
  const ret = arg1.url;
4294
4909
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -4300,44 +4915,6 @@ function __wbg_get_imports() {
4300
4915
  const ret = arg0.value;
4301
4916
  return ret;
4302
4917
  };
4303
- imports.wbg.__wbg_valueblob_b7834022c19ff288 = function(arg0, arg1) {
4304
- const ret = arg0.value_blob(arg1 >>> 0);
4305
- return ret;
4306
- };
4307
- imports.wbg.__wbg_valuebytes_c6924414a4f4b6f3 = function(arg0, arg1) {
4308
- const ret = arg0.value_bytes(arg1 >>> 0);
4309
- return ret;
4310
- };
4311
- imports.wbg.__wbg_valuedup_6d367159408d8196 = function(arg0, arg1) {
4312
- const ret = arg0.value_dup(arg1 >>> 0);
4313
- return ret;
4314
- };
4315
- imports.wbg.__wbg_valuefree_3f7442e9bb21e645 = function(arg0, arg1) {
4316
- arg0.value_free(arg1 >>> 0);
4317
- };
4318
- imports.wbg.__wbg_valueint64_992b66e1610bc511 = function(arg0, arg1) {
4319
- const ret = arg0.value_int64(arg1 >>> 0);
4320
- return ret;
4321
- };
4322
- imports.wbg.__wbg_valueint_4d711af866e97d8e = function(arg0, arg1) {
4323
- const ret = arg0.value_int(arg1 >>> 0);
4324
- return ret;
4325
- };
4326
- imports.wbg.__wbg_valuetext_1305a3b91ca00e84 = function(arg0, arg1, arg2) {
4327
- const ret = arg1.value_text(arg2 >>> 0);
4328
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4329
- const len1 = WASM_VECTOR_LEN;
4330
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4331
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4332
- };
4333
- imports.wbg.__wbg_valuetype_486feb6594cb75e3 = function(arg0, arg1) {
4334
- const ret = arg0.value_type(arg1 >>> 0);
4335
- return ret;
4336
- };
4337
- imports.wbg.__wbg_version_683c1e99c4c0439b = function(arg0) {
4338
- const ret = arg0.version();
4339
- return ret;
4340
- };
4341
4918
  imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
4342
4919
  const ret = arg0.versions;
4343
4920
  return ret;
@@ -4352,10 +4929,18 @@ function __wbg_get_imports() {
4352
4929
  imports.wbg.__wbg_warn_aaf1f4664a035bd6 = function(arg0, arg1, arg2, arg3) {
4353
4930
  console.warn(arg0, arg1, arg2, arg3);
4354
4931
  };
4355
- imports.wbg.__wbg_wasm_a5f31e71db23f94b = function(arg0) {
4356
- const ret = arg0.wasm;
4932
+ imports.wbg.__wbg_write_1d776df9041838cf = function() { return handleError(function (arg0, arg1, arg2) {
4933
+ const ret = arg0.write(arg1, arg2);
4357
4934
  return ret;
4358
- };
4935
+ }, arguments) };
4936
+ imports.wbg.__wbg_write_530d3c84df874f53 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
4937
+ const ret = arg0.write(getArrayU8FromWasm0(arg1, arg2), arg3);
4938
+ return ret;
4939
+ }, arguments) };
4940
+ imports.wbg.__wbg_write_df271225cf2c4e20 = function() { return handleError(function (arg0, arg1, arg2) {
4941
+ const ret = arg0.write(arg1, arg2);
4942
+ return ret;
4943
+ }, arguments) };
4359
4944
  imports.wbg.__wbindgen_array_new = function() {
4360
4945
  const ret = [];
4361
4946
  return ret;
@@ -4363,10 +4948,6 @@ function __wbg_get_imports() {
4363
4948
  imports.wbg.__wbindgen_array_push = function(arg0, arg1) {
4364
4949
  arg0.push(arg1);
4365
4950
  };
4366
- imports.wbg.__wbindgen_as_number = function(arg0) {
4367
- const ret = +arg0;
4368
- return ret;
4369
- };
4370
4951
  imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
4371
4952
  const ret = arg0;
4372
4953
  return ret;
@@ -4385,12 +4966,12 @@ function __wbg_get_imports() {
4385
4966
  const ret = false;
4386
4967
  return ret;
4387
4968
  };
4388
- imports.wbg.__wbindgen_closure_wrapper14119 = function(arg0, arg1, arg2) {
4389
- const ret = makeMutClosure(arg0, arg1, 2917, __wbg_adapter_52);
4969
+ imports.wbg.__wbindgen_closure_wrapper15733 = function(arg0, arg1, arg2) {
4970
+ const ret = makeMutClosure(arg0, arg1, 3602, __wbg_adapter_46);
4390
4971
  return ret;
4391
4972
  };
4392
- imports.wbg.__wbindgen_closure_wrapper14403 = function(arg0, arg1, arg2) {
4393
- const ret = makeMutClosure(arg0, arg1, 2992, __wbg_adapter_55);
4973
+ imports.wbg.__wbindgen_closure_wrapper16041 = function(arg0, arg1, arg2) {
4974
+ const ret = makeMutClosure(arg0, arg1, 3673, __wbg_adapter_49);
4394
4975
  return ret;
4395
4976
  };
4396
4977
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
@@ -4404,12 +4985,8 @@ function __wbg_get_imports() {
4404
4985
  const ret = new Error(getStringFromWasm0(arg0, arg1));
4405
4986
  return ret;
4406
4987
  };
4407
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
4408
- const ret = arg0 in arg1;
4409
- return ret;
4410
- };
4411
4988
  imports.wbg.__wbindgen_init_externref_table = function() {
4412
- const table = wasm.__wbindgen_export_5;
4989
+ const table = wasm.__wbindgen_export_4;
4413
4990
  const offset = table.grow(4);
4414
4991
  table.set(0, undefined);
4415
4992
  table.set(offset + 0, undefined);
@@ -4422,10 +4999,6 @@ function __wbg_get_imports() {
4422
4999
  const ret = typeof(arg0) === 'function';
4423
5000
  return ret;
4424
5001
  };
4425
- imports.wbg.__wbindgen_is_null = function(arg0) {
4426
- const ret = arg0 === null;
4427
- return ret;
4428
- };
4429
5002
  imports.wbg.__wbindgen_is_object = function(arg0) {
4430
5003
  const val = arg0;
4431
5004
  const ret = typeof(val) === 'object' && val !== null;
@@ -4443,13 +5016,6 @@ function __wbg_get_imports() {
4443
5016
  const ret = arg0 == arg1;
4444
5017
  return ret;
4445
5018
  };
4446
- imports.wbg.__wbindgen_link_de369e9aa1a11bdd = function(arg0) {
4447
- const ret = new URL('snippets/sqlite-web-90f8afa7b0cd2303/src/js/sqlite3-opfs-async-proxy.js', import.meta.url).toString();
4448
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4449
- const len1 = WASM_VECTOR_LEN;
4450
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4451
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4452
- };
4453
5019
  imports.wbg.__wbindgen_memory = function() {
4454
5020
  const ret = wasm.memory;
4455
5021
  return ret;