@xmtp/wasm-bindings 0.0.7 → 0.0.9

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,10 +1,8 @@
1
- import { SQLite } from './snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3-diesel.js';
1
+ import { SQLite } from './snippets/sqlite-web-90f8afa7b0cd2303/src/js/sqlite3-diesel.js';
2
2
 
3
3
  let wasm;
4
4
 
5
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
6
-
7
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
5
+ let WASM_VECTOR_LEN = 0;
8
6
 
9
7
  let cachedUint8ArrayMemory0 = null;
10
8
 
@@ -15,26 +13,6 @@ function getUint8ArrayMemory0() {
15
13
  return cachedUint8ArrayMemory0;
16
14
  }
17
15
 
18
- function getStringFromWasm0(ptr, len) {
19
- ptr = ptr >>> 0;
20
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
21
- }
22
-
23
- function isLikeNone(x) {
24
- return x === undefined || x === null;
25
- }
26
-
27
- let cachedDataViewMemory0 = null;
28
-
29
- function getDataViewMemory0() {
30
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
31
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
32
- }
33
- return cachedDataViewMemory0;
34
- }
35
-
36
- let WASM_VECTOR_LEN = 0;
37
-
38
16
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
39
17
 
40
18
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -89,6 +67,74 @@ function passStringToWasm0(arg, malloc, realloc) {
89
67
  return ptr;
90
68
  }
91
69
 
70
+ let cachedDataViewMemory0 = null;
71
+
72
+ function getDataViewMemory0() {
73
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
74
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
75
+ }
76
+ return cachedDataViewMemory0;
77
+ }
78
+
79
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
80
+
81
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
82
+
83
+ function getStringFromWasm0(ptr, len) {
84
+ ptr = ptr >>> 0;
85
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
86
+ }
87
+
88
+ function addToExternrefTable0(obj) {
89
+ const idx = wasm.__externref_table_alloc();
90
+ wasm.__wbindgen_export_5.set(idx, obj);
91
+ return idx;
92
+ }
93
+
94
+ function handleError(f, args) {
95
+ try {
96
+ return f.apply(this, args);
97
+ } catch (e) {
98
+ const idx = addToExternrefTable0(e);
99
+ wasm.__wbindgen_exn_store(idx);
100
+ }
101
+ }
102
+
103
+ function isLikeNone(x) {
104
+ return x === undefined || x === null;
105
+ }
106
+
107
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
108
+ ? { register: () => {}, unregister: () => {} }
109
+ : new FinalizationRegistry(state => {
110
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
111
+ });
112
+
113
+ function makeMutClosure(arg0, arg1, dtor, f) {
114
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
115
+ const real = (...args) => {
116
+ // First up with a closure we increment the internal reference
117
+ // count. This ensures that the Rust closure environment won't
118
+ // be deallocated while we're invoking it.
119
+ state.cnt++;
120
+ const a = state.a;
121
+ state.a = 0;
122
+ try {
123
+ return f(a, state.b, ...args);
124
+ } finally {
125
+ if (--state.cnt === 0) {
126
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
127
+ CLOSURE_DTORS.unregister(state);
128
+ } else {
129
+ state.a = a;
130
+ }
131
+ }
132
+ };
133
+ real.original = state;
134
+ CLOSURE_DTORS.register(real, state, state);
135
+ return real;
136
+ }
137
+
92
138
  function debugString(val) {
93
139
  // primitive types
94
140
  const type = typeof val;
@@ -130,7 +176,7 @@ function debugString(val) {
130
176
  // Test for built-in
131
177
  const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
132
178
  let className;
133
- if (builtInMatches.length > 1) {
179
+ if (builtInMatches && builtInMatches.length > 1) {
134
180
  className = builtInMatches[1];
135
181
  } else {
136
182
  // Failed to match the standard '[object ClassName]'
@@ -154,100 +200,37 @@ function debugString(val) {
154
200
  return className;
155
201
  }
156
202
 
157
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
158
- ? { register: () => {}, unregister: () => {} }
159
- : new FinalizationRegistry(state => {
160
- wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b)
161
- });
162
-
163
- function makeMutClosure(arg0, arg1, dtor, f) {
164
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
165
- const real = (...args) => {
166
- // First up with a closure we increment the internal reference
167
- // count. This ensures that the Rust closure environment won't
168
- // be deallocated while we're invoking it.
169
- state.cnt++;
170
- const a = state.a;
171
- state.a = 0;
172
- try {
173
- return f(a, state.b, ...args);
174
- } finally {
175
- if (--state.cnt === 0) {
176
- wasm.__wbindgen_export_3.get(state.dtor)(a, state.b);
177
- CLOSURE_DTORS.unregister(state);
178
- } else {
179
- state.a = a;
180
- }
181
- }
182
- };
183
- real.original = state;
184
- CLOSURE_DTORS.register(real, state, state);
185
- return real;
186
- }
187
- function __wbg_adapter_46(arg0, arg1) {
188
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha602f13c6f6f57bd(arg0, arg1);
189
- }
190
-
191
- function __wbg_adapter_49(arg0, arg1, arg2) {
192
- wasm.closure2327_externref_shim(arg0, arg1, arg2);
203
+ function passArrayJsValueToWasm0(array, malloc) {
204
+ const ptr = malloc(array.length * 4, 4) >>> 0;
205
+ const mem = getDataViewMemory0();
206
+ for (let i = 0; i < array.length; i++) {
207
+ mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true);
208
+ }
209
+ WASM_VECTOR_LEN = array.length;
210
+ return ptr;
193
211
  }
194
212
 
195
213
  function takeFromExternrefTable0(idx) {
196
- const value = wasm.__wbindgen_export_2.get(idx);
214
+ const value = wasm.__wbindgen_export_5.get(idx);
197
215
  wasm.__externref_table_dealloc(idx);
198
216
  return value;
199
217
  }
200
218
 
201
- function addToExternrefTable0(obj) {
202
- const idx = wasm.__externref_table_alloc();
203
- wasm.__wbindgen_export_2.set(idx, obj);
204
- return idx;
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;
205
228
  }
206
229
 
207
230
  function _assertClass(instance, klass) {
208
231
  if (!(instance instanceof klass)) {
209
232
  throw new Error(`expected instance of ${klass.name}`);
210
233
  }
211
- return instance.ptr;
212
- }
213
- /**
214
- * @param {string} host
215
- * @param {string} inbox_id
216
- * @param {string} account_address
217
- * @param {string | undefined} [db_path]
218
- * @param {Uint8Array | undefined} [encryption_key]
219
- * @param {string | undefined} [history_sync_url]
220
- * @param {LogOptions | undefined} [log_options]
221
- * @returns {Promise<Client>}
222
- */
223
- export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url, log_options) {
224
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
225
- const len0 = WASM_VECTOR_LEN;
226
- const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
227
- const len1 = WASM_VECTOR_LEN;
228
- const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
229
- const len2 = WASM_VECTOR_LEN;
230
- var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
231
- var len3 = WASM_VECTOR_LEN;
232
- var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
233
- var len4 = WASM_VECTOR_LEN;
234
- let ptr5 = 0;
235
- if (!isLikeNone(log_options)) {
236
- _assertClass(log_options, LogOptions);
237
- ptr5 = log_options.__destroy_into_raw();
238
- }
239
- const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4, ptr5);
240
- return ret;
241
- }
242
-
243
- function passArrayJsValueToWasm0(array, malloc) {
244
- const ptr = malloc(array.length * 4, 4) >>> 0;
245
- const mem = getDataViewMemory0();
246
- for (let i = 0; i < array.length; i++) {
247
- mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true);
248
- }
249
- WASM_VECTOR_LEN = array.length;
250
- return ptr;
251
234
  }
252
235
  /**
253
236
  * @param {string} host
@@ -302,83 +285,178 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
302
285
  }
303
286
  }
304
287
 
305
- function getArrayJsValueFromWasm0(ptr, len) {
306
- ptr = ptr >>> 0;
307
- const mem = getDataViewMemory0();
308
- const result = [];
309
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
310
- result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
288
+ /**
289
+ * @param {string} host
290
+ * @param {string} inbox_id
291
+ * @param {string} account_address
292
+ * @param {string | undefined} [db_path]
293
+ * @param {Uint8Array | undefined} [encryption_key]
294
+ * @param {string | undefined} [history_sync_url]
295
+ * @param {LogOptions | undefined} [log_options]
296
+ * @returns {Promise<Client>}
297
+ */
298
+ export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url, log_options) {
299
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
300
+ const len0 = WASM_VECTOR_LEN;
301
+ const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
302
+ const len1 = WASM_VECTOR_LEN;
303
+ const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
304
+ const len2 = WASM_VECTOR_LEN;
305
+ var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
306
+ var len3 = WASM_VECTOR_LEN;
307
+ var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
308
+ var len4 = WASM_VECTOR_LEN;
309
+ let ptr5 = 0;
310
+ if (!isLikeNone(log_options)) {
311
+ _assertClass(log_options, LogOptions);
312
+ ptr5 = log_options.__destroy_into_raw();
311
313
  }
312
- wasm.__externref_drop_slice(ptr, len);
313
- return result;
314
+ const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4, ptr5);
315
+ return ret;
314
316
  }
315
317
 
