@element-hq/element-call-embedded 0.16.0 → 0.16.2
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.
- package/dist/assets/{IndexedDBWorker-CzAuDk1v.js → IndexedDBWorker-DiQk_BNn.js} +2 -2
- package/dist/assets/IndexedDBWorker-DiQk_BNn.js.map +1 -0
- package/dist/assets/{index-BKNzwlAH.js → index-DS4NG7gp.js} +2 -2
- package/dist/assets/{index-BKNzwlAH.js.map → index-DS4NG7gp.js.map} +1 -1
- package/dist/assets/index-DYaS2vUb.js +351 -0
- package/dist/assets/{index-ByQHsvE1.js.map → index-DYaS2vUb.js.map} +1 -1
- package/dist/assets/index-jvuzG61C.js +3 -0
- package/dist/assets/index-jvuzG61C.js.map +1 -0
- package/dist/assets/livekit-client.e2ee.worker-DjoLe7BK.js +2 -0
- package/dist/assets/livekit-client.e2ee.worker-DjoLe7BK.js.map +1 -0
- package/dist/assets/matrix-sdk-crypto-wasm-DMhr4gdY.js +3 -0
- package/dist/assets/matrix-sdk-crypto-wasm-DMhr4gdY.js.map +1 -0
- package/dist/assets/matrix_sdk_crypto_wasm_bg-dMeGppz-.wasm +0 -0
- package/dist/assets/{polyfill-force-wev_Xmqs.js → polyfill-force-BlR75_rd.js} +2 -2
- package/dist/assets/{polyfill-force-wev_Xmqs.js.map → polyfill-force-BlR75_rd.js.map} +1 -1
- package/dist/assets/{polyfill-force-BA4WuRQ3.js → polyfill-force-CkGZrTiH.js} +2 -2
- package/dist/assets/{polyfill-force-BA4WuRQ3.js.map → polyfill-force-CkGZrTiH.js.map} +1 -1
- package/dist/assets/{spa-65APL5kY.js → spa-pcSdV42q.js} +2 -2
- package/dist/assets/{spa-65APL5kY.js.map → spa-pcSdV42q.js.map} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/IndexedDBWorker-CzAuDk1v.js.map +0 -1
- package/dist/assets/index-B4IlN3R9.js +0 -3
- package/dist/assets/index-B4IlN3R9.js.map +0 -1
- package/dist/assets/index-ByQHsvE1.js +0 -351
- package/dist/assets/livekit-client.e2ee.worker-Byc0H9ig.js +0 -2
- package/dist/assets/livekit-client.e2ee.worker-Byc0H9ig.js.map +0 -1
- package/dist/assets/matrix-sdk-crypto-wasm-DlvlUyhf.js +0 -3
- package/dist/assets/matrix-sdk-crypto-wasm-DlvlUyhf.js.map +0 -1
- package/dist/assets/matrix_sdk_crypto_wasm_bg-X-iWfZQJ.wasm +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
try{let _=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new _.Error().stack;e&&(_._sentryDebugIds=_._sentryDebugIds||{},_._sentryDebugIds[e]="d27283e0-9a5b-4438-9a0b-cc8778d6cef9",_._sentryDebugIdIdentifier="sentry-dbid-d27283e0-9a5b-4438-9a0b-cc8778d6cef9")}catch{}let r;function Bt(_){r=_}let oe=null;function T(){return(oe===null||oe.byteLength===0)&&(oe=new Uint8Array(r.memory.buffer)),oe}const Jr=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let ae=new Jr("utf-8",{ignoreBOM:!0,fatal:!0});ae.decode();const r_=2146435072;let at=0;function __(_,e){return at+=e,at>=r_&&(ae=new Jr("utf-8",{ignoreBOM:!0,fatal:!0}),ae.decode(),at=e),ae.decode(T().subarray(_,_+e))}function w(_,e){return _=_>>>0,__(_,e)}let o=0;const n_=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder,ge=new n_("utf-8"),i_=typeof ge.encodeInto=="function"?function(_,e){return ge.encodeInto(_,e)}:function(_,e){const t=ge.encode(_);return e.set(t),{read:_.length,written:t.length}};function g(_,e,t){if(t===void 0){const b=ge.encode(_),l=e(b.length,1)>>>0;return T().subarray(l,l+b.length).set(b),o=b.length,l}let n=_.length,i=e(n,1)>>>0;const s=T();let a=0;for(;a<n;a++){const b=_.charCodeAt(a);if(b>127)break;s[i+a]=b}if(a!==n){a!==0&&(_=_.slice(a)),i=t(i,n,n=a+_.length*3,1)>>>0;const b=T().subarray(i+a,i+n),l=i_(_,b);a+=l.written,i=t(i,n,a,1)>>>0}return o=a,i}let x=null;function R(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==r.memory.buffer)&&(x=new DataView(r.memory.buffer)),x}function k(_){const e=r.__externref_table_alloc();return r.__wbindgen_export_4.set(e,_),e}function p(_,e){try{return _.apply(this,e)}catch(t){const n=k(t);r.__wbindgen_exn_store(n)}}function u(_){return _==null}function j(_,e){return _=_>>>0,T().subarray(_/1,_/1+e)}const we=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>{r.__wbindgen_export_6.get(_.dtor)(_.a,_.b)});function Et(_,e,t,n){const i={a:_,b:e,cnt:1,dtor:t},s=(...a)=>{i.cnt++;const b=i.a;i.a=0;try{return n(b,i.b,...a)}finally{--i.cnt===0?(r.__wbindgen_export_6.get(i.dtor)(b,i.b),we.unregister(i)):i.a=b}};return s.original=i,we.register(s,i,i),s}function $r(_,e,t,n){const i={a:_,b:e,cnt:1,dtor:t},s=(...a)=>{i.cnt++;try{return n(i.a,i.b,...a)}finally{--i.cnt===0&&(r.__wbindgen_export_6.get(i.dtor)(i.a,i.b),i.a=0,we.unregister(i))}};return s.original=i,we.register(s,i,i),s}function Ut(_){const e=typeof _;if(e=="number"||e=="boolean"||_==null)return`${_}`;if(e=="string")return`"${_}"`;if(e=="symbol"){const i=_.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){const i=_.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(_)){const i=_.length;let s="[";i>0&&(s+=Ut(_[0]));for(let a=1;a<i;a++)s+=", "+Ut(_[a]);return s+="]",s}const t=/\[object ([^\]]+)\]/.exec(toString.call(_));let n;if(t&&t.length>1)n=t[1];else return toString.call(_);if(n=="Object")try{return"Object("+JSON.stringify(_)+")"}catch{return"Object"}return _ instanceof Error?`${_.name}: ${_.message}
|
|
2
|
+
${_.stack}`:n}function D(_,e){const t=e(_.length*1,1)>>>0;return T().set(_,t/1),o=_.length,t}function c(_){const e=r.__wbindgen_export_4.get(_);return r.__externref_table_dealloc(_),e}function d(_,e){if(!(_ instanceof e))throw new Error(`expected instance of ${e.name}`)}function S(_,e){const t=e(_.length*4,4)>>>0;for(let n=0;n<_.length;n++){const i=k(_[n]);R().setUint32(t+4*n,i,!0)}return o=_.length,t}function G(_,e){_=_>>>0;const t=R(),n=[];for(let i=_;i<_+4*e;i+=4)n.push(r.__wbindgen_export_4.get(t.getUint32(i,!0)));return r.__externref_drop_slice(_,e),n}let ce=null;function s_(){return(ce===null||ce.byteLength===0)&&(ce=new Uint16Array(r.memory.buffer)),ce}function o_(_,e){return _=_>>>0,s_().subarray(_/2,_/2+e)}function c_(){const _=r.getVersions();return ct.__wrap(_)}function a_(){r.start()}function g_(_,e,t){const n=r.closure41_externref_shim_multivalue_shim(_,e,t);if(n[1])throw c(n[0])}function w_(_,e){r.wasm_bindgen__convert__closures_____invoke__h8861d869601ff522(_,e)}function d_(_,e,t){r.closure756_externref_shim(_,e,t)}function b_(_,e,t){r.closure438_externref_shim(_,e,t)}function u_(_,e){r.wasm_bindgen__convert__closures_____invoke__hce61fd14ea1a6ce1(_,e)}function p_(_,e,t,n){r.closure451_externref_shim(_,e,t,n)}const l_=Object.freeze({MissingRoomKey:0,0:"MissingRoomKey",UnknownMessageIndex:1,1:"UnknownMessageIndex",MismatchedIdentityKeys:2,2:"MismatchedIdentityKeys",UnknownSenderDevice:3,3:"UnknownSenderDevice",UnsignedSenderDevice:4,4:"UnsignedSenderDevice",SenderIdentityVerificationViolation:5,5:"SenderIdentityVerificationViolation",UnableToDecrypt:6,6:"UnableToDecrypt",MismatchedSender:7,7:"MismatchedSender"}),f_=Object.freeze({Ed25519:0,0:"Ed25519",Curve25519:1,1:"Curve25519",Unknown:3,3:"Unknown"}),y_=Object.freeze({Curve25519:0,0:"Curve25519",Ed25519:1,1:"Ed25519",Unknown:2,2:"Unknown"}),h_=Object.freeze({OlmV1Curve25519AesSha2:0,0:"OlmV1Curve25519AesSha2",MegolmV1AesSha2:1,1:"MegolmV1AesSha2",Unknown:2,2:"Unknown"}),m_=Object.freeze({Invited:0,0:"Invited",Joined:1,1:"Joined",Shared:2,2:"Shared",WorldReadable:3,3:"WorldReadable"}),v_=Object.freeze({Verified:0,0:"Verified",BlackListed:1,1:"BlackListed",Ignored:2,2:"Ignored",Unset:3,3:"Unset"}),k_=Object.freeze({Trace:0,0:"Trace",Debug:1,1:"Debug",Info:2,2:"Info",Warn:3,3:"Warn",Error:4,4:"Error"}),R_=Object.freeze({Decrypted:0,0:"Decrypted",UnableToDecrypt:1,1:"UnableToDecrypt",PlainText:2,2:"PlainText",Invalid:3,3:"Invalid"}),F_=Object.freeze({Login:0,0:"Login",Reciprocate:1,1:"Reciprocate"}),z_=Object.freeze({Created:0,0:"Created",Scanned:1,1:"Scanned",Confirmed:2,2:"Confirmed",Reciprocated:3,3:"Reciprocated",Done:4,4:"Done",Cancelled:5,5:"Cancelled"}),S_=Object.freeze({KeysUpload:0,0:"KeysUpload",KeysQuery:1,1:"KeysQuery",KeysClaim:2,2:"KeysClaim",ToDevice:3,3:"ToDevice",SignatureUpload:4,4:"SignatureUpload",RoomMessage:5,5:"RoomMessage",KeysBackup:6,6:"KeysBackup"}),q_=Object.freeze({Red:0,0:"Red",Grey:1,1:"Grey",None:2,2:"None"}),j_=Object.freeze({AuthenticityNotGuaranteed:0,0:"AuthenticityNotGuaranteed",UnknownDevice:1,1:"UnknownDevice",UnsignedDevice:2,2:"UnsignedDevice",UnverifiedIdentity:3,3:"UnverifiedIdentity",SentInClear:4,4:"SentInClear",VerificationViolation:5,5:"VerificationViolation",MismatchedSender:6,6:"MismatchedSender"}),K_=Object.freeze({Missing:0,0:"Missing",Invalid:1,1:"Invalid",ValidButNotTrusted:2,2:"ValidButNotTrusted",ValidAndTrusted:3,3:"ValidAndTrusted"}),I_=Object.freeze({DecryptionFailure:0,0:"DecryptionFailure",UnverifiedSenderDevice:1,1:"UnverifiedSenderDevice",NoOlmMachine:2,2:"NoOlmMachine",EncryptionIsDisabled:3,3:"EncryptionIsDisabled"}),D_=Object.freeze({Untrusted:0,0:"Untrusted",CrossSignedOrLegacy:1,1:"CrossSignedOrLegacy",CrossSigned:2,2:"CrossSigned"}),C_=Object.freeze({SasV1:0,0:"SasV1",QrCodeScanV1:1,1:"QrCodeScanV1",QrCodeShowV1:2,2:"QrCodeShowV1",ReciprocateV1:3,3:"ReciprocateV1"}),O_=Object.freeze({Created:0,0:"Created",Requested:1,1:"Requested",Ready:2,2:"Ready",Transitioned:3,3:"Transitioned",Done:4,4:"Done",Cancelled:5,5:"Cancelled"}),U_=["pending","done"],Hr=["readonly","readwrite","versionchange","readwriteflush","cleanup"],B_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_attachment_free(_>>>0,1));class E_{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B_.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_attachment_free(e,0)}static encrypt(e){const t=D(e,r.__wbindgen_malloc),n=o,i=r.attachment_encrypt(t,n);if(i[2])throw c(i[1]);return P.__wrap(i[0])}static decrypt(e){d(e,P);const t=r.attachment_decrypt(e.__wbg_ptr);if(t[3])throw c(t[2]);var n=j(t[0],t[1]).slice();return r.__wbindgen_free(t[0],t[1]*1,1),n}}const Vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_backupdecryptionkey_free(_>>>0,1));class O{static __wrap(e){e=e>>>0;const t=Object.create(O.prototype);return t.__wbg_ptr=e,Vt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Vt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_backupdecryptionkey_free(e,0)}static createRandomKey(){const e=r.backupdecryptionkey_createRandomKey();return O.__wrap(e)}static fromBase64(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.backupdecryptionkey_fromBase64(t,n);if(i[2])throw c(i[1]);return O.__wrap(i[0])}toBase64(){return r.backupdecryptionkey_toBase64(this.__wbg_ptr)}get megolmV1PublicKey(){const e=r.backupdecryptionkey_megolmV1PublicKey(this.__wbg_ptr);return Ee.__wrap(e)}decryptV1(e,t,n){let i,s;try{const l=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),y=o,z=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),v=o,V=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),t_=o,se=r.backupdecryptionkey_decryptV1(this.__wbg_ptr,l,y,z,v,V,t_);var a=se[0],b=se[1];if(se[3])throw a=0,b=0,c(se[2]);return i=a,s=b,w(a,b)}finally{r.__wbindgen_free(i,s,1)}}}const xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_backupkeys_free(_>>>0,1));class pe{static __wrap(e){e=e>>>0;const t=Object.create(pe.prototype);return t.__wbg_ptr=e,xt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_backupkeys_free(e,0)}get decryptionKey(){const e=r.__wbg_get_backupkeys_decryptionKey(this.__wbg_ptr);return e===0?void 0:O.__wrap(e)}set decryptionKey(e){let t=0;u(e)||(d(e,O),t=e.__destroy_into_raw()),r.__wbg_set_backupkeys_decryptionKey(this.__wbg_ptr,t)}get backupVersion(){const e=r.__wbg_get_backupkeys_backupVersion(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set backupVersion(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupkeys_backupVersion(this.__wbg_ptr,t,n)}get decryptionKeyBase64(){return r.backupkeys_decryptionKeyBase64(this.__wbg_ptr)}}const Tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_backupsecretsbundle_free(_>>>0,1));class le{static __wrap(e){e=e>>>0;const t=Object.create(le.prototype);return t.__wbg_ptr=e,Tt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Tt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_backupsecretsbundle_free(e,0)}get key(){let e,t;try{const n=r.__wbg_get_backupsecretsbundle_key(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set key(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get backup_version(){let e,t;try{const n=r.__wbg_get_backupsecretsbundle_backup_version(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set backup_version(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,n)}}const gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_base64encodedpkmessage_free(_>>>0,1));class J{static __wrap(e){e=e>>>0;const t=Object.create(J.prototype);return t.__wbg_ptr=e,gt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_base64encodedpkmessage_free(e,0)}get ciphertext(){let e,t;try{const n=r.__wbg_get_base64encodedpkmessage_ciphertext(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set ciphertext(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get mac(){let e,t;try{const n=r.__wbg_get_base64encodedpkmessage_mac(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set mac(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,n)}get ephemeralKey(){let e,t;try{const n=r.__wbg_get_base64encodedpkmessage_ephemeralKey(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set ephemeralKey(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_base64encodedpkmessage_ephemeralKey(this.__wbg_ptr,t,n)}constructor(e,t,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),b=o,l=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),y=o,z=r.base64encodedpkmessage_new(i,s,a,b,l,y);return this.__wbg_ptr=z>>>0,gt.register(this,this.__wbg_ptr,this),this}}const At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_basemigrationdata_free(_>>>0,1));class Xr{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,At.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_basemigrationdata_free(e,0)}get userId(){const e=r.__wbg_get_basemigrationdata_userId(this.__wbg_ptr);return e===0?void 0:f.__wrap(e)}set userId(e){let t=0;u(e)||(d(e,f),t=e.__destroy_into_raw()),r.__wbg_set_basemigrationdata_userId(this.__wbg_ptr,t)}get deviceId(){const e=r.__wbg_get_basemigrationdata_deviceId(this.__wbg_ptr);return e===0?void 0:m.__wrap(e)}set deviceId(e){let t=0;u(e)||(d(e,m),t=e.__destroy_into_raw()),r.__wbg_set_basemigrationdata_deviceId(this.__wbg_ptr,t)}get pickledAccount(){let e,t;try{const n=r.__wbg_get_basemigrationdata_pickledAccount(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set pickledAccount(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get backupVersion(){const e=r.__wbg_get_basemigrationdata_backupVersion(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set backupVersion(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_backupVersion(this.__wbg_ptr,t,n)}get backupRecoveryKey(){const e=r.__wbg_get_basemigrationdata_backupRecoveryKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set backupRecoveryKey(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_backupRecoveryKey(this.__wbg_ptr,t,n)}get privateCrossSigningMasterKey(){const e=r.__wbg_get_basemigrationdata_privateCrossSigningMasterKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set privateCrossSigningMasterKey(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_privateCrossSigningMasterKey(this.__wbg_ptr,t,n)}get privateCrossSigningSelfSigningKey(){const e=r.__wbg_get_basemigrationdata_privateCrossSigningSelfSigningKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set privateCrossSigningSelfSigningKey(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_privateCrossSigningSelfSigningKey(this.__wbg_ptr,t,n)}get privateCrossSigningUserSigningKey(){const e=r.__wbg_get_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set privateCrossSigningUserSigningKey(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr,t,n)}constructor(){const e=r.basemigrationdata_new();return this.__wbg_ptr=e>>>0,At.register(this,this.__wbg_ptr,this),this}}const Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_cancelinfo_free(_>>>0,1));class L{static __wrap(e){e=e>>>0;const t=Object.create(L.prototype);return t.__wbg_ptr=e,Mt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_cancelinfo_free(e,0)}reason(){return r.cancelinfo_reason(this.__wbg_ptr)}cancelCode(){let e,t;try{const n=r.cancelinfo_cancelCode(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}cancelledbyUs(){return r.cancelinfo_cancelledbyUs(this.__wbg_ptr)!==0}}const Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_checkcode_free(_>>>0,1));class fe{static __wrap(e){e=e>>>0;const t=Object.create(fe.prototype);return t.__wbg_ptr=e,Pt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_checkcode_free(e,0)}as_bytes(){const e=r.checkcode_as_bytes(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}to_digit(){return r.checkcode_to_digit(this.__wbg_ptr)}}const Nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_collectstrategy_free(_>>>0,1));class q{static __wrap(e){e=e>>>0;const t=Object.create(q.prototype);return t.__wbg_ptr=e,Nt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Nt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_collectstrategy_free(e,0)}eq(e){return d(e,q),r.collectstrategy_eq(this.__wbg_ptr,e.__wbg_ptr)!==0}static deviceBasedStrategy(e,t){const n=r.collectstrategy_deviceBasedStrategy(e,t);return q.__wrap(n)}static allDevices(){const e=r.collectstrategy_allDevices();return q.__wrap(e)}static errorOnUnverifiedUserProblem(){const e=r.collectstrategy_errorOnUnverifiedUserProblem();return q.__wrap(e)}static identityBasedStrategy(){const e=r.collectstrategy_identityBasedStrategy();return q.__wrap(e)}static onlyTrustedDevices(){const e=r.collectstrategy_onlyTrustedDevices();return q.__wrap(e)}}const Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_crosssigningbootstraprequests_free(_>>>0,1));class ye{static __wrap(e){e=e>>>0;const t=Object.create(ye.prototype);return t.__wbg_ptr=e,Lt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Lt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_crosssigningbootstraprequests_free(e,0)}get uploadKeysRequest(){return r.__wbg_get_crosssigningbootstraprequests_uploadKeysRequest(this.__wbg_ptr)}get uploadSigningKeysRequest(){const e=r.__wbg_get_crosssigningbootstraprequests_uploadSigningKeysRequest(this.__wbg_ptr);return st.__wrap(e)}get uploadSignaturesRequest(){const e=r.__wbg_get_crosssigningbootstraprequests_uploadSignaturesRequest(this.__wbg_ptr);return _e.__wrap(e)}}const Wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_crosssigningkeyexport_free(_>>>0,1));class he{static __wrap(e){e=e>>>0;const t=Object.create(he.prototype);return t.__wbg_ptr=e,Wt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Wt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_crosssigningkeyexport_free(e,0)}get masterKey(){const e=r.crosssigningkeyexport_masterKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get self_signing_key(){const e=r.crosssigningkeyexport_self_signing_key(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get userSigningKey(){const e=r.crosssigningkeyexport_userSigningKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}}const Qt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_crosssigningstatus_free(_>>>0,1));class me{static __wrap(e){e=e>>>0;const t=Object.create(me.prototype);return t.__wbg_ptr=e,Qt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Qt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_crosssigningstatus_free(e,0)}get hasMaster(){return r.crosssigningstatus_hasMaster(this.__wbg_ptr)!==0}get hasSelfSigning(){return r.crosssigningstatus_hasSelfSigning(this.__wbg_ptr)!==0}get hasUserSigning(){return r.crosssigningstatus_hasUserSigning(this.__wbg_ptr)!==0}}const wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_curve25519publickey_free(_>>>0,1));class F{static __wrap(e){e=e>>>0;const t=Object.create(F.prototype);return t.__wbg_ptr=e,wt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_curve25519publickey_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.curve25519publickey_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,wt.register(this,this.__wbg_ptr,this),this}get length(){return r.curve25519publickey_length(this.__wbg_ptr)>>>0}toBase64(){let e,t;try{const n=r.curve25519publickey_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const Gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_curve25519secretkey_free(_>>>0,1));class C{static __wrap(e){e=e>>>0;const t=Object.create(C.prototype);return t.__wbg_ptr=e,Gt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Gt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_curve25519secretkey_free(e,0)}static new(){const e=r.curve25519secretkey_new();return C.__wrap(e)}static fromBase64(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.curve25519secretkey_fromBase64(t,n);if(i[2])throw c(i[1]);return C.__wrap(i[0])}toBase64(){let e,t;try{const n=r.curve25519secretkey_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}toUint8Array(){const e=r.curve25519secretkey_toUint8Array(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}static fromUint8Array(e){const t=D(e,r.__wbindgen_malloc),n=o,i=r.curve25519secretkey_fromUint8Array(t,n);if(i[2])throw c(i[1]);return C.__wrap(i[0])}}const Jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_decryptedroomevent_free(_>>>0,1));class ve{static __wrap(e){e=e>>>0;const t=Object.create(ve.prototype);return t.__wbg_ptr=e,Jt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Jt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_decryptedroomevent_free(e,0)}get event(){return r.__wbg_get_decryptedroomevent_event(this.__wbg_ptr)}get sender(){const e=r.decryptedroomevent_sender(this.__wbg_ptr);return f.__wrap(e)}get senderDevice(){const e=r.decryptedroomevent_senderDevice(this.__wbg_ptr);return e===0?void 0:m.__wrap(e)}get senderCurve25519Key(){let e,t;try{const n=r.decryptedroomevent_senderCurve25519Key(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get senderClaimedEd25519Key(){return r.decryptedroomevent_senderClaimedEd25519Key(this.__wbg_ptr)}get forwardingCurve25519KeyChain(){return r.decryptedroomevent_forwardingCurve25519KeyChain(this.__wbg_ptr)}shieldState(e){const t=r.decryptedroomevent_shieldState(this.__wbg_ptr,e);return re.__wrap(t)}}const $t=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_decryptedtodeviceevent_free(_>>>0,1));class ke{static __wrap(e){e=e>>>0;const t=Object.create(ke.prototype);return t.__wbg_ptr=e,$t.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$t.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_decryptedtodeviceevent_free(e,0)}get rawEvent(){return r.__wbg_get_decryptedtodeviceevent_rawEvent(this.__wbg_ptr)}get encryptionInfo(){const e=r.__wbg_get_decryptedtodeviceevent_encryptionInfo(this.__wbg_ptr);return rt.__wrap(e)}get type(){return r.decryptedtodeviceevent_type(this.__wbg_ptr)}}const Ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_decryptionsettings_free(_>>>0,1));class de{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ht.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_decryptionsettings_free(e,0)}get sender_device_trust_requirement(){return r.__wbg_get_decryptionsettings_sender_device_trust_requirement(this.__wbg_ptr)}set sender_device_trust_requirement(e){r.__wbg_set_decryptionsettings_sender_device_trust_requirement(this.__wbg_ptr,e)}constructor(e){const t=r.decryptionsettings_new(e);return this.__wbg_ptr=t>>>0,Ht.register(this,this.__wbg_ptr,this),this}}const Xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_dehydrateddevice_free(_>>>0,1));class Re{static __wrap(e){e=e>>>0;const t=Object.create(Re.prototype);return t.__wbg_ptr=e,Xt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Xt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_dehydrateddevice_free(e,0)}keysForUpload(e,t){return d(t,K),r.dehydrateddevice_keysForUpload(this.__wbg_ptr,e,t.__wbg_ptr)}}const Yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_dehydrateddevicekey_free(_>>>0,1));class K{static __wrap(e){e=e>>>0;const t=Object.create(K.prototype);return t.__wbg_ptr=e,Yt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Yt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_dehydrateddevicekey_free(e,0)}static createRandomKey(){const e=r.dehydrateddevicekey_createRandomKey();if(e[2])throw c(e[1]);return K.__wrap(e[0])}static createKeyFromArray(e){const t=r.dehydrateddevicekey_createKeyFromArray(e);if(t[2])throw c(t[1]);return K.__wrap(t[0])}toBase64(){return r.dehydrateddevicekey_toBase64(this.__wbg_ptr)}}const Zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_dehydrateddevices_free(_>>>0,1));class Fe{static __wrap(e){e=e>>>0;const t=Object.create(Fe.prototype);return t.__wbg_ptr=e,Zt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Zt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_dehydrateddevices_free(e,0)}create(){return r.dehydrateddevices_create(this.__wbg_ptr)}rehydrate(e,t,n){d(e,K),d(t,m);const i=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;return r.dehydrateddevices_rehydrate(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,i,s)}getDehydratedDeviceKey(){return r.dehydrateddevices_getDehydratedDeviceKey(this.__wbg_ptr)}saveDehydratedDeviceKey(e){return d(e,K),r.dehydrateddevices_saveDehydratedDeviceKey(this.__wbg_ptr,e.__wbg_ptr)}deleteDehydratedDeviceKey(){return r.dehydrateddevices_deleteDehydratedDeviceKey(this.__wbg_ptr)}}const er=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_device_free(_>>>0,1));class H{static __wrap(e){e=e>>>0;const t=Object.create(H.prototype);return t.__wbg_ptr=e,er.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,er.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_device_free(e,0)}requestVerification(e){var t=u(e)?0:S(e,r.__wbindgen_malloc),n=o;const i=r.device_requestVerification(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}encryptToDeviceEvent(e,t,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;let a=0;return u(n)||(d(n,q),a=n.__destroy_into_raw()),r.device_encryptToDeviceEvent(this.__wbg_ptr,i,s,t,a)}isVerified(){return r.device_isVerified(this.__wbg_ptr)!==0}isCrossSigningTrusted(){return r.device_isCrossSigningTrusted(this.__wbg_ptr)!==0}isCrossSignedByOwner(){return r.device_isCrossSignedByOwner(this.__wbg_ptr)!==0}setLocalTrust(e){return r.device_setLocalTrust(this.__wbg_ptr,e)}get userId(){const e=r.device_userId(this.__wbg_ptr);return f.__wrap(e)}get deviceId(){const e=r.device_deviceId(this.__wbg_ptr);return m.__wrap(e)}get displayName(){const e=r.device_displayName(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}getKey(e){const t=r.device_getKey(this.__wbg_ptr,e);if(t[2])throw c(t[1]);return t[0]===0?void 0:X.__wrap(t[0])}get curve25519Key(){const e=r.device_curve25519Key(this.__wbg_ptr);return e===0?void 0:F.__wrap(e)}get ed25519Key(){const e=r.device_ed25519Key(this.__wbg_ptr);return e===0?void 0:B.__wrap(e)}get keys(){return r.device_keys(this.__wbg_ptr)}get algorithms(){return r.device_algorithms(this.__wbg_ptr)}get signatures(){const e=r.device_signatures(this.__wbg_ptr);return ne.__wrap(e)}get localTrustState(){return r.device_localTrustState(this.__wbg_ptr)}isLocallyTrusted(){return r.device_isLocallyTrusted(this.__wbg_ptr)!==0}isBlacklisted(){return r.device_isBlacklisted(this.__wbg_ptr)!==0}isDeleted(){return r.device_isDeleted(this.__wbg_ptr)!==0}firstTimeSeen(){const e=r.device_firstTimeSeen(this.__wbg_ptr);return BigInt.asUintN(64,e)}verify(){return r.device_verify(this.__wbg_ptr)}get isDehydrated(){return r.device_isDehydrated(this.__wbg_ptr)!==0}}const dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_deviceid_free(_>>>0,1));class m{static __wrap(e){e=e>>>0;const t=Object.create(m.prototype);return t.__wbg_ptr=e,dt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,dt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_deviceid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.deviceid_new(t,n);return this.__wbg_ptr=i>>>0,dt.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const n=r.deviceid_toString(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const tr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_devicekey_free(_>>>0,1));class X{static __wrap(e){e=e>>>0;const t=Object.create(X.prototype);return t.__wbg_ptr=e,tr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,tr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_devicekey_free(e,0)}get name(){return r.devicekey_name(this.__wbg_ptr)}get curve25519(){const e=r.devicekey_curve25519(this.__wbg_ptr);return e===0?void 0:F.__wrap(e)}get ed25519(){const e=r.devicekey_ed25519(this.__wbg_ptr);return e===0?void 0:B.__wrap(e)}get unknown(){const e=r.devicekey_unknown(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}toBase64(){let e,t;try{const n=r.devicekey_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const rr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_devicekeyalgorithm_free(_>>>0,1));class ze{static __wrap(e){e=e>>>0;const t=Object.create(ze.prototype);return t.__wbg_ptr=e,rr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,rr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_devicekeyalgorithm_free(e,0)}get name(){return r.devicekeyalgorithm_name(this.__wbg_ptr)}toString(){let e,t;try{const n=r.devicekeyalgorithm_toString(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_devicekeyid_free(_>>>0,1));class A{static __wrap(e){e=e>>>0;const t=Object.create(A.prototype);return t.__wbg_ptr=e,bt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_devicekeyid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.devicekeyid_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,bt.register(this,this.__wbg_ptr,this),this}get algorithm(){const e=r.devicekeyid_algorithm(this.__wbg_ptr);return ze.__wrap(e)}get deviceId(){const e=r.devicekeyid_deviceId(this.__wbg_ptr);return m.__wrap(e)}toString(){let e,t;try{const n=r.devicekeyid_toString(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const _r=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_devicelists_free(_>>>0,1));class Yr{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_r.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_devicelists_free(e,0)}constructor(e,t){var n=u(e)?0:S(e,r.__wbindgen_malloc),i=o,s=u(t)?0:S(t,r.__wbindgen_malloc),a=o;const b=r.devicelists_new(n,i,s,a);if(b[2])throw c(b[1]);return this.__wbg_ptr=b[0]>>>0,_r.register(this,this.__wbg_ptr,this),this}isEmpty(){return r.devicelists_isEmpty(this.__wbg_ptr)!==0}get changed(){const e=r.devicelists_changed(this.__wbg_ptr);var t=G(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}get left(){const e=r.devicelists_left(this.__wbg_ptr);var t=G(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}}const nr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ecies_free(_>>>0,1));class V_{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,nr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_ecies_free(e,0)}constructor(){const e=r.ecies_new();return this.__wbg_ptr=e>>>0,nr.register(this,this.__wbg_ptr,this),this}public_key(){const e=r.ecies_public_key(this.__wbg_ptr);return F.__wrap(e)}establish_inbound_channel(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.ecies_establish_inbound_channel(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return Ke.__wrap(i[0])}establish_outbound_channel(e,t){d(e,F);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.ecies_establish_outbound_channel(this.__wbg_ptr,e.__wbg_ptr,n,i);if(s[2])throw c(s[1]);return Te.__wrap(s[0])}}const ir=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ed25519publickey_free(_>>>0,1));class B{static __wrap(e){e=e>>>0;const t=Object.create(B.prototype);return t.__wbg_ptr=e,ir.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ir.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_ed25519publickey_free(e,0)}get length(){return r.ed25519publickey_length(this.__wbg_ptr)>>>0}toBase64(){let e,t;try{const n=r.ed25519publickey_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ed25519signature_free(_>>>0,1));class M{static __wrap(e){e=e>>>0;const t=Object.create(M.prototype);return t.__wbg_ptr=e,ut.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ut.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_ed25519signature_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.ed25519signature_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,ut.register(this,this.__wbg_ptr,this),this}toBase64(){let e,t;try{const n=r.ed25519signature_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const sr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_emoji_free(_>>>0,1));class Se{static __wrap(e){e=e>>>0;const t=Object.create(Se.prototype);return t.__wbg_ptr=e,sr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,sr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_emoji_free(e,0)}get symbol(){return r.emoji_symbol(this.__wbg_ptr)}get description(){return r.emoji_description(this.__wbg_ptr)}}const pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_encryptedattachment_free(_>>>0,1));class P{static __wrap(e){e=e>>>0;const t=Object.create(P.prototype);return t.__wbg_ptr=e,pt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,pt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_encryptedattachment_free(e,0)}constructor(e,t){const n=D(e,r.__wbindgen_malloc),i=o,s=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o,b=r.encryptedattachment_new(n,i,s,a);if(b[2])throw c(b[1]);return this.__wbg_ptr=b[0]>>>0,pt.register(this,this.__wbg_ptr,this),this}get encryptedData(){const e=r.encryptedattachment_encryptedData(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}get mediaEncryptionInfo(){const e=r.encryptedattachment_mediaEncryptionInfo(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get hasMediaEncryptionInfoBeenConsumed(){return r.encryptedattachment_hasMediaEncryptionInfoBeenConsumed(this.__wbg_ptr)!==0}}const or=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_encryptioninfo_free(_>>>0,1));class qe{static __wrap(e){e=e>>>0;const t=Object.create(qe.prototype);return t.__wbg_ptr=e,or.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,or.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_encryptioninfo_free(e,0)}get sender(){const e=r.__wbg_get_encryptioninfo_sender(this.__wbg_ptr);return f.__wrap(e)}set sender(e){d(e,f);var t=e.__destroy_into_raw();r.__wbg_set_encryptioninfo_sender(this.__wbg_ptr,t)}get senderDevice(){const e=r.__wbg_get_encryptioninfo_senderDevice(this.__wbg_ptr);return e===0?void 0:m.__wrap(e)}set senderDevice(e){let t=0;u(e)||(d(e,m),t=e.__destroy_into_raw()),r.__wbg_set_encryptioninfo_senderDevice(this.__wbg_ptr,t)}get senderCurve25519Key(){let e,t;try{const n=r.__wbg_get_encryptioninfo_senderCurve25519Key(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set senderCurve25519Key(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get senderClaimedEd25519Key(){const e=r.__wbg_get_encryptioninfo_senderClaimedEd25519Key(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set senderClaimedEd25519Key(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_backupVersion(this.__wbg_ptr,t,n)}shieldState(e){const t=r.encryptioninfo_shieldState(this.__wbg_ptr,e);return re.__wrap(t)}}const cr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_encryptionsettings_free(_>>>0,1));class Zr{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,cr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_encryptionsettings_free(e,0)}get algorithm(){return r.__wbg_get_encryptionsettings_algorithm(this.__wbg_ptr)}set algorithm(e){r.__wbg_set_encryptionsettings_algorithm(this.__wbg_ptr,e)}get encryptStateEvents(){return r.__wbg_get_encryptionsettings_encryptStateEvents(this.__wbg_ptr)!==0}set encryptStateEvents(e){r.__wbg_set_encryptionsettings_encryptStateEvents(this.__wbg_ptr,e)}get rotationPeriod(){const e=r.__wbg_get_encryptionsettings_rotationPeriod(this.__wbg_ptr);return BigInt.asUintN(64,e)}set rotationPeriod(e){r.__wbg_set_encryptionsettings_rotationPeriod(this.__wbg_ptr,e)}get rotationPeriodMessages(){const e=r.__wbg_get_encryptionsettings_rotationPeriodMessages(this.__wbg_ptr);return BigInt.asUintN(64,e)}set rotationPeriodMessages(e){r.__wbg_set_encryptionsettings_rotationPeriodMessages(this.__wbg_ptr,e)}get historyVisibility(){return r.__wbg_get_encryptionsettings_historyVisibility(this.__wbg_ptr)}set historyVisibility(e){r.__wbg_set_encryptionsettings_historyVisibility(this.__wbg_ptr,e)}get sharingStrategy(){const e=r.__wbg_get_encryptionsettings_sharingStrategy(this.__wbg_ptr);return q.__wrap(e)}set sharingStrategy(e){d(e,q);var t=e.__destroy_into_raw();r.__wbg_set_encryptionsettings_sharingStrategy(this.__wbg_ptr,t)}constructor(){const e=r.encryptionsettings_new();return this.__wbg_ptr=e>>>0,cr.register(this,this.__wbg_ptr,this),this}}const ar=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_establishedecies_free(_>>>0,1));class E{static __wrap(e){e=e>>>0;const t=Object.create(E.prototype);return t.__wbg_ptr=e,ar.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ar.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_establishedecies_free(e,0)}public_key(){const e=r.establishedecies_public_key(this.__wbg_ptr);return F.__wrap(e)}encrypt(e){let t,n;try{const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=r.establishedecies_encrypt(this.__wbg_ptr,i,s);return t=a[0],n=a[1],w(a[0],a[1])}finally{r.__wbindgen_free(t,n,1)}}decrypt(e){let t,n;try{const a=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),b=o,l=r.establishedecies_decrypt(this.__wbg_ptr,a,b);var i=l[0],s=l[1];if(l[3])throw i=0,s=0,c(l[2]);return t=i,n=s,w(i,s)}finally{r.__wbindgen_free(t,n,1)}}check_code(){const e=r.establishedecies_check_code(this.__wbg_ptr);return fe.__wrap(e)}}const gr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_eventid_free(_>>>0,1));class e_{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_eventid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.eventid_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,gr.register(this,this.__wbg_ptr,this),this}get localpart(){let e,t;try{const n=r.eventid_localpart(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get serverName(){const e=r.eventid_serverName(this.__wbg_ptr);return e===0?void 0:te.__wrap(e)}toString(){let e,t;try{const n=r.eventid_toString(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const wr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_identitykeys_free(_>>>0,1));class je{static __wrap(e){e=e>>>0;const t=Object.create(je.prototype);return t.__wbg_ptr=e,wr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,wr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_identitykeys_free(e,0)}get ed25519(){const e=r.__wbg_get_identitykeys_ed25519(this.__wbg_ptr);return B.__wrap(e)}set ed25519(e){d(e,B);var t=e.__destroy_into_raw();r.__wbg_set_identitykeys_ed25519(this.__wbg_ptr,t)}get curve25519(){const e=r.__wbg_get_identitykeys_curve25519(this.__wbg_ptr);return F.__wrap(e)}set curve25519(e){d(e,F);var t=e.__destroy_into_raw();r.__wbg_set_identitykeys_curve25519(this.__wbg_ptr,t)}}const dr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_inboundcreationresult_free(_>>>0,1));class Ke{static __wrap(e){e=e>>>0;const t=Object.create(Ke.prototype);return t.__wbg_ptr=e,dr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,dr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_inboundcreationresult_free(e,0)}get channel(){const e=r.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return E.__wrap(e)}set channel(e){d(e,E);var t=e.__destroy_into_raw();r.__wbg_set_inboundcreationresult_channel(this.__wbg_ptr,t)}get message(){let e,t;try{const n=r.__wbg_get_inboundcreationresult_message(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set message(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}}const br=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_inboundgroupsession_free(_>>>0,1));class Ie{static __wrap(e){e=e>>>0;const t=Object.create(Ie.prototype);return t.__wbg_ptr=e,br.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,br.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_inboundgroupsession_free(e,0)}get roomId(){const e=r.inboundgroupsession_roomId(this.__wbg_ptr);return h.__wrap(e)}get senderKey(){const e=r.inboundgroupsession_senderKey(this.__wbg_ptr);return F.__wrap(e)}get sessionId(){let e,t;try{const n=r.inboundgroupsession_sessionId(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}hasBeenImported(){return r.inboundgroupsession_hasBeenImported(this.__wbg_ptr)!==0}}const ur=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_invalidtodeviceevent_free(_>>>0,1));class De{static __wrap(e){e=e>>>0;const t=Object.create(De.prototype);return t.__wbg_ptr=e,ur.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ur.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_invalidtodeviceevent_free(e,0)}get rawEvent(){return r.__wbg_get_invalidtodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return r.invalidtodeviceevent_type(this.__wbg_ptr)}}const lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_keysbackuprequest_free(_>>>0,1));class Ce{static __wrap(e){e=e>>>0;const t=Object.create(Ce.prototype);return t.__wbg_ptr=e,lt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_keysbackuprequest_free(e,0)}get id(){return r.__wbg_get_keysbackuprequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_keysbackuprequest_body(this.__wbg_ptr)}get version(){return r.__wbg_get_keysbackuprequest_version(this.__wbg_ptr)}constructor(e,t,n){const i=r.keysbackuprequest_new(e,t,n);return this.__wbg_ptr=i>>>0,lt.register(this,this.__wbg_ptr,this),this}get type(){return r.keysbackuprequest_type(this.__wbg_ptr)}}const ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_keysclaimrequest_free(_>>>0,1));class Oe{static __wrap(e){e=e>>>0;const t=Object.create(Oe.prototype);return t.__wbg_ptr=e,ft.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_keysclaimrequest_free(e,0)}get id(){return r.__wbg_get_keysclaimrequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_keysclaimrequest_body(this.__wbg_ptr)}constructor(e,t){const n=r.keysclaimrequest_new(e,t);return this.__wbg_ptr=n>>>0,ft.register(this,this.__wbg_ptr,this),this}get type(){return r.keysclaimrequest_type(this.__wbg_ptr)}}const yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_keysqueryrequest_free(_>>>0,1));class Y{static __wrap(e){e=e>>>0;const t=Object.create(Y.prototype);return t.__wbg_ptr=e,yt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_keysqueryrequest_free(e,0)}get id(){return r.__wbg_get_keysqueryrequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_keysqueryrequest_body(this.__wbg_ptr)}constructor(e,t){const n=r.keysqueryrequest_new(e,t);return this.__wbg_ptr=n>>>0,yt.register(this,this.__wbg_ptr,this),this}get type(){return r.keysqueryrequest_type(this.__wbg_ptr)}}const ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_keysuploadrequest_free(_>>>0,1));class Ue{static __wrap(e){e=e>>>0;const t=Object.create(Ue.prototype);return t.__wbg_ptr=e,ht.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_keysuploadrequest_free(e,0)}get id(){return r.__wbg_get_keysuploadrequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_keysuploadrequest_body(this.__wbg_ptr)}constructor(e,t){const n=r.keysuploadrequest_new(e,t);return this.__wbg_ptr=n>>>0,ht.register(this,this.__wbg_ptr,this),this}get type(){return r.keysuploadrequest_type(this.__wbg_ptr)}}const pr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_maybesignature_free(_>>>0,1));class Z{static __wrap(e){e=e>>>0;const t=Object.create(Z.prototype);return t.__wbg_ptr=e,pr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,pr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_maybesignature_free(e,0)}isValid(){return r.maybesignature_isValid(this.__wbg_ptr)!==0}isInvalid(){return r.maybesignature_isInvalid(this.__wbg_ptr)!==0}get signature(){const e=r.maybesignature_signature(this.__wbg_ptr);return e===0?void 0:et.__wrap(e)}get invalidSignatureSource(){const e=r.maybesignature_invalidSignatureSource(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}}const lr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_megolmdecryptionerror_free(_>>>0,1));class Be{static __wrap(e){e=e>>>0;const t=Object.create(Be.prototype);return t.__wbg_ptr=e,lr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,lr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_megolmdecryptionerror_free(e,0)}get code(){return r.__wbg_get_megolmdecryptionerror_code(this.__wbg_ptr)}get description(){return r.__wbg_get_megolmdecryptionerror_description(this.__wbg_ptr)}get maybe_withheld(){return r.__wbg_get_megolmdecryptionerror_maybe_withheld(this.__wbg_ptr)}}const fr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_megolmv1backupkey_free(_>>>0,1));class Ee{static __wrap(e){e=e>>>0;const t=Object.create(Ee.prototype);return t.__wbg_ptr=e,fr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,fr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_megolmv1backupkey_free(e,0)}get publicKeyBase64(){return r.megolmv1backupkey_publicKeyBase64(this.__wbg_ptr)}get algorithm(){return r.megolmv1backupkey_algorithm(this.__wbg_ptr)}}const x_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_migration_free(_>>>0,1));class T_{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,x_.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_migration_free(e,0)}static migrateBaseData(e,t,n,i){return d(e,Xr),d(n,U),r.migration_migrateBaseData(e.__wbg_ptr,t,n.__wbg_ptr,u(i)?0:k(i))}static migrateOlmSessions(e,t,n,i){const s=S(e,r.__wbindgen_malloc),a=o;d(n,U);const b=r.migration_migrateOlmSessions(s,a,t,n.__wbg_ptr,u(i)?0:k(i));if(b[2])throw c(b[1]);return c(b[0])}static migrateMegolmSessions(e,t,n,i){const s=S(e,r.__wbindgen_malloc),a=o;d(n,U);const b=r.migration_migrateMegolmSessions(s,a,t,n.__wbg_ptr,u(i)?0:k(i));if(b[2])throw c(b[1]);return c(b[0])}}const mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_olmmachine_free(_>>>0,1));class Ve{static __wrap(e){e=e>>>0;const t=Object.create(Ve.prototype);return t.__wbg_ptr=e,mt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_olmmachine_free(e,0)}constructor(){const e=r.olmmachine_new();if(e[2])throw c(e[1]);return this.__wbg_ptr=e[0]>>>0,mt.register(this,this.__wbg_ptr,this),this}static initialize(e,t,n,i,s){d(e,f),d(t,m);var a=u(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),b=o,l=u(i)?0:g(i,r.__wbindgen_malloc,r.__wbindgen_realloc),y=o;return r.olmmachine_initialize(e.__wbg_ptr,t.__wbg_ptr,a,b,l,y,u(s)?0:k(s))}static initFromStore(e,t,n,i){return d(e,f),d(t,m),d(n,U),r.olmmachine_initFromStore(e.__wbg_ptr,t.__wbg_ptr,n.__wbg_ptr,u(i)?0:k(i))}get userId(){const e=r.olmmachine_userId(this.__wbg_ptr);return f.__wrap(e)}get deviceId(){const e=r.olmmachine_deviceId(this.__wbg_ptr);return m.__wrap(e)}get deviceCreationTimeMs(){return r.olmmachine_deviceCreationTimeMs(this.__wbg_ptr)}get identityKeys(){const e=r.olmmachine_identityKeys(this.__wbg_ptr);return je.__wrap(e)}get displayName(){return r.olmmachine_displayName(this.__wbg_ptr)}get roomKeyRequestsEnabled(){return r.olmmachine_roomKeyRequestsEnabled(this.__wbg_ptr)!==0}set roomKeyRequestsEnabled(e){r.olmmachine_set_roomKeyRequestsEnabled(this.__wbg_ptr,e)}get roomKeyForwardingEnabled(){return r.olmmachine_roomKeyForwardingEnabled(this.__wbg_ptr)!==0}set roomKeyForwardingEnabled(e){r.olmmachine_set_roomKeyForwardingEnabled(this.__wbg_ptr,e)}trackedUsers(){const e=r.olmmachine_trackedUsers(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}updateTrackedUsers(e){const t=S(e,r.__wbindgen_malloc),n=o;return r.olmmachine_updateTrackedUsers(this.__wbg_ptr,t,n)}markAllTrackedUsersAsDirty(){return r.olmmachine_markAllTrackedUsersAsDirty(this.__wbg_ptr)}receiveSyncChanges(e,t,n,i,s){const a=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),b=o;d(t,Yr);let l=0;u(s)||(d(s,de),l=s.__destroy_into_raw());const y=r.olmmachine_receiveSyncChanges(this.__wbg_ptr,a,b,t.__wbg_ptr,n,u(i)?0:k(i),l);if(y[2])throw c(y[1]);return c(y[0])}outgoingRequests(){return r.olmmachine_outgoingRequests(this.__wbg_ptr)}markRequestAsSent(e,t,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),b=o,l=r.olmmachine_markRequestAsSent(this.__wbg_ptr,i,s,t,a,b);if(l[2])throw c(l[1]);return c(l[0])}encryptRoomEvent(e,t,n){d(e,h);const i=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),b=o,l=r.olmmachine_encryptRoomEvent(this.__wbg_ptr,e.__wbg_ptr,i,s,a,b);if(l[2])throw c(l[1]);return c(l[0])}encryptStateEvent(e,t,n,i){d(e,h);const s=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o,b=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),l=o,y=g(i,r.__wbindgen_malloc,r.__wbindgen_realloc),z=o,v=r.olmmachine_encryptStateEvent(this.__wbg_ptr,e.__wbg_ptr,s,a,b,l,y,z);if(v[2])throw c(v[1]);return c(v[0])}decryptRoomEvent(e,t,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;d(t,h),d(n,de);const a=r.olmmachine_decryptRoomEvent(this.__wbg_ptr,i,s,t.__wbg_ptr,n.__wbg_ptr);if(a[2])throw c(a[1]);return c(a[0])}getRoomEventEncryptionInfo(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;d(t,h);const s=r.olmmachine_getRoomEventEncryptionInfo(this.__wbg_ptr,n,i,t.__wbg_ptr);if(s[2])throw c(s[1]);return c(s[0])}crossSigningStatus(){return r.olmmachine_crossSigningStatus(this.__wbg_ptr)}exportSecretsBundle(){return r.olmmachine_exportSecretsBundle(this.__wbg_ptr)}importSecretsBundle(e){d(e,N);var t=e.__destroy_into_raw();return r.olmmachine_importSecretsBundle(this.__wbg_ptr,t)}exportCrossSigningKeys(){return r.olmmachine_exportCrossSigningKeys(this.__wbg_ptr)}importCrossSigningKeys(e,t,n){var i=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=u(t)?0:g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),b=o,l=u(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),y=o;return r.olmmachine_importCrossSigningKeys(this.__wbg_ptr,i,s,a,b,l,y)}bootstrapCrossSigning(e){return r.olmmachine_bootstrapCrossSigning(this.__wbg_ptr,e)}getIdentity(e){return d(e,f),r.olmmachine_getIdentity(this.__wbg_ptr,e.__wbg_ptr)}sign(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;return r.olmmachine_sign(this.__wbg_ptr,t,n)}invalidateGroupSession(e){return d(e,h),r.olmmachine_invalidateGroupSession(this.__wbg_ptr,e.__wbg_ptr)}shareRoomKey(e,t,n){d(e,h);const i=S(t,r.__wbindgen_malloc),s=o;return d(n,Zr),r.olmmachine_shareRoomKey(this.__wbg_ptr,e.__wbg_ptr,i,s,n.__wbg_ptr)}queryKeysForUsers(e){const t=S(e,r.__wbindgen_malloc),n=o,i=r.olmmachine_queryKeysForUsers(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return Y.__wrap(i[0])}getMissingSessions(e){const t=S(e,r.__wbindgen_malloc),n=o;return r.olmmachine_getMissingSessions(this.__wbg_ptr,t,n)}getUserDevices(e,t){return d(e,f),r.olmmachine_getUserDevices(this.__wbg_ptr,e.__wbg_ptr,!u(t),u(t)?0:t)}getDevice(e,t,n){return d(e,f),d(t,m),r.olmmachine_getDevice(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,!u(n),u(n)?0:n)}getVerification(e,t){d(e,f);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_getVerification(this.__wbg_ptr,e.__wbg_ptr,n,i);if(s[2])throw c(s[1]);return c(s[0])}getVerificationRequest(e,t){d(e,f);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_getVerificationRequest(this.__wbg_ptr,e.__wbg_ptr,n,i);return s===0?void 0:W.__wrap(s)}getVerificationRequests(e){return d(e,f),r.olmmachine_getVerificationRequests(this.__wbg_ptr,e.__wbg_ptr)}receiveVerificationEvent(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;d(t,h);const s=r.olmmachine_receiveVerificationEvent(this.__wbg_ptr,n,i,t.__wbg_ptr);if(s[2])throw c(s[1]);return c(s[0])}exportRoomKeys(e){return r.olmmachine_exportRoomKeys(this.__wbg_ptr,e)}importRoomKeys(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_importRoomKeys(this.__wbg_ptr,n,i,t);if(s[2])throw c(s[1]);return c(s[0])}importExportedRoomKeys(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_importExportedRoomKeys(this.__wbg_ptr,n,i,t);if(s[2])throw c(s[1]);return c(s[0])}importBackedUpRoomKeys(e,t,n){const i=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=r.olmmachine_importBackedUpRoomKeys(this.__wbg_ptr,e,u(t)?0:k(t),i,s);if(a[2])throw c(a[1]);return c(a[0])}saveBackupDecryptionKey(e,t){d(e,O);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;return r.olmmachine_saveBackupDecryptionKey(this.__wbg_ptr,e.__wbg_ptr,n,i)}getBackupKeys(){return r.olmmachine_getBackupKeys(this.__wbg_ptr)}verifyBackup(e){const t=r.olmmachine_verifyBackup(this.__wbg_ptr,e);if(t[2])throw c(t[1]);return c(t[0])}enableBackupV1(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o,b=r.olmmachine_enableBackupV1(this.__wbg_ptr,n,i,s,a);if(b[2])throw c(b[1]);return c(b[0])}isBackupEnabled(){return r.olmmachine_isBackupEnabled(this.__wbg_ptr)}disableBackup(){return r.olmmachine_disableBackup(this.__wbg_ptr)}backupRoomKeys(){return r.olmmachine_backupRoomKeys(this.__wbg_ptr)}roomKeyCounts(){return r.olmmachine_roomKeyCounts(this.__wbg_ptr)}static encryptExportedRoomKeys(e,t,n){let i,s;try{const l=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),y=o,z=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),v=o,V=r.olmmachine_encryptExportedRoomKeys(l,y,z,v,n);var a=V[0],b=V[1];if(V[3])throw a=0,b=0,c(V[2]);return i=a,s=b,w(a,b)}finally{r.__wbindgen_free(i,s,1)}}static decryptExportedRoomKeys(e,t){let n,i;try{const b=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),l=o,y=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),z=o,v=r.olmmachine_decryptExportedRoomKeys(b,l,y,z);var s=v[0],a=v[1];if(v[3])throw s=0,a=0,c(v[2]);return n=s,i=a,w(s,a)}finally{r.__wbindgen_free(n,i,1)}}registerRoomKeyUpdatedCallback(e){r.olmmachine_registerRoomKeyUpdatedCallback(this.__wbg_ptr,e)}registerRoomKeysWithheldCallback(e){r.olmmachine_registerRoomKeysWithheldCallback(this.__wbg_ptr,e)}registerUserIdentityUpdatedCallback(e){r.olmmachine_registerUserIdentityUpdatedCallback(this.__wbg_ptr,e)}registerDevicesUpdatedCallback(e){r.olmmachine_registerDevicesUpdatedCallback(this.__wbg_ptr,e)}registerReceiveSecretCallback(e){r.olmmachine_registerReceiveSecretCallback(this.__wbg_ptr,e)}getSecretsFromInbox(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;return r.olmmachine_getSecretsFromInbox(this.__wbg_ptr,t,n)}deleteSecretsFromInbox(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;return r.olmmachine_deleteSecretsFromInbox(this.__wbg_ptr,t,n)}requestMissingSecretsIfNeeded(){return r.olmmachine_requestMissingSecretsIfNeeded(this.__wbg_ptr)}getRoomSettings(e){return d(e,h),r.olmmachine_getRoomSettings(this.__wbg_ptr,e.__wbg_ptr)}setRoomSettings(e,t){return d(e,h),d(t,ee),r.olmmachine_setRoomSettings(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}dehydratedDevices(){const e=r.olmmachine_dehydratedDevices(this.__wbg_ptr);return Fe.__wrap(e)}buildRoomKeyBundle(e){return d(e,h),r.olmmachine_buildRoomKeyBundle(this.__wbg_ptr,e.__wbg_ptr)}shareRoomKeyBundleData(e,t,n,i,s){d(e,f),d(t,h);const a=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),b=o;var l=u(i)?0:g(i,r.__wbindgen_malloc,r.__wbindgen_realloc),y=o;d(s,q);var z=s.__destroy_into_raw();const v=r.olmmachine_shareRoomKeyBundleData(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,a,b,l,y,z);if(v[2])throw c(v[1]);return c(v[0])}getReceivedRoomKeyBundleData(e,t){return d(e,h),d(t,f),r.olmmachine_getReceivedRoomKeyBundleData(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}receiveRoomKeyBundle(e,t){d(e,ie);var n=e.__destroy_into_raw();const i=D(t,r.__wbindgen_malloc),s=o,a=r.olmmachine_receiveRoomKeyBundle(this.__wbg_ptr,n,i,s);if(a[2])throw c(a[1]);return c(a[0])}close(){const e=this.__destroy_into_raw();r.olmmachine_close(e)}}const yr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_otheruseridentity_free(_>>>0,1));class xe{static __wrap(e){e=e>>>0;const t=Object.create(xe.prototype);return t.__wbg_ptr=e,yr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,yr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_otheruseridentity_free(e,0)}isVerified(){return r.otheruseridentity_isVerified(this.__wbg_ptr)!==0}verify(){return r.otheruseridentity_verify(this.__wbg_ptr)}requestVerification(e,t,n){d(e,h),d(t,e_);var i=u(n)?0:S(n,r.__wbindgen_malloc),s=o;const a=r.otheruseridentity_requestVerification(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,i,s);if(a[2])throw c(a[1]);return W.__wrap(a[0])}verificationRequestContent(e){let t,n;try{var i=u(e)?0:S(e,r.__wbindgen_malloc),s=o;const l=r.otheruseridentity_verificationRequestContent(this.__wbg_ptr,i,s);var a=l[0],b=l[1];if(l[3])throw a=0,b=0,c(l[2]);return t=a,n=b,w(a,b)}finally{r.__wbindgen_free(t,n,1)}}get masterKey(){let e,t;try{const s=r.otheruseridentity_masterKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,w(n,i)}finally{r.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const s=r.otheruseridentity_selfSigningKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,w(n,i)}finally{r.__wbindgen_free(e,t,1)}}pinCurrentMasterKey(){return r.otheruseridentity_pinCurrentMasterKey(this.__wbg_ptr)}identityNeedsUserApproval(){return r.otheruseridentity_identityNeedsUserApproval(this.__wbg_ptr)!==0}wasPreviouslyVerified(){return r.otheruseridentity_wasPreviouslyVerified(this.__wbg_ptr)!==0}withdrawVerification(){return r.otheruseridentity_withdrawVerification(this.__wbg_ptr)}hasVerificationViolation(){return r.otheruseridentity_hasVerificationViolation(this.__wbg_ptr)!==0}}const hr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_outboundcreationresult_free(_>>>0,1));class Te{static __wrap(e){e=e>>>0;const t=Object.create(Te.prototype);return t.__wbg_ptr=e,hr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,hr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_outboundcreationresult_free(e,0)}get channel(){const e=r.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return E.__wrap(e)}set channel(e){d(e,E);var t=e.__destroy_into_raw();r.__wbg_set_inboundcreationresult_channel(this.__wbg_ptr,t)}get initial_message(){let e,t;try{const n=r.__wbg_get_outboundcreationresult_initial_message(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set initial_message(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}}const mr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ownuseridentity_free(_>>>0,1));class Ae{static __wrap(e){e=e>>>0;const t=Object.create(Ae.prototype);return t.__wbg_ptr=e,mr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,mr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_ownuseridentity_free(e,0)}isVerified(){return r.ownuseridentity_isVerified(this.__wbg_ptr)!==0}verify(){return r.ownuseridentity_verify(this.__wbg_ptr)}requestVerification(e){var t=u(e)?0:S(e,r.__wbindgen_malloc),n=o;const i=r.ownuseridentity_requestVerification(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}trustsOurOwnDevice(){return r.ownuseridentity_trustsOurOwnDevice(this.__wbg_ptr)}get masterKey(){let e,t;try{const s=r.ownuseridentity_masterKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,w(n,i)}finally{r.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const s=r.ownuseridentity_selfSigningKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,w(n,i)}finally{r.__wbindgen_free(e,t,1)}}get userSigningKey(){let e,t;try{const s=r.ownuseridentity_userSigningKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,w(n,i)}finally{r.__wbindgen_free(e,t,1)}}wasPreviouslyVerified(){return r.ownuseridentity_wasPreviouslyVerified(this.__wbg_ptr)!==0}withdrawVerification(){return r.ownuseridentity_withdrawVerification(this.__wbg_ptr)}hasVerificationViolation(){return r.ownuseridentity_hasVerificationViolation(this.__wbg_ptr)!==0}}const vr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_pickledinboundgroupsession_free(_>>>0,1));class Me{static __unwrap(e){return e instanceof Me?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,vr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pickledinboundgroupsession_free(e,0)}get pickle(){let e,t;try{const n=r.__wbg_get_pickledinboundgroupsession_pickle(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set pickle(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get senderKey(){let e,t;try{const n=r.__wbg_get_pickledinboundgroupsession_senderKey(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set senderKey(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,n)}get senderSigningKey(){const e=r.__wbg_get_pickledinboundgroupsession_senderSigningKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set senderSigningKey(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_backupRecoveryKey(this.__wbg_ptr,t,n)}get roomId(){const e=r.__wbg_get_pickledinboundgroupsession_roomId(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}set roomId(e){let t=0;u(e)||(d(e,h),t=e.__destroy_into_raw()),r.__wbg_set_pickledinboundgroupsession_roomId(this.__wbg_ptr,t)}get imported(){return r.__wbg_get_pickledinboundgroupsession_imported(this.__wbg_ptr)!==0}set imported(e){r.__wbg_set_pickledinboundgroupsession_imported(this.__wbg_ptr,e)}get backedUp(){return r.__wbg_get_pickledinboundgroupsession_backedUp(this.__wbg_ptr)!==0}set backedUp(e){r.__wbg_set_pickledinboundgroupsession_backedUp(this.__wbg_ptr,e)}constructor(){const e=r.pickledinboundgroupsession_new();return this.__wbg_ptr=e>>>0,vr.register(this,this.__wbg_ptr,this),this}}const kr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_pickledsession_free(_>>>0,1));class Pe{static __unwrap(e){return e instanceof Pe?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,kr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pickledsession_free(e,0)}get pickle(){let e,t;try{const n=r.__wbg_get_pickledsession_pickle(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set pickle(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get senderKey(){let e,t;try{const n=r.__wbg_get_pickledsession_senderKey(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set senderKey(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,n)}get createdUsingFallbackKey(){return r.__wbg_get_pickledsession_createdUsingFallbackKey(this.__wbg_ptr)!==0}set createdUsingFallbackKey(e){r.__wbg_set_pickledsession_createdUsingFallbackKey(this.__wbg_ptr,e)}get creationTime(){return r.__wbg_get_pickledsession_creationTime(this.__wbg_ptr)}set creationTime(e){r.__wbg_set_pickledsession_creationTime(this.__wbg_ptr,e)}get lastUseTime(){return r.__wbg_get_pickledsession_lastUseTime(this.__wbg_ptr)}set lastUseTime(e){r.__wbg_set_pickledsession_lastUseTime(this.__wbg_ptr,e)}constructor(){const e=r.pickledsession_new();return this.__wbg_ptr=e>>>0,kr.register(this,this.__wbg_ptr,this),this}}const vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_pkdecryption_free(_>>>0,1));class be{static __wrap(e){e=e>>>0;const t=Object.create(be.prototype);return t.__wbg_ptr=e,vt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pkdecryption_free(e,0)}constructor(){const e=r.pkdecryption_new();return this.__wbg_ptr=e>>>0,vt.register(this,this.__wbg_ptr,this),this}static fromKey(e){d(e,C);const t=r.pkdecryption_fromKey(e.__wbg_ptr);return be.__wrap(t)}secretKey(){const e=r.pkdecryption_secretKey(this.__wbg_ptr);return C.__wrap(e)}publicKey(){const e=r.pkdecryption_publicKey(this.__wbg_ptr);return F.__wrap(e)}decryptString(e){let t,n;try{d(e,I);const a=r.pkdecryption_decryptString(this.__wbg_ptr,e.__wbg_ptr);var i=a[0],s=a[1];if(a[3])throw i=0,s=0,c(a[2]);return t=i,n=s,w(i,s)}finally{r.__wbindgen_free(t,n,1)}}decrypt(e){d(e,I);const t=r.pkdecryption_decrypt(this.__wbg_ptr,e.__wbg_ptr);if(t[3])throw c(t[2]);var n=j(t[0],t[1]).slice();return r.__wbindgen_free(t[0],t[1]*1,1),n}}const Rr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_pkencryption_free(_>>>0,1));class ue{static __wrap(e){e=e>>>0;const t=Object.create(ue.prototype);return t.__wbg_ptr=e,Rr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Rr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pkencryption_free(e,0)}static fromKey(e){d(e,F);const t=r.pkencryption_fromKey(e.__wbg_ptr);return ue.__wrap(t)}encrypt(e){const t=D(e,r.__wbindgen_malloc),n=o,i=r.pkencryption_encrypt(this.__wbg_ptr,t,n);return I.__wrap(i)}encryptString(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.pkencryption_encrypt(this.__wbg_ptr,t,n);return I.__wrap(i)}}const Fr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_pkmessage_free(_>>>0,1));class I{static __wrap(e){e=e>>>0;const t=Object.create(I.prototype);return t.__wbg_ptr=e,Fr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Fr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pkmessage_free(e,0)}ciphertext(){const e=r.pkmessage_ciphertext(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}mac(){const e=r.pkmessage_mac(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}ephemeralKey(){const e=r.pkmessage_ephemeralKey(this.__wbg_ptr);return F.__wrap(e)}static fromParts(e,t,n){const i=D(e,r.__wbindgen_malloc),s=o,a=D(t,r.__wbindgen_malloc),b=o;d(n,F);const l=r.pkmessage_fromParts(i,s,a,b,n.__wbg_ptr);return I.__wrap(l)}static fromBase64(e){d(e,J);const t=r.pkmessage_fromBase64(e.__wbg_ptr);if(t[2])throw c(t[1]);return I.__wrap(t[0])}toBase64(){const e=r.pkmessage_toBase64(this.__wbg_ptr);return J.__wrap(e)}}const zr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_plaintexttodeviceevent_free(_>>>0,1));class Ne{static __wrap(e){e=e>>>0;const t=Object.create(Ne.prototype);return t.__wbg_ptr=e,zr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,zr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_plaintexttodeviceevent_free(e,0)}get rawEvent(){return r.__wbg_get_plaintexttodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return r.plaintexttodeviceevent_type(this.__wbg_ptr)}}const kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_putdehydrateddevicerequest_free(_>>>0,1));class Le{static __wrap(e){e=e>>>0;const t=Object.create(Le.prototype);return t.__wbg_ptr=e,kt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,kt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_putdehydrateddevicerequest_free(e,0)}get body(){return r.__wbg_get_putdehydrateddevicerequest_body(this.__wbg_ptr)}constructor(e){const t=r.putdehydrateddevicerequest_new(e);return this.__wbg_ptr=t>>>0,kt.register(this,this.__wbg_ptr,this),this}}const Sr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_qr_free(_>>>0,1));class We{static __wrap(e){e=e>>>0;const t=Object.create(We.prototype);return t.__wbg_ptr=e,Sr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Sr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_qr_free(e,0)}state(){return r.qr_state(this.__wbg_ptr)}hasBeenScanned(){return r.qr_hasBeenScanned(this.__wbg_ptr)!==0}hasBeenConfirmed(){return r.qr_hasBeenConfirmed(this.__wbg_ptr)!==0}get userId(){const e=r.qr_userId(this.__wbg_ptr);return f.__wrap(e)}get otherUserId(){const e=r.qr_otherUserId(this.__wbg_ptr);return f.__wrap(e)}get otherDeviceId(){const e=r.qr_otherDeviceId(this.__wbg_ptr);return m.__wrap(e)}weStarted(){return r.qr_weStarted(this.__wbg_ptr)!==0}cancelInfo(){const e=r.qr_cancelInfo(this.__wbg_ptr);return e===0?void 0:L.__wrap(e)}isDone(){return r.qr_isDone(this.__wbg_ptr)!==0}isCancelled(){return r.qr_isCancelled(this.__wbg_ptr)!==0}isSelfVerification(){return r.qr_isSelfVerification(this.__wbg_ptr)!==0}reciprocated(){return r.qr_reciprocated(this.__wbg_ptr)!==0}get flowId(){let e,t;try{const n=r.qr_flowId(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get roomId(){const e=r.qr_roomId(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}toQrCode(){const e=r.qr_toQrCode(this.__wbg_ptr);if(e[2])throw c(e[1]);return Qe.__wrap(e[0])}toBytes(){const e=r.qr_toBytes(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}reciprocate(){const e=r.qr_reciprocate(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}confirmScanning(){const e=r.qr_confirmScanning(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}cancel(){const e=r.qr_cancel(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}cancelWithCode(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.qr_cancelWithCode(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}registerChangesCallback(e){r.qr_registerChangesCallback(this.__wbg_ptr,e)}}const qr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_qrcode_free(_>>>0,1));class Qe{static __wrap(e){e=e>>>0;const t=Object.create(Qe.prototype);return t.__wbg_ptr=e,qr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,qr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_qrcode_free(e,0)}renderIntoBuffer(){const e=r.qrcode_renderIntoBuffer(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}}const Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_qrcodedata_free(_>>>0,1));class Q{static __wrap(e){e=e>>>0;const t=Object.create(Q.prototype);return t.__wbg_ptr=e,Rt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_qrcodedata_free(e,0)}constructor(e,t,n){d(e,F);var i=e.__destroy_into_raw();const s=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o;var b=u(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),l=o;const y=r.qrcodedata_new(i,s,a,b,l);if(y[2])throw c(y[1]);return this.__wbg_ptr=y[0]>>>0,Rt.register(this,this.__wbg_ptr,this),this}static fromBytes(e){const t=D(e,r.__wbindgen_malloc),n=o,i=r.qrcodedata_fromBytes(t,n);if(i[2])throw c(i[1]);return Q.__wrap(i[0])}toBytes(){const e=r.qrcodedata_toBytes(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}static fromBase64(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.qrcodedata_fromBase64(t,n);if(i[2])throw c(i[1]);return Q.__wrap(i[0])}toBase64(){let e,t;try{const n=r.qrcodedata_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get publicKey(){const e=r.qrcodedata_publicKey(this.__wbg_ptr);return F.__wrap(e)}get rendezvousUrl(){let e,t;try{const n=r.qrcodedata_rendezvousUrl(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get serverName(){const e=r.qrcodedata_serverName(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get mode(){return r.qrcodedata_mode(this.__wbg_ptr)}}const jr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_qrcodescan_free(_>>>0,1));class ${static __wrap(e){e=e>>>0;const t=Object.create($.prototype);return t.__wbg_ptr=e,jr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,jr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_qrcodescan_free(e,0)}static fromBytes(e){const t=r.qrcodescan_fromBytes(e);if(t[2])throw c(t[1]);return $.__wrap(t[0])}}const Kr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_rehydrateddevice_free(_>>>0,1));class Ge{static __wrap(e){e=e>>>0;const t=Object.create(Ge.prototype);return t.__wbg_ptr=e,Kr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Kr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_rehydrateddevice_free(e,0)}receiveEvents(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;let s=0;return u(t)||(d(t,de),s=t.__destroy_into_raw()),r.rehydrateddevice_receiveEvents(this.__wbg_ptr,n,i,s)}}const Ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomid_free(_>>>0,1));class h{static __wrap(e){e=e>>>0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,Ft.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof h?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ft.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.roomid_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,Ft.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const n=r.roomid_toString(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const Ir=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomkeycounts_free(_>>>0,1));class Je{static __wrap(e){e=e>>>0;const t=Object.create(Je.prototype);return t.__wbg_ptr=e,Ir.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ir.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomkeycounts_free(e,0)}get total(){return r.__wbg_get_roomkeycounts_total(this.__wbg_ptr)}set total(e){r.__wbg_set_roomkeycounts_total(this.__wbg_ptr,e)}get backedUp(){return r.__wbg_get_roomkeycounts_backedUp(this.__wbg_ptr)}set backedUp(e){r.__wbg_set_roomkeycounts_backedUp(this.__wbg_ptr,e)}}const Dr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomkeyimportresult_free(_>>>0,1));class $e{static __wrap(e){e=e>>>0;const t=Object.create($e.prototype);return t.__wbg_ptr=e,Dr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Dr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomkeyimportresult_free(e,0)}get importedCount(){return r.__wbg_get_roomkeyimportresult_importedCount(this.__wbg_ptr)>>>0}get totalCount(){return r.__wbg_get_roomkeyimportresult_totalCount(this.__wbg_ptr)>>>0}keys(){return r.roomkeyimportresult_keys(this.__wbg_ptr)}}const Cr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomkeyinfo_free(_>>>0,1));class He{static __wrap(e){e=e>>>0;const t=Object.create(He.prototype);return t.__wbg_ptr=e,Cr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Cr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomkeyinfo_free(e,0)}get algorithm(){return r.roomkeyinfo_algorithm(this.__wbg_ptr)}get roomId(){const e=r.roomkeyinfo_roomId(this.__wbg_ptr);return h.__wrap(e)}get senderKey(){const e=r.roomkeyinfo_senderKey(this.__wbg_ptr);return F.__wrap(e)}get sessionId(){let e,t;try{const n=r.roomkeyinfo_sessionId(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const Or=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomkeywithheldinfo_free(_>>>0,1));class Xe{static __wrap(e){e=e>>>0;const t=Object.create(Xe.prototype);return t.__wbg_ptr=e,Or.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Or.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomkeywithheldinfo_free(e,0)}get sender(){const e=r.roomkeywithheldinfo_sender(this.__wbg_ptr);return f.__wrap(e)}get algorithm(){return r.roomkeywithheldinfo_algorithm(this.__wbg_ptr)}get withheldCode(){let e,t;try{const n=r.roomkeywithheldinfo_withheldCode(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get roomId(){const e=r.roomkeywithheldinfo_roomId(this.__wbg_ptr);return h.__wrap(e)}get sessionId(){let e,t;try{const n=r.roomkeywithheldinfo_sessionId(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roommessagerequest_free(_>>>0,1));class Ye{static __wrap(e){e=e>>>0;const t=Object.create(Ye.prototype);return t.__wbg_ptr=e,zt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,zt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roommessagerequest_free(e,0)}get id(){return r.__wbg_get_roommessagerequest_id(this.__wbg_ptr)}get room_id(){return r.__wbg_get_roommessagerequest_room_id(this.__wbg_ptr)}get txn_id(){return r.__wbg_get_roommessagerequest_txn_id(this.__wbg_ptr)}get event_type(){return r.__wbg_get_roommessagerequest_event_type(this.__wbg_ptr)}get body(){return r.__wbg_get_roommessagerequest_body(this.__wbg_ptr)}constructor(e,t,n,i,s){const a=r.roommessagerequest_new(e,t,n,i,s);return this.__wbg_ptr=a>>>0,zt.register(this,this.__wbg_ptr,this),this}get type(){return r.roommessagerequest_type(this.__wbg_ptr)}}const St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomsettings_free(_>>>0,1));class ee{static __wrap(e){e=e>>>0;const t=Object.create(ee.prototype);return t.__wbg_ptr=e,St.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomsettings_free(e,0)}get algorithm(){return r.__wbg_get_roomsettings_algorithm(this.__wbg_ptr)}set algorithm(e){r.__wbg_set_roomsettings_algorithm(this.__wbg_ptr,e)}get encryptStateEvents(){return r.__wbg_get_roomsettings_encryptStateEvents(this.__wbg_ptr)!==0}set encryptStateEvents(e){r.__wbg_set_roomsettings_encryptStateEvents(this.__wbg_ptr,e)}get onlyAllowTrustedDevices(){return r.__wbg_get_roomsettings_onlyAllowTrustedDevices(this.__wbg_ptr)!==0}set onlyAllowTrustedDevices(e){r.__wbg_set_roomsettings_onlyAllowTrustedDevices(this.__wbg_ptr,e)}get sessionRotationPeriodMs(){const e=r.__wbg_get_roomsettings_sessionRotationPeriodMs(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set sessionRotationPeriodMs(e){r.__wbg_set_roomsettings_sessionRotationPeriodMs(this.__wbg_ptr,!u(e),u(e)?0:e)}get sessionRotationPeriodMessages(){const e=r.__wbg_get_roomsettings_sessionRotationPeriodMessages(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set sessionRotationPeriodMessages(e){r.__wbg_set_roomsettings_sessionRotationPeriodMessages(this.__wbg_ptr,!u(e),u(e)?0:e)}constructor(){const e=r.roomsettings_new();return this.__wbg_ptr=e>>>0,St.register(this,this.__wbg_ptr,this),this}}const Ur=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_sas_free(_>>>0,1));class Ze{static __wrap(e){e=e>>>0;const t=Object.create(Ze.prototype);return t.__wbg_ptr=e,Ur.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ur.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_sas_free(e,0)}get userId(){const e=r.sas_userId(this.__wbg_ptr);return f.__wrap(e)}get deviceId(){const e=r.sas_deviceId(this.__wbg_ptr);return m.__wrap(e)}get otherUserId(){const e=r.sas_otherUserId(this.__wbg_ptr);return f.__wrap(e)}get otherDeviceId(){const e=r.sas_otherDeviceId(this.__wbg_ptr);return m.__wrap(e)}get flowId(){let e,t;try{const n=r.sas_flowId(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get roomId(){const e=r.sas_roomId(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}supportsEmoji(){return r.sas_supportsEmoji(this.__wbg_ptr)!==0}startedFromRequest(){return r.sas_startedFromRequest(this.__wbg_ptr)!==0}isSelfVerification(){return r.sas_isSelfVerification(this.__wbg_ptr)!==0}haveWeConfirmed(){return r.sas_haveWeConfirmed(this.__wbg_ptr)!==0}hasBeenAccepted(){return r.sas_hasBeenAccepted(this.__wbg_ptr)!==0}cancelInfo(){const e=r.sas_cancelInfo(this.__wbg_ptr);return e===0?void 0:L.__wrap(e)}weStarted(){return r.sas_weStarted(this.__wbg_ptr)!==0}accept(){const e=r.sas_accept(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}confirm(){return r.sas_confirm(this.__wbg_ptr)}cancel(){const e=r.sas_cancel(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}cancelWithCode(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.sas_cancelWithCode(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}timedOut(){return r.sas_timedOut(this.__wbg_ptr)!==0}canBePresented(){return r.sas_canBePresented(this.__wbg_ptr)!==0}isDone(){return r.sas_isDone(this.__wbg_ptr)!==0}isCancelled(){return r.sas_isCancelled(this.__wbg_ptr)!==0}emoji(){const e=r.sas_emoji(this.__wbg_ptr);let t;return e[0]!==0&&(t=G(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*4,4)),t}emojiIndex(){const e=r.sas_emojiIndex(this.__wbg_ptr);let t;return e[0]!==0&&(t=j(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}decimals(){const e=r.sas_decimals(this.__wbg_ptr);let t;return e[0]!==0&&(t=o_(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*2,2)),t}registerChangesCallback(e){r.sas_registerChangesCallback(this.__wbg_ptr,e)}}const Br=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_secretsbundle_free(_>>>0,1));class N{static __wrap(e){e=e>>>0;const t=Object.create(N.prototype);return t.__wbg_ptr=e,Br.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Br.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_secretsbundle_free(e,0)}get masterKey(){let e,t;try{const n=r.secretsbundle_masterKey(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const n=r.secretsbundle_selfSigningKey(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get userSigningKey(){let e,t;try{const n=r.secretsbundle_userSigningKey(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get backupBundle(){const e=r.secretsbundle_backupBundle(this.__wbg_ptr);return e===0?void 0:le.__wrap(e)}to_json(){const e=r.secretsbundle_to_json(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}static from_json(e){const t=r.secretsbundle_from_json(e);if(t[2])throw c(t[1]);return N.__wrap(t[0])}}const qt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_servername_free(_>>>0,1));class te{static __wrap(e){e=e>>>0;const t=Object.create(te.prototype);return t.__wbg_ptr=e,qt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,qt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_servername_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.servername_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,qt.register(this,this.__wbg_ptr,this),this}get host(){let e,t;try{const n=r.servername_host(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get port(){const e=r.servername_port(this.__wbg_ptr);return e===16777215?void 0:e}isIpLiteral(){return r.servername_isIpLiteral(this.__wbg_ptr)!==0}}const Er=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_shieldstate_free(_>>>0,1));class re{static __wrap(e){e=e>>>0;const t=Object.create(re.prototype);return t.__wbg_ptr=e,Er.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Er.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_shieldstate_free(e,0)}get color(){return r.__wbg_get_shieldstate_color(this.__wbg_ptr)}set color(e){r.__wbg_set_shieldstate_color(this.__wbg_ptr,e)}get code(){const e=r.__wbg_get_shieldstate_code(this.__wbg_ptr);return e===7?void 0:e}set code(e){r.__wbg_set_shieldstate_code(this.__wbg_ptr,u(e)?7:e)}get message(){const e=r.shieldstate_message(this.__wbg_ptr);let t;return e[0]!==0&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}}const Vr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_signature_free(_>>>0,1));class et{static __wrap(e){e=e>>>0;const t=Object.create(et.prototype);return t.__wbg_ptr=e,Vr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Vr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_signature_free(e,0)}get ed25519(){const e=r.signature_ed25519(this.__wbg_ptr);return e===0?void 0:M.__wrap(e)}toBase64(){let e,t;try{const n=r.signature_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_signatureuploadrequest_free(_>>>0,1));class _e{static __wrap(e){e=e>>>0;const t=Object.create(_e.prototype);return t.__wbg_ptr=e,jt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,jt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_signatureuploadrequest_free(e,0)}get id(){return r.__wbg_get_signatureuploadrequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_signatureuploadrequest_body(this.__wbg_ptr)}constructor(e,t){const n=r.signatureuploadrequest_new(e,t);return this.__wbg_ptr=n>>>0,jt.register(this,this.__wbg_ptr,this),this}get type(){return r.signatureuploadrequest_type(this.__wbg_ptr)}}const xr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_signatureverification_free(_>>>0,1));class tt{static __wrap(e){e=e>>>0;const t=Object.create(tt.prototype);return t.__wbg_ptr=e,xr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,xr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_signatureverification_free(e,0)}get deviceState(){return r.signatureverification_deviceState(this.__wbg_ptr)}get userState(){return r.signatureverification_userState(this.__wbg_ptr)}trusted(){return r.signatureverification_trusted(this.__wbg_ptr)!==0}}const Kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_signatures_free(_>>>0,1));class ne{static __wrap(e){e=e>>>0;const t=Object.create(ne.prototype);return t.__wbg_ptr=e,Kt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Kt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_signatures_free(e,0)}constructor(){const e=r.signatures_new();return this.__wbg_ptr=e>>>0,Kt.register(this,this.__wbg_ptr,this),this}addSignature(e,t,n){d(e,f),d(t,A),d(n,M);const i=r.signatures_addSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,n.__wbg_ptr);return i===0?void 0:Z.__wrap(i)}getSignature(e,t){d(e,f),d(t,A);const n=r.signatures_getSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr);return n===0?void 0:M.__wrap(n)}get(e){return d(e,f),r.signatures_get(this.__wbg_ptr,e.__wbg_ptr)}clear(){r.signatures_clear(this.__wbg_ptr)}isEmpty(){return r.signatures_isEmpty(this.__wbg_ptr)!==0}get count(){return r.signatures_count(this.__wbg_ptr)>>>0}asJSON(){const e=r.signatures_asJSON(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}}const Tr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_storehandle_free(_>>>0,1));class U{static __wrap(e){e=e>>>0;const t=Object.create(U.prototype);return t.__wbg_ptr=e,Tr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Tr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_storehandle_free(e,0)}static open(e,t,n){var i=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=u(t)?0:g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),b=o;return r.storehandle_open(i,s,a,b,u(n)?0:k(n))}static openWithKey(e,t,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=D(t,r.__wbindgen_malloc),b=o;return r.storehandle_openWithKey(i,s,a,b,u(n)?0:k(n))}}const Ar=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_storedroomkeybundledata_free(_>>>0,1));class ie{static __wrap(e){e=e>>>0;const t=Object.create(ie.prototype);return t.__wbg_ptr=e,Ar.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ar.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_storedroomkeybundledata_free(e,0)}get senderUser(){const e=r.storedroomkeybundledata_senderUser(this.__wbg_ptr);return f.__wrap(e)}get roomId(){const e=r.storedroomkeybundledata_roomId(this.__wbg_ptr);return h.__wrap(e)}get url(){let e,t;try{const n=r.storedroomkeybundledata_url(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get encryptionInfo(){let e,t;try{const n=r.storedroomkeybundledata_encryptionInfo(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const Mr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_todeviceencryptioninfo_free(_>>>0,1));class rt{static __wrap(e){e=e>>>0;const t=Object.create(rt.prototype);return t.__wbg_ptr=e,Mr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Mr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_todeviceencryptioninfo_free(e,0)}get senderCurve25519Key(){let e,t;try{const n=r.__wbg_get_todeviceencryptioninfo_senderCurve25519Key(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set senderCurve25519Key(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get sender(){const e=r.__wbg_get_todeviceencryptioninfo_sender(this.__wbg_ptr);return f.__wrap(e)}set sender(e){d(e,f);var t=e.__destroy_into_raw();r.__wbg_set_todeviceencryptioninfo_sender(this.__wbg_ptr,t)}get senderDevice(){const e=r.__wbg_get_todeviceencryptioninfo_senderDevice(this.__wbg_ptr);return e===0?void 0:m.__wrap(e)}set senderDevice(e){let t=0;u(e)||(d(e,m),t=e.__destroy_into_raw()),r.__wbg_set_todeviceencryptioninfo_senderDevice(this.__wbg_ptr,t)}isSenderVerified(){return r.todeviceencryptioninfo_isSenderVerified(this.__wbg_ptr)!==0}}const It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_todevicerequest_free(_>>>0,1));class _t{static __wrap(e){e=e>>>0;const t=Object.create(_t.prototype);return t.__wbg_ptr=e,It.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,It.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_todevicerequest_free(e,0)}get id(){return r.__wbg_get_todevicerequest_id(this.__wbg_ptr)}get event_type(){return r.__wbg_get_todevicerequest_event_type(this.__wbg_ptr)}get txn_id(){return r.__wbg_get_todevicerequest_txn_id(this.__wbg_ptr)}get body(){return r.__wbg_get_todevicerequest_body(this.__wbg_ptr)}constructor(e,t,n,i){const s=r.todevicerequest_new(e,t,n,i);return this.__wbg_ptr=s>>>0,It.register(this,this.__wbg_ptr,this),this}get type(){return r.todevicerequest_type(this.__wbg_ptr)}}const Pr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_todeviceunabletodecryptinfo_free(_>>>0,1));class nt{static __wrap(e){e=e>>>0;const t=Object.create(nt.prototype);return t.__wbg_ptr=e,Pr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Pr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_todeviceunabletodecryptinfo_free(e,0)}get reason(){return r.__wbg_get_todeviceunabletodecryptinfo_reason(this.__wbg_ptr)}set reason(e){r.__wbg_set_todeviceunabletodecryptinfo_reason(this.__wbg_ptr,e)}}const Nr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_tracing_free(_>>>0,1));class A_{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Nr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_tracing_free(e,0)}static isAvailable(){return r.tracing_isAvailable()!==0}constructor(e){const t=r.tracing_new(e);if(t[2])throw c(t[1]);return this.__wbg_ptr=t[0]>>>0,Nr.register(this,this.__wbg_ptr,this),this}set minLevel(e){const t=r.tracing_set_minLevel(this.__wbg_ptr,e);if(t[1])throw c(t[0])}turnOn(){const e=r.tracing_turnOn(this.__wbg_ptr);if(e[1])throw c(e[0])}turnOff(){const e=r.tracing_turnOff(this.__wbg_ptr);if(e[1])throw c(e[0])}}const Lr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_utdtodeviceevent_free(_>>>0,1));class it{static __wrap(e){e=e>>>0;const t=Object.create(it.prototype);return t.__wbg_ptr=e,Lr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Lr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_utdtodeviceevent_free(e,0)}get rawEvent(){return r.__wbg_get_utdtodeviceevent_rawEvent(this.__wbg_ptr)}get utdInfo(){const e=r.__wbg_get_utdtodeviceevent_utdInfo(this.__wbg_ptr);return nt.__wrap(e)}get type(){return r.utdtodeviceevent_type(this.__wbg_ptr)}}const Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_uploadsigningkeysrequest_free(_>>>0,1));class st{static __wrap(e){e=e>>>0;const t=Object.create(st.prototype);return t.__wbg_ptr=e,Dt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Dt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_uploadsigningkeysrequest_free(e,0)}get body(){return r.__wbg_get_uploadsigningkeysrequest_body(this.__wbg_ptr)}constructor(e){const t=r.uploadsigningkeysrequest_new(e);return this.__wbg_ptr=t>>>0,Dt.register(this,this.__wbg_ptr,this),this}}const Wr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_userdevices_free(_>>>0,1));class ot{static __wrap(e){e=e>>>0;const t=Object.create(ot.prototype);return t.__wbg_ptr=e,Wr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Wr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_userdevices_free(e,0)}get(e){d(e,m);const t=r.userdevices_get(this.__wbg_ptr,e.__wbg_ptr);return t===0?void 0:H.__wrap(t)}isAnyVerified(){return r.userdevices_isAnyVerified(this.__wbg_ptr)!==0}keys(){return r.userdevices_keys(this.__wbg_ptr)}devices(){return r.userdevices_devices(this.__wbg_ptr)}}const Ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_userid_free(_>>>0,1));class f{static __wrap(e){e=e>>>0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,Ct.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof f?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ct.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_userid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.userid_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,Ct.register(this,this.__wbg_ptr,this),this}get localpart(){let e,t;try{const n=r.userid_localpart(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get serverName(){const e=r.userid_serverName(this.__wbg_ptr);return te.__wrap(e)}isHistorical(){return r.userid_isHistorical(this.__wbg_ptr)!==0}toString(){let e,t;try{const n=r.userid_toString(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}clone(){const e=r.userid_clone(this.__wbg_ptr);return f.__wrap(e)}}const Qr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_verificationrequest_free(_>>>0,1));class W{static __wrap(e){e=e>>>0;const t=Object.create(W.prototype);return t.__wbg_ptr=e,Qr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Qr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_verificationrequest_free(e,0)}static request(e,t,n,i){let s,a;try{d(e,f),d(t,m),d(n,f);var b=u(i)?0:S(i,r.__wbindgen_malloc),l=o;const v=r.verificationrequest_request(e.__wbg_ptr,t.__wbg_ptr,n.__wbg_ptr,b,l);var y=v[0],z=v[1];if(v[3])throw y=0,z=0,c(v[2]);return s=y,a=z,w(y,z)}finally{r.__wbindgen_free(s,a,1)}}get ownUserId(){const e=r.verificationrequest_ownUserId(this.__wbg_ptr);return f.__wrap(e)}get otherUserId(){const e=r.verificationrequest_otherUserId(this.__wbg_ptr);return f.__wrap(e)}get otherDeviceId(){const e=r.verificationrequest_otherDeviceId(this.__wbg_ptr);return e===0?void 0:m.__wrap(e)}get roomId(){const e=r.verificationrequest_roomId(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}get cancelInfo(){const e=r.verificationrequest_cancelInfo(this.__wbg_ptr);return e===0?void 0:L.__wrap(e)}isPassive(){return r.verificationrequest_isPassive(this.__wbg_ptr)!==0}isReady(){return r.verificationrequest_isReady(this.__wbg_ptr)!==0}timedOut(){return r.verificationrequest_timedOut(this.__wbg_ptr)!==0}timeRemainingMillis(){return r.verificationrequest_timeRemainingMillis(this.__wbg_ptr)}get theirSupportedMethods(){const e=r.verificationrequest_theirSupportedMethods(this.__wbg_ptr);if(e[3])throw c(e[2]);let t;return e[0]!==0&&(t=G(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*4,4)),t}get ourSupportedMethods(){const e=r.verificationrequest_ourSupportedMethods(this.__wbg_ptr);if(e[3])throw c(e[2]);let t;return e[0]!==0&&(t=G(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*4,4)),t}get flowId(){let e,t;try{const n=r.verificationrequest_flowId(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}isSelfVerification(){return r.verificationrequest_isSelfVerification(this.__wbg_ptr)!==0}weStarted(){return r.verificationrequest_weStarted(this.__wbg_ptr)!==0}isDone(){return r.verificationrequest_isDone(this.__wbg_ptr)!==0}phase(){return r.verificationrequest_phase(this.__wbg_ptr)}getVerification(){return r.verificationrequest_getVerification(this.__wbg_ptr)}registerChangesCallback(e){r.verificationrequest_registerChangesCallback(this.__wbg_ptr,e)}isCancelled(){return r.verificationrequest_isCancelled(this.__wbg_ptr)!==0}acceptWithMethods(e){const t=S(e,r.__wbindgen_malloc),n=o,i=r.verificationrequest_acceptWithMethods(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}accept(){const e=r.verificationrequest_accept(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}cancel(){const e=r.verificationrequest_cancel(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}startSas(){return r.verificationrequest_startSas(this.__wbg_ptr)}generateQrCode(){return r.verificationrequest_generateQrCode(this.__wbg_ptr)}scanQrCode(e){return d(e,$),r.verificationrequest_scanQrCode(this.__wbg_ptr,e.__wbg_ptr)}}const Gr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_versions_free(_>>>0,1));class ct{static __wrap(e){e=e>>>0;const t=Object.create(ct.prototype);return t.__wbg_ptr=e,Gr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Gr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_versions_free(e,0)}get vodozemac(){return r.__wbg_get_versions_vodozemac(this.__wbg_ptr)}get matrix_sdk_crypto(){return r.__wbg_get_versions_matrix_sdk_crypto(this.__wbg_ptr)}get git_sha(){return r.__wbg_get_versions_git_sha(this.__wbg_ptr)}get git_description(){return r.__wbg_get_versions_git_description(this.__wbg_ptr)}}function M_(_,e){return Error(w(_,e))}function P_(_,e){const t=String(e),n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;R().setInt32(_+4*1,i,!0),R().setInt32(_+4*0,n,!0)}function N_(_){return _.Window}function L_(_){return _.WorkerGlobalScope}function W_(){return p(function(_,e,t){return _.add(e,t)},arguments)}function Q_(_,e){return _.add(e)}function G_(_,e){return _.at(e)}function J_(_){return pe.__wrap(_)}function $_(){return p(function(_,e){return IDBKeyRange.bound(_,e)},arguments)}function H_(){return p(function(_,e,t,n){return IDBKeyRange.bound(_,e,t!==0,n!==0)},arguments)}function X_(_){return _.buffer}function Y_(){return p(function(_,e,t,n){return _.call(e,t,n)},arguments)}function Z_(){return p(function(_,e,t,n,i){return _.call(e,t,n,i)},arguments)}function en(){return p(function(_,e,t){return _.call(e,t)},arguments)}function tn(){return p(function(_,e){return _.call(e)},arguments)}function rn(_){return clearTimeout(_)}function _n(){return p(function(_){return _.clear()},arguments)}function nn(_){_.close()}function sn(_){return _.code}function on(){return p(function(_){_.continue()},arguments)}function cn(){return p(function(_){return _.count()},arguments)}function an(){return p(function(_){return _.count()},arguments)}function gn(){return p(function(_,e,t,n){return _.createIndex(w(e,t),n)},arguments)}function wn(){return p(function(_,e,t,n,i){return _.createIndex(w(e,t),n,i)},arguments)}function dn(){return p(function(_,e,t){return _.createObjectStore(w(e,t))},arguments)}function bn(_){return ye.__wrap(_)}function un(_){return he.__wrap(_)}function pn(_){return me.__wrap(_)}function ln(_){return _.crypto}function fn(_){console.debug(_)}function yn(_,e){_.debug(e)}function hn(_){return ve.__wrap(_)}function mn(_){return ke.__wrap(_)}function vn(_){return Re.__wrap(_)}function kn(_){return K.__wrap(_)}function Rn(){return p(function(_,e,t){_.deleteObjectStore(w(e,t))},arguments)}function Fn(){return p(function(_){return _.delete()},arguments)}function zn(){return p(function(_,e){return _.delete(e)},arguments)}function Sn(_){return H.__wrap(_)}function qn(_){return m.__wrap(_)}function jn(_){return X.__wrap(_)}function Kn(_){return A.__wrap(_)}function In(_){return _.done}function Dn(_){return Se.__wrap(_)}function Cn(_){return P.__wrap(_)}function On(_){return qe.__wrap(_)}function Un(_){return Object.entries(_)}function Bn(_){return _.entries()}function En(_,e){_.error(e)}function Vn(){return p(function(_){const e=_.error;return u(e)?0:k(e)},arguments)}function xn(_){console.error(_)}function Tn(_,e){let t,n;try{t=_,n=e,console.error(w(_,e))}finally{r.__wbindgen_free(t,n,1)}}function An(_){return Array.from(_)}function Mn(){return p(function(_){return _.getAllKeys()},arguments)}function Pn(){return p(function(_){return _.getAll()},arguments)}function Nn(){return p(function(_,e,t){return _.getAll(e,t>>>0)},arguments)}function Ln(){return p(function(_,e){return _.getAll(e)},arguments)}function Wn(){return p(function(_,e){globalThis.crypto.getRandomValues(j(_,e))},arguments)}function Qn(){return p(function(_,e){_.getRandomValues(e)},arguments)}function Gn(_){return _.getTime()}function Jn(){return p(function(_,e){return Reflect.get(_,e)},arguments)}function $n(_,e){return _[e>>>0]}function Hn(){return p(function(_,e){return _.get(e)},arguments)}function Xn(){return p(function(_,e){return _.get(e)},arguments)}function Yn(_,e){return _[e]}function Zn(_){return _.global}function ei(_){return Ie.__wrap(_)}function ti(){return p(function(_,e,t){return _.index(w(e,t))},arguments)}function ri(){return p(function(_){const e=_.indexedDB;return u(e)?0:k(e)},arguments)}function _i(){return p(function(_){const e=_.indexedDB;return u(e)?0:k(e)},arguments)}function ni(){return p(function(_){const e=_.indexedDB;return u(e)?0:k(e)},arguments)}function ii(_){console.info(_)}function si(_,e){_.info(e)}function oi(_){let e;try{e=_ instanceof ArrayBuffer}catch{e=!1}return e}function ci(_){let e;try{e=_ instanceof Map}catch{e=!1}return e}function ai(_){let e;try{e=_ instanceof Promise}catch{e=!1}return e}function gi(_){let e;try{e=_ instanceof Uint8Array}catch{e=!1}return e}function wi(_){return De.__wrap(_)}function di(_){return Array.isArray(_)}function bi(_){return Array.isArray(_)}function ui(_){return Number.isSafeInteger(_)}function pi(_,e,t){const n=e.item(t>>>0);var i=u(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;R().setInt32(_+4*1,s,!0),R().setInt32(_+4*0,i,!0)}function li(){return Symbol.iterator}function fi(){return p(function(_){return _.key},arguments)}function yi(_){return Ce.__wrap(_)}function hi(_){return Oe.__wrap(_)}function mi(_){return Y.__wrap(_)}function vi(_){return Ue.__wrap(_)}function ki(_){return _.length}function Ri(_){return _.length}function Fi(_){return _.length}function zi(){return p(function(_,e){return IDBKeyRange.lowerBound(_,e!==0)},arguments)}function Si(_){return Z.__wrap(_)}function qi(_){return Be.__wrap(_)}function ji(_,e){const t=e.message,n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;R().setInt32(_+4*1,i,!0),R().setInt32(_+4*0,n,!0)}function Ki(_){return _.msCrypto}function Ii(_,e){const t=e.name,n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;R().setInt32(_+4*1,i,!0),R().setInt32(_+4*0,n,!0)}function Di(){return new Object}function Ci(){return new Array}function Oi(){return new Error}function Ui(_){return new Date(_)}function Bi(){return new Map}function Ei(_){return new Uint8ClampedArray(_)}function Vi(_){return new Set(_)}function xi(_,e){try{var t={a:_,b:e},n=(s,a)=>{const b=t.a;t.a=0;try{return p_(b,t.b,s,a)}finally{t.a=b}};return new Promise(n)}finally{t.a=t.b=0}}function Ti(_){return new Uint8Array(_)}function Ai(_,e){return new Function(w(_,e))}function Mi(_,e,t){return new Uint8ClampedArray(_,e>>>0,t>>>0)}function Pi(_,e,t){return new Uint8Array(_,e>>>0,t>>>0)}function Ni(_){return new Uint8Array(_>>>0)}function Li(_){return new Uint8ClampedArray(_>>>0)}function Wi(){return p(function(_,e){return new DOMException(w(_,e))},arguments)}function Qi(_){return _.next}function Gi(){return p(function(_){return _.next()},arguments)}function Ji(_){return _.node}function $i(_){return _.now()}function Hi(){return Date.now()}function Xi(_){return _.objectStoreNames}function Yi(){return p(function(_,e,t){return _.objectStore(w(e,t))},arguments)}function Zi(_){return _.oldVersion}function es(_){return Ve.__wrap(_)}function ts(){return p(function(_){return _.openCursor()},arguments)}function rs(){return p(function(_,e){return _.openCursor(e)},arguments)}function _s(){return p(function(_){return _.openCursor()},arguments)}function ns(){return p(function(_,e,t,n){return _.open(w(e,t),n>>>0)},arguments)}function is(){return p(function(_,e,t){return _.open(w(e,t))},arguments)}function ss(_){return xe.__wrap(_)}function os(_){return Ae.__wrap(_)}function cs(){return p(function(_,e){return JSON.parse(w(_,e))},arguments)}function as(_){return _.performance}function gs(_){return Me.__unwrap(_)}function ws(_){return Pe.__unwrap(_)}function ds(_){return Ne.__wrap(_)}function bs(_){return _.process}function us(_,e){return _.push(e)}function ps(){return p(function(_,e,t){return _.put(e,t)},arguments)}function ls(_){return Le.__wrap(_)}function fs(_){return We.__wrap(_)}function ys(_){queueMicrotask(_)}function hs(_){return _.queueMicrotask}function ms(){return p(function(_,e){_.randomFillSync(e)},arguments)}function vs(_){const e=_.readyState;return(U_.indexOf(e)+1||3)-1}function ks(_){return Ge.__wrap(_)}function Rs(){return p(function(){return module.require},arguments)}function Fs(_){return Promise.resolve(_)}function zs(){return p(function(_){return _.result},arguments)}function Ss(_){return h.__unwrap(_)}function qs(_){return Je.__wrap(_)}function js(_){return $e.__wrap(_)}function Ks(_){return He.__wrap(_)}function Is(_){return Xe.__wrap(_)}function Ds(_){return Ye.__wrap(_)}function Cs(_){return ee.__wrap(_)}function Os(_){return Ze.__wrap(_)}function Us(_){return N.__wrap(_)}function Bs(){return p(function(_,e){return setTimeout(_,e)},arguments)}function Es(_,e,t){_[e]=t}function Vs(_,e,t){_[e>>>0]=t}function xs(_,e,t){return _.set(e,t)}function Ts(_,e,t){_.set(e,t>>>0)}function As(_,e,t){_.set(e,t>>>0)}function Ms(_,e){_.onabort=e}function Ps(_,e){_.onblocked=e}function Ns(_,e){_.oncomplete=e}function Ls(_,e){_.onerror=e}function Ws(_,e){_.onerror=e}function Qs(_,e){_.onsuccess=e}function Gs(_,e){_.onupgradeneeded=e}function Js(_,e){_.onversionchange=e}function $s(_,e){_.unique=e!==0}function Hs(_){return ne.__wrap(_)}function Xs(_){return _e.__wrap(_)}function Ys(_){return tt.__wrap(_)}function Zs(_,e){const t=e.stack,n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;R().setInt32(_+4*1,i,!0),R().setInt32(_+4*0,n,!0)}function eo(){const _=typeof global>"u"?null:global;return u(_)?0:k(_)}function to(){const _=typeof globalThis>"u"?null:globalThis;return u(_)?0:k(_)}function ro(){const _=typeof self>"u"?null:self;return u(_)?0:k(_)}function _o(){const _=typeof window>"u"?null:window;return u(_)?0:k(_)}function no(_){return ie.__wrap(_)}function io(_){return U.__wrap(_)}function so(){return p(function(_){return JSON.stringify(_)},arguments)}function oo(_,e,t){return _.subarray(e>>>0,t>>>0)}function co(_){const e=_.target;return u(e)?0:k(e)}function ao(_,e,t){return _.then(e,t)}function go(_,e){return _.then(e)}function wo(_){return _t.__wrap(_)}function bo(_){const e=_.transaction;return u(e)?0:k(e)}function uo(){return p(function(_,e,t,n){return _.transaction(w(e,t),Hr[n])},arguments)}function po(){return p(function(_,e,t){return _.transaction(e,Hr[t])},arguments)}function lo(){return p(function(_,e){return _.update(e)},arguments)}function fo(_){return ot.__wrap(_)}function yo(_){return f.__wrap(_)}function ho(_){return f.__unwrap(_)}function mo(_){return it.__wrap(_)}function vo(_){return _.value}function ko(){return p(function(_){return _.value},arguments)}function Ro(_){return _.values()}function Fo(_){return W.__wrap(_)}function zo(_){return _.version}function So(_){return _.versions}function qo(_,e){_.warn(e)}function jo(_){console.warn(_)}function Ko(){return[]}function Io(_,e){_.push(e)}function Do(_){return+_}function Co(_){return _}function Oo(_){return BigInt.asUintN(64,_)}function Uo(_,e){const t=e,n=typeof t=="bigint"?t:void 0;R().setBigInt64(_+8*1,u(n)?BigInt(0):n,!0),R().setInt32(_+4*0,!u(n),!0)}function Bo(_){const e=_;return typeof e=="boolean"?e?1:0:2}function Eo(_){const e=_.original;return e.cnt--==1?(e.a=0,!0):!1}function Vo(_,e,t){return Et(_,e,40,g_)}function xo(_,e,t){return Et(_,e,432,w_)}function To(_,e,t){return Et(_,e,432,d_)}function Ao(_,e,t){return $r(_,e,437,b_)}function Mo(_,e,t){return $r(_,e,437,u_)}function Po(_,e){const t=Ut(e),n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;R().setInt32(_+4*1,i,!0),R().setInt32(_+4*0,n,!0)}function No(_,e){return _ in e}function Lo(){const _=r.__wbindgen_export_4,e=_.grow(4);_.set(0,void 0),_.set(e+0,void 0),_.set(e+1,null),_.set(e+2,!0),_.set(e+3,!1)}function Wo(_){return typeof _=="bigint"}function Qo(_){return typeof _=="function"}function Go(_){return _===null}function Jo(_){const e=_;return typeof e=="object"&&e!==null}function $o(_){return typeof _=="string"}function Ho(_){return _===void 0}function Xo(_,e){return _===e}function Yo(_,e){return _==e}function Zo(){return r.memory}function ec(_,e){const t=e,n=typeof t=="number"?t:void 0;R().setFloat64(_+8*1,u(n)?0:n,!0),R().setInt32(_+4*0,!u(n),!0)}function tc(_){return _}function rc(_,e){const t=e,n=typeof t=="string"?t:void 0;var i=u(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;R().setInt32(_+4*1,s,!0),R().setInt32(_+4*0,i,!0)}function _c(_,e){return w(_,e)}function nc(_,e){throw new Error(w(_,e))}function ic(_){let e;try{e=+_}catch(n){e=n}return e}const sc=Object.freeze(Object.defineProperty({__proto__:null,Attachment:E_,BackupDecryptionKey:O,BackupKeys:pe,BackupSecretsBundle:le,Base64EncodedPkMessage:J,BaseMigrationData:Xr,CancelInfo:L,CheckCode:fe,CollectStrategy:q,CrossSigningBootstrapRequests:ye,CrossSigningKeyExport:he,CrossSigningStatus:me,Curve25519PublicKey:F,Curve25519SecretKey:C,DecryptedRoomEvent:ve,DecryptedToDeviceEvent:ke,DecryptionErrorCode:l_,DecryptionSettings:de,DehydratedDevice:Re,DehydratedDeviceKey:K,DehydratedDevices:Fe,Device:H,DeviceId:m,DeviceKey:X,DeviceKeyAlgorithm:ze,DeviceKeyAlgorithmName:f_,DeviceKeyId:A,DeviceKeyName:y_,DeviceLists:Yr,Ecies:V_,Ed25519PublicKey:B,Ed25519Signature:M,Emoji:Se,EncryptedAttachment:P,EncryptionAlgorithm:h_,EncryptionInfo:qe,EncryptionSettings:Zr,EstablishedEcies:E,EventId:e_,HistoryVisibility:m_,IdentityKeys:je,InboundCreationResult:Ke,InboundGroupSession:Ie,InvalidToDeviceEvent:De,KeysBackupRequest:Ce,KeysClaimRequest:Oe,KeysQueryRequest:Y,KeysUploadRequest:Ue,LocalTrust:v_,LoggerLevel:k_,MaybeSignature:Z,MegolmDecryptionError:Be,MegolmV1BackupKey:Ee,Migration:T_,OlmMachine:Ve,OtherUserIdentity:xe,OutboundCreationResult:Te,OwnUserIdentity:Ae,PickledInboundGroupSession:Me,PickledSession:Pe,PkDecryption:be,PkEncryption:ue,PkMessage:I,PlainTextToDeviceEvent:Ne,ProcessedToDeviceEventType:R_,PutDehydratedDeviceRequest:Le,Qr:We,QrCode:Qe,QrCodeData:Q,QrCodeMode:F_,QrCodeScan:$,QrState:z_,RehydratedDevice:Ge,RequestType:S_,RoomId:h,RoomKeyCounts:Je,RoomKeyImportResult:$e,RoomKeyInfo:He,RoomKeyWithheldInfo:Xe,RoomMessageRequest:Ye,RoomSettings:ee,Sas:Ze,SecretsBundle:N,ServerName:te,ShieldColor:q_,ShieldState:re,ShieldStateCode:j_,Signature:et,SignatureState:K_,SignatureUploadRequest:_e,SignatureVerification:tt,Signatures:ne,StoreHandle:U,StoredRoomKeyBundleData:ie,ToDeviceEncryptionInfo:rt,ToDeviceRequest:_t,ToDeviceUnableToDecryptInfo:nt,ToDeviceUnableToDecryptReason:I_,Tracing:A_,TrustRequirement:D_,UTDToDeviceEvent:it,UploadSigningKeysRequest:st,UserDevices:ot,UserId:f,VerificationMethod:C_,VerificationRequest:W,VerificationRequestPhase:O_,Versions:ct,__wbg_Error_0497d5bdba9362e5:M_,__wbg_String_8f0eb39a4a4c2f66:P_,__wbg_Window_b0044ac7db258535:N_,__wbg_WorkerGlobalScope_b74cefefc62a37da:L_,__wbg_add_64c6e51ab0ed12dd:W_,__wbg_add_dd833f9f523abe36:Q_,__wbg_at_5b2884630cb66ea6:G_,__wbg_backupkeys_new:J_,__wbg_bound_0274374bea7f6bca:$_,__wbg_bound_eb572b424befade3:H_,__wbg_buffer_a1a27a0dfa70165d:X_,__wbg_call_1b920c3ac0afee4b:Y_,__wbg_call_36f1bbf64b4cf7c7:Z_,__wbg_call_f2db6205e5c51dc8:en,__wbg_call_fbe8be8bf6436ce5:tn,__wbg_clearTimeout_5a54f8841c30079a:rn,__wbg_clear_e6ec1cc113e1555e:_n,__wbg_close_2079e209ea5709b5:nn,__wbg_code_5e459ca721f994f5:sn,__wbg_continue_7d9cdafc888cb902:on,__wbg_count_2941fdbb8154c02d:cn,__wbg_count_5ceb291ba9a02b4b:an,__wbg_createIndex_32ba53785b2ef24e:gn,__wbg_createIndex_a343510ba567e58c:wn,__wbg_createObjectStore_b1f08961900155dd:dn,__wbg_crosssigningbootstraprequests_new:bn,__wbg_crosssigningkeyexport_new:un,__wbg_crosssigningstatus_new:pn,__wbg_crypto_574e78ad8b13b65f:ln,__wbg_debug_58d16ea352cfbca1:fn,__wbg_debug_ada37632f0e8cdde:yn,__wbg_decryptedroomevent_new:hn,__wbg_decryptedtodeviceevent_new:mn,__wbg_dehydrateddevice_new:vn,__wbg_dehydrateddevicekey_new:kn,__wbg_deleteObjectStore_7b427b19378475fd:Rn,__wbg_delete_1af2aac87b36c0f1:Fn,__wbg_delete_71b7921c73aa9378:zn,__wbg_device_new:Sn,__wbg_deviceid_new:qn,__wbg_devicekey_new:jn,__wbg_devicekeyid_new:Kn,__wbg_done_4d01f352bade43b7:In,__wbg_emoji_new:Dn,__wbg_encryptedattachment_new:Cn,__wbg_encryptioninfo_new:On,__wbg_entries_41651c850143b957:Un,__wbg_entries_c951fa14164704e7:Bn,__wbg_error_24afdcd463ac8bd9:En,__wbg_error_4e978abc9692c0c5:Vn,__wbg_error_51ecdd39ec054205:xn,__wbg_error_7534b8e9a36f1ab4:Tn,__wbg_from_12ff8e47307bd4c7:An,__wbg_getAllKeys_fce3f6ef8201c450:Mn,__wbg_getAll_22a744d3b40f0fb5:Pn,__wbg_getAll_654e689108532352:Nn,__wbg_getAll_864be044b219e256:Ln,__wbg_getRandomValues_38a1ff1ea09f6cc7:Wn,__wbg_getRandomValues_b8f5dbd5f3995a9e:Qn,__wbg_getTime_2afe67905d873e92:Gn,__wbg_get_92470be87867c2e5:Jn,__wbg_get_a131a44bd1eb6979:$n,__wbg_get_a4719581b0d717ad:Hn,__wbg_get_d37904b955701f99:Xn,__wbg_getwithrefkey_1dc361bd10053bfe:Yn,__wbg_global_b6f5c73312f62313:Zn,__wbg_inboundgroupsession_new:ei,__wbg_index_405783ca8da5f008:ti,__wbg_indexedDB_317016dcb8a872d6:ri,__wbg_indexedDB_601ec26c63e333de:_i,__wbg_indexedDB_63b82e158eb67cbd:ni,__wbg_info_e56933705c348038:ii,__wbg_info_f3589034369581f6:si,__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc:oi,__wbg_instanceof_Map_80cc65041c96417a:ci,__wbg_instanceof_Promise_66f94afc64d9039f:ai,__wbg_instanceof_Uint8Array_ca460677bc155827:gi,__wbg_invalidtodeviceevent_new:wi,__wbg_isArray_2a07fd175d45c496:di,__wbg_isArray_5f090bed72bd4f89:bi,__wbg_isSafeInteger_90d7c4674047d684:ui,__wbg_item_15285ca2d766f142:pi,__wbg_iterator_4068add5b2aef7a6:li,__wbg_key_a17a68df9ec1b180:fi,__wbg_keysbackuprequest_new:yi,__wbg_keysclaimrequest_new:hi,__wbg_keysqueryrequest_new:mi,__wbg_keysuploadrequest_new:vi,__wbg_length_471141fa24df24b2:ki,__wbg_length_ab6d22b5ead75c72:Ri,__wbg_length_f00ec12454a5d9fd:Fi,__wbg_lowerBound_13c8e875a3fb9f7d:zi,__wbg_maybesignature_new:Si,__wbg_megolmdecryptionerror_new:qi,__wbg_message_2d95ea5aff0d63b9:ji,__wbg_msCrypto_a61aeb35a24c1329:Ki,__wbg_name_2acff1e83d9735f9:Ii,__wbg_new_07b483f72211fd66:Di,__wbg_new_58353953ad2097cc:Ci,__wbg_new_8a6f238a6ece86ea:Oi,__wbg_new_a2957aa5684de228:Ui,__wbg_new_a979b4b45bd55c7f:Bi,__wbg_new_b3a08d2910ee5170:Ei,__wbg_new_db7d9b0ee94df522:Vi,__wbg_new_e30c39c06edaabf2:xi,__wbg_new_e52b3efaaa774f96:Ti,__wbg_newnoargs_ff528e72d35de39a:Ai,__wbg_newwithbyteoffsetandlength_06e8c938173769b5:Mi,__wbg_newwithbyteoffsetandlength_3b01ecda099177e8:Pi,__wbg_newwithlength_08f872dc1e3ada2e:Ni,__wbg_newwithlength_8a0d31010560ce9a:Li,__wbg_newwithmessage_54042111509ba20c:Wi,__wbg_next_8bb824d217961b5d:Qi,__wbg_next_e2da48d8fff7439a:Gi,__wbg_node_905d3e251edff8a2:Ji,__wbg_now_2c95c9de01293173:$i,__wbg_now_eb0821f3bd9f6529:Hi,__wbg_objectStoreNames_e82275eb2d403a92:Xi,__wbg_objectStore_b463d32c86d6b543:Yi,__wbg_oldVersion_af5af638a028177c:Zi,__wbg_olmmachine_new:es,__wbg_openCursor_7c13a2cd32c6258b:ts,__wbg_openCursor_a53133c898e0829c:rs,__wbg_openCursor_dbd279400634ae67:_s,__wbg_open_0f04f50fa4d98f67:ns,__wbg_open_b70fb421d97aad40:is,__wbg_otheruseridentity_new:ss,__wbg_ownuseridentity_new:os,__wbg_parse_c7ba327fb6231e7f:cs,__wbg_performance_7a3ffd0b17f663ad:as,__wbg_pickledinboundgroupsession_unwrap:gs,__wbg_pickledsession_unwrap:ws,__wbg_plaintexttodeviceevent_new:ds,__wbg_process_dc0fbacc7c1c06f7:bs,__wbg_push_73fd7b5550ebf707:us,__wbg_put_7f0b4dcc666f09e3:ps,__wbg_putdehydrateddevicerequest_new:ls,__wbg_qr_new:fs,__wbg_queueMicrotask_46c1df247678729f:ys,__wbg_queueMicrotask_8acf3ccb75ed8d11:hs,__wbg_randomFillSync_ac0988aba3254290:ms,__wbg_readyState_249e5707a38b7a7a:vs,__wbg_rehydrateddevice_new:ks,__wbg_require_60cc747a6bc5215a:Rs,__wbg_resolve_0dac8c580ffd4678:Fs,__wbg_result_a0f1bf2fe64a516c:zs,__wbg_roomid_unwrap:Ss,__wbg_roomkeycounts_new:qs,__wbg_roomkeyimportresult_new:js,__wbg_roomkeyinfo_new:Ks,__wbg_roomkeywithheldinfo_new:Is,__wbg_roommessagerequest_new:Ds,__wbg_roomsettings_new:Cs,__wbg_sas_new:Os,__wbg_secretsbundle_new:Us,__wbg_setTimeout_db2dbaeefb6f39c7:Bs,__wbg_set_3f1d0b984ed272ed:Es,__wbg_set_7422acbe992d64ab:Vs,__wbg_set_d6bdfd275fb8a4ce:xs,__wbg_set_fd40eacc85c5ab66:Ts,__wbg_set_fe4e79d1ed3b0e9b:As,__wbg_set_wasm:Bt,__wbg_setonabort_479ebb5884fcb171:Ms,__wbg_setonblocked_046331b614d6f8e3:Ps,__wbg_setoncomplete_27bdbca012e45c05:Ns,__wbg_setonerror_537b68f474e27d4e:Ls,__wbg_setonerror_ce5c4d34aed931bb:Ws,__wbg_setonsuccess_0b2b45bd8cc13b95:Qs,__wbg_setonupgradeneeded_be2e0ae927917f82:Gs,__wbg_setonversionchange_407ebf1ad930c84c:Js,__wbg_setunique_727cefd7e14cf677:$s,__wbg_signatures_new:Hs,__wbg_signatureuploadrequest_new:Xs,__wbg_signatureverification_new:Ys,__wbg_stack_0ed75d68575b0f3c:Zs,__wbg_static_accessor_GLOBAL_487c52c58d65314d:eo,__wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291:to,__wbg_static_accessor_SELF_78c9e3071b912620:ro,__wbg_static_accessor_WINDOW_a093d21393777366:_o,__wbg_storedroomkeybundledata_new:no,__wbg_storehandle_new:io,__wbg_stringify_c242842b97f054cc:so,__wbg_subarray_dd4ade7d53bd8e26:oo,__wbg_target_15f1da583855ac4e:co,__wbg_then_82ab9fb4080f1707:ao,__wbg_then_db882932c0c714c6:go,__wbg_todevicerequest_new:wo,__wbg_transaction_34c41b46ca391af6:bo,__wbg_transaction_36c8b28ed4349a9a:uo,__wbg_transaction_399fc15f5bba1880:po,__wbg_update_297181dae0cc0af4:lo,__wbg_userdevices_new:fo,__wbg_userid_new:yo,__wbg_userid_unwrap:ho,__wbg_utdtodeviceevent_new:mo,__wbg_value_17b896954e14f896:vo,__wbg_value_648dc44894c8dc95:ko,__wbg_values_81045499c3c8e670:Ro,__wbg_verificationrequest_new:Fo,__wbg_version_2c3ed4a311fdabdf:zo,__wbg_versions_c01dfd4722a88165:So,__wbg_warn_9b968a0475b49f6b:qo,__wbg_warn_d89f6637da554c8d:jo,__wbindgen_array_new:Ko,__wbindgen_array_push:Io,__wbindgen_as_number:Do,__wbindgen_bigint_from_i64:Co,__wbindgen_bigint_from_u64:Oo,__wbindgen_bigint_get_as_i64:Uo,__wbindgen_boolean_get:Bo,__wbindgen_cb_drop:Eo,__wbindgen_closure_wrapper1160:Vo,__wbindgen_closure_wrapper2391:xo,__wbindgen_closure_wrapper5618:To,__wbindgen_closure_wrapper7116:Ao,__wbindgen_closure_wrapper7121:Mo,__wbindgen_debug_string:Po,__wbindgen_in:No,__wbindgen_init_externref_table:Lo,__wbindgen_is_bigint:Wo,__wbindgen_is_function:Qo,__wbindgen_is_null:Go,__wbindgen_is_object:Jo,__wbindgen_is_string:$o,__wbindgen_is_undefined:Ho,__wbindgen_jsval_eq:Xo,__wbindgen_jsval_loose_eq:Yo,__wbindgen_memory:Zo,__wbindgen_number_get:ec,__wbindgen_number_new:tc,__wbindgen_string_get:rc,__wbindgen_string_new:_c,__wbindgen_throw:nc,__wbindgen_try_into_number:ic,getVersions:c_,start:a_},Symbol.toStringTag,{value:"Module"})),oc=new URL(""+new URL("matrix_sdk_crypto_wasm_bg-dMeGppz-.wasm",import.meta.url).href,import.meta.url);Bt(new Proxy({},{get(){throw new Error("@matrix-org/matrix-sdk-crypto-wasm was used before it was initialized. Call `initAsync` first.")}}));let Ot=null;async function cc(_){const{instance:e}=await WebAssembly.instantiateStreaming(fetch(_),{"./matrix_sdk_crypto_wasm_bg.js":sc});Bt(e.exports),e.exports.__wbindgen_start()}async function ac(_=oc){Ot||(Ot=cc(_)),await Ot}export{Pe as A,O as B,q as C,K as D,Zr as E,Me as F,U as G,m_ as H,Ve as I,Ue as K,v_ as L,Be as M,xe as O,Le as P,We as Q,h as R,_e as S,_t as T,f as U,C_ as V,h_ as a,m as b,Y as c,Oe as d,Ce as e,Ye as f,st as g,Ze as h,O_ as i,$ as j,z_ as k,c_ as l,Ae as m,e_ as n,N as o,Yr as p,R_ as q,ee as r,D_ as s,de as t,l_ as u,q_ as v,j_ as w,ac as x,Xr as y,T_ as z};
|
|
3
|
+
//# sourceMappingURL=matrix-sdk-crypto-wasm-DMhr4gdY.js.map
|