2 lines
115 KiB
JavaScript
2 lines
115 KiB
JavaScript
"use strict";(self.webpackChunkelement_web=self.webpackChunkelement_web||[]).push([[3380],{"./node_modules/@matrix-org/matrix-sdk-crypto-wasm/index-wasm-esm.mjs":(e,t,r)=>{r.d(t,{BVS:()=>_.BVS,BZT:()=>_.BZT,CvR:()=>_.CvR,ENy:()=>_.ENy,EZX:()=>_.EZX,Fff:()=>_.Fff,GYR:()=>_.GYR,HmP:()=>_.HmP,JJE:()=>_.JJE,JvM:()=>_.JvM,K_K:()=>_.K_K,Kj7:()=>_.Kj7,LRK:()=>_.LRK,Nhn:()=>_.Nhn,OMe:()=>_.OMe,Qr:()=>_.Qr,QvV:()=>_.QvV,Rjy:()=>_.Rjy,SG1:()=>_.SG1,TCc:()=>_.TCc,U3i:()=>_.U3i,UMe:()=>_.UMe,VFM:()=>_.VFM,VOM:()=>i,VvS:()=>_.VvS,W9F:()=>_.W9F,XlD:()=>_.XlD,YFH:()=>_.YFH,Yg7:()=>_.Yg7,_rJ:()=>_._rJ,bCf:()=>_.bCf,c55:()=>_.c55,cGL:()=>_.cGL,cSE:()=>_.cSE,dFo:()=>_.dFo,dNT:()=>_.dNT,fPF:()=>_.fPF,gAt:()=>_.gAt,gPr:()=>_.gPr,ggh:()=>_.ggh,kZZ:()=>_.kZZ,lRJ:()=>_.lRJ,liC:()=>_.liC,qqN:()=>_.qqN,rzz:()=>_.rzz,u_L:()=>_.u_L,wJu:()=>_.wJu,xqv:()=>_.xqv,y1:()=>_.y1});var _=r("./node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.js");_.lIU(new Proxy({},{get(){throw new Error("@matrix-org/matrix-sdk-crypto-wasm was used before it was initialized. Call `initAsync` first.")}}));let n=null;async function i(){n||(n=async function(){const e=await r.e(7697).then(r.bind(r,"./node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm"));_.lIU(e),e.__wbindgen_start()}()),await n}},"./node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.js":(e,t,r)=>{let _;function n(e){_=e}r.d(t,{$Pc:()=>Yn,$Qm:()=>Q_,$ls:()=>Ss,$vK:()=>ln,A6Q:()=>L_,B8J:()=>ii,BGI:()=>uo,BJm:()=>Mn,BVS:()=>sr,BZT:()=>Jt,Bdx:()=>v_,Bf8:()=>pi,Bg6:()=>$s,CB9:()=>O_,CYm:()=>j_,CvR:()=>rr,DCP:()=>m_,DMD:()=>Ys,D_P:()=>Fs,DkQ:()=>Sn,E3r:()=>ks,E8J:()=>ci,ENy:()=>Vt,EZX:()=>ue,EeY:()=>Ei,EgL:()=>ns,F5R:()=>zs,FPO:()=>bn,Fff:()=>M,Fxh:()=>Ln,Fz1:()=>Wn,GNW:()=>Cs,GYR:()=>se,GpE:()=>_s,GsG:()=>yn,GuA:()=>ao,HSU:()=>H_,HmP:()=>Nt,I0w:()=>N_,IXq:()=>bs,IZ7:()=>Vi,IcO:()=>li,Irc:()=>q_,J6_:()=>kn,J9R:()=>ss,JJE:()=>Wt,JvM:()=>A,JwB:()=>Un,K_K:()=>Je,Kj7:()=>mr,KwY:()=>As,LBt:()=>ti,LCp:()=>Zs,LEn:()=>w_,LHu:()=>qs,LPm:()=>hs,LRK:()=>St,LnW:()=>ds,Ltt:()=>ui,M5w:()=>es,M7A:()=>rs,M7n:()=>Bs,MA9:()=>vs,MB:()=>fn,MQh:()=>zn,MdI:()=>G_,N2F:()=>mn,N2q:()=>hn,N7C:()=>_i,NDt:()=>In,NG4:()=>Zi,NJs:()=>$i,NeI:()=>X_,Nfg:()=>F_,NhE:()=>Xs,Nhn:()=>jt,Nvi:()=>A_,O7q:()=>Gi,OAi:()=>l_,ODG:()=>z_,OMe:()=>kt,OOB:()=>Ti,OWQ:()=>ws,Ods:()=>Rs,OrV:()=>Gn,Oyk:()=>n_,P0S:()=>Si,P2w:()=>xi,PMv:()=>rn,PRY:()=>oo,PRo:()=>Ki,PXH:()=>J_,Pmi:()=>vn,Py0:()=>po,QLl:()=>Zn,QRK:()=>yo,QRh:()=>go,QU2:()=>Ui,Qg3:()=>Ws,Qnr:()=>mo,Qr:()=>Xt,QvV:()=>Vr,RJ_:()=>R_,RTf:()=>Y_,RdH:()=>ts,Rjy:()=>Kt,Rry:()=>Us,S9O:()=>Ls,SG1:()=>Qe,SGD:()=>os,SHz:()=>Es,So5:()=>tn,SrY:()=>Ks,Srt:()=>x_,T9L:()=>jn,TCc:()=>Q,TJR:()=>Z_,TJs:()=>__,TqD:()=>wi,U3i:()=>P,U8c:()=>bo,U9Y:()=>vo,UMe:()=>lr,UNv:()=>Ni,UPr:()=>C_,USK:()=>on,UX:()=>Vn,Uxz:()=>h_,VFM:()=>Y,VPQ:()=>fi,Veh:()=>M_,Vjh:()=>eo,VvS:()=>$r,W0o:()=>ei,W9F:()=>Bt,WAr:()=>Dn,WYM:()=>en,Wv_:()=>Jn,XFD:()=>is,XQG:()=>Fn,Xdl:()=>qn,Xfo:()=>I_,XkP:()=>Ai,XlD:()=>nt,Xr:()=>dn,Y0Q:()=>An,Y1x:()=>S_,Y4c:()=>d_,YFH:()=>Ce,YNz:()=>qi,Yb9:()=>Rn,Yg7:()=>N,YkQ:()=>so,YqZ:()=>E_,Zc5:()=>Cn,ZyG:()=>V_,_1G:()=>bi,_BU:()=>ki,_Hu:()=>Bn,_Ms:()=>Xi,_VR:()=>$n,_rJ:()=>Ve,aOm:()=>cs,aYs:()=>as,aYy:()=>Hs,b2e:()=>o_,bCf:()=>Nr,bLe:()=>fs,bLn:()=>io,bqd:()=>cn,c55:()=>ht,c7l:()=>P_,cGL:()=>Tt,cSE:()=>U,ce0:()=>Gs,d3x:()=>ls,dFo:()=>er,dGt:()=>Pn,dNT:()=>L,dh5:()=>un,dnJ:()=>Wi,dzr:()=>y_,eB4:()=>Vs,eO6:()=>Fi,efg:()=>ri,fL8:()=>vi,fPF:()=>ze,fQT:()=>Ji,fSe:()=>a_,gAt:()=>kr,gHs:()=>b_,gOf:()=>hi,gPr:()=>G,gZc:()=>Ri,ggh:()=>X,hlQ:()=>Pi,isj:()=>Ps,iz$:()=>xn,jAr:()=>f_,jiq:()=>k_,juV:()=>mi,jwX:()=>En,k78:()=>Tn,kVE:()=>W_,kZZ:()=>Wr,kbZ:()=>Qi,kc$:()=>Kn,lIU:()=>n,lRJ:()=>hr,lU$:()=>ai,liC:()=>T,lz0:()=>ji,m3T:()=>nn,mEh:()=>Mi,mMK:()=>Js,mh9:()=>us,moF:()=>gs,nQu:()=>p_,nR4:()=>Ms,nUe:()=>Is,o8D:()=>yi,pGY:()=>Hn,pZB:()=>gi,pjl:()=>s_,pqM:()=>Ds,ptE:()=>js,q$A:()=>ms,qBn:()=>Ci,qNE:()=>ho,qb8:()=>to,qmw:()=>Qs,qqN:()=>J,qvD:()=>co,rTe:()=>pn,rl:()=>_o,rxy:()=>wn,rz6:()=>Os,rzz:()=>Cr,s0$:()=>Qn,sHA:()=>ro,sWe:()=>lo,sjH:()=>D_,sjW:()=>g_,swH:()=>_n,t5O:()=>Ts,tD7:()=>Di,tLN:()=>Xn,taN:()=>ys,tru:()=>c_,typ:()=>gn,u$J:()=>di,uX8:()=>Hi,u_L:()=>mt,v82:()=>sn,v8T:()=>Li,vUM:()=>wo,w0t:()=>U_,w3n:()=>K_,wDP:()=>Yi,wJu:()=>W,wOF:()=>xs,wPm:()=>si,wX3:()=>B_,wv$:()=>zi,x$X:()=>ps,x2q:()=>Ii,x7F:()=>T_,xdF:()=>an,xhr:()=>$_,xqv:()=>ee,y0y:()=>Oi,y1:()=>gt,yXU:()=>i_,ycJ:()=>fo,yjZ:()=>ni,ykd:()=>u_,yqB:()=>oi,z0n:()=>Nn,zEy:()=>no,zKn:()=>Bi,ziJ:()=>Ns,zzL:()=>On});let i=null;function s(){return null!==i&&0!==i.byteLength||(i=new Uint8Array(_.memory.buffer)),i}const o="undefined"==typeof TextDecoder?(0,module.require)("util").TextDecoder:TextDecoder;let g=new o("utf-8",{ignoreBOM:!0,fatal:!0});g.decode();const c=2146435072;let a=0;function w(e,t){return function(e,t){return a+=t,a>=c&&(g=new o("utf-8",{ignoreBOM:!0,fatal:!0}),g.decode(),a=t),g.decode(s().subarray(e,e+t))}(e>>>=0,t)}let u=0;const d=new("undefined"==typeof TextEncoder?(0,module.require)("util").TextEncoder:TextEncoder)("utf-8"),b="function"==typeof d.encodeInto?function(e,t){return d.encodeInto(e,t)}:function(e,t){const r=d.encode(e);return t.set(r),{read:e.length,written:r.length}};function p(e,t,r){if(void 0===r){const r=d.encode(e),_=t(r.length,1)>>>0;return s().subarray(_,_+r.length).set(r),u=r.length,_}let _=e.length,n=t(_,1)>>>0;const i=s();let o=0;for(;o<_;o++){const t=e.charCodeAt(o);if(t>127)break;i[n+o]=t}if(o!==_){0!==o&&(e=e.slice(o)),n=r(n,_,_=o+3*e.length,1)>>>0;const t=s().subarray(n+o,n+_);o+=b(e,t).written,n=r(n,_,o,1)>>>0}return u=o,n}let l=null;function y(){return(null===l||!0===l.buffer.detached||void 0===l.buffer.detached&&l.buffer!==_.memory.buffer)&&(l=new DataView(_.memory.buffer)),l}function h(e){const t=_.__externref_table_alloc();return _.__wbindgen_export_4.set(t,e),t}function f(e,t){try{return e.apply(this,t)}catch(e){const t=h(e);_.__wbindgen_exn_store(t)}}function m(e){return null==e}function v(e,t){return e>>>=0,s().subarray(e/1,e/1+t)}const k="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{_.__wbindgen_export_6.get(e.dtor)(e.a,e.b)});function R(e,t,r,n){const i={a:e,b:t,cnt:1,dtor:r},s=(...e)=>{i.cnt++;const t=i.a;i.a=0;try{return n(t,i.b,...e)}finally{0===--i.cnt?(_.__wbindgen_export_6.get(i.dtor)(t,i.b),k.unregister(i)):i.a=t}};return s.original=i,k.register(s,i,i),s}function S(e,t,r,n){const i={a:e,b:t,cnt:1,dtor:r},s=(...e)=>{i.cnt++;try{return n(i.a,i.b,...e)}finally{0===--i.cnt&&(_.__wbindgen_export_6.get(i.dtor)(i.a,i.b),i.a=0,k.unregister(i))}};return s.original=i,k.register(s,i,i),s}function F(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let r="[";t>0&&(r+=F(e[0]));for(let _=1;_<t;_++)r+=", "+F(e[_]);return r+="]",r}const r=/\[object ([^\]]+)\]/.exec(toString.call(e));let _;if(!(r&&r.length>1))return toString.call(e);if(_=r[1],"Object"==_)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:_}function z(e,t){const r=t(1*e.length,1)>>>0;return s().set(e,r/1),u=e.length,r}function q(e){const t=_.__wbindgen_export_4.get(e);return _.__externref_table_dealloc(e),t}function K(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}function I(e,t){const r=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){const _=h(e[t]);y().setUint32(r+4*t,_,!0)}return u=e.length,r}function C(e,t){e>>>=0;const r=y(),n=[];for(let i=e;i<e+4*t;i+=4)n.push(_.__wbindgen_export_4.get(r.getUint32(i,!0)));return _.__externref_drop_slice(e,t),n}let O=null;function j(e,t){return e>>>=0,(null!==O&&0!==O.byteLength||(O=new Uint16Array(_.memory.buffer)),O).subarray(e/2,e/2+t)}function U(){const e=_.getVersions();return r_.__wrap(e)}function B(e,t,r){const n=_.closure41_externref_shim_multivalue_shim(e,t,r);if(n[1])throw q(n[0])}function D(e,t){_.wasm_bindgen__convert__closures_____invoke__h8861d869601ff522(e,t)}function V(e,t,r){_.closure756_externref_shim(e,t,r)}function E(e,t,r){_.closure438_externref_shim(e,t,r)}function x(e,t){_.wasm_bindgen__convert__closures_____invoke__hce61fd14ea1a6ce1(e,t)}const M=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"}),T=(Object.freeze({Ed25519:0,0:"Ed25519",Curve25519:1,1:"Curve25519",Unknown:3,3:"Unknown"}),Object.freeze({Curve25519:0,0:"Curve25519",Ed25519:1,1:"Ed25519",Unknown:2,2:"Unknown"}),Object.freeze({OlmV1Curve25519AesSha2:0,0:"OlmV1Curve25519AesSha2",MegolmV1AesSha2:1,1:"MegolmV1AesSha2",Unknown:2,2:"Unknown"})),A=Object.freeze({Invited:0,0:"Invited",Joined:1,1:"Joined",Shared:2,2:"Shared",WorldReadable:3,3:"WorldReadable"}),N=Object.freeze({Verified:0,0:"Verified",BlackListed:1,1:"BlackListed",Ignored:2,2:"Ignored",Unset:3,3:"Unset"}),P=(Object.freeze({Trace:0,0:"Trace",Debug:1,1:"Debug",Info:2,2:"Info",Warn:3,3:"Warn",Error:4,4:"Error"}),Object.freeze({Decrypted:0,0:"Decrypted",UnableToDecrypt:1,1:"UnableToDecrypt",PlainText:2,2:"PlainText",Invalid:3,3:"Invalid"})),J=Object.freeze({Login:0,0:"Login",Reciprocate:1,1:"Reciprocate"}),L=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"}),Q=(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"}),Object.freeze({Red:0,0:"Red",Grey:1,1:"Grey",None:2,2:"None"})),G=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"}),W=(Object.freeze({Missing:0,0:"Missing",Invalid:1,1:"Invalid",ValidButNotTrusted:2,2:"ValidButNotTrusted",ValidAndTrusted:3,3:"ValidAndTrusted"}),Object.freeze({DecryptionFailure:0,0:"DecryptionFailure",UnverifiedSenderDevice:1,1:"UnverifiedSenderDevice",NoOlmMachine:2,2:"NoOlmMachine",EncryptionIsDisabled:3,3:"EncryptionIsDisabled"}),Object.freeze({Untrusted:0,0:"Untrusted",CrossSignedOrLegacy:1,1:"CrossSignedOrLegacy",CrossSigned:2,2:"CrossSigned"})),Y=Object.freeze({SasV1:0,0:"SasV1",QrCodeScanV1:1,1:"QrCodeScanV1",QrCodeShowV1:2,2:"QrCodeShowV1",ReciprocateV1:3,3:"ReciprocateV1"}),X=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"}),Z=["pending","done"],$=["readonly","readwrite","versionchange","readwriteflush","cleanup"];"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>_.__wbg_attachment_free(e>>>0,1));const H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_backupdecryptionkey_free(e>>>0,1));class ee{static __wrap(e){e>>>=0;const t=Object.create(ee.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_backupdecryptionkey_free(e,0)}static createRandomKey(){const e=_.backupdecryptionkey_createRandomKey();return ee.__wrap(e)}static fromBase64(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.backupdecryptionkey_fromBase64(t,r);if(n[2])throw q(n[1]);return ee.__wrap(n[0])}toBase64(){return _.backupdecryptionkey_toBase64(this.__wbg_ptr)}get megolmV1PublicKey(){const e=_.backupdecryptionkey_megolmV1PublicKey(this.__wbg_ptr);return Ct.__wrap(e)}decryptV1(e,t,r){let n,i;try{const g=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=u,a=p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),d=u,b=p(r,_.__wbindgen_malloc,_.__wbindgen_realloc),l=u,y=_.backupdecryptionkey_decryptV1(this.__wbg_ptr,g,c,a,d,b,l);var s=y[0],o=y[1];if(y[3])throw s=0,o=0,q(y[2]);return n=s,i=o,w(s,o)}finally{_.__wbindgen_free(n,i,1)}}}const te="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_backupkeys_free(e>>>0,1));class re{static __wrap(e){e>>>=0;const t=Object.create(re.prototype);return t.__wbg_ptr=e,te.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,te.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_backupkeys_free(e,0)}get decryptionKey(){const e=_.__wbg_get_backupkeys_decryptionKey(this.__wbg_ptr);return 0===e?void 0:ee.__wrap(e)}set decryptionKey(e){let t=0;m(e)||(K(e,ee),t=e.__destroy_into_raw()),_.__wbg_set_backupkeys_decryptionKey(this.__wbg_ptr,t)}get backupVersion(){const e=_.__wbg_get_backupkeys_backupVersion(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set backupVersion(e){var t=m(e)?0:p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_backupkeys_backupVersion(this.__wbg_ptr,t,r)}get decryptionKeyBase64(){return _.backupkeys_decryptionKeyBase64(this.__wbg_ptr)}}const _e="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_backupsecretsbundle_free(e>>>0,1));class ne{static __wrap(e){e>>>=0;const t=Object.create(ne.prototype);return t.__wbg_ptr=e,_e.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_e.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_backupsecretsbundle_free(e,0)}get key(){let e,t;try{const r=_.__wbg_get_backupsecretsbundle_key(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set key(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}get backup_version(){let e,t;try{const r=_.__wbg_get_backupsecretsbundle_backup_version(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set backup_version(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,r)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>_.__wbg_base64encodedpkmessage_free(e>>>0,1));const ie="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_basemigrationdata_free(e>>>0,1));class se{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ie.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_basemigrationdata_free(e,0)}get userId(){const e=_.__wbg_get_basemigrationdata_userId(this.__wbg_ptr);return 0===e?void 0:$r.__wrap(e)}set userId(e){let t=0;m(e)||(K(e,$r),t=e.__destroy_into_raw()),_.__wbg_set_basemigrationdata_userId(this.__wbg_ptr,t)}get deviceId(){const e=_.__wbg_get_basemigrationdata_deviceId(this.__wbg_ptr);return 0===e?void 0:Ve.__wrap(e)}set deviceId(e){let t=0;m(e)||(K(e,Ve),t=e.__destroy_into_raw()),_.__wbg_set_basemigrationdata_deviceId(this.__wbg_ptr,t)}get pickledAccount(){let e,t;try{const r=_.__wbg_get_basemigrationdata_pickledAccount(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set pickledAccount(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}get backupVersion(){const e=_.__wbg_get_basemigrationdata_backupVersion(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set backupVersion(e){var t=m(e)?0:p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_basemigrationdata_backupVersion(this.__wbg_ptr,t,r)}get backupRecoveryKey(){const e=_.__wbg_get_basemigrationdata_backupRecoveryKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set backupRecoveryKey(e){var t=m(e)?0:p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_basemigrationdata_backupRecoveryKey(this.__wbg_ptr,t,r)}get privateCrossSigningMasterKey(){const e=_.__wbg_get_basemigrationdata_privateCrossSigningMasterKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set privateCrossSigningMasterKey(e){var t=m(e)?0:p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_basemigrationdata_privateCrossSigningMasterKey(this.__wbg_ptr,t,r)}get privateCrossSigningSelfSigningKey(){const e=_.__wbg_get_basemigrationdata_privateCrossSigningSelfSigningKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set privateCrossSigningSelfSigningKey(e){var t=m(e)?0:p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_basemigrationdata_privateCrossSigningSelfSigningKey(this.__wbg_ptr,t,r)}get privateCrossSigningUserSigningKey(){const e=_.__wbg_get_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set privateCrossSigningUserSigningKey(e){var t=m(e)?0:p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr,t,r)}constructor(){const e=_.basemigrationdata_new();return this.__wbg_ptr=e>>>0,ie.register(this,this.__wbg_ptr,this),this}}const oe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_cancelinfo_free(e>>>0,1));class ge{static __wrap(e){e>>>=0;const t=Object.create(ge.prototype);return t.__wbg_ptr=e,oe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,oe.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_cancelinfo_free(e,0)}reason(){return _.cancelinfo_reason(this.__wbg_ptr)}cancelCode(){let e,t;try{const r=_.cancelinfo_cancelCode(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}cancelledbyUs(){return 0!==_.cancelinfo_cancelledbyUs(this.__wbg_ptr)}}const ce="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_checkcode_free(e>>>0,1));class ae{static __wrap(e){e>>>=0;const t=Object.create(ae.prototype);return t.__wbg_ptr=e,ce.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ce.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_checkcode_free(e,0)}as_bytes(){const e=_.checkcode_as_bytes(this.__wbg_ptr);var t=v(e[0],e[1]).slice();return _.__wbindgen_free(e[0],1*e[1],1),t}to_digit(){return _.checkcode_to_digit(this.__wbg_ptr)}}const we="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_collectstrategy_free(e>>>0,1));class ue{static __wrap(e){e>>>=0;const t=Object.create(ue.prototype);return t.__wbg_ptr=e,we.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,we.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_collectstrategy_free(e,0)}eq(e){K(e,ue);return 0!==_.collectstrategy_eq(this.__wbg_ptr,e.__wbg_ptr)}static deviceBasedStrategy(e,t){const r=_.collectstrategy_deviceBasedStrategy(e,t);return ue.__wrap(r)}static allDevices(){const e=_.collectstrategy_allDevices();return ue.__wrap(e)}static errorOnUnverifiedUserProblem(){const e=_.collectstrategy_errorOnUnverifiedUserProblem();return ue.__wrap(e)}static identityBasedStrategy(){const e=_.collectstrategy_identityBasedStrategy();return ue.__wrap(e)}static onlyTrustedDevices(){const e=_.collectstrategy_onlyTrustedDevices();return ue.__wrap(e)}}const de="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_crosssigningbootstraprequests_free(e>>>0,1));class be{static __wrap(e){e>>>=0;const t=Object.create(be.prototype);return t.__wbg_ptr=e,de.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,de.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_crosssigningbootstraprequests_free(e,0)}get uploadKeysRequest(){return _.__wbg_get_crosssigningbootstraprequests_uploadKeysRequest(this.__wbg_ptr)}get uploadSigningKeysRequest(){const e=_.__wbg_get_crosssigningbootstraprequests_uploadSigningKeysRequest(this.__wbg_ptr);return Wr.__wrap(e)}get uploadSignaturesRequest(){const e=_.__wbg_get_crosssigningbootstraprequests_uploadSignaturesRequest(this.__wbg_ptr);return Cr.__wrap(e)}}const pe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_crosssigningkeyexport_free(e>>>0,1));class le{static __wrap(e){e>>>=0;const t=Object.create(le.prototype);return t.__wbg_ptr=e,pe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,pe.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_crosssigningkeyexport_free(e,0)}get masterKey(){const e=_.crosssigningkeyexport_masterKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}get self_signing_key(){const e=_.crosssigningkeyexport_self_signing_key(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}get userSigningKey(){const e=_.crosssigningkeyexport_userSigningKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}}const ye="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_crosssigningstatus_free(e>>>0,1));class he{static __wrap(e){e>>>=0;const t=Object.create(he.prototype);return t.__wbg_ptr=e,ye.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ye.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_crosssigningstatus_free(e,0)}get hasMaster(){return 0!==_.crosssigningstatus_hasMaster(this.__wbg_ptr)}get hasSelfSigning(){return 0!==_.crosssigningstatus_hasSelfSigning(this.__wbg_ptr)}get hasUserSigning(){return 0!==_.crosssigningstatus_hasUserSigning(this.__wbg_ptr)}}const fe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_curve25519publickey_free(e>>>0,1));class me{static __wrap(e){e>>>=0;const t=Object.create(me.prototype);return t.__wbg_ptr=e,fe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,fe.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_curve25519publickey_free(e,0)}constructor(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.curve25519publickey_new(t,r);if(n[2])throw q(n[1]);return this.__wbg_ptr=n[0]>>>0,fe.register(this,this.__wbg_ptr,this),this}get length(){return _.curve25519publickey_length(this.__wbg_ptr)>>>0}toBase64(){let e,t;try{const r=_.curve25519publickey_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>_.__wbg_curve25519secretkey_free(e>>>0,1));const ve="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_decryptedroomevent_free(e>>>0,1));class ke{static __wrap(e){e>>>=0;const t=Object.create(ke.prototype);return t.__wbg_ptr=e,ve.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ve.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_decryptedroomevent_free(e,0)}get event(){return _.__wbg_get_decryptedroomevent_event(this.__wbg_ptr)}get sender(){const e=_.decryptedroomevent_sender(this.__wbg_ptr);return $r.__wrap(e)}get senderDevice(){const e=_.decryptedroomevent_senderDevice(this.__wbg_ptr);return 0===e?void 0:Ve.__wrap(e)}get senderCurve25519Key(){let e,t;try{const r=_.decryptedroomevent_senderCurve25519Key(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get senderClaimedEd25519Key(){return _.decryptedroomevent_senderClaimedEd25519Key(this.__wbg_ptr)}get forwardingCurve25519KeyChain(){return _.decryptedroomevent_forwardingCurve25519KeyChain(this.__wbg_ptr)}shieldState(e){const t=_.decryptedroomevent_shieldState(this.__wbg_ptr,e);return zr.__wrap(t)}}const Re="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_decryptedtodeviceevent_free(e>>>0,1));class Se{static __wrap(e){e>>>=0;const t=Object.create(Se.prototype);return t.__wbg_ptr=e,Re.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Re.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_decryptedtodeviceevent_free(e,0)}get rawEvent(){return _.__wbg_get_decryptedtodeviceevent_rawEvent(this.__wbg_ptr)}get encryptionInfo(){const e=_.__wbg_get_decryptedtodeviceevent_encryptionInfo(this.__wbg_ptr);return Tr.__wrap(e)}get type(){return _.decryptedtodeviceevent_type(this.__wbg_ptr)}}const Fe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_decryptionsettings_free(e>>>0,1));class ze{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Fe.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_decryptionsettings_free(e,0)}get sender_device_trust_requirement(){return _.__wbg_get_decryptionsettings_sender_device_trust_requirement(this.__wbg_ptr)}set sender_device_trust_requirement(e){_.__wbg_set_decryptionsettings_sender_device_trust_requirement(this.__wbg_ptr,e)}constructor(e){const t=_.decryptionsettings_new(e);return this.__wbg_ptr=t>>>0,Fe.register(this,this.__wbg_ptr,this),this}}const qe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_dehydrateddevice_free(e>>>0,1));class Ke{static __wrap(e){e>>>=0;const t=Object.create(Ke.prototype);return t.__wbg_ptr=e,qe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,qe.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_dehydrateddevice_free(e,0)}keysForUpload(e,t){K(t,Ce);return _.dehydrateddevice_keysForUpload(this.__wbg_ptr,e,t.__wbg_ptr)}}const Ie="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_dehydrateddevicekey_free(e>>>0,1));class Ce{static __wrap(e){e>>>=0;const t=Object.create(Ce.prototype);return t.__wbg_ptr=e,Ie.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ie.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_dehydrateddevicekey_free(e,0)}static createRandomKey(){const e=_.dehydrateddevicekey_createRandomKey();if(e[2])throw q(e[1]);return Ce.__wrap(e[0])}static createKeyFromArray(e){const t=_.dehydrateddevicekey_createKeyFromArray(e);if(t[2])throw q(t[1]);return Ce.__wrap(t[0])}toBase64(){return _.dehydrateddevicekey_toBase64(this.__wbg_ptr)}}const Oe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_dehydrateddevices_free(e>>>0,1));class je{static __wrap(e){e>>>=0;const t=Object.create(je.prototype);return t.__wbg_ptr=e,Oe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Oe.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_dehydrateddevices_free(e,0)}create(){return _.dehydrateddevices_create(this.__wbg_ptr)}rehydrate(e,t,r){K(e,Ce),K(t,Ve);const n=p(r,_.__wbindgen_malloc,_.__wbindgen_realloc),i=u;return _.dehydrateddevices_rehydrate(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,n,i)}getDehydratedDeviceKey(){return _.dehydrateddevices_getDehydratedDeviceKey(this.__wbg_ptr)}saveDehydratedDeviceKey(e){K(e,Ce);return _.dehydrateddevices_saveDehydratedDeviceKey(this.__wbg_ptr,e.__wbg_ptr)}deleteDehydratedDeviceKey(){return _.dehydrateddevices_deleteDehydratedDeviceKey(this.__wbg_ptr)}}const Ue="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_device_free(e>>>0,1));class Be{static __wrap(e){e>>>=0;const t=Object.create(Be.prototype);return t.__wbg_ptr=e,Ue.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ue.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_device_free(e,0)}requestVerification(e){var t=m(e)?0:I(e,_.__wbindgen_malloc),r=u;const n=_.device_requestVerification(this.__wbg_ptr,t,r);if(n[2])throw q(n[1]);return q(n[0])}encryptToDeviceEvent(e,t,r){const n=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=u;let s=0;m(r)||(K(r,ue),s=r.__destroy_into_raw());return _.device_encryptToDeviceEvent(this.__wbg_ptr,n,i,t,s)}isVerified(){return 0!==_.device_isVerified(this.__wbg_ptr)}isCrossSigningTrusted(){return 0!==_.device_isCrossSigningTrusted(this.__wbg_ptr)}isCrossSignedByOwner(){return 0!==_.device_isCrossSignedByOwner(this.__wbg_ptr)}setLocalTrust(e){return _.device_setLocalTrust(this.__wbg_ptr,e)}get userId(){const e=_.device_userId(this.__wbg_ptr);return $r.__wrap(e)}get deviceId(){const e=_.device_deviceId(this.__wbg_ptr);return Ve.__wrap(e)}get displayName(){const e=_.device_displayName(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}getKey(e){const t=_.device_getKey(this.__wbg_ptr,e);if(t[2])throw q(t[1]);return 0===t[0]?void 0:xe.__wrap(t[0])}get curve25519Key(){const e=_.device_curve25519Key(this.__wbg_ptr);return 0===e?void 0:me.__wrap(e)}get ed25519Key(){const e=_.device_ed25519Key(this.__wbg_ptr);return 0===e?void 0:We.__wrap(e)}get keys(){return _.device_keys(this.__wbg_ptr)}get algorithms(){return _.device_algorithms(this.__wbg_ptr)}get signatures(){const e=_.device_signatures(this.__wbg_ptr);return Br.__wrap(e)}get localTrustState(){return _.device_localTrustState(this.__wbg_ptr)}isLocallyTrusted(){return 0!==_.device_isLocallyTrusted(this.__wbg_ptr)}isBlacklisted(){return 0!==_.device_isBlacklisted(this.__wbg_ptr)}isDeleted(){return 0!==_.device_isDeleted(this.__wbg_ptr)}firstTimeSeen(){const e=_.device_firstTimeSeen(this.__wbg_ptr);return BigInt.asUintN(64,e)}verify(){return _.device_verify(this.__wbg_ptr)}get isDehydrated(){return 0!==_.device_isDehydrated(this.__wbg_ptr)}}const De="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_deviceid_free(e>>>0,1));class Ve{static __wrap(e){e>>>=0;const t=Object.create(Ve.prototype);return t.__wbg_ptr=e,De.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,De.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_deviceid_free(e,0)}constructor(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.deviceid_new(t,r);return this.__wbg_ptr=n>>>0,De.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const r=_.deviceid_toString(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}const Ee="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_devicekey_free(e>>>0,1));class xe{static __wrap(e){e>>>=0;const t=Object.create(xe.prototype);return t.__wbg_ptr=e,Ee.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ee.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_devicekey_free(e,0)}get name(){return _.devicekey_name(this.__wbg_ptr)}get curve25519(){const e=_.devicekey_curve25519(this.__wbg_ptr);return 0===e?void 0:me.__wrap(e)}get ed25519(){const e=_.devicekey_ed25519(this.__wbg_ptr);return 0===e?void 0:We.__wrap(e)}get unknown(){const e=_.devicekey_unknown(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}toBase64(){let e,t;try{const r=_.devicekey_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}const Me="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_devicekeyalgorithm_free(e>>>0,1));class Te{static __wrap(e){e>>>=0;const t=Object.create(Te.prototype);return t.__wbg_ptr=e,Me.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Me.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_devicekeyalgorithm_free(e,0)}get name(){return _.devicekeyalgorithm_name(this.__wbg_ptr)}toString(){let e,t;try{const r=_.devicekeyalgorithm_toString(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}const Ae="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_devicekeyid_free(e>>>0,1));class Ne{static __wrap(e){e>>>=0;const t=Object.create(Ne.prototype);return t.__wbg_ptr=e,Ae.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ae.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_devicekeyid_free(e,0)}constructor(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.devicekeyid_new(t,r);if(n[2])throw q(n[1]);return this.__wbg_ptr=n[0]>>>0,Ae.register(this,this.__wbg_ptr,this),this}get algorithm(){const e=_.devicekeyid_algorithm(this.__wbg_ptr);return Te.__wrap(e)}get deviceId(){const e=_.devicekeyid_deviceId(this.__wbg_ptr);return Ve.__wrap(e)}toString(){let e,t;try{const r=_.devicekeyid_toString(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}const Pe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_devicelists_free(e>>>0,1));class Je{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Pe.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_devicelists_free(e,0)}constructor(e,t){var r=m(e)?0:I(e,_.__wbindgen_malloc),n=u,i=m(t)?0:I(t,_.__wbindgen_malloc),s=u;const o=_.devicelists_new(r,n,i,s);if(o[2])throw q(o[1]);return this.__wbg_ptr=o[0]>>>0,Pe.register(this,this.__wbg_ptr,this),this}isEmpty(){return 0!==_.devicelists_isEmpty(this.__wbg_ptr)}get changed(){const e=_.devicelists_changed(this.__wbg_ptr);var t=C(e[0],e[1]).slice();return _.__wbindgen_free(e[0],4*e[1],4),t}get left(){const e=_.devicelists_left(this.__wbg_ptr);var t=C(e[0],e[1]).slice();return _.__wbindgen_free(e[0],4*e[1],4),t}}const Le="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_ecies_free(e>>>0,1));class Qe{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Le.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_ecies_free(e,0)}constructor(){const e=_.ecies_new();return this.__wbg_ptr=e>>>0,Le.register(this,this.__wbg_ptr,this),this}public_key(){const e=_.ecies_public_key(this.__wbg_ptr);return me.__wrap(e)}establish_inbound_channel(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.ecies_establish_inbound_channel(this.__wbg_ptr,t,r);if(n[2])throw q(n[1]);return ut.__wrap(n[0])}establish_outbound_channel(e,t){K(e,me);const r=p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u,i=_.ecies_establish_outbound_channel(this.__wbg_ptr,e.__wbg_ptr,r,n);if(i[2])throw q(i[1]);return xt.__wrap(i[0])}}const Ge="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_ed25519publickey_free(e>>>0,1));class We{static __wrap(e){e>>>=0;const t=Object.create(We.prototype);return t.__wbg_ptr=e,Ge.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ge.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_ed25519publickey_free(e,0)}get length(){return _.ed25519publickey_length(this.__wbg_ptr)>>>0}toBase64(){let e,t;try{const r=_.ed25519publickey_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}const Ye="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_ed25519signature_free(e>>>0,1));class Xe{static __wrap(e){e>>>=0;const t=Object.create(Xe.prototype);return t.__wbg_ptr=e,Ye.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ye.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_ed25519signature_free(e,0)}constructor(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.ed25519signature_new(t,r);if(n[2])throw q(n[1]);return this.__wbg_ptr=n[0]>>>0,Ye.register(this,this.__wbg_ptr,this),this}toBase64(){let e,t;try{const r=_.ed25519signature_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}const Ze="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_emoji_free(e>>>0,1));class $e{static __wrap(e){e>>>=0;const t=Object.create($e.prototype);return t.__wbg_ptr=e,Ze.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ze.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_emoji_free(e,0)}get symbol(){return _.emoji_symbol(this.__wbg_ptr)}get description(){return _.emoji_description(this.__wbg_ptr)}}const He="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_encryptedattachment_free(e>>>0,1));class et{static __wrap(e){e>>>=0;const t=Object.create(et.prototype);return t.__wbg_ptr=e,He.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,He.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_encryptedattachment_free(e,0)}constructor(e,t){const r=z(e,_.__wbindgen_malloc),n=u,i=p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=u,o=_.encryptedattachment_new(r,n,i,s);if(o[2])throw q(o[1]);return this.__wbg_ptr=o[0]>>>0,He.register(this,this.__wbg_ptr,this),this}get encryptedData(){const e=_.encryptedattachment_encryptedData(this.__wbg_ptr);var t=v(e[0],e[1]).slice();return _.__wbindgen_free(e[0],1*e[1],1),t}get mediaEncryptionInfo(){const e=_.encryptedattachment_mediaEncryptionInfo(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}get hasMediaEncryptionInfoBeenConsumed(){return 0!==_.encryptedattachment_hasMediaEncryptionInfoBeenConsumed(this.__wbg_ptr)}}const tt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_encryptioninfo_free(e>>>0,1));class rt{static __wrap(e){e>>>=0;const t=Object.create(rt.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();_.__wbg_encryptioninfo_free(e,0)}get sender(){const e=_.__wbg_get_encryptioninfo_sender(this.__wbg_ptr);return $r.__wrap(e)}set sender(e){K(e,$r);var t=e.__destroy_into_raw();_.__wbg_set_encryptioninfo_sender(this.__wbg_ptr,t)}get senderDevice(){const e=_.__wbg_get_encryptioninfo_senderDevice(this.__wbg_ptr);return 0===e?void 0:Ve.__wrap(e)}set senderDevice(e){let t=0;m(e)||(K(e,Ve),t=e.__destroy_into_raw()),_.__wbg_set_encryptioninfo_senderDevice(this.__wbg_ptr,t)}get senderCurve25519Key(){let e,t;try{const r=_.__wbg_get_encryptioninfo_senderCurve25519Key(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set senderCurve25519Key(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}get senderClaimedEd25519Key(){const e=_.__wbg_get_encryptioninfo_senderClaimedEd25519Key(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set senderClaimedEd25519Key(e){var t=m(e)?0:p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_basemigrationdata_backupVersion(this.__wbg_ptr,t,r)}shieldState(e){const t=_.encryptioninfo_shieldState(this.__wbg_ptr,e);return zr.__wrap(t)}}const _t="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_encryptionsettings_free(e>>>0,1));class nt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_t.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_encryptionsettings_free(e,0)}get algorithm(){return _.__wbg_get_encryptionsettings_algorithm(this.__wbg_ptr)}set algorithm(e){_.__wbg_set_encryptionsettings_algorithm(this.__wbg_ptr,e)}get encryptStateEvents(){return 0!==_.__wbg_get_encryptionsettings_encryptStateEvents(this.__wbg_ptr)}set encryptStateEvents(e){_.__wbg_set_encryptionsettings_encryptStateEvents(this.__wbg_ptr,e)}get rotationPeriod(){const e=_.__wbg_get_encryptionsettings_rotationPeriod(this.__wbg_ptr);return BigInt.asUintN(64,e)}set rotationPeriod(e){_.__wbg_set_encryptionsettings_rotationPeriod(this.__wbg_ptr,e)}get rotationPeriodMessages(){const e=_.__wbg_get_encryptionsettings_rotationPeriodMessages(this.__wbg_ptr);return BigInt.asUintN(64,e)}set rotationPeriodMessages(e){_.__wbg_set_encryptionsettings_rotationPeriodMessages(this.__wbg_ptr,e)}get historyVisibility(){return _.__wbg_get_encryptionsettings_historyVisibility(this.__wbg_ptr)}set historyVisibility(e){_.__wbg_set_encryptionsettings_historyVisibility(this.__wbg_ptr,e)}get sharingStrategy(){const e=_.__wbg_get_encryptionsettings_sharingStrategy(this.__wbg_ptr);return ue.__wrap(e)}set sharingStrategy(e){K(e,ue);var t=e.__destroy_into_raw();_.__wbg_set_encryptionsettings_sharingStrategy(this.__wbg_ptr,t)}constructor(){const e=_.encryptionsettings_new();return this.__wbg_ptr=e>>>0,_t.register(this,this.__wbg_ptr,this),this}}const it="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_establishedecies_free(e>>>0,1));class st{static __wrap(e){e>>>=0;const t=Object.create(st.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();_.__wbg_establishedecies_free(e,0)}public_key(){const e=_.establishedecies_public_key(this.__wbg_ptr);return me.__wrap(e)}encrypt(e){let t,r;try{const n=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=u,s=_.establishedecies_encrypt(this.__wbg_ptr,n,i);return t=s[0],r=s[1],w(s[0],s[1])}finally{_.__wbindgen_free(t,r,1)}}decrypt(e){let t,r;try{const s=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),o=u,g=_.establishedecies_decrypt(this.__wbg_ptr,s,o);var n=g[0],i=g[1];if(g[3])throw n=0,i=0,q(g[2]);return t=n,r=i,w(n,i)}finally{_.__wbindgen_free(t,r,1)}}check_code(){const e=_.establishedecies_check_code(this.__wbg_ptr);return ae.__wrap(e)}}const ot="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_eventid_free(e>>>0,1));class gt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ot.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_eventid_free(e,0)}constructor(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.eventid_new(t,r);if(n[2])throw q(n[1]);return this.__wbg_ptr=n[0]>>>0,ot.register(this,this.__wbg_ptr,this),this}get localpart(){let e,t;try{const r=_.eventid_localpart(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get serverName(){const e=_.eventid_serverName(this.__wbg_ptr);return 0===e?void 0:Sr.__wrap(e)}toString(){let e,t;try{const r=_.eventid_toString(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}const ct="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_identitykeys_free(e>>>0,1));class at{static __wrap(e){e>>>=0;const t=Object.create(at.prototype);return t.__wbg_ptr=e,ct.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ct.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_identitykeys_free(e,0)}get ed25519(){const e=_.__wbg_get_identitykeys_ed25519(this.__wbg_ptr);return We.__wrap(e)}set ed25519(e){K(e,We);var t=e.__destroy_into_raw();_.__wbg_set_identitykeys_ed25519(this.__wbg_ptr,t)}get curve25519(){const e=_.__wbg_get_identitykeys_curve25519(this.__wbg_ptr);return me.__wrap(e)}set curve25519(e){K(e,me);var t=e.__destroy_into_raw();_.__wbg_set_identitykeys_curve25519(this.__wbg_ptr,t)}}const wt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_inboundcreationresult_free(e>>>0,1));class ut{static __wrap(e){e>>>=0;const t=Object.create(ut.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();_.__wbg_inboundcreationresult_free(e,0)}get channel(){const e=_.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return st.__wrap(e)}set channel(e){K(e,st);var t=e.__destroy_into_raw();_.__wbg_set_inboundcreationresult_channel(this.__wbg_ptr,t)}get message(){let e,t;try{const r=_.__wbg_get_inboundcreationresult_message(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set message(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}}const dt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_inboundgroupsession_free(e>>>0,1));class bt{static __wrap(e){e>>>=0;const t=Object.create(bt.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();_.__wbg_inboundgroupsession_free(e,0)}get roomId(){const e=_.inboundgroupsession_roomId(this.__wbg_ptr);return sr.__wrap(e)}get senderKey(){const e=_.inboundgroupsession_senderKey(this.__wbg_ptr);return me.__wrap(e)}get sessionId(){let e,t;try{const r=_.inboundgroupsession_sessionId(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}hasBeenImported(){return 0!==_.inboundgroupsession_hasBeenImported(this.__wbg_ptr)}}const pt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_invalidtodeviceevent_free(e>>>0,1));class lt{static __wrap(e){e>>>=0;const t=Object.create(lt.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();_.__wbg_invalidtodeviceevent_free(e,0)}get rawEvent(){return _.__wbg_get_invalidtodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return _.invalidtodeviceevent_type(this.__wbg_ptr)}}const yt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_keysbackuprequest_free(e>>>0,1));class ht{static __wrap(e){e>>>=0;const t=Object.create(ht.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();_.__wbg_keysbackuprequest_free(e,0)}get id(){return _.__wbg_get_keysbackuprequest_id(this.__wbg_ptr)}get body(){return _.__wbg_get_keysbackuprequest_body(this.__wbg_ptr)}get version(){return _.__wbg_get_keysbackuprequest_version(this.__wbg_ptr)}constructor(e,t,r){const n=_.keysbackuprequest_new(e,t,r);return this.__wbg_ptr=n>>>0,yt.register(this,this.__wbg_ptr,this),this}get type(){return _.keysbackuprequest_type(this.__wbg_ptr)}}const ft="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_keysclaimrequest_free(e>>>0,1));class mt{static __wrap(e){e>>>=0;const t=Object.create(mt.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();_.__wbg_keysclaimrequest_free(e,0)}get id(){return _.__wbg_get_keysclaimrequest_id(this.__wbg_ptr)}get body(){return _.__wbg_get_keysclaimrequest_body(this.__wbg_ptr)}constructor(e,t){const r=_.keysclaimrequest_new(e,t);return this.__wbg_ptr=r>>>0,ft.register(this,this.__wbg_ptr,this),this}get type(){return _.keysclaimrequest_type(this.__wbg_ptr)}}const vt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_keysqueryrequest_free(e>>>0,1));class kt{static __wrap(e){e>>>=0;const t=Object.create(kt.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();_.__wbg_keysqueryrequest_free(e,0)}get id(){return _.__wbg_get_keysqueryrequest_id(this.__wbg_ptr)}get body(){return _.__wbg_get_keysqueryrequest_body(this.__wbg_ptr)}constructor(e,t){const r=_.keysqueryrequest_new(e,t);return this.__wbg_ptr=r>>>0,vt.register(this,this.__wbg_ptr,this),this}get type(){return _.keysqueryrequest_type(this.__wbg_ptr)}}const Rt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_keysuploadrequest_free(e>>>0,1));class St{static __wrap(e){e>>>=0;const t=Object.create(St.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();_.__wbg_keysuploadrequest_free(e,0)}get id(){return _.__wbg_get_keysuploadrequest_id(this.__wbg_ptr)}get body(){return _.__wbg_get_keysuploadrequest_body(this.__wbg_ptr)}constructor(e,t){const r=_.keysuploadrequest_new(e,t);return this.__wbg_ptr=r>>>0,Rt.register(this,this.__wbg_ptr,this),this}get type(){return _.keysuploadrequest_type(this.__wbg_ptr)}}const Ft="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_maybesignature_free(e>>>0,1));class zt{static __wrap(e){e>>>=0;const t=Object.create(zt.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();_.__wbg_maybesignature_free(e,0)}isValid(){return 0!==_.maybesignature_isValid(this.__wbg_ptr)}isInvalid(){return 0!==_.maybesignature_isInvalid(this.__wbg_ptr)}get signature(){const e=_.maybesignature_signature(this.__wbg_ptr);return 0===e?void 0:Kr.__wrap(e)}get invalidSignatureSource(){const e=_.maybesignature_invalidSignatureSource(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}}const qt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_megolmdecryptionerror_free(e>>>0,1));class Kt{static __wrap(e){e>>>=0;const t=Object.create(Kt.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();_.__wbg_megolmdecryptionerror_free(e,0)}get code(){return _.__wbg_get_megolmdecryptionerror_code(this.__wbg_ptr)}get description(){return _.__wbg_get_megolmdecryptionerror_description(this.__wbg_ptr)}get maybe_withheld(){return _.__wbg_get_megolmdecryptionerror_maybe_withheld(this.__wbg_ptr)}}const It="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_megolmv1backupkey_free(e>>>0,1));class Ct{static __wrap(e){e>>>=0;const t=Object.create(Ct.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();_.__wbg_megolmv1backupkey_free(e,0)}get publicKeyBase64(){return _.megolmv1backupkey_publicKeyBase64(this.__wbg_ptr)}get algorithm(){return _.megolmv1backupkey_algorithm(this.__wbg_ptr)}}const Ot="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_migration_free(e>>>0,1));class jt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_migration_free(e,0)}static migrateBaseData(e,t,r,n){K(e,se),K(r,Vr);return _.migration_migrateBaseData(e.__wbg_ptr,t,r.__wbg_ptr,m(n)?0:h(n))}static migrateOlmSessions(e,t,r,n){const i=I(e,_.__wbindgen_malloc),s=u;K(r,Vr);const o=_.migration_migrateOlmSessions(i,s,t,r.__wbg_ptr,m(n)?0:h(n));if(o[2])throw q(o[1]);return q(o[0])}static migrateMegolmSessions(e,t,r,n){const i=I(e,_.__wbindgen_malloc),s=u;K(r,Vr);const o=_.migration_migrateMegolmSessions(i,s,t,r.__wbg_ptr,m(n)?0:h(n));if(o[2])throw q(o[1]);return q(o[0])}}const Ut="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_olmmachine_free(e>>>0,1));class Bt{static __wrap(e){e>>>=0;const t=Object.create(Bt.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();_.__wbg_olmmachine_free(e,0)}constructor(){const e=_.olmmachine_new();if(e[2])throw q(e[1]);return this.__wbg_ptr=e[0]>>>0,Ut.register(this,this.__wbg_ptr,this),this}static initialize(e,t,r,n,i){K(e,$r),K(t,Ve);var s=m(r)?0:p(r,_.__wbindgen_malloc,_.__wbindgen_realloc),o=u,g=m(n)?0:p(n,_.__wbindgen_malloc,_.__wbindgen_realloc),c=u;return _.olmmachine_initialize(e.__wbg_ptr,t.__wbg_ptr,s,o,g,c,m(i)?0:h(i))}static initFromStore(e,t,r,n){K(e,$r),K(t,Ve),K(r,Vr);return _.olmmachine_initFromStore(e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,m(n)?0:h(n))}get userId(){const e=_.olmmachine_userId(this.__wbg_ptr);return $r.__wrap(e)}get deviceId(){const e=_.olmmachine_deviceId(this.__wbg_ptr);return Ve.__wrap(e)}get deviceCreationTimeMs(){return _.olmmachine_deviceCreationTimeMs(this.__wbg_ptr)}get identityKeys(){const e=_.olmmachine_identityKeys(this.__wbg_ptr);return at.__wrap(e)}get displayName(){return _.olmmachine_displayName(this.__wbg_ptr)}get roomKeyRequestsEnabled(){return 0!==_.olmmachine_roomKeyRequestsEnabled(this.__wbg_ptr)}set roomKeyRequestsEnabled(e){_.olmmachine_set_roomKeyRequestsEnabled(this.__wbg_ptr,e)}get roomKeyForwardingEnabled(){return 0!==_.olmmachine_roomKeyForwardingEnabled(this.__wbg_ptr)}set roomKeyForwardingEnabled(e){_.olmmachine_set_roomKeyForwardingEnabled(this.__wbg_ptr,e)}trackedUsers(){const e=_.olmmachine_trackedUsers(this.__wbg_ptr);if(e[2])throw q(e[1]);return q(e[0])}updateTrackedUsers(e){const t=I(e,_.__wbindgen_malloc),r=u;return _.olmmachine_updateTrackedUsers(this.__wbg_ptr,t,r)}markAllTrackedUsersAsDirty(){return _.olmmachine_markAllTrackedUsersAsDirty(this.__wbg_ptr)}receiveSyncChanges(e,t,r,n,i){const s=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),o=u;K(t,Je);let g=0;m(i)||(K(i,ze),g=i.__destroy_into_raw());const c=_.olmmachine_receiveSyncChanges(this.__wbg_ptr,s,o,t.__wbg_ptr,r,m(n)?0:h(n),g);if(c[2])throw q(c[1]);return q(c[0])}outgoingRequests(){return _.olmmachine_outgoingRequests(this.__wbg_ptr)}markRequestAsSent(e,t,r){const n=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=u,s=p(r,_.__wbindgen_malloc,_.__wbindgen_realloc),o=u,g=_.olmmachine_markRequestAsSent(this.__wbg_ptr,n,i,t,s,o);if(g[2])throw q(g[1]);return q(g[0])}encryptRoomEvent(e,t,r){K(e,sr);const n=p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),i=u,s=p(r,_.__wbindgen_malloc,_.__wbindgen_realloc),o=u,g=_.olmmachine_encryptRoomEvent(this.__wbg_ptr,e.__wbg_ptr,n,i,s,o);if(g[2])throw q(g[1]);return q(g[0])}encryptStateEvent(e,t,r,n){K(e,sr);const i=p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=u,o=p(r,_.__wbindgen_malloc,_.__wbindgen_realloc),g=u,c=p(n,_.__wbindgen_malloc,_.__wbindgen_realloc),a=u,w=_.olmmachine_encryptStateEvent(this.__wbg_ptr,e.__wbg_ptr,i,s,o,g,c,a);if(w[2])throw q(w[1]);return q(w[0])}decryptRoomEvent(e,t,r){const n=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=u;K(t,sr),K(r,ze);const s=_.olmmachine_decryptRoomEvent(this.__wbg_ptr,n,i,t.__wbg_ptr,r.__wbg_ptr);if(s[2])throw q(s[1]);return q(s[0])}getRoomEventEncryptionInfo(e,t){const r=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u;K(t,sr);const i=_.olmmachine_getRoomEventEncryptionInfo(this.__wbg_ptr,r,n,t.__wbg_ptr);if(i[2])throw q(i[1]);return q(i[0])}crossSigningStatus(){return _.olmmachine_crossSigningStatus(this.__wbg_ptr)}exportSecretsBundle(){return _.olmmachine_exportSecretsBundle(this.__wbg_ptr)}importSecretsBundle(e){K(e,kr);var t=e.__destroy_into_raw();return _.olmmachine_importSecretsBundle(this.__wbg_ptr,t)}exportCrossSigningKeys(){return _.olmmachine_exportCrossSigningKeys(this.__wbg_ptr)}importCrossSigningKeys(e,t,r){var n=m(e)?0:p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=u,s=m(t)?0:p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=u,g=m(r)?0:p(r,_.__wbindgen_malloc,_.__wbindgen_realloc),c=u;return _.olmmachine_importCrossSigningKeys(this.__wbg_ptr,n,i,s,o,g,c)}bootstrapCrossSigning(e){return _.olmmachine_bootstrapCrossSigning(this.__wbg_ptr,e)}getIdentity(e){K(e,$r);return _.olmmachine_getIdentity(this.__wbg_ptr,e.__wbg_ptr)}sign(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;return _.olmmachine_sign(this.__wbg_ptr,t,r)}invalidateGroupSession(e){K(e,sr);return _.olmmachine_invalidateGroupSession(this.__wbg_ptr,e.__wbg_ptr)}shareRoomKey(e,t,r){K(e,sr);const n=I(t,_.__wbindgen_malloc),i=u;K(r,nt);return _.olmmachine_shareRoomKey(this.__wbg_ptr,e.__wbg_ptr,n,i,r.__wbg_ptr)}queryKeysForUsers(e){const t=I(e,_.__wbindgen_malloc),r=u,n=_.olmmachine_queryKeysForUsers(this.__wbg_ptr,t,r);if(n[2])throw q(n[1]);return kt.__wrap(n[0])}getMissingSessions(e){const t=I(e,_.__wbindgen_malloc),r=u;return _.olmmachine_getMissingSessions(this.__wbg_ptr,t,r)}getUserDevices(e,t){K(e,$r);return _.olmmachine_getUserDevices(this.__wbg_ptr,e.__wbg_ptr,!m(t),m(t)?0:t)}getDevice(e,t,r){K(e,$r),K(t,Ve);return _.olmmachine_getDevice(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,!m(r),m(r)?0:r)}getVerification(e,t){K(e,$r);const r=p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u,i=_.olmmachine_getVerification(this.__wbg_ptr,e.__wbg_ptr,r,n);if(i[2])throw q(i[1]);return q(i[0])}getVerificationRequest(e,t){K(e,$r);const r=p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u,i=_.olmmachine_getVerificationRequest(this.__wbg_ptr,e.__wbg_ptr,r,n);return 0===i?void 0:e_.__wrap(i)}getVerificationRequests(e){K(e,$r);return _.olmmachine_getVerificationRequests(this.__wbg_ptr,e.__wbg_ptr)}receiveVerificationEvent(e,t){const r=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u;K(t,sr);const i=_.olmmachine_receiveVerificationEvent(this.__wbg_ptr,r,n,t.__wbg_ptr);if(i[2])throw q(i[1]);return q(i[0])}exportRoomKeys(e){return _.olmmachine_exportRoomKeys(this.__wbg_ptr,e)}importRoomKeys(e,t){const r=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u,i=_.olmmachine_importRoomKeys(this.__wbg_ptr,r,n,t);if(i[2])throw q(i[1]);return q(i[0])}importExportedRoomKeys(e,t){const r=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u,i=_.olmmachine_importExportedRoomKeys(this.__wbg_ptr,r,n,t);if(i[2])throw q(i[1]);return q(i[0])}importBackedUpRoomKeys(e,t,r){const n=p(r,_.__wbindgen_malloc,_.__wbindgen_realloc),i=u,s=_.olmmachine_importBackedUpRoomKeys(this.__wbg_ptr,e,m(t)?0:h(t),n,i);if(s[2])throw q(s[1]);return q(s[0])}saveBackupDecryptionKey(e,t){K(e,ee);const r=p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u;return _.olmmachine_saveBackupDecryptionKey(this.__wbg_ptr,e.__wbg_ptr,r,n)}getBackupKeys(){return _.olmmachine_getBackupKeys(this.__wbg_ptr)}verifyBackup(e){const t=_.olmmachine_verifyBackup(this.__wbg_ptr,e);if(t[2])throw q(t[1]);return q(t[0])}enableBackupV1(e,t){const r=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u,i=p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=u,o=_.olmmachine_enableBackupV1(this.__wbg_ptr,r,n,i,s);if(o[2])throw q(o[1]);return q(o[0])}isBackupEnabled(){return _.olmmachine_isBackupEnabled(this.__wbg_ptr)}disableBackup(){return _.olmmachine_disableBackup(this.__wbg_ptr)}backupRoomKeys(){return _.olmmachine_backupRoomKeys(this.__wbg_ptr)}roomKeyCounts(){return _.olmmachine_roomKeyCounts(this.__wbg_ptr)}static encryptExportedRoomKeys(e,t,r){let n,i;try{const g=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=u,a=p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),d=u,b=_.olmmachine_encryptExportedRoomKeys(g,c,a,d,r);var s=b[0],o=b[1];if(b[3])throw s=0,o=0,q(b[2]);return n=s,i=o,w(s,o)}finally{_.__wbindgen_free(n,i,1)}}static decryptExportedRoomKeys(e,t){let r,n;try{const o=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),g=u,c=p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),a=u,d=_.olmmachine_decryptExportedRoomKeys(o,g,c,a);var i=d[0],s=d[1];if(d[3])throw i=0,s=0,q(d[2]);return r=i,n=s,w(i,s)}finally{_.__wbindgen_free(r,n,1)}}registerRoomKeyUpdatedCallback(e){_.olmmachine_registerRoomKeyUpdatedCallback(this.__wbg_ptr,e)}registerRoomKeysWithheldCallback(e){_.olmmachine_registerRoomKeysWithheldCallback(this.__wbg_ptr,e)}registerUserIdentityUpdatedCallback(e){_.olmmachine_registerUserIdentityUpdatedCallback(this.__wbg_ptr,e)}registerDevicesUpdatedCallback(e){_.olmmachine_registerDevicesUpdatedCallback(this.__wbg_ptr,e)}registerReceiveSecretCallback(e){_.olmmachine_registerReceiveSecretCallback(this.__wbg_ptr,e)}getSecretsFromInbox(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;return _.olmmachine_getSecretsFromInbox(this.__wbg_ptr,t,r)}deleteSecretsFromInbox(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;return _.olmmachine_deleteSecretsFromInbox(this.__wbg_ptr,t,r)}requestMissingSecretsIfNeeded(){return _.olmmachine_requestMissingSecretsIfNeeded(this.__wbg_ptr)}getRoomSettings(e){K(e,sr);return _.olmmachine_getRoomSettings(this.__wbg_ptr,e.__wbg_ptr)}setRoomSettings(e,t){K(e,sr),K(t,hr);return _.olmmachine_setRoomSettings(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}dehydratedDevices(){const e=_.olmmachine_dehydratedDevices(this.__wbg_ptr);return je.__wrap(e)}buildRoomKeyBundle(e){K(e,sr);return _.olmmachine_buildRoomKeyBundle(this.__wbg_ptr,e.__wbg_ptr)}shareRoomKeyBundleData(e,t,r,n,i){K(e,$r),K(t,sr);const s=p(r,_.__wbindgen_malloc,_.__wbindgen_realloc),o=u;var g=m(n)?0:p(n,_.__wbindgen_malloc,_.__wbindgen_realloc),c=u;K(i,ue);var a=i.__destroy_into_raw();const w=_.olmmachine_shareRoomKeyBundleData(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,s,o,g,c,a);if(w[2])throw q(w[1]);return q(w[0])}getReceivedRoomKeyBundleData(e,t){K(e,sr),K(t,$r);return _.olmmachine_getReceivedRoomKeyBundleData(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}receiveRoomKeyBundle(e,t){K(e,xr);var r=e.__destroy_into_raw();const n=z(t,_.__wbindgen_malloc),i=u,s=_.olmmachine_receiveRoomKeyBundle(this.__wbg_ptr,r,n,i);if(s[2])throw q(s[1]);return q(s[0])}close(){const e=this.__destroy_into_raw();_.olmmachine_close(e)}}const Dt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_otheruseridentity_free(e>>>0,1));class Vt{static __wrap(e){e>>>=0;const t=Object.create(Vt.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();_.__wbg_otheruseridentity_free(e,0)}isVerified(){return 0!==_.otheruseridentity_isVerified(this.__wbg_ptr)}verify(){return _.otheruseridentity_verify(this.__wbg_ptr)}requestVerification(e,t,r){K(e,sr),K(t,gt);var n=m(r)?0:I(r,_.__wbindgen_malloc),i=u;const s=_.otheruseridentity_requestVerification(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,n,i);if(s[2])throw q(s[1]);return e_.__wrap(s[0])}verificationRequestContent(e){let t,r;try{var n=m(e)?0:I(e,_.__wbindgen_malloc),i=u;const g=_.otheruseridentity_verificationRequestContent(this.__wbg_ptr,n,i);var s=g[0],o=g[1];if(g[3])throw s=0,o=0,q(g[2]);return t=s,r=o,w(s,o)}finally{_.__wbindgen_free(t,r,1)}}get masterKey(){let e,t;try{const i=_.otheruseridentity_masterKey(this.__wbg_ptr);var r=i[0],n=i[1];if(i[3])throw r=0,n=0,q(i[2]);return e=r,t=n,w(r,n)}finally{_.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const i=_.otheruseridentity_selfSigningKey(this.__wbg_ptr);var r=i[0],n=i[1];if(i[3])throw r=0,n=0,q(i[2]);return e=r,t=n,w(r,n)}finally{_.__wbindgen_free(e,t,1)}}pinCurrentMasterKey(){return _.otheruseridentity_pinCurrentMasterKey(this.__wbg_ptr)}identityNeedsUserApproval(){return 0!==_.otheruseridentity_identityNeedsUserApproval(this.__wbg_ptr)}wasPreviouslyVerified(){return 0!==_.otheruseridentity_wasPreviouslyVerified(this.__wbg_ptr)}withdrawVerification(){return _.otheruseridentity_withdrawVerification(this.__wbg_ptr)}hasVerificationViolation(){return 0!==_.otheruseridentity_hasVerificationViolation(this.__wbg_ptr)}}const Et="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_outboundcreationresult_free(e>>>0,1));class xt{static __wrap(e){e>>>=0;const t=Object.create(xt.prototype);return t.__wbg_ptr=e,Et.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Et.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_outboundcreationresult_free(e,0)}get channel(){const e=_.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return st.__wrap(e)}set channel(e){K(e,st);var t=e.__destroy_into_raw();_.__wbg_set_inboundcreationresult_channel(this.__wbg_ptr,t)}get initial_message(){let e,t;try{const r=_.__wbg_get_outboundcreationresult_initial_message(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set initial_message(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}}const Mt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_ownuseridentity_free(e>>>0,1));class Tt{static __wrap(e){e>>>=0;const t=Object.create(Tt.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();_.__wbg_ownuseridentity_free(e,0)}isVerified(){return 0!==_.ownuseridentity_isVerified(this.__wbg_ptr)}verify(){return _.ownuseridentity_verify(this.__wbg_ptr)}requestVerification(e){var t=m(e)?0:I(e,_.__wbindgen_malloc),r=u;const n=_.ownuseridentity_requestVerification(this.__wbg_ptr,t,r);if(n[2])throw q(n[1]);return q(n[0])}trustsOurOwnDevice(){return _.ownuseridentity_trustsOurOwnDevice(this.__wbg_ptr)}get masterKey(){let e,t;try{const i=_.ownuseridentity_masterKey(this.__wbg_ptr);var r=i[0],n=i[1];if(i[3])throw r=0,n=0,q(i[2]);return e=r,t=n,w(r,n)}finally{_.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const i=_.ownuseridentity_selfSigningKey(this.__wbg_ptr);var r=i[0],n=i[1];if(i[3])throw r=0,n=0,q(i[2]);return e=r,t=n,w(r,n)}finally{_.__wbindgen_free(e,t,1)}}get userSigningKey(){let e,t;try{const i=_.ownuseridentity_userSigningKey(this.__wbg_ptr);var r=i[0],n=i[1];if(i[3])throw r=0,n=0,q(i[2]);return e=r,t=n,w(r,n)}finally{_.__wbindgen_free(e,t,1)}}wasPreviouslyVerified(){return 0!==_.ownuseridentity_wasPreviouslyVerified(this.__wbg_ptr)}withdrawVerification(){return _.ownuseridentity_withdrawVerification(this.__wbg_ptr)}hasVerificationViolation(){return 0!==_.ownuseridentity_hasVerificationViolation(this.__wbg_ptr)}}const At="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_pickledinboundgroupsession_free(e>>>0,1));class Nt{static __unwrap(e){return e instanceof Nt?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,At.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_pickledinboundgroupsession_free(e,0)}get pickle(){let e,t;try{const r=_.__wbg_get_pickledinboundgroupsession_pickle(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set pickle(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}get senderKey(){let e,t;try{const r=_.__wbg_get_pickledinboundgroupsession_senderKey(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set senderKey(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,r)}get senderSigningKey(){const e=_.__wbg_get_pickledinboundgroupsession_senderSigningKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set senderSigningKey(e){var t=m(e)?0:p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_basemigrationdata_backupRecoveryKey(this.__wbg_ptr,t,r)}get roomId(){const e=_.__wbg_get_pickledinboundgroupsession_roomId(this.__wbg_ptr);return 0===e?void 0:sr.__wrap(e)}set roomId(e){let t=0;m(e)||(K(e,sr),t=e.__destroy_into_raw()),_.__wbg_set_pickledinboundgroupsession_roomId(this.__wbg_ptr,t)}get imported(){return 0!==_.__wbg_get_pickledinboundgroupsession_imported(this.__wbg_ptr)}set imported(e){_.__wbg_set_pickledinboundgroupsession_imported(this.__wbg_ptr,e)}get backedUp(){return 0!==_.__wbg_get_pickledinboundgroupsession_backedUp(this.__wbg_ptr)}set backedUp(e){_.__wbg_set_pickledinboundgroupsession_backedUp(this.__wbg_ptr,e)}constructor(){const e=_.pickledinboundgroupsession_new();return this.__wbg_ptr=e>>>0,At.register(this,this.__wbg_ptr,this),this}}const Pt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_pickledsession_free(e>>>0,1));class Jt{static __unwrap(e){return e instanceof Jt?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_pickledsession_free(e,0)}get pickle(){let e,t;try{const r=_.__wbg_get_pickledsession_pickle(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set pickle(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}get senderKey(){let e,t;try{const r=_.__wbg_get_pickledsession_senderKey(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set senderKey(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,r)}get createdUsingFallbackKey(){return 0!==_.__wbg_get_pickledsession_createdUsingFallbackKey(this.__wbg_ptr)}set createdUsingFallbackKey(e){_.__wbg_set_pickledsession_createdUsingFallbackKey(this.__wbg_ptr,e)}get creationTime(){return _.__wbg_get_pickledsession_creationTime(this.__wbg_ptr)}set creationTime(e){_.__wbg_set_pickledsession_creationTime(this.__wbg_ptr,e)}get lastUseTime(){return _.__wbg_get_pickledsession_lastUseTime(this.__wbg_ptr)}set lastUseTime(e){_.__wbg_set_pickledsession_lastUseTime(this.__wbg_ptr,e)}constructor(){const e=_.pickledsession_new();return this.__wbg_ptr=e>>>0,Pt.register(this,this.__wbg_ptr,this),this}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>_.__wbg_pkdecryption_free(e>>>0,1));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>_.__wbg_pkencryption_free(e>>>0,1));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>_.__wbg_pkmessage_free(e>>>0,1));const Lt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_plaintexttodeviceevent_free(e>>>0,1));class Qt{static __wrap(e){e>>>=0;const t=Object.create(Qt.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();_.__wbg_plaintexttodeviceevent_free(e,0)}get rawEvent(){return _.__wbg_get_plaintexttodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return _.plaintexttodeviceevent_type(this.__wbg_ptr)}}const Gt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_putdehydrateddevicerequest_free(e>>>0,1));class Wt{static __wrap(e){e>>>=0;const t=Object.create(Wt.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();_.__wbg_putdehydrateddevicerequest_free(e,0)}get body(){return _.__wbg_get_putdehydrateddevicerequest_body(this.__wbg_ptr)}constructor(e){const t=_.putdehydrateddevicerequest_new(e);return this.__wbg_ptr=t>>>0,Gt.register(this,this.__wbg_ptr,this),this}}const Yt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_qr_free(e>>>0,1));class Xt{static __wrap(e){e>>>=0;const t=Object.create(Xt.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();_.__wbg_qr_free(e,0)}state(){return _.qr_state(this.__wbg_ptr)}hasBeenScanned(){return 0!==_.qr_hasBeenScanned(this.__wbg_ptr)}hasBeenConfirmed(){return 0!==_.qr_hasBeenConfirmed(this.__wbg_ptr)}get userId(){const e=_.qr_userId(this.__wbg_ptr);return $r.__wrap(e)}get otherUserId(){const e=_.qr_otherUserId(this.__wbg_ptr);return $r.__wrap(e)}get otherDeviceId(){const e=_.qr_otherDeviceId(this.__wbg_ptr);return Ve.__wrap(e)}weStarted(){return 0!==_.qr_weStarted(this.__wbg_ptr)}cancelInfo(){const e=_.qr_cancelInfo(this.__wbg_ptr);return 0===e?void 0:ge.__wrap(e)}isDone(){return 0!==_.qr_isDone(this.__wbg_ptr)}isCancelled(){return 0!==_.qr_isCancelled(this.__wbg_ptr)}isSelfVerification(){return 0!==_.qr_isSelfVerification(this.__wbg_ptr)}reciprocated(){return 0!==_.qr_reciprocated(this.__wbg_ptr)}get flowId(){let e,t;try{const r=_.qr_flowId(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get roomId(){const e=_.qr_roomId(this.__wbg_ptr);return 0===e?void 0:sr.__wrap(e)}toQrCode(){const e=_.qr_toQrCode(this.__wbg_ptr);if(e[2])throw q(e[1]);return $t.__wrap(e[0])}toBytes(){const e=_.qr_toBytes(this.__wbg_ptr);if(e[2])throw q(e[1]);return q(e[0])}reciprocate(){const e=_.qr_reciprocate(this.__wbg_ptr);if(e[2])throw q(e[1]);return q(e[0])}confirmScanning(){const e=_.qr_confirmScanning(this.__wbg_ptr);if(e[2])throw q(e[1]);return q(e[0])}cancel(){const e=_.qr_cancel(this.__wbg_ptr);if(e[2])throw q(e[1]);return q(e[0])}cancelWithCode(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.qr_cancelWithCode(this.__wbg_ptr,t,r);if(n[2])throw q(n[1]);return q(n[0])}registerChangesCallback(e){_.qr_registerChangesCallback(this.__wbg_ptr,e)}}const Zt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_qrcode_free(e>>>0,1));class $t{static __wrap(e){e>>>=0;const t=Object.create($t.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();_.__wbg_qrcode_free(e,0)}renderIntoBuffer(){const e=_.qrcode_renderIntoBuffer(this.__wbg_ptr);if(e[2])throw q(e[1]);return q(e[0])}}const Ht="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_qrcodedata_free(e>>>0,1));class er{static __wrap(e){e>>>=0;const t=Object.create(er.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();_.__wbg_qrcodedata_free(e,0)}constructor(e,t,r){K(e,me);var n=e.__destroy_into_raw();const i=p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=u;var o=m(r)?0:p(r,_.__wbindgen_malloc,_.__wbindgen_realloc),g=u;const c=_.qrcodedata_new(n,i,s,o,g);if(c[2])throw q(c[1]);return this.__wbg_ptr=c[0]>>>0,Ht.register(this,this.__wbg_ptr,this),this}static fromBytes(e){const t=z(e,_.__wbindgen_malloc),r=u,n=_.qrcodedata_fromBytes(t,r);if(n[2])throw q(n[1]);return er.__wrap(n[0])}toBytes(){const e=_.qrcodedata_toBytes(this.__wbg_ptr);var t=v(e[0],e[1]).slice();return _.__wbindgen_free(e[0],1*e[1],1),t}static fromBase64(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.qrcodedata_fromBase64(t,r);if(n[2])throw q(n[1]);return er.__wrap(n[0])}toBase64(){let e,t;try{const r=_.qrcodedata_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get publicKey(){const e=_.qrcodedata_publicKey(this.__wbg_ptr);return me.__wrap(e)}get rendezvousUrl(){let e,t;try{const r=_.qrcodedata_rendezvousUrl(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get serverName(){const e=_.qrcodedata_serverName(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}get mode(){return _.qrcodedata_mode(this.__wbg_ptr)}}const tr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_qrcodescan_free(e>>>0,1));class rr{static __wrap(e){e>>>=0;const t=Object.create(rr.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();_.__wbg_qrcodescan_free(e,0)}static fromBytes(e){const t=_.qrcodescan_fromBytes(e);if(t[2])throw q(t[1]);return rr.__wrap(t[0])}}const _r="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_rehydrateddevice_free(e>>>0,1));class nr{static __wrap(e){e>>>=0;const t=Object.create(nr.prototype);return t.__wbg_ptr=e,_r.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_r.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_rehydrateddevice_free(e,0)}receiveEvents(e,t){const r=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u;let i=0;m(t)||(K(t,ze),i=t.__destroy_into_raw());return _.rehydrateddevice_receiveEvents(this.__wbg_ptr,r,n,i)}}const ir="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roomid_free(e>>>0,1));class sr{static __wrap(e){e>>>=0;const t=Object.create(sr.prototype);return t.__wbg_ptr=e,ir.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof sr?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ir.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_roomid_free(e,0)}constructor(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.roomid_new(t,r);if(n[2])throw q(n[1]);return this.__wbg_ptr=n[0]>>>0,ir.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const r=_.roomid_toString(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}const or="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roomkeycounts_free(e>>>0,1));class gr{static __wrap(e){e>>>=0;const t=Object.create(gr.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();_.__wbg_roomkeycounts_free(e,0)}get total(){return _.__wbg_get_roomkeycounts_total(this.__wbg_ptr)}set total(e){_.__wbg_set_roomkeycounts_total(this.__wbg_ptr,e)}get backedUp(){return _.__wbg_get_roomkeycounts_backedUp(this.__wbg_ptr)}set backedUp(e){_.__wbg_set_roomkeycounts_backedUp(this.__wbg_ptr,e)}}const cr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roomkeyimportresult_free(e>>>0,1));class ar{static __wrap(e){e>>>=0;const t=Object.create(ar.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();_.__wbg_roomkeyimportresult_free(e,0)}get importedCount(){return _.__wbg_get_roomkeyimportresult_importedCount(this.__wbg_ptr)>>>0}get totalCount(){return _.__wbg_get_roomkeyimportresult_totalCount(this.__wbg_ptr)>>>0}keys(){return _.roomkeyimportresult_keys(this.__wbg_ptr)}}const wr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roomkeyinfo_free(e>>>0,1));class ur{static __wrap(e){e>>>=0;const t=Object.create(ur.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();_.__wbg_roomkeyinfo_free(e,0)}get algorithm(){return _.roomkeyinfo_algorithm(this.__wbg_ptr)}get roomId(){const e=_.roomkeyinfo_roomId(this.__wbg_ptr);return sr.__wrap(e)}get senderKey(){const e=_.roomkeyinfo_senderKey(this.__wbg_ptr);return me.__wrap(e)}get sessionId(){let e,t;try{const r=_.roomkeyinfo_sessionId(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}const dr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roomkeywithheldinfo_free(e>>>0,1));class br{static __wrap(e){e>>>=0;const t=Object.create(br.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();_.__wbg_roomkeywithheldinfo_free(e,0)}get sender(){const e=_.roomkeywithheldinfo_sender(this.__wbg_ptr);return $r.__wrap(e)}get algorithm(){return _.roomkeywithheldinfo_algorithm(this.__wbg_ptr)}get withheldCode(){let e,t;try{const r=_.roomkeywithheldinfo_withheldCode(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get roomId(){const e=_.roomkeywithheldinfo_roomId(this.__wbg_ptr);return sr.__wrap(e)}get sessionId(){let e,t;try{const r=_.roomkeywithheldinfo_sessionId(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}const pr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roommessagerequest_free(e>>>0,1));class lr{static __wrap(e){e>>>=0;const t=Object.create(lr.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();_.__wbg_roommessagerequest_free(e,0)}get id(){return _.__wbg_get_roommessagerequest_id(this.__wbg_ptr)}get room_id(){return _.__wbg_get_roommessagerequest_room_id(this.__wbg_ptr)}get txn_id(){return _.__wbg_get_roommessagerequest_txn_id(this.__wbg_ptr)}get event_type(){return _.__wbg_get_roommessagerequest_event_type(this.__wbg_ptr)}get body(){return _.__wbg_get_roommessagerequest_body(this.__wbg_ptr)}constructor(e,t,r,n,i){const s=_.roommessagerequest_new(e,t,r,n,i);return this.__wbg_ptr=s>>>0,pr.register(this,this.__wbg_ptr,this),this}get type(){return _.roommessagerequest_type(this.__wbg_ptr)}}const yr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roomsettings_free(e>>>0,1));class hr{static __wrap(e){e>>>=0;const t=Object.create(hr.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();_.__wbg_roomsettings_free(e,0)}get algorithm(){return _.__wbg_get_roomsettings_algorithm(this.__wbg_ptr)}set algorithm(e){_.__wbg_set_roomsettings_algorithm(this.__wbg_ptr,e)}get encryptStateEvents(){return 0!==_.__wbg_get_roomsettings_encryptStateEvents(this.__wbg_ptr)}set encryptStateEvents(e){_.__wbg_set_roomsettings_encryptStateEvents(this.__wbg_ptr,e)}get onlyAllowTrustedDevices(){return 0!==_.__wbg_get_roomsettings_onlyAllowTrustedDevices(this.__wbg_ptr)}set onlyAllowTrustedDevices(e){_.__wbg_set_roomsettings_onlyAllowTrustedDevices(this.__wbg_ptr,e)}get sessionRotationPeriodMs(){const e=_.__wbg_get_roomsettings_sessionRotationPeriodMs(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set sessionRotationPeriodMs(e){_.__wbg_set_roomsettings_sessionRotationPeriodMs(this.__wbg_ptr,!m(e),m(e)?0:e)}get sessionRotationPeriodMessages(){const e=_.__wbg_get_roomsettings_sessionRotationPeriodMessages(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set sessionRotationPeriodMessages(e){_.__wbg_set_roomsettings_sessionRotationPeriodMessages(this.__wbg_ptr,!m(e),m(e)?0:e)}constructor(){const e=_.roomsettings_new();return this.__wbg_ptr=e>>>0,yr.register(this,this.__wbg_ptr,this),this}}const fr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_sas_free(e>>>0,1));class mr{static __wrap(e){e>>>=0;const t=Object.create(mr.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();_.__wbg_sas_free(e,0)}get userId(){const e=_.sas_userId(this.__wbg_ptr);return $r.__wrap(e)}get deviceId(){const e=_.sas_deviceId(this.__wbg_ptr);return Ve.__wrap(e)}get otherUserId(){const e=_.sas_otherUserId(this.__wbg_ptr);return $r.__wrap(e)}get otherDeviceId(){const e=_.sas_otherDeviceId(this.__wbg_ptr);return Ve.__wrap(e)}get flowId(){let e,t;try{const r=_.sas_flowId(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get roomId(){const e=_.sas_roomId(this.__wbg_ptr);return 0===e?void 0:sr.__wrap(e)}supportsEmoji(){return 0!==_.sas_supportsEmoji(this.__wbg_ptr)}startedFromRequest(){return 0!==_.sas_startedFromRequest(this.__wbg_ptr)}isSelfVerification(){return 0!==_.sas_isSelfVerification(this.__wbg_ptr)}haveWeConfirmed(){return 0!==_.sas_haveWeConfirmed(this.__wbg_ptr)}hasBeenAccepted(){return 0!==_.sas_hasBeenAccepted(this.__wbg_ptr)}cancelInfo(){const e=_.sas_cancelInfo(this.__wbg_ptr);return 0===e?void 0:ge.__wrap(e)}weStarted(){return 0!==_.sas_weStarted(this.__wbg_ptr)}accept(){const e=_.sas_accept(this.__wbg_ptr);if(e[2])throw q(e[1]);return q(e[0])}confirm(){return _.sas_confirm(this.__wbg_ptr)}cancel(){const e=_.sas_cancel(this.__wbg_ptr);if(e[2])throw q(e[1]);return q(e[0])}cancelWithCode(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.sas_cancelWithCode(this.__wbg_ptr,t,r);if(n[2])throw q(n[1]);return q(n[0])}timedOut(){return 0!==_.sas_timedOut(this.__wbg_ptr)}canBePresented(){return 0!==_.sas_canBePresented(this.__wbg_ptr)}isDone(){return 0!==_.sas_isDone(this.__wbg_ptr)}isCancelled(){return 0!==_.sas_isCancelled(this.__wbg_ptr)}emoji(){const e=_.sas_emoji(this.__wbg_ptr);let t;return 0!==e[0]&&(t=C(e[0],e[1]).slice(),_.__wbindgen_free(e[0],4*e[1],4)),t}emojiIndex(){const e=_.sas_emojiIndex(this.__wbg_ptr);let t;return 0!==e[0]&&(t=v(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}decimals(){const e=_.sas_decimals(this.__wbg_ptr);let t;return 0!==e[0]&&(t=j(e[0],e[1]).slice(),_.__wbindgen_free(e[0],2*e[1],2)),t}registerChangesCallback(e){_.sas_registerChangesCallback(this.__wbg_ptr,e)}}const vr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_secretsbundle_free(e>>>0,1));class kr{static __wrap(e){e>>>=0;const t=Object.create(kr.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();_.__wbg_secretsbundle_free(e,0)}get masterKey(){let e,t;try{const r=_.secretsbundle_masterKey(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const r=_.secretsbundle_selfSigningKey(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get userSigningKey(){let e,t;try{const r=_.secretsbundle_userSigningKey(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get backupBundle(){const e=_.secretsbundle_backupBundle(this.__wbg_ptr);return 0===e?void 0:ne.__wrap(e)}to_json(){const e=_.secretsbundle_to_json(this.__wbg_ptr);if(e[2])throw q(e[1]);return q(e[0])}static from_json(e){const t=_.secretsbundle_from_json(e);if(t[2])throw q(t[1]);return kr.__wrap(t[0])}}const Rr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_servername_free(e>>>0,1));class Sr{static __wrap(e){e>>>=0;const t=Object.create(Sr.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();_.__wbg_servername_free(e,0)}constructor(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.servername_new(t,r);if(n[2])throw q(n[1]);return this.__wbg_ptr=n[0]>>>0,Rr.register(this,this.__wbg_ptr,this),this}get host(){let e,t;try{const r=_.servername_host(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get port(){const e=_.servername_port(this.__wbg_ptr);return 16777215===e?void 0:e}isIpLiteral(){return 0!==_.servername_isIpLiteral(this.__wbg_ptr)}}const Fr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_shieldstate_free(e>>>0,1));class zr{static __wrap(e){e>>>=0;const t=Object.create(zr.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();_.__wbg_shieldstate_free(e,0)}get color(){return _.__wbg_get_shieldstate_color(this.__wbg_ptr)}set color(e){_.__wbg_set_shieldstate_color(this.__wbg_ptr,e)}get code(){const e=_.__wbg_get_shieldstate_code(this.__wbg_ptr);return 7===e?void 0:e}set code(e){_.__wbg_set_shieldstate_code(this.__wbg_ptr,m(e)?7:e)}get message(){const e=_.shieldstate_message(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}}const qr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_signature_free(e>>>0,1));class Kr{static __wrap(e){e>>>=0;const t=Object.create(Kr.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();_.__wbg_signature_free(e,0)}get ed25519(){const e=_.signature_ed25519(this.__wbg_ptr);return 0===e?void 0:Xe.__wrap(e)}toBase64(){let e,t;try{const r=_.signature_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}const Ir="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_signatureuploadrequest_free(e>>>0,1));class Cr{static __wrap(e){e>>>=0;const t=Object.create(Cr.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();_.__wbg_signatureuploadrequest_free(e,0)}get id(){return _.__wbg_get_signatureuploadrequest_id(this.__wbg_ptr)}get body(){return _.__wbg_get_signatureuploadrequest_body(this.__wbg_ptr)}constructor(e,t){const r=_.signatureuploadrequest_new(e,t);return this.__wbg_ptr=r>>>0,Ir.register(this,this.__wbg_ptr,this),this}get type(){return _.signatureuploadrequest_type(this.__wbg_ptr)}}const Or="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_signatureverification_free(e>>>0,1));class jr{static __wrap(e){e>>>=0;const t=Object.create(jr.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();_.__wbg_signatureverification_free(e,0)}get deviceState(){return _.signatureverification_deviceState(this.__wbg_ptr)}get userState(){return _.signatureverification_userState(this.__wbg_ptr)}trusted(){return 0!==_.signatureverification_trusted(this.__wbg_ptr)}}const Ur="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_signatures_free(e>>>0,1));class Br{static __wrap(e){e>>>=0;const t=Object.create(Br.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();_.__wbg_signatures_free(e,0)}constructor(){const e=_.signatures_new();return this.__wbg_ptr=e>>>0,Ur.register(this,this.__wbg_ptr,this),this}addSignature(e,t,r){K(e,$r),K(t,Ne),K(r,Xe);const n=_.signatures_addSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return 0===n?void 0:zt.__wrap(n)}getSignature(e,t){K(e,$r),K(t,Ne);const r=_.signatures_getSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr);return 0===r?void 0:Xe.__wrap(r)}get(e){K(e,$r);return _.signatures_get(this.__wbg_ptr,e.__wbg_ptr)}clear(){_.signatures_clear(this.__wbg_ptr)}isEmpty(){return 0!==_.signatures_isEmpty(this.__wbg_ptr)}get count(){return _.signatures_count(this.__wbg_ptr)>>>0}asJSON(){const e=_.signatures_asJSON(this.__wbg_ptr);if(e[2])throw q(e[1]);return q(e[0])}}const Dr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_storehandle_free(e>>>0,1));class Vr{static __wrap(e){e>>>=0;const t=Object.create(Vr.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();_.__wbg_storehandle_free(e,0)}static open(e,t,r){var n=m(e)?0:p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=u,s=m(t)?0:p(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=u;return _.storehandle_open(n,i,s,o,m(r)?0:h(r))}static openWithKey(e,t,r){const n=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=u,s=z(t,_.__wbindgen_malloc),o=u;return _.storehandle_openWithKey(n,i,s,o,m(r)?0:h(r))}}const Er="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_storedroomkeybundledata_free(e>>>0,1));class xr{static __wrap(e){e>>>=0;const t=Object.create(xr.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();_.__wbg_storedroomkeybundledata_free(e,0)}get senderUser(){const e=_.storedroomkeybundledata_senderUser(this.__wbg_ptr);return $r.__wrap(e)}get roomId(){const e=_.storedroomkeybundledata_roomId(this.__wbg_ptr);return sr.__wrap(e)}get url(){let e,t;try{const r=_.storedroomkeybundledata_url(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get encryptionInfo(){let e,t;try{const r=_.storedroomkeybundledata_encryptionInfo(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}const Mr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_todeviceencryptioninfo_free(e>>>0,1));class Tr{static __wrap(e){e>>>=0;const t=Object.create(Tr.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();_.__wbg_todeviceencryptioninfo_free(e,0)}get senderCurve25519Key(){let e,t;try{const r=_.__wbg_get_todeviceencryptioninfo_senderCurve25519Key(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set senderCurve25519Key(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u;_.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}get sender(){const e=_.__wbg_get_todeviceencryptioninfo_sender(this.__wbg_ptr);return $r.__wrap(e)}set sender(e){K(e,$r);var t=e.__destroy_into_raw();_.__wbg_set_todeviceencryptioninfo_sender(this.__wbg_ptr,t)}get senderDevice(){const e=_.__wbg_get_todeviceencryptioninfo_senderDevice(this.__wbg_ptr);return 0===e?void 0:Ve.__wrap(e)}set senderDevice(e){let t=0;m(e)||(K(e,Ve),t=e.__destroy_into_raw()),_.__wbg_set_todeviceencryptioninfo_senderDevice(this.__wbg_ptr,t)}isSenderVerified(){return 0!==_.todeviceencryptioninfo_isSenderVerified(this.__wbg_ptr)}}const Ar="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_todevicerequest_free(e>>>0,1));class Nr{static __wrap(e){e>>>=0;const t=Object.create(Nr.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();_.__wbg_todevicerequest_free(e,0)}get id(){return _.__wbg_get_todevicerequest_id(this.__wbg_ptr)}get event_type(){return _.__wbg_get_todevicerequest_event_type(this.__wbg_ptr)}get txn_id(){return _.__wbg_get_todevicerequest_txn_id(this.__wbg_ptr)}get body(){return _.__wbg_get_todevicerequest_body(this.__wbg_ptr)}constructor(e,t,r,n){const i=_.todevicerequest_new(e,t,r,n);return this.__wbg_ptr=i>>>0,Ar.register(this,this.__wbg_ptr,this),this}get type(){return _.todevicerequest_type(this.__wbg_ptr)}}const Pr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_todeviceunabletodecryptinfo_free(e>>>0,1));class Jr{static __wrap(e){e>>>=0;const t=Object.create(Jr.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();_.__wbg_todeviceunabletodecryptinfo_free(e,0)}get reason(){return _.__wbg_get_todeviceunabletodecryptinfo_reason(this.__wbg_ptr)}set reason(e){_.__wbg_set_todeviceunabletodecryptinfo_reason(this.__wbg_ptr,e)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry(e=>_.__wbg_tracing_free(e>>>0,1));const Lr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_utdtodeviceevent_free(e>>>0,1));class Qr{static __wrap(e){e>>>=0;const t=Object.create(Qr.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();_.__wbg_utdtodeviceevent_free(e,0)}get rawEvent(){return _.__wbg_get_utdtodeviceevent_rawEvent(this.__wbg_ptr)}get utdInfo(){const e=_.__wbg_get_utdtodeviceevent_utdInfo(this.__wbg_ptr);return Jr.__wrap(e)}get type(){return _.utdtodeviceevent_type(this.__wbg_ptr)}}const Gr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_uploadsigningkeysrequest_free(e>>>0,1));class Wr{static __wrap(e){e>>>=0;const t=Object.create(Wr.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();_.__wbg_uploadsigningkeysrequest_free(e,0)}get body(){return _.__wbg_get_uploadsigningkeysrequest_body(this.__wbg_ptr)}constructor(e){const t=_.uploadsigningkeysrequest_new(e);return this.__wbg_ptr=t>>>0,Gr.register(this,this.__wbg_ptr,this),this}}const Yr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_userdevices_free(e>>>0,1));class Xr{static __wrap(e){e>>>=0;const t=Object.create(Xr.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();_.__wbg_userdevices_free(e,0)}get(e){K(e,Ve);const t=_.userdevices_get(this.__wbg_ptr,e.__wbg_ptr);return 0===t?void 0:Be.__wrap(t)}isAnyVerified(){return 0!==_.userdevices_isAnyVerified(this.__wbg_ptr)}keys(){return _.userdevices_keys(this.__wbg_ptr)}devices(){return _.userdevices_devices(this.__wbg_ptr)}}const Zr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_userid_free(e>>>0,1));class $r{static __wrap(e){e>>>=0;const t=Object.create($r.prototype);return t.__wbg_ptr=e,Zr.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof $r?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Zr.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_userid_free(e,0)}constructor(e){const t=p(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=u,n=_.userid_new(t,r);if(n[2])throw q(n[1]);return this.__wbg_ptr=n[0]>>>0,Zr.register(this,this.__wbg_ptr,this),this}get localpart(){let e,t;try{const r=_.userid_localpart(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get serverName(){const e=_.userid_serverName(this.__wbg_ptr);return Sr.__wrap(e)}isHistorical(){return 0!==_.userid_isHistorical(this.__wbg_ptr)}toString(){let e,t;try{const r=_.userid_toString(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}clone(){const e=_.userid_clone(this.__wbg_ptr);return $r.__wrap(e)}}const Hr="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_verificationrequest_free(e>>>0,1));class e_{static __wrap(e){e>>>=0;const t=Object.create(e_.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();_.__wbg_verificationrequest_free(e,0)}static request(e,t,r,n){let i,s;try{K(e,$r),K(t,Ve),K(r,$r);var o=m(n)?0:I(n,_.__wbindgen_malloc),g=u;const d=_.verificationrequest_request(e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,o,g);var c=d[0],a=d[1];if(d[3])throw c=0,a=0,q(d[2]);return i=c,s=a,w(c,a)}finally{_.__wbindgen_free(i,s,1)}}get ownUserId(){const e=_.verificationrequest_ownUserId(this.__wbg_ptr);return $r.__wrap(e)}get otherUserId(){const e=_.verificationrequest_otherUserId(this.__wbg_ptr);return $r.__wrap(e)}get otherDeviceId(){const e=_.verificationrequest_otherDeviceId(this.__wbg_ptr);return 0===e?void 0:Ve.__wrap(e)}get roomId(){const e=_.verificationrequest_roomId(this.__wbg_ptr);return 0===e?void 0:sr.__wrap(e)}get cancelInfo(){const e=_.verificationrequest_cancelInfo(this.__wbg_ptr);return 0===e?void 0:ge.__wrap(e)}isPassive(){return 0!==_.verificationrequest_isPassive(this.__wbg_ptr)}isReady(){return 0!==_.verificationrequest_isReady(this.__wbg_ptr)}timedOut(){return 0!==_.verificationrequest_timedOut(this.__wbg_ptr)}timeRemainingMillis(){return _.verificationrequest_timeRemainingMillis(this.__wbg_ptr)}get theirSupportedMethods(){const e=_.verificationrequest_theirSupportedMethods(this.__wbg_ptr);if(e[3])throw q(e[2]);let t;return 0!==e[0]&&(t=C(e[0],e[1]).slice(),_.__wbindgen_free(e[0],4*e[1],4)),t}get ourSupportedMethods(){const e=_.verificationrequest_ourSupportedMethods(this.__wbg_ptr);if(e[3])throw q(e[2]);let t;return 0!==e[0]&&(t=C(e[0],e[1]).slice(),_.__wbindgen_free(e[0],4*e[1],4)),t}get flowId(){let e,t;try{const r=_.verificationrequest_flowId(this.__wbg_ptr);return e=r[0],t=r[1],w(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}isSelfVerification(){return 0!==_.verificationrequest_isSelfVerification(this.__wbg_ptr)}weStarted(){return 0!==_.verificationrequest_weStarted(this.__wbg_ptr)}isDone(){return 0!==_.verificationrequest_isDone(this.__wbg_ptr)}phase(){return _.verificationrequest_phase(this.__wbg_ptr)}getVerification(){return _.verificationrequest_getVerification(this.__wbg_ptr)}registerChangesCallback(e){_.verificationrequest_registerChangesCallback(this.__wbg_ptr,e)}isCancelled(){return 0!==_.verificationrequest_isCancelled(this.__wbg_ptr)}acceptWithMethods(e){const t=I(e,_.__wbindgen_malloc),r=u,n=_.verificationrequest_acceptWithMethods(this.__wbg_ptr,t,r);if(n[2])throw q(n[1]);return q(n[0])}accept(){const e=_.verificationrequest_accept(this.__wbg_ptr);if(e[2])throw q(e[1]);return q(e[0])}cancel(){const e=_.verificationrequest_cancel(this.__wbg_ptr);if(e[2])throw q(e[1]);return q(e[0])}startSas(){return _.verificationrequest_startSas(this.__wbg_ptr)}generateQrCode(){return _.verificationrequest_generateQrCode(this.__wbg_ptr)}scanQrCode(e){K(e,rr);return _.verificationrequest_scanQrCode(this.__wbg_ptr,e.__wbg_ptr)}}const t_="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_versions_free(e>>>0,1));class r_{static __wrap(e){e>>>=0;const t=Object.create(r_.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();_.__wbg_versions_free(e,0)}get vodozemac(){return _.__wbg_get_versions_vodozemac(this.__wbg_ptr)}get matrix_sdk_crypto(){return _.__wbg_get_versions_matrix_sdk_crypto(this.__wbg_ptr)}get git_sha(){return _.__wbg_get_versions_git_sha(this.__wbg_ptr)}get git_description(){return _.__wbg_get_versions_git_description(this.__wbg_ptr)}}function __(e,t){return Error(w(e,t))}function n_(e,t){const r=p(String(t),_.__wbindgen_malloc,_.__wbindgen_realloc),n=u;y().setInt32(e+4,n,!0),y().setInt32(e+0,r,!0)}function i_(e){return e.Window}function s_(e){return e.WorkerGlobalScope}function o_(){return f(function(e,t,r){return e.add(t,r)},arguments)}function g_(e,t){return e.add(t)}function c_(e,t){return e.at(t)}function a_(e){return re.__wrap(e)}function w_(){return f(function(e,t){return IDBKeyRange.bound(e,t)},arguments)}function u_(){return f(function(e,t,r,_){return IDBKeyRange.bound(e,t,0!==r,0!==_)},arguments)}function d_(e){return e.buffer}function b_(){return f(function(e,t,r,_){return e.call(t,r,_)},arguments)}function p_(){return f(function(e,t,r,_,n){return e.call(t,r,_,n)},arguments)}function l_(){return f(function(e,t,r){return e.call(t,r)},arguments)}function y_(){return f(function(e,t){return e.call(t)},arguments)}function h_(e){return clearTimeout(e)}function f_(){return f(function(e){return e.clear()},arguments)}function m_(e){e.close()}function v_(e){return e.code}function k_(){return f(function(e){e.continue()},arguments)}function R_(){return f(function(e){return e.count()},arguments)}function S_(){return f(function(e){return e.count()},arguments)}function F_(){return f(function(e,t,r,_){return e.createIndex(w(t,r),_)},arguments)}function z_(){return f(function(e,t,r,_,n){return e.createIndex(w(t,r),_,n)},arguments)}function q_(){return f(function(e,t,r){return e.createObjectStore(w(t,r))},arguments)}function K_(e){return be.__wrap(e)}function I_(e){return le.__wrap(e)}function C_(e){return he.__wrap(e)}function O_(e){return e.crypto}function j_(e){console.debug(e)}function U_(e,t){e.debug(t)}function B_(e){return ke.__wrap(e)}function D_(e){return Se.__wrap(e)}function V_(e){return Ke.__wrap(e)}function E_(e){return Ce.__wrap(e)}function x_(){return f(function(e,t,r){e.deleteObjectStore(w(t,r))},arguments)}function M_(){return f(function(e){return e.delete()},arguments)}function T_(){return f(function(e,t){return e.delete(t)},arguments)}function A_(e){return Be.__wrap(e)}function N_(e){return Ve.__wrap(e)}function P_(e){return xe.__wrap(e)}function J_(e){return Ne.__wrap(e)}function L_(e){return e.done}function Q_(e){return $e.__wrap(e)}function G_(e){return et.__wrap(e)}function W_(e){return rt.__wrap(e)}function Y_(e){return Object.entries(e)}function X_(e){return e.entries()}function Z_(e,t){e.error(t)}function $_(){return f(function(e){const t=e.error;return m(t)?0:h(t)},arguments)}function H_(e){console.error(e)}function en(e,t){let r,n;try{r=e,n=t,console.error(w(e,t))}finally{_.__wbindgen_free(r,n,1)}}function tn(e){return Array.from(e)}function rn(){return f(function(e){return e.getAllKeys()},arguments)}function _n(){return f(function(e){return e.getAll()},arguments)}function nn(){return f(function(e,t,r){return e.getAll(t,r>>>0)},arguments)}function sn(){return f(function(e,t){return e.getAll(t)},arguments)}function on(){return f(function(e,t){globalThis.crypto.getRandomValues(v(e,t))},arguments)}function gn(){return f(function(e,t){e.getRandomValues(t)},arguments)}function cn(e){return e.getTime()}function an(){return f(function(e,t){return Reflect.get(e,t)},arguments)}function wn(e,t){return e[t>>>0]}function un(){return f(function(e,t){return e.get(t)},arguments)}function dn(){return f(function(e,t){return e.get(t)},arguments)}function bn(e,t){return e[t]}function pn(e){return e.global}function ln(e){return bt.__wrap(e)}function yn(){return f(function(e,t,r){return e.index(w(t,r))},arguments)}function hn(){return f(function(e){const t=e.indexedDB;return m(t)?0:h(t)},arguments)}function fn(){return f(function(e){const t=e.indexedDB;return m(t)?0:h(t)},arguments)}function mn(){return f(function(e){const t=e.indexedDB;return m(t)?0:h(t)},arguments)}function vn(e){console.info(e)}function kn(e,t){e.info(t)}function Rn(e){let t;try{t=e instanceof ArrayBuffer}catch(e){t=!1}return t}function Sn(e){let t;try{t=e instanceof Map}catch(e){t=!1}return t}function Fn(e){let t;try{t=e instanceof Promise}catch(e){t=!1}return t}function zn(e){let t;try{t=e instanceof Uint8Array}catch(e){t=!1}return t}function qn(e){return lt.__wrap(e)}function Kn(e){return Array.isArray(e)}function In(e){return Array.isArray(e)}function Cn(e){return Number.isSafeInteger(e)}function On(e,t,r){const n=t.item(r>>>0);var i=m(n)?0:p(n,_.__wbindgen_malloc,_.__wbindgen_realloc),s=u;y().setInt32(e+4,s,!0),y().setInt32(e+0,i,!0)}function jn(){return Symbol.iterator}function Un(){return f(function(e){return e.key},arguments)}function Bn(e){return ht.__wrap(e)}function Dn(e){return mt.__wrap(e)}function Vn(e){return kt.__wrap(e)}function En(e){return St.__wrap(e)}function xn(e){return e.length}function Mn(e){return e.length}function Tn(e){return e.length}function An(){return f(function(e,t){return IDBKeyRange.lowerBound(e,0!==t)},arguments)}function Nn(e){return zt.__wrap(e)}function Pn(e){return Kt.__wrap(e)}function Jn(e,t){const r=p(t.message,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u;y().setInt32(e+4,n,!0),y().setInt32(e+0,r,!0)}function Ln(e){return e.msCrypto}function Qn(e,t){const r=p(t.name,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u;y().setInt32(e+4,n,!0),y().setInt32(e+0,r,!0)}function Gn(){return new Object}function Wn(){return new Array}function Yn(){return new Error}function Xn(e){return new Date(e)}function Zn(){return new Map}function $n(e){return new Uint8ClampedArray(e)}function Hn(e){return new Set(e)}function ei(e,t){try{var r={a:e,b:t};const n=new Promise((e,t)=>{const n=r.a;r.a=0;try{return function(e,t,r,n){_.closure451_externref_shim(e,t,r,n)}(n,r.b,e,t)}finally{r.a=n}});return n}finally{r.a=r.b=0}}function ti(e){return new Uint8Array(e)}function ri(e,t){return new Function(w(e,t))}function _i(e,t,r){return new Uint8ClampedArray(e,t>>>0,r>>>0)}function ni(e,t,r){return new Uint8Array(e,t>>>0,r>>>0)}function ii(e){return new Uint8Array(e>>>0)}function si(e){return new Uint8ClampedArray(e>>>0)}function oi(){return f(function(e,t){return new DOMException(w(e,t))},arguments)}function gi(e){return e.next}function ci(){return f(function(e){return e.next()},arguments)}function ai(e){return e.node}function wi(e){return e.now()}function ui(){return Date.now()}function di(e){return e.objectStoreNames}function bi(){return f(function(e,t,r){return e.objectStore(w(t,r))},arguments)}function pi(e){return e.oldVersion}function li(e){return Bt.__wrap(e)}function yi(){return f(function(e){return e.openCursor()},arguments)}function hi(){return f(function(e,t){return e.openCursor(t)},arguments)}function fi(){return f(function(e){return e.openCursor()},arguments)}function mi(){return f(function(e,t,r,_){return e.open(w(t,r),_>>>0)},arguments)}function vi(){return f(function(e,t,r){return e.open(w(t,r))},arguments)}function ki(e){return Vt.__wrap(e)}function Ri(e){return Tt.__wrap(e)}function Si(){return f(function(e,t){return JSON.parse(w(e,t))},arguments)}function Fi(e){return e.performance}function zi(e){return Nt.__unwrap(e)}function qi(e){return Jt.__unwrap(e)}function Ki(e){return Qt.__wrap(e)}function Ii(e){return e.process}function Ci(e,t){return e.push(t)}function Oi(){return f(function(e,t,r){return e.put(t,r)},arguments)}function ji(e){return Wt.__wrap(e)}function Ui(e){return Xt.__wrap(e)}function Bi(e){queueMicrotask(e)}function Di(e){return e.queueMicrotask}function Vi(){return f(function(e,t){e.randomFillSync(t)},arguments)}function Ei(e){const t=e.readyState;return(Z.indexOf(t)+1||3)-1}function xi(e){return nr.__wrap(e)}function Mi(){return f(function(){return module.require},arguments)}function Ti(e){return Promise.resolve(e)}function Ai(){return f(function(e){return e.result},arguments)}function Ni(e){return sr.__unwrap(e)}function Pi(e){return gr.__wrap(e)}function Ji(e){return ar.__wrap(e)}function Li(e){return ur.__wrap(e)}function Qi(e){return br.__wrap(e)}function Gi(e){return lr.__wrap(e)}function Wi(e){return hr.__wrap(e)}function Yi(e){return mr.__wrap(e)}function Xi(e){return kr.__wrap(e)}function Zi(){return f(function(e,t){return setTimeout(e,t)},arguments)}function $i(e,t,r){e[t]=r}function Hi(e,t,r){e[t>>>0]=r}function es(e,t,r){return e.set(t,r)}function ts(e,t,r){e.set(t,r>>>0)}function rs(e,t,r){e.set(t,r>>>0)}function _s(e,t){e.onabort=t}function ns(e,t){e.onblocked=t}function is(e,t){e.oncomplete=t}function ss(e,t){e.onerror=t}function os(e,t){e.onerror=t}function gs(e,t){e.onsuccess=t}function cs(e,t){e.onupgradeneeded=t}function as(e,t){e.onversionchange=t}function ws(e,t){e.unique=0!==t}function us(e){return Br.__wrap(e)}function ds(e){return Cr.__wrap(e)}function bs(e){return jr.__wrap(e)}function ps(e,t){const r=p(t.stack,_.__wbindgen_malloc,_.__wbindgen_realloc),n=u;y().setInt32(e+4,n,!0),y().setInt32(e+0,r,!0)}function ls(){const e="undefined"==typeof global?null:global;return m(e)?0:h(e)}function ys(){const e="undefined"==typeof globalThis?null:globalThis;return m(e)?0:h(e)}function hs(){const e="undefined"==typeof self?null:self;return m(e)?0:h(e)}function fs(){const e="undefined"==typeof window?null:window;return m(e)?0:h(e)}function ms(e){return xr.__wrap(e)}function vs(e){return Vr.__wrap(e)}function ks(){return f(function(e){return JSON.stringify(e)},arguments)}function Rs(e,t,r){return e.subarray(t>>>0,r>>>0)}function Ss(e){const t=e.target;return m(t)?0:h(t)}function Fs(e,t,r){return e.then(t,r)}function zs(e,t){return e.then(t)}function qs(e){return Nr.__wrap(e)}function Ks(e){const t=e.transaction;return m(t)?0:h(t)}function Is(){return f(function(e,t,r,_){return e.transaction(w(t,r),$[_])},arguments)}function Cs(){return f(function(e,t,r){return e.transaction(t,$[r])},arguments)}function Os(){return f(function(e,t){return e.update(t)},arguments)}function js(e){return Xr.__wrap(e)}function Us(e){return $r.__wrap(e)}function Bs(e){return $r.__unwrap(e)}function Ds(e){return Qr.__wrap(e)}function Vs(e){return e.value}function Es(){return f(function(e){return e.value},arguments)}function xs(e){return e.values()}function Ms(e){return e_.__wrap(e)}function Ts(e){return e.version}function As(e){return e.versions}function Ns(e,t){e.warn(t)}function Ps(e){console.warn(e)}function Js(){return[]}function Ls(e,t){e.push(t)}function Qs(e){return+e}function Gs(e){return e}function Ws(e){return BigInt.asUintN(64,e)}function Ys(e,t){const r="bigint"==typeof t?t:void 0;y().setBigInt64(e+8,m(r)?BigInt(0):r,!0),y().setInt32(e+0,!m(r),!0)}function Xs(e){return"boolean"==typeof e?e?1:0:2}function Zs(e){const t=e.original;if(1==t.cnt--)return t.a=0,!0;return!1}function $s(e,t,r){return R(e,t,40,B)}function Hs(e,t,r){return R(e,t,432,D)}function eo(e,t,r){return R(e,t,432,V)}function to(e,t,r){return S(e,t,437,E)}function ro(e,t,r){return S(e,t,437,x)}function _o(e,t){const r=p(F(t),_.__wbindgen_malloc,_.__wbindgen_realloc),n=u;y().setInt32(e+4,n,!0),y().setInt32(e+0,r,!0)}function no(e,t){return e in t}function io(){const e=_.__wbindgen_export_4,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}function so(e){return"bigint"==typeof e}function oo(e){return"function"==typeof e}function go(e){return null===e}function co(e){return"object"==typeof e&&null!==e}function ao(e){return"string"==typeof e}function wo(e){return void 0===e}function uo(e,t){return e===t}function bo(e,t){return e==t}function po(){return _.memory}function lo(e,t){const r="number"==typeof t?t:void 0;y().setFloat64(e+8,m(r)?0:r,!0),y().setInt32(e+0,!m(r),!0)}function yo(e){return e}function ho(e,t){const r="string"==typeof t?t:void 0;var n=m(r)?0:p(r,_.__wbindgen_malloc,_.__wbindgen_realloc),i=u;y().setInt32(e+4,i,!0),y().setInt32(e+0,n,!0)}function fo(e,t){return w(e,t)}function mo(e,t){throw new Error(w(e,t))}function vo(e){let t;try{t=+e}catch(e){t=e}return t}}}]);
|
|
//# sourceMappingURL=3380.js.map
|