316
- function handleError(f, args) {
317
- try {
318
- return f.apply(this, args);
319
- } catch (e) {
320
- const idx = addToExternrefTable0(e);
321
- wasm.__wbindgen_exn_store(idx);
322
- }
318
+ function __wbg_adapter_50(arg0, arg1, arg2) {
319
+ wasm.closure2519_externref_shim(arg0, arg1, arg2);
323
320
  }
324
321
 
325
- function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
326
- function __wbg_adapter_567(arg0, arg1, arg2, arg3) {
327
- wasm.closure3395_externref_shim(arg0, arg1, arg2, arg3);
322
+ function __wbg_adapter_575(arg0, arg1, arg2, arg3) {
323
+ wasm.closure3613_externref_shim(arg0, arg1, arg2, arg3);
328
324
  }
329
325
 
330
- export const ConsentEntityType = Object.freeze({ GroupId:0,"0":"GroupId",InboxId:1,"1":"InboxId",Address:2,"2":"Address", });
331
-
332
- export const ConsentState = Object.freeze({ Unknown:0,"0":"Unknown",Allowed:1,"1":"Allowed",Denied:2,"2":"Denied", });
333
-
334
- export const ConversationType = Object.freeze({ Dm:0,"0":"Dm",Group:1,"1":"Group",Sync:2,"2":"Sync", });
335
-
336
- export const DeliveryStatus = Object.freeze({ Unpublished:0,"0":"Unpublished",Published:1,"1":"Published",Failed:2,"2":"Failed", });
337
-
338
- export const GroupMembershipState = Object.freeze({ Allowed:0,"0":"Allowed",Rejected:1,"1":"Rejected",Pending:2,"2":"Pending", });
339
-
340
- export const GroupMessageKind = Object.freeze({ Application:0,"0":"Application",MembershipChange:1,"1":"MembershipChange", });
341
-
342
- export const GroupPermissionsOptions = Object.freeze({ AllMembers:0,"0":"AllMembers",AdminOnly:1,"1":"AdminOnly",CustomPolicy:2,"2":"CustomPolicy", });
343
-
344
- export const PermissionLevel = Object.freeze({ Member:0,"0":"Member",Admin:1,"1":"Admin",SuperAdmin:2,"2":"SuperAdmin", });
345
-
346
- export const PermissionPolicy = Object.freeze({ Allow:0,"0":"Allow",Deny:1,"1":"Deny",Admin:2,"2":"Admin",SuperAdmin:3,"3":"SuperAdmin",DoesNotExist:4,"4":"DoesNotExist",Other:5,"5":"Other", });
347
-
348
- export const PermissionUpdateType = Object.freeze({ AddMember:0,"0":"AddMember",RemoveMember:1,"1":"RemoveMember",AddAdmin:2,"2":"AddAdmin",RemoveAdmin:3,"3":"RemoveAdmin",UpdateMetadata:4,"4":"UpdateMetadata", });
349
-
350
- export const SignatureRequestType = Object.freeze({ AddWallet:0,"0":"AddWallet",CreateInbox:1,"1":"CreateInbox",RevokeWallet:2,"2":"RevokeWallet",RevokeInstallations:3,"3":"RevokeInstallations", });
351
-
352
- export const SortDirection = Object.freeze({ Ascending:0,"0":"Ascending",Descending:1,"1":"Descending", });
353
-
354
- const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
355
-
356
- const __wbindgen_enum_LogLevel = ["off", "error", "warn", "info", "debug", "trace"];
357
-
358
- const __wbindgen_enum_ReadableStreamReaderMode = ["byob"];
359
-
360
- const __wbindgen_enum_ReadableStreamType = ["bytes"];
361
-
362
- const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
363
-
364
- const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
365
-
366
- const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
367
- ? { register: () => {}, unregister: () => {} }
368
- : new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
369
-
370
- export class Client {
371
-
372
- static __wrap(ptr) {
373
- ptr = ptr >>> 0;
374
- const obj = Object.create(Client.prototype);
375
- obj.__wbg_ptr = ptr;
376
- ClientFinalization.register(obj, obj.__wbg_ptr, obj);
377
- return obj;
378
- }
379
-
380
- __destroy_into_raw() {
381
- const ptr = this.__wbg_ptr;
326
+ /**
327
+ * @enum {0 | 1 | 2}
328
+ */
329
+ export const ConsentEntityType = Object.freeze({
330
+ GroupId: 0, "0": "GroupId",
331
+ InboxId: 1, "1": "InboxId",
332
+ Address: 2, "2": "Address",
333
+ });
334
+ /**
335
+ * @enum {0 | 1 | 2}
336
+ */
337
+ export const ConsentState = Object.freeze({
338
+ Unknown: 0, "0": "Unknown",
339
+ Allowed: 1, "1": "Allowed",
340
+ Denied: 2, "2": "Denied",
341
+ });
342
+ /**
343
+ * @enum {0 | 1 | 2}
344
+ */
345
+ export const ConversationType = Object.freeze({
346
+ Dm: 0, "0": "Dm",
347
+ Group: 1, "1": "Group",
348
+ Sync: 2, "2": "Sync",
349
+ });
350
+ /**
351
+ * @enum {0 | 1 | 2}
352
+ */
353
+ export const DeliveryStatus = Object.freeze({
354
+ Unpublished: 0, "0": "Unpublished",
355
+ Published: 1, "1": "Published",
356
+ Failed: 2, "2": "Failed",
357
+ });
358
+ /**
359
+ * @enum {0 | 1 | 2}
360
+ */
361
+ export const GroupMembershipState = Object.freeze({
362
+ Allowed: 0, "0": "Allowed",
363
+ Rejected: 1, "1": "Rejected",
364
+ Pending: 2, "2": "Pending",
365
+ });
366
+ /**
367
+ * @enum {0 | 1}
368
+ */
369
+ export const GroupMessageKind = Object.freeze({
370
+ Application: 0, "0": "Application",
371
+ MembershipChange: 1, "1": "MembershipChange",
372
+ });
373
+ /**
374
+ * @enum {0 | 1 | 2}
375
+ */
376
+ export const GroupPermissionsOptions = Object.freeze({
377
+ AllMembers: 0, "0": "AllMembers",
378
+ AdminOnly: 1, "1": "AdminOnly",
379
+ CustomPolicy: 2, "2": "CustomPolicy",
380
+ });
381
+ /**
382
+ * @enum {0 | 1 | 2 | 3}
383
+ */
384
+ export const MetadataField = Object.freeze({
385
+ GroupName: 0, "0": "GroupName",
386
+ Description: 1, "1": "Description",
387
+ ImageUrlSquare: 2, "2": "ImageUrlSquare",
388
+ PinnedFrameUrl: 3, "3": "PinnedFrameUrl",
389
+ });
390
+ /**
391
+ * @enum {0 | 1 | 2}
392
+ */
393
+ export const PermissionLevel = Object.freeze({
394
+ Member: 0, "0": "Member",
395
+ Admin: 1, "1": "Admin",
396
+ SuperAdmin: 2, "2": "SuperAdmin",
397
+ });
398
+ /**
399
+ * @enum {0 | 1 | 2 | 3 | 4 | 5}
400
+ */
401
+ export const PermissionPolicy = Object.freeze({
402
+ Allow: 0, "0": "Allow",
403
+ Deny: 1, "1": "Deny",
404
+ Admin: 2, "2": "Admin",
405
+ SuperAdmin: 3, "3": "SuperAdmin",
406
+ DoesNotExist: 4, "4": "DoesNotExist",
407
+ Other: 5, "5": "Other",
408
+ });
409
+ /**
410
+ * @enum {0 | 1 | 2 | 3 | 4}
411
+ */
412
+ export const PermissionUpdateType = Object.freeze({
413
+ AddMember: 0, "0": "AddMember",
414
+ RemoveMember: 1, "1": "RemoveMember",
415
+ AddAdmin: 2, "2": "AddAdmin",
416
+ RemoveAdmin: 3, "3": "RemoveAdmin",
417
+ UpdateMetadata: 4, "4": "UpdateMetadata",
418
+ });
419
+ /**
420
+ * @enum {0 | 1 | 2 | 3}
421
+ */
422
+ export const SignatureRequestType = Object.freeze({
423
+ AddWallet: 0, "0": "AddWallet",
424
+ CreateInbox: 1, "1": "CreateInbox",
425
+ RevokeWallet: 2, "2": "RevokeWallet",
426
+ RevokeInstallations: 3, "3": "RevokeInstallations",
427
+ });
428
+ /**
429
+ * @enum {0 | 1}
430
+ */
431
+ export const SortDirection = Object.freeze({
432
+ Ascending: 0, "0": "Ascending",
433
+ Descending: 1, "1": "Descending",
434
+ });
435
+
436
+ const __wbindgen_enum_LogLevel = ["off", "error", "warn", "info", "debug", "trace"];
437
+
438
+ const __wbindgen_enum_ReadableStreamType = ["bytes"];
439
+
440
+ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
441
+
442
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
443
+
444
+ const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
445
+ ? { register: () => {}, unregister: () => {} }
446
+ : new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
447
+
448
+ export class Client {
449
+
450
+ static __wrap(ptr) {
451
+ ptr = ptr >>> 0;
452
+ const obj = Object.create(Client.prototype);
453
+ obj.__wbg_ptr = ptr;
454
+ ClientFinalization.register(obj, obj.__wbg_ptr, obj);
455
+ return obj;
456
+ }
457
+
458
+ __destroy_into_raw() {
459
+ const ptr = this.__wbg_ptr;
382
460
  this.__wbg_ptr = 0;
383
461
  ClientFinalization.unregister(this);
384
462
  return ptr;
@@ -388,6 +466,113 @@ export class Client {
388
466
  const ptr = this.__destroy_into_raw();
389
467
  wasm.__wbg_client_free(ptr, 0);
390
468
  }
469
+ /**
470
+ * @param {(Consent)[]} records
471
+ * @returns {Promise<void>}
472
+ */
473
+ setConsentStates(records) {
474
+ const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
475
+ const len0 = WASM_VECTOR_LEN;
476
+ const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
477
+ return ret;
478
+ }
479
+ /**
480
+ * @param {ConsentEntityType} entity_type
481
+ * @param {string} entity
482
+ * @returns {Promise<ConsentState>}
483
+ */
484
+ getConsentState(entity_type, entity) {
485
+ const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
486
+ const len0 = WASM_VECTOR_LEN;
487
+ const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
488
+ return ret;
489
+ }
490
+ /**
491
+ * @returns {Promise<string | undefined>}
492
+ */
493
+ createInboxSignatureText() {
494
+ const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
495
+ return ret;
496
+ }
497
+ /**
498
+ * @param {string} new_wallet_address
499
+ * @returns {Promise<string>}
500
+ */
501
+ addWalletSignatureText(new_wallet_address) {
502
+ const ptr0 = passStringToWasm0(new_wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
503
+ const len0 = WASM_VECTOR_LEN;
504
+ const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0, len0);
505
+ return ret;
506
+ }
507
+ /**
508
+ * @param {string} wallet_address
509
+ * @returns {Promise<string>}
510
+ */
511
+ revokeWalletSignatureText(wallet_address) {
512
+ const ptr0 = passStringToWasm0(wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
513
+ const len0 = WASM_VECTOR_LEN;
514
+ const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, ptr0, len0);
515
+ return ret;
516
+ }
517
+ /**
518
+ * @returns {Promise<string>}
519
+ */
520
+ revokeInstallationsSignatureText() {
521
+ const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr);
522
+ return ret;
523
+ }
524
+ /**
525
+ * @param {SignatureRequestType} signature_type
526
+ * @param {Uint8Array} signature_bytes
527
+ * @returns {Promise<void>}
528
+ */
529
+ addSignature(signature_type, signature_bytes) {
530
+ const ret = wasm.client_addSignature(this.__wbg_ptr, signature_type, signature_bytes);
531
+ return ret;
532
+ }
533
+ /**
534
+ * @param {SignatureRequestType} signature_type
535
+ * @param {Uint8Array} signature_bytes
536
+ * @param {bigint} chain_id
537
+ * @param {bigint | undefined} [block_number]
538
+ * @returns {Promise<void>}
539
+ */
540
+ addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
541
+ const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
542
+ return ret;
543
+ }
544
+ /**
545
+ * @returns {Promise<void>}
546
+ */
547
+ applySignatureRequests() {
548
+ const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
549
+ return ret;
550
+ }
551
+ /**
552
+ * @param {string} signature_text
553
+ * @returns {Uint8Array}
554
+ */
555
+ signWithInstallationKey(signature_text) {
556
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
557
+ const len0 = WASM_VECTOR_LEN;
558
+ const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
559
+ if (ret[2]) {
560
+ throw takeFromExternrefTable0(ret[1]);
561
+ }
562
+ return takeFromExternrefTable0(ret[0]);
563
+ }
564
+ /**
565
+ * @param {string} signature_text
566
+ * @param {Uint8Array} signature_bytes
567
+ */
568
+ verifySignedWithInstallationKey(signature_text, signature_bytes) {
569
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
570
+ const len0 = WASM_VECTOR_LEN;
571
+ const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
572
+ if (ret[1]) {
573
+ throw takeFromExternrefTable0(ret[0]);
574
+ }
575
+ }
391
576
  /**
392
577
  * @returns {string}
393
578
  */
@@ -496,187 +681,80 @@ export class Client {
496
681
  return Conversations.__wrap(ret);
497
682
  }
498
683
  /**
499
- * @returns {Promise<string | undefined>}
684
+ *
685
+ * * Get the client's inbox state.
686
+ * *
687
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
688
+ * * Otherwise, the state will be read from the local database.
689
+ *
690
+ * @param {boolean} refresh_from_network
691
+ * @returns {Promise<InboxState>}
500
692
  */
501
- createInboxSignatureText() {
502
- const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
693
+ inboxState(refresh_from_network) {
694
+ const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
503
695
  return ret;
504
696
  }
505
697
  /**
506
- * @param {string} new_wallet_address
507
- * @returns {Promise<string>}
698
+ * @param {string} inbox_id
699
+ * @returns {Promise<InboxState>}
508
700
  */
509
- addWalletSignatureText(new_wallet_address) {
510
- const ptr0 = passStringToWasm0(new_wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
701
+ getLatestInboxState(inbox_id) {
702
+ const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
511
703
  const len0 = WASM_VECTOR_LEN;
512
- const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0, len0);
704
+ const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
513
705
  return ret;
514
706
  }
707
+ }
708
+
709
+ const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
710
+ ? { register: () => {}, unregister: () => {} }
711
+ : new FinalizationRegistry(ptr => wasm.__wbg_consent_free(ptr >>> 0, 1));
712
+
713
+ export class Consent {
714
+
715
+ static __unwrap(jsValue) {
716
+ if (!(jsValue instanceof Consent)) {
717
+ return 0;
718
+ }
719
+ return jsValue.__destroy_into_raw();
720
+ }
721
+
722
+ __destroy_into_raw() {
723
+ const ptr = this.__wbg_ptr;
724
+ this.__wbg_ptr = 0;
725
+ ConsentFinalization.unregister(this);
726
+ return ptr;
727
+ }
728
+
729
+ free() {
730
+ const ptr = this.__destroy_into_raw();
731
+ wasm.__wbg_consent_free(ptr, 0);
732
+ }
515
733
  /**
516
- * @param {string} wallet_address
517
- * @returns {Promise<string>}
734
+ * @returns {ConsentEntityType}
518
735
  */
519
- revokeWalletSignatureText(wallet_address) {
520
- const ptr0 = passStringToWasm0(wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
521
- const len0 = WASM_VECTOR_LEN;
522
- const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, ptr0, len0);
736
+ get entityType() {
737
+ const ret = wasm.__wbg_get_consent_entityType(this.__wbg_ptr);
523
738
  return ret;
524
739
  }
525
740
  /**
526
- * @returns {Promise<string>}
741
+ * @param {ConsentEntityType} arg0
527
742
  */
528
- revokeInstallationsSignatureText() {
529
- const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr);
530
- return ret;
743
+ set entityType(arg0) {
744
+ wasm.__wbg_set_consent_entityType(this.__wbg_ptr, arg0);
531
745
  }
532
746
  /**
533
- * @param {SignatureRequestType} signature_type
534
- * @param {Uint8Array} signature_bytes
535
- * @returns {Promise<void>}
747
+ * @returns {ConsentState}
536
748
  */
537
- addSignature(signature_type, signature_bytes) {
538
- const ret = wasm.client_addSignature(this.__wbg_ptr, signature_type, signature_bytes);
749
+ get state() {
750
+ const ret = wasm.__wbg_get_consent_state(this.__wbg_ptr);
539
751
  return ret;
540
752
  }
541
753
  /**
542
- * @param {SignatureRequestType} signature_type
543
- * @param {Uint8Array} signature_bytes
544
- * @param {bigint} chain_id
545
- * @param {bigint | undefined} [block_number]
546
- * @returns {Promise<void>}
754
+ * @param {ConsentState} arg0
547
755
  */
548
- addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
549
- const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
550
- return ret;
551
- }
552
- /**
553
- * @returns {Promise<void>}
554
- */
555
- applySignatureRequests() {
556
- const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
557
- return ret;
558
- }
559
- /**
560
- * @param {string} signature_text
561
- * @returns {Uint8Array}
562
- */
563
- signWithInstallationKey(signature_text) {
564
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
565
- const len0 = WASM_VECTOR_LEN;
566
- const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
567
- if (ret[2]) {
568
- throw takeFromExternrefTable0(ret[1]);
569
- }
570
- return takeFromExternrefTable0(ret[0]);
571
- }
572
- /**
573
- * @param {string} signature_text
574
- * @param {Uint8Array} signature_bytes
575
- */
576
- verifySignedWithInstallationKey(signature_text, signature_bytes) {
577
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
578
- const len0 = WASM_VECTOR_LEN;
579
- const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
580
- if (ret[1]) {
581
- throw takeFromExternrefTable0(ret[0]);
582
- }
583
- }
584
- /**
585
- * @param {(Consent)[]} records
586
- * @returns {Promise<void>}
587
- */
588
- setConsentStates(records) {
589
- const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
590
- const len0 = WASM_VECTOR_LEN;
591
- const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
592
- return ret;
593
- }
594
- /**
595
- * @param {ConsentEntityType} entity_type
596
- * @param {string} entity
597
- * @returns {Promise<ConsentState>}
598
- */
599
- getConsentState(entity_type, entity) {
600
- const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
601
- const len0 = WASM_VECTOR_LEN;
602
- const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
603
- return ret;
604
- }
605
- /**
606
- *
607
- * * Get the client's inbox state.
608
- * *
609
- * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
610
- * * Otherwise, the state will be read from the local database.
611
- *
612
- * @param {boolean} refresh_from_network
613
- * @returns {Promise<InboxState>}
614
- */
615
- inboxState(refresh_from_network) {
616
- const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
617
- return ret;
618
- }
619
- /**
620
- * @param {string} inbox_id
621
- * @returns {Promise<InboxState>}
622
- */
623
- getLatestInboxState(inbox_id) {
624
- const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
625
- const len0 = WASM_VECTOR_LEN;
626
- const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
627
- return ret;
628
- }
629
- }
630
-
631
- const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
632
- ? { register: () => {}, unregister: () => {} }
633
- : new FinalizationRegistry(ptr => wasm.__wbg_consent_free(ptr >>> 0, 1));
634
-
635
- export class Consent {
636
-
637
- static __unwrap(jsValue) {
638
- if (!(jsValue instanceof Consent)) {
639
- return 0;
640
- }
641
- return jsValue.__destroy_into_raw();
642
- }
643
-
644
- __destroy_into_raw() {
645
- const ptr = this.__wbg_ptr;
646
- this.__wbg_ptr = 0;
647
- ConsentFinalization.unregister(this);
648
- return ptr;
649
- }
650
-
651
- free() {
652
- const ptr = this.__destroy_into_raw();
653
- wasm.__wbg_consent_free(ptr, 0);
654
- }
655
- /**
656
- * @returns {ConsentEntityType}
657
- */
658
- get entityType() {
659
- const ret = wasm.__wbg_get_consent_entityType(this.__wbg_ptr);
660
- return ret;
661
- }
662
- /**
663
- * @param {ConsentEntityType} arg0
664
- */
665
- set entityType(arg0) {
666
- wasm.__wbg_set_consent_entityType(this.__wbg_ptr, arg0);
667
- }
668
- /**
669
- * @returns {ConsentState}
670
- */
671
- get state() {
672
- const ret = wasm.__wbg_get_consent_state(this.__wbg_ptr);
673
- return ret;
674
- }
675
- /**
676
- * @param {ConsentState} arg0
677
- */
678
- set state(arg0) {
679
- wasm.__wbg_set_consent_state(this.__wbg_ptr, arg0);
756
+ set state(arg0) {
757
+ wasm.__wbg_set_consent_state(this.__wbg_ptr, arg0);
680
758
  }
681
759
  /**
682
760
  * @returns {string}
@@ -942,7 +1020,7 @@ export class Conversation {
942
1020
  }
943
1021
  /**
944
1022
  * @param {ListMessagesOptions | undefined} [opts]
945
- * @returns {(Message)[]}
1023
+ * @returns {Promise<(Message)[]>}
946
1024
  */
947
1025
  findMessages(opts) {
948
1026
  let ptr0 = 0;
@@ -951,12 +1029,7 @@ export class Conversation {
951
1029
  ptr0 = opts.__destroy_into_raw();
952
1030
  }
953
1031
  const ret = wasm.conversation_findMessages(this.__wbg_ptr, ptr0);
954
- if (ret[3]) {
955
- throw takeFromExternrefTable0(ret[2]);
956
- }
957
- var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
958
- wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
959
- return v2;
1032
+ return ret;
960
1033
  }
961
1034
  /**
962
1035
  * @returns {Promise<any>}
@@ -1268,14 +1341,11 @@ export class Conversation {
1268
1341
  }
1269
1342
  }
1270
1343
  /**
1271
- * @returns {GroupMetadata}
1344
+ * @returns {Promise<GroupMetadata>}
1272
1345
  */
1273
1346
  groupMetadata() {
1274
1347
  const ret = wasm.conversation_groupMetadata(this.__wbg_ptr);
1275
- if (ret[2]) {
1276
- throw takeFromExternrefTable0(ret[1]);
1277
- }
1278
- return GroupMetadata.__wrap(ret[0]);
1348
+ return ret;
1279
1349
  }
1280
1350
  /**
1281
1351
  * @returns {string}
@@ -1298,6 +1368,16 @@ export class Conversation {
1298
1368
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1299
1369
  }
1300
1370
  }
1371
+ /**
1372
+ * @param {PermissionUpdateType} permission_update_type
1373
+ * @param {PermissionPolicy} permission_policy_option
1374
+ * @param {MetadataField | undefined} [metadata_field]
1375
+ * @returns {Promise<void>}
1376
+ */
1377
+ updatePermissionPolicy(permission_update_type, permission_policy_option, metadata_field) {
1378
+ const ret = wasm.conversation_updatePermissionPolicy(this.__wbg_ptr, permission_update_type, permission_policy_option, isLikeNone(metadata_field) ? 4 : metadata_field);
1379
+ return ret;
1380
+ }
1301
1381
  }
1302
1382
 
1303
1383
  const ConversationsFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1555,14 +1635,33 @@ export class CreateGroupOptions {
1555
1635
  var len0 = WASM_VECTOR_LEN;
1556
1636
  wasm.__wbg_set_creategroupoptions_groupPinnedFrameUrl(this.__wbg_ptr, ptr0, len0);
1557
1637
  }
1638
+ /**
1639
+ * @returns {PermissionPolicySet | undefined}
1640
+ */
1641
+ get customPermissionPolicySet() {
1642
+ const ret = wasm.__wbg_get_creategroupoptions_customPermissionPolicySet(this.__wbg_ptr);
1643
+ return ret === 0 ? undefined : PermissionPolicySet.__wrap(ret);
1644
+ }
1645
+ /**
1646
+ * @param {PermissionPolicySet | undefined} [arg0]
1647
+ */
1648
+ set customPermissionPolicySet(arg0) {
1649
+ let ptr0 = 0;
1650
+ if (!isLikeNone(arg0)) {
1651
+ _assertClass(arg0, PermissionPolicySet);
1652
+ ptr0 = arg0.__destroy_into_raw();
1653
+ }
1654
+ wasm.__wbg_set_creategroupoptions_customPermissionPolicySet(this.__wbg_ptr, ptr0);
1655
+ }
1558
1656
  /**
1559
1657
  * @param {GroupPermissionsOptions | undefined} [permissions]
1560
1658
  * @param {string | undefined} [group_name]
1561
1659
  * @param {string | undefined} [group_image_url_square]
1562
1660
  * @param {string | undefined} [group_description]
1563
1661
  * @param {string | undefined} [group_pinned_frame_url]
1662
+ * @param {PermissionPolicySet | undefined} [custom_permission_policy_set]
1564
1663
  */
1565
- constructor(permissions, group_name, group_image_url_square, group_description, group_pinned_frame_url) {
1664
+ constructor(permissions, group_name, group_image_url_square, group_description, group_pinned_frame_url, custom_permission_policy_set) {
1566
1665
  var ptr0 = isLikeNone(group_name) ? 0 : passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1567
1666
  var len0 = WASM_VECTOR_LEN;
1568
1667
  var ptr1 = isLikeNone(group_image_url_square) ? 0 : passStringToWasm0(group_image_url_square, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1571,7 +1670,12 @@ export class CreateGroupOptions {
1571
1670
  var len2 = WASM_VECTOR_LEN;
1572
1671
  var ptr3 = isLikeNone(group_pinned_frame_url) ? 0 : passStringToWasm0(group_pinned_frame_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1573
1672
  var len3 = WASM_VECTOR_LEN;
1574
- const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1673
+ let ptr4 = 0;
1674
+ if (!isLikeNone(custom_permission_policy_set)) {
1675
+ _assertClass(custom_permission_policy_set, PermissionPolicySet);
1676
+ ptr4 = custom_permission_policy_set.__destroy_into_raw();
1677
+ }
1678
+ const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4);
1575
1679
  this.__wbg_ptr = ret >>> 0;
1576
1680
  CreateGroupOptionsFinalization.register(this, this.__wbg_ptr, this);
1577
1681
  return this;
@@ -1659,13 +1763,13 @@ export class EncodedContent {
1659
1763
  */
1660
1764
  get compression() {
1661
1765
  const ret = wasm.__wbg_get_encodedcontent_compression(this.__wbg_ptr);
1662
- return ret[0] === 0 ? undefined : ret[1];
1766
+ return ret === 0x100000001 ? undefined : ret;
1663
1767
  }
1664
1768
  /**
1665
1769
  * @param {number | undefined} [arg0]
1666
1770
  */
1667
1771
  set compression(arg0) {
1668
- wasm.__wbg_set_encodedcontent_compression(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
1772
+ wasm.__wbg_set_encodedcontent_compression(this.__wbg_ptr, isLikeNone(arg0) ? 0x100000001 : (arg0) >> 0);
1669
1773
  }
1670
1774
  /**
1671
1775
  * @returns {Uint8Array}
@@ -1695,7 +1799,7 @@ export class EncodedContent {
1695
1799
  }
1696
1800
  var ptr1 = isLikeNone(fallback) ? 0 : passStringToWasm0(fallback, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1697
1801
  var len1 = WASM_VECTOR_LEN;
1698
- const ret = wasm.encodedcontent_new(ptr0, parameters, ptr1, len1, !isLikeNone(compression), isLikeNone(compression) ? 0 : compression, content);
1802
+ const ret = wasm.encodedcontent_new(ptr0, parameters, ptr1, len1, isLikeNone(compression) ? 0x100000001 : (compression) >> 0, content);
1699
1803
  this.__wbg_ptr = ret >>> 0;
1700
1804
  EncodedContentFinalization.register(this, this.__wbg_ptr, this);
1701
1805
  return this;
@@ -2154,7 +2258,7 @@ export class IntoUnderlyingByteSource {
2154
2258
  wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
2155
2259
  }
2156
2260
  /**
2157
- * @returns {any}
2261
+ * @returns {ReadableStreamType}
2158
2262
  */
2159
2263
  get type() {
2160
2264
  const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
@@ -2516,7 +2620,7 @@ export class LogOptions {
2516
2620
  }
2517
2621
  /**
2518
2622
  * filter for logs
2519
- * @returns {any | undefined}
2623
+ * @returns {LogLevel | undefined}
2520
2624
  */
2521
2625
  get level() {
2522
2626
  const ret = wasm.__wbg_get_logoptions_level(this.__wbg_ptr);
@@ -2524,18 +2628,18 @@ export class LogOptions {
2524
2628
  }
2525
2629
  /**
2526
2630
  * filter for logs
2527
- * @param {any | undefined} [arg0]
2631
+ * @param {LogLevel | undefined} [arg0]
2528
2632
  */
2529
2633
  set level(arg0) {
2530
- wasm.__wbg_set_logoptions_level(this.__wbg_ptr, arg0 == undefined ? 7 : ((__wbindgen_enum_LogLevel.indexOf(arg0) + 1 || 7) - 1));
2634
+ wasm.__wbg_set_logoptions_level(this.__wbg_ptr, isLikeNone(arg0) ? 7 : ((__wbindgen_enum_LogLevel.indexOf(arg0) + 1 || 7) - 1));
2531
2635
  }
2532
2636
  /**
2533
2637
  * @param {boolean} structured
2534
2638
  * @param {boolean} performance
2535
- * @param {any | undefined} [level]
2639
+ * @param {LogLevel | undefined} [level]
2536
2640
  */
2537
2641
  constructor(structured, performance, level) {
2538
- const ret = wasm.logoptions_new(structured, performance, level == undefined ? 7 : ((__wbindgen_enum_LogLevel.indexOf(level) + 1 || 7) - 1));
2642
+ const ret = wasm.logoptions_new(structured, performance, isLikeNone(level) ? 7 : ((__wbindgen_enum_LogLevel.indexOf(level) + 1 || 7) - 1));
2539
2643
  this.__wbg_ptr = ret >>> 0;
2540
2644
  LogOptionsFinalization.register(this, this.__wbg_ptr, this);
2541
2645
  return this;
@@ -2915,849 +3019,890 @@ async function __wbg_load(module, imports) {
2915
3019
  function __wbg_get_imports() {
2916
3020
  const imports = {};
2917
3021
  imports.wbg = {};
2918
- imports.wbg.__wbg_initmodule_63b167b4c2952e1b = function(arg0) {
2919
- const ret = SQLite.init_module(arg0);
3022
+ imports.wbg.__wbg_SQLITEBLOB_6acbdf0084499c6d = function(arg0) {
3023
+ const ret = arg0.SQLITE_BLOB;
2920
3024
  return ret;
2921
3025
  };
2922
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2923
- const ret = new Error(getStringFromWasm0(arg0, arg1));
3026
+ imports.wbg.__wbg_SQLITECONSTRAINTCHECK_078c7421516c6cb0 = function(arg0) {
3027
+ const ret = arg0.SQLITE_CONSTRAINT_CHECK;
2924
3028
  return ret;
2925
3029
  };
2926
- imports.wbg.__wbindgen_number_new = function(arg0) {
2927
- const ret = arg0;
3030
+ imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_542d05e3ee2cb739 = function(arg0) {
3031
+ const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
2928
3032
  return ret;
2929
3033
  };
2930
- imports.wbg.__wbg_conversation_new = function(arg0) {
2931
- const ret = Conversation.__wrap(arg0);
3034
+ imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_2e70f645b6727cc2 = function(arg0) {
3035
+ const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
2932
3036
  return ret;
2933
3037
  };
2934
- imports.wbg.__wbg_message_new = function(arg0) {
2935
- const ret = Message.__wrap(arg0);
3038
+ imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_672b0b877eaa70c2 = function(arg0) {
3039
+ const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
2936
3040
  return ret;
2937
3041
  };
2938
- imports.wbg.__wbg_installation_new = function(arg0) {
2939
- const ret = Installation.__wrap(arg0);
3042
+ imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_99e8e64a3ddb260e = function(arg0) {
3043
+ const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
3044
+ return ret;
3045
+ };
3046
+ imports.wbg.__wbg_SQLITEDONE_71e1fe762c2f590a = function(arg0) {
3047
+ const ret = arg0.SQLITE_DONE;
3048
+ return ret;
3049
+ };
3050
+ imports.wbg.__wbg_SQLITEFLOAT_0d1b783b6273c5ca = function(arg0) {
3051
+ const ret = arg0.SQLITE_FLOAT;
3052
+ return ret;
3053
+ };
3054
+ imports.wbg.__wbg_SQLITEINTEGER_89d30a97ec5964fa = function(arg0) {
3055
+ const ret = arg0.SQLITE_INTEGER;
3056
+ return ret;
3057
+ };
3058
+ imports.wbg.__wbg_SQLITENULL_14a0b14e9418f512 = function(arg0) {
3059
+ const ret = arg0.SQLITE_NULL;
3060
+ return ret;
3061
+ };
3062
+ imports.wbg.__wbg_SQLITEOK_a0a5a44f4b54bda1 = function(arg0) {
3063
+ const ret = arg0.SQLITE_OK;
3064
+ return ret;
3065
+ };
3066
+ imports.wbg.__wbg_SQLITEOPENCREATE_a89e637416473d65 = function(arg0) {
3067
+ const ret = arg0.SQLITE_OPEN_CREATE;
3068
+ return ret;
3069
+ };
3070
+ imports.wbg.__wbg_SQLITEOPENREADWRITE_3eb06e2be4a7f535 = function(arg0) {
3071
+ const ret = arg0.SQLITE_OPEN_READWRITE;
3072
+ return ret;
3073
+ };
3074
+ imports.wbg.__wbg_SQLITEOPENURI_73f78cdcb3e54f88 = function(arg0) {
3075
+ const ret = arg0.SQLITE_OPEN_URI;
3076
+ return ret;
3077
+ };
3078
+ imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_6f142d8bf27893d7 = function(arg0) {
3079
+ const ret = arg0.SQLITE_PREPARE_PERSISTENT;
3080
+ return ret;
3081
+ };
3082
+ imports.wbg.__wbg_SQLITEROW_16ddd22277b912f1 = function(arg0) {
3083
+ const ret = arg0.SQLITE_ROW;
3084
+ return ret;
3085
+ };
3086
+ imports.wbg.__wbg_SQLITESTATIC_f6e96ea3ff678329 = function(arg0) {
3087
+ const ret = arg0.SQLITE_STATIC;
3088
+ return ret;
3089
+ };
3090
+ imports.wbg.__wbg_SQLITETEXT_4dd38105410a0c0a = function(arg0) {
3091
+ const ret = arg0.SQLITE_TEXT;
3092
+ return ret;
3093
+ };
3094
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
3095
+ const ret = String(arg1);
3096
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3097
+ const len1 = WASM_VECTOR_LEN;
3098
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3099
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3100
+ };
3101
+ imports.wbg.__wbg_abort_05026c983d86824c = function(arg0) {
3102
+ arg0.abort();
3103
+ };
3104
+ imports.wbg.__wbg_allocCString_69f9010fb2b096f0 = function(arg0, arg1, arg2) {
3105
+ let deferred0_0;
3106
+ let deferred0_1;
3107
+ try {
3108
+ deferred0_0 = arg1;
3109
+ deferred0_1 = arg2;
3110
+ const ret = arg0.allocCString(getStringFromWasm0(arg1, arg2));
3111
+ return ret;
3112
+ } finally {
3113
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3114
+ }
3115
+ };
3116
+ imports.wbg.__wbg_allocPtr_c83ee345784d444f = function(arg0, arg1, arg2) {
3117
+ const ret = arg0.allocPtr(arg1 >>> 0, arg2 !== 0);
3118
+ return ret;
3119
+ };
3120
+ imports.wbg.__wbg_alloc_59459fd5c596f36c = function(arg0, arg1) {
3121
+ const ret = arg0.alloc(arg1 >>> 0);
3122
+ return ret;
3123
+ };
3124
+ imports.wbg.__wbg_alloc_818f07788ede8415 = function(arg0, arg1) {
3125
+ const ret = arg0.alloc(arg1 >>> 0);
3126
+ return ret;
3127
+ };
3128
+ imports.wbg.__wbg_alloc_9ba78eb5db297dec = function(arg0) {
3129
+ const ret = arg0.alloc;
3130
+ return ret;
3131
+ };
3132
+ imports.wbg.__wbg_append_72d1635ad8643998 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3133
+ arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
3134
+ }, arguments) };
3135
+ imports.wbg.__wbg_arrayBuffer_d0ca2ad8bda0039b = function() { return handleError(function (arg0) {
3136
+ const ret = arg0.arrayBuffer();
3137
+ return ret;
3138
+ }, arguments) };
3139
+ imports.wbg.__wbg_bindblob_2d3842f5d0645344 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
3140
+ const ret = arg0.bind_blob(arg1, arg2, arg3 >>> 0, arg4, arg5);
3141
+ return ret;
3142
+ };
3143
+ imports.wbg.__wbg_binddouble_652de2eaf823b755 = function(arg0, arg1, arg2, arg3) {
3144
+ const ret = arg0.bind_double(arg1, arg2, arg3);
3145
+ return ret;
3146
+ };
3147
+ imports.wbg.__wbg_bindint64_ab19debe2f3b2a51 = function(arg0, arg1, arg2, arg3) {
3148
+ const ret = arg0.bind_int64(arg1, arg2, arg3);
3149
+ return ret;
3150
+ };
3151
+ imports.wbg.__wbg_bindint_d6ed3d7de087f452 = function(arg0, arg1, arg2, arg3) {
3152
+ const ret = arg0.bind_int(arg1, arg2, arg3);
3153
+ return ret;
3154
+ };
3155
+ imports.wbg.__wbg_bindnull_db900eeb1a7f0781 = function(arg0, arg1, arg2) {
3156
+ const ret = arg0.bind_null(arg1, arg2);
3157
+ return ret;
3158
+ };
3159
+ imports.wbg.__wbg_bindtext_d7063f12780d715d = function(arg0, arg1, arg2, arg3, arg4, arg5) {
3160
+ const ret = arg0.bind_text(arg1, arg2, arg3 >>> 0, arg4, arg5);
3161
+ return ret;
3162
+ };
3163
+ imports.wbg.__wbg_buffer_61b7ce01341d7f88 = function(arg0) {
3164
+ const ret = arg0.buffer;
3165
+ return ret;
3166
+ };
3167
+ imports.wbg.__wbg_buffer_dc5dbfa8d5fb28cf = function(arg0) {
3168
+ const ret = arg0.buffer;
3169
+ return ret;
3170
+ };
3171
+ imports.wbg.__wbg_byobRequest_1fc36a0c1e98611b = function(arg0) {
3172
+ const ret = arg0.byobRequest;
3173
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3174
+ };
3175
+ imports.wbg.__wbg_byteLength_1b2d953758afc500 = function(arg0) {
3176
+ const ret = arg0.byteLength;
3177
+ return ret;
3178
+ };
3179
+ imports.wbg.__wbg_byteOffset_7ef484c6c1d473e9 = function(arg0) {
3180
+ const ret = arg0.byteOffset;
3181
+ return ret;
3182
+ };
3183
+ imports.wbg.__wbg_call_500db948e69c7330 = function() { return handleError(function (arg0, arg1, arg2) {
3184
+ const ret = arg0.call(arg1, arg2);
3185
+ return ret;
3186
+ }, arguments) };
3187
+ imports.wbg.__wbg_call_b0d8e36992d9900d = function() { return handleError(function (arg0, arg1) {
3188
+ const ret = arg0.call(arg1);
3189
+ return ret;
3190
+ }, arguments) };
3191
+ imports.wbg.__wbg_capi_b2cd9cd3325d1164 = function(arg0) {
3192
+ const ret = arg0.capi;
3193
+ return ret;
3194
+ };
3195
+ imports.wbg.__wbg_changes_8f2cadd92748538c = function(arg0, arg1) {
3196
+ const ret = arg0.changes(arg1);
2940
3197
  return ret;
2941
3198
  };
2942
3199
  imports.wbg.__wbg_client_new = function(arg0) {
2943
3200
  const ret = Client.__wrap(arg0);
2944
3201
  return ret;
2945
3202
  };
2946
- imports.wbg.__wbg_inboxstate_new = function(arg0) {
2947
- const ret = InboxState.__wrap(arg0);
3203
+ imports.wbg.__wbg_close_061ae3ddcd90d5b9 = function(arg0, arg1) {
3204
+ const ret = arg0.close(arg1);
2948
3205
  return ret;
2949
3206
  };
2950
- imports.wbg.__wbindgen_try_into_number = function(arg0) {
2951
- let result;
2952
- try { result = +arg0 } catch (e) { result = e }
2953
- const ret = result;
2954
- return ret;
2955
- };
2956
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
2957
- const obj = arg1;
2958
- const ret = typeof(obj) === 'number' ? obj : undefined;
2959
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2960
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2961
- };
2962
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
2963
- const ret = arg0 === undefined;
2964
- return ret;
2965
- };
2966
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
2967
- const ret = arg0 in arg1;
2968
- return ret;
2969
- };
2970
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2971
- const obj = arg1;
2972
- const ret = typeof(obj) === 'string' ? obj : undefined;
2973
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2974
- var len1 = WASM_VECTOR_LEN;
2975
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2976
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2977
- };
2978
- imports.wbg.__wbindgen_is_object = function(arg0) {
2979
- const val = arg0;
2980
- const ret = typeof(val) === 'object' && val !== null;
2981
- return ret;
2982
- };
2983
- imports.wbg.__wbindgen_as_number = function(arg0) {
2984
- const ret = +arg0;
2985
- return ret;
2986
- };
2987
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2988
- const ret = getStringFromWasm0(arg0, arg1);
2989
- return ret;
2990
- };
2991
- imports.wbg.__wbg_consent_unwrap = function(arg0) {
2992
- const ret = Consent.__unwrap(arg0);
2993
- return ret;
2994
- };
2995
- imports.wbg.__wbg_installation_unwrap = function(arg0) {
2996
- const ret = Installation.__unwrap(arg0);
2997
- return ret;
2998
- };
2999
- imports.wbg.__wbg_performance_72f95fe5952939b5 = function() {
3000
- const ret = globalThis.performance;
3001
- return ret;
3002
- };
3003
- imports.wbg.__wbg_mark_6045ef1772587264 = function() { return handleError(function (arg0, arg1, arg2) {
3004
- arg0.mark(getStringFromWasm0(arg1, arg2));
3005
- }, arguments) };
3006
- imports.wbg.__wbg_mark_bad820680b8580c2 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3007
- arg0.mark(getStringFromWasm0(arg1, arg2), arg3);
3008
- }, arguments) };
3009
- imports.wbg.__wbg_measure_1d846b814d43d7e1 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3010
- arg0.measure(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6));
3011
- }, arguments) };
3012
- imports.wbg.__wbg_measure_7ca0e5cfef892340 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3013
- arg0.measure(getStringFromWasm0(arg1, arg2), arg3);
3014
- }, arguments) };
3015
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
3016
- const obj = arg0.original;
3017
- if (obj.cnt-- == 1) {
3018
- obj.a = 0;
3019
- return true;
3020
- }
3021
- const ret = false;
3022
- return ret;
3023
- };
3024
- imports.wbg.__wbg_clearTimeout_541ac0980ffcef74 = typeof clearTimeout == 'function' ? clearTimeout : notDefined('clearTimeout');
3025
- imports.wbg.__wbg_setTimeout_7d81d052875b0f4f = function() { return handleError(function (arg0, arg1) {
3026
- const ret = setTimeout(arg0, arg1);
3027
- return ret;
3028
- }, arguments) };
3029
- imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
3030
- const ret = new Error();
3031
- return ret;
3032
- };
3033
- imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
3034
- const ret = arg1.stack;
3035
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3036
- const len1 = WASM_VECTOR_LEN;
3037
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3038
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3039
- };
3040
- imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
3041
- let deferred0_0;
3042
- let deferred0_1;
3043
- try {
3044
- deferred0_0 = arg0;
3045
- deferred0_1 = arg1;
3046
- console.error(getStringFromWasm0(arg0, arg1));
3047
- } finally {
3048
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3049
- }
3050
- };
3051
- imports.wbg.__wbg_sqlite3_94709d525395f0e0 = function(arg0) {
3052
- const ret = arg0.sqlite3;
3053
- return ret;
3054
- };
3055
- imports.wbg.__wbg_wasm_493cb9116b24d2ed = function(arg0) {
3056
- const ret = arg0.wasm;
3057
- return ret;
3058
- };
3059
- imports.wbg.__wbg_pstack_fc77b7165420650a = function(arg0) {
3060
- const ret = arg0.pstack;
3061
- return ret;
3062
- };
3063
- imports.wbg.__wbg_pointer_d3c7ebff6fec1c91 = function(arg0) {
3064
- const ret = arg0.pointer;
3065
- return ret;
3066
- };
3067
- imports.wbg.__wbg_alloc_3dc7f2dcc7f32fdb = function(arg0, arg1) {
3068
- const ret = arg0.alloc(arg1 >>> 0);
3069
- return ret;
3070
- };
3071
- imports.wbg.__wbg_alloc_412cbdfb204df090 = function(arg0, arg1) {
3072
- const ret = arg0.alloc(arg1 >>> 0);
3073
- return ret;
3074
- };
3075
- imports.wbg.__wbg_preparev3_439afd649e006ca8 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3076
- const ret = arg0.prepare_v3(arg1, arg2 >>> 0, arg3, arg4 >>> 0, arg5, arg6);
3077
- return ret;
3078
- };
3079
- imports.wbg.__wbg_peekPtr_a3eb6c43e8226b33 = function(arg0, arg1) {
3080
- const ret = arg0.peekPtr(arg1);
3081
- return ret;
3082
- };
3083
- imports.wbg.__wbg_restore_f0dcf7e42f529814 = function(arg0, arg1) {
3084
- arg0.restore(arg1);
3085
- };
3086
- imports.wbg.__wbindgen_is_null = function(arg0) {
3087
- const ret = arg0 === null;
3088
- return ret;
3089
- };
3090
- imports.wbg.__wbg_alloc_12d3472bbd917658 = function(arg0) {
3091
- const ret = arg0.alloc;
3092
- return ret;
3093
- };
3094
- imports.wbg.__wbg_allocPtr_a9d5b0a7a6dfb5ab = function(arg0, arg1, arg2) {
3095
- const ret = arg0.allocPtr(arg1 >>> 0, arg2 !== 0);
3096
- return ret;
3097
- };
3098
- imports.wbg.__wbg_impl_3c42f6bcb7b4c19c = function(arg0, arg1) {
3099
- const ret = arg0.impl(arg1 >>> 0);
3100
- return ret;
3101
- };
3102
- imports.wbg.__wbg_bindnull_bb548bfb7e51d9f6 = function(arg0, arg1, arg2) {
3103
- const ret = arg0.bind_null(arg1, arg2);
3104
- return ret;
3105
- };
3106
- imports.wbg.__wbg_bindtext_ea5e136c4ac4c21f = function(arg0, arg1, arg2, arg3, arg4, arg5) {
3107
- const ret = arg0.bind_text(arg1, arg2, arg3 >>> 0, arg4, arg5);
3108
- return ret;
3109
- };
3110
- imports.wbg.__wbg_bindint_1ad9b7c92c66451b = function(arg0, arg1, arg2, arg3) {
3111
- const ret = arg0.bind_int(arg1, arg2, arg3);
3112
- return ret;
3113
- };
3114
- imports.wbg.__wbg_bindint64_4f6d503abe851224 = function(arg0, arg1, arg2, arg3) {
3115
- const ret = arg0.bind_int64(arg1, arg2, arg3);
3116
- return ret;
3117
- };
3118
- imports.wbg.__wbg_binddouble_b0a91f37239ee4b0 = function(arg0, arg1, arg2, arg3) {
3119
- const ret = arg0.bind_double(arg1, arg2, arg3);
3120
- return ret;
3121
- };
3122
- imports.wbg.__wbg_bindblob_5a17f213fdf1908e = function(arg0, arg1, arg2, arg3, arg4, arg5) {
3123
- const ret = arg0.bind_blob(arg1, arg2, arg3 >>> 0, arg4, arg5);
3124
- return ret;
3125
- };
3126
- imports.wbg.__wbg_dbhandle_ab50bfd9245494b7 = function(arg0, arg1) {
3127
- const ret = arg0.db_handle(arg1);
3128
- return ret;
3129
- };
3130
- imports.wbg.__wbg_dealloc_351653c7fd6f869c = function(arg0, arg1) {
3131
- arg0.dealloc(arg1 >>> 0);
3132
- };
3133
- imports.wbg.__wbg_finalize_238aae75fb871c94 = function() { return handleError(function (arg0, arg1) {
3134
- arg0.finalize(arg1);
3135
- }, arguments) };
3136
- imports.wbg.__wbg_reset_0be27bd2c5c25e78 = function(arg0, arg1) {
3137
- const ret = arg0.reset(arg1);
3138
- return ret;
3139
- };
3140
- imports.wbg.__wbg_step_a58b1066c566c122 = function(arg0, arg1) {
3141
- const ret = arg0.step(arg1);
3142
- return ret;
3143
- };
3144
- imports.wbg.__wbg_columncount_a12965551470fb42 = function(arg0, arg1) {
3145
- const ret = arg0.column_count(arg1);
3146
- return ret;
3147
- };
3148
- imports.wbg.__wbg_columnvalue_49c1ea5d732bde1c = function(arg0, arg1, arg2) {
3149
- const ret = arg0.column_value(arg1, arg2);
3150
- return ret;
3151
- };
3152
- imports.wbg.__wbg_capi_ca06542c83b93175 = function(arg0) {
3153
- const ret = arg0.capi;
3154
- return ret;
3155
- };
3156
- imports.wbg.__wbg_SQLITECONSTRAINTCHECK_7b54e6702b2e57ba = function(arg0) {
3157
- const ret = arg0.SQLITE_CONSTRAINT_CHECK;
3158
- return ret;
3159
- };
3160
- imports.wbg.__wbg_SQLITEROW_a21779e78155c8ad = function(arg0) {
3161
- const ret = arg0.SQLITE_ROW;
3162
- return ret;
3163
- };
3164
- imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_d81d553ffa5c038c = function(arg0) {
3165
- const ret = arg0.SQLITE_PREPARE_PERSISTENT;
3166
- return ret;
3167
- };
3168
- imports.wbg.__wbg_SQLITEINTEGER_9031dce8e01c166c = function(arg0) {
3169
- const ret = arg0.SQLITE_INTEGER;
3170
- return ret;
3171
- };
3172
- imports.wbg.__wbg_SQLITEDONE_fbfe18ce23a3b6da = function(arg0) {
3173
- const ret = arg0.SQLITE_DONE;
3174
- return ret;
3175
- };
3176
- imports.wbg.__wbg_SQLITETEXT_727e78d48f532f23 = function(arg0) {
3177
- const ret = arg0.SQLITE_TEXT;
3178
- return ret;
3179
- };
3180
- imports.wbg.__wbg_SQLITENULL_00f5eb33b5b89690 = function(arg0) {
3181
- const ret = arg0.SQLITE_NULL;
3182
- return ret;
3183
- };
3184
- imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_1dea04a977c1e377 = function(arg0) {
3185
- const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
3186
- return ret;
3187
- };
3188
- imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_3e2ad26d848575a2 = function(arg0) {
3189
- const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
3190
- return ret;
3191
- };
3192
- imports.wbg.__wbg_SQLITEBLOB_394b61ff6fc173a6 = function(arg0) {
3193
- const ret = arg0.SQLITE_BLOB;
3194
- return ret;
3195
- };
3196
- imports.wbg.__wbg_SQLITESTATIC_b98299c993e94d35 = function(arg0) {
3197
- const ret = arg0.SQLITE_STATIC;
3198
- return ret;
3199
- };
3200
- imports.wbg.__wbg_SQLITEFLOAT_e0da134da12d25d0 = function(arg0) {
3201
- const ret = arg0.SQLITE_FLOAT;
3202
- return ret;
3203
- };
3204
- imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_0f87885933517ad3 = function(arg0) {
3205
- const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
3206
- return ret;
3207
- };
3208
- imports.wbg.__wbg_SQLITEOK_2d09a4e691645e98 = function(arg0) {
3209
- const ret = arg0.SQLITE_OK;
3210
- return ret;
3211
- };
3212
- imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_741a343b3482effc = function(arg0) {
3213
- const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
3214
- return ret;
3215
- };
3216
- imports.wbg.__wbg_SQLITEOPENREADWRITE_a83b4615e4d0f3ab = function(arg0) {
3217
- const ret = arg0.SQLITE_OPEN_READWRITE;
3218
- return ret;
3219
- };
3220
- imports.wbg.__wbg_SQLITEOPENCREATE_9de5b9e000c4b114 = function(arg0) {
3221
- const ret = arg0.SQLITE_OPEN_CREATE;
3222
- return ret;
3223
- };
3224
- imports.wbg.__wbg_SQLITEOPENURI_553652ff6391f5f3 = function(arg0) {
3225
- const ret = arg0.SQLITE_OPEN_URI;
3226
- return ret;
3227
- };
3228
- imports.wbg.__wbg_changes_ad25c054690f6c2c = function(arg0, arg1) {
3229
- const ret = arg0.changes(arg1);
3230
- return ret;
3231
- };
3232
- imports.wbg.__wbg_close_91b1f36e8a68490f = function(arg0, arg1) {
3233
- const ret = arg0.close(arg1);
3234
- return ret;
3235
- };
3236
- imports.wbg.__wbindgen_link_42e73067c99cbdba = function(arg0) {
3237
- const ret = new URL('snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3-opfs-async-proxy.js', import.meta.url).toString();
3238
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3239
- const len1 = WASM_VECTOR_LEN;
3240
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3241
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3242
- };
3243
- imports.wbg.__wbg_heap8u_e5e9645d146c39a3 = function(arg0) {
3244
- const ret = arg0.heap8u();
3245
- return ret;
3246
- };
3247
- imports.wbg.__wbg_new_a4c99de148de264c = function(arg0) {
3248
- const ret = new SQLite(arg0);
3249
- return ret;
3250
- };
3251
- imports.wbg.__wbg_version_5f48815bb1d8b346 = function(arg0) {
3252
- const ret = arg0.version();
3253
- return ret;
3254
- };
3255
- imports.wbg.__wbg_filename_144613ea2a1b3e89 = function(arg0, arg1, arg2, arg3, arg4) {
3256
- let deferred0_0;
3257
- let deferred0_1;
3258
- try {
3259
- deferred0_0 = arg3;
3260
- deferred0_1 = arg4;
3261
- const ret = arg1.filename(arg2, getStringFromWasm0(arg3, arg4));
3262
- const ptr2 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3263
- const len2 = WASM_VECTOR_LEN;
3264
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len2, true);
3265
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr2, true);
3266
- } finally {
3267
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3268
- }
3269
- };
3270
- imports.wbg.__wbg_errstr_bb38008691932700 = function(arg0, arg1, arg2) {
3271
- const ret = arg1.errstr(arg2);
3272
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3273
- const len1 = WASM_VECTOR_LEN;
3274
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3275
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3276
- };
3277
- imports.wbg.__wbg_errmsg_89bcbfbe76b14cf4 = function(arg0, arg1, arg2) {
3278
- const ret = arg1.errmsg(arg2);
3279
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3280
- const len1 = WASM_VECTOR_LEN;
3281
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3282
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3283
- };
3284
- imports.wbg.__wbg_extendederrcode_2b31e0b528da9bbb = function(arg0, arg1) {
3285
- const ret = arg0.extended_errcode(arg1);
3286
- return ret;
3287
- };
3288
- imports.wbg.__wbg_valuedup_b0df8ddba19f1b98 = function(arg0, arg1) {
3289
- const ret = arg0.value_dup(arg1 >>> 0);
3290
- return ret;
3291
- };
3292
- imports.wbg.__wbg_valueblob_3f74b376b132f8b5 = function(arg0, arg1) {
3293
- const ret = arg0.value_blob(arg1 >>> 0);
3294
- return ret;
3295
- };
3296
- imports.wbg.__wbg_valuebytes_4694dcd27c345742 = function(arg0, arg1) {
3297
- const ret = arg0.value_bytes(arg1 >>> 0);
3298
- return ret;
3299
- };
3300
- imports.wbg.__wbg_valuefree_bb58ed981c1df68f = function(arg0, arg1) {
3301
- arg0.value_free(arg1 >>> 0);
3302
- };
3303
- imports.wbg.__wbg_valueint_69cbd5211d849273 = function(arg0, arg1) {
3304
- const ret = arg0.value_int(arg1 >>> 0);
3305
- return ret;
3306
- };
3307
- imports.wbg.__wbg_valueint64_64bd43aa58b87911 = function(arg0, arg1) {
3308
- const ret = arg0.value_int64(arg1 >>> 0);
3309
- return ret;
3310
- };
3311
- imports.wbg.__wbg_valuetext_92c3345d82a9ca0c = function(arg0, arg1, arg2) {
3312
- const ret = arg1.value_text(arg2 >>> 0);
3313
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3314
- const len1 = WASM_VECTOR_LEN;
3315
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3316
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3317
- };
3318
- imports.wbg.__wbg_valuetype_cfed2bfc3d2b9ffe = function(arg0, arg1) {
3319
- const ret = arg0.value_type(arg1 >>> 0);
3320
- return ret;
3321
- };
3322
- imports.wbg.__wbg_open_d821a8bd5c12df12 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3323
- const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 === 0 ? undefined : arg4);
3324
- return ret;
3325
- }, arguments) };
3326
- imports.wbg.__wbg_exec_06c0a88959122598 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3327
- arg0.exec(arg1, getStringFromWasm0(arg2, arg3));
3328
- }, arguments) };
3329
- imports.wbg.__wbg_columnname_f60d10fff22a7705 = function(arg0, arg1, arg2, arg3) {
3330
- const ret = arg1.column_name(arg2, arg3);
3331
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3332
- const len1 = WASM_VECTOR_LEN;
3333
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3334
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3335
- };
3336
- imports.wbg.__wbg_registerdieselsqlfunctions_af501c8fa4b13f74 = function() { return handleError(function (arg0, arg1) {
3337
- arg0.register_diesel_sql_functions(arg1);
3338
- }, arguments) };
3339
- imports.wbg.__wbg_allocCString_42f27a0af479f779 = function(arg0, arg1, arg2) {
3340
- let deferred0_0;
3341
- let deferred0_1;
3342
- try {
3343
- deferred0_0 = arg1;
3344
- deferred0_1 = arg2;
3345
- const ret = arg0.allocCString(getStringFromWasm0(arg1, arg2));
3207
+ imports.wbg.__wbg_close_59511bda900d85a8 = function() { return handleError(function (arg0) {
3208
+ arg0.close();
3209
+ }, arguments) };
3210
+ imports.wbg.__wbg_close_65cb23eb0316f916 = function() { return handleError(function (arg0) {
3211
+ arg0.close();
3212
+ }, arguments) };
3213
+ imports.wbg.__wbg_columncount_328a9b2639ca5c51 = function(arg0, arg1) {
3214
+ const ret = arg0.column_count(arg1);
3346
3215
  return ret;
3347
- } finally {
3348
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3349
- }
3350
- };
3351
- imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
3352
- const ret = arg0 == arg1;
3353
- return ret;
3354
- };
3355
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
3356
- const v = arg0;
3357
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
3358
- return ret;
3359
- };
3360
- imports.wbg.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
3361
- const ret = String(arg1);
3362
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3363
- const len1 = WASM_VECTOR_LEN;
3364
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3365
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3366
- };
3367
- imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
3368
- const ret = arg0[arg1];
3369
- return ret;
3370
- };
3371
- imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
3372
- arg0[arg1] = arg2;
3373
- };
3374
- imports.wbg.__wbg_fetch_9b133f5ec268a7b8 = typeof fetch == 'function' ? fetch : notDefined('fetch');
3375
- imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
3376
- const ret = arg0.queueMicrotask;
3377
- return ret;
3378
- };
3379
- imports.wbg.__wbindgen_is_function = function(arg0) {
3380
- const ret = typeof(arg0) === 'function';
3381
- return ret;
3382
- };
3383
- imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
3384
- imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
3385
- const ret = arg0.crypto;
3386
- return ret;
3387
- };
3388
- imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) {
3389
- const ret = arg0.process;
3390
- return ret;
3391
- };
3392
- imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) {
3393
- const ret = arg0.versions;
3394
- return ret;
3395
- };
3396
- imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
3397
- const ret = arg0.node;
3398
- return ret;
3399
- };
3400
- imports.wbg.__wbindgen_is_string = function(arg0) {
3401
- const ret = typeof(arg0) === 'string';
3402
- return ret;
3403
- };
3404
- imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
3405
- const ret = module.require;
3406
- return ret;
3407
- }, arguments) };
3408
- imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
3409
- const ret = arg0.msCrypto;
3410
- return ret;
3411
- };
3412
- imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
3413
- arg0.getRandomValues(arg1);
3414
- }, arguments) };
3415
- imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
3416
- arg0.randomFillSync(arg1);
3417
- }, arguments) };
3418
- imports.wbg.__wbg_debug_69675dd374e2c249 = typeof console.debug == 'function' ? console.debug : notDefined('console.debug');
3419
- imports.wbg.__wbg_debug_a0b6c2c5ac9a4bfd = typeof console.debug == 'function' ? console.debug : notDefined('console.debug');
3420
- imports.wbg.__wbg_error_53abcd6a461f73d8 = typeof console.error == 'function' ? console.error : notDefined('console.error');
3421
- imports.wbg.__wbg_error_4d17c5bb1ca90c94 = typeof console.error == 'function' ? console.error : notDefined('console.error');
3422
- imports.wbg.__wbg_info_f073b719c8035bbf = typeof console.info == 'function' ? console.info : notDefined('console.info');
3423
- imports.wbg.__wbg_info_1c7fba7da21072d1 = typeof console.info == 'function' ? console.info : notDefined('console.info');
3424
- imports.wbg.__wbg_warn_41503a1c2194de89 = typeof console.warn == 'function' ? console.warn : notDefined('console.warn');
3425
- imports.wbg.__wbg_warn_2e2787d40aad9a81 = typeof console.warn == 'function' ? console.warn : notDefined('console.warn');
3426
- imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) {
3427
- const ret = arg0.fetch(arg1);
3428
- return ret;
3429
- };
3430
- imports.wbg.__wbg_close_cfd08d9cf9f36856 = function() { return handleError(function (arg0) {
3431
- arg0.close();
3432
- }, arguments) };
3433
- imports.wbg.__wbg_enqueue_e693a6fb4f3261c1 = function() { return handleError(function (arg0, arg1) {
3434
- arg0.enqueue(arg1);
3435
- }, arguments) };
3436
- imports.wbg.__wbg_instanceof_Response_3c0e210a57ff751d = function(arg0) {
3437
- let result;
3438
- try {
3439
- result = arg0 instanceof Response;
3440
- } catch (_) {
3441
- result = false;
3442
- }
3443
- const ret = result;
3444
- return ret;
3445
- };
3446
- imports.wbg.__wbg_url_58af972663531d16 = function(arg0, arg1) {
3447
- const ret = arg1.url;
3448
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3449
- const len1 = WASM_VECTOR_LEN;
3450
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3451
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3452
- };
3453
- imports.wbg.__wbg_status_5f4e900d22140a18 = function(arg0) {
3454
- const ret = arg0.status;
3455
- return ret;
3456
- };
3457
- imports.wbg.__wbg_headers_1b9bf90c73fae600 = function(arg0) {
3458
- const ret = arg0.headers;
3459
- return ret;
3460
- };
3461
- imports.wbg.__wbg_arrayBuffer_144729e09879650e = function() { return handleError(function (arg0) {
3462
- const ret = arg0.arrayBuffer();
3463
- return ret;
3464
- }, arguments) };
3465
- imports.wbg.__wbg_byobRequest_86ac467c94924d3c = function(arg0) {
3466
- const ret = arg0.byobRequest;
3467
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3468
- };
3469
- imports.wbg.__wbg_close_7cda9dd901230214 = function() { return handleError(function (arg0) {
3470
- arg0.close();
3471
- }, arguments) };
3472
- imports.wbg.__wbg_signal_9acfcec9e7dffc22 = function(arg0) {
3473
- const ret = arg0.signal;
3474
- return ret;
3475
- };
3476
- imports.wbg.__wbg_new_75169ae5a9683c55 = function() { return handleError(function () {
3477
- const ret = new AbortController();
3478
- return ret;
3479
- }, arguments) };
3480
- imports.wbg.__wbg_abort_c57daab47a6c1215 = function(arg0) {
3481
- arg0.abort();
3482
- };
3483
- imports.wbg.__wbg_view_de0e81c5c00d2129 = function(arg0) {
3484
- const ret = arg0.view;
3485
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3486
- };
3487
- imports.wbg.__wbg_respond_ffb6928cd9b79c32 = function() { return handleError(function (arg0, arg1) {
3488
- arg0.respond(arg1 >>> 0);
3489
- }, arguments) };
3490
- imports.wbg.__wbg_newwithstrandinit_4b92c89af0a8e383 = function() { return handleError(function (arg0, arg1, arg2) {
3491
- const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
3492
- return ret;
3493
- }, arguments) };
3494
- imports.wbg.__wbg_setbody_aa8b691bec428bf4 = function(arg0, arg1) {
3495
- arg0.body = arg1;
3496
- };
3497
- imports.wbg.__wbg_setcredentials_a4e661320cdb9738 = function(arg0, arg1) {
3498
- arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
3499
- };
3500
- imports.wbg.__wbg_setheaders_f5205d36e423a544 = function(arg0, arg1) {
3501
- arg0.headers = arg1;
3502
- };
3503
- imports.wbg.__wbg_setmethod_ce2da76000b02f6a = function(arg0, arg1, arg2) {
3504
- arg0.method = getStringFromWasm0(arg1, arg2);
3505
- };
3506
- imports.wbg.__wbg_setmode_4919fd636102c586 = function(arg0, arg1) {
3507
- arg0.mode = __wbindgen_enum_RequestMode[arg1];
3508
- };
3509
- imports.wbg.__wbg_setsignal_812ccb8269a7fd90 = function(arg0, arg1) {
3510
- arg0.signal = arg1;
3511
- };
3512
- imports.wbg.__wbg_new_a9ae04a5200606a5 = function() { return handleError(function () {
3513
- const ret = new Headers();
3514
- return ret;
3515
- }, arguments) };
3516
- imports.wbg.__wbg_append_8b3e7f74a47ea7d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3517
- arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
3518
- }, arguments) };
3519
- imports.wbg.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) {
3520
- const ret = arg0[arg1 >>> 0];
3521
- return ret;
3522
- };
3523
- imports.wbg.__wbg_length_f217bbbf7e8e4df4 = function(arg0) {
3524
- const ret = arg0.length;
3525
- return ret;
3526
- };
3527
- imports.wbg.__wbg_new_034f913e7636e987 = function() {
3528
- const ret = new Array();
3529
- return ret;
3530
- };
3531
- imports.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43 = function(arg0, arg1) {
3532
- const ret = new Function(getStringFromWasm0(arg0, arg1));
3533
- return ret;
3534
- };
3535
- imports.wbg.__wbg_new_7a87a0376e40533b = function() {
3536
- const ret = new Map();
3537
- return ret;
3538
- };
3539
- imports.wbg.__wbg_next_13b477da1eaa3897 = function(arg0) {
3540
- const ret = arg0.next;
3541
- return ret;
3542
- };
3543
- imports.wbg.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) {
3544
- const ret = arg0.next();
3545
- return ret;
3546
- }, arguments) };
3547
- imports.wbg.__wbg_done_983b5ffcaec8c583 = function(arg0) {
3548
- const ret = arg0.done;
3549
- return ret;
3550
- };
3551
- imports.wbg.__wbg_value_2ab8a198c834c26a = function(arg0) {
3552
- const ret = arg0.value;
3553
- return ret;
3554
- };
3555
- imports.wbg.__wbg_iterator_695d699a44d6234c = function() {
3556
- const ret = Symbol.iterator;
3557
- return ret;
3558
- };
3559
- imports.wbg.__wbg_get_ef828680c64da212 = function() { return handleError(function (arg0, arg1) {
3560
- const ret = Reflect.get(arg0, arg1);
3561
- return ret;
3562
- }, arguments) };
3563
- imports.wbg.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) {
3564
- const ret = arg0.call(arg1);
3565
- return ret;
3566
- }, arguments) };
3567
- imports.wbg.__wbg_new_e69b5f66fda8f13c = function() {
3568
- const ret = new Object();
3569
- return ret;
3570
- };
3571
- imports.wbg.__wbg_self_bf91bf94d9e04084 = function() { return handleError(function () {
3572
- const ret = self.self;
3573
- return ret;
3574
- }, arguments) };
3575
- imports.wbg.__wbg_window_52dd9f07d03fd5f8 = function() { return handleError(function () {
3576
- const ret = window.window;
3577
- return ret;
3578
- }, arguments) };
3579
- imports.wbg.__wbg_globalThis_05c129bf37fcf1be = function() { return handleError(function () {
3580
- const ret = globalThis.globalThis;
3581
- return ret;
3582
- }, arguments) };
3583
- imports.wbg.__wbg_global_3eca19bb09e9c484 = function() { return handleError(function () {
3584
- const ret = global.global;
3585
- return ret;
3586
- }, arguments) };
3587
- imports.wbg.__wbg_set_425e70f7c64ac962 = function(arg0, arg1, arg2) {
3588
- arg0[arg1 >>> 0] = arg2;
3589
- };
3590
- imports.wbg.__wbg_push_36cf4d81d7da33d1 = function(arg0, arg1) {
3591
- const ret = arg0.push(arg1);
3592
- return ret;
3593
- };
3594
- imports.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function(arg0) {
3595
- let result;
3596
- try {
3597
- result = arg0 instanceof ArrayBuffer;
3598
- } catch (_) {
3599
- result = false;
3600
- }
3601
- const ret = result;
3602
- return ret;
3603
- };
3604
- imports.wbg.__wbg_new_70a2f23d1565c04c = function(arg0, arg1) {
3605
- const ret = new Error(getStringFromWasm0(arg0, arg1));
3606
- return ret;
3607
- };
3608
- imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
3609
- const ret = arg0.call(arg1, arg2);
3610
- return ret;
3611
- }, arguments) };
3612
- imports.wbg.__wbg_set_277a63e77c89279f = function(arg0, arg1, arg2) {
3613
- const ret = arg0.set(arg1, arg2);
3614
- return ret;
3615
- };
3616
- imports.wbg.__wbg_isSafeInteger_b9dff570f01a9100 = function(arg0) {
3617
- const ret = Number.isSafeInteger(arg0);
3618
- return ret;
3619
- };
3620
- imports.wbg.__wbg_now_70af4fe37a792251 = function() {
3621
- const ret = Date.now();
3622
- return ret;
3623
- };
3624
- imports.wbg.__wbg_create_70ef5302cb22a5c4 = function(arg0) {
3625
- const ret = Object.create(arg0);
3626
- return ret;
3627
- };
3628
- imports.wbg.__wbg_entries_c02034de337d3ee2 = function(arg0) {
3629
- const ret = Object.entries(arg0);
3630
- return ret;
3631
- };
3632
- imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
3633
- try {
3634
- var state0 = {a: arg0, b: arg1};
3635
- var cb0 = (arg0, arg1) => {
3636
- const a = state0.a;
3637
- state0.a = 0;
3638
- try {
3639
- return __wbg_adapter_567(a, state0.b, arg0, arg1);
3640
- } finally {
3641
- state0.a = a;
3642
- }
3643
- };
3644
- const ret = new Promise(cb0);
3216
+ };
3217
+ imports.wbg.__wbg_columnname_5421a5f0dfa3eff5 = function(arg0, arg1, arg2, arg3) {
3218
+ const ret = arg1.column_name(arg2, arg3);
3219
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3220
+ const len1 = WASM_VECTOR_LEN;
3221
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3222
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3223
+ };
3224
+ imports.wbg.__wbg_columnvalue_88aa9511cf9c6770 = function(arg0, arg1, arg2) {
3225
+ const ret = arg0.column_value(arg1, arg2);
3645
3226
  return ret;
3646
- } finally {
3647
- state0.a = state0.b = 0;
3648
- }
3649
- };
3650
- imports.wbg.__wbg_resolve_0aad7c1484731c99 = function(arg0) {
3651
- const ret = Promise.resolve(arg0);
3652
- return ret;
3653
- };
3654
- imports.wbg.__wbg_then_748f75edfb032440 = function(arg0, arg1) {
3655
- const ret = arg0.then(arg1);
3656
- return ret;
3657
- };
3658
- imports.wbg.__wbg_then_4866a7d9f55d8f3e = function(arg0, arg1, arg2) {
3659
- const ret = arg0.then(arg1, arg2);
3660
- return ret;
3661
- };
3662
- imports.wbg.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
3663
- const ret = arg0.buffer;
3664
- return ret;
3665
- };
3666
- imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) {
3667
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
3668
- return ret;
3669
- };
3670
- imports.wbg.__wbg_new_fec2611eb9180f95 = function(arg0) {
3671
- const ret = new Uint8Array(arg0);
3672
- return ret;
3673
- };
3674
- imports.wbg.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
3675
- arg0.set(arg1, arg2 >>> 0);
3676
- };
3677
- imports.wbg.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
3678
- const ret = arg0.length;
3679
- return ret;
3680
- };
3681
- imports.wbg.__wbg_instanceof_Uint8Array_df0761410414ef36 = function(arg0) {
3682
- let result;
3683
- try {
3684
- result = arg0 instanceof Uint8Array;
3685
- } catch (_) {
3686
- result = false;
3687
- }
3688
- const ret = result;
3689
- return ret;
3690
- };
3691
- imports.wbg.__wbg_newwithlength_76462a666eca145f = function(arg0) {
3692
- const ret = new Uint8Array(arg0 >>> 0);
3693
- return ret;
3694
- };
3695
- imports.wbg.__wbg_buffer_95102df5554646dc = function(arg0) {
3696
- const ret = arg0.buffer;
3697
- return ret;
3698
- };
3699
- imports.wbg.__wbg_subarray_975a06f9dbd16995 = function(arg0, arg1, arg2) {
3700
- const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3701
- return ret;
3702
- };
3703
- imports.wbg.__wbg_byteLength_5d623ba3d92a3a9c = function(arg0) {
3704
- const ret = arg0.byteLength;
3705
- return ret;
3706
- };
3707
- imports.wbg.__wbg_byteOffset_ec0928143c619cd7 = function(arg0) {
3708
- const ret = arg0.byteOffset;
3709
- return ret;
3710
- };
3711
- imports.wbg.__wbg_has_bd717f25f195f23d = function() { return handleError(function (arg0, arg1) {
3712
- const ret = Reflect.has(arg0, arg1);
3713
- return ret;
3714
- }, arguments) };
3715
- imports.wbg.__wbg_set_e864d25d9b399c9f = function() { return handleError(function (arg0, arg1, arg2) {
3716
- const ret = Reflect.set(arg0, arg1, arg2);
3717
- return ret;
3718
- }, arguments) };
3719
- imports.wbg.__wbg_new_fddd2773b9888ac9 = function() { return handleError(function (arg0) {
3720
- const ret = new WebAssembly.Memory(arg0);
3721
- return ret;
3722
- }, arguments) };
3723
- imports.wbg.__wbg_stringify_eead5648c09faaf8 = function() { return handleError(function (arg0) {
3724
- const ret = JSON.stringify(arg0);
3725
- return ret;
3726
- }, arguments) };
3727
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
3728
- const ret = debugString(arg1);
3729
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3730
- const len1 = WASM_VECTOR_LEN;
3731
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3732
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3733
- };
3734
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
3735
- throw new Error(getStringFromWasm0(arg0, arg1));
3736
- };
3737
- imports.wbg.__wbindgen_memory = function() {
3738
- const ret = wasm.memory;
3739
- return ret;
3740
- };
3741
- imports.wbg.__wbindgen_closure_wrapper7541 = function(arg0, arg1, arg2) {
3742
- const ret = makeMutClosure(arg0, arg1, 1813, __wbg_adapter_46);
3743
- return ret;
3744
- };
3745
- imports.wbg.__wbindgen_closure_wrapper10067 = function(arg0, arg1, arg2) {
3746
- const ret = makeMutClosure(arg0, arg1, 2328, __wbg_adapter_49);
3747
- return ret;
3748
- };
3749
- imports.wbg.__wbindgen_init_externref_table = function() {
3750
- const table = wasm.__wbindgen_export_2;
3751
- const offset = table.grow(4);
3752
- table.set(0, undefined);
3753
- table.set(offset + 0, undefined);
3754
- table.set(offset + 1, null);
3755
- table.set(offset + 2, true);
3756
- table.set(offset + 3, false);
3757
- ;
3758
- };
3759
-
3760
- return imports;
3227
+ };
3228
+ imports.wbg.__wbg_consent_unwrap = function(arg0) {
3229
+ const ret = Consent.__unwrap(arg0);
3230
+ return ret;
3231
+ };
3232
+ imports.wbg.__wbg_conversation_new = function(arg0) {
3233
+ const ret = Conversation.__wrap(arg0);
3234
+ return ret;
3235
+ };
3236
+ imports.wbg.__wbg_create_861381d799b454bc = function(arg0) {
3237
+ const ret = Object.create(arg0);
3238
+ return ret;
3239
+ };
3240
+ imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
3241
+ const ret = arg0.crypto;
3242
+ return ret;
3243
+ };
3244
+ imports.wbg.__wbg_dbhandle_4a844bc7b495c9bd = function(arg0, arg1) {
3245
+ const ret = arg0.db_handle(arg1);
3246
+ return ret;
3247
+ };
3248
+ imports.wbg.__wbg_dealloc_83aa46cc9ca6df71 = function(arg0, arg1) {
3249
+ arg0.dealloc(arg1 >>> 0);
3250
+ };
3251
+ imports.wbg.__wbg_debug_156ca727dbc3150f = function(arg0) {
3252
+ console.debug(arg0);
3253
+ };
3254
+ imports.wbg.__wbg_debug_19114f11037e4658 = function(arg0, arg1, arg2, arg3) {
3255
+ console.debug(arg0, arg1, arg2, arg3);
3256
+ };
3257
+ imports.wbg.__wbg_done_f22c1561fa919baa = function(arg0) {
3258
+ const ret = arg0.done;
3259
+ return ret;
3260
+ };
3261
+ imports.wbg.__wbg_enqueue_3997a55771b5212a = function() { return handleError(function (arg0, arg1) {
3262
+ arg0.enqueue(arg1);
3263
+ }, arguments) };
3264
+ imports.wbg.__wbg_entries_4f2bb9b0d701c0f6 = function(arg0) {
3265
+ const ret = Object.entries(arg0);
3266
+ return ret;
3267
+ };
3268
+ imports.wbg.__wbg_errmsg_79ea90bf7680bb35 = function(arg0, arg1, arg2) {
3269
+ const ret = arg1.errmsg(arg2);
3270
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3271
+ const len1 = WASM_VECTOR_LEN;
3272
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3273
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3274
+ };
3275
+ imports.wbg.__wbg_error_483d659117b6f3f6 = function(arg0, arg1, arg2, arg3) {
3276
+ console.error(arg0, arg1, arg2, arg3);
3277
+ };
3278
+ imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
3279
+ let deferred0_0;
3280
+ let deferred0_1;
3281
+ try {
3282
+ deferred0_0 = arg0;
3283
+ deferred0_1 = arg1;
3284
+ console.error(getStringFromWasm0(arg0, arg1));
3285
+ } finally {
3286
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3287
+ }
3288
+ };
3289
+ imports.wbg.__wbg_error_fab41a42d22bf2bc = function(arg0) {
3290
+ console.error(arg0);
3291
+ };
3292
+ imports.wbg.__wbg_errstr_503ebc5fc9ad1b72 = function(arg0, arg1, arg2) {
3293
+ const ret = arg1.errstr(arg2);
3294
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3295
+ const len1 = WASM_VECTOR_LEN;
3296
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3297
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3298
+ };
3299
+ imports.wbg.__wbg_exec_fd553de4a4a4f848 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3300
+ arg0.exec(arg1, getStringFromWasm0(arg2, arg3));
3301
+ }, arguments) };
3302
+ imports.wbg.__wbg_extendederrcode_0835da64030ca814 = function(arg0, arg1) {
3303
+ const ret = arg0.extended_errcode(arg1);
3304
+ return ret;
3305
+ };
3306
+ imports.wbg.__wbg_fetch_229368eecee9d217 = function(arg0, arg1) {
3307
+ const ret = arg0.fetch(arg1);
3308
+ return ret;
3309
+ };
3310
+ imports.wbg.__wbg_fetch_b335d17f45a8b5a1 = function(arg0) {
3311
+ const ret = fetch(arg0);
3312
+ return ret;
3313
+ };
3314
+ imports.wbg.__wbg_filename_0235553cd4665109 = function(arg0, arg1, arg2, arg3, arg4) {
3315
+ let deferred0_0;
3316
+ let deferred0_1;
3317
+ try {
3318
+ deferred0_0 = arg3;
3319
+ deferred0_1 = arg4;
3320
+ const ret = arg1.filename(arg2, getStringFromWasm0(arg3, arg4));
3321
+ const ptr2 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3322
+ const len2 = WASM_VECTOR_LEN;
3323
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len2, true);
3324
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr2, true);
3325
+ } finally {
3326
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3327
+ }
3328
+ };
3329
+ imports.wbg.__wbg_finalize_429654d82c434d47 = function() { return handleError(function (arg0, arg1) {
3330
+ arg0.finalize(arg1);
3331
+ }, arguments) };
3332
+ imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
3333
+ arg0.getRandomValues(arg1);
3334
+ }, arguments) };
3335
+ imports.wbg.__wbg_get_9aa3dff3f0266054 = function(arg0, arg1) {
3336
+ const ret = arg0[arg1 >>> 0];
3337
+ return ret;
3338
+ };
3339
+ imports.wbg.__wbg_get_bbccf8970793c087 = function() { return handleError(function (arg0, arg1) {
3340
+ const ret = Reflect.get(arg0, arg1);
3341
+ return ret;
3342
+ }, arguments) };
3343
+ imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
3344
+ const ret = arg0[arg1];
3345
+ return ret;
3346
+ };
3347
+ imports.wbg.__wbg_groupmetadata_new = function(arg0) {
3348
+ const ret = GroupMetadata.__wrap(arg0);
3349
+ return ret;
3350
+ };
3351
+ imports.wbg.__wbg_has_94c2fc1d261bbfe9 = function() { return handleError(function (arg0, arg1) {
3352
+ const ret = Reflect.has(arg0, arg1);
3353
+ return ret;
3354
+ }, arguments) };
3355
+ imports.wbg.__wbg_headers_24e3e19fe3f187c0 = function(arg0) {
3356
+ const ret = arg0.headers;
3357
+ return ret;
3358
+ };
3359
+ imports.wbg.__wbg_heap8u_253de697ab096b05 = function(arg0) {
3360
+ const ret = arg0.heap8u();
3361
+ return ret;
3362
+ };
3363
+ imports.wbg.__wbg_impl_0cd08b475fc5f858 = function(arg0, arg1) {
3364
+ const ret = arg0.impl(arg1 >>> 0);
3365
+ return ret;
3366
+ };
3367
+ imports.wbg.__wbg_inboxstate_new = function(arg0) {
3368
+ const ret = InboxState.__wrap(arg0);
3369
+ return ret;
3370
+ };
3371
+ imports.wbg.__wbg_info_18e75e6ce8a36a90 = function(arg0, arg1, arg2, arg3) {
3372
+ console.info(arg0, arg1, arg2, arg3);
3373
+ };
3374
+ imports.wbg.__wbg_info_c3044c86ae29faab = function(arg0) {
3375
+ console.info(arg0);
3376
+ };
3377
+ imports.wbg.__wbg_initmodule_694b4b8a6236ad25 = function(arg0) {
3378
+ const ret = SQLite.init_module(arg0);
3379
+ return ret;
3380
+ };
3381
+ imports.wbg.__wbg_installation_new = function(arg0) {
3382
+ const ret = Installation.__wrap(arg0);
3383
+ return ret;
3384
+ };
3385
+ imports.wbg.__wbg_installation_unwrap = function(arg0) {
3386
+ const ret = Installation.__unwrap(arg0);
3387
+ return ret;
3388
+ };
3389
+ imports.wbg.__wbg_instanceof_ArrayBuffer_670ddde44cdb2602 = function(arg0) {
3390
+ let result;
3391
+ try {
3392
+ result = arg0 instanceof ArrayBuffer;
3393
+ } catch (_) {
3394
+ result = false;
3395
+ }
3396
+ const ret = result;
3397
+ return ret;
3398
+ };
3399
+ imports.wbg.__wbg_instanceof_Response_d3453657e10c4300 = function(arg0) {
3400
+ let result;
3401
+ try {
3402
+ result = arg0 instanceof Response;
3403
+ } catch (_) {
3404
+ result = false;
3405
+ }
3406
+ const ret = result;
3407
+ return ret;
3408
+ };
3409
+ imports.wbg.__wbg_instanceof_Uint8Array_28af5bc19d6acad8 = function(arg0) {
3410
+ let result;
3411
+ try {
3412
+ result = arg0 instanceof Uint8Array;
3413
+ } catch (_) {
3414
+ result = false;
3415
+ }
3416
+ const ret = result;
3417
+ return ret;
3418
+ };
3419
+ imports.wbg.__wbg_instanceof_WorkerGlobalScope_b32c94246142a6a7 = function(arg0) {
3420
+ let result;
3421
+ try {
3422
+ result = arg0 instanceof WorkerGlobalScope;
3423
+ } catch (_) {
3424
+ result = false;
3425
+ }
3426
+ const ret = result;
3427
+ return ret;
3428
+ };
3429
+ imports.wbg.__wbg_isSafeInteger_12f5549b2fca23f4 = function(arg0) {
3430
+ const ret = Number.isSafeInteger(arg0);
3431
+ return ret;
3432
+ };
3433
+ imports.wbg.__wbg_iterator_23604bb983791576 = function() {
3434
+ const ret = Symbol.iterator;
3435
+ return ret;
3436
+ };
3437
+ imports.wbg.__wbg_length_65d1cd11729ced11 = function(arg0) {
3438
+ const ret = arg0.length;
3439
+ return ret;
3440
+ };
3441
+ imports.wbg.__wbg_length_d65cf0786bfc5739 = function(arg0) {
3442
+ const ret = arg0.length;
3443
+ return ret;
3444
+ };
3445
+ imports.wbg.__wbg_mark_05056c522bddc362 = function() { return handleError(function (arg0, arg1, arg2) {
3446
+ arg0.mark(getStringFromWasm0(arg1, arg2));
3447
+ }, arguments) };
3448
+ imports.wbg.__wbg_mark_24a1a597f4f00679 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3449
+ arg0.mark(getStringFromWasm0(arg1, arg2), arg3);
3450
+ }, arguments) };
3451
+ imports.wbg.__wbg_measure_0b7379f5cfacac6d = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3452
+ arg0.measure(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6));
3453
+ }, arguments) };
3454
+ imports.wbg.__wbg_measure_7728846525e2cced = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3455
+ arg0.measure(getStringFromWasm0(arg1, arg2), arg3);
3456
+ }, arguments) };
3457
+ imports.wbg.__wbg_message_new = function(arg0) {
3458
+ const ret = Message.__wrap(arg0);
3459
+ return ret;
3460
+ };
3461
+ imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
3462
+ const ret = arg0.msCrypto;
3463
+ return ret;
3464
+ };
3465
+ imports.wbg.__wbg_new_254fa9eac11932ae = function() {
3466
+ const ret = new Array();
3467
+ return ret;
3468
+ };
3469
+ imports.wbg.__wbg_new_35d748855c4620b9 = function() { return handleError(function () {
3470
+ const ret = new Headers();
3471
+ return ret;
3472
+ }, arguments) };
3473
+ imports.wbg.__wbg_new_3c34f3fe365c1436 = function(arg0) {
3474
+ const ret = new SQLite(arg0);
3475
+ return ret;
3476
+ };
3477
+ imports.wbg.__wbg_new_3d446df9155128ef = function(arg0, arg1) {
3478
+ try {
3479
+ var state0 = {a: arg0, b: arg1};
3480
+ var cb0 = (arg0, arg1) => {
3481
+ const a = state0.a;
3482
+ state0.a = 0;
3483
+ try {
3484
+ return __wbg_adapter_575(a, state0.b, arg0, arg1);
3485
+ } finally {
3486
+ state0.a = a;
3487
+ }
3488
+ };
3489
+ const ret = new Promise(cb0);
3490
+ return ret;
3491
+ } finally {
3492
+ state0.a = state0.b = 0;
3493
+ }
3494
+ };
3495
+ imports.wbg.__wbg_new_3ff5b33b1ce712df = function(arg0) {
3496
+ const ret = new Uint8Array(arg0);
3497
+ return ret;
3498
+ };
3499
+ imports.wbg.__wbg_new_5f48f21d4be11586 = function() { return handleError(function () {
3500
+ const ret = new AbortController();
3501
+ return ret;
3502
+ }, arguments) };
3503
+ imports.wbg.__wbg_new_6799ef630abee97c = function(arg0, arg1) {
3504
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
3505
+ return ret;
3506
+ };
3507
+ imports.wbg.__wbg_new_688846f374351c92 = function() {
3508
+ const ret = new Object();
3509
+ return ret;
3510
+ };
3511
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
3512
+ const ret = new Error();
3513
+ return ret;
3514
+ };
3515
+ imports.wbg.__wbg_new_bc96c6a1c0786643 = function() {
3516
+ const ret = new Map();
3517
+ return ret;
3518
+ };
3519
+ imports.wbg.__wbg_new_e04dcd3aad5daca2 = function() { return handleError(function (arg0) {
3520
+ const ret = new WebAssembly.Memory(arg0);
3521
+ return ret;
3522
+ }, arguments) };
3523
+ imports.wbg.__wbg_newnoargs_fd9e4bf8be2bc16d = function(arg0, arg1) {
3524
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
3525
+ return ret;
3526
+ };
3527
+ imports.wbg.__wbg_newwithbyteoffsetandlength_ba35896968751d91 = function(arg0, arg1, arg2) {
3528
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
3529
+ return ret;
3530
+ };
3531
+ imports.wbg.__wbg_newwithlength_34ce8f1051e74449 = function(arg0) {
3532
+ const ret = new Uint8Array(arg0 >>> 0);
3533
+ return ret;
3534
+ };
3535
+ imports.wbg.__wbg_newwithstrandinit_a1f6583f20e4faff = function() { return handleError(function (arg0, arg1, arg2) {
3536
+ const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
3537
+ return ret;
3538
+ }, arguments) };
3539
+ imports.wbg.__wbg_next_01dd9234a5bf6d05 = function() { return handleError(function (arg0) {
3540
+ const ret = arg0.next();
3541
+ return ret;
3542
+ }, arguments) };
3543
+ imports.wbg.__wbg_next_137428deb98342b0 = function(arg0) {
3544
+ const ret = arg0.next;
3545
+ return ret;
3546
+ };
3547
+ imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
3548
+ const ret = arg0.node;
3549
+ return ret;
3550
+ };
3551
+ imports.wbg.__wbg_now_64d0bb151e5d3889 = function() {
3552
+ const ret = Date.now();
3553
+ return ret;
3554
+ };
3555
+ imports.wbg.__wbg_open_aba34ed1b3b52dc4 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3556
+ const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 === 0x100000001 ? undefined : arg3);
3557
+ return ret;
3558
+ }, arguments) };
3559
+ imports.wbg.__wbg_peekPtr_6a7d4078b4e26f07 = function(arg0, arg1) {
3560
+ const ret = arg0.peekPtr(arg1);
3561
+ return ret;
3562
+ };
3563
+ imports.wbg.__wbg_performance_121b9855d716e029 = function() {
3564
+ const ret = globalThis.performance;
3565
+ return ret;
3566
+ };
3567
+ imports.wbg.__wbg_pointer_310208402223b1bb = function(arg0) {
3568
+ const ret = arg0.pointer;
3569
+ return ret;
3570
+ };
3571
+ imports.wbg.__wbg_preparev3_9322dce970cabecf = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3572
+ const ret = arg0.prepare_v3(arg1, arg2 >>> 0, arg3, arg4 >>> 0, arg5, arg6);
3573
+ return ret;
3574
+ };
3575
+ imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
3576
+ const ret = arg0.process;
3577
+ return ret;
3578
+ };
3579
+ imports.wbg.__wbg_pstack_66a1730e634b3fee = function(arg0) {
3580
+ const ret = arg0.pstack;
3581
+ return ret;
3582
+ };
3583
+ imports.wbg.__wbg_push_6edad0df4b546b2c = function(arg0, arg1) {
3584
+ const ret = arg0.push(arg1);
3585
+ return ret;
3586
+ };
3587
+ imports.wbg.__wbg_queueMicrotask_2181040e064c0dc8 = function(arg0) {
3588
+ queueMicrotask(arg0);
3589
+ };
3590
+ imports.wbg.__wbg_queueMicrotask_ef9ac43769cbcc4f = function(arg0) {
3591
+ const ret = arg0.queueMicrotask;
3592
+ return ret;
3593
+ };
3594
+ imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
3595
+ arg0.randomFillSync(arg1);
3596
+ }, arguments) };
3597
+ imports.wbg.__wbg_registerdieselsqlfunctions_f374322dbb736b21 = function() { return handleError(function (arg0, arg1) {
3598
+ arg0.register_diesel_sql_functions(arg1);
3599
+ }, arguments) };
3600
+ imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
3601
+ const ret = module.require;
3602
+ return ret;
3603
+ }, arguments) };
3604
+ imports.wbg.__wbg_reset_a6165093a081b112 = function(arg0, arg1) {
3605
+ const ret = arg0.reset(arg1);
3606
+ return ret;
3607
+ };
3608
+ imports.wbg.__wbg_resolve_0bf7c44d641804f9 = function(arg0) {
3609
+ const ret = Promise.resolve(arg0);
3610
+ return ret;
3611
+ };
3612
+ imports.wbg.__wbg_respond_88fe7338392675f2 = function() { return handleError(function (arg0, arg1) {
3613
+ arg0.respond(arg1 >>> 0);
3614
+ }, arguments) };
3615
+ imports.wbg.__wbg_restore_43c154983844b05b = function(arg0, arg1) {
3616
+ arg0.restore(arg1);
3617
+ };
3618
+ imports.wbg.__wbg_setTimeout_e41dd56300ff86eb = function() { return handleError(function (arg0, arg1, arg2) {
3619
+ const ret = arg0.setTimeout(arg1, arg2);
3620
+ return ret;
3621
+ }, arguments) };
3622
+ imports.wbg.__wbg_set_1d80752d0d5f0b21 = function(arg0, arg1, arg2) {
3623
+ arg0[arg1 >>> 0] = arg2;
3624
+ };
3625
+ imports.wbg.__wbg_set_23d69db4e5c66a6e = function(arg0, arg1, arg2) {
3626
+ arg0.set(arg1, arg2 >>> 0);
3627
+ };
3628
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
3629
+ arg0[arg1] = arg2;
3630
+ };
3631
+ imports.wbg.__wbg_set_4e647025551483bd = function() { return handleError(function (arg0, arg1, arg2) {
3632
+ const ret = Reflect.set(arg0, arg1, arg2);
3633
+ return ret;
3634
+ }, arguments) };
3635
+ imports.wbg.__wbg_set_76818dc3c59a63d5 = function(arg0, arg1, arg2) {
3636
+ const ret = arg0.set(arg1, arg2);
3637
+ return ret;
3638
+ };
3639
+ imports.wbg.__wbg_setbody_64920df008e48adc = function(arg0, arg1) {
3640
+ arg0.body = arg1;
3641
+ };
3642
+ imports.wbg.__wbg_setcredentials_cfc15e48e3a3a535 = function(arg0, arg1) {
3643
+ arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
3644
+ };
3645
+ imports.wbg.__wbg_setheaders_4c921e8e226bdfa7 = function(arg0, arg1) {
3646
+ arg0.headers = arg1;
3647
+ };
3648
+ imports.wbg.__wbg_setmethod_cfc7f688ba46a6be = function(arg0, arg1, arg2) {
3649
+ arg0.method = getStringFromWasm0(arg1, arg2);
3650
+ };
3651
+ imports.wbg.__wbg_setmode_cd03637eb7da01e0 = function(arg0, arg1) {
3652
+ arg0.mode = __wbindgen_enum_RequestMode[arg1];
3653
+ };
3654
+ imports.wbg.__wbg_setsignal_f766190d206f09e5 = function(arg0, arg1) {
3655
+ arg0.signal = arg1;
3656
+ };
3657
+ imports.wbg.__wbg_signal_1fdadeba2d04660e = function(arg0) {
3658
+ const ret = arg0.signal;
3659
+ return ret;
3660
+ };
3661
+ imports.wbg.__wbg_sqlite3_0c56434abd1dc461 = function(arg0) {
3662
+ const ret = arg0.sqlite3;
3663
+ return ret;
3664
+ };
3665
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
3666
+ const ret = arg1.stack;
3667
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3668
+ const len1 = WASM_VECTOR_LEN;
3669
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3670
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3671
+ };
3672
+ imports.wbg.__wbg_static_accessor_GLOBAL_0be7472e492ad3e3 = function() {
3673
+ const ret = typeof global === 'undefined' ? null : global;
3674
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3675
+ };
3676
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_1a6eb482d12c9bfb = function() {
3677
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
3678
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3679
+ };
3680
+ imports.wbg.__wbg_static_accessor_SELF_1dc398a895c82351 = function() {
3681
+ const ret = typeof self === 'undefined' ? null : self;
3682
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3683
+ };
3684
+ imports.wbg.__wbg_static_accessor_WINDOW_ae1c80c7eea8d64a = function() {
3685
+ const ret = typeof window === 'undefined' ? null : window;
3686
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3687
+ };
3688
+ imports.wbg.__wbg_status_317f53bc4c7638df = function(arg0) {
3689
+ const ret = arg0.status;
3690
+ return ret;
3691
+ };
3692
+ imports.wbg.__wbg_step_99a553e5d7fbed2f = function(arg0, arg1) {
3693
+ const ret = arg0.step(arg1);
3694
+ return ret;
3695
+ };
3696
+ imports.wbg.__wbg_stringify_f4f701bc34ceda61 = function() { return handleError(function (arg0) {
3697
+ const ret = JSON.stringify(arg0);
3698
+ return ret;
3699
+ }, arguments) };
3700
+ imports.wbg.__wbg_subarray_46adeb9b86949d12 = function(arg0, arg1, arg2) {
3701
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3702
+ return ret;
3703
+ };
3704
+ imports.wbg.__wbg_text_dfc4cb7631d2eb34 = function() { return handleError(function (arg0) {
3705
+ const ret = arg0.text();
3706
+ return ret;
3707
+ }, arguments) };
3708
+ imports.wbg.__wbg_then_0438fad860fe38e1 = function(arg0, arg1) {
3709
+ const ret = arg0.then(arg1);
3710
+ return ret;
3711
+ };
3712
+ imports.wbg.__wbg_then_0ffafeddf0e182a4 = function(arg0, arg1, arg2) {
3713
+ const ret = arg0.then(arg1, arg2);
3714
+ return ret;
3715
+ };
3716
+ imports.wbg.__wbg_url_5327bc0a41a9b085 = function(arg0, arg1) {
3717
+ const ret = arg1.url;
3718
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3719
+ const len1 = WASM_VECTOR_LEN;
3720
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3721
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3722
+ };
3723
+ imports.wbg.__wbg_value_4c32fd138a88eee2 = function(arg0) {
3724
+ const ret = arg0.value;
3725
+ return ret;
3726
+ };
3727
+ imports.wbg.__wbg_valueblob_b7834022c19ff288 = function(arg0, arg1) {
3728
+ const ret = arg0.value_blob(arg1 >>> 0);
3729
+ return ret;
3730
+ };
3731
+ imports.wbg.__wbg_valuebytes_c6924414a4f4b6f3 = function(arg0, arg1) {
3732
+ const ret = arg0.value_bytes(arg1 >>> 0);
3733
+ return ret;
3734
+ };
3735
+ imports.wbg.__wbg_valuedup_6d367159408d8196 = function(arg0, arg1) {
3736
+ const ret = arg0.value_dup(arg1 >>> 0);
3737
+ return ret;
3738
+ };
3739
+ imports.wbg.__wbg_valuefree_3f7442e9bb21e645 = function(arg0, arg1) {
3740
+ arg0.value_free(arg1 >>> 0);
3741
+ };
3742
+ imports.wbg.__wbg_valueint64_992b66e1610bc511 = function(arg0, arg1) {
3743
+ const ret = arg0.value_int64(arg1 >>> 0);
3744
+ return ret;
3745
+ };
3746
+ imports.wbg.__wbg_valueint_4d711af866e97d8e = function(arg0, arg1) {
3747
+ const ret = arg0.value_int(arg1 >>> 0);
3748
+ return ret;
3749
+ };
3750
+ imports.wbg.__wbg_valuetext_1305a3b91ca00e84 = function(arg0, arg1, arg2) {
3751
+ const ret = arg1.value_text(arg2 >>> 0);
3752
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3753
+ const len1 = WASM_VECTOR_LEN;
3754
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3755
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3756
+ };
3757
+ imports.wbg.__wbg_valuetype_486feb6594cb75e3 = function(arg0, arg1) {
3758
+ const ret = arg0.value_type(arg1 >>> 0);
3759
+ return ret;
3760
+ };
3761
+ imports.wbg.__wbg_version_683c1e99c4c0439b = function(arg0) {
3762
+ const ret = arg0.version();
3763
+ return ret;
3764
+ };
3765
+ imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
3766
+ const ret = arg0.versions;
3767
+ return ret;
3768
+ };
3769
+ imports.wbg.__wbg_view_a03cbb1d55c73e57 = function(arg0) {
3770
+ const ret = arg0.view;
3771
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3772
+ };
3773
+ imports.wbg.__wbg_warn_123db6aa8948382e = function(arg0) {
3774
+ console.warn(arg0);
3775
+ };
3776
+ imports.wbg.__wbg_warn_cb8be8bbf790a5d6 = function(arg0, arg1, arg2, arg3) {
3777
+ console.warn(arg0, arg1, arg2, arg3);
3778
+ };
3779
+ imports.wbg.__wbg_wasm_a5f31e71db23f94b = function(arg0) {
3780
+ const ret = arg0.wasm;
3781
+ return ret;
3782
+ };
3783
+ imports.wbg.__wbindgen_array_new = function() {
3784
+ const ret = [];
3785
+ return ret;
3786
+ };
3787
+ imports.wbg.__wbindgen_array_push = function(arg0, arg1) {
3788
+ arg0.push(arg1);
3789
+ };
3790
+ imports.wbg.__wbindgen_as_number = function(arg0) {
3791
+ const ret = +arg0;
3792
+ return ret;
3793
+ };
3794
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
3795
+ const v = arg0;
3796
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
3797
+ return ret;
3798
+ };
3799
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
3800
+ const obj = arg0.original;
3801
+ if (obj.cnt-- == 1) {
3802
+ obj.a = 0;
3803
+ return true;
3804
+ }
3805
+ const ret = false;
3806
+ return ret;
3807
+ };
3808
+ imports.wbg.__wbindgen_closure_wrapper11020 = function(arg0, arg1, arg2) {
3809
+ const ret = makeMutClosure(arg0, arg1, 2520, __wbg_adapter_50);
3810
+ return ret;
3811
+ };
3812
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
3813
+ const ret = debugString(arg1);
3814
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3815
+ const len1 = WASM_VECTOR_LEN;
3816
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3817
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3818
+ };
3819
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
3820
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
3821
+ return ret;
3822
+ };
3823
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
3824
+ const ret = arg0 in arg1;
3825
+ return ret;
3826
+ };
3827
+ imports.wbg.__wbindgen_init_externref_table = function() {
3828
+ const table = wasm.__wbindgen_export_5;
3829
+ const offset = table.grow(4);
3830
+ table.set(0, undefined);
3831
+ table.set(offset + 0, undefined);
3832
+ table.set(offset + 1, null);
3833
+ table.set(offset + 2, true);
3834
+ table.set(offset + 3, false);
3835
+ ;
3836
+ };
3837
+ imports.wbg.__wbindgen_is_function = function(arg0) {
3838
+ const ret = typeof(arg0) === 'function';
3839
+ return ret;
3840
+ };
3841
+ imports.wbg.__wbindgen_is_null = function(arg0) {
3842
+ const ret = arg0 === null;
3843
+ return ret;
3844
+ };
3845
+ imports.wbg.__wbindgen_is_object = function(arg0) {
3846
+ const val = arg0;
3847
+ const ret = typeof(val) === 'object' && val !== null;
3848
+ return ret;
3849
+ };
3850
+ imports.wbg.__wbindgen_is_string = function(arg0) {
3851
+ const ret = typeof(arg0) === 'string';
3852
+ return ret;
3853
+ };
3854
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
3855
+ const ret = arg0 === undefined;
3856
+ return ret;
3857
+ };
3858
+ imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
3859
+ const ret = arg0 == arg1;
3860
+ return ret;
3861
+ };
3862
+ imports.wbg.__wbindgen_link_de369e9aa1a11bdd = function(arg0) {
3863
+ const ret = new URL('snippets/sqlite-web-90f8afa7b0cd2303/src/js/sqlite3-opfs-async-proxy.js', import.meta.url).toString();
3864
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3865
+ const len1 = WASM_VECTOR_LEN;
3866
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3867
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3868
+ };
3869
+ imports.wbg.__wbindgen_memory = function() {
3870
+ const ret = wasm.memory;
3871
+ return ret;
3872
+ };
3873
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
3874
+ const obj = arg1;
3875
+ const ret = typeof(obj) === 'number' ? obj : undefined;
3876
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
3877
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
3878
+ };
3879
+ imports.wbg.__wbindgen_number_new = function(arg0) {
3880
+ const ret = arg0;
3881
+ return ret;
3882
+ };
3883
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
3884
+ const obj = arg1;
3885
+ const ret = typeof(obj) === 'string' ? obj : undefined;
3886
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3887
+ var len1 = WASM_VECTOR_LEN;
3888
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3889
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3890
+ };
3891
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
3892
+ const ret = getStringFromWasm0(arg0, arg1);
3893
+ return ret;
3894
+ };
3895
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
3896
+ throw new Error(getStringFromWasm0(arg0, arg1));
3897
+ };
3898
+ imports.wbg.__wbindgen_try_into_number = function(arg0) {
3899
+ let result;
3900
+ try { result = +arg0 } catch (e) { result = e }
3901
+ const ret = result;
3902
+ return ret;
3903
+ };
3904
+
3905
+ return imports;
3761
3906
  }
3762
3907
 
3763
3908
  function __wbg_init_memory(imports, memory) {