@keyhive/keyhive 0.0.0-alpha.49 → 0.0.0-alpha.50

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.
@@ -3,35 +3,10 @@ export function __wbg_set_wasm(val) {
3
3
  wasm = val;
4
4
  }
5
5
 
6
-
7
- let cachedUint8ArrayMemory0 = null;
8
-
9
- function getUint8ArrayMemory0() {
10
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
11
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
12
- }
13
- return cachedUint8ArrayMemory0;
14
- }
15
-
16
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
17
-
18
- cachedTextDecoder.decode();
19
-
20
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
21
- let numBytesDecoded = 0;
22
- function decodeText(ptr, len) {
23
- numBytesDecoded += len;
24
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
25
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
26
- cachedTextDecoder.decode();
27
- numBytesDecoded = len;
28
- }
29
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
30
- }
31
-
32
- function getStringFromWasm0(ptr, len) {
33
- ptr = ptr >>> 0;
34
- return decodeText(ptr, len);
6
+ function addToExternrefTable0(obj) {
7
+ const idx = wasm.__externref_table_alloc();
8
+ wasm.__wbindgen_externrefs.set(idx, obj);
9
+ return idx;
35
10
  }
36
11
 
37
12
  function _assertClass(instance, klass) {
@@ -40,6 +15,10 @@ function _assertClass(instance, klass) {
40
15
  }
41
16
  }
42
17
 
18
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
19
+ ? { register: () => {}, unregister: () => {} }
20
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
21
+
43
22
  function debugString(val) {
44
23
  // primitive types
45
24
  const type = typeof val;
@@ -105,62 +84,23 @@ function debugString(val) {
105
84
  return className;
106
85
  }
107
86
 
108
- let WASM_VECTOR_LEN = 0;
109
-
110
- const cachedTextEncoder = new TextEncoder();
111
-
112
- if (!('encodeInto' in cachedTextEncoder)) {
113
- cachedTextEncoder.encodeInto = function (arg, view) {
114
- const buf = cachedTextEncoder.encode(arg);
115
- view.set(buf);
116
- return {
117
- read: arg.length,
118
- written: buf.length
119
- };
87
+ function getArrayJsValueFromWasm0(ptr, len) {
88
+ ptr = ptr >>> 0;
89
+ const mem = getDataViewMemory0();
90
+ const result = [];
91
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
92
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
120
93
  }
94
+ wasm.__externref_drop_slice(ptr, len);
95
+ return result;
121
96
  }
122
97
 
123
- function passStringToWasm0(arg, malloc, realloc) {
124
-
125
- if (realloc === undefined) {
126
- const buf = cachedTextEncoder.encode(arg);
127
- const ptr = malloc(buf.length, 1) >>> 0;
128
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
129
- WASM_VECTOR_LEN = buf.length;
130
- return ptr;
131
- }
132
-
133
- let len = arg.length;
134
- let ptr = malloc(len, 1) >>> 0;
135
-
136
- const mem = getUint8ArrayMemory0();
137
-
138
- let offset = 0;
139
-
140
- for (; offset < len; offset++) {
141
- const code = arg.charCodeAt(offset);
142
- if (code > 0x7F) break;
143
- mem[ptr + offset] = code;
144
- }
145
-
146
- if (offset !== len) {
147
- if (offset !== 0) {
148
- arg = arg.slice(offset);
149
- }
150
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
151
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
152
- const ret = cachedTextEncoder.encodeInto(arg, view);
153
-
154
- offset += ret.written;
155
- ptr = realloc(ptr, len, offset, 1) >>> 0;
156
- }
157
-
158
- WASM_VECTOR_LEN = offset;
159
- return ptr;
98
+ function getArrayU8FromWasm0(ptr, len) {
99
+ ptr = ptr >>> 0;
100
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
160
101
  }
161
102
 
162
103
  let cachedDataViewMemory0 = null;
163
-
164
104
  function getDataViewMemory0() {
165
105
  if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
166
106
  cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
@@ -168,10 +108,17 @@ function getDataViewMemory0() {
168
108
  return cachedDataViewMemory0;
169
109
  }
170
110
 
171
- function addToExternrefTable0(obj) {
172
- const idx = wasm.__externref_table_alloc();
173
- wasm.__wbindgen_externrefs.set(idx, obj);
174
- return idx;
111
+ function getStringFromWasm0(ptr, len) {
112
+ ptr = ptr >>> 0;
113
+ return decodeText(ptr, len);
114
+ }
115
+
116
+ let cachedUint8ArrayMemory0 = null;
117
+ function getUint8ArrayMemory0() {
118
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
119
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
120
+ }
121
+ return cachedUint8ArrayMemory0;
175
122
  }
176
123
 
177
124
  function handleError(f, args) {
@@ -183,30 +130,10 @@ function handleError(f, args) {
183
130
  }
184
131
  }
185
132
 
186
- function getArrayU8FromWasm0(ptr, len) {
187
- ptr = ptr >>> 0;
188
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
189
- }
190
-
191
133
  function isLikeNone(x) {
192
134
  return x === undefined || x === null;
193
135
  }
194
136
 
195
- function getArrayJsValueFromWasm0(ptr, len) {
196
- ptr = ptr >>> 0;
197
- const mem = getDataViewMemory0();
198
- const result = [];
199
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
200
- result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
201
- }
202
- wasm.__externref_drop_slice(ptr, len);
203
- return result;
204
- }
205
-
206
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
207
- ? { register: () => {}, unregister: () => {} }
208
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
209
-
210
137
  function makeMutClosure(arg0, arg1, dtor, f) {
211
138
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
212
139
  const real = (...args) => {
@@ -235,12 +162,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
235
162
  return real;
236
163
  }
237
164
 
238
- function takeFromExternrefTable0(idx) {
239
- const value = wasm.__wbindgen_externrefs.get(idx);
240
- wasm.__externref_table_dealloc(idx);
241
- return value;
242
- }
243
-
244
165
  function passArray8ToWasm0(arg, malloc) {
245
166
  const ptr = malloc(arg.length * 1, 1) >>> 0;
246
167
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -257,30 +178,244 @@ function passArrayJsValueToWasm0(array, malloc) {
257
178
  WASM_VECTOR_LEN = array.length;
258
179
  return ptr;
259
180
  }
260
- /**
261
- * Panic hook lets us get better error messages if our Rust code ever panics.
262
- *
263
- * This function needs to be called at least once during initialisation.
264
- * https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
265
- */
266
- export function setPanicHook() {
267
- wasm.setPanicHook();
181
+
182
+ function passStringToWasm0(arg, malloc, realloc) {
183
+ if (realloc === undefined) {
184
+ const buf = cachedTextEncoder.encode(arg);
185
+ const ptr = malloc(buf.length, 1) >>> 0;
186
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
187
+ WASM_VECTOR_LEN = buf.length;
188
+ return ptr;
189
+ }
190
+
191
+ let len = arg.length;
192
+ let ptr = malloc(len, 1) >>> 0;
193
+
194
+ const mem = getUint8ArrayMemory0();
195
+
196
+ let offset = 0;
197
+
198
+ for (; offset < len; offset++) {
199
+ const code = arg.charCodeAt(offset);
200
+ if (code > 0x7F) break;
201
+ mem[ptr + offset] = code;
202
+ }
203
+ if (offset !== len) {
204
+ if (offset !== 0) {
205
+ arg = arg.slice(offset);
206
+ }
207
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
208
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
209
+ const ret = cachedTextEncoder.encodeInto(arg, view);
210
+
211
+ offset += ret.written;
212
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
213
+ }
214
+
215
+ WASM_VECTOR_LEN = offset;
216
+ return ptr;
217
+ }
218
+
219
+ function takeFromExternrefTable0(idx) {
220
+ const value = wasm.__wbindgen_externrefs.get(idx);
221
+ wasm.__externref_table_dealloc(idx);
222
+ return value;
223
+ }
224
+
225
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
226
+ cachedTextDecoder.decode();
227
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
228
+ let numBytesDecoded = 0;
229
+ function decodeText(ptr, len) {
230
+ numBytesDecoded += len;
231
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
232
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
233
+ cachedTextDecoder.decode();
234
+ numBytesDecoded = len;
235
+ }
236
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
237
+ }
238
+
239
+ const cachedTextEncoder = new TextEncoder();
240
+
241
+ if (!('encodeInto' in cachedTextEncoder)) {
242
+ cachedTextEncoder.encodeInto = function (arg, view) {
243
+ const buf = cachedTextEncoder.encode(arg);
244
+ view.set(buf);
245
+ return {
246
+ read: arg.length,
247
+ written: buf.length
248
+ };
249
+ }
268
250
  }
269
251
 
270
- function wasm_bindgen__convert__closures_____invoke__h270e774e62b586ab(arg0, arg1, arg2) {
271
- wasm.wasm_bindgen__convert__closures_____invoke__h270e774e62b586ab(arg0, arg1, arg2);
252
+ let WASM_VECTOR_LEN = 0;
253
+
254
+ function wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069(arg0, arg1, arg2) {
255
+ wasm.wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069(arg0, arg1, arg2);
272
256
  }
273
257
 
274
- function wasm_bindgen__convert__closures_____invoke__h1069d9784c192ccc(arg0, arg1, arg2, arg3) {
275
- wasm.wasm_bindgen__convert__closures_____invoke__h1069d9784c192ccc(arg0, arg1, arg2, arg3);
258
+ function wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385(arg0, arg1, arg2, arg3) {
259
+ wasm.wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385(arg0, arg1, arg2, arg3);
276
260
  }
277
261
 
278
262
  const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
279
263
  ? { register: () => {}, unregister: () => {} }
280
264
  : new FinalizationRegistry(ptr => wasm.__wbg_access_free(ptr >>> 0, 1));
281
265
 
282
- export class Access {
266
+ const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
267
+ ? { register: () => {}, unregister: () => {} }
268
+ : new FinalizationRegistry(ptr => wasm.__wbg_agent_free(ptr >>> 0, 1));
283
269
 
270
+ const ArchiveFinalization = (typeof FinalizationRegistry === 'undefined')
271
+ ? { register: () => {}, unregister: () => {} }
272
+ : new FinalizationRegistry(ptr => wasm.__wbg_archive_free(ptr >>> 0, 1));
273
+
274
+ const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
275
+ ? { register: () => {}, unregister: () => {} }
276
+ : new FinalizationRegistry(ptr => wasm.__wbg_cannotparseed25519signingkey_free(ptr >>> 0, 1));
277
+
278
+ const CannotParseIdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
279
+ ? { register: () => {}, unregister: () => {} }
280
+ : new FinalizationRegistry(ptr => wasm.__wbg_cannotparseidentifier_free(ptr >>> 0, 1));
281
+
282
+ const CapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
283
+ ? { register: () => {}, unregister: () => {} }
284
+ : new FinalizationRegistry(ptr => wasm.__wbg_capability_free(ptr >>> 0, 1));
285
+
286
+ const CgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
287
+ ? { register: () => {}, unregister: () => {} }
288
+ : new FinalizationRegistry(ptr => wasm.__wbg_cgkaoperation_free(ptr >>> 0, 1));
289
+
290
+ const ChangeIdFinalization = (typeof FinalizationRegistry === 'undefined')
291
+ ? { register: () => {}, unregister: () => {} }
292
+ : new FinalizationRegistry(ptr => wasm.__wbg_changeid_free(ptr >>> 0, 1));
293
+
294
+ const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
295
+ ? { register: () => {}, unregister: () => {} }
296
+ : new FinalizationRegistry(ptr => wasm.__wbg_ciphertextstore_free(ptr >>> 0, 1));
297
+
298
+ const ContactCardFinalization = (typeof FinalizationRegistry === 'undefined')
299
+ ? { register: () => {}, unregister: () => {} }
300
+ : new FinalizationRegistry(ptr => wasm.__wbg_contactcard_free(ptr >>> 0, 1));
301
+
302
+ const DelegationFinalization = (typeof FinalizationRegistry === 'undefined')
303
+ ? { register: () => {}, unregister: () => {} }
304
+ : new FinalizationRegistry(ptr => wasm.__wbg_delegation_free(ptr >>> 0, 1));
305
+
306
+ const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
307
+ ? { register: () => {}, unregister: () => {} }
308
+ : new FinalizationRegistry(ptr => wasm.__wbg_doccontentrefs_free(ptr >>> 0, 1));
309
+
310
+ const DocumentFinalization = (typeof FinalizationRegistry === 'undefined')
311
+ ? { register: () => {}, unregister: () => {} }
312
+ : new FinalizationRegistry(ptr => wasm.__wbg_document_free(ptr >>> 0, 1));
313
+
314
+ const DocumentIdFinalization = (typeof FinalizationRegistry === 'undefined')
315
+ ? { register: () => {}, unregister: () => {} }
316
+ : new FinalizationRegistry(ptr => wasm.__wbg_documentid_free(ptr >>> 0, 1));
317
+
318
+ const EncryptedFinalization = (typeof FinalizationRegistry === 'undefined')
319
+ ? { register: () => {}, unregister: () => {} }
320
+ : new FinalizationRegistry(ptr => wasm.__wbg_encrypted_free(ptr >>> 0, 1));
321
+
322
+ const EncryptedContentWithUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
323
+ ? { register: () => {}, unregister: () => {} }
324
+ : new FinalizationRegistry(ptr => wasm.__wbg_encryptedcontentwithupdate_free(ptr >>> 0, 1));
325
+
326
+ const EventFinalization = (typeof FinalizationRegistry === 'undefined')
327
+ ? { register: () => {}, unregister: () => {} }
328
+ : new FinalizationRegistry(ptr => wasm.__wbg_event_free(ptr >>> 0, 1));
329
+
330
+ const GenerateWebCryptoErrorFinalization = (typeof FinalizationRegistry === 'undefined')
331
+ ? { register: () => {}, unregister: () => {} }
332
+ : new FinalizationRegistry(ptr => wasm.__wbg_generatewebcryptoerror_free(ptr >>> 0, 1));
333
+
334
+ const GroupFinalization = (typeof FinalizationRegistry === 'undefined')
335
+ ? { register: () => {}, unregister: () => {} }
336
+ : new FinalizationRegistry(ptr => wasm.__wbg_group_free(ptr >>> 0, 1));
337
+
338
+ const GroupIdFinalization = (typeof FinalizationRegistry === 'undefined')
339
+ ? { register: () => {}, unregister: () => {} }
340
+ : new FinalizationRegistry(ptr => wasm.__wbg_groupid_free(ptr >>> 0, 1));
341
+
342
+ const HistoryFinalization = (typeof FinalizationRegistry === 'undefined')
343
+ ? { register: () => {}, unregister: () => {} }
344
+ : new FinalizationRegistry(ptr => wasm.__wbg_history_free(ptr >>> 0, 1));
345
+
346
+ const IdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
347
+ ? { register: () => {}, unregister: () => {} }
348
+ : new FinalizationRegistry(ptr => wasm.__wbg_identifier_free(ptr >>> 0, 1));
349
+
350
+ const IndividualFinalization = (typeof FinalizationRegistry === 'undefined')
351
+ ? { register: () => {}, unregister: () => {} }
352
+ : new FinalizationRegistry(ptr => wasm.__wbg_individual_free(ptr >>> 0, 1));
353
+
354
+ const IndividualIdFinalization = (typeof FinalizationRegistry === 'undefined')
355
+ ? { register: () => {}, unregister: () => {} }
356
+ : new FinalizationRegistry(ptr => wasm.__wbg_individualid_free(ptr >>> 0, 1));
357
+
358
+ const InvocationFinalization = (typeof FinalizationRegistry === 'undefined')
359
+ ? { register: () => {}, unregister: () => {} }
360
+ : new FinalizationRegistry(ptr => wasm.__wbg_invocation_free(ptr >>> 0, 1));
361
+
362
+ const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
363
+ ? { register: () => {}, unregister: () => {} }
364
+ : new FinalizationRegistry(ptr => wasm.__wbg_keyhive_free(ptr >>> 0, 1));
365
+
366
+ const MemberedFinalization = (typeof FinalizationRegistry === 'undefined')
367
+ ? { register: () => {}, unregister: () => {} }
368
+ : new FinalizationRegistry(ptr => wasm.__wbg_membered_free(ptr >>> 0, 1));
369
+
370
+ const MembershipFinalization = (typeof FinalizationRegistry === 'undefined')
371
+ ? { register: () => {}, unregister: () => {} }
372
+ : new FinalizationRegistry(ptr => wasm.__wbg_membership_free(ptr >>> 0, 1));
373
+
374
+ const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
375
+ ? { register: () => {}, unregister: () => {} }
376
+ : new FinalizationRegistry(ptr => wasm.__wbg_peer_free(ptr >>> 0, 1));
377
+
378
+ const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
379
+ ? { register: () => {}, unregister: () => {} }
380
+ : new FinalizationRegistry(ptr => wasm.__wbg_revocation_free(ptr >>> 0, 1));
381
+
382
+ const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
383
+ ? { register: () => {}, unregister: () => {} }
384
+ : new FinalizationRegistry(ptr => wasm.__wbg_sharekey_free(ptr >>> 0, 1));
385
+
386
+ const SignedFinalization = (typeof FinalizationRegistry === 'undefined')
387
+ ? { register: () => {}, unregister: () => {} }
388
+ : new FinalizationRegistry(ptr => wasm.__wbg_signed_free(ptr >>> 0, 1));
389
+
390
+ const SignedCgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
391
+ ? { register: () => {}, unregister: () => {} }
392
+ : new FinalizationRegistry(ptr => wasm.__wbg_signedcgkaoperation_free(ptr >>> 0, 1));
393
+
394
+ const SignedDelegationFinalization = (typeof FinalizationRegistry === 'undefined')
395
+ ? { register: () => {}, unregister: () => {} }
396
+ : new FinalizationRegistry(ptr => wasm.__wbg_signeddelegation_free(ptr >>> 0, 1));
397
+
398
+ const SignedInvocationFinalization = (typeof FinalizationRegistry === 'undefined')
399
+ ? { register: () => {}, unregister: () => {} }
400
+ : new FinalizationRegistry(ptr => wasm.__wbg_signedinvocation_free(ptr >>> 0, 1));
401
+
402
+ const SignedRevocationFinalization = (typeof FinalizationRegistry === 'undefined')
403
+ ? { register: () => {}, unregister: () => {} }
404
+ : new FinalizationRegistry(ptr => wasm.__wbg_signedrevocation_free(ptr >>> 0, 1));
405
+
406
+ const SignerFinalization = (typeof FinalizationRegistry === 'undefined')
407
+ ? { register: () => {}, unregister: () => {} }
408
+ : new FinalizationRegistry(ptr => wasm.__wbg_signer_free(ptr >>> 0, 1));
409
+
410
+ const StatsFinalization = (typeof FinalizationRegistry === 'undefined')
411
+ ? { register: () => {}, unregister: () => {} }
412
+ : new FinalizationRegistry(ptr => wasm.__wbg_stats_free(ptr >>> 0, 1));
413
+
414
+ const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
415
+ ? { register: () => {}, unregister: () => {} }
416
+ : new FinalizationRegistry(ptr => wasm.__wbg_summary_free(ptr >>> 0, 1));
417
+
418
+ export class Access {
284
419
  static __wrap(ptr) {
285
420
  ptr = ptr >>> 0;
286
421
  const obj = Object.create(Access.prototype);
@@ -288,14 +423,12 @@ export class Access {
288
423
  AccessFinalization.register(obj, obj.__wbg_ptr, obj);
289
424
  return obj;
290
425
  }
291
-
292
426
  __destroy_into_raw() {
293
427
  const ptr = this.__wbg_ptr;
294
428
  this.__wbg_ptr = 0;
295
429
  AccessFinalization.unregister(this);
296
430
  return ptr;
297
431
  }
298
-
299
432
  free() {
300
433
  const ptr = this.__destroy_into_raw();
301
434
  wasm.__wbg_access_free(ptr, 0);
@@ -328,12 +461,7 @@ export class Access {
328
461
  }
329
462
  if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
330
463
 
331
- const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
332
- ? { register: () => {}, unregister: () => {} }
333
- : new FinalizationRegistry(ptr => wasm.__wbg_agent_free(ptr >>> 0, 1));
334
-
335
464
  export class Agent {
336
-
337
465
  static __wrap(ptr) {
338
466
  ptr = ptr >>> 0;
339
467
  const obj = Object.create(Agent.prototype);
@@ -341,14 +469,12 @@ export class Agent {
341
469
  AgentFinalization.register(obj, obj.__wbg_ptr, obj);
342
470
  return obj;
343
471
  }
344
-
345
472
  __destroy_into_raw() {
346
473
  const ptr = this.__wbg_ptr;
347
474
  this.__wbg_ptr = 0;
348
475
  AgentFinalization.unregister(this);
349
476
  return ptr;
350
477
  }
351
-
352
478
  free() {
353
479
  const ptr = this.__destroy_into_raw();
354
480
  wasm.__wbg_agent_free(ptr, 0);
@@ -399,12 +525,7 @@ export class Agent {
399
525
  }
400
526
  if (Symbol.dispose) Agent.prototype[Symbol.dispose] = Agent.prototype.free;
401
527
 
402
- const ArchiveFinalization = (typeof FinalizationRegistry === 'undefined')
403
- ? { register: () => {}, unregister: () => {} }
404
- : new FinalizationRegistry(ptr => wasm.__wbg_archive_free(ptr >>> 0, 1));
405
-
406
528
  export class Archive {
407
-
408
529
  static __wrap(ptr) {
409
530
  ptr = ptr >>> 0;
410
531
  const obj = Object.create(Archive.prototype);
@@ -412,14 +533,12 @@ export class Archive {
412
533
  ArchiveFinalization.register(obj, obj.__wbg_ptr, obj);
413
534
  return obj;
414
535
  }
415
-
416
536
  __destroy_into_raw() {
417
537
  const ptr = this.__wbg_ptr;
418
538
  this.__wbg_ptr = 0;
419
539
  ArchiveFinalization.unregister(this);
420
540
  return ptr;
421
541
  }
422
-
423
542
  free() {
424
543
  const ptr = this.__destroy_into_raw();
425
544
  wasm.__wbg_archive_free(ptr, 0);
@@ -466,12 +585,7 @@ export class Archive {
466
585
  }
467
586
  if (Symbol.dispose) Archive.prototype[Symbol.dispose] = Archive.prototype.free;
468
587
 
469
- const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
470
- ? { register: () => {}, unregister: () => {} }
471
- : new FinalizationRegistry(ptr => wasm.__wbg_cannotparseed25519signingkey_free(ptr >>> 0, 1));
472
-
473
588
  export class CannotParseEd25519SigningKey {
474
-
475
589
  static __wrap(ptr) {
476
590
  ptr = ptr >>> 0;
477
591
  const obj = Object.create(CannotParseEd25519SigningKey.prototype);
@@ -479,14 +593,12 @@ export class CannotParseEd25519SigningKey {
479
593
  CannotParseEd25519SigningKeyFinalization.register(obj, obj.__wbg_ptr, obj);
480
594
  return obj;
481
595
  }
482
-
483
596
  __destroy_into_raw() {
484
597
  const ptr = this.__wbg_ptr;
485
598
  this.__wbg_ptr = 0;
486
599
  CannotParseEd25519SigningKeyFinalization.unregister(this);
487
600
  return ptr;
488
601
  }
489
-
490
602
  free() {
491
603
  const ptr = this.__destroy_into_raw();
492
604
  wasm.__wbg_cannotparseed25519signingkey_free(ptr, 0);
@@ -494,12 +606,7 @@ export class CannotParseEd25519SigningKey {
494
606
  }
495
607
  if (Symbol.dispose) CannotParseEd25519SigningKey.prototype[Symbol.dispose] = CannotParseEd25519SigningKey.prototype.free;
496
608
 
497
- const CannotParseIdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
498
- ? { register: () => {}, unregister: () => {} }
499
- : new FinalizationRegistry(ptr => wasm.__wbg_cannotparseidentifier_free(ptr >>> 0, 1));
500
-
501
609
  export class CannotParseIdentifier {
502
-
503
610
  static __wrap(ptr) {
504
611
  ptr = ptr >>> 0;
505
612
  const obj = Object.create(CannotParseIdentifier.prototype);
@@ -507,14 +614,12 @@ export class CannotParseIdentifier {
507
614
  CannotParseIdentifierFinalization.register(obj, obj.__wbg_ptr, obj);
508
615
  return obj;
509
616
  }
510
-
511
617
  __destroy_into_raw() {
512
618
  const ptr = this.__wbg_ptr;
513
619
  this.__wbg_ptr = 0;
514
620
  CannotParseIdentifierFinalization.unregister(this);
515
621
  return ptr;
516
622
  }
517
-
518
623
  free() {
519
624
  const ptr = this.__destroy_into_raw();
520
625
  wasm.__wbg_cannotparseidentifier_free(ptr, 0);
@@ -522,12 +627,7 @@ export class CannotParseIdentifier {
522
627
  }
523
628
  if (Symbol.dispose) CannotParseIdentifier.prototype[Symbol.dispose] = CannotParseIdentifier.prototype.free;
524
629
 
525
- const CapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
526
- ? { register: () => {}, unregister: () => {} }
527
- : new FinalizationRegistry(ptr => wasm.__wbg_capability_free(ptr >>> 0, 1));
528
-
529
630
  export class Capability {
530
-
531
631
  static __wrap(ptr) {
532
632
  ptr = ptr >>> 0;
533
633
  const obj = Object.create(Capability.prototype);
@@ -535,14 +635,12 @@ export class Capability {
535
635
  CapabilityFinalization.register(obj, obj.__wbg_ptr, obj);
536
636
  return obj;
537
637
  }
538
-
539
638
  __destroy_into_raw() {
540
639
  const ptr = this.__wbg_ptr;
541
640
  this.__wbg_ptr = 0;
542
641
  CapabilityFinalization.unregister(this);
543
642
  return ptr;
544
643
  }
545
-
546
644
  free() {
547
645
  const ptr = this.__destroy_into_raw();
548
646
  wasm.__wbg_capability_free(ptr, 0);
@@ -571,12 +669,7 @@ export class Capability {
571
669
  }
572
670
  if (Symbol.dispose) Capability.prototype[Symbol.dispose] = Capability.prototype.free;
573
671
 
574
- const CgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
575
- ? { register: () => {}, unregister: () => {} }
576
- : new FinalizationRegistry(ptr => wasm.__wbg_cgkaoperation_free(ptr >>> 0, 1));
577
-
578
672
  export class CgkaOperation {
579
-
580
673
  static __wrap(ptr) {
581
674
  ptr = ptr >>> 0;
582
675
  const obj = Object.create(CgkaOperation.prototype);
@@ -584,14 +677,12 @@ export class CgkaOperation {
584
677
  CgkaOperationFinalization.register(obj, obj.__wbg_ptr, obj);
585
678
  return obj;
586
679
  }
587
-
588
680
  __destroy_into_raw() {
589
681
  const ptr = this.__wbg_ptr;
590
682
  this.__wbg_ptr = 0;
591
683
  CgkaOperationFinalization.unregister(this);
592
684
  return ptr;
593
685
  }
594
-
595
686
  free() {
596
687
  const ptr = this.__destroy_into_raw();
597
688
  wasm.__wbg_cgkaoperation_free(ptr, 0);
@@ -614,12 +705,7 @@ export class CgkaOperation {
614
705
  }
615
706
  if (Symbol.dispose) CgkaOperation.prototype[Symbol.dispose] = CgkaOperation.prototype.free;
616
707
 
617
- const ChangeIdFinalization = (typeof FinalizationRegistry === 'undefined')
618
- ? { register: () => {}, unregister: () => {} }
619
- : new FinalizationRegistry(ptr => wasm.__wbg_changeid_free(ptr >>> 0, 1));
620
-
621
708
  export class ChangeId {
622
-
623
709
  static __wrap(ptr) {
624
710
  ptr = ptr >>> 0;
625
711
  const obj = Object.create(ChangeId.prototype);
@@ -627,21 +713,18 @@ export class ChangeId {
627
713
  ChangeIdFinalization.register(obj, obj.__wbg_ptr, obj);
628
714
  return obj;
629
715
  }
630
-
631
716
  static __unwrap(jsValue) {
632
717
  if (!(jsValue instanceof ChangeId)) {
633
718
  return 0;
634
719
  }
635
720
  return jsValue.__destroy_into_raw();
636
721
  }
637
-
638
722
  __destroy_into_raw() {
639
723
  const ptr = this.__wbg_ptr;
640
724
  this.__wbg_ptr = 0;
641
725
  ChangeIdFinalization.unregister(this);
642
726
  return ptr;
643
727
  }
644
-
645
728
  free() {
646
729
  const ptr = this.__destroy_into_raw();
647
730
  wasm.__wbg_changeid_free(ptr, 0);
@@ -677,12 +760,7 @@ export class ChangeId {
677
760
  }
678
761
  if (Symbol.dispose) ChangeId.prototype[Symbol.dispose] = ChangeId.prototype.free;
679
762
 
680
- const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
681
- ? { register: () => {}, unregister: () => {} }
682
- : new FinalizationRegistry(ptr => wasm.__wbg_ciphertextstore_free(ptr >>> 0, 1));
683
-
684
763
  export class CiphertextStore {
685
-
686
764
  static __wrap(ptr) {
687
765
  ptr = ptr >>> 0;
688
766
  const obj = Object.create(CiphertextStore.prototype);
@@ -690,14 +768,12 @@ export class CiphertextStore {
690
768
  CiphertextStoreFinalization.register(obj, obj.__wbg_ptr, obj);
691
769
  return obj;
692
770
  }
693
-
694
771
  __destroy_into_raw() {
695
772
  const ptr = this.__wbg_ptr;
696
773
  this.__wbg_ptr = 0;
697
774
  CiphertextStoreFinalization.unregister(this);
698
775
  return ptr;
699
776
  }
700
-
701
777
  free() {
702
778
  const ptr = this.__destroy_into_raw();
703
779
  wasm.__wbg_ciphertextstore_free(ptr, 0);
@@ -720,12 +796,7 @@ export class CiphertextStore {
720
796
  }
721
797
  if (Symbol.dispose) CiphertextStore.prototype[Symbol.dispose] = CiphertextStore.prototype.free;
722
798
 
723
- const ContactCardFinalization = (typeof FinalizationRegistry === 'undefined')
724
- ? { register: () => {}, unregister: () => {} }
725
- : new FinalizationRegistry(ptr => wasm.__wbg_contactcard_free(ptr >>> 0, 1));
726
-
727
799
  export class ContactCard {
728
-
729
800
  static __wrap(ptr) {
730
801
  ptr = ptr >>> 0;
731
802
  const obj = Object.create(ContactCard.prototype);
@@ -733,14 +804,12 @@ export class ContactCard {
733
804
  ContactCardFinalization.register(obj, obj.__wbg_ptr, obj);
734
805
  return obj;
735
806
  }
736
-
737
807
  __destroy_into_raw() {
738
808
  const ptr = this.__wbg_ptr;
739
809
  this.__wbg_ptr = 0;
740
810
  ContactCardFinalization.unregister(this);
741
811
  return ptr;
742
812
  }
743
-
744
813
  free() {
745
814
  const ptr = this.__destroy_into_raw();
746
815
  wasm.__wbg_contactcard_free(ptr, 0);
@@ -819,12 +888,7 @@ export class ContactCard {
819
888
  }
820
889
  if (Symbol.dispose) ContactCard.prototype[Symbol.dispose] = ContactCard.prototype.free;
821
890
 
822
- const DelegationFinalization = (typeof FinalizationRegistry === 'undefined')
823
- ? { register: () => {}, unregister: () => {} }
824
- : new FinalizationRegistry(ptr => wasm.__wbg_delegation_free(ptr >>> 0, 1));
825
-
826
891
  export class Delegation {
827
-
828
892
  static __wrap(ptr) {
829
893
  ptr = ptr >>> 0;
830
894
  const obj = Object.create(Delegation.prototype);
@@ -832,14 +896,12 @@ export class Delegation {
832
896
  DelegationFinalization.register(obj, obj.__wbg_ptr, obj);
833
897
  return obj;
834
898
  }
835
-
836
899
  __destroy_into_raw() {
837
900
  const ptr = this.__wbg_ptr;
838
901
  this.__wbg_ptr = 0;
839
902
  DelegationFinalization.unregister(this);
840
903
  return ptr;
841
904
  }
842
-
843
905
  free() {
844
906
  const ptr = this.__destroy_into_raw();
845
907
  wasm.__wbg_delegation_free(ptr, 0);
@@ -873,14 +935,9 @@ export class Delegation {
873
935
  return Agent.__wrap(ret);
874
936
  }
875
937
  }
876
- if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.free;
877
-
878
- const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
879
- ? { register: () => {}, unregister: () => {} }
880
- : new FinalizationRegistry(ptr => wasm.__wbg_doccontentrefs_free(ptr >>> 0, 1));
938
+ if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.free;
881
939
 
882
940
  export class DocContentRefs {
883
-
884
941
  static __wrap(ptr) {
885
942
  ptr = ptr >>> 0;
886
943
  const obj = Object.create(DocContentRefs.prototype);
@@ -888,14 +945,12 @@ export class DocContentRefs {
888
945
  DocContentRefsFinalization.register(obj, obj.__wbg_ptr, obj);
889
946
  return obj;
890
947
  }
891
-
892
948
  __destroy_into_raw() {
893
949
  const ptr = this.__wbg_ptr;
894
950
  this.__wbg_ptr = 0;
895
951
  DocContentRefsFinalization.unregister(this);
896
952
  return ptr;
897
953
  }
898
-
899
954
  free() {
900
955
  const ptr = this.__destroy_into_raw();
901
956
  wasm.__wbg_doccontentrefs_free(ptr, 0);
@@ -944,12 +999,7 @@ export class DocContentRefs {
944
999
  }
945
1000
  if (Symbol.dispose) DocContentRefs.prototype[Symbol.dispose] = DocContentRefs.prototype.free;
946
1001
 
947
- const DocumentFinalization = (typeof FinalizationRegistry === 'undefined')
948
- ? { register: () => {}, unregister: () => {} }
949
- : new FinalizationRegistry(ptr => wasm.__wbg_document_free(ptr >>> 0, 1));
950
-
951
1002
  export class Document {
952
-
953
1003
  static __wrap(ptr) {
954
1004
  ptr = ptr >>> 0;
955
1005
  const obj = Object.create(Document.prototype);
@@ -957,14 +1007,12 @@ export class Document {
957
1007
  DocumentFinalization.register(obj, obj.__wbg_ptr, obj);
958
1008
  return obj;
959
1009
  }
960
-
961
1010
  __destroy_into_raw() {
962
1011
  const ptr = this.__wbg_ptr;
963
1012
  this.__wbg_ptr = 0;
964
1013
  DocumentFinalization.unregister(this);
965
1014
  return ptr;
966
1015
  }
967
-
968
1016
  free() {
969
1017
  const ptr = this.__destroy_into_raw();
970
1018
  wasm.__wbg_document_free(ptr, 0);
@@ -1015,12 +1063,7 @@ export class Document {
1015
1063
  }
1016
1064
  if (Symbol.dispose) Document.prototype[Symbol.dispose] = Document.prototype.free;
1017
1065
 
1018
- const DocumentIdFinalization = (typeof FinalizationRegistry === 'undefined')
1019
- ? { register: () => {}, unregister: () => {} }
1020
- : new FinalizationRegistry(ptr => wasm.__wbg_documentid_free(ptr >>> 0, 1));
1021
-
1022
1066
  export class DocumentId {
1023
-
1024
1067
  static __wrap(ptr) {
1025
1068
  ptr = ptr >>> 0;
1026
1069
  const obj = Object.create(DocumentId.prototype);
@@ -1028,14 +1071,12 @@ export class DocumentId {
1028
1071
  DocumentIdFinalization.register(obj, obj.__wbg_ptr, obj);
1029
1072
  return obj;
1030
1073
  }
1031
-
1032
1074
  __destroy_into_raw() {
1033
1075
  const ptr = this.__wbg_ptr;
1034
1076
  this.__wbg_ptr = 0;
1035
1077
  DocumentIdFinalization.unregister(this);
1036
1078
  return ptr;
1037
1079
  }
1038
-
1039
1080
  free() {
1040
1081
  const ptr = this.__destroy_into_raw();
1041
1082
  wasm.__wbg_documentid_free(ptr, 0);
@@ -1088,12 +1129,7 @@ export class DocumentId {
1088
1129
  }
1089
1130
  if (Symbol.dispose) DocumentId.prototype[Symbol.dispose] = DocumentId.prototype.free;
1090
1131
 
1091
- const EncryptedFinalization = (typeof FinalizationRegistry === 'undefined')
1092
- ? { register: () => {}, unregister: () => {} }
1093
- : new FinalizationRegistry(ptr => wasm.__wbg_encrypted_free(ptr >>> 0, 1));
1094
-
1095
1132
  export class Encrypted {
1096
-
1097
1133
  static __wrap(ptr) {
1098
1134
  ptr = ptr >>> 0;
1099
1135
  const obj = Object.create(Encrypted.prototype);
@@ -1101,14 +1137,12 @@ export class Encrypted {
1101
1137
  EncryptedFinalization.register(obj, obj.__wbg_ptr, obj);
1102
1138
  return obj;
1103
1139
  }
1104
-
1105
1140
  __destroy_into_raw() {
1106
1141
  const ptr = this.__wbg_ptr;
1107
1142
  this.__wbg_ptr = 0;
1108
1143
  EncryptedFinalization.unregister(this);
1109
1144
  return ptr;
1110
1145
  }
1111
-
1112
1146
  free() {
1113
1147
  const ptr = this.__destroy_into_raw();
1114
1148
  wasm.__wbg_encrypted_free(ptr, 0);
@@ -1170,12 +1204,7 @@ export class Encrypted {
1170
1204
  }
1171
1205
  if (Symbol.dispose) Encrypted.prototype[Symbol.dispose] = Encrypted.prototype.free;
1172
1206
 
1173
- const EncryptedContentWithUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
1174
- ? { register: () => {}, unregister: () => {} }
1175
- : new FinalizationRegistry(ptr => wasm.__wbg_encryptedcontentwithupdate_free(ptr >>> 0, 1));
1176
-
1177
1207
  export class EncryptedContentWithUpdate {
1178
-
1179
1208
  static __wrap(ptr) {
1180
1209
  ptr = ptr >>> 0;
1181
1210
  const obj = Object.create(EncryptedContentWithUpdate.prototype);
@@ -1183,14 +1212,12 @@ export class EncryptedContentWithUpdate {
1183
1212
  EncryptedContentWithUpdateFinalization.register(obj, obj.__wbg_ptr, obj);
1184
1213
  return obj;
1185
1214
  }
1186
-
1187
1215
  __destroy_into_raw() {
1188
1216
  const ptr = this.__wbg_ptr;
1189
1217
  this.__wbg_ptr = 0;
1190
1218
  EncryptedContentWithUpdateFinalization.unregister(this);
1191
1219
  return ptr;
1192
1220
  }
1193
-
1194
1221
  free() {
1195
1222
  const ptr = this.__destroy_into_raw();
1196
1223
  wasm.__wbg_encryptedcontentwithupdate_free(ptr, 0);
@@ -1212,12 +1239,7 @@ export class EncryptedContentWithUpdate {
1212
1239
  }
1213
1240
  if (Symbol.dispose) EncryptedContentWithUpdate.prototype[Symbol.dispose] = EncryptedContentWithUpdate.prototype.free;
1214
1241
 
1215
- const EventFinalization = (typeof FinalizationRegistry === 'undefined')
1216
- ? { register: () => {}, unregister: () => {} }
1217
- : new FinalizationRegistry(ptr => wasm.__wbg_event_free(ptr >>> 0, 1));
1218
-
1219
1242
  export class Event {
1220
-
1221
1243
  static __wrap(ptr) {
1222
1244
  ptr = ptr >>> 0;
1223
1245
  const obj = Object.create(Event.prototype);
@@ -1225,14 +1247,12 @@ export class Event {
1225
1247
  EventFinalization.register(obj, obj.__wbg_ptr, obj);
1226
1248
  return obj;
1227
1249
  }
1228
-
1229
1250
  __destroy_into_raw() {
1230
1251
  const ptr = this.__wbg_ptr;
1231
1252
  this.__wbg_ptr = 0;
1232
1253
  EventFinalization.unregister(this);
1233
1254
  return ptr;
1234
1255
  }
1235
-
1236
1256
  free() {
1237
1257
  const ptr = this.__destroy_into_raw();
1238
1258
  wasm.__wbg_event_free(ptr, 0);
@@ -1297,12 +1317,7 @@ export class Event {
1297
1317
  }
1298
1318
  if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
1299
1319
 
1300
- const GenerateWebCryptoErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1301
- ? { register: () => {}, unregister: () => {} }
1302
- : new FinalizationRegistry(ptr => wasm.__wbg_generatewebcryptoerror_free(ptr >>> 0, 1));
1303
-
1304
1320
  export class GenerateWebCryptoError {
1305
-
1306
1321
  static __wrap(ptr) {
1307
1322
  ptr = ptr >>> 0;
1308
1323
  const obj = Object.create(GenerateWebCryptoError.prototype);
@@ -1310,14 +1325,12 @@ export class GenerateWebCryptoError {
1310
1325
  GenerateWebCryptoErrorFinalization.register(obj, obj.__wbg_ptr, obj);
1311
1326
  return obj;
1312
1327
  }
1313
-
1314
1328
  __destroy_into_raw() {
1315
1329
  const ptr = this.__wbg_ptr;
1316
1330
  this.__wbg_ptr = 0;
1317
1331
  GenerateWebCryptoErrorFinalization.unregister(this);
1318
1332
  return ptr;
1319
1333
  }
1320
-
1321
1334
  free() {
1322
1335
  const ptr = this.__destroy_into_raw();
1323
1336
  wasm.__wbg_generatewebcryptoerror_free(ptr, 0);
@@ -1340,12 +1353,7 @@ export class GenerateWebCryptoError {
1340
1353
  }
1341
1354
  if (Symbol.dispose) GenerateWebCryptoError.prototype[Symbol.dispose] = GenerateWebCryptoError.prototype.free;
1342
1355
 
1343
- const GroupFinalization = (typeof FinalizationRegistry === 'undefined')
1344
- ? { register: () => {}, unregister: () => {} }
1345
- : new FinalizationRegistry(ptr => wasm.__wbg_group_free(ptr >>> 0, 1));
1346
-
1347
1356
  export class Group {
1348
-
1349
1357
  static __wrap(ptr) {
1350
1358
  ptr = ptr >>> 0;
1351
1359
  const obj = Object.create(Group.prototype);
@@ -1353,14 +1361,12 @@ export class Group {
1353
1361
  GroupFinalization.register(obj, obj.__wbg_ptr, obj);
1354
1362
  return obj;
1355
1363
  }
1356
-
1357
1364
  __destroy_into_raw() {
1358
1365
  const ptr = this.__wbg_ptr;
1359
1366
  this.__wbg_ptr = 0;
1360
1367
  GroupFinalization.unregister(this);
1361
1368
  return ptr;
1362
1369
  }
1363
-
1364
1370
  free() {
1365
1371
  const ptr = this.__destroy_into_raw();
1366
1372
  wasm.__wbg_group_free(ptr, 0);
@@ -1384,7 +1390,7 @@ export class Group {
1384
1390
  * @returns {Identifier}
1385
1391
  */
1386
1392
  get id() {
1387
- const ret = wasm.document_doc_id(this.__wbg_ptr);
1393
+ const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
1388
1394
  return Identifier.__wrap(ret);
1389
1395
  }
1390
1396
  /**
@@ -1405,7 +1411,7 @@ export class Group {
1405
1411
  * @returns {GroupId}
1406
1412
  */
1407
1413
  get groupId() {
1408
- const ret = wasm.document_doc_id(this.__wbg_ptr);
1414
+ const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
1409
1415
  return GroupId.__wrap(ret);
1410
1416
  }
1411
1417
  /**
@@ -1418,12 +1424,7 @@ export class Group {
1418
1424
  }
1419
1425
  if (Symbol.dispose) Group.prototype[Symbol.dispose] = Group.prototype.free;
1420
1426
 
1421
- const GroupIdFinalization = (typeof FinalizationRegistry === 'undefined')
1422
- ? { register: () => {}, unregister: () => {} }
1423
- : new FinalizationRegistry(ptr => wasm.__wbg_groupid_free(ptr >>> 0, 1));
1424
-
1425
1427
  export class GroupId {
1426
-
1427
1428
  static __wrap(ptr) {
1428
1429
  ptr = ptr >>> 0;
1429
1430
  const obj = Object.create(GroupId.prototype);
@@ -1431,14 +1432,12 @@ export class GroupId {
1431
1432
  GroupIdFinalization.register(obj, obj.__wbg_ptr, obj);
1432
1433
  return obj;
1433
1434
  }
1434
-
1435
1435
  __destroy_into_raw() {
1436
1436
  const ptr = this.__wbg_ptr;
1437
1437
  this.__wbg_ptr = 0;
1438
1438
  GroupIdFinalization.unregister(this);
1439
1439
  return ptr;
1440
1440
  }
1441
-
1442
1441
  free() {
1443
1442
  const ptr = this.__destroy_into_raw();
1444
1443
  wasm.__wbg_groupid_free(ptr, 0);
@@ -1461,12 +1460,7 @@ export class GroupId {
1461
1460
  }
1462
1461
  if (Symbol.dispose) GroupId.prototype[Symbol.dispose] = GroupId.prototype.free;
1463
1462
 
1464
- const HistoryFinalization = (typeof FinalizationRegistry === 'undefined')
1465
- ? { register: () => {}, unregister: () => {} }
1466
- : new FinalizationRegistry(ptr => wasm.__wbg_history_free(ptr >>> 0, 1));
1467
-
1468
1463
  export class History {
1469
-
1470
1464
  static __wrap(ptr) {
1471
1465
  ptr = ptr >>> 0;
1472
1466
  const obj = Object.create(History.prototype);
@@ -1474,14 +1468,12 @@ export class History {
1474
1468
  HistoryFinalization.register(obj, obj.__wbg_ptr, obj);
1475
1469
  return obj;
1476
1470
  }
1477
-
1478
1471
  __destroy_into_raw() {
1479
1472
  const ptr = this.__wbg_ptr;
1480
1473
  this.__wbg_ptr = 0;
1481
1474
  HistoryFinalization.unregister(this);
1482
1475
  return ptr;
1483
1476
  }
1484
-
1485
1477
  free() {
1486
1478
  const ptr = this.__destroy_into_raw();
1487
1479
  wasm.__wbg_history_free(ptr, 0);
@@ -1516,12 +1508,7 @@ export class History {
1516
1508
  }
1517
1509
  if (Symbol.dispose) History.prototype[Symbol.dispose] = History.prototype.free;
1518
1510
 
1519
- const IdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
1520
- ? { register: () => {}, unregister: () => {} }
1521
- : new FinalizationRegistry(ptr => wasm.__wbg_identifier_free(ptr >>> 0, 1));
1522
-
1523
1511
  export class Identifier {
1524
-
1525
1512
  static __wrap(ptr) {
1526
1513
  ptr = ptr >>> 0;
1527
1514
  const obj = Object.create(Identifier.prototype);
@@ -1529,14 +1516,12 @@ export class Identifier {
1529
1516
  IdentifierFinalization.register(obj, obj.__wbg_ptr, obj);
1530
1517
  return obj;
1531
1518
  }
1532
-
1533
1519
  __destroy_into_raw() {
1534
1520
  const ptr = this.__wbg_ptr;
1535
1521
  this.__wbg_ptr = 0;
1536
1522
  IdentifierFinalization.unregister(this);
1537
1523
  return ptr;
1538
1524
  }
1539
-
1540
1525
  free() {
1541
1526
  const ptr = this.__destroy_into_raw();
1542
1527
  wasm.__wbg_identifier_free(ptr, 0);
@@ -1567,12 +1552,7 @@ export class Identifier {
1567
1552
  }
1568
1553
  if (Symbol.dispose) Identifier.prototype[Symbol.dispose] = Identifier.prototype.free;
1569
1554
 
1570
- const IndividualFinalization = (typeof FinalizationRegistry === 'undefined')
1571
- ? { register: () => {}, unregister: () => {} }
1572
- : new FinalizationRegistry(ptr => wasm.__wbg_individual_free(ptr >>> 0, 1));
1573
-
1574
1555
  export class Individual {
1575
-
1576
1556
  static __wrap(ptr) {
1577
1557
  ptr = ptr >>> 0;
1578
1558
  const obj = Object.create(Individual.prototype);
@@ -1580,14 +1560,12 @@ export class Individual {
1580
1560
  IndividualFinalization.register(obj, obj.__wbg_ptr, obj);
1581
1561
  return obj;
1582
1562
  }
1583
-
1584
1563
  __destroy_into_raw() {
1585
1564
  const ptr = this.__wbg_ptr;
1586
1565
  this.__wbg_ptr = 0;
1587
1566
  IndividualFinalization.unregister(this);
1588
1567
  return ptr;
1589
1568
  }
1590
-
1591
1569
  free() {
1592
1570
  const ptr = this.__destroy_into_raw();
1593
1571
  wasm.__wbg_individual_free(ptr, 0);
@@ -1633,12 +1611,7 @@ export class Individual {
1633
1611
  }
1634
1612
  if (Symbol.dispose) Individual.prototype[Symbol.dispose] = Individual.prototype.free;
1635
1613
 
1636
- const IndividualIdFinalization = (typeof FinalizationRegistry === 'undefined')
1637
- ? { register: () => {}, unregister: () => {} }
1638
- : new FinalizationRegistry(ptr => wasm.__wbg_individualid_free(ptr >>> 0, 1));
1639
-
1640
1614
  export class IndividualId {
1641
-
1642
1615
  static __wrap(ptr) {
1643
1616
  ptr = ptr >>> 0;
1644
1617
  const obj = Object.create(IndividualId.prototype);
@@ -1646,14 +1619,12 @@ export class IndividualId {
1646
1619
  IndividualIdFinalization.register(obj, obj.__wbg_ptr, obj);
1647
1620
  return obj;
1648
1621
  }
1649
-
1650
1622
  __destroy_into_raw() {
1651
1623
  const ptr = this.__wbg_ptr;
1652
1624
  this.__wbg_ptr = 0;
1653
1625
  IndividualIdFinalization.unregister(this);
1654
1626
  return ptr;
1655
1627
  }
1656
-
1657
1628
  free() {
1658
1629
  const ptr = this.__destroy_into_raw();
1659
1630
  wasm.__wbg_individualid_free(ptr, 0);
@@ -1670,19 +1641,13 @@ export class IndividualId {
1670
1641
  }
1671
1642
  if (Symbol.dispose) IndividualId.prototype[Symbol.dispose] = IndividualId.prototype.free;
1672
1643
 
1673
- const InvocationFinalization = (typeof FinalizationRegistry === 'undefined')
1674
- ? { register: () => {}, unregister: () => {} }
1675
- : new FinalizationRegistry(ptr => wasm.__wbg_invocation_free(ptr >>> 0, 1));
1676
-
1677
1644
  export class Invocation {
1678
-
1679
1645
  __destroy_into_raw() {
1680
1646
  const ptr = this.__wbg_ptr;
1681
1647
  this.__wbg_ptr = 0;
1682
1648
  InvocationFinalization.unregister(this);
1683
1649
  return ptr;
1684
1650
  }
1685
-
1686
1651
  free() {
1687
1652
  const ptr = this.__destroy_into_raw();
1688
1653
  wasm.__wbg_invocation_free(ptr, 0);
@@ -1690,12 +1655,7 @@ export class Invocation {
1690
1655
  }
1691
1656
  if (Symbol.dispose) Invocation.prototype[Symbol.dispose] = Invocation.prototype.free;
1692
1657
 
1693
- const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
1694
- ? { register: () => {}, unregister: () => {} }
1695
- : new FinalizationRegistry(ptr => wasm.__wbg_keyhive_free(ptr >>> 0, 1));
1696
-
1697
1658
  export class Keyhive {
1698
-
1699
1659
  static __wrap(ptr) {
1700
1660
  ptr = ptr >>> 0;
1701
1661
  const obj = Object.create(Keyhive.prototype);
@@ -1703,14 +1663,12 @@ export class Keyhive {
1703
1663
  KeyhiveFinalization.register(obj, obj.__wbg_ptr, obj);
1704
1664
  return obj;
1705
1665
  }
1706
-
1707
1666
  __destroy_into_raw() {
1708
1667
  const ptr = this.__wbg_ptr;
1709
1668
  this.__wbg_ptr = 0;
1710
1669
  KeyhiveFinalization.unregister(this);
1711
1670
  return ptr;
1712
1671
  }
1713
-
1714
1672
  free() {
1715
1673
  const ptr = this.__destroy_into_raw();
1716
1674
  wasm.__wbg_keyhive_free(ptr, 0);
@@ -1925,6 +1883,13 @@ export class Keyhive {
1925
1883
  const ret = wasm.keyhive_tryEncryptArchive(this.__wbg_ptr, doc.__wbg_ptr, content_ref.__wbg_ptr, ptr0, len0, ptr1, len1);
1926
1884
  return ret;
1927
1885
  }
1886
+ /**
1887
+ * @returns {Promise<Set<any>>}
1888
+ */
1889
+ pendingEventHashes() {
1890
+ const ret = wasm.keyhive_pendingEventHashes(this.__wbg_ptr);
1891
+ return ret;
1892
+ }
1928
1893
  /**
1929
1894
  * @param {ContactCard} contact_card
1930
1895
  * @returns {Promise<Individual>}
@@ -2031,12 +1996,7 @@ export class Keyhive {
2031
1996
  }
2032
1997
  if (Symbol.dispose) Keyhive.prototype[Symbol.dispose] = Keyhive.prototype.free;
2033
1998
 
2034
- const MemberedFinalization = (typeof FinalizationRegistry === 'undefined')
2035
- ? { register: () => {}, unregister: () => {} }
2036
- : new FinalizationRegistry(ptr => wasm.__wbg_membered_free(ptr >>> 0, 1));
2037
-
2038
1999
  export class Membered {
2039
-
2040
2000
  static __wrap(ptr) {
2041
2001
  ptr = ptr >>> 0;
2042
2002
  const obj = Object.create(Membered.prototype);
@@ -2044,14 +2004,12 @@ export class Membered {
2044
2004
  MemberedFinalization.register(obj, obj.__wbg_ptr, obj);
2045
2005
  return obj;
2046
2006
  }
2047
-
2048
2007
  __destroy_into_raw() {
2049
2008
  const ptr = this.__wbg_ptr;
2050
2009
  this.__wbg_ptr = 0;
2051
2010
  MemberedFinalization.unregister(this);
2052
2011
  return ptr;
2053
2012
  }
2054
-
2055
2013
  free() {
2056
2014
  const ptr = this.__destroy_into_raw();
2057
2015
  wasm.__wbg_membered_free(ptr, 0);
@@ -2059,12 +2017,7 @@ export class Membered {
2059
2017
  }
2060
2018
  if (Symbol.dispose) Membered.prototype[Symbol.dispose] = Membered.prototype.free;
2061
2019
 
2062
- const MembershipFinalization = (typeof FinalizationRegistry === 'undefined')
2063
- ? { register: () => {}, unregister: () => {} }
2064
- : new FinalizationRegistry(ptr => wasm.__wbg_membership_free(ptr >>> 0, 1));
2065
-
2066
2020
  export class Membership {
2067
-
2068
2021
  static __wrap(ptr) {
2069
2022
  ptr = ptr >>> 0;
2070
2023
  const obj = Object.create(Membership.prototype);
@@ -2072,14 +2025,12 @@ export class Membership {
2072
2025
  MembershipFinalization.register(obj, obj.__wbg_ptr, obj);
2073
2026
  return obj;
2074
2027
  }
2075
-
2076
2028
  __destroy_into_raw() {
2077
2029
  const ptr = this.__wbg_ptr;
2078
2030
  this.__wbg_ptr = 0;
2079
2031
  MembershipFinalization.unregister(this);
2080
2032
  return ptr;
2081
2033
  }
2082
-
2083
2034
  free() {
2084
2035
  const ptr = this.__destroy_into_raw();
2085
2036
  wasm.__wbg_membership_free(ptr, 0);
@@ -2101,12 +2052,7 @@ export class Membership {
2101
2052
  }
2102
2053
  if (Symbol.dispose) Membership.prototype[Symbol.dispose] = Membership.prototype.free;
2103
2054
 
2104
- const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
2105
- ? { register: () => {}, unregister: () => {} }
2106
- : new FinalizationRegistry(ptr => wasm.__wbg_peer_free(ptr >>> 0, 1));
2107
-
2108
2055
  export class Peer {
2109
-
2110
2056
  static __wrap(ptr) {
2111
2057
  ptr = ptr >>> 0;
2112
2058
  const obj = Object.create(Peer.prototype);
@@ -2114,14 +2060,12 @@ export class Peer {
2114
2060
  PeerFinalization.register(obj, obj.__wbg_ptr, obj);
2115
2061
  return obj;
2116
2062
  }
2117
-
2118
2063
  __destroy_into_raw() {
2119
2064
  const ptr = this.__wbg_ptr;
2120
2065
  this.__wbg_ptr = 0;
2121
2066
  PeerFinalization.unregister(this);
2122
2067
  return ptr;
2123
2068
  }
2124
-
2125
2069
  free() {
2126
2070
  const ptr = this.__destroy_into_raw();
2127
2071
  wasm.__wbg_peer_free(ptr, 0);
@@ -2180,12 +2124,7 @@ export class Peer {
2180
2124
  }
2181
2125
  if (Symbol.dispose) Peer.prototype[Symbol.dispose] = Peer.prototype.free;
2182
2126
 
2183
- const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
2184
- ? { register: () => {}, unregister: () => {} }
2185
- : new FinalizationRegistry(ptr => wasm.__wbg_revocation_free(ptr >>> 0, 1));
2186
-
2187
2127
  export class Revocation {
2188
-
2189
2128
  static __wrap(ptr) {
2190
2129
  ptr = ptr >>> 0;
2191
2130
  const obj = Object.create(Revocation.prototype);
@@ -2193,14 +2132,12 @@ export class Revocation {
2193
2132
  RevocationFinalization.register(obj, obj.__wbg_ptr, obj);
2194
2133
  return obj;
2195
2134
  }
2196
-
2197
2135
  __destroy_into_raw() {
2198
2136
  const ptr = this.__wbg_ptr;
2199
2137
  this.__wbg_ptr = 0;
2200
2138
  RevocationFinalization.unregister(this);
2201
2139
  return ptr;
2202
2140
  }
2203
-
2204
2141
  free() {
2205
2142
  const ptr = this.__destroy_into_raw();
2206
2143
  wasm.__wbg_revocation_free(ptr, 0);
@@ -2236,12 +2173,7 @@ export class Revocation {
2236
2173
  }
2237
2174
  if (Symbol.dispose) Revocation.prototype[Symbol.dispose] = Revocation.prototype.free;
2238
2175
 
2239
- const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
2240
- ? { register: () => {}, unregister: () => {} }
2241
- : new FinalizationRegistry(ptr => wasm.__wbg_sharekey_free(ptr >>> 0, 1));
2242
-
2243
2176
  export class ShareKey {
2244
-
2245
2177
  static __wrap(ptr) {
2246
2178
  ptr = ptr >>> 0;
2247
2179
  const obj = Object.create(ShareKey.prototype);
@@ -2249,14 +2181,12 @@ export class ShareKey {
2249
2181
  ShareKeyFinalization.register(obj, obj.__wbg_ptr, obj);
2250
2182
  return obj;
2251
2183
  }
2252
-
2253
2184
  __destroy_into_raw() {
2254
2185
  const ptr = this.__wbg_ptr;
2255
2186
  this.__wbg_ptr = 0;
2256
2187
  ShareKeyFinalization.unregister(this);
2257
2188
  return ptr;
2258
2189
  }
2259
-
2260
2190
  free() {
2261
2191
  const ptr = this.__destroy_into_raw();
2262
2192
  wasm.__wbg_sharekey_free(ptr, 0);
@@ -2264,12 +2194,7 @@ export class ShareKey {
2264
2194
  }
2265
2195
  if (Symbol.dispose) ShareKey.prototype[Symbol.dispose] = ShareKey.prototype.free;
2266
2196
 
2267
- const SignedFinalization = (typeof FinalizationRegistry === 'undefined')
2268
- ? { register: () => {}, unregister: () => {} }
2269
- : new FinalizationRegistry(ptr => wasm.__wbg_signed_free(ptr >>> 0, 1));
2270
-
2271
2197
  export class Signed {
2272
-
2273
2198
  static __wrap(ptr) {
2274
2199
  ptr = ptr >>> 0;
2275
2200
  const obj = Object.create(Signed.prototype);
@@ -2277,14 +2202,12 @@ export class Signed {
2277
2202
  SignedFinalization.register(obj, obj.__wbg_ptr, obj);
2278
2203
  return obj;
2279
2204
  }
2280
-
2281
2205
  __destroy_into_raw() {
2282
2206
  const ptr = this.__wbg_ptr;
2283
2207
  this.__wbg_ptr = 0;
2284
2208
  SignedFinalization.unregister(this);
2285
2209
  return ptr;
2286
2210
  }
2287
-
2288
2211
  free() {
2289
2212
  const ptr = this.__destroy_into_raw();
2290
2213
  wasm.__wbg_signed_free(ptr, 0);
@@ -2351,12 +2274,7 @@ export class Signed {
2351
2274
  }
2352
2275
  if (Symbol.dispose) Signed.prototype[Symbol.dispose] = Signed.prototype.free;
2353
2276
 
2354
- const SignedCgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
2355
- ? { register: () => {}, unregister: () => {} }
2356
- : new FinalizationRegistry(ptr => wasm.__wbg_signedcgkaoperation_free(ptr >>> 0, 1));
2357
-
2358
2277
  export class SignedCgkaOperation {
2359
-
2360
2278
  static __wrap(ptr) {
2361
2279
  ptr = ptr >>> 0;
2362
2280
  const obj = Object.create(SignedCgkaOperation.prototype);
@@ -2364,14 +2282,12 @@ export class SignedCgkaOperation {
2364
2282
  SignedCgkaOperationFinalization.register(obj, obj.__wbg_ptr, obj);
2365
2283
  return obj;
2366
2284
  }
2367
-
2368
2285
  __destroy_into_raw() {
2369
2286
  const ptr = this.__wbg_ptr;
2370
2287
  this.__wbg_ptr = 0;
2371
2288
  SignedCgkaOperationFinalization.unregister(this);
2372
2289
  return ptr;
2373
2290
  }
2374
-
2375
2291
  free() {
2376
2292
  const ptr = this.__destroy_into_raw();
2377
2293
  wasm.__wbg_signedcgkaoperation_free(ptr, 0);
@@ -2411,12 +2327,7 @@ export class SignedCgkaOperation {
2411
2327
  }
2412
2328
  if (Symbol.dispose) SignedCgkaOperation.prototype[Symbol.dispose] = SignedCgkaOperation.prototype.free;
2413
2329
 
2414
- const SignedDelegationFinalization = (typeof FinalizationRegistry === 'undefined')
2415
- ? { register: () => {}, unregister: () => {} }
2416
- : new FinalizationRegistry(ptr => wasm.__wbg_signeddelegation_free(ptr >>> 0, 1));
2417
-
2418
2330
  export class SignedDelegation {
2419
-
2420
2331
  static __wrap(ptr) {
2421
2332
  ptr = ptr >>> 0;
2422
2333
  const obj = Object.create(SignedDelegation.prototype);
@@ -2424,14 +2335,12 @@ export class SignedDelegation {
2424
2335
  SignedDelegationFinalization.register(obj, obj.__wbg_ptr, obj);
2425
2336
  return obj;
2426
2337
  }
2427
-
2428
2338
  __destroy_into_raw() {
2429
2339
  const ptr = this.__wbg_ptr;
2430
2340
  this.__wbg_ptr = 0;
2431
2341
  SignedDelegationFinalization.unregister(this);
2432
2342
  return ptr;
2433
2343
  }
2434
-
2435
2344
  free() {
2436
2345
  const ptr = this.__destroy_into_raw();
2437
2346
  wasm.__wbg_signeddelegation_free(ptr, 0);
@@ -2471,19 +2380,13 @@ export class SignedDelegation {
2471
2380
  }
2472
2381
  if (Symbol.dispose) SignedDelegation.prototype[Symbol.dispose] = SignedDelegation.prototype.free;
2473
2382
 
2474
- const SignedInvocationFinalization = (typeof FinalizationRegistry === 'undefined')
2475
- ? { register: () => {}, unregister: () => {} }
2476
- : new FinalizationRegistry(ptr => wasm.__wbg_signedinvocation_free(ptr >>> 0, 1));
2477
-
2478
2383
  export class SignedInvocation {
2479
-
2480
2384
  __destroy_into_raw() {
2481
2385
  const ptr = this.__wbg_ptr;
2482
2386
  this.__wbg_ptr = 0;
2483
2387
  SignedInvocationFinalization.unregister(this);
2484
2388
  return ptr;
2485
2389
  }
2486
-
2487
2390
  free() {
2488
2391
  const ptr = this.__destroy_into_raw();
2489
2392
  wasm.__wbg_signedinvocation_free(ptr, 0);
@@ -2491,12 +2394,7 @@ export class SignedInvocation {
2491
2394
  }
2492
2395
  if (Symbol.dispose) SignedInvocation.prototype[Symbol.dispose] = SignedInvocation.prototype.free;
2493
2396
 
2494
- const SignedRevocationFinalization = (typeof FinalizationRegistry === 'undefined')
2495
- ? { register: () => {}, unregister: () => {} }
2496
- : new FinalizationRegistry(ptr => wasm.__wbg_signedrevocation_free(ptr >>> 0, 1));
2497
-
2498
2397
  export class SignedRevocation {
2499
-
2500
2398
  static __wrap(ptr) {
2501
2399
  ptr = ptr >>> 0;
2502
2400
  const obj = Object.create(SignedRevocation.prototype);
@@ -2504,14 +2402,12 @@ export class SignedRevocation {
2504
2402
  SignedRevocationFinalization.register(obj, obj.__wbg_ptr, obj);
2505
2403
  return obj;
2506
2404
  }
2507
-
2508
2405
  __destroy_into_raw() {
2509
2406
  const ptr = this.__wbg_ptr;
2510
2407
  this.__wbg_ptr = 0;
2511
2408
  SignedRevocationFinalization.unregister(this);
2512
2409
  return ptr;
2513
2410
  }
2514
-
2515
2411
  free() {
2516
2412
  const ptr = this.__destroy_into_raw();
2517
2413
  wasm.__wbg_signedrevocation_free(ptr, 0);
@@ -2551,12 +2447,7 @@ export class SignedRevocation {
2551
2447
  }
2552
2448
  if (Symbol.dispose) SignedRevocation.prototype[Symbol.dispose] = SignedRevocation.prototype.free;
2553
2449
 
2554
- const SignerFinalization = (typeof FinalizationRegistry === 'undefined')
2555
- ? { register: () => {}, unregister: () => {} }
2556
- : new FinalizationRegistry(ptr => wasm.__wbg_signer_free(ptr >>> 0, 1));
2557
-
2558
2450
  export class Signer {
2559
-
2560
2451
  static __wrap(ptr) {
2561
2452
  ptr = ptr >>> 0;
2562
2453
  const obj = Object.create(Signer.prototype);
@@ -2564,14 +2455,12 @@ export class Signer {
2564
2455
  SignerFinalization.register(obj, obj.__wbg_ptr, obj);
2565
2456
  return obj;
2566
2457
  }
2567
-
2568
2458
  __destroy_into_raw() {
2569
2459
  const ptr = this.__wbg_ptr;
2570
2460
  this.__wbg_ptr = 0;
2571
2461
  SignerFinalization.unregister(this);
2572
2462
  return ptr;
2573
2463
  }
2574
-
2575
2464
  free() {
2576
2465
  const ptr = this.__destroy_into_raw();
2577
2466
  wasm.__wbg_signer_free(ptr, 0);
@@ -2662,12 +2551,7 @@ export class Signer {
2662
2551
  }
2663
2552
  if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
2664
2553
 
2665
- const StatsFinalization = (typeof FinalizationRegistry === 'undefined')
2666
- ? { register: () => {}, unregister: () => {} }
2667
- : new FinalizationRegistry(ptr => wasm.__wbg_stats_free(ptr >>> 0, 1));
2668
-
2669
2554
  export class Stats {
2670
-
2671
2555
  static __wrap(ptr) {
2672
2556
  ptr = ptr >>> 0;
2673
2557
  const obj = Object.create(Stats.prototype);
@@ -2675,14 +2559,12 @@ export class Stats {
2675
2559
  StatsFinalization.register(obj, obj.__wbg_ptr, obj);
2676
2560
  return obj;
2677
2561
  }
2678
-
2679
2562
  __destroy_into_raw() {
2680
2563
  const ptr = this.__wbg_ptr;
2681
2564
  this.__wbg_ptr = 0;
2682
2565
  StatsFinalization.unregister(this);
2683
2566
  return ptr;
2684
2567
  }
2685
-
2686
2568
  free() {
2687
2569
  const ptr = this.__destroy_into_raw();
2688
2570
  wasm.__wbg_stats_free(ptr, 0);
@@ -2802,12 +2684,7 @@ export class Stats {
2802
2684
  }
2803
2685
  if (Symbol.dispose) Stats.prototype[Symbol.dispose] = Stats.prototype.free;
2804
2686
 
2805
- const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
2806
- ? { register: () => {}, unregister: () => {} }
2807
- : new FinalizationRegistry(ptr => wasm.__wbg_summary_free(ptr >>> 0, 1));
2808
-
2809
2687
  export class Summary {
2810
-
2811
2688
  static __wrap(ptr) {
2812
2689
  ptr = ptr >>> 0;
2813
2690
  const obj = Object.create(Summary.prototype);
@@ -2815,14 +2692,12 @@ export class Summary {
2815
2692
  SummaryFinalization.register(obj, obj.__wbg_ptr, obj);
2816
2693
  return obj;
2817
2694
  }
2818
-
2819
2695
  __destroy_into_raw() {
2820
2696
  const ptr = this.__wbg_ptr;
2821
2697
  this.__wbg_ptr = 0;
2822
2698
  SummaryFinalization.unregister(this);
2823
2699
  return ptr;
2824
2700
  }
2825
-
2826
2701
  free() {
2827
2702
  const ptr = this.__destroy_into_raw();
2828
2703
  wasm.__wbg_summary_free(ptr, 0);
@@ -2844,7 +2719,17 @@ export class Summary {
2844
2719
  }
2845
2720
  if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
2846
2721
 
2847
- export function __wbg_Error_e83987f665cf5504(arg0, arg1) {
2722
+ /**
2723
+ * Panic hook lets us get better error messages if our Rust code ever panics.
2724
+ *
2725
+ * This function needs to be called at least once during initialisation.
2726
+ * https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
2727
+ */
2728
+ export function setPanicHook() {
2729
+ wasm.setPanicHook();
2730
+ }
2731
+
2732
+ export function __wbg_Error_52673b7de5a0ca89(arg0, arg1) {
2848
2733
  const ret = Error(getStringFromWasm0(arg0, arg1));
2849
2734
  return ret;
2850
2735
  };
@@ -2870,7 +2755,7 @@ export function __wbg___wasm_refgen_toPeer_f5e24110e2d41e74(arg0) {
2870
2755
  return ptr1;
2871
2756
  };
2872
2757
 
2873
- export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
2758
+ export function __wbg___wbindgen_debug_string_adfb662ae34724b6(arg0, arg1) {
2874
2759
  const ret = debugString(arg1);
2875
2760
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2876
2761
  const len1 = WASM_VECTOR_LEN;
@@ -2878,32 +2763,32 @@ export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
2878
2763
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2879
2764
  };
2880
2765
 
2881
- export function __wbg___wbindgen_is_function_ee8a6c5833c90377(arg0) {
2766
+ export function __wbg___wbindgen_is_function_8d400b8b1af978cd(arg0) {
2882
2767
  const ret = typeof(arg0) === 'function';
2883
2768
  return ret;
2884
2769
  };
2885
2770
 
2886
- export function __wbg___wbindgen_is_object_c818261d21f283a4(arg0) {
2771
+ export function __wbg___wbindgen_is_object_ce774f3490692386(arg0) {
2887
2772
  const val = arg0;
2888
2773
  const ret = typeof(val) === 'object' && val !== null;
2889
2774
  return ret;
2890
2775
  };
2891
2776
 
2892
- export function __wbg___wbindgen_is_string_fbb76cb2940daafd(arg0) {
2777
+ export function __wbg___wbindgen_is_string_704ef9c8fc131030(arg0) {
2893
2778
  const ret = typeof(arg0) === 'string';
2894
2779
  return ret;
2895
2780
  };
2896
2781
 
2897
- export function __wbg___wbindgen_is_undefined_2d472862bd29a478(arg0) {
2782
+ export function __wbg___wbindgen_is_undefined_f6b95eab589e0269(arg0) {
2898
2783
  const ret = arg0 === undefined;
2899
2784
  return ret;
2900
2785
  };
2901
2786
 
2902
- export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
2787
+ export function __wbg___wbindgen_throw_dd24417ed36fc46e(arg0, arg1) {
2903
2788
  throw new Error(getStringFromWasm0(arg0, arg1));
2904
2789
  };
2905
2790
 
2906
- export function __wbg__wbg_cb_unref_2454a539ea5790d9(arg0) {
2791
+ export function __wbg__wbg_cb_unref_87dfb5aaa0cbcea7(arg0) {
2907
2792
  arg0._wbg_cb_unref();
2908
2793
  };
2909
2794
 
@@ -2912,6 +2797,11 @@ export function __wbg_access_new(arg0) {
2912
2797
  return ret;
2913
2798
  };
2914
2799
 
2800
+ export function __wbg_add_f0bf6d9527665471(arg0, arg1) {
2801
+ const ret = arg0.add(arg1);
2802
+ return ret;
2803
+ };
2804
+
2915
2805
  export function __wbg_agent_new(arg0) {
2916
2806
  const ret = Agent.__wrap(arg0);
2917
2807
  return ret;
@@ -2922,12 +2812,12 @@ export function __wbg_archive_new(arg0) {
2922
2812
  return ret;
2923
2813
  };
2924
2814
 
2925
- export function __wbg_call_525440f72fbfc0ea() { return handleError(function (arg0, arg1, arg2) {
2815
+ export function __wbg_call_3020136f7a2d6e44() { return handleError(function (arg0, arg1, arg2) {
2926
2816
  const ret = arg0.call(arg1, arg2);
2927
2817
  return ret;
2928
2818
  }, arguments) };
2929
2819
 
2930
- export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg0, arg1) {
2820
+ export function __wbg_call_abb4ff46ce38be40() { return handleError(function (arg0, arg1) {
2931
2821
  const ret = arg0.call(arg1);
2932
2822
  return ret;
2933
2823
  }, arguments) };
@@ -3047,12 +2937,12 @@ export function __wbg_event_new(arg0) {
3047
2937
  return ret;
3048
2938
  };
3049
2939
 
3050
- export function __wbg_exportKey_14f4c9c1691e79dc() { return handleError(function (arg0, arg1, arg2, arg3) {
2940
+ export function __wbg_exportKey_fd2f753afcdf2526() { return handleError(function (arg0, arg1, arg2, arg3) {
3051
2941
  const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
3052
2942
  return ret;
3053
2943
  }, arguments) };
3054
2944
 
3055
- export function __wbg_generateKey_3530d4e1a89ee5b4() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2945
+ export function __wbg_generateKey_deeedd395df4b668() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3056
2946
  const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
3057
2947
  return ret;
3058
2948
  }, arguments) };
@@ -3066,22 +2956,22 @@ export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(fu
3066
2956
  arg0.getRandomValues(arg1);
3067
2957
  }, arguments) };
3068
2958
 
3069
- export function __wbg_get_7bed016f185add81(arg0, arg1) {
2959
+ export function __wbg_get_6b7bd52aca3f9671(arg0, arg1) {
3070
2960
  const ret = arg0[arg1 >>> 0];
3071
2961
  return ret;
3072
2962
  };
3073
2963
 
3074
- export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0, arg1) {
2964
+ export function __wbg_get_af9dab7e9603ea93() { return handleError(function (arg0, arg1) {
3075
2965
  const ret = Reflect.get(arg0, arg1);
3076
2966
  return ret;
3077
2967
  }, arguments) };
3078
2968
 
3079
- export function __wbg_get_private_key_0a3a263ca613b0c0(arg0) {
2969
+ export function __wbg_get_private_key_e298c060449e1131(arg0) {
3080
2970
  const ret = arg0.privateKey;
3081
2971
  return ret;
3082
2972
  };
3083
2973
 
3084
- export function __wbg_get_public_key_1e2c11d159e34827(arg0) {
2974
+ export function __wbg_get_public_key_f899b81b4ccc126b(arg0) {
3085
2975
  const ret = arg0.publicKey;
3086
2976
  return ret;
3087
2977
  };
@@ -3096,7 +2986,7 @@ export function __wbg_individual_new(arg0) {
3096
2986
  return ret;
3097
2987
  };
3098
2988
 
3099
- export function __wbg_instanceof_Crypto_2574e69763b89701(arg0) {
2989
+ export function __wbg_instanceof_Crypto_ddb7f04c058ba561(arg0) {
3100
2990
  let result;
3101
2991
  try {
3102
2992
  result = arg0 instanceof Crypto;
@@ -3112,12 +3002,12 @@ export function __wbg_keyhive_new(arg0) {
3112
3002
  return ret;
3113
3003
  };
3114
3004
 
3115
- export function __wbg_length_69bca3cb64fc8748(arg0) {
3005
+ export function __wbg_length_22ac23eaec9d8053(arg0) {
3116
3006
  const ret = arg0.length;
3117
3007
  return ret;
3118
3008
  };
3119
3009
 
3120
- export function __wbg_length_cdd215e10d9dd507(arg0) {
3010
+ export function __wbg_length_d45040a40c570362(arg0) {
3121
3011
  const ret = arg0.length;
3122
3012
  return ret;
3123
3013
  };
@@ -3177,32 +3067,18 @@ export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
3177
3067
  return ret;
3178
3068
  };
3179
3069
 
3180
- export function __wbg_new_3c3d849046688a66(arg0, arg1) {
3181
- try {
3182
- var state0 = {a: arg0, b: arg1};
3183
- var cb0 = (arg0, arg1) => {
3184
- const a = state0.a;
3185
- state0.a = 0;
3186
- try {
3187
- return wasm_bindgen__convert__closures_____invoke__h1069d9784c192ccc(a, state0.b, arg0, arg1);
3188
- } finally {
3189
- state0.a = a;
3190
- }
3191
- };
3192
- const ret = new Promise(cb0);
3193
- return ret;
3194
- } finally {
3195
- state0.a = state0.b = 0;
3196
- }
3070
+ export function __wbg_new_25f239778d6112b9() {
3071
+ const ret = new Array();
3072
+ return ret;
3197
3073
  };
3198
3074
 
3199
- export function __wbg_new_5a79be3ab53b8aa5(arg0) {
3075
+ export function __wbg_new_6421f6084cc5bc5a(arg0) {
3200
3076
  const ret = new Uint8Array(arg0);
3201
3077
  return ret;
3202
3078
  };
3203
3079
 
3204
- export function __wbg_new_68651c719dcda04e() {
3205
- const ret = new Map();
3080
+ export function __wbg_new_746bb58304020083(arg0) {
3081
+ const ret = new Set(arg0);
3206
3082
  return ret;
3207
3083
  };
3208
3084
 
@@ -3211,27 +3087,46 @@ export function __wbg_new_8a6f238a6ece86ea() {
3211
3087
  return ret;
3212
3088
  };
3213
3089
 
3214
- export function __wbg_new_a7442b4b19c1a356(arg0, arg1) {
3215
- const ret = new Error(getStringFromWasm0(arg0, arg1));
3090
+ export function __wbg_new_b546ae120718850e() {
3091
+ const ret = new Map();
3216
3092
  return ret;
3217
3093
  };
3218
3094
 
3219
- export function __wbg_new_e17d9f43105b08be() {
3220
- const ret = new Array();
3095
+ export function __wbg_new_df1173567d5ff028(arg0, arg1) {
3096
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
3221
3097
  return ret;
3222
3098
  };
3223
3099
 
3224
- export function __wbg_new_from_slice_92f4d78ca282a2d2(arg0, arg1) {
3100
+ export function __wbg_new_ff12d2b041fb48f1(arg0, arg1) {
3101
+ try {
3102
+ var state0 = {a: arg0, b: arg1};
3103
+ var cb0 = (arg0, arg1) => {
3104
+ const a = state0.a;
3105
+ state0.a = 0;
3106
+ try {
3107
+ return wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385(a, state0.b, arg0, arg1);
3108
+ } finally {
3109
+ state0.a = a;
3110
+ }
3111
+ };
3112
+ const ret = new Promise(cb0);
3113
+ return ret;
3114
+ } finally {
3115
+ state0.a = state0.b = 0;
3116
+ }
3117
+ };
3118
+
3119
+ export function __wbg_new_from_slice_f9c22b9153b26992(arg0, arg1) {
3225
3120
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
3226
3121
  return ret;
3227
3122
  };
3228
3123
 
3229
- export function __wbg_new_no_args_ee98eee5275000a4(arg0, arg1) {
3124
+ export function __wbg_new_no_args_cb138f77cf6151ee(arg0, arg1) {
3230
3125
  const ret = new Function(getStringFromWasm0(arg0, arg1));
3231
3126
  return ret;
3232
3127
  };
3233
3128
 
3234
- export function __wbg_new_with_length_01aa0dc35aa13543(arg0) {
3129
+ export function __wbg_new_with_length_aa5eaf41d35235e5(arg0) {
3235
3130
  const ret = new Uint8Array(arg0 >>> 0);
3236
3131
  return ret;
3237
3132
  };
@@ -3246,21 +3141,21 @@ export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
3246
3141
  return ret;
3247
3142
  };
3248
3143
 
3249
- export function __wbg_prototypesetcall_2a6620b6922694b2(arg0, arg1, arg2) {
3144
+ export function __wbg_prototypesetcall_dfe9b766cdc1f1fd(arg0, arg1, arg2) {
3250
3145
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
3251
3146
  };
3252
3147
 
3253
- export function __wbg_push_df81a39d04db858c(arg0, arg1) {
3148
+ export function __wbg_push_7d9be8f38fc13975(arg0, arg1) {
3254
3149
  const ret = arg0.push(arg1);
3255
3150
  return ret;
3256
3151
  };
3257
3152
 
3258
- export function __wbg_queueMicrotask_34d692c25c47d05b(arg0) {
3153
+ export function __wbg_queueMicrotask_9b549dfce8865860(arg0) {
3259
3154
  const ret = arg0.queueMicrotask;
3260
3155
  return ret;
3261
3156
  };
3262
3157
 
3263
- export function __wbg_queueMicrotask_9d76cacb20c84d58(arg0) {
3158
+ export function __wbg_queueMicrotask_fca69f5bfad613a5(arg0) {
3264
3159
  queueMicrotask(arg0);
3265
3160
  };
3266
3161
 
@@ -3273,17 +3168,17 @@ export function __wbg_require_60cc747a6bc5215a() { return handleError(function (
3273
3168
  return ret;
3274
3169
  }, arguments) };
3275
3170
 
3276
- export function __wbg_resolve_caf97c30b83f7053(arg0) {
3171
+ export function __wbg_resolve_fd5bfbaa4ce36e1e(arg0) {
3277
3172
  const ret = Promise.resolve(arg0);
3278
3173
  return ret;
3279
3174
  };
3280
3175
 
3281
- export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
3176
+ export function __wbg_set_efaaf145b9377369(arg0, arg1, arg2) {
3282
3177
  const ret = arg0.set(arg1, arg2);
3283
3178
  return ret;
3284
3179
  };
3285
3180
 
3286
- export function __wbg_set_name_d94846a29e626702(arg0, arg1, arg2) {
3181
+ export function __wbg_set_name_df69b75cb0b4de8a(arg0, arg1, arg2) {
3287
3182
  arg0.name = getStringFromWasm0(arg1, arg2);
3288
3183
  };
3289
3184
 
@@ -3292,7 +3187,7 @@ export function __wbg_sharekey_new(arg0) {
3292
3187
  return ret;
3293
3188
  };
3294
3189
 
3295
- export function __wbg_sign_0077f2aabd37825a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3190
+ export function __wbg_sign_c1f01ea899c052d8() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3296
3191
  const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
3297
3192
  return ret;
3298
3193
  }, arguments) };
@@ -3325,22 +3220,22 @@ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
3325
3220
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3326
3221
  };
3327
3222
 
3328
- export function __wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e() {
3223
+ export function __wbg_static_accessor_GLOBAL_769e6b65d6557335() {
3329
3224
  const ret = typeof global === 'undefined' ? null : global;
3330
3225
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3331
3226
  };
3332
3227
 
3333
- export function __wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac() {
3228
+ export function __wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1() {
3334
3229
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
3335
3230
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3336
3231
  };
3337
3232
 
3338
- export function __wbg_static_accessor_SELF_6fdf4b64710cc91b() {
3233
+ export function __wbg_static_accessor_SELF_08f5a74c69739274() {
3339
3234
  const ret = typeof self === 'undefined' ? null : self;
3340
3235
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3341
3236
  };
3342
3237
 
3343
- export function __wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2() {
3238
+ export function __wbg_static_accessor_WINDOW_a8924b26aa92d024() {
3344
3239
  const ret = typeof window === 'undefined' ? null : window;
3345
3240
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3346
3241
  };
@@ -3350,12 +3245,12 @@ export function __wbg_stats_new(arg0) {
3350
3245
  return ret;
3351
3246
  };
3352
3247
 
3353
- export function __wbg_subarray_480600f3d6a9f26c(arg0, arg1, arg2) {
3248
+ export function __wbg_subarray_845f2f5bce7d061a(arg0, arg1, arg2) {
3354
3249
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3355
3250
  return ret;
3356
3251
  };
3357
3252
 
3358
- export function __wbg_subtle_a158c8cba320b8ed(arg0) {
3253
+ export function __wbg_subtle_0109c00de0ea1788(arg0) {
3359
3254
  const ret = arg0.subtle;
3360
3255
  return ret;
3361
3256
  };
@@ -3365,13 +3260,13 @@ export function __wbg_summary_new(arg0) {
3365
3260
  return ret;
3366
3261
  };
3367
3262
 
3368
- export function __wbg_then_4f46f6544e6b4a28(arg0, arg1) {
3369
- const ret = arg0.then(arg1);
3263
+ export function __wbg_then_429f7caf1026411d(arg0, arg1, arg2) {
3264
+ const ret = arg0.then(arg1, arg2);
3370
3265
  return ret;
3371
3266
  };
3372
3267
 
3373
- export function __wbg_then_70d05cf780a18d77(arg0, arg1, arg2) {
3374
- const ret = arg0.then(arg1, arg2);
3268
+ export function __wbg_then_4f95312d68691235(arg0, arg1) {
3269
+ const ret = arg0.then(arg1);
3375
3270
  return ret;
3376
3271
  };
3377
3272
 
@@ -3466,9 +3361,9 @@ export function __wbindgen_cast_ae91babfc5c19b28(arg0, arg1) {
3466
3361
  return ret;
3467
3362
  };
3468
3363
 
3469
- export function __wbindgen_cast_bef74971622929eb(arg0, arg1) {
3470
- // Cast intrinsic for `Closure(Closure { dtor_idx: 462, function: Function { arguments: [Externref], shim_idx: 463, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3471
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1ba2ea4e4548722a, wasm_bindgen__convert__closures_____invoke__h270e774e62b586ab);
3364
+ export function __wbindgen_cast_b2e692da0ea8478a(arg0, arg1) {
3365
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 464, function: Function { arguments: [Externref], shim_idx: 465, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3366
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h56c1987c5374a416, wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069);
3472
3367
  return ret;
3473
3368
  };
3474
3369
 
@@ -3486,6 +3381,4 @@ export function __wbindgen_init_externref_table() {
3486
3381
  table.set(offset + 1, null);
3487
3382
  table.set(offset + 2, true);
3488
3383
  table.set(offset + 3, false);
3489
- ;
3490
3384
  };
3491
-