whatsapp-rust-bridge
Version:
A high-performance utilities for WhatsApp, powered by Rust and WebAssembly.
2 lines • 906 kB
JavaScript
var r_=Object.defineProperty;var o_=(e)=>e;function d_(e,n){this[e]=o_.bind(null,n)}var s_=(e,n)=>{for(var t in n)r_(e,t,{get:n[t],enumerable:!0,configurable:!0,set:d_.bind(n,t)})};import{readFileSync as J_}from"node:fs";class Ru{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,m_.unregister(this),e}free(){let e=this.__destroy_into_raw();u.__wbg_intounderlyingbytesource_free(e,0)}get autoAllocateChunkSize(){return u.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let e=this.__destroy_into_raw();u.intounderlyingbytesource_cancel(e)}pull(e){let n=u.intounderlyingbytesource_pull(this.__wbg_ptr,_(e));return k(n)}start(e){u.intounderlyingbytesource_start(this.__wbg_ptr,_(e))}get type(){let e=u.intounderlyingbytesource_type(this.__wbg_ptr);return A_[e]}}if(Symbol.dispose)Ru.prototype[Symbol.dispose]=Ru.prototype.free;class Du{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,S_.unregister(this),e}free(){let e=this.__destroy_into_raw();u.__wbg_intounderlyingsink_free(e,0)}abort(e){let n=this.__destroy_into_raw(),t=u.intounderlyingsink_abort(n,_(e));return k(t)}close(){let e=this.__destroy_into_raw(),n=u.intounderlyingsink_close(e);return k(n)}write(e){let n=u.intounderlyingsink_write(this.__wbg_ptr,_(e));return k(n)}}if(Symbol.dispose)Du.prototype[Symbol.dispose]=Du.prototype.free;class Mn{static __wrap(e){let n=Object.create(Mn.prototype);return n.__wbg_ptr=e,Fu.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Fu.unregister(this),e}free(){let e=this.__destroy_into_raw();u.__wbg_intounderlyingsource_free(e,0)}cancel(){let e=this.__destroy_into_raw();u.intounderlyingsource_cancel(e)}pull(e){let n=u.intounderlyingsource_pull(this.__wbg_ptr,_(e));return k(n)}}if(Symbol.dispose)Mn.prototype[Symbol.dispose]=Mn.prototype.free;class gn{static __wrap(e){let n=Object.create(gn.prototype);return n.__wbg_ptr=e,Vu.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Vu.unregister(this),e}free(){let e=this.__destroy_into_raw();u.__wbg_wasmwhatsappclient_free(e,0)}archiveChat(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=u.wasmwhatsappclient_archiveChat(this.__wbg_ptr,t,r,n);return k(a)}assertSessions(e,n){let t=J(e,u.__wbindgen_export),r=g,a=u.wasmwhatsappclient_assertSessions(this.__wbg_ptr,t,r,n);return k(a)}connect(){let e=u.wasmwhatsappclient_connect(this.__wbg_ptr);return k(e)}createGroup(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=J(n,u.__wbindgen_export),i=g,c=u.wasmwhatsappclient_createGroup(this.__wbg_ptr,t,r,a,i);return k(c)}createParticipantNodesBytes(e,n,t){let r=J(e,u.__wbindgen_export),a=g,i=V(n,u.__wbindgen_export),c=g,f=u.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,r,a,i,c,_(t));return k(f)}createPoll(e,n,t,r){let a=b(e,u.__wbindgen_export,u.__wbindgen_export2),i=g,c=b(n,u.__wbindgen_export,u.__wbindgen_export2),f=g,M=J(t,u.__wbindgen_export),S=g,P=u.wasmwhatsappclient_createPoll(this.__wbg_ptr,a,i,c,f,M,S,r);return k(P)}deleteChat(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_deleteChat(this.__wbg_ptr,n,t);return k(r)}deleteMessageForMe(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=b(n,u.__wbindgen_export,u.__wbindgen_export2),c=g,f=u.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,r,a,i,c,t);return k(f)}disconnect(){let e=u.wasmwhatsappclient_disconnect(this.__wbg_ptr);return k(e)}downloadMedia(e,n,t,r,a,i){let c=b(e,u.__wbindgen_export,u.__wbindgen_export2),f=g,M=V(n,u.__wbindgen_export),S=g,P=V(t,u.__wbindgen_export),w=g,D=V(r,u.__wbindgen_export),E=g,Se=u.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,c,f,M,S,P,w,D,E,a,_(i));return k(Se)}downloadMediaStream(e,n,t,r,a,i){try{let S=u.__wbindgen_add_to_stack_pointer(-16),P=b(e,u.__wbindgen_export,u.__wbindgen_export2),w=g,D=V(n,u.__wbindgen_export),E=g,Se=V(t,u.__wbindgen_export),O=g,C=V(r,u.__wbindgen_export),cn=g;u.wasmwhatsappclient_downloadMediaStream(S,this.__wbg_ptr,P,w,D,E,Se,O,C,cn,a,_(i));var c=L().getInt32(S+0,!0),f=L().getInt32(S+4,!0),M=L().getInt32(S+8,!0);if(M)throw k(f);return k(c)}finally{u.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=b(n,u.__wbindgen_export,u.__wbindgen_export2),c=g,f=V(t,u.__wbindgen_export),M=g,S=u.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,r,a,i,c,f,M);return k(S)}encryptMediaStream(e,n,t){let r=u.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,_(e),_(n),_(t));return k(r)}fetchBlocklist(){let e=u.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return k(e)}fetchMessageHistory(e,n,t,r,a){let i=b(n,u.__wbindgen_export,u.__wbindgen_export2),c=g,f=b(t,u.__wbindgen_export,u.__wbindgen_export2),M=g,S=u.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,e,i,c,f,M,r,a);return k(S)}fetchPrivacySettings(){let e=u.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return k(e)}fetchReachoutTimelock(){let e=u.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return k(e)}fetchStatus(e){let n=J(e,u.__wbindgen_export),t=g,r=u.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,n,t);return k(r)}fetchUserInfo(e){let n=J(e,u.__wbindgen_export),t=g,r=u.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,n,t);return k(r)}getAccount(){let e=u.wasmwhatsappclient_getAccount(this.__wbg_ptr);return k(e)}getBusinessProfile(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,n,t);return k(r)}getGroupMetadata(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,n,t);return k(r)}getJid(){let e=u.wasmwhatsappclient_getJid(this.__wbg_ptr);return k(e)}getLid(){let e=u.wasmwhatsappclient_getLid(this.__wbg_ptr);return k(e)}getMediaConn(e){let n=u.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,e);return k(n)}getMemoryDiagnostics(){let e=u.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return k(e)}getPushName(){let e=u.wasmwhatsappclient_getPushName(this.__wbg_ptr);return k(e)}getUSyncDevices(e,n,t){let r=J(e,u.__wbindgen_export),a=g,i=u.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,r,a,n,t);return k(i)}groupAcceptInvite(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,n,t);return k(r)}groupAcceptInviteV4(e,n,t,r){let a=b(e,u.__wbindgen_export,u.__wbindgen_export2),i=g,c=b(n,u.__wbindgen_export,u.__wbindgen_export2),f=g,M=b(r,u.__wbindgen_export,u.__wbindgen_export2),S=g,P=u.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,a,i,c,f,t,M,S);return k(P)}groupFetchAllParticipating(){let e=u.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return k(e)}groupGetInviteInfo(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,n,t);return k(r)}groupInviteCode(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,n,t);return k(r)}groupLeave(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_groupLeave(this.__wbg_ptr,n,t);return k(r)}groupMemberAddMode(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=u.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,t,r,_(n));return k(a)}groupParticipantsUpdate(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=J(n,u.__wbindgen_export),c=g,f=u.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,r,a,i,c,_(t));return k(f)}groupRequestParticipantsList(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,n,t);return k(r)}groupRequestParticipantsUpdate(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=J(n,u.__wbindgen_export),c=g,f=u.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,r,a,i,c,_(t));return k(f)}groupRevokeInvite(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,n,t);return k(r)}groupSettingUpdate(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=u.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,r,a,_(n),t);return k(i)}groupToggleEphemeral(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=u.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,t,r,n);return k(a)}groupUpdateDescription(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g;var a=K(n)?0:b(n,u.__wbindgen_export,u.__wbindgen_export2),i=g;let c=u.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,t,r,a,i);return k(c)}groupUpdateSubject(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=b(n,u.__wbindgen_export,u.__wbindgen_export2),i=g,c=u.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,t,r,a,i);return k(c)}isConnected(){return u.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return u.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp(e){let n=J(e,u.__wbindgen_export),t=g,r=u.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,n,t);return k(r)}jidToSignalProtocolAddress(e){let n,t;try{let S=u.__wbindgen_add_to_stack_pointer(-16),P=b(e,u.__wbindgen_export,u.__wbindgen_export2),w=g;u.wasmwhatsappclient_jidToSignalProtocolAddress(S,this.__wbg_ptr,P,w);var r=L().getInt32(S+0,!0),a=L().getInt32(S+4,!0),i=L().getInt32(S+8,!0),c=L().getInt32(S+12,!0),f=r,M=a;if(c)throw f=0,M=0,k(i);return n=f,t=M,$(f,M)}finally{u.__wbindgen_add_to_stack_pointer(16),u.__wbindgen_export4(n,t,1)}}lidForPn(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_lidForPn(this.__wbg_ptr,n,t);return k(r)}logout(){let e=u.wasmwhatsappclient_logout(this.__wbg_ptr);return k(e)}markChatAsRead(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=u.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,t,r,n);return k(a)}mexQuery(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=b(n,u.__wbindgen_export,u.__wbindgen_export2),c=g,f=b(t,u.__wbindgen_export,u.__wbindgen_export2),M=g,S=u.wasmwhatsappclient_mexQuery(this.__wbg_ptr,r,a,i,c,f,M);return k(S)}muteChat(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=u.wasmwhatsappclient_muteChat(this.__wbg_ptr,t,r,!K(n),K(n)?0:n);return k(a)}newsletterCreate(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g;var a=K(n)?0:b(n,u.__wbindgen_export,u.__wbindgen_export2),i=g;let c=u.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,t,r,a,i);return k(c)}newsletterMetadata(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,n,t);return k(r)}newsletterReactMessage(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=b(n,u.__wbindgen_export,u.__wbindgen_export2),c=g;var f=K(t)?0:b(t,u.__wbindgen_export,u.__wbindgen_export2),M=g;let S=u.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,r,a,i,c,f,M);return k(S)}newsletterSubscribe(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,n,t);return k(r)}newsletterUnsubscribe(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,n,t);return k(r)}pinChat(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=u.wasmwhatsappclient_pinChat(this.__wbg_ptr,t,r,n);return k(a)}pnForLid(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_pnForLid(this.__wbg_ptr,n,t);return k(r)}presenceSubscribe(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,n,t);return k(r)}profilePictureUrl(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=u.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,t,r,_(n));return k(a)}readMessages(e){let n=J(e,u.__wbindgen_export),t=g,r=u.wasmwhatsappclient_readMessages(this.__wbg_ptr,n,t);return k(r)}reconnect(){let e=u.wasmwhatsappclient_reconnect(this.__wbg_ptr);return k(e)}rejectCall(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=b(n,u.__wbindgen_export,u.__wbindgen_export2),i=g,c=u.wasmwhatsappclient_rejectCall(this.__wbg_ptr,t,r,a,i);return k(c)}relayMessageBytes(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=V(n,u.__wbindgen_export),c=g;var f=K(t)?0:b(t,u.__wbindgen_export,u.__wbindgen_export2),M=g;let S=u.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,r,a,i,c,f,M);return k(S)}removeGroupProfilePicture(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,n,t);return k(r)}removeProfilePicture(){let e=u.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return k(e)}requestMediaReupload(e,n,t,r,a){let i=b(e,u.__wbindgen_export,u.__wbindgen_export2),c=g,f=b(n,u.__wbindgen_export,u.__wbindgen_export2),M=g,S=V(t,u.__wbindgen_export),P=g;var w=K(a)?0:b(a,u.__wbindgen_export,u.__wbindgen_export2),D=g;let E=u.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,i,c,f,M,S,P,r,w,D);return k(E)}requestPairingCode(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g;var a=K(n)?0:b(n,u.__wbindgen_export,u.__wbindgen_export2),i=g;let c=u.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,t,r,a,i);return k(c)}revokeMessage(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=b(n,u.__wbindgen_export,u.__wbindgen_export2),c=g;var f=K(t)?0:b(t,u.__wbindgen_export,u.__wbindgen_export2),M=g;let S=u.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,r,a,i,c,f,M);return k(S)}run(){try{let t=u.__wbindgen_add_to_stack_pointer(-16);u.wasmwhatsappclient_run(t,this.__wbg_ptr);var e=L().getInt32(t+0,!0),n=L().getInt32(t+4,!0);if(n)throw k(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}sendChatState(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=u.wasmwhatsappclient_sendChatState(this.__wbg_ptr,t,r,_(n));return k(a)}sendMessageBytes(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=V(n,u.__wbindgen_export),i=g,c=u.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,t,r,a,i);return k(c)}sendNode(e){let n=u.wasmwhatsappclient_sendNode(this.__wbg_ptr,_(e));return k(n)}sendPresence(e){let n=u.wasmwhatsappclient_sendPresence(this.__wbg_ptr,_(e));return k(n)}sendRawMessage(e){let n=V(e,u.__wbindgen_export),t=g,r=u.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,n,t);return k(r)}sendStatusMessageBytes(e,n){let t=V(e,u.__wbindgen_export),r=g,a=J(n,u.__wbindgen_export),i=g,c=u.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,t,r,a,i);return k(c)}setAutoReconnect(e){u.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,e)}setClientProfile(e){let n=u.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,_(e));return k(n)}setDeviceProps(e){let n=u.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,_(e));return k(n)}setGroupProfilePicture(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=V(n,u.__wbindgen_export),i=g,c=u.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,t,r,a,i);return k(c)}setPushName(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_setPushName(this.__wbg_ptr,n,t);return k(r)}setRawNodeForwarding(e){u.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,e)}signalDecryptGroupMessage(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=b(n,u.__wbindgen_export,u.__wbindgen_export2),c=g,f=V(t,u.__wbindgen_export),M=g,S=u.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,r,a,i,c,f,M);return k(S)}signalDecryptMessage(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=b(n,u.__wbindgen_export,u.__wbindgen_export2),c=g,f=V(t,u.__wbindgen_export),M=g,S=u.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,r,a,i,c,f,M);return k(S)}signalDeleteSessions(e){let n=J(e,u.__wbindgen_export),t=g,r=u.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,n,t);return k(r)}signalEncryptGroupMessage(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=V(n,u.__wbindgen_export),c=g,f=b(t,u.__wbindgen_export,u.__wbindgen_export2),M=g,S=u.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,r,a,i,c,f,M);return k(S)}signalEncryptMessage(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=V(n,u.__wbindgen_export),i=g,c=u.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,t,r,a,i);return k(c)}signalValidateSession(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,n,t);return k(r)}starMessage(e,n,t){let r=b(e,u.__wbindgen_export,u.__wbindgen_export2),a=g,i=b(n,u.__wbindgen_export,u.__wbindgen_export2),c=g,f=u.wasmwhatsappclient_starMessage(this.__wbg_ptr,r,a,i,c,t);return k(f)}updateBlockStatus(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=u.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,t,r,_(n));return k(a)}updateDefaultDisappearingMode(e){let n=u.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,e);return k(n)}updateMemberLabel(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=b(n,u.__wbindgen_export,u.__wbindgen_export2),i=g,c=u.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,t,r,a,i);return k(c)}updatePrivacySetting(e,n){let t=b(e,u.__wbindgen_export,u.__wbindgen_export2),r=g,a=b(n,u.__wbindgen_export,u.__wbindgen_export2),i=g,c=u.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,t,r,a,i);return k(c)}updateProfilePicture(e){let n=V(e,u.__wbindgen_export),t=g,r=u.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,n,t);return k(r)}updateProfileStatus(e){let n=b(e,u.__wbindgen_export,u.__wbindgen_export2),t=g,r=u.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,n,t);return k(r)}uploadEncryptedMediaStream(e,n,t,r,a,i){let c=V(n,u.__wbindgen_export),f=g,M=V(t,u.__wbindgen_export),S=g,P=V(r,u.__wbindgen_export),w=g,D=u.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,_(e),c,f,M,S,P,w,a,_(i));return k(D)}uploadMedia(e,n){let t=V(e,u.__wbindgen_export),r=g,a=u.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,t,r,_(n));return k(a)}votePoll(e,n,t,r,a){let i=b(e,u.__wbindgen_export,u.__wbindgen_export2),c=g,f=b(n,u.__wbindgen_export,u.__wbindgen_export2),M=g,S=b(t,u.__wbindgen_export,u.__wbindgen_export2),P=g,w=V(r,u.__wbindgen_export),D=g,E=J(a,u.__wbindgen_export),Se=g,O=u.wasmwhatsappclient_votePoll(this.__wbg_ptr,i,c,f,M,S,P,w,D,E,Se);return k(O)}}if(Symbol.dispose)gn.prototype[Symbol.dispose]=gn.prototype.free;function Hu(e,n,t,r,a,i){let c=u.createWhatsAppClient(_(e),_(n),K(t)?0:_(t),K(r)?0:_(r),K(a)?0:_(a),K(i)?0:_(i));return k(c)}function u_(e,n,t,r,a,i,c){try{let D=u.__wbindgen_add_to_stack_pointer(-16),E=V(e,u.__wbindgen_export),Se=g,O=V(n,u.__wbindgen_export),C=g,cn=V(t,u.__wbindgen_export),_u=g,Pu=b(r,u.__wbindgen_export,u.__wbindgen_export2),Iu=g,n_=b(a,u.__wbindgen_export,u.__wbindgen_export2),T=g,t_=b(i,u.__wbindgen_export,u.__wbindgen_export2),i_=g,a_=J(c,u.__wbindgen_export),U=g;u.decryptPollVote(D,E,Se,O,C,cn,_u,Pu,Iu,n_,T,t_,i_,a_,U);var f=L().getInt32(D+0,!0),M=L().getInt32(D+4,!0),S=L().getInt32(D+8,!0),P=L().getInt32(D+12,!0);if(P)throw k(S);var w=rn(f,M).slice();return u.__wbindgen_export4(f,M*4,4),w}finally{u.__wbindgen_add_to_stack_pointer(16)}}function c_(e,n,t,r,a){try{let P=u.__wbindgen_add_to_stack_pointer(-16),w=J(e,u.__wbindgen_export),D=g,E=J(n,u.__wbindgen_export),Se=g,O=V(t,u.__wbindgen_export),C=g,cn=b(r,u.__wbindgen_export,u.__wbindgen_export2),_u=g,Pu=b(a,u.__wbindgen_export,u.__wbindgen_export2),Iu=g;u.getAggregateVotesInPollMessage(P,w,D,E,Se,O,C,cn,_u,Pu,Iu);var i=L().getInt32(P+0,!0),c=L().getInt32(P+4,!0),f=L().getInt32(P+8,!0),M=L().getInt32(P+12,!0);if(M)throw k(f);var S=rn(i,c).slice();return u.__wbindgen_export4(i,c*4,4),S}finally{u.__wbindgen_add_to_stack_pointer(16)}}function f_(){let e=u.getEnabledFeatures();return k(e)}function l_(){return u.getWasmMemoryBytes()}function qu(e,n){u.initWasmEngine(_(e),_(n))}function p_(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_ef53bc310eb298a0:function(n,t){let r=Error($(n,t));return _(r)},__wbg_Number_6b506e6536831eaa:function(n){return Number(y(n))},__wbg_String_8564e559799eccda:function(n,t){let r=String(y(t)),a=b(r,u.__wbindgen_export,u.__wbindgen_export2),i=g;L().setInt32(n+4,i,!0),L().setInt32(n+0,a,!0)},__wbg___wbindgen_bigint_get_as_i64_38130e98eecd467d:function(n,t){let r=y(t),a=typeof r==="bigint"?r:void 0;L().setBigInt64(n+8,K(a)?BigInt(0):a,!0),L().setInt32(n+0,!K(a),!0)},__wbg___wbindgen_boolean_get_1a45e2c38d4d41b9:function(n){let t=y(n),r=typeof t==="boolean"?t:void 0;return K(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_0accd80f45e5faa2:function(n,t){let r=Eu(y(t)),a=b(r,u.__wbindgen_export,u.__wbindgen_export2),i=g;L().setInt32(n+4,i,!0),L().setInt32(n+0,a,!0)},__wbg___wbindgen_in_70a403a56e771704:function(n,t){return y(n)in y(t)},__wbg___wbindgen_is_bigint_6ffd6468a9bc44b9:function(n){return typeof y(n)==="bigint"},__wbg___wbindgen_is_function_754e9f305ff6029e:function(n){return typeof y(n)==="function"},__wbg___wbindgen_is_null_87c3bfe968c6a5ad:function(n){return y(n)===null},__wbg___wbindgen_is_object_56732c2bc353f41d:function(n){let t=y(n);return typeof t==="object"&&t!==null},__wbg___wbindgen_is_string_c236cabd84a4d769:function(n){return typeof y(n)==="string"},__wbg___wbindgen_is_undefined_67b456be8673d3d7:function(n){return y(n)===void 0},__wbg___wbindgen_jsval_eq_1068e624fa87f6ab:function(n,t){return y(n)===y(t)},__wbg___wbindgen_jsval_loose_eq_2c56564c75129511:function(n,t){return y(n)==y(t)},__wbg___wbindgen_number_get_9bb1761122181af2:function(n,t){let r=y(t),a=typeof r==="number"?r:void 0;L().setFloat64(n+8,K(a)?0:a,!0),L().setInt32(n+0,!K(a),!0)},__wbg___wbindgen_string_get_72bdf95d3ae505b1:function(n,t){let r=y(t),a=typeof r==="string"?r:void 0;var i=K(a)?0:b(a,u.__wbindgen_export,u.__wbindgen_export2),c=g;L().setInt32(n+4,c,!0),L().setInt32(n+0,i,!0)},__wbg___wbindgen_throw_1506f2235d1bdba0:function(n,t){throw Error($(n,t))},__wbg__wbg_cb_unref_61db23ac97f16c31:function(n){y(n)._wbg_cb_unref()},__wbg_apply_292b6d94e4f92b15:function(){return G(function(n,t,r){let a=y(n).apply(y(t),y(r));return _(a)},arguments)},__wbg_bind_601537808b855b3a:function(n,t,r,a){let i=y(n).bind(y(t),y(r),y(a));return _(i)},__wbg_buffer_d370c8cae5692933:function(n){let t=y(n).buffer;return _(t)},__wbg_byobRequest_2c89fb4ab478fa09:function(n){let t=y(n).byobRequest;return K(t)?0:_(t)},__wbg_byteLength_2c6dc3b4b85d3547:function(n){return y(n).byteLength},__wbg_byteOffset_349aa9bf0a183eca:function(n){return y(n).byteOffset},__wbg_call_40e4174f169eaca7:function(){return G(function(n,t,r,a){let i=y(n).call(y(t),y(r),y(a));return _(i)},arguments)},__wbg_call_6e37a87ff352da3d:function(){return G(function(n,t,r,a,i){let c=y(n).call(y(t),y(r),y(a),y(i));return _(c)},arguments)},__wbg_call_7d39dd526ab44e10:function(){return G(function(n,t,r,a,i,c){let f=y(n).call(y(t),y(r),y(a),y(i),y(c));return _(f)},arguments)},__wbg_call_8a89609d89f6608a:function(){return G(function(n,t){let r=y(n).call(y(t));return _(r)},arguments)},__wbg_call_9c758de292015997:function(){return G(function(n,t,r){let a=y(n).call(y(t),y(r));return _(a)},arguments)},__wbg_cancel_3dedc1c2245a59d4:function(n){let t=y(n).cancel();return _(t)},__wbg_catch_17ae9c6dfb88ad8a:function(n,t){let r=y(n).catch(y(t));return _(r)},__wbg_close_314feea4ac97ebd4:function(n){let t=y(n).close();return _(t)},__wbg_close_4859304bbf0f8208:function(){return G(function(n){y(n).close()},arguments)},__wbg_close_6f12196fe155e8d2:function(){return G(function(n){y(n).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(n,t,r,a){y(n).debug(y(t),r===0?void 0:$(r,a))},__wbg_debug_6d96d354ecb8cdb3:function(n,t,r,a){console.debug(y(n),y(t),y(r),y(a))},__wbg_done_60cf307fcc680536:function(n){return y(n).done},__wbg_enqueue_09035479e2081625:function(){return G(function(n,t){y(n).enqueue(y(t))},arguments)},__wbg_entries_04b37a02507f1713:function(n){let t=Object.entries(y(n));return _(t)},__wbg_error_9ad1450feb5d541d:function(n,t,r,a){console.error(y(n),y(t),y(r),y(a))},__wbg_error_9cce413345f88385:function(n,t,r,a){y(n).error(y(t),r===0?void 0:$(r,a))},__wbg_error_a6fa202b58aa1cd3:function(n,t){let r,a;try{r=n,a=t,console.error($(n,t))}finally{u.__wbindgen_export4(r,a,1)}},__wbg_from_d300fe49deab18f5:function(n){let t=Array.from(y(n));return _(t)},__wbg_getRandomValues_76dfc69825c9c552:function(){return G(function(n,t){globalThis.crypto.getRandomValues(fn(n,t))},arguments)},__wbg_getReader_9facd4f899beac89:function(){return G(function(n){let t=y(n).getReader();return _(t)},arguments)},__wbg_getWriter_e5a67ff4a024ff3f:function(){return G(function(n){let t=y(n).getWriter();return _(t)},arguments)},__wbg_get_1f8f054ddbaa7db2:function(){return G(function(n,t){let r=Reflect.get(y(n),y(t));return _(r)},arguments)},__wbg_get_2b48c7d0d006a781:function(n,t){let r=y(n)[t>>>0];return _(r)},__wbg_get_de6a0f7d4d18a304:function(){return G(function(n,t){let r=Reflect.get(y(n),y(t));return _(r)},arguments)},__wbg_get_done_ea9eb315d4ec1e81:function(n){let t=y(n).done;return K(t)?16777215:t?1:0},__wbg_get_unchecked_33f6e5c9e2f2d6b2:function(n,t){let r=y(n)[t>>>0];return _(r)},__wbg_get_value_c68fe2e1a76c69ca:function(n){let t=y(n).value;return _(t)},__wbg_get_with_ref_key_6412cf3094599694:function(n,t){let r=y(n)[y(t)];return _(r)},__wbg_info_5cfb3f6c22c53cf9:function(n,t,r,a){console.info(y(n),y(t),y(r),y(a))},__wbg_info_b728e87a346ff6a2:function(n,t,r,a){y(n).info(y(t),r===0?void 0:$(r,a))},__wbg_instanceof_ArrayBuffer_8f49811467741499:function(n){let t;try{t=y(n)instanceof ArrayBuffer}catch(a){t=!1}return t},__wbg_instanceof_Array_470ae3493b426d30:function(n){let t;try{t=y(n)instanceof Array}catch(a){t=!1}return t},__wbg_instanceof_Map_9fc06d9a951bcee6:function(n){let t;try{t=y(n)instanceof Map}catch(a){t=!1}return t},__wbg_instanceof_Object_873c13f9f41aec78:function(n){let t;try{t=y(n)instanceof Object}catch(a){t=!1}return t},__wbg_instanceof_Promise_d0db99486956c8e8:function(n){let t;try{t=y(n)instanceof Promise}catch(a){t=!1}return t},__wbg_instanceof_Uint8Array_86f30649f63ef9c2:function(n){let t;try{t=y(n)instanceof Uint8Array}catch(a){t=!1}return t},__wbg_isArray_67c2c9c4313f4448:function(n){return Array.isArray(y(n))},__wbg_isSafeInteger_66acec27e09e99a7:function(n){return Number.isSafeInteger(y(n))},__wbg_iterator_8732428d309e270e:function(){return _(Symbol.iterator)},__wbg_keys_19cb80412a6f5349:function(n){let t=Object.keys(y(n));return _(t)},__wbg_length_4a591ecaa01354d9:function(n){return y(n).length},__wbg_length_66f1a4b2e9026940:function(n){return y(n).length},__wbg_level_4b50b181832c5acf:function(n,t){let r=y(t).level,a=b(r,u.__wbindgen_export,u.__wbindgen_export2),i=g;L().setInt32(n+4,i,!0),L().setInt32(n+0,a,!0)},__wbg_log_d5e0f90a3ac097e3:function(n,t,r,a){console.log(y(n),y(t),y(r),y(a))},__wbg_new_227d7c05414eb861:function(){let n=Error();return _(n)},__wbg_new_50bb5ebeecef71a8:function(n,t){let r=Error($(n,t));return _(r)},__wbg_new_578aeef4b6b94378:function(n){let t=new Uint8Array(y(n));return _(t)},__wbg_new_622fc80556be2e26:function(){return _(new Map)},__wbg_new_b682b81e8eaaf027:function(n,t){try{var r={a:n,b:t},a=(c,f)=>{let M=r.a;r.a=0;try{return Lu(M,r.b,c,f)}finally{r.a=M}};let i=new Promise(a);return _(i)}finally{r.a=0}},__wbg_new_ce1ab61c1c2b300d:function(){return _({})},__wbg_new_d90091b82fdf5b91:function(){return _([])},__wbg_new_from_slice_18fa1f71286d66b8:function(n,t){let r=new Uint8Array(fn(n,t));return _(r)},__wbg_new_typed_bf31d18f92484486:function(n,t){try{var r={a:n,b:t},a=(c,f)=>{let M=r.a;r.a=0;try{return Lu(M,r.b,c,f)}finally{r.a=M}};let i=new Promise(a);return _(i)}finally{r.a=0}},__wbg_new_with_byte_offset_and_length_d836f26d916dd9ad:function(n,t,r){let a=new Uint8Array(y(n),t>>>0,r>>>0);return _(a)},__wbg_new_with_into_underlying_source_fd904252f385f59c:function(n,t){let r=new ReadableStream(Mn.__wrap(n),k(t));return _(r)},__wbg_new_with_length_690552eb9e6aeac9:function(n){let t=Array(n>>>0);return _(t)},__wbg_next_9e03acdf51c4960d:function(n){let t=y(n).next;return _(t)},__wbg_next_eb8ca7351fa27906:function(){return G(function(n){let t=y(n).next();return _(t)},arguments)},__wbg_now_190933fa139cc119:function(){return Date.now()},__wbg_now_e60b554600f4a25f:function(){return G(function(){return performance.now()},arguments)},__wbg_of_7ce26f06fd728a60:function(n,t,r,a){let i=Array.of(y(n),y(t),y(r),y(a));return _(i)},__wbg_prototypesetcall_3249fc62a0fafa30:function(n,t,r){Uint8Array.prototype.set.call(fn(n,t),y(r))},__wbg_push_a6822215aa43e71c:function(n,t){return y(n).push(y(t))},__wbg_queueMicrotask_35c611f4a14830b2:function(n){queueMicrotask(y(n))},__wbg_queueMicrotask_404ed0a58e0b63cc:function(n){let t=y(n).queueMicrotask;return _(t)},__wbg_read_282e152a24fd0856:function(n){let t=y(n).read();return _(t)},__wbg_ready_ba02797ecc47768b:function(n){let t=y(n).ready;return _(t)},__wbg_releaseLock_5b339d918941b349:function(n){y(n).releaseLock()},__wbg_releaseLock_cd76770b7f82a961:function(n){y(n).releaseLock()},__wbg_resolve_25a7e548d5881dca:function(n){let t=Promise.resolve(y(n));return _(t)},__wbg_respond_33b6f330b6d299fd:function(){return G(function(n,t){y(n).respond(t>>>0)},arguments)},__wbg_set_29c99a8aac1c01e5:function(n,t,r){y(n).set(fn(t,r))},__wbg_set_52b1e1eb5bed906a:function(n,t,r){let a=y(n).set(y(t),y(r));return _(a)},__wbg_set_6be42768c690e380:function(n,t,r){y(n)[k(t)]=k(r)},__wbg_set_6e30c9374c26414c:function(){return G(function(n,t,r){return Reflect.set(y(n),y(t),y(r))},arguments)},__wbg_set_dca99999bba88a9a:function(n,t,r){y(n)[t>>>0]=k(r)},__wbg_set_high_water_mark_cf5739ae16ac842f:function(n,t){y(n).highWaterMark=t},__wbg_set_name_3c3fc49c8f747e56:function(n,t,r){y(n).name=$(t,r)},__wbg_stack_3b0d974bbf31e44f:function(n,t){let r=y(t).stack,a=b(r,u.__wbindgen_export,u.__wbindgen_export2),i=g;L().setInt32(n+4,i,!0),L().setInt32(n+0,a,!0)},__wbg_static_accessor_GLOBAL_9d53f2689e622ca1:function(){let n=typeof global>"u"?null:global;return K(n)?0:_(n)},__wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a:function(){let n=typeof globalThis>"u"?null:globalThis;return K(n)?0:_(n)},__wbg_static_accessor_SELF_4c59f6c7ea29a144:function(){let n=typeof self>"u"?null:self;return K(n)?0:_(n)},__wbg_static_accessor_WINDOW_e70ae9f2eb052253:function(){let n=typeof window>"u"?null:window;return K(n)?0:_(n)},__wbg_then_18f476d590e58992:function(n,t,r){let a=y(n).then(y(t),y(r));return _(a)},__wbg_then_ac7b025999b52837:function(n,t){let r=y(n).then(y(t));return _(r)},__wbg_trace_58264fbce2ceb5e6:function(n,t,r,a){y(n).trace(y(t),r===0?void 0:$(r,a))},__wbg_value_f3625092ee4b37f4:function(n){let t=y(n).value;return _(t)},__wbg_view_d523e3b92648b62c:function(n){let t=y(n).view;return K(t)?0:_(t)},__wbg_warn_c49a7a9581bf8bea:function(n,t,r,a){console.warn(y(n),y(t),y(r),y(a))},__wbg_warn_db531770752932a9:function(n,t,r,a){y(n).warn(y(t),r===0?void 0:$(r,a))},__wbg_wasmwhatsappclient_new:function(n){let t=gn.__wrap(n);return _(t)},__wbg_write_6d16f58ddd0cc861:function(n,t){let r=y(n).write(y(t));return _(r)},__wbindgen_cast_0000000000000001:function(n,t){let r=Ys(n,t,M_);return _(r)},__wbindgen_cast_0000000000000002:function(n,t){let r=Ys(n,t,h_);return _(r)},__wbindgen_cast_0000000000000003:function(n,t){let r=Ys(n,t,g_);return _(r)},__wbindgen_cast_0000000000000004:function(n,t){let r=Ys(n,t,y_);return _(r)},__wbindgen_cast_0000000000000005:function(n){return _(n)},__wbindgen_cast_0000000000000006:function(n){return _(n)},__wbindgen_cast_0000000000000007:function(n,t){let r=fn(n,t);return _(r)},__wbindgen_cast_0000000000000008:function(n,t){let r=$(n,t);return _(r)},__wbindgen_cast_0000000000000009:function(n){let t=BigInt.asUintN(64,n);return _(t)},__wbindgen_cast_000000000000000a:function(n,t){var r=rn(n,t).slice();return u.__wbindgen_export4(n,t*4,4),_(r)},__wbindgen_cast_000000000000000b:function(n,t){var r=rn(n,t).slice();return u.__wbindgen_export4(n,t*4,4),_(r)},__wbindgen_cast_000000000000000c:function(n,t){var r=rn(n,t).slice();return u.__wbindgen_export4(n,t*4,4),_(r)},__wbindgen_cast_000000000000000d:function(n,t){var r=rn(n,t).slice();return u.__wbindgen_export4(n,t*4,4),_(r)},__wbindgen_cast_000000000000000e:function(n,t){var r=rn(n,t).slice();return u.__wbindgen_export4(n,t*4,4),_(r)},__wbindgen_object_clone_ref:function(n){let t=y(n);return _(t)},__wbindgen_object_drop_ref:function(n){k(n)}}}}function y_(e,n){u.__wasm_bindgen_func_elem_2633(e,n)}function M_(e,n,t){u.__wasm_bindgen_func_elem_6706(e,n,_(t))}function g_(e,n,t){u.__wasm_bindgen_func_elem_2634(e,n,_(t))}function h_(e,n,t){try{let i=u.__wbindgen_add_to_stack_pointer(-16);u.__wasm_bindgen_func_elem_20591(i,e,n,_(t));var r=L().getInt32(i+0,!0),a=L().getInt32(i+4,!0);if(a)throw k(r)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function Lu(e,n,t,r){u.__wasm_bindgen_func_elem_20593(e,n,_(t),_(r))}var A_=["bytes"],m_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e)=>u.__wbg_intounderlyingbytesource_free(e,1)),S_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e)=>u.__wbg_intounderlyingsink_free(e,1)),Fu=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e)=>u.__wbg_intounderlyingsource_free(e,1)),Vu=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e)=>u.__wbg_wasmwhatsappclient_free(e,1));function _(e){if(pn===ke.length)ke.push(ke.length+1);let n=pn;return pn=ke[n],ke[n]=e,n}var Ku=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e)=>u.__wbindgen_export5(e.a,e.b));function Eu(e){let n=typeof e;if(n=="number"||n=="boolean"||e==null)return`${e}`;if(n=="string")return`"${e}"`;if(n=="symbol"){let a=e.description;if(a==null)return"Symbol";else return`Symbol(${a})`}if(n=="function"){let a=e.name;if(typeof a=="string"&&a.length>0)return`Function(${a})`;else return"Function"}if(Array.isArray(e)){let a=e.length,i="[";if(a>0)i+=Eu(e[0]);for(let c=1;c<a;c++)i+=", "+Eu(e[c]);return i+="]",i}let t=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(t&&t.length>1)r=t[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch(a){return"Object"}if(e instanceof Error)return`${e.name}: ${e.message}
${e.stack}`;return r}function k_(e){if(e<1028)return;ke[e]=pn,pn=e}function rn(e,n){e=e>>>0;let t=L(),r=[];for(let a=e;a<e+4*n;a+=4)r.push(k(t.getUint32(a,!0)));return r}function fn(e,n){return e=e>>>0,un().subarray(e/1,e/1+n)}var an=null;function L(){if(an===null||an.buffer.detached===!0||an.buffer.detached===void 0&&an.buffer!==u.memory.buffer)an=new DataView(u.memory.buffer);return an}function $(e,n){return P_(e>>>0,n)}var ln=null;function un(){if(ln===null||ln.byteLength===0)ln=new Uint8Array(u.memory.buffer);return ln}function y(e){return ke[e]}function G(e,n){try{return e.apply(this,n)}catch(t){u.__wbindgen_export3(_(t))}}var ke=Array(1024).fill(void 0);ke.push(void 0,null,!0,!1);var pn=ke.length;function K(e){return e===void 0||e===null}function Ys(e,n,t){let r={a:e,b:n,cnt:1},a=(...i)=>{r.cnt++;let c=r.a;r.a=0;try{return t(c,r.b,...i)}finally{r.a=c,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{if(--r.cnt===0)u.__wbindgen_export5(r.a,r.b),r.a=0,Ku.unregister(r)},Ku.register(a,r,r),a}function V(e,n){let t=n(e.length*1,1)>>>0;return un().set(e,t/1),g=e.length,t}function J(e,n){let t=n(e.length*4,4)>>>0,r=L();for(let a=0;a<e.length;a++)r.setUint32(t+4*a,_(e[a]),!0);return g=e.length,t}function b(e,n,t){if(t===void 0){let f=yn.encode(e),M=n(f.length,1)>>>0;return un().subarray(M,M+f.length).set(f),g=f.length,M}let r=e.length,a=n(r,1)>>>0,i=un(),c=0;for(;c<r;c++){let f=e.charCodeAt(c);if(f>127)break;i[a+c]=f}if(c!==r){if(c!==0)e=e.slice(c);a=t(a,r,r=c+e.length*3,1)>>>0;let f=un().subarray(a+c,a+r),M=yn.encodeInto(e,f);c+=M.written,a=t(a,r,c,1)>>>0}return g=c,a}function k(e){let n=y(e);return k_(e),n}var Zs=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Zs.decode();var __=2146435072,bu=0;function P_(e,n){if(bu+=n,bu>=__)Zs=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Zs.decode(),bu=n;return Zs.decode(un().subarray(e,e+n))}var yn=new TextEncoder;if(!("encodeInto"in yn))yn.encodeInto=function(e,n){let t=yn.encode(e);return n.set(t),{read:e.length,written:t.length}};var g=0,I_,b_,u;function R_(e,n){return b_=e,u=e.exports,I_=n,an=null,ln=null,u}function Wu(e){if(u!==void 0)return u;if(e!==void 0)if(Object.getPrototypeOf(e)===Object.prototype)({module:e}=e);else console.warn("using deprecated parameters for `initSync()`; pass a single object instead");let n=p_();if(!(e instanceof WebAssembly.Module))e=new WebAssembly.Module(e);let t=new WebAssembly.Instance(e,n);return R_(t,e)}var zs={};s_(zs,{protobufPackage:()=>T_,WebNotificationsInfo:()=>Xk,WebMessageInfo_StubType:()=>Ak,WebMessageInfo_Status:()=>hk,WebMessageInfo_BizPrivacyStatus:()=>gk,WebMessageInfo:()=>X,WebLinkRenderConfig:()=>d3,WebFeatures_Flag:()=>Mk,WebFeatures:()=>Zk,WallpaperSettings:()=>oe,VerifiedNameCertificate_Details:()=>ku,VerifiedNameCertificate:()=>me,UserReceipt:()=>Qs,UserPassword_TransformerArg_Value:()=>Js,UserPassword_TransformerArg:()=>Gs,UserPassword_Transformer:()=>yk,UserPassword_Encoding:()=>pk,UserPassword:()=>Ws,UrlTrackingMap_UrlTrackingMapElement:()=>qs,UrlTrackingMap:()=>tn,ThreadID_ThreadType:()=>lk,ThreadID:()=>Hs,TemplateButton_URLButton:()=>Ks,TemplateButton_QuickReplyButton:()=>Vs,TemplateButton_CallButton:()=>Fs,TemplateButton:()=>Ls,TapLinkAction:()=>Os,SyncdVersion:()=>nn,SyncdValue:()=>ws,SyncdSnapshot:()=>Su,SyncdRecord:()=>Ae,SyncdPatch:()=>mu,SyncdMutations:()=>Au,SyncdMutation_SyncdOperation:()=>fk,SyncdMutation:()=>he,SyncdIndex:()=>Ts,SyncActionValue_WamoUserIdentifierAction:()=>Ns,SyncActionValue_WaffleAccountLinkStateAction_AccountLinkState:()=>ck,SyncActionValue_WaffleAccountLinkStateAction:()=>Us,SyncActionValue_UsernameChatStartModeAction_ChatStartMode:()=>uk,SyncActionValue_UsernameChatStartModeAction:()=>xs,SyncActionValue_UserStatusMuteAction:()=>Cs,SyncActionValue_UnarchiveChatsSetting:()=>vs,SyncActionValue_UGCBot:()=>Bs,SyncActionValue_TimeFormatAction:()=>Es,SyncActionValue_ThreadPinAction:()=>Ds,SyncActionValue_SyncActionMessageRange:()=>Z,SyncActionValue_SyncActionMessage:()=>Rs,SyncActionValue_SubscriptionsSyncV2Action_SubscriptionInfo:()=>bs,SyncActionValue_SubscriptionsSyncV2Action_PaidFeature:()=>Is,SyncActionValue_SubscriptionsSyncV2Action:()=>Ps,SyncActionValue_SubscriptionAction:()=>_s,SyncActionValue_StickerAction:()=>en,SyncActionValue_StatusPrivacyAction_StatusDistributionMode:()=>sk,SyncActionValue_StatusPrivacyAction_CustomList:()=>ks,SyncActionValue_StatusPrivacyAction:()=>Ss,SyncActionValue_StatusPostOptInNotificationPreferencesAction:()=>ms,SyncActionValue_StarAction:()=>As,SyncActionValue_SettingsSyncAction_SettingPlatform:()=>dk,SyncActionValue_SettingsSyncAction_SettingKey:()=>ok,SyncActionValue_SettingsSyncAction_MediaQualitySetting:()=>rk,SyncActionValue_SettingsSyncAction_DisplayMode:()=>ak,SyncActionValue_SettingsSyncAction:()=>hs,SyncActionValue_RemoveRecentStickerAction:()=>gs,SyncActionValue_RecentEmojiWeightsAction:()=>Ms,SyncActionValue_QuickReplyAction:()=>ys,SyncActionValue_PushNameSetting:()=>ps,SyncActionValue_PrivateProcessingSettingAction_PrivateProcessingStatus:()=>ik,SyncActionValue_PrivateProcessingSettingAction:()=>ls,SyncActionValue_PrivacySettingRelayAllCalls:()=>fs,SyncActionValue_PrivacySettingDisableLinkPreviewsAction:()=>cs,SyncActionValue_PrivacySettingChannelsPersonalisedRecommendationAction:()=>us,SyncActionValue_PrimaryVersionAction:()=>ss,SyncActionValue_PrimaryFeature:()=>ds,SyncActionValue_PnForLidChatAction:()=>os,SyncActionValue_PinAction:()=>rs,SyncActionValue_PaymentTosAction_PaymentNotice:()=>tk,SyncActionValue_PaymentTosAction:()=>as,SyncActionValue_PaymentInfoAction:()=>is,SyncActionValue_OutContactAction:()=>ts,SyncActionValue_NuxAction:()=>ns,SyncActionValue_NotificationActivitySettingAction_NotificationActivitySetting:()=>nk,SyncActionValue_NotificationActivitySettingAction:()=>es,SyncActionValue_NoteEditAction_NoteType:()=>ek,SyncActionValue_NoteEditAction:()=>jd,SyncActionValue_NewsletterSavedInterestsAction:()=>$d,SyncActionValue_NctSaltSyncAction:()=>Xd,SyncActionValue_MuteAction:()=>Zd,SyncActionValue_MusicUserIdAction_MusicUserIdMapEntry:()=>nu,SyncActionValue_MusicUserIdAction:()=>Yd,SyncActionValue_MerchantPaymentPartnerAction_Status:()=>jS,SyncActionValue_MerchantPaymentPartnerAction:()=>zd,SyncActionValue_MarketingMessageBroadcastAction:()=>Qd,SyncActionValue_MarketingMessageAction_MarketingMessagePrototypeType:()=>$S,SyncActionValue_MarketingMessageAction:()=>Jd,SyncActionValue_MarkChatAsReadAction:()=>Gd,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIFeatureStatus:()=>XS,SyncActionValue_MaibaAIFeaturesControlAction:()=>Wd,SyncActionValue_LockChatAction:()=>qd,SyncActionValue_LocaleSetting:()=>Hd,SyncActionValue_LidContactAction:()=>Kd,SyncActionValue_LabelReorderingAction:()=>Vd,SyncActionValue_LabelEditAction_ListType:()=>ZS,SyncActionValue_LabelEditAction:()=>Fd,SyncActionValue_LabelAssociationAction:()=>Ld,SyncActionValue_KeyExpiration:()=>Od,SyncActionValue_InteractiveMessageAction_InteractiveMessageActionMode:()=>YS,SyncActionValue_InteractiveMessageAction:()=>wd,SyncActionValue_FavoritesAction_Favorite:()=>Td,SyncActionValue_FavoritesAction:()=>Nd,SyncActionValue_ExternalWebBetaAction:()=>Ud,SyncActionValue_DetectedOutcomesStatusAction:()=>xd,SyncActionValue_DeleteMessageForMeAction:()=>Cd,SyncActionValue_DeleteIndividualCallLogAction:()=>vd,SyncActionValue_DeleteChatAction:()=>Bd,SyncActionValue_CustomerDataAction:()=>Ed,SyncActionValue_CustomPaymentMethodsAction:()=>Dd,SyncActionValue_CustomPaymentMethodMetadata:()=>Rd,SyncActionValue_CustomPaymentMethod:()=>bd,SyncActionValue_CtwaPerCustomerDataSharingAction:()=>Id,SyncActionValue_ContactAction:()=>Pd,SyncActionValue_ClearChatAction:()=>_d,SyncActionValue_ChatAssignmentOpenedStatusAction:()=>kd,SyncActionValue_ChatAssignmentAction:()=>Sd,SyncActionValue_CallLogAction:()=>md,SyncActionValue_BusinessBroadcastListAction:()=>Ad,SyncActionValue_BusinessBroadcastInsightsAction:()=>hd,SyncActionValue_BusinessBroadcastCampaignStatus:()=>QS,SyncActionValue_BusinessBroadcastCampaignAction:()=>gd,SyncActionValue_BusinessBroadcastAssociationAction:()=>Yk,SyncActionValue_BroadcastListParticipant:()=>Md,SyncActionValue_BotWelcomeRequestAction:()=>yd,SyncActionValue_AvatarUpdatedAction_AvatarEventType:()=>zS,SyncActionValue_AvatarUpdatedAction:()=>pd,SyncActionValue_ArchiveChatAction:()=>ld,SyncActionValue_AndroidUnsupportedActions:()=>fd,SyncActionValue_AiThreadRenameAction:()=>cd,SyncActionValue_AgentAction:()=>ud,SyncActionValue:()=>sn,SyncActionData:()=>hu,StickerMetadata:()=>sd,StatusPSA:()=>dd,StatusMentionMessage:()=>od,StatusAttribution_Type:()=>HS,StatusAttribution_StatusReshare_Source:()=>JS,StatusAttribution_StatusReshare_Metadata:()=>rd,StatusAttribution_StatusReshare:()=>ad,StatusAttribution_RLAttribution_Source:()=>GS,StatusAttribution_RLAttribution:()=>id,StatusAttribution_Music:()=>td,StatusAttribution_GroupStatus:()=>nd,StatusAttribution_ExternalShare_Source:()=>WS,StatusAttribution_ExternalShare:()=>ed,StatusAttribution_AiCreatedAttribution_Source:()=>qS,StatusAttribution_AiCreatedAttribution:()=>jo,StatusAttribution:()=>$o,SignedPreKeyRecordStructure:()=>zk,SignalMessage:()=>Qk,SessionTransparencyType:()=>o3,SessionTransparencyMetadata:()=>Xo,SessionStructure_PendingPreKey:()=>Zo,SessionStructure_PendingKeyExchange:()=>Yo,SessionStructure_Chain_MessageKey:()=>zo,SessionStructure_Chain_ChainKey:()=>Qo,SessionStructure_Chain:()=>Ue,SessionStructure:()=>xe,ServerErrorReceipt:()=>gu,SenderKeyStateStructure_SenderSigningKey:()=>Jo,SenderKeyStateStructure_SenderMessageKey:()=>Go,SenderKeyStateStructure_SenderChainKey:()=>Wo,SenderKeyStateStructure:()=>qo,SenderKeyRecordStructure:()=>Jk,SenderKeyMessage:()=>Mu,SenderKeyDistributionMessage:()=>yu,ReportingTokenInfo:()=>Ho,Reportable:()=>Gk,RecordStructure:()=>Wk,RecentEmojiWeight:()=>Ko,Reaction:()=>Vo,QuarantinedMessage:()=>Fo,Pushname:()=>Lo,ProloguePayload:()=>qk,ProcessedVideo_VideoQuality:()=>KS,ProcessedVideo:()=>Oo,PrivacySystemMessage:()=>r3,PrimaryEphemeralIdentity:()=>Hk,PremiumMessageInfo:()=>wo,PreKeySignalMessage:()=>Kk,PreKeyRecordStructure:()=>Vk,PollUpdate:()=>To,PollEncValue:()=>No,PollAdditionalMetadata:()=>Uo,Point:()=>xo,PinInChat_Type:()=>VS,PinInChat:()=>Co,PhotoChange:()=>vo,PhoneNumberToLIDMapping:()=>Bo,PaymentInfo_TxnStatus:()=>FS,PaymentInfo_Status:()=>LS,PaymentInfo_Currency:()=>OS,PaymentInfo:()=>Ce,PaymentBackground_Type:()=>wS,PaymentBackground_MediaData:()=>Eo,PaymentBackground:()=>je,PatchDebugData_Platform:()=>TS,PatchDebugData:()=>Fk,PastParticipants:()=>Do,PastParticipant_LeaveReason:()=>NS,PastParticipant:()=>Ro,PairingRequest:()=>Lk,NotificationSettings:()=>ve,NotificationMessageInfo:()=>Ok,NoiseCertificate_Details:()=>wk,NoiseCertificate:()=>Tk,MutationProps:()=>a3,MsgRowOpaqueData:()=>Nk,MsgOpaqueData_PollVotesSnapshot:()=>bo,MsgOpaqueData_PollVoteSnapshot:()=>Io,MsgOpaqueData_PollType:()=>US,MsgOpaqueData_PollOption:()=>$e,MsgOpaqueData_PollContentType:()=>xS,MsgOpaqueData_EventLocation:()=>Po,MsgOpaqueData:()=>Be,Money:()=>re,Message_VideoMessage_VideoSourceType:()=>ES,Message_VideoMessage_Attribution:()=>DS,Message_VideoMessage:()=>q,Message_VideoEndCard:()=>So,Message_URLMetadata:()=>mo,Message_TemplateMessage_HydratedFourRowTemplate:()=>Ee,Message_TemplateMessage_FourRowTemplate:()=>Ao,Message_TemplateMessage:()=>Ye,Message_TemplateButtonReplyMessage:()=>ho,Message_StickerSyncRMRMessage:()=>go,Message_StickerPackMessage_StickerPackOrigin:()=>RS,Message_StickerPackMessage_Sticker:()=>Mo,Message_StickerPackMessage:()=>yo,Message_StickerMessage:()=>ze,Message_StatusStickerInteractionMessage_StatusStickerType:()=>bS,Message_StatusStickerInteractionMessage:()=>po,Message_StatusQuotedMessage_StatusQuotedMessageType:()=>IS,Message_StatusQuotedMessage:()=>lo,Message_StatusQuestionAnswerMessage:()=>fo,Message_StatusNotificationMessage_StatusNotificationType:()=>PS,Message_StatusNotificationMessage:()=>co,Message_SenderKeyDistributionMessage:()=>De,Message_SendPaymentMessage:()=>uo,Message_SecretEncryptedMessage_SecretEncType:()=>_S,Message_SecretEncryptedMessage:()=>so,Message_ScheduledCallEditMessage_EditType:()=>kS,Message_ScheduledCallEditMessage:()=>oo,Message_ScheduledCallCreationMessage_CallType:()=>SS,Message_ScheduledCallCreationMessage:()=>ro,Message_RequestWelcomeMessageMetadata_WelcomeTrigger:()=>mS,Message_RequestWelcomeMessageMetadata_LocalChatState:()=>AS,Message_RequestWelcomeMessageMetadata:()=>ao,Message_RequestPhoneNumberMessage:()=>io,Message_RequestPaymentMessage:()=>to,Message_ReactionMessage:()=>no,Message_QuestionResponseMessage:()=>eo,Message_ProtocolMessage_Type:()=>hS,Message_ProtocolMessage:()=>jr,Message_ProductMessage_ProductSnapshot:()=>$r,Message_ProductMessage_CatalogSnapshot:()=>Xr,Message_ProductMessage:()=>Qe,Message_PollVoteMessage:()=>ge,Message_PollUpdateMessageMetadata:()=>Zr,Message_PollUpdateMessage:()=>Yr,Message_PollType:()=>Om,Message_PollResultSnapshotMessage_PollVote:()=>zr,Message_PollResultSnapshotMessage:()=>Re,Message_PollEncValue:()=>Qr,Message_PollCreationMessage_Option:()=>ae,Message_PollCreationMessage:()=>Q,Message_PollContentType:()=>wm,Message_PollAddOptionMessage:()=>Jr,Message_PlaceholderMessage_PlaceholderType:()=>gS,Message_PlaceholderMessage:()=>Gr,Message_PinInChatMessage_Type:()=>MS,Message_PinInChatMessage:()=>Wr,Message_PeerDataOperationRequestType:()=>Tm,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_WaffleNonceFetchResponse:()=>qr,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_SyncDSnapshotFatalRecoveryResponse:()=>Hr,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_PlaceholderMessageResendResponse:()=>Kr,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_PaymentLinkPreviewMetadata:()=>Vr,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_LinkPreviewHighQualityThumbnail:()=>Fr,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse:()=>Lr,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponseCode:()=>yS,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponse:()=>Or,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandResponseCode:()=>pS,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandRequestResponse:()=>wr,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FlowResponsesCsvBundle:()=>Tr,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionMetaNonceFetchResponse:()=>Nr,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionCanonicalUserNonceFetchResponse:()=>Ur,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactState:()=>xr,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactListResponse:()=>Cr,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult:()=>vr,Message_PeerDataOperationRequestResponseMessage:()=>Br,Message_PeerDataOperationRequestMessage_SyncDCollectionFatalRecoveryRequest:()=>Er,Message_PeerDataOperationRequestMessage_RequestUrlPreview:()=>Dr,Message_PeerDataOperationRequestMessage_RequestStickerReupload:()=>Rr,Message_PeerDataOperationRequestMessage_PlaceholderMessageResendRequest:()=>br,Message_PeerDataOperationRequestMessage_HistorySyncOnDemandRequest:()=>Ir,Message_PeerDataOperationRequestMessage_HistorySyncChunkRetryR