@keyhive/keyhive 0.0.0-alpha.1 → 0.0.0-alpha.4

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,8 +1,6 @@
1
1
 
2
2
  let imports = {};
3
3
  imports['__wbindgen_placeholder__'] = module.exports;
4
- let wasm;
5
- const { TextDecoder, TextEncoder } = require(`util`);
6
4
 
7
5
  let cachedUint8ArrayMemory0 = null;
8
6
 
@@ -48,20 +46,18 @@ function getArrayU8FromWasm0(ptr, len) {
48
46
 
49
47
  let WASM_VECTOR_LEN = 0;
50
48
 
51
- const cachedTextEncoder = new TextEncoder('utf-8');
49
+ const cachedTextEncoder = new TextEncoder();
52
50
 
53
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
54
- ? function (arg, view) {
55
- return cachedTextEncoder.encodeInto(arg, view);
51
+ if (!('encodeInto' in cachedTextEncoder)) {
52
+ cachedTextEncoder.encodeInto = function (arg, view) {
53
+ const buf = cachedTextEncoder.encode(arg);
54
+ view.set(buf);
55
+ return {
56
+ read: arg.length,
57
+ written: buf.length
58
+ };
59
+ }
56
60
  }
57
- : function (arg, view) {
58
- const buf = cachedTextEncoder.encode(arg);
59
- view.set(buf);
60
- return {
61
- read: arg.length,
62
- written: buf.length
63
- };
64
- });
65
61
 
66
62
  function passStringToWasm0(arg, malloc, realloc) {
67
63
 
@@ -92,7 +88,7 @@ function passStringToWasm0(arg, malloc, realloc) {
92
88
  }
93
89
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
94
90
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
95
- const ret = encodeString(arg, view);
91
+ const ret = cachedTextEncoder.encodeInto(arg, view);
96
92
 
97
93
  offset += ret.written;
98
94
  ptr = realloc(ptr, len, offset, 1) >>> 0;
@@ -243,15 +239,6 @@ function _assertClass(instance, klass) {
243
239
  throw new Error(`expected instance of ${klass.name}`);
244
240
  }
245
241
  }
246
- /**
247
- * Panic hook lets us get better error messages if our Rust code ever panics.
248
- *
249
- * This function needs to be called at least once during initialisation.
250
- * 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
251
- */
252
- module.exports.setPanicHook = function() {
253
- wasm.setPanicHook();
254
- };
255
242
 
256
243
  function passArrayJsValueToWasm0(array, malloc) {
257
244
  const ptr = malloc(array.length * 4, 4) >>> 0;
@@ -262,11 +249,21 @@ function passArrayJsValueToWasm0(array, malloc) {
262
249
  WASM_VECTOR_LEN = array.length;
263
250
  return ptr;
264
251
  }
265
- function __wbg_adapter_8(arg0, arg1, arg2) {
252
+ /**
253
+ * Panic hook lets us get better error messages if our Rust code ever panics.
254
+ *
255
+ * This function needs to be called at least once during initialisation.
256
+ * 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
257
+ */
258
+ exports.setPanicHook = function() {
259
+ wasm.setPanicHook();
260
+ };
261
+
262
+ function __wbg_adapter_10(arg0, arg1, arg2) {
266
263
  wasm.closure423_externref_shim(arg0, arg1, arg2);
267
264
  }
268
265
 
269
- function __wbg_adapter_272(arg0, arg1, arg2, arg3) {
266
+ function __wbg_adapter_274(arg0, arg1, arg2, arg3) {
270
267
  wasm.closure571_externref_shim(arg0, arg1, arg2, arg3);
271
268
  }
272
269
 
@@ -321,7 +318,9 @@ class Access {
321
318
  }
322
319
  }
323
320
  }
324
- module.exports.Access = Access;
321
+ if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
322
+
323
+ exports.Access = Access;
325
324
 
326
325
  const AddMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
327
326
  ? { register: () => {}, unregister: () => {} }
@@ -364,7 +363,9 @@ class AddMemberError {
364
363
  }
365
364
  }
366
365
  }
367
- module.exports.AddMemberError = AddMemberError;
366
+ if (Symbol.dispose) AddMemberError.prototype[Symbol.dispose] = AddMemberError.prototype.free;
367
+
368
+ exports.AddMemberError = AddMemberError;
368
369
 
369
370
  const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
370
371
  ? { register: () => {}, unregister: () => {} }
@@ -435,7 +436,9 @@ class Agent {
435
436
  return Identifier.__wrap(ret);
436
437
  }
437
438
  }
438
- module.exports.Agent = Agent;
439
+ if (Symbol.dispose) Agent.prototype[Symbol.dispose] = Agent.prototype.free;
440
+
441
+ exports.Agent = Agent;
439
442
 
440
443
  const ArchiveFinalization = (typeof FinalizationRegistry === 'undefined')
441
444
  ? { register: () => {}, unregister: () => {} }
@@ -505,7 +508,9 @@ class Archive {
505
508
  return Keyhive.__wrap(ret[0]);
506
509
  }
507
510
  }
508
- module.exports.Archive = Archive;
511
+ if (Symbol.dispose) Archive.prototype[Symbol.dispose] = Archive.prototype.free;
512
+
513
+ exports.Archive = Archive;
509
514
 
510
515
  const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
511
516
  ? { register: () => {}, unregister: () => {} }
@@ -533,7 +538,9 @@ class CannotParseEd25519SigningKey {
533
538
  wasm.__wbg_cannotparseed25519signingkey_free(ptr, 0);
534
539
  }
535
540
  }
536
- module.exports.CannotParseEd25519SigningKey = CannotParseEd25519SigningKey;
541
+ if (Symbol.dispose) CannotParseEd25519SigningKey.prototype[Symbol.dispose] = CannotParseEd25519SigningKey.prototype.free;
542
+
543
+ exports.CannotParseEd25519SigningKey = CannotParseEd25519SigningKey;
537
544
 
538
545
  const CannotParseIdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
539
546
  ? { register: () => {}, unregister: () => {} }
@@ -561,7 +568,9 @@ class CannotParseIdentifier {
561
568
  wasm.__wbg_cannotparseidentifier_free(ptr, 0);
562
569
  }
563
570
  }
564
- module.exports.CannotParseIdentifier = CannotParseIdentifier;
571
+ if (Symbol.dispose) CannotParseIdentifier.prototype[Symbol.dispose] = CannotParseIdentifier.prototype.free;
572
+
573
+ exports.CannotParseIdentifier = CannotParseIdentifier;
565
574
 
566
575
  const CapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
567
576
  ? { register: () => {}, unregister: () => {} }
@@ -610,7 +619,9 @@ class Capability {
610
619
  return SignedDelegation.__wrap(ret);
611
620
  }
612
621
  }
613
- module.exports.Capability = Capability;
622
+ if (Symbol.dispose) Capability.prototype[Symbol.dispose] = Capability.prototype.free;
623
+
624
+ exports.Capability = Capability;
614
625
 
615
626
  const CgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
616
627
  ? { register: () => {}, unregister: () => {} }
