element-web-synapse01pim.gr.jp

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

3380.js (131073B)


      1 "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}function i(e){const t=_.__externref_table_alloc();return _.__wbindgen_externrefs.set(t,e),t}function s(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}r.d(t,{$Pc:()=>ji,$Qm:()=>mn,$dL:()=>vi,$vK:()=>Nn,ALD:()=>E_,ALc:()=>vo,B$f:()=>Hn,B8C:()=>F_,BPQ:()=>En,BUb:()=>as,BVS:()=>Ur,BZT:()=>fr,CB9:()=>nn,CH:()=>J_,CM8:()=>gs,CvR:()=>Cr,CzU:()=>Ko,D2W:()=>to,DPI:()=>W_,DZT:()=>go,DkG:()=>M_,DwV:()=>wi,EE6:()=>io,EIk:()=>ms,ENy:()=>dr,EZX:()=>Ft,FDN:()=>gi,FK8:()=>G_,FOO:()=>Ms,Fff:()=>Ut,Fr6:()=>zn,Fww:()=>w_,Fxh:()=>zi,G4$:()=>qi,GC2:()=>Vn,GOL:()=>V_,GPN:()=>An,GQJ:()=>wn,GYR:()=>St,HEo:()=>C_,HmP:()=>hr,I0w:()=>ln,I7S:()=>ei,IOb:()=>B_,IXq:()=>Ws,IZ7:()=>ls,IcO:()=>Gi,JJE:()=>Fr,JvM:()=>er,JwN:()=>Mn,KGc:()=>Vo,KKU:()=>A_,KRM:()=>Qs,K_K:()=>Nt,Kj7:()=>Tr,KjZ:()=>l_,Ktp:()=>kn,KwY:()=>Ro,LHu:()=>oo,LRK:()=>gr,LnW:()=>Js,M$9:()=>m_,M7H:()=>ds,M7n:()=>yo,MA9:()=>eo,MdI:()=>vn,N2c:()=>Vs,NG4:()=>Us,NJs:()=>Ds,NL0:()=>Xs,Nhn:()=>ur,Nvi:()=>dn,O7q:()=>Is,O7y:()=>S_,OMe:()=>or,OUF:()=>P_,OlE:()=>h_,OsN:()=>Ti,Oyk:()=>b_,P$R:()=>mi,P0X:()=>Dn,P2w:()=>hs,P57:()=>Fi,PRo:()=>ss,PTT:()=>so,PXH:()=>hn,Q4$:()=>Z_,Q4Q:()=>Do,QU2:()=>us,Qbj:()=>_o,Qie:()=>ci,Qr:()=>zr,QuX:()=>Qn,QvV:()=>$r,Qw$:()=>bn,Qz4:()=>wo,RM9:()=>Rn,RUj:()=>Yi,Reh:()=>ks,Rg:()=>jo,Ri2:()=>si,Rjy:()=>pr,Rry:()=>lo,SG1:()=>Qt,Szp:()=>R_,TCc:()=>Nr,TO0:()=>uo,TqD:()=>Ni,Tut:()=>Ns,U3i:()=>Rr,UMe:()=>xr,UNv:()=>Rs,UPr:()=>_n,UR2:()=>$s,UUp:()=>fn,UX:()=>li,UeQ:()=>ui,Uro:()=>f_,Uxz:()=>Q_,VFM:()=>o_,Vbx:()=>v_,Vku:()=>Un,VvS:()=>s_,W8:()=>Hi,W9F:()=>br,WAA:()=>xn,WAr:()=>di,WYM:()=>Fn,XHH:()=>Xi,XPR:()=>In,XQk:()=>xs,Xdl:()=>oi,Xfo:()=>rn,Xik:()=>fi,XlD:()=>Zt,Xy3:()=>L_,Y3_:()=>Ss,YCs:()=>Ui,YFH:()=>Vt,YNz:()=>is,YOn:()=>Fo,Yg3:()=>Uo,Yg7:()=>cr,Yhh:()=>O_,YqZ:()=>pn,ZyG:()=>an,_BU:()=>es,_Hu:()=>bi,_Ms:()=>js,_rJ:()=>Mt,a2x:()=>Yn,a40:()=>fo,aok:()=>Oo,b$X:()=>On,b3V:()=>U_,bCf:()=>Hr,bLn:()=>Eo,brm:()=>_i,buy:()=>un,bxY:()=>on,c:()=>ii,c2f:()=>Qi,c4O:()=>As,c55:()=>ir,c7l:()=>yn,cF6:()=>y_,cGL:()=>yr,cHP:()=>$i,cSE:()=>p_,c_8:()=>Zn,c_x:()=>Vi,dFo:()=>qr,dGi:()=>k_,dGt:()=>ki,dNT:()=>Or,dh_:()=>jn,diL:()=>Mi,dil:()=>ao,dj4:()=>Zs,dnJ:()=>Cs,dpY:()=>ys,dt1:()=>Li,eO6:()=>_s,fLp:()=>Ys,fPF:()=>Dt,fQT:()=>zs,fSe:()=>x_,fem:()=>K_,gAt:()=>Ar,gCM:()=>q_,gPg:()=>mo,gPr:()=>Lr,gZc:()=>ts,ggh:()=>c_,gzX:()=>Ei,hSV:()=>H_,hVZ:()=>co,hcq:()=>bs,hfF:()=>Oi,hi9:()=>hi,hj_:()=>Wi,hlQ:()=>Fs,jIi:()=>u_,jrD:()=>Ki,jwX:()=>yi,kHI:()=>Ci,kI1:()=>Io,kUJ:()=>Bi,kVE:()=>Sn,kZZ:()=>n_,kbZ:()=>qs,kvw:()=>ni,kyd:()=>Xn,l3i:()=>xi,lIU:()=>n,lRJ:()=>Mr,lU$:()=>Pi,liC:()=>Xt,lz0:()=>ws,m8$:()=>fs,mEh:()=>vs,meD:()=>cs,mh9:()=>Ls,myJ:()=>Ri,nF9:()=>z_,nR4:()=>So,nTN:()=>X_,nXs:()=>$n,naH:()=>N_,nlc:()=>ti,nne:()=>zo,oX2:()=>Cn,oeX:()=>I_,ofp:()=>Bs,ojV:()=>Tn,p2A:()=>Wn,pII:()=>Co,pYi:()=>qo,poM:()=>Di,ppx:()=>T_,pqM:()=>ho,ptE:()=>bo,q$A:()=>Hs,q3S:()=>qn,qZg:()=>d_,qqN:()=>Ir,rQ4:()=>j_,rfA:()=>ko,rki:()=>Ln,rsD:()=>ro,rsq:()=>Ai,rts:()=>Pn,rvi:()=>ai,rzz:()=>Wr,sUf:()=>Es,sjH:()=>cn,t3N:()=>no,tZL:()=>Ii,tjd:()=>$_,typ:()=>Bn,uKQ:()=>Jn,u_L:()=>sr,uzE:()=>sn,v8T:()=>Ks,vzV:()=>pi,w3n:()=>tn,w9w:()=>Y_,wDP:()=>Os,wJu:()=>r_,wS8:()=>Zi,wX3:()=>gn,wXQ:()=>Ts,wmu:()=>Ps,wv$:()=>ns,x$X:()=>Gs,x2q:()=>os,xDF:()=>ri,xEx:()=>D_,xqv:()=>ht,xub:()=>Gn,y1:()=>Ht,yDd:()=>ps,yJO:()=>en,ylN:()=>po,yle:()=>Bo,z0n:()=>Si,zA6:()=>Ji,zK2:()=>Kn,zs2:()=>rs});const o="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));function g(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+=g(e[0]));for(let _=1;_<t;_++)r+=", "+g(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 c(e,t){e>>>=0;const r=u(),n=[];for(let i=e;i<e+4*t;i+=4)n.push(_.__wbindgen_externrefs.get(r.getUint32(i,!0)));return _.__externref_drop_slice(e,t),n}function a(e,t){return e>>>=0,function(){null!==d&&0!==d.byteLength||(d=new Uint16Array(_.memory.buffer));return d}().subarray(e/2,e/2+t)}function p(e,t){return e>>>=0,y().subarray(e/1,e/1+t)}let w=null;function u(){return(null===w||!0===w.buffer.detached||void 0===w.buffer.detached&&w.buffer!==_.memory.buffer)&&(w=new DataView(_.memory.buffer)),w}function b(e,t){return function(e,t){K+=t,K>=z&&(F=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),F.decode(),K=t);return F.decode(y().subarray(e,e+t))}(e>>>=0,t)}let d=null;let l=null;function y(){return null!==l&&0!==l.byteLength||(l=new Uint8Array(_.memory.buffer)),l}function h(e,t){try{return e.apply(this,t)}catch(e){const t=i(e);_.__wbindgen_exn_store(t)}}function f(e){return null==e}function m(e,t,r,_){const n={a:e,b:t,cnt:1,dtor:r},i=(...e)=>{n.cnt++;const t=n.a;n.a=0;try{return _(t,n.b,...e)}finally{n.a=t,i._wbg_cb_unref()}};return i._wbg_cb_unref=()=>{0===--n.cnt&&(n.dtor(n.a,n.b),n.a=0,o.unregister(n))},o.register(i,n,n),i}function v(e,t){const r=t(1*e.length,1)>>>0;return y().set(e,r/1),I=e.length,r}function S(e,t){const r=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){const _=i(e[t]);u().setUint32(r+4*t,_,!0)}return I=e.length,r}function k(e,t,r){if(void 0===r){const r=q.encode(e),_=t(r.length,1)>>>0;return y().subarray(_,_+r.length).set(r),I=r.length,_}let _=e.length,n=t(_,1)>>>0;const i=y();let s=0;for(;s<_;s++){const t=e.charCodeAt(s);if(t>127)break;i[n+s]=t}if(s!==_){0!==s&&(e=e.slice(s)),n=r(n,_,_=s+3*e.length,1)>>>0;const t=y().subarray(n+s,n+_);s+=q.encodeInto(e,t).written,n=r(n,_,s,1)>>>0}return I=s,n}function R(e){const t=_.__wbindgen_externrefs.get(e);return _.__externref_table_dealloc(e),t}let F=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});F.decode();const z=2146435072;let K=0;const q=new TextEncoder;"encodeInto"in q||(q.encodeInto=function(e,t){const r=q.encode(e);return t.set(r),{read:e.length,written:r.length}});let I=0;function C(e,t,r){_.wasm_bindgen__convert__closures_____invoke__h89fab44ead303aca(e,t,r)}function O(e,t){_.wasm_bindgen__convert__closures_____invoke__h22e674b566e32b64(e,t)}function j(e,t,r){const n=_.wasm_bindgen__convert__closures_____invoke__h35b0a77e54c2db90(e,t,r);if(n[1])throw R(n[0])}const U=["pending","done"],D=["readonly","readwrite","versionchange","readwriteflush","cleanup"],B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_attachment_free(e>>>0,1)),V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_backupdecryptionkey_free(e>>>0,1)),E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_backupkeys_free(e>>>0,1)),x="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_backupsecretsbundle_free(e>>>0,1)),M="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_base64encodedpkmessage_free(e>>>0,1)),T="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_basemigrationdata_free(e>>>0,1)),A="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_cancelinfo_free(e>>>0,1)),P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_checkcode_free(e>>>0,1)),N="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_collectstrategy_free(e>>>0,1)),Q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_crosssigningbootstraprequests_free(e>>>0,1)),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_crosssigningkeyexport_free(e>>>0,1)),J="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_crosssigningstatus_free(e>>>0,1)),W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_curve25519publickey_free(e>>>0,1)),G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_curve25519secretkey_free(e>>>0,1)),X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_decryptedroomevent_free(e>>>0,1)),$="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_decryptedtodeviceevent_free(e>>>0,1)),Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_decryptionsettings_free(e>>>0,1)),Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_dehydrateddevice_free(e>>>0,1)),H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_dehydrateddevicekey_free(e>>>0,1)),ee="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_dehydrateddevices_free(e>>>0,1)),te="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_device_free(e>>>0,1)),re="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_deviceid_free(e>>>0,1)),_e="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_devicekey_free(e>>>0,1)),ne="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_devicekeyalgorithm_free(e>>>0,1)),ie="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_devicekeyid_free(e>>>0,1)),se="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_devicelists_free(e>>>0,1)),oe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_ecies_free(e>>>0,1)),ge="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_ed25519publickey_free(e>>>0,1)),ce="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_ed25519signature_free(e>>>0,1)),ae="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_emoji_free(e>>>0,1)),pe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_encryptedattachment_free(e>>>0,1)),we="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_encryptioninfo_free(e>>>0,1)),ue="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_encryptionsettings_free(e>>>0,1)),be="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_establishedecies_free(e>>>0,1)),de="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_eventid_free(e>>>0,1)),le="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_identitykeys_free(e>>>0,1)),ye="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_inboundcreationresult_free(e>>>0,1)),he="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_inboundgroupsession_free(e>>>0,1)),fe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_invalidtodeviceevent_free(e>>>0,1)),me="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_keysbackuprequest_free(e>>>0,1)),ve="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_keysclaimrequest_free(e>>>0,1)),Se="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_keysqueryrequest_free(e>>>0,1)),ke="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_keysuploadrequest_free(e>>>0,1)),Re="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_maybesignature_free(e>>>0,1)),Fe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_megolmdecryptionerror_free(e>>>0,1)),ze="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_megolmv1backupkey_free(e>>>0,1)),Ke="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_migration_free(e>>>0,1)),qe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_olmmachine_free(e>>>0,1)),Ie="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_otheruseridentity_free(e>>>0,1)),Ce="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_outboundcreationresult_free(e>>>0,1)),Oe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_ownuseridentity_free(e>>>0,1)),je="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_pickledinboundgroupsession_free(e>>>0,1)),Ue="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_pickledsession_free(e>>>0,1)),De="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_pkdecryption_free(e>>>0,1)),Be="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_pkencryption_free(e>>>0,1)),Ve="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_pkmessage_free(e>>>0,1)),Ee="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_plaintexttodeviceevent_free(e>>>0,1)),xe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_putdehydrateddevicerequest_free(e>>>0,1)),Me="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_qr_free(e>>>0,1)),Te="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_qrcode_free(e>>>0,1)),Ae="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_qrcodedata_free(e>>>0,1)),Pe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_qrcodescan_free(e>>>0,1)),Ne="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_rehydrateddevice_free(e>>>0,1)),Qe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roomid_free(e>>>0,1)),Le="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roomkeycounts_free(e>>>0,1)),Je="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roomkeyimportresult_free(e>>>0,1)),We="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roomkeyinfo_free(e>>>0,1)),Ge="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roomkeywithheldinfo_free(e>>>0,1)),Xe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roommessagerequest_free(e>>>0,1)),$e="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_roomsettings_free(e>>>0,1)),Ze="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_sas_free(e>>>0,1)),Ye="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_secretsbundle_free(e>>>0,1)),He="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_servername_free(e>>>0,1)),et="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_shieldstate_free(e>>>0,1)),tt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_signature_free(e>>>0,1)),rt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_signatureuploadrequest_free(e>>>0,1)),_t="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_signatureverification_free(e>>>0,1)),nt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_signatures_free(e>>>0,1)),it="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_storehandle_free(e>>>0,1)),st="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_storedroomkeybundledata_free(e>>>0,1)),ot="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_todeviceencryptioninfo_free(e>>>0,1)),gt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_todevicerequest_free(e>>>0,1)),ct="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_todeviceunabletodecryptinfo_free(e>>>0,1)),at="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_tracing_free(e>>>0,1)),pt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_utdtodeviceevent_free(e>>>0,1)),wt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_uploadsigningkeysrequest_free(e>>>0,1)),ut="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_userdevices_free(e>>>0,1)),bt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_userid_free(e>>>0,1)),dt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_verificationrequest_free(e>>>0,1)),lt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>_.__wbg_versions_free(e>>>0,1));class yt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_attachment_free(e,0)}static decrypt(e){s(e,Gt);const t=_.attachment_decrypt(e.__wbg_ptr);if(t[3])throw R(t[2]);var r=p(t[0],t[1]).slice();return _.__wbindgen_free(t[0],1*t[1],1),r}static encrypt(e){const t=v(e,_.__wbindgen_malloc),r=I,n=_.attachment_encrypt(t,r);if(n[2])throw R(n[1]);return Gt.__wrap(n[0])}}Symbol.dispose&&(yt.prototype[Symbol.dispose]=yt.prototype.free);class ht{static __wrap(e){e>>>=0;const t=Object.create(ht.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_backupdecryptionkey_free(e,0)}decryptV1(e,t,r){let n,i;try{const g=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=I,a=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),p=I,w=k(r,_.__wbindgen_malloc,_.__wbindgen_realloc),u=I,d=_.backupdecryptionkey_decryptV1(this.__wbg_ptr,g,c,a,p,w,u);var s=d[0],o=d[1];if(d[3])throw s=0,o=0,R(d[2]);return n=s,i=o,b(s,o)}finally{_.__wbindgen_free(n,i,1)}}static fromBase64(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.backupdecryptionkey_fromBase64(t,r);if(n[2])throw R(n[1]);return ht.__wrap(n[0])}static createRandomKey(){const e=_.backupdecryptionkey_createRandomKey();return ht.__wrap(e)}get megolmV1PublicKey(){const e=_.backupdecryptionkey_megolmV1PublicKey(this.__wbg_ptr);return wr.__wrap(e)}toBase64(){return _.backupdecryptionkey_toBase64(this.__wbg_ptr)}}Symbol.dispose&&(ht.prototype[Symbol.dispose]=ht.prototype.free);class ft{static __wrap(e){e>>>=0;const t=Object.create(ft.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_backupkeys_free(e,0)}get decryptionKeyBase64(){return _.backupkeys_decryptionKeyBase64(this.__wbg_ptr)}get decryptionKey(){const e=_.__wbg_get_backupkeys_decryptionKey(this.__wbg_ptr);return 0===e?void 0:ht.__wrap(e)}set decryptionKey(e){let t=0;f(e)||(s(e,ht),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=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set backupVersion(e){var t=f(e)?0:k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__wbg_set_backupkeys_backupVersion(this.__wbg_ptr,t,r)}}Symbol.dispose&&(ft.prototype[Symbol.dispose]=ft.prototype.free);class mt{static __wrap(e){e>>>=0;const t=Object.create(mt.prototype);return t.__wbg_ptr=e,x.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,x.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set key(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set backup_version(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,r)}}Symbol.dispose&&(mt.prototype[Symbol.dispose]=mt.prototype.free);class vt{static __wrap(e){e>>>=0;const t=Object.create(vt.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_base64encodedpkmessage_free(e,0)}get ciphertext(){let e,t;try{const r=_.__wbg_get_base64encodedpkmessage_ciphertext(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set ciphertext(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}get mac(){let e,t;try{const r=_.__wbg_get_base64encodedpkmessage_mac(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set mac(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,r)}get ephemeralKey(){let e,t;try{const r=_.__wbg_get_base64encodedpkmessage_ephemeralKey(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set ephemeralKey(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__wbg_set_base64encodedpkmessage_ephemeralKey(this.__wbg_ptr,t,r)}constructor(e,t,r){const n=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=I,s=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=I,g=k(r,_.__wbindgen_malloc,_.__wbindgen_realloc),c=I,a=_.base64encodedpkmessage_new(n,i,s,o,g,c);return this.__wbg_ptr=a>>>0,M.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(vt.prototype[Symbol.dispose]=vt.prototype.free);class St{__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_basemigrationdata_free(e,0)}constructor(){const e=_.basemigrationdata_new();return this.__wbg_ptr=e>>>0,T.register(this,this.__wbg_ptr,this),this}get userId(){const e=_.__wbg_get_basemigrationdata_userId(this.__wbg_ptr);return 0===e?void 0:s_.__wrap(e)}set userId(e){let t=0;f(e)||(s(e,s_),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:Mt.__wrap(e)}set deviceId(e){let t=0;f(e)||(s(e,Mt),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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set pickledAccount(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__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=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set backupVersion(e){var t=f(e)?0:k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__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=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set backupRecoveryKey(e){var t=f(e)?0:k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__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=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set privateCrossSigningMasterKey(e){var t=f(e)?0:k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__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=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set privateCrossSigningSelfSigningKey(e){var t=f(e)?0:k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__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=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set privateCrossSigningUserSigningKey(e){var t=f(e)?0:k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__wbg_set_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr,t,r)}}Symbol.dispose&&(St.prototype[Symbol.dispose]=St.prototype.free);class kt{static __wrap(e){e>>>=0;const t=Object.create(kt.prototype);return t.__wbg_ptr=e,A.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_cancelinfo_free(e,0)}cancelCode(){let e,t;try{const r=_.cancelinfo_cancelCode(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}cancelledbyUs(){return 0!==_.cancelinfo_cancelledbyUs(this.__wbg_ptr)}reason(){return _.cancelinfo_reason(this.__wbg_ptr)}}Symbol.dispose&&(kt.prototype[Symbol.dispose]=kt.prototype.free);class Rt{static __wrap(e){e>>>=0;const t=Object.create(Rt.prototype);return t.__wbg_ptr=e,P.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.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=p(e[0],e[1]).slice();return _.__wbindgen_free(e[0],1*e[1],1),t}to_digit(){return _.checkcode_to_digit(this.__wbg_ptr)}}Symbol.dispose&&(Rt.prototype[Symbol.dispose]=Rt.prototype.free);class Ft{static __wrap(e){e>>>=0;const t=Object.create(Ft.prototype);return t.__wbg_ptr=e,N.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,N.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_collectstrategy_free(e,0)}static allDevices(){const e=_.collectstrategy_allDevices();return Ft.__wrap(e)}static onlyTrustedDevices(){const e=_.collectstrategy_onlyTrustedDevices();return Ft.__wrap(e)}static deviceBasedStrategy(e,t){const r=_.collectstrategy_deviceBasedStrategy(e,t);return Ft.__wrap(r)}static identityBasedStrategy(){const e=_.collectstrategy_identityBasedStrategy();return Ft.__wrap(e)}eq(e){s(e,Ft);return 0!==_.collectstrategy_eq(this.__wbg_ptr,e.__wbg_ptr)}static errorOnUnverifiedUserProblem(){const e=_.collectstrategy_errorOnUnverifiedUserProblem();return Ft.__wrap(e)}}Symbol.dispose&&(Ft.prototype[Symbol.dispose]=Ft.prototype.free);class zt{static __wrap(e){e>>>=0;const t=Object.create(zt.prototype);return t.__wbg_ptr=e,Q.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Q.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 n_.__wrap(e)}get uploadSignaturesRequest(){const e=_.__wbg_get_crosssigningbootstraprequests_uploadSignaturesRequest(this.__wbg_ptr);return Wr.__wrap(e)}}Symbol.dispose&&(zt.prototype[Symbol.dispose]=zt.prototype.free);class Kt{static __wrap(e){e>>>=0;const t=Object.create(Kt.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.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=b(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=b(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=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}}Symbol.dispose&&(Kt.prototype[Symbol.dispose]=Kt.prototype.free);class qt{static __wrap(e){e>>>=0;const t=Object.create(qt.prototype);return t.__wbg_ptr=e,J.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,J.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)}}Symbol.dispose&&(qt.prototype[Symbol.dispose]=qt.prototype.free);class It{static __wrap(e){e>>>=0;const t=Object.create(It.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_curve25519publickey_free(e,0)}constructor(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.curve25519publickey_new(t,r);if(n[2])throw R(n[1]);return this.__wbg_ptr=n[0]>>>0,W.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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(It.prototype[Symbol.dispose]=It.prototype.free);class Ct{static __wrap(e){e>>>=0;const t=Object.create(Ct.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_curve25519secretkey_free(e,0)}static fromUint8Array(e){const t=v(e,_.__wbindgen_malloc),r=I,n=_.curve25519secretkey_fromUint8Array(t,r);if(n[2])throw R(n[1]);return Ct.__wrap(n[0])}static fromBase64(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.curve25519secretkey_fromBase64(t,r);if(n[2])throw R(n[1]);return Ct.__wrap(n[0])}static new(){const e=_.curve25519secretkey_new();return Ct.__wrap(e)}toUint8Array(){const e=_.curve25519secretkey_toUint8Array(this.__wbg_ptr);var t=p(e[0],e[1]).slice();return _.__wbindgen_free(e[0],1*e[1],1),t}toBase64(){let e,t;try{const r=_.curve25519secretkey_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Ct.prototype[Symbol.dispose]=Ct.prototype.free);class Ot{static __wrap(e){e>>>=0;const t=Object.create(Ot.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_decryptedroomevent_free(e,0)}shieldState(e){const t=_.decryptedroomevent_shieldState(this.__wbg_ptr,e);return Qr.__wrap(t)}get senderDevice(){const e=_.decryptedroomevent_senderDevice(this.__wbg_ptr);return 0===e?void 0:Mt.__wrap(e)}get forwarderDevice(){const e=_.decryptedroomevent_forwarderDevice(this.__wbg_ptr);return 0===e?void 0:Mt.__wrap(e)}get senderCurve25519Key(){let e,t;try{const r=_.decryptedroomevent_senderCurve25519Key(this.__wbg_ptr);return e=r[0],t=r[1],b(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)}get sender(){const e=_.decryptedroomevent_sender(this.__wbg_ptr);return s_.__wrap(e)}get forwarder(){const e=_.decryptedroomevent_forwarder(this.__wbg_ptr);return 0===e?void 0:s_.__wrap(e)}get event(){return _.__wbg_get_decryptedroomevent_event(this.__wbg_ptr)}}Symbol.dispose&&(Ot.prototype[Symbol.dispose]=Ot.prototype.free);class jt{static __wrap(e){e>>>=0;const t=Object.create(jt.prototype);return t.__wbg_ptr=e,$.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$.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 Yr.__wrap(e)}get type(){return _.decryptedtodeviceevent_type(this.__wbg_ptr)}}Symbol.dispose&&(jt.prototype[Symbol.dispose]=jt.prototype.free);const Ut=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"});class Dt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_decryptionsettings_free(e,0)}constructor(e){const t=_.decryptionsettings_new(e);return this.__wbg_ptr=t>>>0,Z.register(this,this.__wbg_ptr,this),this}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)}}Symbol.dispose&&(Dt.prototype[Symbol.dispose]=Dt.prototype.free);class Bt{static __wrap(e){e>>>=0;const t=Object.create(Bt.prototype);return t.__wbg_ptr=e,Y.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_dehydrateddevice_free(e,0)}keysForUpload(e,t){s(t,Vt);return _.dehydrateddevice_keysForUpload(this.__wbg_ptr,e,t.__wbg_ptr)}}Symbol.dispose&&(Bt.prototype[Symbol.dispose]=Bt.prototype.free);class Vt{static __wrap(e){e>>>=0;const t=Object.create(Vt.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_dehydrateddevicekey_free(e,0)}static createRandomKey(){const e=_.dehydrateddevicekey_createRandomKey();if(e[2])throw R(e[1]);return Vt.__wrap(e[0])}static createKeyFromArray(e){const t=_.dehydrateddevicekey_createKeyFromArray(e);if(t[2])throw R(t[1]);return Vt.__wrap(t[0])}toBase64(){return _.dehydrateddevicekey_toBase64(this.__wbg_ptr)}}Symbol.dispose&&(Vt.prototype[Symbol.dispose]=Vt.prototype.free);class Et{static __wrap(e){e>>>=0;const t=Object.create(Et.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_dehydrateddevices_free(e,0)}getDehydratedDeviceKey(){return _.dehydrateddevices_getDehydratedDeviceKey(this.__wbg_ptr)}saveDehydratedDeviceKey(e){s(e,Vt);return _.dehydrateddevices_saveDehydratedDeviceKey(this.__wbg_ptr,e.__wbg_ptr)}deleteDehydratedDeviceKey(){return _.dehydrateddevices_deleteDehydratedDeviceKey(this.__wbg_ptr)}create(){return _.dehydrateddevices_create(this.__wbg_ptr)}rehydrate(e,t,r){s(e,Vt),s(t,Mt);const n=k(r,_.__wbindgen_malloc,_.__wbindgen_realloc),i=I;return _.dehydrateddevices_rehydrate(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,n,i)}}Symbol.dispose&&(Et.prototype[Symbol.dispose]=Et.prototype.free);class xt{static __wrap(e){e>>>=0;const t=Object.create(xt.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_device_free(e,0)}get algorithms(){return _.device_algorithms(this.__wbg_ptr)}isDeleted(){return 0!==_.device_isDeleted(this.__wbg_ptr)}get signatures(){const e=_.device_signatures(this.__wbg_ptr);return Xr.__wrap(e)}get ed25519Key(){const e=_.device_ed25519Key(this.__wbg_ptr);return 0===e?void 0:Lt.__wrap(e)}isVerified(){return 0!==_.device_isVerified(this.__wbg_ptr)}get displayName(){const e=_.device_displayName(this.__wbg_ptr);let t;return 0!==e[0]&&(t=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}get isDehydrated(){return 0!==_.device_isDehydrated(this.__wbg_ptr)}get curve25519Key(){const e=_.device_curve25519Key(this.__wbg_ptr);return 0===e?void 0:It.__wrap(e)}isBlacklisted(){return 0!==_.device_isBlacklisted(this.__wbg_ptr)}firstTimeSeen(){const e=_.device_firstTimeSeen(this.__wbg_ptr);return BigInt.asUintN(64,e)}setLocalTrust(e){return _.device_setLocalTrust(this.__wbg_ptr,e)}get localTrustState(){return _.device_localTrustState(this.__wbg_ptr)}isLocallyTrusted(){return 0!==_.device_isLocallyTrusted(this.__wbg_ptr)}requestVerification(e){var t=f(e)?0:S(e,_.__wbindgen_malloc),r=I;const n=_.device_requestVerification(this.__wbg_ptr,t,r);if(n[2])throw R(n[1]);return R(n[0])}encryptToDeviceEvent(e,t,r){const n=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=I;let o=0;f(r)||(s(r,Ft),o=r.__destroy_into_raw());return _.device_encryptToDeviceEvent(this.__wbg_ptr,n,i,t,o)}isCrossSignedByOwner(){return 0!==_.device_isCrossSignedByOwner(this.__wbg_ptr)}isCrossSigningTrusted(){return 0!==_.device_isCrossSigningTrusted(this.__wbg_ptr)}get keys(){return _.device_keys(this.__wbg_ptr)}verify(){return _.device_verify(this.__wbg_ptr)}getKey(e){const t=_.device_getKey(this.__wbg_ptr,e);if(t[2])throw R(t[1]);return 0===t[0]?void 0:Tt.__wrap(t[0])}get userId(){const e=_.device_userId(this.__wbg_ptr);return s_.__wrap(e)}get deviceId(){const e=_.device_deviceId(this.__wbg_ptr);return Mt.__wrap(e)}}Symbol.dispose&&(xt.prototype[Symbol.dispose]=xt.prototype.free);class Mt{static __wrap(e){e>>>=0;const t=Object.create(Mt.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_deviceid_free(e,0)}constructor(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.deviceid_new(t,r);return this.__wbg_ptr=n>>>0,re.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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Mt.prototype[Symbol.dispose]=Mt.prototype.free);class Tt{static __wrap(e){e>>>=0;const t=Object.create(Tt.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_devicekey_free(e,0)}get curve25519(){const e=_.devicekey_curve25519(this.__wbg_ptr);return 0===e?void 0:It.__wrap(e)}get name(){return _.devicekey_name(this.__wbg_ptr)}get ed25519(){const e=_.devicekey_ed25519(this.__wbg_ptr);return 0===e?void 0:Lt.__wrap(e)}get unknown(){const e=_.devicekey_unknown(this.__wbg_ptr);let t;return 0!==e[0]&&(t=b(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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Tt.prototype[Symbol.dispose]=Tt.prototype.free);class At{static __wrap(e){e>>>=0;const t=Object.create(At.prototype);return t.__wbg_ptr=e,ne.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(At.prototype[Symbol.dispose]=At.prototype.free);Object.freeze({Ed25519:0,0:"Ed25519",Curve25519:1,1:"Curve25519",Unknown:3,3:"Unknown"});class Pt{static __wrap(e){e>>>=0;const t=Object.create(Pt.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_devicekeyid_free(e,0)}constructor(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.devicekeyid_new(t,r);if(n[2])throw R(n[1]);return this.__wbg_ptr=n[0]>>>0,ie.register(this,this.__wbg_ptr,this),this}get algorithm(){const e=_.devicekeyid_algorithm(this.__wbg_ptr);return At.__wrap(e)}get deviceId(){const e=_.devicekeyid_deviceId(this.__wbg_ptr);return Mt.__wrap(e)}toString(){let e,t;try{const r=_.devicekeyid_toString(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Pt.prototype[Symbol.dispose]=Pt.prototype.free);Object.freeze({Curve25519:0,0:"Curve25519",Ed25519:1,1:"Ed25519",Unknown:2,2:"Unknown"});class Nt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,se.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_devicelists_free(e,0)}constructor(e,t){var r=f(e)?0:S(e,_.__wbindgen_malloc),n=I,i=f(t)?0:S(t,_.__wbindgen_malloc),s=I;const o=_.devicelists_new(r,n,i,s);if(o[2])throw R(o[1]);return this.__wbg_ptr=o[0]>>>0,se.register(this,this.__wbg_ptr,this),this}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}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}isEmpty(){return 0!==_.devicelists_isEmpty(this.__wbg_ptr)}}Symbol.dispose&&(Nt.prototype[Symbol.dispose]=Nt.prototype.free);class Qt{__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_ecies_free(e,0)}public_key(){const e=_.ecies_public_key(this.__wbg_ptr);return It.__wrap(e)}establish_inbound_channel(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.ecies_establish_inbound_channel(this.__wbg_ptr,t,r);if(n[2])throw R(n[1]);return rr.__wrap(n[0])}establish_outbound_channel(e,t){s(e,It);const r=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I,i=_.ecies_establish_outbound_channel(this.__wbg_ptr,e.__wbg_ptr,r,n);if(i[2])throw R(i[1]);return lr.__wrap(i[0])}constructor(){const e=_.ecies_new();return this.__wbg_ptr=e>>>0,oe.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(Qt.prototype[Symbol.dispose]=Qt.prototype.free);class Lt{static __wrap(e){e>>>=0;const t=Object.create(Lt.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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Lt.prototype[Symbol.dispose]=Lt.prototype.free);class Jt{static __wrap(e){e>>>=0;const t=Object.create(Jt.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_ed25519signature_free(e,0)}constructor(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.ed25519signature_new(t,r);if(n[2])throw R(n[1]);return this.__wbg_ptr=n[0]>>>0,ce.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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Jt.prototype[Symbol.dispose]=Jt.prototype.free);class Wt{static __wrap(e){e>>>=0;const t=Object.create(Wt.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_emoji_free(e,0)}get description(){return _.emoji_description(this.__wbg_ptr)}get symbol(){return _.emoji_symbol(this.__wbg_ptr)}}Symbol.dispose&&(Wt.prototype[Symbol.dispose]=Wt.prototype.free);class Gt{static __wrap(e){e>>>=0;const t=Object.create(Gt.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_encryptedattachment_free(e,0)}get encryptedData(){const e=_.encryptedattachment_encryptedData(this.__wbg_ptr);var t=p(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=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}get hasMediaEncryptionInfoBeenConsumed(){return 0!==_.encryptedattachment_hasMediaEncryptionInfoBeenConsumed(this.__wbg_ptr)}constructor(e,t){const r=v(e,_.__wbindgen_malloc),n=I,i=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=I,o=_.encryptedattachment_new(r,n,i,s);if(o[2])throw R(o[1]);return this.__wbg_ptr=o[0]>>>0,pe.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(Gt.prototype[Symbol.dispose]=Gt.prototype.free);const Xt=Object.freeze({OlmV1Curve25519AesSha2:0,0:"OlmV1Curve25519AesSha2",MegolmV1AesSha2:1,1:"MegolmV1AesSha2",Unknown:2,2:"Unknown"});class $t{static __wrap(e){e>>>=0;const t=Object.create($t.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_encryptioninfo_free(e,0)}shieldState(e){const t=_.encryptioninfo_shieldState(this.__wbg_ptr,e);return Qr.__wrap(t)}get sender(){const e=_.__wbg_get_encryptioninfo_sender(this.__wbg_ptr);return s_.__wrap(e)}set sender(e){s(e,s_);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:Mt.__wrap(e)}set senderDevice(e){let t=0;f(e)||(s(e,Mt),t=e.__destroy_into_raw()),_.__wbg_set_encryptioninfo_senderDevice(this.__wbg_ptr,t)}get forwarder(){const e=_.__wbg_get_encryptioninfo_forwarder(this.__wbg_ptr);return 0===e?void 0:s_.__wrap(e)}set forwarder(e){let t=0;f(e)||(s(e,s_),t=e.__destroy_into_raw()),_.__wbg_set_encryptioninfo_forwarder(this.__wbg_ptr,t)}get forwarderDevice(){const e=_.__wbg_get_encryptioninfo_forwarderDevice(this.__wbg_ptr);return 0===e?void 0:Mt.__wrap(e)}set forwarderDevice(e){let t=0;f(e)||(s(e,Mt),t=e.__destroy_into_raw()),_.__wbg_set_encryptioninfo_forwarderDevice(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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set senderCurve25519Key(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__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=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set senderClaimedEd25519Key(e){var t=f(e)?0:k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__wbg_set_basemigrationdata_backupVersion(this.__wbg_ptr,t,r)}}Symbol.dispose&&($t.prototype[Symbol.dispose]=$t.prototype.free);class Zt{__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_encryptionsettings_free(e,0)}constructor(){const e=_.encryptionsettings_new();return this.__wbg_ptr=e>>>0,ue.register(this,this.__wbg_ptr,this),this}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 Ft.__wrap(e)}set sharingStrategy(e){s(e,Ft);var t=e.__destroy_into_raw();_.__wbg_set_encryptionsettings_sharingStrategy(this.__wbg_ptr,t)}}Symbol.dispose&&(Zt.prototype[Symbol.dispose]=Zt.prototype.free);class Yt{static __wrap(e){e>>>=0;const t=Object.create(Yt.prototype);return t.__wbg_ptr=e,be.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,be.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_establishedecies_free(e,0)}check_code(){const e=_.establishedecies_check_code(this.__wbg_ptr);return Rt.__wrap(e)}public_key(){const e=_.establishedecies_public_key(this.__wbg_ptr);return It.__wrap(e)}decrypt(e){let t,r;try{const s=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),o=I,g=_.establishedecies_decrypt(this.__wbg_ptr,s,o);var n=g[0],i=g[1];if(g[3])throw n=0,i=0,R(g[2]);return t=n,r=i,b(n,i)}finally{_.__wbindgen_free(t,r,1)}}encrypt(e){let t,r;try{const n=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=I,s=_.establishedecies_encrypt(this.__wbg_ptr,n,i);return t=s[0],r=s[1],b(s[0],s[1])}finally{_.__wbindgen_free(t,r,1)}}}Symbol.dispose&&(Yt.prototype[Symbol.dispose]=Yt.prototype.free);class Ht{__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_eventid_free(e,0)}get serverName(){const e=_.eventid_serverName(this.__wbg_ptr);return 0===e?void 0:Pr.__wrap(e)}constructor(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.eventid_new(t,r);if(n[2])throw R(n[1]);return this.__wbg_ptr=n[0]>>>0,de.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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}toString(){let e,t;try{const r=_.eventid_toString(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Ht.prototype[Symbol.dispose]=Ht.prototype.free);const er=Object.freeze({Invited:0,0:"Invited",Joined:1,1:"Joined",Shared:2,2:"Shared",WorldReadable:3,3:"WorldReadable"});class tr{static __wrap(e){e>>>=0;const t=Object.create(tr.prototype);return t.__wbg_ptr=e,le.register(t,t.__wbg_ptr,t),t}__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_identitykeys_free(e,0)}get ed25519(){const e=_.__wbg_get_identitykeys_ed25519(this.__wbg_ptr);return Lt.__wrap(e)}set ed25519(e){s(e,Lt);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 It.__wrap(e)}set curve25519(e){s(e,It);var t=e.__destroy_into_raw();_.__wbg_set_identitykeys_curve25519(this.__wbg_ptr,t)}}Symbol.dispose&&(tr.prototype[Symbol.dispose]=tr.prototype.free);class rr{static __wrap(e){e>>>=0;const t=Object.create(rr.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_inboundcreationresult_free(e,0)}get channel(){const e=_.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return Yt.__wrap(e)}set channel(e){s(e,Yt);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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set message(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}}Symbol.dispose&&(rr.prototype[Symbol.dispose]=rr.prototype.free);class _r{static __wrap(e){e>>>=0;const t=Object.create(_r.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_inboundgroupsession_free(e,0)}get senderKey(){const e=_.inboundgroupsession_senderKey(this.__wbg_ptr);return It.__wrap(e)}get sessionId(){let e,t;try{const r=_.inboundgroupsession_sessionId(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}hasBeenImported(){return 0!==_.inboundgroupsession_hasBeenImported(this.__wbg_ptr)}get roomId(){const e=_.inboundgroupsession_roomId(this.__wbg_ptr);return Ur.__wrap(e)}}Symbol.dispose&&(_r.prototype[Symbol.dispose]=_r.prototype.free);class nr{static __wrap(e){e>>>=0;const t=Object.create(nr.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_invalidtodeviceevent_free(e,0)}get rawEvent(){return _.__wbg_get_invalidtodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return _.invalidtodeviceevent_type(this.__wbg_ptr)}}Symbol.dispose&&(nr.prototype[Symbol.dispose]=nr.prototype.free);class ir{static __wrap(e){e>>>=0;const t=Object.create(ir.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_keysbackuprequest_free(e,0)}get type(){return _.keysbackuprequest_type(this.__wbg_ptr)}constructor(e,t,r){const n=_.keysbackuprequest_new(e,t,r);return this.__wbg_ptr=n>>>0,me.register(this,this.__wbg_ptr,this),this}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)}}Symbol.dispose&&(ir.prototype[Symbol.dispose]=ir.prototype.free);class sr{static __wrap(e){e>>>=0;const t=Object.create(sr.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_keysclaimrequest_free(e,0)}get type(){return _.keysclaimrequest_type(this.__wbg_ptr)}constructor(e,t){const r=_.keysclaimrequest_new(e,t);return this.__wbg_ptr=r>>>0,ve.register(this,this.__wbg_ptr,this),this}get id(){return _.__wbg_get_keysclaimrequest_id(this.__wbg_ptr)}get body(){return _.__wbg_get_keysclaimrequest_body(this.__wbg_ptr)}}Symbol.dispose&&(sr.prototype[Symbol.dispose]=sr.prototype.free);class or{static __wrap(e){e>>>=0;const t=Object.create(or.prototype);return t.__wbg_ptr=e,Se.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Se.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_keysqueryrequest_free(e,0)}get type(){return _.keysqueryrequest_type(this.__wbg_ptr)}constructor(e,t){const r=_.keysqueryrequest_new(e,t);return this.__wbg_ptr=r>>>0,Se.register(this,this.__wbg_ptr,this),this}get id(){return _.__wbg_get_keysqueryrequest_id(this.__wbg_ptr)}get body(){return _.__wbg_get_keysqueryrequest_body(this.__wbg_ptr)}}Symbol.dispose&&(or.prototype[Symbol.dispose]=or.prototype.free);class gr{static __wrap(e){e>>>=0;const t=Object.create(gr.prototype);return t.__wbg_ptr=e,ke.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ke.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_keysuploadrequest_free(e,0)}get type(){return _.keysuploadrequest_type(this.__wbg_ptr)}constructor(e,t){const r=_.keysuploadrequest_new(e,t);return this.__wbg_ptr=r>>>0,ke.register(this,this.__wbg_ptr,this),this}get id(){return _.__wbg_get_keysuploadrequest_id(this.__wbg_ptr)}get body(){return _.__wbg_get_keysuploadrequest_body(this.__wbg_ptr)}}Symbol.dispose&&(gr.prototype[Symbol.dispose]=gr.prototype.free);const cr=Object.freeze({Verified:0,0:"Verified",BlackListed:1,1:"BlackListed",Ignored:2,2:"Ignored",Unset:3,3:"Unset"});Object.freeze({Trace:0,0:"Trace",Debug:1,1:"Debug",Info:2,2:"Info",Warn:3,3:"Warn",Error:4,4:"Error"});class ar{static __wrap(e){e>>>=0;const t=Object.create(ar.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_maybesignature_free(e,0)}isInvalid(){return 0!==_.maybesignature_isInvalid(this.__wbg_ptr)}get invalidSignatureSource(){const e=_.maybesignature_invalidSignatureSource(this.__wbg_ptr);let t;return 0!==e[0]&&(t=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}isValid(){return 0!==_.maybesignature_isValid(this.__wbg_ptr)}get signature(){const e=_.maybesignature_signature(this.__wbg_ptr);return 0===e?void 0:Jr.__wrap(e)}}Symbol.dispose&&(ar.prototype[Symbol.dispose]=ar.prototype.free);class pr{static __wrap(e){e>>>=0;const t=Object.create(pr.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_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 withheldCode(){const e=_.megolmdecryptionerror_withheldCode(this.__wbg_ptr);let t;return 0!==e[0]&&(t=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}get maybe_withheld(){const e=_.megolmdecryptionerror_maybe_withheld(this.__wbg_ptr);let t;return 0!==e[0]&&(t=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}static unable_to_decrypt(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.megolmdecryptionerror_unable_to_decrypt(t,r);return pr.__wrap(n)}}Symbol.dispose&&(pr.prototype[Symbol.dispose]=pr.prototype.free);class wr{static __wrap(e){e>>>=0;const t=Object.create(wr.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_megolmv1backupkey_free(e,0)}get publicKeyBase64(){return _.megolmv1backupkey_publicKeyBase64(this.__wbg_ptr)}get algorithm(){return _.megolmv1backupkey_algorithm(this.__wbg_ptr)}}Symbol.dispose&&(wr.prototype[Symbol.dispose]=wr.prototype.free);class ur{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ke.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_migration_free(e,0)}static migrateBaseData(e,t,r,n){s(e,St),s(r,$r);return _.migration_migrateBaseData(e.__wbg_ptr,t,r.__wbg_ptr,f(n)?0:i(n))}static migrateOlmSessions(e,t,r,n){const o=S(e,_.__wbindgen_malloc),g=I;s(r,$r);const c=_.migration_migrateOlmSessions(o,g,t,r.__wbg_ptr,f(n)?0:i(n));if(c[2])throw R(c[1]);return R(c[0])}static migrateMegolmSessions(e,t,r,n){const o=S(e,_.__wbindgen_malloc),g=I;s(r,$r);const c=_.migration_migrateMegolmSessions(o,g,t,r.__wbg_ptr,f(n)?0:i(n));if(c[2])throw R(c[1]);return R(c[0])}}Symbol.dispose&&(ur.prototype[Symbol.dispose]=ur.prototype.free);class br{static __wrap(e){e>>>=0;const t=Object.create(br.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_olmmachine_free(e,0)}getDevice(e,t,r){s(e,s_),s(t,Mt);return _.olmmachine_getDevice(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,!f(r),f(r)?0:r)}static initialize(e,t,r,n,o){s(e,s_),s(t,Mt);var g=f(r)?0:k(r,_.__wbindgen_malloc,_.__wbindgen_realloc),c=I,a=f(n)?0:k(n,_.__wbindgen_malloc,_.__wbindgen_realloc),p=I;return _.olmmachine_initialize(e.__wbg_ptr,t.__wbg_ptr,g,c,a,p,f(o)?0:i(o))}get displayName(){return _.olmmachine_displayName(this.__wbg_ptr)}getIdentity(e){s(e,s_);return _.olmmachine_getIdentity(this.__wbg_ptr,e.__wbg_ptr)}get identityKeys(){const e=_.olmmachine_identityKeys(this.__wbg_ptr);return tr.__wrap(e)}trackedUsers(){const e=_.olmmachine_trackedUsers(this.__wbg_ptr);if(e[2])throw R(e[1]);return R(e[0])}verifyBackup(e){const t=_.olmmachine_verifyBackup(this.__wbg_ptr,e);if(t[2])throw R(t[1]);return R(t[0])}disableBackup(){return _.olmmachine_disableBackup(this.__wbg_ptr)}shareRoomKey(e,t,r){s(e,Ur);const n=S(t,_.__wbindgen_malloc),i=I;s(r,Zt);return _.olmmachine_shareRoomKey(this.__wbg_ptr,e.__wbg_ptr,n,i,r.__wbg_ptr)}getBackupKeys(){return _.olmmachine_getBackupKeys(this.__wbg_ptr)}static initFromStore(e,t,r,n){s(e,s_),s(t,Mt),s(r,$r);return _.olmmachine_initFromStore(e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,f(n)?0:i(n))}roomKeyCounts(){return _.olmmachine_roomKeyCounts(this.__wbg_ptr)}backupRoomKeys(){return _.olmmachine_backupRoomKeys(this.__wbg_ptr)}enableBackupV1(e,t){const r=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I,i=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),s=I,o=_.olmmachine_enableBackupV1(this.__wbg_ptr,r,n,i,s);if(o[2])throw R(o[1]);return R(o[0])}exportRoomKeys(e){return _.olmmachine_exportRoomKeys(this.__wbg_ptr,e)}getUserDevices(e,t){s(e,s_);return _.olmmachine_getUserDevices(this.__wbg_ptr,e.__wbg_ptr,!f(t),f(t)?0:t)}getVerification(e,t){s(e,s_);const r=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I,i=_.olmmachine_getVerification(this.__wbg_ptr,e.__wbg_ptr,r,n);if(i[2])throw R(i[1]);return R(i[0])}importRoomKeys(e,t){const r=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I,i=_.olmmachine_importRoomKeys(this.__wbg_ptr,r,n,t);if(i[2])throw R(i[1]);return R(i[0])}getRoomSettings(e){s(e,Ur);return _.olmmachine_getRoomSettings(this.__wbg_ptr,e.__wbg_ptr)}isBackupEnabled(){return _.olmmachine_isBackupEnabled(this.__wbg_ptr)}outgoingRequests(){return _.olmmachine_outgoingRequests(this.__wbg_ptr)}setRoomSettings(e,t){s(e,Ur),s(t,Mr);return _.olmmachine_setRoomSettings(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}decryptRoomEvent(e,t,r){const n=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=I;s(t,Ur),s(r,Dt);const o=_.olmmachine_decryptRoomEvent(this.__wbg_ptr,n,i,t.__wbg_ptr,r.__wbg_ptr);if(o[2])throw R(o[1]);return R(o[0])}dehydratedDevices(){const e=_.olmmachine_dehydratedDevices(this.__wbg_ptr);return Et.__wrap(e)}encryptRoomEvent(e,t,r){s(e,Ur);const n=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),i=I,o=k(r,_.__wbindgen_malloc,_.__wbindgen_realloc),g=I,c=_.olmmachine_encryptRoomEvent(this.__wbg_ptr,e.__wbg_ptr,n,i,o,g);if(c[2])throw R(c[1]);return R(c[0])}encryptStateEvent(e,t,r,n){s(e,Ur);const i=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=I,g=k(r,_.__wbindgen_malloc,_.__wbindgen_realloc),c=I,a=k(n,_.__wbindgen_malloc,_.__wbindgen_realloc),p=I,w=_.olmmachine_encryptStateEvent(this.__wbg_ptr,e.__wbg_ptr,i,o,g,c,a,p);if(w[2])throw R(w[1]);return R(w[0])}crossSigningStatus(){return _.olmmachine_crossSigningStatus(this.__wbg_ptr)}getMissingSessions(e){const t=S(e,_.__wbindgen_malloc),r=I;return _.olmmachine_getMissingSessions(this.__wbg_ptr,t,r)}markRequestAsSent(e,t,r){const n=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=I,s=k(r,_.__wbindgen_malloc,_.__wbindgen_realloc),o=I,g=_.olmmachine_markRequestAsSent(this.__wbg_ptr,n,i,t,s,o);if(g[2])throw R(g[1]);return R(g[0])}queryKeysForUsers(e){const t=S(e,_.__wbindgen_malloc),r=I,n=_.olmmachine_queryKeysForUsers(this.__wbg_ptr,t,r);if(n[2])throw R(n[1]);return or.__wrap(n[0])}receiveSyncChanges(e,t,r,n,o){const g=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=I;s(t,Nt);let a=0;f(o)||(s(o,Dt),a=o.__destroy_into_raw());const p=_.olmmachine_receiveSyncChanges(this.__wbg_ptr,g,c,t.__wbg_ptr,r,f(n)?0:i(n),a);if(p[2])throw R(p[1]);return R(p[0])}updateTrackedUsers(e){const t=S(e,_.__wbindgen_malloc),r=I;return _.olmmachine_updateTrackedUsers(this.__wbg_ptr,t,r)}buildRoomKeyBundle(e){s(e,Ur);return _.olmmachine_buildRoomKeyBundle(this.__wbg_ptr,e.__wbg_ptr)}exportSecretsBundle(){return _.olmmachine_exportSecretsBundle(this.__wbg_ptr)}importSecretsBundle(e){s(e,Ar);var t=e.__destroy_into_raw();return _.olmmachine_importSecretsBundle(this.__wbg_ptr,t)}getSecretsFromInbox(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;return _.olmmachine_getSecretsFromInbox(this.__wbg_ptr,t,r)}bootstrapCrossSigning(e){return _.olmmachine_bootstrapCrossSigning(this.__wbg_ptr,e)}get deviceCreationTimeMs(){return _.olmmachine_deviceCreationTimeMs(this.__wbg_ptr)}receiveRoomKeyBundle(e,t){s(e,Zr);var r=e.__destroy_into_raw();const n=v(t,_.__wbindgen_malloc),i=I,o=_.olmmachine_receiveRoomKeyBundle(this.__wbg_ptr,r,n,i);if(o[2])throw R(o[1]);return R(o[0])}getVerificationRequest(e,t){s(e,s_);const r=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I,i=_.olmmachine_getVerificationRequest(this.__wbg_ptr,e.__wbg_ptr,r,n);return 0===i?void 0:g_.__wrap(i)}invalidateGroupSession(e){s(e,Ur);return _.olmmachine_invalidateGroupSession(this.__wbg_ptr,e.__wbg_ptr)}deleteSecretsFromInbox(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;return _.olmmachine_deleteSecretsFromInbox(this.__wbg_ptr,t,r)}exportCrossSigningKeys(){return _.olmmachine_exportCrossSigningKeys(this.__wbg_ptr)}getVerificationRequests(e){s(e,s_);return _.olmmachine_getVerificationRequests(this.__wbg_ptr,e.__wbg_ptr)}importCrossSigningKeys(e,t,r){var n=f(e)?0:k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),i=I,s=f(t)?0:k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=I,g=f(r)?0:k(r,_.__wbindgen_malloc,_.__wbindgen_realloc),c=I;return _.olmmachine_importCrossSigningKeys(this.__wbg_ptr,n,i,s,o,g,c)}importExportedRoomKeys(e,t){const r=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I,i=_.olmmachine_importExportedRoomKeys(this.__wbg_ptr,r,n,t);if(i[2])throw R(i[1]);return R(i[0])}static decryptExportedRoomKeys(e,t){let r,n;try{const o=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),g=I,c=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),a=I,p=_.olmmachine_decryptExportedRoomKeys(o,g,c,a);var i=p[0],s=p[1];if(p[3])throw i=0,s=0,R(p[2]);return r=i,n=s,b(i,s)}finally{_.__wbindgen_free(r,n,1)}}static encryptExportedRoomKeys(e,t,r){let n,i;try{const g=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),c=I,a=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),p=I,w=_.olmmachine_encryptExportedRoomKeys(g,c,a,p,r);var s=w[0],o=w[1];if(w[3])throw s=0,o=0,R(w[2]);return n=s,i=o,b(s,o)}finally{_.__wbindgen_free(n,i,1)}}importBackedUpRoomKeys(e,t,r){const n=k(r,_.__wbindgen_malloc,_.__wbindgen_realloc),s=I,o=_.olmmachine_importBackedUpRoomKeys(this.__wbg_ptr,e,f(t)?0:i(t),n,s);if(o[2])throw R(o[1]);return R(o[0])}receiveVerificationEvent(e,t){const r=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I;s(t,Ur);const i=_.olmmachine_receiveVerificationEvent(this.__wbg_ptr,r,n,t.__wbg_ptr);if(i[2])throw R(i[1]);return R(i[0])}saveBackupDecryptionKey(e,t){s(e,ht);const r=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I;return _.olmmachine_saveBackupDecryptionKey(this.__wbg_ptr,e.__wbg_ptr,r,n)}shareRoomKeyBundleData(e,t,r,n,i){s(e,s_),s(t,Ur);const o=k(r,_.__wbindgen_malloc,_.__wbindgen_realloc),g=I;var c=f(n)?0:k(n,_.__wbindgen_malloc,_.__wbindgen_realloc),a=I;s(i,Ft);var p=i.__destroy_into_raw();const w=_.olmmachine_shareRoomKeyBundleData(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,o,g,c,a,p);if(w[2])throw R(w[1]);return R(w[0])}get roomKeyRequestsEnabled(){return 0!==_.olmmachine_roomKeyRequestsEnabled(this.__wbg_ptr)}set roomKeyRequestsEnabled(e){_.olmmachine_set_roomKeyRequestsEnabled(this.__wbg_ptr,e)}getRoomEventEncryptionInfo(e,t){const r=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I;s(t,Ur);const i=_.olmmachine_getRoomEventEncryptionInfo(this.__wbg_ptr,r,n,t.__wbg_ptr);if(i[2])throw R(i[1]);return R(i[0])}get roomKeyForwardingEnabled(){return 0!==_.olmmachine_roomKeyForwardingEnabled(this.__wbg_ptr)}markAllTrackedUsersAsDirty(){return _.olmmachine_markAllTrackedUsersAsDirty(this.__wbg_ptr)}set roomKeyForwardingEnabled(e){_.olmmachine_set_roomKeyForwardingEnabled(this.__wbg_ptr,e)}registerReceiveSecretCallback(e){_.olmmachine_registerReceiveSecretCallback(this.__wbg_ptr,e)}getReceivedRoomKeyBundleData(e,t){s(e,Ur),s(t,s_);return _.olmmachine_getReceivedRoomKeyBundleData(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}registerDevicesUpdatedCallback(e){_.olmmachine_registerDevicesUpdatedCallback(this.__wbg_ptr,e)}requestMissingSecretsIfNeeded(){return _.olmmachine_requestMissingSecretsIfNeeded(this.__wbg_ptr)}registerRoomKeyUpdatedCallback(e){_.olmmachine_registerRoomKeyUpdatedCallback(this.__wbg_ptr,e)}registerRoomKeysWithheldCallback(e){_.olmmachine_registerRoomKeysWithheldCallback(this.__wbg_ptr,e)}registerUserIdentityUpdatedCallback(e){_.olmmachine_registerUserIdentityUpdatedCallback(this.__wbg_ptr,e)}constructor(){const e=_.olmmachine_new();if(e[2])throw R(e[1]);return this.__wbg_ptr=e[0]>>>0,qe.register(this,this.__wbg_ptr,this),this}sign(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;return _.olmmachine_sign(this.__wbg_ptr,t,r)}close(){const e=this.__destroy_into_raw();_.olmmachine_close(e)}get userId(){const e=_.olmmachine_userId(this.__wbg_ptr);return s_.__wrap(e)}get deviceId(){const e=_.olmmachine_deviceId(this.__wbg_ptr);return Mt.__wrap(e)}}Symbol.dispose&&(br.prototype[Symbol.dispose]=br.prototype.free);class dr{static __wrap(e){e>>>=0;const t=Object.create(dr.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_otheruseridentity_free(e,0)}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,R(i[2]);return e=r,t=n,b(r,n)}finally{_.__wbindgen_free(e,t,1)}}isVerified(){return 0!==_.otheruseridentity_isVerified(this.__wbg_ptr)}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,R(i[2]);return e=r,t=n,b(r,n)}finally{_.__wbindgen_free(e,t,1)}}requestVerification(e,t,r){s(e,Ur),s(t,Ht);var n=f(r)?0:S(r,_.__wbindgen_malloc),i=I;const o=_.otheruseridentity_requestVerification(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,n,i);if(o[2])throw R(o[1]);return g_.__wrap(o[0])}withdrawVerification(){return _.otheruseridentity_withdrawVerification(this.__wbg_ptr)}pinCurrentMasterKey(){return _.otheruseridentity_pinCurrentMasterKey(this.__wbg_ptr)}wasPreviouslyVerified(){return 0!==_.otheruseridentity_wasPreviouslyVerified(this.__wbg_ptr)}hasVerificationViolation(){return 0!==_.otheruseridentity_hasVerificationViolation(this.__wbg_ptr)}identityNeedsUserApproval(){return 0!==_.otheruseridentity_identityNeedsUserApproval(this.__wbg_ptr)}verificationRequestContent(e){let t,r;try{var n=f(e)?0:S(e,_.__wbindgen_malloc),i=I;const g=_.otheruseridentity_verificationRequestContent(this.__wbg_ptr,n,i);var s=g[0],o=g[1];if(g[3])throw s=0,o=0,R(g[2]);return t=s,r=o,b(s,o)}finally{_.__wbindgen_free(t,r,1)}}verify(){return _.otheruseridentity_verify(this.__wbg_ptr)}}Symbol.dispose&&(dr.prototype[Symbol.dispose]=dr.prototype.free);class lr{static __wrap(e){e>>>=0;const t=Object.create(lr.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_outboundcreationresult_free(e,0)}get channel(){const e=_.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return Yt.__wrap(e)}set channel(e){s(e,Yt);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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set initial_message(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}}Symbol.dispose&&(lr.prototype[Symbol.dispose]=lr.prototype.free);class yr{static __wrap(e){e>>>=0;const t=Object.create(yr.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_ownuseridentity_free(e,0)}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,R(i[2]);return e=r,t=n,b(r,n)}finally{_.__wbindgen_free(e,t,1)}}isVerified(){return 0!==_.ownuseridentity_isVerified(this.__wbg_ptr)}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,R(i[2]);return e=r,t=n,b(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,R(i[2]);return e=r,t=n,b(r,n)}finally{_.__wbindgen_free(e,t,1)}}requestVerification(e){var t=f(e)?0:S(e,_.__wbindgen_malloc),r=I;const n=_.ownuseridentity_requestVerification(this.__wbg_ptr,t,r);if(n[2])throw R(n[1]);return R(n[0])}trustsOurOwnDevice(){return _.ownuseridentity_trustsOurOwnDevice(this.__wbg_ptr)}withdrawVerification(){return _.ownuseridentity_withdrawVerification(this.__wbg_ptr)}wasPreviouslyVerified(){return 0!==_.ownuseridentity_wasPreviouslyVerified(this.__wbg_ptr)}hasVerificationViolation(){return 0!==_.ownuseridentity_hasVerificationViolation(this.__wbg_ptr)}verify(){return _.ownuseridentity_verify(this.__wbg_ptr)}}Symbol.dispose&&(yr.prototype[Symbol.dispose]=yr.prototype.free);class hr{static __unwrap(e){return e instanceof hr?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,je.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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set pickle(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set senderKey(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__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=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}set senderSigningKey(e){var t=f(e)?0:k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__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:Ur.__wrap(e)}set roomId(e){let t=0;f(e)||(s(e,Ur),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,je.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(hr.prototype[Symbol.dispose]=hr.prototype.free);class fr{static __unwrap(e){return e instanceof fr?e.__destroy_into_raw():0}__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_pickledsession_free(e,0)}constructor(){const e=_.pickledsession_new();return this.__wbg_ptr=e>>>0,Ue.register(this,this.__wbg_ptr,this),this}get pickle(){let e,t;try{const r=_.__wbg_get_pickledsession_pickle(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set pickle(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set senderKey(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__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)}}Symbol.dispose&&(fr.prototype[Symbol.dispose]=fr.prototype.free);class mr{static __wrap(e){e>>>=0;const t=Object.create(mr.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_pkdecryption_free(e,0)}publicKey(){const e=_.pkdecryption_publicKey(this.__wbg_ptr);return It.__wrap(e)}secretKey(){const e=_.pkdecryption_secretKey(this.__wbg_ptr);return Ct.__wrap(e)}decryptString(e){let t,r;try{s(e,Sr);const o=_.pkdecryption_decryptString(this.__wbg_ptr,e.__wbg_ptr);var n=o[0],i=o[1];if(o[3])throw n=0,i=0,R(o[2]);return t=n,r=i,b(n,i)}finally{_.__wbindgen_free(t,r,1)}}constructor(){const e=_.pkdecryption_new();return this.__wbg_ptr=e>>>0,De.register(this,this.__wbg_ptr,this),this}decrypt(e){s(e,Sr);const t=_.pkdecryption_decrypt(this.__wbg_ptr,e.__wbg_ptr);if(t[3])throw R(t[2]);var r=p(t[0],t[1]).slice();return _.__wbindgen_free(t[0],1*t[1],1),r}static fromKey(e){s(e,Ct);const t=_.pkdecryption_fromKey(e.__wbg_ptr);return mr.__wrap(t)}}Symbol.dispose&&(mr.prototype[Symbol.dispose]=mr.prototype.free);class vr{static __wrap(e){e>>>=0;const t=Object.create(vr.prototype);return t.__wbg_ptr=e,Be.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Be.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_pkencryption_free(e,0)}encryptString(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.pkencryption_encrypt(this.__wbg_ptr,t,r);return Sr.__wrap(n)}encrypt(e){const t=v(e,_.__wbindgen_malloc),r=I,n=_.pkencryption_encrypt(this.__wbg_ptr,t,r);return Sr.__wrap(n)}static fromKey(e){s(e,It);const t=_.pkencryption_fromKey(e.__wbg_ptr);return vr.__wrap(t)}}Symbol.dispose&&(vr.prototype[Symbol.dispose]=vr.prototype.free);class Sr{static __wrap(e){e>>>=0;const t=Object.create(Sr.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_pkmessage_free(e,0)}ciphertext(){const e=_.pkmessage_ciphertext(this.__wbg_ptr);var t=p(e[0],e[1]).slice();return _.__wbindgen_free(e[0],1*e[1],1),t}static fromParts(e,t,r){const n=v(e,_.__wbindgen_malloc),i=I,o=v(t,_.__wbindgen_malloc),g=I;s(r,It);const c=_.pkmessage_fromParts(n,i,o,g,r.__wbg_ptr);return Sr.__wrap(c)}static fromBase64(e){s(e,vt);const t=_.pkmessage_fromBase64(e.__wbg_ptr);if(t[2])throw R(t[1]);return Sr.__wrap(t[0])}ephemeralKey(){const e=_.pkmessage_ephemeralKey(this.__wbg_ptr);return It.__wrap(e)}mac(){const e=_.pkmessage_mac(this.__wbg_ptr);var t=p(e[0],e[1]).slice();return _.__wbindgen_free(e[0],1*e[1],1),t}toBase64(){const e=_.pkmessage_toBase64(this.__wbg_ptr);return vt.__wrap(e)}}Symbol.dispose&&(Sr.prototype[Symbol.dispose]=Sr.prototype.free);class kr{static __wrap(e){e>>>=0;const t=Object.create(kr.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_plaintexttodeviceevent_free(e,0)}get rawEvent(){return _.__wbg_get_plaintexttodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return _.plaintexttodeviceevent_type(this.__wbg_ptr)}}Symbol.dispose&&(kr.prototype[Symbol.dispose]=kr.prototype.free);const Rr=Object.freeze({Decrypted:0,0:"Decrypted",UnableToDecrypt:1,1:"UnableToDecrypt",PlainText:2,2:"PlainText",Invalid:3,3:"Invalid"});class Fr{static __wrap(e){e>>>=0;const t=Object.create(Fr.prototype);return t.__wbg_ptr=e,xe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,xe.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,xe.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(Fr.prototype[Symbol.dispose]=Fr.prototype.free);class zr{static __wrap(e){e>>>=0;const t=Object.create(zr.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_qr_free(e,0)}toQrCode(){const e=_.qr_toQrCode(this.__wbg_ptr);if(e[2])throw R(e[1]);return Kr.__wrap(e[0])}weStarted(){return 0!==_.qr_weStarted(this.__wbg_ptr)}cancelInfo(){const e=_.qr_cancelInfo(this.__wbg_ptr);return 0===e?void 0:kt.__wrap(e)}reciprocate(){const e=_.qr_reciprocate(this.__wbg_ptr);if(e[2])throw R(e[1]);return R(e[0])}isCancelled(){return 0!==_.qr_isCancelled(this.__wbg_ptr)}reciprocated(){return 0!==_.qr_reciprocated(this.__wbg_ptr)}get otherUserId(){const e=_.qr_otherUserId(this.__wbg_ptr);return s_.__wrap(e)}get otherDeviceId(){const e=_.qr_otherDeviceId(this.__wbg_ptr);return Mt.__wrap(e)}cancelWithCode(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.qr_cancelWithCode(this.__wbg_ptr,t,r);if(n[2])throw R(n[1]);return R(n[0])}confirmScanning(){const e=_.qr_confirmScanning(this.__wbg_ptr);if(e[2])throw R(e[1]);return R(e[0])}hasBeenScanned(){return 0!==_.qr_hasBeenScanned(this.__wbg_ptr)}hasBeenConfirmed(){return 0!==_.qr_hasBeenConfirmed(this.__wbg_ptr)}isSelfVerification(){return 0!==_.qr_isSelfVerification(this.__wbg_ptr)}registerChangesCallback(e){_.qr_registerChangesCallback(this.__wbg_ptr,e)}state(){return _.qr_state(this.__wbg_ptr)}cancel(){const e=_.qr_cancel(this.__wbg_ptr);if(e[2])throw R(e[1]);return R(e[0])}get flowId(){let e,t;try{const r=_.qr_flowId(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}isDone(){return 0!==_.qr_isDone(this.__wbg_ptr)}get roomId(){const e=_.qr_roomId(this.__wbg_ptr);return 0===e?void 0:Ur.__wrap(e)}get userId(){const e=_.qr_userId(this.__wbg_ptr);return s_.__wrap(e)}toBytes(){const e=_.qr_toBytes(this.__wbg_ptr);if(e[2])throw R(e[1]);return R(e[0])}}Symbol.dispose&&(zr.prototype[Symbol.dispose]=zr.prototype.free);class Kr{static __wrap(e){e>>>=0;const t=Object.create(Kr.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_qrcode_free(e,0)}renderIntoBuffer(){const e=_.qrcode_renderIntoBuffer(this.__wbg_ptr);if(e[2])throw R(e[1]);return R(e[0])}}Symbol.dispose&&(Kr.prototype[Symbol.dispose]=Kr.prototype.free);class qr{static __wrap(e){e>>>=0;const t=Object.create(qr.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_qrcodedata_free(e,0)}static fromBytes(e){const t=v(e,_.__wbindgen_malloc),r=I,n=_.qrcodedata_fromBytes(t,r);if(n[2])throw R(n[1]);return qr.__wrap(n[0])}get publicKey(){const e=_.qrcodedata_publicKey(this.__wbg_ptr);return It.__wrap(e)}static fromBase64(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.qrcodedata_fromBase64(t,r);if(n[2])throw R(n[1]);return qr.__wrap(n[0])}get serverName(){const e=_.qrcodedata_serverName(this.__wbg_ptr);let t;return 0!==e[0]&&(t=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}get rendezvousUrl(){let e,t;try{const r=_.qrcodedata_rendezvousUrl(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}constructor(e,t,r){s(e,It);var n=e.__destroy_into_raw();const i=k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),o=I;var g=f(r)?0:k(r,_.__wbindgen_malloc,_.__wbindgen_realloc),c=I;const a=_.qrcodedata_new(n,i,o,g,c);if(a[2])throw R(a[1]);return this.__wbg_ptr=a[0]>>>0,Ae.register(this,this.__wbg_ptr,this),this}get mode(){return _.qrcodedata_mode(this.__wbg_ptr)}toBytes(){const e=_.qrcodedata_toBytes(this.__wbg_ptr);var t=p(e[0],e[1]).slice();return _.__wbindgen_free(e[0],1*e[1],1),t}toBase64(){let e,t;try{const r=_.qrcodedata_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(qr.prototype[Symbol.dispose]=qr.prototype.free);const Ir=Object.freeze({Login:0,0:"Login",Reciprocate:1,1:"Reciprocate"});class Cr{static __wrap(e){e>>>=0;const t=Object.create(Cr.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_qrcodescan_free(e,0)}static fromBytes(e){const t=_.qrcodescan_fromBytes(e);if(t[2])throw R(t[1]);return Cr.__wrap(t[0])}}Symbol.dispose&&(Cr.prototype[Symbol.dispose]=Cr.prototype.free);const Or=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"});class jr{static __wrap(e){e>>>=0;const t=Object.create(jr.prototype);return t.__wbg_ptr=e,Ne.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ne.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_rehydrateddevice_free(e,0)}receiveEvents(e,t){const r=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I;let i=0;f(t)||(s(t,Dt),i=t.__destroy_into_raw());return _.rehydrateddevice_receiveEvents(this.__wbg_ptr,r,n,i)}}Symbol.dispose&&(jr.prototype[Symbol.dispose]=jr.prototype.free);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"});class Ur{static __wrap(e){e>>>=0;const t=Object.create(Ur.prototype);return t.__wbg_ptr=e,Qe.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof Ur?e.__destroy_into_raw():0}__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_roomid_free(e,0)}constructor(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.roomid_new(t,r);if(n[2])throw R(n[1]);return this.__wbg_ptr=n[0]>>>0,Qe.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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Ur.prototype[Symbol.dispose]=Ur.prototype.free);class Dr{static __wrap(e){e>>>=0;const t=Object.create(Dr.prototype);return t.__wbg_ptr=e,Le.register(t,t.__wbg_ptr,t),t}__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_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)}}Symbol.dispose&&(Dr.prototype[Symbol.dispose]=Dr.prototype.free);class Br{static __wrap(e){e>>>=0;const t=Object.create(Br.prototype);return t.__wbg_ptr=e,Je.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Je.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_roomkeyimportresult_free(e,0)}keys(){return _.roomkeyimportresult_keys(this.__wbg_ptr)}get importedCount(){return _.__wbg_get_roomkeyimportresult_importedCount(this.__wbg_ptr)>>>0}get totalCount(){return _.__wbg_get_roomkeyimportresult_totalCount(this.__wbg_ptr)>>>0}}Symbol.dispose&&(Br.prototype[Symbol.dispose]=Br.prototype.free);class Vr{static __wrap(e){e>>>=0;const t=Object.create(Vr.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_roomkeyinfo_free(e,0)}get senderKey(){const e=_.roomkeyinfo_senderKey(this.__wbg_ptr);return It.__wrap(e)}get sessionId(){let e,t;try{const r=_.roomkeyinfo_sessionId(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get roomId(){const e=_.roomkeyinfo_roomId(this.__wbg_ptr);return Ur.__wrap(e)}get algorithm(){return _.roomkeyinfo_algorithm(this.__wbg_ptr)}}Symbol.dispose&&(Vr.prototype[Symbol.dispose]=Vr.prototype.free);class Er{static __wrap(e){e>>>=0;const t=Object.create(Er.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_roomkeywithheldinfo_free(e,0)}get sessionId(){let e,t;try{const r=_.roomkeywithheldinfo_sessionId(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get withheldCode(){let e,t;try{const r=_.roomkeywithheldinfo_withheldCode(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get sender(){const e=_.roomkeywithheldinfo_sender(this.__wbg_ptr);return s_.__wrap(e)}get roomId(){const e=_.roomkeywithheldinfo_roomId(this.__wbg_ptr);return Ur.__wrap(e)}get algorithm(){return _.roomkeywithheldinfo_algorithm(this.__wbg_ptr)}}Symbol.dispose&&(Er.prototype[Symbol.dispose]=Er.prototype.free);class xr{static __wrap(e){e>>>=0;const t=Object.create(xr.prototype);return t.__wbg_ptr=e,Xe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Xe.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_roommessagerequest_free(e,0)}get type(){return _.roommessagerequest_type(this.__wbg_ptr)}constructor(e,t,r,n,i){const s=_.roommessagerequest_new(e,t,r,n,i);return this.__wbg_ptr=s>>>0,Xe.register(this,this.__wbg_ptr,this),this}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)}}Symbol.dispose&&(xr.prototype[Symbol.dispose]=xr.prototype.free);class Mr{static __wrap(e){e>>>=0;const t=Object.create(Mr.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_roomsettings_free(e,0)}constructor(){const e=_.roomsettings_new();return this.__wbg_ptr=e>>>0,$e.register(this,this.__wbg_ptr,this),this}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,!f(e),f(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,!f(e),f(e)?0:e)}}Symbol.dispose&&(Mr.prototype[Symbol.dispose]=Mr.prototype.free);class Tr{static __wrap(e){e>>>=0;const t=Object.create(Tr.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_sas_free(e,0)}weStarted(){return 0!==_.sas_weStarted(this.__wbg_ptr)}cancelInfo(){const e=_.sas_cancelInfo(this.__wbg_ptr);return 0===e?void 0:kt.__wrap(e)}emojiIndex(){const e=_.sas_emojiIndex(this.__wbg_ptr);let t;return 0!==e[0]&&(t=p(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}isCancelled(){return 0!==_.sas_isCancelled(this.__wbg_ptr)}get otherUserId(){const e=_.sas_otherUserId(this.__wbg_ptr);return s_.__wrap(e)}supportsEmoji(){return 0!==_.sas_supportsEmoji(this.__wbg_ptr)}get otherDeviceId(){const e=_.sas_otherDeviceId(this.__wbg_ptr);return Mt.__wrap(e)}canBePresented(){return 0!==_.sas_canBePresented(this.__wbg_ptr)}cancelWithCode(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.sas_cancelWithCode(this.__wbg_ptr,t,r);if(n[2])throw R(n[1]);return R(n[0])}hasBeenAccepted(){return 0!==_.sas_hasBeenAccepted(this.__wbg_ptr)}haveWeConfirmed(){return 0!==_.sas_haveWeConfirmed(this.__wbg_ptr)}isSelfVerification(){return 0!==_.sas_isSelfVerification(this.__wbg_ptr)}startedFromRequest(){return 0!==_.sas_startedFromRequest(this.__wbg_ptr)}registerChangesCallback(e){_.sas_registerChangesCallback(this.__wbg_ptr,e)}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}accept(){const e=_.sas_accept(this.__wbg_ptr);if(e[2])throw R(e[1]);return R(e[0])}cancel(){const e=_.sas_cancel(this.__wbg_ptr);if(e[2])throw R(e[1]);return R(e[0])}confirm(){return _.sas_confirm(this.__wbg_ptr)}get flowId(){let e,t;try{const r=_.sas_flowId(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}isDone(){return 0!==_.sas_isDone(this.__wbg_ptr)}get roomId(){const e=_.sas_roomId(this.__wbg_ptr);return 0===e?void 0:Ur.__wrap(e)}get userId(){const e=_.sas_userId(this.__wbg_ptr);return s_.__wrap(e)}decimals(){const e=_.sas_decimals(this.__wbg_ptr);let t;return 0!==e[0]&&(t=a(e[0],e[1]).slice(),_.__wbindgen_free(e[0],2*e[1],2)),t}get deviceId(){const e=_.sas_deviceId(this.__wbg_ptr);return Mt.__wrap(e)}timedOut(){return 0!==_.sas_timedOut(this.__wbg_ptr)}}Symbol.dispose&&(Tr.prototype[Symbol.dispose]=Tr.prototype.free);class Ar{static __wrap(e){e>>>=0;const t=Object.create(Ar.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_secretsbundle_free(e,0)}get masterKey(){let e,t;try{const r=_.secretsbundle_masterKey(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get backupBundle(){const e=_.secretsbundle_backupBundle(this.__wbg_ptr);return 0===e?void 0:mt.__wrap(e)}get selfSigningKey(){let e,t;try{const r=_.secretsbundle_selfSigningKey(this.__wbg_ptr);return e=r[0],t=r[1],b(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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}to_json(){const e=_.secretsbundle_to_json(this.__wbg_ptr);if(e[2])throw R(e[1]);return R(e[0])}static from_json(e){const t=_.secretsbundle_from_json(e);if(t[2])throw R(t[1]);return Ar.__wrap(t[0])}}Symbol.dispose&&(Ar.prototype[Symbol.dispose]=Ar.prototype.free);class Pr{static __wrap(e){e>>>=0;const t=Object.create(Pr.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_servername_free(e,0)}isIpLiteral(){return 0!==_.servername_isIpLiteral(this.__wbg_ptr)}constructor(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.servername_new(t,r);if(n[2])throw R(n[1]);return this.__wbg_ptr=n[0]>>>0,He.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],b(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}}Symbol.dispose&&(Pr.prototype[Symbol.dispose]=Pr.prototype.free);const Nr=Object.freeze({Red:0,0:"Red",Grey:1,1:"Grey",None:2,2:"None"});class Qr{static __wrap(e){e>>>=0;const t=Object.create(Qr.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_shieldstate_free(e,0)}get message(){const e=_.shieldstate_message(this.__wbg_ptr);let t;return 0!==e[0]&&(t=b(e[0],e[1]).slice(),_.__wbindgen_free(e[0],1*e[1],1)),t}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 6===e?void 0:e}set code(e){_.__wbg_set_shieldstate_code(this.__wbg_ptr,f(e)?6:e)}}Symbol.dispose&&(Qr.prototype[Symbol.dispose]=Qr.prototype.free);const Lr=Object.freeze({AuthenticityNotGuaranteed:0,0:"AuthenticityNotGuaranteed",UnknownDevice:1,1:"UnknownDevice",UnsignedDevice:2,2:"UnsignedDevice",UnverifiedIdentity:3,3:"UnverifiedIdentity",VerificationViolation:4,4:"VerificationViolation",MismatchedSender:5,5:"MismatchedSender"});class Jr{static __wrap(e){e>>>=0;const t=Object.create(Jr.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_signature_free(e,0)}get ed25519(){const e=_.signature_ed25519(this.__wbg_ptr);return 0===e?void 0:Jt.__wrap(e)}toBase64(){let e,t;try{const r=_.signature_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Jr.prototype[Symbol.dispose]=Jr.prototype.free);Object.freeze({Missing:0,0:"Missing",Invalid:1,1:"Invalid",ValidButNotTrusted:2,2:"ValidButNotTrusted",ValidAndTrusted:3,3:"ValidAndTrusted"});class Wr{static __wrap(e){e>>>=0;const t=Object.create(Wr.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_signatureuploadrequest_free(e,0)}get id(){return _.__wbg_get_signatureuploadrequest_id(this.__wbg_ptr)}get body(){return _.__wbg_get_signatureuploadrequest_body(this.__wbg_ptr)}get type(){return _.signatureuploadrequest_type(this.__wbg_ptr)}constructor(e,t){const r=_.signatureuploadrequest_new(e,t);return this.__wbg_ptr=r>>>0,rt.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(Wr.prototype[Symbol.dispose]=Wr.prototype.free);class Gr{static __wrap(e){e>>>=0;const t=Object.create(Gr.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_signatureverification_free(e,0)}get userState(){return _.signatureverification_userState(this.__wbg_ptr)}get deviceState(){return _.signatureverification_deviceState(this.__wbg_ptr)}trusted(){return 0!==_.signatureverification_trusted(this.__wbg_ptr)}}Symbol.dispose&&(Gr.prototype[Symbol.dispose]=Gr.prototype.free);class Xr{static __wrap(e){e>>>=0;const t=Object.create(Xr.prototype);return t.__wbg_ptr=e,nt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_signatures_free(e,0)}addSignature(e,t,r){s(e,s_),s(t,Pt),s(r,Jt);const n=_.signatures_addSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return 0===n?void 0:ar.__wrap(n)}getSignature(e,t){s(e,s_),s(t,Pt);const r=_.signatures_getSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr);return 0===r?void 0:Jt.__wrap(r)}get(e){s(e,s_);return _.signatures_get(this.__wbg_ptr,e.__wbg_ptr)}constructor(){const e=_.signatures_new();return this.__wbg_ptr=e>>>0,nt.register(this,this.__wbg_ptr,this),this}clear(){_.signatures_clear(this.__wbg_ptr)}get count(){return _.signatures_count(this.__wbg_ptr)>>>0}asJSON(){const e=_.signatures_asJSON(this.__wbg_ptr);if(e[2])throw R(e[1]);return R(e[0])}isEmpty(){return 0!==_.signatures_isEmpty(this.__wbg_ptr)}}Symbol.dispose&&(Xr.prototype[Symbol.dispose]=Xr.prototype.free);class $r{static __wrap(e){e>>>=0;const t=Object.create($r.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_storehandle_free(e,0)}static open(e,t,r){var n=f(e)?0:k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=I,o=f(t)?0:k(t,_.__wbindgen_malloc,_.__wbindgen_realloc),g=I;return _.storehandle_open(n,s,o,g,f(r)?0:i(r))}static openWithKey(e,t,r){const n=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),s=I,o=v(t,_.__wbindgen_malloc),g=I;return _.storehandle_openWithKey(n,s,o,g,f(r)?0:i(r))}}Symbol.dispose&&($r.prototype[Symbol.dispose]=$r.prototype.free);class Zr{static __wrap(e){e>>>=0;const t=Object.create(Zr.prototype);return t.__wbg_ptr=e,st.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,st.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_storedroomkeybundledata_free(e,0)}get senderUser(){const e=_.storedroomkeybundledata_senderUser(this.__wbg_ptr);return s_.__wrap(e)}get encryptionInfo(){let e,t;try{const r=_.storedroomkeybundledata_encryptionInfo(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get url(){let e,t;try{const r=_.storedroomkeybundledata_url(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}get roomId(){const e=_.storedroomkeybundledata_roomId(this.__wbg_ptr);return Ur.__wrap(e)}}Symbol.dispose&&(Zr.prototype[Symbol.dispose]=Zr.prototype.free);class Yr{static __wrap(e){e>>>=0;const t=Object.create(Yr.prototype);return t.__wbg_ptr=e,ot.register(t,t.__wbg_ptr,t),t}__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_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],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}set senderCurve25519Key(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I;_.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}get sender(){const e=_.__wbg_get_todeviceencryptioninfo_sender(this.__wbg_ptr);return s_.__wrap(e)}set sender(e){s(e,s_);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:Mt.__wrap(e)}set senderDevice(e){let t=0;f(e)||(s(e,Mt),t=e.__destroy_into_raw()),_.__wbg_set_todeviceencryptioninfo_senderDevice(this.__wbg_ptr,t)}isSenderVerified(){return 0!==_.todeviceencryptioninfo_isSenderVerified(this.__wbg_ptr)}}Symbol.dispose&&(Yr.prototype[Symbol.dispose]=Yr.prototype.free);class Hr{static __wrap(e){e>>>=0;const t=Object.create(Hr.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_todevicerequest_free(e,0)}get type(){return _.todevicerequest_type(this.__wbg_ptr)}constructor(e,t,r,n){const i=_.todevicerequest_new(e,t,r,n);return this.__wbg_ptr=i>>>0,gt.register(this,this.__wbg_ptr,this),this}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)}}Symbol.dispose&&(Hr.prototype[Symbol.dispose]=Hr.prototype.free);class e_{static __wrap(e){e>>>=0;const t=Object.create(e_.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_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)}}Symbol.dispose&&(e_.prototype[Symbol.dispose]=e_.prototype.free);Object.freeze({DecryptionFailure:0,0:"DecryptionFailure",UnverifiedSenderDevice:1,1:"UnverifiedSenderDevice",NoOlmMachine:2,2:"NoOlmMachine",EncryptionIsDisabled:3,3:"EncryptionIsDisabled"});class t_{__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_tracing_free(e,0)}static isAvailable(){return 0!==_.tracing_isAvailable()}constructor(e){const t=_.tracing_new(e);if(t[2])throw R(t[1]);return this.__wbg_ptr=t[0]>>>0,at.register(this,this.__wbg_ptr,this),this}turnOn(){const e=_.tracing_turnOn(this.__wbg_ptr);if(e[1])throw R(e[0])}turnOff(){const e=_.tracing_turnOff(this.__wbg_ptr);if(e[1])throw R(e[0])}set minLevel(e){const t=_.tracing_set_minLevel(this.__wbg_ptr,e);if(t[1])throw R(t[0])}}Symbol.dispose&&(t_.prototype[Symbol.dispose]=t_.prototype.free);const r_=Object.freeze({Untrusted:0,0:"Untrusted",CrossSignedOrLegacy:1,1:"CrossSignedOrLegacy",CrossSigned:2,2:"CrossSigned"});class __{static __wrap(e){e>>>=0;const t=Object.create(__.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_utdtodeviceevent_free(e,0)}get type(){return _.utdtodeviceevent_type(this.__wbg_ptr)}get rawEvent(){return _.__wbg_get_utdtodeviceevent_rawEvent(this.__wbg_ptr)}get utdInfo(){const e=_.__wbg_get_utdtodeviceevent_utdInfo(this.__wbg_ptr);return e_.__wrap(e)}}Symbol.dispose&&(__.prototype[Symbol.dispose]=__.prototype.free);class n_{static __wrap(e){e>>>=0;const t=Object.create(n_.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_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,wt.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(n_.prototype[Symbol.dispose]=n_.prototype.free);class i_{static __wrap(e){e>>>=0;const t=Object.create(i_.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_userdevices_free(e,0)}isAnyVerified(){return 0!==_.userdevices_isAnyVerified(this.__wbg_ptr)}get(e){s(e,Mt);const t=_.userdevices_get(this.__wbg_ptr,e.__wbg_ptr);return 0===t?void 0:xt.__wrap(t)}keys(){return _.userdevices_keys(this.__wbg_ptr)}devices(){return _.userdevices_devices(this.__wbg_ptr)}}Symbol.dispose&&(i_.prototype[Symbol.dispose]=i_.prototype.free);class s_{static __wrap(e){e>>>=0;const t=Object.create(s_.prototype);return t.__wbg_ptr=e,bt.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof s_?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),e}free(){const e=this.__destroy_into_raw();_.__wbg_userid_free(e,0)}get serverName(){const e=_.userid_serverName(this.__wbg_ptr);return Pr.__wrap(e)}isHistorical(){return 0!==_.userid_isHistorical(this.__wbg_ptr)}constructor(e){const t=k(e,_.__wbindgen_malloc,_.__wbindgen_realloc),r=I,n=_.userid_new(t,r);if(n[2])throw R(n[1]);return this.__wbg_ptr=n[0]>>>0,bt.register(this,this.__wbg_ptr,this),this}clone(){const e=_.userid_clone(this.__wbg_ptr);return s_.__wrap(e)}get localpart(){let e,t;try{const r=_.userid_localpart(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}toString(){let e,t;try{const r=_.userid_toString(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(s_.prototype[Symbol.dispose]=s_.prototype.free);const o_=Object.freeze({SasV1:0,0:"SasV1",QrCodeScanV1:1,1:"QrCodeScanV1",QrCodeShowV1:2,2:"QrCodeShowV1",ReciprocateV1:3,3:"ReciprocateV1"});class g_{static __wrap(e){e>>>=0;const t=Object.create(g_.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_verificationrequest_free(e,0)}isPassive(){return 0!==_.verificationrequest_isPassive(this.__wbg_ptr)}weStarted(){return 0!==_.verificationrequest_weStarted(this.__wbg_ptr)}get cancelInfo(){const e=_.verificationrequest_cancelInfo(this.__wbg_ptr);return 0===e?void 0:kt.__wrap(e)}get ownUserId(){const e=_.verificationrequest_ownUserId(this.__wbg_ptr);return s_.__wrap(e)}isCancelled(){return 0!==_.verificationrequest_isCancelled(this.__wbg_ptr)}scanQrCode(e){s(e,Cr);return _.verificationrequest_scanQrCode(this.__wbg_ptr,e.__wbg_ptr)}get otherUserId(){const e=_.verificationrequest_otherUserId(this.__wbg_ptr);return s_.__wrap(e)}get otherDeviceId(){const e=_.verificationrequest_otherDeviceId(this.__wbg_ptr);return 0===e?void 0:Mt.__wrap(e)}generateQrCode(){return _.verificationrequest_generateQrCode(this.__wbg_ptr)}getVerification(){return _.verificationrequest_getVerification(this.__wbg_ptr)}acceptWithMethods(e){const t=S(e,_.__wbindgen_malloc),r=I,n=_.verificationrequest_acceptWithMethods(this.__wbg_ptr,t,r);if(n[2])throw R(n[1]);return R(n[0])}isSelfVerification(){return 0!==_.verificationrequest_isSelfVerification(this.__wbg_ptr)}get ourSupportedMethods(){const e=_.verificationrequest_ourSupportedMethods(this.__wbg_ptr);if(e[3])throw R(e[2]);let t;return 0!==e[0]&&(t=c(e[0],e[1]).slice(),_.__wbindgen_free(e[0],4*e[1],4)),t}timeRemainingMillis(){return _.verificationrequest_timeRemainingMillis(this.__wbg_ptr)}get theirSupportedMethods(){const e=_.verificationrequest_theirSupportedMethods(this.__wbg_ptr);if(e[3])throw R(e[2]);let t;return 0!==e[0]&&(t=c(e[0],e[1]).slice(),_.__wbindgen_free(e[0],4*e[1],4)),t}registerChangesCallback(e){_.verificationrequest_registerChangesCallback(this.__wbg_ptr,e)}phase(){return _.verificationrequest_phase(this.__wbg_ptr)}accept(){const e=_.verificationrequest_accept(this.__wbg_ptr);if(e[2])throw R(e[1]);return R(e[0])}cancel(){const e=_.verificationrequest_cancel(this.__wbg_ptr);if(e[2])throw R(e[1]);return R(e[0])}get flowId(){let e,t;try{const r=_.verificationrequest_flowId(this.__wbg_ptr);return e=r[0],t=r[1],b(r[0],r[1])}finally{_.__wbindgen_free(e,t,1)}}isDone(){return 0!==_.verificationrequest_isDone(this.__wbg_ptr)}static request(e,t,r,n){let i,o;try{s(e,s_),s(t,Mt),s(r,s_);var g=f(n)?0:S(n,_.__wbindgen_malloc),c=I;const w=_.verificationrequest_request(e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,g,c);var a=w[0],p=w[1];if(w[3])throw a=0,p=0,R(w[2]);return i=a,o=p,b(a,p)}finally{_.__wbindgen_free(i,o,1)}}get roomId(){const e=_.verificationrequest_roomId(this.__wbg_ptr);return 0===e?void 0:Ur.__wrap(e)}isReady(){return 0!==_.verificationrequest_isReady(this.__wbg_ptr)}startSas(){return _.verificationrequest_startSas(this.__wbg_ptr)}timedOut(){return 0!==_.verificationrequest_timedOut(this.__wbg_ptr)}}Symbol.dispose&&(g_.prototype[Symbol.dispose]=g_.prototype.free);const c_=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"});class a_{static __wrap(e){e>>>=0;const t=Object.create(a_.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_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 p_(){const e=_.getVersions();return a_.__wrap(e)}function w_(e,t){return Error(b(e,t))}function u_(e){return Number(e)}function b_(e,t){const r=k(String(t),_.__wbindgen_malloc,_.__wbindgen_realloc),n=I;u().setInt32(e+4,n,!0),u().setInt32(e+0,r,!0)}function d_(e){return e.Window}function l_(e){return e.WorkerGlobalScope}function y_(e,t){const r="bigint"==typeof t?t:void 0;u().setBigInt64(e+8,f(r)?BigInt(0):r,!0),u().setInt32(e+0,!f(r),!0)}function h_(e){const t="boolean"==typeof e?e:void 0;return f(t)?16777215:t?1:0}function f_(e,t){const r=k(g(t),_.__wbindgen_malloc,_.__wbindgen_realloc),n=I;u().setInt32(e+4,n,!0),u().setInt32(e+0,r,!0)}function m_(e,t){return e in t}function v_(e){return"bigint"==typeof e}function S_(e){return"function"==typeof e}function k_(e){return null===e}function R_(e){return"object"==typeof e&&null!==e}function F_(e){return"string"==typeof e}function z_(e){return void 0===e}function K_(e,t){return e===t}function q_(e,t){return e==t}function I_(e,t){const r="number"==typeof t?t:void 0;u().setFloat64(e+8,f(r)?0:r,!0),u().setInt32(e+0,!f(r),!0)}function C_(e,t){const r="string"==typeof t?t:void 0;var n=f(r)?0:k(r,_.__wbindgen_malloc,_.__wbindgen_realloc),i=I;u().setInt32(e+4,i,!0),u().setInt32(e+0,n,!0)}function O_(e,t){throw new Error(b(e,t))}function j_(e){let t;try{t=+e}catch(e){t=e}return t}function U_(e){e._wbg_cb_unref()}function D_(){return h(function(e){e.abort()},arguments)}function B_(){return h(function(e,t,r){return e.add(t,r)},arguments)}function V_(e,t){return e.add(t)}function E_(e,t){return e.at(t)}function x_(e){return ft.__wrap(e)}function M_(){return h(function(e,t,r,_){return IDBKeyRange.bound(e,t,0!==r,0!==_)},arguments)}function T_(){return h(function(e,t,r){return e.call(t,r)},arguments)}function A_(){return h(function(e,t,r,_,n){return e.call(t,r,_,n)},arguments)}function P_(){return h(function(e,t){return e.call(t)},arguments)}function N_(){return h(function(e,t,r,_){return e.call(t,r,_)},arguments)}function Q_(e){return clearTimeout(e)}function L_(){return h(function(e){return e.clear()},arguments)}function J_(e){e.close()}function W_(e){return e.code}function G_(){return h(function(e){e.commit()},arguments)}function X_(){return h(function(e){e.continue()},arguments)}function $_(){return h(function(e){return e.count()},arguments)}function Z_(){return h(function(e){return e.count()},arguments)}function Y_(){return h(function(e,t,r,_,n){return e.createIndex(b(t,r),_,n)},arguments)}function H_(){return h(function(e,t,r,_){return e.createIndex(b(t,r),_)},arguments)}function en(){return h(function(e,t,r){return e.createObjectStore(b(t,r))},arguments)}function tn(e){return zt.__wrap(e)}function rn(e){return Kt.__wrap(e)}function _n(e){return qt.__wrap(e)}function nn(e){return e.crypto}function sn(e,t){e.debug(t)}function on(e){console.debug(e)}function gn(e){return Ot.__wrap(e)}function cn(e){return jt.__wrap(e)}function an(e){return Bt.__wrap(e)}function pn(e){return Vt.__wrap(e)}function wn(){return h(function(e,t,r){e.deleteObjectStore(b(t,r))},arguments)}function un(){return h(function(e){return e.delete()},arguments)}function bn(){return h(function(e,t){return e.delete(t)},arguments)}function dn(e){return xt.__wrap(e)}function ln(e){return Mt.__wrap(e)}function yn(e){return Tt.__wrap(e)}function hn(e){return Pt.__wrap(e)}function fn(e){return e.done}function mn(e){return Wt.__wrap(e)}function vn(e){return Gt.__wrap(e)}function Sn(e){return $t.__wrap(e)}function kn(e){return Object.entries(e)}function Rn(e){return e.entries()}function Fn(e,t){let r,n;try{r=e,n=t,console.error(b(e,t))}finally{_.__wbindgen_free(r,n,1)}}function zn(e,t){e.error(t)}function Kn(e){console.error(e)}function qn(){return h(function(e){const t=e.error;return f(t)?0:i(t)},arguments)}function In(e){return Array.from(e)}function Cn(){return h(function(e){return e.getAllKeys()},arguments)}function On(){return h(function(e){return e.getAll()},arguments)}function jn(){return h(function(e,t){return e.getAll(t)},arguments)}function Un(){return h(function(e,t,r){return e.getAll(t,r>>>0)},arguments)}function Dn(){return h(function(e,t){globalThis.crypto.getRandomValues(p(e,t))},arguments)}function Bn(){return h(function(e,t){e.getRandomValues(t)},arguments)}function Vn(e){return e.getTime()}function En(){return h(function(e,t){return e.get(t)},arguments)}function xn(e,t){return e[t>>>0]}function Mn(){return h(function(e,t){return e.get(t)},arguments)}function Tn(){return h(function(e,t){return Reflect.get(e,t)},arguments)}function An(e,t){return e[t]}function Pn(e){return e.global}function Nn(e){return _r.__wrap(e)}function Qn(){return h(function(e,t,r){return e.index(b(t,r))},arguments)}function Ln(){return h(function(e){const t=e.indexedDB;return f(t)?0:i(t)},arguments)}function Jn(){return h(function(e){const t=e.indexedDB;return f(t)?0:i(t)},arguments)}function Wn(){return h(function(e){const t=e.indexedDB;return f(t)?0:i(t)},arguments)}function Gn(e){console.info(e)}function Xn(e,t){e.info(t)}function $n(e){let t;try{t=e instanceof ArrayBuffer}catch(e){t=!1}return t}function Zn(e){let t;try{t=e instanceof IDBCursorWithValue}catch(e){t=!1}return t}function Yn(e){let t;try{t=e instanceof DOMException}catch(e){t=!1}return t}function Hn(e){let t;try{t=e instanceof Error}catch(e){t=!1}return t}function ei(e){let t;try{t=e instanceof IDBCursor}catch(e){t=!1}return t}function ti(e){let t;try{t=e instanceof IDBDatabase}catch(e){t=!1}return t}function ri(e){let t;try{t=e instanceof IDBOpenDBRequest}catch(e){t=!1}return t}function _i(e){let t;try{t=e instanceof IDBRequest}catch(e){t=!1}return t}function ni(e){let t;try{t=e instanceof Map}catch(e){t=!1}return t}function ii(e){let t;try{t=e instanceof Promise}catch(e){t=!1}return t}function si(e){let t;try{t=e instanceof Uint8Array}catch(e){t=!1}return t}function oi(e){return nr.__wrap(e)}function gi(e){return Array.isArray(e)}function ci(e){return Array.isArray(e)}function ai(e){return Number.isSafeInteger(e)}function pi(e,t,r){const n=t.item(r>>>0);var i=f(n)?0:k(n,_.__wbindgen_malloc,_.__wbindgen_realloc),s=I;u().setInt32(e+4,s,!0),u().setInt32(e+0,i,!0)}function wi(){return Symbol.iterator}function ui(){return h(function(e){return e.key},arguments)}function bi(e){return ir.__wrap(e)}function di(e){return sr.__wrap(e)}function li(e){return or.__wrap(e)}function yi(e){return gr.__wrap(e)}function hi(e){return e.length}function fi(e){return e.length}function mi(e){return e.length}function vi(){return h(function(e,t){return IDBKeyRange.lowerBound(e,0!==t)},arguments)}function Si(e){return ar.__wrap(e)}function ki(e){return pr.__wrap(e)}function Ri(e){return e.message}function Fi(e,t){const r=k(t.message,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I;u().setInt32(e+4,n,!0),u().setInt32(e+0,r,!0)}function zi(e){return e.msCrypto}function Ki(e,t){const r=k(t.name,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I;u().setInt32(e+4,n,!0),u().setInt32(e+0,r,!0)}function qi(){return new Object}function Ii(){return new Array}function Ci(e){return new Uint8Array(e)}function Oi(e){return new Set(e)}function ji(){return new Error}function Ui(e){return new Date(e)}function Di(){return new Map}function Bi(e,t){return new Error(b(e,t))}function Vi(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){_.wasm_bindgen__convert__closures_____invoke__h8815fd477ac2dc7f(e,t,r,n)}(n,r.b,e,t)}finally{r.a=n}});return n}finally{r.a=r.b=0}}function Ei(e,t){return new Function(b(e,t))}function xi(e){return new Uint8ClampedArray(e>>>0)}function Mi(e){return new Uint8Array(e>>>0)}function Ti(e){return e.next}function Ai(){return h(function(e){return e.next()},arguments)}function Pi(e){return e.node}function Ni(e){return e.now()}function Qi(){return Date.now()}function Li(e){return e.objectStoreNames}function Ji(){return h(function(e,t,r){return e.objectStore(b(t,r))},arguments)}function Wi(e){return e.oldVersion}function Gi(e){return br.__wrap(e)}function Xi(){return h(function(e){return e.openCursor()},arguments)}function $i(){return h(function(e){return e.openCursor()},arguments)}function Zi(){return h(function(e,t){return e.openCursor(t)},arguments)}function Yi(){return h(function(e,t,r,_){return e.open(b(t,r),_>>>0)},arguments)}function Hi(){return h(function(e,t,r){return e.open(b(t,r))},arguments)}function es(e){return dr.__wrap(e)}function ts(e){return yr.__wrap(e)}function rs(){return h(function(e,t){return JSON.parse(b(e,t))},arguments)}function _s(e){return e.performance}function ns(e){return hr.__unwrap(e)}function is(e){return fr.__unwrap(e)}function ss(e){return kr.__wrap(e)}function os(e){return e.process}function gs(e,t,r){Uint8ClampedArray.prototype.set.call(p(e,t),r)}function cs(e,t,r){Uint8Array.prototype.set.call(p(e,t),r)}function as(e,t){return e.push(t)}function ps(){return h(function(e,t,r){return e.put(t,r)},arguments)}function ws(e){return Fr.__wrap(e)}function us(e){return zr.__wrap(e)}function bs(e){return e.queueMicrotask}function ds(e){queueMicrotask(e)}function ls(){return h(function(e,t){e.randomFillSync(t)},arguments)}function ys(e){const t=e.readyState;return(U.indexOf(t)+1||3)-1}function hs(e){return jr.__wrap(e)}function fs(e){return e.request}function ms(e){return e.request}function vs(){return h(function(){return module.require},arguments)}function Ss(e){return Promise.resolve(e)}function ks(){return h(function(e){return e.result},arguments)}function Rs(e){return Ur.__unwrap(e)}function Fs(e){return Dr.__wrap(e)}function zs(e){return Br.__wrap(e)}function Ks(e){return Vr.__wrap(e)}function qs(e){return Er.__wrap(e)}function Is(e){return xr.__wrap(e)}function Cs(e){return Mr.__wrap(e)}function Os(e){return Tr.__wrap(e)}function js(e){return Ar.__wrap(e)}function Us(){return h(function(e,t){return setTimeout(e,t)},arguments)}function Ds(e,t,r){e[t]=r}function Bs(e,t,r){e[t>>>0]=r}function Vs(e,t,r){e.set(p(t,r))}function Es(e,t,r){return e.set(t,r)}function xs(e,t){e.onabort=t}function Ms(e,t){e.oncomplete=t}function Ts(e,t){e.onerror=t}function As(e,t){e.onerror=t}function Ps(e,t){e.onsuccess=t}function Ns(e,t){e.onupgradeneeded=t}function Qs(e,t){e.unique=0!==t}function Ls(e){return Xr.__wrap(e)}function Js(e){return Wr.__wrap(e)}function Ws(e){return Gr.__wrap(e)}function Gs(e,t){const r=k(t.stack,_.__wbindgen_malloc,_.__wbindgen_realloc),n=I;u().setInt32(e+4,n,!0),u().setInt32(e+0,r,!0)}function Xs(){const e=void 0===r.g?null:r.g;return f(e)?0:i(e)}function $s(){const e="undefined"==typeof globalThis?null:globalThis;return f(e)?0:i(e)}function Zs(){const e="undefined"==typeof self?null:self;return f(e)?0:i(e)}function Ys(){const e="undefined"==typeof window?null:window;return f(e)?0:i(e)}function Hs(e){return Zr.__wrap(e)}function eo(e){return $r.__wrap(e)}function to(){return h(function(e){return JSON.stringify(e)},arguments)}function ro(e,t,r){return e.subarray(t>>>0,r>>>0)}function _o(e){const t=e.target;return f(t)?0:i(t)}function no(e,t,r){return e.then(t,r)}function io(e,t){return e.then(t)}function so(e){return e.toString()}function oo(e){return Hr.__wrap(e)}function go(){return h(function(e,t,r){return e.transaction(t,D[r])},arguments)}function co(){return h(function(e,t,r,_){return e.transaction(b(t,r),D[_])},arguments)}function ao(e){return e.transaction}function po(e){const t=e.transaction;return f(t)?0:i(t)}function wo(){return h(function(e,t){return e.update(t)},arguments)}function uo(){return h(function(e,t){return IDBKeyRange.upperBound(e,0!==t)},arguments)}function bo(e){return i_.__wrap(e)}function lo(e){return s_.__wrap(e)}function yo(e){return s_.__unwrap(e)}function ho(e){return __.__wrap(e)}function fo(){return h(function(e){return e.value},arguments)}function mo(e){return e.value}function vo(e){return e.values()}function So(e){return g_.__wrap(e)}function ko(e){return e.version}function Ro(e){return e.versions}function Fo(e){console.warn(e)}function zo(e,t){e.warn(t)}function Ko(e,t){return m(e,t,_.wasm_bindgen__closure__destroy__h3add1a2c74cd908e,j)}function qo(e,t){return b(e,t)}function Io(e,t){return m(e,t,_.wasm_bindgen__closure__destroy__h3f1bc9bbb4835e8f,C)}function Co(e){return BigInt.asUintN(64,e)}function Oo(e,t){return m(e,t,_.wasm_bindgen__closure__destroy__h3f1bc9bbb4835e8f,O)}function jo(e){return e}function Uo(e,t){return m(e,t,_.wasm_bindgen__closure__destroy__h3f1bc9bbb4835e8f,C)}function Do(e,t){return p(e,t)}function Bo(e){return e}function Vo(e,t){var r=c(e,t).slice();_.__wbindgen_free(e,4*t,4);return r}function Eo(){const e=_.__wbindgen_externrefs,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)}Symbol.dispose&&(a_.prototype[Symbol.dispose]=a_.prototype.free)}}]);
      2 //# sourceMappingURL=3380.js.map