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