@@ -653,7 +664,9 @@ class CgkaOperation {
653
664
  }
654
665
  }
655
666
  }
656
- module.exports.CgkaOperation = CgkaOperation;
667
+ if (Symbol.dispose) CgkaOperation.prototype[Symbol.dispose] = CgkaOperation.prototype.free;
668
+
669
+ exports.CgkaOperation = CgkaOperation;
657
670
 
658
671
  const ChangeRefFinalization = (typeof FinalizationRegistry === 'undefined')
659
672
  ? { register: () => {}, unregister: () => {} }
@@ -708,7 +721,9 @@ class ChangeRef {
708
721
  return v1;
709
722
  }
710
723
  }
711
- module.exports.ChangeRef = ChangeRef;
724
+ if (Symbol.dispose) ChangeRef.prototype[Symbol.dispose] = ChangeRef.prototype.free;
725
+
726
+ exports.ChangeRef = ChangeRef;
712
727
 
713
728
  const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
714
729
  ? { register: () => {}, unregister: () => {} }
@@ -751,7 +766,9 @@ class CiphertextStore {
751
766
  return CiphertextStore.__wrap(ret);
752
767
  }
753
768
  }
754
- module.exports.CiphertextStore = CiphertextStore;
769
+ if (Symbol.dispose) CiphertextStore.prototype[Symbol.dispose] = CiphertextStore.prototype.free;
770
+
771
+ exports.CiphertextStore = CiphertextStore;
755
772
 
756
773
  const ContactCardFinalization = (typeof FinalizationRegistry === 'undefined')
757
774
  ? { register: () => {}, unregister: () => {} }
@@ -836,7 +853,9 @@ class ContactCard {
836
853
  }
837
854
  }
838
855
  }
839
- module.exports.ContactCard = ContactCard;
856
+ if (Symbol.dispose) ContactCard.prototype[Symbol.dispose] = ContactCard.prototype.free;
857
+
858
+ exports.ContactCard = ContactCard;
840
859
 
841
860
  const DelegationFinalization = (typeof FinalizationRegistry === 'undefined')
842
861
  ? { register: () => {}, unregister: () => {} }
@@ -892,7 +911,9 @@ class Delegation {
892
911
  return History.__wrap(ret);
893
912
  }
894
913
  }
895
- module.exports.Delegation = Delegation;
914
+ if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.free;
915
+
916
+ exports.Delegation = Delegation;
896
917
 
897
918
  const DelegationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
898
919
  ? { register: () => {}, unregister: () => {} }
@@ -912,7 +933,9 @@ class DelegationError {
912
933
  wasm.__wbg_delegationerror_free(ptr, 0);
913
934
  }
914
935
  }
915
- module.exports.DelegationError = DelegationError;
936
+ if (Symbol.dispose) DelegationError.prototype[Symbol.dispose] = DelegationError.prototype.free;
937
+
938
+ exports.DelegationError = DelegationError;
916
939
 
917
940
  const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
918
941
  ? { register: () => {}, unregister: () => {} }
@@ -981,7 +1004,9 @@ class DocContentRefs {
981
1004
  return v1;
982
1005
  }
983
1006
  }
984
- module.exports.DocContentRefs = DocContentRefs;
1007
+ if (Symbol.dispose) DocContentRefs.prototype[Symbol.dispose] = DocContentRefs.prototype.free;
1008
+
1009
+ exports.DocContentRefs = DocContentRefs;
985
1010
 
986
1011
  const DocumentFinalization = (typeof FinalizationRegistry === 'undefined')
987
1012
  ? { register: () => {}, unregister: () => {} }
@@ -1044,7 +1069,9 @@ class Document {
1044
1069
  return Agent.__wrap(ret);
1045
1070
  }
1046
1071
  }
1047
- module.exports.Document = Document;
1072
+ if (Symbol.dispose) Document.prototype[Symbol.dispose] = Document.prototype.free;
1073
+
1074
+ exports.Document = Document;
1048
1075
 
1049
1076
  const DocumentIdFinalization = (typeof FinalizationRegistry === 'undefined')
1050
1077
  ? { register: () => {}, unregister: () => {} }
@@ -1117,7 +1144,9 @@ class DocumentId {
1117
1144
  return v1;
1118
1145
  }
1119
1146
  }
1120
- module.exports.DocumentId = DocumentId;
1147
+ if (Symbol.dispose) DocumentId.prototype[Symbol.dispose] = DocumentId.prototype.free;
1148
+
1149
+ exports.DocumentId = DocumentId;
1121
1150
 
1122
1151
  const EncryptedFinalization = (typeof FinalizationRegistry === 'undefined')
1123
1152
  ? { register: () => {}, unregister: () => {} }
@@ -1199,7 +1228,9 @@ class Encrypted {
1199
1228
  return v1;
1200
1229
  }
1201
1230
  }
1202
- module.exports.Encrypted = Encrypted;
1231
+ if (Symbol.dispose) Encrypted.prototype[Symbol.dispose] = Encrypted.prototype.free;
1232
+
1233
+ exports.Encrypted = Encrypted;
1203
1234
 
1204
1235
  const EncryptedContentWithUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
1205
1236
  ? { register: () => {}, unregister: () => {} }
@@ -1241,7 +1272,9 @@ class EncryptedContentWithUpdate {
1241
1272
  return ret === 0 ? undefined : SignedCgkaOperation.__wrap(ret);
1242
1273
  }
1243
1274
  }
1244
- module.exports.EncryptedContentWithUpdate = EncryptedContentWithUpdate;
1275
+ if (Symbol.dispose) EncryptedContentWithUpdate.prototype[Symbol.dispose] = EncryptedContentWithUpdate.prototype.free;
1276
+
1277
+ exports.EncryptedContentWithUpdate = EncryptedContentWithUpdate;
1245
1278
 
1246
1279
  const EventFinalization = (typeof FinalizationRegistry === 'undefined')
1247
1280
  ? { register: () => {}, unregister: () => {} }
@@ -1312,7 +1345,9 @@ class Event {
1312
1345
  return ret === 0 ? undefined : SignedRevocation.__wrap(ret);
1313
1346
  }
1314
1347
  }
1315
- module.exports.Event = Event;
1348
+ if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
1349
+
1350
+ exports.Event = Event;
1316
1351
 
1317
1352
  const GenerateDocErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1318
1353
  ? { register: () => {}, unregister: () => {} }
@@ -1355,7 +1390,9 @@ class GenerateDocError {
1355
1390
  }
1356
1391
  }
1357
1392
  }
1358
- module.exports.GenerateDocError = GenerateDocError;
1393
+ if (Symbol.dispose) GenerateDocError.prototype[Symbol.dispose] = GenerateDocError.prototype.free;
1394
+
1395
+ exports.GenerateDocError = GenerateDocError;
1359
1396
 
1360
1397
  const GenerateWebCryptoErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1361
1398
  ? { register: () => {}, unregister: () => {} }
@@ -1398,7 +1435,9 @@ class GenerateWebCryptoError {
1398
1435
  }
1399
1436
  }
1400
1437
  }
1401
- module.exports.GenerateWebCryptoError = GenerateWebCryptoError;
1438
+ if (Symbol.dispose) GenerateWebCryptoError.prototype[Symbol.dispose] = GenerateWebCryptoError.prototype.free;
1439
+
1440
+ exports.GenerateWebCryptoError = GenerateWebCryptoError;
1402
1441
 
1403
1442
  const GetCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1404
1443
  ? { register: () => {}, unregister: () => {} }
@@ -1433,7 +1472,9 @@ class GetCiphertextError {
1433
1472
  }
1434
1473
  }
1435
1474
  }
1436
- module.exports.GetCiphertextError = GetCiphertextError;
1475
+ if (Symbol.dispose) GetCiphertextError.prototype[Symbol.dispose] = GetCiphertextError.prototype.free;
1476
+
1477
+ exports.GetCiphertextError = GetCiphertextError;
1437
1478
 
1438
1479
  const GroupFinalization = (typeof FinalizationRegistry === 'undefined')
1439
1480
  ? { register: () => {}, unregister: () => {} }
@@ -1505,7 +1546,9 @@ class Group {
1505
1546
  return Membered.__wrap(ret);
1506
1547
  }
1507
1548
  }
1508
- module.exports.Group = Group;
1549
+ if (Symbol.dispose) Group.prototype[Symbol.dispose] = Group.prototype.free;
1550
+
1551
+ exports.Group = Group;
1509
1552
 
1510
1553
  const GroupIdFinalization = (typeof FinalizationRegistry === 'undefined')
1511
1554
  ? { register: () => {}, unregister: () => {} }
@@ -1548,7 +1591,9 @@ class GroupId {
1548
1591
  }
1549
1592
  }
1550
1593
  }
1551
- module.exports.GroupId = GroupId;
1594
+ if (Symbol.dispose) GroupId.prototype[Symbol.dispose] = GroupId.prototype.free;
1595
+
1596
+ exports.GroupId = GroupId;
1552
1597
 
1553
1598
  const HistoryFinalization = (typeof FinalizationRegistry === 'undefined')
1554
1599
  ? { register: () => {}, unregister: () => {} }
@@ -1603,7 +1648,9 @@ class History {
1603
1648
  return v1;
1604
1649
  }
1605
1650
  }
1606
- module.exports.History = History;
1651
+ if (Symbol.dispose) History.prototype[Symbol.dispose] = History.prototype.free;
1652
+
1653
+ exports.History = History;
1607
1654
 
1608
1655
  const IdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
1609
1656
  ? { register: () => {}, unregister: () => {} }
@@ -1654,7 +1701,9 @@ class Identifier {
1654
1701
  return v1;
1655
1702
  }
1656
1703
  }
1657
- module.exports.Identifier = Identifier;
1704
+ if (Symbol.dispose) Identifier.prototype[Symbol.dispose] = Identifier.prototype.free;
1705
+
1706
+ exports.Identifier = Identifier;
1658
1707
 
1659
1708
  const IndividualFinalization = (typeof FinalizationRegistry === 'undefined')
1660
1709
  ? { register: () => {}, unregister: () => {} }
@@ -1720,7 +1769,9 @@ class Individual {
1720
1769
  return ShareKey.__wrap(ret);
1721
1770
  }
1722
1771
  }
1723
- module.exports.Individual = Individual;
1772
+ if (Symbol.dispose) Individual.prototype[Symbol.dispose] = Individual.prototype.free;
1773
+
1774
+ exports.Individual = Individual;
1724
1775
 
1725
1776
  const IndividualIdFinalization = (typeof FinalizationRegistry === 'undefined')
1726
1777
  ? { register: () => {}, unregister: () => {} }
@@ -1757,7 +1808,9 @@ class IndividualId {
1757
1808
  return v1;
1758
1809
  }
1759
1810
  }
1760
- module.exports.IndividualId = IndividualId;
1811
+ if (Symbol.dispose) IndividualId.prototype[Symbol.dispose] = IndividualId.prototype.free;
1812
+
1813
+ exports.IndividualId = IndividualId;
1761
1814
 
1762
1815
  const InvocationFinalization = (typeof FinalizationRegistry === 'undefined')
1763
1816
  ? { register: () => {}, unregister: () => {} }
@@ -1777,7 +1830,9 @@ class Invocation {
1777
1830
  wasm.__wbg_invocation_free(ptr, 0);
1778
1831
  }
1779
1832
  }
1780
- module.exports.Invocation = Invocation;
1833
+ if (Symbol.dispose) Invocation.prototype[Symbol.dispose] = Invocation.prototype.free;
1834
+
1835
+ exports.Invocation = Invocation;
1781
1836
 
1782
1837
  const JsDecryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1783
1838
  ? { register: () => {}, unregister: () => {} }
@@ -1805,7 +1860,9 @@ class JsDecryptError {
1805
1860
  wasm.__wbg_jsdecrypterror_free(ptr, 0);
1806
1861
  }
1807
1862
  }
1808
- module.exports.JsDecryptError = JsDecryptError;
1863
+ if (Symbol.dispose) JsDecryptError.prototype[Symbol.dispose] = JsDecryptError.prototype.free;
1864
+
1865
+ exports.JsDecryptError = JsDecryptError;
1809
1866
 
1810
1867
  const JsEncryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1811
1868
  ? { register: () => {}, unregister: () => {} }
@@ -1833,7 +1890,9 @@ class JsEncryptError {
1833
1890
  wasm.__wbg_jsencrypterror_free(ptr, 0);
1834
1891
  }
1835
1892
  }
1836
- module.exports.JsEncryptError = JsEncryptError;
1893
+ if (Symbol.dispose) JsEncryptError.prototype[Symbol.dispose] = JsEncryptError.prototype.free;
1894
+
1895
+ exports.JsEncryptError = JsEncryptError;
1837
1896
 
1838
1897
  const JsReceivePreKeyOpErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1839
1898
  ? { register: () => {}, unregister: () => {} }
@@ -1861,7 +1920,9 @@ class JsReceivePreKeyOpError {
1861
1920
  wasm.__wbg_jsreceiveprekeyoperror_free(ptr, 0);
1862
1921
  }
1863
1922
  }
1864
- module.exports.JsReceivePreKeyOpError = JsReceivePreKeyOpError;
1923
+ if (Symbol.dispose) JsReceivePreKeyOpError.prototype[Symbol.dispose] = JsReceivePreKeyOpError.prototype.free;
1924
+
1925
+ exports.JsReceivePreKeyOpError = JsReceivePreKeyOpError;
1865
1926
 
1866
1927
  const JsReceiveStaticEventErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1867
1928
  ? { register: () => {}, unregister: () => {} }
@@ -1889,7 +1950,9 @@ class JsReceiveStaticEventError {
1889
1950
  wasm.__wbg_jsreceivestaticeventerror_free(ptr, 0);
1890
1951
  }
1891
1952
  }
1892
- module.exports.JsReceiveStaticEventError = JsReceiveStaticEventError;
1953
+ if (Symbol.dispose) JsReceiveStaticEventError.prototype[Symbol.dispose] = JsReceiveStaticEventError.prototype.free;
1954
+
1955
+ exports.JsReceiveStaticEventError = JsReceiveStaticEventError;
1893
1956
 
1894
1957
  const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
1895
1958
  ? { register: () => {}, unregister: () => {} }
@@ -2199,7 +2262,9 @@ class Keyhive {
2199
2262
  return ret;
2200
2263
  }
2201
2264
  }
2202
- module.exports.Keyhive = Keyhive;
2265
+ if (Symbol.dispose) Keyhive.prototype[Symbol.dispose] = Keyhive.prototype.free;
2266
+
2267
+ exports.Keyhive = Keyhive;
2203
2268
 
2204
2269
  const MemberedFinalization = (typeof FinalizationRegistry === 'undefined')
2205
2270
  ? { register: () => {}, unregister: () => {} }
@@ -2227,7 +2292,9 @@ class Membered {
2227
2292
  wasm.__wbg_membered_free(ptr, 0);
2228
2293
  }
2229
2294
  }
2230
- module.exports.Membered = Membered;
2295
+ if (Symbol.dispose) Membered.prototype[Symbol.dispose] = Membered.prototype.free;
2296
+
2297
+ exports.Membered = Membered;
2231
2298
 
2232
2299
  const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
2233
2300
  ? { register: () => {}, unregister: () => {} }
@@ -2298,7 +2365,9 @@ class Peer {
2298
2365
  return ret !== 0;
2299
2366
  }
2300
2367
  }
2301
- module.exports.Peer = Peer;
2368
+ if (Symbol.dispose) Peer.prototype[Symbol.dispose] = Peer.prototype.free;
2369
+
2370
+ exports.Peer = Peer;
2302
2371
 
2303
2372
  const RemoveCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2304
2373
  ? { register: () => {}, unregister: () => {} }
@@ -2318,7 +2387,9 @@ class RemoveCiphertextError {
2318
2387
  wasm.__wbg_removeciphertexterror_free(ptr, 0);
2319
2388
  }
2320
2389
  }
2321
- module.exports.RemoveCiphertextError = RemoveCiphertextError;
2390
+ if (Symbol.dispose) RemoveCiphertextError.prototype[Symbol.dispose] = RemoveCiphertextError.prototype.free;
2391
+
2392
+ exports.RemoveCiphertextError = RemoveCiphertextError;
2322
2393
 
2323
2394
  const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
2324
2395
  ? { register: () => {}, unregister: () => {} }
@@ -2374,7 +2445,9 @@ class Revocation {
2374
2445
  return History.__wrap(ret);
2375
2446
  }
2376
2447
  }
2377
- module.exports.Revocation = Revocation;
2448
+ if (Symbol.dispose) Revocation.prototype[Symbol.dispose] = Revocation.prototype.free;
2449
+
2450
+ exports.Revocation = Revocation;
2378
2451
 
2379
2452
  const RevokeMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2380
2453
  ? { register: () => {}, unregister: () => {} }
@@ -2417,7 +2490,9 @@ class RevokeMemberError {
2417
2490
  }
2418
2491
  }
2419
2492
  }
2420
- module.exports.RevokeMemberError = RevokeMemberError;
2493
+ if (Symbol.dispose) RevokeMemberError.prototype[Symbol.dispose] = RevokeMemberError.prototype.free;
2494
+
2495
+ exports.RevokeMemberError = RevokeMemberError;
2421
2496
 
2422
2497
  const SerializationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2423
2498
  ? { register: () => {}, unregister: () => {} }
@@ -2453,7 +2528,9 @@ class SerializationError {
2453
2528
  return ret;
2454
2529
  }
2455
2530
  }
2456
- module.exports.SerializationError = SerializationError;
2531
+ if (Symbol.dispose) SerializationError.prototype[Symbol.dispose] = SerializationError.prototype.free;
2532
+
2533
+ exports.SerializationError = SerializationError;
2457
2534
 
2458
2535
  const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
2459
2536
  ? { register: () => {}, unregister: () => {} }
@@ -2481,7 +2558,9 @@ class ShareKey {
2481
2558
  wasm.__wbg_sharekey_free(ptr, 0);
2482
2559
  }
2483
2560
  }
2484
- module.exports.ShareKey = ShareKey;
2561
+ if (Symbol.dispose) ShareKey.prototype[Symbol.dispose] = ShareKey.prototype.free;
2562
+
2563
+ exports.ShareKey = ShareKey;
2485
2564
 
2486
2565
  const SignedFinalization = (typeof FinalizationRegistry === 'undefined')
2487
2566
  ? { register: () => {}, unregister: () => {} }
@@ -2562,7 +2641,9 @@ class Signed {
2562
2641
  return v1;
2563
2642
  }
2564
2643
  }
2565
- module.exports.Signed = Signed;
2644
+ if (Symbol.dispose) Signed.prototype[Symbol.dispose] = Signed.prototype.free;
2645
+
2646
+ exports.Signed = Signed;
2566
2647
 
2567
2648
  const SignedCgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
2568
2649
  ? { register: () => {}, unregister: () => {} }
@@ -2622,7 +2703,9 @@ class SignedCgkaOperation {
2622
2703
  return v1;
2623
2704
  }
2624
2705
  }
2625
- module.exports.SignedCgkaOperation = SignedCgkaOperation;
2706
+ if (Symbol.dispose) SignedCgkaOperation.prototype[Symbol.dispose] = SignedCgkaOperation.prototype.free;
2707
+
2708
+ exports.SignedCgkaOperation = SignedCgkaOperation;
2626
2709
 
2627
2710
  const SignedDelegationFinalization = (typeof FinalizationRegistry === 'undefined')
2628
2711
  ? { register: () => {}, unregister: () => {} }
@@ -2682,7 +2765,9 @@ class SignedDelegation {
2682
2765
  return v1;
2683
2766
  }
2684
2767
  }
2685
- module.exports.SignedDelegation = SignedDelegation;
2768
+ if (Symbol.dispose) SignedDelegation.prototype[Symbol.dispose] = SignedDelegation.prototype.free;
2769
+
2770
+ exports.SignedDelegation = SignedDelegation;
2686
2771
 
2687
2772
  const SignedInvocationFinalization = (typeof FinalizationRegistry === 'undefined')
2688
2773
  ? { register: () => {}, unregister: () => {} }
@@ -2702,7 +2787,9 @@ class SignedInvocation {
2702
2787
  wasm.__wbg_signedinvocation_free(ptr, 0);
2703
2788
  }
2704
2789
  }
2705
- module.exports.SignedInvocation = SignedInvocation;
2790
+ if (Symbol.dispose) SignedInvocation.prototype[Symbol.dispose] = SignedInvocation.prototype.free;
2791
+
2792
+ exports.SignedInvocation = SignedInvocation;
2706
2793
 
2707
2794
  const SignedRevocationFinalization = (typeof FinalizationRegistry === 'undefined')
2708
2795
  ? { register: () => {}, unregister: () => {} }
@@ -2762,7 +2849,9 @@ class SignedRevocation {
2762
2849
  return v1;
2763
2850
  }
2764
2851
  }
2765
- module.exports.SignedRevocation = SignedRevocation;
2852
+ if (Symbol.dispose) SignedRevocation.prototype[Symbol.dispose] = SignedRevocation.prototype.free;
2853
+
2854
+ exports.SignedRevocation = SignedRevocation;
2766
2855
 
2767
2856
  const SignerFinalization = (typeof FinalizationRegistry === 'undefined')
2768
2857
  ? { register: () => {}, unregister: () => {} }
@@ -2873,7 +2962,9 @@ class Signer {
2873
2962
  return Signer.__wrap(ret);
2874
2963
  }
2875
2964
  }
2876
- module.exports.Signer = Signer;
2965
+ if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
2966
+
2967
+ exports.Signer = Signer;
2877
2968
 
2878
2969
  const SigningErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2879
2970
  ? { register: () => {}, unregister: () => {} }
@@ -2916,7 +3007,9 @@ class SigningError {
2916
3007
  }
2917
3008
  }
2918
3009
  }
2919
- module.exports.SigningError = SigningError;
3010
+ if (Symbol.dispose) SigningError.prototype[Symbol.dispose] = SigningError.prototype.free;
3011
+
3012
+ exports.SigningError = SigningError;
2920
3013
 
2921
3014
  const SimpleCapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
2922
3015
  ? { register: () => {}, unregister: () => {} }
@@ -2958,7 +3051,9 @@ class SimpleCapability {
2958
3051
  return Access.__wrap(ret);
2959
3052
  }
2960
3053
  }
2961
- module.exports.SimpleCapability = SimpleCapability;
3054
+ if (Symbol.dispose) SimpleCapability.prototype[Symbol.dispose] = SimpleCapability.prototype.free;
3055
+
3056
+ exports.SimpleCapability = SimpleCapability;
2962
3057
 
2963
3058
  const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
2964
3059
  ? { register: () => {}, unregister: () => {} }
@@ -3000,7 +3095,9 @@ class Summary {
3000
3095
  return Access.__wrap(ret);
3001
3096
  }
3002
3097
  }
3003
- module.exports.Summary = Summary;
3098
+ if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
3099
+
3100
+ exports.Summary = Summary;
3004
3101
 
3005
3102
  const TryFromArchiveErrorFinalization = (typeof FinalizationRegistry === 'undefined')
3006
3103
  ? { register: () => {}, unregister: () => {} }
@@ -3036,89 +3133,91 @@ class TryFromArchiveError {
3036
3133
  return ret;
3037
3134
  }
3038
3135
  }
3039
- module.exports.TryFromArchiveError = TryFromArchiveError;
3136
+ if (Symbol.dispose) TryFromArchiveError.prototype[Symbol.dispose] = TryFromArchiveError.prototype.free;
3137
+
3138
+ exports.TryFromArchiveError = TryFromArchiveError;
3040
3139
 
3041
- module.exports.__wbg_Error_1f3748b298f99708 = function(arg0, arg1) {
3140
+ exports.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
3042
3141
  const ret = Error(getStringFromWasm0(arg0, arg1));
3043
3142
  return ret;
3044
3143
  };
3045
3144
 
3046
- module.exports.__wbg_addmembererror_new = function(arg0) {
3145
+ exports.__wbg_addmembererror_new = function(arg0) {
3047
3146
  const ret = AddMemberError.__wrap(arg0);
3048
3147
  return ret;
3049
3148
  };
3050
3149
 
3051
- module.exports.__wbg_call_2f8d426a20a307fe = function() { return handleError(function (arg0, arg1) {
3150
+ exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
3052
3151
  const ret = arg0.call(arg1);
3053
3152
  return ret;
3054
3153
  }, arguments) };
3055
3154
 
3056
- module.exports.__wbg_call_f53f0647ceb9c567 = function() { return handleError(function (arg0, arg1, arg2) {
3155
+ exports.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
3057
3156
  const ret = arg0.call(arg1, arg2);
3058
3157
  return ret;
3059
3158
  }, arguments) };
3060
3159
 
3061
- module.exports.__wbg_cannotparseed25519signingkey_new = function(arg0) {
3160
+ exports.__wbg_cannotparseed25519signingkey_new = function(arg0) {
3062
3161
  const ret = CannotParseEd25519SigningKey.__wrap(arg0);
3063
3162
  return ret;
3064
3163
  };
3065
3164
 
3066
- module.exports.__wbg_cannotparseidentifier_new = function(arg0) {
3165
+ exports.__wbg_cannotparseidentifier_new = function(arg0) {
3067
3166
  const ret = CannotParseIdentifier.__wrap(arg0);
3068
3167
  return ret;
3069
3168
  };
3070
3169
 
3071
- module.exports.__wbg_capability_new = function(arg0) {
3170
+ exports.__wbg_capability_new = function(arg0) {
3072
3171
  const ret = Capability.__wrap(arg0);
3073
3172
  return ret;
3074
3173
  };
3075
3174
 
3076
- module.exports.__wbg_changeref_new = function(arg0) {
3175
+ exports.__wbg_changeref_new = function(arg0) {
3077
3176
  const ret = ChangeRef.__wrap(arg0);
3078
3177
  return ret;
3079
3178
  };
3080
3179
 
3081
- module.exports.__wbg_changeref_unwrap = function(arg0) {
3180
+ exports.__wbg_changeref_unwrap = function(arg0) {
3082
3181
  const ret = ChangeRef.__unwrap(arg0);
3083
3182
  return ret;
3084
3183
  };
3085
3184
 
3086
- module.exports.__wbg_contactcard_new = function(arg0) {
3185
+ exports.__wbg_contactcard_new = function(arg0) {
3087
3186
  const ret = ContactCard.__wrap(arg0);
3088
3187
  return ret;
3089
3188
  };
3090
3189
 
3091
- module.exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
3190
+ exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
3092
3191
  const ret = arg0.crypto;
3093
3192
  return ret;
3094
3193
  };
3095
3194
 
3096
- module.exports.__wbg_crypto_d27ad9f7221b1675 = function() { return handleError(function (arg0) {
3195
+ exports.__wbg_crypto_92ce5ebc02988b17 = function() { return handleError(function (arg0) {
3097
3196
  const ret = arg0.crypto;
3098
3197
  return ret;
3099
3198
  }, arguments) };
3100
3199
 
3101
- module.exports.__wbg_doccontentrefs_new = function(arg0) {
3200
+ exports.__wbg_doccontentrefs_new = function(arg0) {
3102
3201
  const ret = DocContentRefs.__wrap(arg0);
3103
3202
  return ret;
3104
3203
  };
3105
3204
 
3106
- module.exports.__wbg_document_new = function(arg0) {
3205
+ exports.__wbg_document_new = function(arg0) {
3107
3206
  const ret = Document.__wrap(arg0);
3108
3207
  return ret;
3109
3208
  };
3110
3209
 
3111
- module.exports.__wbg_document_unwrap = function(arg0) {
3210
+ exports.__wbg_document_unwrap = function(arg0) {
3112
3211
  const ret = Document.__unwrap(arg0);
3113
3212
  return ret;
3114
3213
  };
3115
3214
 
3116
- module.exports.__wbg_encryptedcontentwithupdate_new = function(arg0) {
3215
+ exports.__wbg_encryptedcontentwithupdate_new = function(arg0) {
3117
3216
  const ret = EncryptedContentWithUpdate.__wrap(arg0);
3118
3217
  return ret;
3119
3218
  };
3120
3219
 
3121
- module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
3220
+ exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
3122
3221
  let deferred0_0;
3123
3222
  let deferred0_1;
3124
3223
  try {
@@ -3130,51 +3229,67 @@ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
3130
3229
  }
3131
3230
  };
3132
3231
 
3133
- module.exports.__wbg_event_new = function(arg0) {
3232
+ exports.__wbg_event_new = function(arg0) {
3134
3233
  const ret = Event.__wrap(arg0);
3135
3234
  return ret;
3136
3235
  };
3137
3236
 
3138
- module.exports.__wbg_exportKey_bc8845fdc79b331a = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3237
+ exports.__wbg_exportKey_4a1163511775473d = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3139
3238
  const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
3140
3239
  return ret;
3141
3240
  }, arguments) };
3142
3241
 
3143
- module.exports.__wbg_generateKey_a2091927ceee8225 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3242
+ exports.__wbg_generateKey_b8902ccb0e50ff4e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3144
3243
  const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
3145
3244
  return ret;
3146
3245
  }, arguments) };
3147
3246
 
3148
- module.exports.__wbg_generatedocerror_new = function(arg0) {
3247
+ exports.__wbg_generatedocerror_new = function(arg0) {
3149
3248
  const ret = GenerateDocError.__wrap(arg0);
3150
3249
  return ret;
3151
3250
  };
3152
3251
 
3153
- module.exports.__wbg_generatewebcryptoerror_new = function(arg0) {
3252
+ exports.__wbg_generatewebcryptoerror_new = function(arg0) {
3154
3253
  const ret = GenerateWebCryptoError.__wrap(arg0);
3155
3254
  return ret;
3156
3255
  };
3157
3256
 
3158
- module.exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
3257
+ exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
3159
3258
  arg0.getRandomValues(arg1);
3160
3259
  }, arguments) };
3161
3260
 
3162
- module.exports.__wbg_getprivatekey_68c3f491137f7d42 = function(arg0) {
3261
+ exports.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
3262
+ const ret = Reflect.get(arg0, arg1);
3263
+ return ret;
3264
+ }, arguments) };
3265
+
3266
+ exports.__wbg_getprivatekey_2b060a8a8c19d828 = function(arg0) {
3163
3267
  const ret = arg0.privateKey;
3164
3268
  return ret;
3165
3269
  };
3166
3270
 
3167
- module.exports.__wbg_getpublickey_395decee9eaded1e = function(arg0) {
3271
+ exports.__wbg_getpublickey_ad4c2474164b2d9a = function(arg0) {
3168
3272
  const ret = arg0.publicKey;
3169
3273
  return ret;
3170
3274
  };
3171
3275
 
3172
- module.exports.__wbg_group_new = function(arg0) {
3276
+ exports.__wbg_group_new = function(arg0) {
3173
3277
  const ret = Group.__wrap(arg0);
3174
3278
  return ret;
3175
3279
  };
3176
3280
 
3177
- module.exports.__wbg_instanceof_Window_7f29e5c72acbfd60 = function(arg0) {
3281
+ exports.__wbg_instanceof_Crypto_33ac2d91cca59233 = function(arg0) {
3282
+ let result;
3283
+ try {
3284
+ result = arg0 instanceof Crypto;
3285
+ } catch (_) {
3286
+ result = false;
3287
+ }
3288
+ const ret = result;
3289
+ return ret;
3290
+ };
3291
+
3292
+ exports.__wbg_instanceof_Window_12d20d558ef92592 = function(arg0) {
3178
3293
  let result;
3179
3294
  try {
3180
3295
  result = arg0 instanceof Window;
@@ -3185,59 +3300,49 @@ module.exports.__wbg_instanceof_Window_7f29e5c72acbfd60 = function(arg0) {
3185
3300
  return ret;
3186
3301
  };
3187
3302
 
3188
- module.exports.__wbg_jsdecrypterror_new = function(arg0) {
3303
+ exports.__wbg_jsdecrypterror_new = function(arg0) {
3189
3304
  const ret = JsDecryptError.__wrap(arg0);
3190
3305
  return ret;
3191
3306
  };
3192
3307
 
3193
- module.exports.__wbg_jsencrypterror_new = function(arg0) {
3308
+ exports.__wbg_jsencrypterror_new = function(arg0) {
3194
3309
  const ret = JsEncryptError.__wrap(arg0);
3195
3310
  return ret;
3196
3311
  };
3197
3312
 
3198
- module.exports.__wbg_jsreceiveprekeyoperror_new = function(arg0) {
3313
+ exports.__wbg_jsreceiveprekeyoperror_new = function(arg0) {
3199
3314
  const ret = JsReceivePreKeyOpError.__wrap(arg0);
3200
3315
  return ret;
3201
3316
  };
3202
3317
 
3203
- module.exports.__wbg_jsreceivestaticeventerror_new = function(arg0) {
3318
+ exports.__wbg_jsreceivestaticeventerror_new = function(arg0) {
3204
3319
  const ret = JsReceiveStaticEventError.__wrap(arg0);
3205
3320
  return ret;
3206
3321
  };
3207
3322
 
3208
- module.exports.__wbg_keyhive_new = function(arg0) {
3323
+ exports.__wbg_keyhive_new = function(arg0) {
3209
3324
  const ret = Keyhive.__wrap(arg0);
3210
3325
  return ret;
3211
3326
  };
3212
3327
 
3213
- module.exports.__wbg_length_904c0910ed998bf3 = function(arg0) {
3328
+ exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
3214
3329
  const ret = arg0.length;
3215
3330
  return ret;
3216
3331
  };
3217
3332
 
3218
- module.exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
3333
+ exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
3219
3334
  const ret = arg0.msCrypto;
3220
3335
  return ret;
3221
3336
  };
3222
3337
 
3223
- module.exports.__wbg_new_8a6f238a6ece86ea = function() {
3224
- const ret = new Error();
3225
- return ret;
3226
- };
3227
-
3228
- module.exports.__wbg_new_9190433fb67ed635 = function(arg0) {
3229
- const ret = new Uint8Array(arg0);
3230
- return ret;
3231
- };
3232
-
3233
- module.exports.__wbg_new_d5e3800b120e37e1 = function(arg0, arg1) {
3338
+ exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
3234
3339
  try {
3235
3340
  var state0 = {a: arg0, b: arg1};
3236
3341
  var cb0 = (arg0, arg1) => {
3237
3342
  const a = state0.a;
3238
3343
  state0.a = 0;
3239
3344
  try {
3240
- return __wbg_adapter_272(a, state0.b, arg0, arg1);
3345
+ return __wbg_adapter_274(a, state0.b, arg0, arg1);
3241
3346
  } finally {
3242
3347
  state0.a = a;
3243
3348
  }
@@ -3249,109 +3354,119 @@ module.exports.__wbg_new_d5e3800b120e37e1 = function(arg0, arg1) {
3249
3354
  }
3250
3355
  };
3251
3356
 
3252
- module.exports.__wbg_newnoargs_a81330f6e05d8aca = function(arg0, arg1) {
3357
+ exports.__wbg_new_638ebfaedbf32a5e = function(arg0) {
3358
+ const ret = new Uint8Array(arg0);
3359
+ return ret;
3360
+ };
3361
+
3362
+ exports.__wbg_new_8a6f238a6ece86ea = function() {
3363
+ const ret = new Error();
3364
+ return ret;
3365
+ };
3366
+
3367
+ exports.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
3253
3368
  const ret = new Function(getStringFromWasm0(arg0, arg1));
3254
3369
  return ret;
3255
3370
  };
3256
3371
 
3257
- module.exports.__wbg_newwithlength_ed0ee6c1edca86fc = function(arg0) {
3372
+ exports.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
3258
3373
  const ret = new Uint8Array(arg0 >>> 0);
3259
3374
  return ret;
3260
3375
  };
3261
3376
 
3262
- module.exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
3377
+ exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
3263
3378
  const ret = arg0.node;
3264
3379
  return ret;
3265
3380
  };
3266
3381
 
3267
- module.exports.__wbg_peer_unwrap = function(arg0) {
3382
+ exports.__wbg_peer_unwrap = function(arg0) {
3268
3383
  const ret = Peer.__unwrap(arg0);
3269
3384
  return ret;
3270
3385
  };
3271
3386
 
3272
- module.exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
3387
+ exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
3273
3388
  const ret = arg0.process;
3274
3389
  return ret;
3275
3390
  };
3276
3391
 
3277
- module.exports.__wbg_prototypesetcall_c5f74efd31aea86b = function(arg0, arg1, arg2) {
3392
+ exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
3278
3393
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
3279
3394
  };
3280
3395
 
3281
- module.exports.__wbg_queueMicrotask_bcc6e26d899696db = function(arg0) {
3282
- const ret = arg0.queueMicrotask;
3283
- return ret;
3396
+ exports.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
3397
+ queueMicrotask(arg0);
3284
3398
  };
3285
3399
 
3286
- module.exports.__wbg_queueMicrotask_f24a794d09c42640 = function(arg0) {
3287
- queueMicrotask(arg0);
3400
+ exports.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
3401
+ const ret = arg0.queueMicrotask;
3402
+ return ret;
3288
3403
  };
3289
3404
 
3290
- module.exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
3405
+ exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
3291
3406
  arg0.randomFillSync(arg1);
3292
3407
  }, arguments) };
3293
3408
 
3294
- module.exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
3409
+ exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
3295
3410
  const ret = module.require;
3296
3411
  return ret;
3297
3412
  }, arguments) };
3298
3413
 
3299
- module.exports.__wbg_resolve_5775c0ef9222f556 = function(arg0) {
3414
+ exports.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
3300
3415
  const ret = Promise.resolve(arg0);
3301
3416
  return ret;
3302
3417
  };
3303
3418
 
3304
- module.exports.__wbg_revokemembererror_new = function(arg0) {
3419
+ exports.__wbg_revokemembererror_new = function(arg0) {
3305
3420
  const ret = RevokeMemberError.__wrap(arg0);
3306
3421
  return ret;
3307
3422
  };
3308
3423
 
3309
- module.exports.__wbg_serializationerror_new = function(arg0) {
3424
+ exports.__wbg_serializationerror_new = function(arg0) {
3310
3425
  const ret = SerializationError.__wrap(arg0);
3311
3426
  return ret;
3312
3427
  };
3313
3428
 
3314
- module.exports.__wbg_sharekey_new = function(arg0) {
3429
+ exports.__wbg_sharekey_new = function(arg0) {
3315
3430
  const ret = ShareKey.__wrap(arg0);
3316
3431
  return ret;
3317
3432
  };
3318
3433
 
3319
- module.exports.__wbg_sign_57acde3c6437bdd1 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3434
+ exports.__wbg_sign_8891059f121b31b5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3320
3435
  const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
3321
3436
  return ret;
3322
3437
  }, arguments) };
3323
3438
 
3324
- module.exports.__wbg_signed_new = function(arg0) {
3439
+ exports.__wbg_signed_new = function(arg0) {
3325
3440
  const ret = Signed.__wrap(arg0);
3326
3441
  return ret;
3327
3442
  };
3328
3443
 
3329
- module.exports.__wbg_signeddelegation_new = function(arg0) {
3444
+ exports.__wbg_signeddelegation_new = function(arg0) {
3330
3445
  const ret = SignedDelegation.__wrap(arg0);
3331
3446
  return ret;
3332
3447
  };
3333
3448
 
3334
- module.exports.__wbg_signedrevocation_new = function(arg0) {
3449
+ exports.__wbg_signedrevocation_new = function(arg0) {
3335
3450
  const ret = SignedRevocation.__wrap(arg0);
3336
3451
  return ret;
3337
3452
  };
3338
3453
 
3339
- module.exports.__wbg_signer_new = function(arg0) {
3454
+ exports.__wbg_signer_new = function(arg0) {
3340
3455
  const ret = Signer.__wrap(arg0);
3341
3456
  return ret;
3342
3457
  };
3343
3458
 
3344
- module.exports.__wbg_signingerror_new = function(arg0) {
3459
+ exports.__wbg_signingerror_new = function(arg0) {
3345
3460
  const ret = SigningError.__wrap(arg0);
3346
3461
  return ret;
3347
3462
  };
3348
3463
 
3349
- module.exports.__wbg_simplecapability_new = function(arg0) {
3464
+ exports.__wbg_simplecapability_new = function(arg0) {
3350
3465
  const ret = SimpleCapability.__wrap(arg0);
3351
3466
  return ret;
3352
3467
  };
3353
3468
 
3354
- module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
3469
+ exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
3355
3470
  const ret = arg1.stack;
3356
3471
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3357
3472
  const len1 = WASM_VECTOR_LEN;
@@ -3359,62 +3474,62 @@ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
3359
3474
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3360
3475
  };
3361
3476
 
3362
- module.exports.__wbg_static_accessor_GLOBAL_1f13249cc3acc96d = function() {
3477
+ exports.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
3363
3478
  const ret = typeof global === 'undefined' ? null : global;
3364
3479
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3365
3480
  };
3366
3481
 
3367
- module.exports.__wbg_static_accessor_GLOBAL_THIS_df7ae94b1e0ed6a3 = function() {
3482
+ exports.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
3368
3483
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
3369
3484
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3370
3485
  };
3371
3486
 
3372
- module.exports.__wbg_static_accessor_SELF_6265471db3b3c228 = function() {
3487
+ exports.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
3373
3488
  const ret = typeof self === 'undefined' ? null : self;
3374
3489
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3375
3490
  };
3376
3491
 
3377
- module.exports.__wbg_static_accessor_WINDOW_16fb482f8ec52863 = function() {
3492
+ exports.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
3378
3493
  const ret = typeof window === 'undefined' ? null : window;
3379
3494
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3380
3495
  };
3381
3496
 
3382
- module.exports.__wbg_subarray_a219824899e59712 = function(arg0, arg1, arg2) {
3497
+ exports.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
3383
3498
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3384
3499
  return ret;
3385
3500
  };
3386
3501
 
3387
- module.exports.__wbg_subtle_40dd37072861a308 = function(arg0) {
3502
+ exports.__wbg_subtle_dd66747d3e9a93d4 = function(arg0) {
3388
3503
  const ret = arg0.subtle;
3389
3504
  return ret;
3390
3505
  };
3391
3506
 
3392
- module.exports.__wbg_summary_new = function(arg0) {
3507
+ exports.__wbg_summary_new = function(arg0) {
3393
3508
  const ret = Summary.__wrap(arg0);
3394
3509
  return ret;
3395
3510
  };
3396
3511
 
3397
- module.exports.__wbg_then_8d2fcccde5380a03 = function(arg0, arg1, arg2) {
3512
+ exports.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
3398
3513
  const ret = arg0.then(arg1, arg2);
3399
3514
  return ret;
3400
3515
  };
3401
3516
 
3402
- module.exports.__wbg_then_9cc266be2bf537b6 = function(arg0, arg1) {
3517
+ exports.__wbg_then_e22500defe16819f = function(arg0, arg1) {
3403
3518
  const ret = arg0.then(arg1);
3404
3519
  return ret;
3405
3520
  };
3406
3521
 
3407
- module.exports.__wbg_tryfromarchiveerror_new = function(arg0) {
3522
+ exports.__wbg_tryfromarchiveerror_new = function(arg0) {
3408
3523
  const ret = TryFromArchiveError.__wrap(arg0);
3409
3524
  return ret;
3410
3525
  };
3411
3526
 
3412
- module.exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
3527
+ exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
3413
3528
  const ret = arg0.versions;
3414
3529
  return ret;
3415
3530
  };
3416
3531
 
3417
- module.exports.__wbg_wbindgencbdrop_a85ed476c6a370b9 = function(arg0) {
3532
+ exports.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
3418
3533
  const obj = arg0.original;
3419
3534
  if (obj.cnt-- == 1) {
3420
3535
  obj.a = 0;
@@ -3424,7 +3539,7 @@ module.exports.__wbg_wbindgencbdrop_a85ed476c6a370b9 = function(arg0) {
3424
3539
  return ret;
3425
3540
  };
3426
3541
 
3427
- module.exports.__wbg_wbindgendebugstring_bb652b1bc2061b6d = function(arg0, arg1) {
3542
+ exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
3428
3543
  const ret = debugString(arg1);
3429
3544
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3430
3545
  const len1 = WASM_VECTOR_LEN;
@@ -3432,44 +3547,44 @@ module.exports.__wbg_wbindgendebugstring_bb652b1bc2061b6d = function(arg0, arg1)
3432
3547
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3433
3548
  };
3434
3549
 
3435
- module.exports.__wbg_wbindgenisfunction_ea72b9d66a0e1705 = function(arg0) {
3550
+ exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
3436
3551
  const ret = typeof(arg0) === 'function';
3437
3552
  return ret;
3438
3553
  };
3439
3554
 
3440
- module.exports.__wbg_wbindgenisobject_dfe064a121d87553 = function(arg0) {
3555
+ exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
3441
3556
  const val = arg0;
3442
3557
  const ret = typeof(val) === 'object' && val !== null;
3443
3558
  return ret;
3444
3559
  };
3445
3560
 
3446
- module.exports.__wbg_wbindgenisstring_4b74e4111ba029e6 = function(arg0) {
3561
+ exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
3447
3562
  const ret = typeof(arg0) === 'string';
3448
3563
  return ret;
3449
3564
  };
3450
3565
 
3451
- module.exports.__wbg_wbindgenisundefined_71f08a6ade4354e7 = function(arg0) {
3566
+ exports.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
3452
3567
  const ret = arg0 === undefined;
3453
3568
  return ret;
3454
3569
  };
3455
3570
 
3456
- module.exports.__wbg_wbindgenthrow_4c11a24fca429ccf = function(arg0, arg1) {
3571
+ exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
3457
3572
  throw new Error(getStringFromWasm0(arg0, arg1));
3458
3573
  };
3459
3574
 
3460
- module.exports.__wbindgen_cast_133053e9d0cd85aa = function(arg0, arg1) {
3575
+ exports.__wbindgen_cast_133053e9d0cd85aa = function(arg0, arg1) {
3461
3576
  // Cast intrinsic for `Closure(Closure { dtor_idx: 422, function: Function { arguments: [Externref], shim_idx: 423, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3462
- const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_8);
3577
+ const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_10);
3463
3578
  return ret;
3464
3579
  };
3465
3580
 
3466
- module.exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
3581
+ exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
3467
3582
  // Cast intrinsic for `Ref(String) -> Externref`.
3468
3583
  const ret = getStringFromWasm0(arg0, arg1);
3469
3584
  return ret;
3470
3585
  };
3471
3586
 
3472
- module.exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
3587
+ exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
3473
3588
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3474
3589
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
3475
3590
  // Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
@@ -3477,7 +3592,7 @@ module.exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
3477
3592
  return ret;
3478
3593
  };
3479
3594
 
3480
- module.exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
3595
+ exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
3481
3596
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3482
3597
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
3483
3598
  // Cast intrinsic for `Vector(NamedExternref("SignedRevocation")) -> Externref`.
@@ -3485,13 +3600,13 @@ module.exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
3485
3600
  return ret;
3486
3601
  };
3487
3602
 
3488
- module.exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
3603
+ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
3489
3604
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
3490
3605
  const ret = getArrayU8FromWasm0(arg0, arg1);
3491
3606
  return ret;
3492
3607
  };
3493
3608
 
3494
- module.exports.__wbindgen_init_externref_table = function() {
3609
+ exports.__wbindgen_init_externref_table = function() {
3495
3610
  const table = wasm.__wbindgen_export_2;
3496
3611
  const offset = table.grow(4);
3497
3612
  table.set(0, undefined);
@@ -3502,13 +3617,10 @@ module.exports.__wbindgen_init_externref_table = function() {
3502
3617
  ;
3503
3618
  };
3504
3619
 
3505
- const path = require('path').join(__dirname, 'keyhive_wasm_bg.wasm');
3506
- const bytes = require('fs').readFileSync(path);
3507
-
3508
- const wasmModule = new WebAssembly.Module(bytes);
3509
- const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
3510
- wasm = wasmInstance.exports;
3511
- module.exports.__wasm = wasm;
3620
+ const wasmPath = `${__dirname}/keyhive_wasm_bg.wasm`;
3621
+ const wasmBytes = require('fs').readFileSync(wasmPath);
3622
+ const wasmModule = new WebAssembly.Module(wasmBytes);
3623
+ const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
3512
3624
 
3513
3625
  wasm.__wbindgen_start();
3514
3626