@oxidezap/whatsapp-rust-bridge 0.6.0 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var zR=Object.defineProperty;var YR=(e)=>e;function ZR(e,n){this[e]=YR.bind(null,n)}var XR=(e,n)=>{for(var i in n)zR(e,i,{get:n[i],enumerable:!0,configurable:!0,set:ZR.bind(n,i)})};import{readFileSync as tD}from"node:fs";class sf{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,d1.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,S(e));return g(n)}start(e){u.intounderlyingbytesource_start(this.__wbg_ptr,S(e))}get type(){let e=u.intounderlyingbytesource_type(this.__wbg_ptr);return r1[e]}}if(Symbol.dispose)sf.prototype[Symbol.dispose]=sf.prototype.free;class uf{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,o1.unregister(this),e}free(){let e=this.__destroy_into_raw();u.__wbg_intounderlyingsink_free(e,0)}abort(e){let n=this.__destroy_into_raw(),i=u.intounderlyingsink_abort(n,S(e));return g(i)}close(){let e=this.__destroy_into_raw(),n=u.intounderlyingsink_close(e);return g(n)}write(e){let n=u.intounderlyingsink_write(this.__wbg_ptr,S(e));return g(n)}}if(Symbol.dispose)uf.prototype[Symbol.dispose]=uf.prototype.free;class Wn{static __wrap(e){let n=Object.create(Wn.prototype);return n.__wbg_ptr=e,Ef.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Ef.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,S(e));return g(n)}}if(Symbol.dispose)Wn.prototype[Symbol.dispose]=Wn.prototype.free;class Hn{static __wrap(e){let n=Object.create(Hn.prototype);return n.__wbg_ptr=e,Bf.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Bf.unregister(this),e}free(){let e=this.__destroy_into_raw();u.__wbg_wasmwhatsappclient_free(e,0)}acknowledgeStanza(e){let n=u.wasmwhatsappclient_acknowledgeStanza(this.__wbg_ptr,S(e));return g(n)}addLidPnMappings(e){let n=z(e,u.__wbindgen_export),i=l,r=u.wasmwhatsappclient_addLidPnMappings(this.__wbg_ptr,n,i);return g(r)}archiveChat(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=u.wasmwhatsappclient_archiveChat(this.__wbg_ptr,i,r,n);return g(a)}assertSessions(e,n){let i=z(e,u.__wbindgen_export),r=l,a=u.wasmwhatsappclient_assertSessions(this.__wbg_ptr,i,r,n);return g(a)}clearChat(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=u.wasmwhatsappclient_clearChat(this.__wbg_ptr,r,a,n,i);return g(t)}communityFetchAllParticipating(){let e=u.wasmwhatsappclient_communityFetchAllParticipating(this.__wbg_ptr);return g(e)}communityParticipantsUpdate(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=z(n,u.__wbindgen_export),o=l,f=u.wasmwhatsappclient_communityParticipantsUpdate(this.__wbg_ptr,r,a,t,o,S(i));return g(f)}connect(){let e=u.wasmwhatsappclient_connect(this.__wbg_ptr);return g(e)}createCommunity(e,n,i,r,a){let t=h(e,u.__wbindgen_export,u.__wbindgen_export2),o=l;var f=W(n)?0:h(n,u.__wbindgen_export,u.__wbindgen_export2),y=l;let p=u.wasmwhatsappclient_createCommunity(this.__wbg_ptr,t,o,f,y,i,r,a);return g(p)}createCommunitySubgroup(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=z(n,u.__wbindgen_export),o=l,f=h(i,u.__wbindgen_export,u.__wbindgen_export2),y=l,p=u.wasmwhatsappclient_createCommunitySubgroup(this.__wbg_ptr,r,a,t,o,f,y);return g(p)}createGroup(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=z(n,u.__wbindgen_export),t=l,o=u.wasmwhatsappclient_createGroup(this.__wbg_ptr,i,r,a,t);return g(o)}createParticipantNodesBytes(e,n,i){let r=z(e,u.__wbindgen_export),a=l,t=w(n,u.__wbindgen_export),o=l,f=u.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,r,a,t,o,S(i));return g(f)}createPoll(e,n,i,r){let a=h(e,u.__wbindgen_export,u.__wbindgen_export2),t=l,o=h(n,u.__wbindgen_export,u.__wbindgen_export2),f=l,y=z(i,u.__wbindgen_export),p=l,k=u.wasmwhatsappclient_createPoll(this.__wbg_ptr,a,t,o,f,y,p,r);return g(k)}deactivateCommunity(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_deactivateCommunity(this.__wbg_ptr,n,i);return g(r)}deleteChat(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_deleteChat(this.__wbg_ptr,n,i);return g(r)}deleteMessageForMe(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=h(n,u.__wbindgen_export,u.__wbindgen_export2),o=l,f=u.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,r,a,t,o,i);return g(f)}disconnect(){let e=u.wasmwhatsappclient_disconnect(this.__wbg_ptr);return g(e)}downloadMedia(e,n,i,r,a,t){let o=h(e,u.__wbindgen_export,u.__wbindgen_export2),f=l,y=w(n,u.__wbindgen_export),p=l,k=w(i,u.__wbindgen_export),x=l,E=w(r,u.__wbindgen_export),P=l,R=u.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,o,f,y,p,k,x,E,P,a,S(t));return g(R)}downloadMediaStream(e,n,i,r,a,t){try{let p=u.__wbindgen_add_to_stack_pointer(-16),k=h(e,u.__wbindgen_export,u.__wbindgen_export2),x=l,E=w(n,u.__wbindgen_export),P=l,R=w(i,u.__wbindgen_export),V=l,B=w(r,u.__wbindgen_export),K=l;u.wasmwhatsappclient_downloadMediaStream(p,this.__wbg_ptr,k,x,E,P,R,V,B,K,a,S(t));var o=v().getInt32(p+0,!0),f=v().getInt32(p+4,!0),y=v().getInt32(p+8,!0);if(y)throw g(f);return g(o)}finally{u.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=h(n,u.__wbindgen_export,u.__wbindgen_export2),o=l,f=w(i,u.__wbindgen_export),y=l,p=u.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,r,a,t,o,f,y);return g(p)}encryptMediaStream(e,n,i){let r=u.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,S(e),S(n),S(i));return g(r)}ensurePreKeys(){let e=u.wasmwhatsappclient_ensurePreKeys(this.__wbg_ptr);return g(e)}fetchBlocklist(){let e=u.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return g(e)}fetchMessageHistory(e,n,i,r,a){let t=h(n,u.__wbindgen_export,u.__wbindgen_export2),o=l,f=h(i,u.__wbindgen_export,u.__wbindgen_export2),y=l,p=u.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,e,t,o,f,y,r,a);return g(p)}fetchPrivacySettings(){let e=u.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return g(e)}fetchReachoutTimelock(){let e=u.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return g(e)}fetchStatus(e){let n=z(e,u.__wbindgen_export),i=l,r=u.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,n,i);return g(r)}fetchUserInfo(e){let n=z(e,u.__wbindgen_export),i=l,r=u.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,n,i);return g(r)}getAccount(){let e=u.wasmwhatsappclient_getAccount(this.__wbg_ptr);return g(e)}getBusinessProfile(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,n,i);return g(r)}getCommunitySubgroups(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_getCommunitySubgroups(this.__wbg_ptr,n,i);return g(r)}getCoreAllocationSnapshot(){let e=u.wasmwhatsappclient_getCoreAllocationSnapshot(this.__wbg_ptr);return g(e)}getGroupMetadata(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,n,i);return g(r)}getJid(){let e=u.wasmwhatsappclient_getJid(this.__wbg_ptr);return g(e)}getLid(){let e=u.wasmwhatsappclient_getLid(this.__wbg_ptr);return g(e)}getMediaConn(e){let n=u.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,e);return g(n)}getMemoryDiagnostics(){let e=u.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return g(e)}getPushName(){let e=u.wasmwhatsappclient_getPushName(this.__wbg_ptr);return g(e)}getUSyncDevices(e,n,i){let r=z(e,u.__wbindgen_export),a=l,t=u.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,r,a,n,i);return g(t)}groupAcceptInvite(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,n,i);return g(r)}groupAcceptInviteV4(e,n,i,r){let a=h(e,u.__wbindgen_export,u.__wbindgen_export2),t=l,o=h(n,u.__wbindgen_export,u.__wbindgen_export2),f=l,y=h(r,u.__wbindgen_export,u.__wbindgen_export2),p=l,k=u.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,a,t,o,f,i,y,p);return g(k)}groupFetchAllParticipating(){let e=u.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return g(e)}groupGetInviteInfo(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,n,i);return g(r)}groupInviteCode(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,n,i);return g(r)}groupLeave(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_groupLeave(this.__wbg_ptr,n,i);return g(r)}groupMemberAddMode(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=u.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,i,r,S(n));return g(a)}groupParticipantsUpdate(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=z(n,u.__wbindgen_export),o=l,f=u.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,r,a,t,o,S(i));return g(f)}groupRequestParticipantsList(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,n,i);return g(r)}groupRequestParticipantsUpdate(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=z(n,u.__wbindgen_export),o=l,f=u.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,r,a,t,o,S(i));return g(f)}groupRevokeInvite(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,n,i);return g(r)}groupRevokeInviteV4(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=h(n,u.__wbindgen_export,u.__wbindgen_export2),t=l,o=u.wasmwhatsappclient_groupRevokeInviteV4(this.__wbg_ptr,i,r,a,t);return g(o)}groupSettingUpdate(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=u.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,r,a,S(n),i);return g(t)}groupToggleEphemeral(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=u.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,i,r,n);return g(a)}groupUpdateDescription(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l;var a=W(n)?0:h(n,u.__wbindgen_export,u.__wbindgen_export2),t=l;let o=u.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,i,r,a,t);return g(o)}groupUpdateSubject(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=h(n,u.__wbindgen_export,u.__wbindgen_export2),t=l,o=u.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,i,r,a,t);return g(o)}isConnected(){return u.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return u.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp(e){let n=z(e,u.__wbindgen_export),i=l,r=u.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,n,i);return g(r)}jidToSignalProtocolAddress(e){let n,i;try{let p=u.__wbindgen_add_to_stack_pointer(-16),k=h(e,u.__wbindgen_export,u.__wbindgen_export2),x=l;u.wasmwhatsappclient_jidToSignalProtocolAddress(p,this.__wbg_ptr,k,x);var r=v().getInt32(p+0,!0),a=v().getInt32(p+4,!0),t=v().getInt32(p+8,!0),o=v().getInt32(p+12,!0),f=r,y=a;if(o)throw f=0,y=0,g(t);return n=f,i=y,de(f,y)}finally{u.__wbindgen_add_to_stack_pointer(16),u.__wbindgen_export4(n,i,1)}}lidForPn(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_lidForPn(this.__wbg_ptr,n,i);return g(r)}linkCommunitySubgroups(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=z(n,u.__wbindgen_export),t=l,o=u.wasmwhatsappclient_linkCommunitySubgroups(this.__wbg_ptr,i,r,a,t);return g(o)}logout(){let e=u.wasmwhatsappclient_logout(this.__wbg_ptr);return g(e)}markChatAsRead(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=u.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,i,r,n);return g(a)}markPlayed(e){let n=z(e,u.__wbindgen_export),i=l,r=u.wasmwhatsappclient_markPlayed(this.__wbg_ptr,n,i);return g(r)}muteChat(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=u.wasmwhatsappclient_muteChat(this.__wbg_ptr,i,r,!W(n),W(n)?0:n);return g(a)}newsletterCreate(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l;var a=W(n)?0:h(n,u.__wbindgen_export,u.__wbindgen_export2),t=l;let o=u.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,i,r,a,t);return g(o)}newsletterMetadata(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,n,i);return g(r)}newsletterMute(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=u.wasmwhatsappclient_newsletterMute(this.__wbg_ptr,i,r,n);return g(a)}newsletterReactMessage(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=h(n,u.__wbindgen_export,u.__wbindgen_export2),o=l;var f=W(i)?0:h(i,u.__wbindgen_export,u.__wbindgen_export2),y=l;let p=u.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,r,a,t,o,f,y);return g(p)}newsletterSubscribe(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,n,i);return g(r)}newsletterUnsubscribe(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,n,i);return g(r)}pinChat(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=u.wasmwhatsappclient_pinChat(this.__wbg_ptr,i,r,n);return g(a)}pnForLid(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_pnForLid(this.__wbg_ptr,n,i);return g(r)}presenceSubscribe(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,n,i);return g(r)}profilePictureUrl(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=u.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,r,a,S(n),!W(i),W(i)?0:i);return g(t)}queryNode(e,n){let i=u.wasmwhatsappclient_queryNode(this.__wbg_ptr,S(e),!W(n),W(n)?0:n);return g(i)}queryUsync(e){let n=u.wasmwhatsappclient_queryUsync(this.__wbg_ptr,S(e));return g(n)}readMessages(e){let n=z(e,u.__wbindgen_export),i=l,r=u.wasmwhatsappclient_readMessages(this.__wbg_ptr,n,i);return g(r)}reconnect(){let e=u.wasmwhatsappclient_reconnect(this.__wbg_ptr);return g(e)}refreshPreKeys(e){let n=u.wasmwhatsappclient_refreshPreKeys(this.__wbg_ptr,W(e)?Number.MAX_SAFE_INTEGER:e>>>0);return g(n)}rejectCall(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=h(n,u.__wbindgen_export,u.__wbindgen_export2),o=l,f=h(i,u.__wbindgen_export,u.__wbindgen_export2),y=l,p=u.wasmwhatsappclient_rejectCall(this.__wbg_ptr,r,a,t,o,f,y);return g(p)}rejectStanza(e,n,i){let r=u.wasmwhatsappclient_rejectStanza(this.__wbg_ptr,S(e),n,W(i)?Number.MAX_SAFE_INTEGER:i>>0);return g(r)}relayMessageBytes(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=w(n,u.__wbindgen_export),o=l;var f=W(i)?0:h(i,u.__wbindgen_export,u.__wbindgen_export2),y=l;let p=u.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,r,a,t,o,f,y);return g(p)}relayMessageBytesWithOptions(e,n,i,r,a,t){let o=h(e,u.__wbindgen_export,u.__wbindgen_export2),f=l,y=w(n,u.__wbindgen_export),p=l;var k=W(i)?0:h(i,u.__wbindgen_export,u.__wbindgen_export2),x=l;let E=u.wasmwhatsappclient_relayMessageBytesWithOptions(this.__wbg_ptr,o,f,y,p,k,x,S(r),a,t);return g(E)}removeGroupProfilePicture(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,n,i);return g(r)}removeProfilePicture(){let e=u.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return g(e)}requestMediaReupload(e,n,i,r,a){let t=h(e,u.__wbindgen_export,u.__wbindgen_export2),o=l,f=h(n,u.__wbindgen_export,u.__wbindgen_export2),y=l,p=w(i,u.__wbindgen_export),k=l;var x=W(a)?0:h(a,u.__wbindgen_export,u.__wbindgen_export2),E=l;let P=u.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,t,o,f,y,p,k,r,x,E);return g(P)}requestMessageRetry(e,n){let i=u.wasmwhatsappclient_requestMessageRetry(this.__wbg_ptr,S(e),W(n)?16777215:n?1:0);return g(i)}requestPairingCode(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l;var a=W(n)?0:h(n,u.__wbindgen_export,u.__wbindgen_export2),t=l;let o=u.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,i,r,a,t);return g(o)}retransmitMessageBytes(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=w(n,u.__wbindgen_export),o=l,f=u.wasmwhatsappclient_retransmitMessageBytes(this.__wbg_ptr,r,a,t,o,S(i));return g(f)}revokeMessage(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=h(n,u.__wbindgen_export,u.__wbindgen_export2),o=l;var f=W(i)?0:h(i,u.__wbindgen_export,u.__wbindgen_export2),y=l;let p=u.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,r,a,t,o,f,y);return g(p)}rotateSignedKey(){let e=u.wasmwhatsappclient_rotateSignedKey(this.__wbg_ptr);return g(e)}run(){try{let i=u.__wbindgen_add_to_stack_pointer(-16);u.wasmwhatsappclient_run(i,this.__wbg_ptr);var e=v().getInt32(i+0,!0),n=v().getInt32(i+4,!0);if(n)throw g(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}saveContact(e,n,i,r){let a=h(e,u.__wbindgen_export,u.__wbindgen_export2),t=l;var o=W(n)?0:h(n,u.__wbindgen_export,u.__wbindgen_export2),f=l,y=W(i)?0:h(i,u.__wbindgen_export,u.__wbindgen_export2),p=l;let k=u.wasmwhatsappclient_saveContact(this.__wbg_ptr,a,t,o,f,y,p,r);return g(k)}sendChatState(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=u.wasmwhatsappclient_sendChatState(this.__wbg_ptr,i,r,S(n));return g(a)}sendCommentBytes(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=w(i,u.__wbindgen_export),o=l,f=u.wasmwhatsappclient_sendCommentBytes(this.__wbg_ptr,r,a,S(n),t,o);return g(f)}sendMessageBytes(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=w(n,u.__wbindgen_export),t=l,o=u.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,i,r,a,t);return g(o)}sendNode(e){let n=u.wasmwhatsappclient_sendNode(this.__wbg_ptr,S(e));return g(n)}sendPresence(e){let n=u.wasmwhatsappclient_sendPresence(this.__wbg_ptr,S(e));return g(n)}sendRawMessage(e){let n=w(e,u.__wbindgen_export),i=l,r=u.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,n,i);return g(r)}sendReaction(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l;var t=W(i)?0:h(i,u.__wbindgen_export,u.__wbindgen_export2),o=l;let f=u.wasmwhatsappclient_sendReaction(this.__wbg_ptr,r,a,S(n),t,o);return g(f)}sendStatusMessageBytes(e,n){let i=w(e,u.__wbindgen_export),r=l,a=z(n,u.__wbindgen_export),t=l,o=u.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,i,r,a,t);return g(o)}sendStatusMessageBytesWithOptions(e,n,i,r,a){let t=w(e,u.__wbindgen_export),o=l,f=z(n,u.__wbindgen_export),y=l;var p=W(i)?0:h(i,u.__wbindgen_export,u.__wbindgen_export2),k=l;let x=u.wasmwhatsappclient_sendStatusMessageBytesWithOptions(this.__wbg_ptr,t,o,f,y,p,k,S(r),a);return g(x)}setAutoReconnect(e){u.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,e)}setClientProfile(e){let n=u.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,S(e));return g(n)}setDeviceProps(e){let n=u.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,S(e));return g(n)}setGroupProfilePicture(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=w(n,u.__wbindgen_export),t=l,o=u.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,i,r,a,t);return g(o)}setInitialPushName(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_setInitialPushName(this.__wbg_ptr,n,i);return g(r)}setPushName(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_setPushName(this.__wbg_ptr,n,i);return g(r)}setRawNodeForwarding(e){u.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,e)}signalDecryptGroupMessage(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=h(n,u.__wbindgen_export,u.__wbindgen_export2),o=l,f=w(i,u.__wbindgen_export),y=l,p=u.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,r,a,t,o,f,y);return g(p)}signalDecryptMessage(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=h(n,u.__wbindgen_export,u.__wbindgen_export2),o=l,f=w(i,u.__wbindgen_export),y=l,p=u.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,r,a,t,o,f,y);return g(p)}signalDeleteSenderKey(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=h(n,u.__wbindgen_export,u.__wbindgen_export2),t=l,o=u.wasmwhatsappclient_signalDeleteSenderKey(this.__wbg_ptr,i,r,a,t);return g(o)}signalDeleteSessions(e){let n=z(e,u.__wbindgen_export),i=l,r=u.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,n,i);return g(r)}signalEncryptGroupMessage(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=w(n,u.__wbindgen_export),o=l,f=h(i,u.__wbindgen_export,u.__wbindgen_export2),y=l,p=u.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,r,a,t,o,f,y);return g(p)}signalEncryptMessage(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=w(n,u.__wbindgen_export),t=l,o=u.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,i,r,a,t);return g(o)}signalGetSenderKeyDistribution(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=h(n,u.__wbindgen_export,u.__wbindgen_export2),t=l,o=u.wasmwhatsappclient_signalGetSenderKeyDistribution(this.__wbg_ptr,i,r,a,t);return g(o)}signalGetSessionInfo(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_signalGetSessionInfo(this.__wbg_ptr,n,i);return g(r)}signalHasSenderKey(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=h(n,u.__wbindgen_export,u.__wbindgen_export2),t=l,o=u.wasmwhatsappclient_signalHasSenderKey(this.__wbg_ptr,i,r,a,t);return g(o)}signalInstallPreKeyBundle(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=u.wasmwhatsappclient_signalInstallPreKeyBundle(this.__wbg_ptr,i,r,S(n));return g(a)}signalMigrateSessions(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=h(n,u.__wbindgen_export,u.__wbindgen_export2),t=l,o=u.wasmwhatsappclient_signalMigrateSessions(this.__wbg_ptr,i,r,a,t);return g(o)}signalProcessSenderKeyDistribution(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=h(n,u.__wbindgen_export,u.__wbindgen_export2),o=l,f=w(i,u.__wbindgen_export),y=l,p=u.wasmwhatsappclient_signalProcessSenderKeyDistribution(this.__wbg_ptr,r,a,t,o,f,y);return g(p)}signalValidateSession(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,n,i);return g(r)}starMessage(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=h(n,u.__wbindgen_export,u.__wbindgen_export2),o=l,f=u.wasmwhatsappclient_starMessage(this.__wbg_ptr,r,a,t,o,i);return g(f)}unlinkCommunitySubgroups(e,n,i){let r=h(e,u.__wbindgen_export,u.__wbindgen_export2),a=l,t=z(n,u.__wbindgen_export),o=l,f=u.wasmwhatsappclient_unlinkCommunitySubgroups(this.__wbg_ptr,r,a,t,o,i);return g(f)}updateBlockStatus(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=u.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,i,r,S(n));return g(a)}updateDefaultDisappearingMode(e){let n=u.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,e);return g(n)}updateMemberLabel(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=h(n,u.__wbindgen_export,u.__wbindgen_export2),t=l,o=u.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,i,r,a,t);return g(o)}updatePrivacySetting(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=h(n,u.__wbindgen_export,u.__wbindgen_export2),t=l,o=u.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,i,r,a,t);return g(o)}updateProfilePicture(e){let n=w(e,u.__wbindgen_export),i=l,r=u.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,n,i);return g(r)}updateProfileStatus(e){let n=h(e,u.__wbindgen_export,u.__wbindgen_export2),i=l,r=u.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,n,i);return g(r)}uploadEncryptedMediaStream(e,n,i,r,a,t){let o=w(n,u.__wbindgen_export),f=l,y=w(i,u.__wbindgen_export),p=l,k=w(r,u.__wbindgen_export),x=l,E=u.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,S(e),o,f,y,p,k,x,a,S(t));return g(E)}uploadMedia(e,n){let i=w(e,u.__wbindgen_export),r=l,a=u.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,i,r,S(n));return g(a)}validateKeyBundle(){let e=u.wasmwhatsappclient_validateKeyBundle(this.__wbg_ptr);return g(e)}votePoll(e,n,i,r,a){let t=h(e,u.__wbindgen_export,u.__wbindgen_export2),o=l,f=h(n,u.__wbindgen_export,u.__wbindgen_export2),y=l,p=h(i,u.__wbindgen_export,u.__wbindgen_export2),k=l,x=w(r,u.__wbindgen_export),E=l,P=z(a,u.__wbindgen_export),R=l,V=u.wasmwhatsappclient_votePoll(this.__wbg_ptr,t,o,f,y,p,k,x,E,P,R);return g(V)}}if(Symbol.dispose)Hn.prototype[Symbol.dispose]=Hn.prototype.free;function oD(){u.beginWasmAllocationProfile()}function sD(e,n){try{let t=u.__wbindgen_add_to_stack_pointer(-16),o=w(e,u.__wbindgen_export),f=l,y=w(n,u.__wbindgen_export),p=l;u.calculateAgreement(t,o,f,y,p);var i=v().getInt32(t+0,!0),r=v().getInt32(t+4,!0),a=v().getInt32(t+8,!0);if(a)throw g(r);return g(i)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function uD(e,n){try{let t=u.__wbindgen_add_to_stack_pointer(-16),o=w(e,u.__wbindgen_export),f=l,y=w(n,u.__wbindgen_export),p=l;u.calculateSignature(t,o,f,y,p);var i=v().getInt32(t+0,!0),r=v().getInt32(t+4,!0),a=v().getInt32(t+8,!0);if(a)throw g(r);return g(i)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function vf(e,n,i,r,a,t,o){let f=u.createWhatsAppClient(S(e),S(n),W(i)?0:S(i),W(r)?0:S(r),W(a)?0:S(a),W(t)?0:S(t),W(o)?0:S(o));return g(f)}function cD(e){try{let a=u.__wbindgen_add_to_stack_pointer(-16),t=w(e,u.__wbindgen_export),o=l;u.decodeSenderKeyRecordComponents(a,t,o);var n=v().getInt32(a+0,!0),i=v().getInt32(a+4,!0),r=v().getInt32(a+8,!0);if(r)throw g(i);return g(n)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function fD(e){try{let a=u.__wbindgen_add_to_stack_pointer(-16),t=w(e,u.__wbindgen_export),o=l;u.decodeSessionRecordComponents(a,t,o);var n=v().getInt32(a+0,!0),i=v().getInt32(a+4,!0),r=v().getInt32(a+8,!0);if(r)throw g(i);return g(n)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function lD(e,n,i,r,a,t){try{let p=u.__wbindgen_add_to_stack_pointer(-16),k=w(e,u.__wbindgen_export),x=l,E=w(n,u.__wbindgen_export),P=l,R=w(i,u.__wbindgen_export),V=l,B=h(r,u.__wbindgen_export,u.__wbindgen_export2),K=l,Pe=h(a,u.__wbindgen_export,u.__wbindgen_export2),be=l,Oe=h(t,u.__wbindgen_export,u.__wbindgen_export2),Ie=l;u.decryptEventResponsePayload(p,k,x,E,P,R,V,B,K,Pe,be,Oe,Ie);var o=v().getInt32(p+0,!0),f=v().getInt32(p+4,!0),y=v().getInt32(p+8,!0);if(y)throw g(f);return g(o)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function pD(e,n,i,r,a,t,o){try{let E=u.__wbindgen_add_to_stack_pointer(-16),P=w(e,u.__wbindgen_export),R=l,V=w(n,u.__wbindgen_export),B=l,K=w(i,u.__wbindgen_export),Pe=l,be=h(r,u.__wbindgen_export,u.__wbindgen_export2),Oe=l,Ie=h(a,u.__wbindgen_export,u.__wbindgen_export2),T=l,xn=h(t,u.__wbindgen_export,u.__wbindgen_export2),JR=l,QR=z(o,u.__wbindgen_export),L=l;u.decryptPollVote(E,P,R,V,B,K,Pe,be,Oe,Ie,T,xn,JR,QR,L);var f=v().getInt32(E+0,!0),y=v().getInt32(E+4,!0),p=v().getInt32(E+8,!0),k=v().getInt32(E+12,!0);if(k)throw g(p);var x=Rn(f,y).slice();return u.__wbindgen_export4(f,y*4,4),x}finally{u.__wbindgen_add_to_stack_pointer(16)}}function gD(e,n,i,r,a,t){try{let p=u.__wbindgen_add_to_stack_pointer(-16),k=w(e,u.__wbindgen_export),x=l,E=w(n,u.__wbindgen_export),P=l,R=w(i,u.__wbindgen_export),V=l,B=h(r,u.__wbindgen_export,u.__wbindgen_export2),K=l,Pe=h(a,u.__wbindgen_export,u.__wbindgen_export2),be=l,Oe=h(t,u.__wbindgen_export,u.__wbindgen_export2),Ie=l;u.decryptPollVotePayload(p,k,x,E,P,R,V,B,K,Pe,be,Oe,Ie);var o=v().getInt32(p+0,!0),f=v().getInt32(p+4,!0),y=v().getInt32(p+8,!0);if(y)throw g(f);return g(o)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function yD(e){try{let a=u.__wbindgen_add_to_stack_pointer(-16);u.encodeSenderKeyRecordComponents(a,S(e));var n=v().getInt32(a+0,!0),i=v().getInt32(a+4,!0),r=v().getInt32(a+8,!0);if(r)throw g(i);return g(n)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function MD(e){try{let a=u.__wbindgen_add_to_stack_pointer(-16);u.encodeSessionRecordComponents(a,S(e));var n=v().getInt32(a+0,!0),i=v().getInt32(a+4,!0),r=v().getInt32(a+8,!0);if(r)throw g(i);return g(n)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function mD(){let e=u.generateKeyPair();return g(e)}function _D(){let e=u.getEnabledFeatures();return g(e)}function hD(e){try{let a=u.__wbindgen_add_to_stack_pointer(-16),t=w(e,u.__wbindgen_export),o=l;u.getPublicFromPrivateKey(a,t,o);var n=v().getInt32(a+0,!0),i=v().getInt32(a+4,!0),r=v().getInt32(a+8,!0);if(r)throw g(i);return g(n)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function kD(){try{let r=u.__wbindgen_add_to_stack_pointer(-16);u.getWasmAllocationSnapshot(r);var e=v().getInt32(r+0,!0),n=v().getInt32(r+4,!0),i=v().getInt32(r+8,!0);if(i)throw g(n);return g(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function AD(){return u.getWasmMemoryBytes()}function SD(){return u.hasLogger()!==0}function PD(e,n,i){try{let o=u.__wbindgen_add_to_stack_pointer(-16),f=w(e,u.__wbindgen_export),y=l;u.hkdf(o,f,y,n,S(i));var r=v().getInt32(o+0,!0),a=v().getInt32(o+4,!0),t=v().getInt32(o+8,!0);if(t)throw g(a);return g(r)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function bD(e,n){try{let t=u.__wbindgen_add_to_stack_pointer(-16);u.importLegacySessionRecordV1(t,S(e),S(n));var i=v().getInt32(t+0,!0),r=v().getInt32(t+4,!0),a=v().getInt32(t+8,!0);if(a)throw g(r);return g(i)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function ID(e,n){try{let t=u.__wbindgen_add_to_stack_pointer(-16),o=w(e,u.__wbindgen_export),f=l;u.inflateZlib(t,o,f,!W(n),W(n)?0:n);var i=v().getInt32(t+0,!0),r=v().getInt32(t+4,!0),a=v().getInt32(t+8,!0);if(a)throw g(r);return g(i)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function xf(e,n){u.initWasmEngine(S(e),S(n))}function RD(e,n){let i=h(e,u.__wbindgen_export,u.__wbindgen_export2),r=l,a=h(n,u.__wbindgen_export,u.__wbindgen_export2),t=l;u.logMessage(i,r,a,t)}function DD(e){let n=w(e,u.__wbindgen_export),i=l,r=u.md5(n,i);return g(r)}function ED(e){try{let a=u.__wbindgen_add_to_stack_pointer(-16),t=w(e,u.__wbindgen_export),o=l;u.projectLegacySessionRecordV1(a,t,o);var n=v().getInt32(a+0,!0),i=v().getInt32(a+4,!0),r=v().getInt32(a+8,!0);if(r)throw g(i);return g(n)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function BD(e){try{let r=u.__wbindgen_add_to_stack_pointer(-16);u.setLogger(r,S(e));var n=v().getInt32(r+0,!0),i=v().getInt32(r+4,!0);if(i)throw g(n)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function CD(e){u.updateLogger(S(e))}function vD(e,n,i){try{let o=u.__wbindgen_add_to_stack_pointer(-16),f=w(e,u.__wbindgen_export),y=l,p=w(n,u.__wbindgen_export),k=l,x=w(i,u.__wbindgen_export),E=l;u.verifySignature(o,f,y,p,k,x,E);var r=v().getInt32(o+0,!0),a=v().getInt32(o+4,!0),t=v().getInt32(o+8,!0);if(t)throw g(a);return r!==0}finally{u.__wbindgen_add_to_stack_pointer(16)}}function $R(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(n,i){let r=Error(de(n,i));return S(r)},__wbg_Number_9a4e0ecb0fa16705:function(n){return Number(m(n))},__wbg_String_8564e559799eccda:function(n,i){let r=String(m(i)),a=h(r,u.__wbindgen_export,u.__wbindgen_export2),t=l;v().setInt32(n+4,t,!0),v().setInt32(n+0,a,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(n,i){let r=m(i),a=typeof r==="bigint"?r:void 0;v().setBigInt64(n+8,W(a)?BigInt(0):a,!0),v().setInt32(n+0,!W(a),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(n){let i=m(n),r=typeof i==="boolean"?i:void 0;return W(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(n,i){let r=cf(m(i)),a=h(r,u.__wbindgen_export,u.__wbindgen_export2),t=l;v().setInt32(n+4,t,!0),v().setInt32(n+0,a,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(n,i){return m(n)in m(i)},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(n){return typeof m(n)==="bigint"},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(n){return typeof m(n)==="function"},__wbg___wbindgen_is_null_ea9085d691f535d3:function(n){return m(n)===null},__wbg___wbindgen_is_object_a27215656b807791:function(n){let i=m(n);return typeof i==="object"&&i!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(n){return typeof m(n)==="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(n){return m(n)===void 0},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(n,i){return m(n)===m(i)},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(n,i){return m(n)==m(i)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(n,i){let r=m(i),a=typeof r==="number"?r:void 0;v().setFloat64(n+8,W(a)?0:a,!0),v().setInt32(n+0,!W(a),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(n,i){let r=m(i),a=typeof r==="string"?r:void 0;var t=W(a)?0:h(a,u.__wbindgen_export,u.__wbindgen_export2),o=l;v().setInt32(n+4,o,!0),v().setInt32(n+0,t,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(n,i){throw Error(de(n,i))},__wbg__wbg_cb_unref_fffb441def202758:function(n){m(n)._wbg_cb_unref()},__wbg_apply_3ac86a26fdb56c05:function(){return j(function(n,i,r){let a=m(n).apply(m(i),m(r));return S(a)},arguments)},__wbg_bind_ed119fc9a791cb9c:function(n,i,r,a){let t=m(n).bind(m(i),m(r),m(a));return S(t)},__wbg_buffer_54b87055582c8a81:function(n){let i=m(n).buffer;return S(i)},__wbg_byobRequest_06b654bb15590436:function(n){let i=m(n).byobRequest;return W(i)?0:S(i)},__wbg_byteLength_41862ca4020b9c43:function(n){return m(n).byteLength},__wbg_byteOffset_d42e18c4441f628b:function(n){return m(n).byteOffset},__wbg_call_44b7209e1e252e6a:function(){return j(function(n,i,r,a,t){let o=m(n).call(m(i),m(r),m(a),m(t));return S(o)},arguments)},__wbg_call_8a2dd23819f8a60a:function(){return j(function(n,i){let r=m(n).call(m(i));return S(r)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return j(function(n,i,r){let a=m(n).call(m(i),m(r));return S(a)},arguments)},__wbg_call_d118afd8bd2557eb:function(){return j(function(n,i,r,a,t,o){let f=m(n).call(m(i),m(r),m(a),m(t),m(o));return S(f)},arguments)},__wbg_call_e3b662382210db98:function(){return j(function(n,i,r,a){let t=m(n).call(m(i),m(r),m(a));return S(t)},arguments)},__wbg_cancel_3983a93e24cc66b3:function(n){let i=m(n).cancel();return S(i)},__wbg_catch_c1a60df4c30d76d3:function(n,i){let r=m(n).catch(m(i));return S(r)},__wbg_close_1e6096d41f7ce5d0:function(n){let i=m(n).close();return S(i)},__wbg_close_249a23304523681b:function(){return j(function(n){m(n).close()},arguments)},__wbg_close_72d318d9c16e83ef:function(){return j(function(n){m(n).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(n,i,r,a){m(n).debug(m(i),r===0?void 0:de(r,a))},__wbg_debug_cf53e2612c84e4ee:function(n,i,r,a){console.debug(m(n),m(i),m(r),m(a))},__wbg_done_89b2b13e91a60321:function(n){return m(n).done},__wbg_enqueue_6d83b4c6281bafd6:function(){return j(function(n,i){m(n).enqueue(m(i))},arguments)},__wbg_entries_015dc610cd81ede0:function(n){let i=Object.entries(m(n));return S(i)},__wbg_error_657700d53a73881f:function(n,i,r,a){console.error(m(n),m(i),m(r),m(a))},__wbg_error_9cce413345f88385:function(n,i,r,a){m(n).error(m(i),r===0?void 0:de(r,a))},__wbg_error_a6fa202b58aa1cd3:function(n,i){let r,a;try{r=n,a=i,console.error(de(n,i))}finally{u.__wbindgen_export4(r,a,1)}},__wbg_from_13e323c65fc8f464:function(n){let i=Array.from(m(n));return S(i)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return j(function(n,i){globalThis.crypto.getRandomValues(Nn(n,i))},arguments)},__wbg_getReader_bb0230851fbf986b:function(){return j(function(n){let i=m(n).getReader();return S(i)},arguments)},__wbg_getWriter_d71a99bcd847ccef:function(){return j(function(n){let i=m(n).getWriter();return S(i)},arguments)},__wbg_get_507a50627bffa49b:function(n,i){let r=m(n)[i>>>0];return S(r)},__wbg_get_78f252d074a84d0b:function(){return j(function(n,i){let r=Reflect.get(m(n),m(i));return S(r)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return j(function(n,i){let r=Reflect.get(m(n),m(i));return S(r)},arguments)},__wbg_get_done_670108eb06ecbe46:function(n){let i=m(n).done;return W(i)?16777215:i?1:0},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(n,i){let r=m(n)[i>>>0];return S(r)},__wbg_get_value_f465f5be30aa0963:function(n){let i=m(n).value;return S(i)},__wbg_get_with_ref_key_6412cf3094599694:function(n,i){let r=m(n)[m(i)];return S(r)},__wbg_info_79f5309d69d9c70e:function(n,i,r,a){console.info(m(n),m(i),m(r),m(a))},__wbg_info_b728e87a346ff6a2:function(n,i,r,a){m(n).info(m(i),r===0?void 0:de(r,a))},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(n){let i;try{i=m(n)instanceof ArrayBuffer}catch(a){i=!1}return i},__wbg_instanceof_Array_de0fa65266a8c7c0:function(n){let i;try{i=m(n)instanceof Array}catch(a){i=!1}return i},__wbg_instanceof_Map_e5b5e3db98422fcc:function(n){let i;try{i=m(n)instanceof Map}catch(a){i=!1}return i},__wbg_instanceof_Object_33f20e6f12439f3e:function(n){let i;try{i=m(n)instanceof Object}catch(a){i=!1}return i},__wbg_instanceof_Promise_4cb210c0b8f8c959:function(n){let i;try{i=m(n)instanceof Promise}catch(a){i=!1}return i},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(n){let i;try{i=m(n)instanceof Uint8Array}catch(a){i=!1}return i},__wbg_isArray_0677c962b281d01a:function(n){return Array.isArray(m(n))},__wbg_isSafeInteger_04f36e4056f1b851:function(n){return Number.isSafeInteger(m(n))},__wbg_iterator_6f722e4a93058b71:function(){return S(Symbol.iterator)},__wbg_keys_58421f8f96795607:function(n){let i=Object.keys(m(n));return S(i)},__wbg_length_1f0964f4a5e2c6d8:function(n){return m(n).length},__wbg_length_370319915dc99107:function(n){return m(n).length},__wbg_level_4b50b181832c5acf:function(n,i){let r=m(i).level,a=h(r,u.__wbindgen_export,u.__wbindgen_export2),t=l;v().setInt32(n+4,t,!0),v().setInt32(n+0,a,!0)},__wbg_log_a45418e25b210a4c:function(n,i,r,a){console.log(m(n),m(i),m(r),m(a))},__wbg_new_227d7c05414eb861:function(){let n=Error();return S(n)},__wbg_new_32b398fb48b6d94a:function(){return S([])},__wbg_new_7796ffc7ed656783:function(){return S(new Map)},__wbg_new_b667d279fd5aa943:function(n,i){let r=Error(de(n,i));return S(r)},__wbg_new_cd45aabdf6073e84:function(n){let i=new Uint8Array(m(n));return S(i)},__wbg_new_da52cf8fe3429cb2:function(){return S({})},__wbg_new_from_slice_7568ba55b4a7e81f:function(n,i){let r=new Uint32Array(u1(n,i));return S(r)},__wbg_new_from_slice_77cdfb7977362f3c:function(n,i){let r=new Uint8Array(Nn(n,i));return S(r)},__wbg_new_typed_1824d93f294193e5:function(n,i){try{var r={a:n,b:i},a=(o,f)=>{let y=r.a;r.a=0;try{return t1(y,r.b,o,f)}finally{r.a=y}};let t=new Promise(a);return S(t)}finally{r.a=0}},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(n,i,r){let a=new Uint8Array(m(n),i>>>0,r>>>0);return S(a)},__wbg_new_with_into_underlying_source_8812003c9985c511:function(n,i){let r=new ReadableStream(Wn.__wrap(n),g(i));return S(r)},__wbg_new_with_length_e6785c33c8e4cce8:function(n){let i=new Uint8Array(n>>>0);return S(i)},__wbg_new_with_length_f8cbc3a5b9ff9368:function(n){let i=Array(n>>>0);return S(i)},__wbg_next_6dbf2c0ac8cde20f:function(n){let i=m(n).next;return S(i)},__wbg_next_71f2aa1cb3d1e37e:function(){return j(function(n){let i=m(n).next();return S(i)},arguments)},__wbg_now_44881ed1d5dba857:function(){return j(function(){return performance.now()},arguments)},__wbg_now_86c0d4ba3fa605b8:function(){return Date.now()},__wbg_now_fefb743ab429013f:function(){return performance.now()},__wbg_of_2bf3ed8a776ff19a:function(n,i,r,a){let t=Array.of(m(n),m(i),m(r),m(a));return S(t)},__wbg_prototypesetcall_2592ffff58ff115d:function(n,i,r){Uint8Array.prototype.set.call(Nn(n,i),m(r))},__wbg_prototypesetcall_4770620bbe4688a0:function(n,i,r){Uint8Array.prototype.set.call(Nn(n,i),m(r))},__wbg_push_d2ae3af0c1217ae6:function(n,i){return m(n).push(m(i))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(n){let i=m(n).queueMicrotask;return S(i)},__wbg_queueMicrotask_6a09b7bc46549209:function(n){queueMicrotask(m(n))},__wbg_read_8afa15f12a160ef8:function(n){let i=m(n).read();return S(i)},__wbg_ready_68b537848a5c627a:function(n){let i=m(n).ready;return S(i)},__wbg_releaseLock_33c25ace78b2d4c6:function(n){m(n).releaseLock()},__wbg_releaseLock_5b92874cad775644:function(n){m(n).releaseLock()},__wbg_resolve_2191a4dfe481c25b:function(n){let i=Promise.resolve(m(n));return S(i)},__wbg_respond_510e32df8aeb6817:function(){return j(function(n,i){m(n).respond(i>>>0)},arguments)},__wbg_set_4d7dd76f3dae2926:function(n,i,r){m(n).set(Nn(i,r))},__wbg_set_575dd786d51585f8:function(n,i,r){let a=m(n).set(m(i),m(r));return S(a)},__wbg_set_6be42768c690e380:function(n,i,r){m(n)[g(i)]=g(r)},__wbg_set_8535240470bf2500:function(){return j(function(n,i,r){return Reflect.set(m(n),m(i),m(r))},arguments)},__wbg_set_8a16b38e4805b298:function(n,i,r){m(n)[i>>>0]=g(r)},__wbg_set_high_water_mark_44d043cd607dd13a:function(n,i){m(n).highWaterMark=i},__wbg_set_name_3bbc583faefa4193:function(n,i,r){m(n).name=de(i,r)},__wbg_stack_3b0d974bbf31e44f:function(n,i){let r=m(i).stack,a=h(r,u.__wbindgen_export,u.__wbindgen_export2),t=l;v().setInt32(n+4,t,!0),v().setInt32(n+0,a,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let n=typeof global>"u"?null:global;return W(n)?0:S(n)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let n=typeof globalThis>"u"?null:globalThis;return W(n)?0:S(n)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let n=typeof self>"u"?null:self;return W(n)?0:S(n)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let n=typeof window>"u"?null:window;return W(n)?0:S(n)},__wbg_then_16d107c451e9905d:function(n,i,r){let a=m(n).then(m(i),m(r));return S(a)},__wbg_then_6ec10ae38b3e92f7:function(n,i){let r=m(n).then(m(i));return S(r)},__wbg_trace_58264fbce2ceb5e6:function(n,i,r,a){m(n).trace(m(i),r===0?void 0:de(r,a))},__wbg_value_a5d5488a9589444a:function(n){let i=m(n).value;return S(i)},__wbg_view_21f1d4a4f175dfa9:function(n){let i=m(n).view;return W(i)?0:S(i)},__wbg_warn_77c4eb4a21e10a21:function(n,i,r,a){console.warn(m(n),m(i),m(r),m(a))},__wbg_warn_db531770752932a9:function(n,i,r,a){m(n).warn(m(i),r===0?void 0:de(r,a))},__wbg_wasmwhatsappclient_new:function(n){let i=Hn.__wrap(n);return S(i)},__wbg_write_f6dc0059c3feedce:function(n,i){let r=m(n).write(m(i));return S(r)},__wbindgen_cast_0000000000000001:function(n,i){let r=Ln(n,i,e1);return S(r)},__wbindgen_cast_0000000000000002:function(n,i){let r=Ln(n,i,i1);return S(r)},__wbindgen_cast_0000000000000003:function(n,i){let r=Ln(n,i,a1);return S(r)},__wbindgen_cast_0000000000000004:function(n,i){let r=Ln(n,i,n1);return S(r)},__wbindgen_cast_0000000000000005:function(n,i){let r=Ln(n,i,jR);return S(r)},__wbindgen_cast_0000000000000006:function(n){return S(n)},__wbindgen_cast_0000000000000007:function(n){return S(n)},__wbindgen_cast_0000000000000008:function(n,i){let r=Nn(n,i);return S(r)},__wbindgen_cast_0000000000000009:function(n,i){let r=de(n,i);return S(r)},__wbindgen_cast_000000000000000a:function(n){let i=BigInt.asUintN(64,n);return S(i)},__wbindgen_cast_000000000000000b:function(n,i){var r=Rn(n,i).slice();return u.__wbindgen_export4(n,i*4,4),S(r)},__wbindgen_cast_000000000000000c:function(n,i){var r=Rn(n,i).slice();return u.__wbindgen_export4(n,i*4,4),S(r)},__wbindgen_cast_000000000000000d:function(n,i){var r=Rn(n,i).slice();return u.__wbindgen_export4(n,i*4,4),S(r)},__wbindgen_cast_000000000000000e:function(n,i){var r=Rn(n,i).slice();return u.__wbindgen_export4(n,i*4,4),S(r)},__wbindgen_cast_000000000000000f:function(n,i){var r=Rn(n,i).slice();return u.__wbindgen_export4(n,i*4,4),S(r)},__wbindgen_cast_0000000000000010:function(n,i){var r=Rn(n,i).slice();return u.__wbindgen_export4(n,i*4,4),S(r)},__wbindgen_object_clone_ref:function(n){let i=m(n);return S(i)},__wbindgen_object_drop_ref:function(n){g(n)}}}}function jR(e,n){u.__wasm_bindgen_func_elem_3791(e,n)}function e1(e,n,i){u.__wasm_bindgen_func_elem_8208(e,n,S(i))}function n1(e,n,i){u.__wasm_bindgen_func_elem_3792(e,n,S(i))}function i1(e,n,i){try{let t=u.__wbindgen_add_to_stack_pointer(-16);u.__wasm_bindgen_func_elem_24619(t,e,n,S(i));var r=v().getInt32(t+0,!0),a=v().getInt32(t+4,!0);if(a)throw g(r)}finally{u.__wbindgen_add_to_stack_pointer(16)}}function t1(e,n,i,r){u.__wasm_bindgen_func_elem_24621(e,n,S(i),S(r))}function a1(e,n,i){u.__wasm_bindgen_func_elem_3793(e,n,i)}var r1=["bytes"],d1=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e)=>u.__wbg_intounderlyingbytesource_free(e,1)),o1=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e)=>u.__wbg_intounderlyingsink_free(e,1)),Ef=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e)=>u.__wbg_intounderlyingsource_free(e,1)),Bf=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e)=>u.__wbg_wasmwhatsappclient_free(e,1));function S(e){if(Vn===Ne.length)Ne.push(Ne.length+1);let n=Vn;return Vn=Ne[n],Ne[n]=e,n}var Cf=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e)=>u.__wbindgen_export5(e.a,e.b));function cf(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,t="[";if(a>0)t+=cf(e[0]);for(let o=1;o<a;o++)t+=", "+cf(e[o]);return t+="]",t}let i=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(i&&i.length>1)r=i[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}
2
- ${e.stack}`;return r}function s1(e){if(e<1028)return;Ne[e]=Vn,Vn=e}function Rn(e,n){e=e>>>0;let i=v(),r=[];for(let a=e;a<e+4*n;a+=4)r.push(g(i.getUint32(a,!0)));return r}function u1(e,n){return e=e>>>0,c1().subarray(e/4,e/4+n)}function Nn(e,n){return e=e>>>0,On().subarray(e/1,e/1+n)}var Dn=null;function v(){if(Dn===null||Dn.buffer.detached===!0||Dn.buffer.detached===void 0&&Dn.buffer!==u.memory.buffer)Dn=new DataView(u.memory.buffer);return Dn}function de(e,n){return l1(e>>>0,n)}var wn=null;function c1(){if(wn===null||wn.byteLength===0)wn=new Uint32Array(u.memory.buffer);return wn}var Fn=null;function On(){if(Fn===null||Fn.byteLength===0)Fn=new Uint8Array(u.memory.buffer);return Fn}function m(e){return Ne[e]}function j(e,n){try{return e.apply(this,n)}catch(i){u.__wbindgen_export3(S(i))}}var Ne=Array(1024).fill(void 0);Ne.push(void 0,null,!0,!1);var Vn=Ne.length;function W(e){return e===void 0||e===null}function Ln(e,n,i){let r={a:e,b:n,cnt:1},a=(...t)=>{r.cnt++;let o=r.a;r.a=0;try{return i(o,r.b,...t)}finally{r.a=o,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{if(--r.cnt===0)u.__wbindgen_export5(r.a,r.b),r.a=0,Cf.unregister(r)},Cf.register(a,r,r),a}function w(e,n){let i=n(e.length*1,1)>>>0;return On().set(e,i/1),l=e.length,i}function z(e,n){let i=n(e.length*4,4)>>>0,r=v();for(let a=0;a<e.length;a++)r.setUint32(i+4*a,S(e[a]),!0);return l=e.length,i}function h(e,n,i){if(i===void 0){let f=Kn.encode(e),y=n(f.length,1)>>>0;return On().subarray(y,y+f.length).set(f),l=f.length,y}let r=e.length,a=n(r,1)>>>0,t=On(),o=0;for(;o<r;o++){let f=e.charCodeAt(o);if(f>127)break;t[a+o]=f}if(o!==r){if(o!==0)e=e.slice(o);a=i(a,r,r=o+e.length*3,1)>>>0;let f=On().subarray(a+o,a+r),y=Kn.encodeInto(e,f);o+=y.written,a=i(a,r,o,1)>>>0}return l=o,a}function g(e){let n=m(e);return s1(e),n}var vc=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});vc.decode();var f1=2146435072,of=0;function l1(e,n){if(of+=n,of>=f1)vc=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),vc.decode(),of=n;return vc.decode(On().subarray(e,e+n))}var Kn=new TextEncoder;if(!("encodeInto"in Kn))Kn.encodeInto=function(e,n){let i=Kn.encode(e);return n.set(i),{read:e.length,written:i.length}};var l=0,p1,g1,u;function y1(e,n){return g1=e,u=e.exports,p1=n,Dn=null,wn=null,Fn=null,u}function Nf(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=$R();if(!(e instanceof WebAssembly.Module))e=new WebAssembly.Module(e);let i=new WebAssembly.Instance(e,n);return y1(i,e)}var Cc={};XR(Cc,{ADVDeviceIdentity:()=>Fc,ADVEncryptionType:()=>DA,ADVKeyIndexList:()=>hI,ADVSignedDeviceIdentity:()=>Vc,ADVSignedDeviceIdentityHMAC:()=>Kc,ADVSignedKeyIndexList:()=>Wc,AIHomeState:()=>kI,AIHomeState_AIHomeOption:()=>Te,AIHomeState_AIHomeOption_AIHomeActionType:()=>QA,AIMediaCollectionMessage:()=>Gn,AIMediaCollectionMetadata:()=>Jn,AIMetadataOperation:()=>Qn,AIQueryFanout:()=>zn,AIRegenerateMetadata:()=>Yn,AIRichResponseCodeMetadata:()=>Zn,AIRichResponseCodeMetadata_AIRichResponseCodeBlock:()=>Xn,AIRichResponseCodeMetadata_AIRichResponseCodeHighlightType:()=>zA,AIRichResponseContentItemsMetadata:()=>$n,AIRichResponseContentItemsMetadata_AIRichResponseContentItemMetadata:()=>jn,AIRichResponseContentItemsMetadata_AIRichResponseReelItem:()=>ei,AIRichResponseContentItemsMetadata_ContentType:()=>YA,AIRichResponseDynamicMetadata:()=>ni,AIRichResponseDynamicMetadata_AIRichResponseDynamicMetadataType:()=>ZA,AIRichResponseGridImageMetadata:()=>ii,AIRichResponseImageURL:()=>ue,AIRichResponseInlineImageMetadata:()=>ti,AIRichResponseInlineImageMetadata_AIRichResponseImageAlignment:()=>XA,AIRichResponseLatexMetadata:()=>ai,AIRichResponseLatexMetadata_AIRichResponseLatexExpression:()=>ri,AIRichResponseMapMetadata:()=>di,AIRichResponseMapMetadata_AIRichResponseMapAnnotation:()=>oi,AIRichResponseMessage:()=>si,AIRichResponseMessageType:()=>EA,AIRichResponseSubMessage:()=>ui,AIRichResponseSubMessageType:()=>BA,AIRichResponseTableMetadata:()=>ci,AIRichResponseTableMetadata_AIRichResponseTableRow:()=>fi,AIRichResponseUnifiedResponse:()=>li,AISubscriptionRequestType:()=>CA,AISubscriptionUpsellMetadata:()=>pi,AIThreadInfo:()=>gi,AIThreadInfo_AIThreadClientInfo:()=>yi,AIThreadInfo_AIThreadClientInfo_AIThreadType:()=>$A,AIThreadInfo_AIThreadServerInfo:()=>Mi,Account:()=>mi,AccountLinkingOpaqueData:()=>AI,ActionLink:()=>_i,AutoDownloadSettings:()=>se,AvatarUserSettings:()=>hi,BizAccountLinkInfo:()=>SI,BizAccountLinkInfo_AccountType:()=>jA,BizAccountLinkInfo_HostStorageType:()=>eS,BizAccountPayload:()=>PI,BizIdentityInfo:()=>bI,BizIdentityInfo_ActualActorsType:()=>nS,BizIdentityInfo_HostStorageType:()=>iS,BizIdentityInfo_VerifiedLevelValue:()=>tS,BotAgeCollectionMetadata:()=>ki,BotAgeCollectionMetadata_AgeCollectionType:()=>aS,BotAgentDeepLinkMetadata:()=>Ai,BotAgentMetadata:()=>Si,BotCapabilityMetadata:()=>Pi,BotCapabilityMetadata_BotCapabilityType:()=>rS,BotCommandMetadata:()=>bi,BotDocumentMessageMetadata:()=>Ii,BotDocumentMessageMetadata_DocumentPluginType:()=>dS,BotFeedbackMessage:()=>Ri,BotFeedbackMessage_BotFeedbackKind:()=>oS,BotFeedbackMessage_BotFeedbackKindMultipleNegative:()=>sS,BotFeedbackMessage_BotFeedbackKindMultiplePositive:()=>uS,BotFeedbackMessage_ReportKind:()=>cS,BotFeedbackMessage_SideBySideSurveyMetadata:()=>Di,BotFeedbackMessage_SideBySideSurveyMetadata_SideBySideSurveyAnalyticsData:()=>Ei,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData:()=>Bi,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyAbandonEventData:()=>Ci,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAClickEventData:()=>vi,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAImpressionEventData:()=>xi,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCardImpressionEventData:()=>Ni,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyResponseEventData:()=>Oi,BotGroupMetadata:()=>Ui,BotGroupParticipantMetadata:()=>Ti,BotImagineMetadata:()=>Li,BotImagineMetadata_ImagineType:()=>fS,BotInfrastructureDiagnostics:()=>wi,BotInfrastructureDiagnostics_BotBackend:()=>lS,BotLinkedAccount:()=>Fi,BotLinkedAccount_BotLinkedAccountType:()=>pS,BotLinkedAccountsMetadata:()=>Vi,BotMediaMetadata:()=>ce,BotMediaMetadata_OrientationType:()=>gS,BotMemoryFact:()=>Le,BotMemoryMetadata:()=>Ki,BotMemuMetadata:()=>Wi,BotMessageOrigin:()=>Hi,BotMessageOriginMetadata:()=>qi,BotMessageOrigin_BotMessageOriginType:()=>yS,BotMessageSharingInfo:()=>Gi,BotMetadata:()=>Ji,BotMetricsEntryPoint:()=>vA,BotMetricsMetadata:()=>Qi,BotMetricsThreadEntryPoint:()=>xA,BotModeSelectionMetadata:()=>zi,BotModeSelectionMetadata_BotUserSelectionMode:()=>MS,BotModelMetadata:()=>Yi,BotModelMetadata_ModelType:()=>mS,BotModelMetadata_PremiumModelStatus:()=>_S,BotPluginMetadata:()=>Zi,BotPluginMetadata_PluginType:()=>hS,BotPluginMetadata_SearchProvider:()=>kS,BotProgressIndicatorMetadata:()=>Xi,BotProgressIndicatorMetadata_BotPlanningStepMetadata:()=>$i,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourceMetadata:()=>ji,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata:()=>et,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata_BotPlanningSearchSourceProvider:()=>PS,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningStepSectionMetadata:()=>nt,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotSearchSourceProvider:()=>AS,BotProgressIndicatorMetadata_BotPlanningStepMetadata_PlanningStepStatus:()=>SS,BotPromotionMessageMetadata:()=>it,BotPromotionMessageMetadata_BotPromotionType:()=>bS,BotPromptSuggestion:()=>tt,BotPromptSuggestions:()=>at,BotPttPromptMetadata:()=>rt,BotQuotaMetadata:()=>dt,BotQuotaMetadata_BotFeatureQuotaMetadata:()=>ot,BotQuotaMetadata_BotFeatureQuotaMetadata_BotFeatureType:()=>IS,BotReminderMetadata:()=>st,BotReminderMetadata_ReminderAction:()=>RS,BotReminderMetadata_ReminderFrequency:()=>DS,BotRenderingConfigMetadata:()=>ut,BotRenderingMetadata:()=>ct,BotRenderingMetadata_Keyword:()=>ft,BotResolvedToolCallMetadata:()=>lt,BotSessionMetadata:()=>pt,BotSessionSource:()=>NA,BotSignatureVerificationMetadata:()=>Ze,BotSignatureVerificationUseCaseProof:()=>gt,BotSignatureVerificationUseCaseProof_BotSignatureUseCase:()=>ES,BotSourcesMetadata:()=>yt,BotSourcesMetadata_BotSourceItem:()=>Mt,BotSourcesMetadata_BotSourceItem_SourceProvider:()=>BS,BotSuggestedPromptMetadata:()=>mt,BotUnifiedResponseMutation:()=>_t,BotUnifiedResponseMutation_MediaDetailsMetadata:()=>ht,BotUnifiedResponseMutation_SideBySideMetadata:()=>kt,CallLogRecord:()=>Xe,CallLogRecord_CallResult:()=>CS,CallLogRecord_CallType:()=>vS,CallLogRecord_ParticipantInfo:()=>At,CallLogRecord_SilenceReason:()=>xS,CertChain:()=>Hc,CertChain_NoiseCertificate:()=>Re,CertChain_NoiseCertificate_Details:()=>qc,ChatLockSettings:()=>$e,ChatRowOpaqueData:()=>II,ChatRowOpaqueData_DraftMessage:()=>St,ChatRowOpaqueData_DraftMessage_CtwaContextData:()=>Pt,ChatRowOpaqueData_DraftMessage_CtwaContextData_ContextInfoExternalAdReplyInfoMediaType:()=>NS,ChatRowOpaqueData_DraftMessage_CtwaContextLinkData:()=>bt,Citation:()=>It,ClientPairingProps:()=>RI,ClientPayload:()=>Gc,ClientPayload_AccountType:()=>OS,ClientPayload_ConnectReason:()=>US,ClientPayload_ConnectType:()=>TS,ClientPayload_DNSSource:()=>Rt,ClientPayload_DNSSource_DNSResolutionMethod:()=>VS,ClientPayload_DevicePairingRegistrationData:()=>Dt,ClientPayload_IOSAppExtension:()=>LS,ClientPayload_InteropData:()=>Et,ClientPayload_Product:()=>wS,ClientPayload_TrafficAnonymization:()=>FS,ClientPayload_UserAgent:()=>Bt,ClientPayload_UserAgent_AppVersion:()=>Ct,ClientPayload_UserAgent_DeviceType:()=>KS,ClientPayload_UserAgent_DistributionChannel:()=>WS,ClientPayload_UserAgent_Platform:()=>HS,ClientPayload_UserAgent_ReleaseChannel:()=>qS,ClientPayload_WebInfo:()=>vt,ClientPayload_WebInfo_WebSubPlatform:()=>GS,ClientPayload_WebInfo_WebdPayload:()=>xt,CollectionName:()=>LA,CombinedFingerprint:()=>DI,Command:()=>Nt,CommentMetadata:()=>Ot,CompanionCommitment:()=>Ut,CompanionEphemeralIdentity:()=>EI,Config:()=>BI,Config_FieldEntry:()=>Tc,ConsumerApplication:()=>CI,ConsumerApplication_ApplicationData:()=>Tt,ConsumerApplication_AudioMessage:()=>Lt,ConsumerApplication_ContactMessage:()=>je,ConsumerApplication_ContactsArrayMessage:()=>wt,ConsumerApplication_Content:()=>Ft,ConsumerApplication_DocumentMessage:()=>Vt,ConsumerApplication_EditMessage:()=>Kt,ConsumerApplication_ExtendedTextMessage:()=>en,ConsumerApplication_GroupInviteMessage:()=>Wt,ConsumerApplication_ImageMessage:()=>nn,ConsumerApplication_InteractiveAnnotation:()=>vI,ConsumerApplication_LiveLocationMessage:()=>Ht,ConsumerApplication_Location:()=>ge,ConsumerApplication_LocationMessage:()=>qt,ConsumerApplication_MediaPayload:()=>xI,ConsumerApplication_Metadata:()=>Gt,ConsumerApplication_Option:()=>tn,ConsumerApplication_Payload:()=>Jt,ConsumerApplication_Point:()=>Qt,ConsumerApplication_PollAddOptionMessage:()=>NI,ConsumerApplication_PollCreationMessage:()=>zt,ConsumerApplication_PollEncValue:()=>we,ConsumerApplication_PollUpdateMessage:()=>Yt,ConsumerApplication_PollVoteMessage:()=>OI,ConsumerApplication_ReactionMessage:()=>Zt,ConsumerApplication_RevokeMessage:()=>Xt,ConsumerApplication_Signal:()=>$t,ConsumerApplication_StatusTextMesage:()=>jt,ConsumerApplication_StickerMessage:()=>ea,ConsumerApplication_SubProtocolPayload:()=>na,ConsumerApplication_VideoMessage:()=>an,ConsumerApplication_ViewOnceMessage:()=>ia,ConsumerApplication_consumerApplicationExtendedTextMessagePreviewType:()=>JS,ContextInfo:()=>b,ContextInfo_AdReplyInfo:()=>ta,ContextInfo_AdReplyInfo_MediaType:()=>jS,ContextInfo_BusinessInteractionPills:()=>aa,ContextInfo_BusinessInteractionPills_EntryPoint:()=>eP,ContextInfo_BusinessInteractionPills_Pill:()=>rn,ContextInfo_BusinessInteractionPills_PillType:()=>nP,ContextInfo_BusinessInteractionPills_SignedPayload:()=>UI,ContextInfo_BusinessMessageForwardInfo:()=>ra,ContextInfo_CrossAppSource:()=>QS,ContextInfo_DataSharingContext:()=>da,ContextInfo_DataSharingContext_DataSharingFlags:()=>iP,ContextInfo_DataSharingContext_Parameters:()=>Ye,ContextInfo_ExternalAdReplyInfo:()=>oa,ContextInfo_ExternalAdReplyInfo_AdType:()=>tP,ContextInfo_ExternalAdReplyInfo_MediaType:()=>aP,ContextInfo_FeatureEligibilities:()=>sa,ContextInfo_ForwardOrigin:()=>zS,ContextInfo_ForwardedNewsletterMessageInfo:()=>dn,ContextInfo_ForwardedNewsletterMessageInfo_ContentType:()=>rP,ContextInfo_PairedMediaType:()=>YS,ContextInfo_PartiallySelectedContent:()=>ua,ContextInfo_QuestionReplyQuotedMessage:()=>ca,ContextInfo_QuotedType:()=>ZS,ContextInfo_StatusAttributionType:()=>XS,ContextInfo_StatusAudienceMetadata:()=>fa,ContextInfo_StatusAudienceMetadata_AudienceType:()=>dP,ContextInfo_StatusSourceType:()=>$S,ContextInfo_UTMInfo:()=>la,Conversation:()=>pa,Conversation_EndOfHistoryTransferType:()=>oP,Conversation_GroupAppealStatus:()=>sP,CreateBackupInput:()=>ga,CreateBackupOutput:()=>TI,DecryptMessageInput:()=>ya,DecryptMessageOutput:()=>LI,DeviceCapabilities:()=>Ma,DeviceCapabilities_AiThread:()=>ma,DeviceCapabilities_AiThread_SupportLevel:()=>fP,DeviceCapabilities_BusinessBroadcast:()=>_a,DeviceCapabilities_ChatLockSupportLevel:()=>uP,DeviceCapabilities_LIDMigration:()=>ha,DeviceCapabilities_MemberNameTagPrimarySupport:()=>cP,DeviceCapabilities_UserHasAvatar:()=>ka,DeviceConsistencyCodeMessage:()=>wI,DeviceListMetadata:()=>Aa,DeviceOutput:()=>Sa,DeviceProps:()=>Jc,DeviceProps_AppVersion:()=>Pa,DeviceProps_HistorySyncConfig:()=>on,DeviceProps_PlatformType:()=>lP,DisappearingMode:()=>ye,DisappearingMode_Initiator:()=>pP,DisappearingMode_Trigger:()=>gP,EmbeddedContent:()=>ba,EmbeddedMessage:()=>Ia,EmbeddedMusic:()=>Me,EncryptMessageInput:()=>Ra,EncryptMessageOutput:()=>FI,EncryptedPairingRequest:()=>VI,EncryptedSecretValuesOutput:()=>Da,EphemeralSetting:()=>KI,Epoch0Output:()=>Ea,EventAdditionalMetadata:()=>Ba,EventResponse:()=>Ca,ExitCode:()=>En,ExternalBlobReference:()=>Bn,Field:()=>De,Field_SubfieldEntry:()=>Lc,FingerprintData:()=>Fe,FingerprintData_HostedState:()=>yP,ForwardedAIBotMessageInfo:()=>va,GlobalSettings:()=>xa,GroupHistory:()=>WI,GroupHistoryBundleInfo:()=>Na,GroupHistoryBundleInfo_ProcessState:()=>MP,GroupHistoryIndividualMessageInfo:()=>Oa,GroupHistoryWithMessageBytes:()=>HI,GroupMention:()=>Ua,GroupParticipant:()=>Ta,GroupParticipant_Rank:()=>mP,GroupRootKeyShare:()=>La,GroupRootKeyShareEntry:()=>wa,HandshakeMessage:()=>Qc,HandshakeMessage_ClientFinish:()=>Fa,HandshakeMessage_ClientHello:()=>Va,HandshakeMessage_HandshakePqMode:()=>_P,HandshakeMessage_ServerHello:()=>Ka,HatchMetadataSync:()=>Wa,HistorySync:()=>zc,HistorySyncMsg:()=>Ha,HistorySync_BotAIWaitListState:()=>hP,HistorySync_HistorySyncType:()=>kP,HydratedTemplateButton:()=>qa,HydratedTemplateButton_HydratedCallButton:()=>Ga,HydratedTemplateButton_HydratedQuickReplyButton:()=>Ja,HydratedTemplateButton_HydratedURLButton:()=>Qa,HydratedTemplateButton_HydratedURLButton_WebviewPresentationType:()=>AP,IdentityKeyPairStructure:()=>qI,InThreadSurveyMetadata:()=>za,InThreadSurveyMetadata_InThreadSurveyOption:()=>Ya,InThreadSurveyMetadata_InThreadSurveyPrivacyStatementPart:()=>Za,InThreadSurveyMetadata_InThreadSurveyQuestion:()=>Xa,InlineContact:()=>$a,InteractiveAnnotation:()=>te,InteractiveAnnotation_StatusLinkType:()=>SP,InteractiveMessageAdditionalMetadata:()=>ja,KeepInChat:()=>er,KeepType:()=>FA,KeyExchangeMessage:()=>GI,KeyId:()=>me,LIDMigrationMapping:()=>ir,LIDMigrationMappingSyncMessage:()=>nr,LIDMigrationMappingSyncPayload:()=>Yc,LabyrinthWaCommand:()=>JI,LegacyMessage:()=>tr,LimitSharing:()=>fe,LimitSharing_TriggerType:()=>PP,LocalizedName:()=>ar,Location:()=>rr,MediaData:()=>Ve,MediaDomainInfo:()=>dr,MediaEntry:()=>QI,MediaEntry_DownloadableThumbnail:()=>or,MediaEntry_ProgressiveJpegDetails:()=>sr,MediaKeyDomain:()=>KA,MediaNotifyMessage:()=>ur,MediaRetryNotification:()=>Zc,MediaRetryNotification_ResultType:()=>bP,MediaVisibility:()=>WA,MemberLabel:()=>_e,Mention:()=>cr,Message:()=>F,MessageAddOn:()=>Ho,MessageAddOnContextInfo:()=>hn,MessageAddOn_MessageAddOnType:()=>bb,MessageAssociation:()=>qo,MessageAssociation_AssociationType:()=>Ib,MessageContextInfo:()=>kn,MessageContextInfo_MessageAddonExpiryType:()=>Rb,MessageKey:()=>_,MessageSecretMessage:()=>zI,MessageText:()=>Q,Message_AlbumMessage:()=>fr,Message_AppStateFatalExceptionNotification:()=>lr,Message_AppStateSyncKey:()=>pr,Message_AppStateSyncKeyData:()=>gr,Message_AppStateSyncKeyFingerprint:()=>yr,Message_AppStateSyncKeyId:()=>sn,Message_AppStateSyncKeyRequest:()=>Mr,Message_AppStateSyncKeyShare:()=>mr,Message_AudioMessage:()=>un,Message_BCallMessage:()=>_r,Message_BCallMessage_MediaType:()=>CP,Message_ButtonsMessage:()=>hr,Message_ButtonsMessage_Button:()=>kr,Message_ButtonsMessage_Button_ButtonText:()=>Ar,Message_ButtonsMessage_Button_NativeFlowInfo:()=>Sr,Message_ButtonsMessage_Button_Type:()=>xP,Message_ButtonsMessage_HeaderType:()=>vP,Message_ButtonsResponseMessage:()=>Pr,Message_ButtonsResponseMessage_Type:()=>NP,Message_Call:()=>br,Message_CallLogMessage:()=>Ir,Message_CallLogMessage_CallOutcome:()=>OP,Message_CallLogMessage_CallParticipant:()=>Rr,Message_CallLogMessage_CallType:()=>UP,Message_CancelPaymentRequestMessage:()=>Dr,Message_Chat:()=>Er,Message_ChatCustomImageWallpaper:()=>Br,Message_ChatDefaultWallpaper:()=>Cr,Message_ChatSolidColorWallpaper:()=>vr,Message_ChatStockImageWallpaper:()=>xr,Message_ChatThemeSetting:()=>Nr,Message_CloudAPIThreadControlNotification:()=>Or,Message_CloudAPIThreadControlNotification_CloudAPIThreadControl:()=>TP,Message_CloudAPIThreadControlNotification_CloudAPIThreadControlNotificationContent:()=>Ur,Message_CommentMessage:()=>Tr,Message_ConditionalRevealMessage:()=>Lr,Message_ConditionalRevealMessage_ConditionalRevealMessageType:()=>LP,Message_ContactMessage:()=>cn,Message_ContactsArrayMessage:()=>wr,Message_DeclinePaymentRequestMessage:()=>Fr,Message_DeviceSentMessage:()=>Vr,Message_DocumentMessage:()=>ne,Message_EncCommentMessage:()=>Kr,Message_EncEventResponseMessage:()=>Wr,Message_EncReactionMessage:()=>Hr,Message_EventInviteMessage:()=>qr,Message_EventMessage:()=>Gr,Message_EventResponseMessage:()=>Ee,Message_EventResponseMessage_EventResponseType:()=>wP,Message_ExtendedTextMessage:()=>Jr,Message_ExtendedTextMessage_FontType:()=>FP,Message_ExtendedTextMessage_InviteLinkGroupType:()=>VP,Message_ExtendedTextMessage_PreviewType:()=>KP,Message_FullHistorySyncOnDemandConfig:()=>Qr,Message_FullHistorySyncOnDemandRequestMetadata:()=>he,Message_FutureProofMessage:()=>D,Message_GroupInviteMessage:()=>zr,Message_GroupInviteMessage_GroupType:()=>WP,Message_HighlyStructuredMessage:()=>H,Message_HighlyStructuredMessage_HSMLocalizableParameter:()=>Yr,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMCurrency:()=>Zr,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime:()=>Xr,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent:()=>$r,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_CalendarType:()=>HP,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_DayOfWeekType:()=>qP,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeUnixEpoch:()=>jr,Message_HistorySyncMessageAccessStatus:()=>ed,Message_HistorySyncNotification:()=>nd,Message_HistorySyncType:()=>IP,Message_ImageMessage:()=>J,Message_ImageMessage_ImageSourceType:()=>GP,Message_InitialSecurityNotificationSettingSync:()=>id,Message_InsightDeliveryState:()=>RP,Message_InteractiveMessage:()=>ke,Message_InteractiveMessage_BloksWidget:()=>fn,Message_InteractiveMessage_Body:()=>td,Message_InteractiveMessage_CarouselMessage:()=>ad,Message_InteractiveMessage_CarouselMessage_CarouselCardType:()=>JP,Message_InteractiveMessage_CollectionMessage:()=>rd,Message_InteractiveMessage_Footer:()=>dd,Message_InteractiveMessage_Header:()=>od,Message_InteractiveMessage_NativeFlowMessage:()=>sd,Message_InteractiveMessage_NativeFlowMessage_NativeFlowButton:()=>ud,Message_InteractiveMessage_ShopMessage:()=>cd,Message_InteractiveMessage_ShopMessage_Surface:()=>QP,Message_InteractiveResponseMessage:()=>fd,Message_InteractiveResponseMessage_Body:()=>ld,Message_InteractiveResponseMessage_Body_Format:()=>zP,Message_InteractiveResponseMessage_NativeFlowResponseMessage:()=>pd,Message_InvoiceMessage:()=>gd,Message_InvoiceMessage_AttachmentType:()=>YP,Message_KeepInChatMessage:()=>yd,Message_LinkPreviewMetadata:()=>Md,Message_LinkPreviewMetadata_SocialMediaPostType:()=>ZP,Message_ListMessage:()=>md,Message_ListMessage_ListType:()=>XP,Message_ListMessage_Product:()=>_d,Message_ListMessage_ProductListHeaderImage:()=>hd,Message_ListMessage_ProductListInfo:()=>kd,Message_ListMessage_ProductSection:()=>Ad,Message_ListMessage_Row:()=>Sd,Message_ListMessage_Section:()=>Pd,Message_ListResponseMessage:()=>bd,Message_ListResponseMessage_ListType:()=>$P,Message_ListResponseMessage_SingleSelectReply:()=>Id,Message_LiveLocationMessage:()=>ln,Message_LocationMessage:()=>X,Message_MMSThumbnailMetadata:()=>Rd,Message_MessageHistoryBundle:()=>pn,Message_MessageHistoryMetadata:()=>gn,Message_MessageHistoryNotice:()=>Dd,Message_NewsletterAdminInviteMessage:()=>Ed,Message_NewsletterFollowerInviteMessage:()=>Bd,Message_OrderMessage:()=>Cd,Message_OrderMessage_OrderStatus:()=>jP,Message_OrderMessage_OrderSurface:()=>eb,Message_PaymentExtendedMetadata:()=>vd,Message_PaymentInviteMessage:()=>xd,Message_PaymentInviteMessage_InviteType:()=>nb,Message_PaymentInviteMessage_ServiceType:()=>ib,Message_PaymentLinkMetadata:()=>yn,Message_PaymentLinkMetadata_PaymentLinkButton:()=>Nd,Message_PaymentLinkMetadata_PaymentLinkHeader:()=>Od,Message_PaymentLinkMetadata_PaymentLinkHeader_PaymentLinkHeaderType:()=>tb,Message_PaymentLinkMetadata_PaymentLinkProvider:()=>Ud,Message_PaymentReminderMessage:()=>Td,Message_PaymentReminderMessage_ReminderFrequency:()=>ab,Message_PaymentReminderMessage_ReminderStatus:()=>rb,Message_PeerDataOperationRequestMessage:()=>Ld,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsContactListRequest:()=>wd,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsRefreshRequest:()=>Fd,Message_PeerDataOperationRequestMessage_CompanionCanonicalUserNonceFetchRequest:()=>Vd,Message_PeerDataOperationRequestMessage_FullHistorySyncOnDemandRequest:()=>Kd,Message_PeerDataOperationRequestMessage_GalaxyFlowAction:()=>Wd,Message_PeerDataOperationRequestMessage_GalaxyFlowAction_GalaxyFlowActionType:()=>db,Message_PeerDataOperationRequestMessage_HistorySyncChunkRetryRequest:()=>Hd,Message_PeerDataOperationRequestMessage_HistorySyncOnDemandRequest:()=>qd,Message_PeerDataOperationRequestMessage_PlaceholderMessageResendRequest:()=>Gd,Message_PeerDataOperationRequestMessage_RequestStickerReupload:()=>Jd,Message_PeerDataOperationRequestMessage_RequestUrlPreview:()=>Qd,Message_PeerDataOperationRequestMessage_SyncDCollectionFatalRecoveryRequest:()=>zd,Message_PeerDataOperationRequestResponseMessage:()=>Yd,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult:()=>Zd,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactListResponse:()=>Xd,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactState:()=>$d,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionCanonicalUserNonceFetchResponse:()=>jd,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionMetaNonceFetchResponse:()=>eo,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FlowResponsesCsvBundle:()=>no,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandRequestResponse:()=>io,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandResponseCode:()=>ob,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponse:()=>to,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponseCode:()=>sb,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse:()=>ao,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_LinkPreviewHighQualityThumbnail:()=>ro,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_PaymentLinkPreviewMetadata:()=>oo,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_PlaceholderMessageResendResponse:()=>so,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_SyncDSnapshotFatalRecoveryResponse:()=>uo,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_WaffleNonceFetchResponse:()=>co,Message_PeerDataOperationRequestType:()=>DP,Message_PinInChatMessage:()=>fo,Message_PinInChatMessage_Type:()=>ub,Message_PlaceholderMessage:()=>lo,Message_PlaceholderMessage_PlaceholderType:()=>cb,Message_PollAddOptionMessage:()=>po,Message_PollContentType:()=>EP,Message_PollCreationMessage:()=>ee,Message_PollCreationMessage_Option:()=>le,Message_PollEncValue:()=>go,Message_PollResultSnapshotMessage:()=>Ke,Message_PollResultSnapshotMessage_PollVote:()=>yo,Message_PollType:()=>BP,Message_PollUpdateMessage:()=>Mo,Message_PollUpdateMessageMetadata:()=>Ae,Message_PollVoteMessage:()=>Be,Message_ProductMessage:()=>Mn,Message_ProductMessage_CatalogSnapshot:()=>mo,Message_ProductMessage_ProductSnapshot:()=>_o,Message_ProtocolMessage:()=>ho,Message_ProtocolMessage_Type:()=>fb,Message_QuestionResponseMessage:()=>ko,Message_ReactionMessage:()=>Ao,Message_RequestPaymentMessage:()=>So,Message_RequestPhoneNumberMessage:()=>Po,Message_RequestWelcomeMessageMetadata:()=>bo,Message_RequestWelcomeMessageMetadata_LocalChatState:()=>lb,Message_RequestWelcomeMessageMetadata_WelcomeTrigger:()=>pb,Message_RootSecretDistributeMessage:()=>Io,Message_ScheduledCallCreationMessage:()=>Ro,Message_ScheduledCallCreationMessage_CallType:()=>gb,Message_ScheduledCallEditMessage:()=>Do,Message_ScheduledCallEditMessage_EditType:()=>yb,Message_SecretEncryptedMessage:()=>Eo,Message_SecretEncryptedMessage_SecretEncType:()=>Mb,Message_SendPaymentMessage:()=>Bo,Message_SenderKeyDistributionMessage:()=>We,Message_SplitPaymentMessage:()=>Co,Message_SplitPaymentParticipant:()=>vo,Message_SplitPaymentParticipant_SplitPaymentStatus:()=>mb,Message_StatusNotificationMessage:()=>xo,Message_StatusNotificationMessage_StatusNotificationType:()=>_b,Message_StatusQuestionAnswerMessage:()=>No,Message_StatusQuotedMessage:()=>Oo,Message_StatusQuotedMessage_StatusQuotedMessageType:()=>hb,Message_StatusStickerInteractionMessage:()=>Uo,Message_StatusStickerInteractionMessage_StatusStickerType:()=>kb,Message_StickerMessage:()=>mn,Message_StickerPackMessage:()=>To,Message_StickerPackMessage_Sticker:()=>Lo,Message_StickerPackMessage_StickerPackOrigin:()=>Ab,Message_StickerSyncRMRMessage:()=>wo,Message_TemplateButtonReplyMessage:()=>Fo,Message_TemplateMessage:()=>_n,Message_TemplateMessage_FourRowTemplate:()=>Vo,Message_TemplateMessage_HydratedFourRowTemplate:()=>He,Message_URLMetadata:()=>Ko,Message_VideoEndCard:()=>Wo,Message_VideoMessage:()=>Y,Message_VideoMessage_Attribution:()=>Sb,Message_VideoMessage_VideoSourceType:()=>Pb,Money:()=>Z,MsgOpaqueData:()=>qe,MsgOpaqueData_EventLocation:()=>Go,MsgOpaqueData_PollContentType:()=>Db,MsgOpaqueData_PollOption:()=>An,MsgOpaqueData_PollType:()=>Eb,MsgOpaqueData_PollVoteSnapshot:()=>Jo,MsgOpaqueData_PollVotesSnapshot:()=>Qo,MsgRowOpaqueData:()=>YI,MutationProps:()=>HA,NoiseCertificate:()=>ZI,NoiseCertificate_Details:()=>XI,NotificationMessageInfo:()=>$I,NotificationSettings:()=>Ge,OrfThreadIdInput:()=>zo,OrfThreadIdOutput:()=>jI,PairingRequest:()=>eR,PastParticipant:()=>Yo,PastParticipant_LeaveReason:()=>Bb,PastParticipants:()=>Zo,PatchDebugData:()=>nR,PatchDebugData_Platform:()=>Cb,PaymentBackground:()=>Sn,PaymentBackground_MediaData:()=>Xo,PaymentBackground_Type:()=>vb,PaymentInfo:()=>Je,PaymentInfo_Currency:()=>xb,PaymentInfo_Status:()=>Nb,PaymentInfo_TxnStatus:()=>Ob,PhoneNumberToLIDMapping:()=>$o,PhotoChange:()=>jo,PinInChat:()=>es,PinInChat_Type:()=>Ub,Point:()=>ns,PollAdditionalMetadata:()=>is,PollAdditionalMetadata_PollNameHashHistoryEntry:()=>ts,PollEncValue:()=>as,PollUpdate:()=>rs,PreKeyRecordStructure:()=>iR,PreKeySignalMessage:()=>tR,PremiumMessageInfo:()=>ds,PrimaryEphemeralIdentity:()=>aR,PrivacySystemMessage:()=>qA,ProcessedVideo:()=>os,ProcessedVideo_VideoQuality:()=>Tb,ProloguePayload:()=>rR,Pushname:()=>ss,QP:()=>dR,QP_ClauseType:()=>Lb,QP_Filter:()=>us,QP_FilterClause:()=>qn,QP_FilterClientNotSupportedConfig:()=>wb,QP_FilterParameters:()=>cs,QP_FilterResult:()=>Fb,QuarantinedMessage:()=>fs,Reaction:()=>ls,RecentEmojiWeight:()=>ps,RecordStructure:()=>oR,Reportable:()=>sR,ReportingTokenInfo:()=>gs,RoutingInfo:()=>uR,ScheduledMessageMetadata:()=>ys,SenderKeyDistributionMessage:()=>Xc,SenderKeyMessage:()=>$c,SenderKeyRecordStructure:()=>cR,SenderKeyStateStructure:()=>Ms,SenderKeyStateStructure_SenderChainKey:()=>ms,SenderKeyStateStructure_SenderMessageKey:()=>_s,SenderKeyStateStructure_SenderSigningKey:()=>hs,ServerErrorReceipt:()=>jc,SessionStructure:()=>Qe,SessionStructure_Chain:()=>ze,SessionStructure_Chain_ChainKey:()=>ks,SessionStructure_Chain_MessageKey:()=>As,SessionStructure_PendingKeyExchange:()=>Ss,SessionStructure_PendingPreKey:()=>Ps,SessionTransparencyMetadata:()=>bs,SessionTransparencyType:()=>GA,SignalMessage:()=>fR,SignedPreKeyRecordStructure:()=>lR,StatusAttribution:()=>Is,StatusAttribution_AiCreatedAttribution:()=>Rs,StatusAttribution_AiCreatedAttribution_Source:()=>Kb,StatusAttribution_ExternalShare:()=>Ds,StatusAttribution_ExternalShare_Source:()=>Wb,StatusAttribution_GroupStatus:()=>Es,StatusAttribution_Music:()=>Bs,StatusAttribution_RLAttribution:()=>Cs,StatusAttribution_RLAttribution_Source:()=>Hb,StatusAttribution_StatusReshare:()=>vs,StatusAttribution_StatusReshare_Metadata:()=>xs,StatusAttribution_StatusReshare_Source:()=>qb,StatusAttribution_Type:()=>Vb,StatusMentionMessage:()=>Ns,StatusPSA:()=>Os,StickerMetadata:()=>Us,SubProtocol:()=>q,SyncActionData:()=>Cn,SyncActionValue:()=>vn,SyncActionValue_AgentAction:()=>Ts,SyncActionValue_AiThreadRenameAction:()=>Ls,SyncActionValue_AndroidUnsupportedActions:()=>ws,SyncActionValue_ArchiveChatAction:()=>Fs,SyncActionValue_AutoOrganizeBusinessChatSetting:()=>Vs,SyncActionValue_AvatarUpdatedAction:()=>Ks,SyncActionValue_AvatarUpdatedAction_AvatarEventType:()=>Jb,SyncActionValue_BizAISettingsNudgeAction:()=>Ws,SyncActionValue_BizAISettingsNudgeAction_BizAISettingsCategory:()=>Qb,SyncActionValue_BotWelcomeRequestAction:()=>Hs,SyncActionValue_BroadcastListParticipant:()=>qs,SyncActionValue_BusinessBroadcastAssociationAction:()=>pR,SyncActionValue_BusinessBroadcastCampaignAction:()=>Gs,SyncActionValue_BusinessBroadcastCampaignStatus:()=>Gb,SyncActionValue_BusinessBroadcastInsightsAction:()=>Js,SyncActionValue_BusinessBroadcastListAction:()=>Qs,SyncActionValue_CallLogAction:()=>zs,SyncActionValue_ChatAssignmentAction:()=>Ys,SyncActionValue_ChatAssignmentOpenedStatusAction:()=>Zs,SyncActionValue_ClearChatAction:()=>Xs,SyncActionValue_CoexV2VersionAction:()=>$s,SyncActionValue_ContactAction:()=>js,SyncActionValue_CtwaPerCustomerDataSharingAction:()=>eu,SyncActionValue_CustomPaymentMethod:()=>nu,SyncActionValue_CustomPaymentMethodMetadata:()=>iu,SyncActionValue_CustomPaymentMethodsAction:()=>tu,SyncActionValue_CustomerDataAction:()=>au,SyncActionValue_DeleteChatAction:()=>ru,SyncActionValue_DeleteIndividualCallLogAction:()=>du,SyncActionValue_DeleteMessageForMeAction:()=>ou,SyncActionValue_DetectedOutcomesStatusAction:()=>su,SyncActionValue_ExternalWebBetaAction:()=>uu,SyncActionValue_FavoritesAction:()=>cu,SyncActionValue_FavoritesAction_Favorite:()=>fu,SyncActionValue_InteractiveMessageAction:()=>lu,SyncActionValue_InteractiveMessageAction_InteractiveMessageActionMode:()=>zb,SyncActionValue_KeyExpiration:()=>pu,SyncActionValue_LabelAssociationAction:()=>gu,SyncActionValue_LabelEditAction:()=>yu,SyncActionValue_LabelEditAction_ListType:()=>Yb,SyncActionValue_LabelReorderingAction:()=>Mu,SyncActionValue_LidContactAction:()=>mu,SyncActionValue_LocaleSetting:()=>_u,SyncActionValue_LockChatAction:()=>hu,SyncActionValue_MaibaAIFeaturesControlAction:()=>ku,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIFeatureStatus:()=>Zb,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIReplyMode:()=>Xb,SyncActionValue_MarkChatAsReadAction:()=>Au,SyncActionValue_MarketingMessageAction:()=>Su,SyncActionValue_MarketingMessageAction_MarketingMessagePrototypeType:()=>$b,SyncActionValue_MarketingMessageBroadcastAction:()=>Pu,SyncActionValue_MerchantPaymentPartnerAction:()=>bu,SyncActionValue_MerchantPaymentPartnerAction_Status:()=>jb,SyncActionValue_MusicUserIdAction:()=>Iu,SyncActionValue_MusicUserIdAction_MusicUserIdMapEntry:()=>wc,SyncActionValue_MuteAction:()=>Ru,SyncActionValue_NctSaltSyncAction:()=>Du,SyncActionValue_NewsletterSavedInterestsAction:()=>Eu,SyncActionValue_NoteEditAction:()=>Bu,SyncActionValue_NoteEditAction_NoteType:()=>eI,SyncActionValue_NotificationActivitySettingAction:()=>Cu,SyncActionValue_NotificationActivitySettingAction_NotificationActivitySetting:()=>nI,SyncActionValue_NuxAction:()=>vu,SyncActionValue_OutContactAction:()=>xu,SyncActionValue_PaymentInfoAction:()=>Nu,SyncActionValue_PaymentTosAction:()=>Ou,SyncActionValue_PaymentTosAction_PaymentNotice:()=>iI,SyncActionValue_PinAction:()=>Uu,SyncActionValue_PnForLidChatAction:()=>Tu,SyncActionValue_PrimaryFeature:()=>Lu,SyncActionValue_PrimaryVersionAction:()=>wu,SyncActionValue_PrivacySettingChannelsPersonalisedRecommendationAction:()=>Fu,SyncActionValue_PrivacySettingDisableLinkPreviewsAction:()=>Vu,SyncActionValue_PrivacySettingRelayAllCalls:()=>Ku,SyncActionValue_PrivateProcessingSettingAction:()=>Wu,SyncActionValue_PrivateProcessingSettingAction_PrivateProcessingStatus:()=>tI,SyncActionValue_PushNameSetting:()=>Hu,SyncActionValue_QuickReplyAction:()=>qu,SyncActionValue_RecentEmojiWeightsAction:()=>Gu,SyncActionValue_RemoveRecentStickerAction:()=>Ju,SyncActionValue_SettingsSyncAction:()=>Qu,SyncActionValue_SettingsSyncAction_DisplayMode:()=>aI,SyncActionValue_SettingsSyncAction_MediaQualitySetting:()=>rI,SyncActionValue_SettingsSyncAction_SettingKey:()=>dI,SyncActionValue_SettingsSyncAction_SettingPlatform:()=>oI,SyncActionValue_StarAction:()=>zu,SyncActionValue_StatusPostOptInNotificationPreferencesAction:()=>Yu,SyncActionValue_StatusPrivacyAction:()=>Zu,SyncActionValue_StatusPrivacyAction_CustomList:()=>Xu,SyncActionValue_StatusPrivacyAction_StatusDistributionMode:()=>sI,SyncActionValue_StickerAction:()=>Pn,SyncActionValue_SubscriptionAction:()=>$u,SyncActionValue_SubscriptionsSyncV2Action:()=>ju,SyncActionValue_SubscriptionsSyncV2Action_PaidFeature:()=>ec,SyncActionValue_SubscriptionsSyncV2Action_SubscriptionInfo:()=>nc,SyncActionValue_SyncActionMessage:()=>ic,SyncActionValue_SyncActionMessageRange:()=>ae,SyncActionValue_ThreadPinAction:()=>tc,SyncActionValue_TimeFormatAction:()=>ac,SyncActionValue_UGCBot:()=>rc,SyncActionValue_UnarchiveChatsSetting:()=>dc,SyncActionValue_UserStatusMuteAction:()=>oc,SyncActionValue_UsernameChatStartModeAction:()=>sc,SyncActionValue_UsernameChatStartModeAction_ChatStartMode:()=>uI,SyncActionValue_WASARootSecretAction:()=>uc,SyncActionValue_WASARootSecretAction_RootSecretEntry:()=>cc,SyncActionValue_WaffleAccountLinkStateAction:()=>fc,SyncActionValue_WaffleAccountLinkStateAction_AccountLinkState:()=>cI,SyncActionValue_WamoUserIdentifierAction:()=>lc,SyncdIndex:()=>pc,SyncdMutation:()=>Ce,SyncdMutation_SyncdOperation:()=>fI,SyncdMutations:()=>ef,SyncdPatch:()=>nf,SyncdPlainTextRecord:()=>gc,SyncdRecord:()=>ve,SyncdSnapshot:()=>tf,SyncdSnapshotRecovery:()=>gR,SyncdValue:()=>yc,SyncdVersion:()=>Se,TapLinkAction:()=>Mc,TemplateButton:()=>mc,TemplateButton_CallButton:()=>_c,TemplateButton_QuickReplyButton:()=>hc,TemplateButton_URLButton:()=>kc,ThreadID:()=>Ac,ThreadID_ThreadType:()=>lI,UnCountedAssociatedMessageList:()=>Sc,UnCountedAssociatedMessageListWithMessageBytes:()=>Pc,UrlTrackingMap:()=>bn,UrlTrackingMap_UrlTrackingMapElement:()=>bc,UserPassword:()=>Ic,UserPassword_Encoding:()=>pI,UserPassword_Transformer:()=>gI,UserPassword_TransformerArg:()=>Rc,UserPassword_TransformerArg_Value:()=>Dc,UserReceipt:()=>Ec,VerifiedNameCertificate:()=>xe,VerifiedNameCertificate_Details:()=>af,VirtualDeviceOutput:()=>Bc,WallpaperSettings:()=>pe,WebFeatures:()=>yR,WebFeatures_Flag:()=>yI,WebLinkRenderConfig:()=>JA,WebMessageInfo:()=>G,WebMessageInfoWithMessageBytes:()=>ie,WebMessageInfo_BizPrivacyStatus:()=>MI,WebMessageInfo_Status:()=>mI,WebMessageInfo_StubType:()=>_I,WebNotificationsInfo:()=>MR,commandCommandType:()=>OA,consumerApplicationMetadataSpecialTextSize:()=>UA,consumerApplicationStatusTextMesageFontType:()=>TA,futureProofBehavior:()=>wA,mentionMentionType:()=>VA,protobufPackage:()=>E1});function Uf(){let e=0,n=0;for(let r=0;r<28;r+=7){let a=this.buf[this.pos++];if(e|=(a&127)<<r,(a&128)==0)return this.assertBounds(),[e,n]}let i=this.buf[this.pos++];if(e|=(i&15)<<28,n=(i&112)>>4,(i&128)==0)return this.assertBounds(),[e,n];for(let r=3;r<=31;r+=7){let a=this.buf[this.pos++];if(n|=(a&127)<<r,(a&128)==0)return this.assertBounds(),[e,n]}throw Error("invalid varint")}function Nc(e,n,i){for(let t=0;t<28;t=t+7){let o=e>>>t,f=!(o>>>7==0&&n==0),y=(f?o|128:o)&255;if(i.push(y),!f)return}let r=e>>>28&15|(n&7)<<4,a=n>>3!=0;if(i.push((a?r|128:r)&255),!a)return;for(let t=3;t<31;t=t+7){let o=n>>>t,f=o>>>7!=0,y=(f?o|128:o)&255;if(i.push(y),!f)return}i.push(n>>>31&1)}var xc=4294967296;function ff(e){let n=e[0]==="-";if(n)e=e.slice(1);let i=1e6,r=0,a=0;function t(o,f){let y=Number(e.slice(o,f));if(a*=i,r=r*i+y,r>=xc)a=a+(r/xc|0),r=r%xc}return t(-24,-18),t(-18,-12),t(-12,-6),t(-6),n?Lf(r,a):pf(r,a)}function Tf(e,n){let i=pf(e,n),r=i.hi&2147483648;if(r)i=Lf(i.lo,i.hi);let a=lf(i.lo,i.hi);return r?"-"+a:a}function lf(e,n){if({lo:e,hi:n}=M1(e,n),n<=2097151)return String(xc*n+e);let i=e&16777215,r=(e>>>24|n<<8)&16777215,a=n>>16&65535,t=i+r*6777216+a*6710656,o=r+a*8147497,f=a*2,y=1e7;if(t>=y)o+=Math.floor(t/y),t%=y;if(o>=y)f+=Math.floor(o/y),o%=y;return f.toString()+Of(o)+Of(t)}function M1(e,n){return{lo:e>>>0,hi:n>>>0}}function pf(e,n){return{lo:e|0,hi:n|0}}function Lf(e,n){if(n=~n,e)e=~e+1;else n+=1;return pf(e,n)}var Of=(e)=>{let n=String(e);return"0000000".slice(n.length)+n};function gf(e,n){if(e>=0){while(e>127)n.push(e&127|128),e=e>>>7;n.push(e)}else{for(let i=0;i<9;i++)n.push(e&127|128),e=e>>7;n.push(1)}}function wf(){let e=this.buf[this.pos++],n=e&127;if((e&128)==0)return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<7,(e&128)==0)return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<14,(e&128)==0)return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<21,(e&128)==0)return this.assertBounds(),n;e=this.buf[this.pos++],n|=(e&15)<<28;for(let i=5;(e&128)!==0&&i<10;i++)e=this.buf[this.pos++];if((e&128)!=0)throw Error("invalid varint");return this.assertBounds(),n>>>0}var oe=m1();function m1(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt==="function"&&typeof e.getBigInt64==="function"&&typeof e.getBigUint64==="function"&&typeof e.setBigInt64==="function"&&typeof e.setBigUint64==="function"&&(!!globalThis.Deno||typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),r=BigInt("9223372036854775807"),a=BigInt("0"),t=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(o){let f=typeof o=="bigint"?o:BigInt(o);if(f>r||f<i)throw Error(`invalid int64: ${o}`);return f},uParse(o){let f=typeof o=="bigint"?o:BigInt(o);if(f>t||f<a)throw Error(`invalid uint64: ${o}`);return f},enc(o){return e.setBigInt64(0,this.parse(o),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(o){return e.setBigInt64(0,this.uParse(o),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(o,f){return e.setInt32(0,o,!0),e.setInt32(4,f,!0),e.getBigInt64(0,!0)},uDec(o,f){return e.setInt32(0,o,!0),e.setInt32(4,f,!0),e.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(i){if(typeof i!="string")i=i.toString();return Ff(i),i},uParse(i){if(typeof i!="string")i=i.toString();return Vf(i),i},enc(i){if(typeof i!="string")i=i.toString();return Ff(i),ff(i)},uEnc(i){if(typeof i!="string")i=i.toString();return Vf(i),ff(i)},dec(i,r){return Tf(i,r)},uDec(i,r){return lf(i,r)}}}function Ff(e){if(!/^-?[0-9]+$/.test(e))throw Error("invalid int64: "+e)}function Vf(e){if(!/^[0-9]+$/.test(e))throw Error("invalid uint64: "+e)}var yf=Symbol.for("@bufbuild/protobuf/text-encoding");function Mf(){if(globalThis[yf]==null){let e=new globalThis.TextEncoder,n=new globalThis.TextDecoder,i;globalThis[yf]={encodeUtf8(r){return e.encode(r)},decodeUtf8(r,a){if(a){if(i===void 0)i=new globalThis.TextDecoder("utf-8",{fatal:!0});return i.decode(r)}return n.decode(r)},checkUtf8(r){try{return encodeURIComponent(r),!0}catch(a){return!1}}}}return globalThis[yf]}var Ue;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(Ue||(Ue={}));var _1=340282346638528860000000000000000000000,h1=-340282346638528860000000000000000000000,k1=4294967295,A1=2147483647,S1=-2147483648;class s{constructor(e=Mf().encodeUtf8){this.encodeUtf8=e,this.stack=[],this.chunks=[],this.buf=[]}finish(){if(this.buf.length)this.chunks.push(new Uint8Array(this.buf)),this.buf=[];let e=0;for(let r=0;r<this.chunks.length;r++)e+=this.chunks[r].length;let n=new Uint8Array(e),i=0;for(let r=0;r<this.chunks.length;r++)n.set(this.chunks[r],i),i+=this.chunks[r].length;return this.chunks=[],n}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),n=this.stack.pop();if(!n)throw Error("invalid state, fork stack empty");return this.chunks=n.chunks,this.buf=n.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,n){return this.uint32((e<<3|n)>>>0)}raw(e){if(this.buf.length)this.chunks.push(new Uint8Array(this.buf)),this.buf=[];return this.chunks.push(e),this}uint32(e){Kf(e);while(e>127)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return mf(e),gf(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let n=this.encodeUtf8(e);return this.uint32(n.byteLength),this.raw(n)}float(e){P1(e);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,e,!0),this.raw(n)}double(e){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,e,!0),this.raw(n)}fixed32(e){Kf(e);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,e,!0),this.raw(n)}sfixed32(e){mf(e);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,e,!0),this.raw(n)}sint32(e){return mf(e),e=(e<<1^e>>31)>>>0,gf(e,this.buf),this}sfixed64(e){let n=new Uint8Array(8),i=new DataView(n.buffer),r=oe.enc(e);return i.setInt32(0,r.lo,!0),i.setInt32(4,r.hi,!0),this.raw(n)}fixed64(e){let n=new Uint8Array(8),i=new DataView(n.buffer),r=oe.uEnc(e);return i.setInt32(0,r.lo,!0),i.setInt32(4,r.hi,!0),this.raw(n)}int64(e){let n=oe.enc(e);return Nc(n.lo,n.hi,this.buf),this}sint64(e){let n=oe.enc(e),i=n.hi>>31,r=n.lo<<1^i,a=(n.hi<<1|n.lo>>>31)^i;return Nc(r,a,this.buf),this}uint64(e){let n=oe.uEnc(e);return Nc(n.lo,n.hi,this.buf),this}}class _f{constructor(e,n=Mf().decodeUtf8){this.decodeUtf8=n,this.varint64=Uf,this.uint32=wf,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}tag(){let e=this.pos,n=this.uint32(),i=this.pos-e;if(i>5||i==5&&this.buf[this.pos-1]>15)throw Error("illegal tag: varint overflows uint32");let r=n>>>3,a=n&7;if(r<=0||a>5)throw Error("illegal tag: field no "+r+" wire type "+a);return[r,a]}skip(e,n){let i=this.pos;switch(e){case Ue.Varint:while(this.buf[this.pos++]&128);break;case Ue.Bit64:this.pos+=4;case Ue.Bit32:this.pos+=4;break;case Ue.LengthDelimited:let r=this.uint32();this.pos+=r;break;case Ue.StartGroup:for(;;){let[a,t]=this.tag();if(t===Ue.EndGroup){if(n!==void 0&&a!==n)throw Error("invalid end group tag");break}this.skip(t,a)}break;default:throw Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(i,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return oe.dec(...this.varint64())}uint64(){return oe.uDec(...this.varint64())}sint64(){let[e,n]=this.varint64(),i=-(e&1);return e=(e>>>1|(n&1)<<31)^i,n=n>>>1^i,oe.dec(e,n)}bool(){let[e,n]=this.varint64();return e!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return oe.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return oe.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),n=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(n,n+e)}string(e){return this.decodeUtf8(this.bytes(),e)}}function mf(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>A1||e<S1)throw Error("invalid int32: "+e)}function Kf(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw Error("invalid uint32: "+typeof e);if(!Number.isInteger(e)||e>k1||e<0)throw Error("invalid uint32: "+e)}function P1(e){if(typeof e=="string"){let n=e;if(e=Number(e),Number.isNaN(e)&&n!=="NaN")throw Error("invalid float32: "+n)}else if(typeof e!="number")throw Error("invalid float32: "+typeof e);if(Number.isFinite(e)&&(e>_1||e<h1))throw Error("invalid float32: "+e)}import{Buffer as b1}from"node:buffer";var Hf=32,qf=2**Hf,Uc=7,Oc=1<<Uc,I1=Oc-1,R1="utf8",D1=Math.floor(Math.log2(Number.MAX_SAFE_INTEGER)/Uc)*Uc,kf=(e)=>{if(e>Number.MAX_SAFE_INTEGER)throw Error("Value is larger than Number.MAX_SAFE_INTEGER");if(e<Number.MIN_SAFE_INTEGER)throw Error("Value is smaller than Number.MIN_SAFE_INTEGER");return e},Wf=(e,n)=>kf((n>>>0)*qf+(e>>>0)),hf=(e,n)=>kf((n|0)*qf+(e>>>0));class d extends _f{utf8Buffer;constructor(e){super(e);this.utf8Buffer=b1.from(e.buffer,e.byteOffset,e.byteLength)}string(e){if(e)return super.string(!0);let n=this.uint32(),i=this.pos;return this.pos+=n,this.assertBounds(),this.utf8Buffer.toString(R1,i,this.pos)}bool(){let e=this.buf[this.pos++];if((e&Oc)===0)return this.assertBounds(),e!==0;this.pos--;let[n,i]=this.varint64();return n!==0||i!==0}positiveSafeVarint(){let e=this.pos,n=0,i=1;for(let r=0;r<=D1;r+=Uc){let a=this.buf[this.pos++];if(n+=(a&I1)*i,(a&Oc)===0)return this.assertBounds(),kf(n);i*=Oc}this.pos=e;return}uint64Number(){let e=this.positiveSafeVarint();if(e!==void 0)return e;let[n,i]=this.varint64();return Wf(n,i)}int64Number(){let e=this.positiveSafeVarint();if(e!==void 0)return e;let[n,i]=this.varint64();return hf(n,i)}sint64Number(){let[e,n]=this.varint64(),i=-(e&1);return e=(e>>>1|(n&1)<<Hf-1)^i,n=n>>>1^i,hf(e,n)}fixed64Number(){return Wf(this.sfixed32(),this.sfixed32())}sfixed64Number(){return hf(this.sfixed32(),this.sfixed32())}}var E1="whatsapp",DA;((a)=>{a[a.E2EE=0]="E2EE";a[a.HOSTED=1]="HOSTED";a[a.NON_E2EE=2]="NON_E2EE";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DA||={});var EA;((r)=>{r[r.AI_RICH_RESPONSE_TYPE_UNKNOWN=0]="AI_RICH_RESPONSE_TYPE_UNKNOWN";r[r.AI_RICH_RESPONSE_TYPE_STANDARD=1]="AI_RICH_RESPONSE_TYPE_STANDARD";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EA||={});var BA;((x)=>{x[x.AI_RICH_RESPONSE_UNKNOWN=0]="AI_RICH_RESPONSE_UNKNOWN";x[x.AI_RICH_RESPONSE_GRID_IMAGE=1]="AI_RICH_RESPONSE_GRID_IMAGE";x[x.AI_RICH_RESPONSE_TEXT=2]="AI_RICH_RESPONSE_TEXT";x[x.AI_RICH_RESPONSE_INLINE_IMAGE=3]="AI_RICH_RESPONSE_INLINE_IMAGE";x[x.AI_RICH_RESPONSE_TABLE=4]="AI_RICH_RESPONSE_TABLE";x[x.AI_RICH_RESPONSE_CODE=5]="AI_RICH_RESPONSE_CODE";x[x.AI_RICH_RESPONSE_DYNAMIC=6]="AI_RICH_RESPONSE_DYNAMIC";x[x.AI_RICH_RESPONSE_MAP=7]="AI_RICH_RESPONSE_MAP";x[x.AI_RICH_RESPONSE_LATEX=8]="AI_RICH_RESPONSE_LATEX";x[x.AI_RICH_RESPONSE_CONTENT_ITEMS=9]="AI_RICH_RESPONSE_CONTENT_ITEMS";x[x.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BA||={});var CA;((t)=>{t[t.UNSPECIFIED=0]="UNSPECIFIED";t[t.THINK_HARD=1]="THINK_HARD";t[t.IMAGE_GEN=2]="IMAGE_GEN";t[t.VIDEO_GEN=3]="VIDEO_GEN";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CA||={});var vA;((I)=>{I[I.UNDEFINED_ENTRY_POINT=0]="UNDEFINED_ENTRY_POINT";I[I.FAVICON=1]="FAVICON";I[I.CHATLIST=2]="CHATLIST";I[I.AISEARCH_NULL_STATE_PAPER_PLANE=3]="AISEARCH_NULL_STATE_PAPER_PLANE";I[I.AISEARCH_NULL_STATE_SUGGESTION=4]="AISEARCH_NULL_STATE_SUGGESTION";I[I.AISEARCH_TYPE_AHEAD_SUGGESTION=5]="AISEARCH_TYPE_AHEAD_SUGGESTION";I[I.AISEARCH_TYPE_AHEAD_PAPER_PLANE=6]="AISEARCH_TYPE_AHEAD_PAPER_PLANE";I[I.AISEARCH_TYPE_AHEAD_RESULT_CHATLIST=7]="AISEARCH_TYPE_AHEAD_RESULT_CHATLIST";I[I.AISEARCH_TYPE_AHEAD_RESULT_MESSAGES=8]="AISEARCH_TYPE_AHEAD_RESULT_MESSAGES";I[I.AIVOICE_SEARCH_BAR=9]="AIVOICE_SEARCH_BAR";I[I.AIVOICE_FAVICON=10]="AIVOICE_FAVICON";I[I.AISTUDIO=11]="AISTUDIO";I[I.DEEPLINK=12]="DEEPLINK";I[I.NOTIFICATION=13]="NOTIFICATION";I[I.PROFILE_MESSAGE_BUTTON=14]="PROFILE_MESSAGE_BUTTON";I[I.FORWARD=15]="FORWARD";I[I.APP_SHORTCUT=16]="APP_SHORTCUT";I[I.FF_FAMILY=17]="FF_FAMILY";I[I.AI_TAB=18]="AI_TAB";I[I.AI_HOME=19]="AI_HOME";I[I.AI_DEEPLINK_IMMERSIVE=20]="AI_DEEPLINK_IMMERSIVE";I[I.AI_DEEPLINK=21]="AI_DEEPLINK";I[I.META_AI_CHAT_SHORTCUT_AI_STUDIO=22]="META_AI_CHAT_SHORTCUT_AI_STUDIO";I[I.UGC_CHAT_SHORTCUT_AI_STUDIO=23]="UGC_CHAT_SHORTCUT_AI_STUDIO";I[I.NEW_CHAT_AI_STUDIO=24]="NEW_CHAT_AI_STUDIO";I[I.AIVOICE_FAVICON_CALL_HISTORY=25]="AIVOICE_FAVICON_CALL_HISTORY";I[I.ASK_META_AI_CONTEXT_MENU=26]="ASK_META_AI_CONTEXT_MENU";I[I.ASK_META_AI_CONTEXT_MENU_1ON1=27]="ASK_META_AI_CONTEXT_MENU_1ON1";I[I.ASK_META_AI_CONTEXT_MENU_GROUP=28]="ASK_META_AI_CONTEXT_MENU_GROUP";I[I.INVOKE_META_AI_1ON1=29]="INVOKE_META_AI_1ON1";I[I.INVOKE_META_AI_GROUP=30]="INVOKE_META_AI_GROUP";I[I.META_AI_FORWARD=31]="META_AI_FORWARD";I[I.NEW_CHAT_AI_CONTACT=32]="NEW_CHAT_AI_CONTACT";I[I.MESSAGE_QUICK_ACTION_1_ON_1_CHAT=33]="MESSAGE_QUICK_ACTION_1_ON_1_CHAT";I[I.MESSAGE_QUICK_ACTION_GROUP_CHAT=34]="MESSAGE_QUICK_ACTION_GROUP_CHAT";I[I.ATTACHMENT_TRAY_1_ON_1_CHAT=35]="ATTACHMENT_TRAY_1_ON_1_CHAT";I[I.ATTACHMENT_TRAY_GROUP_CHAT=36]="ATTACHMENT_TRAY_GROUP_CHAT";I[I.ASK_META_AI_MEDIA_VIEWER_1ON1=37]="ASK_META_AI_MEDIA_VIEWER_1ON1";I[I.ASK_META_AI_MEDIA_VIEWER_GROUP=38]="ASK_META_AI_MEDIA_VIEWER_GROUP";I[I.MEDIA_PICKER_1_ON_1_CHAT=39]="MEDIA_PICKER_1_ON_1_CHAT";I[I.MEDIA_PICKER_GROUP_CHAT=40]="MEDIA_PICKER_GROUP_CHAT";I[I.ASK_META_AI_NO_SEARCH_RESULTS=41]="ASK_META_AI_NO_SEARCH_RESULTS";I[I.META_AI_SETTINGS=45]="META_AI_SETTINGS";I[I.WEB_INTRO_PANEL=46]="WEB_INTRO_PANEL";I[I.WEB_NAVIGATION_BAR=47]="WEB_NAVIGATION_BAR";I[I.GROUP_MEMBER=54]="GROUP_MEMBER";I[I.CHATLIST_SEARCH=55]="CHATLIST_SEARCH";I[I.NEW_CHAT_LIST=56]="NEW_CHAT_LIST";I[I.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vA||={});var xA;((o)=>{o[o.AI_TAB_THREAD=1]="AI_TAB_THREAD";o[o.AI_HOME_THREAD=2]="AI_HOME_THREAD";o[o.AI_DEEPLINK_IMMERSIVE_THREAD=3]="AI_DEEPLINK_IMMERSIVE_THREAD";o[o.AI_DEEPLINK_THREAD=4]="AI_DEEPLINK_THREAD";o[o.ASK_META_AI_CONTEXT_MENU_THREAD=5]="ASK_META_AI_CONTEXT_MENU_THREAD";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xA||={});var NA;((p)=>{p[p.NONE=0]="NONE";p[p.NULL_STATE=1]="NULL_STATE";p[p.TYPEAHEAD=2]="TYPEAHEAD";p[p.USER_INPUT=3]="USER_INPUT";p[p.EMU_FLASH=4]="EMU_FLASH";p[p.EMU_FLASH_FOLLOWUP=5]="EMU_FLASH_FOLLOWUP";p[p.VOICE=6]="VOICE";p[p.AI_HOME_SESSION=7]="AI_HOME_SESSION";p[p.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NA||={});var OA;((t)=>{t[t.EVERYONE=1]="EVERYONE";t[t.SILENT=2]="SILENT";t[t.AI=3]="AI";t[t.AI_IMAGINE=4]="AI_IMAGINE";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OA||={});var UA;((a)=>{a[a.SMALL=1]="SMALL";a[a.MEDIUM=2]="MEDIUM";a[a.LARGE=3]="LARGE";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UA||={});var TA;((f)=>{f[f.SANS_SERIF=0]="SANS_SERIF";f[f.SERIF=1]="SERIF";f[f.NORICAN_REGULAR=2]="NORICAN_REGULAR";f[f.BRYNDAN_WRITE=3]="BRYNDAN_WRITE";f[f.BEBASNEUE_REGULAR=4]="BEBASNEUE_REGULAR";f[f.OSWALD_HEAVY=5]="OSWALD_HEAVY";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TA||={});var LA;((f)=>{f[f.COLLECTION_NAME_UNKNOWN=0]="COLLECTION_NAME_UNKNOWN";f[f.REGULAR=1]="REGULAR";f[f.REGULAR_LOW=2]="REGULAR_LOW";f[f.REGULAR_HIGH=3]="REGULAR_HIGH";f[f.CRITICAL_BLOCK=4]="CRITICAL_BLOCK";f[f.CRITICAL_UNBLOCK_LOW=5]="CRITICAL_UNBLOCK_LOW";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LA||={});var wA;((a)=>{a[a.PLACEHOLDER=0]="PLACEHOLDER";a[a.NO_PLACEHOLDER=1]="NO_PLACEHOLDER";a[a.IGNORE=2]="IGNORE";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wA||={});var FA;((a)=>{a[a.UNKNOWN=0]="UNKNOWN";a[a.KEEP_FOR_ALL=1]="KEEP_FOR_ALL";a[a.UNDO_KEEP_FOR_ALL=2]="UNDO_KEEP_FOR_ALL";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FA||={});var VA;((i)=>{i[i.PROFILE=0]="PROFILE";i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VA||={});var KA;((a)=>{a[a.MEDIA_KEY_DOMAIN_UNKNOWN=0]="MEDIA_KEY_DOMAIN_UNKNOWN";a[a.MEDIA_KEY_DOMAIN_E2EE=1]="MEDIA_KEY_DOMAIN_E2EE";a[a.MEDIA_KEY_DOMAIN_NON_E2EE=2]="MEDIA_KEY_DOMAIN_NON_E2EE";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KA||={});var WA;((a)=>{a[a.DEFAULT=0]="DEFAULT";a[a.OFF=1]="OFF";a[a.ON=2]="ON";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WA||={});var HA;((M)=>{M[M.STAR_ACTION=2]="STAR_ACTION";M[M.CONTACT_ACTION=3]="CONTACT_ACTION";M[M.MUTE_ACTION=4]="MUTE_ACTION";M[M.PIN_ACTION=5]="PIN_ACTION";M[M.SECURITY_NOTIFICATION_SETTING=6]="SECURITY_NOTIFICATION_SETTING";M[M.PUSH_NAME_SETTING=7]="PUSH_NAME_SETTING";M[M.QUICK_REPLY_ACTION=8]="QUICK_REPLY_ACTION";M[M.RECENT_EMOJI_WEIGHTS_ACTION=11]="RECENT_EMOJI_WEIGHTS_ACTION";M[M.LABEL_MESSAGE_ACTION=13]="LABEL_MESSAGE_ACTION";M[M.LABEL_EDIT_ACTION=14]="LABEL_EDIT_ACTION";M[M.LABEL_ASSOCIATION_ACTION=15]="LABEL_ASSOCIATION_ACTION";M[M.LOCALE_SETTING=16]="LOCALE_SETTING";M[M.ARCHIVE_CHAT_ACTION=17]="ARCHIVE_CHAT_ACTION";M[M.DELETE_MESSAGE_FOR_ME_ACTION=18]="DELETE_MESSAGE_FOR_ME_ACTION";M[M.KEY_EXPIRATION=19]="KEY_EXPIRATION";M[M.MARK_CHAT_AS_READ_ACTION=20]="MARK_CHAT_AS_READ_ACTION";M[M.CLEAR_CHAT_ACTION=21]="CLEAR_CHAT_ACTION";M[M.DELETE_CHAT_ACTION=22]="DELETE_CHAT_ACTION";M[M.UNARCHIVE_CHATS_SETTING=23]="UNARCHIVE_CHATS_SETTING";M[M.PRIMARY_FEATURE=24]="PRIMARY_FEATURE";M[M.ANDROID_UNSUPPORTED_ACTIONS=26]="ANDROID_UNSUPPORTED_ACTIONS";M[M.AGENT_ACTION=27]="AGENT_ACTION";M[M.SUBSCRIPTION_ACTION=28]="SUBSCRIPTION_ACTION";M[M.USER_STATUS_MUTE_ACTION=29]="USER_STATUS_MUTE_ACTION";M[M.TIME_FORMAT_ACTION=30]="TIME_FORMAT_ACTION";M[M.NUX_ACTION=31]="NUX_ACTION";M[M.PRIMARY_VERSION_ACTION=32]="PRIMARY_VERSION_ACTION";M[M.STICKER_ACTION=33]="STICKER_ACTION";M[M.REMOVE_RECENT_STICKER_ACTION=34]="REMOVE_RECENT_STICKER_ACTION";M[M.CHAT_ASSIGNMENT=35]="CHAT_ASSIGNMENT";M[M.CHAT_ASSIGNMENT_OPENED_STATUS=36]="CHAT_ASSIGNMENT_OPENED_STATUS";M[M.PN_FOR_LID_CHAT_ACTION=37]="PN_FOR_LID_CHAT_ACTION";M[M.MARKETING_MESSAGE_ACTION=38]="MARKETING_MESSAGE_ACTION";M[M.MARKETING_MESSAGE_BROADCAST_ACTION=39]="MARKETING_MESSAGE_BROADCAST_ACTION";M[M.EXTERNAL_WEB_BETA_ACTION=40]="EXTERNAL_WEB_BETA_ACTION";M[M.PRIVACY_SETTING_RELAY_ALL_CALLS=41]="PRIVACY_SETTING_RELAY_ALL_CALLS";M[M.CALL_LOG_ACTION=42]="CALL_LOG_ACTION";M[M.UGC_BOT=43]="UGC_BOT";M[M.STATUS_PRIVACY=44]="STATUS_PRIVACY";M[M.BOT_WELCOME_REQUEST_ACTION=45]="BOT_WELCOME_REQUEST_ACTION";M[M.DELETE_INDIVIDUAL_CALL_LOG=46]="DELETE_INDIVIDUAL_CALL_LOG";M[M.LABEL_REORDERING_ACTION=47]="LABEL_REORDERING_ACTION";M[M.PAYMENT_INFO_ACTION=48]="PAYMENT_INFO_ACTION";M[M.CUSTOM_PAYMENT_METHODS_ACTION=49]="CUSTOM_PAYMENT_METHODS_ACTION";M[M.LOCK_CHAT_ACTION=50]="LOCK_CHAT_ACTION";M[M.CHAT_LOCK_SETTINGS=51]="CHAT_LOCK_SETTINGS";M[M.WAMO_USER_IDENTIFIER_ACTION=52]="WAMO_USER_IDENTIFIER_ACTION";M[M.PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION=53]="PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION";M[M.DEVICE_CAPABILITIES=54]="DEVICE_CAPABILITIES";M[M.NOTE_EDIT_ACTION=55]="NOTE_EDIT_ACTION";M[M.FAVORITES_ACTION=56]="FAVORITES_ACTION";M[M.MERCHANT_PAYMENT_PARTNER_ACTION=57]="MERCHANT_PAYMENT_PARTNER_ACTION";M[M.WAFFLE_ACCOUNT_LINK_STATE_ACTION=58]="WAFFLE_ACCOUNT_LINK_STATE_ACTION";M[M.USERNAME_CHAT_START_MODE=59]="USERNAME_CHAT_START_MODE";M[M.NOTIFICATION_ACTIVITY_SETTING_ACTION=60]="NOTIFICATION_ACTIVITY_SETTING_ACTION";M[M.LID_CONTACT_ACTION=61]="LID_CONTACT_ACTION";M[M.CTWA_PER_CUSTOMER_DATA_SHARING_ACTION=62]="CTWA_PER_CUSTOMER_DATA_SHARING_ACTION";M[M.PAYMENT_TOS_ACTION=63]="PAYMENT_TOS_ACTION";M[M.PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION=64]="PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION";M[M.BUSINESS_BROADCAST_ASSOCIATION_ACTION=65]="BUSINESS_BROADCAST_ASSOCIATION_ACTION";M[M.DETECTED_OUTCOMES_STATUS_ACTION=66]="DETECTED_OUTCOMES_STATUS_ACTION";M[M.MAIBA_AI_FEATURES_CONTROL_ACTION=68]="MAIBA_AI_FEATURES_CONTROL_ACTION";M[M.BUSINESS_BROADCAST_LIST_ACTION=69]="BUSINESS_BROADCAST_LIST_ACTION";M[M.MUSIC_USER_ID_ACTION=70]="MUSIC_USER_ID_ACTION";M[M.STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION=71]="STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION";M[M.AVATAR_UPDATED_ACTION=72]="AVATAR_UPDATED_ACTION";M[M.GALAXY_FLOW_ACTION=73]="GALAXY_FLOW_ACTION";M[M.PRIVATE_PROCESSING_SETTING_ACTION=74]="PRIVATE_PROCESSING_SETTING_ACTION";M[M.NEWSLETTER_SAVED_INTERESTS_ACTION=75]="NEWSLETTER_SAVED_INTERESTS_ACTION";M[M.AI_THREAD_RENAME_ACTION=76]="AI_THREAD_RENAME_ACTION";M[M.INTERACTIVE_MESSAGE_ACTION=77]="INTERACTIVE_MESSAGE_ACTION";M[M.SETTINGS_SYNC_ACTION=78]="SETTINGS_SYNC_ACTION";M[M.OUT_CONTACT_ACTION=79]="OUT_CONTACT_ACTION";M[M.NCT_SALT_SYNC_ACTION=80]="NCT_SALT_SYNC_ACTION";M[M.BUSINESS_BROADCAST_CAMPAIGN_ACTION=81]="BUSINESS_BROADCAST_CAMPAIGN_ACTION";M[M.BUSINESS_BROADCAST_INSIGHTS_ACTION=82]="BUSINESS_BROADCAST_INSIGHTS_ACTION";M[M.CUSTOMER_DATA_ACTION=83]="CUSTOMER_DATA_ACTION";M[M.SUBSCRIPTIONS_SYNC_V2_ACTION=84]="SUBSCRIPTIONS_SYNC_V2_ACTION";M[M.THREAD_PIN_ACTION=85]="THREAD_PIN_ACTION";M[M.AUTO_ORGANIZE_BUSINESS_CHAT_SETTING=86]="AUTO_ORGANIZE_BUSINESS_CHAT_SETTING";M[M.BIZ_AI_SETTINGS_NUDGE_ACTION=87]="BIZ_AI_SETTINGS_NUDGE_ACTION";M[M.COEX_V2_VERSION_ACTION=88]="COEX_V2_VERSION_ACTION";M[M.WASA_ROOT_SECRET_ACTION=89]="WASA_ROOT_SECRET_ACTION";M[M.SHARE_OWN_PN=10001]="SHARE_OWN_PN";M[M.BUSINESS_BROADCAST_ACTION=10002]="BUSINESS_BROADCAST_ACTION";M[M.AI_THREAD_DELETE_ACTION=10003]="AI_THREAD_DELETE_ACTION";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HA||={});var qA;((a)=>{a[a.E2EE_MSG=1]="E2EE_MSG";a[a.NE2EE_SELF=2]="NE2EE_SELF";a[a.NE2EE_OTHER=3]="NE2EE_OTHER";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qA||={});var GA;((r)=>{r[r.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";r[r.NY_AI_SAFETY_DISCLAIMER=1]="NY_AI_SAFETY_DISCLAIMER";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GA||={});var JA;((r)=>{r[r.WEBVIEW=0]="WEBVIEW";r[r.SYSTEM=1]="SYSTEM";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JA||={});var QA;((f)=>{f[f.PROMPT=0]="PROMPT";f[f.CREATE_IMAGE=1]="CREATE_IMAGE";f[f.ANIMATE_PHOTO=2]="ANIMATE_PHOTO";f[f.ANALYZE_FILE=3]="ANALYZE_FILE";f[f.COLLABORATE=4]="COLLABORATE";f[f.OPEN_GREETING_CARD=5]="OPEN_GREETING_CARD";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QA||={});var zA;((f)=>{f[f.AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT=0]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT";f[f.AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD=1]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD";f[f.AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD=2]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD";f[f.AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING=3]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING";f[f.AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER=4]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER";f[f.AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT=5]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zA||={});var YA;((r)=>{r[r.DEFAULT=0]="DEFAULT";r[r.CAROUSEL=1]="CAROUSEL";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YA||={});var ZA;((a)=>{a[a.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN=0]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN";a[a.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE=1]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE";a[a.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF=2]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZA||={});var XA;((a)=>{a[a.AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED=0]="AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED";a[a.AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED=1]="AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED";a[a.AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED=2]="AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XA||={});var $A;((t)=>{t[t.UNKNOWN=0]="UNKNOWN";t[t.DEFAULT=1]="DEFAULT";t[t.INCOGNITO=2]="INCOGNITO";t[t.SIDE_CHAT=3]="SIDE_CHAT";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})($A||={});var jA;((i)=>{i[i.ENTERPRISE=0]="ENTERPRISE";i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jA||={});var eS;((r)=>{r[r.ON_PREMISE=0]="ON_PREMISE";r[r.FACEBOOK=1]="FACEBOOK";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eS||={});var nS;((r)=>{r[r.SELF=0]="SELF";r[r.BSP=1]="BSP";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nS||={});var iS;((r)=>{r[r.ON_PREMISE=0]="ON_PREMISE";r[r.FACEBOOK=1]="FACEBOOK";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iS||={});var tS;((a)=>{a[a.UNKNOWN=0]="UNKNOWN";a[a.LOW=1]="LOW";a[a.HIGH=2]="HIGH";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tS||={});var aS;((r)=>{r[r.O18_BINARY=0]="O18_BINARY";r[r.WAFFLE=1]="WAFFLE";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aS||={});var rS;((A)=>{A[A.UNKNOWN=0]="UNKNOWN";A[A.PROGRESS_INDICATOR=1]="PROGRESS_INDICATOR";A[A.RICH_RESPONSE_HEADING=2]="RICH_RESPONSE_HEADING";A[A.RICH_RESPONSE_NESTED_LIST=3]="RICH_RESPONSE_NESTED_LIST";A[A.AI_MEMORY=4]="AI_MEMORY";A[A.RICH_RESPONSE_THREAD_SURFING=5]="RICH_RESPONSE_THREAD_SURFING";A[A.RICH_RESPONSE_TABLE=6]="RICH_RESPONSE_TABLE";A[A.RICH_RESPONSE_CODE=7]="RICH_RESPONSE_CODE";A[A.RICH_RESPONSE_STRUCTURED_RESPONSE=8]="RICH_RESPONSE_STRUCTURED_RESPONSE";A[A.RICH_RESPONSE_INLINE_IMAGE=9]="RICH_RESPONSE_INLINE_IMAGE";A[A.WA_IG_1P_PLUGIN_RANKING_CONTROL=10]="WA_IG_1P_PLUGIN_RANKING_CONTROL";A[A.WA_IG_1P_PLUGIN_RANKING_UPDATE_1=11]="WA_IG_1P_PLUGIN_RANKING_UPDATE_1";A[A.WA_IG_1P_PLUGIN_RANKING_UPDATE_2=12]="WA_IG_1P_PLUGIN_RANKING_UPDATE_2";A[A.WA_IG_1P_PLUGIN_RANKING_UPDATE_3=13]="WA_IG_1P_PLUGIN_RANKING_UPDATE_3";A[A.WA_IG_1P_PLUGIN_RANKING_UPDATE_4=14]="WA_IG_1P_PLUGIN_RANKING_UPDATE_4";A[A.WA_IG_1P_PLUGIN_RANKING_UPDATE_5=15]="WA_IG_1P_PLUGIN_RANKING_UPDATE_5";A[A.WA_IG_1P_PLUGIN_RANKING_UPDATE_6=16]="WA_IG_1P_PLUGIN_RANKING_UPDATE_6";A[A.WA_IG_1P_PLUGIN_RANKING_UPDATE_7=17]="WA_IG_1P_PLUGIN_RANKING_UPDATE_7";A[A.WA_IG_1P_PLUGIN_RANKING_UPDATE_8=18]="WA_IG_1P_PLUGIN_RANKING_UPDATE_8";A[A.WA_IG_1P_PLUGIN_RANKING_UPDATE_9=19]="WA_IG_1P_PLUGIN_RANKING_UPDATE_9";A[A.WA_IG_1P_PLUGIN_RANKING_UPDATE_10=20]="WA_IG_1P_PLUGIN_RANKING_UPDATE_10";A[A.RICH_RESPONSE_SUB_HEADING=21]="RICH_RESPONSE_SUB_HEADING";A[A.RICH_RESPONSE_GRID_IMAGE=22]="RICH_RESPONSE_GRID_IMAGE";A[A.AI_STUDIO_UGC_MEMORY=23]="AI_STUDIO_UGC_MEMORY";A[A.RICH_RESPONSE_LATEX=24]="RICH_RESPONSE_LATEX";A[A.RICH_RESPONSE_MAPS=25]="RICH_RESPONSE_MAPS";A[A.RICH_RESPONSE_INLINE_REELS=26]="RICH_RESPONSE_INLINE_REELS";A[A.AGENTIC_PLANNING=27]="AGENTIC_PLANNING";A[A.ACCOUNT_LINKING=28]="ACCOUNT_LINKING";A[A.STREAMING_DISAGGREGATION=29]="STREAMING_DISAGGREGATION";A[A.RICH_RESPONSE_GRID_IMAGE_3P=30]="RICH_RESPONSE_GRID_IMAGE_3P";A[A.RICH_RESPONSE_LATEX_INLINE=31]="RICH_RESPONSE_LATEX_INLINE";A[A.QUERY_PLAN=32]="QUERY_PLAN";A[A.PROACTIVE_MESSAGE=33]="PROACTIVE_MESSAGE";A[A.RICH_RESPONSE_UNIFIED_RESPONSE=34]="RICH_RESPONSE_UNIFIED_RESPONSE";A[A.PROMOTION_MESSAGE=35]="PROMOTION_MESSAGE";A[A.SIMPLIFIED_PROFILE_PAGE=36]="SIMPLIFIED_PROFILE_PAGE";A[A.RICH_RESPONSE_SOURCES_IN_MESSAGE=37]="RICH_RESPONSE_SOURCES_IN_MESSAGE";A[A.RICH_RESPONSE_SIDE_BY_SIDE_SURVEY=38]="RICH_RESPONSE_SIDE_BY_SIDE_SURVEY";A[A.RICH_RESPONSE_UNIFIED_TEXT_COMPONENT=39]="RICH_RESPONSE_UNIFIED_TEXT_COMPONENT";A[A.AI_SHARED_MEMORY=40]="AI_SHARED_MEMORY";A[A.RICH_RESPONSE_UNIFIED_SOURCES=41]="RICH_RESPONSE_UNIFIED_SOURCES";A[A.RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS=42]="RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS";A[A.RICH_RESPONSE_UR_INLINE_REELS_ENABLED=43]="RICH_RESPONSE_UR_INLINE_REELS_ENABLED";A[A.RICH_RESPONSE_UR_MEDIA_GRID_ENABLED=44]="RICH_RESPONSE_UR_MEDIA_GRID_ENABLED";A[A.RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER=45]="RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER";A[A.RICH_RESPONSE_IN_APP_SURVEY=46]="RICH_RESPONSE_IN_APP_SURVEY";A[A.AI_RESPONSE_MODEL_BRANDING=47]="AI_RESPONSE_MODEL_BRANDING";A[A.SESSION_TRANSPARENCY_SYSTEM_MESSAGE=48]="SESSION_TRANSPARENCY_SYSTEM_MESSAGE";A[A.RICH_RESPONSE_UR_REASONING=49]="RICH_RESPONSE_UR_REASONING";A[A.RICH_RESPONSE_UR_ZEITGEIST_CITATIONS=50]="RICH_RESPONSE_UR_ZEITGEIST_CITATIONS";A[A.RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL=51]="RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL";A[A.AI_IMAGINE_LOADING_INDICATOR=52]="AI_IMAGINE_LOADING_INDICATOR";A[A.RICH_RESPONSE_UR_IMAGINE=53]="RICH_RESPONSE_UR_IMAGINE";A[A.AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR=54]="AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR";A[A.RICH_RESPONSE_UR_BLOKS_ENABLED=55]="RICH_RESPONSE_UR_BLOKS_ENABLED";A[A.RICH_RESPONSE_INLINE_LINKS_ENABLED=56]="RICH_RESPONSE_INLINE_LINKS_ENABLED";A[A.RICH_RESPONSE_UR_IMAGINE_VIDEO=57]="RICH_RESPONSE_UR_IMAGINE_VIDEO";A[A.JSON_PATCH_STREAMING=58]="JSON_PATCH_STREAMING";A[A.AI_TAB_FORCE_CLIPPY=59]="AI_TAB_FORCE_CLIPPY";A[A.UNIFIED_RESPONSE_EMBEDDED_SCREENS=60]="UNIFIED_RESPONSE_EMBEDDED_SCREENS";A[A.AI_SUBSCRIPTION_ENABLED=61]="AI_SUBSCRIPTION_ENABLED";A[A.UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED=62]="UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED";A[A.UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED=63]="UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED";A[A.AI_RICH_RESPONSE_MAPS_V2_ENABLED=64]="AI_RICH_RESPONSE_MAPS_V2_ENABLED";A[A.AI_SUBSCRIPTION_METERING_ENABLED=65]="AI_SUBSCRIPTION_METERING_ENABLED";A[A.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rS||={});var dS;((r)=>{r[r.TEXT_EXTRACTION=0]="TEXT_EXTRACTION";r[r.OCR_AND_IMAGES=1]="OCR_AND_IMAGES";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dS||={});var oS;((B)=>{B[B.BOT_FEEDBACK_POSITIVE=0]="BOT_FEEDBACK_POSITIVE";B[B.BOT_FEEDBACK_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_NEGATIVE_GENERIC";B[B.BOT_FEEDBACK_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_NEGATIVE_HELPFUL";B[B.BOT_FEEDBACK_NEGATIVE_INTERESTING=3]="BOT_FEEDBACK_NEGATIVE_INTERESTING";B[B.BOT_FEEDBACK_NEGATIVE_ACCURATE=4]="BOT_FEEDBACK_NEGATIVE_ACCURATE";B[B.BOT_FEEDBACK_NEGATIVE_SAFE=5]="BOT_FEEDBACK_NEGATIVE_SAFE";B[B.BOT_FEEDBACK_NEGATIVE_OTHER=6]="BOT_FEEDBACK_NEGATIVE_OTHER";B[B.BOT_FEEDBACK_NEGATIVE_REFUSED=7]="BOT_FEEDBACK_NEGATIVE_REFUSED";B[B.BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING=8]="BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING";B[B.BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT=9]="BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT";B[B.BOT_FEEDBACK_NEGATIVE_PERSONALIZED=10]="BOT_FEEDBACK_NEGATIVE_PERSONALIZED";B[B.BOT_FEEDBACK_NEGATIVE_CLARITY=11]="BOT_FEEDBACK_NEGATIVE_CLARITY";B[B.BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON=12]="BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON";B[B.BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY=13]="BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY";B[B.BOT_FEEDBACK_NEGATIVE=14]="BOT_FEEDBACK_NEGATIVE";B[B.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oS||={});var sS;((k)=>{k[k.BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC";k[k.BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL";k[k.BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING=4]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING";k[k.BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE=8]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE";k[k.BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE=16]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE";k[k.BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER=32]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER";k[k.BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED=64]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED";k[k.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING=128]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING";k[k.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT=256]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT";k[k.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sS||={});var uS;((i)=>{i[i.BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC";i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uS||={});var cS;((r)=>{r[r.NONE=0]="NONE";r[r.GENERIC=1]="GENERIC";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cS||={});var fS;((o)=>{o[o.UNKNOWN=0]="UNKNOWN";o[o.IMAGINE=1]="IMAGINE";o[o.MEMU=2]="MEMU";o[o.FLASH=3]="FLASH";o[o.EDIT=4]="EDIT";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fS||={});var lS;((r)=>{r[r.AAPI=0]="AAPI";r[r.CLIPPY=1]="CLIPPY";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lS||={});var pS;((i)=>{i[i.BOT_LINKED_ACCOUNT_TYPE_1P=0]="BOT_LINKED_ACCOUNT_TYPE_1P";i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pS||={});var gS;((a)=>{a[a.CENTER=1]="CENTER";a[a.LEFT=2]="LEFT";a[a.RIGHT=3]="RIGHT";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gS||={});var yS;((i)=>{i[i.BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED=0]="BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED";i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yS||={});var MS;((r)=>{r[r.DEFAULT_MODE=0]="DEFAULT_MODE";r[r.THINK_HARD_MODE=1]="THINK_HARD_MODE";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MS||={});var mS;((a)=>{a[a.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";a[a.LLAMA_PROD=1]="LLAMA_PROD";a[a.LLAMA_PROD_PREMIUM=2]="LLAMA_PROD_PREMIUM";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mS||={});var _S;((a)=>{a[a.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";a[a.AVAILABLE=1]="AVAILABLE";a[a.QUOTA_EXCEED_LIMIT=2]="QUOTA_EXCEED_LIMIT";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_S||={});var hS;((a)=>{a[a.UNKNOWN_PLUGIN=0]="UNKNOWN_PLUGIN";a[a.REELS=1]="REELS";a[a.SEARCH=2]="SEARCH";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hS||={});var kS;((t)=>{t[t.UNKNOWN=0]="UNKNOWN";t[t.BING=1]="BING";t[t.GOOGLE=2]="GOOGLE";t[t.SUPPORT=3]="SUPPORT";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kS||={});var AS;((t)=>{t[t.UNKNOWN_PROVIDER=0]="UNKNOWN_PROVIDER";t[t.OTHER=1]="OTHER";t[t.GOOGLE=2]="GOOGLE";t[t.BING=3]="BING";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AS||={});var SS;((t)=>{t[t.UNKNOWN=0]="UNKNOWN";t[t.PLANNED=1]="PLANNED";t[t.EXECUTING=2]="EXECUTING";t[t.FINISHED=3]="FINISHED";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SS||={});var PS;((t)=>{t[t.UNKNOWN=0]="UNKNOWN";t[t.OTHER=1]="OTHER";t[t.GOOGLE=2]="GOOGLE";t[t.BING=3]="BING";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PS||={});var bS;((a)=>{a[a.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";a[a.C50=1]="C50";a[a.SURVEY_PLATFORM=2]="SURVEY_PLATFORM";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bS||={});var IS;((r)=>{r[r.UNKNOWN_FEATURE=0]="UNKNOWN_FEATURE";r[r.REASONING_FEATURE=1]="REASONING_FEATURE";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IS||={});var RS;((t)=>{t[t.NOTIFY=1]="NOTIFY";t[t.CREATE=2]="CREATE";t[t.DELETE=3]="DELETE";t[t.UPDATE=4]="UPDATE";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RS||={});var DS;((o)=>{o[o.ONCE=1]="ONCE";o[o.DAILY=2]="DAILY";o[o.WEEKLY=3]="WEEKLY";o[o.BIWEEKLY=4]="BIWEEKLY";o[o.MONTHLY=5]="MONTHLY";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DS||={});var ES;((t)=>{t[t.UNSPECIFIED=0]="UNSPECIFIED";t[t.WA_BOT_MSG=1]="WA_BOT_MSG";t[t.WA_TEE_BOT_MSG=2]="WA_TEE_BOT_MSG";t[t.P2P_PILLS=3]="P2P_PILLS";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ES||={});var BS;((o)=>{o[o.UNKNOWN=0]="UNKNOWN";o[o.BING=1]="BING";o[o.GOOGLE=2]="GOOGLE";o[o.SUPPORT=3]="SUPPORT";o[o.OTHER=4]="OTHER";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BS||={});var CS;((E)=>{E[E.CONNECTED=0]="CONNECTED";E[E.REJECTED=1]="REJECTED";E[E.CANCELLED=2]="CANCELLED";E[E.ACCEPTEDELSEWHERE=3]="ACCEPTEDELSEWHERE";E[E.MISSED=4]="MISSED";E[E.INVALID=5]="INVALID";E[E.UNAVAILABLE=6]="UNAVAILABLE";E[E.UPCOMING=7]="UPCOMING";E[E.FAILED=8]="FAILED";E[E.ABANDONED=9]="ABANDONED";E[E.ONGOING=10]="ONGOING";E[E.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CS||={});var vS;((a)=>{a[a.REGULAR=0]="REGULAR";a[a.SCHEDULED_CALL=1]="SCHEDULED_CALL";a[a.VOICE_CHAT=2]="VOICE_CHAT";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vS||={});var xS;((t)=>{t[t.NONE=0]="NONE";t[t.SCHEDULED=1]="SCHEDULED";t[t.PRIVACY=2]="PRIVACY";t[t.LIGHTWEIGHT=3]="LIGHTWEIGHT";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xS||={});var NS;((a)=>{a[a.NONE=0]="NONE";a[a.IMAGE=1]="IMAGE";a[a.VIDEO=2]="VIDEO";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NS||={});var OS;((r)=>{r[r.DEFAULT=0]="DEFAULT";r[r.GUEST=1]="GUEST";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OS||={});var US;((y)=>{y[y.PUSH=0]="PUSH";y[y.USER_ACTIVATED=1]="USER_ACTIVATED";y[y.SCHEDULED=2]="SCHEDULED";y[y.ERROR_RECONNECT=3]="ERROR_RECONNECT";y[y.NETWORK_SWITCH=4]="NETWORK_SWITCH";y[y.PING_RECONNECT=5]="PING_RECONNECT";y[y.UNKNOWN=6]="UNKNOWN";y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(US||={});var TS;((B)=>{B[B.CELLULAR_UNKNOWN=0]="CELLULAR_UNKNOWN";B[B.WIFI_UNKNOWN=1]="WIFI_UNKNOWN";B[B.CELLULAR_EDGE=100]="CELLULAR_EDGE";B[B.CELLULAR_IDEN=101]="CELLULAR_IDEN";B[B.CELLULAR_UMTS=102]="CELLULAR_UMTS";B[B.CELLULAR_EVDO=103]="CELLULAR_EVDO";B[B.CELLULAR_GPRS=104]="CELLULAR_GPRS";B[B.CELLULAR_HSDPA=105]="CELLULAR_HSDPA";B[B.CELLULAR_HSUPA=106]="CELLULAR_HSUPA";B[B.CELLULAR_HSPA=107]="CELLULAR_HSPA";B[B.CELLULAR_CDMA=108]="CELLULAR_CDMA";B[B.CELLULAR_1XRTT=109]="CELLULAR_1XRTT";B[B.CELLULAR_EHRPD=110]="CELLULAR_EHRPD";B[B.CELLULAR_LTE=111]="CELLULAR_LTE";B[B.CELLULAR_HSPAP=112]="CELLULAR_HSPAP";B[B.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TS||={});var LS;((a)=>{a[a.SHARE_EXTENSION=0]="SHARE_EXTENSION";a[a.SERVICE_EXTENSION=1]="SERVICE_EXTENSION";a[a.INTENTS_EXTENSION=2]="INTENTS_EXTENSION";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LS||={});var wS;((o)=>{o[o.WHATSAPP=0]="WHATSAPP";o[o.MESSENGER=1]="MESSENGER";o[o.INTEROP=2]="INTEROP";o[o.INTEROP_MSGR=3]="INTEROP_MSGR";o[o.WHATSAPP_LID=4]="WHATSAPP_LID";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wS||={});var FS;((r)=>{r[r.OFF=0]="OFF";r[r.STANDARD=1]="STANDARD";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FS||={});var VS;((p)=>{p[p.SYSTEM=0]="SYSTEM";p[p.GOOGLE=1]="GOOGLE";p[p.HARDCODED=2]="HARDCODED";p[p.OVERRIDE=3]="OVERRIDE";p[p.FALLBACK=4]="FALLBACK";p[p.MNS=5]="MNS";p[p.MNS_SECONDARY=6]="MNS_SECONDARY";p[p.SOCKS_PROXY=7]="SOCKS_PROXY";p[p.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VS||={});var KS;((o)=>{o[o.PHONE=0]="PHONE";o[o.TABLET=1]="TABLET";o[o.DESKTOP=2]="DESKTOP";o[o.WEARABLE=3]="WEARABLE";o[o.VR=4]="VR";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KS||={});var WS;((t)=>{t[t.APPSTORE=0]="APPSTORE";t[t.WEBSITE=1]="WEBSITE";t[t.TESTFLIGHT=2]="TESTFLIGHT";t[t.INTERNAL=3]="INTERNAL";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WS||={});var HS;((C)=>{C[C.ANDROID=0]="ANDROID";C[C.IOS=1]="IOS";C[C.WINDOWS_PHONE=2]="WINDOWS_PHONE";C[C.BLACKBERRY=3]="BLACKBERRY";C[C.BLACKBERRYX=4]="BLACKBERRYX";C[C.S40=5]="S40";C[C.S60=6]="S60";C[C.PYTHON_CLIENT=7]="PYTHON_CLIENT";C[C.TIZEN=8]="TIZEN";C[C.ENTERPRISE=9]="ENTERPRISE";C[C.SMB_ANDROID=10]="SMB_ANDROID";C[C.KAIOS=11]="KAIOS";C[C.SMB_IOS=12]="SMB_IOS";C[C.WINDOWS=13]="WINDOWS";C[C.WEB=14]="WEB";C[C.PORTAL=15]="PORTAL";C[C.GREEN_ANDROID=16]="GREEN_ANDROID";C[C.GREEN_IPHONE=17]="GREEN_IPHONE";C[C.BLUE_ANDROID=18]="BLUE_ANDROID";C[C.BLUE_IPHONE=19]="BLUE_IPHONE";C[C.FBLITE_ANDROID=20]="FBLITE_ANDROID";C[C.MLITE_ANDROID=21]="MLITE_ANDROID";C[C.IGLITE_ANDROID=22]="IGLITE_ANDROID";C[C.PAGE=23]="PAGE";C[C.MACOS=24]="MACOS";C[C.OCULUS_MSG=25]="OCULUS_MSG";C[C.OCULUS_CALL=26]="OCULUS_CALL";C[C.MILAN=27]="MILAN";C[C.CAPI=28]="CAPI";C[C.WEAROS=29]="WEAROS";C[C.ARDEVICE=30]="ARDEVICE";C[C.VRDEVICE=31]="VRDEVICE";C[C.BLUE_WEB=32]="BLUE_WEB";C[C.IPAD=33]="IPAD";C[C.TEST=34]="TEST";C[C.SMART_GLASSES=35]="SMART_GLASSES";C[C.BLUE_VR=36]="BLUE_VR";C[C.AR_WRIST=37]="AR_WRIST";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HS||={});var qS;((t)=>{t[t.RELEASE=0]="RELEASE";t[t.BETA=1]="BETA";t[t.ALPHA=2]="ALPHA";t[t.DEBUG=3]="DEBUG";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qS||={});var GS;((f)=>{f[f.WEB_BROWSER=0]="WEB_BROWSER";f[f.APP_STORE=1]="APP_STORE";f[f.WIN_STORE=2]="WIN_STORE";f[f.DARWIN=3]="DARWIN";f[f.WIN32=4]="WIN32";f[f.WIN_HYBRID=5]="WIN_HYBRID";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GS||={});var JS;((r)=>{r[r.NONE=0]="NONE";r[r.VIDEO=1]="VIDEO";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JS||={});var QS;((a)=>{a[a.CROSS_APP_SOURCE_UNKNOWN=0]="CROSS_APP_SOURCE_UNKNOWN";a[a.CROSS_APP_SOURCE_INSTAGRAM=1]="CROSS_APP_SOURCE_INSTAGRAM";a[a.CROSS_APP_SOURCE_FACEBOOK=2]="CROSS_APP_SOURCE_FACEBOOK";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QS||={});var zS;((f)=>{f[f.UNKNOWN=0]="UNKNOWN";f[f.CHAT=1]="CHAT";f[f.STATUS=2]="STATUS";f[f.CHANNELS=3]="CHANNELS";f[f.META_AI=4]="META_AI";f[f.UGC=5]="UGC";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zS||={});var YS;((k)=>{k[k.NOT_PAIRED_MEDIA=0]="NOT_PAIRED_MEDIA";k[k.SD_VIDEO_PARENT=1]="SD_VIDEO_PARENT";k[k.HD_VIDEO_CHILD=2]="HD_VIDEO_CHILD";k[k.SD_IMAGE_PARENT=3]="SD_IMAGE_PARENT";k[k.HD_IMAGE_CHILD=4]="HD_IMAGE_CHILD";k[k.MOTION_PHOTO_PARENT=5]="MOTION_PHOTO_PARENT";k[k.MOTION_PHOTO_CHILD=6]="MOTION_PHOTO_CHILD";k[k.HEVC_VIDEO_PARENT=7]="HEVC_VIDEO_PARENT";k[k.HEVC_VIDEO_CHILD=8]="HEVC_VIDEO_CHILD";k[k.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YS||={});var ZS;((r)=>{r[r.EXPLICIT=0]="EXPLICIT";r[r.AUTO=1]="AUTO";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZS||={});var XS;((o)=>{o[o.NONE=0]="NONE";o[o.RESHARED_FROM_MENTION=1]="RESHARED_FROM_MENTION";o[o.RESHARED_FROM_POST=2]="RESHARED_FROM_POST";o[o.RESHARED_FROM_POST_MANY_TIMES=3]="RESHARED_FROM_POST_MANY_TIMES";o[o.FORWARDED_FROM_STATUS=4]="FORWARDED_FROM_STATUS";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XS||={});var $S;((f)=>{f[f.IMAGE=0]="IMAGE";f[f.VIDEO=1]="VIDEO";f[f.GIF=2]="GIF";f[f.AUDIO=3]="AUDIO";f[f.TEXT=4]="TEXT";f[f.MUSIC_STANDALONE=5]="MUSIC_STANDALONE";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})($S||={});var jS;((a)=>{a[a.NONE=0]="NONE";a[a.IMAGE=1]="IMAGE";a[a.VIDEO=2]="VIDEO";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jS||={});var eP;((f)=>{f[f.ENTRY_POINT_UNKNOWN=0]="ENTRY_POINT_UNKNOWN";f[f.P2P_LINK_SHARE=1]="P2P_LINK_SHARE";f[f.CONTACT_CARD_SHARING=2]="CONTACT_CARD_SHARING";f[f.PHONE_NUMBER=3]="PHONE_NUMBER";f[f.STATUS=4]="STATUS";f[f.IN_THREAD_CONTEXT_CARD=5]="IN_THREAD_CONTEXT_CARD";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eP||={});var nP;((R)=>{R[R.UNKNOWN=0]="UNKNOWN";R[R.VIEW_BUSINESS=1]="VIEW_BUSINESS";R[R.CHAT=2]="CHAT";R[R.CALL=3]="CALL";R[R.CATALOG=4]="CATALOG";R[R.CHANNEL=5]="CHANNEL";R[R.BOOK_APPOINTMENT=6]="BOOK_APPOINTMENT";R[R.OFFERS=7]="OFFERS";R[R.BESTSELLERS=8]="BESTSELLERS";R[R.MENU=9]="MENU";R[R.ABOUT=10]="ABOUT";R[R.SHOP=11]="SHOP";R[R.ORDER=12]="ORDER";R[R.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nP||={});var iP;((r)=>{r[r.SHOW_MM_DISCLOSURE_ON_CLICK=1]="SHOW_MM_DISCLOSURE_ON_CLICK";r[r.SHOW_MM_DISCLOSURE_ON_READ=2]="SHOW_MM_DISCLOSURE_ON_READ";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iP||={});var tP;((r)=>{r[r.CTWA=0]="CTWA";r[r.CAWC=1]="CAWC";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tP||={});var aP;((a)=>{a[a.NONE=0]="NONE";a[a.IMAGE=1]="IMAGE";a[a.VIDEO=2]="VIDEO";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aP||={});var rP;((a)=>{a[a.UPDATE=1]="UPDATE";a[a.UPDATE_CARD=2]="UPDATE_CARD";a[a.LINK_CARD=3]="LINK_CARD";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rP||={});var dP;((r)=>{r[r.UNKNOWN=0]="UNKNOWN";r[r.CLOSE_FRIENDS=1]="CLOSE_FRIENDS";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dP||={});var oP;((t)=>{t[t.COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY=0]="COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY";t[t.COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY=1]="COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY";t[t.COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY=2]="COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY";t[t.COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS=3]="COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oP||={});var sP;((t)=>{t[t.NO_APPEAL=0]="NO_APPEAL";t[t.APPEAL_IN_REVIEW=1]="APPEAL_IN_REVIEW";t[t.APPEAL_APPROVED=2]="APPEAL_APPROVED";t[t.APPEAL_REJECTED=3]="APPEAL_REJECTED";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sP||={});var uP;((a)=>{a[a.NONE=0]="NONE";a[a.MINIMAL=1]="MINIMAL";a[a.FULL=2]="FULL";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uP||={});var cP;((a)=>{a[a.DISABLED=0]="DISABLED";a[a.RECEIVER_ENABLED=1]="RECEIVER_ENABLED";a[a.SENDER_ENABLED=2]="SENDER_ENABLED";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cP||={});var fP;((a)=>{a[a.NONE=0]="NONE";a[a.INFRA=1]="INFRA";a[a.FULL=2]="FULL";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fP||={});var lP;((L)=>{L[L.UNKNOWN=0]="UNKNOWN";L[L.CHROME=1]="CHROME";L[L.FIREFOX=2]="FIREFOX";L[L.IE=3]="IE";L[L.OPERA=4]="OPERA";L[L.SAFARI=5]="SAFARI";L[L.EDGE=6]="EDGE";L[L.DESKTOP=7]="DESKTOP";L[L.IPAD=8]="IPAD";L[L.ANDROID_TABLET=9]="ANDROID_TABLET";L[L.OHANA=10]="OHANA";L[L.ALOHA=11]="ALOHA";L[L.CATALINA=12]="CATALINA";L[L.TCL_TV=13]="TCL_TV";L[L.IOS_PHONE=14]="IOS_PHONE";L[L.IOS_CATALYST=15]="IOS_CATALYST";L[L.ANDROID_PHONE=16]="ANDROID_PHONE";L[L.ANDROID_AMBIGUOUS=17]="ANDROID_AMBIGUOUS";L[L.WEAR_OS=18]="WEAR_OS";L[L.AR_WRIST=19]="AR_WRIST";L[L.AR_DEVICE=20]="AR_DEVICE";L[L.UWP=21]="UWP";L[L.VR=22]="VR";L[L.CLOUD_API=23]="CLOUD_API";L[L.SMARTGLASSES=24]="SMARTGLASSES";L[L.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lP||={});var pP;((t)=>{t[t.CHANGED_IN_CHAT=0]="CHANGED_IN_CHAT";t[t.INITIATED_BY_ME=1]="INITIATED_BY_ME";t[t.INITIATED_BY_OTHER=2]="INITIATED_BY_OTHER";t[t.BIZ_UPGRADE_FB_HOSTING=3]="BIZ_UPGRADE_FB_HOSTING";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pP||={});var gP;((f)=>{f[f.UNKNOWN=0]="UNKNOWN";f[f.CHAT_SETTING=1]="CHAT_SETTING";f[f.ACCOUNT_SETTING=2]="ACCOUNT_SETTING";f[f.BULK_CHANGE=3]="BULK_CHANGE";f[f.BIZ_SUPPORTS_FB_HOSTING=4]="BIZ_SUPPORTS_FB_HOSTING";f[f.UNKNOWN_GROUPS=5]="UNKNOWN_GROUPS";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gP||={});var yP;((r)=>{r[r.E2EE=0]="E2EE";r[r.HOSTED=1]="HOSTED";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yP||={});var MP;((f)=>{f[f.NOT_INJECTED=0]="NOT_INJECTED";f[f.INJECTED=1]="INJECTED";f[f.INJECTED_PARTIAL=2]="INJECTED_PARTIAL";f[f.INJECTION_FAILED=3]="INJECTION_FAILED";f[f.INJECTION_FAILED_NO_RETRY=4]="INJECTION_FAILED_NO_RETRY";f[f.DEDUPED=5]="DEDUPED";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MP||={});var mP;((a)=>{a[a.REGULAR=0]="REGULAR";a[a.ADMIN=1]="ADMIN";a[a.SUPERADMIN=2]="SUPERADMIN";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mP||={});var _P;((k)=>{k[k.HANDSHAKE_PQ_MODE_UNKNOWN=0]="HANDSHAKE_PQ_MODE_UNKNOWN";k[k.XXKEM=1]="XXKEM";k[k.XXKEM_FS=2]="XXKEM_FS";k[k.WA_CLASSICAL=3]="WA_CLASSICAL";k[k.WA_PQ=4]="WA_PQ";k[k.IKKEM=5]="IKKEM";k[k.IKKEM_FS=6]="IKKEM_FS";k[k.XXKEM_2=7]="XXKEM_2";k[k.IKKEM_2=8]="IKKEM_2";k[k.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_P||={});var hP;((r)=>{r[r.IN_WAITLIST=0]="IN_WAITLIST";r[r.AI_AVAILABLE=1]="AI_AVAILABLE";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hP||={});var kP;((y)=>{y[y.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";y[y.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";y[y.FULL=2]="FULL";y[y.RECENT=3]="RECENT";y[y.PUSH_NAME=4]="PUSH_NAME";y[y.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";y[y.ON_DEMAND=6]="ON_DEMAND";y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kP||={});var AP;((a)=>{a[a.FULL=1]="FULL";a[a.TALL=2]="TALL";a[a.COMPACT=3]="COMPACT";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AP||={});var SP;((a)=>{a[a.RASTERIZED_LINK_PREVIEW=1]="RASTERIZED_LINK_PREVIEW";a[a.RASTERIZED_LINK_TRUNCATED=2]="RASTERIZED_LINK_TRUNCATED";a[a.RASTERIZED_LINK_FULL_URL=3]="RASTERIZED_LINK_FULL_URL";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SP||={});var PP;((t)=>{t[t.UNKNOWN=0]="UNKNOWN";t[t.CHAT_SETTING=1]="CHAT_SETTING";t[t.BIZ_SUPPORTS_FB_HOSTING=2]="BIZ_SUPPORTS_FB_HOSTING";t[t.UNKNOWN_GROUP=3]="UNKNOWN_GROUP";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PP||={});var bP;((t)=>{t[t.GENERAL_ERROR=0]="GENERAL_ERROR";t[t.SUCCESS=1]="SUCCESS";t[t.NOT_FOUND=2]="NOT_FOUND";t[t.DECRYPTION_ERROR=3]="DECRYPTION_ERROR";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bP||={});var IP;((k)=>{k[k.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";k[k.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";k[k.FULL=2]="FULL";k[k.RECENT=3]="RECENT";k[k.PUSH_NAME=4]="PUSH_NAME";k[k.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";k[k.ON_DEMAND=6]="ON_DEMAND";k[k.NO_HISTORY=7]="NO_HISTORY";k[k.MESSAGE_ACCESS_STATUS=8]="MESSAGE_ACCESS_STATUS";k[k.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IP||={});var RP;((o)=>{o[o.SENT=0]="SENT";o[o.DELIVERED=1]="DELIVERED";o[o.READ=2]="READ";o[o.REPLIED=3]="REPLIED";o[o.QUICK_REPLIED=4]="QUICK_REPLIED";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RP||={});var DP;((V)=>{V[V.UPLOAD_STICKER=0]="UPLOAD_STICKER";V[V.SEND_RECENT_STICKER_BOOTSTRAP=1]="SEND_RECENT_STICKER_BOOTSTRAP";V[V.GENERATE_LINK_PREVIEW=2]="GENERATE_LINK_PREVIEW";V[V.HISTORY_SYNC_ON_DEMAND=3]="HISTORY_SYNC_ON_DEMAND";V[V.PLACEHOLDER_MESSAGE_RESEND=4]="PLACEHOLDER_MESSAGE_RESEND";V[V.WAFFLE_LINKING_NONCE_FETCH=5]="WAFFLE_LINKING_NONCE_FETCH";V[V.FULL_HISTORY_SYNC_ON_DEMAND=6]="FULL_HISTORY_SYNC_ON_DEMAND";V[V.COMPANION_META_NONCE_FETCH=7]="COMPANION_META_NONCE_FETCH";V[V.COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY=8]="COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY";V[V.COMPANION_CANONICAL_USER_NONCE_FETCH=9]="COMPANION_CANONICAL_USER_NONCE_FETCH";V[V.HISTORY_SYNC_CHUNK_RETRY=10]="HISTORY_SYNC_CHUNK_RETRY";V[V.GALAXY_FLOW_ACTION=11]="GALAXY_FLOW_ACTION";V[V.BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO=12]="BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO";V[V.BUSINESS_BROADCAST_INSIGHTS_REFRESH=13]="BUSINESS_BROADCAST_INSIGHTS_REFRESH";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DP||={});var EP;((a)=>{a[a.UNKNOWN=0]="UNKNOWN";a[a.TEXT=1]="TEXT";a[a.IMAGE=2]="IMAGE";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EP||={});var BP;((r)=>{r[r.POLL=0]="POLL";r[r.QUIZ=1]="QUIZ";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BP||={});var CP;((a)=>{a[a.UNKNOWN=0]="UNKNOWN";a[a.AUDIO=1]="AUDIO";a[a.VIDEO=2]="VIDEO";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CP||={});var vP;((y)=>{y[y.UNKNOWN=0]="UNKNOWN";y[y.EMPTY=1]="EMPTY";y[y.TEXT=2]="TEXT";y[y.DOCUMENT=3]="DOCUMENT";y[y.IMAGE=4]="IMAGE";y[y.VIDEO=5]="VIDEO";y[y.LOCATION=6]="LOCATION";y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vP||={});var xP;((a)=>{a[a.UNKNOWN=0]="UNKNOWN";a[a.RESPONSE=1]="RESPONSE";a[a.NATIVE_FLOW=2]="NATIVE_FLOW";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xP||={});var NP;((r)=>{r[r.UNKNOWN=0]="UNKNOWN";r[r.DISPLAY_TEXT=1]="DISPLAY_TEXT";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NP||={});var OP;((p)=>{p[p.CONNECTED=0]="CONNECTED";p[p.MISSED=1]="MISSED";p[p.FAILED=2]="FAILED";p[p.REJECTED=3]="REJECTED";p[p.ACCEPTED_ELSEWHERE=4]="ACCEPTED_ELSEWHERE";p[p.ONGOING=5]="ONGOING";p[p.SILENCED_BY_DND=6]="SILENCED_BY_DND";p[p.SILENCED_UNKNOWN_CALLER=7]="SILENCED_UNKNOWN_CALLER";p[p.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OP||={});var UP;((a)=>{a[a.REGULAR=0]="REGULAR";a[a.SCHEDULED_CALL=1]="SCHEDULED_CALL";a[a.VOICE_CHAT=2]="VOICE_CHAT";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UP||={});var TP;((t)=>{t[t.UNKNOWN=0]="UNKNOWN";t[t.CONTROL_PASSED=1]="CONTROL_PASSED";t[t.CONTROL_TAKEN=2]="CONTROL_TAKEN";t[t.INFO=3]="INFO";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TP||={});var LP;((r)=>{r[r.UNKNOWN=0]="UNKNOWN";r[r.SCHEDULED_MESSAGE=1]="SCHEDULED_MESSAGE";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LP||={});var wP;((t)=>{t[t.UNKNOWN=0]="UNKNOWN";t[t.GOING=1]="GOING";t[t.NOT_GOING=2]="NOT_GOING";t[t.MAYBE=3]="MAYBE";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wP||={});var FP;((p)=>{p[p.SYSTEM=0]="SYSTEM";p[p.SYSTEM_TEXT=1]="SYSTEM_TEXT";p[p.FB_SCRIPT=2]="FB_SCRIPT";p[p.SYSTEM_BOLD=6]="SYSTEM_BOLD";p[p.MORNINGBREEZE_REGULAR=7]="MORNINGBREEZE_REGULAR";p[p.CALISTOGA_REGULAR=8]="CALISTOGA_REGULAR";p[p.EXO2_EXTRABOLD=9]="EXO2_EXTRABOLD";p[p.COURIERPRIME_BOLD=10]="COURIERPRIME_BOLD";p[p.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FP||={});var VP;((t)=>{t[t.DEFAULT=0]="DEFAULT";t[t.PARENT=1]="PARENT";t[t.SUB=2]="SUB";t[t.DEFAULT_SUB=3]="DEFAULT_SUB";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VP||={});var KP;((f)=>{f[f.NONE=0]="NONE";f[f.VIDEO=1]="VIDEO";f[f.PLACEHOLDER=4]="PLACEHOLDER";f[f.IMAGE=5]="IMAGE";f[f.PAYMENT_LINKS=6]="PAYMENT_LINKS";f[f.PROFILE=7]="PROFILE";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KP||={});var WP;((r)=>{r[r.DEFAULT=0]="DEFAULT";r[r.PARENT=1]="PARENT";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WP||={});var HP;((r)=>{r[r.GREGORIAN=1]="GREGORIAN";r[r.SOLAR_HIJRI=2]="SOLAR_HIJRI";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HP||={});var qP;((y)=>{y[y.MONDAY=1]="MONDAY";y[y.TUESDAY=2]="TUESDAY";y[y.WEDNESDAY=3]="WEDNESDAY";y[y.THURSDAY=4]="THURSDAY";y[y.FRIDAY=5]="FRIDAY";y[y.SATURDAY=6]="SATURDAY";y[y.SUNDAY=7]="SUNDAY";y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qP||={});var GP;((t)=>{t[t.USER_IMAGE=0]="USER_IMAGE";t[t.AI_GENERATED=1]="AI_GENERATED";t[t.AI_MODIFIED=2]="AI_MODIFIED";t[t.RASTERIZED_TEXT_STATUS=3]="RASTERIZED_TEXT_STATUS";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GP||={});var JP;((a)=>{a[a.UNKNOWN=0]="UNKNOWN";a[a.HSCROLL_CARDS=1]="HSCROLL_CARDS";a[a.ALBUM_IMAGE=2]="ALBUM_IMAGE";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JP||={});var QP;((t)=>{t[t.UNKNOWN_SURFACE=0]="UNKNOWN_SURFACE";t[t.FB=1]="FB";t[t.IG=2]="IG";t[t.WA=3]="WA";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QP||={});var zP;((r)=>{r[r.DEFAULT=0]="DEFAULT";r[r.EXTENSIONS_1=1]="EXTENSIONS_1";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zP||={});var YP;((r)=>{r[r.IMAGE=0]="IMAGE";r[r.PDF=1]="PDF";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YP||={});var ZP;((f)=>{f[f.NONE=0]="NONE";f[f.REEL=1]="REEL";f[f.LIVE_VIDEO=2]="LIVE_VIDEO";f[f.LONG_VIDEO=3]="LONG_VIDEO";f[f.SINGLE_IMAGE=4]="SINGLE_IMAGE";f[f.CAROUSEL=5]="CAROUSEL";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZP||={});var XP;((a)=>{a[a.UNKNOWN=0]="UNKNOWN";a[a.SINGLE_SELECT=1]="SINGLE_SELECT";a[a.PRODUCT_LIST=2]="PRODUCT_LIST";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XP||={});var $P;((r)=>{r[r.UNKNOWN=0]="UNKNOWN";r[r.SINGLE_SELECT=1]="SINGLE_SELECT";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})($P||={});var jP;((a)=>{a[a.INQUIRY=1]="INQUIRY";a[a.ACCEPTED=2]="ACCEPTED";a[a.DECLINED=3]="DECLINED";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jP||={});var eb;((i)=>{i[i.CATALOG=1]="CATALOG";i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eb||={});var nb;((r)=>{r[r.DEFAULT=0]="DEFAULT";r[r.MAPPER=1]="MAPPER";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nb||={});var ib;((t)=>{t[t.UNKNOWN=0]="UNKNOWN";t[t.FBPAY=1]="FBPAY";t[t.NOVI=2]="NOVI";t[t.UPI=3]="UPI";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ib||={});var tb;((r)=>{r[r.LINK_PREVIEW=0]="LINK_PREVIEW";r[r.ORDER=1]="ORDER";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tb||={});var ab;((o)=>{o[o.REMINDER_FREQUENCY_UNKNOWN=0]="REMINDER_FREQUENCY_UNKNOWN";o[o.WEEKLY=1]="WEEKLY";o[o.BI_WEEKLY=2]="BI_WEEKLY";o[o.MONTHLY=3]="MONTHLY";o[o.QUARTERLY=4]="QUARTERLY";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ab||={});var rb;((f)=>{f[f.REMINDER_STATUS_UNKNOWN=0]="REMINDER_STATUS_UNKNOWN";f[f.ACTIVE=1]="ACTIVE";f[f.CANCELLED_BY_CREATOR=2]="CANCELLED_BY_CREATOR";f[f.STOPPED_BY_RECEIVER=3]="STOPPED_BY_RECEIVER";f[f.EXPIRED=4]="EXPIRED";f[f.PAID=5]="PAID";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rb||={});var db;((r)=>{r[r.NOTIFY_LAUNCH=1]="NOTIFY_LAUNCH";r[r.DOWNLOAD_RESPONSES=2]="DOWNLOAD_RESPONSES";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(db||={});var ob;((p)=>{p[p.REQUEST_SUCCESS=0]="REQUEST_SUCCESS";p[p.REQUEST_TIME_EXPIRED=1]="REQUEST_TIME_EXPIRED";p[p.DECLINED_SHARING_HISTORY=2]="DECLINED_SHARING_HISTORY";p[p.GENERIC_ERROR=3]="GENERIC_ERROR";p[p.ERROR_REQUEST_ON_NON_SMB_PRIMARY=4]="ERROR_REQUEST_ON_NON_SMB_PRIMARY";p[p.ERROR_HOSTED_DEVICE_NOT_CONNECTED=5]="ERROR_HOSTED_DEVICE_NOT_CONNECTED";p[p.ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET=6]="ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET";p[p.ERROR_MULTI_PROVIDER_NOT_CONFIGURED=7]="ERROR_MULTI_PROVIDER_NOT_CONFIGURED";p[p.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ob||={});var sb;((f)=>{f[f.GENERATION_ERROR=1]="GENERATION_ERROR";f[f.CHUNK_CONSUMED=2]="CHUNK_CONSUMED";f[f.TIMEOUT=3]="TIMEOUT";f[f.SESSION_EXHAUSTED=4]="SESSION_EXHAUSTED";f[f.CHUNK_EXHAUSTED=5]="CHUNK_EXHAUSTED";f[f.DUPLICATED_REQUEST=6]="DUPLICATED_REQUEST";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sb||={});var ub;((a)=>{a[a.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";a[a.PIN_FOR_ALL=1]="PIN_FOR_ALL";a[a.UNPIN_FOR_ALL=2]="UNPIN_FOR_ALL";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ub||={});var cb;((i)=>{i[i.MASK_LINKED_DEVICES=0]="MASK_LINKED_DEVICES";i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cb||={});var fb;((U)=>{U[U.REVOKE=0]="REVOKE";U[U.EPHEMERAL_SETTING=3]="EPHEMERAL_SETTING";U[U.EPHEMERAL_SYNC_RESPONSE=4]="EPHEMERAL_SYNC_RESPONSE";U[U.HISTORY_SYNC_NOTIFICATION=5]="HISTORY_SYNC_NOTIFICATION";U[U.APP_STATE_SYNC_KEY_SHARE=6]="APP_STATE_SYNC_KEY_SHARE";U[U.APP_STATE_SYNC_KEY_REQUEST=7]="APP_STATE_SYNC_KEY_REQUEST";U[U.MSG_FANOUT_BACKFILL_REQUEST=8]="MSG_FANOUT_BACKFILL_REQUEST";U[U.INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC=9]="INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC";U[U.APP_STATE_FATAL_EXCEPTION_NOTIFICATION=10]="APP_STATE_FATAL_EXCEPTION_NOTIFICATION";U[U.SHARE_PHONE_NUMBER=11]="SHARE_PHONE_NUMBER";U[U.MESSAGE_EDIT=14]="MESSAGE_EDIT";U[U.PEER_DATA_OPERATION_REQUEST_MESSAGE=16]="PEER_DATA_OPERATION_REQUEST_MESSAGE";U[U.PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE=17]="PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE";U[U.REQUEST_WELCOME_MESSAGE=18]="REQUEST_WELCOME_MESSAGE";U[U.BOT_FEEDBACK_MESSAGE=19]="BOT_FEEDBACK_MESSAGE";U[U.MEDIA_NOTIFY_MESSAGE=20]="MEDIA_NOTIFY_MESSAGE";U[U.CLOUD_API_THREAD_CONTROL_NOTIFICATION=21]="CLOUD_API_THREAD_CONTROL_NOTIFICATION";U[U.LID_MIGRATION_MAPPING_SYNC=22]="LID_MIGRATION_MAPPING_SYNC";U[U.REMINDER_MESSAGE=23]="REMINDER_MESSAGE";U[U.BOT_MEMU_ONBOARDING_MESSAGE=24]="BOT_MEMU_ONBOARDING_MESSAGE";U[U.STATUS_MENTION_MESSAGE=25]="STATUS_MENTION_MESSAGE";U[U.STOP_GENERATION_MESSAGE=26]="STOP_GENERATION_MESSAGE";U[U.LIMIT_SHARING=27]="LIMIT_SHARING";U[U.AI_PSI_METADATA=28]="AI_PSI_METADATA";U[U.AI_QUERY_FANOUT=29]="AI_QUERY_FANOUT";U[U.GROUP_MEMBER_LABEL_CHANGE=30]="GROUP_MEMBER_LABEL_CHANGE";U[U.AI_MEDIA_COLLECTION_MESSAGE=31]="AI_MEDIA_COLLECTION_MESSAGE";U[U.MESSAGE_UNSCHEDULE=32]="MESSAGE_UNSCHEDULE";U[U.CHAT_THEME_SETTING=34]="CHAT_THEME_SETTING";U[U.AI_METADATA_OPERATION=35]="AI_METADATA_OPERATION";U[U.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fb||={});var lb;((r)=>{r[r.EMPTY=0]="EMPTY";r[r.NON_EMPTY=1]="NON_EMPTY";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lb||={});var pb;((r)=>{r[r.CHAT_OPEN=0]="CHAT_OPEN";r[r.COMPANION_PAIRING=1]="COMPANION_PAIRING";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pb||={});var gb;((a)=>{a[a.UNKNOWN=0]="UNKNOWN";a[a.VOICE=1]="VOICE";a[a.VIDEO=2]="VIDEO";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gb||={});var yb;((r)=>{r[r.UNKNOWN=0]="UNKNOWN";r[r.CANCEL=1]="CANCEL";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yb||={});var Mb;((f)=>{f[f.UNKNOWN=0]="UNKNOWN";f[f.EVENT_EDIT=1]="EVENT_EDIT";f[f.MESSAGE_EDIT=2]="MESSAGE_EDIT";f[f.MESSAGE_SCHEDULE=3]="MESSAGE_SCHEDULE";f[f.POLL_EDIT=4]="POLL_EDIT";f[f.POLL_ADD_OPTION=5]="POLL_ADD_OPTION";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Mb||={});var mb;((r)=>{r[r.PENDING=0]="PENDING";r[r.PAID=1]="PAID";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mb||={});var _b;((t)=>{t[t.UNKNOWN=0]="UNKNOWN";t[t.STATUS_ADD_YOURS=1]="STATUS_ADD_YOURS";t[t.STATUS_RESHARE=2]="STATUS_RESHARE";t[t.STATUS_QUESTION_ANSWER_RESHARE=3]="STATUS_QUESTION_ANSWER_RESHARE";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_b||={});var hb;((i)=>{i[i.QUESTION_ANSWER=1]="QUESTION_ANSWER";i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hb||={});var kb;((r)=>{r[r.UNKNOWN=0]="UNKNOWN";r[r.REACTION=1]="REACTION";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kb||={});var Ab;((a)=>{a[a.FIRST_PARTY=0]="FIRST_PARTY";a[a.THIRD_PARTY=1]="THIRD_PARTY";a[a.USER_CREATED=2]="USER_CREATED";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ab||={});var Sb;((t)=>{t[t.NONE=0]="NONE";t[t.GIPHY=1]="GIPHY";t[t.TENOR=2]="TENOR";t[t.KLIPY=3]="KLIPY";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Sb||={});var Pb;((r)=>{r[r.USER_VIDEO=0]="USER_VIDEO";r[r.AI_GENERATED=1]="AI_GENERATED";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Pb||={});var bb;((o)=>{o[o.UNDEFINED=0]="UNDEFINED";o[o.REACTION=1]="REACTION";o[o.EVENT_RESPONSE=2]="EVENT_RESPONSE";o[o.POLL_UPDATE=3]="POLL_UPDATE";o[o.PIN_IN_CHAT=4]="PIN_IN_CHAT";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bb||={});var Ib;((T)=>{T[T.UNKNOWN=0]="UNKNOWN";T[T.MEDIA_ALBUM=1]="MEDIA_ALBUM";T[T.BOT_PLUGIN=2]="BOT_PLUGIN";T[T.EVENT_COVER_IMAGE=3]="EVENT_COVER_IMAGE";T[T.STATUS_POLL=4]="STATUS_POLL";T[T.HD_VIDEO_DUAL_UPLOAD=5]="HD_VIDEO_DUAL_UPLOAD";T[T.STATUS_EXTERNAL_RESHARE=6]="STATUS_EXTERNAL_RESHARE";T[T.MEDIA_POLL=7]="MEDIA_POLL";T[T.STATUS_ADD_YOURS=8]="STATUS_ADD_YOURS";T[T.STATUS_NOTIFICATION=9]="STATUS_NOTIFICATION";T[T.HD_IMAGE_DUAL_UPLOAD=10]="HD_IMAGE_DUAL_UPLOAD";T[T.STICKER_ANNOTATION=11]="STICKER_ANNOTATION";T[T.MOTION_PHOTO=12]="MOTION_PHOTO";T[T.STATUS_LINK_ACTION=13]="STATUS_LINK_ACTION";T[T.VIEW_ALL_REPLIES=14]="VIEW_ALL_REPLIES";T[T.STATUS_ADD_YOURS_AI_IMAGINE=15]="STATUS_ADD_YOURS_AI_IMAGINE";T[T.STATUS_QUESTION=16]="STATUS_QUESTION";T[T.STATUS_ADD_YOURS_DIWALI=17]="STATUS_ADD_YOURS_DIWALI";T[T.STATUS_REACTION=18]="STATUS_REACTION";T[T.HEVC_VIDEO_DUAL_UPLOAD=19]="HEVC_VIDEO_DUAL_UPLOAD";T[T.POLL_ADD_OPTION=20]="POLL_ADD_OPTION";T[T.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ib||={});var Rb;((r)=>{r[r.STATIC=1]="STATIC";r[r.DEPENDENT_ON_PARENT=2]="DEPENDENT_ON_PARENT";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Rb||={});var Db;((a)=>{a[a.UNKNOWN=0]="UNKNOWN";a[a.TEXT=1]="TEXT";a[a.IMAGE=2]="IMAGE";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Db||={});var Eb;((r)=>{r[r.POLL=0]="POLL";r[r.QUIZ=1]="QUIZ";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Eb||={});var Bb;((r)=>{r[r.LEFT=0]="LEFT";r[r.REMOVED=1]="REMOVED";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Bb||={});var Cb;((P)=>{P[P.ANDROID=0]="ANDROID";P[P.SMBA=1]="SMBA";P[P.IPHONE=2]="IPHONE";P[P.SMBI=3]="SMBI";P[P.WEB=4]="WEB";P[P.UWP=5]="UWP";P[P.DARWIN=6]="DARWIN";P[P.IPAD=7]="IPAD";P[P.WEAROS=8]="WEAROS";P[P.WASG=9]="WASG";P[P.WEARM=10]="WEARM";P[P.CAPI=11]="CAPI";P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Cb||={});var vb;((r)=>{r[r.UNKNOWN=0]="UNKNOWN";r[r.DEFAULT=1]="DEFAULT";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vb||={});var xb;((r)=>{r[r.UNKNOWN_CURRENCY=0]="UNKNOWN_CURRENCY";r[r.INR=1]="INR";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xb||={});var Nb;((P)=>{P[P.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";P[P.PROCESSING=1]="PROCESSING";P[P.SENT=2]="SENT";P[P.NEED_TO_ACCEPT=3]="NEED_TO_ACCEPT";P[P.COMPLETE=4]="COMPLETE";P[P.COULD_NOT_COMPLETE=5]="COULD_NOT_COMPLETE";P[P.REFUNDED=6]="REFUNDED";P[P.EXPIRED=7]="EXPIRED";P[P.REJECTED=8]="REJECTED";P[P.CANCELLED=9]="CANCELLED";P[P.WAITING_FOR_PAYER=10]="WAITING_FOR_PAYER";P[P.WAITING=11]="WAITING";P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Nb||={});var Ob;((O)=>{O[O.UNKNOWN=0]="UNKNOWN";O[O.PENDING_SETUP=1]="PENDING_SETUP";O[O.PENDING_RECEIVER_SETUP=2]="PENDING_RECEIVER_SETUP";O[O.INIT=3]="INIT";O[O.SUCCESS=4]="SUCCESS";O[O.COMPLETED=5]="COMPLETED";O[O.FAILED=6]="FAILED";O[O.FAILED_RISK=7]="FAILED_RISK";O[O.FAILED_PROCESSING=8]="FAILED_PROCESSING";O[O.FAILED_RECEIVER_PROCESSING=9]="FAILED_RECEIVER_PROCESSING";O[O.FAILED_DA=10]="FAILED_DA";O[O.FAILED_DA_FINAL=11]="FAILED_DA_FINAL";O[O.REFUNDED_TXN=12]="REFUNDED_TXN";O[O.REFUND_FAILED=13]="REFUND_FAILED";O[O.REFUND_FAILED_PROCESSING=14]="REFUND_FAILED_PROCESSING";O[O.REFUND_FAILED_DA=15]="REFUND_FAILED_DA";O[O.EXPIRED_TXN=16]="EXPIRED_TXN";O[O.AUTH_CANCELED=17]="AUTH_CANCELED";O[O.AUTH_CANCEL_FAILED_PROCESSING=18]="AUTH_CANCEL_FAILED_PROCESSING";O[O.AUTH_CANCEL_FAILED=19]="AUTH_CANCEL_FAILED";O[O.COLLECT_INIT=20]="COLLECT_INIT";O[O.COLLECT_SUCCESS=21]="COLLECT_SUCCESS";O[O.COLLECT_FAILED=22]="COLLECT_FAILED";O[O.COLLECT_FAILED_RISK=23]="COLLECT_FAILED_RISK";O[O.COLLECT_REJECTED=24]="COLLECT_REJECTED";O[O.COLLECT_EXPIRED=25]="COLLECT_EXPIRED";O[O.COLLECT_CANCELED=26]="COLLECT_CANCELED";O[O.COLLECT_CANCELLING=27]="COLLECT_CANCELLING";O[O.IN_REVIEW=28]="IN_REVIEW";O[O.REVERSAL_SUCCESS=29]="REVERSAL_SUCCESS";O[O.REVERSAL_PENDING=30]="REVERSAL_PENDING";O[O.REFUND_PENDING=31]="REFUND_PENDING";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ob||={});var Ub;((a)=>{a[a.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";a[a.PIN_FOR_ALL=1]="PIN_FOR_ALL";a[a.UNPIN_FOR_ALL=2]="UNPIN_FOR_ALL";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ub||={});var Tb;((t)=>{t[t.UNDEFINED=0]="UNDEFINED";t[t.LOW=1]="LOW";t[t.MID=2]="MID";t[t.HIGH=3]="HIGH";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Tb||={});var Lb;((a)=>{a[a.AND=1]="AND";a[a.OR=2]="OR";a[a.NOR=3]="NOR";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Lb||={});var wb;((r)=>{r[r.PASS_BY_DEFAULT=1]="PASS_BY_DEFAULT";r[r.FAIL_BY_DEFAULT=2]="FAIL_BY_DEFAULT";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wb||={});var Fb;((a)=>{a[a.TRUE=1]="TRUE";a[a.FALSE=2]="FALSE";a[a.UNKNOWN=3]="UNKNOWN";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Fb||={});var Vb;((P)=>{P[P.UNKNOWN=0]="UNKNOWN";P[P.RESHARE=1]="RESHARE";P[P.EXTERNAL_SHARE=2]="EXTERNAL_SHARE";P[P.MUSIC=3]="MUSIC";P[P.STATUS_MENTION=4]="STATUS_MENTION";P[P.GROUP_STATUS=5]="GROUP_STATUS";P[P.RL_ATTRIBUTION=6]="RL_ATTRIBUTION";P[P.AI_CREATED=7]="AI_CREATED";P[P.LAYOUTS=8]="LAYOUTS";P[P.NEWSLETTER_STATUS=9]="NEWSLETTER_STATUS";P[P.STATUS_CLOSE_SHARING=10]="STATUS_CLOSE_SHARING";P[P.PAID_PARTNERSHIP=11]="PAID_PARTNERSHIP";P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Vb||={});var Kb;((r)=>{r[r.UNKNOWN=0]="UNKNOWN";r[r.STATUS_MIMICRY=1]="STATUS_MIMICRY";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Kb||={});var Wb;((R)=>{R[R.UNKNOWN=0]="UNKNOWN";R[R.INSTAGRAM=1]="INSTAGRAM";R[R.FACEBOOK=2]="FACEBOOK";R[R.MESSENGER=3]="MESSENGER";R[R.SPOTIFY=4]="SPOTIFY";R[R.YOUTUBE=5]="YOUTUBE";R[R.PINTEREST=6]="PINTEREST";R[R.THREADS=7]="THREADS";R[R.APPLE_MUSIC=8]="APPLE_MUSIC";R[R.SHARECHAT=9]="SHARECHAT";R[R.GOOGLE_PHOTOS=10]="GOOGLE_PHOTOS";R[R.SOUNDCLOUD=11]="SOUNDCLOUD";R[R.SHAZAM=12]="SHAZAM";R[R.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Wb||={});var Hb;((t)=>{t[t.UNKNOWN=0]="UNKNOWN";t[t.RAY_BAN_META_GLASSES=1]="RAY_BAN_META_GLASSES";t[t.OAKLEY_META_GLASSES=2]="OAKLEY_META_GLASSES";t[t.HYPERNOVA_GLASSES=3]="HYPERNOVA_GLASSES";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Hb||={});var qb;((o)=>{o[o.UNKNOWN=0]="UNKNOWN";o[o.INTERNAL_RESHARE=1]="INTERNAL_RESHARE";o[o.MENTION_RESHARE=2]="MENTION_RESHARE";o[o.CHANNEL_RESHARE=3]="CHANNEL_RESHARE";o[o.FORWARD=4]="FORWARD";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qb||={});var Gb;((o)=>{o[o.DRAFT=1]="DRAFT";o[o.SCHEDULED=2]="SCHEDULED";o[o.PROCESSING=3]="PROCESSING";o[o.FAILED=4]="FAILED";o[o.SENT=5]="SENT";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Gb||={});var Jb;((a)=>{a[a.UPDATED=0]="UPDATED";a[a.CREATED=1]="CREATED";a[a.DELETED=2]="DELETED";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jb||={});var Qb;((f)=>{f[f.UNKNOWN=0]="UNKNOWN";f[f.INSTRUCTIONS=1]="INSTRUCTIONS";f[f.RESPONSE_SETTINGS=2]="RESPONSE_SETTINGS";f[f.EXAMPLE_RESPONSES=3]="EXAMPLE_RESPONSES";f[f.KNOWLEDGE=4]="KNOWLEDGE";f[f.LEAD_GEN=5]="LEAD_GEN";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Qb||={});var zb;((i)=>{i[i.DISABLE_CTA=1]="DISABLE_CTA";i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zb||={});var Yb;((K)=>{K[K.NONE=0]="NONE";K[K.UNREAD=1]="UNREAD";K[K.GROUPS=2]="GROUPS";K[K.FAVORITES=3]="FAVORITES";K[K.PREDEFINED=4]="PREDEFINED";K[K.CUSTOM=5]="CUSTOM";K[K.COMMUNITY=6]="COMMUNITY";K[K.SERVER_ASSIGNED=7]="SERVER_ASSIGNED";K[K.DRAFTED=8]="DRAFTED";K[K.AI_HANDOFF=9]="AI_HANDOFF";K[K.CHANNELS=10]="CHANNELS";K[K.AI_RESPONDING=11]="AI_RESPONDING";K[K.ARCHIVED=12]="ARCHIVED";K[K.LOCKED=13]="LOCKED";K[K.INVITES=14]="INVITES";K[K.THIRD_PARTY=15]="THIRD_PARTY";K[K.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Yb||={});var Zb;((a)=>{a[a.ENABLED=0]="ENABLED";a[a.ENABLED_HAS_LEARNING=1]="ENABLED_HAS_LEARNING";a[a.DISABLED=2]="DISABLED";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Zb||={});var Xb;((a)=>{a[a.MUTED=0]="MUTED";a[a.AI_AGENT=1]="AI_AGENT";a[a.SUGGESTIONS=2]="SUGGESTIONS";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Xb||={});var $b;((i)=>{i[i.PERSONALIZED=0]="PERSONALIZED";i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"})($b||={});var jb;((r)=>{r[r.ACTIVE=0]="ACTIVE";r[r.INACTIVE=1]="INACTIVE";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jb||={});var eI;((r)=>{r[r.UNSTRUCTURED=1]="UNSTRUCTURED";r[r.STRUCTURED=2]="STRUCTURED";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eI||={});var nI;((t)=>{t[t.DEFAULT_ALL_MESSAGES=0]="DEFAULT_ALL_MESSAGES";t[t.ALL_MESSAGES=1]="ALL_MESSAGES";t[t.HIGHLIGHTS=2]="HIGHLIGHTS";t[t.DEFAULT_HIGHLIGHTS=3]="DEFAULT_HIGHLIGHTS";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nI||={});var iI;((i)=>{i[i.BR_PAY_PRIVACY_POLICY=0]="BR_PAY_PRIVACY_POLICY";i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iI||={});var tI;((a)=>{a[a.UNDEFINED=0]="UNDEFINED";a[a.ENABLED=1]="ENABLED";a[a.DISABLED=2]="DISABLED";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tI||={});var aI;((t)=>{t[t.DISPLAY_MODE_UNKNOWN=0]="DISPLAY_MODE_UNKNOWN";t[t.ALWAYS=1]="ALWAYS";t[t.NEVER=2]="NEVER";t[t.ONLY_WHEN_APP_IS_OPEN=3]="ONLY_WHEN_APP_IS_OPEN";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aI||={});var rI;((a)=>{a[a.MEDIA_QUALITY_UNKNOWN=0]="MEDIA_QUALITY_UNKNOWN";a[a.STANDARD=1]="STANDARD";a[a.HD=2]="HD";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rI||={});var dI;((N)=>{N[N.SETTING_KEY_UNKNOWN=0]="SETTING_KEY_UNKNOWN";N[N.START_AT_LOGIN=1]="START_AT_LOGIN";N[N.MINIMIZE_TO_TRAY=2]="MINIMIZE_TO_TRAY";N[N.LANGUAGE=3]="LANGUAGE";N[N.REPLACE_TEXT_WITH_EMOJI=4]="REPLACE_TEXT_WITH_EMOJI";N[N.BANNER_NOTIFICATION_DISPLAY_MODE=5]="BANNER_NOTIFICATION_DISPLAY_MODE";N[N.UNREAD_COUNTER_BADGE_DISPLAY_MODE=6]="UNREAD_COUNTER_BADGE_DISPLAY_MODE";N[N.IS_MESSAGES_NOTIFICATION_ENABLED=7]="IS_MESSAGES_NOTIFICATION_ENABLED";N[N.IS_CALLS_NOTIFICATION_ENABLED=8]="IS_CALLS_NOTIFICATION_ENABLED";N[N.IS_REACTIONS_NOTIFICATION_ENABLED=9]="IS_REACTIONS_NOTIFICATION_ENABLED";N[N.IS_STATUS_REACTIONS_NOTIFICATION_ENABLED=10]="IS_STATUS_REACTIONS_NOTIFICATION_ENABLED";N[N.IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED=11]="IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED";N[N.DEFAULT_NOTIFICATION_TONE_ID=12]="DEFAULT_NOTIFICATION_TONE_ID";N[N.GROUP_DEFAULT_NOTIFICATION_TONE_ID=13]="GROUP_DEFAULT_NOTIFICATION_TONE_ID";N[N.APP_THEME=14]="APP_THEME";N[N.WALLPAPER_ID=15]="WALLPAPER_ID";N[N.IS_DOODLE_WALLPAPER_ENABLED=16]="IS_DOODLE_WALLPAPER_ENABLED";N[N.FONT_SIZE=17]="FONT_SIZE";N[N.IS_PHOTOS_AUTODOWNLOAD_ENABLED=18]="IS_PHOTOS_AUTODOWNLOAD_ENABLED";N[N.IS_AUDIOS_AUTODOWNLOAD_ENABLED=19]="IS_AUDIOS_AUTODOWNLOAD_ENABLED";N[N.IS_VIDEOS_AUTODOWNLOAD_ENABLED=20]="IS_VIDEOS_AUTODOWNLOAD_ENABLED";N[N.IS_DOCUMENTS_AUTODOWNLOAD_ENABLED=21]="IS_DOCUMENTS_AUTODOWNLOAD_ENABLED";N[N.DISABLE_LINK_PREVIEWS=22]="DISABLE_LINK_PREVIEWS";N[N.NOTIFICATION_TONE_ID=23]="NOTIFICATION_TONE_ID";N[N.MEDIA_UPLOAD_QUALITY=24]="MEDIA_UPLOAD_QUALITY";N[N.IS_SPELL_CHECK_ENABLED=25]="IS_SPELL_CHECK_ENABLED";N[N.IS_ENTER_TO_SEND_ENABLED=26]="IS_ENTER_TO_SEND_ENABLED";N[N.IS_GROUP_MESSAGE_NOTIFICATION_ENABLED=27]="IS_GROUP_MESSAGE_NOTIFICATION_ENABLED";N[N.IS_GROUP_REACTIONS_NOTIFICATION_ENABLED=28]="IS_GROUP_REACTIONS_NOTIFICATION_ENABLED";N[N.IS_STATUS_NOTIFICATION_ENABLED=29]="IS_STATUS_NOTIFICATION_ENABLED";N[N.STATUS_NOTIFICATION_TONE_ID=30]="STATUS_NOTIFICATION_TONE_ID";N[N.SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION=31]="SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION";N[N.CHAT_THEME_ID=32]="CHAT_THEME_ID";N[N.COLOR_SCHEME_ID=33]="COLOR_SCHEME_ID";N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dI||={});var oI;((o)=>{o[o.PLATFORM_UNKNOWN=0]="PLATFORM_UNKNOWN";o[o.WEB=1]="WEB";o[o.HYBRID=2]="HYBRID";o[o.WINDOWS=3]="WINDOWS";o[o.MAC=4]="MAC";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oI||={});var sI;((o)=>{o[o.ALLOW_LIST=0]="ALLOW_LIST";o[o.DENY_LIST=1]="DENY_LIST";o[o.CONTACTS=2]="CONTACTS";o[o.CLOSE_FRIENDS=3]="CLOSE_FRIENDS";o[o.CUSTOM_LIST=4]="CUSTOM_LIST";o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sI||={});var uI;((r)=>{r[r.LID=1]="LID";r[r.PN=2]="PN";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uI||={});var cI;((a)=>{a[a.ACTIVE=0]="ACTIVE";a[a.PAUSED=1]="PAUSED";a[a.UNLINKED=2]="UNLINKED";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cI||={});var fI;((r)=>{r[r.SET=0]="SET";r[r.REMOVE=1]="REMOVE";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fI||={});var lI;((a)=>{a[a.UNKNOWN=0]="UNKNOWN";a[a.VIEW_REPLIES=1]="VIEW_REPLIES";a[a.AI_THREAD=2]="AI_THREAD";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lI||={});var pI;((r)=>{r[r.UTF8=0]="UTF8";r[r.UTF8_BROKEN=1]="UTF8_BROKEN";r[r.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pI||={});var gI;((a)=>{a[a.NONE=0]="NONE";a[a.PBKDF2_HMAC_SHA512=1]="PBKDF2_HMAC_SHA512";a[a.PBKDF2_HMAC_SHA384=2]="PBKDF2_HMAC_SHA384";a[a.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gI||={});var yI;((t)=>{t[t.NOT_STARTED=0]="NOT_STARTED";t[t.FORCE_UPGRADE=1]="FORCE_UPGRADE";t[t.DEVELOPMENT=2]="DEVELOPMENT";t[t.PRODUCTION=3]="PRODUCTION";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yI||={});var MI;((t)=>{t[t.E2EE=0]="E2EE";t[t.FB=2]="FB";t[t.BSP=1]="BSP";t[t.BSP_AND_FB=3]="BSP_AND_FB";t[t.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MI||={});var mI;((f)=>{f[f.ERROR=0]="ERROR";f[f.PENDING=1]="PENDING";f[f.SERVER_ACK=2]="SERVER_ACK";f[f.DELIVERY_ACK=3]="DELIVERY_ACK";f[f.READ=4]="READ";f[f.PLAYED=5]="PLAYED";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mI||={});var _I;((c)=>{c[c.UNKNOWN=0]="UNKNOWN";c[c.REVOKE=1]="REVOKE";c[c.CIPHERTEXT=2]="CIPHERTEXT";c[c.FUTUREPROOF=3]="FUTUREPROOF";c[c.NON_VERIFIED_TRANSITION=4]="NON_VERIFIED_TRANSITION";c[c.UNVERIFIED_TRANSITION=5]="UNVERIFIED_TRANSITION";c[c.VERIFIED_TRANSITION=6]="VERIFIED_TRANSITION";c[c.VERIFIED_LOW_UNKNOWN=7]="VERIFIED_LOW_UNKNOWN";c[c.VERIFIED_HIGH=8]="VERIFIED_HIGH";c[c.VERIFIED_INITIAL_UNKNOWN=9]="VERIFIED_INITIAL_UNKNOWN";c[c.VERIFIED_INITIAL_LOW=10]="VERIFIED_INITIAL_LOW";c[c.VERIFIED_INITIAL_HIGH=11]="VERIFIED_INITIAL_HIGH";c[c.VERIFIED_TRANSITION_ANY_TO_NONE=12]="VERIFIED_TRANSITION_ANY_TO_NONE";c[c.VERIFIED_TRANSITION_ANY_TO_HIGH=13]="VERIFIED_TRANSITION_ANY_TO_HIGH";c[c.VERIFIED_TRANSITION_HIGH_TO_LOW=14]="VERIFIED_TRANSITION_HIGH_TO_LOW";c[c.VERIFIED_TRANSITION_HIGH_TO_UNKNOWN=15]="VERIFIED_TRANSITION_HIGH_TO_UNKNOWN";c[c.VERIFIED_TRANSITION_UNKNOWN_TO_LOW=16]="VERIFIED_TRANSITION_UNKNOWN_TO_LOW";c[c.VERIFIED_TRANSITION_LOW_TO_UNKNOWN=17]="VERIFIED_TRANSITION_LOW_TO_UNKNOWN";c[c.VERIFIED_TRANSITION_NONE_TO_LOW=18]="VERIFIED_TRANSITION_NONE_TO_LOW";c[c.VERIFIED_TRANSITION_NONE_TO_UNKNOWN=19]="VERIFIED_TRANSITION_NONE_TO_UNKNOWN";c[c.GROUP_CREATE=20]="GROUP_CREATE";c[c.GROUP_CHANGE_SUBJECT=21]="GROUP_CHANGE_SUBJECT";c[c.GROUP_CHANGE_ICON=22]="GROUP_CHANGE_ICON";c[c.GROUP_CHANGE_INVITE_LINK=23]="GROUP_CHANGE_INVITE_LINK";c[c.GROUP_CHANGE_DESCRIPTION=24]="GROUP_CHANGE_DESCRIPTION";c[c.GROUP_CHANGE_RESTRICT=25]="GROUP_CHANGE_RESTRICT";c[c.GROUP_CHANGE_ANNOUNCE=26]="GROUP_CHANGE_ANNOUNCE";c[c.GROUP_PARTICIPANT_ADD=27]="GROUP_PARTICIPANT_ADD";c[c.GROUP_PARTICIPANT_REMOVE=28]="GROUP_PARTICIPANT_REMOVE";c[c.GROUP_PARTICIPANT_PROMOTE=29]="GROUP_PARTICIPANT_PROMOTE";c[c.GROUP_PARTICIPANT_DEMOTE=30]="GROUP_PARTICIPANT_DEMOTE";c[c.GROUP_PARTICIPANT_INVITE=31]="GROUP_PARTICIPANT_INVITE";c[c.GROUP_PARTICIPANT_LEAVE=32]="GROUP_PARTICIPANT_LEAVE";c[c.GROUP_PARTICIPANT_CHANGE_NUMBER=33]="GROUP_PARTICIPANT_CHANGE_NUMBER";c[c.BROADCAST_CREATE=34]="BROADCAST_CREATE";c[c.BROADCAST_ADD=35]="BROADCAST_ADD";c[c.BROADCAST_REMOVE=36]="BROADCAST_REMOVE";c[c.GENERIC_NOTIFICATION=37]="GENERIC_NOTIFICATION";c[c.E2E_IDENTITY_CHANGED=38]="E2E_IDENTITY_CHANGED";c[c.E2E_ENCRYPTED=39]="E2E_ENCRYPTED";c[c.CALL_MISSED_VOICE=40]="CALL_MISSED_VOICE";c[c.CALL_MISSED_VIDEO=41]="CALL_MISSED_VIDEO";c[c.INDIVIDUAL_CHANGE_NUMBER=42]="INDIVIDUAL_CHANGE_NUMBER";c[c.GROUP_DELETE=43]="GROUP_DELETE";c[c.GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE=44]="GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE";c[c.CALL_MISSED_GROUP_VOICE=45]="CALL_MISSED_GROUP_VOICE";c[c.CALL_MISSED_GROUP_VIDEO=46]="CALL_MISSED_GROUP_VIDEO";c[c.PAYMENT_CIPHERTEXT=47]="PAYMENT_CIPHERTEXT";c[c.PAYMENT_FUTUREPROOF=48]="PAYMENT_FUTUREPROOF";c[c.PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED=49]="PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED";c[c.PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED=50]="PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED";c[c.PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED=51]="PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED";c[c.PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP=52]="PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP";c[c.PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP=53]="PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP";c[c.PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER=54]="PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER";c[c.PAYMENT_ACTION_SEND_PAYMENT_REMINDER=55]="PAYMENT_ACTION_SEND_PAYMENT_REMINDER";c[c.PAYMENT_ACTION_SEND_PAYMENT_INVITATION=56]="PAYMENT_ACTION_SEND_PAYMENT_INVITATION";c[c.PAYMENT_ACTION_REQUEST_DECLINED=57]="PAYMENT_ACTION_REQUEST_DECLINED";c[c.PAYMENT_ACTION_REQUEST_EXPIRED=58]="PAYMENT_ACTION_REQUEST_EXPIRED";c[c.PAYMENT_ACTION_REQUEST_CANCELLED=59]="PAYMENT_ACTION_REQUEST_CANCELLED";c[c.BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM=60]="BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM";c[c.BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP=61]="BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP";c[c.BIZ_INTRO_TOP=62]="BIZ_INTRO_TOP";c[c.BIZ_INTRO_BOTTOM=63]="BIZ_INTRO_BOTTOM";c[c.BIZ_NAME_CHANGE=64]="BIZ_NAME_CHANGE";c[c.BIZ_MOVE_TO_CONSUMER_APP=65]="BIZ_MOVE_TO_CONSUMER_APP";c[c.BIZ_TWO_TIER_MIGRATION_TOP=66]="BIZ_TWO_TIER_MIGRATION_TOP";c[c.BIZ_TWO_TIER_MIGRATION_BOTTOM=67]="BIZ_TWO_TIER_MIGRATION_BOTTOM";c[c.OVERSIZED=68]="OVERSIZED";c[c.GROUP_CHANGE_NO_FREQUENTLY_FORWARDED=69]="GROUP_CHANGE_NO_FREQUENTLY_FORWARDED";c[c.GROUP_V4_ADD_INVITE_SENT=70]="GROUP_V4_ADD_INVITE_SENT";c[c.GROUP_PARTICIPANT_ADD_REQUEST_JOIN=71]="GROUP_PARTICIPANT_ADD_REQUEST_JOIN";c[c.CHANGE_EPHEMERAL_SETTING=72]="CHANGE_EPHEMERAL_SETTING";c[c.E2E_DEVICE_CHANGED=73]="E2E_DEVICE_CHANGED";c[c.VIEWED_ONCE=74]="VIEWED_ONCE";c[c.E2E_ENCRYPTED_NOW=75]="E2E_ENCRYPTED_NOW";c[c.BLUE_MSG_BSP_FB_TO_BSP_PREMISE=76]="BLUE_MSG_BSP_FB_TO_BSP_PREMISE";c[c.BLUE_MSG_BSP_FB_TO_SELF_FB=77]="BLUE_MSG_BSP_FB_TO_SELF_FB";c[c.BLUE_MSG_BSP_FB_TO_SELF_PREMISE=78]="BLUE_MSG_BSP_FB_TO_SELF_PREMISE";c[c.BLUE_MSG_BSP_FB_UNVERIFIED=79]="BLUE_MSG_BSP_FB_UNVERIFIED";c[c.BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=80]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";c[c.BLUE_MSG_BSP_FB_VERIFIED=81]="BLUE_MSG_BSP_FB_VERIFIED";c[c.BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=82]="BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";c[c.BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE=83]="BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE";c[c.BLUE_MSG_BSP_PREMISE_UNVERIFIED=84]="BLUE_MSG_BSP_PREMISE_UNVERIFIED";c[c.BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=85]="BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";c[c.BLUE_MSG_BSP_PREMISE_VERIFIED=86]="BLUE_MSG_BSP_PREMISE_VERIFIED";c[c.BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=87]="BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";c[c.BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED=88]="BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED";c[c.BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED=89]="BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED";c[c.BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED=90]="BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED";c[c.BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED=91]="BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED";c[c.BLUE_MSG_SELF_FB_TO_BSP_PREMISE=92]="BLUE_MSG_SELF_FB_TO_BSP_PREMISE";c[c.BLUE_MSG_SELF_FB_TO_SELF_PREMISE=93]="BLUE_MSG_SELF_FB_TO_SELF_PREMISE";c[c.BLUE_MSG_SELF_FB_UNVERIFIED=94]="BLUE_MSG_SELF_FB_UNVERIFIED";c[c.BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=95]="BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";c[c.BLUE_MSG_SELF_FB_VERIFIED=96]="BLUE_MSG_SELF_FB_VERIFIED";c[c.BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=97]="BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";c[c.BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE=98]="BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE";c[c.BLUE_MSG_SELF_PREMISE_UNVERIFIED=99]="BLUE_MSG_SELF_PREMISE_UNVERIFIED";c[c.BLUE_MSG_SELF_PREMISE_VERIFIED=100]="BLUE_MSG_SELF_PREMISE_VERIFIED";c[c.BLUE_MSG_TO_BSP_FB=101]="BLUE_MSG_TO_BSP_FB";c[c.BLUE_MSG_TO_CONSUMER=102]="BLUE_MSG_TO_CONSUMER";c[c.BLUE_MSG_TO_SELF_FB=103]="BLUE_MSG_TO_SELF_FB";c[c.BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED=104]="BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED";c[c.BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=105]="BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";c[c.BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED=106]="BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED";c[c.BLUE_MSG_UNVERIFIED_TO_VERIFIED=107]="BLUE_MSG_UNVERIFIED_TO_VERIFIED";c[c.BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED=108]="BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED";c[c.BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=109]="BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";c[c.BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED=110]="BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED";c[c.BLUE_MSG_VERIFIED_TO_UNVERIFIED=111]="BLUE_MSG_VERIFIED_TO_UNVERIFIED";c[c.BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=112]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";c[c.BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED=113]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED";c[c.BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=114]="BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";c[c.BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED=115]="BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED";c[c.BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=116]="BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";c[c.BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=117]="BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";c[c.E2E_IDENTITY_UNAVAILABLE=118]="E2E_IDENTITY_UNAVAILABLE";c[c.GROUP_CREATING=119]="GROUP_CREATING";c[c.GROUP_CREATE_FAILED=120]="GROUP_CREATE_FAILED";c[c.GROUP_BOUNCED=121]="GROUP_BOUNCED";c[c.BLOCK_CONTACT=122]="BLOCK_CONTACT";c[c.EPHEMERAL_SETTING_NOT_APPLIED=123]="EPHEMERAL_SETTING_NOT_APPLIED";c[c.SYNC_FAILED=124]="SYNC_FAILED";c[c.SYNCING=125]="SYNCING";c[c.BIZ_PRIVACY_MODE_INIT_FB=126]="BIZ_PRIVACY_MODE_INIT_FB";c[c.BIZ_PRIVACY_MODE_INIT_BSP=127]="BIZ_PRIVACY_MODE_INIT_BSP";c[c.BIZ_PRIVACY_MODE_TO_FB=128]="BIZ_PRIVACY_MODE_TO_FB";c[c.BIZ_PRIVACY_MODE_TO_BSP=129]="BIZ_PRIVACY_MODE_TO_BSP";c[c.DISAPPEARING_MODE=130]="DISAPPEARING_MODE";c[c.E2E_DEVICE_FETCH_FAILED=131]="E2E_DEVICE_FETCH_FAILED";c[c.ADMIN_REVOKE=132]="ADMIN_REVOKE";c[c.GROUP_INVITE_LINK_GROWTH_LOCKED=133]="GROUP_INVITE_LINK_GROWTH_LOCKED";c[c.COMMUNITY_LINK_PARENT_GROUP=134]="COMMUNITY_LINK_PARENT_GROUP";c[c.COMMUNITY_LINK_SIBLING_GROUP=135]="COMMUNITY_LINK_SIBLING_GROUP";c[c.COMMUNITY_LINK_SUB_GROUP=136]="COMMUNITY_LINK_SUB_GROUP";c[c.COMMUNITY_UNLINK_PARENT_GROUP=137]="COMMUNITY_UNLINK_PARENT_GROUP";c[c.COMMUNITY_UNLINK_SIBLING_GROUP=138]="COMMUNITY_UNLINK_SIBLING_GROUP";c[c.COMMUNITY_UNLINK_SUB_GROUP=139]="COMMUNITY_UNLINK_SUB_GROUP";c[c.GROUP_PARTICIPANT_ACCEPT=140]="GROUP_PARTICIPANT_ACCEPT";c[c.GROUP_PARTICIPANT_LINKED_GROUP_JOIN=141]="GROUP_PARTICIPANT_LINKED_GROUP_JOIN";c[c.COMMUNITY_CREATE=142]="COMMUNITY_CREATE";c[c.EPHEMERAL_KEEP_IN_CHAT=143]="EPHEMERAL_KEEP_IN_CHAT";c[c.GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST=144]="GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST";c[c.GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE=145]="GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE";c[c.INTEGRITY_UNLINK_PARENT_GROUP=146]="INTEGRITY_UNLINK_PARENT_GROUP";c[c.COMMUNITY_PARTICIPANT_PROMOTE=147]="COMMUNITY_PARTICIPANT_PROMOTE";c[c.COMMUNITY_PARTICIPANT_DEMOTE=148]="COMMUNITY_PARTICIPANT_DEMOTE";c[c.COMMUNITY_PARENT_GROUP_DELETED=149]="COMMUNITY_PARENT_GROUP_DELETED";c[c.COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL=150]="COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL";c[c.GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP=151]="GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP";c[c.MASKED_THREAD_CREATED=152]="MASKED_THREAD_CREATED";c[c.MASKED_THREAD_UNMASKED=153]="MASKED_THREAD_UNMASKED";c[c.BIZ_CHAT_ASSIGNMENT=154]="BIZ_CHAT_ASSIGNMENT";c[c.CHAT_PSA=155]="CHAT_PSA";c[c.CHAT_POLL_CREATION_MESSAGE=156]="CHAT_POLL_CREATION_MESSAGE";c[c.CAG_MASKED_THREAD_CREATED=157]="CAG_MASKED_THREAD_CREATED";c[c.COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED=158]="COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED";c[c.CAG_INVITE_AUTO_ADD=159]="CAG_INVITE_AUTO_ADD";c[c.BIZ_CHAT_ASSIGNMENT_UNASSIGN=160]="BIZ_CHAT_ASSIGNMENT_UNASSIGN";c[c.CAG_INVITE_AUTO_JOINED=161]="CAG_INVITE_AUTO_JOINED";c[c.SCHEDULED_CALL_START_MESSAGE=162]="SCHEDULED_CALL_START_MESSAGE";c[c.COMMUNITY_INVITE_RICH=163]="COMMUNITY_INVITE_RICH";c[c.COMMUNITY_INVITE_AUTO_ADD_RICH=164]="COMMUNITY_INVITE_AUTO_ADD_RICH";c[c.SUB_GROUP_INVITE_RICH=165]="SUB_GROUP_INVITE_RICH";c[c.SUB_GROUP_PARTICIPANT_ADD_RICH=166]="SUB_GROUP_PARTICIPANT_ADD_RICH";c[c.COMMUNITY_LINK_PARENT_GROUP_RICH=167]="COMMUNITY_LINK_PARENT_GROUP_RICH";c[c.COMMUNITY_PARTICIPANT_ADD_RICH=168]="COMMUNITY_PARTICIPANT_ADD_RICH";c[c.SILENCED_UNKNOWN_CALLER_AUDIO=169]="SILENCED_UNKNOWN_CALLER_AUDIO";c[c.SILENCED_UNKNOWN_CALLER_VIDEO=170]="SILENCED_UNKNOWN_CALLER_VIDEO";c[c.GROUP_MEMBER_ADD_MODE=171]="GROUP_MEMBER_ADD_MODE";c[c.GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD=172]="GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD";c[c.COMMUNITY_CHANGE_DESCRIPTION=173]="COMMUNITY_CHANGE_DESCRIPTION";c[c.SENDER_INVITE=174]="SENDER_INVITE";c[c.RECEIVER_INVITE=175]="RECEIVER_INVITE";c[c.COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS=176]="COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS";c[c.PINNED_MESSAGE_IN_CHAT=177]="PINNED_MESSAGE_IN_CHAT";c[c.PAYMENT_INVITE_SETUP_INVITER=178]="PAYMENT_INVITE_SETUP_INVITER";c[c.PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY=179]="PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY";c[c.PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE=180]="PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE";c[c.LINKED_GROUP_CALL_START=181]="LINKED_GROUP_CALL_START";c[c.REPORT_TO_ADMIN_ENABLED_STATUS=182]="REPORT_TO_ADMIN_ENABLED_STATUS";c[c.EMPTY_SUBGROUP_CREATE=183]="EMPTY_SUBGROUP_CREATE";c[c.SCHEDULED_CALL_CANCEL=184]="SCHEDULED_CALL_CANCEL";c[c.SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH=185]="SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH";c[c.GROUP_CHANGE_RECENT_HISTORY_SHARING=186]="GROUP_CHANGE_RECENT_HISTORY_SHARING";c[c.PAID_MESSAGE_SERVER_CAMPAIGN_ID=187]="PAID_MESSAGE_SERVER_CAMPAIGN_ID";c[c.GENERAL_CHAT_CREATE=188]="GENERAL_CHAT_CREATE";c[c.GENERAL_CHAT_ADD=189]="GENERAL_CHAT_ADD";c[c.GENERAL_CHAT_AUTO_ADD_DISABLED=190]="GENERAL_CHAT_AUTO_ADD_DISABLED";c[c.SUGGESTED_SUBGROUP_ANNOUNCE=191]="SUGGESTED_SUBGROUP_ANNOUNCE";c[c.BIZ_BOT_1P_MESSAGING_ENABLED=192]="BIZ_BOT_1P_MESSAGING_ENABLED";c[c.CHANGE_USERNAME=193]="CHANGE_USERNAME";c[c.BIZ_COEX_PRIVACY_INIT_SELF=194]="BIZ_COEX_PRIVACY_INIT_SELF";c[c.BIZ_COEX_PRIVACY_TRANSITION_SELF=195]="BIZ_COEX_PRIVACY_TRANSITION_SELF";c[c.SUPPORT_AI_EDUCATION=196]="SUPPORT_AI_EDUCATION";c[c.BIZ_BOT_3P_MESSAGING_ENABLED=197]="BIZ_BOT_3P_MESSAGING_ENABLED";c[c.REMINDER_SETUP_MESSAGE=198]="REMINDER_SETUP_MESSAGE";c[c.REMINDER_SENT_MESSAGE=199]="REMINDER_SENT_MESSAGE";c[c.REMINDER_CANCEL_MESSAGE=200]="REMINDER_CANCEL_MESSAGE";c[c.BIZ_COEX_PRIVACY_INIT=201]="BIZ_COEX_PRIVACY_INIT";c[c.BIZ_COEX_PRIVACY_TRANSITION=202]="BIZ_COEX_PRIVACY_TRANSITION";c[c.GROUP_DEACTIVATED=203]="GROUP_DEACTIVATED";c[c.COMMUNITY_DEACTIVATE_SIBLING_GROUP=204]="COMMUNITY_DEACTIVATE_SIBLING_GROUP";c[c.EVENT_UPDATED=205]="EVENT_UPDATED";c[c.EVENT_CANCELED=206]="EVENT_CANCELED";c[c.COMMUNITY_OWNER_UPDATED=207]="COMMUNITY_OWNER_UPDATED";c[c.COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN=208]="COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN";c[c.CAPI_GROUP_NE2EE_SYSTEM_MESSAGE=209]="CAPI_GROUP_NE2EE_SYSTEM_MESSAGE";c[c.STATUS_MENTION=210]="STATUS_MENTION";c[c.USER_CONTROLS_SYSTEM_MESSAGE=211]="USER_CONTROLS_SYSTEM_MESSAGE";c[c.SUPPORT_SYSTEM_MESSAGE=212]="SUPPORT_SYSTEM_MESSAGE";c[c.CHANGE_LID=213]="CHANGE_LID";c[c.BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE=214]="BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE";c[c.BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE=215]="BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE";c[c.CHANGE_LIMIT_SHARING=216]="CHANGE_LIMIT_SHARING";c[c.GROUP_MEMBER_LINK_MODE=217]="GROUP_MEMBER_LINK_MODE";c[c.BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE=218]="BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE";c[c.PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE=219]="PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE";c[c.QUARANTINED_MESSAGE=220]="QUARANTINED_MESSAGE";c[c.GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE=221]="GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE";c[c.GROUP_OPEN_BOT_ADDED=222]="GROUP_OPEN_BOT_ADDED";c[c.GROUP_TEE_BOT_ADDED=223]="GROUP_TEE_BOT_ADDED";c[c.CONTACT_INFO=224]="CONTACT_INFO";c[c.SCHEDULED_MESSAGE_CREATED=225]="SCHEDULED_MESSAGE_CREATED";c[c.IDENTITY_TRUST_MARKED=226]="IDENTITY_TRUST_MARKED";c[c.IDENTITY_TRUST_UNMARKED=227]="IDENTITY_TRUST_UNMARKED";c[c.IDENTITY_TRUST_REVOKED=228]="IDENTITY_TRUST_REVOKED";c[c.CTWA_CONSUMER_DISCLOSURE=230]="CTWA_CONSUMER_DISCLOSURE";c[c.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_I||={});function Gf(){return{}}var Fc={encode(e,n=new s){if(e.rawId!==void 0)n.uint32(8).uint32(e.rawId);if(e.timestamp!==void 0)n.uint32(16).uint64(e.timestamp);if(e.keyIndex!==void 0)n.uint32(24).uint32(e.keyIndex);if(e.accountType!==void 0)n.uint32(32).int32(e.accountType);if(e.deviceType!==void 0)n.uint32(40).int32(e.deviceType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Gf();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.rawId=i.uint32();continue}case 2:{if(t!==16)break;a.timestamp=i.uint64Number();continue}case 3:{if(t!==24)break;a.keyIndex=i.uint32();continue}case 4:{if(t!==32)break;a.accountType=i.int32();continue}case 5:{if(t!==40)break;a.deviceType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Fc.fromPartial(e??{})},fromPartial(e){let n=Gf();return n.rawId=e.rawId??void 0,n.timestamp=e.timestamp??void 0,n.keyIndex=e.keyIndex??void 0,n.accountType=e.accountType??void 0,n.deviceType=e.deviceType??void 0,n}};function Jf(){return{}}var hI={encode(e,n=new s){if(e.rawId!==void 0)n.uint32(8).uint32(e.rawId);if(e.timestamp!==void 0)n.uint32(16).uint64(e.timestamp);if(e.currentIndex!==void 0)n.uint32(24).uint32(e.currentIndex);if(e.validIndexes!==void 0&&e.validIndexes.length!==0){n.uint32(34).fork();for(let i of e.validIndexes)n.uint32(i);n.join()}if(e.accountType!==void 0)n.uint32(40).int32(e.accountType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Jf();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.rawId=i.uint32();continue}case 2:{if(t!==16)break;a.timestamp=i.uint64Number();continue}case 3:{if(t!==24)break;a.currentIndex=i.uint32();continue}case 4:{if(t===32){if(a.validIndexes===void 0)a.validIndexes=[];a.validIndexes.push(i.uint32());continue}if(t===34){if(a.validIndexes===void 0)a.validIndexes=[];let o=i.uint32()+i.pos;while(i.pos<o)a.validIndexes.push(i.uint32());continue}break}case 5:{if(t!==40)break;a.accountType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return hI.fromPartial(e??{})},fromPartial(e){let n=Jf();return n.rawId=e.rawId??void 0,n.timestamp=e.timestamp??void 0,n.currentIndex=e.currentIndex??void 0,n.validIndexes=e.validIndexes?.map((i)=>i)||void 0,n.accountType=e.accountType??void 0,n}};function Qf(){return{}}var Vc={encode(e,n=new s){if(e.details!==void 0)n.uint32(10).bytes(e.details);if(e.accountSignatureKey!==void 0)n.uint32(18).bytes(e.accountSignatureKey);if(e.accountSignature!==void 0)n.uint32(26).bytes(e.accountSignature);if(e.deviceSignature!==void 0)n.uint32(34).bytes(e.deviceSignature);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Qf();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.details=i.bytes();continue}case 2:{if(t!==18)break;a.accountSignatureKey=i.bytes();continue}case 3:{if(t!==26)break;a.accountSignature=i.bytes();continue}case 4:{if(t!==34)break;a.deviceSignature=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Vc.fromPartial(e??{})},fromPartial(e){let n=Qf();return n.details=e.details??void 0,n.accountSignatureKey=e.accountSignatureKey??void 0,n.accountSignature=e.accountSignature??void 0,n.deviceSignature=e.deviceSignature??void 0,n}};function zf(){return{}}var Kc={encode(e,n=new s){if(e.details!==void 0)n.uint32(10).bytes(e.details);if(e.hmac!==void 0)n.uint32(18).bytes(e.hmac);if(e.accountType!==void 0)n.uint32(24).int32(e.accountType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=zf();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.details=i.bytes();continue}case 2:{if(t!==18)break;a.hmac=i.bytes();continue}case 3:{if(t!==24)break;a.accountType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Kc.fromPartial(e??{})},fromPartial(e){let n=zf();return n.details=e.details??void 0,n.hmac=e.hmac??void 0,n.accountType=e.accountType??void 0,n}};function Yf(){return{}}var Wc={encode(e,n=new s){if(e.details!==void 0)n.uint32(10).bytes(e.details);if(e.accountSignature!==void 0)n.uint32(18).bytes(e.accountSignature);if(e.accountSignatureKey!==void 0)n.uint32(26).bytes(e.accountSignatureKey);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Yf();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.details=i.bytes();continue}case 2:{if(t!==18)break;a.accountSignature=i.bytes();continue}case 3:{if(t!==26)break;a.accountSignatureKey=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Wc.fromPartial(e??{})},fromPartial(e){let n=Yf();return n.details=e.details??void 0,n.accountSignature=e.accountSignature??void 0,n.accountSignatureKey=e.accountSignatureKey??void 0,n}};function Zf(){return{}}var kI={encode(e,n=new s){if(e.lastFetchTime!==void 0)n.uint32(8).int64(e.lastFetchTime);if(e.capabilityOptions!==void 0&&e.capabilityOptions.length!==0)for(let i of e.capabilityOptions)Te.encode(i,n.uint32(18).fork()).join();if(e.conversationOptions!==void 0&&e.conversationOptions.length!==0)for(let i of e.conversationOptions)Te.encode(i,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Zf();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.lastFetchTime=i.int64Number();continue}case 2:{if(t!==18)break;if(a.capabilityOptions===void 0)a.capabilityOptions=[];let o=Te.decode(i,i.uint32());if(o!==void 0)a.capabilityOptions.push(o);continue}case 3:{if(t!==26)break;if(a.conversationOptions===void 0)a.conversationOptions=[];let o=Te.decode(i,i.uint32());if(o!==void 0)a.conversationOptions.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return kI.fromPartial(e??{})},fromPartial(e){let n=Zf();return n.lastFetchTime=e.lastFetchTime??void 0,n.capabilityOptions=e.capabilityOptions?.map((i)=>Te.fromPartial(i))||void 0,n.conversationOptions=e.conversationOptions?.map((i)=>Te.fromPartial(i))||void 0,n}};function Xf(){return{}}var Te={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).int32(e.type);if(e.title!==void 0)n.uint32(18).string(e.title);if(e.promptText!==void 0)n.uint32(26).string(e.promptText);if(e.sessionId!==void 0)n.uint32(34).string(e.sessionId);if(e.imageWdsIdentifier!==void 0)n.uint32(42).string(e.imageWdsIdentifier);if(e.imageTintColor!==void 0)n.uint32(50).string(e.imageTintColor);if(e.imageBackgroundColor!==void 0)n.uint32(58).string(e.imageBackgroundColor);if(e.cardTypeId!==void 0)n.uint32(66).string(e.cardTypeId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Xf();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.int32();continue}case 2:{if(t!==18)break;a.title=i.string();continue}case 3:{if(t!==26)break;a.promptText=i.string();continue}case 4:{if(t!==34)break;a.sessionId=i.string();continue}case 5:{if(t!==42)break;a.imageWdsIdentifier=i.string();continue}case 6:{if(t!==50)break;a.imageTintColor=i.string();continue}case 7:{if(t!==58)break;a.imageBackgroundColor=i.string();continue}case 8:{if(t!==66)break;a.cardTypeId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Te.fromPartial(e??{})},fromPartial(e){let n=Xf();return n.type=e.type??void 0,n.title=e.title??void 0,n.promptText=e.promptText??void 0,n.sessionId=e.sessionId??void 0,n.imageWdsIdentifier=e.imageWdsIdentifier??void 0,n.imageTintColor=e.imageTintColor??void 0,n.imageBackgroundColor=e.imageBackgroundColor??void 0,n.cardTypeId=e.cardTypeId??void 0,n}};function $f(){return{}}var Gn={encode(e,n=new s){if(e.collectionId!==void 0)n.uint32(10).string(e.collectionId);if(e.expectedMediaCount!==void 0)n.uint32(16).uint32(e.expectedMediaCount);if(e.hasGlobalCaption!==void 0)n.uint32(24).bool(e.hasGlobalCaption);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=$f();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.collectionId=i.string();continue}case 2:{if(t!==16)break;a.expectedMediaCount=i.uint32();continue}case 3:{if(t!==24)break;a.hasGlobalCaption=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Gn.fromPartial(e??{})},fromPartial(e){let n=$f();return n.collectionId=e.collectionId??void 0,n.expectedMediaCount=e.expectedMediaCount??void 0,n.hasGlobalCaption=e.hasGlobalCaption??void 0,n}};function jf(){return{}}var Jn={encode(e,n=new s){if(e.collectionId!==void 0)n.uint32(10).string(e.collectionId);if(e.uploadOrderIndex!==void 0)n.uint32(16).uint32(e.uploadOrderIndex);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=jf();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.collectionId=i.string();continue}case 2:{if(t!==16)break;a.uploadOrderIndex=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Jn.fromPartial(e??{})},fromPartial(e){let n=jf();return n.collectionId=e.collectionId??void 0,n.uploadOrderIndex=e.uploadOrderIndex??void 0,n}};function el(){return{}}var Qn={encode(e,n=new s){if(e.hatchMetadataSync!==void 0)Wa.encode(e.hatchMetadataSync,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=el();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.hatchMetadataSync=Wa.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Qn.fromPartial(e??{})},fromPartial(e){let n=el();return n.hatchMetadataSync=e.hatchMetadataSync!==void 0&&e.hatchMetadataSync!==null?Wa.fromPartial(e.hatchMetadataSync):void 0,n}};function nl(){return{}}var zn={encode(e,n=new s){if(e.messageKey!==void 0)_.encode(e.messageKey,n.uint32(10).fork()).join();if(e.message!==void 0)F.encode(e.message,n.uint32(18).fork()).join();if(e.timestamp!==void 0)n.uint32(24).int64(e.timestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=nl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.messageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.message=F.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.timestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return zn.fromPartial(e??{})},fromPartial(e){let n=nl();return n.messageKey=e.messageKey!==void 0&&e.messageKey!==null?_.fromPartial(e.messageKey):void 0,n.message=e.message!==void 0&&e.message!==null?F.fromPartial(e.message):void 0,n.timestamp=e.timestamp??void 0,n}};function il(){return{}}var Yn={encode(e,n=new s){if(e.messageKey!==void 0)_.encode(e.messageKey,n.uint32(10).fork()).join();if(e.responseTimestampMs!==void 0)n.uint32(16).int64(e.responseTimestampMs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=il();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.messageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.responseTimestampMs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Yn.fromPartial(e??{})},fromPartial(e){let n=il();return n.messageKey=e.messageKey!==void 0&&e.messageKey!==null?_.fromPartial(e.messageKey):void 0,n.responseTimestampMs=e.responseTimestampMs??void 0,n}};function tl(){return{}}var Zn={encode(e,n=new s){if(e.codeLanguage!==void 0)n.uint32(10).string(e.codeLanguage);if(e.codeBlocks!==void 0&&e.codeBlocks.length!==0)for(let i of e.codeBlocks)Xn.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=tl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.codeLanguage=i.string();continue}case 2:{if(t!==18)break;if(a.codeBlocks===void 0)a.codeBlocks=[];let o=Xn.decode(i,i.uint32());if(o!==void 0)a.codeBlocks.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Zn.fromPartial(e??{})},fromPartial(e){let n=tl();return n.codeLanguage=e.codeLanguage??void 0,n.codeBlocks=e.codeBlocks?.map((i)=>Xn.fromPartial(i))||void 0,n}};function al(){return{}}var Xn={encode(e,n=new s){if(e.highlightType!==void 0)n.uint32(8).int32(e.highlightType);if(e.codeContent!==void 0)n.uint32(18).string(e.codeContent);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=al();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.highlightType=i.int32();continue}case 2:{if(t!==18)break;a.codeContent=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Xn.fromPartial(e??{})},fromPartial(e){let n=al();return n.highlightType=e.highlightType??void 0,n.codeContent=e.codeContent??void 0,n}};function rl(){return{}}var $n={encode(e,n=new s){if(e.itemsMetadata!==void 0&&e.itemsMetadata.length!==0)for(let i of e.itemsMetadata)jn.encode(i,n.uint32(10).fork()).join();if(e.contentType!==void 0)n.uint32(16).int32(e.contentType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=rl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.itemsMetadata===void 0)a.itemsMetadata=[];let o=jn.decode(i,i.uint32());if(o!==void 0)a.itemsMetadata.push(o);continue}case 2:{if(t!==16)break;a.contentType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return $n.fromPartial(e??{})},fromPartial(e){let n=rl();return n.itemsMetadata=e.itemsMetadata?.map((i)=>jn.fromPartial(i))||void 0,n.contentType=e.contentType??void 0,n}};function dl(){return{}}var jn={encode(e,n=new s){if(e.reelItem!==void 0)ei.encode(e.reelItem,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=dl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.reelItem=ei.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return jn.fromPartial(e??{})},fromPartial(e){let n=dl();return n.reelItem=e.reelItem!==void 0&&e.reelItem!==null?ei.fromPartial(e.reelItem):void 0,n}};function ol(){return{}}var ei={encode(e,n=new s){if(e.title!==void 0)n.uint32(10).string(e.title);if(e.profileIconUrl!==void 0)n.uint32(18).string(e.profileIconUrl);if(e.thumbnailUrl!==void 0)n.uint32(26).string(e.thumbnailUrl);if(e.videoUrl!==void 0)n.uint32(34).string(e.videoUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ol();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.title=i.string();continue}case 2:{if(t!==18)break;a.profileIconUrl=i.string();continue}case 3:{if(t!==26)break;a.thumbnailUrl=i.string();continue}case 4:{if(t!==34)break;a.videoUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ei.fromPartial(e??{})},fromPartial(e){let n=ol();return n.title=e.title??void 0,n.profileIconUrl=e.profileIconUrl??void 0,n.thumbnailUrl=e.thumbnailUrl??void 0,n.videoUrl=e.videoUrl??void 0,n}};function sl(){return{}}var ni={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).int32(e.type);if(e.version!==void 0)n.uint32(16).uint64(e.version);if(e.url!==void 0)n.uint32(26).string(e.url);if(e.loopCount!==void 0)n.uint32(32).uint32(e.loopCount);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=sl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.int32();continue}case 2:{if(t!==16)break;a.version=i.uint64Number();continue}case 3:{if(t!==26)break;a.url=i.string();continue}case 4:{if(t!==32)break;a.loopCount=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ni.fromPartial(e??{})},fromPartial(e){let n=sl();return n.type=e.type??void 0,n.version=e.version??void 0,n.url=e.url??void 0,n.loopCount=e.loopCount??void 0,n}};function ul(){return{}}var ii={encode(e,n=new s){if(e.gridImageUrl!==void 0)ue.encode(e.gridImageUrl,n.uint32(10).fork()).join();if(e.imageUrls!==void 0&&e.imageUrls.length!==0)for(let i of e.imageUrls)ue.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ul();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.gridImageUrl=ue.decode(i,i.uint32());continue}case 2:{if(t!==18)break;if(a.imageUrls===void 0)a.imageUrls=[];let o=ue.decode(i,i.uint32());if(o!==void 0)a.imageUrls.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ii.fromPartial(e??{})},fromPartial(e){let n=ul();return n.gridImageUrl=e.gridImageUrl!==void 0&&e.gridImageUrl!==null?ue.fromPartial(e.gridImageUrl):void 0,n.imageUrls=e.imageUrls?.map((i)=>ue.fromPartial(i))||void 0,n}};function cl(){return{}}var ue={encode(e,n=new s){if(e.imagePreviewUrl!==void 0)n.uint32(10).string(e.imagePreviewUrl);if(e.imageHighResUrl!==void 0)n.uint32(18).string(e.imageHighResUrl);if(e.sourceUrl!==void 0)n.uint32(26).string(e.sourceUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=cl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.imagePreviewUrl=i.string();continue}case 2:{if(t!==18)break;a.imageHighResUrl=i.string();continue}case 3:{if(t!==26)break;a.sourceUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ue.fromPartial(e??{})},fromPartial(e){let n=cl();return n.imagePreviewUrl=e.imagePreviewUrl??void 0,n.imageHighResUrl=e.imageHighResUrl??void 0,n.sourceUrl=e.sourceUrl??void 0,n}};function fl(){return{}}var ti={encode(e,n=new s){if(e.imageUrl!==void 0)ue.encode(e.imageUrl,n.uint32(10).fork()).join();if(e.imageText!==void 0)n.uint32(18).string(e.imageText);if(e.alignment!==void 0)n.uint32(24).int32(e.alignment);if(e.tapLinkUrl!==void 0)n.uint32(34).string(e.tapLinkUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=fl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.imageUrl=ue.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.imageText=i.string();continue}case 3:{if(t!==24)break;a.alignment=i.int32();continue}case 4:{if(t!==34)break;a.tapLinkUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ti.fromPartial(e??{})},fromPartial(e){let n=fl();return n.imageUrl=e.imageUrl!==void 0&&e.imageUrl!==null?ue.fromPartial(e.imageUrl):void 0,n.imageText=e.imageText??void 0,n.alignment=e.alignment??void 0,n.tapLinkUrl=e.tapLinkUrl??void 0,n}};function ll(){return{}}var ai={encode(e,n=new s){if(e.text!==void 0)n.uint32(10).string(e.text);if(e.expressions!==void 0&&e.expressions.length!==0)for(let i of e.expressions)ri.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ll();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.text=i.string();continue}case 2:{if(t!==18)break;if(a.expressions===void 0)a.expressions=[];let o=ri.decode(i,i.uint32());if(o!==void 0)a.expressions.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ai.fromPartial(e??{})},fromPartial(e){let n=ll();return n.text=e.text??void 0,n.expressions=e.expressions?.map((i)=>ri.fromPartial(i))||void 0,n}};function pl(){return{}}var ri={encode(e,n=new s){if(e.latexExpression!==void 0)n.uint32(10).string(e.latexExpression);if(e.url!==void 0)n.uint32(18).string(e.url);if(e.width!==void 0)n.uint32(25).double(e.width);if(e.height!==void 0)n.uint32(33).double(e.height);if(e.fontHeight!==void 0)n.uint32(41).double(e.fontHeight);if(e.imageTopPadding!==void 0)n.uint32(49).double(e.imageTopPadding);if(e.imageLeadingPadding!==void 0)n.uint32(57).double(e.imageLeadingPadding);if(e.imageBottomPadding!==void 0)n.uint32(65).double(e.imageBottomPadding);if(e.imageTrailingPadding!==void 0)n.uint32(73).double(e.imageTrailingPadding);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=pl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.latexExpression=i.string();continue}case 2:{if(t!==18)break;a.url=i.string();continue}case 3:{if(t!==25)break;a.width=i.double();continue}case 4:{if(t!==33)break;a.height=i.double();continue}case 5:{if(t!==41)break;a.fontHeight=i.double();continue}case 6:{if(t!==49)break;a.imageTopPadding=i.double();continue}case 7:{if(t!==57)break;a.imageLeadingPadding=i.double();continue}case 8:{if(t!==65)break;a.imageBottomPadding=i.double();continue}case 9:{if(t!==73)break;a.imageTrailingPadding=i.double();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ri.fromPartial(e??{})},fromPartial(e){let n=pl();return n.latexExpression=e.latexExpression??void 0,n.url=e.url??void 0,n.width=e.width??void 0,n.height=e.height??void 0,n.fontHeight=e.fontHeight??void 0,n.imageTopPadding=e.imageTopPadding??void 0,n.imageLeadingPadding=e.imageLeadingPadding??void 0,n.imageBottomPadding=e.imageBottomPadding??void 0,n.imageTrailingPadding=e.imageTrailingPadding??void 0,n}};function gl(){return{}}var di={encode(e,n=new s){if(e.centerLatitude!==void 0)n.uint32(9).double(e.centerLatitude);if(e.centerLongitude!==void 0)n.uint32(17).double(e.centerLongitude);if(e.latitudeDelta!==void 0)n.uint32(25).double(e.latitudeDelta);if(e.longitudeDelta!==void 0)n.uint32(33).double(e.longitudeDelta);if(e.annotations!==void 0&&e.annotations.length!==0)for(let i of e.annotations)oi.encode(i,n.uint32(42).fork()).join();if(e.showInfoList!==void 0)n.uint32(48).bool(e.showInfoList);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=gl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==9)break;a.centerLatitude=i.double();continue}case 2:{if(t!==17)break;a.centerLongitude=i.double();continue}case 3:{if(t!==25)break;a.latitudeDelta=i.double();continue}case 4:{if(t!==33)break;a.longitudeDelta=i.double();continue}case 5:{if(t!==42)break;if(a.annotations===void 0)a.annotations=[];let o=oi.decode(i,i.uint32());if(o!==void 0)a.annotations.push(o);continue}case 6:{if(t!==48)break;a.showInfoList=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return di.fromPartial(e??{})},fromPartial(e){let n=gl();return n.centerLatitude=e.centerLatitude??void 0,n.centerLongitude=e.centerLongitude??void 0,n.latitudeDelta=e.latitudeDelta??void 0,n.longitudeDelta=e.longitudeDelta??void 0,n.annotations=e.annotations?.map((i)=>oi.fromPartial(i))||void 0,n.showInfoList=e.showInfoList??void 0,n}};function yl(){return{}}var oi={encode(e,n=new s){if(e.annotationNumber!==void 0)n.uint32(8).uint32(e.annotationNumber);if(e.latitude!==void 0)n.uint32(17).double(e.latitude);if(e.longitude!==void 0)n.uint32(25).double(e.longitude);if(e.title!==void 0)n.uint32(34).string(e.title);if(e.body!==void 0)n.uint32(42).string(e.body);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=yl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.annotationNumber=i.uint32();continue}case 2:{if(t!==17)break;a.latitude=i.double();continue}case 3:{if(t!==25)break;a.longitude=i.double();continue}case 4:{if(t!==34)break;a.title=i.string();continue}case 5:{if(t!==42)break;a.body=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return oi.fromPartial(e??{})},fromPartial(e){let n=yl();return n.annotationNumber=e.annotationNumber??void 0,n.latitude=e.latitude??void 0,n.longitude=e.longitude??void 0,n.title=e.title??void 0,n.body=e.body??void 0,n}};function Ml(){return{}}var si={encode(e,n=new s){if(e.messageType!==void 0)n.uint32(8).int32(e.messageType);if(e.submessages!==void 0&&e.submessages.length!==0)for(let i of e.submessages)ui.encode(i,n.uint32(18).fork()).join();if(e.unifiedResponse!==void 0)li.encode(e.unifiedResponse,n.uint32(26).fork()).join();if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ml();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.messageType=i.int32();continue}case 2:{if(t!==18)break;if(a.submessages===void 0)a.submessages=[];let o=ui.decode(i,i.uint32());if(o!==void 0)a.submessages.push(o);continue}case 3:{if(t!==26)break;a.unifiedResponse=li.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.contextInfo=b.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return si.fromPartial(e??{})},fromPartial(e){let n=Ml();return n.messageType=e.messageType??void 0,n.submessages=e.submessages?.map((i)=>ui.fromPartial(i))||void 0,n.unifiedResponse=e.unifiedResponse!==void 0&&e.unifiedResponse!==null?li.fromPartial(e.unifiedResponse):void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n}};function ml(){return{}}var ui={encode(e,n=new s){if(e.messageType!==void 0)n.uint32(8).int32(e.messageType);if(e.gridImageMetadata!==void 0)ii.encode(e.gridImageMetadata,n.uint32(18).fork()).join();if(e.messageText!==void 0)n.uint32(26).string(e.messageText);if(e.imageMetadata!==void 0)ti.encode(e.imageMetadata,n.uint32(34).fork()).join();if(e.codeMetadata!==void 0)Zn.encode(e.codeMetadata,n.uint32(42).fork()).join();if(e.tableMetadata!==void 0)ci.encode(e.tableMetadata,n.uint32(50).fork()).join();if(e.dynamicMetadata!==void 0)ni.encode(e.dynamicMetadata,n.uint32(58).fork()).join();if(e.latexMetadata!==void 0)ai.encode(e.latexMetadata,n.uint32(66).fork()).join();if(e.mapMetadata!==void 0)di.encode(e.mapMetadata,n.uint32(74).fork()).join();if(e.contentItemsMetadata!==void 0)$n.encode(e.contentItemsMetadata,n.uint32(82).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ml();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.messageType=i.int32();continue}case 2:{if(t!==18)break;a.gridImageMetadata=ii.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.messageText=i.string();continue}case 4:{if(t!==34)break;a.imageMetadata=ti.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.codeMetadata=Zn.decode(i,i.uint32());continue}case 6:{if(t!==50)break;a.tableMetadata=ci.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.dynamicMetadata=ni.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.latexMetadata=ai.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.mapMetadata=di.decode(i,i.uint32());continue}case 10:{if(t!==82)break;a.contentItemsMetadata=$n.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ui.fromPartial(e??{})},fromPartial(e){let n=ml();return n.messageType=e.messageType??void 0,n.gridImageMetadata=e.gridImageMetadata!==void 0&&e.gridImageMetadata!==null?ii.fromPartial(e.gridImageMetadata):void 0,n.messageText=e.messageText??void 0,n.imageMetadata=e.imageMetadata!==void 0&&e.imageMetadata!==null?ti.fromPartial(e.imageMetadata):void 0,n.codeMetadata=e.codeMetadata!==void 0&&e.codeMetadata!==null?Zn.fromPartial(e.codeMetadata):void 0,n.tableMetadata=e.tableMetadata!==void 0&&e.tableMetadata!==null?ci.fromPartial(e.tableMetadata):void 0,n.dynamicMetadata=e.dynamicMetadata!==void 0&&e.dynamicMetadata!==null?ni.fromPartial(e.dynamicMetadata):void 0,n.latexMetadata=e.latexMetadata!==void 0&&e.latexMetadata!==null?ai.fromPartial(e.latexMetadata):void 0,n.mapMetadata=e.mapMetadata!==void 0&&e.mapMetadata!==null?di.fromPartial(e.mapMetadata):void 0,n.contentItemsMetadata=e.contentItemsMetadata!==void 0&&e.contentItemsMetadata!==null?$n.fromPartial(e.contentItemsMetadata):void 0,n}};function _l(){return{}}var ci={encode(e,n=new s){if(e.rows!==void 0&&e.rows.length!==0)for(let i of e.rows)fi.encode(i,n.uint32(10).fork()).join();if(e.title!==void 0)n.uint32(18).string(e.title);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=_l();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.rows===void 0)a.rows=[];let o=fi.decode(i,i.uint32());if(o!==void 0)a.rows.push(o);continue}case 2:{if(t!==18)break;a.title=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ci.fromPartial(e??{})},fromPartial(e){let n=_l();return n.rows=e.rows?.map((i)=>fi.fromPartial(i))||void 0,n.title=e.title??void 0,n}};function hl(){return{}}var fi={encode(e,n=new s){if(e.items!==void 0&&e.items.length!==0)for(let i of e.items)n.uint32(10).string(i);if(e.isHeading!==void 0)n.uint32(16).bool(e.isHeading);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=hl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.items===void 0)a.items=[];let o=i.string();if(o!==void 0)a.items.push(o);continue}case 2:{if(t!==16)break;a.isHeading=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return fi.fromPartial(e??{})},fromPartial(e){let n=hl();return n.items=e.items?.map((i)=>i)||void 0,n.isHeading=e.isHeading??void 0,n}};function kl(){return{}}var li={encode(e,n=new s){if(e.data!==void 0)n.uint32(10).bytes(e.data);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=kl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.data=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return li.fromPartial(e??{})},fromPartial(e){let n=kl();return n.data=e.data??void 0,n}};function Al(){return{}}var pi={encode(e,n=new s){if(e.requestType!==void 0)n.uint32(8).int32(e.requestType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Al();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.requestType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return pi.fromPartial(e??{})},fromPartial(e){let n=Al();return n.requestType=e.requestType??void 0,n}};function Sl(){return{}}var gi={encode(e,n=new s){if(e.serverInfo!==void 0)Mi.encode(e.serverInfo,n.uint32(10).fork()).join();if(e.clientInfo!==void 0)yi.encode(e.clientInfo,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Sl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.serverInfo=Mi.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.clientInfo=yi.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return gi.fromPartial(e??{})},fromPartial(e){let n=Sl();return n.serverInfo=e.serverInfo!==void 0&&e.serverInfo!==null?Mi.fromPartial(e.serverInfo):void 0,n.clientInfo=e.clientInfo!==void 0&&e.clientInfo!==null?yi.fromPartial(e.clientInfo):void 0,n}};function Pl(){return{}}var yi={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).int32(e.type);if(e.sourceChatJid!==void 0)n.uint32(18).string(e.sourceChatJid);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Pl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.int32();continue}case 2:{if(t!==18)break;a.sourceChatJid=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return yi.fromPartial(e??{})},fromPartial(e){let n=Pl();return n.type=e.type??void 0,n.sourceChatJid=e.sourceChatJid??void 0,n}};function bl(){return{}}var Mi={encode(e,n=new s){if(e.title!==void 0)n.uint32(10).string(e.title);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=bl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.title=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Mi.fromPartial(e??{})},fromPartial(e){let n=bl();return n.title=e.title??void 0,n}};function Il(){return{}}var mi={encode(e,n=new s){if(e.lid!==void 0)n.uint32(10).string(e.lid);if(e.username!==void 0)n.uint32(18).string(e.username);if(e.countryCode!==void 0)n.uint32(26).string(e.countryCode);if(e.isUsernameDeleted!==void 0)n.uint32(32).bool(e.isUsernameDeleted);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Il();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.lid=i.string();continue}case 2:{if(t!==18)break;a.username=i.string();continue}case 3:{if(t!==26)break;a.countryCode=i.string();continue}case 4:{if(t!==32)break;a.isUsernameDeleted=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return mi.fromPartial(e??{})},fromPartial(e){let n=Il();return n.lid=e.lid??void 0,n.username=e.username??void 0,n.countryCode=e.countryCode??void 0,n.isUsernameDeleted=e.isUsernameDeleted??void 0,n}};function Rl(){return{}}var AI={encode(e,n=new s){if(e.accesstoken!==void 0)n.uint32(10).string(e.accesstoken);if(e.fbid!==void 0)n.uint32(18).string(e.fbid);if(e.nonce!==void 0)n.uint32(26).string(e.nonce);if(e.encryptedPassword!==void 0)n.uint32(34).string(e.encryptedPassword);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Rl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.accesstoken=i.string();continue}case 2:{if(t!==18)break;a.fbid=i.string();continue}case 3:{if(t!==26)break;a.nonce=i.string();continue}case 4:{if(t!==34)break;a.encryptedPassword=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return AI.fromPartial(e??{})},fromPartial(e){let n=Rl();return n.accesstoken=e.accesstoken??void 0,n.fbid=e.fbid??void 0,n.nonce=e.nonce??void 0,n.encryptedPassword=e.encryptedPassword??void 0,n}};function Dl(){return{}}var _i={encode(e,n=new s){if(e.url!==void 0)n.uint32(10).string(e.url);if(e.buttonTitle!==void 0)n.uint32(18).string(e.buttonTitle);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Dl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.url=i.string();continue}case 2:{if(t!==18)break;a.buttonTitle=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return _i.fromPartial(e??{})},fromPartial(e){let n=Dl();return n.url=e.url??void 0,n.buttonTitle=e.buttonTitle??void 0,n}};function El(){return{}}var se={encode(e,n=new s){if(e.downloadImages!==void 0)n.uint32(8).bool(e.downloadImages);if(e.downloadAudio!==void 0)n.uint32(16).bool(e.downloadAudio);if(e.downloadVideo!==void 0)n.uint32(24).bool(e.downloadVideo);if(e.downloadDocuments!==void 0)n.uint32(32).bool(e.downloadDocuments);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=El();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.downloadImages=i.bool();continue}case 2:{if(t!==16)break;a.downloadAudio=i.bool();continue}case 3:{if(t!==24)break;a.downloadVideo=i.bool();continue}case 4:{if(t!==32)break;a.downloadDocuments=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return se.fromPartial(e??{})},fromPartial(e){let n=El();return n.downloadImages=e.downloadImages??void 0,n.downloadAudio=e.downloadAudio??void 0,n.downloadVideo=e.downloadVideo??void 0,n.downloadDocuments=e.downloadDocuments??void 0,n}};function Bl(){return{}}var hi={encode(e,n=new s){if(e.fbid!==void 0)n.uint32(10).string(e.fbid);if(e.password!==void 0)n.uint32(18).string(e.password);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Bl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.fbid=i.string();continue}case 2:{if(t!==18)break;a.password=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return hi.fromPartial(e??{})},fromPartial(e){let n=Bl();return n.fbid=e.fbid??void 0,n.password=e.password??void 0,n}};function Cl(){return{}}var SI={encode(e,n=new s){if(e.whatsappBizAcctFbid!==void 0)n.uint32(8).uint64(e.whatsappBizAcctFbid);if(e.whatsappAcctNumber!==void 0)n.uint32(18).string(e.whatsappAcctNumber);if(e.issueTime!==void 0)n.uint32(24).uint64(e.issueTime);if(e.hostStorage!==void 0)n.uint32(32).int32(e.hostStorage);if(e.accountType!==void 0)n.uint32(40).int32(e.accountType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Cl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.whatsappBizAcctFbid=i.uint64Number();continue}case 2:{if(t!==18)break;a.whatsappAcctNumber=i.string();continue}case 3:{if(t!==24)break;a.issueTime=i.uint64Number();continue}case 4:{if(t!==32)break;a.hostStorage=i.int32();continue}case 5:{if(t!==40)break;a.accountType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return SI.fromPartial(e??{})},fromPartial(e){let n=Cl();return n.whatsappBizAcctFbid=e.whatsappBizAcctFbid??void 0,n.whatsappAcctNumber=e.whatsappAcctNumber??void 0,n.issueTime=e.issueTime??void 0,n.hostStorage=e.hostStorage??void 0,n.accountType=e.accountType??void 0,n}};function vl(){return{}}var PI={encode(e,n=new s){if(e.vnameCert!==void 0)xe.encode(e.vnameCert,n.uint32(10).fork()).join();if(e.bizAcctLinkInfo!==void 0)n.uint32(18).bytes(e.bizAcctLinkInfo);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=vl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.vnameCert=xe.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.bizAcctLinkInfo=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return PI.fromPartial(e??{})},fromPartial(e){let n=vl();return n.vnameCert=e.vnameCert!==void 0&&e.vnameCert!==null?xe.fromPartial(e.vnameCert):void 0,n.bizAcctLinkInfo=e.bizAcctLinkInfo??void 0,n}};function xl(){return{}}var bI={encode(e,n=new s){if(e.vlevel!==void 0)n.uint32(8).int32(e.vlevel);if(e.vnameCert!==void 0)xe.encode(e.vnameCert,n.uint32(18).fork()).join();if(e.signed!==void 0)n.uint32(24).bool(e.signed);if(e.revoked!==void 0)n.uint32(32).bool(e.revoked);if(e.hostStorage!==void 0)n.uint32(40).int32(e.hostStorage);if(e.actualActors!==void 0)n.uint32(48).int32(e.actualActors);if(e.privacyModeTs!==void 0)n.uint32(56).uint64(e.privacyModeTs);if(e.featureControls!==void 0)n.uint32(64).uint64(e.featureControls);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=xl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.vlevel=i.int32();continue}case 2:{if(t!==18)break;a.vnameCert=xe.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.signed=i.bool();continue}case 4:{if(t!==32)break;a.revoked=i.bool();continue}case 5:{if(t!==40)break;a.hostStorage=i.int32();continue}case 6:{if(t!==48)break;a.actualActors=i.int32();continue}case 7:{if(t!==56)break;a.privacyModeTs=i.uint64Number();continue}case 8:{if(t!==64)break;a.featureControls=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return bI.fromPartial(e??{})},fromPartial(e){let n=xl();return n.vlevel=e.vlevel??void 0,n.vnameCert=e.vnameCert!==void 0&&e.vnameCert!==null?xe.fromPartial(e.vnameCert):void 0,n.signed=e.signed??void 0,n.revoked=e.revoked??void 0,n.hostStorage=e.hostStorage??void 0,n.actualActors=e.actualActors??void 0,n.privacyModeTs=e.privacyModeTs??void 0,n.featureControls=e.featureControls??void 0,n}};function Nl(){return{}}var ki={encode(e,n=new s){if(e.ageCollectionEligible!==void 0)n.uint32(8).bool(e.ageCollectionEligible);if(e.shouldTriggerAgeCollectionOnClient!==void 0)n.uint32(16).bool(e.shouldTriggerAgeCollectionOnClient);if(e.ageCollectionType!==void 0)n.uint32(24).int32(e.ageCollectionType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Nl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.ageCollectionEligible=i.bool();continue}case 2:{if(t!==16)break;a.shouldTriggerAgeCollectionOnClient=i.bool();continue}case 3:{if(t!==24)break;a.ageCollectionType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ki.fromPartial(e??{})},fromPartial(e){let n=Nl();return n.ageCollectionEligible=e.ageCollectionEligible??void 0,n.shouldTriggerAgeCollectionOnClient=e.shouldTriggerAgeCollectionOnClient??void 0,n.ageCollectionType=e.ageCollectionType??void 0,n}};function Ol(){return{}}var Ai={encode(e,n=new s){if(e.token!==void 0)n.uint32(10).string(e.token);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ol();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.token=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ai.fromPartial(e??{})},fromPartial(e){let n=Ol();return n.token=e.token??void 0,n}};function Ul(){return{}}var Si={encode(e,n=new s){if(e.deepLinkMetadata!==void 0)Ai.encode(e.deepLinkMetadata,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ul();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.deepLinkMetadata=Ai.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Si.fromPartial(e??{})},fromPartial(e){let n=Ul();return n.deepLinkMetadata=e.deepLinkMetadata!==void 0&&e.deepLinkMetadata!==null?Ai.fromPartial(e.deepLinkMetadata):void 0,n}};function Tl(){return{}}var Pi={encode(e,n=new s){if(e.capabilities!==void 0&&e.capabilities.length!==0)for(let i of e.capabilities)n.uint32(8).int32(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Tl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t===8){if(a.capabilities===void 0)a.capabilities=[];a.capabilities.push(i.int32());continue}if(t===10){if(a.capabilities===void 0)a.capabilities=[];let o=i.uint32()+i.pos;while(i.pos<o)a.capabilities.push(i.int32());continue}break}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Pi.fromPartial(e??{})},fromPartial(e){let n=Tl();return n.capabilities=e.capabilities?.map((i)=>i)||void 0,n}};function Ll(){return{}}var bi={encode(e,n=new s){if(e.commandName!==void 0)n.uint32(10).string(e.commandName);if(e.commandDescription!==void 0)n.uint32(18).string(e.commandDescription);if(e.commandPrompt!==void 0)n.uint32(26).string(e.commandPrompt);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ll();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.commandName=i.string();continue}case 2:{if(t!==18)break;a.commandDescription=i.string();continue}case 3:{if(t!==26)break;a.commandPrompt=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return bi.fromPartial(e??{})},fromPartial(e){let n=Ll();return n.commandName=e.commandName??void 0,n.commandDescription=e.commandDescription??void 0,n.commandPrompt=e.commandPrompt??void 0,n}};function wl(){return{}}var Ii={encode(e,n=new s){if(e.pluginType!==void 0)n.uint32(8).int32(e.pluginType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=wl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.pluginType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ii.fromPartial(e??{})},fromPartial(e){let n=wl();return n.pluginType=e.pluginType??void 0,n}};function Fl(){return{}}var Ri={encode(e,n=new s){if(e.messageKey!==void 0)_.encode(e.messageKey,n.uint32(10).fork()).join();if(e.kind!==void 0)n.uint32(16).int32(e.kind);if(e.text!==void 0)n.uint32(26).string(e.text);if(e.kindNegative!==void 0)n.uint32(32).uint64(e.kindNegative);if(e.kindPositive!==void 0)n.uint32(40).uint64(e.kindPositive);if(e.kindReport!==void 0)n.uint32(48).int32(e.kindReport);if(e.sideBySideSurveyMetadata!==void 0)Di.encode(e.sideBySideSurveyMetadata,n.uint32(58).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Fl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.messageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.kind=i.int32();continue}case 3:{if(t!==26)break;a.text=i.string();continue}case 4:{if(t!==32)break;a.kindNegative=i.uint64Number();continue}case 5:{if(t!==40)break;a.kindPositive=i.uint64Number();continue}case 6:{if(t!==48)break;a.kindReport=i.int32();continue}case 7:{if(t!==58)break;a.sideBySideSurveyMetadata=Di.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ri.fromPartial(e??{})},fromPartial(e){let n=Fl();return n.messageKey=e.messageKey!==void 0&&e.messageKey!==null?_.fromPartial(e.messageKey):void 0,n.kind=e.kind??void 0,n.text=e.text??void 0,n.kindNegative=e.kindNegative??void 0,n.kindPositive=e.kindPositive??void 0,n.kindReport=e.kindReport??void 0,n.sideBySideSurveyMetadata=e.sideBySideSurveyMetadata!==void 0&&e.sideBySideSurveyMetadata!==null?Di.fromPartial(e.sideBySideSurveyMetadata):void 0,n}};function Vl(){return{}}var Di={encode(e,n=new s){if(e.selectedRequestId!==void 0)n.uint32(10).string(e.selectedRequestId);if(e.surveyId!==void 0)n.uint32(16).uint32(e.surveyId);if(e.simonSessionFbid!==void 0)n.uint32(26).string(e.simonSessionFbid);if(e.responseOtid!==void 0)n.uint32(34).string(e.responseOtid);if(e.responseTimestampMsString!==void 0)n.uint32(42).string(e.responseTimestampMsString);if(e.isSelectedResponsePrimary!==void 0)n.uint32(48).bool(e.isSelectedResponsePrimary);if(e.messageIdToEdit!==void 0)n.uint32(58).string(e.messageIdToEdit);if(e.analyticsData!==void 0)Ei.encode(e.analyticsData,n.uint32(66).fork()).join();if(e.metaAiAnalyticsData!==void 0)Bi.encode(e.metaAiAnalyticsData,n.uint32(74).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Vl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.selectedRequestId=i.string();continue}case 2:{if(t!==16)break;a.surveyId=i.uint32();continue}case 3:{if(t!==26)break;a.simonSessionFbid=i.string();continue}case 4:{if(t!==34)break;a.responseOtid=i.string();continue}case 5:{if(t!==42)break;a.responseTimestampMsString=i.string();continue}case 6:{if(t!==48)break;a.isSelectedResponsePrimary=i.bool();continue}case 7:{if(t!==58)break;a.messageIdToEdit=i.string();continue}case 8:{if(t!==66)break;a.analyticsData=Ei.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.metaAiAnalyticsData=Bi.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Di.fromPartial(e??{})},fromPartial(e){let n=Vl();return n.selectedRequestId=e.selectedRequestId??void 0,n.surveyId=e.surveyId??void 0,n.simonSessionFbid=e.simonSessionFbid??void 0,n.responseOtid=e.responseOtid??void 0,n.responseTimestampMsString=e.responseTimestampMsString??void 0,n.isSelectedResponsePrimary=e.isSelectedResponsePrimary??void 0,n.messageIdToEdit=e.messageIdToEdit??void 0,n.analyticsData=e.analyticsData!==void 0&&e.analyticsData!==null?Ei.fromPartial(e.analyticsData):void 0,n.metaAiAnalyticsData=e.metaAiAnalyticsData!==void 0&&e.metaAiAnalyticsData!==null?Bi.fromPartial(e.metaAiAnalyticsData):void 0,n}};function Kl(){return{}}var Ei={encode(e,n=new s){if(e.tessaEvent!==void 0)n.uint32(10).string(e.tessaEvent);if(e.tessaSessionFbid!==void 0)n.uint32(18).string(e.tessaSessionFbid);if(e.simonSessionFbid!==void 0)n.uint32(26).string(e.simonSessionFbid);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Kl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.tessaEvent=i.string();continue}case 2:{if(t!==18)break;a.tessaSessionFbid=i.string();continue}case 3:{if(t!==26)break;a.simonSessionFbid=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ei.fromPartial(e??{})},fromPartial(e){let n=Kl();return n.tessaEvent=e.tessaEvent??void 0,n.tessaSessionFbid=e.tessaSessionFbid??void 0,n.simonSessionFbid=e.simonSessionFbid??void 0,n}};function Wl(){return{}}var Bi={encode(e,n=new s){if(e.surveyId!==void 0)n.uint32(8).uint32(e.surveyId);if(e.primaryResponseId!==void 0)n.uint32(18).string(e.primaryResponseId);if(e.testArmName!==void 0)n.uint32(26).string(e.testArmName);if(e.timestampMsString!==void 0)n.uint32(34).string(e.timestampMsString);if(e.ctaImpressionEvent!==void 0)xi.encode(e.ctaImpressionEvent,n.uint32(42).fork()).join();if(e.ctaClickEvent!==void 0)vi.encode(e.ctaClickEvent,n.uint32(50).fork()).join();if(e.cardImpressionEvent!==void 0)Ni.encode(e.cardImpressionEvent,n.uint32(58).fork()).join();if(e.responseEvent!==void 0)Oi.encode(e.responseEvent,n.uint32(66).fork()).join();if(e.abandonEvent!==void 0)Ci.encode(e.abandonEvent,n.uint32(74).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Wl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.surveyId=i.uint32();continue}case 2:{if(t!==18)break;a.primaryResponseId=i.string();continue}case 3:{if(t!==26)break;a.testArmName=i.string();continue}case 4:{if(t!==34)break;a.timestampMsString=i.string();continue}case 5:{if(t!==42)break;a.ctaImpressionEvent=xi.decode(i,i.uint32());continue}case 6:{if(t!==50)break;a.ctaClickEvent=vi.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.cardImpressionEvent=Ni.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.responseEvent=Oi.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.abandonEvent=Ci.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Bi.fromPartial(e??{})},fromPartial(e){let n=Wl();return n.surveyId=e.surveyId??void 0,n.primaryResponseId=e.primaryResponseId??void 0,n.testArmName=e.testArmName??void 0,n.timestampMsString=e.timestampMsString??void 0,n.ctaImpressionEvent=e.ctaImpressionEvent!==void 0&&e.ctaImpressionEvent!==null?xi.fromPartial(e.ctaImpressionEvent):void 0,n.ctaClickEvent=e.ctaClickEvent!==void 0&&e.ctaClickEvent!==null?vi.fromPartial(e.ctaClickEvent):void 0,n.cardImpressionEvent=e.cardImpressionEvent!==void 0&&e.cardImpressionEvent!==null?Ni.fromPartial(e.cardImpressionEvent):void 0,n.responseEvent=e.responseEvent!==void 0&&e.responseEvent!==null?Oi.fromPartial(e.responseEvent):void 0,n.abandonEvent=e.abandonEvent!==void 0&&e.abandonEvent!==null?Ci.fromPartial(e.abandonEvent):void 0,n}};function Hl(){return{}}var Ci={encode(e,n=new s){if(e.abandonDwellTimeMsString!==void 0)n.uint32(10).string(e.abandonDwellTimeMsString);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Hl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.abandonDwellTimeMsString=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ci.fromPartial(e??{})},fromPartial(e){let n=Hl();return n.abandonDwellTimeMsString=e.abandonDwellTimeMsString??void 0,n}};function ql(){return{}}var vi={encode(e,n=new s){if(e.isSurveyExpired!==void 0)n.uint32(8).bool(e.isSurveyExpired);if(e.clickDwellTimeMsString!==void 0)n.uint32(18).string(e.clickDwellTimeMsString);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ql();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isSurveyExpired=i.bool();continue}case 2:{if(t!==18)break;a.clickDwellTimeMsString=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return vi.fromPartial(e??{})},fromPartial(e){let n=ql();return n.isSurveyExpired=e.isSurveyExpired??void 0,n.clickDwellTimeMsString=e.clickDwellTimeMsString??void 0,n}};function Gl(){return{}}var xi={encode(e,n=new s){if(e.isSurveyExpired!==void 0)n.uint32(8).bool(e.isSurveyExpired);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Gl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isSurveyExpired=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return xi.fromPartial(e??{})},fromPartial(e){let n=Gl();return n.isSurveyExpired=e.isSurveyExpired??void 0,n}};function Jl(){return{}}var Ni={encode(e,n=new s){return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Jl();while(i.pos<r){let t=i.uint32();switch(t>>>3){}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ni.fromPartial(e??{})},fromPartial(e){return Jl()}};function Ql(){return{}}var Oi={encode(e,n=new s){if(e.responseDwellTimeMsString!==void 0)n.uint32(10).string(e.responseDwellTimeMsString);if(e.selectedResponseId!==void 0)n.uint32(18).string(e.selectedResponseId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ql();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.responseDwellTimeMsString=i.string();continue}case 2:{if(t!==18)break;a.selectedResponseId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Oi.fromPartial(e??{})},fromPartial(e){let n=Ql();return n.responseDwellTimeMsString=e.responseDwellTimeMsString??void 0,n.selectedResponseId=e.selectedResponseId??void 0,n}};function zl(){return{}}var Ui={encode(e,n=new s){if(e.participantsMetadata!==void 0&&e.participantsMetadata.length!==0)for(let i of e.participantsMetadata)Ti.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=zl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.participantsMetadata===void 0)a.participantsMetadata=[];let o=Ti.decode(i,i.uint32());if(o!==void 0)a.participantsMetadata.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ui.fromPartial(e??{})},fromPartial(e){let n=zl();return n.participantsMetadata=e.participantsMetadata?.map((i)=>Ti.fromPartial(i))||void 0,n}};function Yl(){return{}}var Ti={encode(e,n=new s){if(e.botFbid!==void 0)n.uint32(10).string(e.botFbid);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Yl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.botFbid=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ti.fromPartial(e??{})},fromPartial(e){let n=Yl();return n.botFbid=e.botFbid??void 0,n}};function Zl(){return{}}var Li={encode(e,n=new s){if(e.imagineType!==void 0)n.uint32(8).int32(e.imagineType);if(e.shortPrompt!==void 0)n.uint32(18).string(e.shortPrompt);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Zl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.imagineType=i.int32();continue}case 2:{if(t!==18)break;a.shortPrompt=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Li.fromPartial(e??{})},fromPartial(e){let n=Zl();return n.imagineType=e.imagineType??void 0,n.shortPrompt=e.shortPrompt??void 0,n}};function Xl(){return{}}var wi={encode(e,n=new s){if(e.botBackend!==void 0)n.uint32(8).int32(e.botBackend);if(e.toolsUsed!==void 0&&e.toolsUsed.length!==0)for(let i of e.toolsUsed)n.uint32(18).string(i);if(e.isThinking!==void 0)n.uint32(24).bool(e.isThinking);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Xl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.botBackend=i.int32();continue}case 2:{if(t!==18)break;if(a.toolsUsed===void 0)a.toolsUsed=[];let o=i.string();if(o!==void 0)a.toolsUsed.push(o);continue}case 3:{if(t!==24)break;a.isThinking=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return wi.fromPartial(e??{})},fromPartial(e){let n=Xl();return n.botBackend=e.botBackend??void 0,n.toolsUsed=e.toolsUsed?.map((i)=>i)||void 0,n.isThinking=e.isThinking??void 0,n}};function $l(){return{}}var Fi={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).int32(e.type);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=$l();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Fi.fromPartial(e??{})},fromPartial(e){let n=$l();return n.type=e.type??void 0,n}};function jl(){return{}}var Vi={encode(e,n=new s){if(e.accounts!==void 0&&e.accounts.length!==0)for(let i of e.accounts)Fi.encode(i,n.uint32(10).fork()).join();if(e.acAuthTokens!==void 0)n.uint32(18).bytes(e.acAuthTokens);if(e.acErrorCode!==void 0)n.uint32(24).int32(e.acErrorCode);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=jl();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.accounts===void 0)a.accounts=[];let o=Fi.decode(i,i.uint32());if(o!==void 0)a.accounts.push(o);continue}case 2:{if(t!==18)break;a.acAuthTokens=i.bytes();continue}case 3:{if(t!==24)break;a.acErrorCode=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Vi.fromPartial(e??{})},fromPartial(e){let n=jl();return n.accounts=e.accounts?.map((i)=>Fi.fromPartial(i))||void 0,n.acAuthTokens=e.acAuthTokens??void 0,n.acErrorCode=e.acErrorCode??void 0,n}};function ep(){return{}}var ce={encode(e,n=new s){if(e.fileSha256!==void 0)n.uint32(10).string(e.fileSha256);if(e.mediaKey!==void 0)n.uint32(18).string(e.mediaKey);if(e.fileEncSha256!==void 0)n.uint32(26).string(e.fileEncSha256);if(e.directPath!==void 0)n.uint32(34).string(e.directPath);if(e.mediaKeyTimestamp!==void 0)n.uint32(40).int64(e.mediaKeyTimestamp);if(e.mimetype!==void 0)n.uint32(50).string(e.mimetype);if(e.orientationType!==void 0)n.uint32(56).int32(e.orientationType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ep();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.fileSha256=i.string();continue}case 2:{if(t!==18)break;a.mediaKey=i.string();continue}case 3:{if(t!==26)break;a.fileEncSha256=i.string();continue}case 4:{if(t!==34)break;a.directPath=i.string();continue}case 5:{if(t!==40)break;a.mediaKeyTimestamp=i.int64Number();continue}case 6:{if(t!==50)break;a.mimetype=i.string();continue}case 7:{if(t!==56)break;a.orientationType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ce.fromPartial(e??{})},fromPartial(e){let n=ep();return n.fileSha256=e.fileSha256??void 0,n.mediaKey=e.mediaKey??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.directPath=e.directPath??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.mimetype=e.mimetype??void 0,n.orientationType=e.orientationType??void 0,n}};function np(){return{}}var Le={encode(e,n=new s){if(e.fact!==void 0)n.uint32(10).string(e.fact);if(e.factId!==void 0)n.uint32(18).string(e.factId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=np();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.fact=i.string();continue}case 2:{if(t!==18)break;a.factId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Le.fromPartial(e??{})},fromPartial(e){let n=np();return n.fact=e.fact??void 0,n.factId=e.factId??void 0,n}};function ip(){return{}}var Ki={encode(e,n=new s){if(e.addedFacts!==void 0&&e.addedFacts.length!==0)for(let i of e.addedFacts)Le.encode(i,n.uint32(10).fork()).join();if(e.removedFacts!==void 0&&e.removedFacts.length!==0)for(let i of e.removedFacts)Le.encode(i,n.uint32(18).fork()).join();if(e.disclaimer!==void 0)n.uint32(26).string(e.disclaimer);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ip();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.addedFacts===void 0)a.addedFacts=[];let o=Le.decode(i,i.uint32());if(o!==void 0)a.addedFacts.push(o);continue}case 2:{if(t!==18)break;if(a.removedFacts===void 0)a.removedFacts=[];let o=Le.decode(i,i.uint32());if(o!==void 0)a.removedFacts.push(o);continue}case 3:{if(t!==26)break;a.disclaimer=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ki.fromPartial(e??{})},fromPartial(e){let n=ip();return n.addedFacts=e.addedFacts?.map((i)=>Le.fromPartial(i))||void 0,n.removedFacts=e.removedFacts?.map((i)=>Le.fromPartial(i))||void 0,n.disclaimer=e.disclaimer??void 0,n}};function tp(){return{}}var Wi={encode(e,n=new s){if(e.faceImages!==void 0&&e.faceImages.length!==0)for(let i of e.faceImages)ce.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=tp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.faceImages===void 0)a.faceImages=[];let o=ce.decode(i,i.uint32());if(o!==void 0)a.faceImages.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Wi.fromPartial(e??{})},fromPartial(e){let n=tp();return n.faceImages=e.faceImages?.map((i)=>ce.fromPartial(i))||void 0,n}};function ap(){return{}}var Hi={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).int32(e.type);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ap();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Hi.fromPartial(e??{})},fromPartial(e){let n=ap();return n.type=e.type??void 0,n}};function rp(){return{}}var qi={encode(e,n=new s){if(e.origins!==void 0&&e.origins.length!==0)for(let i of e.origins)Hi.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=rp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.origins===void 0)a.origins=[];let o=Hi.decode(i,i.uint32());if(o!==void 0)a.origins.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return qi.fromPartial(e??{})},fromPartial(e){let n=rp();return n.origins=e.origins?.map((i)=>Hi.fromPartial(i))||void 0,n}};function dp(){return{}}var Gi={encode(e,n=new s){if(e.botEntryPointOrigin!==void 0)n.uint32(8).int32(e.botEntryPointOrigin);if(e.forwardScore!==void 0)n.uint32(16).uint32(e.forwardScore);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=dp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.botEntryPointOrigin=i.int32();continue}case 2:{if(t!==16)break;a.forwardScore=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Gi.fromPartial(e??{})},fromPartial(e){let n=dp();return n.botEntryPointOrigin=e.botEntryPointOrigin??void 0,n.forwardScore=e.forwardScore??void 0,n}};function op(){return{}}var Ji={encode(e,n=new s){if(e.personaId!==void 0)n.uint32(18).string(e.personaId);if(e.pluginMetadata!==void 0)Zi.encode(e.pluginMetadata,n.uint32(26).fork()).join();if(e.suggestedPromptMetadata!==void 0)mt.encode(e.suggestedPromptMetadata,n.uint32(34).fork()).join();if(e.invokerJid!==void 0)n.uint32(42).string(e.invokerJid);if(e.sessionMetadata!==void 0)pt.encode(e.sessionMetadata,n.uint32(50).fork()).join();if(e.memuMetadata!==void 0)Wi.encode(e.memuMetadata,n.uint32(58).fork()).join();if(e.timezone!==void 0)n.uint32(66).string(e.timezone);if(e.reminderMetadata!==void 0)st.encode(e.reminderMetadata,n.uint32(74).fork()).join();if(e.modelMetadata!==void 0)Yi.encode(e.modelMetadata,n.uint32(82).fork()).join();if(e.messageDisclaimerText!==void 0)n.uint32(90).string(e.messageDisclaimerText);if(e.progressIndicatorMetadata!==void 0)Xi.encode(e.progressIndicatorMetadata,n.uint32(98).fork()).join();if(e.capabilityMetadata!==void 0)Pi.encode(e.capabilityMetadata,n.uint32(106).fork()).join();if(e.imagineMetadata!==void 0)Li.encode(e.imagineMetadata,n.uint32(114).fork()).join();if(e.memoryMetadata!==void 0)Ki.encode(e.memoryMetadata,n.uint32(122).fork()).join();if(e.renderingMetadata!==void 0)ct.encode(e.renderingMetadata,n.uint32(130).fork()).join();if(e.botMetricsMetadata!==void 0)Qi.encode(e.botMetricsMetadata,n.uint32(138).fork()).join();if(e.botLinkedAccountsMetadata!==void 0)Vi.encode(e.botLinkedAccountsMetadata,n.uint32(146).fork()).join();if(e.richResponseSourcesMetadata!==void 0)yt.encode(e.richResponseSourcesMetadata,n.uint32(154).fork()).join();if(e.aiConversationContext!==void 0)n.uint32(162).bytes(e.aiConversationContext);if(e.botPromotionMessageMetadata!==void 0)it.encode(e.botPromotionMessageMetadata,n.uint32(170).fork()).join();if(e.botModeSelectionMetadata!==void 0)zi.encode(e.botModeSelectionMetadata,n.uint32(178).fork()).join();if(e.botQuotaMetadata!==void 0)dt.encode(e.botQuotaMetadata,n.uint32(186).fork()).join();if(e.botAgeCollectionMetadata!==void 0)ki.encode(e.botAgeCollectionMetadata,n.uint32(194).fork()).join();if(e.conversationStarterPromptId!==void 0)n.uint32(202).string(e.conversationStarterPromptId);if(e.botResponseId!==void 0)n.uint32(210).string(e.botResponseId);if(e.verificationMetadata!==void 0)Ze.encode(e.verificationMetadata,n.uint32(218).fork()).join();if(e.unifiedResponseMutation!==void 0)_t.encode(e.unifiedResponseMutation,n.uint32(226).fork()).join();if(e.botMessageOriginMetadata!==void 0)qi.encode(e.botMessageOriginMetadata,n.uint32(234).fork()).join();if(e.inThreadSurveyMetadata!==void 0)za.encode(e.inThreadSurveyMetadata,n.uint32(242).fork()).join();if(e.botThreadInfo!==void 0)gi.encode(e.botThreadInfo,n.uint32(250).fork()).join();if(e.regenerateMetadata!==void 0)Yn.encode(e.regenerateMetadata,n.uint32(258).fork()).join();if(e.sessionTransparencyMetadata!==void 0)bs.encode(e.sessionTransparencyMetadata,n.uint32(266).fork()).join();if(e.botDocumentMessageMetadata!==void 0)Ii.encode(e.botDocumentMessageMetadata,n.uint32(274).fork()).join();if(e.botGroupMetadata!==void 0)Ui.encode(e.botGroupMetadata,n.uint32(282).fork()).join();if(e.botRenderingConfigMetadata!==void 0)ut.encode(e.botRenderingConfigMetadata,n.uint32(290).fork()).join();if(e.botInfrastructureDiagnostics!==void 0)wi.encode(e.botInfrastructureDiagnostics,n.uint32(298).fork()).join();if(e.aiMediaCollectionMetadata!==void 0)Jn.encode(e.aiMediaCollectionMetadata,n.uint32(306).fork()).join();if(e.commandMetadata!==void 0)bi.encode(e.commandMetadata,n.uint32(314).fork()).join();if(e.resolvedToolCallMetadata!==void 0)lt.encode(e.resolvedToolCallMetadata,n.uint32(322).fork()).join();if(e.subscriptionUpsellMetadata!==void 0)pi.encode(e.subscriptionUpsellMetadata,n.uint32(330).fork()).join();if(e.pttPromptMetadata!==void 0)rt.encode(e.pttPromptMetadata,n.uint32(338).fork()).join();if(e.internalMetadata!==void 0)n.uint32(7994).bytes(e.internalMetadata);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=op();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 2:{if(t!==18)break;a.personaId=i.string();continue}case 3:{if(t!==26)break;a.pluginMetadata=Zi.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.suggestedPromptMetadata=mt.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.invokerJid=i.string();continue}case 6:{if(t!==50)break;a.sessionMetadata=pt.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.memuMetadata=Wi.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.timezone=i.string();continue}case 9:{if(t!==74)break;a.reminderMetadata=st.decode(i,i.uint32());continue}case 10:{if(t!==82)break;a.modelMetadata=Yi.decode(i,i.uint32());continue}case 11:{if(t!==90)break;a.messageDisclaimerText=i.string();continue}case 12:{if(t!==98)break;a.progressIndicatorMetadata=Xi.decode(i,i.uint32());continue}case 13:{if(t!==106)break;a.capabilityMetadata=Pi.decode(i,i.uint32());continue}case 14:{if(t!==114)break;a.imagineMetadata=Li.decode(i,i.uint32());continue}case 15:{if(t!==122)break;a.memoryMetadata=Ki.decode(i,i.uint32());continue}case 16:{if(t!==130)break;a.renderingMetadata=ct.decode(i,i.uint32());continue}case 17:{if(t!==138)break;a.botMetricsMetadata=Qi.decode(i,i.uint32());continue}case 18:{if(t!==146)break;a.botLinkedAccountsMetadata=Vi.decode(i,i.uint32());continue}case 19:{if(t!==154)break;a.richResponseSourcesMetadata=yt.decode(i,i.uint32());continue}case 20:{if(t!==162)break;a.aiConversationContext=i.bytes();continue}case 21:{if(t!==170)break;a.botPromotionMessageMetadata=it.decode(i,i.uint32());continue}case 22:{if(t!==178)break;a.botModeSelectionMetadata=zi.decode(i,i.uint32());continue}case 23:{if(t!==186)break;a.botQuotaMetadata=dt.decode(i,i.uint32());continue}case 24:{if(t!==194)break;a.botAgeCollectionMetadata=ki.decode(i,i.uint32());continue}case 25:{if(t!==202)break;a.conversationStarterPromptId=i.string();continue}case 26:{if(t!==210)break;a.botResponseId=i.string();continue}case 27:{if(t!==218)break;a.verificationMetadata=Ze.decode(i,i.uint32());continue}case 28:{if(t!==226)break;a.unifiedResponseMutation=_t.decode(i,i.uint32());continue}case 29:{if(t!==234)break;a.botMessageOriginMetadata=qi.decode(i,i.uint32());continue}case 30:{if(t!==242)break;a.inThreadSurveyMetadata=za.decode(i,i.uint32());continue}case 31:{if(t!==250)break;a.botThreadInfo=gi.decode(i,i.uint32());continue}case 32:{if(t!==258)break;a.regenerateMetadata=Yn.decode(i,i.uint32());continue}case 33:{if(t!==266)break;a.sessionTransparencyMetadata=bs.decode(i,i.uint32());continue}case 34:{if(t!==274)break;a.botDocumentMessageMetadata=Ii.decode(i,i.uint32());continue}case 35:{if(t!==282)break;a.botGroupMetadata=Ui.decode(i,i.uint32());continue}case 36:{if(t!==290)break;a.botRenderingConfigMetadata=ut.decode(i,i.uint32());continue}case 37:{if(t!==298)break;a.botInfrastructureDiagnostics=wi.decode(i,i.uint32());continue}case 38:{if(t!==306)break;a.aiMediaCollectionMetadata=Jn.decode(i,i.uint32());continue}case 39:{if(t!==314)break;a.commandMetadata=bi.decode(i,i.uint32());continue}case 40:{if(t!==322)break;a.resolvedToolCallMetadata=lt.decode(i,i.uint32());continue}case 41:{if(t!==330)break;a.subscriptionUpsellMetadata=pi.decode(i,i.uint32());continue}case 42:{if(t!==338)break;a.pttPromptMetadata=rt.decode(i,i.uint32());continue}case 999:{if(t!==7994)break;a.internalMetadata=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ji.fromPartial(e??{})},fromPartial(e){let n=op();return n.personaId=e.personaId??void 0,n.pluginMetadata=e.pluginMetadata!==void 0&&e.pluginMetadata!==null?Zi.fromPartial(e.pluginMetadata):void 0,n.suggestedPromptMetadata=e.suggestedPromptMetadata!==void 0&&e.suggestedPromptMetadata!==null?mt.fromPartial(e.suggestedPromptMetadata):void 0,n.invokerJid=e.invokerJid??void 0,n.sessionMetadata=e.sessionMetadata!==void 0&&e.sessionMetadata!==null?pt.fromPartial(e.sessionMetadata):void 0,n.memuMetadata=e.memuMetadata!==void 0&&e.memuMetadata!==null?Wi.fromPartial(e.memuMetadata):void 0,n.timezone=e.timezone??void 0,n.reminderMetadata=e.reminderMetadata!==void 0&&e.reminderMetadata!==null?st.fromPartial(e.reminderMetadata):void 0,n.modelMetadata=e.modelMetadata!==void 0&&e.modelMetadata!==null?Yi.fromPartial(e.modelMetadata):void 0,n.messageDisclaimerText=e.messageDisclaimerText??void 0,n.progressIndicatorMetadata=e.progressIndicatorMetadata!==void 0&&e.progressIndicatorMetadata!==null?Xi.fromPartial(e.progressIndicatorMetadata):void 0,n.capabilityMetadata=e.capabilityMetadata!==void 0&&e.capabilityMetadata!==null?Pi.fromPartial(e.capabilityMetadata):void 0,n.imagineMetadata=e.imagineMetadata!==void 0&&e.imagineMetadata!==null?Li.fromPartial(e.imagineMetadata):void 0,n.memoryMetadata=e.memoryMetadata!==void 0&&e.memoryMetadata!==null?Ki.fromPartial(e.memoryMetadata):void 0,n.renderingMetadata=e.renderingMetadata!==void 0&&e.renderingMetadata!==null?ct.fromPartial(e.renderingMetadata):void 0,n.botMetricsMetadata=e.botMetricsMetadata!==void 0&&e.botMetricsMetadata!==null?Qi.fromPartial(e.botMetricsMetadata):void 0,n.botLinkedAccountsMetadata=e.botLinkedAccountsMetadata!==void 0&&e.botLinkedAccountsMetadata!==null?Vi.fromPartial(e.botLinkedAccountsMetadata):void 0,n.richResponseSourcesMetadata=e.richResponseSourcesMetadata!==void 0&&e.richResponseSourcesMetadata!==null?yt.fromPartial(e.richResponseSourcesMetadata):void 0,n.aiConversationContext=e.aiConversationContext??void 0,n.botPromotionMessageMetadata=e.botPromotionMessageMetadata!==void 0&&e.botPromotionMessageMetadata!==null?it.fromPartial(e.botPromotionMessageMetadata):void 0,n.botModeSelectionMetadata=e.botModeSelectionMetadata!==void 0&&e.botModeSelectionMetadata!==null?zi.fromPartial(e.botModeSelectionMetadata):void 0,n.botQuotaMetadata=e.botQuotaMetadata!==void 0&&e.botQuotaMetadata!==null?dt.fromPartial(e.botQuotaMetadata):void 0,n.botAgeCollectionMetadata=e.botAgeCollectionMetadata!==void 0&&e.botAgeCollectionMetadata!==null?ki.fromPartial(e.botAgeCollectionMetadata):void 0,n.conversationStarterPromptId=e.conversationStarterPromptId??void 0,n.botResponseId=e.botResponseId??void 0,n.verificationMetadata=e.verificationMetadata!==void 0&&e.verificationMetadata!==null?Ze.fromPartial(e.verificationMetadata):void 0,n.unifiedResponseMutation=e.unifiedResponseMutation!==void 0&&e.unifiedResponseMutation!==null?_t.fromPartial(e.unifiedResponseMutation):void 0,n.botMessageOriginMetadata=e.botMessageOriginMetadata!==void 0&&e.botMessageOriginMetadata!==null?qi.fromPartial(e.botMessageOriginMetadata):void 0,n.inThreadSurveyMetadata=e.inThreadSurveyMetadata!==void 0&&e.inThreadSurveyMetadata!==null?za.fromPartial(e.inThreadSurveyMetadata):void 0,n.botThreadInfo=e.botThreadInfo!==void 0&&e.botThreadInfo!==null?gi.fromPartial(e.botThreadInfo):void 0,n.regenerateMetadata=e.regenerateMetadata!==void 0&&e.regenerateMetadata!==null?Yn.fromPartial(e.regenerateMetadata):void 0,n.sessionTransparencyMetadata=e.sessionTransparencyMetadata!==void 0&&e.sessionTransparencyMetadata!==null?bs.fromPartial(e.sessionTransparencyMetadata):void 0,n.botDocumentMessageMetadata=e.botDocumentMessageMetadata!==void 0&&e.botDocumentMessageMetadata!==null?Ii.fromPartial(e.botDocumentMessageMetadata):void 0,n.botGroupMetadata=e.botGroupMetadata!==void 0&&e.botGroupMetadata!==null?Ui.fromPartial(e.botGroupMetadata):void 0,n.botRenderingConfigMetadata=e.botRenderingConfigMetadata!==void 0&&e.botRenderingConfigMetadata!==null?ut.fromPartial(e.botRenderingConfigMetadata):void 0,n.botInfrastructureDiagnostics=e.botInfrastructureDiagnostics!==void 0&&e.botInfrastructureDiagnostics!==null?wi.fromPartial(e.botInfrastructureDiagnostics):void 0,n.aiMediaCollectionMetadata=e.aiMediaCollectionMetadata!==void 0&&e.aiMediaCollectionMetadata!==null?Jn.fromPartial(e.aiMediaCollectionMetadata):void 0,n.commandMetadata=e.commandMetadata!==void 0&&e.commandMetadata!==null?bi.fromPartial(e.commandMetadata):void 0,n.resolvedToolCallMetadata=e.resolvedToolCallMetadata!==void 0&&e.resolvedToolCallMetadata!==null?lt.fromPartial(e.resolvedToolCallMetadata):void 0,n.subscriptionUpsellMetadata=e.subscriptionUpsellMetadata!==void 0&&e.subscriptionUpsellMetadata!==null?pi.fromPartial(e.subscriptionUpsellMetadata):void 0,n.pttPromptMetadata=e.pttPromptMetadata!==void 0&&e.pttPromptMetadata!==null?rt.fromPartial(e.pttPromptMetadata):void 0,n.internalMetadata=e.internalMetadata??void 0,n}};function sp(){return{}}var Qi={encode(e,n=new s){if(e.destinationId!==void 0)n.uint32(10).string(e.destinationId);if(e.destinationEntryPoint!==void 0)n.uint32(16).int32(e.destinationEntryPoint);if(e.threadOrigin!==void 0)n.uint32(24).int32(e.threadOrigin);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=sp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.destinationId=i.string();continue}case 2:{if(t!==16)break;a.destinationEntryPoint=i.int32();continue}case 3:{if(t!==24)break;a.threadOrigin=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Qi.fromPartial(e??{})},fromPartial(e){let n=sp();return n.destinationId=e.destinationId??void 0,n.destinationEntryPoint=e.destinationEntryPoint??void 0,n.threadOrigin=e.threadOrigin??void 0,n}};function up(){return{}}var zi={encode(e,n=new s){if(e.mode!==void 0&&e.mode.length!==0)for(let i of e.mode)n.uint32(8).int32(i);if(e.overrideMode!==void 0&&e.overrideMode.length!==0)for(let i of e.overrideMode)n.uint32(16).uint32(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=up();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t===8){if(a.mode===void 0)a.mode=[];a.mode.push(i.int32());continue}if(t===10){if(a.mode===void 0)a.mode=[];let o=i.uint32()+i.pos;while(i.pos<o)a.mode.push(i.int32());continue}break}case 2:{if(t===16){if(a.overrideMode===void 0)a.overrideMode=[];a.overrideMode.push(i.uint32());continue}if(t===18){if(a.overrideMode===void 0)a.overrideMode=[];let o=i.uint32()+i.pos;while(i.pos<o)a.overrideMode.push(i.uint32());continue}break}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return zi.fromPartial(e??{})},fromPartial(e){let n=up();return n.mode=e.mode?.map((i)=>i)||void 0,n.overrideMode=e.overrideMode?.map((i)=>i)||void 0,n}};function cp(){return{}}var Yi={encode(e,n=new s){if(e.modelType!==void 0)n.uint32(8).int32(e.modelType);if(e.premiumModelStatus!==void 0)n.uint32(16).int32(e.premiumModelStatus);if(e.modelNameOverride!==void 0)n.uint32(26).string(e.modelNameOverride);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=cp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.modelType=i.int32();continue}case 2:{if(t!==16)break;a.premiumModelStatus=i.int32();continue}case 3:{if(t!==26)break;a.modelNameOverride=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Yi.fromPartial(e??{})},fromPartial(e){let n=cp();return n.modelType=e.modelType??void 0,n.premiumModelStatus=e.premiumModelStatus??void 0,n.modelNameOverride=e.modelNameOverride??void 0,n}};function fp(){return{}}var Zi={encode(e,n=new s){if(e.provider!==void 0)n.uint32(8).int32(e.provider);if(e.pluginType!==void 0)n.uint32(16).int32(e.pluginType);if(e.thumbnailCdnUrl!==void 0)n.uint32(26).string(e.thumbnailCdnUrl);if(e.profilePhotoCdnUrl!==void 0)n.uint32(34).string(e.profilePhotoCdnUrl);if(e.searchProviderUrl!==void 0)n.uint32(42).string(e.searchProviderUrl);if(e.referenceIndex!==void 0)n.uint32(48).uint32(e.referenceIndex);if(e.expectedLinksCount!==void 0)n.uint32(56).uint32(e.expectedLinksCount);if(e.searchQuery!==void 0)n.uint32(74).string(e.searchQuery);if(e.parentPluginMessageKey!==void 0)_.encode(e.parentPluginMessageKey,n.uint32(82).fork()).join();if(e.deprecatedField!==void 0)n.uint32(88).int32(e.deprecatedField);if(e.parentPluginType!==void 0)n.uint32(96).int32(e.parentPluginType);if(e.faviconCdnUrl!==void 0)n.uint32(106).string(e.faviconCdnUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=fp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.provider=i.int32();continue}case 2:{if(t!==16)break;a.pluginType=i.int32();continue}case 3:{if(t!==26)break;a.thumbnailCdnUrl=i.string();continue}case 4:{if(t!==34)break;a.profilePhotoCdnUrl=i.string();continue}case 5:{if(t!==42)break;a.searchProviderUrl=i.string();continue}case 6:{if(t!==48)break;a.referenceIndex=i.uint32();continue}case 7:{if(t!==56)break;a.expectedLinksCount=i.uint32();continue}case 9:{if(t!==74)break;a.searchQuery=i.string();continue}case 10:{if(t!==82)break;a.parentPluginMessageKey=_.decode(i,i.uint32());continue}case 11:{if(t!==88)break;a.deprecatedField=i.int32();continue}case 12:{if(t!==96)break;a.parentPluginType=i.int32();continue}case 13:{if(t!==106)break;a.faviconCdnUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Zi.fromPartial(e??{})},fromPartial(e){let n=fp();return n.provider=e.provider??void 0,n.pluginType=e.pluginType??void 0,n.thumbnailCdnUrl=e.thumbnailCdnUrl??void 0,n.profilePhotoCdnUrl=e.profilePhotoCdnUrl??void 0,n.searchProviderUrl=e.searchProviderUrl??void 0,n.referenceIndex=e.referenceIndex??void 0,n.expectedLinksCount=e.expectedLinksCount??void 0,n.searchQuery=e.searchQuery??void 0,n.parentPluginMessageKey=e.parentPluginMessageKey!==void 0&&e.parentPluginMessageKey!==null?_.fromPartial(e.parentPluginMessageKey):void 0,n.deprecatedField=e.deprecatedField??void 0,n.parentPluginType=e.parentPluginType??void 0,n.faviconCdnUrl=e.faviconCdnUrl??void 0,n}};function lp(){return{}}var Xi={encode(e,n=new s){if(e.progressDescription!==void 0)n.uint32(10).string(e.progressDescription);if(e.stepsMetadata!==void 0&&e.stepsMetadata.length!==0)for(let i of e.stepsMetadata)$i.encode(i,n.uint32(18).fork()).join();if(e.estimatedCompletionTime!==void 0)n.uint32(24).int64(e.estimatedCompletionTime);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=lp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.progressDescription=i.string();continue}case 2:{if(t!==18)break;if(a.stepsMetadata===void 0)a.stepsMetadata=[];let o=$i.decode(i,i.uint32());if(o!==void 0)a.stepsMetadata.push(o);continue}case 3:{if(t!==24)break;a.estimatedCompletionTime=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Xi.fromPartial(e??{})},fromPartial(e){let n=lp();return n.progressDescription=e.progressDescription??void 0,n.stepsMetadata=e.stepsMetadata?.map((i)=>$i.fromPartial(i))||void 0,n.estimatedCompletionTime=e.estimatedCompletionTime??void 0,n}};function pp(){return{}}var $i={encode(e,n=new s){if(e.statusTitle!==void 0)n.uint32(10).string(e.statusTitle);if(e.statusBody!==void 0)n.uint32(18).string(e.statusBody);if(e.sourcesMetadata!==void 0&&e.sourcesMetadata.length!==0)for(let i of e.sourcesMetadata)et.encode(i,n.uint32(26).fork()).join();if(e.status!==void 0)n.uint32(32).int32(e.status);if(e.isReasoning!==void 0)n.uint32(40).bool(e.isReasoning);if(e.isEnhancedSearch!==void 0)n.uint32(48).bool(e.isEnhancedSearch);if(e.sections!==void 0&&e.sections.length!==0)for(let i of e.sections)nt.encode(i,n.uint32(58).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=pp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.statusTitle=i.string();continue}case 2:{if(t!==18)break;a.statusBody=i.string();continue}case 3:{if(t!==26)break;if(a.sourcesMetadata===void 0)a.sourcesMetadata=[];let o=et.decode(i,i.uint32());if(o!==void 0)a.sourcesMetadata.push(o);continue}case 4:{if(t!==32)break;a.status=i.int32();continue}case 5:{if(t!==40)break;a.isReasoning=i.bool();continue}case 6:{if(t!==48)break;a.isEnhancedSearch=i.bool();continue}case 7:{if(t!==58)break;if(a.sections===void 0)a.sections=[];let o=nt.decode(i,i.uint32());if(o!==void 0)a.sections.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return $i.fromPartial(e??{})},fromPartial(e){let n=pp();return n.statusTitle=e.statusTitle??void 0,n.statusBody=e.statusBody??void 0,n.sourcesMetadata=e.sourcesMetadata?.map((i)=>et.fromPartial(i))||void 0,n.status=e.status??void 0,n.isReasoning=e.isReasoning??void 0,n.isEnhancedSearch=e.isEnhancedSearch??void 0,n.sections=e.sections?.map((i)=>nt.fromPartial(i))||void 0,n}};function gp(){return{}}var ji={encode(e,n=new s){if(e.title!==void 0)n.uint32(10).string(e.title);if(e.provider!==void 0)n.uint32(16).int32(e.provider);if(e.sourceUrl!==void 0)n.uint32(26).string(e.sourceUrl);if(e.favIconUrl!==void 0)n.uint32(34).string(e.favIconUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=gp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.title=i.string();continue}case 2:{if(t!==16)break;a.provider=i.int32();continue}case 3:{if(t!==26)break;a.sourceUrl=i.string();continue}case 4:{if(t!==34)break;a.favIconUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ji.fromPartial(e??{})},fromPartial(e){let n=gp();return n.title=e.title??void 0,n.provider=e.provider??void 0,n.sourceUrl=e.sourceUrl??void 0,n.favIconUrl=e.favIconUrl??void 0,n}};function yp(){return{}}var et={encode(e,n=new s){if(e.sourceTitle!==void 0)n.uint32(10).string(e.sourceTitle);if(e.provider!==void 0)n.uint32(16).int32(e.provider);if(e.sourceUrl!==void 0)n.uint32(26).string(e.sourceUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=yp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.sourceTitle=i.string();continue}case 2:{if(t!==16)break;a.provider=i.int32();continue}case 3:{if(t!==26)break;a.sourceUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return et.fromPartial(e??{})},fromPartial(e){let n=yp();return n.sourceTitle=e.sourceTitle??void 0,n.provider=e.provider??void 0,n.sourceUrl=e.sourceUrl??void 0,n}};function Mp(){return{}}var nt={encode(e,n=new s){if(e.sectionTitle!==void 0)n.uint32(10).string(e.sectionTitle);if(e.sectionBody!==void 0)n.uint32(18).string(e.sectionBody);if(e.sourcesMetadata!==void 0&&e.sourcesMetadata.length!==0)for(let i of e.sourcesMetadata)ji.encode(i,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Mp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.sectionTitle=i.string();continue}case 2:{if(t!==18)break;a.sectionBody=i.string();continue}case 3:{if(t!==26)break;if(a.sourcesMetadata===void 0)a.sourcesMetadata=[];let o=ji.decode(i,i.uint32());if(o!==void 0)a.sourcesMetadata.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return nt.fromPartial(e??{})},fromPartial(e){let n=Mp();return n.sectionTitle=e.sectionTitle??void 0,n.sectionBody=e.sectionBody??void 0,n.sourcesMetadata=e.sourcesMetadata?.map((i)=>ji.fromPartial(i))||void 0,n}};function mp(){return{}}var it={encode(e,n=new s){if(e.promotionType!==void 0)n.uint32(8).int32(e.promotionType);if(e.buttonTitle!==void 0)n.uint32(18).string(e.buttonTitle);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=mp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.promotionType=i.int32();continue}case 2:{if(t!==18)break;a.buttonTitle=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return it.fromPartial(e??{})},fromPartial(e){let n=mp();return n.promotionType=e.promotionType??void 0,n.buttonTitle=e.buttonTitle??void 0,n}};function _p(){return{}}var tt={encode(e,n=new s){if(e.prompt!==void 0)n.uint32(10).string(e.prompt);if(e.promptId!==void 0)n.uint32(18).string(e.promptId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=_p();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.prompt=i.string();continue}case 2:{if(t!==18)break;a.promptId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return tt.fromPartial(e??{})},fromPartial(e){let n=_p();return n.prompt=e.prompt??void 0,n.promptId=e.promptId??void 0,n}};function hp(){return{}}var at={encode(e,n=new s){if(e.suggestions!==void 0&&e.suggestions.length!==0)for(let i of e.suggestions)tt.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=hp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.suggestions===void 0)a.suggestions=[];let o=tt.decode(i,i.uint32());if(o!==void 0)a.suggestions.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return at.fromPartial(e??{})},fromPartial(e){let n=hp();return n.suggestions=e.suggestions?.map((i)=>tt.fromPartial(i))||void 0,n}};function kp(){return{}}var rt={encode(e,n=new s){if(e.transcript!==void 0)n.uint32(10).string(e.transcript);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=kp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.transcript=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return rt.fromPartial(e??{})},fromPartial(e){let n=kp();return n.transcript=e.transcript??void 0,n}};function Ap(){return{}}var dt={encode(e,n=new s){if(e.botFeatureQuotaMetadata!==void 0&&e.botFeatureQuotaMetadata.length!==0)for(let i of e.botFeatureQuotaMetadata)ot.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ap();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.botFeatureQuotaMetadata===void 0)a.botFeatureQuotaMetadata=[];let o=ot.decode(i,i.uint32());if(o!==void 0)a.botFeatureQuotaMetadata.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return dt.fromPartial(e??{})},fromPartial(e){let n=Ap();return n.botFeatureQuotaMetadata=e.botFeatureQuotaMetadata?.map((i)=>ot.fromPartial(i))||void 0,n}};function Sp(){return{}}var ot={encode(e,n=new s){if(e.featureType!==void 0)n.uint32(8).int32(e.featureType);if(e.remainingQuota!==void 0)n.uint32(16).uint32(e.remainingQuota);if(e.expirationTimestamp!==void 0)n.uint32(24).uint64(e.expirationTimestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Sp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.featureType=i.int32();continue}case 2:{if(t!==16)break;a.remainingQuota=i.uint32();continue}case 3:{if(t!==24)break;a.expirationTimestamp=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ot.fromPartial(e??{})},fromPartial(e){let n=Sp();return n.featureType=e.featureType??void 0,n.remainingQuota=e.remainingQuota??void 0,n.expirationTimestamp=e.expirationTimestamp??void 0,n}};function Pp(){return{}}var st={encode(e,n=new s){if(e.requestMessageKey!==void 0)_.encode(e.requestMessageKey,n.uint32(10).fork()).join();if(e.action!==void 0)n.uint32(16).int32(e.action);if(e.name!==void 0)n.uint32(26).string(e.name);if(e.nextTriggerTimestamp!==void 0)n.uint32(32).uint64(e.nextTriggerTimestamp);if(e.frequency!==void 0)n.uint32(40).int32(e.frequency);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Pp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.requestMessageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.action=i.int32();continue}case 3:{if(t!==26)break;a.name=i.string();continue}case 4:{if(t!==32)break;a.nextTriggerTimestamp=i.uint64Number();continue}case 5:{if(t!==40)break;a.frequency=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return st.fromPartial(e??{})},fromPartial(e){let n=Pp();return n.requestMessageKey=e.requestMessageKey!==void 0&&e.requestMessageKey!==null?_.fromPartial(e.requestMessageKey):void 0,n.action=e.action??void 0,n.name=e.name??void 0,n.nextTriggerTimestamp=e.nextTriggerTimestamp??void 0,n.frequency=e.frequency??void 0,n}};function bp(){return{}}var ut={encode(e,n=new s){if(e.bloksVersioningId!==void 0)n.uint32(10).string(e.bloksVersioningId);if(e.pixelDensity!==void 0)n.uint32(17).double(e.pixelDensity);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=bp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.bloksVersioningId=i.string();continue}case 2:{if(t!==17)break;a.pixelDensity=i.double();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ut.fromPartial(e??{})},fromPartial(e){let n=bp();return n.bloksVersioningId=e.bloksVersioningId??void 0,n.pixelDensity=e.pixelDensity??void 0,n}};function Ip(){return{}}var ct={encode(e,n=new s){if(e.keywords!==void 0&&e.keywords.length!==0)for(let i of e.keywords)ft.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ip();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.keywords===void 0)a.keywords=[];let o=ft.decode(i,i.uint32());if(o!==void 0)a.keywords.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ct.fromPartial(e??{})},fromPartial(e){let n=Ip();return n.keywords=e.keywords?.map((i)=>ft.fromPartial(i))||void 0,n}};function Rp(){return{}}var ft={encode(e,n=new s){if(e.value!==void 0)n.uint32(10).string(e.value);if(e.associatedPrompts!==void 0&&e.associatedPrompts.length!==0)for(let i of e.associatedPrompts)n.uint32(18).string(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Rp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.value=i.string();continue}case 2:{if(t!==18)break;if(a.associatedPrompts===void 0)a.associatedPrompts=[];let o=i.string();if(o!==void 0)a.associatedPrompts.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ft.fromPartial(e??{})},fromPartial(e){let n=Rp();return n.value=e.value??void 0,n.associatedPrompts=e.associatedPrompts?.map((i)=>i)||void 0,n}};function Dp(){return{}}var lt={encode(e,n=new s){if(e.toolCallId!==void 0)n.uint32(10).string(e.toolCallId);if(e.resolutionDataSerialized!==void 0)n.uint32(18).string(e.resolutionDataSerialized);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Dp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.toolCallId=i.string();continue}case 2:{if(t!==18)break;a.resolutionDataSerialized=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return lt.fromPartial(e??{})},fromPartial(e){let n=Dp();return n.toolCallId=e.toolCallId??void 0,n.resolutionDataSerialized=e.resolutionDataSerialized??void 0,n}};function Ep(){return{}}var pt={encode(e,n=new s){if(e.sessionId!==void 0)n.uint32(10).string(e.sessionId);if(e.sessionSource!==void 0)n.uint32(16).int32(e.sessionSource);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ep();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.sessionId=i.string();continue}case 2:{if(t!==16)break;a.sessionSource=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return pt.fromPartial(e??{})},fromPartial(e){let n=Ep();return n.sessionId=e.sessionId??void 0,n.sessionSource=e.sessionSource??void 0,n}};function Bp(){return{}}var Ze={encode(e,n=new s){if(e.proofs!==void 0&&e.proofs.length!==0)for(let i of e.proofs)gt.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Bp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.proofs===void 0)a.proofs=[];let o=gt.decode(i,i.uint32());if(o!==void 0)a.proofs.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ze.fromPartial(e??{})},fromPartial(e){let n=Bp();return n.proofs=e.proofs?.map((i)=>gt.fromPartial(i))||void 0,n}};function Cp(){return{}}var gt={encode(e,n=new s){if(e.version!==void 0)n.uint32(8).int32(e.version);if(e.useCase!==void 0)n.uint32(16).int32(e.useCase);if(e.signature!==void 0)n.uint32(26).bytes(e.signature);if(e.certificateChain!==void 0&&e.certificateChain.length!==0)for(let i of e.certificateChain)n.uint32(34).bytes(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Cp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.version=i.int32();continue}case 2:{if(t!==16)break;a.useCase=i.int32();continue}case 3:{if(t!==26)break;a.signature=i.bytes();continue}case 4:{if(t!==34)break;if(a.certificateChain===void 0)a.certificateChain=[];let o=i.bytes();if(o!==void 0)a.certificateChain.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return gt.fromPartial(e??{})},fromPartial(e){let n=Cp();return n.version=e.version??void 0,n.useCase=e.useCase??void 0,n.signature=e.signature??void 0,n.certificateChain=e.certificateChain?.map((i)=>i)||void 0,n}};function vp(){return{}}var yt={encode(e,n=new s){if(e.sources!==void 0&&e.sources.length!==0)for(let i of e.sources)Mt.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=vp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.sources===void 0)a.sources=[];let o=Mt.decode(i,i.uint32());if(o!==void 0)a.sources.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return yt.fromPartial(e??{})},fromPartial(e){let n=vp();return n.sources=e.sources?.map((i)=>Mt.fromPartial(i))||void 0,n}};function xp(){return{}}var Mt={encode(e,n=new s){if(e.provider!==void 0)n.uint32(8).int32(e.provider);if(e.thumbnailCdnUrl!==void 0)n.uint32(18).string(e.thumbnailCdnUrl);if(e.sourceProviderUrl!==void 0)n.uint32(26).string(e.sourceProviderUrl);if(e.sourceQuery!==void 0)n.uint32(34).string(e.sourceQuery);if(e.faviconCdnUrl!==void 0)n.uint32(42).string(e.faviconCdnUrl);if(e.citationNumber!==void 0)n.uint32(48).uint32(e.citationNumber);if(e.sourceTitle!==void 0)n.uint32(58).string(e.sourceTitle);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=xp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.provider=i.int32();continue}case 2:{if(t!==18)break;a.thumbnailCdnUrl=i.string();continue}case 3:{if(t!==26)break;a.sourceProviderUrl=i.string();continue}case 4:{if(t!==34)break;a.sourceQuery=i.string();continue}case 5:{if(t!==42)break;a.faviconCdnUrl=i.string();continue}case 6:{if(t!==48)break;a.citationNumber=i.uint32();continue}case 7:{if(t!==58)break;a.sourceTitle=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Mt.fromPartial(e??{})},fromPartial(e){let n=xp();return n.provider=e.provider??void 0,n.thumbnailCdnUrl=e.thumbnailCdnUrl??void 0,n.sourceProviderUrl=e.sourceProviderUrl??void 0,n.sourceQuery=e.sourceQuery??void 0,n.faviconCdnUrl=e.faviconCdnUrl??void 0,n.citationNumber=e.citationNumber??void 0,n.sourceTitle=e.sourceTitle??void 0,n}};function Np(){return{}}var mt={encode(e,n=new s){if(e.suggestedPrompts!==void 0&&e.suggestedPrompts.length!==0)for(let i of e.suggestedPrompts)n.uint32(10).string(i);if(e.selectedPromptIndex!==void 0)n.uint32(16).uint32(e.selectedPromptIndex);if(e.promptSuggestions!==void 0)at.encode(e.promptSuggestions,n.uint32(26).fork()).join();if(e.selectedPromptId!==void 0)n.uint32(34).string(e.selectedPromptId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Np();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.suggestedPrompts===void 0)a.suggestedPrompts=[];let o=i.string();if(o!==void 0)a.suggestedPrompts.push(o);continue}case 2:{if(t!==16)break;a.selectedPromptIndex=i.uint32();continue}case 3:{if(t!==26)break;a.promptSuggestions=at.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.selectedPromptId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return mt.fromPartial(e??{})},fromPartial(e){let n=Np();return n.suggestedPrompts=e.suggestedPrompts?.map((i)=>i)||void 0,n.selectedPromptIndex=e.selectedPromptIndex??void 0,n.promptSuggestions=e.promptSuggestions!==void 0&&e.promptSuggestions!==null?at.fromPartial(e.promptSuggestions):void 0,n.selectedPromptId=e.selectedPromptId??void 0,n}};function Op(){return{}}var _t={encode(e,n=new s){if(e.sbsMetadata!==void 0)kt.encode(e.sbsMetadata,n.uint32(10).fork()).join();if(e.mediaDetailsMetadataList!==void 0&&e.mediaDetailsMetadataList.length!==0)for(let i of e.mediaDetailsMetadataList)ht.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Op();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.sbsMetadata=kt.decode(i,i.uint32());continue}case 2:{if(t!==18)break;if(a.mediaDetailsMetadataList===void 0)a.mediaDetailsMetadataList=[];let o=ht.decode(i,i.uint32());if(o!==void 0)a.mediaDetailsMetadataList.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return _t.fromPartial(e??{})},fromPartial(e){let n=Op();return n.sbsMetadata=e.sbsMetadata!==void 0&&e.sbsMetadata!==null?kt.fromPartial(e.sbsMetadata):void 0,n.mediaDetailsMetadataList=e.mediaDetailsMetadataList?.map((i)=>ht.fromPartial(i))||void 0,n}};function Up(){return{}}var ht={encode(e,n=new s){if(e.id!==void 0)n.uint32(10).string(e.id);if(e.highResMedia!==void 0)ce.encode(e.highResMedia,n.uint32(18).fork()).join();if(e.previewMedia!==void 0)ce.encode(e.previewMedia,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Up();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.id=i.string();continue}case 2:{if(t!==18)break;a.highResMedia=ce.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.previewMedia=ce.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ht.fromPartial(e??{})},fromPartial(e){let n=Up();return n.id=e.id??void 0,n.highResMedia=e.highResMedia!==void 0&&e.highResMedia!==null?ce.fromPartial(e.highResMedia):void 0,n.previewMedia=e.previewMedia!==void 0&&e.previewMedia!==null?ce.fromPartial(e.previewMedia):void 0,n}};function Tp(){return{}}var kt={encode(e,n=new s){if(e.primaryResponseId!==void 0)n.uint32(10).string(e.primaryResponseId);if(e.surveyCtaHasRendered!==void 0)n.uint32(16).bool(e.surveyCtaHasRendered);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Tp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.primaryResponseId=i.string();continue}case 2:{if(t!==16)break;a.surveyCtaHasRendered=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return kt.fromPartial(e??{})},fromPartial(e){let n=Tp();return n.primaryResponseId=e.primaryResponseId??void 0,n.surveyCtaHasRendered=e.surveyCtaHasRendered??void 0,n}};function Lp(){return{}}var Xe={encode(e,n=new s){if(e.callResult!==void 0)n.uint32(8).int32(e.callResult);if(e.isDndMode!==void 0)n.uint32(16).bool(e.isDndMode);if(e.silenceReason!==void 0)n.uint32(24).int32(e.silenceReason);if(e.duration!==void 0)n.uint32(32).int64(e.duration);if(e.startTime!==void 0)n.uint32(40).int64(e.startTime);if(e.isIncoming!==void 0)n.uint32(48).bool(e.isIncoming);if(e.isVideo!==void 0)n.uint32(56).bool(e.isVideo);if(e.isCallLink!==void 0)n.uint32(64).bool(e.isCallLink);if(e.callLinkToken!==void 0)n.uint32(74).string(e.callLinkToken);if(e.scheduledCallId!==void 0)n.uint32(82).string(e.scheduledCallId);if(e.callId!==void 0)n.uint32(90).string(e.callId);if(e.callCreatorJid!==void 0)n.uint32(98).string(e.callCreatorJid);if(e.groupJid!==void 0)n.uint32(106).string(e.groupJid);if(e.participants!==void 0&&e.participants.length!==0)for(let i of e.participants)At.encode(i,n.uint32(114).fork()).join();if(e.callType!==void 0)n.uint32(120).int32(e.callType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Lp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.callResult=i.int32();continue}case 2:{if(t!==16)break;a.isDndMode=i.bool();continue}case 3:{if(t!==24)break;a.silenceReason=i.int32();continue}case 4:{if(t!==32)break;a.duration=i.int64Number();continue}case 5:{if(t!==40)break;a.startTime=i.int64Number();continue}case 6:{if(t!==48)break;a.isIncoming=i.bool();continue}case 7:{if(t!==56)break;a.isVideo=i.bool();continue}case 8:{if(t!==64)break;a.isCallLink=i.bool();continue}case 9:{if(t!==74)break;a.callLinkToken=i.string();continue}case 10:{if(t!==82)break;a.scheduledCallId=i.string();continue}case 11:{if(t!==90)break;a.callId=i.string();continue}case 12:{if(t!==98)break;a.callCreatorJid=i.string();continue}case 13:{if(t!==106)break;a.groupJid=i.string();continue}case 14:{if(t!==114)break;if(a.participants===void 0)a.participants=[];let o=At.decode(i,i.uint32());if(o!==void 0)a.participants.push(o);continue}case 15:{if(t!==120)break;a.callType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Xe.fromPartial(e??{})},fromPartial(e){let n=Lp();return n.callResult=e.callResult??void 0,n.isDndMode=e.isDndMode??void 0,n.silenceReason=e.silenceReason??void 0,n.duration=e.duration??void 0,n.startTime=e.startTime??void 0,n.isIncoming=e.isIncoming??void 0,n.isVideo=e.isVideo??void 0,n.isCallLink=e.isCallLink??void 0,n.callLinkToken=e.callLinkToken??void 0,n.scheduledCallId=e.scheduledCallId??void 0,n.callId=e.callId??void 0,n.callCreatorJid=e.callCreatorJid??void 0,n.groupJid=e.groupJid??void 0,n.participants=e.participants?.map((i)=>At.fromPartial(i))||void 0,n.callType=e.callType??void 0,n}};function wp(){return{}}var At={encode(e,n=new s){if(e.userJid!==void 0)n.uint32(10).string(e.userJid);if(e.callResult!==void 0)n.uint32(16).int32(e.callResult);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=wp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.userJid=i.string();continue}case 2:{if(t!==16)break;a.callResult=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return At.fromPartial(e??{})},fromPartial(e){let n=wp();return n.userJid=e.userJid??void 0,n.callResult=e.callResult??void 0,n}};function Fp(){return{}}var Hc={encode(e,n=new s){if(e.leaf!==void 0)Re.encode(e.leaf,n.uint32(10).fork()).join();if(e.intermediate!==void 0)Re.encode(e.intermediate,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Fp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.leaf=Re.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.intermediate=Re.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Hc.fromPartial(e??{})},fromPartial(e){let n=Fp();return n.leaf=e.leaf!==void 0&&e.leaf!==null?Re.fromPartial(e.leaf):void 0,n.intermediate=e.intermediate!==void 0&&e.intermediate!==null?Re.fromPartial(e.intermediate):void 0,n}};function Vp(){return{}}var Re={encode(e,n=new s){if(e.details!==void 0)n.uint32(10).bytes(e.details);if(e.signature!==void 0)n.uint32(18).bytes(e.signature);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Vp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.details=i.bytes();continue}case 2:{if(t!==18)break;a.signature=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Re.fromPartial(e??{})},fromPartial(e){let n=Vp();return n.details=e.details??void 0,n.signature=e.signature??void 0,n}};function Kp(){return{}}var qc={encode(e,n=new s){if(e.serial!==void 0)n.uint32(8).uint32(e.serial);if(e.issuerSerial!==void 0)n.uint32(16).uint32(e.issuerSerial);if(e.key!==void 0)n.uint32(26).bytes(e.key);if(e.notBefore!==void 0)n.uint32(32).uint64(e.notBefore);if(e.notAfter!==void 0)n.uint32(40).uint64(e.notAfter);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Kp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.serial=i.uint32();continue}case 2:{if(t!==16)break;a.issuerSerial=i.uint32();continue}case 3:{if(t!==26)break;a.key=i.bytes();continue}case 4:{if(t!==32)break;a.notBefore=i.uint64Number();continue}case 5:{if(t!==40)break;a.notAfter=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return qc.fromPartial(e??{})},fromPartial(e){let n=Kp();return n.serial=e.serial??void 0,n.issuerSerial=e.issuerSerial??void 0,n.key=e.key??void 0,n.notBefore=e.notBefore??void 0,n.notAfter=e.notAfter??void 0,n}};function Wp(){return{}}var $e={encode(e,n=new s){if(e.hideLockedChats!==void 0)n.uint32(8).bool(e.hideLockedChats);if(e.secretCode!==void 0)Ic.encode(e.secretCode,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Wp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.hideLockedChats=i.bool();continue}case 2:{if(t!==18)break;a.secretCode=Ic.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return $e.fromPartial(e??{})},fromPartial(e){let n=Wp();return n.hideLockedChats=e.hideLockedChats??void 0,n.secretCode=e.secretCode!==void 0&&e.secretCode!==null?Ic.fromPartial(e.secretCode):void 0,n}};function Hp(){return{}}var II={encode(e,n=new s){if(e.draftMessage!==void 0)St.encode(e.draftMessage,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Hp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.draftMessage=St.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return II.fromPartial(e??{})},fromPartial(e){let n=Hp();return n.draftMessage=e.draftMessage!==void 0&&e.draftMessage!==null?St.fromPartial(e.draftMessage):void 0,n}};function qp(){return{}}var St={encode(e,n=new s){if(e.text!==void 0)n.uint32(10).string(e.text);if(e.omittedUrl!==void 0)n.uint32(18).string(e.omittedUrl);if(e.ctwaContextLinkData!==void 0)bt.encode(e.ctwaContextLinkData,n.uint32(26).fork()).join();if(e.ctwaContext!==void 0)Pt.encode(e.ctwaContext,n.uint32(34).fork()).join();if(e.timestamp!==void 0)n.uint32(40).int64(e.timestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=qp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.text=i.string();continue}case 2:{if(t!==18)break;a.omittedUrl=i.string();continue}case 3:{if(t!==26)break;a.ctwaContextLinkData=bt.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.ctwaContext=Pt.decode(i,i.uint32());continue}case 5:{if(t!==40)break;a.timestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return St.fromPartial(e??{})},fromPartial(e){let n=qp();return n.text=e.text??void 0,n.omittedUrl=e.omittedUrl??void 0,n.ctwaContextLinkData=e.ctwaContextLinkData!==void 0&&e.ctwaContextLinkData!==null?bt.fromPartial(e.ctwaContextLinkData):void 0,n.ctwaContext=e.ctwaContext!==void 0&&e.ctwaContext!==null?Pt.fromPartial(e.ctwaContext):void 0,n.timestamp=e.timestamp??void 0,n}};function Gp(){return{}}var Pt={encode(e,n=new s){if(e.conversionSource!==void 0)n.uint32(10).string(e.conversionSource);if(e.conversionData!==void 0)n.uint32(18).bytes(e.conversionData);if(e.sourceUrl!==void 0)n.uint32(26).string(e.sourceUrl);if(e.sourceId!==void 0)n.uint32(34).string(e.sourceId);if(e.sourceType!==void 0)n.uint32(42).string(e.sourceType);if(e.title!==void 0)n.uint32(50).string(e.title);if(e.description!==void 0)n.uint32(58).string(e.description);if(e.thumbnail!==void 0)n.uint32(66).string(e.thumbnail);if(e.thumbnailUrl!==void 0)n.uint32(74).string(e.thumbnailUrl);if(e.mediaType!==void 0)n.uint32(80).int32(e.mediaType);if(e.mediaUrl!==void 0)n.uint32(90).string(e.mediaUrl);if(e.isSuspiciousLink!==void 0)n.uint32(96).bool(e.isSuspiciousLink);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Gp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.conversionSource=i.string();continue}case 2:{if(t!==18)break;a.conversionData=i.bytes();continue}case 3:{if(t!==26)break;a.sourceUrl=i.string();continue}case 4:{if(t!==34)break;a.sourceId=i.string();continue}case 5:{if(t!==42)break;a.sourceType=i.string();continue}case 6:{if(t!==50)break;a.title=i.string();continue}case 7:{if(t!==58)break;a.description=i.string();continue}case 8:{if(t!==66)break;a.thumbnail=i.string();continue}case 9:{if(t!==74)break;a.thumbnailUrl=i.string();continue}case 10:{if(t!==80)break;a.mediaType=i.int32();continue}case 11:{if(t!==90)break;a.mediaUrl=i.string();continue}case 12:{if(t!==96)break;a.isSuspiciousLink=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Pt.fromPartial(e??{})},fromPartial(e){let n=Gp();return n.conversionSource=e.conversionSource??void 0,n.conversionData=e.conversionData??void 0,n.sourceUrl=e.sourceUrl??void 0,n.sourceId=e.sourceId??void 0,n.sourceType=e.sourceType??void 0,n.title=e.title??void 0,n.description=e.description??void 0,n.thumbnail=e.thumbnail??void 0,n.thumbnailUrl=e.thumbnailUrl??void 0,n.mediaType=e.mediaType??void 0,n.mediaUrl=e.mediaUrl??void 0,n.isSuspiciousLink=e.isSuspiciousLink??void 0,n}};function Jp(){return{}}var bt={encode(e,n=new s){if(e.context!==void 0)n.uint32(10).string(e.context);if(e.sourceUrl!==void 0)n.uint32(18).string(e.sourceUrl);if(e.icebreaker!==void 0)n.uint32(26).string(e.icebreaker);if(e.phone!==void 0)n.uint32(34).string(e.phone);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Jp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.context=i.string();continue}case 2:{if(t!==18)break;a.sourceUrl=i.string();continue}case 3:{if(t!==26)break;a.icebreaker=i.string();continue}case 4:{if(t!==34)break;a.phone=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return bt.fromPartial(e??{})},fromPartial(e){let n=Jp();return n.context=e.context??void 0,n.sourceUrl=e.sourceUrl??void 0,n.icebreaker=e.icebreaker??void 0,n.phone=e.phone??void 0,n}};function Qp(){return{}}var It={encode(e,n=new s){if(e.title!==void 0)n.uint32(10).string(e.title);if(e.subtitle!==void 0)n.uint32(18).string(e.subtitle);if(e.cmsId!==void 0)n.uint32(26).string(e.cmsId);if(e.imageUrl!==void 0)n.uint32(34).string(e.imageUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Qp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.title=i.string();continue}case 2:{if(t!==18)break;a.subtitle=i.string();continue}case 3:{if(t!==26)break;a.cmsId=i.string();continue}case 4:{if(t!==34)break;a.imageUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return It.fromPartial(e??{})},fromPartial(e){let n=Qp();return n.title=e.title??void 0,n.subtitle=e.subtitle??void 0,n.cmsId=e.cmsId??void 0,n.imageUrl=e.imageUrl??void 0,n}};function zp(){return{}}var RI={encode(e,n=new s){if(e.isChatDbLidMigrated!==void 0)n.uint32(8).bool(e.isChatDbLidMigrated);if(e.isSyncdPureLidSession!==void 0)n.uint32(16).bool(e.isSyncdPureLidSession);if(e.isSyncdSnapshotRecoveryEnabled!==void 0)n.uint32(24).bool(e.isSyncdSnapshotRecoveryEnabled);if(e.isHsThumbnailSyncEnabled!==void 0)n.uint32(32).bool(e.isHsThumbnailSyncEnabled);if(e.subscriptionSyncPayload!==void 0)n.uint32(42).bytes(e.subscriptionSyncPayload);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=zp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isChatDbLidMigrated=i.bool();continue}case 2:{if(t!==16)break;a.isSyncdPureLidSession=i.bool();continue}case 3:{if(t!==24)break;a.isSyncdSnapshotRecoveryEnabled=i.bool();continue}case 4:{if(t!==32)break;a.isHsThumbnailSyncEnabled=i.bool();continue}case 5:{if(t!==42)break;a.subscriptionSyncPayload=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return RI.fromPartial(e??{})},fromPartial(e){let n=zp();return n.isChatDbLidMigrated=e.isChatDbLidMigrated??void 0,n.isSyncdPureLidSession=e.isSyncdPureLidSession??void 0,n.isSyncdSnapshotRecoveryEnabled=e.isSyncdSnapshotRecoveryEnabled??void 0,n.isHsThumbnailSyncEnabled=e.isHsThumbnailSyncEnabled??void 0,n.subscriptionSyncPayload=e.subscriptionSyncPayload??void 0,n}};function Yp(){return{}}var Gc={encode(e,n=new s){if(e.username!==void 0)n.uint32(8).uint64(e.username);if(e.passive!==void 0)n.uint32(24).bool(e.passive);if(e.userAgent!==void 0)Bt.encode(e.userAgent,n.uint32(42).fork()).join();if(e.webInfo!==void 0)vt.encode(e.webInfo,n.uint32(50).fork()).join();if(e.pushName!==void 0)n.uint32(58).string(e.pushName);if(e.sessionId!==void 0)n.uint32(77).sfixed32(e.sessionId);if(e.shortConnect!==void 0)n.uint32(80).bool(e.shortConnect);if(e.connectType!==void 0)n.uint32(96).int32(e.connectType);if(e.connectReason!==void 0)n.uint32(104).int32(e.connectReason);if(e.shards!==void 0&&e.shards.length!==0)for(let i of e.shards)n.uint32(112).int32(i);if(e.dnsSource!==void 0)Rt.encode(e.dnsSource,n.uint32(122).fork()).join();if(e.connectAttemptCount!==void 0)n.uint32(128).uint32(e.connectAttemptCount);if(e.device!==void 0)n.uint32(144).uint32(e.device);if(e.devicePairingData!==void 0)Dt.encode(e.devicePairingData,n.uint32(154).fork()).join();if(e.product!==void 0)n.uint32(160).int32(e.product);if(e.fbCat!==void 0)n.uint32(170).bytes(e.fbCat);if(e.fbUserAgent!==void 0)n.uint32(178).bytes(e.fbUserAgent);if(e.oc!==void 0)n.uint32(184).bool(e.oc);if(e.lc!==void 0)n.uint32(192).int32(e.lc);if(e.iosAppExtension!==void 0)n.uint32(240).int32(e.iosAppExtension);if(e.fbAppId!==void 0)n.uint32(248).uint64(e.fbAppId);if(e.fbDeviceId!==void 0)n.uint32(258).bytes(e.fbDeviceId);if(e.pull!==void 0)n.uint32(264).bool(e.pull);if(e.paddingBytes!==void 0)n.uint32(274).bytes(e.paddingBytes);if(e.yearClass!==void 0)n.uint32(288).int32(e.yearClass);if(e.memClass!==void 0)n.uint32(296).int32(e.memClass);if(e.interopData!==void 0)Et.encode(e.interopData,n.uint32(306).fork()).join();if(e.trafficAnonymization!==void 0)n.uint32(320).int32(e.trafficAnonymization);if(e.lidDbMigrated!==void 0)n.uint32(328).bool(e.lidDbMigrated);if(e.accountType!==void 0)n.uint32(336).int32(e.accountType);if(e.connectionSequenceInfo!==void 0)n.uint32(349).sfixed32(e.connectionSequenceInfo);if(e.paaLink!==void 0)n.uint32(352).bool(e.paaLink);if(e.preacksCount!==void 0)n.uint32(360).int32(e.preacksCount);if(e.processingQueueSize!==void 0)n.uint32(368).int32(e.processingQueueSize);if(e.pairedPeripherals!==void 0&&e.pairedPeripherals.length!==0)for(let i of e.pairedPeripherals)n.uint32(378).string(i);if(e.testIsolationId!==void 0)n.uint32(386).bytes(e.testIsolationId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Yp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.username=i.uint64Number();continue}case 3:{if(t!==24)break;a.passive=i.bool();continue}case 5:{if(t!==42)break;a.userAgent=Bt.decode(i,i.uint32());continue}case 6:{if(t!==50)break;a.webInfo=vt.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.pushName=i.string();continue}case 9:{if(t!==77)break;a.sessionId=i.sfixed32();continue}case 10:{if(t!==80)break;a.shortConnect=i.bool();continue}case 12:{if(t!==96)break;a.connectType=i.int32();continue}case 13:{if(t!==104)break;a.connectReason=i.int32();continue}case 14:{if(t===112){if(a.shards===void 0)a.shards=[];a.shards.push(i.int32());continue}if(t===114){if(a.shards===void 0)a.shards=[];let o=i.uint32()+i.pos;while(i.pos<o)a.shards.push(i.int32());continue}break}case 15:{if(t!==122)break;a.dnsSource=Rt.decode(i,i.uint32());continue}case 16:{if(t!==128)break;a.connectAttemptCount=i.uint32();continue}case 18:{if(t!==144)break;a.device=i.uint32();continue}case 19:{if(t!==154)break;a.devicePairingData=Dt.decode(i,i.uint32());continue}case 20:{if(t!==160)break;a.product=i.int32();continue}case 21:{if(t!==170)break;a.fbCat=i.bytes();continue}case 22:{if(t!==178)break;a.fbUserAgent=i.bytes();continue}case 23:{if(t!==184)break;a.oc=i.bool();continue}case 24:{if(t!==192)break;a.lc=i.int32();continue}case 30:{if(t!==240)break;a.iosAppExtension=i.int32();continue}case 31:{if(t!==248)break;a.fbAppId=i.uint64Number();continue}case 32:{if(t!==258)break;a.fbDeviceId=i.bytes();continue}case 33:{if(t!==264)break;a.pull=i.bool();continue}case 34:{if(t!==274)break;a.paddingBytes=i.bytes();continue}case 36:{if(t!==288)break;a.yearClass=i.int32();continue}case 37:{if(t!==296)break;a.memClass=i.int32();continue}case 38:{if(t!==306)break;a.interopData=Et.decode(i,i.uint32());continue}case 40:{if(t!==320)break;a.trafficAnonymization=i.int32();continue}case 41:{if(t!==328)break;a.lidDbMigrated=i.bool();continue}case 42:{if(t!==336)break;a.accountType=i.int32();continue}case 43:{if(t!==349)break;a.connectionSequenceInfo=i.sfixed32();continue}case 44:{if(t!==352)break;a.paaLink=i.bool();continue}case 45:{if(t!==360)break;a.preacksCount=i.int32();continue}case 46:{if(t!==368)break;a.processingQueueSize=i.int32();continue}case 47:{if(t!==378)break;if(a.pairedPeripherals===void 0)a.pairedPeripherals=[];let o=i.string();if(o!==void 0)a.pairedPeripherals.push(o);continue}case 48:{if(t!==386)break;a.testIsolationId=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Gc.fromPartial(e??{})},fromPartial(e){let n=Yp();return n.username=e.username??void 0,n.passive=e.passive??void 0,n.userAgent=e.userAgent!==void 0&&e.userAgent!==null?Bt.fromPartial(e.userAgent):void 0,n.webInfo=e.webInfo!==void 0&&e.webInfo!==null?vt.fromPartial(e.webInfo):void 0,n.pushName=e.pushName??void 0,n.sessionId=e.sessionId??void 0,n.shortConnect=e.shortConnect??void 0,n.connectType=e.connectType??void 0,n.connectReason=e.connectReason??void 0,n.shards=e.shards?.map((i)=>i)||void 0,n.dnsSource=e.dnsSource!==void 0&&e.dnsSource!==null?Rt.fromPartial(e.dnsSource):void 0,n.connectAttemptCount=e.connectAttemptCount??void 0,n.device=e.device??void 0,n.devicePairingData=e.devicePairingData!==void 0&&e.devicePairingData!==null?Dt.fromPartial(e.devicePairingData):void 0,n.product=e.product??void 0,n.fbCat=e.fbCat??void 0,n.fbUserAgent=e.fbUserAgent??void 0,n.oc=e.oc??void 0,n.lc=e.lc??void 0,n.iosAppExtension=e.iosAppExtension??void 0,n.fbAppId=e.fbAppId??void 0,n.fbDeviceId=e.fbDeviceId??void 0,n.pull=e.pull??void 0,n.paddingBytes=e.paddingBytes??void 0,n.yearClass=e.yearClass??void 0,n.memClass=e.memClass??void 0,n.interopData=e.interopData!==void 0&&e.interopData!==null?Et.fromPartial(e.interopData):void 0,n.trafficAnonymization=e.trafficAnonymization??void 0,n.lidDbMigrated=e.lidDbMigrated??void 0,n.accountType=e.accountType??void 0,n.connectionSequenceInfo=e.connectionSequenceInfo??void 0,n.paaLink=e.paaLink??void 0,n.preacksCount=e.preacksCount??void 0,n.processingQueueSize=e.processingQueueSize??void 0,n.pairedPeripherals=e.pairedPeripherals?.map((i)=>i)||void 0,n.testIsolationId=e.testIsolationId??void 0,n}};function Zp(){return{}}var Rt={encode(e,n=new s){if(e.dnsMethod!==void 0)n.uint32(120).int32(e.dnsMethod);if(e.appCached!==void 0)n.uint32(128).bool(e.appCached);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Zp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 15:{if(t!==120)break;a.dnsMethod=i.int32();continue}case 16:{if(t!==128)break;a.appCached=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Rt.fromPartial(e??{})},fromPartial(e){let n=Zp();return n.dnsMethod=e.dnsMethod??void 0,n.appCached=e.appCached??void 0,n}};function Xp(){return{}}var Dt={encode(e,n=new s){if(e.eRegid!==void 0)n.uint32(10).bytes(e.eRegid);if(e.eKeytype!==void 0)n.uint32(18).bytes(e.eKeytype);if(e.eIdent!==void 0)n.uint32(26).bytes(e.eIdent);if(e.eSkeyId!==void 0)n.uint32(34).bytes(e.eSkeyId);if(e.eSkeyVal!==void 0)n.uint32(42).bytes(e.eSkeyVal);if(e.eSkeySig!==void 0)n.uint32(50).bytes(e.eSkeySig);if(e.buildHash!==void 0)n.uint32(58).bytes(e.buildHash);if(e.deviceProps!==void 0)n.uint32(66).bytes(e.deviceProps);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Xp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.eRegid=i.bytes();continue}case 2:{if(t!==18)break;a.eKeytype=i.bytes();continue}case 3:{if(t!==26)break;a.eIdent=i.bytes();continue}case 4:{if(t!==34)break;a.eSkeyId=i.bytes();continue}case 5:{if(t!==42)break;a.eSkeyVal=i.bytes();continue}case 6:{if(t!==50)break;a.eSkeySig=i.bytes();continue}case 7:{if(t!==58)break;a.buildHash=i.bytes();continue}case 8:{if(t!==66)break;a.deviceProps=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Dt.fromPartial(e??{})},fromPartial(e){let n=Xp();return n.eRegid=e.eRegid??void 0,n.eKeytype=e.eKeytype??void 0,n.eIdent=e.eIdent??void 0,n.eSkeyId=e.eSkeyId??void 0,n.eSkeyVal=e.eSkeyVal??void 0,n.eSkeySig=e.eSkeySig??void 0,n.buildHash=e.buildHash??void 0,n.deviceProps=e.deviceProps??void 0,n}};function $p(){return{}}var Et={encode(e,n=new s){if(e.accountId!==void 0)n.uint32(8).uint64(e.accountId);if(e.token!==void 0)n.uint32(18).bytes(e.token);if(e.enableReadReceipts!==void 0)n.uint32(24).bool(e.enableReadReceipts);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=$p();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.accountId=i.uint64Number();continue}case 2:{if(t!==18)break;a.token=i.bytes();continue}case 3:{if(t!==24)break;a.enableReadReceipts=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Et.fromPartial(e??{})},fromPartial(e){let n=$p();return n.accountId=e.accountId??void 0,n.token=e.token??void 0,n.enableReadReceipts=e.enableReadReceipts??void 0,n}};function jp(){return{}}var Bt={encode(e,n=new s){if(e.platform!==void 0)n.uint32(8).int32(e.platform);if(e.appVersion!==void 0)Ct.encode(e.appVersion,n.uint32(18).fork()).join();if(e.mcc!==void 0)n.uint32(26).string(e.mcc);if(e.mnc!==void 0)n.uint32(34).string(e.mnc);if(e.osVersion!==void 0)n.uint32(42).string(e.osVersion);if(e.manufacturer!==void 0)n.uint32(50).string(e.manufacturer);if(e.device!==void 0)n.uint32(58).string(e.device);if(e.osBuildNumber!==void 0)n.uint32(66).string(e.osBuildNumber);if(e.phoneId!==void 0)n.uint32(74).string(e.phoneId);if(e.releaseChannel!==void 0)n.uint32(80).int32(e.releaseChannel);if(e.localeLanguageIso6391!==void 0)n.uint32(90).string(e.localeLanguageIso6391);if(e.localeCountryIso31661Alpha2!==void 0)n.uint32(98).string(e.localeCountryIso31661Alpha2);if(e.deviceBoard!==void 0)n.uint32(106).string(e.deviceBoard);if(e.deviceExpId!==void 0)n.uint32(114).string(e.deviceExpId);if(e.deviceType!==void 0)n.uint32(120).int32(e.deviceType);if(e.deviceModelType!==void 0)n.uint32(130).string(e.deviceModelType);if(e.distributionChannel!==void 0)n.uint32(136).int32(e.distributionChannel);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=jp();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.platform=i.int32();continue}case 2:{if(t!==18)break;a.appVersion=Ct.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.mcc=i.string();continue}case 4:{if(t!==34)break;a.mnc=i.string();continue}case 5:{if(t!==42)break;a.osVersion=i.string();continue}case 6:{if(t!==50)break;a.manufacturer=i.string();continue}case 7:{if(t!==58)break;a.device=i.string();continue}case 8:{if(t!==66)break;a.osBuildNumber=i.string();continue}case 9:{if(t!==74)break;a.phoneId=i.string();continue}case 10:{if(t!==80)break;a.releaseChannel=i.int32();continue}case 11:{if(t!==90)break;a.localeLanguageIso6391=i.string();continue}case 12:{if(t!==98)break;a.localeCountryIso31661Alpha2=i.string();continue}case 13:{if(t!==106)break;a.deviceBoard=i.string();continue}case 14:{if(t!==114)break;a.deviceExpId=i.string();continue}case 15:{if(t!==120)break;a.deviceType=i.int32();continue}case 16:{if(t!==130)break;a.deviceModelType=i.string();continue}case 17:{if(t!==136)break;a.distributionChannel=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Bt.fromPartial(e??{})},fromPartial(e){let n=jp();return n.platform=e.platform??void 0,n.appVersion=e.appVersion!==void 0&&e.appVersion!==null?Ct.fromPartial(e.appVersion):void 0,n.mcc=e.mcc??void 0,n.mnc=e.mnc??void 0,n.osVersion=e.osVersion??void 0,n.manufacturer=e.manufacturer??void 0,n.device=e.device??void 0,n.osBuildNumber=e.osBuildNumber??void 0,n.phoneId=e.phoneId??void 0,n.releaseChannel=e.releaseChannel??void 0,n.localeLanguageIso6391=e.localeLanguageIso6391??void 0,n.localeCountryIso31661Alpha2=e.localeCountryIso31661Alpha2??void 0,n.deviceBoard=e.deviceBoard??void 0,n.deviceExpId=e.deviceExpId??void 0,n.deviceType=e.deviceType??void 0,n.deviceModelType=e.deviceModelType??void 0,n.distributionChannel=e.distributionChannel??void 0,n}};function eg(){return{}}var Ct={encode(e,n=new s){if(e.primary!==void 0)n.uint32(8).uint32(e.primary);if(e.secondary!==void 0)n.uint32(16).uint32(e.secondary);if(e.tertiary!==void 0)n.uint32(24).uint32(e.tertiary);if(e.quaternary!==void 0)n.uint32(32).uint32(e.quaternary);if(e.quinary!==void 0)n.uint32(40).uint32(e.quinary);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=eg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.primary=i.uint32();continue}case 2:{if(t!==16)break;a.secondary=i.uint32();continue}case 3:{if(t!==24)break;a.tertiary=i.uint32();continue}case 4:{if(t!==32)break;a.quaternary=i.uint32();continue}case 5:{if(t!==40)break;a.quinary=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ct.fromPartial(e??{})},fromPartial(e){let n=eg();return n.primary=e.primary??void 0,n.secondary=e.secondary??void 0,n.tertiary=e.tertiary??void 0,n.quaternary=e.quaternary??void 0,n.quinary=e.quinary??void 0,n}};function ng(){return{}}var vt={encode(e,n=new s){if(e.refToken!==void 0)n.uint32(10).string(e.refToken);if(e.version!==void 0)n.uint32(18).string(e.version);if(e.webdPayload!==void 0)xt.encode(e.webdPayload,n.uint32(26).fork()).join();if(e.webSubPlatform!==void 0)n.uint32(32).int32(e.webSubPlatform);if(e.browser!==void 0)n.uint32(42).string(e.browser);if(e.browserVersion!==void 0)n.uint32(50).string(e.browserVersion);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ng();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.refToken=i.string();continue}case 2:{if(t!==18)break;a.version=i.string();continue}case 3:{if(t!==26)break;a.webdPayload=xt.decode(i,i.uint32());continue}case 4:{if(t!==32)break;a.webSubPlatform=i.int32();continue}case 5:{if(t!==42)break;a.browser=i.string();continue}case 6:{if(t!==50)break;a.browserVersion=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return vt.fromPartial(e??{})},fromPartial(e){let n=ng();return n.refToken=e.refToken??void 0,n.version=e.version??void 0,n.webdPayload=e.webdPayload!==void 0&&e.webdPayload!==null?xt.fromPartial(e.webdPayload):void 0,n.webSubPlatform=e.webSubPlatform??void 0,n.browser=e.browser??void 0,n.browserVersion=e.browserVersion??void 0,n}};function ig(){return{}}var xt={encode(e,n=new s){if(e.usesParticipantInKey!==void 0)n.uint32(8).bool(e.usesParticipantInKey);if(e.supportsStarredMessages!==void 0)n.uint32(16).bool(e.supportsStarredMessages);if(e.supportsDocumentMessages!==void 0)n.uint32(24).bool(e.supportsDocumentMessages);if(e.supportsUrlMessages!==void 0)n.uint32(32).bool(e.supportsUrlMessages);if(e.supportsMediaRetry!==void 0)n.uint32(40).bool(e.supportsMediaRetry);if(e.supportsE2EImage!==void 0)n.uint32(48).bool(e.supportsE2EImage);if(e.supportsE2EVideo!==void 0)n.uint32(56).bool(e.supportsE2EVideo);if(e.supportsE2EAudio!==void 0)n.uint32(64).bool(e.supportsE2EAudio);if(e.supportsE2EDocument!==void 0)n.uint32(72).bool(e.supportsE2EDocument);if(e.documentTypes!==void 0)n.uint32(82).string(e.documentTypes);if(e.features!==void 0)n.uint32(90).bytes(e.features);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ig();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.usesParticipantInKey=i.bool();continue}case 2:{if(t!==16)break;a.supportsStarredMessages=i.bool();continue}case 3:{if(t!==24)break;a.supportsDocumentMessages=i.bool();continue}case 4:{if(t!==32)break;a.supportsUrlMessages=i.bool();continue}case 5:{if(t!==40)break;a.supportsMediaRetry=i.bool();continue}case 6:{if(t!==48)break;a.supportsE2EImage=i.bool();continue}case 7:{if(t!==56)break;a.supportsE2EVideo=i.bool();continue}case 8:{if(t!==64)break;a.supportsE2EAudio=i.bool();continue}case 9:{if(t!==72)break;a.supportsE2EDocument=i.bool();continue}case 10:{if(t!==82)break;a.documentTypes=i.string();continue}case 11:{if(t!==90)break;a.features=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return xt.fromPartial(e??{})},fromPartial(e){let n=ig();return n.usesParticipantInKey=e.usesParticipantInKey??void 0,n.supportsStarredMessages=e.supportsStarredMessages??void 0,n.supportsDocumentMessages=e.supportsDocumentMessages??void 0,n.supportsUrlMessages=e.supportsUrlMessages??void 0,n.supportsMediaRetry=e.supportsMediaRetry??void 0,n.supportsE2EImage=e.supportsE2EImage??void 0,n.supportsE2EVideo=e.supportsE2EVideo??void 0,n.supportsE2EAudio=e.supportsE2EAudio??void 0,n.supportsE2EDocument=e.supportsE2EDocument??void 0,n.documentTypes=e.documentTypes??void 0,n.features=e.features??void 0,n}};function tg(){return{}}var DI={encode(e,n=new s){if(e.version!==void 0)n.uint32(8).uint32(e.version);if(e.localFingerprint!==void 0)Fe.encode(e.localFingerprint,n.uint32(18).fork()).join();if(e.remoteFingerprint!==void 0)Fe.encode(e.remoteFingerprint,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=tg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.version=i.uint32();continue}case 2:{if(t!==18)break;a.localFingerprint=Fe.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.remoteFingerprint=Fe.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return DI.fromPartial(e??{})},fromPartial(e){let n=tg();return n.version=e.version??void 0,n.localFingerprint=e.localFingerprint!==void 0&&e.localFingerprint!==null?Fe.fromPartial(e.localFingerprint):void 0,n.remoteFingerprint=e.remoteFingerprint!==void 0&&e.remoteFingerprint!==null?Fe.fromPartial(e.remoteFingerprint):void 0,n}};function ag(){return{}}var Nt={encode(e,n=new s){if(e.commandType!==void 0)n.uint32(8).int32(e.commandType);if(e.offset!==void 0)n.uint32(16).uint32(e.offset);if(e.length!==void 0)n.uint32(24).uint32(e.length);if(e.validationToken!==void 0)n.uint32(34).string(e.validationToken);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ag();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.commandType=i.int32();continue}case 2:{if(t!==16)break;a.offset=i.uint32();continue}case 3:{if(t!==24)break;a.length=i.uint32();continue}case 4:{if(t!==34)break;a.validationToken=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Nt.fromPartial(e??{})},fromPartial(e){let n=ag();return n.commandType=e.commandType??void 0,n.offset=e.offset??void 0,n.length=e.length??void 0,n.validationToken=e.validationToken??void 0,n}};function rg(){return{}}var Ot={encode(e,n=new s){if(e.commentParentKey!==void 0)_.encode(e.commentParentKey,n.uint32(10).fork()).join();if(e.replyCount!==void 0)n.uint32(16).uint32(e.replyCount);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=rg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.commentParentKey=_.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.replyCount=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ot.fromPartial(e??{})},fromPartial(e){let n=rg();return n.commentParentKey=e.commentParentKey!==void 0&&e.commentParentKey!==null?_.fromPartial(e.commentParentKey):void 0,n.replyCount=e.replyCount??void 0,n}};function dg(){return{}}var Ut={encode(e,n=new s){if(e.hash!==void 0)n.uint32(10).bytes(e.hash);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=dg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.hash=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ut.fromPartial(e??{})},fromPartial(e){let n=dg();return n.hash=e.hash??void 0,n}};function og(){return{}}var EI={encode(e,n=new s){if(e.publicKey!==void 0)n.uint32(10).bytes(e.publicKey);if(e.deviceType!==void 0)n.uint32(16).int32(e.deviceType);if(e.ref!==void 0)n.uint32(26).string(e.ref);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=og();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.publicKey=i.bytes();continue}case 2:{if(t!==16)break;a.deviceType=i.int32();continue}case 3:{if(t!==26)break;a.ref=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return EI.fromPartial(e??{})},fromPartial(e){let n=og();return n.publicKey=e.publicKey??void 0,n.deviceType=e.deviceType??void 0,n.ref=e.ref??void 0,n}};function sg(){return{}}var BI={encode(e,n=new s){if(globalThis.Object.entries(e.field||{}).forEach(([i,r])=>{Tc.encode({key:i,value:r},n.uint32(10).fork()).join()}),e.version!==void 0)n.uint32(16).uint32(e.version);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=sg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;let o=Tc.decode(i,i.uint32());if(o.value!==void 0&&o.key!==void 0){if(a.field===void 0)a.field={};a.field[o.key]=o.value}continue}case 2:{if(t!==16)break;a.version=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return BI.fromPartial(e??{})},fromPartial(e){let n=sg();return n.field=e.field===void 0||e.field===null?void 0:globalThis.Object.entries(e.field??{}).reduce((i,[r,a])=>{if(a!==void 0)i[globalThis.Number(r)]=De.fromPartial(a);return i},{}),n.version=e.version??void 0,n}};function ug(){return{}}var Tc={encode(e,n=new s){if(e.key!==void 0)n.uint32(8).uint32(e.key);if(e.value!==void 0)De.encode(e.value,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ug();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.key=i.uint32();continue}case 2:{if(t!==18)break;a.value=De.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Tc.fromPartial(e??{})},fromPartial(e){let n=ug();return n.key=e.key??void 0,n.value=e.value!==void 0&&e.value!==null?De.fromPartial(e.value):void 0,n}};function cg(){return{}}var CI={encode(e,n=new s){if(e.payload!==void 0)Jt.encode(e.payload,n.uint32(10).fork()).join();if(e.metadata!==void 0)Gt.encode(e.metadata,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=cg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.payload=Jt.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.metadata=Gt.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return CI.fromPartial(e??{})},fromPartial(e){let n=cg();return n.payload=e.payload!==void 0&&e.payload!==null?Jt.fromPartial(e.payload):void 0,n.metadata=e.metadata!==void 0&&e.metadata!==null?Gt.fromPartial(e.metadata):void 0,n}};function fg(){return{}}var Tt={encode(e,n=new s){if(e.revoke!==void 0)Xt.encode(e.revoke,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=fg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.revoke=Xt.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Tt.fromPartial(e??{})},fromPartial(e){let n=fg();return n.revoke=e.revoke!==void 0&&e.revoke!==null?Xt.fromPartial(e.revoke):void 0,n}};function lg(){return{}}var Lt={encode(e,n=new s){if(e.audio!==void 0)q.encode(e.audio,n.uint32(10).fork()).join();if(e.ptt!==void 0)n.uint32(16).bool(e.ptt);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=lg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.audio=q.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.ptt=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Lt.fromPartial(e??{})},fromPartial(e){let n=lg();return n.audio=e.audio!==void 0&&e.audio!==null?q.fromPartial(e.audio):void 0,n.ptt=e.ptt??void 0,n}};function pg(){return{}}var je={encode(e,n=new s){if(e.contact!==void 0)q.encode(e.contact,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=pg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.contact=q.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return je.fromPartial(e??{})},fromPartial(e){let n=pg();return n.contact=e.contact!==void 0&&e.contact!==null?q.fromPartial(e.contact):void 0,n}};function gg(){return{}}var wt={encode(e,n=new s){if(e.displayName!==void 0)n.uint32(10).string(e.displayName);if(e.contacts!==void 0&&e.contacts.length!==0)for(let i of e.contacts)je.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=gg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.displayName=i.string();continue}case 2:{if(t!==18)break;if(a.contacts===void 0)a.contacts=[];let o=je.decode(i,i.uint32());if(o!==void 0)a.contacts.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return wt.fromPartial(e??{})},fromPartial(e){let n=gg();return n.displayName=e.displayName??void 0,n.contacts=e.contacts?.map((i)=>je.fromPartial(i))||void 0,n}};function yg(){return{}}var Ft={encode(e,n=new s){if(e.messageText!==void 0)Q.encode(e.messageText,n.uint32(10).fork()).join();if(e.imageMessage!==void 0)nn.encode(e.imageMessage,n.uint32(18).fork()).join();if(e.contactMessage!==void 0)je.encode(e.contactMessage,n.uint32(26).fork()).join();if(e.locationMessage!==void 0)qt.encode(e.locationMessage,n.uint32(34).fork()).join();if(e.extendedTextMessage!==void 0)en.encode(e.extendedTextMessage,n.uint32(42).fork()).join();if(e.statusTextMessage!==void 0)jt.encode(e.statusTextMessage,n.uint32(50).fork()).join();if(e.documentMessage!==void 0)Vt.encode(e.documentMessage,n.uint32(58).fork()).join();if(e.audioMessage!==void 0)Lt.encode(e.audioMessage,n.uint32(66).fork()).join();if(e.videoMessage!==void 0)an.encode(e.videoMessage,n.uint32(74).fork()).join();if(e.contactsArrayMessage!==void 0)wt.encode(e.contactsArrayMessage,n.uint32(82).fork()).join();if(e.liveLocationMessage!==void 0)Ht.encode(e.liveLocationMessage,n.uint32(90).fork()).join();if(e.stickerMessage!==void 0)ea.encode(e.stickerMessage,n.uint32(98).fork()).join();if(e.groupInviteMessage!==void 0)Wt.encode(e.groupInviteMessage,n.uint32(106).fork()).join();if(e.viewOnceMessage!==void 0)ia.encode(e.viewOnceMessage,n.uint32(114).fork()).join();if(e.reactionMessage!==void 0)Zt.encode(e.reactionMessage,n.uint32(130).fork()).join();if(e.pollCreationMessage!==void 0)zt.encode(e.pollCreationMessage,n.uint32(138).fork()).join();if(e.pollUpdateMessage!==void 0)Yt.encode(e.pollUpdateMessage,n.uint32(146).fork()).join();if(e.editMessage!==void 0)Kt.encode(e.editMessage,n.uint32(154).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=yg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.messageText=Q.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.imageMessage=nn.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.contactMessage=je.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.locationMessage=qt.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.extendedTextMessage=en.decode(i,i.uint32());continue}case 6:{if(t!==50)break;a.statusTextMessage=jt.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.documentMessage=Vt.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.audioMessage=Lt.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.videoMessage=an.decode(i,i.uint32());continue}case 10:{if(t!==82)break;a.contactsArrayMessage=wt.decode(i,i.uint32());continue}case 11:{if(t!==90)break;a.liveLocationMessage=Ht.decode(i,i.uint32());continue}case 12:{if(t!==98)break;a.stickerMessage=ea.decode(i,i.uint32());continue}case 13:{if(t!==106)break;a.groupInviteMessage=Wt.decode(i,i.uint32());continue}case 14:{if(t!==114)break;a.viewOnceMessage=ia.decode(i,i.uint32());continue}case 16:{if(t!==130)break;a.reactionMessage=Zt.decode(i,i.uint32());continue}case 17:{if(t!==138)break;a.pollCreationMessage=zt.decode(i,i.uint32());continue}case 18:{if(t!==146)break;a.pollUpdateMessage=Yt.decode(i,i.uint32());continue}case 19:{if(t!==154)break;a.editMessage=Kt.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ft.fromPartial(e??{})},fromPartial(e){let n=yg();return n.messageText=e.messageText!==void 0&&e.messageText!==null?Q.fromPartial(e.messageText):void 0,n.imageMessage=e.imageMessage!==void 0&&e.imageMessage!==null?nn.fromPartial(e.imageMessage):void 0,n.contactMessage=e.contactMessage!==void 0&&e.contactMessage!==null?je.fromPartial(e.contactMessage):void 0,n.locationMessage=e.locationMessage!==void 0&&e.locationMessage!==null?qt.fromPartial(e.locationMessage):void 0,n.extendedTextMessage=e.extendedTextMessage!==void 0&&e.extendedTextMessage!==null?en.fromPartial(e.extendedTextMessage):void 0,n.statusTextMessage=e.statusTextMessage!==void 0&&e.statusTextMessage!==null?jt.fromPartial(e.statusTextMessage):void 0,n.documentMessage=e.documentMessage!==void 0&&e.documentMessage!==null?Vt.fromPartial(e.documentMessage):void 0,n.audioMessage=e.audioMessage!==void 0&&e.audioMessage!==null?Lt.fromPartial(e.audioMessage):void 0,n.videoMessage=e.videoMessage!==void 0&&e.videoMessage!==null?an.fromPartial(e.videoMessage):void 0,n.contactsArrayMessage=e.contactsArrayMessage!==void 0&&e.contactsArrayMessage!==null?wt.fromPartial(e.contactsArrayMessage):void 0,n.liveLocationMessage=e.liveLocationMessage!==void 0&&e.liveLocationMessage!==null?Ht.fromPartial(e.liveLocationMessage):void 0,n.stickerMessage=e.stickerMessage!==void 0&&e.stickerMessage!==null?ea.fromPartial(e.stickerMessage):void 0,n.groupInviteMessage=e.groupInviteMessage!==void 0&&e.groupInviteMessage!==null?Wt.fromPartial(e.groupInviteMessage):void 0,n.viewOnceMessage=e.viewOnceMessage!==void 0&&e.viewOnceMessage!==null?ia.fromPartial(e.viewOnceMessage):void 0,n.reactionMessage=e.reactionMessage!==void 0&&e.reactionMessage!==null?Zt.fromPartial(e.reactionMessage):void 0,n.pollCreationMessage=e.pollCreationMessage!==void 0&&e.pollCreationMessage!==null?zt.fromPartial(e.pollCreationMessage):void 0,n.pollUpdateMessage=e.pollUpdateMessage!==void 0&&e.pollUpdateMessage!==null?Yt.fromPartial(e.pollUpdateMessage):void 0,n.editMessage=e.editMessage!==void 0&&e.editMessage!==null?Kt.fromPartial(e.editMessage):void 0,n}};function Mg(){return{}}var Vt={encode(e,n=new s){if(e.document!==void 0)q.encode(e.document,n.uint32(10).fork()).join();if(e.fileName!==void 0)n.uint32(18).string(e.fileName);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Mg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.document=q.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.fileName=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Vt.fromPartial(e??{})},fromPartial(e){let n=Mg();return n.document=e.document!==void 0&&e.document!==null?q.fromPartial(e.document):void 0,n.fileName=e.fileName??void 0,n}};function mg(){return{}}var Kt={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.message!==void 0)Q.encode(e.message,n.uint32(18).fork()).join();if(e.timestampMs!==void 0)n.uint32(24).int64(e.timestampMs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=mg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.message=Q.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.timestampMs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Kt.fromPartial(e??{})},fromPartial(e){let n=mg();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.message=e.message!==void 0&&e.message!==null?Q.fromPartial(e.message):void 0,n.timestampMs=e.timestampMs??void 0,n}};function _g(){return{}}var en={encode(e,n=new s){if(e.text!==void 0)Q.encode(e.text,n.uint32(10).fork()).join();if(e.matchedText!==void 0)n.uint32(18).string(e.matchedText);if(e.canonicalUrl!==void 0)n.uint32(26).string(e.canonicalUrl);if(e.description!==void 0)n.uint32(34).string(e.description);if(e.title!==void 0)n.uint32(42).string(e.title);if(e.thumbnail!==void 0)q.encode(e.thumbnail,n.uint32(50).fork()).join();if(e.previewType!==void 0)n.uint32(56).int32(e.previewType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=_g();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.text=Q.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.matchedText=i.string();continue}case 3:{if(t!==26)break;a.canonicalUrl=i.string();continue}case 4:{if(t!==34)break;a.description=i.string();continue}case 5:{if(t!==42)break;a.title=i.string();continue}case 6:{if(t!==50)break;a.thumbnail=q.decode(i,i.uint32());continue}case 7:{if(t!==56)break;a.previewType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return en.fromPartial(e??{})},fromPartial(e){let n=_g();return n.text=e.text!==void 0&&e.text!==null?Q.fromPartial(e.text):void 0,n.matchedText=e.matchedText??void 0,n.canonicalUrl=e.canonicalUrl??void 0,n.description=e.description??void 0,n.title=e.title??void 0,n.thumbnail=e.thumbnail!==void 0&&e.thumbnail!==null?q.fromPartial(e.thumbnail):void 0,n.previewType=e.previewType??void 0,n}};function hg(){return{}}var Wt={encode(e,n=new s){if(e.groupJid!==void 0)n.uint32(10).string(e.groupJid);if(e.inviteCode!==void 0)n.uint32(18).string(e.inviteCode);if(e.inviteExpiration!==void 0)n.uint32(24).int64(e.inviteExpiration);if(e.groupName!==void 0)n.uint32(34).string(e.groupName);if(e.jpegThumbnail!==void 0)n.uint32(42).bytes(e.jpegThumbnail);if(e.caption!==void 0)Q.encode(e.caption,n.uint32(50).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=hg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.groupJid=i.string();continue}case 2:{if(t!==18)break;a.inviteCode=i.string();continue}case 3:{if(t!==24)break;a.inviteExpiration=i.int64Number();continue}case 4:{if(t!==34)break;a.groupName=i.string();continue}case 5:{if(t!==42)break;a.jpegThumbnail=i.bytes();continue}case 6:{if(t!==50)break;a.caption=Q.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Wt.fromPartial(e??{})},fromPartial(e){let n=hg();return n.groupJid=e.groupJid??void 0,n.inviteCode=e.inviteCode??void 0,n.inviteExpiration=e.inviteExpiration??void 0,n.groupName=e.groupName??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.caption=e.caption!==void 0&&e.caption!==null?Q.fromPartial(e.caption):void 0,n}};function kg(){return{}}var nn={encode(e,n=new s){if(e.image!==void 0)q.encode(e.image,n.uint32(10).fork()).join();if(e.caption!==void 0)Q.encode(e.caption,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=kg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.image=q.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.caption=Q.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return nn.fromPartial(e??{})},fromPartial(e){let n=kg();return n.image=e.image!==void 0&&e.image!==null?q.fromPartial(e.image):void 0,n.caption=e.caption!==void 0&&e.caption!==null?Q.fromPartial(e.caption):void 0,n}};function Ag(){return{}}var vI={encode(e,n=new s){if(e.polygonVertices!==void 0&&e.polygonVertices.length!==0)for(let i of e.polygonVertices)Qt.encode(i,n.uint32(10).fork()).join();if(e.location!==void 0)ge.encode(e.location,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ag();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.polygonVertices===void 0)a.polygonVertices=[];let o=Qt.decode(i,i.uint32());if(o!==void 0)a.polygonVertices.push(o);continue}case 2:{if(t!==18)break;a.location=ge.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return vI.fromPartial(e??{})},fromPartial(e){let n=Ag();return n.polygonVertices=e.polygonVertices?.map((i)=>Qt.fromPartial(i))||void 0,n.location=e.location!==void 0&&e.location!==null?ge.fromPartial(e.location):void 0,n}};function Sg(){return{}}var Ht={encode(e,n=new s){if(e.location!==void 0)ge.encode(e.location,n.uint32(10).fork()).join();if(e.accuracyInMeters!==void 0)n.uint32(16).uint32(e.accuracyInMeters);if(e.speedInMps!==void 0)n.uint32(29).float(e.speedInMps);if(e.degreesClockwiseFromMagneticNorth!==void 0)n.uint32(32).uint32(e.degreesClockwiseFromMagneticNorth);if(e.caption!==void 0)Q.encode(e.caption,n.uint32(42).fork()).join();if(e.sequenceNumber!==void 0)n.uint32(48).int64(e.sequenceNumber);if(e.timeOffset!==void 0)n.uint32(56).uint32(e.timeOffset);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Sg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.location=ge.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.accuracyInMeters=i.uint32();continue}case 3:{if(t!==29)break;a.speedInMps=i.float();continue}case 4:{if(t!==32)break;a.degreesClockwiseFromMagneticNorth=i.uint32();continue}case 5:{if(t!==42)break;a.caption=Q.decode(i,i.uint32());continue}case 6:{if(t!==48)break;a.sequenceNumber=i.int64Number();continue}case 7:{if(t!==56)break;a.timeOffset=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ht.fromPartial(e??{})},fromPartial(e){let n=Sg();return n.location=e.location!==void 0&&e.location!==null?ge.fromPartial(e.location):void 0,n.accuracyInMeters=e.accuracyInMeters??void 0,n.speedInMps=e.speedInMps??void 0,n.degreesClockwiseFromMagneticNorth=e.degreesClockwiseFromMagneticNorth??void 0,n.caption=e.caption!==void 0&&e.caption!==null?Q.fromPartial(e.caption):void 0,n.sequenceNumber=e.sequenceNumber??void 0,n.timeOffset=e.timeOffset??void 0,n}};function Pg(){return{}}var ge={encode(e,n=new s){if(e.degreesLatitude!==void 0)n.uint32(9).double(e.degreesLatitude);if(e.degreesLongitude!==void 0)n.uint32(17).double(e.degreesLongitude);if(e.name!==void 0)n.uint32(26).string(e.name);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Pg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==9)break;a.degreesLatitude=i.double();continue}case 2:{if(t!==17)break;a.degreesLongitude=i.double();continue}case 3:{if(t!==26)break;a.name=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ge.fromPartial(e??{})},fromPartial(e){let n=Pg();return n.degreesLatitude=e.degreesLatitude??void 0,n.degreesLongitude=e.degreesLongitude??void 0,n.name=e.name??void 0,n}};function bg(){return{}}var qt={encode(e,n=new s){if(e.location!==void 0)ge.encode(e.location,n.uint32(10).fork()).join();if(e.address!==void 0)n.uint32(18).string(e.address);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=bg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.location=ge.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.address=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return qt.fromPartial(e??{})},fromPartial(e){let n=bg();return n.location=e.location!==void 0&&e.location!==null?ge.fromPartial(e.location):void 0,n.address=e.address??void 0,n}};function Ig(){return{}}var xI={encode(e,n=new s){if(e.protocol!==void 0)q.encode(e.protocol,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ig();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.protocol=q.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return xI.fromPartial(e??{})},fromPartial(e){let n=Ig();return n.protocol=e.protocol!==void 0&&e.protocol!==null?q.fromPartial(e.protocol):void 0,n}};function Rg(){return{}}var Gt={encode(e,n=new s){if(e.specialTextSize!==void 0)n.uint32(8).int32(e.specialTextSize);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Rg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.specialTextSize=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Gt.fromPartial(e??{})},fromPartial(e){let n=Rg();return n.specialTextSize=e.specialTextSize??void 0,n}};function Dg(){return{}}var tn={encode(e,n=new s){if(e.optionName!==void 0)n.uint32(10).string(e.optionName);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Dg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.optionName=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return tn.fromPartial(e??{})},fromPartial(e){let n=Dg();return n.optionName=e.optionName??void 0,n}};function Eg(){return{}}var Jt={encode(e,n=new s){if(e.content!==void 0)Ft.encode(e.content,n.uint32(10).fork()).join();if(e.applicationData!==void 0)Tt.encode(e.applicationData,n.uint32(18).fork()).join();if(e.signal!==void 0)$t.encode(e.signal,n.uint32(26).fork()).join();if(e.subProtocol!==void 0)na.encode(e.subProtocol,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Eg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.content=Ft.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.applicationData=Tt.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.signal=$t.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.subProtocol=na.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Jt.fromPartial(e??{})},fromPartial(e){let n=Eg();return n.content=e.content!==void 0&&e.content!==null?Ft.fromPartial(e.content):void 0,n.applicationData=e.applicationData!==void 0&&e.applicationData!==null?Tt.fromPartial(e.applicationData):void 0,n.signal=e.signal!==void 0&&e.signal!==null?$t.fromPartial(e.signal):void 0,n.subProtocol=e.subProtocol!==void 0&&e.subProtocol!==null?na.fromPartial(e.subProtocol):void 0,n}};function Bg(){return{}}var Qt={encode(e,n=new s){if(e.x!==void 0)n.uint32(9).double(e.x);if(e.y!==void 0)n.uint32(17).double(e.y);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Bg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==9)break;a.x=i.double();continue}case 2:{if(t!==17)break;a.y=i.double();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Qt.fromPartial(e??{})},fromPartial(e){let n=Bg();return n.x=e.x??void 0,n.y=e.y??void 0,n}};function Cg(){return{}}var NI={encode(e,n=new s){if(e.pollOption!==void 0&&e.pollOption.length!==0)for(let i of e.pollOption)tn.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Cg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.pollOption===void 0)a.pollOption=[];let o=tn.decode(i,i.uint32());if(o!==void 0)a.pollOption.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return NI.fromPartial(e??{})},fromPartial(e){let n=Cg();return n.pollOption=e.pollOption?.map((i)=>tn.fromPartial(i))||void 0,n}};function vg(){return{}}var zt={encode(e,n=new s){if(e.encKey!==void 0)n.uint32(10).bytes(e.encKey);if(e.name!==void 0)n.uint32(18).string(e.name);if(e.options!==void 0&&e.options.length!==0)for(let i of e.options)tn.encode(i,n.uint32(26).fork()).join();if(e.selectableOptionsCount!==void 0)n.uint32(32).uint32(e.selectableOptionsCount);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=vg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.encKey=i.bytes();continue}case 2:{if(t!==18)break;a.name=i.string();continue}case 3:{if(t!==26)break;if(a.options===void 0)a.options=[];let o=tn.decode(i,i.uint32());if(o!==void 0)a.options.push(o);continue}case 4:{if(t!==32)break;a.selectableOptionsCount=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return zt.fromPartial(e??{})},fromPartial(e){let n=vg();return n.encKey=e.encKey??void 0,n.name=e.name??void 0,n.options=e.options?.map((i)=>tn.fromPartial(i))||void 0,n.selectableOptionsCount=e.selectableOptionsCount??void 0,n}};function xg(){return{}}var we={encode(e,n=new s){if(e.encPayload!==void 0)n.uint32(10).bytes(e.encPayload);if(e.encIv!==void 0)n.uint32(18).bytes(e.encIv);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=xg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.encPayload=i.bytes();continue}case 2:{if(t!==18)break;a.encIv=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return we.fromPartial(e??{})},fromPartial(e){let n=xg();return n.encPayload=e.encPayload??void 0,n.encIv=e.encIv??void 0,n}};function Ng(){return{}}var Yt={encode(e,n=new s){if(e.pollCreationMessageKey!==void 0)_.encode(e.pollCreationMessageKey,n.uint32(10).fork()).join();if(e.vote!==void 0)we.encode(e.vote,n.uint32(18).fork()).join();if(e.addOption!==void 0)we.encode(e.addOption,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ng();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.pollCreationMessageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.vote=we.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.addOption=we.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Yt.fromPartial(e??{})},fromPartial(e){let n=Ng();return n.pollCreationMessageKey=e.pollCreationMessageKey!==void 0&&e.pollCreationMessageKey!==null?_.fromPartial(e.pollCreationMessageKey):void 0,n.vote=e.vote!==void 0&&e.vote!==null?we.fromPartial(e.vote):void 0,n.addOption=e.addOption!==void 0&&e.addOption!==null?we.fromPartial(e.addOption):void 0,n}};function Og(){return{}}var OI={encode(e,n=new s){if(e.selectedOptions!==void 0&&e.selectedOptions.length!==0)for(let i of e.selectedOptions)n.uint32(10).bytes(i);if(e.senderTimestampMs!==void 0)n.uint32(16).int64(e.senderTimestampMs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Og();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.selectedOptions===void 0)a.selectedOptions=[];let o=i.bytes();if(o!==void 0)a.selectedOptions.push(o);continue}case 2:{if(t!==16)break;a.senderTimestampMs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return OI.fromPartial(e??{})},fromPartial(e){let n=Og();return n.selectedOptions=e.selectedOptions?.map((i)=>i)||void 0,n.senderTimestampMs=e.senderTimestampMs??void 0,n}};function Ug(){return{}}var Zt={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.text!==void 0)n.uint32(18).string(e.text);if(e.groupingKey!==void 0)n.uint32(26).string(e.groupingKey);if(e.senderTimestampMs!==void 0)n.uint32(32).int64(e.senderTimestampMs);if(e.reactionMetadataDataclassData!==void 0)n.uint32(42).string(e.reactionMetadataDataclassData);if(e.style!==void 0)n.uint32(48).int32(e.style);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ug();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.text=i.string();continue}case 3:{if(t!==26)break;a.groupingKey=i.string();continue}case 4:{if(t!==32)break;a.senderTimestampMs=i.int64Number();continue}case 5:{if(t!==42)break;a.reactionMetadataDataclassData=i.string();continue}case 6:{if(t!==48)break;a.style=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Zt.fromPartial(e??{})},fromPartial(e){let n=Ug();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.text=e.text??void 0,n.groupingKey=e.groupingKey??void 0,n.senderTimestampMs=e.senderTimestampMs??void 0,n.reactionMetadataDataclassData=e.reactionMetadataDataclassData??void 0,n.style=e.style??void 0,n}};function Tg(){return{}}var Xt={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Tg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Xt.fromPartial(e??{})},fromPartial(e){let n=Tg();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n}};function Lg(){return{}}var $t={encode(e,n=new s){return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Lg();while(i.pos<r){let t=i.uint32();switch(t>>>3){}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return $t.fromPartial(e??{})},fromPartial(e){return Lg()}};function wg(){return{}}var jt={encode(e,n=new s){if(e.text!==void 0)en.encode(e.text,n.uint32(10).fork()).join();if(e.textArgb!==void 0)n.uint32(53).fixed32(e.textArgb);if(e.backgroundArgb!==void 0)n.uint32(61).fixed32(e.backgroundArgb);if(e.font!==void 0)n.uint32(64).int32(e.font);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=wg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.text=en.decode(i,i.uint32());continue}case 6:{if(t!==53)break;a.textArgb=i.fixed32();continue}case 7:{if(t!==61)break;a.backgroundArgb=i.fixed32();continue}case 8:{if(t!==64)break;a.font=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return jt.fromPartial(e??{})},fromPartial(e){let n=wg();return n.text=e.text!==void 0&&e.text!==null?en.fromPartial(e.text):void 0,n.textArgb=e.textArgb??void 0,n.backgroundArgb=e.backgroundArgb??void 0,n.font=e.font??void 0,n}};function Fg(){return{}}var ea={encode(e,n=new s){if(e.sticker!==void 0)q.encode(e.sticker,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Fg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.sticker=q.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ea.fromPartial(e??{})},fromPartial(e){let n=Fg();return n.sticker=e.sticker!==void 0&&e.sticker!==null?q.fromPartial(e.sticker):void 0,n}};function Vg(){return{}}var na={encode(e,n=new s){if(e.futureProof!==void 0)n.uint32(8).int32(e.futureProof);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Vg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.futureProof=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return na.fromPartial(e??{})},fromPartial(e){let n=Vg();return n.futureProof=e.futureProof??void 0,n}};function Kg(){return{}}var an={encode(e,n=new s){if(e.video!==void 0)q.encode(e.video,n.uint32(10).fork()).join();if(e.caption!==void 0)Q.encode(e.caption,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Kg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.video=q.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.caption=Q.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return an.fromPartial(e??{})},fromPartial(e){let n=Kg();return n.video=e.video!==void 0&&e.video!==null?q.fromPartial(e.video):void 0,n.caption=e.caption!==void 0&&e.caption!==null?Q.fromPartial(e.caption):void 0,n}};function Wg(){return{}}var ia={encode(e,n=new s){if(e.imageMessage!==void 0)nn.encode(e.imageMessage,n.uint32(10).fork()).join();if(e.videoMessage!==void 0)an.encode(e.videoMessage,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Wg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.imageMessage=nn.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.videoMessage=an.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ia.fromPartial(e??{})},fromPartial(e){let n=Wg();return n.imageMessage=e.imageMessage!==void 0&&e.imageMessage!==null?nn.fromPartial(e.imageMessage):void 0,n.videoMessage=e.videoMessage!==void 0&&e.videoMessage!==null?an.fromPartial(e.videoMessage):void 0,n}};function Hg(){return{}}var b={encode(e,n=new s){if(e.stanzaId!==void 0)n.uint32(10).string(e.stanzaId);if(e.participant!==void 0)n.uint32(18).string(e.participant);if(e.quotedMessage!==void 0)F.encode(e.quotedMessage,n.uint32(26).fork()).join();if(e.remoteJid!==void 0)n.uint32(34).string(e.remoteJid);if(e.mentionedJid!==void 0&&e.mentionedJid.length!==0)for(let i of e.mentionedJid)n.uint32(122).string(i);if(e.conversionSource!==void 0)n.uint32(146).string(e.conversionSource);if(e.conversionData!==void 0)n.uint32(154).bytes(e.conversionData);if(e.conversionDelaySeconds!==void 0)n.uint32(160).uint32(e.conversionDelaySeconds);if(e.forwardingScore!==void 0)n.uint32(168).uint32(e.forwardingScore);if(e.isForwarded!==void 0)n.uint32(176).bool(e.isForwarded);if(e.quotedAd!==void 0)ta.encode(e.quotedAd,n.uint32(186).fork()).join();if(e.placeholderKey!==void 0)_.encode(e.placeholderKey,n.uint32(194).fork()).join();if(e.expiration!==void 0)n.uint32(200).uint32(e.expiration);if(e.ephemeralSettingTimestamp!==void 0)n.uint32(208).int64(e.ephemeralSettingTimestamp);if(e.ephemeralSharedSecret!==void 0)n.uint32(218).bytes(e.ephemeralSharedSecret);if(e.externalAdReply!==void 0)oa.encode(e.externalAdReply,n.uint32(226).fork()).join();if(e.entryPointConversionSource!==void 0)n.uint32(234).string(e.entryPointConversionSource);if(e.entryPointConversionApp!==void 0)n.uint32(242).string(e.entryPointConversionApp);if(e.entryPointConversionDelaySeconds!==void 0)n.uint32(248).uint32(e.entryPointConversionDelaySeconds);if(e.disappearingMode!==void 0)ye.encode(e.disappearingMode,n.uint32(258).fork()).join();if(e.actionLink!==void 0)_i.encode(e.actionLink,n.uint32(266).fork()).join();if(e.groupSubject!==void 0)n.uint32(274).string(e.groupSubject);if(e.parentGroupJid!==void 0)n.uint32(282).string(e.parentGroupJid);if(e.trustBannerType!==void 0)n.uint32(298).string(e.trustBannerType);if(e.trustBannerAction!==void 0)n.uint32(304).uint32(e.trustBannerAction);if(e.isSampled!==void 0)n.uint32(312).bool(e.isSampled);if(e.groupMentions!==void 0&&e.groupMentions.length!==0)for(let i of e.groupMentions)Ua.encode(i,n.uint32(322).fork()).join();if(e.utm!==void 0)la.encode(e.utm,n.uint32(330).fork()).join();if(e.forwardedNewsletterMessageInfo!==void 0)dn.encode(e.forwardedNewsletterMessageInfo,n.uint32(346).fork()).join();if(e.businessMessageForwardInfo!==void 0)ra.encode(e.businessMessageForwardInfo,n.uint32(354).fork()).join();if(e.smbClientCampaignId!==void 0)n.uint32(362).string(e.smbClientCampaignId);if(e.smbServerCampaignId!==void 0)n.uint32(370).string(e.smbServerCampaignId);if(e.dataSharingContext!==void 0)da.encode(e.dataSharingContext,n.uint32(378).fork()).join();if(e.alwaysShowAdAttribution!==void 0)n.uint32(384).bool(e.alwaysShowAdAttribution);if(e.featureEligibilities!==void 0)sa.encode(e.featureEligibilities,n.uint32(394).fork()).join();if(e.entryPointConversionExternalSource!==void 0)n.uint32(402).string(e.entryPointConversionExternalSource);if(e.entryPointConversionExternalMedium!==void 0)n.uint32(410).string(e.entryPointConversionExternalMedium);if(e.ctwaSignals!==void 0)n.uint32(434).string(e.ctwaSignals);if(e.ctwaPayload!==void 0)n.uint32(442).bytes(e.ctwaPayload);if(e.forwardedAiBotMessageInfo!==void 0)va.encode(e.forwardedAiBotMessageInfo,n.uint32(450).fork()).join();if(e.statusAttributionType!==void 0)n.uint32(456).int32(e.statusAttributionType);if(e.urlTrackingMap!==void 0)bn.encode(e.urlTrackingMap,n.uint32(466).fork()).join();if(e.pairedMediaType!==void 0)n.uint32(472).int32(e.pairedMediaType);if(e.rankingVersion!==void 0)n.uint32(480).uint32(e.rankingVersion);if(e.memberLabel!==void 0)_e.encode(e.memberLabel,n.uint32(498).fork()).join();if(e.isQuestion!==void 0)n.uint32(504).bool(e.isQuestion);if(e.statusSourceType!==void 0)n.uint32(512).int32(e.statusSourceType);if(e.statusAttributions!==void 0&&e.statusAttributions.length!==0)for(let i of e.statusAttributions)Is.encode(i,n.uint32(522).fork()).join();if(e.isGroupStatus!==void 0)n.uint32(528).bool(e.isGroupStatus);if(e.forwardOrigin!==void 0)n.uint32(536).int32(e.forwardOrigin);if(e.questionReplyQuotedMessage!==void 0)ca.encode(e.questionReplyQuotedMessage,n.uint32(546).fork()).join();if(e.statusAudienceMetadata!==void 0)fa.encode(e.statusAudienceMetadata,n.uint32(554).fork()).join();if(e.nonJidMentions!==void 0)n.uint32(560).uint32(e.nonJidMentions);if(e.quotedType!==void 0)n.uint32(568).int32(e.quotedType);if(e.botMessageSharingInfo!==void 0)Gi.encode(e.botMessageSharingInfo,n.uint32(578).fork()).join();if(e.isSpoiler!==void 0)n.uint32(584).bool(e.isSpoiler);if(e.mediaDomainInfo!==void 0)dr.encode(e.mediaDomainInfo,n.uint32(594).fork()).join();if(e.partiallySelectedContent!==void 0)ua.encode(e.partiallySelectedContent,n.uint32(602).fork()).join();if(e.afterReadDuration!==void 0)n.uint32(608).uint32(e.afterReadDuration);if(e.crossAppSource!==void 0)n.uint32(616).int32(e.crossAppSource);if(e.businessInteractionPills!==void 0)aa.encode(e.businessInteractionPills,n.uint32(626).fork()).join();if(e.posterStatusId!==void 0)n.uint32(634).string(e.posterStatusId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Hg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.stanzaId=i.string();continue}case 2:{if(t!==18)break;a.participant=i.string();continue}case 3:{if(t!==26)break;a.quotedMessage=F.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.remoteJid=i.string();continue}case 15:{if(t!==122)break;if(a.mentionedJid===void 0)a.mentionedJid=[];let o=i.string();if(o!==void 0)a.mentionedJid.push(o);continue}case 18:{if(t!==146)break;a.conversionSource=i.string();continue}case 19:{if(t!==154)break;a.conversionData=i.bytes();continue}case 20:{if(t!==160)break;a.conversionDelaySeconds=i.uint32();continue}case 21:{if(t!==168)break;a.forwardingScore=i.uint32();continue}case 22:{if(t!==176)break;a.isForwarded=i.bool();continue}case 23:{if(t!==186)break;a.quotedAd=ta.decode(i,i.uint32());continue}case 24:{if(t!==194)break;a.placeholderKey=_.decode(i,i.uint32());continue}case 25:{if(t!==200)break;a.expiration=i.uint32();continue}case 26:{if(t!==208)break;a.ephemeralSettingTimestamp=i.int64Number();continue}case 27:{if(t!==218)break;a.ephemeralSharedSecret=i.bytes();continue}case 28:{if(t!==226)break;a.externalAdReply=oa.decode(i,i.uint32());continue}case 29:{if(t!==234)break;a.entryPointConversionSource=i.string();continue}case 30:{if(t!==242)break;a.entryPointConversionApp=i.string();continue}case 31:{if(t!==248)break;a.entryPointConversionDelaySeconds=i.uint32();continue}case 32:{if(t!==258)break;a.disappearingMode=ye.decode(i,i.uint32());continue}case 33:{if(t!==266)break;a.actionLink=_i.decode(i,i.uint32());continue}case 34:{if(t!==274)break;a.groupSubject=i.string();continue}case 35:{if(t!==282)break;a.parentGroupJid=i.string();continue}case 37:{if(t!==298)break;a.trustBannerType=i.string();continue}case 38:{if(t!==304)break;a.trustBannerAction=i.uint32();continue}case 39:{if(t!==312)break;a.isSampled=i.bool();continue}case 40:{if(t!==322)break;if(a.groupMentions===void 0)a.groupMentions=[];let o=Ua.decode(i,i.uint32());if(o!==void 0)a.groupMentions.push(o);continue}case 41:{if(t!==330)break;a.utm=la.decode(i,i.uint32());continue}case 43:{if(t!==346)break;a.forwardedNewsletterMessageInfo=dn.decode(i,i.uint32());continue}case 44:{if(t!==354)break;a.businessMessageForwardInfo=ra.decode(i,i.uint32());continue}case 45:{if(t!==362)break;a.smbClientCampaignId=i.string();continue}case 46:{if(t!==370)break;a.smbServerCampaignId=i.string();continue}case 47:{if(t!==378)break;a.dataSharingContext=da.decode(i,i.uint32());continue}case 48:{if(t!==384)break;a.alwaysShowAdAttribution=i.bool();continue}case 49:{if(t!==394)break;a.featureEligibilities=sa.decode(i,i.uint32());continue}case 50:{if(t!==402)break;a.entryPointConversionExternalSource=i.string();continue}case 51:{if(t!==410)break;a.entryPointConversionExternalMedium=i.string();continue}case 54:{if(t!==434)break;a.ctwaSignals=i.string();continue}case 55:{if(t!==442)break;a.ctwaPayload=i.bytes();continue}case 56:{if(t!==450)break;a.forwardedAiBotMessageInfo=va.decode(i,i.uint32());continue}case 57:{if(t!==456)break;a.statusAttributionType=i.int32();continue}case 58:{if(t!==466)break;a.urlTrackingMap=bn.decode(i,i.uint32());continue}case 59:{if(t!==472)break;a.pairedMediaType=i.int32();continue}case 60:{if(t!==480)break;a.rankingVersion=i.uint32();continue}case 62:{if(t!==498)break;a.memberLabel=_e.decode(i,i.uint32());continue}case 63:{if(t!==504)break;a.isQuestion=i.bool();continue}case 64:{if(t!==512)break;a.statusSourceType=i.int32();continue}case 65:{if(t!==522)break;if(a.statusAttributions===void 0)a.statusAttributions=[];let o=Is.decode(i,i.uint32());if(o!==void 0)a.statusAttributions.push(o);continue}case 66:{if(t!==528)break;a.isGroupStatus=i.bool();continue}case 67:{if(t!==536)break;a.forwardOrigin=i.int32();continue}case 68:{if(t!==546)break;a.questionReplyQuotedMessage=ca.decode(i,i.uint32());continue}case 69:{if(t!==554)break;a.statusAudienceMetadata=fa.decode(i,i.uint32());continue}case 70:{if(t!==560)break;a.nonJidMentions=i.uint32();continue}case 71:{if(t!==568)break;a.quotedType=i.int32();continue}case 72:{if(t!==578)break;a.botMessageSharingInfo=Gi.decode(i,i.uint32());continue}case 73:{if(t!==584)break;a.isSpoiler=i.bool();continue}case 74:{if(t!==594)break;a.mediaDomainInfo=dr.decode(i,i.uint32());continue}case 75:{if(t!==602)break;a.partiallySelectedContent=ua.decode(i,i.uint32());continue}case 76:{if(t!==608)break;a.afterReadDuration=i.uint32();continue}case 77:{if(t!==616)break;a.crossAppSource=i.int32();continue}case 78:{if(t!==626)break;a.businessInteractionPills=aa.decode(i,i.uint32());continue}case 79:{if(t!==634)break;a.posterStatusId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return b.fromPartial(e??{})},fromPartial(e){let n=Hg();return n.stanzaId=e.stanzaId??void 0,n.participant=e.participant??void 0,n.quotedMessage=e.quotedMessage!==void 0&&e.quotedMessage!==null?F.fromPartial(e.quotedMessage):void 0,n.remoteJid=e.remoteJid??void 0,n.mentionedJid=e.mentionedJid?.map((i)=>i)||void 0,n.conversionSource=e.conversionSource??void 0,n.conversionData=e.conversionData??void 0,n.conversionDelaySeconds=e.conversionDelaySeconds??void 0,n.forwardingScore=e.forwardingScore??void 0,n.isForwarded=e.isForwarded??void 0,n.quotedAd=e.quotedAd!==void 0&&e.quotedAd!==null?ta.fromPartial(e.quotedAd):void 0,n.placeholderKey=e.placeholderKey!==void 0&&e.placeholderKey!==null?_.fromPartial(e.placeholderKey):void 0,n.expiration=e.expiration??void 0,n.ephemeralSettingTimestamp=e.ephemeralSettingTimestamp??void 0,n.ephemeralSharedSecret=e.ephemeralSharedSecret??void 0,n.externalAdReply=e.externalAdReply!==void 0&&e.externalAdReply!==null?oa.fromPartial(e.externalAdReply):void 0,n.entryPointConversionSource=e.entryPointConversionSource??void 0,n.entryPointConversionApp=e.entryPointConversionApp??void 0,n.entryPointConversionDelaySeconds=e.entryPointConversionDelaySeconds??void 0,n.disappearingMode=e.disappearingMode!==void 0&&e.disappearingMode!==null?ye.fromPartial(e.disappearingMode):void 0,n.actionLink=e.actionLink!==void 0&&e.actionLink!==null?_i.fromPartial(e.actionLink):void 0,n.groupSubject=e.groupSubject??void 0,n.parentGroupJid=e.parentGroupJid??void 0,n.trustBannerType=e.trustBannerType??void 0,n.trustBannerAction=e.trustBannerAction??void 0,n.isSampled=e.isSampled??void 0,n.groupMentions=e.groupMentions?.map((i)=>Ua.fromPartial(i))||void 0,n.utm=e.utm!==void 0&&e.utm!==null?la.fromPartial(e.utm):void 0,n.forwardedNewsletterMessageInfo=e.forwardedNewsletterMessageInfo!==void 0&&e.forwardedNewsletterMessageInfo!==null?dn.fromPartial(e.forwardedNewsletterMessageInfo):void 0,n.businessMessageForwardInfo=e.businessMessageForwardInfo!==void 0&&e.businessMessageForwardInfo!==null?ra.fromPartial(e.businessMessageForwardInfo):void 0,n.smbClientCampaignId=e.smbClientCampaignId??void 0,n.smbServerCampaignId=e.smbServerCampaignId??void 0,n.dataSharingContext=e.dataSharingContext!==void 0&&e.dataSharingContext!==null?da.fromPartial(e.dataSharingContext):void 0,n.alwaysShowAdAttribution=e.alwaysShowAdAttribution??void 0,n.featureEligibilities=e.featureEligibilities!==void 0&&e.featureEligibilities!==null?sa.fromPartial(e.featureEligibilities):void 0,n.entryPointConversionExternalSource=e.entryPointConversionExternalSource??void 0,n.entryPointConversionExternalMedium=e.entryPointConversionExternalMedium??void 0,n.ctwaSignals=e.ctwaSignals??void 0,n.ctwaPayload=e.ctwaPayload??void 0,n.forwardedAiBotMessageInfo=e.forwardedAiBotMessageInfo!==void 0&&e.forwardedAiBotMessageInfo!==null?va.fromPartial(e.forwardedAiBotMessageInfo):void 0,n.statusAttributionType=e.statusAttributionType??void 0,n.urlTrackingMap=e.urlTrackingMap!==void 0&&e.urlTrackingMap!==null?bn.fromPartial(e.urlTrackingMap):void 0,n.pairedMediaType=e.pairedMediaType??void 0,n.rankingVersion=e.rankingVersion??void 0,n.memberLabel=e.memberLabel!==void 0&&e.memberLabel!==null?_e.fromPartial(e.memberLabel):void 0,n.isQuestion=e.isQuestion??void 0,n.statusSourceType=e.statusSourceType??void 0,n.statusAttributions=e.statusAttributions?.map((i)=>Is.fromPartial(i))||void 0,n.isGroupStatus=e.isGroupStatus??void 0,n.forwardOrigin=e.forwardOrigin??void 0,n.questionReplyQuotedMessage=e.questionReplyQuotedMessage!==void 0&&e.questionReplyQuotedMessage!==null?ca.fromPartial(e.questionReplyQuotedMessage):void 0,n.statusAudienceMetadata=e.statusAudienceMetadata!==void 0&&e.statusAudienceMetadata!==null?fa.fromPartial(e.statusAudienceMetadata):void 0,n.nonJidMentions=e.nonJidMentions??void 0,n.quotedType=e.quotedType??void 0,n.botMessageSharingInfo=e.botMessageSharingInfo!==void 0&&e.botMessageSharingInfo!==null?Gi.fromPartial(e.botMessageSharingInfo):void 0,n.isSpoiler=e.isSpoiler??void 0,n.mediaDomainInfo=e.mediaDomainInfo!==void 0&&e.mediaDomainInfo!==null?dr.fromPartial(e.mediaDomainInfo):void 0,n.partiallySelectedContent=e.partiallySelectedContent!==void 0&&e.partiallySelectedContent!==null?ua.fromPartial(e.partiallySelectedContent):void 0,n.afterReadDuration=e.afterReadDuration??void 0,n.crossAppSource=e.crossAppSource??void 0,n.businessInteractionPills=e.businessInteractionPills!==void 0&&e.businessInteractionPills!==null?aa.fromPartial(e.businessInteractionPills):void 0,n.posterStatusId=e.posterStatusId??void 0,n}};function qg(){return{}}var ta={encode(e,n=new s){if(e.advertiserName!==void 0)n.uint32(10).string(e.advertiserName);if(e.mediaType!==void 0)n.uint32(16).int32(e.mediaType);if(e.jpegThumbnail!==void 0)n.uint32(130).bytes(e.jpegThumbnail);if(e.caption!==void 0)n.uint32(138).string(e.caption);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=qg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.advertiserName=i.string();continue}case 2:{if(t!==16)break;a.mediaType=i.int32();continue}case 16:{if(t!==130)break;a.jpegThumbnail=i.bytes();continue}case 17:{if(t!==138)break;a.caption=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ta.fromPartial(e??{})},fromPartial(e){let n=qg();return n.advertiserName=e.advertiserName??void 0,n.mediaType=e.mediaType??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.caption=e.caption??void 0,n}};function Gg(){return{}}var aa={encode(e,n=new s){if(e.businessJid!==void 0)n.uint32(10).string(e.businessJid);if(e.pills!==void 0&&e.pills.length!==0)for(let i of e.pills)rn.encode(i,n.uint32(18).fork()).join();if(e.entryPoint!==void 0)n.uint32(24).int32(e.entryPoint);if(e.signedPayload!==void 0)n.uint32(34).bytes(e.signedPayload);if(e.signatureEnvelope!==void 0)Ze.encode(e.signatureEnvelope,n.uint32(42).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Gg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.businessJid=i.string();continue}case 2:{if(t!==18)break;if(a.pills===void 0)a.pills=[];let o=rn.decode(i,i.uint32());if(o!==void 0)a.pills.push(o);continue}case 3:{if(t!==24)break;a.entryPoint=i.int32();continue}case 4:{if(t!==34)break;a.signedPayload=i.bytes();continue}case 5:{if(t!==42)break;a.signatureEnvelope=Ze.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return aa.fromPartial(e??{})},fromPartial(e){let n=Gg();return n.businessJid=e.businessJid??void 0,n.pills=e.pills?.map((i)=>rn.fromPartial(i))||void 0,n.entryPoint=e.entryPoint??void 0,n.signedPayload=e.signedPayload??void 0,n.signatureEnvelope=e.signatureEnvelope!==void 0&&e.signatureEnvelope!==null?Ze.fromPartial(e.signatureEnvelope):void 0,n}};function Jg(){return{}}var rn={encode(e,n=new s){if(e.pillType!==void 0)n.uint32(8).int32(e.pillType);if(e.actionUrl!==void 0)n.uint32(18).string(e.actionUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Jg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.pillType=i.int32();continue}case 2:{if(t!==18)break;a.actionUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return rn.fromPartial(e??{})},fromPartial(e){let n=Jg();return n.pillType=e.pillType??void 0,n.actionUrl=e.actionUrl??void 0,n}};function Qg(){return{}}var UI={encode(e,n=new s){if(e.verifiedName!==void 0)n.uint32(10).string(e.verifiedName);if(e.pills!==void 0&&e.pills.length!==0)for(let i of e.pills)rn.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Qg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.verifiedName=i.string();continue}case 2:{if(t!==18)break;if(a.pills===void 0)a.pills=[];let o=rn.decode(i,i.uint32());if(o!==void 0)a.pills.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return UI.fromPartial(e??{})},fromPartial(e){let n=Qg();return n.verifiedName=e.verifiedName??void 0,n.pills=e.pills?.map((i)=>rn.fromPartial(i))||void 0,n}};function zg(){return{}}var ra={encode(e,n=new s){if(e.businessOwnerJid!==void 0)n.uint32(10).string(e.businessOwnerJid);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=zg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.businessOwnerJid=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ra.fromPartial(e??{})},fromPartial(e){let n=zg();return n.businessOwnerJid=e.businessOwnerJid??void 0,n}};function Yg(){return{}}var da={encode(e,n=new s){if(e.showMmDisclosure!==void 0)n.uint32(8).bool(e.showMmDisclosure);if(e.encryptedSignalTokenConsented!==void 0)n.uint32(18).string(e.encryptedSignalTokenConsented);if(e.parameters!==void 0&&e.parameters.length!==0)for(let i of e.parameters)Ye.encode(i,n.uint32(26).fork()).join();if(e.dataSharingFlags!==void 0)n.uint32(32).int32(e.dataSharingFlags);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Yg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.showMmDisclosure=i.bool();continue}case 2:{if(t!==18)break;a.encryptedSignalTokenConsented=i.string();continue}case 3:{if(t!==26)break;if(a.parameters===void 0)a.parameters=[];let o=Ye.decode(i,i.uint32());if(o!==void 0)a.parameters.push(o);continue}case 4:{if(t!==32)break;a.dataSharingFlags=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return da.fromPartial(e??{})},fromPartial(e){let n=Yg();return n.showMmDisclosure=e.showMmDisclosure??void 0,n.encryptedSignalTokenConsented=e.encryptedSignalTokenConsented??void 0,n.parameters=e.parameters?.map((i)=>Ye.fromPartial(i))||void 0,n.dataSharingFlags=e.dataSharingFlags??void 0,n}};function Zg(){return{}}var Ye={encode(e,n=new s){if(e.key!==void 0)n.uint32(10).string(e.key);if(e.stringData!==void 0)n.uint32(18).string(e.stringData);if(e.intData!==void 0)n.uint32(24).int64(e.intData);if(e.floatData!==void 0)n.uint32(37).float(e.floatData);if(e.contents!==void 0)Ye.encode(e.contents,n.uint32(42).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Zg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=i.string();continue}case 2:{if(t!==18)break;a.stringData=i.string();continue}case 3:{if(t!==24)break;a.intData=i.int64Number();continue}case 4:{if(t!==37)break;a.floatData=i.float();continue}case 5:{if(t!==42)break;a.contents=Ye.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ye.fromPartial(e??{})},fromPartial(e){let n=Zg();return n.key=e.key??void 0,n.stringData=e.stringData??void 0,n.intData=e.intData??void 0,n.floatData=e.floatData??void 0,n.contents=e.contents!==void 0&&e.contents!==null?Ye.fromPartial(e.contents):void 0,n}};function Xg(){return{}}var oa={encode(e,n=new s){if(e.title!==void 0)n.uint32(10).string(e.title);if(e.body!==void 0)n.uint32(18).string(e.body);if(e.mediaType!==void 0)n.uint32(24).int32(e.mediaType);if(e.thumbnailUrl!==void 0)n.uint32(34).string(e.thumbnailUrl);if(e.mediaUrl!==void 0)n.uint32(42).string(e.mediaUrl);if(e.thumbnail!==void 0)n.uint32(50).bytes(e.thumbnail);if(e.sourceType!==void 0)n.uint32(58).string(e.sourceType);if(e.sourceId!==void 0)n.uint32(66).string(e.sourceId);if(e.sourceUrl!==void 0)n.uint32(74).string(e.sourceUrl);if(e.containsAutoReply!==void 0)n.uint32(80).bool(e.containsAutoReply);if(e.renderLargerThumbnail!==void 0)n.uint32(88).bool(e.renderLargerThumbnail);if(e.showAdAttribution!==void 0)n.uint32(96).bool(e.showAdAttribution);if(e.ctwaClid!==void 0)n.uint32(106).string(e.ctwaClid);if(e.ref!==void 0)n.uint32(114).string(e.ref);if(e.clickToWhatsappCall!==void 0)n.uint32(120).bool(e.clickToWhatsappCall);if(e.adContextPreviewDismissed!==void 0)n.uint32(128).bool(e.adContextPreviewDismissed);if(e.sourceApp!==void 0)n.uint32(138).string(e.sourceApp);if(e.automatedGreetingMessageShown!==void 0)n.uint32(144).bool(e.automatedGreetingMessageShown);if(e.greetingMessageBody!==void 0)n.uint32(154).string(e.greetingMessageBody);if(e.ctaPayload!==void 0)n.uint32(162).string(e.ctaPayload);if(e.disableNudge!==void 0)n.uint32(168).bool(e.disableNudge);if(e.originalImageUrl!==void 0)n.uint32(178).string(e.originalImageUrl);if(e.automatedGreetingMessageCtaType!==void 0)n.uint32(186).string(e.automatedGreetingMessageCtaType);if(e.wtwaAdFormat!==void 0)n.uint32(192).bool(e.wtwaAdFormat);if(e.adType!==void 0)n.uint32(200).int32(e.adType);if(e.wtwaWebsiteUrl!==void 0)n.uint32(210).string(e.wtwaWebsiteUrl);if(e.adPreviewUrl!==void 0)n.uint32(218).string(e.adPreviewUrl);if(e.containsCtwaFlowsAutoReply!==void 0)n.uint32(224).bool(e.containsCtwaFlowsAutoReply);if(e.agmThumbnailStrategy!==void 0)n.uint32(232).int32(e.agmThumbnailStrategy);if(e.agmTitleStrategy!==void 0)n.uint32(240).int32(e.agmTitleStrategy);if(e.agmSubtitleStrategy!==void 0)n.uint32(248).int32(e.agmSubtitleStrategy);if(e.agmHeaderInteractionStrategy!==void 0)n.uint32(256).int32(e.agmHeaderInteractionStrategy);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Xg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.title=i.string();continue}case 2:{if(t!==18)break;a.body=i.string();continue}case 3:{if(t!==24)break;a.mediaType=i.int32();continue}case 4:{if(t!==34)break;a.thumbnailUrl=i.string();continue}case 5:{if(t!==42)break;a.mediaUrl=i.string();continue}case 6:{if(t!==50)break;a.thumbnail=i.bytes();continue}case 7:{if(t!==58)break;a.sourceType=i.string();continue}case 8:{if(t!==66)break;a.sourceId=i.string();continue}case 9:{if(t!==74)break;a.sourceUrl=i.string();continue}case 10:{if(t!==80)break;a.containsAutoReply=i.bool();continue}case 11:{if(t!==88)break;a.renderLargerThumbnail=i.bool();continue}case 12:{if(t!==96)break;a.showAdAttribution=i.bool();continue}case 13:{if(t!==106)break;a.ctwaClid=i.string();continue}case 14:{if(t!==114)break;a.ref=i.string();continue}case 15:{if(t!==120)break;a.clickToWhatsappCall=i.bool();continue}case 16:{if(t!==128)break;a.adContextPreviewDismissed=i.bool();continue}case 17:{if(t!==138)break;a.sourceApp=i.string();continue}case 18:{if(t!==144)break;a.automatedGreetingMessageShown=i.bool();continue}case 19:{if(t!==154)break;a.greetingMessageBody=i.string();continue}case 20:{if(t!==162)break;a.ctaPayload=i.string();continue}case 21:{if(t!==168)break;a.disableNudge=i.bool();continue}case 22:{if(t!==178)break;a.originalImageUrl=i.string();continue}case 23:{if(t!==186)break;a.automatedGreetingMessageCtaType=i.string();continue}case 24:{if(t!==192)break;a.wtwaAdFormat=i.bool();continue}case 25:{if(t!==200)break;a.adType=i.int32();continue}case 26:{if(t!==210)break;a.wtwaWebsiteUrl=i.string();continue}case 27:{if(t!==218)break;a.adPreviewUrl=i.string();continue}case 28:{if(t!==224)break;a.containsCtwaFlowsAutoReply=i.bool();continue}case 29:{if(t!==232)break;a.agmThumbnailStrategy=i.int32();continue}case 30:{if(t!==240)break;a.agmTitleStrategy=i.int32();continue}case 31:{if(t!==248)break;a.agmSubtitleStrategy=i.int32();continue}case 32:{if(t!==256)break;a.agmHeaderInteractionStrategy=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return oa.fromPartial(e??{})},fromPartial(e){let n=Xg();return n.title=e.title??void 0,n.body=e.body??void 0,n.mediaType=e.mediaType??void 0,n.thumbnailUrl=e.thumbnailUrl??void 0,n.mediaUrl=e.mediaUrl??void 0,n.thumbnail=e.thumbnail??void 0,n.sourceType=e.sourceType??void 0,n.sourceId=e.sourceId??void 0,n.sourceUrl=e.sourceUrl??void 0,n.containsAutoReply=e.containsAutoReply??void 0,n.renderLargerThumbnail=e.renderLargerThumbnail??void 0,n.showAdAttribution=e.showAdAttribution??void 0,n.ctwaClid=e.ctwaClid??void 0,n.ref=e.ref??void 0,n.clickToWhatsappCall=e.clickToWhatsappCall??void 0,n.adContextPreviewDismissed=e.adContextPreviewDismissed??void 0,n.sourceApp=e.sourceApp??void 0,n.automatedGreetingMessageShown=e.automatedGreetingMessageShown??void 0,n.greetingMessageBody=e.greetingMessageBody??void 0,n.ctaPayload=e.ctaPayload??void 0,n.disableNudge=e.disableNudge??void 0,n.originalImageUrl=e.originalImageUrl??void 0,n.automatedGreetingMessageCtaType=e.automatedGreetingMessageCtaType??void 0,n.wtwaAdFormat=e.wtwaAdFormat??void 0,n.adType=e.adType??void 0,n.wtwaWebsiteUrl=e.wtwaWebsiteUrl??void 0,n.adPreviewUrl=e.adPreviewUrl??void 0,n.containsCtwaFlowsAutoReply=e.containsCtwaFlowsAutoReply??void 0,n.agmThumbnailStrategy=e.agmThumbnailStrategy??void 0,n.agmTitleStrategy=e.agmTitleStrategy??void 0,n.agmSubtitleStrategy=e.agmSubtitleStrategy??void 0,n.agmHeaderInteractionStrategy=e.agmHeaderInteractionStrategy??void 0,n}};function $g(){return{}}var sa={encode(e,n=new s){if(e.cannotBeReactedTo!==void 0)n.uint32(8).bool(e.cannotBeReactedTo);if(e.cannotBeRanked!==void 0)n.uint32(16).bool(e.cannotBeRanked);if(e.canRequestFeedback!==void 0)n.uint32(24).bool(e.canRequestFeedback);if(e.canBeReshared!==void 0)n.uint32(32).bool(e.canBeReshared);if(e.canReceiveMultiReact!==void 0)n.uint32(40).bool(e.canReceiveMultiReact);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=$g();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.cannotBeReactedTo=i.bool();continue}case 2:{if(t!==16)break;a.cannotBeRanked=i.bool();continue}case 3:{if(t!==24)break;a.canRequestFeedback=i.bool();continue}case 4:{if(t!==32)break;a.canBeReshared=i.bool();continue}case 5:{if(t!==40)break;a.canReceiveMultiReact=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return sa.fromPartial(e??{})},fromPartial(e){let n=$g();return n.cannotBeReactedTo=e.cannotBeReactedTo??void 0,n.cannotBeRanked=e.cannotBeRanked??void 0,n.canRequestFeedback=e.canRequestFeedback??void 0,n.canBeReshared=e.canBeReshared??void 0,n.canReceiveMultiReact=e.canReceiveMultiReact??void 0,n}};function jg(){return{}}var dn={encode(e,n=new s){if(e.newsletterJid!==void 0)n.uint32(10).string(e.newsletterJid);if(e.serverMessageId!==void 0)n.uint32(16).int32(e.serverMessageId);if(e.newsletterName!==void 0)n.uint32(26).string(e.newsletterName);if(e.contentType!==void 0)n.uint32(32).int32(e.contentType);if(e.accessibilityText!==void 0)n.uint32(42).string(e.accessibilityText);if(e.profileName!==void 0)n.uint32(50).string(e.profileName);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=jg();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.newsletterJid=i.string();continue}case 2:{if(t!==16)break;a.serverMessageId=i.int32();continue}case 3:{if(t!==26)break;a.newsletterName=i.string();continue}case 4:{if(t!==32)break;a.contentType=i.int32();continue}case 5:{if(t!==42)break;a.accessibilityText=i.string();continue}case 6:{if(t!==50)break;a.profileName=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return dn.fromPartial(e??{})},fromPartial(e){let n=jg();return n.newsletterJid=e.newsletterJid??void 0,n.serverMessageId=e.serverMessageId??void 0,n.newsletterName=e.newsletterName??void 0,n.contentType=e.contentType??void 0,n.accessibilityText=e.accessibilityText??void 0,n.profileName=e.profileName??void 0,n}};function ey(){return{}}var ua={encode(e,n=new s){if(e.text!==void 0)n.uint32(10).string(e.text);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ey();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.text=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ua.fromPartial(e??{})},fromPartial(e){let n=ey();return n.text=e.text??void 0,n}};function ny(){return{}}var ca={encode(e,n=new s){if(e.serverQuestionId!==void 0)n.uint32(8).int32(e.serverQuestionId);if(e.quotedQuestion!==void 0)F.encode(e.quotedQuestion,n.uint32(18).fork()).join();if(e.quotedResponse!==void 0)F.encode(e.quotedResponse,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ny();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.serverQuestionId=i.int32();continue}case 2:{if(t!==18)break;a.quotedQuestion=F.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.quotedResponse=F.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ca.fromPartial(e??{})},fromPartial(e){let n=ny();return n.serverQuestionId=e.serverQuestionId??void 0,n.quotedQuestion=e.quotedQuestion!==void 0&&e.quotedQuestion!==null?F.fromPartial(e.quotedQuestion):void 0,n.quotedResponse=e.quotedResponse!==void 0&&e.quotedResponse!==null?F.fromPartial(e.quotedResponse):void 0,n}};function iy(){return{}}var fa={encode(e,n=new s){if(e.audienceType!==void 0)n.uint32(8).int32(e.audienceType);if(e.listName!==void 0)n.uint32(18).string(e.listName);if(e.listEmoji!==void 0)n.uint32(26).string(e.listEmoji);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=iy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.audienceType=i.int32();continue}case 2:{if(t!==18)break;a.listName=i.string();continue}case 3:{if(t!==26)break;a.listEmoji=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return fa.fromPartial(e??{})},fromPartial(e){let n=iy();return n.audienceType=e.audienceType??void 0,n.listName=e.listName??void 0,n.listEmoji=e.listEmoji??void 0,n}};function ty(){return{}}var la={encode(e,n=new s){if(e.utmSource!==void 0)n.uint32(10).string(e.utmSource);if(e.utmCampaign!==void 0)n.uint32(18).string(e.utmCampaign);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ty();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.utmSource=i.string();continue}case 2:{if(t!==18)break;a.utmCampaign=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return la.fromPartial(e??{})},fromPartial(e){let n=ty();return n.utmSource=e.utmSource??void 0,n.utmCampaign=e.utmCampaign??void 0,n}};function ay(){return{}}var pa={encode(e,n=new s){if(e.id!==void 0)n.uint32(10).string(e.id);if(e.messages!==void 0&&e.messages.length!==0)for(let i of e.messages)Ha.encode(i,n.uint32(18).fork()).join();if(e.newJid!==void 0)n.uint32(26).string(e.newJid);if(e.oldJid!==void 0)n.uint32(34).string(e.oldJid);if(e.lastMsgTimestamp!==void 0)n.uint32(40).uint64(e.lastMsgTimestamp);if(e.unreadCount!==void 0)n.uint32(48).uint32(e.unreadCount);if(e.readOnly!==void 0)n.uint32(56).bool(e.readOnly);if(e.endOfHistoryTransfer!==void 0)n.uint32(64).bool(e.endOfHistoryTransfer);if(e.ephemeralExpiration!==void 0)n.uint32(72).uint32(e.ephemeralExpiration);if(e.ephemeralSettingTimestamp!==void 0)n.uint32(80).int64(e.ephemeralSettingTimestamp);if(e.endOfHistoryTransferType!==void 0)n.uint32(88).int32(e.endOfHistoryTransferType);if(e.conversationTimestamp!==void 0)n.uint32(96).uint64(e.conversationTimestamp);if(e.name!==void 0)n.uint32(106).string(e.name);if(e.pHash!==void 0)n.uint32(114).string(e.pHash);if(e.notSpam!==void 0)n.uint32(120).bool(e.notSpam);if(e.archived!==void 0)n.uint32(128).bool(e.archived);if(e.disappearingMode!==void 0)ye.encode(e.disappearingMode,n.uint32(138).fork()).join();if(e.unreadMentionCount!==void 0)n.uint32(144).uint32(e.unreadMentionCount);if(e.markedAsUnread!==void 0)n.uint32(152).bool(e.markedAsUnread);if(e.participant!==void 0&&e.participant.length!==0)for(let i of e.participant)Ta.encode(i,n.uint32(162).fork()).join();if(e.tcToken!==void 0)n.uint32(170).bytes(e.tcToken);if(e.tcTokenTimestamp!==void 0)n.uint32(176).uint64(e.tcTokenTimestamp);if(e.contactPrimaryIdentityKey!==void 0)n.uint32(186).bytes(e.contactPrimaryIdentityKey);if(e.pinned!==void 0)n.uint32(192).uint32(e.pinned);if(e.muteEndTime!==void 0)n.uint32(200).uint64(e.muteEndTime);if(e.wallpaper!==void 0)pe.encode(e.wallpaper,n.uint32(210).fork()).join();if(e.mediaVisibility!==void 0)n.uint32(216).int32(e.mediaVisibility);if(e.tcTokenSenderTimestamp!==void 0)n.uint32(224).uint64(e.tcTokenSenderTimestamp);if(e.suspended!==void 0)n.uint32(232).bool(e.suspended);if(e.terminated!==void 0)n.uint32(240).bool(e.terminated);if(e.createdAt!==void 0)n.uint32(248).uint64(e.createdAt);if(e.createdBy!==void 0)n.uint32(258).string(e.createdBy);if(e.description!==void 0)n.uint32(266).string(e.description);if(e.support!==void 0)n.uint32(272).bool(e.support);if(e.isParentGroup!==void 0)n.uint32(280).bool(e.isParentGroup);if(e.parentGroupId!==void 0)n.uint32(298).string(e.parentGroupId);if(e.isDefaultSubgroup!==void 0)n.uint32(288).bool(e.isDefaultSubgroup);if(e.displayName!==void 0)n.uint32(306).string(e.displayName);if(e.pnJid!==void 0)n.uint32(314).string(e.pnJid);if(e.shareOwnPn!==void 0)n.uint32(320).bool(e.shareOwnPn);if(e.pnhDuplicateLidThread!==void 0)n.uint32(328).bool(e.pnhDuplicateLidThread);if(e.lidJid!==void 0)n.uint32(338).string(e.lidJid);if(e.username!==void 0)n.uint32(346).string(e.username);if(e.lidOriginType!==void 0)n.uint32(354).string(e.lidOriginType);if(e.commentsCount!==void 0)n.uint32(360).uint32(e.commentsCount);if(e.locked!==void 0)n.uint32(368).bool(e.locked);if(e.systemMessageToInsert!==void 0)n.uint32(376).int32(e.systemMessageToInsert);if(e.capiCreatedGroup!==void 0)n.uint32(384).bool(e.capiCreatedGroup);if(e.accountLid!==void 0)n.uint32(394).string(e.accountLid);if(e.limitSharing!==void 0)n.uint32(400).bool(e.limitSharing);if(e.limitSharingSettingTimestamp!==void 0)n.uint32(408).int64(e.limitSharingSettingTimestamp);if(e.limitSharingTrigger!==void 0)n.uint32(416).int32(e.limitSharingTrigger);if(e.limitSharingInitiatedByMe!==void 0)n.uint32(424).bool(e.limitSharingInitiatedByMe);if(e.maibaAiThreadEnabled!==void 0)n.uint32(432).bool(e.maibaAiThreadEnabled);if(e.isMarketingMessageThread!==void 0)n.uint32(440).bool(e.isMarketingMessageThread);if(e.isSenderNewAccount!==void 0)n.uint32(448).bool(e.isSenderNewAccount);if(e.afterReadDuration!==void 0)n.uint32(456).uint32(e.afterReadDuration);if(e.isSenderSuspicious!==void 0)n.uint32(464).bool(e.isSenderSuspicious);if(e.appealStatus!==void 0)n.uint32(472).int32(e.appealStatus);if(e.appealUpdateTime!==void 0)n.uint32(480).uint64(e.appealUpdateTime);if(e.authAgentParentCompanyName!==void 0)n.uint32(490).string(e.authAgentParentCompanyName);if(e.authAgentObaPhoneNumber!==void 0)n.uint32(498).string(e.authAgentObaPhoneNumber);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ay();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.id=i.string();continue}case 2:{if(t!==18)break;if(a.messages===void 0)a.messages=[];let o=Ha.decode(i,i.uint32());if(o!==void 0)a.messages.push(o);continue}case 3:{if(t!==26)break;a.newJid=i.string();continue}case 4:{if(t!==34)break;a.oldJid=i.string();continue}case 5:{if(t!==40)break;a.lastMsgTimestamp=i.uint64Number();continue}case 6:{if(t!==48)break;a.unreadCount=i.uint32();continue}case 7:{if(t!==56)break;a.readOnly=i.bool();continue}case 8:{if(t!==64)break;a.endOfHistoryTransfer=i.bool();continue}case 9:{if(t!==72)break;a.ephemeralExpiration=i.uint32();continue}case 10:{if(t!==80)break;a.ephemeralSettingTimestamp=i.int64Number();continue}case 11:{if(t!==88)break;a.endOfHistoryTransferType=i.int32();continue}case 12:{if(t!==96)break;a.conversationTimestamp=i.uint64Number();continue}case 13:{if(t!==106)break;a.name=i.string();continue}case 14:{if(t!==114)break;a.pHash=i.string();continue}case 15:{if(t!==120)break;a.notSpam=i.bool();continue}case 16:{if(t!==128)break;a.archived=i.bool();continue}case 17:{if(t!==138)break;a.disappearingMode=ye.decode(i,i.uint32());continue}case 18:{if(t!==144)break;a.unreadMentionCount=i.uint32();continue}case 19:{if(t!==152)break;a.markedAsUnread=i.bool();continue}case 20:{if(t!==162)break;if(a.participant===void 0)a.participant=[];let o=Ta.decode(i,i.uint32());if(o!==void 0)a.participant.push(o);continue}case 21:{if(t!==170)break;a.tcToken=i.bytes();continue}case 22:{if(t!==176)break;a.tcTokenTimestamp=i.uint64Number();continue}case 23:{if(t!==186)break;a.contactPrimaryIdentityKey=i.bytes();continue}case 24:{if(t!==192)break;a.pinned=i.uint32();continue}case 25:{if(t!==200)break;a.muteEndTime=i.uint64Number();continue}case 26:{if(t!==210)break;a.wallpaper=pe.decode(i,i.uint32());continue}case 27:{if(t!==216)break;a.mediaVisibility=i.int32();continue}case 28:{if(t!==224)break;a.tcTokenSenderTimestamp=i.uint64Number();continue}case 29:{if(t!==232)break;a.suspended=i.bool();continue}case 30:{if(t!==240)break;a.terminated=i.bool();continue}case 31:{if(t!==248)break;a.createdAt=i.uint64Number();continue}case 32:{if(t!==258)break;a.createdBy=i.string();continue}case 33:{if(t!==266)break;a.description=i.string();continue}case 34:{if(t!==272)break;a.support=i.bool();continue}case 35:{if(t!==280)break;a.isParentGroup=i.bool();continue}case 37:{if(t!==298)break;a.parentGroupId=i.string();continue}case 36:{if(t!==288)break;a.isDefaultSubgroup=i.bool();continue}case 38:{if(t!==306)break;a.displayName=i.string();continue}case 39:{if(t!==314)break;a.pnJid=i.string();continue}case 40:{if(t!==320)break;a.shareOwnPn=i.bool();continue}case 41:{if(t!==328)break;a.pnhDuplicateLidThread=i.bool();continue}case 42:{if(t!==338)break;a.lidJid=i.string();continue}case 43:{if(t!==346)break;a.username=i.string();continue}case 44:{if(t!==354)break;a.lidOriginType=i.string();continue}case 45:{if(t!==360)break;a.commentsCount=i.uint32();continue}case 46:{if(t!==368)break;a.locked=i.bool();continue}case 47:{if(t!==376)break;a.systemMessageToInsert=i.int32();continue}case 48:{if(t!==384)break;a.capiCreatedGroup=i.bool();continue}case 49:{if(t!==394)break;a.accountLid=i.string();continue}case 50:{if(t!==400)break;a.limitSharing=i.bool();continue}case 51:{if(t!==408)break;a.limitSharingSettingTimestamp=i.int64Number();continue}case 52:{if(t!==416)break;a.limitSharingTrigger=i.int32();continue}case 53:{if(t!==424)break;a.limitSharingInitiatedByMe=i.bool();continue}case 54:{if(t!==432)break;a.maibaAiThreadEnabled=i.bool();continue}case 55:{if(t!==440)break;a.isMarketingMessageThread=i.bool();continue}case 56:{if(t!==448)break;a.isSenderNewAccount=i.bool();continue}case 57:{if(t!==456)break;a.afterReadDuration=i.uint32();continue}case 58:{if(t!==464)break;a.isSenderSuspicious=i.bool();continue}case 59:{if(t!==472)break;a.appealStatus=i.int32();continue}case 60:{if(t!==480)break;a.appealUpdateTime=i.uint64Number();continue}case 61:{if(t!==490)break;a.authAgentParentCompanyName=i.string();continue}case 62:{if(t!==498)break;a.authAgentObaPhoneNumber=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return pa.fromPartial(e??{})},fromPartial(e){let n=ay();return n.id=e.id??void 0,n.messages=e.messages?.map((i)=>Ha.fromPartial(i))||void 0,n.newJid=e.newJid??void 0,n.oldJid=e.oldJid??void 0,n.lastMsgTimestamp=e.lastMsgTimestamp??void 0,n.unreadCount=e.unreadCount??void 0,n.readOnly=e.readOnly??void 0,n.endOfHistoryTransfer=e.endOfHistoryTransfer??void 0,n.ephemeralExpiration=e.ephemeralExpiration??void 0,n.ephemeralSettingTimestamp=e.ephemeralSettingTimestamp??void 0,n.endOfHistoryTransferType=e.endOfHistoryTransferType??void 0,n.conversationTimestamp=e.conversationTimestamp??void 0,n.name=e.name??void 0,n.pHash=e.pHash??void 0,n.notSpam=e.notSpam??void 0,n.archived=e.archived??void 0,n.disappearingMode=e.disappearingMode!==void 0&&e.disappearingMode!==null?ye.fromPartial(e.disappearingMode):void 0,n.unreadMentionCount=e.unreadMentionCount??void 0,n.markedAsUnread=e.markedAsUnread??void 0,n.participant=e.participant?.map((i)=>Ta.fromPartial(i))||void 0,n.tcToken=e.tcToken??void 0,n.tcTokenTimestamp=e.tcTokenTimestamp??void 0,n.contactPrimaryIdentityKey=e.contactPrimaryIdentityKey??void 0,n.pinned=e.pinned??void 0,n.muteEndTime=e.muteEndTime??void 0,n.wallpaper=e.wallpaper!==void 0&&e.wallpaper!==null?pe.fromPartial(e.wallpaper):void 0,n.mediaVisibility=e.mediaVisibility??void 0,n.tcTokenSenderTimestamp=e.tcTokenSenderTimestamp??void 0,n.suspended=e.suspended??void 0,n.terminated=e.terminated??void 0,n.createdAt=e.createdAt??void 0,n.createdBy=e.createdBy??void 0,n.description=e.description??void 0,n.support=e.support??void 0,n.isParentGroup=e.isParentGroup??void 0,n.parentGroupId=e.parentGroupId??void 0,n.isDefaultSubgroup=e.isDefaultSubgroup??void 0,n.displayName=e.displayName??void 0,n.pnJid=e.pnJid??void 0,n.shareOwnPn=e.shareOwnPn??void 0,n.pnhDuplicateLidThread=e.pnhDuplicateLidThread??void 0,n.lidJid=e.lidJid??void 0,n.username=e.username??void 0,n.lidOriginType=e.lidOriginType??void 0,n.commentsCount=e.commentsCount??void 0,n.locked=e.locked??void 0,n.systemMessageToInsert=e.systemMessageToInsert??void 0,n.capiCreatedGroup=e.capiCreatedGroup??void 0,n.accountLid=e.accountLid??void 0,n.limitSharing=e.limitSharing??void 0,n.limitSharingSettingTimestamp=e.limitSharingSettingTimestamp??void 0,n.limitSharingTrigger=e.limitSharingTrigger??void 0,n.limitSharingInitiatedByMe=e.limitSharingInitiatedByMe??void 0,n.maibaAiThreadEnabled=e.maibaAiThreadEnabled??void 0,n.isMarketingMessageThread=e.isMarketingMessageThread??void 0,n.isSenderNewAccount=e.isSenderNewAccount??void 0,n.afterReadDuration=e.afterReadDuration??void 0,n.isSenderSuspicious=e.isSenderSuspicious??void 0,n.appealStatus=e.appealStatus??void 0,n.appealUpdateTime=e.appealUpdateTime??void 0,n.authAgentParentCompanyName=e.authAgentParentCompanyName??void 0,n.authAgentObaPhoneNumber=e.authAgentObaPhoneNumber??void 0,n}};function ry(){return{}}var ga={encode(e,n=new s){if(e.recoveryCode!==void 0)n.uint32(10).string(e.recoveryCode);if(e.userId!==void 0)n.uint32(16).uint64(e.userId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ry();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.recoveryCode=i.string();continue}case 2:{if(t!==16)break;a.userId=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ga.fromPartial(e??{})},fromPartial(e){let n=ry();return n.recoveryCode=e.recoveryCode??void 0,n.userId=e.userId??void 0,n}};function dy(){return{}}var TI={encode(e,n=new s){if(e.device!==void 0)Sa.encode(e.device,n.uint32(10).fork()).join();if(e.virtualDevice!==void 0)Bc.encode(e.virtualDevice,n.uint32(18).fork()).join();if(e.epoch0!==void 0)Ea.encode(e.epoch0,n.uint32(26).fork()).join();if(e.mailboxRootKey!==void 0)n.uint32(34).bytes(e.mailboxRootKey);if(e.error!==void 0)n.uint32(42).string(e.error);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=dy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.device=Sa.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.virtualDevice=Bc.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.epoch0=Ea.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.mailboxRootKey=i.bytes();continue}case 5:{if(t!==42)break;a.error=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return TI.fromPartial(e??{})},fromPartial(e){let n=dy();return n.device=e.device!==void 0&&e.device!==null?Sa.fromPartial(e.device):void 0,n.virtualDevice=e.virtualDevice!==void 0&&e.virtualDevice!==null?Bc.fromPartial(e.virtualDevice):void 0,n.epoch0=e.epoch0!==void 0&&e.epoch0!==null?Ea.fromPartial(e.epoch0):void 0,n.mailboxRootKey=e.mailboxRootKey??void 0,n.error=e.error??void 0,n}};function oy(){return{}}var ya={encode(e,n=new s){if(e.epochRootKey!==void 0)n.uint32(10).bytes(e.epochRootKey);if(e.epochAnonId!==void 0)n.uint32(18).bytes(e.epochAnonId);if(e.threadId!==void 0)n.uint32(26).string(e.threadId);if(e.encryptionVersion!==void 0)n.uint32(32).int32(e.encryptionVersion);if(e.ciphertext!==void 0)n.uint32(42).bytes(e.ciphertext);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=oy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.epochRootKey=i.bytes();continue}case 2:{if(t!==18)break;a.epochAnonId=i.bytes();continue}case 3:{if(t!==26)break;a.threadId=i.string();continue}case 4:{if(t!==32)break;a.encryptionVersion=i.int32();continue}case 5:{if(t!==42)break;a.ciphertext=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ya.fromPartial(e??{})},fromPartial(e){let n=oy();return n.epochRootKey=e.epochRootKey??void 0,n.epochAnonId=e.epochAnonId??void 0,n.threadId=e.threadId??void 0,n.encryptionVersion=e.encryptionVersion??void 0,n.ciphertext=e.ciphertext??void 0,n}};function sy(){return{}}var LI={encode(e,n=new s){if(e.plaintextPayload!==void 0)n.uint32(10).bytes(e.plaintextPayload);if(e.error!==void 0)n.uint32(18).string(e.error);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=sy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.plaintextPayload=i.bytes();continue}case 2:{if(t!==18)break;a.error=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return LI.fromPartial(e??{})},fromPartial(e){let n=sy();return n.plaintextPayload=e.plaintextPayload??void 0,n.error=e.error??void 0,n}};function uy(){return{}}var Ma={encode(e,n=new s){if(e.chatLockSupportLevel!==void 0)n.uint32(8).int32(e.chatLockSupportLevel);if(e.lidMigration!==void 0)ha.encode(e.lidMigration,n.uint32(18).fork()).join();if(e.businessBroadcast!==void 0)_a.encode(e.businessBroadcast,n.uint32(26).fork()).join();if(e.userHasAvatar!==void 0)ka.encode(e.userHasAvatar,n.uint32(34).fork()).join();if(e.memberNameTagPrimarySupport!==void 0)n.uint32(40).int32(e.memberNameTagPrimarySupport);if(e.aiThread!==void 0)ma.encode(e.aiThread,n.uint32(50).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=uy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.chatLockSupportLevel=i.int32();continue}case 2:{if(t!==18)break;a.lidMigration=ha.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.businessBroadcast=_a.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.userHasAvatar=ka.decode(i,i.uint32());continue}case 5:{if(t!==40)break;a.memberNameTagPrimarySupport=i.int32();continue}case 6:{if(t!==50)break;a.aiThread=ma.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ma.fromPartial(e??{})},fromPartial(e){let n=uy();return n.chatLockSupportLevel=e.chatLockSupportLevel??void 0,n.lidMigration=e.lidMigration!==void 0&&e.lidMigration!==null?ha.fromPartial(e.lidMigration):void 0,n.businessBroadcast=e.businessBroadcast!==void 0&&e.businessBroadcast!==null?_a.fromPartial(e.businessBroadcast):void 0,n.userHasAvatar=e.userHasAvatar!==void 0&&e.userHasAvatar!==null?ka.fromPartial(e.userHasAvatar):void 0,n.memberNameTagPrimarySupport=e.memberNameTagPrimarySupport??void 0,n.aiThread=e.aiThread!==void 0&&e.aiThread!==null?ma.fromPartial(e.aiThread):void 0,n}};function cy(){return{}}var ma={encode(e,n=new s){if(e.supportLevel!==void 0)n.uint32(8).int32(e.supportLevel);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=cy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.supportLevel=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ma.fromPartial(e??{})},fromPartial(e){let n=cy();return n.supportLevel=e.supportLevel??void 0,n}};function fy(){return{}}var _a={encode(e,n=new s){if(e.importListEnabled!==void 0)n.uint32(8).bool(e.importListEnabled);if(e.companionSupportEnabled!==void 0)n.uint32(16).bool(e.companionSupportEnabled);if(e.campaignSyncEnabled!==void 0)n.uint32(24).bool(e.campaignSyncEnabled);if(e.insightsSyncEnabled!==void 0)n.uint32(32).bool(e.insightsSyncEnabled);if(e.recipientLimit!==void 0)n.uint32(40).int32(e.recipientLimit);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=fy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.importListEnabled=i.bool();continue}case 2:{if(t!==16)break;a.companionSupportEnabled=i.bool();continue}case 3:{if(t!==24)break;a.campaignSyncEnabled=i.bool();continue}case 4:{if(t!==32)break;a.insightsSyncEnabled=i.bool();continue}case 5:{if(t!==40)break;a.recipientLimit=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return _a.fromPartial(e??{})},fromPartial(e){let n=fy();return n.importListEnabled=e.importListEnabled??void 0,n.companionSupportEnabled=e.companionSupportEnabled??void 0,n.campaignSyncEnabled=e.campaignSyncEnabled??void 0,n.insightsSyncEnabled=e.insightsSyncEnabled??void 0,n.recipientLimit=e.recipientLimit??void 0,n}};function ly(){return{}}var ha={encode(e,n=new s){if(e.chatDbMigrationTimestamp!==void 0)n.uint32(8).uint64(e.chatDbMigrationTimestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ly();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.chatDbMigrationTimestamp=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ha.fromPartial(e??{})},fromPartial(e){let n=ly();return n.chatDbMigrationTimestamp=e.chatDbMigrationTimestamp??void 0,n}};function py(){return{}}var ka={encode(e,n=new s){if(e.userHasAvatar!==void 0)n.uint32(8).bool(e.userHasAvatar);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=py();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.userHasAvatar=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ka.fromPartial(e??{})},fromPartial(e){let n=py();return n.userHasAvatar=e.userHasAvatar??void 0,n}};function gy(){return{}}var wI={encode(e,n=new s){if(e.generation!==void 0)n.uint32(8).uint32(e.generation);if(e.signature!==void 0)n.uint32(18).bytes(e.signature);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=gy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.generation=i.uint32();continue}case 2:{if(t!==18)break;a.signature=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return wI.fromPartial(e??{})},fromPartial(e){let n=gy();return n.generation=e.generation??void 0,n.signature=e.signature??void 0,n}};function yy(){return{}}var Aa={encode(e,n=new s){if(e.senderKeyHash!==void 0)n.uint32(10).bytes(e.senderKeyHash);if(e.senderTimestamp!==void 0)n.uint32(16).uint64(e.senderTimestamp);if(e.senderKeyIndexes!==void 0&&e.senderKeyIndexes.length!==0){n.uint32(26).fork();for(let i of e.senderKeyIndexes)n.uint32(i);n.join()}if(e.senderAccountType!==void 0)n.uint32(32).int32(e.senderAccountType);if(e.receiverAccountType!==void 0)n.uint32(40).int32(e.receiverAccountType);if(e.recipientKeyHash!==void 0)n.uint32(66).bytes(e.recipientKeyHash);if(e.recipientTimestamp!==void 0)n.uint32(72).uint64(e.recipientTimestamp);if(e.recipientKeyIndexes!==void 0&&e.recipientKeyIndexes.length!==0){n.uint32(82).fork();for(let i of e.recipientKeyIndexes)n.uint32(i);n.join()}return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=yy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.senderKeyHash=i.bytes();continue}case 2:{if(t!==16)break;a.senderTimestamp=i.uint64Number();continue}case 3:{if(t===24){if(a.senderKeyIndexes===void 0)a.senderKeyIndexes=[];a.senderKeyIndexes.push(i.uint32());continue}if(t===26){if(a.senderKeyIndexes===void 0)a.senderKeyIndexes=[];let o=i.uint32()+i.pos;while(i.pos<o)a.senderKeyIndexes.push(i.uint32());continue}break}case 4:{if(t!==32)break;a.senderAccountType=i.int32();continue}case 5:{if(t!==40)break;a.receiverAccountType=i.int32();continue}case 8:{if(t!==66)break;a.recipientKeyHash=i.bytes();continue}case 9:{if(t!==72)break;a.recipientTimestamp=i.uint64Number();continue}case 10:{if(t===80){if(a.recipientKeyIndexes===void 0)a.recipientKeyIndexes=[];a.recipientKeyIndexes.push(i.uint32());continue}if(t===82){if(a.recipientKeyIndexes===void 0)a.recipientKeyIndexes=[];let o=i.uint32()+i.pos;while(i.pos<o)a.recipientKeyIndexes.push(i.uint32());continue}break}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Aa.fromPartial(e??{})},fromPartial(e){let n=yy();return n.senderKeyHash=e.senderKeyHash??void 0,n.senderTimestamp=e.senderTimestamp??void 0,n.senderKeyIndexes=e.senderKeyIndexes?.map((i)=>i)||void 0,n.senderAccountType=e.senderAccountType??void 0,n.receiverAccountType=e.receiverAccountType??void 0,n.recipientKeyHash=e.recipientKeyHash??void 0,n.recipientTimestamp=e.recipientTimestamp??void 0,n.recipientKeyIndexes=e.recipientKeyIndexes?.map((i)=>i)||void 0,n}};function My(){return{}}var Sa={encode(e,n=new s){if(e.publicKey!==void 0)n.uint32(10).bytes(e.publicKey);if(e.epochAuthPublicKey!==void 0)n.uint32(18).bytes(e.epochAuthPublicKey);if(e.epochAuthPublicKeySig!==void 0)n.uint32(26).bytes(e.epochAuthPublicKeySig);if(e.epochStoragePublicKey!==void 0)n.uint32(34).bytes(e.epochStoragePublicKey);if(e.epochStoragePublicKeySig!==void 0)n.uint32(42).bytes(e.epochStoragePublicKeySig);if(e.supportedEncryptionVersions!==void 0&&e.supportedEncryptionVersions.length!==0)for(let i of e.supportedEncryptionVersions)n.uint32(48).int32(i);if(e.encryptionVersionSignature!==void 0)n.uint32(58).bytes(e.encryptionVersionSignature);if(e.clientVersion!==void 0)n.uint32(64).int32(e.clientVersion);if(e.ocmfClientState!==void 0)n.uint32(74).bytes(e.ocmfClientState);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=My();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.publicKey=i.bytes();continue}case 2:{if(t!==18)break;a.epochAuthPublicKey=i.bytes();continue}case 3:{if(t!==26)break;a.epochAuthPublicKeySig=i.bytes();continue}case 4:{if(t!==34)break;a.epochStoragePublicKey=i.bytes();continue}case 5:{if(t!==42)break;a.epochStoragePublicKeySig=i.bytes();continue}case 6:{if(t===48){if(a.supportedEncryptionVersions===void 0)a.supportedEncryptionVersions=[];a.supportedEncryptionVersions.push(i.int32());continue}if(t===50){if(a.supportedEncryptionVersions===void 0)a.supportedEncryptionVersions=[];let o=i.uint32()+i.pos;while(i.pos<o)a.supportedEncryptionVersions.push(i.int32());continue}break}case 7:{if(t!==58)break;a.encryptionVersionSignature=i.bytes();continue}case 8:{if(t!==64)break;a.clientVersion=i.int32();continue}case 9:{if(t!==74)break;a.ocmfClientState=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Sa.fromPartial(e??{})},fromPartial(e){let n=My();return n.publicKey=e.publicKey??void 0,n.epochAuthPublicKey=e.epochAuthPublicKey??void 0,n.epochAuthPublicKeySig=e.epochAuthPublicKeySig??void 0,n.epochStoragePublicKey=e.epochStoragePublicKey??void 0,n.epochStoragePublicKeySig=e.epochStoragePublicKeySig??void 0,n.supportedEncryptionVersions=e.supportedEncryptionVersions?.map((i)=>i)||void 0,n.encryptionVersionSignature=e.encryptionVersionSignature??void 0,n.clientVersion=e.clientVersion??void 0,n.ocmfClientState=e.ocmfClientState??void 0,n}};function my(){return{}}var Jc={encode(e,n=new s){if(e.os!==void 0)n.uint32(10).string(e.os);if(e.version!==void 0)Pa.encode(e.version,n.uint32(18).fork()).join();if(e.platformType!==void 0)n.uint32(24).int32(e.platformType);if(e.requireFullSync!==void 0)n.uint32(32).bool(e.requireFullSync);if(e.historySyncConfig!==void 0)on.encode(e.historySyncConfig,n.uint32(42).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=my();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.os=i.string();continue}case 2:{if(t!==18)break;a.version=Pa.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.platformType=i.int32();continue}case 4:{if(t!==32)break;a.requireFullSync=i.bool();continue}case 5:{if(t!==42)break;a.historySyncConfig=on.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Jc.fromPartial(e??{})},fromPartial(e){let n=my();return n.os=e.os??void 0,n.version=e.version!==void 0&&e.version!==null?Pa.fromPartial(e.version):void 0,n.platformType=e.platformType??void 0,n.requireFullSync=e.requireFullSync??void 0,n.historySyncConfig=e.historySyncConfig!==void 0&&e.historySyncConfig!==null?on.fromPartial(e.historySyncConfig):void 0,n}};function _y(){return{}}var Pa={encode(e,n=new s){if(e.primary!==void 0)n.uint32(8).uint32(e.primary);if(e.secondary!==void 0)n.uint32(16).uint32(e.secondary);if(e.tertiary!==void 0)n.uint32(24).uint32(e.tertiary);if(e.quaternary!==void 0)n.uint32(32).uint32(e.quaternary);if(e.quinary!==void 0)n.uint32(40).uint32(e.quinary);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=_y();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.primary=i.uint32();continue}case 2:{if(t!==16)break;a.secondary=i.uint32();continue}case 3:{if(t!==24)break;a.tertiary=i.uint32();continue}case 4:{if(t!==32)break;a.quaternary=i.uint32();continue}case 5:{if(t!==40)break;a.quinary=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Pa.fromPartial(e??{})},fromPartial(e){let n=_y();return n.primary=e.primary??void 0,n.secondary=e.secondary??void 0,n.tertiary=e.tertiary??void 0,n.quaternary=e.quaternary??void 0,n.quinary=e.quinary??void 0,n}};function hy(){return{}}var on={encode(e,n=new s){if(e.fullSyncDaysLimit!==void 0)n.uint32(8).uint32(e.fullSyncDaysLimit);if(e.fullSyncSizeMbLimit!==void 0)n.uint32(16).uint32(e.fullSyncSizeMbLimit);if(e.storageQuotaMb!==void 0)n.uint32(24).uint32(e.storageQuotaMb);if(e.inlineInitialPayloadInE2EeMsg!==void 0)n.uint32(32).bool(e.inlineInitialPayloadInE2EeMsg);if(e.recentSyncDaysLimit!==void 0)n.uint32(40).uint32(e.recentSyncDaysLimit);if(e.supportCallLogHistory!==void 0)n.uint32(48).bool(e.supportCallLogHistory);if(e.supportBotUserAgentChatHistory!==void 0)n.uint32(56).bool(e.supportBotUserAgentChatHistory);if(e.supportCagReactionsAndPolls!==void 0)n.uint32(64).bool(e.supportCagReactionsAndPolls);if(e.supportBizHostedMsg!==void 0)n.uint32(72).bool(e.supportBizHostedMsg);if(e.supportRecentSyncChunkMessageCountTuning!==void 0)n.uint32(80).bool(e.supportRecentSyncChunkMessageCountTuning);if(e.supportHostedGroupMsg!==void 0)n.uint32(88).bool(e.supportHostedGroupMsg);if(e.supportFbidBotChatHistory!==void 0)n.uint32(96).bool(e.supportFbidBotChatHistory);if(e.supportAddOnHistorySyncMigration!==void 0)n.uint32(104).bool(e.supportAddOnHistorySyncMigration);if(e.supportMessageAssociation!==void 0)n.uint32(112).bool(e.supportMessageAssociation);if(e.supportGroupHistory!==void 0)n.uint32(120).bool(e.supportGroupHistory);if(e.onDemandReady!==void 0)n.uint32(128).bool(e.onDemandReady);if(e.supportGuestChat!==void 0)n.uint32(136).bool(e.supportGuestChat);if(e.completeOnDemandReady!==void 0)n.uint32(144).bool(e.completeOnDemandReady);if(e.thumbnailSyncDaysLimit!==void 0)n.uint32(152).uint32(e.thumbnailSyncDaysLimit);if(e.initialSyncMaxMessagesPerChat!==void 0)n.uint32(160).uint32(e.initialSyncMaxMessagesPerChat);if(e.supportManusHistory!==void 0)n.uint32(168).bool(e.supportManusHistory);if(e.supportHatchHistory!==void 0)n.uint32(176).bool(e.supportHatchHistory);if(e.supportedBotChannelFbids!==void 0&&e.supportedBotChannelFbids.length!==0)for(let i of e.supportedBotChannelFbids)n.uint32(186).string(i);if(e.supportInlineContacts!==void 0)n.uint32(192).bool(e.supportInlineContacts);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=hy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.fullSyncDaysLimit=i.uint32();continue}case 2:{if(t!==16)break;a.fullSyncSizeMbLimit=i.uint32();continue}case 3:{if(t!==24)break;a.storageQuotaMb=i.uint32();continue}case 4:{if(t!==32)break;a.inlineInitialPayloadInE2EeMsg=i.bool();continue}case 5:{if(t!==40)break;a.recentSyncDaysLimit=i.uint32();continue}case 6:{if(t!==48)break;a.supportCallLogHistory=i.bool();continue}case 7:{if(t!==56)break;a.supportBotUserAgentChatHistory=i.bool();continue}case 8:{if(t!==64)break;a.supportCagReactionsAndPolls=i.bool();continue}case 9:{if(t!==72)break;a.supportBizHostedMsg=i.bool();continue}case 10:{if(t!==80)break;a.supportRecentSyncChunkMessageCountTuning=i.bool();continue}case 11:{if(t!==88)break;a.supportHostedGroupMsg=i.bool();continue}case 12:{if(t!==96)break;a.supportFbidBotChatHistory=i.bool();continue}case 13:{if(t!==104)break;a.supportAddOnHistorySyncMigration=i.bool();continue}case 14:{if(t!==112)break;a.supportMessageAssociation=i.bool();continue}case 15:{if(t!==120)break;a.supportGroupHistory=i.bool();continue}case 16:{if(t!==128)break;a.onDemandReady=i.bool();continue}case 17:{if(t!==136)break;a.supportGuestChat=i.bool();continue}case 18:{if(t!==144)break;a.completeOnDemandReady=i.bool();continue}case 19:{if(t!==152)break;a.thumbnailSyncDaysLimit=i.uint32();continue}case 20:{if(t!==160)break;a.initialSyncMaxMessagesPerChat=i.uint32();continue}case 21:{if(t!==168)break;a.supportManusHistory=i.bool();continue}case 22:{if(t!==176)break;a.supportHatchHistory=i.bool();continue}case 23:{if(t!==186)break;if(a.supportedBotChannelFbids===void 0)a.supportedBotChannelFbids=[];let o=i.string();if(o!==void 0)a.supportedBotChannelFbids.push(o);continue}case 24:{if(t!==192)break;a.supportInlineContacts=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return on.fromPartial(e??{})},fromPartial(e){let n=hy();return n.fullSyncDaysLimit=e.fullSyncDaysLimit??void 0,n.fullSyncSizeMbLimit=e.fullSyncSizeMbLimit??void 0,n.storageQuotaMb=e.storageQuotaMb??void 0,n.inlineInitialPayloadInE2EeMsg=e.inlineInitialPayloadInE2EeMsg??void 0,n.recentSyncDaysLimit=e.recentSyncDaysLimit??void 0,n.supportCallLogHistory=e.supportCallLogHistory??void 0,n.supportBotUserAgentChatHistory=e.supportBotUserAgentChatHistory??void 0,n.supportCagReactionsAndPolls=e.supportCagReactionsAndPolls??void 0,n.supportBizHostedMsg=e.supportBizHostedMsg??void 0,n.supportRecentSyncChunkMessageCountTuning=e.supportRecentSyncChunkMessageCountTuning??void 0,n.supportHostedGroupMsg=e.supportHostedGroupMsg??void 0,n.supportFbidBotChatHistory=e.supportFbidBotChatHistory??void 0,n.supportAddOnHistorySyncMigration=e.supportAddOnHistorySyncMigration??void 0,n.supportMessageAssociation=e.supportMessageAssociation??void 0,n.supportGroupHistory=e.supportGroupHistory??void 0,n.onDemandReady=e.onDemandReady??void 0,n.supportGuestChat=e.supportGuestChat??void 0,n.completeOnDemandReady=e.completeOnDemandReady??void 0,n.thumbnailSyncDaysLimit=e.thumbnailSyncDaysLimit??void 0,n.initialSyncMaxMessagesPerChat=e.initialSyncMaxMessagesPerChat??void 0,n.supportManusHistory=e.supportManusHistory??void 0,n.supportHatchHistory=e.supportHatchHistory??void 0,n.supportedBotChannelFbids=e.supportedBotChannelFbids?.map((i)=>i)||void 0,n.supportInlineContacts=e.supportInlineContacts??void 0,n}};function ky(){return{}}var ye={encode(e,n=new s){if(e.initiator!==void 0)n.uint32(8).int32(e.initiator);if(e.trigger!==void 0)n.uint32(16).int32(e.trigger);if(e.initiatorDeviceJid!==void 0)n.uint32(26).string(e.initiatorDeviceJid);if(e.initiatedByMe!==void 0)n.uint32(32).bool(e.initiatedByMe);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ky();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.initiator=i.int32();continue}case 2:{if(t!==16)break;a.trigger=i.int32();continue}case 3:{if(t!==26)break;a.initiatorDeviceJid=i.string();continue}case 4:{if(t!==32)break;a.initiatedByMe=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ye.fromPartial(e??{})},fromPartial(e){let n=ky();return n.initiator=e.initiator??void 0,n.trigger=e.trigger??void 0,n.initiatorDeviceJid=e.initiatorDeviceJid??void 0,n.initiatedByMe=e.initiatedByMe??void 0,n}};function Ay(){return{}}var ba={encode(e,n=new s){if(e.embeddedMessage!==void 0)Ia.encode(e.embeddedMessage,n.uint32(10).fork()).join();if(e.embeddedMusic!==void 0)Me.encode(e.embeddedMusic,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ay();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.embeddedMessage=Ia.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.embeddedMusic=Me.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ba.fromPartial(e??{})},fromPartial(e){let n=Ay();return n.embeddedMessage=e.embeddedMessage!==void 0&&e.embeddedMessage!==null?Ia.fromPartial(e.embeddedMessage):void 0,n.embeddedMusic=e.embeddedMusic!==void 0&&e.embeddedMusic!==null?Me.fromPartial(e.embeddedMusic):void 0,n}};function Sy(){return{}}var Ia={encode(e,n=new s){if(e.stanzaId!==void 0)n.uint32(10).string(e.stanzaId);if(e.message!==void 0)F.encode(e.message,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Sy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.stanzaId=i.string();continue}case 2:{if(t!==18)break;a.message=F.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ia.fromPartial(e??{})},fromPartial(e){let n=Sy();return n.stanzaId=e.stanzaId??void 0,n.message=e.message!==void 0&&e.message!==null?F.fromPartial(e.message):void 0,n}};function Py(){return{}}var Me={encode(e,n=new s){if(e.musicContentMediaId!==void 0)n.uint32(10).string(e.musicContentMediaId);if(e.songId!==void 0)n.uint32(18).string(e.songId);if(e.author!==void 0)n.uint32(26).string(e.author);if(e.title!==void 0)n.uint32(34).string(e.title);if(e.artworkDirectPath!==void 0)n.uint32(42).string(e.artworkDirectPath);if(e.artworkSha256!==void 0)n.uint32(50).bytes(e.artworkSha256);if(e.artworkEncSha256!==void 0)n.uint32(58).bytes(e.artworkEncSha256);if(e.artistAttribution!==void 0)n.uint32(66).string(e.artistAttribution);if(e.countryBlocklist!==void 0)n.uint32(74).bytes(e.countryBlocklist);if(e.isExplicit!==void 0)n.uint32(80).bool(e.isExplicit);if(e.artworkMediaKey!==void 0)n.uint32(90).bytes(e.artworkMediaKey);if(e.musicSongStartTimeInMs!==void 0)n.uint32(96).int64(e.musicSongStartTimeInMs);if(e.derivedContentStartTimeInMs!==void 0)n.uint32(104).int64(e.derivedContentStartTimeInMs);if(e.overlapDurationInMs!==void 0)n.uint32(112).int64(e.overlapDurationInMs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Py();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.musicContentMediaId=i.string();continue}case 2:{if(t!==18)break;a.songId=i.string();continue}case 3:{if(t!==26)break;a.author=i.string();continue}case 4:{if(t!==34)break;a.title=i.string();continue}case 5:{if(t!==42)break;a.artworkDirectPath=i.string();continue}case 6:{if(t!==50)break;a.artworkSha256=i.bytes();continue}case 7:{if(t!==58)break;a.artworkEncSha256=i.bytes();continue}case 8:{if(t!==66)break;a.artistAttribution=i.string();continue}case 9:{if(t!==74)break;a.countryBlocklist=i.bytes();continue}case 10:{if(t!==80)break;a.isExplicit=i.bool();continue}case 11:{if(t!==90)break;a.artworkMediaKey=i.bytes();continue}case 12:{if(t!==96)break;a.musicSongStartTimeInMs=i.int64Number();continue}case 13:{if(t!==104)break;a.derivedContentStartTimeInMs=i.int64Number();continue}case 14:{if(t!==112)break;a.overlapDurationInMs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Me.fromPartial(e??{})},fromPartial(e){let n=Py();return n.musicContentMediaId=e.musicContentMediaId??void 0,n.songId=e.songId??void 0,n.author=e.author??void 0,n.title=e.title??void 0,n.artworkDirectPath=e.artworkDirectPath??void 0,n.artworkSha256=e.artworkSha256??void 0,n.artworkEncSha256=e.artworkEncSha256??void 0,n.artistAttribution=e.artistAttribution??void 0,n.countryBlocklist=e.countryBlocklist??void 0,n.isExplicit=e.isExplicit??void 0,n.artworkMediaKey=e.artworkMediaKey??void 0,n.musicSongStartTimeInMs=e.musicSongStartTimeInMs??void 0,n.derivedContentStartTimeInMs=e.derivedContentStartTimeInMs??void 0,n.overlapDurationInMs=e.overlapDurationInMs??void 0,n}};function by(){return{}}var Ra={encode(e,n=new s){if(e.epochRootKey!==void 0)n.uint32(10).bytes(e.epochRootKey);if(e.mailboxRootKey!==void 0)n.uint32(18).bytes(e.mailboxRootKey);if(e.orfClientState!==void 0)n.uint32(26).bytes(e.orfClientState);if(e.epochAnonId!==void 0)n.uint32(34).bytes(e.epochAnonId);if(e.epochId!==void 0)n.uint32(40).uint64(e.epochId);if(e.threadId!==void 0)n.uint32(50).string(e.threadId);if(e.waCanonicalUserFbid!==void 0)n.uint32(56).uint64(e.waCanonicalUserFbid);if(e.timestampMs!==void 0)n.uint32(64).uint64(e.timestampMs);if(e.backupId!==void 0)n.uint32(72).uint64(e.backupId);if(e.plaintextPayload!==void 0)n.uint32(82).bytes(e.plaintextPayload);if(e.stanzaId!==void 0)n.uint32(90).string(e.stanzaId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=by();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.epochRootKey=i.bytes();continue}case 2:{if(t!==18)break;a.mailboxRootKey=i.bytes();continue}case 3:{if(t!==26)break;a.orfClientState=i.bytes();continue}case 4:{if(t!==34)break;a.epochAnonId=i.bytes();continue}case 5:{if(t!==40)break;a.epochId=i.uint64Number();continue}case 6:{if(t!==50)break;a.threadId=i.string();continue}case 7:{if(t!==56)break;a.waCanonicalUserFbid=i.uint64Number();continue}case 8:{if(t!==64)break;a.timestampMs=i.uint64Number();continue}case 9:{if(t!==72)break;a.backupId=i.uint64Number();continue}case 10:{if(t!==82)break;a.plaintextPayload=i.bytes();continue}case 11:{if(t!==90)break;a.stanzaId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ra.fromPartial(e??{})},fromPartial(e){let n=by();return n.epochRootKey=e.epochRootKey??void 0,n.mailboxRootKey=e.mailboxRootKey??void 0,n.orfClientState=e.orfClientState??void 0,n.epochAnonId=e.epochAnonId??void 0,n.epochId=e.epochId??void 0,n.threadId=e.threadId??void 0,n.waCanonicalUserFbid=e.waCanonicalUserFbid??void 0,n.timestampMs=e.timestampMs??void 0,n.backupId=e.backupId??void 0,n.plaintextPayload=e.plaintextPayload??void 0,n.stanzaId=e.stanzaId??void 0,n}};function Iy(){return{}}var FI={encode(e,n=new s){if(e.encryptedProtobuf!==void 0)n.uint32(10).bytes(e.encryptedProtobuf);if(e.orfThreadId!==void 0)n.uint32(18).bytes(e.orfThreadId);if(e.valueSecretRef!==void 0)n.uint32(26).string(e.valueSecretRef);if(e.offlineThreadingId!==void 0)n.uint32(32).uint64(e.offlineThreadingId);if(e.timestampMs!==void 0)n.uint32(40).uint64(e.timestampMs);if(e.messageKey!==void 0)n.uint32(50).bytes(e.messageKey);if(e.error!==void 0)n.uint32(58).string(e.error);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Iy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.encryptedProtobuf=i.bytes();continue}case 2:{if(t!==18)break;a.orfThreadId=i.bytes();continue}case 3:{if(t!==26)break;a.valueSecretRef=i.string();continue}case 4:{if(t!==32)break;a.offlineThreadingId=i.uint64Number();continue}case 5:{if(t!==40)break;a.timestampMs=i.uint64Number();continue}case 6:{if(t!==50)break;a.messageKey=i.bytes();continue}case 7:{if(t!==58)break;a.error=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return FI.fromPartial(e??{})},fromPartial(e){let n=Iy();return n.encryptedProtobuf=e.encryptedProtobuf??void 0,n.orfThreadId=e.orfThreadId??void 0,n.valueSecretRef=e.valueSecretRef??void 0,n.offlineThreadingId=e.offlineThreadingId??void 0,n.timestampMs=e.timestampMs??void 0,n.messageKey=e.messageKey??void 0,n.error=e.error??void 0,n}};function Ry(){return{}}var VI={encode(e,n=new s){if(e.encryptedPayload!==void 0)n.uint32(10).bytes(e.encryptedPayload);if(e.iv!==void 0)n.uint32(18).bytes(e.iv);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ry();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.encryptedPayload=i.bytes();continue}case 2:{if(t!==18)break;a.iv=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return VI.fromPartial(e??{})},fromPartial(e){let n=Ry();return n.encryptedPayload=e.encryptedPayload??void 0,n.iv=e.iv??void 0,n}};function Dy(){return{}}var Da={encode(e,n=new s){if(e.encryptedDevicePrivateKey!==void 0)n.uint32(10).bytes(e.encryptedDevicePrivateKey);if(e.encryptedObliviousValidationTokenBlob!==void 0)n.uint32(18).bytes(e.encryptedObliviousValidationTokenBlob);if(e.encryptedEpochStoragePrivateKey!==void 0)n.uint32(26).bytes(e.encryptedEpochStoragePrivateKey);if(e.encryptedOcmfClientState!==void 0)n.uint32(34).bytes(e.encryptedOcmfClientState);if(e.encryptedOrfClientStateV2!==void 0)n.uint32(42).bytes(e.encryptedOrfClientStateV2);if(e.encryptedMailboxRootKeyBlob!==void 0)n.uint32(50).bytes(e.encryptedMailboxRootKeyBlob);if(e.encryptedEpochAnonId!==void 0)n.uint32(58).bytes(e.encryptedEpochAnonId);if(e.encryptedEpochRootKey!==void 0)n.uint32(66).bytes(e.encryptedEpochRootKey);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Dy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.encryptedDevicePrivateKey=i.bytes();continue}case 2:{if(t!==18)break;a.encryptedObliviousValidationTokenBlob=i.bytes();continue}case 3:{if(t!==26)break;a.encryptedEpochStoragePrivateKey=i.bytes();continue}case 4:{if(t!==34)break;a.encryptedOcmfClientState=i.bytes();continue}case 5:{if(t!==42)break;a.encryptedOrfClientStateV2=i.bytes();continue}case 6:{if(t!==50)break;a.encryptedMailboxRootKeyBlob=i.bytes();continue}case 7:{if(t!==58)break;a.encryptedEpochAnonId=i.bytes();continue}case 8:{if(t!==66)break;a.encryptedEpochRootKey=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Da.fromPartial(e??{})},fromPartial(e){let n=Dy();return n.encryptedDevicePrivateKey=e.encryptedDevicePrivateKey??void 0,n.encryptedObliviousValidationTokenBlob=e.encryptedObliviousValidationTokenBlob??void 0,n.encryptedEpochStoragePrivateKey=e.encryptedEpochStoragePrivateKey??void 0,n.encryptedOcmfClientState=e.encryptedOcmfClientState??void 0,n.encryptedOrfClientStateV2=e.encryptedOrfClientStateV2??void 0,n.encryptedMailboxRootKeyBlob=e.encryptedMailboxRootKeyBlob??void 0,n.encryptedEpochAnonId=e.encryptedEpochAnonId??void 0,n.encryptedEpochRootKey=e.encryptedEpochRootKey??void 0,n}};function Ey(){return{}}var KI={encode(e,n=new s){if(e.duration!==void 0)n.uint32(13).sfixed32(e.duration);if(e.timestamp!==void 0)n.uint32(17).sfixed64(e.timestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ey();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==13)break;a.duration=i.sfixed32();continue}case 2:{if(t!==17)break;a.timestamp=i.sfixed64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return KI.fromPartial(e??{})},fromPartial(e){let n=Ey();return n.duration=e.duration??void 0,n.timestamp=e.timestamp??void 0,n}};function By(){return{}}var Ea={encode(e,n=new s){if(e.epochFbid!==void 0)n.uint32(8).uint64(e.epochFbid);if(e.epochAnonId!==void 0)n.uint32(18).bytes(e.epochAnonId);if(e.epochData!==void 0)n.uint32(26).bytes(e.epochData);if(e.wrappedRootKeyForSelf!==void 0)n.uint32(34).bytes(e.wrappedRootKeyForSelf);if(e.epochSignature!==void 0)n.uint32(42).bytes(e.epochSignature);if(e.epochRootKeyFingerprint!==void 0)n.uint32(50).bytes(e.epochRootKeyFingerprint);if(e.epochRootKey!==void 0)n.uint32(58).bytes(e.epochRootKey);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=By();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.epochFbid=i.uint64Number();continue}case 2:{if(t!==18)break;a.epochAnonId=i.bytes();continue}case 3:{if(t!==26)break;a.epochData=i.bytes();continue}case 4:{if(t!==34)break;a.wrappedRootKeyForSelf=i.bytes();continue}case 5:{if(t!==42)break;a.epochSignature=i.bytes();continue}case 6:{if(t!==50)break;a.epochRootKeyFingerprint=i.bytes();continue}case 7:{if(t!==58)break;a.epochRootKey=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ea.fromPartial(e??{})},fromPartial(e){let n=By();return n.epochFbid=e.epochFbid??void 0,n.epochAnonId=e.epochAnonId??void 0,n.epochData=e.epochData??void 0,n.wrappedRootKeyForSelf=e.wrappedRootKeyForSelf??void 0,n.epochSignature=e.epochSignature??void 0,n.epochRootKeyFingerprint=e.epochRootKeyFingerprint??void 0,n.epochRootKey=e.epochRootKey??void 0,n}};function Cy(){return{}}var Ba={encode(e,n=new s){if(e.isStale!==void 0)n.uint32(8).bool(e.isStale);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Cy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isStale=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ba.fromPartial(e??{})},fromPartial(e){let n=Cy();return n.isStale=e.isStale??void 0,n}};function vy(){return{}}var Ca={encode(e,n=new s){if(e.eventResponseMessageKey!==void 0)_.encode(e.eventResponseMessageKey,n.uint32(10).fork()).join();if(e.timestampMs!==void 0)n.uint32(16).int64(e.timestampMs);if(e.eventResponseMessage!==void 0)Ee.encode(e.eventResponseMessage,n.uint32(26).fork()).join();if(e.unread!==void 0)n.uint32(32).bool(e.unread);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=vy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.eventResponseMessageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.timestampMs=i.int64Number();continue}case 3:{if(t!==26)break;a.eventResponseMessage=Ee.decode(i,i.uint32());continue}case 4:{if(t!==32)break;a.unread=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ca.fromPartial(e??{})},fromPartial(e){let n=vy();return n.eventResponseMessageKey=e.eventResponseMessageKey!==void 0&&e.eventResponseMessageKey!==null?_.fromPartial(e.eventResponseMessageKey):void 0,n.timestampMs=e.timestampMs??void 0,n.eventResponseMessage=e.eventResponseMessage!==void 0&&e.eventResponseMessage!==null?Ee.fromPartial(e.eventResponseMessage):void 0,n.unread=e.unread??void 0,n}};function xy(){return{}}var En={encode(e,n=new s){if(e.code!==void 0)n.uint32(8).uint64(e.code);if(e.text!==void 0)n.uint32(18).string(e.text);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=xy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.code=i.uint64Number();continue}case 2:{if(t!==18)break;a.text=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return En.fromPartial(e??{})},fromPartial(e){let n=xy();return n.code=e.code??void 0,n.text=e.text??void 0,n}};function Ny(){return{}}var Bn={encode(e,n=new s){if(e.mediaKey!==void 0)n.uint32(10).bytes(e.mediaKey);if(e.directPath!==void 0)n.uint32(18).string(e.directPath);if(e.handle!==void 0)n.uint32(26).string(e.handle);if(e.fileSizeBytes!==void 0)n.uint32(32).uint64(e.fileSizeBytes);if(e.fileSha256!==void 0)n.uint32(42).bytes(e.fileSha256);if(e.fileEncSha256!==void 0)n.uint32(50).bytes(e.fileEncSha256);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ny();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.mediaKey=i.bytes();continue}case 2:{if(t!==18)break;a.directPath=i.string();continue}case 3:{if(t!==26)break;a.handle=i.string();continue}case 4:{if(t!==32)break;a.fileSizeBytes=i.uint64Number();continue}case 5:{if(t!==42)break;a.fileSha256=i.bytes();continue}case 6:{if(t!==50)break;a.fileEncSha256=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Bn.fromPartial(e??{})},fromPartial(e){let n=Ny();return n.mediaKey=e.mediaKey??void 0,n.directPath=e.directPath??void 0,n.handle=e.handle??void 0,n.fileSizeBytes=e.fileSizeBytes??void 0,n.fileSha256=e.fileSha256??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n}};function Oy(){return{}}var De={encode(e,n=new s){if(e.minVersion!==void 0)n.uint32(8).uint32(e.minVersion);if(e.maxVersion!==void 0)n.uint32(16).uint32(e.maxVersion);if(e.notReportableMinVersion!==void 0)n.uint32(24).uint32(e.notReportableMinVersion);if(e.isMessage!==void 0)n.uint32(32).bool(e.isMessage);return globalThis.Object.entries(e.subfield||{}).forEach(([i,r])=>{Lc.encode({key:i,value:r},n.uint32(42).fork()).join()}),n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Oy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.minVersion=i.uint32();continue}case 2:{if(t!==16)break;a.maxVersion=i.uint32();continue}case 3:{if(t!==24)break;a.notReportableMinVersion=i.uint32();continue}case 4:{if(t!==32)break;a.isMessage=i.bool();continue}case 5:{if(t!==42)break;let o=Lc.decode(i,i.uint32());if(o.value!==void 0&&o.key!==void 0){if(a.subfield===void 0)a.subfield={};a.subfield[o.key]=o.value}continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return De.fromPartial(e??{})},fromPartial(e){let n=Oy();return n.minVersion=e.minVersion??void 0,n.maxVersion=e.maxVersion??void 0,n.notReportableMinVersion=e.notReportableMinVersion??void 0,n.isMessage=e.isMessage??void 0,n.subfield=e.subfield===void 0||e.subfield===null?void 0:globalThis.Object.entries(e.subfield??{}).reduce((i,[r,a])=>{if(a!==void 0)i[globalThis.Number(r)]=De.fromPartial(a);return i},{}),n}};function Uy(){return{}}var Lc={encode(e,n=new s){if(e.key!==void 0)n.uint32(8).uint32(e.key);if(e.value!==void 0)De.encode(e.value,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Uy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.key=i.uint32();continue}case 2:{if(t!==18)break;a.value=De.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Lc.fromPartial(e??{})},fromPartial(e){let n=Uy();return n.key=e.key??void 0,n.value=e.value!==void 0&&e.value!==null?De.fromPartial(e.value):void 0,n}};function Ty(){return{}}var Fe={encode(e,n=new s){if(e.publicKey!==void 0)n.uint32(10).bytes(e.publicKey);if(e.pnIdentifier!==void 0)n.uint32(18).bytes(e.pnIdentifier);if(e.lidIdentifier!==void 0)n.uint32(26).bytes(e.lidIdentifier);if(e.usernameIdentifier!==void 0)n.uint32(34).bytes(e.usernameIdentifier);if(e.hostedState!==void 0)n.uint32(40).int32(e.hostedState);if(e.hashedPublicKey!==void 0)n.uint32(50).bytes(e.hashedPublicKey);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ty();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.publicKey=i.bytes();continue}case 2:{if(t!==18)break;a.pnIdentifier=i.bytes();continue}case 3:{if(t!==26)break;a.lidIdentifier=i.bytes();continue}case 4:{if(t!==34)break;a.usernameIdentifier=i.bytes();continue}case 5:{if(t!==40)break;a.hostedState=i.int32();continue}case 6:{if(t!==50)break;a.hashedPublicKey=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Fe.fromPartial(e??{})},fromPartial(e){let n=Ty();return n.publicKey=e.publicKey??void 0,n.pnIdentifier=e.pnIdentifier??void 0,n.lidIdentifier=e.lidIdentifier??void 0,n.usernameIdentifier=e.usernameIdentifier??void 0,n.hostedState=e.hostedState??void 0,n.hashedPublicKey=e.hashedPublicKey??void 0,n}};function Ly(){return{}}var va={encode(e,n=new s){if(e.botName!==void 0)n.uint32(10).string(e.botName);if(e.botJid!==void 0)n.uint32(18).string(e.botJid);if(e.creatorName!==void 0)n.uint32(26).string(e.creatorName);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ly();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.botName=i.string();continue}case 2:{if(t!==18)break;a.botJid=i.string();continue}case 3:{if(t!==26)break;a.creatorName=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return va.fromPartial(e??{})},fromPartial(e){let n=Ly();return n.botName=e.botName??void 0,n.botJid=e.botJid??void 0,n.creatorName=e.creatorName??void 0,n}};function wy(){return{}}var xa={encode(e,n=new s){if(e.lightThemeWallpaper!==void 0)pe.encode(e.lightThemeWallpaper,n.uint32(10).fork()).join();if(e.mediaVisibility!==void 0)n.uint32(16).int32(e.mediaVisibility);if(e.darkThemeWallpaper!==void 0)pe.encode(e.darkThemeWallpaper,n.uint32(26).fork()).join();if(e.autoDownloadWiFi!==void 0)se.encode(e.autoDownloadWiFi,n.uint32(34).fork()).join();if(e.autoDownloadCellular!==void 0)se.encode(e.autoDownloadCellular,n.uint32(42).fork()).join();if(e.autoDownloadRoaming!==void 0)se.encode(e.autoDownloadRoaming,n.uint32(50).fork()).join();if(e.showIndividualNotificationsPreview!==void 0)n.uint32(56).bool(e.showIndividualNotificationsPreview);if(e.showGroupNotificationsPreview!==void 0)n.uint32(64).bool(e.showGroupNotificationsPreview);if(e.disappearingModeDuration!==void 0)n.uint32(72).int32(e.disappearingModeDuration);if(e.disappearingModeTimestamp!==void 0)n.uint32(80).int64(e.disappearingModeTimestamp);if(e.avatarUserSettings!==void 0)hi.encode(e.avatarUserSettings,n.uint32(90).fork()).join();if(e.fontSize!==void 0)n.uint32(96).int32(e.fontSize);if(e.securityNotifications!==void 0)n.uint32(104).bool(e.securityNotifications);if(e.autoUnarchiveChats!==void 0)n.uint32(112).bool(e.autoUnarchiveChats);if(e.videoQualityMode!==void 0)n.uint32(120).int32(e.videoQualityMode);if(e.photoQualityMode!==void 0)n.uint32(128).int32(e.photoQualityMode);if(e.individualNotificationSettings!==void 0)Ge.encode(e.individualNotificationSettings,n.uint32(138).fork()).join();if(e.groupNotificationSettings!==void 0)Ge.encode(e.groupNotificationSettings,n.uint32(146).fork()).join();if(e.chatLockSettings!==void 0)$e.encode(e.chatLockSettings,n.uint32(154).fork()).join();if(e.chatDbLidMigrationTimestamp!==void 0)n.uint32(160).int64(e.chatDbLidMigrationTimestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=wy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.lightThemeWallpaper=pe.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.mediaVisibility=i.int32();continue}case 3:{if(t!==26)break;a.darkThemeWallpaper=pe.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.autoDownloadWiFi=se.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.autoDownloadCellular=se.decode(i,i.uint32());continue}case 6:{if(t!==50)break;a.autoDownloadRoaming=se.decode(i,i.uint32());continue}case 7:{if(t!==56)break;a.showIndividualNotificationsPreview=i.bool();continue}case 8:{if(t!==64)break;a.showGroupNotificationsPreview=i.bool();continue}case 9:{if(t!==72)break;a.disappearingModeDuration=i.int32();continue}case 10:{if(t!==80)break;a.disappearingModeTimestamp=i.int64Number();continue}case 11:{if(t!==90)break;a.avatarUserSettings=hi.decode(i,i.uint32());continue}case 12:{if(t!==96)break;a.fontSize=i.int32();continue}case 13:{if(t!==104)break;a.securityNotifications=i.bool();continue}case 14:{if(t!==112)break;a.autoUnarchiveChats=i.bool();continue}case 15:{if(t!==120)break;a.videoQualityMode=i.int32();continue}case 16:{if(t!==128)break;a.photoQualityMode=i.int32();continue}case 17:{if(t!==138)break;a.individualNotificationSettings=Ge.decode(i,i.uint32());continue}case 18:{if(t!==146)break;a.groupNotificationSettings=Ge.decode(i,i.uint32());continue}case 19:{if(t!==154)break;a.chatLockSettings=$e.decode(i,i.uint32());continue}case 20:{if(t!==160)break;a.chatDbLidMigrationTimestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return xa.fromPartial(e??{})},fromPartial(e){let n=wy();return n.lightThemeWallpaper=e.lightThemeWallpaper!==void 0&&e.lightThemeWallpaper!==null?pe.fromPartial(e.lightThemeWallpaper):void 0,n.mediaVisibility=e.mediaVisibility??void 0,n.darkThemeWallpaper=e.darkThemeWallpaper!==void 0&&e.darkThemeWallpaper!==null?pe.fromPartial(e.darkThemeWallpaper):void 0,n.autoDownloadWiFi=e.autoDownloadWiFi!==void 0&&e.autoDownloadWiFi!==null?se.fromPartial(e.autoDownloadWiFi):void 0,n.autoDownloadCellular=e.autoDownloadCellular!==void 0&&e.autoDownloadCellular!==null?se.fromPartial(e.autoDownloadCellular):void 0,n.autoDownloadRoaming=e.autoDownloadRoaming!==void 0&&e.autoDownloadRoaming!==null?se.fromPartial(e.autoDownloadRoaming):void 0,n.showIndividualNotificationsPreview=e.showIndividualNotificationsPreview??void 0,n.showGroupNotificationsPreview=e.showGroupNotificationsPreview??void 0,n.disappearingModeDuration=e.disappearingModeDuration??void 0,n.disappearingModeTimestamp=e.disappearingModeTimestamp??void 0,n.avatarUserSettings=e.avatarUserSettings!==void 0&&e.avatarUserSettings!==null?hi.fromPartial(e.avatarUserSettings):void 0,n.fontSize=e.fontSize??void 0,n.securityNotifications=e.securityNotifications??void 0,n.autoUnarchiveChats=e.autoUnarchiveChats??void 0,n.videoQualityMode=e.videoQualityMode??void 0,n.photoQualityMode=e.photoQualityMode??void 0,n.individualNotificationSettings=e.individualNotificationSettings!==void 0&&e.individualNotificationSettings!==null?Ge.fromPartial(e.individualNotificationSettings):void 0,n.groupNotificationSettings=e.groupNotificationSettings!==void 0&&e.groupNotificationSettings!==null?Ge.fromPartial(e.groupNotificationSettings):void 0,n.chatLockSettings=e.chatLockSettings!==void 0&&e.chatLockSettings!==null?$e.fromPartial(e.chatLockSettings):void 0,n.chatDbLidMigrationTimestamp=e.chatDbLidMigrationTimestamp??void 0,n}};function Fy(){return{}}var WI={encode(e,n=new s){if(e.messages!==void 0&&e.messages.length!==0)for(let i of e.messages)G.encode(i,n.uint32(10).fork()).join();if(e.uncountedAssociatedMessageLists!==void 0&&e.uncountedAssociatedMessageLists.length!==0)for(let i of e.uncountedAssociatedMessageLists)Sc.encode(i,n.uint32(18).fork()).join();if(e.commentMessages!==void 0&&e.commentMessages.length!==0)for(let i of e.commentMessages)G.encode(i,n.uint32(26).fork()).join();if(e.outOfWindowPinnedMessages!==void 0&&e.outOfWindowPinnedMessages.length!==0)for(let i of e.outOfWindowPinnedMessages)G.encode(i,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Fy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.messages===void 0)a.messages=[];let o=G.decode(i,i.uint32());if(o!==void 0)a.messages.push(o);continue}case 2:{if(t!==18)break;if(a.uncountedAssociatedMessageLists===void 0)a.uncountedAssociatedMessageLists=[];let o=Sc.decode(i,i.uint32());if(o!==void 0)a.uncountedAssociatedMessageLists.push(o);continue}case 3:{if(t!==26)break;if(a.commentMessages===void 0)a.commentMessages=[];let o=G.decode(i,i.uint32());if(o!==void 0)a.commentMessages.push(o);continue}case 4:{if(t!==34)break;if(a.outOfWindowPinnedMessages===void 0)a.outOfWindowPinnedMessages=[];let o=G.decode(i,i.uint32());if(o!==void 0)a.outOfWindowPinnedMessages.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return WI.fromPartial(e??{})},fromPartial(e){let n=Fy();return n.messages=e.messages?.map((i)=>G.fromPartial(i))||void 0,n.uncountedAssociatedMessageLists=e.uncountedAssociatedMessageLists?.map((i)=>Sc.fromPartial(i))||void 0,n.commentMessages=e.commentMessages?.map((i)=>G.fromPartial(i))||void 0,n.outOfWindowPinnedMessages=e.outOfWindowPinnedMessages?.map((i)=>G.fromPartial(i))||void 0,n}};function Vy(){return{}}var Na={encode(e,n=new s){if(e.deprecatedMessageHistoryBundle!==void 0)pn.encode(e.deprecatedMessageHistoryBundle,n.uint32(10).fork()).join();if(e.processState!==void 0)n.uint32(16).int32(e.processState);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Vy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.deprecatedMessageHistoryBundle=pn.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.processState=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Na.fromPartial(e??{})},fromPartial(e){let n=Vy();return n.deprecatedMessageHistoryBundle=e.deprecatedMessageHistoryBundle!==void 0&&e.deprecatedMessageHistoryBundle!==null?pn.fromPartial(e.deprecatedMessageHistoryBundle):void 0,n.processState=e.processState??void 0,n}};function Ky(){return{}}var Oa={encode(e,n=new s){if(e.bundleMessageKey!==void 0)_.encode(e.bundleMessageKey,n.uint32(10).fork()).join();if(e.editedAfterReceivedAsHistory!==void 0)n.uint32(16).bool(e.editedAfterReceivedAsHistory);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ky();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.bundleMessageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.editedAfterReceivedAsHistory=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Oa.fromPartial(e??{})},fromPartial(e){let n=Ky();return n.bundleMessageKey=e.bundleMessageKey!==void 0&&e.bundleMessageKey!==null?_.fromPartial(e.bundleMessageKey):void 0,n.editedAfterReceivedAsHistory=e.editedAfterReceivedAsHistory??void 0,n}};function Wy(){return{}}var HI={encode(e,n=new s){if(e.messages!==void 0&&e.messages.length!==0)for(let i of e.messages)ie.encode(i,n.uint32(10).fork()).join();if(e.uncountedAssociatedMessageLists!==void 0&&e.uncountedAssociatedMessageLists.length!==0)for(let i of e.uncountedAssociatedMessageLists)Pc.encode(i,n.uint32(18).fork()).join();if(e.commentMessages!==void 0&&e.commentMessages.length!==0)for(let i of e.commentMessages)ie.encode(i,n.uint32(26).fork()).join();if(e.outOfWindowPinnedMessages!==void 0&&e.outOfWindowPinnedMessages.length!==0)for(let i of e.outOfWindowPinnedMessages)ie.encode(i,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Wy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.messages===void 0)a.messages=[];let o=ie.decode(i,i.uint32());if(o!==void 0)a.messages.push(o);continue}case 2:{if(t!==18)break;if(a.uncountedAssociatedMessageLists===void 0)a.uncountedAssociatedMessageLists=[];let o=Pc.decode(i,i.uint32());if(o!==void 0)a.uncountedAssociatedMessageLists.push(o);continue}case 3:{if(t!==26)break;if(a.commentMessages===void 0)a.commentMessages=[];let o=ie.decode(i,i.uint32());if(o!==void 0)a.commentMessages.push(o);continue}case 4:{if(t!==34)break;if(a.outOfWindowPinnedMessages===void 0)a.outOfWindowPinnedMessages=[];let o=ie.decode(i,i.uint32());if(o!==void 0)a.outOfWindowPinnedMessages.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return HI.fromPartial(e??{})},fromPartial(e){let n=Wy();return n.messages=e.messages?.map((i)=>ie.fromPartial(i))||void 0,n.uncountedAssociatedMessageLists=e.uncountedAssociatedMessageLists?.map((i)=>Pc.fromPartial(i))||void 0,n.commentMessages=e.commentMessages?.map((i)=>ie.fromPartial(i))||void 0,n.outOfWindowPinnedMessages=e.outOfWindowPinnedMessages?.map((i)=>ie.fromPartial(i))||void 0,n}};function Hy(){return{}}var Ua={encode(e,n=new s){if(e.groupJid!==void 0)n.uint32(10).string(e.groupJid);if(e.groupSubject!==void 0)n.uint32(18).string(e.groupSubject);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Hy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.groupJid=i.string();continue}case 2:{if(t!==18)break;a.groupSubject=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ua.fromPartial(e??{})},fromPartial(e){let n=Hy();return n.groupJid=e.groupJid??void 0,n.groupSubject=e.groupSubject??void 0,n}};function qy(){return{}}var Ta={encode(e,n=new s){if(e.userJid!==void 0)n.uint32(10).string(e.userJid);if(e.rank!==void 0)n.uint32(16).int32(e.rank);if(e.memberLabel!==void 0)_e.encode(e.memberLabel,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=qy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.userJid=i.string();continue}case 2:{if(t!==16)break;a.rank=i.int32();continue}case 3:{if(t!==26)break;a.memberLabel=_e.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ta.fromPartial(e??{})},fromPartial(e){let n=qy();return n.userJid=e.userJid??void 0,n.rank=e.rank??void 0,n.memberLabel=e.memberLabel!==void 0&&e.memberLabel!==null?_e.fromPartial(e.memberLabel):void 0,n}};function Gy(){return{}}var La={encode(e,n=new s){if(e.keys!==void 0&&e.keys.length!==0)for(let i of e.keys)wa.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Gy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.keys===void 0)a.keys=[];let o=wa.decode(i,i.uint32());if(o!==void 0)a.keys.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return La.fromPartial(e??{})},fromPartial(e){let n=Gy();return n.keys=e.keys?.map((i)=>wa.fromPartial(i))||void 0,n}};function Jy(){return{}}var wa={encode(e,n=new s){if(e.groupRootKey!==void 0)n.uint32(10).bytes(e.groupRootKey);if(e.keyId!==void 0)n.uint32(18).string(e.keyId);if(e.expiryTimestampMs!==void 0)n.uint32(24).int64(e.expiryTimestampMs);if(e.createdTimestampMs!==void 0)n.uint32(32).int64(e.createdTimestampMs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Jy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.groupRootKey=i.bytes();continue}case 2:{if(t!==18)break;a.keyId=i.string();continue}case 3:{if(t!==24)break;a.expiryTimestampMs=i.int64Number();continue}case 4:{if(t!==32)break;a.createdTimestampMs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return wa.fromPartial(e??{})},fromPartial(e){let n=Jy();return n.groupRootKey=e.groupRootKey??void 0,n.keyId=e.keyId??void 0,n.expiryTimestampMs=e.expiryTimestampMs??void 0,n.createdTimestampMs=e.createdTimestampMs??void 0,n}};function Qy(){return{}}var Qc={encode(e,n=new s){if(e.clientHello!==void 0)Va.encode(e.clientHello,n.uint32(18).fork()).join();if(e.serverHello!==void 0)Ka.encode(e.serverHello,n.uint32(26).fork()).join();if(e.clientFinish!==void 0)Fa.encode(e.clientFinish,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Qy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 2:{if(t!==18)break;a.clientHello=Va.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.serverHello=Ka.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.clientFinish=Fa.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Qc.fromPartial(e??{})},fromPartial(e){let n=Qy();return n.clientHello=e.clientHello!==void 0&&e.clientHello!==null?Va.fromPartial(e.clientHello):void 0,n.serverHello=e.serverHello!==void 0&&e.serverHello!==null?Ka.fromPartial(e.serverHello):void 0,n.clientFinish=e.clientFinish!==void 0&&e.clientFinish!==null?Fa.fromPartial(e.clientFinish):void 0,n}};function zy(){return{}}var Fa={encode(e,n=new s){if(e.static!==void 0)n.uint32(10).bytes(e.static);if(e.payload!==void 0)n.uint32(18).bytes(e.payload);if(e.extendedCiphertext!==void 0)n.uint32(26).bytes(e.extendedCiphertext);if(e.paddedBytes!==void 0)n.uint32(34).bytes(e.paddedBytes);if(e.simulateXxkemFs!==void 0)n.uint32(40).bool(e.simulateXxkemFs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=zy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.static=i.bytes();continue}case 2:{if(t!==18)break;a.payload=i.bytes();continue}case 3:{if(t!==26)break;a.extendedCiphertext=i.bytes();continue}case 4:{if(t!==34)break;a.paddedBytes=i.bytes();continue}case 5:{if(t!==40)break;a.simulateXxkemFs=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Fa.fromPartial(e??{})},fromPartial(e){let n=zy();return n.static=e.static??void 0,n.payload=e.payload??void 0,n.extendedCiphertext=e.extendedCiphertext??void 0,n.paddedBytes=e.paddedBytes??void 0,n.simulateXxkemFs=e.simulateXxkemFs??void 0,n}};function Yy(){return{}}var Va={encode(e,n=new s){if(e.ephemeral!==void 0)n.uint32(10).bytes(e.ephemeral);if(e.static!==void 0)n.uint32(18).bytes(e.static);if(e.payload!==void 0)n.uint32(26).bytes(e.payload);if(e.useExtended!==void 0)n.uint32(32).bool(e.useExtended);if(e.extendedCiphertext!==void 0)n.uint32(42).bytes(e.extendedCiphertext);if(e.paddedBytes!==void 0)n.uint32(50).bytes(e.paddedBytes);if(e.sendServerHelloPaddedBytes!==void 0)n.uint32(56).bool(e.sendServerHelloPaddedBytes);if(e.simulateXxkemFs!==void 0)n.uint32(64).bool(e.simulateXxkemFs);if(e.pqMode!==void 0)n.uint32(72).int32(e.pqMode);if(e.extendedEphemeral!==void 0)n.uint32(82).bytes(e.extendedEphemeral);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Yy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.ephemeral=i.bytes();continue}case 2:{if(t!==18)break;a.static=i.bytes();continue}case 3:{if(t!==26)break;a.payload=i.bytes();continue}case 4:{if(t!==32)break;a.useExtended=i.bool();continue}case 5:{if(t!==42)break;a.extendedCiphertext=i.bytes();continue}case 6:{if(t!==50)break;a.paddedBytes=i.bytes();continue}case 7:{if(t!==56)break;a.sendServerHelloPaddedBytes=i.bool();continue}case 8:{if(t!==64)break;a.simulateXxkemFs=i.bool();continue}case 9:{if(t!==72)break;a.pqMode=i.int32();continue}case 10:{if(t!==82)break;a.extendedEphemeral=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Va.fromPartial(e??{})},fromPartial(e){let n=Yy();return n.ephemeral=e.ephemeral??void 0,n.static=e.static??void 0,n.payload=e.payload??void 0,n.useExtended=e.useExtended??void 0,n.extendedCiphertext=e.extendedCiphertext??void 0,n.paddedBytes=e.paddedBytes??void 0,n.sendServerHelloPaddedBytes=e.sendServerHelloPaddedBytes??void 0,n.simulateXxkemFs=e.simulateXxkemFs??void 0,n.pqMode=e.pqMode??void 0,n.extendedEphemeral=e.extendedEphemeral??void 0,n}};function Zy(){return{}}var Ka={encode(e,n=new s){if(e.ephemeral!==void 0)n.uint32(10).bytes(e.ephemeral);if(e.static!==void 0)n.uint32(18).bytes(e.static);if(e.payload!==void 0)n.uint32(26).bytes(e.payload);if(e.extendedStatic!==void 0)n.uint32(34).bytes(e.extendedStatic);if(e.paddingBytes!==void 0)n.uint32(42).bytes(e.paddingBytes);if(e.extendedCiphertext!==void 0)n.uint32(50).bytes(e.extendedCiphertext);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Zy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.ephemeral=i.bytes();continue}case 2:{if(t!==18)break;a.static=i.bytes();continue}case 3:{if(t!==26)break;a.payload=i.bytes();continue}case 4:{if(t!==34)break;a.extendedStatic=i.bytes();continue}case 5:{if(t!==42)break;a.paddingBytes=i.bytes();continue}case 6:{if(t!==50)break;a.extendedCiphertext=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ka.fromPartial(e??{})},fromPartial(e){let n=Zy();return n.ephemeral=e.ephemeral??void 0,n.static=e.static??void 0,n.payload=e.payload??void 0,n.extendedStatic=e.extendedStatic??void 0,n.paddingBytes=e.paddingBytes??void 0,n.extendedCiphertext=e.extendedCiphertext??void 0,n}};function Xy(){return{}}var Wa={encode(e,n=new s){if(e.data!==void 0)n.uint32(10).bytes(e.data);if(e.timestampMs!==void 0)n.uint32(16).int64(e.timestampMs);if(e.requestId!==void 0)n.uint32(26).string(e.requestId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Xy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.data=i.bytes();continue}case 2:{if(t!==16)break;a.timestampMs=i.int64Number();continue}case 3:{if(t!==26)break;a.requestId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Wa.fromPartial(e??{})},fromPartial(e){let n=Xy();return n.data=e.data??void 0,n.timestampMs=e.timestampMs??void 0,n.requestId=e.requestId??void 0,n}};function $y(){return{}}var zc={encode(e,n=new s){if(e.syncType!==void 0)n.uint32(8).int32(e.syncType);if(e.conversations!==void 0&&e.conversations.length!==0)for(let i of e.conversations)pa.encode(i,n.uint32(18).fork()).join();if(e.statusV3Messages!==void 0&&e.statusV3Messages.length!==0)for(let i of e.statusV3Messages)G.encode(i,n.uint32(26).fork()).join();if(e.chunkOrder!==void 0)n.uint32(40).uint32(e.chunkOrder);if(e.progress!==void 0)n.uint32(48).uint32(e.progress);if(e.pushnames!==void 0&&e.pushnames.length!==0)for(let i of e.pushnames)ss.encode(i,n.uint32(58).fork()).join();if(e.globalSettings!==void 0)xa.encode(e.globalSettings,n.uint32(66).fork()).join();if(e.threadIdUserSecret!==void 0)n.uint32(74).bytes(e.threadIdUserSecret);if(e.threadDsTimeframeOffset!==void 0)n.uint32(80).uint32(e.threadDsTimeframeOffset);if(e.recentStickers!==void 0&&e.recentStickers.length!==0)for(let i of e.recentStickers)Us.encode(i,n.uint32(90).fork()).join();if(e.pastParticipants!==void 0&&e.pastParticipants.length!==0)for(let i of e.pastParticipants)Zo.encode(i,n.uint32(98).fork()).join();if(e.callLogRecords!==void 0&&e.callLogRecords.length!==0)for(let i of e.callLogRecords)Xe.encode(i,n.uint32(106).fork()).join();if(e.aiWaitListState!==void 0)n.uint32(112).int32(e.aiWaitListState);if(e.phoneNumberToLidMappings!==void 0&&e.phoneNumberToLidMappings.length!==0)for(let i of e.phoneNumberToLidMappings)$o.encode(i,n.uint32(122).fork()).join();if(e.companionMetaNonce!==void 0)n.uint32(130).string(e.companionMetaNonce);if(e.shareableChatIdentifierEncryptionKey!==void 0)n.uint32(138).bytes(e.shareableChatIdentifierEncryptionKey);if(e.accounts!==void 0&&e.accounts.length!==0)for(let i of e.accounts)mi.encode(i,n.uint32(146).fork()).join();if(e.nctSalt!==void 0)n.uint32(154).bytes(e.nctSalt);if(e.inlineContacts!==void 0&&e.inlineContacts.length!==0)for(let i of e.inlineContacts)$a.encode(i,n.uint32(162).fork()).join();if(e.inlineContactsProvided!==void 0)n.uint32(168).bool(e.inlineContactsProvided);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=$y();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.syncType=i.int32();continue}case 2:{if(t!==18)break;if(a.conversations===void 0)a.conversations=[];let o=pa.decode(i,i.uint32());if(o!==void 0)a.conversations.push(o);continue}case 3:{if(t!==26)break;if(a.statusV3Messages===void 0)a.statusV3Messages=[];let o=G.decode(i,i.uint32());if(o!==void 0)a.statusV3Messages.push(o);continue}case 5:{if(t!==40)break;a.chunkOrder=i.uint32();continue}case 6:{if(t!==48)break;a.progress=i.uint32();continue}case 7:{if(t!==58)break;if(a.pushnames===void 0)a.pushnames=[];let o=ss.decode(i,i.uint32());if(o!==void 0)a.pushnames.push(o);continue}case 8:{if(t!==66)break;a.globalSettings=xa.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.threadIdUserSecret=i.bytes();continue}case 10:{if(t!==80)break;a.threadDsTimeframeOffset=i.uint32();continue}case 11:{if(t!==90)break;if(a.recentStickers===void 0)a.recentStickers=[];let o=Us.decode(i,i.uint32());if(o!==void 0)a.recentStickers.push(o);continue}case 12:{if(t!==98)break;if(a.pastParticipants===void 0)a.pastParticipants=[];let o=Zo.decode(i,i.uint32());if(o!==void 0)a.pastParticipants.push(o);continue}case 13:{if(t!==106)break;if(a.callLogRecords===void 0)a.callLogRecords=[];let o=Xe.decode(i,i.uint32());if(o!==void 0)a.callLogRecords.push(o);continue}case 14:{if(t!==112)break;a.aiWaitListState=i.int32();continue}case 15:{if(t!==122)break;if(a.phoneNumberToLidMappings===void 0)a.phoneNumberToLidMappings=[];let o=$o.decode(i,i.uint32());if(o!==void 0)a.phoneNumberToLidMappings.push(o);continue}case 16:{if(t!==130)break;a.companionMetaNonce=i.string();continue}case 17:{if(t!==138)break;a.shareableChatIdentifierEncryptionKey=i.bytes();continue}case 18:{if(t!==146)break;if(a.accounts===void 0)a.accounts=[];let o=mi.decode(i,i.uint32());if(o!==void 0)a.accounts.push(o);continue}case 19:{if(t!==154)break;a.nctSalt=i.bytes();continue}case 20:{if(t!==162)break;if(a.inlineContacts===void 0)a.inlineContacts=[];let o=$a.decode(i,i.uint32());if(o!==void 0)a.inlineContacts.push(o);continue}case 21:{if(t!==168)break;a.inlineContactsProvided=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return zc.fromPartial(e??{})},fromPartial(e){let n=$y();return n.syncType=e.syncType??void 0,n.conversations=e.conversations?.map((i)=>pa.fromPartial(i))||void 0,n.statusV3Messages=e.statusV3Messages?.map((i)=>G.fromPartial(i))||void 0,n.chunkOrder=e.chunkOrder??void 0,n.progress=e.progress??void 0,n.pushnames=e.pushnames?.map((i)=>ss.fromPartial(i))||void 0,n.globalSettings=e.globalSettings!==void 0&&e.globalSettings!==null?xa.fromPartial(e.globalSettings):void 0,n.threadIdUserSecret=e.threadIdUserSecret??void 0,n.threadDsTimeframeOffset=e.threadDsTimeframeOffset??void 0,n.recentStickers=e.recentStickers?.map((i)=>Us.fromPartial(i))||void 0,n.pastParticipants=e.pastParticipants?.map((i)=>Zo.fromPartial(i))||void 0,n.callLogRecords=e.callLogRecords?.map((i)=>Xe.fromPartial(i))||void 0,n.aiWaitListState=e.aiWaitListState??void 0,n.phoneNumberToLidMappings=e.phoneNumberToLidMappings?.map((i)=>$o.fromPartial(i))||void 0,n.companionMetaNonce=e.companionMetaNonce??void 0,n.shareableChatIdentifierEncryptionKey=e.shareableChatIdentifierEncryptionKey??void 0,n.accounts=e.accounts?.map((i)=>mi.fromPartial(i))||void 0,n.nctSalt=e.nctSalt??void 0,n.inlineContacts=e.inlineContacts?.map((i)=>$a.fromPartial(i))||void 0,n.inlineContactsProvided=e.inlineContactsProvided??void 0,n}};function jy(){return{}}var Ha={encode(e,n=new s){if(e.message!==void 0)G.encode(e.message,n.uint32(10).fork()).join();if(e.msgOrderId!==void 0)n.uint32(16).uint64(e.msgOrderId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=jy();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.message=G.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.msgOrderId=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ha.fromPartial(e??{})},fromPartial(e){let n=jy();return n.message=e.message!==void 0&&e.message!==null?G.fromPartial(e.message):void 0,n.msgOrderId=e.msgOrderId??void 0,n}};function eM(){return{}}var qa={encode(e,n=new s){if(e.index!==void 0)n.uint32(32).uint32(e.index);if(e.quickReplyButton!==void 0)Ja.encode(e.quickReplyButton,n.uint32(10).fork()).join();if(e.urlButton!==void 0)Qa.encode(e.urlButton,n.uint32(18).fork()).join();if(e.callButton!==void 0)Ga.encode(e.callButton,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=eM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 4:{if(t!==32)break;a.index=i.uint32();continue}case 1:{if(t!==10)break;a.quickReplyButton=Ja.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.urlButton=Qa.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.callButton=Ga.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return qa.fromPartial(e??{})},fromPartial(e){let n=eM();return n.index=e.index??void 0,n.quickReplyButton=e.quickReplyButton!==void 0&&e.quickReplyButton!==null?Ja.fromPartial(e.quickReplyButton):void 0,n.urlButton=e.urlButton!==void 0&&e.urlButton!==null?Qa.fromPartial(e.urlButton):void 0,n.callButton=e.callButton!==void 0&&e.callButton!==null?Ga.fromPartial(e.callButton):void 0,n}};function nM(){return{}}var Ga={encode(e,n=new s){if(e.displayText!==void 0)n.uint32(10).string(e.displayText);if(e.phoneNumber!==void 0)n.uint32(18).string(e.phoneNumber);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=nM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.displayText=i.string();continue}case 2:{if(t!==18)break;a.phoneNumber=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ga.fromPartial(e??{})},fromPartial(e){let n=nM();return n.displayText=e.displayText??void 0,n.phoneNumber=e.phoneNumber??void 0,n}};function iM(){return{}}var Ja={encode(e,n=new s){if(e.displayText!==void 0)n.uint32(10).string(e.displayText);if(e.id!==void 0)n.uint32(18).string(e.id);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=iM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.displayText=i.string();continue}case 2:{if(t!==18)break;a.id=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ja.fromPartial(e??{})},fromPartial(e){let n=iM();return n.displayText=e.displayText??void 0,n.id=e.id??void 0,n}};function tM(){return{}}var Qa={encode(e,n=new s){if(e.displayText!==void 0)n.uint32(10).string(e.displayText);if(e.url!==void 0)n.uint32(18).string(e.url);if(e.consentedUsersUrl!==void 0)n.uint32(26).string(e.consentedUsersUrl);if(e.webviewPresentation!==void 0)n.uint32(32).int32(e.webviewPresentation);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=tM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.displayText=i.string();continue}case 2:{if(t!==18)break;a.url=i.string();continue}case 3:{if(t!==26)break;a.consentedUsersUrl=i.string();continue}case 4:{if(t!==32)break;a.webviewPresentation=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Qa.fromPartial(e??{})},fromPartial(e){let n=tM();return n.displayText=e.displayText??void 0,n.url=e.url??void 0,n.consentedUsersUrl=e.consentedUsersUrl??void 0,n.webviewPresentation=e.webviewPresentation??void 0,n}};function aM(){return{}}var qI={encode(e,n=new s){if(e.publicKey!==void 0)n.uint32(10).bytes(e.publicKey);if(e.privateKey!==void 0)n.uint32(18).bytes(e.privateKey);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=aM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.publicKey=i.bytes();continue}case 2:{if(t!==18)break;a.privateKey=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return qI.fromPartial(e??{})},fromPartial(e){let n=aM();return n.publicKey=e.publicKey??void 0,n.privateKey=e.privateKey??void 0,n}};function rM(){return{}}var za={encode(e,n=new s){if(e.tessaSessionId!==void 0)n.uint32(10).string(e.tessaSessionId);if(e.simonSessionId!==void 0)n.uint32(18).string(e.simonSessionId);if(e.simonSurveyId!==void 0)n.uint32(26).string(e.simonSurveyId);if(e.tessaRootId!==void 0)n.uint32(34).string(e.tessaRootId);if(e.requestId!==void 0)n.uint32(42).string(e.requestId);if(e.tessaEvent!==void 0)n.uint32(50).string(e.tessaEvent);if(e.invitationHeaderText!==void 0)n.uint32(58).string(e.invitationHeaderText);if(e.invitationBodyText!==void 0)n.uint32(66).string(e.invitationBodyText);if(e.invitationCtaText!==void 0)n.uint32(74).string(e.invitationCtaText);if(e.invitationCtaUrl!==void 0)n.uint32(82).string(e.invitationCtaUrl);if(e.surveyTitle!==void 0)n.uint32(90).string(e.surveyTitle);if(e.questions!==void 0&&e.questions.length!==0)for(let i of e.questions)Xa.encode(i,n.uint32(98).fork()).join();if(e.surveyContinueButtonText!==void 0)n.uint32(106).string(e.surveyContinueButtonText);if(e.surveySubmitButtonText!==void 0)n.uint32(114).string(e.surveySubmitButtonText);if(e.privacyStatementFull!==void 0)n.uint32(122).string(e.privacyStatementFull);if(e.privacyStatementParts!==void 0&&e.privacyStatementParts.length!==0)for(let i of e.privacyStatementParts)Za.encode(i,n.uint32(130).fork()).join();if(e.feedbackToastText!==void 0)n.uint32(138).string(e.feedbackToastText);if(e.startQuestionIndex!==void 0)n.uint32(144).int32(e.startQuestionIndex);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=rM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.tessaSessionId=i.string();continue}case 2:{if(t!==18)break;a.simonSessionId=i.string();continue}case 3:{if(t!==26)break;a.simonSurveyId=i.string();continue}case 4:{if(t!==34)break;a.tessaRootId=i.string();continue}case 5:{if(t!==42)break;a.requestId=i.string();continue}case 6:{if(t!==50)break;a.tessaEvent=i.string();continue}case 7:{if(t!==58)break;a.invitationHeaderText=i.string();continue}case 8:{if(t!==66)break;a.invitationBodyText=i.string();continue}case 9:{if(t!==74)break;a.invitationCtaText=i.string();continue}case 10:{if(t!==82)break;a.invitationCtaUrl=i.string();continue}case 11:{if(t!==90)break;a.surveyTitle=i.string();continue}case 12:{if(t!==98)break;if(a.questions===void 0)a.questions=[];let o=Xa.decode(i,i.uint32());if(o!==void 0)a.questions.push(o);continue}case 13:{if(t!==106)break;a.surveyContinueButtonText=i.string();continue}case 14:{if(t!==114)break;a.surveySubmitButtonText=i.string();continue}case 15:{if(t!==122)break;a.privacyStatementFull=i.string();continue}case 16:{if(t!==130)break;if(a.privacyStatementParts===void 0)a.privacyStatementParts=[];let o=Za.decode(i,i.uint32());if(o!==void 0)a.privacyStatementParts.push(o);continue}case 17:{if(t!==138)break;a.feedbackToastText=i.string();continue}case 18:{if(t!==144)break;a.startQuestionIndex=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return za.fromPartial(e??{})},fromPartial(e){let n=rM();return n.tessaSessionId=e.tessaSessionId??void 0,n.simonSessionId=e.simonSessionId??void 0,n.simonSurveyId=e.simonSurveyId??void 0,n.tessaRootId=e.tessaRootId??void 0,n.requestId=e.requestId??void 0,n.tessaEvent=e.tessaEvent??void 0,n.invitationHeaderText=e.invitationHeaderText??void 0,n.invitationBodyText=e.invitationBodyText??void 0,n.invitationCtaText=e.invitationCtaText??void 0,n.invitationCtaUrl=e.invitationCtaUrl??void 0,n.surveyTitle=e.surveyTitle??void 0,n.questions=e.questions?.map((i)=>Xa.fromPartial(i))||void 0,n.surveyContinueButtonText=e.surveyContinueButtonText??void 0,n.surveySubmitButtonText=e.surveySubmitButtonText??void 0,n.privacyStatementFull=e.privacyStatementFull??void 0,n.privacyStatementParts=e.privacyStatementParts?.map((i)=>Za.fromPartial(i))||void 0,n.feedbackToastText=e.feedbackToastText??void 0,n.startQuestionIndex=e.startQuestionIndex??void 0,n}};function dM(){return{}}var Ya={encode(e,n=new s){if(e.stringValue!==void 0)n.uint32(10).string(e.stringValue);if(e.numericValue!==void 0)n.uint32(16).uint32(e.numericValue);if(e.textTranslated!==void 0)n.uint32(26).string(e.textTranslated);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=dM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.stringValue=i.string();continue}case 2:{if(t!==16)break;a.numericValue=i.uint32();continue}case 3:{if(t!==26)break;a.textTranslated=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ya.fromPartial(e??{})},fromPartial(e){let n=dM();return n.stringValue=e.stringValue??void 0,n.numericValue=e.numericValue??void 0,n.textTranslated=e.textTranslated??void 0,n}};function oM(){return{}}var Za={encode(e,n=new s){if(e.text!==void 0)n.uint32(10).string(e.text);if(e.url!==void 0)n.uint32(18).string(e.url);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=oM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.text=i.string();continue}case 2:{if(t!==18)break;a.url=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Za.fromPartial(e??{})},fromPartial(e){let n=oM();return n.text=e.text??void 0,n.url=e.url??void 0,n}};function sM(){return{}}var Xa={encode(e,n=new s){if(e.questionText!==void 0)n.uint32(10).string(e.questionText);if(e.questionId!==void 0)n.uint32(18).string(e.questionId);if(e.questionOptions!==void 0&&e.questionOptions.length!==0)for(let i of e.questionOptions)Ya.encode(i,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=sM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.questionText=i.string();continue}case 2:{if(t!==18)break;a.questionId=i.string();continue}case 3:{if(t!==26)break;if(a.questionOptions===void 0)a.questionOptions=[];let o=Ya.decode(i,i.uint32());if(o!==void 0)a.questionOptions.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Xa.fromPartial(e??{})},fromPartial(e){let n=sM();return n.questionText=e.questionText??void 0,n.questionId=e.questionId??void 0,n.questionOptions=e.questionOptions?.map((i)=>Ya.fromPartial(i))||void 0,n}};function uM(){return{}}var $a={encode(e,n=new s){if(e.pnJid!==void 0)n.uint32(10).string(e.pnJid);if(e.lidJid!==void 0)n.uint32(18).string(e.lidJid);if(e.fullName!==void 0)n.uint32(26).string(e.fullName);if(e.firstName!==void 0)n.uint32(34).string(e.firstName);if(e.username!==void 0)n.uint32(42).string(e.username);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=uM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.pnJid=i.string();continue}case 2:{if(t!==18)break;a.lidJid=i.string();continue}case 3:{if(t!==26)break;a.fullName=i.string();continue}case 4:{if(t!==34)break;a.firstName=i.string();continue}case 5:{if(t!==42)break;a.username=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return $a.fromPartial(e??{})},fromPartial(e){let n=uM();return n.pnJid=e.pnJid??void 0,n.lidJid=e.lidJid??void 0,n.fullName=e.fullName??void 0,n.firstName=e.firstName??void 0,n.username=e.username??void 0,n}};function cM(){return{}}var te={encode(e,n=new s){if(e.polygonVertices!==void 0&&e.polygonVertices.length!==0)for(let i of e.polygonVertices)ns.encode(i,n.uint32(10).fork()).join();if(e.shouldSkipConfirmation!==void 0)n.uint32(32).bool(e.shouldSkipConfirmation);if(e.embeddedContent!==void 0)ba.encode(e.embeddedContent,n.uint32(42).fork()).join();if(e.statusLinkType!==void 0)n.uint32(64).int32(e.statusLinkType);if(e.location!==void 0)rr.encode(e.location,n.uint32(18).fork()).join();if(e.newsletter!==void 0)dn.encode(e.newsletter,n.uint32(26).fork()).join();if(e.embeddedAction!==void 0)n.uint32(48).bool(e.embeddedAction);if(e.tapAction!==void 0)Mc.encode(e.tapAction,n.uint32(58).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=cM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.polygonVertices===void 0)a.polygonVertices=[];let o=ns.decode(i,i.uint32());if(o!==void 0)a.polygonVertices.push(o);continue}case 4:{if(t!==32)break;a.shouldSkipConfirmation=i.bool();continue}case 5:{if(t!==42)break;a.embeddedContent=ba.decode(i,i.uint32());continue}case 8:{if(t!==64)break;a.statusLinkType=i.int32();continue}case 2:{if(t!==18)break;a.location=rr.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.newsletter=dn.decode(i,i.uint32());continue}case 6:{if(t!==48)break;a.embeddedAction=i.bool();continue}case 7:{if(t!==58)break;a.tapAction=Mc.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return te.fromPartial(e??{})},fromPartial(e){let n=cM();return n.polygonVertices=e.polygonVertices?.map((i)=>ns.fromPartial(i))||void 0,n.shouldSkipConfirmation=e.shouldSkipConfirmation??void 0,n.embeddedContent=e.embeddedContent!==void 0&&e.embeddedContent!==null?ba.fromPartial(e.embeddedContent):void 0,n.statusLinkType=e.statusLinkType??void 0,n.location=e.location!==void 0&&e.location!==null?rr.fromPartial(e.location):void 0,n.newsletter=e.newsletter!==void 0&&e.newsletter!==null?dn.fromPartial(e.newsletter):void 0,n.embeddedAction=e.embeddedAction??void 0,n.tapAction=e.tapAction!==void 0&&e.tapAction!==null?Mc.fromPartial(e.tapAction):void 0,n}};function fM(){return{}}var ja={encode(e,n=new s){if(e.isGalaxyFlowCompleted!==void 0)n.uint32(8).bool(e.isGalaxyFlowCompleted);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=fM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isGalaxyFlowCompleted=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ja.fromPartial(e??{})},fromPartial(e){let n=fM();return n.isGalaxyFlowCompleted=e.isGalaxyFlowCompleted??void 0,n}};function lM(){return{}}var er={encode(e,n=new s){if(e.keepType!==void 0)n.uint32(8).int32(e.keepType);if(e.serverTimestamp!==void 0)n.uint32(16).int64(e.serverTimestamp);if(e.key!==void 0)_.encode(e.key,n.uint32(26).fork()).join();if(e.deviceJid!==void 0)n.uint32(34).string(e.deviceJid);if(e.clientTimestampMs!==void 0)n.uint32(40).int64(e.clientTimestampMs);if(e.serverTimestampMs!==void 0)n.uint32(48).int64(e.serverTimestampMs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=lM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.keepType=i.int32();continue}case 2:{if(t!==16)break;a.serverTimestamp=i.int64Number();continue}case 3:{if(t!==26)break;a.key=_.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.deviceJid=i.string();continue}case 5:{if(t!==40)break;a.clientTimestampMs=i.int64Number();continue}case 6:{if(t!==48)break;a.serverTimestampMs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return er.fromPartial(e??{})},fromPartial(e){let n=lM();return n.keepType=e.keepType??void 0,n.serverTimestamp=e.serverTimestamp??void 0,n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.deviceJid=e.deviceJid??void 0,n.clientTimestampMs=e.clientTimestampMs??void 0,n.serverTimestampMs=e.serverTimestampMs??void 0,n}};function pM(){return{}}var GI={encode(e,n=new s){if(e.id!==void 0)n.uint32(8).uint32(e.id);if(e.baseKey!==void 0)n.uint32(18).bytes(e.baseKey);if(e.ratchetKey!==void 0)n.uint32(26).bytes(e.ratchetKey);if(e.identityKey!==void 0)n.uint32(34).bytes(e.identityKey);if(e.baseKeySignature!==void 0)n.uint32(42).bytes(e.baseKeySignature);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=pM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.id=i.uint32();continue}case 2:{if(t!==18)break;a.baseKey=i.bytes();continue}case 3:{if(t!==26)break;a.ratchetKey=i.bytes();continue}case 4:{if(t!==34)break;a.identityKey=i.bytes();continue}case 5:{if(t!==42)break;a.baseKeySignature=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return GI.fromPartial(e??{})},fromPartial(e){let n=pM();return n.id=e.id??void 0,n.baseKey=e.baseKey??void 0,n.ratchetKey=e.ratchetKey??void 0,n.identityKey=e.identityKey??void 0,n.baseKeySignature=e.baseKeySignature??void 0,n}};function gM(){return{}}var me={encode(e,n=new s){if(e.id!==void 0)n.uint32(10).bytes(e.id);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=gM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.id=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return me.fromPartial(e??{})},fromPartial(e){let n=gM();return n.id=e.id??void 0,n}};function yM(){return{}}var nr={encode(e,n=new s){if(e.encodedMappingPayload!==void 0)n.uint32(10).bytes(e.encodedMappingPayload);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=yM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.encodedMappingPayload=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return nr.fromPartial(e??{})},fromPartial(e){let n=yM();return n.encodedMappingPayload=e.encodedMappingPayload??void 0,n}};function MM(){return{}}var ir={encode(e,n=new s){if(e.pn!==void 0)n.uint32(8).uint64(e.pn);if(e.assignedLid!==void 0)n.uint32(16).uint64(e.assignedLid);if(e.latestLid!==void 0)n.uint32(24).uint64(e.latestLid);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=MM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.pn=i.uint64Number();continue}case 2:{if(t!==16)break;a.assignedLid=i.uint64Number();continue}case 3:{if(t!==24)break;a.latestLid=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ir.fromPartial(e??{})},fromPartial(e){let n=MM();return n.pn=e.pn??void 0,n.assignedLid=e.assignedLid??void 0,n.latestLid=e.latestLid??void 0,n}};function mM(){return{}}var Yc={encode(e,n=new s){if(e.pnToLidMappings!==void 0&&e.pnToLidMappings.length!==0)for(let i of e.pnToLidMappings)ir.encode(i,n.uint32(10).fork()).join();if(e.chatDbMigrationTimestamp!==void 0)n.uint32(16).uint64(e.chatDbMigrationTimestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=mM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.pnToLidMappings===void 0)a.pnToLidMappings=[];let o=ir.decode(i,i.uint32());if(o!==void 0)a.pnToLidMappings.push(o);continue}case 2:{if(t!==16)break;a.chatDbMigrationTimestamp=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Yc.fromPartial(e??{})},fromPartial(e){let n=mM();return n.pnToLidMappings=e.pnToLidMappings?.map((i)=>ir.fromPartial(i))||void 0,n.chatDbMigrationTimestamp=e.chatDbMigrationTimestamp??void 0,n}};function _M(){return{}}var JI={encode(e,n=new s){if(e.createBackupInput!==void 0)ga.encode(e.createBackupInput,n.uint32(10).fork()).join();if(e.encryptMessageInput!==void 0)Ra.encode(e.encryptMessageInput,n.uint32(18).fork()).join();if(e.decryptMessageInput!==void 0)ya.encode(e.decryptMessageInput,n.uint32(26).fork()).join();if(e.orfThreadIdInput!==void 0)zo.encode(e.orfThreadIdInput,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=_M();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.createBackupInput=ga.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.encryptMessageInput=Ra.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.decryptMessageInput=ya.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.orfThreadIdInput=zo.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return JI.fromPartial(e??{})},fromPartial(e){let n=_M();return n.createBackupInput=e.createBackupInput!==void 0&&e.createBackupInput!==null?ga.fromPartial(e.createBackupInput):void 0,n.encryptMessageInput=e.encryptMessageInput!==void 0&&e.encryptMessageInput!==null?Ra.fromPartial(e.encryptMessageInput):void 0,n.decryptMessageInput=e.decryptMessageInput!==void 0&&e.decryptMessageInput!==null?ya.fromPartial(e.decryptMessageInput):void 0,n.orfThreadIdInput=e.orfThreadIdInput!==void 0&&e.orfThreadIdInput!==null?zo.fromPartial(e.orfThreadIdInput):void 0,n}};function hM(){return{}}var tr={encode(e,n=new s){if(e.eventResponseMessage!==void 0)Ee.encode(e.eventResponseMessage,n.uint32(10).fork()).join();if(e.pollVote!==void 0)Be.encode(e.pollVote,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=hM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.eventResponseMessage=Ee.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.pollVote=Be.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return tr.fromPartial(e??{})},fromPartial(e){let n=hM();return n.eventResponseMessage=e.eventResponseMessage!==void 0&&e.eventResponseMessage!==null?Ee.fromPartial(e.eventResponseMessage):void 0,n.pollVote=e.pollVote!==void 0&&e.pollVote!==null?Be.fromPartial(e.pollVote):void 0,n}};function kM(){return{}}var fe={encode(e,n=new s){if(e.sharingLimited!==void 0)n.uint32(8).bool(e.sharingLimited);if(e.trigger!==void 0)n.uint32(16).int32(e.trigger);if(e.limitSharingSettingTimestamp!==void 0)n.uint32(24).int64(e.limitSharingSettingTimestamp);if(e.initiatedByMe!==void 0)n.uint32(32).bool(e.initiatedByMe);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=kM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.sharingLimited=i.bool();continue}case 2:{if(t!==16)break;a.trigger=i.int32();continue}case 3:{if(t!==24)break;a.limitSharingSettingTimestamp=i.int64Number();continue}case 4:{if(t!==32)break;a.initiatedByMe=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return fe.fromPartial(e??{})},fromPartial(e){let n=kM();return n.sharingLimited=e.sharingLimited??void 0,n.trigger=e.trigger??void 0,n.limitSharingSettingTimestamp=e.limitSharingSettingTimestamp??void 0,n.initiatedByMe=e.initiatedByMe??void 0,n}};function AM(){return{}}var ar={encode(e,n=new s){if(e.lg!==void 0)n.uint32(10).string(e.lg);if(e.lc!==void 0)n.uint32(18).string(e.lc);if(e.verifiedName!==void 0)n.uint32(26).string(e.verifiedName);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=AM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.lg=i.string();continue}case 2:{if(t!==18)break;a.lc=i.string();continue}case 3:{if(t!==26)break;a.verifiedName=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ar.fromPartial(e??{})},fromPartial(e){let n=AM();return n.lg=e.lg??void 0,n.lc=e.lc??void 0,n.verifiedName=e.verifiedName??void 0,n}};function SM(){return{}}var rr={encode(e,n=new s){if(e.degreesLatitude!==void 0)n.uint32(9).double(e.degreesLatitude);if(e.degreesLongitude!==void 0)n.uint32(17).double(e.degreesLongitude);if(e.name!==void 0)n.uint32(26).string(e.name);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=SM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==9)break;a.degreesLatitude=i.double();continue}case 2:{if(t!==17)break;a.degreesLongitude=i.double();continue}case 3:{if(t!==26)break;a.name=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return rr.fromPartial(e??{})},fromPartial(e){let n=SM();return n.degreesLatitude=e.degreesLatitude??void 0,n.degreesLongitude=e.degreesLongitude??void 0,n.name=e.name??void 0,n}};function PM(){return{}}var Ve={encode(e,n=new s){if(e.localPath!==void 0)n.uint32(10).string(e.localPath);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=PM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.localPath=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ve.fromPartial(e??{})},fromPartial(e){let n=PM();return n.localPath=e.localPath??void 0,n}};function bM(){return{}}var dr={encode(e,n=new s){if(e.mediaKeyDomain!==void 0)n.uint32(8).int32(e.mediaKeyDomain);if(e.e2EeMediaKey!==void 0)n.uint32(18).bytes(e.e2EeMediaKey);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=bM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.mediaKeyDomain=i.int32();continue}case 2:{if(t!==18)break;a.e2EeMediaKey=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return dr.fromPartial(e??{})},fromPartial(e){let n=bM();return n.mediaKeyDomain=e.mediaKeyDomain??void 0,n.e2EeMediaKey=e.e2EeMediaKey??void 0,n}};function IM(){return{}}var QI={encode(e,n=new s){if(e.fileSha256!==void 0)n.uint32(10).bytes(e.fileSha256);if(e.mediaKey!==void 0)n.uint32(18).bytes(e.mediaKey);if(e.fileEncSha256!==void 0)n.uint32(26).bytes(e.fileEncSha256);if(e.directPath!==void 0)n.uint32(34).string(e.directPath);if(e.mediaKeyTimestamp!==void 0)n.uint32(40).int64(e.mediaKeyTimestamp);if(e.serverMediaType!==void 0)n.uint32(50).string(e.serverMediaType);if(e.uploadToken!==void 0)n.uint32(58).bytes(e.uploadToken);if(e.validatedTimestamp!==void 0)n.uint32(66).bytes(e.validatedTimestamp);if(e.sidecar!==void 0)n.uint32(74).bytes(e.sidecar);if(e.objectId!==void 0)n.uint32(82).string(e.objectId);if(e.fbid!==void 0)n.uint32(90).string(e.fbid);if(e.downloadableThumbnail!==void 0)or.encode(e.downloadableThumbnail,n.uint32(98).fork()).join();if(e.handle!==void 0)n.uint32(106).string(e.handle);if(e.filename!==void 0)n.uint32(114).string(e.filename);if(e.progressiveJpegDetails!==void 0)sr.encode(e.progressiveJpegDetails,n.uint32(122).fork()).join();if(e.size!==void 0)n.uint32(128).int64(e.size);if(e.lastDownloadAttemptTimestamp!==void 0)n.uint32(136).int64(e.lastDownloadAttemptTimestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=IM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.fileSha256=i.bytes();continue}case 2:{if(t!==18)break;a.mediaKey=i.bytes();continue}case 3:{if(t!==26)break;a.fileEncSha256=i.bytes();continue}case 4:{if(t!==34)break;a.directPath=i.string();continue}case 5:{if(t!==40)break;a.mediaKeyTimestamp=i.int64Number();continue}case 6:{if(t!==50)break;a.serverMediaType=i.string();continue}case 7:{if(t!==58)break;a.uploadToken=i.bytes();continue}case 8:{if(t!==66)break;a.validatedTimestamp=i.bytes();continue}case 9:{if(t!==74)break;a.sidecar=i.bytes();continue}case 10:{if(t!==82)break;a.objectId=i.string();continue}case 11:{if(t!==90)break;a.fbid=i.string();continue}case 12:{if(t!==98)break;a.downloadableThumbnail=or.decode(i,i.uint32());continue}case 13:{if(t!==106)break;a.handle=i.string();continue}case 14:{if(t!==114)break;a.filename=i.string();continue}case 15:{if(t!==122)break;a.progressiveJpegDetails=sr.decode(i,i.uint32());continue}case 16:{if(t!==128)break;a.size=i.int64Number();continue}case 17:{if(t!==136)break;a.lastDownloadAttemptTimestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return QI.fromPartial(e??{})},fromPartial(e){let n=IM();return n.fileSha256=e.fileSha256??void 0,n.mediaKey=e.mediaKey??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.directPath=e.directPath??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.serverMediaType=e.serverMediaType??void 0,n.uploadToken=e.uploadToken??void 0,n.validatedTimestamp=e.validatedTimestamp??void 0,n.sidecar=e.sidecar??void 0,n.objectId=e.objectId??void 0,n.fbid=e.fbid??void 0,n.downloadableThumbnail=e.downloadableThumbnail!==void 0&&e.downloadableThumbnail!==null?or.fromPartial(e.downloadableThumbnail):void 0,n.handle=e.handle??void 0,n.filename=e.filename??void 0,n.progressiveJpegDetails=e.progressiveJpegDetails!==void 0&&e.progressiveJpegDetails!==null?sr.fromPartial(e.progressiveJpegDetails):void 0,n.size=e.size??void 0,n.lastDownloadAttemptTimestamp=e.lastDownloadAttemptTimestamp??void 0,n}};function RM(){return{}}var or={encode(e,n=new s){if(e.fileSha256!==void 0)n.uint32(10).bytes(e.fileSha256);if(e.fileEncSha256!==void 0)n.uint32(18).bytes(e.fileEncSha256);if(e.directPath!==void 0)n.uint32(26).string(e.directPath);if(e.mediaKey!==void 0)n.uint32(34).bytes(e.mediaKey);if(e.mediaKeyTimestamp!==void 0)n.uint32(40).int64(e.mediaKeyTimestamp);if(e.objectId!==void 0)n.uint32(50).string(e.objectId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=RM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.fileSha256=i.bytes();continue}case 2:{if(t!==18)break;a.fileEncSha256=i.bytes();continue}case 3:{if(t!==26)break;a.directPath=i.string();continue}case 4:{if(t!==34)break;a.mediaKey=i.bytes();continue}case 5:{if(t!==40)break;a.mediaKeyTimestamp=i.int64Number();continue}case 6:{if(t!==50)break;a.objectId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return or.fromPartial(e??{})},fromPartial(e){let n=RM();return n.fileSha256=e.fileSha256??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.directPath=e.directPath??void 0,n.mediaKey=e.mediaKey??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.objectId=e.objectId??void 0,n}};function DM(){return{}}var sr={encode(e,n=new s){if(e.scanLengths!==void 0&&e.scanLengths.length!==0)for(let i of e.scanLengths)n.uint32(8).uint32(i);if(e.sidecar!==void 0)n.uint32(18).bytes(e.sidecar);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=DM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t===8){if(a.scanLengths===void 0)a.scanLengths=[];a.scanLengths.push(i.uint32());continue}if(t===10){if(a.scanLengths===void 0)a.scanLengths=[];let o=i.uint32()+i.pos;while(i.pos<o)a.scanLengths.push(i.uint32());continue}break}case 2:{if(t!==18)break;a.sidecar=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return sr.fromPartial(e??{})},fromPartial(e){let n=DM();return n.scanLengths=e.scanLengths?.map((i)=>i)||void 0,n.sidecar=e.sidecar??void 0,n}};function EM(){return{}}var ur={encode(e,n=new s){if(e.expressPathUrl!==void 0)n.uint32(10).string(e.expressPathUrl);if(e.fileEncSha256!==void 0)n.uint32(18).bytes(e.fileEncSha256);if(e.fileLength!==void 0)n.uint32(24).uint64(e.fileLength);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=EM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.expressPathUrl=i.string();continue}case 2:{if(t!==18)break;a.fileEncSha256=i.bytes();continue}case 3:{if(t!==24)break;a.fileLength=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ur.fromPartial(e??{})},fromPartial(e){let n=EM();return n.expressPathUrl=e.expressPathUrl??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.fileLength=e.fileLength??void 0,n}};function BM(){return{}}var Zc={encode(e,n=new s){if(e.stanzaId!==void 0)n.uint32(10).string(e.stanzaId);if(e.directPath!==void 0)n.uint32(18).string(e.directPath);if(e.result!==void 0)n.uint32(24).int32(e.result);if(e.messageSecret!==void 0)n.uint32(34).bytes(e.messageSecret);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=BM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.stanzaId=i.string();continue}case 2:{if(t!==18)break;a.directPath=i.string();continue}case 3:{if(t!==24)break;a.result=i.int32();continue}case 4:{if(t!==34)break;a.messageSecret=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Zc.fromPartial(e??{})},fromPartial(e){let n=BM();return n.stanzaId=e.stanzaId??void 0,n.directPath=e.directPath??void 0,n.result=e.result??void 0,n.messageSecret=e.messageSecret??void 0,n}};function CM(){return{}}var _e={encode(e,n=new s){if(e.label!==void 0)n.uint32(10).string(e.label);if(e.labelTimestamp!==void 0)n.uint32(16).int64(e.labelTimestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=CM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.label=i.string();continue}case 2:{if(t!==16)break;a.labelTimestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return _e.fromPartial(e??{})},fromPartial(e){let n=CM();return n.label=e.label??void 0,n.labelTimestamp=e.labelTimestamp??void 0,n}};function vM(){return{}}var cr={encode(e,n=new s){if(e.mentionType!==void 0)n.uint32(8).int32(e.mentionType);if(e.mentionedJid!==void 0)n.uint32(18).string(e.mentionedJid);if(e.offset!==void 0)n.uint32(24).uint32(e.offset);if(e.length!==void 0)n.uint32(32).uint32(e.length);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=vM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.mentionType=i.int32();continue}case 2:{if(t!==18)break;a.mentionedJid=i.string();continue}case 3:{if(t!==24)break;a.offset=i.uint32();continue}case 4:{if(t!==32)break;a.length=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return cr.fromPartial(e??{})},fromPartial(e){let n=vM();return n.mentionType=e.mentionType??void 0,n.mentionedJid=e.mentionedJid??void 0,n.offset=e.offset??void 0,n.length=e.length??void 0,n}};function xM(){return{}}var F={encode(e,n=new s){if(e.conversation!==void 0)n.uint32(10).string(e.conversation);if(e.senderKeyDistributionMessage!==void 0)We.encode(e.senderKeyDistributionMessage,n.uint32(18).fork()).join();if(e.imageMessage!==void 0)J.encode(e.imageMessage,n.uint32(26).fork()).join();if(e.contactMessage!==void 0)cn.encode(e.contactMessage,n.uint32(34).fork()).join();if(e.locationMessage!==void 0)X.encode(e.locationMessage,n.uint32(42).fork()).join();if(e.extendedTextMessage!==void 0)Jr.encode(e.extendedTextMessage,n.uint32(50).fork()).join();if(e.documentMessage!==void 0)ne.encode(e.documentMessage,n.uint32(58).fork()).join();if(e.audioMessage!==void 0)un.encode(e.audioMessage,n.uint32(66).fork()).join();if(e.videoMessage!==void 0)Y.encode(e.videoMessage,n.uint32(74).fork()).join();if(e.call!==void 0)br.encode(e.call,n.uint32(82).fork()).join();if(e.chat!==void 0)Er.encode(e.chat,n.uint32(90).fork()).join();if(e.protocolMessage!==void 0)ho.encode(e.protocolMessage,n.uint32(98).fork()).join();if(e.contactsArrayMessage!==void 0)wr.encode(e.contactsArrayMessage,n.uint32(106).fork()).join();if(e.highlyStructuredMessage!==void 0)H.encode(e.highlyStructuredMessage,n.uint32(114).fork()).join();if(e.fastRatchetKeySenderKeyDistributionMessage!==void 0)We.encode(e.fastRatchetKeySenderKeyDistributionMessage,n.uint32(122).fork()).join();if(e.sendPaymentMessage!==void 0)Bo.encode(e.sendPaymentMessage,n.uint32(130).fork()).join();if(e.liveLocationMessage!==void 0)ln.encode(e.liveLocationMessage,n.uint32(146).fork()).join();if(e.requestPaymentMessage!==void 0)So.encode(e.requestPaymentMessage,n.uint32(178).fork()).join();if(e.declinePaymentRequestMessage!==void 0)Fr.encode(e.declinePaymentRequestMessage,n.uint32(186).fork()).join();if(e.cancelPaymentRequestMessage!==void 0)Dr.encode(e.cancelPaymentRequestMessage,n.uint32(194).fork()).join();if(e.templateMessage!==void 0)_n.encode(e.templateMessage,n.uint32(202).fork()).join();if(e.stickerMessage!==void 0)mn.encode(e.stickerMessage,n.uint32(210).fork()).join();if(e.groupInviteMessage!==void 0)zr.encode(e.groupInviteMessage,n.uint32(226).fork()).join();if(e.templateButtonReplyMessage!==void 0)Fo.encode(e.templateButtonReplyMessage,n.uint32(234).fork()).join();if(e.productMessage!==void 0)Mn.encode(e.productMessage,n.uint32(242).fork()).join();if(e.deviceSentMessage!==void 0)Vr.encode(e.deviceSentMessage,n.uint32(250).fork()).join();if(e.messageContextInfo!==void 0)kn.encode(e.messageContextInfo,n.uint32(282).fork()).join();if(e.listMessage!==void 0)md.encode(e.listMessage,n.uint32(290).fork()).join();if(e.viewOnceMessage!==void 0)D.encode(e.viewOnceMessage,n.uint32(298).fork()).join();if(e.orderMessage!==void 0)Cd.encode(e.orderMessage,n.uint32(306).fork()).join();if(e.listResponseMessage!==void 0)bd.encode(e.listResponseMessage,n.uint32(314).fork()).join();if(e.ephemeralMessage!==void 0)D.encode(e.ephemeralMessage,n.uint32(322).fork()).join();if(e.invoiceMessage!==void 0)gd.encode(e.invoiceMessage,n.uint32(330).fork()).join();if(e.buttonsMessage!==void 0)hr.encode(e.buttonsMessage,n.uint32(338).fork()).join();if(e.buttonsResponseMessage!==void 0)Pr.encode(e.buttonsResponseMessage,n.uint32(346).fork()).join();if(e.paymentInviteMessage!==void 0)xd.encode(e.paymentInviteMessage,n.uint32(354).fork()).join();if(e.interactiveMessage!==void 0)ke.encode(e.interactiveMessage,n.uint32(362).fork()).join();if(e.reactionMessage!==void 0)Ao.encode(e.reactionMessage,n.uint32(370).fork()).join();if(e.stickerSyncRmrMessage!==void 0)wo.encode(e.stickerSyncRmrMessage,n.uint32(378).fork()).join();if(e.interactiveResponseMessage!==void 0)fd.encode(e.interactiveResponseMessage,n.uint32(386).fork()).join();if(e.pollCreationMessage!==void 0)ee.encode(e.pollCreationMessage,n.uint32(394).fork()).join();if(e.pollUpdateMessage!==void 0)Mo.encode(e.pollUpdateMessage,n.uint32(402).fork()).join();if(e.keepInChatMessage!==void 0)yd.encode(e.keepInChatMessage,n.uint32(410).fork()).join();if(e.documentWithCaptionMessage!==void 0)D.encode(e.documentWithCaptionMessage,n.uint32(426).fork()).join();if(e.requestPhoneNumberMessage!==void 0)Po.encode(e.requestPhoneNumberMessage,n.uint32(434).fork()).join();if(e.viewOnceMessageV2!==void 0)D.encode(e.viewOnceMessageV2,n.uint32(442).fork()).join();if(e.encReactionMessage!==void 0)Hr.encode(e.encReactionMessage,n.uint32(450).fork()).join();if(e.editedMessage!==void 0)D.encode(e.editedMessage,n.uint32(466).fork()).join();if(e.viewOnceMessageV2Extension!==void 0)D.encode(e.viewOnceMessageV2Extension,n.uint32(474).fork()).join();if(e.pollCreationMessageV2!==void 0)ee.encode(e.pollCreationMessageV2,n.uint32(482).fork()).join();if(e.scheduledCallCreationMessage!==void 0)Ro.encode(e.scheduledCallCreationMessage,n.uint32(490).fork()).join();if(e.groupMentionedMessage!==void 0)D.encode(e.groupMentionedMessage,n.uint32(498).fork()).join();if(e.pinInChatMessage!==void 0)fo.encode(e.pinInChatMessage,n.uint32(506).fork()).join();if(e.pollCreationMessageV3!==void 0)ee.encode(e.pollCreationMessageV3,n.uint32(514).fork()).join();if(e.scheduledCallEditMessage!==void 0)Do.encode(e.scheduledCallEditMessage,n.uint32(522).fork()).join();if(e.ptvMessage!==void 0)Y.encode(e.ptvMessage,n.uint32(530).fork()).join();if(e.botInvokeMessage!==void 0)D.encode(e.botInvokeMessage,n.uint32(538).fork()).join();if(e.callLogMesssage!==void 0)Ir.encode(e.callLogMesssage,n.uint32(554).fork()).join();if(e.messageHistoryBundle!==void 0)pn.encode(e.messageHistoryBundle,n.uint32(562).fork()).join();if(e.encCommentMessage!==void 0)Kr.encode(e.encCommentMessage,n.uint32(570).fork()).join();if(e.bcallMessage!==void 0)_r.encode(e.bcallMessage,n.uint32(578).fork()).join();if(e.lottieStickerMessage!==void 0)D.encode(e.lottieStickerMessage,n.uint32(594).fork()).join();if(e.eventMessage!==void 0)Gr.encode(e.eventMessage,n.uint32(602).fork()).join();if(e.encEventResponseMessage!==void 0)Wr.encode(e.encEventResponseMessage,n.uint32(610).fork()).join();if(e.commentMessage!==void 0)Tr.encode(e.commentMessage,n.uint32(618).fork()).join();if(e.newsletterAdminInviteMessage!==void 0)Ed.encode(e.newsletterAdminInviteMessage,n.uint32(626).fork()).join();if(e.placeholderMessage!==void 0)lo.encode(e.placeholderMessage,n.uint32(642).fork()).join();if(e.secretEncryptedMessage!==void 0)Eo.encode(e.secretEncryptedMessage,n.uint32(658).fork()).join();if(e.albumMessage!==void 0)fr.encode(e.albumMessage,n.uint32(666).fork()).join();if(e.eventCoverImage!==void 0)D.encode(e.eventCoverImage,n.uint32(682).fork()).join();if(e.stickerPackMessage!==void 0)To.encode(e.stickerPackMessage,n.uint32(690).fork()).join();if(e.statusMentionMessage!==void 0)D.encode(e.statusMentionMessage,n.uint32(698).fork()).join();if(e.pollResultSnapshotMessage!==void 0)Ke.encode(e.pollResultSnapshotMessage,n.uint32(706).fork()).join();if(e.pollCreationOptionImageMessage!==void 0)D.encode(e.pollCreationOptionImageMessage,n.uint32(722).fork()).join();if(e.associatedChildMessage!==void 0)D.encode(e.associatedChildMessage,n.uint32(730).fork()).join();if(e.groupStatusMentionMessage!==void 0)D.encode(e.groupStatusMentionMessage,n.uint32(738).fork()).join();if(e.pollCreationMessageV4!==void 0)D.encode(e.pollCreationMessageV4,n.uint32(746).fork()).join();if(e.statusAddYours!==void 0)D.encode(e.statusAddYours,n.uint32(762).fork()).join();if(e.groupStatusMessage!==void 0)D.encode(e.groupStatusMessage,n.uint32(770).fork()).join();if(e.richResponseMessage!==void 0)si.encode(e.richResponseMessage,n.uint32(778).fork()).join();if(e.statusNotificationMessage!==void 0)xo.encode(e.statusNotificationMessage,n.uint32(786).fork()).join();if(e.limitSharingMessage!==void 0)D.encode(e.limitSharingMessage,n.uint32(794).fork()).join();if(e.botTaskMessage!==void 0)D.encode(e.botTaskMessage,n.uint32(802).fork()).join();if(e.questionMessage!==void 0)D.encode(e.questionMessage,n.uint32(810).fork()).join();if(e.messageHistoryNotice!==void 0)Dd.encode(e.messageHistoryNotice,n.uint32(818).fork()).join();if(e.groupStatusMessageV2!==void 0)D.encode(e.groupStatusMessageV2,n.uint32(826).fork()).join();if(e.botForwardedMessage!==void 0)D.encode(e.botForwardedMessage,n.uint32(834).fork()).join();if(e.statusQuestionAnswerMessage!==void 0)No.encode(e.statusQuestionAnswerMessage,n.uint32(842).fork()).join();if(e.questionReplyMessage!==void 0)D.encode(e.questionReplyMessage,n.uint32(850).fork()).join();if(e.questionResponseMessage!==void 0)ko.encode(e.questionResponseMessage,n.uint32(858).fork()).join();if(e.statusQuotedMessage!==void 0)Oo.encode(e.statusQuotedMessage,n.uint32(874).fork()).join();if(e.statusStickerInteractionMessage!==void 0)Uo.encode(e.statusStickerInteractionMessage,n.uint32(882).fork()).join();if(e.pollCreationMessageV5!==void 0)ee.encode(e.pollCreationMessageV5,n.uint32(890).fork()).join();if(e.newsletterFollowerInviteMessageV2!==void 0)Bd.encode(e.newsletterFollowerInviteMessageV2,n.uint32(906).fork()).join();if(e.pollResultSnapshotMessageV3!==void 0)Ke.encode(e.pollResultSnapshotMessageV3,n.uint32(922).fork()).join();if(e.newsletterAdminProfileMessage!==void 0)D.encode(e.newsletterAdminProfileMessage,n.uint32(930).fork()).join();if(e.newsletterAdminProfileMessageV2!==void 0)D.encode(e.newsletterAdminProfileMessageV2,n.uint32(938).fork()).join();if(e.spoilerMessage!==void 0)D.encode(e.spoilerMessage,n.uint32(946).fork()).join();if(e.pollCreationMessageV6!==void 0)ee.encode(e.pollCreationMessageV6,n.uint32(954).fork()).join();if(e.conditionalRevealMessage!==void 0)Lr.encode(e.conditionalRevealMessage,n.uint32(962).fork()).join();if(e.pollAddOptionMessage!==void 0)po.encode(e.pollAddOptionMessage,n.uint32(970).fork()).join();if(e.eventInviteMessage!==void 0)qr.encode(e.eventInviteMessage,n.uint32(978).fork()).join();if(e.groupRootKeyShare!==void 0)La.encode(e.groupRootKeyShare,n.uint32(986).fork()).join();if(e.paymentReminderMessage!==void 0)Td.encode(e.paymentReminderMessage,n.uint32(994).fork()).join();if(e.splitPaymentMessage!==void 0)Co.encode(e.splitPaymentMessage,n.uint32(1002).fork()).join();if(e.newsletterAdminProfileStatusMessage!==void 0)D.encode(e.newsletterAdminProfileStatusMessage,n.uint32(1010).fork()).join();if(e.rootSecretDistributeMessage!==void 0)Io.encode(e.rootSecretDistributeMessage,n.uint32(1018).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=xM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.conversation=i.string();continue}case 2:{if(t!==18)break;a.senderKeyDistributionMessage=We.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.imageMessage=J.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.contactMessage=cn.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.locationMessage=X.decode(i,i.uint32());continue}case 6:{if(t!==50)break;a.extendedTextMessage=Jr.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.documentMessage=ne.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.audioMessage=un.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.videoMessage=Y.decode(i,i.uint32());continue}case 10:{if(t!==82)break;a.call=br.decode(i,i.uint32());continue}case 11:{if(t!==90)break;a.chat=Er.decode(i,i.uint32());continue}case 12:{if(t!==98)break;a.protocolMessage=ho.decode(i,i.uint32());continue}case 13:{if(t!==106)break;a.contactsArrayMessage=wr.decode(i,i.uint32());continue}case 14:{if(t!==114)break;a.highlyStructuredMessage=H.decode(i,i.uint32());continue}case 15:{if(t!==122)break;a.fastRatchetKeySenderKeyDistributionMessage=We.decode(i,i.uint32());continue}case 16:{if(t!==130)break;a.sendPaymentMessage=Bo.decode(i,i.uint32());continue}case 18:{if(t!==146)break;a.liveLocationMessage=ln.decode(i,i.uint32());continue}case 22:{if(t!==178)break;a.requestPaymentMessage=So.decode(i,i.uint32());continue}case 23:{if(t!==186)break;a.declinePaymentRequestMessage=Fr.decode(i,i.uint32());continue}case 24:{if(t!==194)break;a.cancelPaymentRequestMessage=Dr.decode(i,i.uint32());continue}case 25:{if(t!==202)break;a.templateMessage=_n.decode(i,i.uint32());continue}case 26:{if(t!==210)break;a.stickerMessage=mn.decode(i,i.uint32());continue}case 28:{if(t!==226)break;a.groupInviteMessage=zr.decode(i,i.uint32());continue}case 29:{if(t!==234)break;a.templateButtonReplyMessage=Fo.decode(i,i.uint32());continue}case 30:{if(t!==242)break;a.productMessage=Mn.decode(i,i.uint32());continue}case 31:{if(t!==250)break;a.deviceSentMessage=Vr.decode(i,i.uint32());continue}case 35:{if(t!==282)break;a.messageContextInfo=kn.decode(i,i.uint32());continue}case 36:{if(t!==290)break;a.listMessage=md.decode(i,i.uint32());continue}case 37:{if(t!==298)break;a.viewOnceMessage=D.decode(i,i.uint32());continue}case 38:{if(t!==306)break;a.orderMessage=Cd.decode(i,i.uint32());continue}case 39:{if(t!==314)break;a.listResponseMessage=bd.decode(i,i.uint32());continue}case 40:{if(t!==322)break;a.ephemeralMessage=D.decode(i,i.uint32());continue}case 41:{if(t!==330)break;a.invoiceMessage=gd.decode(i,i.uint32());continue}case 42:{if(t!==338)break;a.buttonsMessage=hr.decode(i,i.uint32());continue}case 43:{if(t!==346)break;a.buttonsResponseMessage=Pr.decode(i,i.uint32());continue}case 44:{if(t!==354)break;a.paymentInviteMessage=xd.decode(i,i.uint32());continue}case 45:{if(t!==362)break;a.interactiveMessage=ke.decode(i,i.uint32());continue}case 46:{if(t!==370)break;a.reactionMessage=Ao.decode(i,i.uint32());continue}case 47:{if(t!==378)break;a.stickerSyncRmrMessage=wo.decode(i,i.uint32());continue}case 48:{if(t!==386)break;a.interactiveResponseMessage=fd.decode(i,i.uint32());continue}case 49:{if(t!==394)break;a.pollCreationMessage=ee.decode(i,i.uint32());continue}case 50:{if(t!==402)break;a.pollUpdateMessage=Mo.decode(i,i.uint32());continue}case 51:{if(t!==410)break;a.keepInChatMessage=yd.decode(i,i.uint32());continue}case 53:{if(t!==426)break;a.documentWithCaptionMessage=D.decode(i,i.uint32());continue}case 54:{if(t!==434)break;a.requestPhoneNumberMessage=Po.decode(i,i.uint32());continue}case 55:{if(t!==442)break;a.viewOnceMessageV2=D.decode(i,i.uint32());continue}case 56:{if(t!==450)break;a.encReactionMessage=Hr.decode(i,i.uint32());continue}case 58:{if(t!==466)break;a.editedMessage=D.decode(i,i.uint32());continue}case 59:{if(t!==474)break;a.viewOnceMessageV2Extension=D.decode(i,i.uint32());continue}case 60:{if(t!==482)break;a.pollCreationMessageV2=ee.decode(i,i.uint32());continue}case 61:{if(t!==490)break;a.scheduledCallCreationMessage=Ro.decode(i,i.uint32());continue}case 62:{if(t!==498)break;a.groupMentionedMessage=D.decode(i,i.uint32());continue}case 63:{if(t!==506)break;a.pinInChatMessage=fo.decode(i,i.uint32());continue}case 64:{if(t!==514)break;a.pollCreationMessageV3=ee.decode(i,i.uint32());continue}case 65:{if(t!==522)break;a.scheduledCallEditMessage=Do.decode(i,i.uint32());continue}case 66:{if(t!==530)break;a.ptvMessage=Y.decode(i,i.uint32());continue}case 67:{if(t!==538)break;a.botInvokeMessage=D.decode(i,i.uint32());continue}case 69:{if(t!==554)break;a.callLogMesssage=Ir.decode(i,i.uint32());continue}case 70:{if(t!==562)break;a.messageHistoryBundle=pn.decode(i,i.uint32());continue}case 71:{if(t!==570)break;a.encCommentMessage=Kr.decode(i,i.uint32());continue}case 72:{if(t!==578)break;a.bcallMessage=_r.decode(i,i.uint32());continue}case 74:{if(t!==594)break;a.lottieStickerMessage=D.decode(i,i.uint32());continue}case 75:{if(t!==602)break;a.eventMessage=Gr.decode(i,i.uint32());continue}case 76:{if(t!==610)break;a.encEventResponseMessage=Wr.decode(i,i.uint32());continue}case 77:{if(t!==618)break;a.commentMessage=Tr.decode(i,i.uint32());continue}case 78:{if(t!==626)break;a.newsletterAdminInviteMessage=Ed.decode(i,i.uint32());continue}case 80:{if(t!==642)break;a.placeholderMessage=lo.decode(i,i.uint32());continue}case 82:{if(t!==658)break;a.secretEncryptedMessage=Eo.decode(i,i.uint32());continue}case 83:{if(t!==666)break;a.albumMessage=fr.decode(i,i.uint32());continue}case 85:{if(t!==682)break;a.eventCoverImage=D.decode(i,i.uint32());continue}case 86:{if(t!==690)break;a.stickerPackMessage=To.decode(i,i.uint32());continue}case 87:{if(t!==698)break;a.statusMentionMessage=D.decode(i,i.uint32());continue}case 88:{if(t!==706)break;a.pollResultSnapshotMessage=Ke.decode(i,i.uint32());continue}case 90:{if(t!==722)break;a.pollCreationOptionImageMessage=D.decode(i,i.uint32());continue}case 91:{if(t!==730)break;a.associatedChildMessage=D.decode(i,i.uint32());continue}case 92:{if(t!==738)break;a.groupStatusMentionMessage=D.decode(i,i.uint32());continue}case 93:{if(t!==746)break;a.pollCreationMessageV4=D.decode(i,i.uint32());continue}case 95:{if(t!==762)break;a.statusAddYours=D.decode(i,i.uint32());continue}case 96:{if(t!==770)break;a.groupStatusMessage=D.decode(i,i.uint32());continue}case 97:{if(t!==778)break;a.richResponseMessage=si.decode(i,i.uint32());continue}case 98:{if(t!==786)break;a.statusNotificationMessage=xo.decode(i,i.uint32());continue}case 99:{if(t!==794)break;a.limitSharingMessage=D.decode(i,i.uint32());continue}case 100:{if(t!==802)break;a.botTaskMessage=D.decode(i,i.uint32());continue}case 101:{if(t!==810)break;a.questionMessage=D.decode(i,i.uint32());continue}case 102:{if(t!==818)break;a.messageHistoryNotice=Dd.decode(i,i.uint32());continue}case 103:{if(t!==826)break;a.groupStatusMessageV2=D.decode(i,i.uint32());continue}case 104:{if(t!==834)break;a.botForwardedMessage=D.decode(i,i.uint32());continue}case 105:{if(t!==842)break;a.statusQuestionAnswerMessage=No.decode(i,i.uint32());continue}case 106:{if(t!==850)break;a.questionReplyMessage=D.decode(i,i.uint32());continue}case 107:{if(t!==858)break;a.questionResponseMessage=ko.decode(i,i.uint32());continue}case 109:{if(t!==874)break;a.statusQuotedMessage=Oo.decode(i,i.uint32());continue}case 110:{if(t!==882)break;a.statusStickerInteractionMessage=Uo.decode(i,i.uint32());continue}case 111:{if(t!==890)break;a.pollCreationMessageV5=ee.decode(i,i.uint32());continue}case 113:{if(t!==906)break;a.newsletterFollowerInviteMessageV2=Bd.decode(i,i.uint32());continue}case 115:{if(t!==922)break;a.pollResultSnapshotMessageV3=Ke.decode(i,i.uint32());continue}case 116:{if(t!==930)break;a.newsletterAdminProfileMessage=D.decode(i,i.uint32());continue}case 117:{if(t!==938)break;a.newsletterAdminProfileMessageV2=D.decode(i,i.uint32());continue}case 118:{if(t!==946)break;a.spoilerMessage=D.decode(i,i.uint32());continue}case 119:{if(t!==954)break;a.pollCreationMessageV6=ee.decode(i,i.uint32());continue}case 120:{if(t!==962)break;a.conditionalRevealMessage=Lr.decode(i,i.uint32());continue}case 121:{if(t!==970)break;a.pollAddOptionMessage=po.decode(i,i.uint32());continue}case 122:{if(t!==978)break;a.eventInviteMessage=qr.decode(i,i.uint32());continue}case 123:{if(t!==986)break;a.groupRootKeyShare=La.decode(i,i.uint32());continue}case 124:{if(t!==994)break;a.paymentReminderMessage=Td.decode(i,i.uint32());continue}case 125:{if(t!==1002)break;a.splitPaymentMessage=Co.decode(i,i.uint32());continue}case 126:{if(t!==1010)break;a.newsletterAdminProfileStatusMessage=D.decode(i,i.uint32());continue}case 127:{if(t!==1018)break;a.rootSecretDistributeMessage=Io.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return F.fromPartial(e??{})},fromPartial(e){let n=xM();return n.conversation=e.conversation??void 0,n.senderKeyDistributionMessage=e.senderKeyDistributionMessage!==void 0&&e.senderKeyDistributionMessage!==null?We.fromPartial(e.senderKeyDistributionMessage):void 0,n.imageMessage=e.imageMessage!==void 0&&e.imageMessage!==null?J.fromPartial(e.imageMessage):void 0,n.contactMessage=e.contactMessage!==void 0&&e.contactMessage!==null?cn.fromPartial(e.contactMessage):void 0,n.locationMessage=e.locationMessage!==void 0&&e.locationMessage!==null?X.fromPartial(e.locationMessage):void 0,n.extendedTextMessage=e.extendedTextMessage!==void 0&&e.extendedTextMessage!==null?Jr.fromPartial(e.extendedTextMessage):void 0,n.documentMessage=e.documentMessage!==void 0&&e.documentMessage!==null?ne.fromPartial(e.documentMessage):void 0,n.audioMessage=e.audioMessage!==void 0&&e.audioMessage!==null?un.fromPartial(e.audioMessage):void 0,n.videoMessage=e.videoMessage!==void 0&&e.videoMessage!==null?Y.fromPartial(e.videoMessage):void 0,n.call=e.call!==void 0&&e.call!==null?br.fromPartial(e.call):void 0,n.chat=e.chat!==void 0&&e.chat!==null?Er.fromPartial(e.chat):void 0,n.protocolMessage=e.protocolMessage!==void 0&&e.protocolMessage!==null?ho.fromPartial(e.protocolMessage):void 0,n.contactsArrayMessage=e.contactsArrayMessage!==void 0&&e.contactsArrayMessage!==null?wr.fromPartial(e.contactsArrayMessage):void 0,n.highlyStructuredMessage=e.highlyStructuredMessage!==void 0&&e.highlyStructuredMessage!==null?H.fromPartial(e.highlyStructuredMessage):void 0,n.fastRatchetKeySenderKeyDistributionMessage=e.fastRatchetKeySenderKeyDistributionMessage!==void 0&&e.fastRatchetKeySenderKeyDistributionMessage!==null?We.fromPartial(e.fastRatchetKeySenderKeyDistributionMessage):void 0,n.sendPaymentMessage=e.sendPaymentMessage!==void 0&&e.sendPaymentMessage!==null?Bo.fromPartial(e.sendPaymentMessage):void 0,n.liveLocationMessage=e.liveLocationMessage!==void 0&&e.liveLocationMessage!==null?ln.fromPartial(e.liveLocationMessage):void 0,n.requestPaymentMessage=e.requestPaymentMessage!==void 0&&e.requestPaymentMessage!==null?So.fromPartial(e.requestPaymentMessage):void 0,n.declinePaymentRequestMessage=e.declinePaymentRequestMessage!==void 0&&e.declinePaymentRequestMessage!==null?Fr.fromPartial(e.declinePaymentRequestMessage):void 0,n.cancelPaymentRequestMessage=e.cancelPaymentRequestMessage!==void 0&&e.cancelPaymentRequestMessage!==null?Dr.fromPartial(e.cancelPaymentRequestMessage):void 0,n.templateMessage=e.templateMessage!==void 0&&e.templateMessage!==null?_n.fromPartial(e.templateMessage):void 0,n.stickerMessage=e.stickerMessage!==void 0&&e.stickerMessage!==null?mn.fromPartial(e.stickerMessage):void 0,n.groupInviteMessage=e.groupInviteMessage!==void 0&&e.groupInviteMessage!==null?zr.fromPartial(e.groupInviteMessage):void 0,n.templateButtonReplyMessage=e.templateButtonReplyMessage!==void 0&&e.templateButtonReplyMessage!==null?Fo.fromPartial(e.templateButtonReplyMessage):void 0,n.productMessage=e.productMessage!==void 0&&e.productMessage!==null?Mn.fromPartial(e.productMessage):void 0,n.deviceSentMessage=e.deviceSentMessage!==void 0&&e.deviceSentMessage!==null?Vr.fromPartial(e.deviceSentMessage):void 0,n.messageContextInfo=e.messageContextInfo!==void 0&&e.messageContextInfo!==null?kn.fromPartial(e.messageContextInfo):void 0,n.listMessage=e.listMessage!==void 0&&e.listMessage!==null?md.fromPartial(e.listMessage):void 0,n.viewOnceMessage=e.viewOnceMessage!==void 0&&e.viewOnceMessage!==null?D.fromPartial(e.viewOnceMessage):void 0,n.orderMessage=e.orderMessage!==void 0&&e.orderMessage!==null?Cd.fromPartial(e.orderMessage):void 0,n.listResponseMessage=e.listResponseMessage!==void 0&&e.listResponseMessage!==null?bd.fromPartial(e.listResponseMessage):void 0,n.ephemeralMessage=e.ephemeralMessage!==void 0&&e.ephemeralMessage!==null?D.fromPartial(e.ephemeralMessage):void 0,n.invoiceMessage=e.invoiceMessage!==void 0&&e.invoiceMessage!==null?gd.fromPartial(e.invoiceMessage):void 0,n.buttonsMessage=e.buttonsMessage!==void 0&&e.buttonsMessage!==null?hr.fromPartial(e.buttonsMessage):void 0,n.buttonsResponseMessage=e.buttonsResponseMessage!==void 0&&e.buttonsResponseMessage!==null?Pr.fromPartial(e.buttonsResponseMessage):void 0,n.paymentInviteMessage=e.paymentInviteMessage!==void 0&&e.paymentInviteMessage!==null?xd.fromPartial(e.paymentInviteMessage):void 0,n.interactiveMessage=e.interactiveMessage!==void 0&&e.interactiveMessage!==null?ke.fromPartial(e.interactiveMessage):void 0,n.reactionMessage=e.reactionMessage!==void 0&&e.reactionMessage!==null?Ao.fromPartial(e.reactionMessage):void 0,n.stickerSyncRmrMessage=e.stickerSyncRmrMessage!==void 0&&e.stickerSyncRmrMessage!==null?wo.fromPartial(e.stickerSyncRmrMessage):void 0,n.interactiveResponseMessage=e.interactiveResponseMessage!==void 0&&e.interactiveResponseMessage!==null?fd.fromPartial(e.interactiveResponseMessage):void 0,n.pollCreationMessage=e.pollCreationMessage!==void 0&&e.pollCreationMessage!==null?ee.fromPartial(e.pollCreationMessage):void 0,n.pollUpdateMessage=e.pollUpdateMessage!==void 0&&e.pollUpdateMessage!==null?Mo.fromPartial(e.pollUpdateMessage):void 0,n.keepInChatMessage=e.keepInChatMessage!==void 0&&e.keepInChatMessage!==null?yd.fromPartial(e.keepInChatMessage):void 0,n.documentWithCaptionMessage=e.documentWithCaptionMessage!==void 0&&e.documentWithCaptionMessage!==null?D.fromPartial(e.documentWithCaptionMessage):void 0,n.requestPhoneNumberMessage=e.requestPhoneNumberMessage!==void 0&&e.requestPhoneNumberMessage!==null?Po.fromPartial(e.requestPhoneNumberMessage):void 0,n.viewOnceMessageV2=e.viewOnceMessageV2!==void 0&&e.viewOnceMessageV2!==null?D.fromPartial(e.viewOnceMessageV2):void 0,n.encReactionMessage=e.encReactionMessage!==void 0&&e.encReactionMessage!==null?Hr.fromPartial(e.encReactionMessage):void 0,n.editedMessage=e.editedMessage!==void 0&&e.editedMessage!==null?D.fromPartial(e.editedMessage):void 0,n.viewOnceMessageV2Extension=e.viewOnceMessageV2Extension!==void 0&&e.viewOnceMessageV2Extension!==null?D.fromPartial(e.viewOnceMessageV2Extension):void 0,n.pollCreationMessageV2=e.pollCreationMessageV2!==void 0&&e.pollCreationMessageV2!==null?ee.fromPartial(e.pollCreationMessageV2):void 0,n.scheduledCallCreationMessage=e.scheduledCallCreationMessage!==void 0&&e.scheduledCallCreationMessage!==null?Ro.fromPartial(e.scheduledCallCreationMessage):void 0,n.groupMentionedMessage=e.groupMentionedMessage!==void 0&&e.groupMentionedMessage!==null?D.fromPartial(e.groupMentionedMessage):void 0,n.pinInChatMessage=e.pinInChatMessage!==void 0&&e.pinInChatMessage!==null?fo.fromPartial(e.pinInChatMessage):void 0,n.pollCreationMessageV3=e.pollCreationMessageV3!==void 0&&e.pollCreationMessageV3!==null?ee.fromPartial(e.pollCreationMessageV3):void 0,n.scheduledCallEditMessage=e.scheduledCallEditMessage!==void 0&&e.scheduledCallEditMessage!==null?Do.fromPartial(e.scheduledCallEditMessage):void 0,n.ptvMessage=e.ptvMessage!==void 0&&e.ptvMessage!==null?Y.fromPartial(e.ptvMessage):void 0,n.botInvokeMessage=e.botInvokeMessage!==void 0&&e.botInvokeMessage!==null?D.fromPartial(e.botInvokeMessage):void 0,n.callLogMesssage=e.callLogMesssage!==void 0&&e.callLogMesssage!==null?Ir.fromPartial(e.callLogMesssage):void 0,n.messageHistoryBundle=e.messageHistoryBundle!==void 0&&e.messageHistoryBundle!==null?pn.fromPartial(e.messageHistoryBundle):void 0,n.encCommentMessage=e.encCommentMessage!==void 0&&e.encCommentMessage!==null?Kr.fromPartial(e.encCommentMessage):void 0,n.bcallMessage=e.bcallMessage!==void 0&&e.bcallMessage!==null?_r.fromPartial(e.bcallMessage):void 0,n.lottieStickerMessage=e.lottieStickerMessage!==void 0&&e.lottieStickerMessage!==null?D.fromPartial(e.lottieStickerMessage):void 0,n.eventMessage=e.eventMessage!==void 0&&e.eventMessage!==null?Gr.fromPartial(e.eventMessage):void 0,n.encEventResponseMessage=e.encEventResponseMessage!==void 0&&e.encEventResponseMessage!==null?Wr.fromPartial(e.encEventResponseMessage):void 0,n.commentMessage=e.commentMessage!==void 0&&e.commentMessage!==null?Tr.fromPartial(e.commentMessage):void 0,n.newsletterAdminInviteMessage=e.newsletterAdminInviteMessage!==void 0&&e.newsletterAdminInviteMessage!==null?Ed.fromPartial(e.newsletterAdminInviteMessage):void 0,n.placeholderMessage=e.placeholderMessage!==void 0&&e.placeholderMessage!==null?lo.fromPartial(e.placeholderMessage):void 0,n.secretEncryptedMessage=e.secretEncryptedMessage!==void 0&&e.secretEncryptedMessage!==null?Eo.fromPartial(e.secretEncryptedMessage):void 0,n.albumMessage=e.albumMessage!==void 0&&e.albumMessage!==null?fr.fromPartial(e.albumMessage):void 0,n.eventCoverImage=e.eventCoverImage!==void 0&&e.eventCoverImage!==null?D.fromPartial(e.eventCoverImage):void 0,n.stickerPackMessage=e.stickerPackMessage!==void 0&&e.stickerPackMessage!==null?To.fromPartial(e.stickerPackMessage):void 0,n.statusMentionMessage=e.statusMentionMessage!==void 0&&e.statusMentionMessage!==null?D.fromPartial(e.statusMentionMessage):void 0,n.pollResultSnapshotMessage=e.pollResultSnapshotMessage!==void 0&&e.pollResultSnapshotMessage!==null?Ke.fromPartial(e.pollResultSnapshotMessage):void 0,n.pollCreationOptionImageMessage=e.pollCreationOptionImageMessage!==void 0&&e.pollCreationOptionImageMessage!==null?D.fromPartial(e.pollCreationOptionImageMessage):void 0,n.associatedChildMessage=e.associatedChildMessage!==void 0&&e.associatedChildMessage!==null?D.fromPartial(e.associatedChildMessage):void 0,n.groupStatusMentionMessage=e.groupStatusMentionMessage!==void 0&&e.groupStatusMentionMessage!==null?D.fromPartial(e.groupStatusMentionMessage):void 0,n.pollCreationMessageV4=e.pollCreationMessageV4!==void 0&&e.pollCreationMessageV4!==null?D.fromPartial(e.pollCreationMessageV4):void 0,n.statusAddYours=e.statusAddYours!==void 0&&e.statusAddYours!==null?D.fromPartial(e.statusAddYours):void 0,n.groupStatusMessage=e.groupStatusMessage!==void 0&&e.groupStatusMessage!==null?D.fromPartial(e.groupStatusMessage):void 0,n.richResponseMessage=e.richResponseMessage!==void 0&&e.richResponseMessage!==null?si.fromPartial(e.richResponseMessage):void 0,n.statusNotificationMessage=e.statusNotificationMessage!==void 0&&e.statusNotificationMessage!==null?xo.fromPartial(e.statusNotificationMessage):void 0,n.limitSharingMessage=e.limitSharingMessage!==void 0&&e.limitSharingMessage!==null?D.fromPartial(e.limitSharingMessage):void 0,n.botTaskMessage=e.botTaskMessage!==void 0&&e.botTaskMessage!==null?D.fromPartial(e.botTaskMessage):void 0,n.questionMessage=e.questionMessage!==void 0&&e.questionMessage!==null?D.fromPartial(e.questionMessage):void 0,n.messageHistoryNotice=e.messageHistoryNotice!==void 0&&e.messageHistoryNotice!==null?Dd.fromPartial(e.messageHistoryNotice):void 0,n.groupStatusMessageV2=e.groupStatusMessageV2!==void 0&&e.groupStatusMessageV2!==null?D.fromPartial(e.groupStatusMessageV2):void 0,n.botForwardedMessage=e.botForwardedMessage!==void 0&&e.botForwardedMessage!==null?D.fromPartial(e.botForwardedMessage):void 0,n.statusQuestionAnswerMessage=e.statusQuestionAnswerMessage!==void 0&&e.statusQuestionAnswerMessage!==null?No.fromPartial(e.statusQuestionAnswerMessage):void 0,n.questionReplyMessage=e.questionReplyMessage!==void 0&&e.questionReplyMessage!==null?D.fromPartial(e.questionReplyMessage):void 0,n.questionResponseMessage=e.questionResponseMessage!==void 0&&e.questionResponseMessage!==null?ko.fromPartial(e.questionResponseMessage):void 0,n.statusQuotedMessage=e.statusQuotedMessage!==void 0&&e.statusQuotedMessage!==null?Oo.fromPartial(e.statusQuotedMessage):void 0,n.statusStickerInteractionMessage=e.statusStickerInteractionMessage!==void 0&&e.statusStickerInteractionMessage!==null?Uo.fromPartial(e.statusStickerInteractionMessage):void 0,n.pollCreationMessageV5=e.pollCreationMessageV5!==void 0&&e.pollCreationMessageV5!==null?ee.fromPartial(e.pollCreationMessageV5):void 0,n.newsletterFollowerInviteMessageV2=e.newsletterFollowerInviteMessageV2!==void 0&&e.newsletterFollowerInviteMessageV2!==null?Bd.fromPartial(e.newsletterFollowerInviteMessageV2):void 0,n.pollResultSnapshotMessageV3=e.pollResultSnapshotMessageV3!==void 0&&e.pollResultSnapshotMessageV3!==null?Ke.fromPartial(e.pollResultSnapshotMessageV3):void 0,n.newsletterAdminProfileMessage=e.newsletterAdminProfileMessage!==void 0&&e.newsletterAdminProfileMessage!==null?D.fromPartial(e.newsletterAdminProfileMessage):void 0,n.newsletterAdminProfileMessageV2=e.newsletterAdminProfileMessageV2!==void 0&&e.newsletterAdminProfileMessageV2!==null?D.fromPartial(e.newsletterAdminProfileMessageV2):void 0,n.spoilerMessage=e.spoilerMessage!==void 0&&e.spoilerMessage!==null?D.fromPartial(e.spoilerMessage):void 0,n.pollCreationMessageV6=e.pollCreationMessageV6!==void 0&&e.pollCreationMessageV6!==null?ee.fromPartial(e.pollCreationMessageV6):void 0,n.conditionalRevealMessage=e.conditionalRevealMessage!==void 0&&e.conditionalRevealMessage!==null?Lr.fromPartial(e.conditionalRevealMessage):void 0,n.pollAddOptionMessage=e.pollAddOptionMessage!==void 0&&e.pollAddOptionMessage!==null?po.fromPartial(e.pollAddOptionMessage):void 0,n.eventInviteMessage=e.eventInviteMessage!==void 0&&e.eventInviteMessage!==null?qr.fromPartial(e.eventInviteMessage):void 0,n.groupRootKeyShare=e.groupRootKeyShare!==void 0&&e.groupRootKeyShare!==null?La.fromPartial(e.groupRootKeyShare):void 0,n.paymentReminderMessage=e.paymentReminderMessage!==void 0&&e.paymentReminderMessage!==null?Td.fromPartial(e.paymentReminderMessage):void 0,n.splitPaymentMessage=e.splitPaymentMessage!==void 0&&e.splitPaymentMessage!==null?Co.fromPartial(e.splitPaymentMessage):void 0,n.newsletterAdminProfileStatusMessage=e.newsletterAdminProfileStatusMessage!==void 0&&e.newsletterAdminProfileStatusMessage!==null?D.fromPartial(e.newsletterAdminProfileStatusMessage):void 0,n.rootSecretDistributeMessage=e.rootSecretDistributeMessage!==void 0&&e.rootSecretDistributeMessage!==null?Io.fromPartial(e.rootSecretDistributeMessage):void 0,n}};function NM(){return{}}var fr={encode(e,n=new s){if(e.expectedImageCount!==void 0)n.uint32(16).uint32(e.expectedImageCount);if(e.expectedVideoCount!==void 0)n.uint32(24).uint32(e.expectedVideoCount);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=NM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 2:{if(t!==16)break;a.expectedImageCount=i.uint32();continue}case 3:{if(t!==24)break;a.expectedVideoCount=i.uint32();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return fr.fromPartial(e??{})},fromPartial(e){let n=NM();return n.expectedImageCount=e.expectedImageCount??void 0,n.expectedVideoCount=e.expectedVideoCount??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n}};function OM(){return{}}var lr={encode(e,n=new s){if(e.collectionNames!==void 0&&e.collectionNames.length!==0)for(let i of e.collectionNames)n.uint32(10).string(i);if(e.timestamp!==void 0)n.uint32(16).int64(e.timestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=OM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.collectionNames===void 0)a.collectionNames=[];let o=i.string();if(o!==void 0)a.collectionNames.push(o);continue}case 2:{if(t!==16)break;a.timestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return lr.fromPartial(e??{})},fromPartial(e){let n=OM();return n.collectionNames=e.collectionNames?.map((i)=>i)||void 0,n.timestamp=e.timestamp??void 0,n}};function UM(){return{}}var pr={encode(e,n=new s){if(e.keyId!==void 0)sn.encode(e.keyId,n.uint32(10).fork()).join();if(e.keyData!==void 0)gr.encode(e.keyData,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=UM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.keyId=sn.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.keyData=gr.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return pr.fromPartial(e??{})},fromPartial(e){let n=UM();return n.keyId=e.keyId!==void 0&&e.keyId!==null?sn.fromPartial(e.keyId):void 0,n.keyData=e.keyData!==void 0&&e.keyData!==null?gr.fromPartial(e.keyData):void 0,n}};function TM(){return{}}var gr={encode(e,n=new s){if(e.keyData!==void 0)n.uint32(10).bytes(e.keyData);if(e.fingerprint!==void 0)yr.encode(e.fingerprint,n.uint32(18).fork()).join();if(e.timestamp!==void 0)n.uint32(24).int64(e.timestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=TM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.keyData=i.bytes();continue}case 2:{if(t!==18)break;a.fingerprint=yr.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.timestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return gr.fromPartial(e??{})},fromPartial(e){let n=TM();return n.keyData=e.keyData??void 0,n.fingerprint=e.fingerprint!==void 0&&e.fingerprint!==null?yr.fromPartial(e.fingerprint):void 0,n.timestamp=e.timestamp??void 0,n}};function LM(){return{}}var yr={encode(e,n=new s){if(e.rawId!==void 0)n.uint32(8).uint32(e.rawId);if(e.currentIndex!==void 0)n.uint32(16).uint32(e.currentIndex);if(e.deviceIndexes!==void 0&&e.deviceIndexes.length!==0){n.uint32(26).fork();for(let i of e.deviceIndexes)n.uint32(i);n.join()}return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=LM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.rawId=i.uint32();continue}case 2:{if(t!==16)break;a.currentIndex=i.uint32();continue}case 3:{if(t===24){if(a.deviceIndexes===void 0)a.deviceIndexes=[];a.deviceIndexes.push(i.uint32());continue}if(t===26){if(a.deviceIndexes===void 0)a.deviceIndexes=[];let o=i.uint32()+i.pos;while(i.pos<o)a.deviceIndexes.push(i.uint32());continue}break}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return yr.fromPartial(e??{})},fromPartial(e){let n=LM();return n.rawId=e.rawId??void 0,n.currentIndex=e.currentIndex??void 0,n.deviceIndexes=e.deviceIndexes?.map((i)=>i)||void 0,n}};function wM(){return{}}var sn={encode(e,n=new s){if(e.keyId!==void 0)n.uint32(10).bytes(e.keyId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=wM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.keyId=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return sn.fromPartial(e??{})},fromPartial(e){let n=wM();return n.keyId=e.keyId??void 0,n}};function FM(){return{}}var Mr={encode(e,n=new s){if(e.keyIds!==void 0&&e.keyIds.length!==0)for(let i of e.keyIds)sn.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=FM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.keyIds===void 0)a.keyIds=[];let o=sn.decode(i,i.uint32());if(o!==void 0)a.keyIds.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Mr.fromPartial(e??{})},fromPartial(e){let n=FM();return n.keyIds=e.keyIds?.map((i)=>sn.fromPartial(i))||void 0,n}};function VM(){return{}}var mr={encode(e,n=new s){if(e.keys!==void 0&&e.keys.length!==0)for(let i of e.keys)pr.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=VM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.keys===void 0)a.keys=[];let o=pr.decode(i,i.uint32());if(o!==void 0)a.keys.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return mr.fromPartial(e??{})},fromPartial(e){let n=VM();return n.keys=e.keys?.map((i)=>pr.fromPartial(i))||void 0,n}};function KM(){return{}}var un={encode(e,n=new s){if(e.url!==void 0)n.uint32(10).string(e.url);if(e.mimetype!==void 0)n.uint32(18).string(e.mimetype);if(e.fileSha256!==void 0)n.uint32(26).bytes(e.fileSha256);if(e.fileLength!==void 0)n.uint32(32).uint64(e.fileLength);if(e.seconds!==void 0)n.uint32(40).uint32(e.seconds);if(e.ptt!==void 0)n.uint32(48).bool(e.ptt);if(e.mediaKey!==void 0)n.uint32(58).bytes(e.mediaKey);if(e.fileEncSha256!==void 0)n.uint32(66).bytes(e.fileEncSha256);if(e.directPath!==void 0)n.uint32(74).string(e.directPath);if(e.mediaKeyTimestamp!==void 0)n.uint32(80).int64(e.mediaKeyTimestamp);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();if(e.streamingSidecar!==void 0)n.uint32(146).bytes(e.streamingSidecar);if(e.waveform!==void 0)n.uint32(154).bytes(e.waveform);if(e.backgroundArgb!==void 0)n.uint32(165).fixed32(e.backgroundArgb);if(e.viewOnce!==void 0)n.uint32(168).bool(e.viewOnce);if(e.accessibilityLabel!==void 0)n.uint32(178).string(e.accessibilityLabel);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=KM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.url=i.string();continue}case 2:{if(t!==18)break;a.mimetype=i.string();continue}case 3:{if(t!==26)break;a.fileSha256=i.bytes();continue}case 4:{if(t!==32)break;a.fileLength=i.uint64Number();continue}case 5:{if(t!==40)break;a.seconds=i.uint32();continue}case 6:{if(t!==48)break;a.ptt=i.bool();continue}case 7:{if(t!==58)break;a.mediaKey=i.bytes();continue}case 8:{if(t!==66)break;a.fileEncSha256=i.bytes();continue}case 9:{if(t!==74)break;a.directPath=i.string();continue}case 10:{if(t!==80)break;a.mediaKeyTimestamp=i.int64Number();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}case 18:{if(t!==146)break;a.streamingSidecar=i.bytes();continue}case 19:{if(t!==154)break;a.waveform=i.bytes();continue}case 20:{if(t!==165)break;a.backgroundArgb=i.fixed32();continue}case 21:{if(t!==168)break;a.viewOnce=i.bool();continue}case 22:{if(t!==178)break;a.accessibilityLabel=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return un.fromPartial(e??{})},fromPartial(e){let n=KM();return n.url=e.url??void 0,n.mimetype=e.mimetype??void 0,n.fileSha256=e.fileSha256??void 0,n.fileLength=e.fileLength??void 0,n.seconds=e.seconds??void 0,n.ptt=e.ptt??void 0,n.mediaKey=e.mediaKey??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.directPath=e.directPath??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.streamingSidecar=e.streamingSidecar??void 0,n.waveform=e.waveform??void 0,n.backgroundArgb=e.backgroundArgb??void 0,n.viewOnce=e.viewOnce??void 0,n.accessibilityLabel=e.accessibilityLabel??void 0,n}};function WM(){return{}}var _r={encode(e,n=new s){if(e.sessionId!==void 0)n.uint32(10).string(e.sessionId);if(e.mediaType!==void 0)n.uint32(16).int32(e.mediaType);if(e.masterKey!==void 0)n.uint32(26).bytes(e.masterKey);if(e.caption!==void 0)n.uint32(34).string(e.caption);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=WM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.sessionId=i.string();continue}case 2:{if(t!==16)break;a.mediaType=i.int32();continue}case 3:{if(t!==26)break;a.masterKey=i.bytes();continue}case 4:{if(t!==34)break;a.caption=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return _r.fromPartial(e??{})},fromPartial(e){let n=WM();return n.sessionId=e.sessionId??void 0,n.mediaType=e.mediaType??void 0,n.masterKey=e.masterKey??void 0,n.caption=e.caption??void 0,n}};function HM(){return{}}var hr={encode(e,n=new s){if(e.contentText!==void 0)n.uint32(50).string(e.contentText);if(e.footerText!==void 0)n.uint32(58).string(e.footerText);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(66).fork()).join();if(e.buttons!==void 0&&e.buttons.length!==0)for(let i of e.buttons)kr.encode(i,n.uint32(74).fork()).join();if(e.headerType!==void 0)n.uint32(80).int32(e.headerType);if(e.text!==void 0)n.uint32(10).string(e.text);if(e.documentMessage!==void 0)ne.encode(e.documentMessage,n.uint32(18).fork()).join();if(e.imageMessage!==void 0)J.encode(e.imageMessage,n.uint32(26).fork()).join();if(e.videoMessage!==void 0)Y.encode(e.videoMessage,n.uint32(34).fork()).join();if(e.locationMessage!==void 0)X.encode(e.locationMessage,n.uint32(42).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=HM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 6:{if(t!==50)break;a.contentText=i.string();continue}case 7:{if(t!==58)break;a.footerText=i.string();continue}case 8:{if(t!==66)break;a.contextInfo=b.decode(i,i.uint32());continue}case 9:{if(t!==74)break;if(a.buttons===void 0)a.buttons=[];let o=kr.decode(i,i.uint32());if(o!==void 0)a.buttons.push(o);continue}case 10:{if(t!==80)break;a.headerType=i.int32();continue}case 1:{if(t!==10)break;a.text=i.string();continue}case 2:{if(t!==18)break;a.documentMessage=ne.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.imageMessage=J.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.videoMessage=Y.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.locationMessage=X.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return hr.fromPartial(e??{})},fromPartial(e){let n=HM();return n.contentText=e.contentText??void 0,n.footerText=e.footerText??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.buttons=e.buttons?.map((i)=>kr.fromPartial(i))||void 0,n.headerType=e.headerType??void 0,n.text=e.text??void 0,n.documentMessage=e.documentMessage!==void 0&&e.documentMessage!==null?ne.fromPartial(e.documentMessage):void 0,n.imageMessage=e.imageMessage!==void 0&&e.imageMessage!==null?J.fromPartial(e.imageMessage):void 0,n.videoMessage=e.videoMessage!==void 0&&e.videoMessage!==null?Y.fromPartial(e.videoMessage):void 0,n.locationMessage=e.locationMessage!==void 0&&e.locationMessage!==null?X.fromPartial(e.locationMessage):void 0,n}};function qM(){return{}}var kr={encode(e,n=new s){if(e.buttonId!==void 0)n.uint32(10).string(e.buttonId);if(e.buttonText!==void 0)Ar.encode(e.buttonText,n.uint32(18).fork()).join();if(e.type!==void 0)n.uint32(24).int32(e.type);if(e.nativeFlowInfo!==void 0)Sr.encode(e.nativeFlowInfo,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=qM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.buttonId=i.string();continue}case 2:{if(t!==18)break;a.buttonText=Ar.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.type=i.int32();continue}case 4:{if(t!==34)break;a.nativeFlowInfo=Sr.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return kr.fromPartial(e??{})},fromPartial(e){let n=qM();return n.buttonId=e.buttonId??void 0,n.buttonText=e.buttonText!==void 0&&e.buttonText!==null?Ar.fromPartial(e.buttonText):void 0,n.type=e.type??void 0,n.nativeFlowInfo=e.nativeFlowInfo!==void 0&&e.nativeFlowInfo!==null?Sr.fromPartial(e.nativeFlowInfo):void 0,n}};function GM(){return{}}var Ar={encode(e,n=new s){if(e.displayText!==void 0)n.uint32(10).string(e.displayText);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=GM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.displayText=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ar.fromPartial(e??{})},fromPartial(e){let n=GM();return n.displayText=e.displayText??void 0,n}};function JM(){return{}}var Sr={encode(e,n=new s){if(e.name!==void 0)n.uint32(10).string(e.name);if(e.paramsJson!==void 0)n.uint32(18).string(e.paramsJson);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=JM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.name=i.string();continue}case 2:{if(t!==18)break;a.paramsJson=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Sr.fromPartial(e??{})},fromPartial(e){let n=JM();return n.name=e.name??void 0,n.paramsJson=e.paramsJson??void 0,n}};function QM(){return{}}var Pr={encode(e,n=new s){if(e.selectedButtonId!==void 0)n.uint32(10).string(e.selectedButtonId);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(26).fork()).join();if(e.type!==void 0)n.uint32(32).int32(e.type);if(e.selectedDisplayText!==void 0)n.uint32(18).string(e.selectedDisplayText);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=QM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.selectedButtonId=i.string();continue}case 3:{if(t!==26)break;a.contextInfo=b.decode(i,i.uint32());continue}case 4:{if(t!==32)break;a.type=i.int32();continue}case 2:{if(t!==18)break;a.selectedDisplayText=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Pr.fromPartial(e??{})},fromPartial(e){let n=QM();return n.selectedButtonId=e.selectedButtonId??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.type=e.type??void 0,n.selectedDisplayText=e.selectedDisplayText??void 0,n}};function zM(){return{}}var br={encode(e,n=new s){if(e.callKey!==void 0)n.uint32(10).bytes(e.callKey);if(e.conversionSource!==void 0)n.uint32(18).string(e.conversionSource);if(e.conversionData!==void 0)n.uint32(26).bytes(e.conversionData);if(e.conversionDelaySeconds!==void 0)n.uint32(32).uint32(e.conversionDelaySeconds);if(e.ctwaSignals!==void 0)n.uint32(42).string(e.ctwaSignals);if(e.ctwaPayload!==void 0)n.uint32(50).bytes(e.ctwaPayload);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(58).fork()).join();if(e.nativeFlowCallButtonPayload!==void 0)n.uint32(66).string(e.nativeFlowCallButtonPayload);if(e.deeplinkPayload!==void 0)n.uint32(74).string(e.deeplinkPayload);if(e.messageContextInfo!==void 0)kn.encode(e.messageContextInfo,n.uint32(82).fork()).join();if(e.callEntryPoint!==void 0)n.uint32(88).uint32(e.callEntryPoint);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=zM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.callKey=i.bytes();continue}case 2:{if(t!==18)break;a.conversionSource=i.string();continue}case 3:{if(t!==26)break;a.conversionData=i.bytes();continue}case 4:{if(t!==32)break;a.conversionDelaySeconds=i.uint32();continue}case 5:{if(t!==42)break;a.ctwaSignals=i.string();continue}case 6:{if(t!==50)break;a.ctwaPayload=i.bytes();continue}case 7:{if(t!==58)break;a.contextInfo=b.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.nativeFlowCallButtonPayload=i.string();continue}case 9:{if(t!==74)break;a.deeplinkPayload=i.string();continue}case 10:{if(t!==82)break;a.messageContextInfo=kn.decode(i,i.uint32());continue}case 11:{if(t!==88)break;a.callEntryPoint=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return br.fromPartial(e??{})},fromPartial(e){let n=zM();return n.callKey=e.callKey??void 0,n.conversionSource=e.conversionSource??void 0,n.conversionData=e.conversionData??void 0,n.conversionDelaySeconds=e.conversionDelaySeconds??void 0,n.ctwaSignals=e.ctwaSignals??void 0,n.ctwaPayload=e.ctwaPayload??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.nativeFlowCallButtonPayload=e.nativeFlowCallButtonPayload??void 0,n.deeplinkPayload=e.deeplinkPayload??void 0,n.messageContextInfo=e.messageContextInfo!==void 0&&e.messageContextInfo!==null?kn.fromPartial(e.messageContextInfo):void 0,n.callEntryPoint=e.callEntryPoint??void 0,n}};function YM(){return{}}var Ir={encode(e,n=new s){if(e.isVideo!==void 0)n.uint32(8).bool(e.isVideo);if(e.callOutcome!==void 0)n.uint32(16).int32(e.callOutcome);if(e.durationSecs!==void 0)n.uint32(24).int64(e.durationSecs);if(e.callType!==void 0)n.uint32(32).int32(e.callType);if(e.participants!==void 0&&e.participants.length!==0)for(let i of e.participants)Rr.encode(i,n.uint32(42).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=YM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isVideo=i.bool();continue}case 2:{if(t!==16)break;a.callOutcome=i.int32();continue}case 3:{if(t!==24)break;a.durationSecs=i.int64Number();continue}case 4:{if(t!==32)break;a.callType=i.int32();continue}case 5:{if(t!==42)break;if(a.participants===void 0)a.participants=[];let o=Rr.decode(i,i.uint32());if(o!==void 0)a.participants.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ir.fromPartial(e??{})},fromPartial(e){let n=YM();return n.isVideo=e.isVideo??void 0,n.callOutcome=e.callOutcome??void 0,n.durationSecs=e.durationSecs??void 0,n.callType=e.callType??void 0,n.participants=e.participants?.map((i)=>Rr.fromPartial(i))||void 0,n}};function ZM(){return{}}var Rr={encode(e,n=new s){if(e.jid!==void 0)n.uint32(10).string(e.jid);if(e.callOutcome!==void 0)n.uint32(16).int32(e.callOutcome);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ZM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.jid=i.string();continue}case 2:{if(t!==16)break;a.callOutcome=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Rr.fromPartial(e??{})},fromPartial(e){let n=ZM();return n.jid=e.jid??void 0,n.callOutcome=e.callOutcome??void 0,n}};function XM(){return{}}var Dr={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=XM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Dr.fromPartial(e??{})},fromPartial(e){let n=XM();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n}};function $M(){return{}}var Er={encode(e,n=new s){if(e.displayName!==void 0)n.uint32(10).string(e.displayName);if(e.id!==void 0)n.uint32(18).string(e.id);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=$M();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.displayName=i.string();continue}case 2:{if(t!==18)break;a.id=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Er.fromPartial(e??{})},fromPartial(e){let n=$M();return n.displayName=e.displayName??void 0,n.id=e.id??void 0,n}};function jM(){return{}}var Br={encode(e,n=new s){if(e.directPath!==void 0)n.uint32(10).string(e.directPath);if(e.mediaKey!==void 0)n.uint32(18).bytes(e.mediaKey);if(e.fileEncSha256!==void 0)n.uint32(26).bytes(e.fileEncSha256);if(e.fileSha256!==void 0)n.uint32(34).bytes(e.fileSha256);if(e.dimLevel!==void 0)n.uint32(45).float(e.dimLevel);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=jM();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.directPath=i.string();continue}case 2:{if(t!==18)break;a.mediaKey=i.bytes();continue}case 3:{if(t!==26)break;a.fileEncSha256=i.bytes();continue}case 4:{if(t!==34)break;a.fileSha256=i.bytes();continue}case 5:{if(t!==45)break;a.dimLevel=i.float();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Br.fromPartial(e??{})},fromPartial(e){let n=jM();return n.directPath=e.directPath??void 0,n.mediaKey=e.mediaKey??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.fileSha256=e.fileSha256??void 0,n.dimLevel=e.dimLevel??void 0,n}};function e2(){return{}}var Cr={encode(e,n=new s){if(e.isDoodleEnabled!==void 0)n.uint32(8).bool(e.isDoodleEnabled);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=e2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isDoodleEnabled=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Cr.fromPartial(e??{})},fromPartial(e){let n=e2();return n.isDoodleEnabled=e.isDoodleEnabled??void 0,n}};function n2(){return{}}var vr={encode(e,n=new s){if(e.colorLight!==void 0)n.uint32(10).string(e.colorLight);if(e.colorDark!==void 0)n.uint32(18).string(e.colorDark);if(e.isDoodleEnabled!==void 0)n.uint32(24).bool(e.isDoodleEnabled);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=n2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.colorLight=i.string();continue}case 2:{if(t!==18)break;a.colorDark=i.string();continue}case 3:{if(t!==24)break;a.isDoodleEnabled=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return vr.fromPartial(e??{})},fromPartial(e){let n=n2();return n.colorLight=e.colorLight??void 0,n.colorDark=e.colorDark??void 0,n.isDoodleEnabled=e.isDoodleEnabled??void 0,n}};function i2(){return{}}var xr={encode(e,n=new s){if(e.stockImageId!==void 0)n.uint32(10).string(e.stockImageId);if(e.dimLevel!==void 0)n.uint32(21).float(e.dimLevel);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=i2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.stockImageId=i.string();continue}case 2:{if(t!==21)break;a.dimLevel=i.float();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return xr.fromPartial(e??{})},fromPartial(e){let n=i2();return n.stockImageId=e.stockImageId??void 0,n.dimLevel=e.dimLevel??void 0,n}};function t2(){return{}}var Nr={encode(e,n=new s){if(e.settingTimestampMs!==void 0)n.uint32(8).int64(e.settingTimestampMs);if(e.clearTheme!==void 0)n.uint32(16).bool(e.clearTheme);if(e.colorSchemeId!==void 0)n.uint32(26).string(e.colorSchemeId);if(e.defaultWallpaper!==void 0)Cr.encode(e.defaultWallpaper,n.uint32(82).fork()).join();if(e.solidColor!==void 0)vr.encode(e.solidColor,n.uint32(90).fork()).join();if(e.stockImage!==void 0)xr.encode(e.stockImage,n.uint32(98).fork()).join();if(e.customImage!==void 0)Br.encode(e.customImage,n.uint32(106).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=t2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.settingTimestampMs=i.int64Number();continue}case 2:{if(t!==16)break;a.clearTheme=i.bool();continue}case 3:{if(t!==26)break;a.colorSchemeId=i.string();continue}case 10:{if(t!==82)break;a.defaultWallpaper=Cr.decode(i,i.uint32());continue}case 11:{if(t!==90)break;a.solidColor=vr.decode(i,i.uint32());continue}case 12:{if(t!==98)break;a.stockImage=xr.decode(i,i.uint32());continue}case 13:{if(t!==106)break;a.customImage=Br.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Nr.fromPartial(e??{})},fromPartial(e){let n=t2();return n.settingTimestampMs=e.settingTimestampMs??void 0,n.clearTheme=e.clearTheme??void 0,n.colorSchemeId=e.colorSchemeId??void 0,n.defaultWallpaper=e.defaultWallpaper!==void 0&&e.defaultWallpaper!==null?Cr.fromPartial(e.defaultWallpaper):void 0,n.solidColor=e.solidColor!==void 0&&e.solidColor!==null?vr.fromPartial(e.solidColor):void 0,n.stockImage=e.stockImage!==void 0&&e.stockImage!==null?xr.fromPartial(e.stockImage):void 0,n.customImage=e.customImage!==void 0&&e.customImage!==null?Br.fromPartial(e.customImage):void 0,n}};function a2(){return{}}var Or={encode(e,n=new s){if(e.status!==void 0)n.uint32(8).int32(e.status);if(e.senderNotificationTimestampMs!==void 0)n.uint32(16).int64(e.senderNotificationTimestampMs);if(e.consumerLid!==void 0)n.uint32(26).string(e.consumerLid);if(e.consumerPhoneNumber!==void 0)n.uint32(34).string(e.consumerPhoneNumber);if(e.notificationContent!==void 0)Ur.encode(e.notificationContent,n.uint32(42).fork()).join();if(e.shouldSuppressNotification!==void 0)n.uint32(48).bool(e.shouldSuppressNotification);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=a2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.status=i.int32();continue}case 2:{if(t!==16)break;a.senderNotificationTimestampMs=i.int64Number();continue}case 3:{if(t!==26)break;a.consumerLid=i.string();continue}case 4:{if(t!==34)break;a.consumerPhoneNumber=i.string();continue}case 5:{if(t!==42)break;a.notificationContent=Ur.decode(i,i.uint32());continue}case 6:{if(t!==48)break;a.shouldSuppressNotification=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Or.fromPartial(e??{})},fromPartial(e){let n=a2();return n.status=e.status??void 0,n.senderNotificationTimestampMs=e.senderNotificationTimestampMs??void 0,n.consumerLid=e.consumerLid??void 0,n.consumerPhoneNumber=e.consumerPhoneNumber??void 0,n.notificationContent=e.notificationContent!==void 0&&e.notificationContent!==null?Ur.fromPartial(e.notificationContent):void 0,n.shouldSuppressNotification=e.shouldSuppressNotification??void 0,n}};function r2(){return{}}var Ur={encode(e,n=new s){if(e.handoffNotificationText!==void 0)n.uint32(10).string(e.handoffNotificationText);if(e.extraJson!==void 0)n.uint32(18).string(e.extraJson);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=r2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.handoffNotificationText=i.string();continue}case 2:{if(t!==18)break;a.extraJson=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ur.fromPartial(e??{})},fromPartial(e){let n=r2();return n.handoffNotificationText=e.handoffNotificationText??void 0,n.extraJson=e.extraJson??void 0,n}};function d2(){return{}}var Tr={encode(e,n=new s){if(e.message!==void 0)F.encode(e.message,n.uint32(10).fork()).join();if(e.targetMessageKey!==void 0)_.encode(e.targetMessageKey,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=d2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.message=F.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.targetMessageKey=_.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Tr.fromPartial(e??{})},fromPartial(e){let n=d2();return n.message=e.message!==void 0&&e.message!==null?F.fromPartial(e.message):void 0,n.targetMessageKey=e.targetMessageKey!==void 0&&e.targetMessageKey!==null?_.fromPartial(e.targetMessageKey):void 0,n}};function o2(){return{}}var Lr={encode(e,n=new s){if(e.encPayload!==void 0)n.uint32(10).bytes(e.encPayload);if(e.encIv!==void 0)n.uint32(18).bytes(e.encIv);if(e.conditionalRevealMessageType!==void 0)n.uint32(24).int32(e.conditionalRevealMessageType);if(e.revealKeyId!==void 0)n.uint32(34).string(e.revealKeyId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=o2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.encPayload=i.bytes();continue}case 2:{if(t!==18)break;a.encIv=i.bytes();continue}case 3:{if(t!==24)break;a.conditionalRevealMessageType=i.int32();continue}case 4:{if(t!==34)break;a.revealKeyId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Lr.fromPartial(e??{})},fromPartial(e){let n=o2();return n.encPayload=e.encPayload??void 0,n.encIv=e.encIv??void 0,n.conditionalRevealMessageType=e.conditionalRevealMessageType??void 0,n.revealKeyId=e.revealKeyId??void 0,n}};function s2(){return{}}var cn={encode(e,n=new s){if(e.displayName!==void 0)n.uint32(10).string(e.displayName);if(e.vcard!==void 0)n.uint32(130).string(e.vcard);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();if(e.isSelfContact!==void 0)n.uint32(144).bool(e.isSelfContact);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=s2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.displayName=i.string();continue}case 16:{if(t!==130)break;a.vcard=i.string();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}case 18:{if(t!==144)break;a.isSelfContact=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return cn.fromPartial(e??{})},fromPartial(e){let n=s2();return n.displayName=e.displayName??void 0,n.vcard=e.vcard??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.isSelfContact=e.isSelfContact??void 0,n}};function u2(){return{}}var wr={encode(e,n=new s){if(e.displayName!==void 0)n.uint32(10).string(e.displayName);if(e.contacts!==void 0&&e.contacts.length!==0)for(let i of e.contacts)cn.encode(i,n.uint32(18).fork()).join();if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=u2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.displayName=i.string();continue}case 2:{if(t!==18)break;if(a.contacts===void 0)a.contacts=[];let o=cn.decode(i,i.uint32());if(o!==void 0)a.contacts.push(o);continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return wr.fromPartial(e??{})},fromPartial(e){let n=u2();return n.displayName=e.displayName??void 0,n.contacts=e.contacts?.map((i)=>cn.fromPartial(i))||void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n}};function c2(){return{}}var Fr={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=c2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Fr.fromPartial(e??{})},fromPartial(e){let n=c2();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n}};function f2(){return{}}var Vr={encode(e,n=new s){if(e.destinationJid!==void 0)n.uint32(10).string(e.destinationJid);if(e.message!==void 0)F.encode(e.message,n.uint32(18).fork()).join();if(e.phash!==void 0)n.uint32(26).string(e.phash);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=f2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.destinationJid=i.string();continue}case 2:{if(t!==18)break;a.message=F.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.phash=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Vr.fromPartial(e??{})},fromPartial(e){let n=f2();return n.destinationJid=e.destinationJid??void 0,n.message=e.message!==void 0&&e.message!==null?F.fromPartial(e.message):void 0,n.phash=e.phash??void 0,n}};function l2(){return{}}var ne={encode(e,n=new s){if(e.url!==void 0)n.uint32(10).string(e.url);if(e.mimetype!==void 0)n.uint32(18).string(e.mimetype);if(e.title!==void 0)n.uint32(26).string(e.title);if(e.fileSha256!==void 0)n.uint32(34).bytes(e.fileSha256);if(e.fileLength!==void 0)n.uint32(40).uint64(e.fileLength);if(e.pageCount!==void 0)n.uint32(48).uint32(e.pageCount);if(e.mediaKey!==void 0)n.uint32(58).bytes(e.mediaKey);if(e.fileName!==void 0)n.uint32(66).string(e.fileName);if(e.fileEncSha256!==void 0)n.uint32(74).bytes(e.fileEncSha256);if(e.directPath!==void 0)n.uint32(82).string(e.directPath);if(e.mediaKeyTimestamp!==void 0)n.uint32(88).int64(e.mediaKeyTimestamp);if(e.contactVcard!==void 0)n.uint32(96).bool(e.contactVcard);if(e.thumbnailDirectPath!==void 0)n.uint32(106).string(e.thumbnailDirectPath);if(e.thumbnailSha256!==void 0)n.uint32(114).bytes(e.thumbnailSha256);if(e.thumbnailEncSha256!==void 0)n.uint32(122).bytes(e.thumbnailEncSha256);if(e.jpegThumbnail!==void 0)n.uint32(130).bytes(e.jpegThumbnail);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();if(e.thumbnailHeight!==void 0)n.uint32(144).uint32(e.thumbnailHeight);if(e.thumbnailWidth!==void 0)n.uint32(152).uint32(e.thumbnailWidth);if(e.caption!==void 0)n.uint32(162).string(e.caption);if(e.accessibilityLabel!==void 0)n.uint32(170).string(e.accessibilityLabel);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=l2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.url=i.string();continue}case 2:{if(t!==18)break;a.mimetype=i.string();continue}case 3:{if(t!==26)break;a.title=i.string();continue}case 4:{if(t!==34)break;a.fileSha256=i.bytes();continue}case 5:{if(t!==40)break;a.fileLength=i.uint64Number();continue}case 6:{if(t!==48)break;a.pageCount=i.uint32();continue}case 7:{if(t!==58)break;a.mediaKey=i.bytes();continue}case 8:{if(t!==66)break;a.fileName=i.string();continue}case 9:{if(t!==74)break;a.fileEncSha256=i.bytes();continue}case 10:{if(t!==82)break;a.directPath=i.string();continue}case 11:{if(t!==88)break;a.mediaKeyTimestamp=i.int64Number();continue}case 12:{if(t!==96)break;a.contactVcard=i.bool();continue}case 13:{if(t!==106)break;a.thumbnailDirectPath=i.string();continue}case 14:{if(t!==114)break;a.thumbnailSha256=i.bytes();continue}case 15:{if(t!==122)break;a.thumbnailEncSha256=i.bytes();continue}case 16:{if(t!==130)break;a.jpegThumbnail=i.bytes();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}case 18:{if(t!==144)break;a.thumbnailHeight=i.uint32();continue}case 19:{if(t!==152)break;a.thumbnailWidth=i.uint32();continue}case 20:{if(t!==162)break;a.caption=i.string();continue}case 21:{if(t!==170)break;a.accessibilityLabel=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ne.fromPartial(e??{})},fromPartial(e){let n=l2();return n.url=e.url??void 0,n.mimetype=e.mimetype??void 0,n.title=e.title??void 0,n.fileSha256=e.fileSha256??void 0,n.fileLength=e.fileLength??void 0,n.pageCount=e.pageCount??void 0,n.mediaKey=e.mediaKey??void 0,n.fileName=e.fileName??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.directPath=e.directPath??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.contactVcard=e.contactVcard??void 0,n.thumbnailDirectPath=e.thumbnailDirectPath??void 0,n.thumbnailSha256=e.thumbnailSha256??void 0,n.thumbnailEncSha256=e.thumbnailEncSha256??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.thumbnailHeight=e.thumbnailHeight??void 0,n.thumbnailWidth=e.thumbnailWidth??void 0,n.caption=e.caption??void 0,n.accessibilityLabel=e.accessibilityLabel??void 0,n}};function p2(){return{}}var Kr={encode(e,n=new s){if(e.targetMessageKey!==void 0)_.encode(e.targetMessageKey,n.uint32(10).fork()).join();if(e.encPayload!==void 0)n.uint32(18).bytes(e.encPayload);if(e.encIv!==void 0)n.uint32(26).bytes(e.encIv);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=p2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.targetMessageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.encPayload=i.bytes();continue}case 3:{if(t!==26)break;a.encIv=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Kr.fromPartial(e??{})},fromPartial(e){let n=p2();return n.targetMessageKey=e.targetMessageKey!==void 0&&e.targetMessageKey!==null?_.fromPartial(e.targetMessageKey):void 0,n.encPayload=e.encPayload??void 0,n.encIv=e.encIv??void 0,n}};function g2(){return{}}var Wr={encode(e,n=new s){if(e.eventCreationMessageKey!==void 0)_.encode(e.eventCreationMessageKey,n.uint32(10).fork()).join();if(e.encPayload!==void 0)n.uint32(18).bytes(e.encPayload);if(e.encIv!==void 0)n.uint32(26).bytes(e.encIv);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=g2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.eventCreationMessageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.encPayload=i.bytes();continue}case 3:{if(t!==26)break;a.encIv=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Wr.fromPartial(e??{})},fromPartial(e){let n=g2();return n.eventCreationMessageKey=e.eventCreationMessageKey!==void 0&&e.eventCreationMessageKey!==null?_.fromPartial(e.eventCreationMessageKey):void 0,n.encPayload=e.encPayload??void 0,n.encIv=e.encIv??void 0,n}};function y2(){return{}}var Hr={encode(e,n=new s){if(e.targetMessageKey!==void 0)_.encode(e.targetMessageKey,n.uint32(10).fork()).join();if(e.encPayload!==void 0)n.uint32(18).bytes(e.encPayload);if(e.encIv!==void 0)n.uint32(26).bytes(e.encIv);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=y2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.targetMessageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.encPayload=i.bytes();continue}case 3:{if(t!==26)break;a.encIv=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Hr.fromPartial(e??{})},fromPartial(e){let n=y2();return n.targetMessageKey=e.targetMessageKey!==void 0&&e.targetMessageKey!==null?_.fromPartial(e.targetMessageKey):void 0,n.encPayload=e.encPayload??void 0,n.encIv=e.encIv??void 0,n}};function M2(){return{}}var qr={encode(e,n=new s){if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(10).fork()).join();if(e.eventId!==void 0)n.uint32(18).string(e.eventId);if(e.eventTitle!==void 0)n.uint32(26).string(e.eventTitle);if(e.jpegThumbnail!==void 0)n.uint32(34).bytes(e.jpegThumbnail);if(e.startTime!==void 0)n.uint32(40).int64(e.startTime);if(e.caption!==void 0)n.uint32(50).string(e.caption);if(e.isCanceled!==void 0)n.uint32(56).bool(e.isCanceled);if(e.endTime!==void 0)n.uint32(64).int64(e.endTime);if(e.callLink!==void 0)n.uint32(74).string(e.callLink);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=M2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.contextInfo=b.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.eventId=i.string();continue}case 3:{if(t!==26)break;a.eventTitle=i.string();continue}case 4:{if(t!==34)break;a.jpegThumbnail=i.bytes();continue}case 5:{if(t!==40)break;a.startTime=i.int64Number();continue}case 6:{if(t!==50)break;a.caption=i.string();continue}case 7:{if(t!==56)break;a.isCanceled=i.bool();continue}case 8:{if(t!==64)break;a.endTime=i.int64Number();continue}case 9:{if(t!==74)break;a.callLink=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return qr.fromPartial(e??{})},fromPartial(e){let n=M2();return n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.eventId=e.eventId??void 0,n.eventTitle=e.eventTitle??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.startTime=e.startTime??void 0,n.caption=e.caption??void 0,n.isCanceled=e.isCanceled??void 0,n.endTime=e.endTime??void 0,n.callLink=e.callLink??void 0,n}};function m2(){return{}}var Gr={encode(e,n=new s){if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(10).fork()).join();if(e.isCanceled!==void 0)n.uint32(16).bool(e.isCanceled);if(e.name!==void 0)n.uint32(26).string(e.name);if(e.description!==void 0)n.uint32(34).string(e.description);if(e.location!==void 0)X.encode(e.location,n.uint32(42).fork()).join();if(e.joinLink!==void 0)n.uint32(50).string(e.joinLink);if(e.startTime!==void 0)n.uint32(56).int64(e.startTime);if(e.endTime!==void 0)n.uint32(64).int64(e.endTime);if(e.extraGuestsAllowed!==void 0)n.uint32(72).bool(e.extraGuestsAllowed);if(e.isScheduleCall!==void 0)n.uint32(80).bool(e.isScheduleCall);if(e.hasReminder!==void 0)n.uint32(88).bool(e.hasReminder);if(e.reminderOffsetSec!==void 0)n.uint32(96).int64(e.reminderOffsetSec);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=m2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.contextInfo=b.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.isCanceled=i.bool();continue}case 3:{if(t!==26)break;a.name=i.string();continue}case 4:{if(t!==34)break;a.description=i.string();continue}case 5:{if(t!==42)break;a.location=X.decode(i,i.uint32());continue}case 6:{if(t!==50)break;a.joinLink=i.string();continue}case 7:{if(t!==56)break;a.startTime=i.int64Number();continue}case 8:{if(t!==64)break;a.endTime=i.int64Number();continue}case 9:{if(t!==72)break;a.extraGuestsAllowed=i.bool();continue}case 10:{if(t!==80)break;a.isScheduleCall=i.bool();continue}case 11:{if(t!==88)break;a.hasReminder=i.bool();continue}case 12:{if(t!==96)break;a.reminderOffsetSec=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Gr.fromPartial(e??{})},fromPartial(e){let n=m2();return n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.isCanceled=e.isCanceled??void 0,n.name=e.name??void 0,n.description=e.description??void 0,n.location=e.location!==void 0&&e.location!==null?X.fromPartial(e.location):void 0,n.joinLink=e.joinLink??void 0,n.startTime=e.startTime??void 0,n.endTime=e.endTime??void 0,n.extraGuestsAllowed=e.extraGuestsAllowed??void 0,n.isScheduleCall=e.isScheduleCall??void 0,n.hasReminder=e.hasReminder??void 0,n.reminderOffsetSec=e.reminderOffsetSec??void 0,n}};function _2(){return{}}var Ee={encode(e,n=new s){if(e.response!==void 0)n.uint32(8).int32(e.response);if(e.timestampMs!==void 0)n.uint32(16).int64(e.timestampMs);if(e.extraGuestCount!==void 0)n.uint32(24).int32(e.extraGuestCount);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=_2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.response=i.int32();continue}case 2:{if(t!==16)break;a.timestampMs=i.int64Number();continue}case 3:{if(t!==24)break;a.extraGuestCount=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ee.fromPartial(e??{})},fromPartial(e){let n=_2();return n.response=e.response??void 0,n.timestampMs=e.timestampMs??void 0,n.extraGuestCount=e.extraGuestCount??void 0,n}};function h2(){return{}}var Jr={encode(e,n=new s){if(e.text!==void 0)n.uint32(10).string(e.text);if(e.matchedText!==void 0)n.uint32(18).string(e.matchedText);if(e.description!==void 0)n.uint32(42).string(e.description);if(e.title!==void 0)n.uint32(50).string(e.title);if(e.textArgb!==void 0)n.uint32(61).fixed32(e.textArgb);if(e.backgroundArgb!==void 0)n.uint32(69).fixed32(e.backgroundArgb);if(e.font!==void 0)n.uint32(72).int32(e.font);if(e.previewType!==void 0)n.uint32(80).int32(e.previewType);if(e.jpegThumbnail!==void 0)n.uint32(130).bytes(e.jpegThumbnail);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();if(e.doNotPlayInline!==void 0)n.uint32(144).bool(e.doNotPlayInline);if(e.thumbnailDirectPath!==void 0)n.uint32(154).string(e.thumbnailDirectPath);if(e.thumbnailSha256!==void 0)n.uint32(162).bytes(e.thumbnailSha256);if(e.thumbnailEncSha256!==void 0)n.uint32(170).bytes(e.thumbnailEncSha256);if(e.mediaKey!==void 0)n.uint32(178).bytes(e.mediaKey);if(e.mediaKeyTimestamp!==void 0)n.uint32(184).int64(e.mediaKeyTimestamp);if(e.thumbnailHeight!==void 0)n.uint32(192).uint32(e.thumbnailHeight);if(e.thumbnailWidth!==void 0)n.uint32(200).uint32(e.thumbnailWidth);if(e.inviteLinkGroupType!==void 0)n.uint32(208).int32(e.inviteLinkGroupType);if(e.inviteLinkParentGroupSubjectV2!==void 0)n.uint32(218).string(e.inviteLinkParentGroupSubjectV2);if(e.inviteLinkParentGroupThumbnailV2!==void 0)n.uint32(226).bytes(e.inviteLinkParentGroupThumbnailV2);if(e.inviteLinkGroupTypeV2!==void 0)n.uint32(232).int32(e.inviteLinkGroupTypeV2);if(e.viewOnce!==void 0)n.uint32(240).bool(e.viewOnce);if(e.videoHeight!==void 0)n.uint32(248).uint32(e.videoHeight);if(e.videoWidth!==void 0)n.uint32(256).uint32(e.videoWidth);if(e.faviconMMSMetadata!==void 0)Rd.encode(e.faviconMMSMetadata,n.uint32(266).fork()).join();if(e.linkPreviewMetadata!==void 0)Md.encode(e.linkPreviewMetadata,n.uint32(274).fork()).join();if(e.paymentLinkMetadata!==void 0)yn.encode(e.paymentLinkMetadata,n.uint32(282).fork()).join();if(e.endCardTiles!==void 0&&e.endCardTiles.length!==0)for(let i of e.endCardTiles)Wo.encode(i,n.uint32(290).fork()).join();if(e.videoContentUrl!==void 0)n.uint32(298).string(e.videoContentUrl);if(e.musicMetadata!==void 0)Me.encode(e.musicMetadata,n.uint32(306).fork()).join();if(e.paymentExtendedMetadata!==void 0)vd.encode(e.paymentExtendedMetadata,n.uint32(314).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=h2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.text=i.string();continue}case 2:{if(t!==18)break;a.matchedText=i.string();continue}case 5:{if(t!==42)break;a.description=i.string();continue}case 6:{if(t!==50)break;a.title=i.string();continue}case 7:{if(t!==61)break;a.textArgb=i.fixed32();continue}case 8:{if(t!==69)break;a.backgroundArgb=i.fixed32();continue}case 9:{if(t!==72)break;a.font=i.int32();continue}case 10:{if(t!==80)break;a.previewType=i.int32();continue}case 16:{if(t!==130)break;a.jpegThumbnail=i.bytes();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}case 18:{if(t!==144)break;a.doNotPlayInline=i.bool();continue}case 19:{if(t!==154)break;a.thumbnailDirectPath=i.string();continue}case 20:{if(t!==162)break;a.thumbnailSha256=i.bytes();continue}case 21:{if(t!==170)break;a.thumbnailEncSha256=i.bytes();continue}case 22:{if(t!==178)break;a.mediaKey=i.bytes();continue}case 23:{if(t!==184)break;a.mediaKeyTimestamp=i.int64Number();continue}case 24:{if(t!==192)break;a.thumbnailHeight=i.uint32();continue}case 25:{if(t!==200)break;a.thumbnailWidth=i.uint32();continue}case 26:{if(t!==208)break;a.inviteLinkGroupType=i.int32();continue}case 27:{if(t!==218)break;a.inviteLinkParentGroupSubjectV2=i.string();continue}case 28:{if(t!==226)break;a.inviteLinkParentGroupThumbnailV2=i.bytes();continue}case 29:{if(t!==232)break;a.inviteLinkGroupTypeV2=i.int32();continue}case 30:{if(t!==240)break;a.viewOnce=i.bool();continue}case 31:{if(t!==248)break;a.videoHeight=i.uint32();continue}case 32:{if(t!==256)break;a.videoWidth=i.uint32();continue}case 33:{if(t!==266)break;a.faviconMMSMetadata=Rd.decode(i,i.uint32());continue}case 34:{if(t!==274)break;a.linkPreviewMetadata=Md.decode(i,i.uint32());continue}case 35:{if(t!==282)break;a.paymentLinkMetadata=yn.decode(i,i.uint32());continue}case 36:{if(t!==290)break;if(a.endCardTiles===void 0)a.endCardTiles=[];let o=Wo.decode(i,i.uint32());if(o!==void 0)a.endCardTiles.push(o);continue}case 37:{if(t!==298)break;a.videoContentUrl=i.string();continue}case 38:{if(t!==306)break;a.musicMetadata=Me.decode(i,i.uint32());continue}case 39:{if(t!==314)break;a.paymentExtendedMetadata=vd.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Jr.fromPartial(e??{})},fromPartial(e){let n=h2();return n.text=e.text??void 0,n.matchedText=e.matchedText??void 0,n.description=e.description??void 0,n.title=e.title??void 0,n.textArgb=e.textArgb??void 0,n.backgroundArgb=e.backgroundArgb??void 0,n.font=e.font??void 0,n.previewType=e.previewType??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.doNotPlayInline=e.doNotPlayInline??void 0,n.thumbnailDirectPath=e.thumbnailDirectPath??void 0,n.thumbnailSha256=e.thumbnailSha256??void 0,n.thumbnailEncSha256=e.thumbnailEncSha256??void 0,n.mediaKey=e.mediaKey??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.thumbnailHeight=e.thumbnailHeight??void 0,n.thumbnailWidth=e.thumbnailWidth??void 0,n.inviteLinkGroupType=e.inviteLinkGroupType??void 0,n.inviteLinkParentGroupSubjectV2=e.inviteLinkParentGroupSubjectV2??void 0,n.inviteLinkParentGroupThumbnailV2=e.inviteLinkParentGroupThumbnailV2??void 0,n.inviteLinkGroupTypeV2=e.inviteLinkGroupTypeV2??void 0,n.viewOnce=e.viewOnce??void 0,n.videoHeight=e.videoHeight??void 0,n.videoWidth=e.videoWidth??void 0,n.faviconMMSMetadata=e.faviconMMSMetadata!==void 0&&e.faviconMMSMetadata!==null?Rd.fromPartial(e.faviconMMSMetadata):void 0,n.linkPreviewMetadata=e.linkPreviewMetadata!==void 0&&e.linkPreviewMetadata!==null?Md.fromPartial(e.linkPreviewMetadata):void 0,n.paymentLinkMetadata=e.paymentLinkMetadata!==void 0&&e.paymentLinkMetadata!==null?yn.fromPartial(e.paymentLinkMetadata):void 0,n.endCardTiles=e.endCardTiles?.map((i)=>Wo.fromPartial(i))||void 0,n.videoContentUrl=e.videoContentUrl??void 0,n.musicMetadata=e.musicMetadata!==void 0&&e.musicMetadata!==null?Me.fromPartial(e.musicMetadata):void 0,n.paymentExtendedMetadata=e.paymentExtendedMetadata!==void 0&&e.paymentExtendedMetadata!==null?vd.fromPartial(e.paymentExtendedMetadata):void 0,n}};function k2(){return{}}var Qr={encode(e,n=new s){if(e.historyFromTimestamp!==void 0)n.uint32(8).uint64(e.historyFromTimestamp);if(e.historyDurationDays!==void 0)n.uint32(16).uint32(e.historyDurationDays);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=k2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.historyFromTimestamp=i.uint64Number();continue}case 2:{if(t!==16)break;a.historyDurationDays=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Qr.fromPartial(e??{})},fromPartial(e){let n=k2();return n.historyFromTimestamp=e.historyFromTimestamp??void 0,n.historyDurationDays=e.historyDurationDays??void 0,n}};function A2(){return{}}var he={encode(e,n=new s){if(e.requestId!==void 0)n.uint32(10).string(e.requestId);if(e.businessProduct!==void 0)n.uint32(18).string(e.businessProduct);if(e.opaqueClientData!==void 0)n.uint32(26).bytes(e.opaqueClientData);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=A2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.requestId=i.string();continue}case 2:{if(t!==18)break;a.businessProduct=i.string();continue}case 3:{if(t!==26)break;a.opaqueClientData=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return he.fromPartial(e??{})},fromPartial(e){let n=A2();return n.requestId=e.requestId??void 0,n.businessProduct=e.businessProduct??void 0,n.opaqueClientData=e.opaqueClientData??void 0,n}};function S2(){return{}}var D={encode(e,n=new s){if(e.message!==void 0)F.encode(e.message,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=S2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.message=F.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return D.fromPartial(e??{})},fromPartial(e){let n=S2();return n.message=e.message!==void 0&&e.message!==null?F.fromPartial(e.message):void 0,n}};function P2(){return{}}var zr={encode(e,n=new s){if(e.groupJid!==void 0)n.uint32(10).string(e.groupJid);if(e.inviteCode!==void 0)n.uint32(18).string(e.inviteCode);if(e.inviteExpiration!==void 0)n.uint32(24).int64(e.inviteExpiration);if(e.groupName!==void 0)n.uint32(34).string(e.groupName);if(e.jpegThumbnail!==void 0)n.uint32(42).bytes(e.jpegThumbnail);if(e.caption!==void 0)n.uint32(50).string(e.caption);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(58).fork()).join();if(e.groupType!==void 0)n.uint32(64).int32(e.groupType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=P2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.groupJid=i.string();continue}case 2:{if(t!==18)break;a.inviteCode=i.string();continue}case 3:{if(t!==24)break;a.inviteExpiration=i.int64Number();continue}case 4:{if(t!==34)break;a.groupName=i.string();continue}case 5:{if(t!==42)break;a.jpegThumbnail=i.bytes();continue}case 6:{if(t!==50)break;a.caption=i.string();continue}case 7:{if(t!==58)break;a.contextInfo=b.decode(i,i.uint32());continue}case 8:{if(t!==64)break;a.groupType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return zr.fromPartial(e??{})},fromPartial(e){let n=P2();return n.groupJid=e.groupJid??void 0,n.inviteCode=e.inviteCode??void 0,n.inviteExpiration=e.inviteExpiration??void 0,n.groupName=e.groupName??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.caption=e.caption??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.groupType=e.groupType??void 0,n}};function b2(){return{}}var H={encode(e,n=new s){if(e.namespace!==void 0)n.uint32(10).string(e.namespace);if(e.elementName!==void 0)n.uint32(18).string(e.elementName);if(e.params!==void 0&&e.params.length!==0)for(let i of e.params)n.uint32(26).string(i);if(e.fallbackLg!==void 0)n.uint32(34).string(e.fallbackLg);if(e.fallbackLc!==void 0)n.uint32(42).string(e.fallbackLc);if(e.localizableParams!==void 0&&e.localizableParams.length!==0)for(let i of e.localizableParams)Yr.encode(i,n.uint32(50).fork()).join();if(e.deterministicLg!==void 0)n.uint32(58).string(e.deterministicLg);if(e.deterministicLc!==void 0)n.uint32(66).string(e.deterministicLc);if(e.hydratedHsm!==void 0)_n.encode(e.hydratedHsm,n.uint32(74).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=b2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.namespace=i.string();continue}case 2:{if(t!==18)break;a.elementName=i.string();continue}case 3:{if(t!==26)break;if(a.params===void 0)a.params=[];let o=i.string();if(o!==void 0)a.params.push(o);continue}case 4:{if(t!==34)break;a.fallbackLg=i.string();continue}case 5:{if(t!==42)break;a.fallbackLc=i.string();continue}case 6:{if(t!==50)break;if(a.localizableParams===void 0)a.localizableParams=[];let o=Yr.decode(i,i.uint32());if(o!==void 0)a.localizableParams.push(o);continue}case 7:{if(t!==58)break;a.deterministicLg=i.string();continue}case 8:{if(t!==66)break;a.deterministicLc=i.string();continue}case 9:{if(t!==74)break;a.hydratedHsm=_n.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return H.fromPartial(e??{})},fromPartial(e){let n=b2();return n.namespace=e.namespace??void 0,n.elementName=e.elementName??void 0,n.params=e.params?.map((i)=>i)||void 0,n.fallbackLg=e.fallbackLg??void 0,n.fallbackLc=e.fallbackLc??void 0,n.localizableParams=e.localizableParams?.map((i)=>Yr.fromPartial(i))||void 0,n.deterministicLg=e.deterministicLg??void 0,n.deterministicLc=e.deterministicLc??void 0,n.hydratedHsm=e.hydratedHsm!==void 0&&e.hydratedHsm!==null?_n.fromPartial(e.hydratedHsm):void 0,n}};function I2(){return{}}var Yr={encode(e,n=new s){if(e.default!==void 0)n.uint32(10).string(e.default);if(e.currency!==void 0)Zr.encode(e.currency,n.uint32(18).fork()).join();if(e.dateTime!==void 0)Xr.encode(e.dateTime,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=I2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.default=i.string();continue}case 2:{if(t!==18)break;a.currency=Zr.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.dateTime=Xr.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Yr.fromPartial(e??{})},fromPartial(e){let n=I2();return n.default=e.default??void 0,n.currency=e.currency!==void 0&&e.currency!==null?Zr.fromPartial(e.currency):void 0,n.dateTime=e.dateTime!==void 0&&e.dateTime!==null?Xr.fromPartial(e.dateTime):void 0,n}};function R2(){return{}}var Zr={encode(e,n=new s){if(e.currencyCode!==void 0)n.uint32(10).string(e.currencyCode);if(e.amount1000!==void 0)n.uint32(16).int64(e.amount1000);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=R2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.currencyCode=i.string();continue}case 2:{if(t!==16)break;a.amount1000=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Zr.fromPartial(e??{})},fromPartial(e){let n=R2();return n.currencyCode=e.currencyCode??void 0,n.amount1000=e.amount1000??void 0,n}};function D2(){return{}}var Xr={encode(e,n=new s){if(e.component!==void 0)$r.encode(e.component,n.uint32(10).fork()).join();if(e.unixEpoch!==void 0)jr.encode(e.unixEpoch,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=D2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.component=$r.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.unixEpoch=jr.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Xr.fromPartial(e??{})},fromPartial(e){let n=D2();return n.component=e.component!==void 0&&e.component!==null?$r.fromPartial(e.component):void 0,n.unixEpoch=e.unixEpoch!==void 0&&e.unixEpoch!==null?jr.fromPartial(e.unixEpoch):void 0,n}};function E2(){return{}}var $r={encode(e,n=new s){if(e.dayOfWeek!==void 0)n.uint32(8).int32(e.dayOfWeek);if(e.year!==void 0)n.uint32(16).uint32(e.year);if(e.month!==void 0)n.uint32(24).uint32(e.month);if(e.dayOfMonth!==void 0)n.uint32(32).uint32(e.dayOfMonth);if(e.hour!==void 0)n.uint32(40).uint32(e.hour);if(e.minute!==void 0)n.uint32(48).uint32(e.minute);if(e.calendar!==void 0)n.uint32(56).int32(e.calendar);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=E2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.dayOfWeek=i.int32();continue}case 2:{if(t!==16)break;a.year=i.uint32();continue}case 3:{if(t!==24)break;a.month=i.uint32();continue}case 4:{if(t!==32)break;a.dayOfMonth=i.uint32();continue}case 5:{if(t!==40)break;a.hour=i.uint32();continue}case 6:{if(t!==48)break;a.minute=i.uint32();continue}case 7:{if(t!==56)break;a.calendar=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return $r.fromPartial(e??{})},fromPartial(e){let n=E2();return n.dayOfWeek=e.dayOfWeek??void 0,n.year=e.year??void 0,n.month=e.month??void 0,n.dayOfMonth=e.dayOfMonth??void 0,n.hour=e.hour??void 0,n.minute=e.minute??void 0,n.calendar=e.calendar??void 0,n}};function B2(){return{}}var jr={encode(e,n=new s){if(e.timestamp!==void 0)n.uint32(8).int64(e.timestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=B2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.timestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return jr.fromPartial(e??{})},fromPartial(e){let n=B2();return n.timestamp=e.timestamp??void 0,n}};function C2(){return{}}var ed={encode(e,n=new s){if(e.completeAccessGranted!==void 0)n.uint32(8).bool(e.completeAccessGranted);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=C2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.completeAccessGranted=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ed.fromPartial(e??{})},fromPartial(e){let n=C2();return n.completeAccessGranted=e.completeAccessGranted??void 0,n}};function v2(){return{}}var nd={encode(e,n=new s){if(e.fileSha256!==void 0)n.uint32(10).bytes(e.fileSha256);if(e.fileLength!==void 0)n.uint32(16).uint64(e.fileLength);if(e.mediaKey!==void 0)n.uint32(26).bytes(e.mediaKey);if(e.fileEncSha256!==void 0)n.uint32(34).bytes(e.fileEncSha256);if(e.directPath!==void 0)n.uint32(42).string(e.directPath);if(e.syncType!==void 0)n.uint32(48).int32(e.syncType);if(e.chunkOrder!==void 0)n.uint32(56).uint32(e.chunkOrder);if(e.originalMessageId!==void 0)n.uint32(66).string(e.originalMessageId);if(e.progress!==void 0)n.uint32(72).uint32(e.progress);if(e.oldestMsgInChunkTimestampSec!==void 0)n.uint32(80).int64(e.oldestMsgInChunkTimestampSec);if(e.initialHistBootstrapInlinePayload!==void 0)n.uint32(90).bytes(e.initialHistBootstrapInlinePayload);if(e.peerDataRequestSessionId!==void 0)n.uint32(98).string(e.peerDataRequestSessionId);if(e.fullHistorySyncOnDemandRequestMetadata!==void 0)he.encode(e.fullHistorySyncOnDemandRequestMetadata,n.uint32(106).fork()).join();if(e.encHandle!==void 0)n.uint32(114).string(e.encHandle);if(e.messageAccessStatus!==void 0)ed.encode(e.messageAccessStatus,n.uint32(122).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=v2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.fileSha256=i.bytes();continue}case 2:{if(t!==16)break;a.fileLength=i.uint64Number();continue}case 3:{if(t!==26)break;a.mediaKey=i.bytes();continue}case 4:{if(t!==34)break;a.fileEncSha256=i.bytes();continue}case 5:{if(t!==42)break;a.directPath=i.string();continue}case 6:{if(t!==48)break;a.syncType=i.int32();continue}case 7:{if(t!==56)break;a.chunkOrder=i.uint32();continue}case 8:{if(t!==66)break;a.originalMessageId=i.string();continue}case 9:{if(t!==72)break;a.progress=i.uint32();continue}case 10:{if(t!==80)break;a.oldestMsgInChunkTimestampSec=i.int64Number();continue}case 11:{if(t!==90)break;a.initialHistBootstrapInlinePayload=i.bytes();continue}case 12:{if(t!==98)break;a.peerDataRequestSessionId=i.string();continue}case 13:{if(t!==106)break;a.fullHistorySyncOnDemandRequestMetadata=he.decode(i,i.uint32());continue}case 14:{if(t!==114)break;a.encHandle=i.string();continue}case 15:{if(t!==122)break;a.messageAccessStatus=ed.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return nd.fromPartial(e??{})},fromPartial(e){let n=v2();return n.fileSha256=e.fileSha256??void 0,n.fileLength=e.fileLength??void 0,n.mediaKey=e.mediaKey??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.directPath=e.directPath??void 0,n.syncType=e.syncType??void 0,n.chunkOrder=e.chunkOrder??void 0,n.originalMessageId=e.originalMessageId??void 0,n.progress=e.progress??void 0,n.oldestMsgInChunkTimestampSec=e.oldestMsgInChunkTimestampSec??void 0,n.initialHistBootstrapInlinePayload=e.initialHistBootstrapInlinePayload??void 0,n.peerDataRequestSessionId=e.peerDataRequestSessionId??void 0,n.fullHistorySyncOnDemandRequestMetadata=e.fullHistorySyncOnDemandRequestMetadata!==void 0&&e.fullHistorySyncOnDemandRequestMetadata!==null?he.fromPartial(e.fullHistorySyncOnDemandRequestMetadata):void 0,n.encHandle=e.encHandle??void 0,n.messageAccessStatus=e.messageAccessStatus!==void 0&&e.messageAccessStatus!==null?ed.fromPartial(e.messageAccessStatus):void 0,n}};function x2(){return{}}var J={encode(e,n=new s){if(e.url!==void 0)n.uint32(10).string(e.url);if(e.mimetype!==void 0)n.uint32(18).string(e.mimetype);if(e.caption!==void 0)n.uint32(26).string(e.caption);if(e.fileSha256!==void 0)n.uint32(34).bytes(e.fileSha256);if(e.fileLength!==void 0)n.uint32(40).uint64(e.fileLength);if(e.height!==void 0)n.uint32(48).uint32(e.height);if(e.width!==void 0)n.uint32(56).uint32(e.width);if(e.mediaKey!==void 0)n.uint32(66).bytes(e.mediaKey);if(e.fileEncSha256!==void 0)n.uint32(74).bytes(e.fileEncSha256);if(e.interactiveAnnotations!==void 0&&e.interactiveAnnotations.length!==0)for(let i of e.interactiveAnnotations)te.encode(i,n.uint32(82).fork()).join();if(e.directPath!==void 0)n.uint32(90).string(e.directPath);if(e.mediaKeyTimestamp!==void 0)n.uint32(96).int64(e.mediaKeyTimestamp);if(e.jpegThumbnail!==void 0)n.uint32(130).bytes(e.jpegThumbnail);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();if(e.firstScanSidecar!==void 0)n.uint32(146).bytes(e.firstScanSidecar);if(e.firstScanLength!==void 0)n.uint32(152).uint32(e.firstScanLength);if(e.experimentGroupId!==void 0)n.uint32(160).uint32(e.experimentGroupId);if(e.scansSidecar!==void 0)n.uint32(170).bytes(e.scansSidecar);if(e.scanLengths!==void 0&&e.scanLengths.length!==0)for(let i of e.scanLengths)n.uint32(176).uint32(i);if(e.midQualityFileSha256!==void 0)n.uint32(186).bytes(e.midQualityFileSha256);if(e.midQualityFileEncSha256!==void 0)n.uint32(194).bytes(e.midQualityFileEncSha256);if(e.viewOnce!==void 0)n.uint32(200).bool(e.viewOnce);if(e.thumbnailDirectPath!==void 0)n.uint32(210).string(e.thumbnailDirectPath);if(e.thumbnailSha256!==void 0)n.uint32(218).bytes(e.thumbnailSha256);if(e.thumbnailEncSha256!==void 0)n.uint32(226).bytes(e.thumbnailEncSha256);if(e.staticUrl!==void 0)n.uint32(234).string(e.staticUrl);if(e.annotations!==void 0&&e.annotations.length!==0)for(let i of e.annotations)te.encode(i,n.uint32(242).fork()).join();if(e.imageSourceType!==void 0)n.uint32(248).int32(e.imageSourceType);if(e.accessibilityLabel!==void 0)n.uint32(258).string(e.accessibilityLabel);if(e.qrUrl!==void 0)n.uint32(274).string(e.qrUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=x2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.url=i.string();continue}case 2:{if(t!==18)break;a.mimetype=i.string();continue}case 3:{if(t!==26)break;a.caption=i.string();continue}case 4:{if(t!==34)break;a.fileSha256=i.bytes();continue}case 5:{if(t!==40)break;a.fileLength=i.uint64Number();continue}case 6:{if(t!==48)break;a.height=i.uint32();continue}case 7:{if(t!==56)break;a.width=i.uint32();continue}case 8:{if(t!==66)break;a.mediaKey=i.bytes();continue}case 9:{if(t!==74)break;a.fileEncSha256=i.bytes();continue}case 10:{if(t!==82)break;if(a.interactiveAnnotations===void 0)a.interactiveAnnotations=[];let o=te.decode(i,i.uint32());if(o!==void 0)a.interactiveAnnotations.push(o);continue}case 11:{if(t!==90)break;a.directPath=i.string();continue}case 12:{if(t!==96)break;a.mediaKeyTimestamp=i.int64Number();continue}case 16:{if(t!==130)break;a.jpegThumbnail=i.bytes();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}case 18:{if(t!==146)break;a.firstScanSidecar=i.bytes();continue}case 19:{if(t!==152)break;a.firstScanLength=i.uint32();continue}case 20:{if(t!==160)break;a.experimentGroupId=i.uint32();continue}case 21:{if(t!==170)break;a.scansSidecar=i.bytes();continue}case 22:{if(t===176){if(a.scanLengths===void 0)a.scanLengths=[];a.scanLengths.push(i.uint32());continue}if(t===178){if(a.scanLengths===void 0)a.scanLengths=[];let o=i.uint32()+i.pos;while(i.pos<o)a.scanLengths.push(i.uint32());continue}break}case 23:{if(t!==186)break;a.midQualityFileSha256=i.bytes();continue}case 24:{if(t!==194)break;a.midQualityFileEncSha256=i.bytes();continue}case 25:{if(t!==200)break;a.viewOnce=i.bool();continue}case 26:{if(t!==210)break;a.thumbnailDirectPath=i.string();continue}case 27:{if(t!==218)break;a.thumbnailSha256=i.bytes();continue}case 28:{if(t!==226)break;a.thumbnailEncSha256=i.bytes();continue}case 29:{if(t!==234)break;a.staticUrl=i.string();continue}case 30:{if(t!==242)break;if(a.annotations===void 0)a.annotations=[];let o=te.decode(i,i.uint32());if(o!==void 0)a.annotations.push(o);continue}case 31:{if(t!==248)break;a.imageSourceType=i.int32();continue}case 32:{if(t!==258)break;a.accessibilityLabel=i.string();continue}case 34:{if(t!==274)break;a.qrUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return J.fromPartial(e??{})},fromPartial(e){let n=x2();return n.url=e.url??void 0,n.mimetype=e.mimetype??void 0,n.caption=e.caption??void 0,n.fileSha256=e.fileSha256??void 0,n.fileLength=e.fileLength??void 0,n.height=e.height??void 0,n.width=e.width??void 0,n.mediaKey=e.mediaKey??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.interactiveAnnotations=e.interactiveAnnotations?.map((i)=>te.fromPartial(i))||void 0,n.directPath=e.directPath??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.firstScanSidecar=e.firstScanSidecar??void 0,n.firstScanLength=e.firstScanLength??void 0,n.experimentGroupId=e.experimentGroupId??void 0,n.scansSidecar=e.scansSidecar??void 0,n.scanLengths=e.scanLengths?.map((i)=>i)||void 0,n.midQualityFileSha256=e.midQualityFileSha256??void 0,n.midQualityFileEncSha256=e.midQualityFileEncSha256??void 0,n.viewOnce=e.viewOnce??void 0,n.thumbnailDirectPath=e.thumbnailDirectPath??void 0,n.thumbnailSha256=e.thumbnailSha256??void 0,n.thumbnailEncSha256=e.thumbnailEncSha256??void 0,n.staticUrl=e.staticUrl??void 0,n.annotations=e.annotations?.map((i)=>te.fromPartial(i))||void 0,n.imageSourceType=e.imageSourceType??void 0,n.accessibilityLabel=e.accessibilityLabel??void 0,n.qrUrl=e.qrUrl??void 0,n}};function N2(){return{}}var id={encode(e,n=new s){if(e.securityNotificationEnabled!==void 0)n.uint32(8).bool(e.securityNotificationEnabled);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=N2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.securityNotificationEnabled=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return id.fromPartial(e??{})},fromPartial(e){let n=N2();return n.securityNotificationEnabled=e.securityNotificationEnabled??void 0,n}};function O2(){return{}}var ke={encode(e,n=new s){if(e.header!==void 0)od.encode(e.header,n.uint32(10).fork()).join();if(e.body!==void 0)td.encode(e.body,n.uint32(18).fork()).join();if(e.footer!==void 0)dd.encode(e.footer,n.uint32(26).fork()).join();if(e.bloksWidget!==void 0)fn.encode(e.bloksWidget,n.uint32(66).fork()).join();if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(122).fork()).join();if(e.urlTrackingMap!==void 0)bn.encode(e.urlTrackingMap,n.uint32(130).fork()).join();if(e.shopStorefrontMessage!==void 0)cd.encode(e.shopStorefrontMessage,n.uint32(34).fork()).join();if(e.collectionMessage!==void 0)rd.encode(e.collectionMessage,n.uint32(42).fork()).join();if(e.nativeFlowMessage!==void 0)sd.encode(e.nativeFlowMessage,n.uint32(50).fork()).join();if(e.carouselMessage!==void 0)ad.encode(e.carouselMessage,n.uint32(58).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=O2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.header=od.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.body=td.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.footer=dd.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.bloksWidget=fn.decode(i,i.uint32());continue}case 15:{if(t!==122)break;a.contextInfo=b.decode(i,i.uint32());continue}case 16:{if(t!==130)break;a.urlTrackingMap=bn.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.shopStorefrontMessage=cd.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.collectionMessage=rd.decode(i,i.uint32());continue}case 6:{if(t!==50)break;a.nativeFlowMessage=sd.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.carouselMessage=ad.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ke.fromPartial(e??{})},fromPartial(e){let n=O2();return n.header=e.header!==void 0&&e.header!==null?od.fromPartial(e.header):void 0,n.body=e.body!==void 0&&e.body!==null?td.fromPartial(e.body):void 0,n.footer=e.footer!==void 0&&e.footer!==null?dd.fromPartial(e.footer):void 0,n.bloksWidget=e.bloksWidget!==void 0&&e.bloksWidget!==null?fn.fromPartial(e.bloksWidget):void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.urlTrackingMap=e.urlTrackingMap!==void 0&&e.urlTrackingMap!==null?bn.fromPartial(e.urlTrackingMap):void 0,n.shopStorefrontMessage=e.shopStorefrontMessage!==void 0&&e.shopStorefrontMessage!==null?cd.fromPartial(e.shopStorefrontMessage):void 0,n.collectionMessage=e.collectionMessage!==void 0&&e.collectionMessage!==null?rd.fromPartial(e.collectionMessage):void 0,n.nativeFlowMessage=e.nativeFlowMessage!==void 0&&e.nativeFlowMessage!==null?sd.fromPartial(e.nativeFlowMessage):void 0,n.carouselMessage=e.carouselMessage!==void 0&&e.carouselMessage!==null?ad.fromPartial(e.carouselMessage):void 0,n}};function U2(){return{}}var fn={encode(e,n=new s){if(e.uuid!==void 0)n.uint32(10).string(e.uuid);if(e.data!==void 0)n.uint32(18).string(e.data);if(e.type!==void 0)n.uint32(26).string(e.type);if(e.fallback!==void 0)n.uint32(34).string(e.fallback);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=U2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.uuid=i.string();continue}case 2:{if(t!==18)break;a.data=i.string();continue}case 3:{if(t!==26)break;a.type=i.string();continue}case 4:{if(t!==34)break;a.fallback=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return fn.fromPartial(e??{})},fromPartial(e){let n=U2();return n.uuid=e.uuid??void 0,n.data=e.data??void 0,n.type=e.type??void 0,n.fallback=e.fallback??void 0,n}};function T2(){return{}}var td={encode(e,n=new s){if(e.text!==void 0)n.uint32(10).string(e.text);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=T2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.text=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return td.fromPartial(e??{})},fromPartial(e){let n=T2();return n.text=e.text??void 0,n}};function L2(){return{}}var ad={encode(e,n=new s){if(e.cards!==void 0&&e.cards.length!==0)for(let i of e.cards)ke.encode(i,n.uint32(10).fork()).join();if(e.messageVersion!==void 0)n.uint32(16).int32(e.messageVersion);if(e.carouselCardType!==void 0)n.uint32(24).int32(e.carouselCardType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=L2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.cards===void 0)a.cards=[];let o=ke.decode(i,i.uint32());if(o!==void 0)a.cards.push(o);continue}case 2:{if(t!==16)break;a.messageVersion=i.int32();continue}case 3:{if(t!==24)break;a.carouselCardType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ad.fromPartial(e??{})},fromPartial(e){let n=L2();return n.cards=e.cards?.map((i)=>ke.fromPartial(i))||void 0,n.messageVersion=e.messageVersion??void 0,n.carouselCardType=e.carouselCardType??void 0,n}};function w2(){return{}}var rd={encode(e,n=new s){if(e.bizJid!==void 0)n.uint32(10).string(e.bizJid);if(e.id!==void 0)n.uint32(18).string(e.id);if(e.messageVersion!==void 0)n.uint32(24).int32(e.messageVersion);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=w2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.bizJid=i.string();continue}case 2:{if(t!==18)break;a.id=i.string();continue}case 3:{if(t!==24)break;a.messageVersion=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return rd.fromPartial(e??{})},fromPartial(e){let n=w2();return n.bizJid=e.bizJid??void 0,n.id=e.id??void 0,n.messageVersion=e.messageVersion??void 0,n}};function F2(){return{}}var dd={encode(e,n=new s){if(e.text!==void 0)n.uint32(10).string(e.text);if(e.hasMediaAttachment!==void 0)n.uint32(24).bool(e.hasMediaAttachment);if(e.audioMessage!==void 0)un.encode(e.audioMessage,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=F2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.text=i.string();continue}case 3:{if(t!==24)break;a.hasMediaAttachment=i.bool();continue}case 2:{if(t!==18)break;a.audioMessage=un.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return dd.fromPartial(e??{})},fromPartial(e){let n=F2();return n.text=e.text??void 0,n.hasMediaAttachment=e.hasMediaAttachment??void 0,n.audioMessage=e.audioMessage!==void 0&&e.audioMessage!==null?un.fromPartial(e.audioMessage):void 0,n}};function V2(){return{}}var od={encode(e,n=new s){if(e.title!==void 0)n.uint32(10).string(e.title);if(e.subtitle!==void 0)n.uint32(18).string(e.subtitle);if(e.hasMediaAttachment!==void 0)n.uint32(40).bool(e.hasMediaAttachment);if(e.bloksWidget!==void 0)fn.encode(e.bloksWidget,n.uint32(82).fork()).join();if(e.documentMessage!==void 0)ne.encode(e.documentMessage,n.uint32(26).fork()).join();if(e.imageMessage!==void 0)J.encode(e.imageMessage,n.uint32(34).fork()).join();if(e.jpegThumbnail!==void 0)n.uint32(50).bytes(e.jpegThumbnail);if(e.videoMessage!==void 0)Y.encode(e.videoMessage,n.uint32(58).fork()).join();if(e.locationMessage!==void 0)X.encode(e.locationMessage,n.uint32(66).fork()).join();if(e.productMessage!==void 0)Mn.encode(e.productMessage,n.uint32(74).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=V2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.title=i.string();continue}case 2:{if(t!==18)break;a.subtitle=i.string();continue}case 5:{if(t!==40)break;a.hasMediaAttachment=i.bool();continue}case 10:{if(t!==82)break;a.bloksWidget=fn.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.documentMessage=ne.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.imageMessage=J.decode(i,i.uint32());continue}case 6:{if(t!==50)break;a.jpegThumbnail=i.bytes();continue}case 7:{if(t!==58)break;a.videoMessage=Y.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.locationMessage=X.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.productMessage=Mn.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return od.fromPartial(e??{})},fromPartial(e){let n=V2();return n.title=e.title??void 0,n.subtitle=e.subtitle??void 0,n.hasMediaAttachment=e.hasMediaAttachment??void 0,n.bloksWidget=e.bloksWidget!==void 0&&e.bloksWidget!==null?fn.fromPartial(e.bloksWidget):void 0,n.documentMessage=e.documentMessage!==void 0&&e.documentMessage!==null?ne.fromPartial(e.documentMessage):void 0,n.imageMessage=e.imageMessage!==void 0&&e.imageMessage!==null?J.fromPartial(e.imageMessage):void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.videoMessage=e.videoMessage!==void 0&&e.videoMessage!==null?Y.fromPartial(e.videoMessage):void 0,n.locationMessage=e.locationMessage!==void 0&&e.locationMessage!==null?X.fromPartial(e.locationMessage):void 0,n.productMessage=e.productMessage!==void 0&&e.productMessage!==null?Mn.fromPartial(e.productMessage):void 0,n}};function K2(){return{}}var sd={encode(e,n=new s){if(e.buttons!==void 0&&e.buttons.length!==0)for(let i of e.buttons)ud.encode(i,n.uint32(10).fork()).join();if(e.messageParamsJson!==void 0)n.uint32(18).string(e.messageParamsJson);if(e.messageVersion!==void 0)n.uint32(24).int32(e.messageVersion);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=K2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.buttons===void 0)a.buttons=[];let o=ud.decode(i,i.uint32());if(o!==void 0)a.buttons.push(o);continue}case 2:{if(t!==18)break;a.messageParamsJson=i.string();continue}case 3:{if(t!==24)break;a.messageVersion=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return sd.fromPartial(e??{})},fromPartial(e){let n=K2();return n.buttons=e.buttons?.map((i)=>ud.fromPartial(i))||void 0,n.messageParamsJson=e.messageParamsJson??void 0,n.messageVersion=e.messageVersion??void 0,n}};function W2(){return{}}var ud={encode(e,n=new s){if(e.name!==void 0)n.uint32(10).string(e.name);if(e.buttonParamsJson!==void 0)n.uint32(18).string(e.buttonParamsJson);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=W2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.name=i.string();continue}case 2:{if(t!==18)break;a.buttonParamsJson=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ud.fromPartial(e??{})},fromPartial(e){let n=W2();return n.name=e.name??void 0,n.buttonParamsJson=e.buttonParamsJson??void 0,n}};function H2(){return{}}var cd={encode(e,n=new s){if(e.id!==void 0)n.uint32(10).string(e.id);if(e.surface!==void 0)n.uint32(16).int32(e.surface);if(e.messageVersion!==void 0)n.uint32(24).int32(e.messageVersion);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=H2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.id=i.string();continue}case 2:{if(t!==16)break;a.surface=i.int32();continue}case 3:{if(t!==24)break;a.messageVersion=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return cd.fromPartial(e??{})},fromPartial(e){let n=H2();return n.id=e.id??void 0,n.surface=e.surface??void 0,n.messageVersion=e.messageVersion??void 0,n}};function q2(){return{}}var fd={encode(e,n=new s){if(e.body!==void 0)ld.encode(e.body,n.uint32(10).fork()).join();if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(122).fork()).join();if(e.nativeFlowResponseMessage!==void 0)pd.encode(e.nativeFlowResponseMessage,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=q2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.body=ld.decode(i,i.uint32());continue}case 15:{if(t!==122)break;a.contextInfo=b.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.nativeFlowResponseMessage=pd.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return fd.fromPartial(e??{})},fromPartial(e){let n=q2();return n.body=e.body!==void 0&&e.body!==null?ld.fromPartial(e.body):void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.nativeFlowResponseMessage=e.nativeFlowResponseMessage!==void 0&&e.nativeFlowResponseMessage!==null?pd.fromPartial(e.nativeFlowResponseMessage):void 0,n}};function G2(){return{}}var ld={encode(e,n=new s){if(e.text!==void 0)n.uint32(10).string(e.text);if(e.format!==void 0)n.uint32(16).int32(e.format);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=G2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.text=i.string();continue}case 2:{if(t!==16)break;a.format=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ld.fromPartial(e??{})},fromPartial(e){let n=G2();return n.text=e.text??void 0,n.format=e.format??void 0,n}};function J2(){return{}}var pd={encode(e,n=new s){if(e.name!==void 0)n.uint32(10).string(e.name);if(e.paramsJson!==void 0)n.uint32(18).string(e.paramsJson);if(e.version!==void 0)n.uint32(24).int32(e.version);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=J2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.name=i.string();continue}case 2:{if(t!==18)break;a.paramsJson=i.string();continue}case 3:{if(t!==24)break;a.version=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return pd.fromPartial(e??{})},fromPartial(e){let n=J2();return n.name=e.name??void 0,n.paramsJson=e.paramsJson??void 0,n.version=e.version??void 0,n}};function Q2(){return{}}var gd={encode(e,n=new s){if(e.note!==void 0)n.uint32(10).string(e.note);if(e.token!==void 0)n.uint32(18).string(e.token);if(e.attachmentType!==void 0)n.uint32(24).int32(e.attachmentType);if(e.attachmentMimetype!==void 0)n.uint32(34).string(e.attachmentMimetype);if(e.attachmentMediaKey!==void 0)n.uint32(42).bytes(e.attachmentMediaKey);if(e.attachmentMediaKeyTimestamp!==void 0)n.uint32(48).int64(e.attachmentMediaKeyTimestamp);if(e.attachmentFileSha256!==void 0)n.uint32(58).bytes(e.attachmentFileSha256);if(e.attachmentFileEncSha256!==void 0)n.uint32(66).bytes(e.attachmentFileEncSha256);if(e.attachmentDirectPath!==void 0)n.uint32(74).string(e.attachmentDirectPath);if(e.attachmentJpegThumbnail!==void 0)n.uint32(82).bytes(e.attachmentJpegThumbnail);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Q2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.note=i.string();continue}case 2:{if(t!==18)break;a.token=i.string();continue}case 3:{if(t!==24)break;a.attachmentType=i.int32();continue}case 4:{if(t!==34)break;a.attachmentMimetype=i.string();continue}case 5:{if(t!==42)break;a.attachmentMediaKey=i.bytes();continue}case 6:{if(t!==48)break;a.attachmentMediaKeyTimestamp=i.int64Number();continue}case 7:{if(t!==58)break;a.attachmentFileSha256=i.bytes();continue}case 8:{if(t!==66)break;a.attachmentFileEncSha256=i.bytes();continue}case 9:{if(t!==74)break;a.attachmentDirectPath=i.string();continue}case 10:{if(t!==82)break;a.attachmentJpegThumbnail=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return gd.fromPartial(e??{})},fromPartial(e){let n=Q2();return n.note=e.note??void 0,n.token=e.token??void 0,n.attachmentType=e.attachmentType??void 0,n.attachmentMimetype=e.attachmentMimetype??void 0,n.attachmentMediaKey=e.attachmentMediaKey??void 0,n.attachmentMediaKeyTimestamp=e.attachmentMediaKeyTimestamp??void 0,n.attachmentFileSha256=e.attachmentFileSha256??void 0,n.attachmentFileEncSha256=e.attachmentFileEncSha256??void 0,n.attachmentDirectPath=e.attachmentDirectPath??void 0,n.attachmentJpegThumbnail=e.attachmentJpegThumbnail??void 0,n}};function z2(){return{}}var yd={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.keepType!==void 0)n.uint32(16).int32(e.keepType);if(e.timestampMs!==void 0)n.uint32(24).int64(e.timestampMs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=z2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.keepType=i.int32();continue}case 3:{if(t!==24)break;a.timestampMs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return yd.fromPartial(e??{})},fromPartial(e){let n=z2();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.keepType=e.keepType??void 0,n.timestampMs=e.timestampMs??void 0,n}};function Y2(){return{}}var Md={encode(e,n=new s){if(e.paymentLinkMetadata!==void 0)yn.encode(e.paymentLinkMetadata,n.uint32(10).fork()).join();if(e.urlMetadata!==void 0)Ko.encode(e.urlMetadata,n.uint32(18).fork()).join();if(e.fbExperimentId!==void 0)n.uint32(24).uint32(e.fbExperimentId);if(e.linkMediaDuration!==void 0)n.uint32(32).uint32(e.linkMediaDuration);if(e.socialMediaPostType!==void 0)n.uint32(40).int32(e.socialMediaPostType);if(e.linkInlineVideoMuted!==void 0)n.uint32(48).bool(e.linkInlineVideoMuted);if(e.videoContentUrl!==void 0)n.uint32(58).string(e.videoContentUrl);if(e.musicMetadata!==void 0)Me.encode(e.musicMetadata,n.uint32(66).fork()).join();if(e.videoContentCaption!==void 0)n.uint32(74).string(e.videoContentCaption);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Y2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.paymentLinkMetadata=yn.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.urlMetadata=Ko.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.fbExperimentId=i.uint32();continue}case 4:{if(t!==32)break;a.linkMediaDuration=i.uint32();continue}case 5:{if(t!==40)break;a.socialMediaPostType=i.int32();continue}case 6:{if(t!==48)break;a.linkInlineVideoMuted=i.bool();continue}case 7:{if(t!==58)break;a.videoContentUrl=i.string();continue}case 8:{if(t!==66)break;a.musicMetadata=Me.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.videoContentCaption=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Md.fromPartial(e??{})},fromPartial(e){let n=Y2();return n.paymentLinkMetadata=e.paymentLinkMetadata!==void 0&&e.paymentLinkMetadata!==null?yn.fromPartial(e.paymentLinkMetadata):void 0,n.urlMetadata=e.urlMetadata!==void 0&&e.urlMetadata!==null?Ko.fromPartial(e.urlMetadata):void 0,n.fbExperimentId=e.fbExperimentId??void 0,n.linkMediaDuration=e.linkMediaDuration??void 0,n.socialMediaPostType=e.socialMediaPostType??void 0,n.linkInlineVideoMuted=e.linkInlineVideoMuted??void 0,n.videoContentUrl=e.videoContentUrl??void 0,n.musicMetadata=e.musicMetadata!==void 0&&e.musicMetadata!==null?Me.fromPartial(e.musicMetadata):void 0,n.videoContentCaption=e.videoContentCaption??void 0,n}};function Z2(){return{}}var md={encode(e,n=new s){if(e.title!==void 0)n.uint32(10).string(e.title);if(e.description!==void 0)n.uint32(18).string(e.description);if(e.buttonText!==void 0)n.uint32(26).string(e.buttonText);if(e.listType!==void 0)n.uint32(32).int32(e.listType);if(e.sections!==void 0&&e.sections.length!==0)for(let i of e.sections)Pd.encode(i,n.uint32(42).fork()).join();if(e.productListInfo!==void 0)kd.encode(e.productListInfo,n.uint32(50).fork()).join();if(e.footerText!==void 0)n.uint32(58).string(e.footerText);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(66).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Z2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.title=i.string();continue}case 2:{if(t!==18)break;a.description=i.string();continue}case 3:{if(t!==26)break;a.buttonText=i.string();continue}case 4:{if(t!==32)break;a.listType=i.int32();continue}case 5:{if(t!==42)break;if(a.sections===void 0)a.sections=[];let o=Pd.decode(i,i.uint32());if(o!==void 0)a.sections.push(o);continue}case 6:{if(t!==50)break;a.productListInfo=kd.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.footerText=i.string();continue}case 8:{if(t!==66)break;a.contextInfo=b.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return md.fromPartial(e??{})},fromPartial(e){let n=Z2();return n.title=e.title??void 0,n.description=e.description??void 0,n.buttonText=e.buttonText??void 0,n.listType=e.listType??void 0,n.sections=e.sections?.map((i)=>Pd.fromPartial(i))||void 0,n.productListInfo=e.productListInfo!==void 0&&e.productListInfo!==null?kd.fromPartial(e.productListInfo):void 0,n.footerText=e.footerText??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n}};function X2(){return{}}var _d={encode(e,n=new s){if(e.productId!==void 0)n.uint32(10).string(e.productId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=X2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.productId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return _d.fromPartial(e??{})},fromPartial(e){let n=X2();return n.productId=e.productId??void 0,n}};function $2(){return{}}var hd={encode(e,n=new s){if(e.productId!==void 0)n.uint32(10).string(e.productId);if(e.jpegThumbnail!==void 0)n.uint32(18).bytes(e.jpegThumbnail);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=$2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.productId=i.string();continue}case 2:{if(t!==18)break;a.jpegThumbnail=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return hd.fromPartial(e??{})},fromPartial(e){let n=$2();return n.productId=e.productId??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n}};function j2(){return{}}var kd={encode(e,n=new s){if(e.productSections!==void 0&&e.productSections.length!==0)for(let i of e.productSections)Ad.encode(i,n.uint32(10).fork()).join();if(e.headerImage!==void 0)hd.encode(e.headerImage,n.uint32(18).fork()).join();if(e.businessOwnerJid!==void 0)n.uint32(26).string(e.businessOwnerJid);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=j2();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.productSections===void 0)a.productSections=[];let o=Ad.decode(i,i.uint32());if(o!==void 0)a.productSections.push(o);continue}case 2:{if(t!==18)break;a.headerImage=hd.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.businessOwnerJid=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return kd.fromPartial(e??{})},fromPartial(e){let n=j2();return n.productSections=e.productSections?.map((i)=>Ad.fromPartial(i))||void 0,n.headerImage=e.headerImage!==void 0&&e.headerImage!==null?hd.fromPartial(e.headerImage):void 0,n.businessOwnerJid=e.businessOwnerJid??void 0,n}};function em(){return{}}var Ad={encode(e,n=new s){if(e.title!==void 0)n.uint32(10).string(e.title);if(e.products!==void 0&&e.products.length!==0)for(let i of e.products)_d.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=em();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.title=i.string();continue}case 2:{if(t!==18)break;if(a.products===void 0)a.products=[];let o=_d.decode(i,i.uint32());if(o!==void 0)a.products.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ad.fromPartial(e??{})},fromPartial(e){let n=em();return n.title=e.title??void 0,n.products=e.products?.map((i)=>_d.fromPartial(i))||void 0,n}};function nm(){return{}}var Sd={encode(e,n=new s){if(e.title!==void 0)n.uint32(10).string(e.title);if(e.description!==void 0)n.uint32(18).string(e.description);if(e.rowId!==void 0)n.uint32(26).string(e.rowId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=nm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.title=i.string();continue}case 2:{if(t!==18)break;a.description=i.string();continue}case 3:{if(t!==26)break;a.rowId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Sd.fromPartial(e??{})},fromPartial(e){let n=nm();return n.title=e.title??void 0,n.description=e.description??void 0,n.rowId=e.rowId??void 0,n}};function im(){return{}}var Pd={encode(e,n=new s){if(e.title!==void 0)n.uint32(10).string(e.title);if(e.rows!==void 0&&e.rows.length!==0)for(let i of e.rows)Sd.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=im();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.title=i.string();continue}case 2:{if(t!==18)break;if(a.rows===void 0)a.rows=[];let o=Sd.decode(i,i.uint32());if(o!==void 0)a.rows.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Pd.fromPartial(e??{})},fromPartial(e){let n=im();return n.title=e.title??void 0,n.rows=e.rows?.map((i)=>Sd.fromPartial(i))||void 0,n}};function tm(){return{}}var bd={encode(e,n=new s){if(e.title!==void 0)n.uint32(10).string(e.title);if(e.listType!==void 0)n.uint32(16).int32(e.listType);if(e.singleSelectReply!==void 0)Id.encode(e.singleSelectReply,n.uint32(26).fork()).join();if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(34).fork()).join();if(e.description!==void 0)n.uint32(42).string(e.description);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=tm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.title=i.string();continue}case 2:{if(t!==16)break;a.listType=i.int32();continue}case 3:{if(t!==26)break;a.singleSelectReply=Id.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.contextInfo=b.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.description=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return bd.fromPartial(e??{})},fromPartial(e){let n=tm();return n.title=e.title??void 0,n.listType=e.listType??void 0,n.singleSelectReply=e.singleSelectReply!==void 0&&e.singleSelectReply!==null?Id.fromPartial(e.singleSelectReply):void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.description=e.description??void 0,n}};function am(){return{}}var Id={encode(e,n=new s){if(e.selectedRowId!==void 0)n.uint32(10).string(e.selectedRowId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=am();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.selectedRowId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Id.fromPartial(e??{})},fromPartial(e){let n=am();return n.selectedRowId=e.selectedRowId??void 0,n}};function rm(){return{}}var ln={encode(e,n=new s){if(e.degreesLatitude!==void 0)n.uint32(9).double(e.degreesLatitude);if(e.degreesLongitude!==void 0)n.uint32(17).double(e.degreesLongitude);if(e.accuracyInMeters!==void 0)n.uint32(24).uint32(e.accuracyInMeters);if(e.speedInMps!==void 0)n.uint32(37).float(e.speedInMps);if(e.degreesClockwiseFromMagneticNorth!==void 0)n.uint32(40).uint32(e.degreesClockwiseFromMagneticNorth);if(e.caption!==void 0)n.uint32(50).string(e.caption);if(e.sequenceNumber!==void 0)n.uint32(56).int64(e.sequenceNumber);if(e.timeOffset!==void 0)n.uint32(64).uint32(e.timeOffset);if(e.jpegThumbnail!==void 0)n.uint32(130).bytes(e.jpegThumbnail);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=rm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==9)break;a.degreesLatitude=i.double();continue}case 2:{if(t!==17)break;a.degreesLongitude=i.double();continue}case 3:{if(t!==24)break;a.accuracyInMeters=i.uint32();continue}case 4:{if(t!==37)break;a.speedInMps=i.float();continue}case 5:{if(t!==40)break;a.degreesClockwiseFromMagneticNorth=i.uint32();continue}case 6:{if(t!==50)break;a.caption=i.string();continue}case 7:{if(t!==56)break;a.sequenceNumber=i.int64Number();continue}case 8:{if(t!==64)break;a.timeOffset=i.uint32();continue}case 16:{if(t!==130)break;a.jpegThumbnail=i.bytes();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ln.fromPartial(e??{})},fromPartial(e){let n=rm();return n.degreesLatitude=e.degreesLatitude??void 0,n.degreesLongitude=e.degreesLongitude??void 0,n.accuracyInMeters=e.accuracyInMeters??void 0,n.speedInMps=e.speedInMps??void 0,n.degreesClockwiseFromMagneticNorth=e.degreesClockwiseFromMagneticNorth??void 0,n.caption=e.caption??void 0,n.sequenceNumber=e.sequenceNumber??void 0,n.timeOffset=e.timeOffset??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n}};function dm(){return{}}var X={encode(e,n=new s){if(e.degreesLatitude!==void 0)n.uint32(9).double(e.degreesLatitude);if(e.degreesLongitude!==void 0)n.uint32(17).double(e.degreesLongitude);if(e.name!==void 0)n.uint32(26).string(e.name);if(e.address!==void 0)n.uint32(34).string(e.address);if(e.url!==void 0)n.uint32(42).string(e.url);if(e.isLive!==void 0)n.uint32(48).bool(e.isLive);if(e.accuracyInMeters!==void 0)n.uint32(56).uint32(e.accuracyInMeters);if(e.speedInMps!==void 0)n.uint32(69).float(e.speedInMps);if(e.degreesClockwiseFromMagneticNorth!==void 0)n.uint32(72).uint32(e.degreesClockwiseFromMagneticNorth);if(e.comment!==void 0)n.uint32(90).string(e.comment);if(e.jpegThumbnail!==void 0)n.uint32(130).bytes(e.jpegThumbnail);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=dm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==9)break;a.degreesLatitude=i.double();continue}case 2:{if(t!==17)break;a.degreesLongitude=i.double();continue}case 3:{if(t!==26)break;a.name=i.string();continue}case 4:{if(t!==34)break;a.address=i.string();continue}case 5:{if(t!==42)break;a.url=i.string();continue}case 6:{if(t!==48)break;a.isLive=i.bool();continue}case 7:{if(t!==56)break;a.accuracyInMeters=i.uint32();continue}case 8:{if(t!==69)break;a.speedInMps=i.float();continue}case 9:{if(t!==72)break;a.degreesClockwiseFromMagneticNorth=i.uint32();continue}case 11:{if(t!==90)break;a.comment=i.string();continue}case 16:{if(t!==130)break;a.jpegThumbnail=i.bytes();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return X.fromPartial(e??{})},fromPartial(e){let n=dm();return n.degreesLatitude=e.degreesLatitude??void 0,n.degreesLongitude=e.degreesLongitude??void 0,n.name=e.name??void 0,n.address=e.address??void 0,n.url=e.url??void 0,n.isLive=e.isLive??void 0,n.accuracyInMeters=e.accuracyInMeters??void 0,n.speedInMps=e.speedInMps??void 0,n.degreesClockwiseFromMagneticNorth=e.degreesClockwiseFromMagneticNorth??void 0,n.comment=e.comment??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n}};function om(){return{}}var Rd={encode(e,n=new s){if(e.thumbnailDirectPath!==void 0)n.uint32(10).string(e.thumbnailDirectPath);if(e.thumbnailSha256!==void 0)n.uint32(18).bytes(e.thumbnailSha256);if(e.thumbnailEncSha256!==void 0)n.uint32(26).bytes(e.thumbnailEncSha256);if(e.mediaKey!==void 0)n.uint32(34).bytes(e.mediaKey);if(e.mediaKeyTimestamp!==void 0)n.uint32(40).int64(e.mediaKeyTimestamp);if(e.thumbnailHeight!==void 0)n.uint32(48).uint32(e.thumbnailHeight);if(e.thumbnailWidth!==void 0)n.uint32(56).uint32(e.thumbnailWidth);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=om();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.thumbnailDirectPath=i.string();continue}case 2:{if(t!==18)break;a.thumbnailSha256=i.bytes();continue}case 3:{if(t!==26)break;a.thumbnailEncSha256=i.bytes();continue}case 4:{if(t!==34)break;a.mediaKey=i.bytes();continue}case 5:{if(t!==40)break;a.mediaKeyTimestamp=i.int64Number();continue}case 6:{if(t!==48)break;a.thumbnailHeight=i.uint32();continue}case 7:{if(t!==56)break;a.thumbnailWidth=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Rd.fromPartial(e??{})},fromPartial(e){let n=om();return n.thumbnailDirectPath=e.thumbnailDirectPath??void 0,n.thumbnailSha256=e.thumbnailSha256??void 0,n.thumbnailEncSha256=e.thumbnailEncSha256??void 0,n.mediaKey=e.mediaKey??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.thumbnailHeight=e.thumbnailHeight??void 0,n.thumbnailWidth=e.thumbnailWidth??void 0,n}};function sm(){return{}}var pn={encode(e,n=new s){if(e.mimetype!==void 0)n.uint32(10).string(e.mimetype);if(e.fileSha256!==void 0)n.uint32(18).bytes(e.fileSha256);if(e.mediaKey!==void 0)n.uint32(26).bytes(e.mediaKey);if(e.fileEncSha256!==void 0)n.uint32(34).bytes(e.fileEncSha256);if(e.directPath!==void 0)n.uint32(42).string(e.directPath);if(e.mediaKeyTimestamp!==void 0)n.uint32(48).int64(e.mediaKeyTimestamp);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(58).fork()).join();if(e.messageHistoryMetadata!==void 0)gn.encode(e.messageHistoryMetadata,n.uint32(66).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=sm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.mimetype=i.string();continue}case 2:{if(t!==18)break;a.fileSha256=i.bytes();continue}case 3:{if(t!==26)break;a.mediaKey=i.bytes();continue}case 4:{if(t!==34)break;a.fileEncSha256=i.bytes();continue}case 5:{if(t!==42)break;a.directPath=i.string();continue}case 6:{if(t!==48)break;a.mediaKeyTimestamp=i.int64Number();continue}case 7:{if(t!==58)break;a.contextInfo=b.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.messageHistoryMetadata=gn.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return pn.fromPartial(e??{})},fromPartial(e){let n=sm();return n.mimetype=e.mimetype??void 0,n.fileSha256=e.fileSha256??void 0,n.mediaKey=e.mediaKey??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.directPath=e.directPath??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.messageHistoryMetadata=e.messageHistoryMetadata!==void 0&&e.messageHistoryMetadata!==null?gn.fromPartial(e.messageHistoryMetadata):void 0,n}};function um(){return{}}var gn={encode(e,n=new s){if(e.historyReceivers!==void 0&&e.historyReceivers.length!==0)for(let i of e.historyReceivers)n.uint32(10).string(i);if(e.oldestMessageTimestampInWindow!==void 0)n.uint32(16).int64(e.oldestMessageTimestampInWindow);if(e.messageCount!==void 0)n.uint32(24).int64(e.messageCount);if(e.nonHistoryReceivers!==void 0&&e.nonHistoryReceivers.length!==0)for(let i of e.nonHistoryReceivers)n.uint32(34).string(i);if(e.oldestMessageTimestampInBundle!==void 0)n.uint32(40).int64(e.oldestMessageTimestampInBundle);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=um();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.historyReceivers===void 0)a.historyReceivers=[];let o=i.string();if(o!==void 0)a.historyReceivers.push(o);continue}case 2:{if(t!==16)break;a.oldestMessageTimestampInWindow=i.int64Number();continue}case 3:{if(t!==24)break;a.messageCount=i.int64Number();continue}case 4:{if(t!==34)break;if(a.nonHistoryReceivers===void 0)a.nonHistoryReceivers=[];let o=i.string();if(o!==void 0)a.nonHistoryReceivers.push(o);continue}case 5:{if(t!==40)break;a.oldestMessageTimestampInBundle=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return gn.fromPartial(e??{})},fromPartial(e){let n=um();return n.historyReceivers=e.historyReceivers?.map((i)=>i)||void 0,n.oldestMessageTimestampInWindow=e.oldestMessageTimestampInWindow??void 0,n.messageCount=e.messageCount??void 0,n.nonHistoryReceivers=e.nonHistoryReceivers?.map((i)=>i)||void 0,n.oldestMessageTimestampInBundle=e.oldestMessageTimestampInBundle??void 0,n}};function cm(){return{}}var Dd={encode(e,n=new s){if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(10).fork()).join();if(e.messageHistoryMetadata!==void 0)gn.encode(e.messageHistoryMetadata,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=cm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.contextInfo=b.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.messageHistoryMetadata=gn.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Dd.fromPartial(e??{})},fromPartial(e){let n=cm();return n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.messageHistoryMetadata=e.messageHistoryMetadata!==void 0&&e.messageHistoryMetadata!==null?gn.fromPartial(e.messageHistoryMetadata):void 0,n}};function fm(){return{}}var Ed={encode(e,n=new s){if(e.newsletterJid!==void 0)n.uint32(10).string(e.newsletterJid);if(e.newsletterName!==void 0)n.uint32(18).string(e.newsletterName);if(e.jpegThumbnail!==void 0)n.uint32(26).bytes(e.jpegThumbnail);if(e.caption!==void 0)n.uint32(34).string(e.caption);if(e.inviteExpiration!==void 0)n.uint32(40).int64(e.inviteExpiration);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(50).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=fm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.newsletterJid=i.string();continue}case 2:{if(t!==18)break;a.newsletterName=i.string();continue}case 3:{if(t!==26)break;a.jpegThumbnail=i.bytes();continue}case 4:{if(t!==34)break;a.caption=i.string();continue}case 5:{if(t!==40)break;a.inviteExpiration=i.int64Number();continue}case 6:{if(t!==50)break;a.contextInfo=b.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ed.fromPartial(e??{})},fromPartial(e){let n=fm();return n.newsletterJid=e.newsletterJid??void 0,n.newsletterName=e.newsletterName??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.caption=e.caption??void 0,n.inviteExpiration=e.inviteExpiration??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n}};function lm(){return{}}var Bd={encode(e,n=new s){if(e.newsletterJid!==void 0)n.uint32(10).string(e.newsletterJid);if(e.newsletterName!==void 0)n.uint32(18).string(e.newsletterName);if(e.jpegThumbnail!==void 0)n.uint32(26).bytes(e.jpegThumbnail);if(e.caption!==void 0)n.uint32(34).string(e.caption);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(42).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=lm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.newsletterJid=i.string();continue}case 2:{if(t!==18)break;a.newsletterName=i.string();continue}case 3:{if(t!==26)break;a.jpegThumbnail=i.bytes();continue}case 4:{if(t!==34)break;a.caption=i.string();continue}case 5:{if(t!==42)break;a.contextInfo=b.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Bd.fromPartial(e??{})},fromPartial(e){let n=lm();return n.newsletterJid=e.newsletterJid??void 0,n.newsletterName=e.newsletterName??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.caption=e.caption??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n}};function pm(){return{}}var Cd={encode(e,n=new s){if(e.orderId!==void 0)n.uint32(10).string(e.orderId);if(e.thumbnail!==void 0)n.uint32(18).bytes(e.thumbnail);if(e.itemCount!==void 0)n.uint32(24).int32(e.itemCount);if(e.status!==void 0)n.uint32(32).int32(e.status);if(e.surface!==void 0)n.uint32(40).int32(e.surface);if(e.message!==void 0)n.uint32(50).string(e.message);if(e.orderTitle!==void 0)n.uint32(58).string(e.orderTitle);if(e.sellerJid!==void 0)n.uint32(66).string(e.sellerJid);if(e.token!==void 0)n.uint32(74).string(e.token);if(e.totalAmount1000!==void 0)n.uint32(80).int64(e.totalAmount1000);if(e.totalCurrencyCode!==void 0)n.uint32(90).string(e.totalCurrencyCode);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();if(e.messageVersion!==void 0)n.uint32(96).int32(e.messageVersion);if(e.orderRequestMessageId!==void 0)_.encode(e.orderRequestMessageId,n.uint32(106).fork()).join();if(e.catalogType!==void 0)n.uint32(122).string(e.catalogType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=pm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.orderId=i.string();continue}case 2:{if(t!==18)break;a.thumbnail=i.bytes();continue}case 3:{if(t!==24)break;a.itemCount=i.int32();continue}case 4:{if(t!==32)break;a.status=i.int32();continue}case 5:{if(t!==40)break;a.surface=i.int32();continue}case 6:{if(t!==50)break;a.message=i.string();continue}case 7:{if(t!==58)break;a.orderTitle=i.string();continue}case 8:{if(t!==66)break;a.sellerJid=i.string();continue}case 9:{if(t!==74)break;a.token=i.string();continue}case 10:{if(t!==80)break;a.totalAmount1000=i.int64Number();continue}case 11:{if(t!==90)break;a.totalCurrencyCode=i.string();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}case 12:{if(t!==96)break;a.messageVersion=i.int32();continue}case 13:{if(t!==106)break;a.orderRequestMessageId=_.decode(i,i.uint32());continue}case 15:{if(t!==122)break;a.catalogType=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Cd.fromPartial(e??{})},fromPartial(e){let n=pm();return n.orderId=e.orderId??void 0,n.thumbnail=e.thumbnail??void 0,n.itemCount=e.itemCount??void 0,n.status=e.status??void 0,n.surface=e.surface??void 0,n.message=e.message??void 0,n.orderTitle=e.orderTitle??void 0,n.sellerJid=e.sellerJid??void 0,n.token=e.token??void 0,n.totalAmount1000=e.totalAmount1000??void 0,n.totalCurrencyCode=e.totalCurrencyCode??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.messageVersion=e.messageVersion??void 0,n.orderRequestMessageId=e.orderRequestMessageId!==void 0&&e.orderRequestMessageId!==null?_.fromPartial(e.orderRequestMessageId):void 0,n.catalogType=e.catalogType??void 0,n}};function gm(){return{}}var vd={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).uint32(e.type);if(e.platform!==void 0)n.uint32(18).string(e.platform);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=gm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.uint32();continue}case 2:{if(t!==18)break;a.platform=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return vd.fromPartial(e??{})},fromPartial(e){let n=gm();return n.type=e.type??void 0,n.platform=e.platform??void 0,n}};function ym(){return{}}var xd={encode(e,n=new s){if(e.serviceType!==void 0)n.uint32(8).int32(e.serviceType);if(e.expiryTimestamp!==void 0)n.uint32(16).int64(e.expiryTimestamp);if(e.incentiveEligible!==void 0)n.uint32(24).bool(e.incentiveEligible);if(e.referralId!==void 0)n.uint32(34).string(e.referralId);if(e.inviteType!==void 0)n.uint32(40).int32(e.inviteType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ym();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.serviceType=i.int32();continue}case 2:{if(t!==16)break;a.expiryTimestamp=i.int64Number();continue}case 3:{if(t!==24)break;a.incentiveEligible=i.bool();continue}case 4:{if(t!==34)break;a.referralId=i.string();continue}case 5:{if(t!==40)break;a.inviteType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return xd.fromPartial(e??{})},fromPartial(e){let n=ym();return n.serviceType=e.serviceType??void 0,n.expiryTimestamp=e.expiryTimestamp??void 0,n.incentiveEligible=e.incentiveEligible??void 0,n.referralId=e.referralId??void 0,n.inviteType=e.inviteType??void 0,n}};function Mm(){return{}}var yn={encode(e,n=new s){if(e.button!==void 0)Nd.encode(e.button,n.uint32(10).fork()).join();if(e.header!==void 0)Od.encode(e.header,n.uint32(18).fork()).join();if(e.provider!==void 0)Ud.encode(e.provider,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Mm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.button=Nd.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.header=Od.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.provider=Ud.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return yn.fromPartial(e??{})},fromPartial(e){let n=Mm();return n.button=e.button!==void 0&&e.button!==null?Nd.fromPartial(e.button):void 0,n.header=e.header!==void 0&&e.header!==null?Od.fromPartial(e.header):void 0,n.provider=e.provider!==void 0&&e.provider!==null?Ud.fromPartial(e.provider):void 0,n}};function mm(){return{}}var Nd={encode(e,n=new s){if(e.displayText!==void 0)n.uint32(10).string(e.displayText);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=mm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.displayText=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Nd.fromPartial(e??{})},fromPartial(e){let n=mm();return n.displayText=e.displayText??void 0,n}};function _m(){return{}}var Od={encode(e,n=new s){if(e.headerType!==void 0)n.uint32(8).int32(e.headerType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=_m();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.headerType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Od.fromPartial(e??{})},fromPartial(e){let n=_m();return n.headerType=e.headerType??void 0,n}};function hm(){return{}}var Ud={encode(e,n=new s){if(e.paramsJson!==void 0)n.uint32(10).string(e.paramsJson);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=hm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.paramsJson=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ud.fromPartial(e??{})},fromPartial(e){let n=hm();return n.paramsJson=e.paramsJson??void 0,n}};function km(){return{}}var Td={encode(e,n=new s){if(e.reminderId!==void 0)n.uint32(10).string(e.reminderId);if(e.instanceId!==void 0)n.uint32(18).string(e.instanceId);if(e.description!==void 0)n.uint32(26).string(e.description);if(e.frequency!==void 0)n.uint32(32).int32(e.frequency);if(e.status!==void 0)n.uint32(40).int32(e.status);if(e.payeeVpa!==void 0)n.uint32(50).string(e.payeeVpa);if(e.payeeJid!==void 0)n.uint32(58).string(e.payeeJid);if(e.payerJid!==void 0)n.uint32(66).string(e.payerJid);if(e.amount!==void 0)Z.encode(e.amount,n.uint32(74).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=km();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.reminderId=i.string();continue}case 2:{if(t!==18)break;a.instanceId=i.string();continue}case 3:{if(t!==26)break;a.description=i.string();continue}case 4:{if(t!==32)break;a.frequency=i.int32();continue}case 5:{if(t!==40)break;a.status=i.int32();continue}case 6:{if(t!==50)break;a.payeeVpa=i.string();continue}case 7:{if(t!==58)break;a.payeeJid=i.string();continue}case 8:{if(t!==66)break;a.payerJid=i.string();continue}case 9:{if(t!==74)break;a.amount=Z.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Td.fromPartial(e??{})},fromPartial(e){let n=km();return n.reminderId=e.reminderId??void 0,n.instanceId=e.instanceId??void 0,n.description=e.description??void 0,n.frequency=e.frequency??void 0,n.status=e.status??void 0,n.payeeVpa=e.payeeVpa??void 0,n.payeeJid=e.payeeJid??void 0,n.payerJid=e.payerJid??void 0,n.amount=e.amount!==void 0&&e.amount!==null?Z.fromPartial(e.amount):void 0,n}};function Am(){return{}}var Ld={encode(e,n=new s){if(e.peerDataOperationRequestType!==void 0)n.uint32(8).int32(e.peerDataOperationRequestType);if(e.requestStickerReupload!==void 0&&e.requestStickerReupload.length!==0)for(let i of e.requestStickerReupload)Jd.encode(i,n.uint32(18).fork()).join();if(e.requestUrlPreview!==void 0&&e.requestUrlPreview.length!==0)for(let i of e.requestUrlPreview)Qd.encode(i,n.uint32(26).fork()).join();if(e.historySyncOnDemandRequest!==void 0)qd.encode(e.historySyncOnDemandRequest,n.uint32(34).fork()).join();if(e.placeholderMessageResendRequest!==void 0&&e.placeholderMessageResendRequest.length!==0)for(let i of e.placeholderMessageResendRequest)Gd.encode(i,n.uint32(42).fork()).join();if(e.fullHistorySyncOnDemandRequest!==void 0)Kd.encode(e.fullHistorySyncOnDemandRequest,n.uint32(50).fork()).join();if(e.syncdCollectionFatalRecoveryRequest!==void 0)zd.encode(e.syncdCollectionFatalRecoveryRequest,n.uint32(58).fork()).join();if(e.historySyncChunkRetryRequest!==void 0)Hd.encode(e.historySyncChunkRetryRequest,n.uint32(66).fork()).join();if(e.galaxyFlowAction!==void 0)Wd.encode(e.galaxyFlowAction,n.uint32(74).fork()).join();if(e.companionCanonicalUserNonceFetchRequest!==void 0)Vd.encode(e.companionCanonicalUserNonceFetchRequest,n.uint32(82).fork()).join();if(e.bizBroadcastInsightsContactListRequest!==void 0)wd.encode(e.bizBroadcastInsightsContactListRequest,n.uint32(90).fork()).join();if(e.bizBroadcastInsightsRefreshRequest!==void 0)Fd.encode(e.bizBroadcastInsightsRefreshRequest,n.uint32(98).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Am();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.peerDataOperationRequestType=i.int32();continue}case 2:{if(t!==18)break;if(a.requestStickerReupload===void 0)a.requestStickerReupload=[];let o=Jd.decode(i,i.uint32());if(o!==void 0)a.requestStickerReupload.push(o);continue}case 3:{if(t!==26)break;if(a.requestUrlPreview===void 0)a.requestUrlPreview=[];let o=Qd.decode(i,i.uint32());if(o!==void 0)a.requestUrlPreview.push(o);continue}case 4:{if(t!==34)break;a.historySyncOnDemandRequest=qd.decode(i,i.uint32());continue}case 5:{if(t!==42)break;if(a.placeholderMessageResendRequest===void 0)a.placeholderMessageResendRequest=[];let o=Gd.decode(i,i.uint32());if(o!==void 0)a.placeholderMessageResendRequest.push(o);continue}case 6:{if(t!==50)break;a.fullHistorySyncOnDemandRequest=Kd.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.syncdCollectionFatalRecoveryRequest=zd.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.historySyncChunkRetryRequest=Hd.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.galaxyFlowAction=Wd.decode(i,i.uint32());continue}case 10:{if(t!==82)break;a.companionCanonicalUserNonceFetchRequest=Vd.decode(i,i.uint32());continue}case 11:{if(t!==90)break;a.bizBroadcastInsightsContactListRequest=wd.decode(i,i.uint32());continue}case 12:{if(t!==98)break;a.bizBroadcastInsightsRefreshRequest=Fd.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ld.fromPartial(e??{})},fromPartial(e){let n=Am();return n.peerDataOperationRequestType=e.peerDataOperationRequestType??void 0,n.requestStickerReupload=e.requestStickerReupload?.map((i)=>Jd.fromPartial(i))||void 0,n.requestUrlPreview=e.requestUrlPreview?.map((i)=>Qd.fromPartial(i))||void 0,n.historySyncOnDemandRequest=e.historySyncOnDemandRequest!==void 0&&e.historySyncOnDemandRequest!==null?qd.fromPartial(e.historySyncOnDemandRequest):void 0,n.placeholderMessageResendRequest=e.placeholderMessageResendRequest?.map((i)=>Gd.fromPartial(i))||void 0,n.fullHistorySyncOnDemandRequest=e.fullHistorySyncOnDemandRequest!==void 0&&e.fullHistorySyncOnDemandRequest!==null?Kd.fromPartial(e.fullHistorySyncOnDemandRequest):void 0,n.syncdCollectionFatalRecoveryRequest=e.syncdCollectionFatalRecoveryRequest!==void 0&&e.syncdCollectionFatalRecoveryRequest!==null?zd.fromPartial(e.syncdCollectionFatalRecoveryRequest):void 0,n.historySyncChunkRetryRequest=e.historySyncChunkRetryRequest!==void 0&&e.historySyncChunkRetryRequest!==null?Hd.fromPartial(e.historySyncChunkRetryRequest):void 0,n.galaxyFlowAction=e.galaxyFlowAction!==void 0&&e.galaxyFlowAction!==null?Wd.fromPartial(e.galaxyFlowAction):void 0,n.companionCanonicalUserNonceFetchRequest=e.companionCanonicalUserNonceFetchRequest!==void 0&&e.companionCanonicalUserNonceFetchRequest!==null?Vd.fromPartial(e.companionCanonicalUserNonceFetchRequest):void 0,n.bizBroadcastInsightsContactListRequest=e.bizBroadcastInsightsContactListRequest!==void 0&&e.bizBroadcastInsightsContactListRequest!==null?wd.fromPartial(e.bizBroadcastInsightsContactListRequest):void 0,n.bizBroadcastInsightsRefreshRequest=e.bizBroadcastInsightsRefreshRequest!==void 0&&e.bizBroadcastInsightsRefreshRequest!==null?Fd.fromPartial(e.bizBroadcastInsightsRefreshRequest):void 0,n}};function Sm(){return{}}var wd={encode(e,n=new s){if(e.campaignId!==void 0)n.uint32(10).string(e.campaignId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Sm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.campaignId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return wd.fromPartial(e??{})},fromPartial(e){let n=Sm();return n.campaignId=e.campaignId??void 0,n}};function Pm(){return{}}var Fd={encode(e,n=new s){if(e.campaignId!==void 0)n.uint32(10).string(e.campaignId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Pm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.campaignId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Fd.fromPartial(e??{})},fromPartial(e){let n=Pm();return n.campaignId=e.campaignId??void 0,n}};function bm(){return{}}var Vd={encode(e,n=new s){if(e.registrationTraceId!==void 0)n.uint32(10).string(e.registrationTraceId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=bm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.registrationTraceId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Vd.fromPartial(e??{})},fromPartial(e){let n=bm();return n.registrationTraceId=e.registrationTraceId??void 0,n}};function Im(){return{}}var Kd={encode(e,n=new s){if(e.requestMetadata!==void 0)he.encode(e.requestMetadata,n.uint32(10).fork()).join();if(e.historySyncConfig!==void 0)on.encode(e.historySyncConfig,n.uint32(18).fork()).join();if(e.fullHistorySyncOnDemandConfig!==void 0)Qr.encode(e.fullHistorySyncOnDemandConfig,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Im();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.requestMetadata=he.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.historySyncConfig=on.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.fullHistorySyncOnDemandConfig=Qr.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Kd.fromPartial(e??{})},fromPartial(e){let n=Im();return n.requestMetadata=e.requestMetadata!==void 0&&e.requestMetadata!==null?he.fromPartial(e.requestMetadata):void 0,n.historySyncConfig=e.historySyncConfig!==void 0&&e.historySyncConfig!==null?on.fromPartial(e.historySyncConfig):void 0,n.fullHistorySyncOnDemandConfig=e.fullHistorySyncOnDemandConfig!==void 0&&e.fullHistorySyncOnDemandConfig!==null?Qr.fromPartial(e.fullHistorySyncOnDemandConfig):void 0,n}};function Rm(){return{}}var Wd={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).int32(e.type);if(e.flowId!==void 0)n.uint32(18).string(e.flowId);if(e.stanzaId!==void 0)n.uint32(26).string(e.stanzaId);if(e.galaxyFlowDownloadRequestId!==void 0)n.uint32(34).string(e.galaxyFlowDownloadRequestId);if(e.agmId!==void 0)n.uint32(42).string(e.agmId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Rm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.int32();continue}case 2:{if(t!==18)break;a.flowId=i.string();continue}case 3:{if(t!==26)break;a.stanzaId=i.string();continue}case 4:{if(t!==34)break;a.galaxyFlowDownloadRequestId=i.string();continue}case 5:{if(t!==42)break;a.agmId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Wd.fromPartial(e??{})},fromPartial(e){let n=Rm();return n.type=e.type??void 0,n.flowId=e.flowId??void 0,n.stanzaId=e.stanzaId??void 0,n.galaxyFlowDownloadRequestId=e.galaxyFlowDownloadRequestId??void 0,n.agmId=e.agmId??void 0,n}};function Dm(){return{}}var Hd={encode(e,n=new s){if(e.syncType!==void 0)n.uint32(8).int32(e.syncType);if(e.chunkOrder!==void 0)n.uint32(16).uint32(e.chunkOrder);if(e.chunkNotificationId!==void 0)n.uint32(26).string(e.chunkNotificationId);if(e.regenerateChunk!==void 0)n.uint32(32).bool(e.regenerateChunk);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Dm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.syncType=i.int32();continue}case 2:{if(t!==16)break;a.chunkOrder=i.uint32();continue}case 3:{if(t!==26)break;a.chunkNotificationId=i.string();continue}case 4:{if(t!==32)break;a.regenerateChunk=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Hd.fromPartial(e??{})},fromPartial(e){let n=Dm();return n.syncType=e.syncType??void 0,n.chunkOrder=e.chunkOrder??void 0,n.chunkNotificationId=e.chunkNotificationId??void 0,n.regenerateChunk=e.regenerateChunk??void 0,n}};function Em(){return{}}var qd={encode(e,n=new s){if(e.chatJid!==void 0)n.uint32(10).string(e.chatJid);if(e.oldestMsgId!==void 0)n.uint32(18).string(e.oldestMsgId);if(e.oldestMsgFromMe!==void 0)n.uint32(24).bool(e.oldestMsgFromMe);if(e.onDemandMsgCount!==void 0)n.uint32(32).int32(e.onDemandMsgCount);if(e.oldestMsgTimestampMs!==void 0)n.uint32(40).int64(e.oldestMsgTimestampMs);if(e.accountLid!==void 0)n.uint32(50).string(e.accountLid);if(e.supportInlineResponse!==void 0)n.uint32(56).bool(e.supportInlineResponse);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Em();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.chatJid=i.string();continue}case 2:{if(t!==18)break;a.oldestMsgId=i.string();continue}case 3:{if(t!==24)break;a.oldestMsgFromMe=i.bool();continue}case 4:{if(t!==32)break;a.onDemandMsgCount=i.int32();continue}case 5:{if(t!==40)break;a.oldestMsgTimestampMs=i.int64Number();continue}case 6:{if(t!==50)break;a.accountLid=i.string();continue}case 7:{if(t!==56)break;a.supportInlineResponse=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return qd.fromPartial(e??{})},fromPartial(e){let n=Em();return n.chatJid=e.chatJid??void 0,n.oldestMsgId=e.oldestMsgId??void 0,n.oldestMsgFromMe=e.oldestMsgFromMe??void 0,n.onDemandMsgCount=e.onDemandMsgCount??void 0,n.oldestMsgTimestampMs=e.oldestMsgTimestampMs??void 0,n.accountLid=e.accountLid??void 0,n.supportInlineResponse=e.supportInlineResponse??void 0,n}};function Bm(){return{}}var Gd={encode(e,n=new s){if(e.messageKey!==void 0)_.encode(e.messageKey,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Bm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.messageKey=_.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Gd.fromPartial(e??{})},fromPartial(e){let n=Bm();return n.messageKey=e.messageKey!==void 0&&e.messageKey!==null?_.fromPartial(e.messageKey):void 0,n}};function Cm(){return{}}var Jd={encode(e,n=new s){if(e.fileSha256!==void 0)n.uint32(10).string(e.fileSha256);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Cm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.fileSha256=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Jd.fromPartial(e??{})},fromPartial(e){let n=Cm();return n.fileSha256=e.fileSha256??void 0,n}};function vm(){return{}}var Qd={encode(e,n=new s){if(e.url!==void 0)n.uint32(10).string(e.url);if(e.includeHqThumbnail!==void 0)n.uint32(16).bool(e.includeHqThumbnail);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=vm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.url=i.string();continue}case 2:{if(t!==16)break;a.includeHqThumbnail=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Qd.fromPartial(e??{})},fromPartial(e){let n=vm();return n.url=e.url??void 0,n.includeHqThumbnail=e.includeHqThumbnail??void 0,n}};function xm(){return{}}var zd={encode(e,n=new s){if(e.collectionName!==void 0)n.uint32(10).string(e.collectionName);if(e.timestamp!==void 0)n.uint32(16).int64(e.timestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=xm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.collectionName=i.string();continue}case 2:{if(t!==16)break;a.timestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return zd.fromPartial(e??{})},fromPartial(e){let n=xm();return n.collectionName=e.collectionName??void 0,n.timestamp=e.timestamp??void 0,n}};function Nm(){return{}}var Yd={encode(e,n=new s){if(e.peerDataOperationRequestType!==void 0)n.uint32(8).int32(e.peerDataOperationRequestType);if(e.stanzaId!==void 0)n.uint32(18).string(e.stanzaId);if(e.peerDataOperationResult!==void 0&&e.peerDataOperationResult.length!==0)for(let i of e.peerDataOperationResult)Zd.encode(i,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Nm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.peerDataOperationRequestType=i.int32();continue}case 2:{if(t!==18)break;a.stanzaId=i.string();continue}case 3:{if(t!==26)break;if(a.peerDataOperationResult===void 0)a.peerDataOperationResult=[];let o=Zd.decode(i,i.uint32());if(o!==void 0)a.peerDataOperationResult.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Yd.fromPartial(e??{})},fromPartial(e){let n=Nm();return n.peerDataOperationRequestType=e.peerDataOperationRequestType??void 0,n.stanzaId=e.stanzaId??void 0,n.peerDataOperationResult=e.peerDataOperationResult?.map((i)=>Zd.fromPartial(i))||void 0,n}};function Om(){return{}}var Zd={encode(e,n=new s){if(e.mediaUploadResult!==void 0)n.uint32(8).int32(e.mediaUploadResult);if(e.stickerMessage!==void 0)mn.encode(e.stickerMessage,n.uint32(18).fork()).join();if(e.linkPreviewResponse!==void 0)ao.encode(e.linkPreviewResponse,n.uint32(26).fork()).join();if(e.placeholderMessageResendResponse!==void 0)so.encode(e.placeholderMessageResendResponse,n.uint32(34).fork()).join();if(e.waffleNonceFetchRequestResponse!==void 0)co.encode(e.waffleNonceFetchRequestResponse,n.uint32(42).fork()).join();if(e.fullHistorySyncOnDemandRequestResponse!==void 0)io.encode(e.fullHistorySyncOnDemandRequestResponse,n.uint32(50).fork()).join();if(e.companionMetaNonceFetchRequestResponse!==void 0)eo.encode(e.companionMetaNonceFetchRequestResponse,n.uint32(58).fork()).join();if(e.syncdSnapshotFatalRecoveryResponse!==void 0)uo.encode(e.syncdSnapshotFatalRecoveryResponse,n.uint32(66).fork()).join();if(e.companionCanonicalUserNonceFetchRequestResponse!==void 0)jd.encode(e.companionCanonicalUserNonceFetchRequestResponse,n.uint32(74).fork()).join();if(e.historySyncChunkRetryResponse!==void 0)to.encode(e.historySyncChunkRetryResponse,n.uint32(82).fork()).join();if(e.flowResponsesCsvBundle!==void 0)no.encode(e.flowResponsesCsvBundle,n.uint32(90).fork()).join();if(e.bizBroadcastInsightsContactListResponse!==void 0)Xd.encode(e.bizBroadcastInsightsContactListResponse,n.uint32(98).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Om();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.mediaUploadResult=i.int32();continue}case 2:{if(t!==18)break;a.stickerMessage=mn.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.linkPreviewResponse=ao.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.placeholderMessageResendResponse=so.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.waffleNonceFetchRequestResponse=co.decode(i,i.uint32());continue}case 6:{if(t!==50)break;a.fullHistorySyncOnDemandRequestResponse=io.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.companionMetaNonceFetchRequestResponse=eo.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.syncdSnapshotFatalRecoveryResponse=uo.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.companionCanonicalUserNonceFetchRequestResponse=jd.decode(i,i.uint32());continue}case 10:{if(t!==82)break;a.historySyncChunkRetryResponse=to.decode(i,i.uint32());continue}case 11:{if(t!==90)break;a.flowResponsesCsvBundle=no.decode(i,i.uint32());continue}case 12:{if(t!==98)break;a.bizBroadcastInsightsContactListResponse=Xd.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Zd.fromPartial(e??{})},fromPartial(e){let n=Om();return n.mediaUploadResult=e.mediaUploadResult??void 0,n.stickerMessage=e.stickerMessage!==void 0&&e.stickerMessage!==null?mn.fromPartial(e.stickerMessage):void 0,n.linkPreviewResponse=e.linkPreviewResponse!==void 0&&e.linkPreviewResponse!==null?ao.fromPartial(e.linkPreviewResponse):void 0,n.placeholderMessageResendResponse=e.placeholderMessageResendResponse!==void 0&&e.placeholderMessageResendResponse!==null?so.fromPartial(e.placeholderMessageResendResponse):void 0,n.waffleNonceFetchRequestResponse=e.waffleNonceFetchRequestResponse!==void 0&&e.waffleNonceFetchRequestResponse!==null?co.fromPartial(e.waffleNonceFetchRequestResponse):void 0,n.fullHistorySyncOnDemandRequestResponse=e.fullHistorySyncOnDemandRequestResponse!==void 0&&e.fullHistorySyncOnDemandRequestResponse!==null?io.fromPartial(e.fullHistorySyncOnDemandRequestResponse):void 0,n.companionMetaNonceFetchRequestResponse=e.companionMetaNonceFetchRequestResponse!==void 0&&e.companionMetaNonceFetchRequestResponse!==null?eo.fromPartial(e.companionMetaNonceFetchRequestResponse):void 0,n.syncdSnapshotFatalRecoveryResponse=e.syncdSnapshotFatalRecoveryResponse!==void 0&&e.syncdSnapshotFatalRecoveryResponse!==null?uo.fromPartial(e.syncdSnapshotFatalRecoveryResponse):void 0,n.companionCanonicalUserNonceFetchRequestResponse=e.companionCanonicalUserNonceFetchRequestResponse!==void 0&&e.companionCanonicalUserNonceFetchRequestResponse!==null?jd.fromPartial(e.companionCanonicalUserNonceFetchRequestResponse):void 0,n.historySyncChunkRetryResponse=e.historySyncChunkRetryResponse!==void 0&&e.historySyncChunkRetryResponse!==null?to.fromPartial(e.historySyncChunkRetryResponse):void 0,n.flowResponsesCsvBundle=e.flowResponsesCsvBundle!==void 0&&e.flowResponsesCsvBundle!==null?no.fromPartial(e.flowResponsesCsvBundle):void 0,n.bizBroadcastInsightsContactListResponse=e.bizBroadcastInsightsContactListResponse!==void 0&&e.bizBroadcastInsightsContactListResponse!==null?Xd.fromPartial(e.bizBroadcastInsightsContactListResponse):void 0,n}};function Um(){return{}}var Xd={encode(e,n=new s){if(e.campaignId!==void 0)n.uint32(10).string(e.campaignId);if(e.timestampMs!==void 0)n.uint32(16).int64(e.timestampMs);if(e.contacts!==void 0&&e.contacts.length!==0)for(let i of e.contacts)$d.encode(i,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Um();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.campaignId=i.string();continue}case 2:{if(t!==16)break;a.timestampMs=i.int64Number();continue}case 3:{if(t!==26)break;if(a.contacts===void 0)a.contacts=[];let o=$d.decode(i,i.uint32());if(o!==void 0)a.contacts.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Xd.fromPartial(e??{})},fromPartial(e){let n=Um();return n.campaignId=e.campaignId??void 0,n.timestampMs=e.timestampMs??void 0,n.contacts=e.contacts?.map((i)=>$d.fromPartial(i))||void 0,n}};function Tm(){return{}}var $d={encode(e,n=new s){if(e.contactJid!==void 0)n.uint32(10).string(e.contactJid);if(e.state!==void 0)n.uint32(16).int32(e.state);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Tm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.contactJid=i.string();continue}case 2:{if(t!==16)break;a.state=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return $d.fromPartial(e??{})},fromPartial(e){let n=Tm();return n.contactJid=e.contactJid??void 0,n.state=e.state??void 0,n}};function Lm(){return{}}var jd={encode(e,n=new s){if(e.nonce!==void 0)n.uint32(10).string(e.nonce);if(e.waFbid!==void 0)n.uint32(18).string(e.waFbid);if(e.forceRefresh!==void 0)n.uint32(24).bool(e.forceRefresh);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Lm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.nonce=i.string();continue}case 2:{if(t!==18)break;a.waFbid=i.string();continue}case 3:{if(t!==24)break;a.forceRefresh=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return jd.fromPartial(e??{})},fromPartial(e){let n=Lm();return n.nonce=e.nonce??void 0,n.waFbid=e.waFbid??void 0,n.forceRefresh=e.forceRefresh??void 0,n}};function wm(){return{}}var eo={encode(e,n=new s){if(e.nonce!==void 0)n.uint32(10).string(e.nonce);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=wm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.nonce=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return eo.fromPartial(e??{})},fromPartial(e){let n=wm();return n.nonce=e.nonce??void 0,n}};function Fm(){return{}}var no={encode(e,n=new s){if(e.flowId!==void 0)n.uint32(10).string(e.flowId);if(e.galaxyFlowDownloadRequestId!==void 0)n.uint32(18).string(e.galaxyFlowDownloadRequestId);if(e.fileName!==void 0)n.uint32(26).string(e.fileName);if(e.mimetype!==void 0)n.uint32(34).string(e.mimetype);if(e.fileSha256!==void 0)n.uint32(42).bytes(e.fileSha256);if(e.mediaKey!==void 0)n.uint32(50).bytes(e.mediaKey);if(e.fileEncSha256!==void 0)n.uint32(58).bytes(e.fileEncSha256);if(e.directPath!==void 0)n.uint32(66).string(e.directPath);if(e.mediaKeyTimestamp!==void 0)n.uint32(72).int64(e.mediaKeyTimestamp);if(e.fileLength!==void 0)n.uint32(80).uint64(e.fileLength);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Fm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.flowId=i.string();continue}case 2:{if(t!==18)break;a.galaxyFlowDownloadRequestId=i.string();continue}case 3:{if(t!==26)break;a.fileName=i.string();continue}case 4:{if(t!==34)break;a.mimetype=i.string();continue}case 5:{if(t!==42)break;a.fileSha256=i.bytes();continue}case 6:{if(t!==50)break;a.mediaKey=i.bytes();continue}case 7:{if(t!==58)break;a.fileEncSha256=i.bytes();continue}case 8:{if(t!==66)break;a.directPath=i.string();continue}case 9:{if(t!==72)break;a.mediaKeyTimestamp=i.int64Number();continue}case 10:{if(t!==80)break;a.fileLength=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return no.fromPartial(e??{})},fromPartial(e){let n=Fm();return n.flowId=e.flowId??void 0,n.galaxyFlowDownloadRequestId=e.galaxyFlowDownloadRequestId??void 0,n.fileName=e.fileName??void 0,n.mimetype=e.mimetype??void 0,n.fileSha256=e.fileSha256??void 0,n.mediaKey=e.mediaKey??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.directPath=e.directPath??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.fileLength=e.fileLength??void 0,n}};function Vm(){return{}}var io={encode(e,n=new s){if(e.requestMetadata!==void 0)he.encode(e.requestMetadata,n.uint32(10).fork()).join();if(e.responseCode!==void 0)n.uint32(16).int32(e.responseCode);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Vm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.requestMetadata=he.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.responseCode=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return io.fromPartial(e??{})},fromPartial(e){let n=Vm();return n.requestMetadata=e.requestMetadata!==void 0&&e.requestMetadata!==null?he.fromPartial(e.requestMetadata):void 0,n.responseCode=e.responseCode??void 0,n}};function Km(){return{}}var to={encode(e,n=new s){if(e.syncType!==void 0)n.uint32(8).int32(e.syncType);if(e.chunkOrder!==void 0)n.uint32(16).uint32(e.chunkOrder);if(e.requestId!==void 0)n.uint32(26).string(e.requestId);if(e.responseCode!==void 0)n.uint32(32).int32(e.responseCode);if(e.canRecover!==void 0)n.uint32(40).bool(e.canRecover);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Km();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.syncType=i.int32();continue}case 2:{if(t!==16)break;a.chunkOrder=i.uint32();continue}case 3:{if(t!==26)break;a.requestId=i.string();continue}case 4:{if(t!==32)break;a.responseCode=i.int32();continue}case 5:{if(t!==40)break;a.canRecover=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return to.fromPartial(e??{})},fromPartial(e){let n=Km();return n.syncType=e.syncType??void 0,n.chunkOrder=e.chunkOrder??void 0,n.requestId=e.requestId??void 0,n.responseCode=e.responseCode??void 0,n.canRecover=e.canRecover??void 0,n}};function Wm(){return{}}var ao={encode(e,n=new s){if(e.url!==void 0)n.uint32(10).string(e.url);if(e.title!==void 0)n.uint32(18).string(e.title);if(e.description!==void 0)n.uint32(26).string(e.description);if(e.thumbData!==void 0)n.uint32(34).bytes(e.thumbData);if(e.matchText!==void 0)n.uint32(50).string(e.matchText);if(e.previewType!==void 0)n.uint32(58).string(e.previewType);if(e.hqThumbnail!==void 0)ro.encode(e.hqThumbnail,n.uint32(66).fork()).join();if(e.previewMetadata!==void 0)oo.encode(e.previewMetadata,n.uint32(74).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Wm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.url=i.string();continue}case 2:{if(t!==18)break;a.title=i.string();continue}case 3:{if(t!==26)break;a.description=i.string();continue}case 4:{if(t!==34)break;a.thumbData=i.bytes();continue}case 6:{if(t!==50)break;a.matchText=i.string();continue}case 7:{if(t!==58)break;a.previewType=i.string();continue}case 8:{if(t!==66)break;a.hqThumbnail=ro.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.previewMetadata=oo.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ao.fromPartial(e??{})},fromPartial(e){let n=Wm();return n.url=e.url??void 0,n.title=e.title??void 0,n.description=e.description??void 0,n.thumbData=e.thumbData??void 0,n.matchText=e.matchText??void 0,n.previewType=e.previewType??void 0,n.hqThumbnail=e.hqThumbnail!==void 0&&e.hqThumbnail!==null?ro.fromPartial(e.hqThumbnail):void 0,n.previewMetadata=e.previewMetadata!==void 0&&e.previewMetadata!==null?oo.fromPartial(e.previewMetadata):void 0,n}};function Hm(){return{}}var ro={encode(e,n=new s){if(e.directPath!==void 0)n.uint32(10).string(e.directPath);if(e.thumbHash!==void 0)n.uint32(18).string(e.thumbHash);if(e.encThumbHash!==void 0)n.uint32(26).string(e.encThumbHash);if(e.mediaKey!==void 0)n.uint32(34).bytes(e.mediaKey);if(e.mediaKeyTimestampMs!==void 0)n.uint32(40).int64(e.mediaKeyTimestampMs);if(e.thumbWidth!==void 0)n.uint32(48).int32(e.thumbWidth);if(e.thumbHeight!==void 0)n.uint32(56).int32(e.thumbHeight);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Hm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.directPath=i.string();continue}case 2:{if(t!==18)break;a.thumbHash=i.string();continue}case 3:{if(t!==26)break;a.encThumbHash=i.string();continue}case 4:{if(t!==34)break;a.mediaKey=i.bytes();continue}case 5:{if(t!==40)break;a.mediaKeyTimestampMs=i.int64Number();continue}case 6:{if(t!==48)break;a.thumbWidth=i.int32();continue}case 7:{if(t!==56)break;a.thumbHeight=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ro.fromPartial(e??{})},fromPartial(e){let n=Hm();return n.directPath=e.directPath??void 0,n.thumbHash=e.thumbHash??void 0,n.encThumbHash=e.encThumbHash??void 0,n.mediaKey=e.mediaKey??void 0,n.mediaKeyTimestampMs=e.mediaKeyTimestampMs??void 0,n.thumbWidth=e.thumbWidth??void 0,n.thumbHeight=e.thumbHeight??void 0,n}};function qm(){return{}}var oo={encode(e,n=new s){if(e.isBusinessVerified!==void 0)n.uint32(8).bool(e.isBusinessVerified);if(e.providerName!==void 0)n.uint32(18).string(e.providerName);if(e.amount!==void 0)n.uint32(26).string(e.amount);if(e.offset!==void 0)n.uint32(34).string(e.offset);if(e.currency!==void 0)n.uint32(42).string(e.currency);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=qm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isBusinessVerified=i.bool();continue}case 2:{if(t!==18)break;a.providerName=i.string();continue}case 3:{if(t!==26)break;a.amount=i.string();continue}case 4:{if(t!==34)break;a.offset=i.string();continue}case 5:{if(t!==42)break;a.currency=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return oo.fromPartial(e??{})},fromPartial(e){let n=qm();return n.isBusinessVerified=e.isBusinessVerified??void 0,n.providerName=e.providerName??void 0,n.amount=e.amount??void 0,n.offset=e.offset??void 0,n.currency=e.currency??void 0,n}};function Gm(){return{}}var so={encode(e,n=new s){if(e.webMessageInfoBytes!==void 0)n.uint32(10).bytes(e.webMessageInfoBytes);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Gm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.webMessageInfoBytes=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return so.fromPartial(e??{})},fromPartial(e){let n=Gm();return n.webMessageInfoBytes=e.webMessageInfoBytes??void 0,n}};function Jm(){return{}}var uo={encode(e,n=new s){if(e.collectionSnapshot!==void 0)n.uint32(10).bytes(e.collectionSnapshot);if(e.isCompressed!==void 0)n.uint32(16).bool(e.isCompressed);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Jm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.collectionSnapshot=i.bytes();continue}case 2:{if(t!==16)break;a.isCompressed=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return uo.fromPartial(e??{})},fromPartial(e){let n=Jm();return n.collectionSnapshot=e.collectionSnapshot??void 0,n.isCompressed=e.isCompressed??void 0,n}};function Qm(){return{}}var co={encode(e,n=new s){if(e.nonce!==void 0)n.uint32(10).string(e.nonce);if(e.waEntFbid!==void 0)n.uint32(18).string(e.waEntFbid);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Qm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.nonce=i.string();continue}case 2:{if(t!==18)break;a.waEntFbid=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return co.fromPartial(e??{})},fromPartial(e){let n=Qm();return n.nonce=e.nonce??void 0,n.waEntFbid=e.waEntFbid??void 0,n}};function zm(){return{}}var fo={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.type!==void 0)n.uint32(16).int32(e.type);if(e.senderTimestampMs!==void 0)n.uint32(24).int64(e.senderTimestampMs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=zm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.type=i.int32();continue}case 3:{if(t!==24)break;a.senderTimestampMs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return fo.fromPartial(e??{})},fromPartial(e){let n=zm();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.type=e.type??void 0,n.senderTimestampMs=e.senderTimestampMs??void 0,n}};function Ym(){return{}}var lo={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).int32(e.type);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ym();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return lo.fromPartial(e??{})},fromPartial(e){let n=Ym();return n.type=e.type??void 0,n}};function Zm(){return{}}var po={encode(e,n=new s){if(e.pollCreationMessageKey!==void 0)_.encode(e.pollCreationMessageKey,n.uint32(10).fork()).join();if(e.addOption!==void 0)le.encode(e.addOption,n.uint32(18).fork()).join();if(e.metadata!==void 0)Ae.encode(e.metadata,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Zm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.pollCreationMessageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.addOption=le.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.metadata=Ae.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return po.fromPartial(e??{})},fromPartial(e){let n=Zm();return n.pollCreationMessageKey=e.pollCreationMessageKey!==void 0&&e.pollCreationMessageKey!==null?_.fromPartial(e.pollCreationMessageKey):void 0,n.addOption=e.addOption!==void 0&&e.addOption!==null?le.fromPartial(e.addOption):void 0,n.metadata=e.metadata!==void 0&&e.metadata!==null?Ae.fromPartial(e.metadata):void 0,n}};function Xm(){return{}}var ee={encode(e,n=new s){if(e.encKey!==void 0)n.uint32(10).bytes(e.encKey);if(e.name!==void 0)n.uint32(18).string(e.name);if(e.options!==void 0&&e.options.length!==0)for(let i of e.options)le.encode(i,n.uint32(26).fork()).join();if(e.selectableOptionsCount!==void 0)n.uint32(32).uint32(e.selectableOptionsCount);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(42).fork()).join();if(e.pollContentType!==void 0)n.uint32(48).int32(e.pollContentType);if(e.pollType!==void 0)n.uint32(56).int32(e.pollType);if(e.correctAnswer!==void 0)le.encode(e.correctAnswer,n.uint32(66).fork()).join();if(e.endTime!==void 0)n.uint32(72).int64(e.endTime);if(e.hideParticipantName!==void 0)n.uint32(80).bool(e.hideParticipantName);if(e.allowAddOption!==void 0)n.uint32(88).bool(e.allowAddOption);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Xm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.encKey=i.bytes();continue}case 2:{if(t!==18)break;a.name=i.string();continue}case 3:{if(t!==26)break;if(a.options===void 0)a.options=[];let o=le.decode(i,i.uint32());if(o!==void 0)a.options.push(o);continue}case 4:{if(t!==32)break;a.selectableOptionsCount=i.uint32();continue}case 5:{if(t!==42)break;a.contextInfo=b.decode(i,i.uint32());continue}case 6:{if(t!==48)break;a.pollContentType=i.int32();continue}case 7:{if(t!==56)break;a.pollType=i.int32();continue}case 8:{if(t!==66)break;a.correctAnswer=le.decode(i,i.uint32());continue}case 9:{if(t!==72)break;a.endTime=i.int64Number();continue}case 10:{if(t!==80)break;a.hideParticipantName=i.bool();continue}case 11:{if(t!==88)break;a.allowAddOption=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ee.fromPartial(e??{})},fromPartial(e){let n=Xm();return n.encKey=e.encKey??void 0,n.name=e.name??void 0,n.options=e.options?.map((i)=>le.fromPartial(i))||void 0,n.selectableOptionsCount=e.selectableOptionsCount??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.pollContentType=e.pollContentType??void 0,n.pollType=e.pollType??void 0,n.correctAnswer=e.correctAnswer!==void 0&&e.correctAnswer!==null?le.fromPartial(e.correctAnswer):void 0,n.endTime=e.endTime??void 0,n.hideParticipantName=e.hideParticipantName??void 0,n.allowAddOption=e.allowAddOption??void 0,n}};function $m(){return{}}var le={encode(e,n=new s){if(e.optionName!==void 0)n.uint32(10).string(e.optionName);if(e.optionHash!==void 0)n.uint32(18).string(e.optionHash);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=$m();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.optionName=i.string();continue}case 2:{if(t!==18)break;a.optionHash=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return le.fromPartial(e??{})},fromPartial(e){let n=$m();return n.optionName=e.optionName??void 0,n.optionHash=e.optionHash??void 0,n}};function jm(){return{}}var go={encode(e,n=new s){if(e.encPayload!==void 0)n.uint32(10).bytes(e.encPayload);if(e.encIv!==void 0)n.uint32(18).bytes(e.encIv);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=jm();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.encPayload=i.bytes();continue}case 2:{if(t!==18)break;a.encIv=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return go.fromPartial(e??{})},fromPartial(e){let n=jm();return n.encPayload=e.encPayload??void 0,n.encIv=e.encIv??void 0,n}};function e3(){return{}}var Ke={encode(e,n=new s){if(e.name!==void 0)n.uint32(10).string(e.name);if(e.pollVotes!==void 0&&e.pollVotes.length!==0)for(let i of e.pollVotes)yo.encode(i,n.uint32(18).fork()).join();if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(26).fork()).join();if(e.pollType!==void 0)n.uint32(32).int32(e.pollType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=e3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.name=i.string();continue}case 2:{if(t!==18)break;if(a.pollVotes===void 0)a.pollVotes=[];let o=yo.decode(i,i.uint32());if(o!==void 0)a.pollVotes.push(o);continue}case 3:{if(t!==26)break;a.contextInfo=b.decode(i,i.uint32());continue}case 4:{if(t!==32)break;a.pollType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ke.fromPartial(e??{})},fromPartial(e){let n=e3();return n.name=e.name??void 0,n.pollVotes=e.pollVotes?.map((i)=>yo.fromPartial(i))||void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.pollType=e.pollType??void 0,n}};function n3(){return{}}var yo={encode(e,n=new s){if(e.optionName!==void 0)n.uint32(10).string(e.optionName);if(e.optionVoteCount!==void 0)n.uint32(16).int64(e.optionVoteCount);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=n3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.optionName=i.string();continue}case 2:{if(t!==16)break;a.optionVoteCount=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return yo.fromPartial(e??{})},fromPartial(e){let n=n3();return n.optionName=e.optionName??void 0,n.optionVoteCount=e.optionVoteCount??void 0,n}};function i3(){return{}}var Mo={encode(e,n=new s){if(e.pollCreationMessageKey!==void 0)_.encode(e.pollCreationMessageKey,n.uint32(10).fork()).join();if(e.vote!==void 0)go.encode(e.vote,n.uint32(18).fork()).join();if(e.metadata!==void 0)Ae.encode(e.metadata,n.uint32(26).fork()).join();if(e.senderTimestampMs!==void 0)n.uint32(32).int64(e.senderTimestampMs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=i3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.pollCreationMessageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.vote=go.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.metadata=Ae.decode(i,i.uint32());continue}case 4:{if(t!==32)break;a.senderTimestampMs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Mo.fromPartial(e??{})},fromPartial(e){let n=i3();return n.pollCreationMessageKey=e.pollCreationMessageKey!==void 0&&e.pollCreationMessageKey!==null?_.fromPartial(e.pollCreationMessageKey):void 0,n.vote=e.vote!==void 0&&e.vote!==null?go.fromPartial(e.vote):void 0,n.metadata=e.metadata!==void 0&&e.metadata!==null?Ae.fromPartial(e.metadata):void 0,n.senderTimestampMs=e.senderTimestampMs??void 0,n}};function t3(){return{}}var Ae={encode(e,n=new s){if(e.pollNameHash!==void 0)n.uint32(10).bytes(e.pollNameHash);if(e.lastEditStanzaId!==void 0)n.uint32(18).string(e.lastEditStanzaId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=t3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.pollNameHash=i.bytes();continue}case 2:{if(t!==18)break;a.lastEditStanzaId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ae.fromPartial(e??{})},fromPartial(e){let n=t3();return n.pollNameHash=e.pollNameHash??void 0,n.lastEditStanzaId=e.lastEditStanzaId??void 0,n}};function a3(){return{}}var Be={encode(e,n=new s){if(e.selectedOptions!==void 0&&e.selectedOptions.length!==0)for(let i of e.selectedOptions)n.uint32(10).bytes(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=a3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.selectedOptions===void 0)a.selectedOptions=[];let o=i.bytes();if(o!==void 0)a.selectedOptions.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Be.fromPartial(e??{})},fromPartial(e){let n=a3();return n.selectedOptions=e.selectedOptions?.map((i)=>i)||void 0,n}};function r3(){return{}}var Mn={encode(e,n=new s){if(e.product!==void 0)_o.encode(e.product,n.uint32(10).fork()).join();if(e.businessOwnerJid!==void 0)n.uint32(18).string(e.businessOwnerJid);if(e.catalog!==void 0)mo.encode(e.catalog,n.uint32(34).fork()).join();if(e.body!==void 0)n.uint32(42).string(e.body);if(e.footer!==void 0)n.uint32(50).string(e.footer);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=r3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.product=_o.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.businessOwnerJid=i.string();continue}case 4:{if(t!==34)break;a.catalog=mo.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.body=i.string();continue}case 6:{if(t!==50)break;a.footer=i.string();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Mn.fromPartial(e??{})},fromPartial(e){let n=r3();return n.product=e.product!==void 0&&e.product!==null?_o.fromPartial(e.product):void 0,n.businessOwnerJid=e.businessOwnerJid??void 0,n.catalog=e.catalog!==void 0&&e.catalog!==null?mo.fromPartial(e.catalog):void 0,n.body=e.body??void 0,n.footer=e.footer??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n}};function d3(){return{}}var mo={encode(e,n=new s){if(e.catalogImage!==void 0)J.encode(e.catalogImage,n.uint32(10).fork()).join();if(e.title!==void 0)n.uint32(18).string(e.title);if(e.description!==void 0)n.uint32(26).string(e.description);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=d3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.catalogImage=J.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.title=i.string();continue}case 3:{if(t!==26)break;a.description=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return mo.fromPartial(e??{})},fromPartial(e){let n=d3();return n.catalogImage=e.catalogImage!==void 0&&e.catalogImage!==null?J.fromPartial(e.catalogImage):void 0,n.title=e.title??void 0,n.description=e.description??void 0,n}};function o3(){return{}}var _o={encode(e,n=new s){if(e.productImage!==void 0)J.encode(e.productImage,n.uint32(10).fork()).join();if(e.productId!==void 0)n.uint32(18).string(e.productId);if(e.title!==void 0)n.uint32(26).string(e.title);if(e.description!==void 0)n.uint32(34).string(e.description);if(e.currencyCode!==void 0)n.uint32(42).string(e.currencyCode);if(e.priceAmount1000!==void 0)n.uint32(48).int64(e.priceAmount1000);if(e.retailerId!==void 0)n.uint32(58).string(e.retailerId);if(e.url!==void 0)n.uint32(66).string(e.url);if(e.productImageCount!==void 0)n.uint32(72).uint32(e.productImageCount);if(e.firstImageId!==void 0)n.uint32(90).string(e.firstImageId);if(e.salePriceAmount1000!==void 0)n.uint32(96).int64(e.salePriceAmount1000);if(e.signedUrl!==void 0)n.uint32(106).string(e.signedUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=o3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.productImage=J.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.productId=i.string();continue}case 3:{if(t!==26)break;a.title=i.string();continue}case 4:{if(t!==34)break;a.description=i.string();continue}case 5:{if(t!==42)break;a.currencyCode=i.string();continue}case 6:{if(t!==48)break;a.priceAmount1000=i.int64Number();continue}case 7:{if(t!==58)break;a.retailerId=i.string();continue}case 8:{if(t!==66)break;a.url=i.string();continue}case 9:{if(t!==72)break;a.productImageCount=i.uint32();continue}case 11:{if(t!==90)break;a.firstImageId=i.string();continue}case 12:{if(t!==96)break;a.salePriceAmount1000=i.int64Number();continue}case 13:{if(t!==106)break;a.signedUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return _o.fromPartial(e??{})},fromPartial(e){let n=o3();return n.productImage=e.productImage!==void 0&&e.productImage!==null?J.fromPartial(e.productImage):void 0,n.productId=e.productId??void 0,n.title=e.title??void 0,n.description=e.description??void 0,n.currencyCode=e.currencyCode??void 0,n.priceAmount1000=e.priceAmount1000??void 0,n.retailerId=e.retailerId??void 0,n.url=e.url??void 0,n.productImageCount=e.productImageCount??void 0,n.firstImageId=e.firstImageId??void 0,n.salePriceAmount1000=e.salePriceAmount1000??void 0,n.signedUrl=e.signedUrl??void 0,n}};function s3(){return{}}var ho={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.type!==void 0)n.uint32(16).int32(e.type);if(e.ephemeralExpiration!==void 0)n.uint32(32).uint32(e.ephemeralExpiration);if(e.ephemeralSettingTimestamp!==void 0)n.uint32(40).int64(e.ephemeralSettingTimestamp);if(e.historySyncNotification!==void 0)nd.encode(e.historySyncNotification,n.uint32(50).fork()).join();if(e.appStateSyncKeyShare!==void 0)mr.encode(e.appStateSyncKeyShare,n.uint32(58).fork()).join();if(e.appStateSyncKeyRequest!==void 0)Mr.encode(e.appStateSyncKeyRequest,n.uint32(66).fork()).join();if(e.initialSecurityNotificationSettingSync!==void 0)id.encode(e.initialSecurityNotificationSettingSync,n.uint32(74).fork()).join();if(e.appStateFatalExceptionNotification!==void 0)lr.encode(e.appStateFatalExceptionNotification,n.uint32(82).fork()).join();if(e.disappearingMode!==void 0)ye.encode(e.disappearingMode,n.uint32(90).fork()).join();if(e.editedMessage!==void 0)F.encode(e.editedMessage,n.uint32(114).fork()).join();if(e.timestampMs!==void 0)n.uint32(120).int64(e.timestampMs);if(e.peerDataOperationRequestMessage!==void 0)Ld.encode(e.peerDataOperationRequestMessage,n.uint32(130).fork()).join();if(e.peerDataOperationRequestResponseMessage!==void 0)Yd.encode(e.peerDataOperationRequestResponseMessage,n.uint32(138).fork()).join();if(e.botFeedbackMessage!==void 0)Ri.encode(e.botFeedbackMessage,n.uint32(146).fork()).join();if(e.invokerJid!==void 0)n.uint32(154).string(e.invokerJid);if(e.requestWelcomeMessageMetadata!==void 0)bo.encode(e.requestWelcomeMessageMetadata,n.uint32(162).fork()).join();if(e.mediaNotifyMessage!==void 0)ur.encode(e.mediaNotifyMessage,n.uint32(170).fork()).join();if(e.cloudApiThreadControlNotification!==void 0)Or.encode(e.cloudApiThreadControlNotification,n.uint32(178).fork()).join();if(e.lidMigrationMappingSyncMessage!==void 0)nr.encode(e.lidMigrationMappingSyncMessage,n.uint32(186).fork()).join();if(e.limitSharing!==void 0)fe.encode(e.limitSharing,n.uint32(194).fork()).join();if(e.aiPsiMetadata!==void 0)n.uint32(202).bytes(e.aiPsiMetadata);if(e.aiQueryFanout!==void 0)zn.encode(e.aiQueryFanout,n.uint32(210).fork()).join();if(e.memberLabel!==void 0)_e.encode(e.memberLabel,n.uint32(218).fork()).join();if(e.aiMediaCollectionMessage!==void 0)Gn.encode(e.aiMediaCollectionMessage,n.uint32(226).fork()).join();if(e.afterReadDuration!==void 0)n.uint32(232).uint32(e.afterReadDuration);if(e.chatThemeSetting!==void 0)Nr.encode(e.chatThemeSetting,n.uint32(242).fork()).join();if(e.aiMetadataOperation!==void 0)Qn.encode(e.aiMetadataOperation,n.uint32(250).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=s3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.type=i.int32();continue}case 4:{if(t!==32)break;a.ephemeralExpiration=i.uint32();continue}case 5:{if(t!==40)break;a.ephemeralSettingTimestamp=i.int64Number();continue}case 6:{if(t!==50)break;a.historySyncNotification=nd.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.appStateSyncKeyShare=mr.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.appStateSyncKeyRequest=Mr.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.initialSecurityNotificationSettingSync=id.decode(i,i.uint32());continue}case 10:{if(t!==82)break;a.appStateFatalExceptionNotification=lr.decode(i,i.uint32());continue}case 11:{if(t!==90)break;a.disappearingMode=ye.decode(i,i.uint32());continue}case 14:{if(t!==114)break;a.editedMessage=F.decode(i,i.uint32());continue}case 15:{if(t!==120)break;a.timestampMs=i.int64Number();continue}case 16:{if(t!==130)break;a.peerDataOperationRequestMessage=Ld.decode(i,i.uint32());continue}case 17:{if(t!==138)break;a.peerDataOperationRequestResponseMessage=Yd.decode(i,i.uint32());continue}case 18:{if(t!==146)break;a.botFeedbackMessage=Ri.decode(i,i.uint32());continue}case 19:{if(t!==154)break;a.invokerJid=i.string();continue}case 20:{if(t!==162)break;a.requestWelcomeMessageMetadata=bo.decode(i,i.uint32());continue}case 21:{if(t!==170)break;a.mediaNotifyMessage=ur.decode(i,i.uint32());continue}case 22:{if(t!==178)break;a.cloudApiThreadControlNotification=Or.decode(i,i.uint32());continue}case 23:{if(t!==186)break;a.lidMigrationMappingSyncMessage=nr.decode(i,i.uint32());continue}case 24:{if(t!==194)break;a.limitSharing=fe.decode(i,i.uint32());continue}case 25:{if(t!==202)break;a.aiPsiMetadata=i.bytes();continue}case 26:{if(t!==210)break;a.aiQueryFanout=zn.decode(i,i.uint32());continue}case 27:{if(t!==218)break;a.memberLabel=_e.decode(i,i.uint32());continue}case 28:{if(t!==226)break;a.aiMediaCollectionMessage=Gn.decode(i,i.uint32());continue}case 29:{if(t!==232)break;a.afterReadDuration=i.uint32();continue}case 30:{if(t!==242)break;a.chatThemeSetting=Nr.decode(i,i.uint32());continue}case 31:{if(t!==250)break;a.aiMetadataOperation=Qn.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ho.fromPartial(e??{})},fromPartial(e){let n=s3();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.type=e.type??void 0,n.ephemeralExpiration=e.ephemeralExpiration??void 0,n.ephemeralSettingTimestamp=e.ephemeralSettingTimestamp??void 0,n.historySyncNotification=e.historySyncNotification!==void 0&&e.historySyncNotification!==null?nd.fromPartial(e.historySyncNotification):void 0,n.appStateSyncKeyShare=e.appStateSyncKeyShare!==void 0&&e.appStateSyncKeyShare!==null?mr.fromPartial(e.appStateSyncKeyShare):void 0,n.appStateSyncKeyRequest=e.appStateSyncKeyRequest!==void 0&&e.appStateSyncKeyRequest!==null?Mr.fromPartial(e.appStateSyncKeyRequest):void 0,n.initialSecurityNotificationSettingSync=e.initialSecurityNotificationSettingSync!==void 0&&e.initialSecurityNotificationSettingSync!==null?id.fromPartial(e.initialSecurityNotificationSettingSync):void 0,n.appStateFatalExceptionNotification=e.appStateFatalExceptionNotification!==void 0&&e.appStateFatalExceptionNotification!==null?lr.fromPartial(e.appStateFatalExceptionNotification):void 0,n.disappearingMode=e.disappearingMode!==void 0&&e.disappearingMode!==null?ye.fromPartial(e.disappearingMode):void 0,n.editedMessage=e.editedMessage!==void 0&&e.editedMessage!==null?F.fromPartial(e.editedMessage):void 0,n.timestampMs=e.timestampMs??void 0,n.peerDataOperationRequestMessage=e.peerDataOperationRequestMessage!==void 0&&e.peerDataOperationRequestMessage!==null?Ld.fromPartial(e.peerDataOperationRequestMessage):void 0,n.peerDataOperationRequestResponseMessage=e.peerDataOperationRequestResponseMessage!==void 0&&e.peerDataOperationRequestResponseMessage!==null?Yd.fromPartial(e.peerDataOperationRequestResponseMessage):void 0,n.botFeedbackMessage=e.botFeedbackMessage!==void 0&&e.botFeedbackMessage!==null?Ri.fromPartial(e.botFeedbackMessage):void 0,n.invokerJid=e.invokerJid??void 0,n.requestWelcomeMessageMetadata=e.requestWelcomeMessageMetadata!==void 0&&e.requestWelcomeMessageMetadata!==null?bo.fromPartial(e.requestWelcomeMessageMetadata):void 0,n.mediaNotifyMessage=e.mediaNotifyMessage!==void 0&&e.mediaNotifyMessage!==null?ur.fromPartial(e.mediaNotifyMessage):void 0,n.cloudApiThreadControlNotification=e.cloudApiThreadControlNotification!==void 0&&e.cloudApiThreadControlNotification!==null?Or.fromPartial(e.cloudApiThreadControlNotification):void 0,n.lidMigrationMappingSyncMessage=e.lidMigrationMappingSyncMessage!==void 0&&e.lidMigrationMappingSyncMessage!==null?nr.fromPartial(e.lidMigrationMappingSyncMessage):void 0,n.limitSharing=e.limitSharing!==void 0&&e.limitSharing!==null?fe.fromPartial(e.limitSharing):void 0,n.aiPsiMetadata=e.aiPsiMetadata??void 0,n.aiQueryFanout=e.aiQueryFanout!==void 0&&e.aiQueryFanout!==null?zn.fromPartial(e.aiQueryFanout):void 0,n.memberLabel=e.memberLabel!==void 0&&e.memberLabel!==null?_e.fromPartial(e.memberLabel):void 0,n.aiMediaCollectionMessage=e.aiMediaCollectionMessage!==void 0&&e.aiMediaCollectionMessage!==null?Gn.fromPartial(e.aiMediaCollectionMessage):void 0,n.afterReadDuration=e.afterReadDuration??void 0,n.chatThemeSetting=e.chatThemeSetting!==void 0&&e.chatThemeSetting!==null?Nr.fromPartial(e.chatThemeSetting):void 0,n.aiMetadataOperation=e.aiMetadataOperation!==void 0&&e.aiMetadataOperation!==null?Qn.fromPartial(e.aiMetadataOperation):void 0,n}};function u3(){return{}}var ko={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.text!==void 0)n.uint32(18).string(e.text);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=u3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.text=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ko.fromPartial(e??{})},fromPartial(e){let n=u3();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.text=e.text??void 0,n}};function c3(){return{}}var Ao={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.text!==void 0)n.uint32(18).string(e.text);if(e.groupingKey!==void 0)n.uint32(26).string(e.groupingKey);if(e.senderTimestampMs!==void 0)n.uint32(32).int64(e.senderTimestampMs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=c3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.text=i.string();continue}case 3:{if(t!==26)break;a.groupingKey=i.string();continue}case 4:{if(t!==32)break;a.senderTimestampMs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ao.fromPartial(e??{})},fromPartial(e){let n=c3();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.text=e.text??void 0,n.groupingKey=e.groupingKey??void 0,n.senderTimestampMs=e.senderTimestampMs??void 0,n}};function f3(){return{}}var So={encode(e,n=new s){if(e.noteMessage!==void 0)F.encode(e.noteMessage,n.uint32(34).fork()).join();if(e.currencyCodeIso4217!==void 0)n.uint32(10).string(e.currencyCodeIso4217);if(e.amount1000!==void 0)n.uint32(16).uint64(e.amount1000);if(e.requestFrom!==void 0)n.uint32(26).string(e.requestFrom);if(e.expiryTimestamp!==void 0)n.uint32(40).int64(e.expiryTimestamp);if(e.amount!==void 0)Z.encode(e.amount,n.uint32(50).fork()).join();if(e.background!==void 0)Sn.encode(e.background,n.uint32(58).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=f3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 4:{if(t!==34)break;a.noteMessage=F.decode(i,i.uint32());continue}case 1:{if(t!==10)break;a.currencyCodeIso4217=i.string();continue}case 2:{if(t!==16)break;a.amount1000=i.uint64Number();continue}case 3:{if(t!==26)break;a.requestFrom=i.string();continue}case 5:{if(t!==40)break;a.expiryTimestamp=i.int64Number();continue}case 6:{if(t!==50)break;a.amount=Z.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.background=Sn.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return So.fromPartial(e??{})},fromPartial(e){let n=f3();return n.noteMessage=e.noteMessage!==void 0&&e.noteMessage!==null?F.fromPartial(e.noteMessage):void 0,n.currencyCodeIso4217=e.currencyCodeIso4217??void 0,n.amount1000=e.amount1000??void 0,n.requestFrom=e.requestFrom??void 0,n.expiryTimestamp=e.expiryTimestamp??void 0,n.amount=e.amount!==void 0&&e.amount!==null?Z.fromPartial(e.amount):void 0,n.background=e.background!==void 0&&e.background!==null?Sn.fromPartial(e.background):void 0,n}};function l3(){return{}}var Po={encode(e,n=new s){if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=l3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.contextInfo=b.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Po.fromPartial(e??{})},fromPartial(e){let n=l3();return n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n}};function p3(){return{}}var bo={encode(e,n=new s){if(e.localChatState!==void 0)n.uint32(8).int32(e.localChatState);if(e.welcomeTrigger!==void 0)n.uint32(16).int32(e.welcomeTrigger);if(e.botAgentMetadata!==void 0)Si.encode(e.botAgentMetadata,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=p3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.localChatState=i.int32();continue}case 2:{if(t!==16)break;a.welcomeTrigger=i.int32();continue}case 3:{if(t!==26)break;a.botAgentMetadata=Si.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return bo.fromPartial(e??{})},fromPartial(e){let n=p3();return n.localChatState=e.localChatState??void 0,n.welcomeTrigger=e.welcomeTrigger??void 0,n.botAgentMetadata=e.botAgentMetadata!==void 0&&e.botAgentMetadata!==null?Si.fromPartial(e.botAgentMetadata):void 0,n}};function g3(){return{}}var Io={encode(e,n=new s){if(e.chatJid!==void 0)n.uint32(10).string(e.chatJid);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=g3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.chatJid=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Io.fromPartial(e??{})},fromPartial(e){let n=g3();return n.chatJid=e.chatJid??void 0,n}};function y3(){return{}}var Ro={encode(e,n=new s){if(e.scheduledTimestampMs!==void 0)n.uint32(8).int64(e.scheduledTimestampMs);if(e.callType!==void 0)n.uint32(16).int32(e.callType);if(e.title!==void 0)n.uint32(26).string(e.title);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=y3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.scheduledTimestampMs=i.int64Number();continue}case 2:{if(t!==16)break;a.callType=i.int32();continue}case 3:{if(t!==26)break;a.title=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ro.fromPartial(e??{})},fromPartial(e){let n=y3();return n.scheduledTimestampMs=e.scheduledTimestampMs??void 0,n.callType=e.callType??void 0,n.title=e.title??void 0,n}};function M3(){return{}}var Do={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.editType!==void 0)n.uint32(16).int32(e.editType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=M3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.editType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Do.fromPartial(e??{})},fromPartial(e){let n=M3();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.editType=e.editType??void 0,n}};function m3(){return{}}var Eo={encode(e,n=new s){if(e.targetMessageKey!==void 0)_.encode(e.targetMessageKey,n.uint32(10).fork()).join();if(e.encPayload!==void 0)n.uint32(18).bytes(e.encPayload);if(e.encIv!==void 0)n.uint32(26).bytes(e.encIv);if(e.secretEncType!==void 0)n.uint32(32).int32(e.secretEncType);if(e.remoteKeyId!==void 0)n.uint32(42).string(e.remoteKeyId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=m3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.targetMessageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.encPayload=i.bytes();continue}case 3:{if(t!==26)break;a.encIv=i.bytes();continue}case 4:{if(t!==32)break;a.secretEncType=i.int32();continue}case 5:{if(t!==42)break;a.remoteKeyId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Eo.fromPartial(e??{})},fromPartial(e){let n=m3();return n.targetMessageKey=e.targetMessageKey!==void 0&&e.targetMessageKey!==null?_.fromPartial(e.targetMessageKey):void 0,n.encPayload=e.encPayload??void 0,n.encIv=e.encIv??void 0,n.secretEncType=e.secretEncType??void 0,n.remoteKeyId=e.remoteKeyId??void 0,n}};function _3(){return{}}var Bo={encode(e,n=new s){if(e.noteMessage!==void 0)F.encode(e.noteMessage,n.uint32(18).fork()).join();if(e.requestMessageKey!==void 0)_.encode(e.requestMessageKey,n.uint32(26).fork()).join();if(e.background!==void 0)Sn.encode(e.background,n.uint32(34).fork()).join();if(e.transactionData!==void 0)n.uint32(42).string(e.transactionData);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=_3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 2:{if(t!==18)break;a.noteMessage=F.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.requestMessageKey=_.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.background=Sn.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.transactionData=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Bo.fromPartial(e??{})},fromPartial(e){let n=_3();return n.noteMessage=e.noteMessage!==void 0&&e.noteMessage!==null?F.fromPartial(e.noteMessage):void 0,n.requestMessageKey=e.requestMessageKey!==void 0&&e.requestMessageKey!==null?_.fromPartial(e.requestMessageKey):void 0,n.background=e.background!==void 0&&e.background!==null?Sn.fromPartial(e.background):void 0,n.transactionData=e.transactionData??void 0,n}};function h3(){return{}}var We={encode(e,n=new s){if(e.groupId!==void 0)n.uint32(10).string(e.groupId);if(e.axolotlSenderKeyDistributionMessage!==void 0)n.uint32(18).bytes(e.axolotlSenderKeyDistributionMessage);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=h3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.groupId=i.string();continue}case 2:{if(t!==18)break;a.axolotlSenderKeyDistributionMessage=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return We.fromPartial(e??{})},fromPartial(e){let n=h3();return n.groupId=e.groupId??void 0,n.axolotlSenderKeyDistributionMessage=e.axolotlSenderKeyDistributionMessage??void 0,n}};function k3(){return{}}var Co={encode(e,n=new s){if(e.splitId!==void 0)n.uint32(10).string(e.splitId);if(e.totalAmount!==void 0)Z.encode(e.totalAmount,n.uint32(18).fork()).join();if(e.description!==void 0)n.uint32(26).string(e.description);if(e.requesterJid!==void 0)n.uint32(34).string(e.requesterJid);if(e.participants!==void 0&&e.participants.length!==0)for(let i of e.participants)vo.encode(i,n.uint32(42).fork()).join();if(e.createdAtMs!==void 0)n.uint32(48).int64(e.createdAtMs);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=k3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.splitId=i.string();continue}case 2:{if(t!==18)break;a.totalAmount=Z.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.description=i.string();continue}case 4:{if(t!==34)break;a.requesterJid=i.string();continue}case 5:{if(t!==42)break;if(a.participants===void 0)a.participants=[];let o=vo.decode(i,i.uint32());if(o!==void 0)a.participants.push(o);continue}case 6:{if(t!==48)break;a.createdAtMs=i.int64Number();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Co.fromPartial(e??{})},fromPartial(e){let n=k3();return n.splitId=e.splitId??void 0,n.totalAmount=e.totalAmount!==void 0&&e.totalAmount!==null?Z.fromPartial(e.totalAmount):void 0,n.description=e.description??void 0,n.requesterJid=e.requesterJid??void 0,n.participants=e.participants?.map((i)=>vo.fromPartial(i))||void 0,n.createdAtMs=e.createdAtMs??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n}};function A3(){return{}}var vo={encode(e,n=new s){if(e.jid!==void 0)n.uint32(10).string(e.jid);if(e.amount!==void 0)Z.encode(e.amount,n.uint32(18).fork()).join();if(e.status!==void 0)n.uint32(24).int32(e.status);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=A3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.jid=i.string();continue}case 2:{if(t!==18)break;a.amount=Z.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.status=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return vo.fromPartial(e??{})},fromPartial(e){let n=A3();return n.jid=e.jid??void 0,n.amount=e.amount!==void 0&&e.amount!==null?Z.fromPartial(e.amount):void 0,n.status=e.status??void 0,n}};function S3(){return{}}var xo={encode(e,n=new s){if(e.responseMessageKey!==void 0)_.encode(e.responseMessageKey,n.uint32(10).fork()).join();if(e.originalMessageKey!==void 0)_.encode(e.originalMessageKey,n.uint32(18).fork()).join();if(e.type!==void 0)n.uint32(24).int32(e.type);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=S3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.responseMessageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.originalMessageKey=_.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.type=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return xo.fromPartial(e??{})},fromPartial(e){let n=S3();return n.responseMessageKey=e.responseMessageKey!==void 0&&e.responseMessageKey!==null?_.fromPartial(e.responseMessageKey):void 0,n.originalMessageKey=e.originalMessageKey!==void 0&&e.originalMessageKey!==null?_.fromPartial(e.originalMessageKey):void 0,n.type=e.type??void 0,n}};function P3(){return{}}var No={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.text!==void 0)n.uint32(18).string(e.text);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=P3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.text=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return No.fromPartial(e??{})},fromPartial(e){let n=P3();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.text=e.text??void 0,n}};function b3(){return{}}var Oo={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).int32(e.type);if(e.text!==void 0)n.uint32(18).string(e.text);if(e.thumbnail!==void 0)n.uint32(26).bytes(e.thumbnail);if(e.originalStatusId!==void 0)_.encode(e.originalStatusId,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=b3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.int32();continue}case 2:{if(t!==18)break;a.text=i.string();continue}case 3:{if(t!==26)break;a.thumbnail=i.bytes();continue}case 4:{if(t!==34)break;a.originalStatusId=_.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Oo.fromPartial(e??{})},fromPartial(e){let n=b3();return n.type=e.type??void 0,n.text=e.text??void 0,n.thumbnail=e.thumbnail??void 0,n.originalStatusId=e.originalStatusId!==void 0&&e.originalStatusId!==null?_.fromPartial(e.originalStatusId):void 0,n}};function I3(){return{}}var Uo={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.stickerKey!==void 0)n.uint32(18).string(e.stickerKey);if(e.type!==void 0)n.uint32(24).int32(e.type);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=I3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.stickerKey=i.string();continue}case 3:{if(t!==24)break;a.type=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Uo.fromPartial(e??{})},fromPartial(e){let n=I3();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.stickerKey=e.stickerKey??void 0,n.type=e.type??void 0,n}};function R3(){return{}}var mn={encode(e,n=new s){if(e.url!==void 0)n.uint32(10).string(e.url);if(e.fileSha256!==void 0)n.uint32(18).bytes(e.fileSha256);if(e.fileEncSha256!==void 0)n.uint32(26).bytes(e.fileEncSha256);if(e.mediaKey!==void 0)n.uint32(34).bytes(e.mediaKey);if(e.mimetype!==void 0)n.uint32(42).string(e.mimetype);if(e.height!==void 0)n.uint32(48).uint32(e.height);if(e.width!==void 0)n.uint32(56).uint32(e.width);if(e.directPath!==void 0)n.uint32(66).string(e.directPath);if(e.fileLength!==void 0)n.uint32(72).uint64(e.fileLength);if(e.mediaKeyTimestamp!==void 0)n.uint32(80).int64(e.mediaKeyTimestamp);if(e.firstFrameLength!==void 0)n.uint32(88).uint32(e.firstFrameLength);if(e.firstFrameSidecar!==void 0)n.uint32(98).bytes(e.firstFrameSidecar);if(e.isAnimated!==void 0)n.uint32(104).bool(e.isAnimated);if(e.pngThumbnail!==void 0)n.uint32(130).bytes(e.pngThumbnail);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();if(e.stickerSentTs!==void 0)n.uint32(144).int64(e.stickerSentTs);if(e.isAvatar!==void 0)n.uint32(152).bool(e.isAvatar);if(e.isAiSticker!==void 0)n.uint32(160).bool(e.isAiSticker);if(e.isLottie!==void 0)n.uint32(168).bool(e.isLottie);if(e.accessibilityLabel!==void 0)n.uint32(178).string(e.accessibilityLabel);if(e.premium!==void 0)n.uint32(192).int32(e.premium);if(e.emojis!==void 0)n.uint32(202).string(e.emojis);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=R3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.url=i.string();continue}case 2:{if(t!==18)break;a.fileSha256=i.bytes();continue}case 3:{if(t!==26)break;a.fileEncSha256=i.bytes();continue}case 4:{if(t!==34)break;a.mediaKey=i.bytes();continue}case 5:{if(t!==42)break;a.mimetype=i.string();continue}case 6:{if(t!==48)break;a.height=i.uint32();continue}case 7:{if(t!==56)break;a.width=i.uint32();continue}case 8:{if(t!==66)break;a.directPath=i.string();continue}case 9:{if(t!==72)break;a.fileLength=i.uint64Number();continue}case 10:{if(t!==80)break;a.mediaKeyTimestamp=i.int64Number();continue}case 11:{if(t!==88)break;a.firstFrameLength=i.uint32();continue}case 12:{if(t!==98)break;a.firstFrameSidecar=i.bytes();continue}case 13:{if(t!==104)break;a.isAnimated=i.bool();continue}case 16:{if(t!==130)break;a.pngThumbnail=i.bytes();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}case 18:{if(t!==144)break;a.stickerSentTs=i.int64Number();continue}case 19:{if(t!==152)break;a.isAvatar=i.bool();continue}case 20:{if(t!==160)break;a.isAiSticker=i.bool();continue}case 21:{if(t!==168)break;a.isLottie=i.bool();continue}case 22:{if(t!==178)break;a.accessibilityLabel=i.string();continue}case 24:{if(t!==192)break;a.premium=i.int32();continue}case 25:{if(t!==202)break;a.emojis=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return mn.fromPartial(e??{})},fromPartial(e){let n=R3();return n.url=e.url??void 0,n.fileSha256=e.fileSha256??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.mediaKey=e.mediaKey??void 0,n.mimetype=e.mimetype??void 0,n.height=e.height??void 0,n.width=e.width??void 0,n.directPath=e.directPath??void 0,n.fileLength=e.fileLength??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.firstFrameLength=e.firstFrameLength??void 0,n.firstFrameSidecar=e.firstFrameSidecar??void 0,n.isAnimated=e.isAnimated??void 0,n.pngThumbnail=e.pngThumbnail??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.stickerSentTs=e.stickerSentTs??void 0,n.isAvatar=e.isAvatar??void 0,n.isAiSticker=e.isAiSticker??void 0,n.isLottie=e.isLottie??void 0,n.accessibilityLabel=e.accessibilityLabel??void 0,n.premium=e.premium??void 0,n.emojis=e.emojis??void 0,n}};function D3(){return{}}var To={encode(e,n=new s){if(e.stickerPackId!==void 0)n.uint32(10).string(e.stickerPackId);if(e.name!==void 0)n.uint32(18).string(e.name);if(e.publisher!==void 0)n.uint32(26).string(e.publisher);if(e.stickers!==void 0&&e.stickers.length!==0)for(let i of e.stickers)Lo.encode(i,n.uint32(34).fork()).join();if(e.fileLength!==void 0)n.uint32(40).uint64(e.fileLength);if(e.fileSha256!==void 0)n.uint32(50).bytes(e.fileSha256);if(e.fileEncSha256!==void 0)n.uint32(58).bytes(e.fileEncSha256);if(e.mediaKey!==void 0)n.uint32(66).bytes(e.mediaKey);if(e.directPath!==void 0)n.uint32(74).string(e.directPath);if(e.caption!==void 0)n.uint32(82).string(e.caption);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(90).fork()).join();if(e.packDescription!==void 0)n.uint32(98).string(e.packDescription);if(e.mediaKeyTimestamp!==void 0)n.uint32(104).int64(e.mediaKeyTimestamp);if(e.trayIconFileName!==void 0)n.uint32(114).string(e.trayIconFileName);if(e.thumbnailDirectPath!==void 0)n.uint32(122).string(e.thumbnailDirectPath);if(e.thumbnailSha256!==void 0)n.uint32(130).bytes(e.thumbnailSha256);if(e.thumbnailEncSha256!==void 0)n.uint32(138).bytes(e.thumbnailEncSha256);if(e.thumbnailHeight!==void 0)n.uint32(144).uint32(e.thumbnailHeight);if(e.thumbnailWidth!==void 0)n.uint32(152).uint32(e.thumbnailWidth);if(e.imageDataHash!==void 0)n.uint32(162).string(e.imageDataHash);if(e.stickerPackSize!==void 0)n.uint32(168).uint64(e.stickerPackSize);if(e.stickerPackOrigin!==void 0)n.uint32(176).int32(e.stickerPackOrigin);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=D3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.stickerPackId=i.string();continue}case 2:{if(t!==18)break;a.name=i.string();continue}case 3:{if(t!==26)break;a.publisher=i.string();continue}case 4:{if(t!==34)break;if(a.stickers===void 0)a.stickers=[];let o=Lo.decode(i,i.uint32());if(o!==void 0)a.stickers.push(o);continue}case 5:{if(t!==40)break;a.fileLength=i.uint64Number();continue}case 6:{if(t!==50)break;a.fileSha256=i.bytes();continue}case 7:{if(t!==58)break;a.fileEncSha256=i.bytes();continue}case 8:{if(t!==66)break;a.mediaKey=i.bytes();continue}case 9:{if(t!==74)break;a.directPath=i.string();continue}case 10:{if(t!==82)break;a.caption=i.string();continue}case 11:{if(t!==90)break;a.contextInfo=b.decode(i,i.uint32());continue}case 12:{if(t!==98)break;a.packDescription=i.string();continue}case 13:{if(t!==104)break;a.mediaKeyTimestamp=i.int64Number();continue}case 14:{if(t!==114)break;a.trayIconFileName=i.string();continue}case 15:{if(t!==122)break;a.thumbnailDirectPath=i.string();continue}case 16:{if(t!==130)break;a.thumbnailSha256=i.bytes();continue}case 17:{if(t!==138)break;a.thumbnailEncSha256=i.bytes();continue}case 18:{if(t!==144)break;a.thumbnailHeight=i.uint32();continue}case 19:{if(t!==152)break;a.thumbnailWidth=i.uint32();continue}case 20:{if(t!==162)break;a.imageDataHash=i.string();continue}case 21:{if(t!==168)break;a.stickerPackSize=i.uint64Number();continue}case 22:{if(t!==176)break;a.stickerPackOrigin=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return To.fromPartial(e??{})},fromPartial(e){let n=D3();return n.stickerPackId=e.stickerPackId??void 0,n.name=e.name??void 0,n.publisher=e.publisher??void 0,n.stickers=e.stickers?.map((i)=>Lo.fromPartial(i))||void 0,n.fileLength=e.fileLength??void 0,n.fileSha256=e.fileSha256??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.mediaKey=e.mediaKey??void 0,n.directPath=e.directPath??void 0,n.caption=e.caption??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.packDescription=e.packDescription??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.trayIconFileName=e.trayIconFileName??void 0,n.thumbnailDirectPath=e.thumbnailDirectPath??void 0,n.thumbnailSha256=e.thumbnailSha256??void 0,n.thumbnailEncSha256=e.thumbnailEncSha256??void 0,n.thumbnailHeight=e.thumbnailHeight??void 0,n.thumbnailWidth=e.thumbnailWidth??void 0,n.imageDataHash=e.imageDataHash??void 0,n.stickerPackSize=e.stickerPackSize??void 0,n.stickerPackOrigin=e.stickerPackOrigin??void 0,n}};function E3(){return{}}var Lo={encode(e,n=new s){if(e.fileName!==void 0)n.uint32(10).string(e.fileName);if(e.isAnimated!==void 0)n.uint32(16).bool(e.isAnimated);if(e.emojis!==void 0&&e.emojis.length!==0)for(let i of e.emojis)n.uint32(26).string(i);if(e.accessibilityLabel!==void 0)n.uint32(34).string(e.accessibilityLabel);if(e.isLottie!==void 0)n.uint32(40).bool(e.isLottie);if(e.mimetype!==void 0)n.uint32(50).string(e.mimetype);if(e.premium!==void 0)n.uint32(56).int32(e.premium);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=E3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.fileName=i.string();continue}case 2:{if(t!==16)break;a.isAnimated=i.bool();continue}case 3:{if(t!==26)break;if(a.emojis===void 0)a.emojis=[];let o=i.string();if(o!==void 0)a.emojis.push(o);continue}case 4:{if(t!==34)break;a.accessibilityLabel=i.string();continue}case 5:{if(t!==40)break;a.isLottie=i.bool();continue}case 6:{if(t!==50)break;a.mimetype=i.string();continue}case 7:{if(t!==56)break;a.premium=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Lo.fromPartial(e??{})},fromPartial(e){let n=E3();return n.fileName=e.fileName??void 0,n.isAnimated=e.isAnimated??void 0,n.emojis=e.emojis?.map((i)=>i)||void 0,n.accessibilityLabel=e.accessibilityLabel??void 0,n.isLottie=e.isLottie??void 0,n.mimetype=e.mimetype??void 0,n.premium=e.premium??void 0,n}};function B3(){return{}}var wo={encode(e,n=new s){if(e.filehash!==void 0&&e.filehash.length!==0)for(let i of e.filehash)n.uint32(10).string(i);if(e.rmrSource!==void 0)n.uint32(18).string(e.rmrSource);if(e.requestTimestamp!==void 0)n.uint32(24).int64(e.requestTimestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=B3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.filehash===void 0)a.filehash=[];let o=i.string();if(o!==void 0)a.filehash.push(o);continue}case 2:{if(t!==18)break;a.rmrSource=i.string();continue}case 3:{if(t!==24)break;a.requestTimestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return wo.fromPartial(e??{})},fromPartial(e){let n=B3();return n.filehash=e.filehash?.map((i)=>i)||void 0,n.rmrSource=e.rmrSource??void 0,n.requestTimestamp=e.requestTimestamp??void 0,n}};function C3(){return{}}var Fo={encode(e,n=new s){if(e.selectedId!==void 0)n.uint32(10).string(e.selectedId);if(e.selectedDisplayText!==void 0)n.uint32(18).string(e.selectedDisplayText);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(26).fork()).join();if(e.selectedIndex!==void 0)n.uint32(32).uint32(e.selectedIndex);if(e.selectedCarouselCardIndex!==void 0)n.uint32(40).uint32(e.selectedCarouselCardIndex);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=C3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.selectedId=i.string();continue}case 2:{if(t!==18)break;a.selectedDisplayText=i.string();continue}case 3:{if(t!==26)break;a.contextInfo=b.decode(i,i.uint32());continue}case 4:{if(t!==32)break;a.selectedIndex=i.uint32();continue}case 5:{if(t!==40)break;a.selectedCarouselCardIndex=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Fo.fromPartial(e??{})},fromPartial(e){let n=C3();return n.selectedId=e.selectedId??void 0,n.selectedDisplayText=e.selectedDisplayText??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.selectedIndex=e.selectedIndex??void 0,n.selectedCarouselCardIndex=e.selectedCarouselCardIndex??void 0,n}};function v3(){return{}}var _n={encode(e,n=new s){if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(26).fork()).join();if(e.hydratedTemplate!==void 0)He.encode(e.hydratedTemplate,n.uint32(34).fork()).join();if(e.templateId!==void 0)n.uint32(74).string(e.templateId);if(e.fourRowTemplate!==void 0)Vo.encode(e.fourRowTemplate,n.uint32(10).fork()).join();if(e.hydratedFourRowTemplate!==void 0)He.encode(e.hydratedFourRowTemplate,n.uint32(18).fork()).join();if(e.interactiveMessageTemplate!==void 0)ke.encode(e.interactiveMessageTemplate,n.uint32(42).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=v3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 3:{if(t!==26)break;a.contextInfo=b.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.hydratedTemplate=He.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.templateId=i.string();continue}case 1:{if(t!==10)break;a.fourRowTemplate=Vo.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.hydratedFourRowTemplate=He.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.interactiveMessageTemplate=ke.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return _n.fromPartial(e??{})},fromPartial(e){let n=v3();return n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.hydratedTemplate=e.hydratedTemplate!==void 0&&e.hydratedTemplate!==null?He.fromPartial(e.hydratedTemplate):void 0,n.templateId=e.templateId??void 0,n.fourRowTemplate=e.fourRowTemplate!==void 0&&e.fourRowTemplate!==null?Vo.fromPartial(e.fourRowTemplate):void 0,n.hydratedFourRowTemplate=e.hydratedFourRowTemplate!==void 0&&e.hydratedFourRowTemplate!==null?He.fromPartial(e.hydratedFourRowTemplate):void 0,n.interactiveMessageTemplate=e.interactiveMessageTemplate!==void 0&&e.interactiveMessageTemplate!==null?ke.fromPartial(e.interactiveMessageTemplate):void 0,n}};function x3(){return{}}var Vo={encode(e,n=new s){if(e.content!==void 0)H.encode(e.content,n.uint32(50).fork()).join();if(e.footer!==void 0)H.encode(e.footer,n.uint32(58).fork()).join();if(e.buttons!==void 0&&e.buttons.length!==0)for(let i of e.buttons)mc.encode(i,n.uint32(66).fork()).join();if(e.documentMessage!==void 0)ne.encode(e.documentMessage,n.uint32(10).fork()).join();if(e.highlyStructuredMessage!==void 0)H.encode(e.highlyStructuredMessage,n.uint32(18).fork()).join();if(e.imageMessage!==void 0)J.encode(e.imageMessage,n.uint32(26).fork()).join();if(e.videoMessage!==void 0)Y.encode(e.videoMessage,n.uint32(34).fork()).join();if(e.locationMessage!==void 0)X.encode(e.locationMessage,n.uint32(42).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=x3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 6:{if(t!==50)break;a.content=H.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.footer=H.decode(i,i.uint32());continue}case 8:{if(t!==66)break;if(a.buttons===void 0)a.buttons=[];let o=mc.decode(i,i.uint32());if(o!==void 0)a.buttons.push(o);continue}case 1:{if(t!==10)break;a.documentMessage=ne.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.highlyStructuredMessage=H.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.imageMessage=J.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.videoMessage=Y.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.locationMessage=X.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Vo.fromPartial(e??{})},fromPartial(e){let n=x3();return n.content=e.content!==void 0&&e.content!==null?H.fromPartial(e.content):void 0,n.footer=e.footer!==void 0&&e.footer!==null?H.fromPartial(e.footer):void 0,n.buttons=e.buttons?.map((i)=>mc.fromPartial(i))||void 0,n.documentMessage=e.documentMessage!==void 0&&e.documentMessage!==null?ne.fromPartial(e.documentMessage):void 0,n.highlyStructuredMessage=e.highlyStructuredMessage!==void 0&&e.highlyStructuredMessage!==null?H.fromPartial(e.highlyStructuredMessage):void 0,n.imageMessage=e.imageMessage!==void 0&&e.imageMessage!==null?J.fromPartial(e.imageMessage):void 0,n.videoMessage=e.videoMessage!==void 0&&e.videoMessage!==null?Y.fromPartial(e.videoMessage):void 0,n.locationMessage=e.locationMessage!==void 0&&e.locationMessage!==null?X.fromPartial(e.locationMessage):void 0,n}};function N3(){return{}}var He={encode(e,n=new s){if(e.hydratedContentText!==void 0)n.uint32(50).string(e.hydratedContentText);if(e.hydratedFooterText!==void 0)n.uint32(58).string(e.hydratedFooterText);if(e.hydratedButtons!==void 0&&e.hydratedButtons.length!==0)for(let i of e.hydratedButtons)qa.encode(i,n.uint32(66).fork()).join();if(e.templateId!==void 0)n.uint32(74).string(e.templateId);if(e.maskLinkedDevices!==void 0)n.uint32(80).bool(e.maskLinkedDevices);if(e.documentMessage!==void 0)ne.encode(e.documentMessage,n.uint32(10).fork()).join();if(e.hydratedTitleText!==void 0)n.uint32(18).string(e.hydratedTitleText);if(e.imageMessage!==void 0)J.encode(e.imageMessage,n.uint32(26).fork()).join();if(e.videoMessage!==void 0)Y.encode(e.videoMessage,n.uint32(34).fork()).join();if(e.locationMessage!==void 0)X.encode(e.locationMessage,n.uint32(42).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=N3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 6:{if(t!==50)break;a.hydratedContentText=i.string();continue}case 7:{if(t!==58)break;a.hydratedFooterText=i.string();continue}case 8:{if(t!==66)break;if(a.hydratedButtons===void 0)a.hydratedButtons=[];let o=qa.decode(i,i.uint32());if(o!==void 0)a.hydratedButtons.push(o);continue}case 9:{if(t!==74)break;a.templateId=i.string();continue}case 10:{if(t!==80)break;a.maskLinkedDevices=i.bool();continue}case 1:{if(t!==10)break;a.documentMessage=ne.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.hydratedTitleText=i.string();continue}case 3:{if(t!==26)break;a.imageMessage=J.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.videoMessage=Y.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.locationMessage=X.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return He.fromPartial(e??{})},fromPartial(e){let n=N3();return n.hydratedContentText=e.hydratedContentText??void 0,n.hydratedFooterText=e.hydratedFooterText??void 0,n.hydratedButtons=e.hydratedButtons?.map((i)=>qa.fromPartial(i))||void 0,n.templateId=e.templateId??void 0,n.maskLinkedDevices=e.maskLinkedDevices??void 0,n.documentMessage=e.documentMessage!==void 0&&e.documentMessage!==null?ne.fromPartial(e.documentMessage):void 0,n.hydratedTitleText=e.hydratedTitleText??void 0,n.imageMessage=e.imageMessage!==void 0&&e.imageMessage!==null?J.fromPartial(e.imageMessage):void 0,n.videoMessage=e.videoMessage!==void 0&&e.videoMessage!==null?Y.fromPartial(e.videoMessage):void 0,n.locationMessage=e.locationMessage!==void 0&&e.locationMessage!==null?X.fromPartial(e.locationMessage):void 0,n}};function O3(){return{}}var Ko={encode(e,n=new s){if(e.fbExperimentId!==void 0)n.uint32(8).uint32(e.fbExperimentId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=O3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.fbExperimentId=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ko.fromPartial(e??{})},fromPartial(e){let n=O3();return n.fbExperimentId=e.fbExperimentId??void 0,n}};function U3(){return{}}var Wo={encode(e,n=new s){if(e.username!==void 0)n.uint32(10).string(e.username);if(e.caption!==void 0)n.uint32(18).string(e.caption);if(e.thumbnailImageUrl!==void 0)n.uint32(26).string(e.thumbnailImageUrl);if(e.profilePictureUrl!==void 0)n.uint32(34).string(e.profilePictureUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=U3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.username=i.string();continue}case 2:{if(t!==18)break;a.caption=i.string();continue}case 3:{if(t!==26)break;a.thumbnailImageUrl=i.string();continue}case 4:{if(t!==34)break;a.profilePictureUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Wo.fromPartial(e??{})},fromPartial(e){let n=U3();return n.username=e.username??void 0,n.caption=e.caption??void 0,n.thumbnailImageUrl=e.thumbnailImageUrl??void 0,n.profilePictureUrl=e.profilePictureUrl??void 0,n}};function T3(){return{}}var Y={encode(e,n=new s){if(e.url!==void 0)n.uint32(10).string(e.url);if(e.mimetype!==void 0)n.uint32(18).string(e.mimetype);if(e.fileSha256!==void 0)n.uint32(26).bytes(e.fileSha256);if(e.fileLength!==void 0)n.uint32(32).uint64(e.fileLength);if(e.seconds!==void 0)n.uint32(40).uint32(e.seconds);if(e.mediaKey!==void 0)n.uint32(50).bytes(e.mediaKey);if(e.caption!==void 0)n.uint32(58).string(e.caption);if(e.gifPlayback!==void 0)n.uint32(64).bool(e.gifPlayback);if(e.height!==void 0)n.uint32(72).uint32(e.height);if(e.width!==void 0)n.uint32(80).uint32(e.width);if(e.fileEncSha256!==void 0)n.uint32(90).bytes(e.fileEncSha256);if(e.interactiveAnnotations!==void 0&&e.interactiveAnnotations.length!==0)for(let i of e.interactiveAnnotations)te.encode(i,n.uint32(98).fork()).join();if(e.directPath!==void 0)n.uint32(106).string(e.directPath);if(e.mediaKeyTimestamp!==void 0)n.uint32(112).int64(e.mediaKeyTimestamp);if(e.jpegThumbnail!==void 0)n.uint32(130).bytes(e.jpegThumbnail);if(e.contextInfo!==void 0)b.encode(e.contextInfo,n.uint32(138).fork()).join();if(e.streamingSidecar!==void 0)n.uint32(146).bytes(e.streamingSidecar);if(e.gifAttribution!==void 0)n.uint32(152).int32(e.gifAttribution);if(e.viewOnce!==void 0)n.uint32(160).bool(e.viewOnce);if(e.thumbnailDirectPath!==void 0)n.uint32(170).string(e.thumbnailDirectPath);if(e.thumbnailSha256!==void 0)n.uint32(178).bytes(e.thumbnailSha256);if(e.thumbnailEncSha256!==void 0)n.uint32(186).bytes(e.thumbnailEncSha256);if(e.staticUrl!==void 0)n.uint32(194).string(e.staticUrl);if(e.annotations!==void 0&&e.annotations.length!==0)for(let i of e.annotations)te.encode(i,n.uint32(202).fork()).join();if(e.accessibilityLabel!==void 0)n.uint32(210).string(e.accessibilityLabel);if(e.processedVideos!==void 0&&e.processedVideos.length!==0)for(let i of e.processedVideos)os.encode(i,n.uint32(218).fork()).join();if(e.externalShareFullVideoDurationInSeconds!==void 0)n.uint32(224).uint32(e.externalShareFullVideoDurationInSeconds);if(e.motionPhotoPresentationOffsetMs!==void 0)n.uint32(232).uint64(e.motionPhotoPresentationOffsetMs);if(e.metadataUrl!==void 0)n.uint32(242).string(e.metadataUrl);if(e.videoSourceType!==void 0)n.uint32(248).int32(e.videoSourceType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=T3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.url=i.string();continue}case 2:{if(t!==18)break;a.mimetype=i.string();continue}case 3:{if(t!==26)break;a.fileSha256=i.bytes();continue}case 4:{if(t!==32)break;a.fileLength=i.uint64Number();continue}case 5:{if(t!==40)break;a.seconds=i.uint32();continue}case 6:{if(t!==50)break;a.mediaKey=i.bytes();continue}case 7:{if(t!==58)break;a.caption=i.string();continue}case 8:{if(t!==64)break;a.gifPlayback=i.bool();continue}case 9:{if(t!==72)break;a.height=i.uint32();continue}case 10:{if(t!==80)break;a.width=i.uint32();continue}case 11:{if(t!==90)break;a.fileEncSha256=i.bytes();continue}case 12:{if(t!==98)break;if(a.interactiveAnnotations===void 0)a.interactiveAnnotations=[];let o=te.decode(i,i.uint32());if(o!==void 0)a.interactiveAnnotations.push(o);continue}case 13:{if(t!==106)break;a.directPath=i.string();continue}case 14:{if(t!==112)break;a.mediaKeyTimestamp=i.int64Number();continue}case 16:{if(t!==130)break;a.jpegThumbnail=i.bytes();continue}case 17:{if(t!==138)break;a.contextInfo=b.decode(i,i.uint32());continue}case 18:{if(t!==146)break;a.streamingSidecar=i.bytes();continue}case 19:{if(t!==152)break;a.gifAttribution=i.int32();continue}case 20:{if(t!==160)break;a.viewOnce=i.bool();continue}case 21:{if(t!==170)break;a.thumbnailDirectPath=i.string();continue}case 22:{if(t!==178)break;a.thumbnailSha256=i.bytes();continue}case 23:{if(t!==186)break;a.thumbnailEncSha256=i.bytes();continue}case 24:{if(t!==194)break;a.staticUrl=i.string();continue}case 25:{if(t!==202)break;if(a.annotations===void 0)a.annotations=[];let o=te.decode(i,i.uint32());if(o!==void 0)a.annotations.push(o);continue}case 26:{if(t!==210)break;a.accessibilityLabel=i.string();continue}case 27:{if(t!==218)break;if(a.processedVideos===void 0)a.processedVideos=[];let o=os.decode(i,i.uint32());if(o!==void 0)a.processedVideos.push(o);continue}case 28:{if(t!==224)break;a.externalShareFullVideoDurationInSeconds=i.uint32();continue}case 29:{if(t!==232)break;a.motionPhotoPresentationOffsetMs=i.uint64Number();continue}case 30:{if(t!==242)break;a.metadataUrl=i.string();continue}case 31:{if(t!==248)break;a.videoSourceType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Y.fromPartial(e??{})},fromPartial(e){let n=T3();return n.url=e.url??void 0,n.mimetype=e.mimetype??void 0,n.fileSha256=e.fileSha256??void 0,n.fileLength=e.fileLength??void 0,n.seconds=e.seconds??void 0,n.mediaKey=e.mediaKey??void 0,n.caption=e.caption??void 0,n.gifPlayback=e.gifPlayback??void 0,n.height=e.height??void 0,n.width=e.width??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.interactiveAnnotations=e.interactiveAnnotations?.map((i)=>te.fromPartial(i))||void 0,n.directPath=e.directPath??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n.contextInfo=e.contextInfo!==void 0&&e.contextInfo!==null?b.fromPartial(e.contextInfo):void 0,n.streamingSidecar=e.streamingSidecar??void 0,n.gifAttribution=e.gifAttribution??void 0,n.viewOnce=e.viewOnce??void 0,n.thumbnailDirectPath=e.thumbnailDirectPath??void 0,n.thumbnailSha256=e.thumbnailSha256??void 0,n.thumbnailEncSha256=e.thumbnailEncSha256??void 0,n.staticUrl=e.staticUrl??void 0,n.annotations=e.annotations?.map((i)=>te.fromPartial(i))||void 0,n.accessibilityLabel=e.accessibilityLabel??void 0,n.processedVideos=e.processedVideos?.map((i)=>os.fromPartial(i))||void 0,n.externalShareFullVideoDurationInSeconds=e.externalShareFullVideoDurationInSeconds??void 0,n.motionPhotoPresentationOffsetMs=e.motionPhotoPresentationOffsetMs??void 0,n.metadataUrl=e.metadataUrl??void 0,n.videoSourceType=e.videoSourceType??void 0,n}};function L3(){return{}}var Ho={encode(e,n=new s){if(e.messageAddOnType!==void 0)n.uint32(8).int32(e.messageAddOnType);if(e.messageAddOn!==void 0)F.encode(e.messageAddOn,n.uint32(18).fork()).join();if(e.senderTimestampMs!==void 0)n.uint32(24).int64(e.senderTimestampMs);if(e.serverTimestampMs!==void 0)n.uint32(32).int64(e.serverTimestampMs);if(e.status!==void 0)n.uint32(40).int32(e.status);if(e.addOnContextInfo!==void 0)hn.encode(e.addOnContextInfo,n.uint32(50).fork()).join();if(e.messageAddOnKey!==void 0)_.encode(e.messageAddOnKey,n.uint32(58).fork()).join();if(e.legacyMessage!==void 0)tr.encode(e.legacyMessage,n.uint32(66).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=L3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.messageAddOnType=i.int32();continue}case 2:{if(t!==18)break;a.messageAddOn=F.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.senderTimestampMs=i.int64Number();continue}case 4:{if(t!==32)break;a.serverTimestampMs=i.int64Number();continue}case 5:{if(t!==40)break;a.status=i.int32();continue}case 6:{if(t!==50)break;a.addOnContextInfo=hn.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.messageAddOnKey=_.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.legacyMessage=tr.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ho.fromPartial(e??{})},fromPartial(e){let n=L3();return n.messageAddOnType=e.messageAddOnType??void 0,n.messageAddOn=e.messageAddOn!==void 0&&e.messageAddOn!==null?F.fromPartial(e.messageAddOn):void 0,n.senderTimestampMs=e.senderTimestampMs??void 0,n.serverTimestampMs=e.serverTimestampMs??void 0,n.status=e.status??void 0,n.addOnContextInfo=e.addOnContextInfo!==void 0&&e.addOnContextInfo!==null?hn.fromPartial(e.addOnContextInfo):void 0,n.messageAddOnKey=e.messageAddOnKey!==void 0&&e.messageAddOnKey!==null?_.fromPartial(e.messageAddOnKey):void 0,n.legacyMessage=e.legacyMessage!==void 0&&e.legacyMessage!==null?tr.fromPartial(e.legacyMessage):void 0,n}};function w3(){return{}}var hn={encode(e,n=new s){if(e.messageAddOnDurationInSecs!==void 0)n.uint32(8).uint32(e.messageAddOnDurationInSecs);if(e.messageAddOnExpiryType!==void 0)n.uint32(16).int32(e.messageAddOnExpiryType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=w3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.messageAddOnDurationInSecs=i.uint32();continue}case 2:{if(t!==16)break;a.messageAddOnExpiryType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return hn.fromPartial(e??{})},fromPartial(e){let n=w3();return n.messageAddOnDurationInSecs=e.messageAddOnDurationInSecs??void 0,n.messageAddOnExpiryType=e.messageAddOnExpiryType??void 0,n}};function F3(){return{}}var qo={encode(e,n=new s){if(e.associationType!==void 0)n.uint32(8).int32(e.associationType);if(e.parentMessageKey!==void 0)_.encode(e.parentMessageKey,n.uint32(18).fork()).join();if(e.messageIndex!==void 0)n.uint32(24).int32(e.messageIndex);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=F3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.associationType=i.int32();continue}case 2:{if(t!==18)break;a.parentMessageKey=_.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.messageIndex=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return qo.fromPartial(e??{})},fromPartial(e){let n=F3();return n.associationType=e.associationType??void 0,n.parentMessageKey=e.parentMessageKey!==void 0&&e.parentMessageKey!==null?_.fromPartial(e.parentMessageKey):void 0,n.messageIndex=e.messageIndex??void 0,n}};function V3(){return{}}var kn={encode(e,n=new s){if(e.deviceListMetadata!==void 0)Aa.encode(e.deviceListMetadata,n.uint32(10).fork()).join();if(e.deviceListMetadataVersion!==void 0)n.uint32(16).int32(e.deviceListMetadataVersion);if(e.messageSecret!==void 0)n.uint32(26).bytes(e.messageSecret);if(e.paddingBytes!==void 0)n.uint32(34).bytes(e.paddingBytes);if(e.messageAddOnDurationInSecs!==void 0)n.uint32(40).uint32(e.messageAddOnDurationInSecs);if(e.botMessageSecret!==void 0)n.uint32(50).bytes(e.botMessageSecret);if(e.botMetadata!==void 0)Ji.encode(e.botMetadata,n.uint32(58).fork()).join();if(e.reportingTokenVersion!==void 0)n.uint32(64).int32(e.reportingTokenVersion);if(e.messageAddOnExpiryType!==void 0)n.uint32(72).int32(e.messageAddOnExpiryType);if(e.messageAssociation!==void 0)qo.encode(e.messageAssociation,n.uint32(82).fork()).join();if(e.capiCreatedGroup!==void 0)n.uint32(88).bool(e.capiCreatedGroup);if(e.supportPayload!==void 0)n.uint32(98).string(e.supportPayload);if(e.limitSharing!==void 0)fe.encode(e.limitSharing,n.uint32(106).fork()).join();if(e.limitSharingV2!==void 0)fe.encode(e.limitSharingV2,n.uint32(114).fork()).join();if(e.threadId!==void 0&&e.threadId.length!==0)for(let i of e.threadId)Ac.encode(i,n.uint32(122).fork()).join();if(e.weblinkRenderConfig!==void 0)n.uint32(128).int32(e.weblinkRenderConfig);if(e.teeBotMetadata!==void 0)n.uint32(138).bytes(e.teeBotMetadata);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=V3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.deviceListMetadata=Aa.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.deviceListMetadataVersion=i.int32();continue}case 3:{if(t!==26)break;a.messageSecret=i.bytes();continue}case 4:{if(t!==34)break;a.paddingBytes=i.bytes();continue}case 5:{if(t!==40)break;a.messageAddOnDurationInSecs=i.uint32();continue}case 6:{if(t!==50)break;a.botMessageSecret=i.bytes();continue}case 7:{if(t!==58)break;a.botMetadata=Ji.decode(i,i.uint32());continue}case 8:{if(t!==64)break;a.reportingTokenVersion=i.int32();continue}case 9:{if(t!==72)break;a.messageAddOnExpiryType=i.int32();continue}case 10:{if(t!==82)break;a.messageAssociation=qo.decode(i,i.uint32());continue}case 11:{if(t!==88)break;a.capiCreatedGroup=i.bool();continue}case 12:{if(t!==98)break;a.supportPayload=i.string();continue}case 13:{if(t!==106)break;a.limitSharing=fe.decode(i,i.uint32());continue}case 14:{if(t!==114)break;a.limitSharingV2=fe.decode(i,i.uint32());continue}case 15:{if(t!==122)break;if(a.threadId===void 0)a.threadId=[];let o=Ac.decode(i,i.uint32());if(o!==void 0)a.threadId.push(o);continue}case 16:{if(t!==128)break;a.weblinkRenderConfig=i.int32();continue}case 17:{if(t!==138)break;a.teeBotMetadata=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return kn.fromPartial(e??{})},fromPartial(e){let n=V3();return n.deviceListMetadata=e.deviceListMetadata!==void 0&&e.deviceListMetadata!==null?Aa.fromPartial(e.deviceListMetadata):void 0,n.deviceListMetadataVersion=e.deviceListMetadataVersion??void 0,n.messageSecret=e.messageSecret??void 0,n.paddingBytes=e.paddingBytes??void 0,n.messageAddOnDurationInSecs=e.messageAddOnDurationInSecs??void 0,n.botMessageSecret=e.botMessageSecret??void 0,n.botMetadata=e.botMetadata!==void 0&&e.botMetadata!==null?Ji.fromPartial(e.botMetadata):void 0,n.reportingTokenVersion=e.reportingTokenVersion??void 0,n.messageAddOnExpiryType=e.messageAddOnExpiryType??void 0,n.messageAssociation=e.messageAssociation!==void 0&&e.messageAssociation!==null?qo.fromPartial(e.messageAssociation):void 0,n.capiCreatedGroup=e.capiCreatedGroup??void 0,n.supportPayload=e.supportPayload??void 0,n.limitSharing=e.limitSharing!==void 0&&e.limitSharing!==null?fe.fromPartial(e.limitSharing):void 0,n.limitSharingV2=e.limitSharingV2!==void 0&&e.limitSharingV2!==null?fe.fromPartial(e.limitSharingV2):void 0,n.threadId=e.threadId?.map((i)=>Ac.fromPartial(i))||void 0,n.weblinkRenderConfig=e.weblinkRenderConfig??void 0,n.teeBotMetadata=e.teeBotMetadata??void 0,n}};function K3(){return{}}var _={encode(e,n=new s){if(e.remoteJid!==void 0)n.uint32(10).string(e.remoteJid);if(e.fromMe!==void 0)n.uint32(16).bool(e.fromMe);if(e.id!==void 0)n.uint32(26).string(e.id);if(e.participant!==void 0)n.uint32(34).string(e.participant);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=K3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.remoteJid=i.string();continue}case 2:{if(t!==16)break;a.fromMe=i.bool();continue}case 3:{if(t!==26)break;a.id=i.string();continue}case 4:{if(t!==34)break;a.participant=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return _.fromPartial(e??{})},fromPartial(e){let n=K3();return n.remoteJid=e.remoteJid??void 0,n.fromMe=e.fromMe??void 0,n.id=e.id??void 0,n.participant=e.participant??void 0,n}};function W3(){return{}}var zI={encode(e,n=new s){if(e.version!==void 0)n.uint32(13).sfixed32(e.version);if(e.encIv!==void 0)n.uint32(18).bytes(e.encIv);if(e.encPayload!==void 0)n.uint32(26).bytes(e.encPayload);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=W3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==13)break;a.version=i.sfixed32();continue}case 2:{if(t!==18)break;a.encIv=i.bytes();continue}case 3:{if(t!==26)break;a.encPayload=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return zI.fromPartial(e??{})},fromPartial(e){let n=W3();return n.version=e.version??void 0,n.encIv=e.encIv??void 0,n.encPayload=e.encPayload??void 0,n}};function H3(){return{}}var Q={encode(e,n=new s){if(e.text!==void 0)n.uint32(10).string(e.text);if(e.mentionedJid!==void 0&&e.mentionedJid.length!==0)for(let i of e.mentionedJid)n.uint32(18).string(i);if(e.commands!==void 0&&e.commands.length!==0)for(let i of e.commands)Nt.encode(i,n.uint32(26).fork()).join();if(e.mentions!==void 0&&e.mentions.length!==0)for(let i of e.mentions)cr.encode(i,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=H3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.text=i.string();continue}case 2:{if(t!==18)break;if(a.mentionedJid===void 0)a.mentionedJid=[];let o=i.string();if(o!==void 0)a.mentionedJid.push(o);continue}case 3:{if(t!==26)break;if(a.commands===void 0)a.commands=[];let o=Nt.decode(i,i.uint32());if(o!==void 0)a.commands.push(o);continue}case 4:{if(t!==34)break;if(a.mentions===void 0)a.mentions=[];let o=cr.decode(i,i.uint32());if(o!==void 0)a.mentions.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Q.fromPartial(e??{})},fromPartial(e){let n=H3();return n.text=e.text??void 0,n.mentionedJid=e.mentionedJid?.map((i)=>i)||void 0,n.commands=e.commands?.map((i)=>Nt.fromPartial(i))||void 0,n.mentions=e.mentions?.map((i)=>cr.fromPartial(i))||void 0,n}};function q3(){return{}}var Z={encode(e,n=new s){if(e.value!==void 0)n.uint32(8).int64(e.value);if(e.offset!==void 0)n.uint32(16).uint32(e.offset);if(e.currencyCode!==void 0)n.uint32(26).string(e.currencyCode);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=q3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.value=i.int64Number();continue}case 2:{if(t!==16)break;a.offset=i.uint32();continue}case 3:{if(t!==26)break;a.currencyCode=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Z.fromPartial(e??{})},fromPartial(e){let n=q3();return n.value=e.value??void 0,n.offset=e.offset??void 0,n.currencyCode=e.currencyCode??void 0,n}};function G3(){return{}}var qe={encode(e,n=new s){if(e.body!==void 0)n.uint32(10).string(e.body);if(e.caption!==void 0)n.uint32(26).string(e.caption);if(e.lng!==void 0)n.uint32(41).double(e.lng);if(e.isLive!==void 0)n.uint32(48).bool(e.isLive);if(e.lat!==void 0)n.uint32(57).double(e.lat);if(e.paymentAmount1000!==void 0)n.uint32(64).int32(e.paymentAmount1000);if(e.paymentNoteMsgBody!==void 0)n.uint32(74).string(e.paymentNoteMsgBody);if(e.matchedText!==void 0)n.uint32(90).string(e.matchedText);if(e.title!==void 0)n.uint32(98).string(e.title);if(e.description!==void 0)n.uint32(106).string(e.description);if(e.futureproofBuffer!==void 0)n.uint32(114).bytes(e.futureproofBuffer);if(e.clientUrl!==void 0)n.uint32(122).string(e.clientUrl);if(e.loc!==void 0)n.uint32(130).string(e.loc);if(e.pollName!==void 0)n.uint32(138).string(e.pollName);if(e.pollOptions!==void 0&&e.pollOptions.length!==0)for(let i of e.pollOptions)An.encode(i,n.uint32(146).fork()).join();if(e.pollSelectableOptionsCount!==void 0)n.uint32(160).uint32(e.pollSelectableOptionsCount);if(e.messageSecret!==void 0)n.uint32(170).bytes(e.messageSecret);if(e.originalSelfAuthor!==void 0)n.uint32(410).string(e.originalSelfAuthor);if(e.senderTimestampMs!==void 0)n.uint32(176).int64(e.senderTimestampMs);if(e.pollUpdateParentKey!==void 0)n.uint32(186).string(e.pollUpdateParentKey);if(e.encPollVote!==void 0)as.encode(e.encPollVote,n.uint32(194).fork()).join();if(e.isSentCagPollCreation!==void 0)n.uint32(224).bool(e.isSentCagPollCreation);if(e.pollContentType!==void 0)n.uint32(336).int32(e.pollContentType);if(e.pollType!==void 0)n.uint32(368).int32(e.pollType);if(e.correctOptionIndex!==void 0)n.uint32(376).int32(e.correctOptionIndex);if(e.pollVotesSnapshot!==void 0)Qo.encode(e.pollVotesSnapshot,n.uint32(330).fork()).join();if(e.encReactionTargetMessageKey!==void 0)n.uint32(202).string(e.encReactionTargetMessageKey);if(e.encReactionEncPayload!==void 0)n.uint32(210).bytes(e.encReactionEncPayload);if(e.encReactionEncIv!==void 0)n.uint32(218).bytes(e.encReactionEncIv);if(e.botMessageSecret!==void 0)n.uint32(234).bytes(e.botMessageSecret);if(e.targetMessageKey!==void 0)n.uint32(242).string(e.targetMessageKey);if(e.encPayload!==void 0)n.uint32(250).bytes(e.encPayload);if(e.encIv!==void 0)n.uint32(258).bytes(e.encIv);if(e.eventName!==void 0)n.uint32(266).string(e.eventName);if(e.isEventCanceled!==void 0)n.uint32(272).bool(e.isEventCanceled);if(e.eventDescription!==void 0)n.uint32(282).string(e.eventDescription);if(e.eventJoinLink!==void 0)n.uint32(290).string(e.eventJoinLink);if(e.eventStartTime!==void 0)n.uint32(296).int64(e.eventStartTime);if(e.eventLocation!==void 0)Go.encode(e.eventLocation,n.uint32(306).fork()).join();if(e.eventEndTime!==void 0)n.uint32(320).int64(e.eventEndTime);if(e.eventIsScheduledCall!==void 0)n.uint32(352).bool(e.eventIsScheduledCall);if(e.eventExtraGuestsAllowed!==void 0)n.uint32(360).bool(e.eventExtraGuestsAllowed);if(e.plainProtobufBytes!==void 0)n.uint32(346).bytes(e.plainProtobufBytes);if(e.quarantineExtractedText!==void 0)n.uint32(386).string(e.quarantineExtractedText);if(e.pollEndTime!==void 0)n.uint32(392).int64(e.pollEndTime);if(e.pollHideVoterNames!==void 0)n.uint32(400).bool(e.pollHideVoterNames);if(e.pollAllowAddOption!==void 0)n.uint32(416).bool(e.pollAllowAddOption);if(e.sharableEventInviteId!==void 0)n.uint32(426).string(e.sharableEventInviteId);if(e.sharableEventInviteTitle!==void 0)n.uint32(434).string(e.sharableEventInviteTitle);if(e.sharableEventInviteStartTime!==void 0)n.uint32(440).int64(e.sharableEventInviteStartTime);if(e.sharableEventInviteEndTime!==void 0)n.uint32(448).int64(e.sharableEventInviteEndTime);if(e.sharableEventInviteCaption!==void 0)n.uint32(458).string(e.sharableEventInviteCaption);if(e.sharableEventInviteIsCanceled!==void 0)n.uint32(464).bool(e.sharableEventInviteIsCanceled);if(e.sharableEventInviteJpegThumbnail!==void 0)n.uint32(474).bytes(e.sharableEventInviteJpegThumbnail);if(e.sharableEventInviteCallLink!==void 0)n.uint32(482).string(e.sharableEventInviteCallLink);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=G3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.body=i.string();continue}case 3:{if(t!==26)break;a.caption=i.string();continue}case 5:{if(t!==41)break;a.lng=i.double();continue}case 6:{if(t!==48)break;a.isLive=i.bool();continue}case 7:{if(t!==57)break;a.lat=i.double();continue}case 8:{if(t!==64)break;a.paymentAmount1000=i.int32();continue}case 9:{if(t!==74)break;a.paymentNoteMsgBody=i.string();continue}case 11:{if(t!==90)break;a.matchedText=i.string();continue}case 12:{if(t!==98)break;a.title=i.string();continue}case 13:{if(t!==106)break;a.description=i.string();continue}case 14:{if(t!==114)break;a.futureproofBuffer=i.bytes();continue}case 15:{if(t!==122)break;a.clientUrl=i.string();continue}case 16:{if(t!==130)break;a.loc=i.string();continue}case 17:{if(t!==138)break;a.pollName=i.string();continue}case 18:{if(t!==146)break;if(a.pollOptions===void 0)a.pollOptions=[];let o=An.decode(i,i.uint32());if(o!==void 0)a.pollOptions.push(o);continue}case 20:{if(t!==160)break;a.pollSelectableOptionsCount=i.uint32();continue}case 21:{if(t!==170)break;a.messageSecret=i.bytes();continue}case 51:{if(t!==410)break;a.originalSelfAuthor=i.string();continue}case 22:{if(t!==176)break;a.senderTimestampMs=i.int64Number();continue}case 23:{if(t!==186)break;a.pollUpdateParentKey=i.string();continue}case 24:{if(t!==194)break;a.encPollVote=as.decode(i,i.uint32());continue}case 28:{if(t!==224)break;a.isSentCagPollCreation=i.bool();continue}case 42:{if(t!==336)break;a.pollContentType=i.int32();continue}case 46:{if(t!==368)break;a.pollType=i.int32();continue}case 47:{if(t!==376)break;a.correctOptionIndex=i.int32();continue}case 41:{if(t!==330)break;a.pollVotesSnapshot=Qo.decode(i,i.uint32());continue}case 25:{if(t!==202)break;a.encReactionTargetMessageKey=i.string();continue}case 26:{if(t!==210)break;a.encReactionEncPayload=i.bytes();continue}case 27:{if(t!==218)break;a.encReactionEncIv=i.bytes();continue}case 29:{if(t!==234)break;a.botMessageSecret=i.bytes();continue}case 30:{if(t!==242)break;a.targetMessageKey=i.string();continue}case 31:{if(t!==250)break;a.encPayload=i.bytes();continue}case 32:{if(t!==258)break;a.encIv=i.bytes();continue}case 33:{if(t!==266)break;a.eventName=i.string();continue}case 34:{if(t!==272)break;a.isEventCanceled=i.bool();continue}case 35:{if(t!==282)break;a.eventDescription=i.string();continue}case 36:{if(t!==290)break;a.eventJoinLink=i.string();continue}case 37:{if(t!==296)break;a.eventStartTime=i.int64Number();continue}case 38:{if(t!==306)break;a.eventLocation=Go.decode(i,i.uint32());continue}case 40:{if(t!==320)break;a.eventEndTime=i.int64Number();continue}case 44:{if(t!==352)break;a.eventIsScheduledCall=i.bool();continue}case 45:{if(t!==360)break;a.eventExtraGuestsAllowed=i.bool();continue}case 43:{if(t!==346)break;a.plainProtobufBytes=i.bytes();continue}case 48:{if(t!==386)break;a.quarantineExtractedText=i.string();continue}case 49:{if(t!==392)break;a.pollEndTime=i.int64Number();continue}case 50:{if(t!==400)break;a.pollHideVoterNames=i.bool();continue}case 52:{if(t!==416)break;a.pollAllowAddOption=i.bool();continue}case 53:{if(t!==426)break;a.sharableEventInviteId=i.string();continue}case 54:{if(t!==434)break;a.sharableEventInviteTitle=i.string();continue}case 55:{if(t!==440)break;a.sharableEventInviteStartTime=i.int64Number();continue}case 56:{if(t!==448)break;a.sharableEventInviteEndTime=i.int64Number();continue}case 57:{if(t!==458)break;a.sharableEventInviteCaption=i.string();continue}case 58:{if(t!==464)break;a.sharableEventInviteIsCanceled=i.bool();continue}case 59:{if(t!==474)break;a.sharableEventInviteJpegThumbnail=i.bytes();continue}case 60:{if(t!==482)break;a.sharableEventInviteCallLink=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return qe.fromPartial(e??{})},fromPartial(e){let n=G3();return n.body=e.body??void 0,n.caption=e.caption??void 0,n.lng=e.lng??void 0,n.isLive=e.isLive??void 0,n.lat=e.lat??void 0,n.paymentAmount1000=e.paymentAmount1000??void 0,n.paymentNoteMsgBody=e.paymentNoteMsgBody??void 0,n.matchedText=e.matchedText??void 0,n.title=e.title??void 0,n.description=e.description??void 0,n.futureproofBuffer=e.futureproofBuffer??void 0,n.clientUrl=e.clientUrl??void 0,n.loc=e.loc??void 0,n.pollName=e.pollName??void 0,n.pollOptions=e.pollOptions?.map((i)=>An.fromPartial(i))||void 0,n.pollSelectableOptionsCount=e.pollSelectableOptionsCount??void 0,n.messageSecret=e.messageSecret??void 0,n.originalSelfAuthor=e.originalSelfAuthor??void 0,n.senderTimestampMs=e.senderTimestampMs??void 0,n.pollUpdateParentKey=e.pollUpdateParentKey??void 0,n.encPollVote=e.encPollVote!==void 0&&e.encPollVote!==null?as.fromPartial(e.encPollVote):void 0,n.isSentCagPollCreation=e.isSentCagPollCreation??void 0,n.pollContentType=e.pollContentType??void 0,n.pollType=e.pollType??void 0,n.correctOptionIndex=e.correctOptionIndex??void 0,n.pollVotesSnapshot=e.pollVotesSnapshot!==void 0&&e.pollVotesSnapshot!==null?Qo.fromPartial(e.pollVotesSnapshot):void 0,n.encReactionTargetMessageKey=e.encReactionTargetMessageKey??void 0,n.encReactionEncPayload=e.encReactionEncPayload??void 0,n.encReactionEncIv=e.encReactionEncIv??void 0,n.botMessageSecret=e.botMessageSecret??void 0,n.targetMessageKey=e.targetMessageKey??void 0,n.encPayload=e.encPayload??void 0,n.encIv=e.encIv??void 0,n.eventName=e.eventName??void 0,n.isEventCanceled=e.isEventCanceled??void 0,n.eventDescription=e.eventDescription??void 0,n.eventJoinLink=e.eventJoinLink??void 0,n.eventStartTime=e.eventStartTime??void 0,n.eventLocation=e.eventLocation!==void 0&&e.eventLocation!==null?Go.fromPartial(e.eventLocation):void 0,n.eventEndTime=e.eventEndTime??void 0,n.eventIsScheduledCall=e.eventIsScheduledCall??void 0,n.eventExtraGuestsAllowed=e.eventExtraGuestsAllowed??void 0,n.plainProtobufBytes=e.plainProtobufBytes??void 0,n.quarantineExtractedText=e.quarantineExtractedText??void 0,n.pollEndTime=e.pollEndTime??void 0,n.pollHideVoterNames=e.pollHideVoterNames??void 0,n.pollAllowAddOption=e.pollAllowAddOption??void 0,n.sharableEventInviteId=e.sharableEventInviteId??void 0,n.sharableEventInviteTitle=e.sharableEventInviteTitle??void 0,n.sharableEventInviteStartTime=e.sharableEventInviteStartTime??void 0,n.sharableEventInviteEndTime=e.sharableEventInviteEndTime??void 0,n.sharableEventInviteCaption=e.sharableEventInviteCaption??void 0,n.sharableEventInviteIsCanceled=e.sharableEventInviteIsCanceled??void 0,n.sharableEventInviteJpegThumbnail=e.sharableEventInviteJpegThumbnail??void 0,n.sharableEventInviteCallLink=e.sharableEventInviteCallLink??void 0,n}};function J3(){return{}}var Go={encode(e,n=new s){if(e.degreesLatitude!==void 0)n.uint32(9).double(e.degreesLatitude);if(e.degreesLongitude!==void 0)n.uint32(17).double(e.degreesLongitude);if(e.name!==void 0)n.uint32(26).string(e.name);if(e.address!==void 0)n.uint32(34).string(e.address);if(e.url!==void 0)n.uint32(42).string(e.url);if(e.jpegThumbnail!==void 0)n.uint32(50).bytes(e.jpegThumbnail);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=J3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==9)break;a.degreesLatitude=i.double();continue}case 2:{if(t!==17)break;a.degreesLongitude=i.double();continue}case 3:{if(t!==26)break;a.name=i.string();continue}case 4:{if(t!==34)break;a.address=i.string();continue}case 5:{if(t!==42)break;a.url=i.string();continue}case 6:{if(t!==50)break;a.jpegThumbnail=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Go.fromPartial(e??{})},fromPartial(e){let n=J3();return n.degreesLatitude=e.degreesLatitude??void 0,n.degreesLongitude=e.degreesLongitude??void 0,n.name=e.name??void 0,n.address=e.address??void 0,n.url=e.url??void 0,n.jpegThumbnail=e.jpegThumbnail??void 0,n}};function Q3(){return{}}var An={encode(e,n=new s){if(e.name!==void 0)n.uint32(10).string(e.name);if(e.hash!==void 0)n.uint32(18).string(e.hash);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Q3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.name=i.string();continue}case 2:{if(t!==18)break;a.hash=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return An.fromPartial(e??{})},fromPartial(e){let n=Q3();return n.name=e.name??void 0,n.hash=e.hash??void 0,n}};function z3(){return{}}var Jo={encode(e,n=new s){if(e.option!==void 0)An.encode(e.option,n.uint32(10).fork()).join();if(e.optionVoteCount!==void 0)n.uint32(16).int32(e.optionVoteCount);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=z3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.option=An.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.optionVoteCount=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Jo.fromPartial(e??{})},fromPartial(e){let n=z3();return n.option=e.option!==void 0&&e.option!==null?An.fromPartial(e.option):void 0,n.optionVoteCount=e.optionVoteCount??void 0,n}};function Y3(){return{}}var Qo={encode(e,n=new s){if(e.pollVotes!==void 0&&e.pollVotes.length!==0)for(let i of e.pollVotes)Jo.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Y3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.pollVotes===void 0)a.pollVotes=[];let o=Jo.decode(i,i.uint32());if(o!==void 0)a.pollVotes.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Qo.fromPartial(e??{})},fromPartial(e){let n=Y3();return n.pollVotes=e.pollVotes?.map((i)=>Jo.fromPartial(i))||void 0,n}};function Z3(){return{}}var YI={encode(e,n=new s){if(e.currentMsg!==void 0)qe.encode(e.currentMsg,n.uint32(10).fork()).join();if(e.quotedMsg!==void 0)qe.encode(e.quotedMsg,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Z3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.currentMsg=qe.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.quotedMsg=qe.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return YI.fromPartial(e??{})},fromPartial(e){let n=Z3();return n.currentMsg=e.currentMsg!==void 0&&e.currentMsg!==null?qe.fromPartial(e.currentMsg):void 0,n.quotedMsg=e.quotedMsg!==void 0&&e.quotedMsg!==null?qe.fromPartial(e.quotedMsg):void 0,n}};function X3(){return{}}var ZI={encode(e,n=new s){if(e.details!==void 0)n.uint32(10).bytes(e.details);if(e.signature!==void 0)n.uint32(18).bytes(e.signature);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=X3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.details=i.bytes();continue}case 2:{if(t!==18)break;a.signature=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ZI.fromPartial(e??{})},fromPartial(e){let n=X3();return n.details=e.details??void 0,n.signature=e.signature??void 0,n}};function $3(){return{}}var XI={encode(e,n=new s){if(e.serial!==void 0)n.uint32(8).uint32(e.serial);if(e.issuer!==void 0)n.uint32(18).string(e.issuer);if(e.expires!==void 0)n.uint32(24).uint64(e.expires);if(e.subject!==void 0)n.uint32(34).string(e.subject);if(e.key!==void 0)n.uint32(42).bytes(e.key);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=$3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.serial=i.uint32();continue}case 2:{if(t!==18)break;a.issuer=i.string();continue}case 3:{if(t!==24)break;a.expires=i.uint64Number();continue}case 4:{if(t!==34)break;a.subject=i.string();continue}case 5:{if(t!==42)break;a.key=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return XI.fromPartial(e??{})},fromPartial(e){let n=$3();return n.serial=e.serial??void 0,n.issuer=e.issuer??void 0,n.expires=e.expires??void 0,n.subject=e.subject??void 0,n.key=e.key??void 0,n}};function j3(){return{}}var $I={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.message!==void 0)F.encode(e.message,n.uint32(18).fork()).join();if(e.messageTimestamp!==void 0)n.uint32(24).uint64(e.messageTimestamp);if(e.participant!==void 0)n.uint32(34).string(e.participant);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=j3();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.message=F.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.messageTimestamp=i.uint64Number();continue}case 4:{if(t!==34)break;a.participant=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return $I.fromPartial(e??{})},fromPartial(e){let n=j3();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.message=e.message!==void 0&&e.message!==null?F.fromPartial(e.message):void 0,n.messageTimestamp=e.messageTimestamp??void 0,n.participant=e.participant??void 0,n}};function e_(){return{}}var Ge={encode(e,n=new s){if(e.messageVibrate!==void 0)n.uint32(10).string(e.messageVibrate);if(e.messagePopup!==void 0)n.uint32(18).string(e.messagePopup);if(e.messageLight!==void 0)n.uint32(26).string(e.messageLight);if(e.lowPriorityNotifications!==void 0)n.uint32(32).bool(e.lowPriorityNotifications);if(e.reactionsMuted!==void 0)n.uint32(40).bool(e.reactionsMuted);if(e.callVibrate!==void 0)n.uint32(50).string(e.callVibrate);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=e_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.messageVibrate=i.string();continue}case 2:{if(t!==18)break;a.messagePopup=i.string();continue}case 3:{if(t!==26)break;a.messageLight=i.string();continue}case 4:{if(t!==32)break;a.lowPriorityNotifications=i.bool();continue}case 5:{if(t!==40)break;a.reactionsMuted=i.bool();continue}case 6:{if(t!==50)break;a.callVibrate=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ge.fromPartial(e??{})},fromPartial(e){let n=e_();return n.messageVibrate=e.messageVibrate??void 0,n.messagePopup=e.messagePopup??void 0,n.messageLight=e.messageLight??void 0,n.lowPriorityNotifications=e.lowPriorityNotifications??void 0,n.reactionsMuted=e.reactionsMuted??void 0,n.callVibrate=e.callVibrate??void 0,n}};function n_(){return{}}var zo={encode(e,n=new s){if(e.orfClientState!==void 0)n.uint32(10).bytes(e.orfClientState);if(e.threadId!==void 0)n.uint32(18).string(e.threadId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=n_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.orfClientState=i.bytes();continue}case 2:{if(t!==18)break;a.threadId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return zo.fromPartial(e??{})},fromPartial(e){let n=n_();return n.orfClientState=e.orfClientState??void 0,n.threadId=e.threadId??void 0,n}};function i_(){return{}}var jI={encode(e,n=new s){if(e.orfThreadId!==void 0)n.uint32(10).bytes(e.orfThreadId);if(e.error!==void 0)n.uint32(18).string(e.error);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=i_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.orfThreadId=i.bytes();continue}case 2:{if(t!==18)break;a.error=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return jI.fromPartial(e??{})},fromPartial(e){let n=i_();return n.orfThreadId=e.orfThreadId??void 0,n.error=e.error??void 0,n}};function t_(){return{}}var eR={encode(e,n=new s){if(e.companionPublicKey!==void 0)n.uint32(10).bytes(e.companionPublicKey);if(e.companionIdentityKey!==void 0)n.uint32(18).bytes(e.companionIdentityKey);if(e.advSecret!==void 0)n.uint32(26).bytes(e.advSecret);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=t_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.companionPublicKey=i.bytes();continue}case 2:{if(t!==18)break;a.companionIdentityKey=i.bytes();continue}case 3:{if(t!==26)break;a.advSecret=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return eR.fromPartial(e??{})},fromPartial(e){let n=t_();return n.companionPublicKey=e.companionPublicKey??void 0,n.companionIdentityKey=e.companionIdentityKey??void 0,n.advSecret=e.advSecret??void 0,n}};function a_(){return{}}var Yo={encode(e,n=new s){if(e.userJid!==void 0)n.uint32(10).string(e.userJid);if(e.leaveReason!==void 0)n.uint32(16).int32(e.leaveReason);if(e.leaveTs!==void 0)n.uint32(24).uint64(e.leaveTs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=a_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.userJid=i.string();continue}case 2:{if(t!==16)break;a.leaveReason=i.int32();continue}case 3:{if(t!==24)break;a.leaveTs=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Yo.fromPartial(e??{})},fromPartial(e){let n=a_();return n.userJid=e.userJid??void 0,n.leaveReason=e.leaveReason??void 0,n.leaveTs=e.leaveTs??void 0,n}};function r_(){return{}}var Zo={encode(e,n=new s){if(e.groupJid!==void 0)n.uint32(10).string(e.groupJid);if(e.pastParticipants!==void 0&&e.pastParticipants.length!==0)for(let i of e.pastParticipants)Yo.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=r_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.groupJid=i.string();continue}case 2:{if(t!==18)break;if(a.pastParticipants===void 0)a.pastParticipants=[];let o=Yo.decode(i,i.uint32());if(o!==void 0)a.pastParticipants.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Zo.fromPartial(e??{})},fromPartial(e){let n=r_();return n.groupJid=e.groupJid??void 0,n.pastParticipants=e.pastParticipants?.map((i)=>Yo.fromPartial(i))||void 0,n}};function d_(){return{}}var nR={encode(e,n=new s){if(e.currentLthash!==void 0)n.uint32(10).bytes(e.currentLthash);if(e.newLthash!==void 0)n.uint32(18).bytes(e.newLthash);if(e.patchVersion!==void 0)n.uint32(26).bytes(e.patchVersion);if(e.collectionName!==void 0)n.uint32(34).bytes(e.collectionName);if(e.firstFourBytesFromAHashOfSnapshotMacKey!==void 0)n.uint32(42).bytes(e.firstFourBytesFromAHashOfSnapshotMacKey);if(e.newLthashSubtract!==void 0)n.uint32(50).bytes(e.newLthashSubtract);if(e.numberAdd!==void 0)n.uint32(56).int32(e.numberAdd);if(e.numberRemove!==void 0)n.uint32(64).int32(e.numberRemove);if(e.numberOverride!==void 0)n.uint32(72).int32(e.numberOverride);if(e.senderPlatform!==void 0)n.uint32(80).int32(e.senderPlatform);if(e.isSenderPrimary!==void 0)n.uint32(88).bool(e.isSenderPrimary);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=d_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.currentLthash=i.bytes();continue}case 2:{if(t!==18)break;a.newLthash=i.bytes();continue}case 3:{if(t!==26)break;a.patchVersion=i.bytes();continue}case 4:{if(t!==34)break;a.collectionName=i.bytes();continue}case 5:{if(t!==42)break;a.firstFourBytesFromAHashOfSnapshotMacKey=i.bytes();continue}case 6:{if(t!==50)break;a.newLthashSubtract=i.bytes();continue}case 7:{if(t!==56)break;a.numberAdd=i.int32();continue}case 8:{if(t!==64)break;a.numberRemove=i.int32();continue}case 9:{if(t!==72)break;a.numberOverride=i.int32();continue}case 10:{if(t!==80)break;a.senderPlatform=i.int32();continue}case 11:{if(t!==88)break;a.isSenderPrimary=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return nR.fromPartial(e??{})},fromPartial(e){let n=d_();return n.currentLthash=e.currentLthash??void 0,n.newLthash=e.newLthash??void 0,n.patchVersion=e.patchVersion??void 0,n.collectionName=e.collectionName??void 0,n.firstFourBytesFromAHashOfSnapshotMacKey=e.firstFourBytesFromAHashOfSnapshotMacKey??void 0,n.newLthashSubtract=e.newLthashSubtract??void 0,n.numberAdd=e.numberAdd??void 0,n.numberRemove=e.numberRemove??void 0,n.numberOverride=e.numberOverride??void 0,n.senderPlatform=e.senderPlatform??void 0,n.isSenderPrimary=e.isSenderPrimary??void 0,n}};function o_(){return{}}var Sn={encode(e,n=new s){if(e.id!==void 0)n.uint32(10).string(e.id);if(e.fileLength!==void 0)n.uint32(16).uint64(e.fileLength);if(e.width!==void 0)n.uint32(24).uint32(e.width);if(e.height!==void 0)n.uint32(32).uint32(e.height);if(e.mimetype!==void 0)n.uint32(42).string(e.mimetype);if(e.placeholderArgb!==void 0)n.uint32(53).fixed32(e.placeholderArgb);if(e.textArgb!==void 0)n.uint32(61).fixed32(e.textArgb);if(e.subtextArgb!==void 0)n.uint32(69).fixed32(e.subtextArgb);if(e.mediaData!==void 0)Xo.encode(e.mediaData,n.uint32(74).fork()).join();if(e.type!==void 0)n.uint32(80).int32(e.type);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=o_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.id=i.string();continue}case 2:{if(t!==16)break;a.fileLength=i.uint64Number();continue}case 3:{if(t!==24)break;a.width=i.uint32();continue}case 4:{if(t!==32)break;a.height=i.uint32();continue}case 5:{if(t!==42)break;a.mimetype=i.string();continue}case 6:{if(t!==53)break;a.placeholderArgb=i.fixed32();continue}case 7:{if(t!==61)break;a.textArgb=i.fixed32();continue}case 8:{if(t!==69)break;a.subtextArgb=i.fixed32();continue}case 9:{if(t!==74)break;a.mediaData=Xo.decode(i,i.uint32());continue}case 10:{if(t!==80)break;a.type=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Sn.fromPartial(e??{})},fromPartial(e){let n=o_();return n.id=e.id??void 0,n.fileLength=e.fileLength??void 0,n.width=e.width??void 0,n.height=e.height??void 0,n.mimetype=e.mimetype??void 0,n.placeholderArgb=e.placeholderArgb??void 0,n.textArgb=e.textArgb??void 0,n.subtextArgb=e.subtextArgb??void 0,n.mediaData=e.mediaData!==void 0&&e.mediaData!==null?Xo.fromPartial(e.mediaData):void 0,n.type=e.type??void 0,n}};function s_(){return{}}var Xo={encode(e,n=new s){if(e.mediaKey!==void 0)n.uint32(10).bytes(e.mediaKey);if(e.mediaKeyTimestamp!==void 0)n.uint32(16).int64(e.mediaKeyTimestamp);if(e.fileSha256!==void 0)n.uint32(26).bytes(e.fileSha256);if(e.fileEncSha256!==void 0)n.uint32(34).bytes(e.fileEncSha256);if(e.directPath!==void 0)n.uint32(42).string(e.directPath);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=s_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.mediaKey=i.bytes();continue}case 2:{if(t!==16)break;a.mediaKeyTimestamp=i.int64Number();continue}case 3:{if(t!==26)break;a.fileSha256=i.bytes();continue}case 4:{if(t!==34)break;a.fileEncSha256=i.bytes();continue}case 5:{if(t!==42)break;a.directPath=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Xo.fromPartial(e??{})},fromPartial(e){let n=s_();return n.mediaKey=e.mediaKey??void 0,n.mediaKeyTimestamp=e.mediaKeyTimestamp??void 0,n.fileSha256=e.fileSha256??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.directPath=e.directPath??void 0,n}};function u_(){return{}}var Je={encode(e,n=new s){if(e.currencyDeprecated!==void 0)n.uint32(8).int32(e.currencyDeprecated);if(e.amount1000!==void 0)n.uint32(16).uint64(e.amount1000);if(e.receiverJid!==void 0)n.uint32(26).string(e.receiverJid);if(e.status!==void 0)n.uint32(32).int32(e.status);if(e.transactionTimestamp!==void 0)n.uint32(40).uint64(e.transactionTimestamp);if(e.requestMessageKey!==void 0)_.encode(e.requestMessageKey,n.uint32(50).fork()).join();if(e.expiryTimestamp!==void 0)n.uint32(56).uint64(e.expiryTimestamp);if(e.futureproofed!==void 0)n.uint32(64).bool(e.futureproofed);if(e.currency!==void 0)n.uint32(74).string(e.currency);if(e.txnStatus!==void 0)n.uint32(80).int32(e.txnStatus);if(e.useNoviFiatFormat!==void 0)n.uint32(88).bool(e.useNoviFiatFormat);if(e.primaryAmount!==void 0)Z.encode(e.primaryAmount,n.uint32(98).fork()).join();if(e.exchangeAmount!==void 0)Z.encode(e.exchangeAmount,n.uint32(106).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=u_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.currencyDeprecated=i.int32();continue}case 2:{if(t!==16)break;a.amount1000=i.uint64Number();continue}case 3:{if(t!==26)break;a.receiverJid=i.string();continue}case 4:{if(t!==32)break;a.status=i.int32();continue}case 5:{if(t!==40)break;a.transactionTimestamp=i.uint64Number();continue}case 6:{if(t!==50)break;a.requestMessageKey=_.decode(i,i.uint32());continue}case 7:{if(t!==56)break;a.expiryTimestamp=i.uint64Number();continue}case 8:{if(t!==64)break;a.futureproofed=i.bool();continue}case 9:{if(t!==74)break;a.currency=i.string();continue}case 10:{if(t!==80)break;a.txnStatus=i.int32();continue}case 11:{if(t!==88)break;a.useNoviFiatFormat=i.bool();continue}case 12:{if(t!==98)break;a.primaryAmount=Z.decode(i,i.uint32());continue}case 13:{if(t!==106)break;a.exchangeAmount=Z.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Je.fromPartial(e??{})},fromPartial(e){let n=u_();return n.currencyDeprecated=e.currencyDeprecated??void 0,n.amount1000=e.amount1000??void 0,n.receiverJid=e.receiverJid??void 0,n.status=e.status??void 0,n.transactionTimestamp=e.transactionTimestamp??void 0,n.requestMessageKey=e.requestMessageKey!==void 0&&e.requestMessageKey!==null?_.fromPartial(e.requestMessageKey):void 0,n.expiryTimestamp=e.expiryTimestamp??void 0,n.futureproofed=e.futureproofed??void 0,n.currency=e.currency??void 0,n.txnStatus=e.txnStatus??void 0,n.useNoviFiatFormat=e.useNoviFiatFormat??void 0,n.primaryAmount=e.primaryAmount!==void 0&&e.primaryAmount!==null?Z.fromPartial(e.primaryAmount):void 0,n.exchangeAmount=e.exchangeAmount!==void 0&&e.exchangeAmount!==null?Z.fromPartial(e.exchangeAmount):void 0,n}};function c_(){return{}}var $o={encode(e,n=new s){if(e.pnJid!==void 0)n.uint32(10).string(e.pnJid);if(e.lidJid!==void 0)n.uint32(18).string(e.lidJid);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=c_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.pnJid=i.string();continue}case 2:{if(t!==18)break;a.lidJid=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return $o.fromPartial(e??{})},fromPartial(e){let n=c_();return n.pnJid=e.pnJid??void 0,n.lidJid=e.lidJid??void 0,n}};function f_(){return{}}var jo={encode(e,n=new s){if(e.oldPhoto!==void 0)n.uint32(10).bytes(e.oldPhoto);if(e.newPhoto!==void 0)n.uint32(18).bytes(e.newPhoto);if(e.newPhotoId!==void 0)n.uint32(24).uint32(e.newPhotoId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=f_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.oldPhoto=i.bytes();continue}case 2:{if(t!==18)break;a.newPhoto=i.bytes();continue}case 3:{if(t!==24)break;a.newPhotoId=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return jo.fromPartial(e??{})},fromPartial(e){let n=f_();return n.oldPhoto=e.oldPhoto??void 0,n.newPhoto=e.newPhoto??void 0,n.newPhotoId=e.newPhotoId??void 0,n}};function l_(){return{}}var es={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).int32(e.type);if(e.key!==void 0)_.encode(e.key,n.uint32(18).fork()).join();if(e.senderTimestampMs!==void 0)n.uint32(24).int64(e.senderTimestampMs);if(e.serverTimestampMs!==void 0)n.uint32(32).int64(e.serverTimestampMs);if(e.messageAddOnContextInfo!==void 0)hn.encode(e.messageAddOnContextInfo,n.uint32(42).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=l_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.int32();continue}case 2:{if(t!==18)break;a.key=_.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.senderTimestampMs=i.int64Number();continue}case 4:{if(t!==32)break;a.serverTimestampMs=i.int64Number();continue}case 5:{if(t!==42)break;a.messageAddOnContextInfo=hn.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return es.fromPartial(e??{})},fromPartial(e){let n=l_();return n.type=e.type??void 0,n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.senderTimestampMs=e.senderTimestampMs??void 0,n.serverTimestampMs=e.serverTimestampMs??void 0,n.messageAddOnContextInfo=e.messageAddOnContextInfo!==void 0&&e.messageAddOnContextInfo!==null?hn.fromPartial(e.messageAddOnContextInfo):void 0,n}};function p_(){return{}}var ns={encode(e,n=new s){if(e.xDeprecated!==void 0)n.uint32(8).int32(e.xDeprecated);if(e.yDeprecated!==void 0)n.uint32(16).int32(e.yDeprecated);if(e.x!==void 0)n.uint32(25).double(e.x);if(e.y!==void 0)n.uint32(33).double(e.y);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=p_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.xDeprecated=i.int32();continue}case 2:{if(t!==16)break;a.yDeprecated=i.int32();continue}case 3:{if(t!==25)break;a.x=i.double();continue}case 4:{if(t!==33)break;a.y=i.double();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ns.fromPartial(e??{})},fromPartial(e){let n=p_();return n.xDeprecated=e.xDeprecated??void 0,n.yDeprecated=e.yDeprecated??void 0,n.x=e.x??void 0,n.y=e.y??void 0,n}};function g_(){return{}}var is={encode(e,n=new s){if(e.pollInvalidated!==void 0)n.uint32(8).bool(e.pollInvalidated);if(e.pollNameHashHistory!==void 0&&e.pollNameHashHistory.length!==0)for(let i of e.pollNameHashHistory)ts.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=g_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.pollInvalidated=i.bool();continue}case 2:{if(t!==18)break;if(a.pollNameHashHistory===void 0)a.pollNameHashHistory=[];let o=ts.decode(i,i.uint32());if(o!==void 0)a.pollNameHashHistory.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return is.fromPartial(e??{})},fromPartial(e){let n=g_();return n.pollInvalidated=e.pollInvalidated??void 0,n.pollNameHashHistory=e.pollNameHashHistory?.map((i)=>ts.fromPartial(i))||void 0,n}};function y_(){return{}}var ts={encode(e,n=new s){if(e.editStanzaId!==void 0)n.uint32(10).string(e.editStanzaId);if(e.pollNameHash!==void 0)n.uint32(18).bytes(e.pollNameHash);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=y_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.editStanzaId=i.string();continue}case 2:{if(t!==18)break;a.pollNameHash=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ts.fromPartial(e??{})},fromPartial(e){let n=y_();return n.editStanzaId=e.editStanzaId??void 0,n.pollNameHash=e.pollNameHash??void 0,n}};function M_(){return{}}var as={encode(e,n=new s){if(e.encPayload!==void 0)n.uint32(10).bytes(e.encPayload);if(e.encIv!==void 0)n.uint32(18).bytes(e.encIv);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=M_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.encPayload=i.bytes();continue}case 2:{if(t!==18)break;a.encIv=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return as.fromPartial(e??{})},fromPartial(e){let n=M_();return n.encPayload=e.encPayload??void 0,n.encIv=e.encIv??void 0,n}};function m_(){return{}}var rs={encode(e,n=new s){if(e.pollUpdateMessageKey!==void 0)_.encode(e.pollUpdateMessageKey,n.uint32(10).fork()).join();if(e.vote!==void 0)Be.encode(e.vote,n.uint32(18).fork()).join();if(e.senderTimestampMs!==void 0)n.uint32(24).int64(e.senderTimestampMs);if(e.serverTimestampMs!==void 0)n.uint32(32).int64(e.serverTimestampMs);if(e.unread!==void 0)n.uint32(40).bool(e.unread);if(e.metadata!==void 0)Ae.encode(e.metadata,n.uint32(50).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=m_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.pollUpdateMessageKey=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.vote=Be.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.senderTimestampMs=i.int64Number();continue}case 4:{if(t!==32)break;a.serverTimestampMs=i.int64Number();continue}case 5:{if(t!==40)break;a.unread=i.bool();continue}case 6:{if(t!==50)break;a.metadata=Ae.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return rs.fromPartial(e??{})},fromPartial(e){let n=m_();return n.pollUpdateMessageKey=e.pollUpdateMessageKey!==void 0&&e.pollUpdateMessageKey!==null?_.fromPartial(e.pollUpdateMessageKey):void 0,n.vote=e.vote!==void 0&&e.vote!==null?Be.fromPartial(e.vote):void 0,n.senderTimestampMs=e.senderTimestampMs??void 0,n.serverTimestampMs=e.serverTimestampMs??void 0,n.unread=e.unread??void 0,n.metadata=e.metadata!==void 0&&e.metadata!==null?Ae.fromPartial(e.metadata):void 0,n}};function __(){return{}}var iR={encode(e,n=new s){if(e.id!==void 0)n.uint32(8).uint32(e.id);if(e.publicKey!==void 0)n.uint32(18).bytes(e.publicKey);if(e.privateKey!==void 0)n.uint32(26).bytes(e.privateKey);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=__();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.id=i.uint32();continue}case 2:{if(t!==18)break;a.publicKey=i.bytes();continue}case 3:{if(t!==26)break;a.privateKey=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return iR.fromPartial(e??{})},fromPartial(e){let n=__();return n.id=e.id??void 0,n.publicKey=e.publicKey??void 0,n.privateKey=e.privateKey??void 0,n}};function h_(){return{}}var tR={encode(e,n=new s){if(e.registrationId!==void 0)n.uint32(40).uint32(e.registrationId);if(e.preKeyId!==void 0)n.uint32(8).uint32(e.preKeyId);if(e.signedPreKeyId!==void 0)n.uint32(48).uint32(e.signedPreKeyId);if(e.baseKey!==void 0)n.uint32(18).bytes(e.baseKey);if(e.identityKey!==void 0)n.uint32(26).bytes(e.identityKey);if(e.message!==void 0)n.uint32(34).bytes(e.message);if(e.kyberPreKeyId!==void 0)n.uint32(56).uint32(e.kyberPreKeyId);if(e.kyberCiphertext!==void 0)n.uint32(66).bytes(e.kyberCiphertext);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=h_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 5:{if(t!==40)break;a.registrationId=i.uint32();continue}case 1:{if(t!==8)break;a.preKeyId=i.uint32();continue}case 6:{if(t!==48)break;a.signedPreKeyId=i.uint32();continue}case 2:{if(t!==18)break;a.baseKey=i.bytes();continue}case 3:{if(t!==26)break;a.identityKey=i.bytes();continue}case 4:{if(t!==34)break;a.message=i.bytes();continue}case 7:{if(t!==56)break;a.kyberPreKeyId=i.uint32();continue}case 8:{if(t!==66)break;a.kyberCiphertext=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return tR.fromPartial(e??{})},fromPartial(e){let n=h_();return n.registrationId=e.registrationId??void 0,n.preKeyId=e.preKeyId??void 0,n.signedPreKeyId=e.signedPreKeyId??void 0,n.baseKey=e.baseKey??void 0,n.identityKey=e.identityKey??void 0,n.message=e.message??void 0,n.kyberPreKeyId=e.kyberPreKeyId??void 0,n.kyberCiphertext=e.kyberCiphertext??void 0,n}};function k_(){return{}}var ds={encode(e,n=new s){if(e.serverCampaignId!==void 0)n.uint32(10).string(e.serverCampaignId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=k_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.serverCampaignId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ds.fromPartial(e??{})},fromPartial(e){let n=k_();return n.serverCampaignId=e.serverCampaignId??void 0,n}};function A_(){return{}}var aR={encode(e,n=new s){if(e.publicKey!==void 0)n.uint32(10).bytes(e.publicKey);if(e.nonce!==void 0)n.uint32(18).bytes(e.nonce);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=A_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.publicKey=i.bytes();continue}case 2:{if(t!==18)break;a.nonce=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return aR.fromPartial(e??{})},fromPartial(e){let n=A_();return n.publicKey=e.publicKey??void 0,n.nonce=e.nonce??void 0,n}};function S_(){return{}}var os={encode(e,n=new s){if(e.directPath!==void 0)n.uint32(10).string(e.directPath);if(e.fileSha256!==void 0)n.uint32(18).bytes(e.fileSha256);if(e.height!==void 0)n.uint32(24).uint32(e.height);if(e.width!==void 0)n.uint32(32).uint32(e.width);if(e.fileLength!==void 0)n.uint32(40).uint64(e.fileLength);if(e.bitrate!==void 0)n.uint32(48).uint32(e.bitrate);if(e.quality!==void 0)n.uint32(56).int32(e.quality);if(e.capabilities!==void 0&&e.capabilities.length!==0)for(let i of e.capabilities)n.uint32(66).string(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=S_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.directPath=i.string();continue}case 2:{if(t!==18)break;a.fileSha256=i.bytes();continue}case 3:{if(t!==24)break;a.height=i.uint32();continue}case 4:{if(t!==32)break;a.width=i.uint32();continue}case 5:{if(t!==40)break;a.fileLength=i.uint64Number();continue}case 6:{if(t!==48)break;a.bitrate=i.uint32();continue}case 7:{if(t!==56)break;a.quality=i.int32();continue}case 8:{if(t!==66)break;if(a.capabilities===void 0)a.capabilities=[];let o=i.string();if(o!==void 0)a.capabilities.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return os.fromPartial(e??{})},fromPartial(e){let n=S_();return n.directPath=e.directPath??void 0,n.fileSha256=e.fileSha256??void 0,n.height=e.height??void 0,n.width=e.width??void 0,n.fileLength=e.fileLength??void 0,n.bitrate=e.bitrate??void 0,n.quality=e.quality??void 0,n.capabilities=e.capabilities?.map((i)=>i)||void 0,n}};function P_(){return{}}var rR={encode(e,n=new s){if(e.companionEphemeralIdentity!==void 0)n.uint32(10).bytes(e.companionEphemeralIdentity);if(e.commitment!==void 0)Ut.encode(e.commitment,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=P_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.companionEphemeralIdentity=i.bytes();continue}case 2:{if(t!==18)break;a.commitment=Ut.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return rR.fromPartial(e??{})},fromPartial(e){let n=P_();return n.companionEphemeralIdentity=e.companionEphemeralIdentity??void 0,n.commitment=e.commitment!==void 0&&e.commitment!==null?Ut.fromPartial(e.commitment):void 0,n}};function b_(){return{}}var ss={encode(e,n=new s){if(e.id!==void 0)n.uint32(10).string(e.id);if(e.pushname!==void 0)n.uint32(18).string(e.pushname);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=b_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.id=i.string();continue}case 2:{if(t!==18)break;a.pushname=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ss.fromPartial(e??{})},fromPartial(e){let n=b_();return n.id=e.id??void 0,n.pushname=e.pushname??void 0,n}};function I_(){return{}}var dR={encode(e,n=new s){return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=I_();while(i.pos<r){let t=i.uint32();switch(t>>>3){}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return dR.fromPartial(e??{})},fromPartial(e){return I_()}};function R_(){return{}}var us={encode(e,n=new s){if(e.filterName!==void 0)n.uint32(10).string(e.filterName);if(e.parameters!==void 0&&e.parameters.length!==0)for(let i of e.parameters)cs.encode(i,n.uint32(18).fork()).join();if(e.filterResult!==void 0)n.uint32(24).int32(e.filterResult);if(e.clientNotSupportedConfig!==void 0)n.uint32(32).int32(e.clientNotSupportedConfig);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=R_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.filterName=i.string();continue}case 2:{if(t!==18)break;if(a.parameters===void 0)a.parameters=[];let o=cs.decode(i,i.uint32());if(o!==void 0)a.parameters.push(o);continue}case 3:{if(t!==24)break;a.filterResult=i.int32();continue}case 4:{if(t!==32)break;a.clientNotSupportedConfig=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return us.fromPartial(e??{})},fromPartial(e){let n=R_();return n.filterName=e.filterName??void 0,n.parameters=e.parameters?.map((i)=>cs.fromPartial(i))||void 0,n.filterResult=e.filterResult??void 0,n.clientNotSupportedConfig=e.clientNotSupportedConfig??void 0,n}};function D_(){return{}}var qn={encode(e,n=new s){if(e.clauseType!==void 0)n.uint32(8).int32(e.clauseType);if(e.clauses!==void 0&&e.clauses.length!==0)for(let i of e.clauses)qn.encode(i,n.uint32(18).fork()).join();if(e.filters!==void 0&&e.filters.length!==0)for(let i of e.filters)us.encode(i,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=D_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.clauseType=i.int32();continue}case 2:{if(t!==18)break;if(a.clauses===void 0)a.clauses=[];let o=qn.decode(i,i.uint32());if(o!==void 0)a.clauses.push(o);continue}case 3:{if(t!==26)break;if(a.filters===void 0)a.filters=[];let o=us.decode(i,i.uint32());if(o!==void 0)a.filters.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return qn.fromPartial(e??{})},fromPartial(e){let n=D_();return n.clauseType=e.clauseType??void 0,n.clauses=e.clauses?.map((i)=>qn.fromPartial(i))||void 0,n.filters=e.filters?.map((i)=>us.fromPartial(i))||void 0,n}};function E_(){return{}}var cs={encode(e,n=new s){if(e.key!==void 0)n.uint32(10).string(e.key);if(e.value!==void 0)n.uint32(18).string(e.value);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=E_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=i.string();continue}case 2:{if(t!==18)break;a.value=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return cs.fromPartial(e??{})},fromPartial(e){let n=E_();return n.key=e.key??void 0,n.value=e.value??void 0,n}};function B_(){return{}}var fs={encode(e,n=new s){if(e.originalData!==void 0)n.uint32(10).bytes(e.originalData);if(e.extractedText!==void 0)n.uint32(18).string(e.extractedText);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=B_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.originalData=i.bytes();continue}case 2:{if(t!==18)break;a.extractedText=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return fs.fromPartial(e??{})},fromPartial(e){let n=B_();return n.originalData=e.originalData??void 0,n.extractedText=e.extractedText??void 0,n}};function C_(){return{}}var ls={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.text!==void 0)n.uint32(18).string(e.text);if(e.groupingKey!==void 0)n.uint32(26).string(e.groupingKey);if(e.senderTimestampMs!==void 0)n.uint32(32).int64(e.senderTimestampMs);if(e.unread!==void 0)n.uint32(40).bool(e.unread);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=C_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.text=i.string();continue}case 3:{if(t!==26)break;a.groupingKey=i.string();continue}case 4:{if(t!==32)break;a.senderTimestampMs=i.int64Number();continue}case 5:{if(t!==40)break;a.unread=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ls.fromPartial(e??{})},fromPartial(e){let n=C_();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.text=e.text??void 0,n.groupingKey=e.groupingKey??void 0,n.senderTimestampMs=e.senderTimestampMs??void 0,n.unread=e.unread??void 0,n}};function v_(){return{}}var ps={encode(e,n=new s){if(e.emoji!==void 0)n.uint32(10).string(e.emoji);if(e.weight!==void 0)n.uint32(21).float(e.weight);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=v_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.emoji=i.string();continue}case 2:{if(t!==21)break;a.weight=i.float();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ps.fromPartial(e??{})},fromPartial(e){let n=v_();return n.emoji=e.emoji??void 0,n.weight=e.weight??void 0,n}};function x_(){return{}}var oR={encode(e,n=new s){if(e.currentSession!==void 0)Qe.encode(e.currentSession,n.uint32(10).fork()).join();if(e.previousSessions!==void 0&&e.previousSessions.length!==0)for(let i of e.previousSessions)Qe.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=x_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.currentSession=Qe.decode(i,i.uint32());continue}case 2:{if(t!==18)break;if(a.previousSessions===void 0)a.previousSessions=[];let o=Qe.decode(i,i.uint32());if(o!==void 0)a.previousSessions.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return oR.fromPartial(e??{})},fromPartial(e){let n=x_();return n.currentSession=e.currentSession!==void 0&&e.currentSession!==null?Qe.fromPartial(e.currentSession):void 0,n.previousSessions=e.previousSessions?.map((i)=>Qe.fromPartial(i))||void 0,n}};function N_(){return{}}var sR={encode(e,n=new s){if(e.minVersion!==void 0)n.uint32(8).uint32(e.minVersion);if(e.maxVersion!==void 0)n.uint32(16).uint32(e.maxVersion);if(e.notReportableMinVersion!==void 0)n.uint32(24).uint32(e.notReportableMinVersion);if(e.never!==void 0)n.uint32(32).bool(e.never);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=N_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.minVersion=i.uint32();continue}case 2:{if(t!==16)break;a.maxVersion=i.uint32();continue}case 3:{if(t!==24)break;a.notReportableMinVersion=i.uint32();continue}case 4:{if(t!==32)break;a.never=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return sR.fromPartial(e??{})},fromPartial(e){let n=N_();return n.minVersion=e.minVersion??void 0,n.maxVersion=e.maxVersion??void 0,n.notReportableMinVersion=e.notReportableMinVersion??void 0,n.never=e.never??void 0,n}};function O_(){return{}}var gs={encode(e,n=new s){if(e.reportingTag!==void 0)n.uint32(10).bytes(e.reportingTag);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=O_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.reportingTag=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return gs.fromPartial(e??{})},fromPartial(e){let n=O_();return n.reportingTag=e.reportingTag??void 0,n}};function U_(){return{}}var uR={encode(e,n=new s){if(e.regionId!==void 0&&e.regionId.length!==0)for(let i of e.regionId)n.uint32(8).int32(i);if(e.clusterId!==void 0&&e.clusterId.length!==0)for(let i of e.clusterId)n.uint32(16).int32(i);if(e.taskId!==void 0)n.uint32(24).int32(e.taskId);if(e.debug!==void 0)n.uint32(32).bool(e.debug);if(e.tcpBbr!==void 0)n.uint32(40).bool(e.tcpBbr);if(e.tcpKeepalive!==void 0)n.uint32(48).bool(e.tcpKeepalive);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=U_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t===8){if(a.regionId===void 0)a.regionId=[];a.regionId.push(i.int32());continue}if(t===10){if(a.regionId===void 0)a.regionId=[];let o=i.uint32()+i.pos;while(i.pos<o)a.regionId.push(i.int32());continue}break}case 2:{if(t===16){if(a.clusterId===void 0)a.clusterId=[];a.clusterId.push(i.int32());continue}if(t===18){if(a.clusterId===void 0)a.clusterId=[];let o=i.uint32()+i.pos;while(i.pos<o)a.clusterId.push(i.int32());continue}break}case 3:{if(t!==24)break;a.taskId=i.int32();continue}case 4:{if(t!==32)break;a.debug=i.bool();continue}case 5:{if(t!==40)break;a.tcpBbr=i.bool();continue}case 6:{if(t!==48)break;a.tcpKeepalive=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return uR.fromPartial(e??{})},fromPartial(e){let n=U_();return n.regionId=e.regionId?.map((i)=>i)||void 0,n.clusterId=e.clusterId?.map((i)=>i)||void 0,n.taskId=e.taskId??void 0,n.debug=e.debug??void 0,n.tcpBbr=e.tcpBbr??void 0,n.tcpKeepalive=e.tcpKeepalive??void 0,n}};function T_(){return{}}var ys={encode(e,n=new s){if(e.revealKeyId!==void 0)n.uint32(10).string(e.revealKeyId);if(e.revealKey!==void 0)n.uint32(18).bytes(e.revealKey);if(e.scheduledTime!==void 0)n.uint32(24).uint64(e.scheduledTime);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=T_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.revealKeyId=i.string();continue}case 2:{if(t!==18)break;a.revealKey=i.bytes();continue}case 3:{if(t!==24)break;a.scheduledTime=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ys.fromPartial(e??{})},fromPartial(e){let n=T_();return n.revealKeyId=e.revealKeyId??void 0,n.revealKey=e.revealKey??void 0,n.scheduledTime=e.scheduledTime??void 0,n}};function L_(){return{}}var Xc={encode(e,n=new s){if(e.id!==void 0)n.uint32(8).uint32(e.id);if(e.iteration!==void 0)n.uint32(16).uint32(e.iteration);if(e.chainKey!==void 0)n.uint32(26).bytes(e.chainKey);if(e.signingKey!==void 0)n.uint32(34).bytes(e.signingKey);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=L_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.id=i.uint32();continue}case 2:{if(t!==16)break;a.iteration=i.uint32();continue}case 3:{if(t!==26)break;a.chainKey=i.bytes();continue}case 4:{if(t!==34)break;a.signingKey=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Xc.fromPartial(e??{})},fromPartial(e){let n=L_();return n.id=e.id??void 0,n.iteration=e.iteration??void 0,n.chainKey=e.chainKey??void 0,n.signingKey=e.signingKey??void 0,n}};function w_(){return{}}var $c={encode(e,n=new s){if(e.id!==void 0)n.uint32(8).uint32(e.id);if(e.iteration!==void 0)n.uint32(16).uint32(e.iteration);if(e.ciphertext!==void 0)n.uint32(26).bytes(e.ciphertext);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=w_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.id=i.uint32();continue}case 2:{if(t!==16)break;a.iteration=i.uint32();continue}case 3:{if(t!==26)break;a.ciphertext=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return $c.fromPartial(e??{})},fromPartial(e){let n=w_();return n.id=e.id??void 0,n.iteration=e.iteration??void 0,n.ciphertext=e.ciphertext??void 0,n}};function F_(){return{}}var cR={encode(e,n=new s){if(e.senderKeyStates!==void 0&&e.senderKeyStates.length!==0)for(let i of e.senderKeyStates)Ms.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=F_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.senderKeyStates===void 0)a.senderKeyStates=[];let o=Ms.decode(i,i.uint32());if(o!==void 0)a.senderKeyStates.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return cR.fromPartial(e??{})},fromPartial(e){let n=F_();return n.senderKeyStates=e.senderKeyStates?.map((i)=>Ms.fromPartial(i))||void 0,n}};function V_(){return{}}var Ms={encode(e,n=new s){if(e.senderKeyId!==void 0)n.uint32(8).uint32(e.senderKeyId);if(e.senderChainKey!==void 0)ms.encode(e.senderChainKey,n.uint32(18).fork()).join();if(e.senderSigningKey!==void 0)hs.encode(e.senderSigningKey,n.uint32(26).fork()).join();if(e.senderMessageKeys!==void 0&&e.senderMessageKeys.length!==0)for(let i of e.senderMessageKeys)_s.encode(i,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=V_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.senderKeyId=i.uint32();continue}case 2:{if(t!==18)break;a.senderChainKey=ms.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.senderSigningKey=hs.decode(i,i.uint32());continue}case 4:{if(t!==34)break;if(a.senderMessageKeys===void 0)a.senderMessageKeys=[];let o=_s.decode(i,i.uint32());if(o!==void 0)a.senderMessageKeys.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ms.fromPartial(e??{})},fromPartial(e){let n=V_();return n.senderKeyId=e.senderKeyId??void 0,n.senderChainKey=e.senderChainKey!==void 0&&e.senderChainKey!==null?ms.fromPartial(e.senderChainKey):void 0,n.senderSigningKey=e.senderSigningKey!==void 0&&e.senderSigningKey!==null?hs.fromPartial(e.senderSigningKey):void 0,n.senderMessageKeys=e.senderMessageKeys?.map((i)=>_s.fromPartial(i))||void 0,n}};function K_(){return{}}var ms={encode(e,n=new s){if(e.iteration!==void 0)n.uint32(8).uint32(e.iteration);if(e.seed!==void 0)n.uint32(18).bytes(e.seed);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=K_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.iteration=i.uint32();continue}case 2:{if(t!==18)break;a.seed=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ms.fromPartial(e??{})},fromPartial(e){let n=K_();return n.iteration=e.iteration??void 0,n.seed=e.seed??void 0,n}};function W_(){return{}}var _s={encode(e,n=new s){if(e.iteration!==void 0)n.uint32(8).uint32(e.iteration);if(e.seed!==void 0)n.uint32(18).bytes(e.seed);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=W_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.iteration=i.uint32();continue}case 2:{if(t!==18)break;a.seed=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return _s.fromPartial(e??{})},fromPartial(e){let n=W_();return n.iteration=e.iteration??void 0,n.seed=e.seed??void 0,n}};function H_(){return{}}var hs={encode(e,n=new s){if(e.public!==void 0)n.uint32(10).bytes(e.public);if(e.private!==void 0)n.uint32(18).bytes(e.private);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=H_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.public=i.bytes();continue}case 2:{if(t!==18)break;a.private=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return hs.fromPartial(e??{})},fromPartial(e){let n=H_();return n.public=e.public??void 0,n.private=e.private??void 0,n}};function q_(){return{}}var jc={encode(e,n=new s){if(e.stanzaId!==void 0)n.uint32(10).string(e.stanzaId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=q_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.stanzaId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return jc.fromPartial(e??{})},fromPartial(e){let n=q_();return n.stanzaId=e.stanzaId??void 0,n}};function G_(){return{}}var Qe={encode(e,n=new s){if(e.sessionVersion!==void 0)n.uint32(8).uint32(e.sessionVersion);if(e.localIdentityPublic!==void 0)n.uint32(18).bytes(e.localIdentityPublic);if(e.remoteIdentityPublic!==void 0)n.uint32(26).bytes(e.remoteIdentityPublic);if(e.rootKey!==void 0)n.uint32(34).bytes(e.rootKey);if(e.previousCounter!==void 0)n.uint32(40).uint32(e.previousCounter);if(e.senderChain!==void 0)ze.encode(e.senderChain,n.uint32(50).fork()).join();if(e.receiverChains!==void 0&&e.receiverChains.length!==0)for(let i of e.receiverChains)ze.encode(i,n.uint32(58).fork()).join();if(e.pendingKeyExchange!==void 0)Ss.encode(e.pendingKeyExchange,n.uint32(66).fork()).join();if(e.pendingPreKey!==void 0)Ps.encode(e.pendingPreKey,n.uint32(74).fork()).join();if(e.remoteRegistrationId!==void 0)n.uint32(80).uint32(e.remoteRegistrationId);if(e.localRegistrationId!==void 0)n.uint32(88).uint32(e.localRegistrationId);if(e.needsRefresh!==void 0)n.uint32(96).bool(e.needsRefresh);if(e.aliceBaseKey!==void 0)n.uint32(106).bytes(e.aliceBaseKey);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=G_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.sessionVersion=i.uint32();continue}case 2:{if(t!==18)break;a.localIdentityPublic=i.bytes();continue}case 3:{if(t!==26)break;a.remoteIdentityPublic=i.bytes();continue}case 4:{if(t!==34)break;a.rootKey=i.bytes();continue}case 5:{if(t!==40)break;a.previousCounter=i.uint32();continue}case 6:{if(t!==50)break;a.senderChain=ze.decode(i,i.uint32());continue}case 7:{if(t!==58)break;if(a.receiverChains===void 0)a.receiverChains=[];let o=ze.decode(i,i.uint32());if(o!==void 0)a.receiverChains.push(o);continue}case 8:{if(t!==66)break;a.pendingKeyExchange=Ss.decode(i,i.uint32());continue}case 9:{if(t!==74)break;a.pendingPreKey=Ps.decode(i,i.uint32());continue}case 10:{if(t!==80)break;a.remoteRegistrationId=i.uint32();continue}case 11:{if(t!==88)break;a.localRegistrationId=i.uint32();continue}case 12:{if(t!==96)break;a.needsRefresh=i.bool();continue}case 13:{if(t!==106)break;a.aliceBaseKey=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Qe.fromPartial(e??{})},fromPartial(e){let n=G_();return n.sessionVersion=e.sessionVersion??void 0,n.localIdentityPublic=e.localIdentityPublic??void 0,n.remoteIdentityPublic=e.remoteIdentityPublic??void 0,n.rootKey=e.rootKey??void 0,n.previousCounter=e.previousCounter??void 0,n.senderChain=e.senderChain!==void 0&&e.senderChain!==null?ze.fromPartial(e.senderChain):void 0,n.receiverChains=e.receiverChains?.map((i)=>ze.fromPartial(i))||void 0,n.pendingKeyExchange=e.pendingKeyExchange!==void 0&&e.pendingKeyExchange!==null?Ss.fromPartial(e.pendingKeyExchange):void 0,n.pendingPreKey=e.pendingPreKey!==void 0&&e.pendingPreKey!==null?Ps.fromPartial(e.pendingPreKey):void 0,n.remoteRegistrationId=e.remoteRegistrationId??void 0,n.localRegistrationId=e.localRegistrationId??void 0,n.needsRefresh=e.needsRefresh??void 0,n.aliceBaseKey=e.aliceBaseKey??void 0,n}};function J_(){return{}}var ze={encode(e,n=new s){if(e.senderRatchetKey!==void 0)n.uint32(10).bytes(e.senderRatchetKey);if(e.senderRatchetKeyPrivate!==void 0)n.uint32(18).bytes(e.senderRatchetKeyPrivate);if(e.chainKey!==void 0)ks.encode(e.chainKey,n.uint32(26).fork()).join();if(e.messageKeys!==void 0&&e.messageKeys.length!==0)for(let i of e.messageKeys)As.encode(i,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=J_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.senderRatchetKey=i.bytes();continue}case 2:{if(t!==18)break;a.senderRatchetKeyPrivate=i.bytes();continue}case 3:{if(t!==26)break;a.chainKey=ks.decode(i,i.uint32());continue}case 4:{if(t!==34)break;if(a.messageKeys===void 0)a.messageKeys=[];let o=As.decode(i,i.uint32());if(o!==void 0)a.messageKeys.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ze.fromPartial(e??{})},fromPartial(e){let n=J_();return n.senderRatchetKey=e.senderRatchetKey??void 0,n.senderRatchetKeyPrivate=e.senderRatchetKeyPrivate??void 0,n.chainKey=e.chainKey!==void 0&&e.chainKey!==null?ks.fromPartial(e.chainKey):void 0,n.messageKeys=e.messageKeys?.map((i)=>As.fromPartial(i))||void 0,n}};function Q_(){return{}}var ks={encode(e,n=new s){if(e.index!==void 0)n.uint32(8).uint32(e.index);if(e.key!==void 0)n.uint32(18).bytes(e.key);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Q_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.index=i.uint32();continue}case 2:{if(t!==18)break;a.key=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ks.fromPartial(e??{})},fromPartial(e){let n=Q_();return n.index=e.index??void 0,n.key=e.key??void 0,n}};function z_(){return{}}var As={encode(e,n=new s){if(e.index!==void 0)n.uint32(8).uint32(e.index);if(e.cipherKey!==void 0)n.uint32(18).bytes(e.cipherKey);if(e.macKey!==void 0)n.uint32(26).bytes(e.macKey);if(e.iv!==void 0)n.uint32(34).bytes(e.iv);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=z_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.index=i.uint32();continue}case 2:{if(t!==18)break;a.cipherKey=i.bytes();continue}case 3:{if(t!==26)break;a.macKey=i.bytes();continue}case 4:{if(t!==34)break;a.iv=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return As.fromPartial(e??{})},fromPartial(e){let n=z_();return n.index=e.index??void 0,n.cipherKey=e.cipherKey??void 0,n.macKey=e.macKey??void 0,n.iv=e.iv??void 0,n}};function Y_(){return{}}var Ss={encode(e,n=new s){if(e.sequence!==void 0)n.uint32(8).uint32(e.sequence);if(e.localBaseKey!==void 0)n.uint32(18).bytes(e.localBaseKey);if(e.localBaseKeyPrivate!==void 0)n.uint32(26).bytes(e.localBaseKeyPrivate);if(e.localRatchetKey!==void 0)n.uint32(34).bytes(e.localRatchetKey);if(e.localRatchetKeyPrivate!==void 0)n.uint32(42).bytes(e.localRatchetKeyPrivate);if(e.localIdentityKey!==void 0)n.uint32(58).bytes(e.localIdentityKey);if(e.localIdentityKeyPrivate!==void 0)n.uint32(66).bytes(e.localIdentityKeyPrivate);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Y_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.sequence=i.uint32();continue}case 2:{if(t!==18)break;a.localBaseKey=i.bytes();continue}case 3:{if(t!==26)break;a.localBaseKeyPrivate=i.bytes();continue}case 4:{if(t!==34)break;a.localRatchetKey=i.bytes();continue}case 5:{if(t!==42)break;a.localRatchetKeyPrivate=i.bytes();continue}case 7:{if(t!==58)break;a.localIdentityKey=i.bytes();continue}case 8:{if(t!==66)break;a.localIdentityKeyPrivate=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ss.fromPartial(e??{})},fromPartial(e){let n=Y_();return n.sequence=e.sequence??void 0,n.localBaseKey=e.localBaseKey??void 0,n.localBaseKeyPrivate=e.localBaseKeyPrivate??void 0,n.localRatchetKey=e.localRatchetKey??void 0,n.localRatchetKeyPrivate=e.localRatchetKeyPrivate??void 0,n.localIdentityKey=e.localIdentityKey??void 0,n.localIdentityKeyPrivate=e.localIdentityKeyPrivate??void 0,n}};function Z_(){return{}}var Ps={encode(e,n=new s){if(e.preKeyId!==void 0)n.uint32(8).uint32(e.preKeyId);if(e.signedPreKeyId!==void 0)n.uint32(24).int32(e.signedPreKeyId);if(e.baseKey!==void 0)n.uint32(18).bytes(e.baseKey);if(e.kyberPreKeyId!==void 0)n.uint32(32).uint32(e.kyberPreKeyId);if(e.kyberCiphertext!==void 0)n.uint32(42).bytes(e.kyberCiphertext);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Z_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.preKeyId=i.uint32();continue}case 3:{if(t!==24)break;a.signedPreKeyId=i.int32();continue}case 2:{if(t!==18)break;a.baseKey=i.bytes();continue}case 4:{if(t!==32)break;a.kyberPreKeyId=i.uint32();continue}case 5:{if(t!==42)break;a.kyberCiphertext=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ps.fromPartial(e??{})},fromPartial(e){let n=Z_();return n.preKeyId=e.preKeyId??void 0,n.signedPreKeyId=e.signedPreKeyId??void 0,n.baseKey=e.baseKey??void 0,n.kyberPreKeyId=e.kyberPreKeyId??void 0,n.kyberCiphertext=e.kyberCiphertext??void 0,n}};function X_(){return{}}var bs={encode(e,n=new s){if(e.disclaimerText!==void 0)n.uint32(10).string(e.disclaimerText);if(e.hcaId!==void 0)n.uint32(18).string(e.hcaId);if(e.sessionTransparencyType!==void 0)n.uint32(24).int32(e.sessionTransparencyType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=X_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.disclaimerText=i.string();continue}case 2:{if(t!==18)break;a.hcaId=i.string();continue}case 3:{if(t!==24)break;a.sessionTransparencyType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return bs.fromPartial(e??{})},fromPartial(e){let n=X_();return n.disclaimerText=e.disclaimerText??void 0,n.hcaId=e.hcaId??void 0,n.sessionTransparencyType=e.sessionTransparencyType??void 0,n}};function $_(){return{}}var fR={encode(e,n=new s){if(e.ratchetKey!==void 0)n.uint32(10).bytes(e.ratchetKey);if(e.counter!==void 0)n.uint32(16).uint32(e.counter);if(e.previousCounter!==void 0)n.uint32(24).uint32(e.previousCounter);if(e.ciphertext!==void 0)n.uint32(34).bytes(e.ciphertext);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=$_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.ratchetKey=i.bytes();continue}case 2:{if(t!==16)break;a.counter=i.uint32();continue}case 3:{if(t!==24)break;a.previousCounter=i.uint32();continue}case 4:{if(t!==34)break;a.ciphertext=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return fR.fromPartial(e??{})},fromPartial(e){let n=$_();return n.ratchetKey=e.ratchetKey??void 0,n.counter=e.counter??void 0,n.previousCounter=e.previousCounter??void 0,n.ciphertext=e.ciphertext??void 0,n}};function j_(){return{}}var lR={encode(e,n=new s){if(e.id!==void 0)n.uint32(8).uint32(e.id);if(e.publicKey!==void 0)n.uint32(18).bytes(e.publicKey);if(e.privateKey!==void 0)n.uint32(26).bytes(e.privateKey);if(e.signature!==void 0)n.uint32(34).bytes(e.signature);if(e.timestamp!==void 0)n.uint32(41).fixed64(e.timestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=j_();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.id=i.uint32();continue}case 2:{if(t!==18)break;a.publicKey=i.bytes();continue}case 3:{if(t!==26)break;a.privateKey=i.bytes();continue}case 4:{if(t!==34)break;a.signature=i.bytes();continue}case 5:{if(t!==41)break;a.timestamp=i.fixed64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return lR.fromPartial(e??{})},fromPartial(e){let n=j_();return n.id=e.id??void 0,n.publicKey=e.publicKey??void 0,n.privateKey=e.privateKey??void 0,n.signature=e.signature??void 0,n.timestamp=e.timestamp??void 0,n}};function eh(){return{}}var Is={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).int32(e.type);if(e.actionUrl!==void 0)n.uint32(18).string(e.actionUrl);if(e.statusReshare!==void 0)vs.encode(e.statusReshare,n.uint32(26).fork()).join();if(e.externalShare!==void 0)Ds.encode(e.externalShare,n.uint32(34).fork()).join();if(e.music!==void 0)Bs.encode(e.music,n.uint32(42).fork()).join();if(e.groupStatus!==void 0)Es.encode(e.groupStatus,n.uint32(50).fork()).join();if(e.rlAttribution!==void 0)Cs.encode(e.rlAttribution,n.uint32(58).fork()).join();if(e.aiCreatedAttribution!==void 0)Rs.encode(e.aiCreatedAttribution,n.uint32(66).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=eh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.int32();continue}case 2:{if(t!==18)break;a.actionUrl=i.string();continue}case 3:{if(t!==26)break;a.statusReshare=vs.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.externalShare=Ds.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.music=Bs.decode(i,i.uint32());continue}case 6:{if(t!==50)break;a.groupStatus=Es.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.rlAttribution=Cs.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.aiCreatedAttribution=Rs.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Is.fromPartial(e??{})},fromPartial(e){let n=eh();return n.type=e.type??void 0,n.actionUrl=e.actionUrl??void 0,n.statusReshare=e.statusReshare!==void 0&&e.statusReshare!==null?vs.fromPartial(e.statusReshare):void 0,n.externalShare=e.externalShare!==void 0&&e.externalShare!==null?Ds.fromPartial(e.externalShare):void 0,n.music=e.music!==void 0&&e.music!==null?Bs.fromPartial(e.music):void 0,n.groupStatus=e.groupStatus!==void 0&&e.groupStatus!==null?Es.fromPartial(e.groupStatus):void 0,n.rlAttribution=e.rlAttribution!==void 0&&e.rlAttribution!==null?Cs.fromPartial(e.rlAttribution):void 0,n.aiCreatedAttribution=e.aiCreatedAttribution!==void 0&&e.aiCreatedAttribution!==null?Rs.fromPartial(e.aiCreatedAttribution):void 0,n}};function nh(){return{}}var Rs={encode(e,n=new s){if(e.source!==void 0)n.uint32(8).int32(e.source);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=nh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.source=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Rs.fromPartial(e??{})},fromPartial(e){let n=nh();return n.source=e.source??void 0,n}};function ih(){return{}}var Ds={encode(e,n=new s){if(e.actionUrl!==void 0)n.uint32(10).string(e.actionUrl);if(e.source!==void 0)n.uint32(16).int32(e.source);if(e.duration!==void 0)n.uint32(24).int32(e.duration);if(e.actionFallbackUrl!==void 0)n.uint32(34).string(e.actionFallbackUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ih();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.actionUrl=i.string();continue}case 2:{if(t!==16)break;a.source=i.int32();continue}case 3:{if(t!==24)break;a.duration=i.int32();continue}case 4:{if(t!==34)break;a.actionFallbackUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ds.fromPartial(e??{})},fromPartial(e){let n=ih();return n.actionUrl=e.actionUrl??void 0,n.source=e.source??void 0,n.duration=e.duration??void 0,n.actionFallbackUrl=e.actionFallbackUrl??void 0,n}};function th(){return{}}var Es={encode(e,n=new s){if(e.authorJid!==void 0)n.uint32(10).string(e.authorJid);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=th();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.authorJid=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Es.fromPartial(e??{})},fromPartial(e){let n=th();return n.authorJid=e.authorJid??void 0,n}};function ah(){return{}}var Bs={encode(e,n=new s){if(e.authorName!==void 0)n.uint32(10).string(e.authorName);if(e.songId!==void 0)n.uint32(18).string(e.songId);if(e.title!==void 0)n.uint32(26).string(e.title);if(e.author!==void 0)n.uint32(34).string(e.author);if(e.artistAttribution!==void 0)n.uint32(42).string(e.artistAttribution);if(e.isExplicit!==void 0)n.uint32(48).bool(e.isExplicit);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ah();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.authorName=i.string();continue}case 2:{if(t!==18)break;a.songId=i.string();continue}case 3:{if(t!==26)break;a.title=i.string();continue}case 4:{if(t!==34)break;a.author=i.string();continue}case 5:{if(t!==42)break;a.artistAttribution=i.string();continue}case 6:{if(t!==48)break;a.isExplicit=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Bs.fromPartial(e??{})},fromPartial(e){let n=ah();return n.authorName=e.authorName??void 0,n.songId=e.songId??void 0,n.title=e.title??void 0,n.author=e.author??void 0,n.artistAttribution=e.artistAttribution??void 0,n.isExplicit=e.isExplicit??void 0,n}};function rh(){return{}}var Cs={encode(e,n=new s){if(e.source!==void 0)n.uint32(8).int32(e.source);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=rh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.source=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Cs.fromPartial(e??{})},fromPartial(e){let n=rh();return n.source=e.source??void 0,n}};function dh(){return{}}var vs={encode(e,n=new s){if(e.source!==void 0)n.uint32(8).int32(e.source);if(e.metadata!==void 0)xs.encode(e.metadata,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=dh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.source=i.int32();continue}case 2:{if(t!==18)break;a.metadata=xs.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return vs.fromPartial(e??{})},fromPartial(e){let n=dh();return n.source=e.source??void 0,n.metadata=e.metadata!==void 0&&e.metadata!==null?xs.fromPartial(e.metadata):void 0,n}};function oh(){return{}}var xs={encode(e,n=new s){if(e.duration!==void 0)n.uint32(8).int32(e.duration);if(e.channelJid!==void 0)n.uint32(18).string(e.channelJid);if(e.channelMessageId!==void 0)n.uint32(24).int32(e.channelMessageId);if(e.hasMultipleReshares!==void 0)n.uint32(32).bool(e.hasMultipleReshares);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=oh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.duration=i.int32();continue}case 2:{if(t!==18)break;a.channelJid=i.string();continue}case 3:{if(t!==24)break;a.channelMessageId=i.int32();continue}case 4:{if(t!==32)break;a.hasMultipleReshares=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return xs.fromPartial(e??{})},fromPartial(e){let n=oh();return n.duration=e.duration??void 0,n.channelJid=e.channelJid??void 0,n.channelMessageId=e.channelMessageId??void 0,n.hasMultipleReshares=e.hasMultipleReshares??void 0,n}};function sh(){return{}}var Ns={encode(e,n=new s){if(e.quotedStatus!==void 0)F.encode(e.quotedStatus,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=sh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.quotedStatus=F.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ns.fromPartial(e??{})},fromPartial(e){let n=sh();return n.quotedStatus=e.quotedStatus!==void 0&&e.quotedStatus!==null?F.fromPartial(e.quotedStatus):void 0,n}};function uh(){return{}}var Os={encode(e,n=new s){if(e.campaignId!==void 0)n.uint32(352).uint64(e.campaignId);if(e.campaignExpirationTimestamp!==void 0)n.uint32(360).uint64(e.campaignExpirationTimestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=uh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 44:{if(t!==352)break;a.campaignId=i.uint64Number();continue}case 45:{if(t!==360)break;a.campaignExpirationTimestamp=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Os.fromPartial(e??{})},fromPartial(e){let n=uh();return n.campaignId=e.campaignId??void 0,n.campaignExpirationTimestamp=e.campaignExpirationTimestamp??void 0,n}};function ch(){return{}}var Us={encode(e,n=new s){if(e.url!==void 0)n.uint32(10).string(e.url);if(e.fileSha256!==void 0)n.uint32(18).bytes(e.fileSha256);if(e.fileEncSha256!==void 0)n.uint32(26).bytes(e.fileEncSha256);if(e.mediaKey!==void 0)n.uint32(34).bytes(e.mediaKey);if(e.mimetype!==void 0)n.uint32(42).string(e.mimetype);if(e.height!==void 0)n.uint32(48).uint32(e.height);if(e.width!==void 0)n.uint32(56).uint32(e.width);if(e.directPath!==void 0)n.uint32(66).string(e.directPath);if(e.fileLength!==void 0)n.uint32(72).uint64(e.fileLength);if(e.weight!==void 0)n.uint32(85).float(e.weight);if(e.lastStickerSentTs!==void 0)n.uint32(88).int64(e.lastStickerSentTs);if(e.isLottie!==void 0)n.uint32(96).bool(e.isLottie);if(e.imageHash!==void 0)n.uint32(106).string(e.imageHash);if(e.isAvatarSticker!==void 0)n.uint32(112).bool(e.isAvatarSticker);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ch();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.url=i.string();continue}case 2:{if(t!==18)break;a.fileSha256=i.bytes();continue}case 3:{if(t!==26)break;a.fileEncSha256=i.bytes();continue}case 4:{if(t!==34)break;a.mediaKey=i.bytes();continue}case 5:{if(t!==42)break;a.mimetype=i.string();continue}case 6:{if(t!==48)break;a.height=i.uint32();continue}case 7:{if(t!==56)break;a.width=i.uint32();continue}case 8:{if(t!==66)break;a.directPath=i.string();continue}case 9:{if(t!==72)break;a.fileLength=i.uint64Number();continue}case 10:{if(t!==85)break;a.weight=i.float();continue}case 11:{if(t!==88)break;a.lastStickerSentTs=i.int64Number();continue}case 12:{if(t!==96)break;a.isLottie=i.bool();continue}case 13:{if(t!==106)break;a.imageHash=i.string();continue}case 14:{if(t!==112)break;a.isAvatarSticker=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Us.fromPartial(e??{})},fromPartial(e){let n=ch();return n.url=e.url??void 0,n.fileSha256=e.fileSha256??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.mediaKey=e.mediaKey??void 0,n.mimetype=e.mimetype??void 0,n.height=e.height??void 0,n.width=e.width??void 0,n.directPath=e.directPath??void 0,n.fileLength=e.fileLength??void 0,n.weight=e.weight??void 0,n.lastStickerSentTs=e.lastStickerSentTs??void 0,n.isLottie=e.isLottie??void 0,n.imageHash=e.imageHash??void 0,n.isAvatarSticker=e.isAvatarSticker??void 0,n}};function fh(){return{}}var q={encode(e,n=new s){if(e.payload!==void 0)n.uint32(10).bytes(e.payload);if(e.version!==void 0)n.uint32(16).int32(e.version);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=fh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.payload=i.bytes();continue}case 2:{if(t!==16)break;a.version=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return q.fromPartial(e??{})},fromPartial(e){let n=fh();return n.payload=e.payload??void 0,n.version=e.version??void 0,n}};function lh(){return{}}var Cn={encode(e,n=new s){if(e.index!==void 0)n.uint32(10).bytes(e.index);if(e.value!==void 0)vn.encode(e.value,n.uint32(18).fork()).join();if(e.padding!==void 0)n.uint32(26).bytes(e.padding);if(e.version!==void 0)n.uint32(32).int32(e.version);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=lh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.index=i.bytes();continue}case 2:{if(t!==18)break;a.value=vn.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.padding=i.bytes();continue}case 4:{if(t!==32)break;a.version=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Cn.fromPartial(e??{})},fromPartial(e){let n=lh();return n.index=e.index??void 0,n.value=e.value!==void 0&&e.value!==null?vn.fromPartial(e.value):void 0,n.padding=e.padding??void 0,n.version=e.version??void 0,n}};function ph(){return{}}var vn={encode(e,n=new s){if(e.timestamp!==void 0)n.uint32(8).int64(e.timestamp);if(e.starAction!==void 0)zu.encode(e.starAction,n.uint32(18).fork()).join();if(e.contactAction!==void 0)js.encode(e.contactAction,n.uint32(26).fork()).join();if(e.muteAction!==void 0)Ru.encode(e.muteAction,n.uint32(34).fork()).join();if(e.pinAction!==void 0)Uu.encode(e.pinAction,n.uint32(42).fork()).join();if(e.pushNameSetting!==void 0)Hu.encode(e.pushNameSetting,n.uint32(58).fork()).join();if(e.quickReplyAction!==void 0)qu.encode(e.quickReplyAction,n.uint32(66).fork()).join();if(e.recentEmojiWeightsAction!==void 0)Gu.encode(e.recentEmojiWeightsAction,n.uint32(90).fork()).join();if(e.labelEditAction!==void 0)yu.encode(e.labelEditAction,n.uint32(114).fork()).join();if(e.labelAssociationAction!==void 0)gu.encode(e.labelAssociationAction,n.uint32(122).fork()).join();if(e.localeSetting!==void 0)_u.encode(e.localeSetting,n.uint32(130).fork()).join();if(e.archiveChatAction!==void 0)Fs.encode(e.archiveChatAction,n.uint32(138).fork()).join();if(e.deleteMessageForMeAction!==void 0)ou.encode(e.deleteMessageForMeAction,n.uint32(146).fork()).join();if(e.keyExpiration!==void 0)pu.encode(e.keyExpiration,n.uint32(154).fork()).join();if(e.markChatAsReadAction!==void 0)Au.encode(e.markChatAsReadAction,n.uint32(162).fork()).join();if(e.clearChatAction!==void 0)Xs.encode(e.clearChatAction,n.uint32(170).fork()).join();if(e.deleteChatAction!==void 0)ru.encode(e.deleteChatAction,n.uint32(178).fork()).join();if(e.unarchiveChatsSetting!==void 0)dc.encode(e.unarchiveChatsSetting,n.uint32(186).fork()).join();if(e.primaryFeature!==void 0)Lu.encode(e.primaryFeature,n.uint32(194).fork()).join();if(e.androidUnsupportedActions!==void 0)ws.encode(e.androidUnsupportedActions,n.uint32(210).fork()).join();if(e.agentAction!==void 0)Ts.encode(e.agentAction,n.uint32(218).fork()).join();if(e.subscriptionAction!==void 0)$u.encode(e.subscriptionAction,n.uint32(226).fork()).join();if(e.userStatusMuteAction!==void 0)oc.encode(e.userStatusMuteAction,n.uint32(234).fork()).join();if(e.timeFormatAction!==void 0)ac.encode(e.timeFormatAction,n.uint32(242).fork()).join();if(e.nuxAction!==void 0)vu.encode(e.nuxAction,n.uint32(250).fork()).join();if(e.primaryVersionAction!==void 0)wu.encode(e.primaryVersionAction,n.uint32(258).fork()).join();if(e.stickerAction!==void 0)Pn.encode(e.stickerAction,n.uint32(266).fork()).join();if(e.removeRecentStickerAction!==void 0)Ju.encode(e.removeRecentStickerAction,n.uint32(274).fork()).join();if(e.chatAssignment!==void 0)Ys.encode(e.chatAssignment,n.uint32(282).fork()).join();if(e.chatAssignmentOpenedStatus!==void 0)Zs.encode(e.chatAssignmentOpenedStatus,n.uint32(290).fork()).join();if(e.pnForLidChatAction!==void 0)Tu.encode(e.pnForLidChatAction,n.uint32(298).fork()).join();if(e.marketingMessageAction!==void 0)Su.encode(e.marketingMessageAction,n.uint32(306).fork()).join();if(e.marketingMessageBroadcastAction!==void 0)Pu.encode(e.marketingMessageBroadcastAction,n.uint32(314).fork()).join();if(e.externalWebBetaAction!==void 0)uu.encode(e.externalWebBetaAction,n.uint32(322).fork()).join();if(e.privacySettingRelayAllCalls!==void 0)Ku.encode(e.privacySettingRelayAllCalls,n.uint32(330).fork()).join();if(e.callLogAction!==void 0)zs.encode(e.callLogAction,n.uint32(338).fork()).join();if(e.ugcBot!==void 0)rc.encode(e.ugcBot,n.uint32(346).fork()).join();if(e.statusPrivacy!==void 0)Zu.encode(e.statusPrivacy,n.uint32(354).fork()).join();if(e.botWelcomeRequestAction!==void 0)Hs.encode(e.botWelcomeRequestAction,n.uint32(362).fork()).join();if(e.deleteIndividualCallLog!==void 0)du.encode(e.deleteIndividualCallLog,n.uint32(370).fork()).join();if(e.labelReorderingAction!==void 0)Mu.encode(e.labelReorderingAction,n.uint32(378).fork()).join();if(e.paymentInfoAction!==void 0)Nu.encode(e.paymentInfoAction,n.uint32(386).fork()).join();if(e.customPaymentMethodsAction!==void 0)tu.encode(e.customPaymentMethodsAction,n.uint32(394).fork()).join();if(e.lockChatAction!==void 0)hu.encode(e.lockChatAction,n.uint32(402).fork()).join();if(e.chatLockSettings!==void 0)$e.encode(e.chatLockSettings,n.uint32(410).fork()).join();if(e.wamoUserIdentifierAction!==void 0)lc.encode(e.wamoUserIdentifierAction,n.uint32(418).fork()).join();if(e.privacySettingDisableLinkPreviewsAction!==void 0)Vu.encode(e.privacySettingDisableLinkPreviewsAction,n.uint32(426).fork()).join();if(e.deviceCapabilities!==void 0)Ma.encode(e.deviceCapabilities,n.uint32(434).fork()).join();if(e.noteEditAction!==void 0)Bu.encode(e.noteEditAction,n.uint32(442).fork()).join();if(e.favoritesAction!==void 0)cu.encode(e.favoritesAction,n.uint32(450).fork()).join();if(e.merchantPaymentPartnerAction!==void 0)bu.encode(e.merchantPaymentPartnerAction,n.uint32(458).fork()).join();if(e.waffleAccountLinkStateAction!==void 0)fc.encode(e.waffleAccountLinkStateAction,n.uint32(466).fork()).join();if(e.usernameChatStartMode!==void 0)sc.encode(e.usernameChatStartMode,n.uint32(474).fork()).join();if(e.notificationActivitySettingAction!==void 0)Cu.encode(e.notificationActivitySettingAction,n.uint32(482).fork()).join();if(e.lidContactAction!==void 0)mu.encode(e.lidContactAction,n.uint32(490).fork()).join();if(e.ctwaPerCustomerDataSharingAction!==void 0)eu.encode(e.ctwaPerCustomerDataSharingAction,n.uint32(498).fork()).join();if(e.paymentTosAction!==void 0)Ou.encode(e.paymentTosAction,n.uint32(506).fork()).join();if(e.privacySettingChannelsPersonalisedRecommendationAction!==void 0)Fu.encode(e.privacySettingChannelsPersonalisedRecommendationAction,n.uint32(514).fork()).join();if(e.detectedOutcomesStatusAction!==void 0)su.encode(e.detectedOutcomesStatusAction,n.uint32(530).fork()).join();if(e.maibaAiFeaturesControlAction!==void 0)ku.encode(e.maibaAiFeaturesControlAction,n.uint32(546).fork()).join();if(e.businessBroadcastListAction!==void 0)Qs.encode(e.businessBroadcastListAction,n.uint32(554).fork()).join();if(e.musicUserIdAction!==void 0)Iu.encode(e.musicUserIdAction,n.uint32(562).fork()).join();if(e.statusPostOptInNotificationPreferencesAction!==void 0)Yu.encode(e.statusPostOptInNotificationPreferencesAction,n.uint32(570).fork()).join();if(e.avatarUpdatedAction!==void 0)Ks.encode(e.avatarUpdatedAction,n.uint32(578).fork()).join();if(e.privateProcessingSettingAction!==void 0)Wu.encode(e.privateProcessingSettingAction,n.uint32(594).fork()).join();if(e.newsletterSavedInterestsAction!==void 0)Eu.encode(e.newsletterSavedInterestsAction,n.uint32(602).fork()).join();if(e.aiThreadRenameAction!==void 0)Ls.encode(e.aiThreadRenameAction,n.uint32(610).fork()).join();if(e.interactiveMessageAction!==void 0)lu.encode(e.interactiveMessageAction,n.uint32(618).fork()).join();if(e.settingsSyncAction!==void 0)Qu.encode(e.settingsSyncAction,n.uint32(626).fork()).join();if(e.outContactAction!==void 0)xu.encode(e.outContactAction,n.uint32(634).fork()).join();if(e.nctSaltSyncAction!==void 0)Du.encode(e.nctSaltSyncAction,n.uint32(642).fork()).join();if(e.businessBroadcastCampaignAction!==void 0)Gs.encode(e.businessBroadcastCampaignAction,n.uint32(650).fork()).join();if(e.businessBroadcastInsightsAction!==void 0)Js.encode(e.businessBroadcastInsightsAction,n.uint32(658).fork()).join();if(e.customerDataAction!==void 0)au.encode(e.customerDataAction,n.uint32(666).fork()).join();if(e.subscriptionsSyncV2Action!==void 0)ju.encode(e.subscriptionsSyncV2Action,n.uint32(674).fork()).join();if(e.threadPinAction!==void 0)tc.encode(e.threadPinAction,n.uint32(682).fork()).join();if(e.autoOrganizeBusinessChatSetting!==void 0)Vs.encode(e.autoOrganizeBusinessChatSetting,n.uint32(690).fork()).join();if(e.bizAiSettingsNudgeAction!==void 0)Ws.encode(e.bizAiSettingsNudgeAction,n.uint32(698).fork()).join();if(e.coexV2VersionAction!==void 0)$s.encode(e.coexV2VersionAction,n.uint32(706).fork()).join();if(e.wasaRootSecretAction!==void 0)uc.encode(e.wasaRootSecretAction,n.uint32(714).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ph();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.timestamp=i.int64Number();continue}case 2:{if(t!==18)break;a.starAction=zu.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.contactAction=js.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.muteAction=Ru.decode(i,i.uint32());continue}case 5:{if(t!==42)break;a.pinAction=Uu.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.pushNameSetting=Hu.decode(i,i.uint32());continue}case 8:{if(t!==66)break;a.quickReplyAction=qu.decode(i,i.uint32());continue}case 11:{if(t!==90)break;a.recentEmojiWeightsAction=Gu.decode(i,i.uint32());continue}case 14:{if(t!==114)break;a.labelEditAction=yu.decode(i,i.uint32());continue}case 15:{if(t!==122)break;a.labelAssociationAction=gu.decode(i,i.uint32());continue}case 16:{if(t!==130)break;a.localeSetting=_u.decode(i,i.uint32());continue}case 17:{if(t!==138)break;a.archiveChatAction=Fs.decode(i,i.uint32());continue}case 18:{if(t!==146)break;a.deleteMessageForMeAction=ou.decode(i,i.uint32());continue}case 19:{if(t!==154)break;a.keyExpiration=pu.decode(i,i.uint32());continue}case 20:{if(t!==162)break;a.markChatAsReadAction=Au.decode(i,i.uint32());continue}case 21:{if(t!==170)break;a.clearChatAction=Xs.decode(i,i.uint32());continue}case 22:{if(t!==178)break;a.deleteChatAction=ru.decode(i,i.uint32());continue}case 23:{if(t!==186)break;a.unarchiveChatsSetting=dc.decode(i,i.uint32());continue}case 24:{if(t!==194)break;a.primaryFeature=Lu.decode(i,i.uint32());continue}case 26:{if(t!==210)break;a.androidUnsupportedActions=ws.decode(i,i.uint32());continue}case 27:{if(t!==218)break;a.agentAction=Ts.decode(i,i.uint32());continue}case 28:{if(t!==226)break;a.subscriptionAction=$u.decode(i,i.uint32());continue}case 29:{if(t!==234)break;a.userStatusMuteAction=oc.decode(i,i.uint32());continue}case 30:{if(t!==242)break;a.timeFormatAction=ac.decode(i,i.uint32());continue}case 31:{if(t!==250)break;a.nuxAction=vu.decode(i,i.uint32());continue}case 32:{if(t!==258)break;a.primaryVersionAction=wu.decode(i,i.uint32());continue}case 33:{if(t!==266)break;a.stickerAction=Pn.decode(i,i.uint32());continue}case 34:{if(t!==274)break;a.removeRecentStickerAction=Ju.decode(i,i.uint32());continue}case 35:{if(t!==282)break;a.chatAssignment=Ys.decode(i,i.uint32());continue}case 36:{if(t!==290)break;a.chatAssignmentOpenedStatus=Zs.decode(i,i.uint32());continue}case 37:{if(t!==298)break;a.pnForLidChatAction=Tu.decode(i,i.uint32());continue}case 38:{if(t!==306)break;a.marketingMessageAction=Su.decode(i,i.uint32());continue}case 39:{if(t!==314)break;a.marketingMessageBroadcastAction=Pu.decode(i,i.uint32());continue}case 40:{if(t!==322)break;a.externalWebBetaAction=uu.decode(i,i.uint32());continue}case 41:{if(t!==330)break;a.privacySettingRelayAllCalls=Ku.decode(i,i.uint32());continue}case 42:{if(t!==338)break;a.callLogAction=zs.decode(i,i.uint32());continue}case 43:{if(t!==346)break;a.ugcBot=rc.decode(i,i.uint32());continue}case 44:{if(t!==354)break;a.statusPrivacy=Zu.decode(i,i.uint32());continue}case 45:{if(t!==362)break;a.botWelcomeRequestAction=Hs.decode(i,i.uint32());continue}case 46:{if(t!==370)break;a.deleteIndividualCallLog=du.decode(i,i.uint32());continue}case 47:{if(t!==378)break;a.labelReorderingAction=Mu.decode(i,i.uint32());continue}case 48:{if(t!==386)break;a.paymentInfoAction=Nu.decode(i,i.uint32());continue}case 49:{if(t!==394)break;a.customPaymentMethodsAction=tu.decode(i,i.uint32());continue}case 50:{if(t!==402)break;a.lockChatAction=hu.decode(i,i.uint32());continue}case 51:{if(t!==410)break;a.chatLockSettings=$e.decode(i,i.uint32());continue}case 52:{if(t!==418)break;a.wamoUserIdentifierAction=lc.decode(i,i.uint32());continue}case 53:{if(t!==426)break;a.privacySettingDisableLinkPreviewsAction=Vu.decode(i,i.uint32());continue}case 54:{if(t!==434)break;a.deviceCapabilities=Ma.decode(i,i.uint32());continue}case 55:{if(t!==442)break;a.noteEditAction=Bu.decode(i,i.uint32());continue}case 56:{if(t!==450)break;a.favoritesAction=cu.decode(i,i.uint32());continue}case 57:{if(t!==458)break;a.merchantPaymentPartnerAction=bu.decode(i,i.uint32());continue}case 58:{if(t!==466)break;a.waffleAccountLinkStateAction=fc.decode(i,i.uint32());continue}case 59:{if(t!==474)break;a.usernameChatStartMode=sc.decode(i,i.uint32());continue}case 60:{if(t!==482)break;a.notificationActivitySettingAction=Cu.decode(i,i.uint32());continue}case 61:{if(t!==490)break;a.lidContactAction=mu.decode(i,i.uint32());continue}case 62:{if(t!==498)break;a.ctwaPerCustomerDataSharingAction=eu.decode(i,i.uint32());continue}case 63:{if(t!==506)break;a.paymentTosAction=Ou.decode(i,i.uint32());continue}case 64:{if(t!==514)break;a.privacySettingChannelsPersonalisedRecommendationAction=Fu.decode(i,i.uint32());continue}case 66:{if(t!==530)break;a.detectedOutcomesStatusAction=su.decode(i,i.uint32());continue}case 68:{if(t!==546)break;a.maibaAiFeaturesControlAction=ku.decode(i,i.uint32());continue}case 69:{if(t!==554)break;a.businessBroadcastListAction=Qs.decode(i,i.uint32());continue}case 70:{if(t!==562)break;a.musicUserIdAction=Iu.decode(i,i.uint32());continue}case 71:{if(t!==570)break;a.statusPostOptInNotificationPreferencesAction=Yu.decode(i,i.uint32());continue}case 72:{if(t!==578)break;a.avatarUpdatedAction=Ks.decode(i,i.uint32());continue}case 74:{if(t!==594)break;a.privateProcessingSettingAction=Wu.decode(i,i.uint32());continue}case 75:{if(t!==602)break;a.newsletterSavedInterestsAction=Eu.decode(i,i.uint32());continue}case 76:{if(t!==610)break;a.aiThreadRenameAction=Ls.decode(i,i.uint32());continue}case 77:{if(t!==618)break;a.interactiveMessageAction=lu.decode(i,i.uint32());continue}case 78:{if(t!==626)break;a.settingsSyncAction=Qu.decode(i,i.uint32());continue}case 79:{if(t!==634)break;a.outContactAction=xu.decode(i,i.uint32());continue}case 80:{if(t!==642)break;a.nctSaltSyncAction=Du.decode(i,i.uint32());continue}case 81:{if(t!==650)break;a.businessBroadcastCampaignAction=Gs.decode(i,i.uint32());continue}case 82:{if(t!==658)break;a.businessBroadcastInsightsAction=Js.decode(i,i.uint32());continue}case 83:{if(t!==666)break;a.customerDataAction=au.decode(i,i.uint32());continue}case 84:{if(t!==674)break;a.subscriptionsSyncV2Action=ju.decode(i,i.uint32());continue}case 85:{if(t!==682)break;a.threadPinAction=tc.decode(i,i.uint32());continue}case 86:{if(t!==690)break;a.autoOrganizeBusinessChatSetting=Vs.decode(i,i.uint32());continue}case 87:{if(t!==698)break;a.bizAiSettingsNudgeAction=Ws.decode(i,i.uint32());continue}case 88:{if(t!==706)break;a.coexV2VersionAction=$s.decode(i,i.uint32());continue}case 89:{if(t!==714)break;a.wasaRootSecretAction=uc.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return vn.fromPartial(e??{})},fromPartial(e){let n=ph();return n.timestamp=e.timestamp??void 0,n.starAction=e.starAction!==void 0&&e.starAction!==null?zu.fromPartial(e.starAction):void 0,n.contactAction=e.contactAction!==void 0&&e.contactAction!==null?js.fromPartial(e.contactAction):void 0,n.muteAction=e.muteAction!==void 0&&e.muteAction!==null?Ru.fromPartial(e.muteAction):void 0,n.pinAction=e.pinAction!==void 0&&e.pinAction!==null?Uu.fromPartial(e.pinAction):void 0,n.pushNameSetting=e.pushNameSetting!==void 0&&e.pushNameSetting!==null?Hu.fromPartial(e.pushNameSetting):void 0,n.quickReplyAction=e.quickReplyAction!==void 0&&e.quickReplyAction!==null?qu.fromPartial(e.quickReplyAction):void 0,n.recentEmojiWeightsAction=e.recentEmojiWeightsAction!==void 0&&e.recentEmojiWeightsAction!==null?Gu.fromPartial(e.recentEmojiWeightsAction):void 0,n.labelEditAction=e.labelEditAction!==void 0&&e.labelEditAction!==null?yu.fromPartial(e.labelEditAction):void 0,n.labelAssociationAction=e.labelAssociationAction!==void 0&&e.labelAssociationAction!==null?gu.fromPartial(e.labelAssociationAction):void 0,n.localeSetting=e.localeSetting!==void 0&&e.localeSetting!==null?_u.fromPartial(e.localeSetting):void 0,n.archiveChatAction=e.archiveChatAction!==void 0&&e.archiveChatAction!==null?Fs.fromPartial(e.archiveChatAction):void 0,n.deleteMessageForMeAction=e.deleteMessageForMeAction!==void 0&&e.deleteMessageForMeAction!==null?ou.fromPartial(e.deleteMessageForMeAction):void 0,n.keyExpiration=e.keyExpiration!==void 0&&e.keyExpiration!==null?pu.fromPartial(e.keyExpiration):void 0,n.markChatAsReadAction=e.markChatAsReadAction!==void 0&&e.markChatAsReadAction!==null?Au.fromPartial(e.markChatAsReadAction):void 0,n.clearChatAction=e.clearChatAction!==void 0&&e.clearChatAction!==null?Xs.fromPartial(e.clearChatAction):void 0,n.deleteChatAction=e.deleteChatAction!==void 0&&e.deleteChatAction!==null?ru.fromPartial(e.deleteChatAction):void 0,n.unarchiveChatsSetting=e.unarchiveChatsSetting!==void 0&&e.unarchiveChatsSetting!==null?dc.fromPartial(e.unarchiveChatsSetting):void 0,n.primaryFeature=e.primaryFeature!==void 0&&e.primaryFeature!==null?Lu.fromPartial(e.primaryFeature):void 0,n.androidUnsupportedActions=e.androidUnsupportedActions!==void 0&&e.androidUnsupportedActions!==null?ws.fromPartial(e.androidUnsupportedActions):void 0,n.agentAction=e.agentAction!==void 0&&e.agentAction!==null?Ts.fromPartial(e.agentAction):void 0,n.subscriptionAction=e.subscriptionAction!==void 0&&e.subscriptionAction!==null?$u.fromPartial(e.subscriptionAction):void 0,n.userStatusMuteAction=e.userStatusMuteAction!==void 0&&e.userStatusMuteAction!==null?oc.fromPartial(e.userStatusMuteAction):void 0,n.timeFormatAction=e.timeFormatAction!==void 0&&e.timeFormatAction!==null?ac.fromPartial(e.timeFormatAction):void 0,n.nuxAction=e.nuxAction!==void 0&&e.nuxAction!==null?vu.fromPartial(e.nuxAction):void 0,n.primaryVersionAction=e.primaryVersionAction!==void 0&&e.primaryVersionAction!==null?wu.fromPartial(e.primaryVersionAction):void 0,n.stickerAction=e.stickerAction!==void 0&&e.stickerAction!==null?Pn.fromPartial(e.stickerAction):void 0,n.removeRecentStickerAction=e.removeRecentStickerAction!==void 0&&e.removeRecentStickerAction!==null?Ju.fromPartial(e.removeRecentStickerAction):void 0,n.chatAssignment=e.chatAssignment!==void 0&&e.chatAssignment!==null?Ys.fromPartial(e.chatAssignment):void 0,n.chatAssignmentOpenedStatus=e.chatAssignmentOpenedStatus!==void 0&&e.chatAssignmentOpenedStatus!==null?Zs.fromPartial(e.chatAssignmentOpenedStatus):void 0,n.pnForLidChatAction=e.pnForLidChatAction!==void 0&&e.pnForLidChatAction!==null?Tu.fromPartial(e.pnForLidChatAction):void 0,n.marketingMessageAction=e.marketingMessageAction!==void 0&&e.marketingMessageAction!==null?Su.fromPartial(e.marketingMessageAction):void 0,n.marketingMessageBroadcastAction=e.marketingMessageBroadcastAction!==void 0&&e.marketingMessageBroadcastAction!==null?Pu.fromPartial(e.marketingMessageBroadcastAction):void 0,n.externalWebBetaAction=e.externalWebBetaAction!==void 0&&e.externalWebBetaAction!==null?uu.fromPartial(e.externalWebBetaAction):void 0,n.privacySettingRelayAllCalls=e.privacySettingRelayAllCalls!==void 0&&e.privacySettingRelayAllCalls!==null?Ku.fromPartial(e.privacySettingRelayAllCalls):void 0,n.callLogAction=e.callLogAction!==void 0&&e.callLogAction!==null?zs.fromPartial(e.callLogAction):void 0,n.ugcBot=e.ugcBot!==void 0&&e.ugcBot!==null?rc.fromPartial(e.ugcBot):void 0,n.statusPrivacy=e.statusPrivacy!==void 0&&e.statusPrivacy!==null?Zu.fromPartial(e.statusPrivacy):void 0,n.botWelcomeRequestAction=e.botWelcomeRequestAction!==void 0&&e.botWelcomeRequestAction!==null?Hs.fromPartial(e.botWelcomeRequestAction):void 0,n.deleteIndividualCallLog=e.deleteIndividualCallLog!==void 0&&e.deleteIndividualCallLog!==null?du.fromPartial(e.deleteIndividualCallLog):void 0,n.labelReorderingAction=e.labelReorderingAction!==void 0&&e.labelReorderingAction!==null?Mu.fromPartial(e.labelReorderingAction):void 0,n.paymentInfoAction=e.paymentInfoAction!==void 0&&e.paymentInfoAction!==null?Nu.fromPartial(e.paymentInfoAction):void 0,n.customPaymentMethodsAction=e.customPaymentMethodsAction!==void 0&&e.customPaymentMethodsAction!==null?tu.fromPartial(e.customPaymentMethodsAction):void 0,n.lockChatAction=e.lockChatAction!==void 0&&e.lockChatAction!==null?hu.fromPartial(e.lockChatAction):void 0,n.chatLockSettings=e.chatLockSettings!==void 0&&e.chatLockSettings!==null?$e.fromPartial(e.chatLockSettings):void 0,n.wamoUserIdentifierAction=e.wamoUserIdentifierAction!==void 0&&e.wamoUserIdentifierAction!==null?lc.fromPartial(e.wamoUserIdentifierAction):void 0,n.privacySettingDisableLinkPreviewsAction=e.privacySettingDisableLinkPreviewsAction!==void 0&&e.privacySettingDisableLinkPreviewsAction!==null?Vu.fromPartial(e.privacySettingDisableLinkPreviewsAction):void 0,n.deviceCapabilities=e.deviceCapabilities!==void 0&&e.deviceCapabilities!==null?Ma.fromPartial(e.deviceCapabilities):void 0,n.noteEditAction=e.noteEditAction!==void 0&&e.noteEditAction!==null?Bu.fromPartial(e.noteEditAction):void 0,n.favoritesAction=e.favoritesAction!==void 0&&e.favoritesAction!==null?cu.fromPartial(e.favoritesAction):void 0,n.merchantPaymentPartnerAction=e.merchantPaymentPartnerAction!==void 0&&e.merchantPaymentPartnerAction!==null?bu.fromPartial(e.merchantPaymentPartnerAction):void 0,n.waffleAccountLinkStateAction=e.waffleAccountLinkStateAction!==void 0&&e.waffleAccountLinkStateAction!==null?fc.fromPartial(e.waffleAccountLinkStateAction):void 0,n.usernameChatStartMode=e.usernameChatStartMode!==void 0&&e.usernameChatStartMode!==null?sc.fromPartial(e.usernameChatStartMode):void 0,n.notificationActivitySettingAction=e.notificationActivitySettingAction!==void 0&&e.notificationActivitySettingAction!==null?Cu.fromPartial(e.notificationActivitySettingAction):void 0,n.lidContactAction=e.lidContactAction!==void 0&&e.lidContactAction!==null?mu.fromPartial(e.lidContactAction):void 0,n.ctwaPerCustomerDataSharingAction=e.ctwaPerCustomerDataSharingAction!==void 0&&e.ctwaPerCustomerDataSharingAction!==null?eu.fromPartial(e.ctwaPerCustomerDataSharingAction):void 0,n.paymentTosAction=e.paymentTosAction!==void 0&&e.paymentTosAction!==null?Ou.fromPartial(e.paymentTosAction):void 0,n.privacySettingChannelsPersonalisedRecommendationAction=e.privacySettingChannelsPersonalisedRecommendationAction!==void 0&&e.privacySettingChannelsPersonalisedRecommendationAction!==null?Fu.fromPartial(e.privacySettingChannelsPersonalisedRecommendationAction):void 0,n.detectedOutcomesStatusAction=e.detectedOutcomesStatusAction!==void 0&&e.detectedOutcomesStatusAction!==null?su.fromPartial(e.detectedOutcomesStatusAction):void 0,n.maibaAiFeaturesControlAction=e.maibaAiFeaturesControlAction!==void 0&&e.maibaAiFeaturesControlAction!==null?ku.fromPartial(e.maibaAiFeaturesControlAction):void 0,n.businessBroadcastListAction=e.businessBroadcastListAction!==void 0&&e.businessBroadcastListAction!==null?Qs.fromPartial(e.businessBroadcastListAction):void 0,n.musicUserIdAction=e.musicUserIdAction!==void 0&&e.musicUserIdAction!==null?Iu.fromPartial(e.musicUserIdAction):void 0,n.statusPostOptInNotificationPreferencesAction=e.statusPostOptInNotificationPreferencesAction!==void 0&&e.statusPostOptInNotificationPreferencesAction!==null?Yu.fromPartial(e.statusPostOptInNotificationPreferencesAction):void 0,n.avatarUpdatedAction=e.avatarUpdatedAction!==void 0&&e.avatarUpdatedAction!==null?Ks.fromPartial(e.avatarUpdatedAction):void 0,n.privateProcessingSettingAction=e.privateProcessingSettingAction!==void 0&&e.privateProcessingSettingAction!==null?Wu.fromPartial(e.privateProcessingSettingAction):void 0,n.newsletterSavedInterestsAction=e.newsletterSavedInterestsAction!==void 0&&e.newsletterSavedInterestsAction!==null?Eu.fromPartial(e.newsletterSavedInterestsAction):void 0,n.aiThreadRenameAction=e.aiThreadRenameAction!==void 0&&e.aiThreadRenameAction!==null?Ls.fromPartial(e.aiThreadRenameAction):void 0,n.interactiveMessageAction=e.interactiveMessageAction!==void 0&&e.interactiveMessageAction!==null?lu.fromPartial(e.interactiveMessageAction):void 0,n.settingsSyncAction=e.settingsSyncAction!==void 0&&e.settingsSyncAction!==null?Qu.fromPartial(e.settingsSyncAction):void 0,n.outContactAction=e.outContactAction!==void 0&&e.outContactAction!==null?xu.fromPartial(e.outContactAction):void 0,n.nctSaltSyncAction=e.nctSaltSyncAction!==void 0&&e.nctSaltSyncAction!==null?Du.fromPartial(e.nctSaltSyncAction):void 0,n.businessBroadcastCampaignAction=e.businessBroadcastCampaignAction!==void 0&&e.businessBroadcastCampaignAction!==null?Gs.fromPartial(e.businessBroadcastCampaignAction):void 0,n.businessBroadcastInsightsAction=e.businessBroadcastInsightsAction!==void 0&&e.businessBroadcastInsightsAction!==null?Js.fromPartial(e.businessBroadcastInsightsAction):void 0,n.customerDataAction=e.customerDataAction!==void 0&&e.customerDataAction!==null?au.fromPartial(e.customerDataAction):void 0,n.subscriptionsSyncV2Action=e.subscriptionsSyncV2Action!==void 0&&e.subscriptionsSyncV2Action!==null?ju.fromPartial(e.subscriptionsSyncV2Action):void 0,n.threadPinAction=e.threadPinAction!==void 0&&e.threadPinAction!==null?tc.fromPartial(e.threadPinAction):void 0,n.autoOrganizeBusinessChatSetting=e.autoOrganizeBusinessChatSetting!==void 0&&e.autoOrganizeBusinessChatSetting!==null?Vs.fromPartial(e.autoOrganizeBusinessChatSetting):void 0,n.bizAiSettingsNudgeAction=e.bizAiSettingsNudgeAction!==void 0&&e.bizAiSettingsNudgeAction!==null?Ws.fromPartial(e.bizAiSettingsNudgeAction):void 0,n.coexV2VersionAction=e.coexV2VersionAction!==void 0&&e.coexV2VersionAction!==null?$s.fromPartial(e.coexV2VersionAction):void 0,n.wasaRootSecretAction=e.wasaRootSecretAction!==void 0&&e.wasaRootSecretAction!==null?uc.fromPartial(e.wasaRootSecretAction):void 0,n}};function gh(){return{}}var Ts={encode(e,n=new s){if(e.name!==void 0)n.uint32(10).string(e.name);if(e.deviceId!==void 0)n.uint32(16).int32(e.deviceId);if(e.isDeleted!==void 0)n.uint32(24).bool(e.isDeleted);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=gh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.name=i.string();continue}case 2:{if(t!==16)break;a.deviceId=i.int32();continue}case 3:{if(t!==24)break;a.isDeleted=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ts.fromPartial(e??{})},fromPartial(e){let n=gh();return n.name=e.name??void 0,n.deviceId=e.deviceId??void 0,n.isDeleted=e.isDeleted??void 0,n}};function yh(){return{}}var Ls={encode(e,n=new s){if(e.newTitle!==void 0)n.uint32(10).string(e.newTitle);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=yh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.newTitle=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ls.fromPartial(e??{})},fromPartial(e){let n=yh();return n.newTitle=e.newTitle??void 0,n}};function Mh(){return{}}var ws={encode(e,n=new s){if(e.allowed!==void 0)n.uint32(8).bool(e.allowed);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Mh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.allowed=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ws.fromPartial(e??{})},fromPartial(e){let n=Mh();return n.allowed=e.allowed??void 0,n}};function mh(){return{}}var Fs={encode(e,n=new s){if(e.archived!==void 0)n.uint32(8).bool(e.archived);if(e.messageRange!==void 0)ae.encode(e.messageRange,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=mh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.archived=i.bool();continue}case 2:{if(t!==18)break;a.messageRange=ae.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Fs.fromPartial(e??{})},fromPartial(e){let n=mh();return n.archived=e.archived??void 0,n.messageRange=e.messageRange!==void 0&&e.messageRange!==null?ae.fromPartial(e.messageRange):void 0,n}};function _h(){return{}}var Vs={encode(e,n=new s){if(e.autoOrganize!==void 0)n.uint32(8).bool(e.autoOrganize);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=_h();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.autoOrganize=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Vs.fromPartial(e??{})},fromPartial(e){let n=_h();return n.autoOrganize=e.autoOrganize??void 0,n}};function hh(){return{}}var Ks={encode(e,n=new s){if(e.eventType!==void 0)n.uint32(8).int32(e.eventType);if(e.recentAvatarStickers!==void 0&&e.recentAvatarStickers.length!==0)for(let i of e.recentAvatarStickers)Pn.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=hh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.eventType=i.int32();continue}case 2:{if(t!==18)break;if(a.recentAvatarStickers===void 0)a.recentAvatarStickers=[];let o=Pn.decode(i,i.uint32());if(o!==void 0)a.recentAvatarStickers.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ks.fromPartial(e??{})},fromPartial(e){let n=hh();return n.eventType=e.eventType??void 0,n.recentAvatarStickers=e.recentAvatarStickers?.map((i)=>Pn.fromPartial(i))||void 0,n}};function kh(){return{}}var Ws={encode(e,n=new s){if(e.category!==void 0)n.uint32(8).int32(e.category);if(e.version!==void 0)n.uint32(16).int64(e.version);if(e.updatedAtMs!==void 0)n.uint32(24).int64(e.updatedAtMs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=kh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.category=i.int32();continue}case 2:{if(t!==16)break;a.version=i.int64Number();continue}case 3:{if(t!==24)break;a.updatedAtMs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ws.fromPartial(e??{})},fromPartial(e){let n=kh();return n.category=e.category??void 0,n.version=e.version??void 0,n.updatedAtMs=e.updatedAtMs??void 0,n}};function Ah(){return{}}var Hs={encode(e,n=new s){if(e.isSent!==void 0)n.uint32(8).bool(e.isSent);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ah();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isSent=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Hs.fromPartial(e??{})},fromPartial(e){let n=Ah();return n.isSent=e.isSent??void 0,n}};function Sh(){return{}}var qs={encode(e,n=new s){if(e.lidJid!==void 0)n.uint32(10).string(e.lidJid);if(e.pnJid!==void 0)n.uint32(18).string(e.pnJid);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Sh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.lidJid=i.string();continue}case 2:{if(t!==18)break;a.pnJid=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return qs.fromPartial(e??{})},fromPartial(e){let n=Sh();return n.lidJid=e.lidJid??void 0,n.pnJid=e.pnJid??void 0,n}};function Ph(){return{}}var pR={encode(e,n=new s){if(e.deleted!==void 0)n.uint32(8).bool(e.deleted);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ph();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.deleted=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return pR.fromPartial(e??{})},fromPartial(e){let n=Ph();return n.deleted=e.deleted??void 0,n}};function bh(){return{}}var Gs={encode(e,n=new s){if(e.deviceId!==void 0)n.uint32(8).int32(e.deviceId);if(e.adId!==void 0)n.uint32(18).string(e.adId);if(e.name!==void 0)n.uint32(26).string(e.name);if(e.msgId!==void 0)n.uint32(34).string(e.msgId);if(e.broadcastJid!==void 0)n.uint32(42).string(e.broadcastJid);if(e.reservedQuota!==void 0)n.uint32(48).int32(e.reservedQuota);if(e.scheduledTimestamp!==void 0)n.uint32(56).int64(e.scheduledTimestamp);if(e.createTimestamp!==void 0)n.uint32(64).int64(e.createTimestamp);if(e.status!==void 0)n.uint32(72).int32(e.status);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=bh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.deviceId=i.int32();continue}case 2:{if(t!==18)break;a.adId=i.string();continue}case 3:{if(t!==26)break;a.name=i.string();continue}case 4:{if(t!==34)break;a.msgId=i.string();continue}case 5:{if(t!==42)break;a.broadcastJid=i.string();continue}case 6:{if(t!==48)break;a.reservedQuota=i.int32();continue}case 7:{if(t!==56)break;a.scheduledTimestamp=i.int64Number();continue}case 8:{if(t!==64)break;a.createTimestamp=i.int64Number();continue}case 9:{if(t!==72)break;a.status=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Gs.fromPartial(e??{})},fromPartial(e){let n=bh();return n.deviceId=e.deviceId??void 0,n.adId=e.adId??void 0,n.name=e.name??void 0,n.msgId=e.msgId??void 0,n.broadcastJid=e.broadcastJid??void 0,n.reservedQuota=e.reservedQuota??void 0,n.scheduledTimestamp=e.scheduledTimestamp??void 0,n.createTimestamp=e.createTimestamp??void 0,n.status=e.status??void 0,n}};function Ih(){return{}}var Js={encode(e,n=new s){if(e.recipientCount!==void 0)n.uint32(8).int32(e.recipientCount);if(e.deliveredCount!==void 0)n.uint32(16).int32(e.deliveredCount);if(e.readCount!==void 0)n.uint32(24).int32(e.readCount);if(e.repliedCount!==void 0)n.uint32(32).int32(e.repliedCount);if(e.quickReplyCount!==void 0)n.uint32(40).int32(e.quickReplyCount);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ih();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.recipientCount=i.int32();continue}case 2:{if(t!==16)break;a.deliveredCount=i.int32();continue}case 3:{if(t!==24)break;a.readCount=i.int32();continue}case 4:{if(t!==32)break;a.repliedCount=i.int32();continue}case 5:{if(t!==40)break;a.quickReplyCount=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Js.fromPartial(e??{})},fromPartial(e){let n=Ih();return n.recipientCount=e.recipientCount??void 0,n.deliveredCount=e.deliveredCount??void 0,n.readCount=e.readCount??void 0,n.repliedCount=e.repliedCount??void 0,n.quickReplyCount=e.quickReplyCount??void 0,n}};function Rh(){return{}}var Qs={encode(e,n=new s){if(e.deleted!==void 0)n.uint32(8).bool(e.deleted);if(e.participants!==void 0&&e.participants.length!==0)for(let i of e.participants)qs.encode(i,n.uint32(18).fork()).join();if(e.listName!==void 0)n.uint32(26).string(e.listName);if(e.labelIds!==void 0&&e.labelIds.length!==0)for(let i of e.labelIds)n.uint32(34).string(i);if(e.audienceExpression!==void 0)n.uint32(42).string(e.audienceExpression);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Rh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.deleted=i.bool();continue}case 2:{if(t!==18)break;if(a.participants===void 0)a.participants=[];let o=qs.decode(i,i.uint32());if(o!==void 0)a.participants.push(o);continue}case 3:{if(t!==26)break;a.listName=i.string();continue}case 4:{if(t!==34)break;if(a.labelIds===void 0)a.labelIds=[];let o=i.string();if(o!==void 0)a.labelIds.push(o);continue}case 5:{if(t!==42)break;a.audienceExpression=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Qs.fromPartial(e??{})},fromPartial(e){let n=Rh();return n.deleted=e.deleted??void 0,n.participants=e.participants?.map((i)=>qs.fromPartial(i))||void 0,n.listName=e.listName??void 0,n.labelIds=e.labelIds?.map((i)=>i)||void 0,n.audienceExpression=e.audienceExpression??void 0,n}};function Dh(){return{}}var zs={encode(e,n=new s){if(e.callLogRecord!==void 0)Xe.encode(e.callLogRecord,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Dh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.callLogRecord=Xe.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return zs.fromPartial(e??{})},fromPartial(e){let n=Dh();return n.callLogRecord=e.callLogRecord!==void 0&&e.callLogRecord!==null?Xe.fromPartial(e.callLogRecord):void 0,n}};function Eh(){return{}}var Ys={encode(e,n=new s){if(e.deviceAgentId!==void 0)n.uint32(10).string(e.deviceAgentId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Eh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.deviceAgentId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ys.fromPartial(e??{})},fromPartial(e){let n=Eh();return n.deviceAgentId=e.deviceAgentId??void 0,n}};function Bh(){return{}}var Zs={encode(e,n=new s){if(e.chatOpened!==void 0)n.uint32(8).bool(e.chatOpened);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Bh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.chatOpened=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Zs.fromPartial(e??{})},fromPartial(e){let n=Bh();return n.chatOpened=e.chatOpened??void 0,n}};function Ch(){return{}}var Xs={encode(e,n=new s){if(e.messageRange!==void 0)ae.encode(e.messageRange,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ch();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.messageRange=ae.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Xs.fromPartial(e??{})},fromPartial(e){let n=Ch();return n.messageRange=e.messageRange!==void 0&&e.messageRange!==null?ae.fromPartial(e.messageRange):void 0,n}};function vh(){return{}}var $s={encode(e,n=new s){if(e.version!==void 0)n.uint32(8).uint64(e.version);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=vh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.version=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return $s.fromPartial(e??{})},fromPartial(e){let n=vh();return n.version=e.version??void 0,n}};function xh(){return{}}var js={encode(e,n=new s){if(e.fullName!==void 0)n.uint32(10).string(e.fullName);if(e.firstName!==void 0)n.uint32(18).string(e.firstName);if(e.lidJid!==void 0)n.uint32(26).string(e.lidJid);if(e.saveOnPrimaryAddressbook!==void 0)n.uint32(32).bool(e.saveOnPrimaryAddressbook);if(e.pnJid!==void 0)n.uint32(42).string(e.pnJid);if(e.username!==void 0)n.uint32(50).string(e.username);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=xh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.fullName=i.string();continue}case 2:{if(t!==18)break;a.firstName=i.string();continue}case 3:{if(t!==26)break;a.lidJid=i.string();continue}case 4:{if(t!==32)break;a.saveOnPrimaryAddressbook=i.bool();continue}case 5:{if(t!==42)break;a.pnJid=i.string();continue}case 6:{if(t!==50)break;a.username=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return js.fromPartial(e??{})},fromPartial(e){let n=xh();return n.fullName=e.fullName??void 0,n.firstName=e.firstName??void 0,n.lidJid=e.lidJid??void 0,n.saveOnPrimaryAddressbook=e.saveOnPrimaryAddressbook??void 0,n.pnJid=e.pnJid??void 0,n.username=e.username??void 0,n}};function Nh(){return{}}var eu={encode(e,n=new s){if(e.isCtwaPerCustomerDataSharingEnabled!==void 0)n.uint32(8).bool(e.isCtwaPerCustomerDataSharingEnabled);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Nh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isCtwaPerCustomerDataSharingEnabled=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return eu.fromPartial(e??{})},fromPartial(e){let n=Nh();return n.isCtwaPerCustomerDataSharingEnabled=e.isCtwaPerCustomerDataSharingEnabled??void 0,n}};function Oh(){return{}}var nu={encode(e,n=new s){if(e.credentialId!==void 0)n.uint32(10).string(e.credentialId);if(e.country!==void 0)n.uint32(18).string(e.country);if(e.type!==void 0)n.uint32(26).string(e.type);if(e.metadata!==void 0&&e.metadata.length!==0)for(let i of e.metadata)iu.encode(i,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Oh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.credentialId=i.string();continue}case 2:{if(t!==18)break;a.country=i.string();continue}case 3:{if(t!==26)break;a.type=i.string();continue}case 4:{if(t!==34)break;if(a.metadata===void 0)a.metadata=[];let o=iu.decode(i,i.uint32());if(o!==void 0)a.metadata.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return nu.fromPartial(e??{})},fromPartial(e){let n=Oh();return n.credentialId=e.credentialId??void 0,n.country=e.country??void 0,n.type=e.type??void 0,n.metadata=e.metadata?.map((i)=>iu.fromPartial(i))||void 0,n}};function Uh(){return{}}var iu={encode(e,n=new s){if(e.key!==void 0)n.uint32(10).string(e.key);if(e.value!==void 0)n.uint32(18).string(e.value);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Uh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=i.string();continue}case 2:{if(t!==18)break;a.value=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return iu.fromPartial(e??{})},fromPartial(e){let n=Uh();return n.key=e.key??void 0,n.value=e.value??void 0,n}};function Th(){return{}}var tu={encode(e,n=new s){if(e.customPaymentMethods!==void 0&&e.customPaymentMethods.length!==0)for(let i of e.customPaymentMethods)nu.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Th();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.customPaymentMethods===void 0)a.customPaymentMethods=[];let o=nu.decode(i,i.uint32());if(o!==void 0)a.customPaymentMethods.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return tu.fromPartial(e??{})},fromPartial(e){let n=Th();return n.customPaymentMethods=e.customPaymentMethods?.map((i)=>nu.fromPartial(i))||void 0,n}};function Lh(){return{}}var au={encode(e,n=new s){if(e.chatJid!==void 0)n.uint32(10).string(e.chatJid);if(e.contactType!==void 0)n.uint32(16).int32(e.contactType);if(e.email!==void 0)n.uint32(26).string(e.email);if(e.altPhoneNumbers!==void 0)n.uint32(34).string(e.altPhoneNumbers);if(e.birthday!==void 0)n.uint32(40).int64(e.birthday);if(e.address!==void 0)n.uint32(50).string(e.address);if(e.acquisitionSource!==void 0)n.uint32(56).int32(e.acquisitionSource);if(e.leadStage!==void 0)n.uint32(64).int32(e.leadStage);if(e.lastOrder!==void 0)n.uint32(72).int64(e.lastOrder);if(e.createdAt!==void 0)n.uint32(80).int64(e.createdAt);if(e.modifiedAt!==void 0)n.uint32(88).int64(e.modifiedAt);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Lh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.chatJid=i.string();continue}case 2:{if(t!==16)break;a.contactType=i.int32();continue}case 3:{if(t!==26)break;a.email=i.string();continue}case 4:{if(t!==34)break;a.altPhoneNumbers=i.string();continue}case 5:{if(t!==40)break;a.birthday=i.int64Number();continue}case 6:{if(t!==50)break;a.address=i.string();continue}case 7:{if(t!==56)break;a.acquisitionSource=i.int32();continue}case 8:{if(t!==64)break;a.leadStage=i.int32();continue}case 9:{if(t!==72)break;a.lastOrder=i.int64Number();continue}case 10:{if(t!==80)break;a.createdAt=i.int64Number();continue}case 11:{if(t!==88)break;a.modifiedAt=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return au.fromPartial(e??{})},fromPartial(e){let n=Lh();return n.chatJid=e.chatJid??void 0,n.contactType=e.contactType??void 0,n.email=e.email??void 0,n.altPhoneNumbers=e.altPhoneNumbers??void 0,n.birthday=e.birthday??void 0,n.address=e.address??void 0,n.acquisitionSource=e.acquisitionSource??void 0,n.leadStage=e.leadStage??void 0,n.lastOrder=e.lastOrder??void 0,n.createdAt=e.createdAt??void 0,n.modifiedAt=e.modifiedAt??void 0,n}};function wh(){return{}}var ru={encode(e,n=new s){if(e.messageRange!==void 0)ae.encode(e.messageRange,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=wh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.messageRange=ae.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ru.fromPartial(e??{})},fromPartial(e){let n=wh();return n.messageRange=e.messageRange!==void 0&&e.messageRange!==null?ae.fromPartial(e.messageRange):void 0,n}};function Fh(){return{}}var du={encode(e,n=new s){if(e.peerJid!==void 0)n.uint32(10).string(e.peerJid);if(e.isIncoming!==void 0)n.uint32(16).bool(e.isIncoming);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Fh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.peerJid=i.string();continue}case 2:{if(t!==16)break;a.isIncoming=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return du.fromPartial(e??{})},fromPartial(e){let n=Fh();return n.peerJid=e.peerJid??void 0,n.isIncoming=e.isIncoming??void 0,n}};function Vh(){return{}}var ou={encode(e,n=new s){if(e.deleteMedia!==void 0)n.uint32(8).bool(e.deleteMedia);if(e.messageTimestamp!==void 0)n.uint32(16).int64(e.messageTimestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Vh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.deleteMedia=i.bool();continue}case 2:{if(t!==16)break;a.messageTimestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ou.fromPartial(e??{})},fromPartial(e){let n=Vh();return n.deleteMedia=e.deleteMedia??void 0,n.messageTimestamp=e.messageTimestamp??void 0,n}};function Kh(){return{}}var su={encode(e,n=new s){if(e.isEnabled!==void 0)n.uint32(8).bool(e.isEnabled);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Kh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isEnabled=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return su.fromPartial(e??{})},fromPartial(e){let n=Kh();return n.isEnabled=e.isEnabled??void 0,n}};function Wh(){return{}}var uu={encode(e,n=new s){if(e.isOptIn!==void 0)n.uint32(8).bool(e.isOptIn);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Wh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isOptIn=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return uu.fromPartial(e??{})},fromPartial(e){let n=Wh();return n.isOptIn=e.isOptIn??void 0,n}};function Hh(){return{}}var cu={encode(e,n=new s){if(e.favorites!==void 0&&e.favorites.length!==0)for(let i of e.favorites)fu.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Hh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.favorites===void 0)a.favorites=[];let o=fu.decode(i,i.uint32());if(o!==void 0)a.favorites.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return cu.fromPartial(e??{})},fromPartial(e){let n=Hh();return n.favorites=e.favorites?.map((i)=>fu.fromPartial(i))||void 0,n}};function qh(){return{}}var fu={encode(e,n=new s){if(e.id!==void 0)n.uint32(10).string(e.id);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=qh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.id=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return fu.fromPartial(e??{})},fromPartial(e){let n=qh();return n.id=e.id??void 0,n}};function Gh(){return{}}var lu={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).int32(e.type);if(e.agmId!==void 0)n.uint32(18).string(e.agmId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Gh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.int32();continue}case 2:{if(t!==18)break;a.agmId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return lu.fromPartial(e??{})},fromPartial(e){let n=Gh();return n.type=e.type??void 0,n.agmId=e.agmId??void 0,n}};function Jh(){return{}}var pu={encode(e,n=new s){if(e.expiredKeyEpoch!==void 0)n.uint32(8).int32(e.expiredKeyEpoch);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Jh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.expiredKeyEpoch=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return pu.fromPartial(e??{})},fromPartial(e){let n=Jh();return n.expiredKeyEpoch=e.expiredKeyEpoch??void 0,n}};function Qh(){return{}}var gu={encode(e,n=new s){if(e.labeled!==void 0)n.uint32(8).bool(e.labeled);if(e.modelMetaData!==void 0)n.uint32(18).string(e.modelMetaData);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Qh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.labeled=i.bool();continue}case 2:{if(t!==18)break;a.modelMetaData=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return gu.fromPartial(e??{})},fromPartial(e){let n=Qh();return n.labeled=e.labeled??void 0,n.modelMetaData=e.modelMetaData??void 0,n}};function zh(){return{}}var yu={encode(e,n=new s){if(e.name!==void 0)n.uint32(10).string(e.name);if(e.color!==void 0)n.uint32(16).int32(e.color);if(e.predefinedId!==void 0)n.uint32(24).int32(e.predefinedId);if(e.deleted!==void 0)n.uint32(32).bool(e.deleted);if(e.orderIndex!==void 0)n.uint32(40).int32(e.orderIndex);if(e.isActive!==void 0)n.uint32(48).bool(e.isActive);if(e.type!==void 0)n.uint32(56).int32(e.type);if(e.isImmutable!==void 0)n.uint32(64).bool(e.isImmutable);if(e.muteEndTimeMs!==void 0)n.uint32(72).int64(e.muteEndTimeMs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=zh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.name=i.string();continue}case 2:{if(t!==16)break;a.color=i.int32();continue}case 3:{if(t!==24)break;a.predefinedId=i.int32();continue}case 4:{if(t!==32)break;a.deleted=i.bool();continue}case 5:{if(t!==40)break;a.orderIndex=i.int32();continue}case 6:{if(t!==48)break;a.isActive=i.bool();continue}case 7:{if(t!==56)break;a.type=i.int32();continue}case 8:{if(t!==64)break;a.isImmutable=i.bool();continue}case 9:{if(t!==72)break;a.muteEndTimeMs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return yu.fromPartial(e??{})},fromPartial(e){let n=zh();return n.name=e.name??void 0,n.color=e.color??void 0,n.predefinedId=e.predefinedId??void 0,n.deleted=e.deleted??void 0,n.orderIndex=e.orderIndex??void 0,n.isActive=e.isActive??void 0,n.type=e.type??void 0,n.isImmutable=e.isImmutable??void 0,n.muteEndTimeMs=e.muteEndTimeMs??void 0,n}};function Yh(){return{}}var Mu={encode(e,n=new s){if(e.sortedLabelIds!==void 0&&e.sortedLabelIds.length!==0)for(let i of e.sortedLabelIds)n.uint32(8).int32(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Yh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t===8){if(a.sortedLabelIds===void 0)a.sortedLabelIds=[];a.sortedLabelIds.push(i.int32());continue}if(t===10){if(a.sortedLabelIds===void 0)a.sortedLabelIds=[];let o=i.uint32()+i.pos;while(i.pos<o)a.sortedLabelIds.push(i.int32());continue}break}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Mu.fromPartial(e??{})},fromPartial(e){let n=Yh();return n.sortedLabelIds=e.sortedLabelIds?.map((i)=>i)||void 0,n}};function Zh(){return{}}var mu={encode(e,n=new s){if(e.fullName!==void 0)n.uint32(10).string(e.fullName);if(e.firstName!==void 0)n.uint32(18).string(e.firstName);if(e.username!==void 0)n.uint32(26).string(e.username);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Zh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.fullName=i.string();continue}case 2:{if(t!==18)break;a.firstName=i.string();continue}case 3:{if(t!==26)break;a.username=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return mu.fromPartial(e??{})},fromPartial(e){let n=Zh();return n.fullName=e.fullName??void 0,n.firstName=e.firstName??void 0,n.username=e.username??void 0,n}};function Xh(){return{}}var _u={encode(e,n=new s){if(e.locale!==void 0)n.uint32(10).string(e.locale);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Xh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.locale=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return _u.fromPartial(e??{})},fromPartial(e){let n=Xh();return n.locale=e.locale??void 0,n}};function $h(){return{}}var hu={encode(e,n=new s){if(e.locked!==void 0)n.uint32(8).bool(e.locked);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=$h();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.locked=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return hu.fromPartial(e??{})},fromPartial(e){let n=$h();return n.locked=e.locked??void 0,n}};function jh(){return{}}var ku={encode(e,n=new s){if(e.aiFeatureStatus!==void 0)n.uint32(8).int32(e.aiFeatureStatus);if(e.aiReplyMode!==void 0)n.uint32(16).int32(e.aiReplyMode);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=jh();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.aiFeatureStatus=i.int32();continue}case 2:{if(t!==16)break;a.aiReplyMode=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ku.fromPartial(e??{})},fromPartial(e){let n=jh();return n.aiFeatureStatus=e.aiFeatureStatus??void 0,n.aiReplyMode=e.aiReplyMode??void 0,n}};function ek(){return{}}var Au={encode(e,n=new s){if(e.read!==void 0)n.uint32(8).bool(e.read);if(e.messageRange!==void 0)ae.encode(e.messageRange,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ek();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.read=i.bool();continue}case 2:{if(t!==18)break;a.messageRange=ae.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Au.fromPartial(e??{})},fromPartial(e){let n=ek();return n.read=e.read??void 0,n.messageRange=e.messageRange!==void 0&&e.messageRange!==null?ae.fromPartial(e.messageRange):void 0,n}};function nk(){return{}}var Su={encode(e,n=new s){if(e.name!==void 0)n.uint32(10).string(e.name);if(e.message!==void 0)n.uint32(18).string(e.message);if(e.type!==void 0)n.uint32(24).int32(e.type);if(e.createdAt!==void 0)n.uint32(32).int64(e.createdAt);if(e.lastSentAt!==void 0)n.uint32(40).int64(e.lastSentAt);if(e.isDeleted!==void 0)n.uint32(48).bool(e.isDeleted);if(e.mediaId!==void 0)n.uint32(58).string(e.mediaId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=nk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.name=i.string();continue}case 2:{if(t!==18)break;a.message=i.string();continue}case 3:{if(t!==24)break;a.type=i.int32();continue}case 4:{if(t!==32)break;a.createdAt=i.int64Number();continue}case 5:{if(t!==40)break;a.lastSentAt=i.int64Number();continue}case 6:{if(t!==48)break;a.isDeleted=i.bool();continue}case 7:{if(t!==58)break;a.mediaId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Su.fromPartial(e??{})},fromPartial(e){let n=nk();return n.name=e.name??void 0,n.message=e.message??void 0,n.type=e.type??void 0,n.createdAt=e.createdAt??void 0,n.lastSentAt=e.lastSentAt??void 0,n.isDeleted=e.isDeleted??void 0,n.mediaId=e.mediaId??void 0,n}};function ik(){return{}}var Pu={encode(e,n=new s){if(e.repliedCount!==void 0)n.uint32(8).int32(e.repliedCount);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ik();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.repliedCount=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Pu.fromPartial(e??{})},fromPartial(e){let n=ik();return n.repliedCount=e.repliedCount??void 0,n}};function tk(){return{}}var bu={encode(e,n=new s){if(e.status!==void 0)n.uint32(8).int32(e.status);if(e.country!==void 0)n.uint32(18).string(e.country);if(e.gatewayName!==void 0)n.uint32(26).string(e.gatewayName);if(e.credentialId!==void 0)n.uint32(34).string(e.credentialId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=tk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.status=i.int32();continue}case 2:{if(t!==18)break;a.country=i.string();continue}case 3:{if(t!==26)break;a.gatewayName=i.string();continue}case 4:{if(t!==34)break;a.credentialId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return bu.fromPartial(e??{})},fromPartial(e){let n=tk();return n.status=e.status??void 0,n.country=e.country??void 0,n.gatewayName=e.gatewayName??void 0,n.credentialId=e.credentialId??void 0,n}};function ak(){return{}}var Iu={encode(e,n=new s){if(e.musicUserId!==void 0)n.uint32(10).string(e.musicUserId);return globalThis.Object.entries(e.musicUserIdMap||{}).forEach(([i,r])=>{wc.encode({key:i,value:r},n.uint32(18).fork()).join()}),n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ak();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.musicUserId=i.string();continue}case 2:{if(t!==18)break;let o=wc.decode(i,i.uint32());if(o.value!==void 0&&o.key!==void 0){if(a.musicUserIdMap===void 0)a.musicUserIdMap={};a.musicUserIdMap[o.key]=o.value}continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Iu.fromPartial(e??{})},fromPartial(e){let n=ak();return n.musicUserId=e.musicUserId??void 0,n.musicUserIdMap=e.musicUserIdMap===void 0||e.musicUserIdMap===null?void 0:globalThis.Object.entries(e.musicUserIdMap??{}).reduce((i,[r,a])=>{if(a!==void 0)i[r]=globalThis.String(a);return i},{}),n}};function rk(){return{}}var wc={encode(e,n=new s){if(e.key!==void 0)n.uint32(10).string(e.key);if(e.value!==void 0)n.uint32(18).string(e.value);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=rk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=i.string();continue}case 2:{if(t!==18)break;a.value=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return wc.fromPartial(e??{})},fromPartial(e){let n=rk();return n.key=e.key??void 0,n.value=e.value??void 0,n}};function dk(){return{}}var Ru={encode(e,n=new s){if(e.muted!==void 0)n.uint32(8).bool(e.muted);if(e.muteEndTimestamp!==void 0)n.uint32(16).int64(e.muteEndTimestamp);if(e.autoMuted!==void 0)n.uint32(24).bool(e.autoMuted);if(e.muteEveryoneMentionEndTimestamp!==void 0)n.uint32(32).int64(e.muteEveryoneMentionEndTimestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=dk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.muted=i.bool();continue}case 2:{if(t!==16)break;a.muteEndTimestamp=i.int64Number();continue}case 3:{if(t!==24)break;a.autoMuted=i.bool();continue}case 4:{if(t!==32)break;a.muteEveryoneMentionEndTimestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ru.fromPartial(e??{})},fromPartial(e){let n=dk();return n.muted=e.muted??void 0,n.muteEndTimestamp=e.muteEndTimestamp??void 0,n.autoMuted=e.autoMuted??void 0,n.muteEveryoneMentionEndTimestamp=e.muteEveryoneMentionEndTimestamp??void 0,n}};function ok(){return{}}var Du={encode(e,n=new s){if(e.salt!==void 0)n.uint32(10).bytes(e.salt);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ok();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.salt=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Du.fromPartial(e??{})},fromPartial(e){let n=ok();return n.salt=e.salt??void 0,n}};function sk(){return{}}var Eu={encode(e,n=new s){if(e.newsletterSavedInterests!==void 0)n.uint32(10).string(e.newsletterSavedInterests);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=sk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.newsletterSavedInterests=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Eu.fromPartial(e??{})},fromPartial(e){let n=sk();return n.newsletterSavedInterests=e.newsletterSavedInterests??void 0,n}};function uk(){return{}}var Bu={encode(e,n=new s){if(e.type!==void 0)n.uint32(8).int32(e.type);if(e.chatJid!==void 0)n.uint32(18).string(e.chatJid);if(e.createdAt!==void 0)n.uint32(24).int64(e.createdAt);if(e.deleted!==void 0)n.uint32(32).bool(e.deleted);if(e.unstructuredContent!==void 0)n.uint32(42).string(e.unstructuredContent);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=uk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.type=i.int32();continue}case 2:{if(t!==18)break;a.chatJid=i.string();continue}case 3:{if(t!==24)break;a.createdAt=i.int64Number();continue}case 4:{if(t!==32)break;a.deleted=i.bool();continue}case 5:{if(t!==42)break;a.unstructuredContent=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Bu.fromPartial(e??{})},fromPartial(e){let n=uk();return n.type=e.type??void 0,n.chatJid=e.chatJid??void 0,n.createdAt=e.createdAt??void 0,n.deleted=e.deleted??void 0,n.unstructuredContent=e.unstructuredContent??void 0,n}};function ck(){return{}}var Cu={encode(e,n=new s){if(e.notificationActivitySetting!==void 0)n.uint32(8).int32(e.notificationActivitySetting);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=ck();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.notificationActivitySetting=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Cu.fromPartial(e??{})},fromPartial(e){let n=ck();return n.notificationActivitySetting=e.notificationActivitySetting??void 0,n}};function fk(){return{}}var vu={encode(e,n=new s){if(e.acknowledged!==void 0)n.uint32(8).bool(e.acknowledged);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=fk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.acknowledged=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return vu.fromPartial(e??{})},fromPartial(e){let n=fk();return n.acknowledged=e.acknowledged??void 0,n}};function lk(){return{}}var xu={encode(e,n=new s){if(e.fullName!==void 0)n.uint32(10).string(e.fullName);if(e.firstName!==void 0)n.uint32(18).string(e.firstName);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=lk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.fullName=i.string();continue}case 2:{if(t!==18)break;a.firstName=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return xu.fromPartial(e??{})},fromPartial(e){let n=lk();return n.fullName=e.fullName??void 0,n.firstName=e.firstName??void 0,n}};function pk(){return{}}var Nu={encode(e,n=new s){if(e.cpi!==void 0)n.uint32(10).string(e.cpi);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=pk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.cpi=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Nu.fromPartial(e??{})},fromPartial(e){let n=pk();return n.cpi=e.cpi??void 0,n}};function gk(){return{}}var Ou={encode(e,n=new s){if(e.paymentNotice!==void 0)n.uint32(8).int32(e.paymentNotice);if(e.accepted!==void 0)n.uint32(16).bool(e.accepted);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=gk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.paymentNotice=i.int32();continue}case 2:{if(t!==16)break;a.accepted=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ou.fromPartial(e??{})},fromPartial(e){let n=gk();return n.paymentNotice=e.paymentNotice??void 0,n.accepted=e.accepted??void 0,n}};function yk(){return{}}var Uu={encode(e,n=new s){if(e.pinned!==void 0)n.uint32(8).bool(e.pinned);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=yk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.pinned=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Uu.fromPartial(e??{})},fromPartial(e){let n=yk();return n.pinned=e.pinned??void 0,n}};function Mk(){return{}}var Tu={encode(e,n=new s){if(e.pnJid!==void 0)n.uint32(10).string(e.pnJid);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Mk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.pnJid=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Tu.fromPartial(e??{})},fromPartial(e){let n=Mk();return n.pnJid=e.pnJid??void 0,n}};function mk(){return{}}var Lu={encode(e,n=new s){if(e.flags!==void 0&&e.flags.length!==0)for(let i of e.flags)n.uint32(10).string(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=mk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.flags===void 0)a.flags=[];let o=i.string();if(o!==void 0)a.flags.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Lu.fromPartial(e??{})},fromPartial(e){let n=mk();return n.flags=e.flags?.map((i)=>i)||void 0,n}};function _k(){return{}}var wu={encode(e,n=new s){if(e.version!==void 0)n.uint32(10).string(e.version);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=_k();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.version=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return wu.fromPartial(e??{})},fromPartial(e){let n=_k();return n.version=e.version??void 0,n}};function hk(){return{}}var Fu={encode(e,n=new s){if(e.isUserOptedOut!==void 0)n.uint32(8).bool(e.isUserOptedOut);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=hk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isUserOptedOut=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Fu.fromPartial(e??{})},fromPartial(e){let n=hk();return n.isUserOptedOut=e.isUserOptedOut??void 0,n}};function kk(){return{}}var Vu={encode(e,n=new s){if(e.isPreviewsDisabled!==void 0)n.uint32(8).bool(e.isPreviewsDisabled);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=kk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isPreviewsDisabled=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Vu.fromPartial(e??{})},fromPartial(e){let n=kk();return n.isPreviewsDisabled=e.isPreviewsDisabled??void 0,n}};function Ak(){return{}}var Ku={encode(e,n=new s){if(e.isEnabled!==void 0)n.uint32(8).bool(e.isEnabled);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ak();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isEnabled=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ku.fromPartial(e??{})},fromPartial(e){let n=Ak();return n.isEnabled=e.isEnabled??void 0,n}};function Sk(){return{}}var Wu={encode(e,n=new s){if(e.privateProcessingStatus!==void 0)n.uint32(8).int32(e.privateProcessingStatus);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Sk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.privateProcessingStatus=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Wu.fromPartial(e??{})},fromPartial(e){let n=Sk();return n.privateProcessingStatus=e.privateProcessingStatus??void 0,n}};function Pk(){return{}}var Hu={encode(e,n=new s){if(e.name!==void 0)n.uint32(10).string(e.name);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Pk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.name=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Hu.fromPartial(e??{})},fromPartial(e){let n=Pk();return n.name=e.name??void 0,n}};function bk(){return{}}var qu={encode(e,n=new s){if(e.shortcut!==void 0)n.uint32(10).string(e.shortcut);if(e.message!==void 0)n.uint32(18).string(e.message);if(e.keywords!==void 0&&e.keywords.length!==0)for(let i of e.keywords)n.uint32(26).string(i);if(e.count!==void 0)n.uint32(32).int32(e.count);if(e.deleted!==void 0)n.uint32(40).bool(e.deleted);if(e.associatedLabelIds!==void 0&&e.associatedLabelIds.length!==0)for(let i of e.associatedLabelIds)n.uint32(50).string(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=bk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.shortcut=i.string();continue}case 2:{if(t!==18)break;a.message=i.string();continue}case 3:{if(t!==26)break;if(a.keywords===void 0)a.keywords=[];let o=i.string();if(o!==void 0)a.keywords.push(o);continue}case 4:{if(t!==32)break;a.count=i.int32();continue}case 5:{if(t!==40)break;a.deleted=i.bool();continue}case 6:{if(t!==50)break;if(a.associatedLabelIds===void 0)a.associatedLabelIds=[];let o=i.string();if(o!==void 0)a.associatedLabelIds.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return qu.fromPartial(e??{})},fromPartial(e){let n=bk();return n.shortcut=e.shortcut??void 0,n.message=e.message??void 0,n.keywords=e.keywords?.map((i)=>i)||void 0,n.count=e.count??void 0,n.deleted=e.deleted??void 0,n.associatedLabelIds=e.associatedLabelIds?.map((i)=>i)||void 0,n}};function Ik(){return{}}var Gu={encode(e,n=new s){if(e.weights!==void 0&&e.weights.length!==0)for(let i of e.weights)ps.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ik();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.weights===void 0)a.weights=[];let o=ps.decode(i,i.uint32());if(o!==void 0)a.weights.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Gu.fromPartial(e??{})},fromPartial(e){let n=Ik();return n.weights=e.weights?.map((i)=>ps.fromPartial(i))||void 0,n}};function Rk(){return{}}var Ju={encode(e,n=new s){if(e.lastStickerSentTs!==void 0)n.uint32(8).int64(e.lastStickerSentTs);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Rk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.lastStickerSentTs=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ju.fromPartial(e??{})},fromPartial(e){let n=Rk();return n.lastStickerSentTs=e.lastStickerSentTs??void 0,n}};function Dk(){return{}}var Qu={encode(e,n=new s){if(e.startAtLogin!==void 0)n.uint32(8).bool(e.startAtLogin);if(e.minimizeToTray!==void 0)n.uint32(16).bool(e.minimizeToTray);if(e.language!==void 0)n.uint32(26).string(e.language);if(e.replaceTextWithEmoji!==void 0)n.uint32(32).bool(e.replaceTextWithEmoji);if(e.bannerNotificationDisplayMode!==void 0)n.uint32(40).int32(e.bannerNotificationDisplayMode);if(e.unreadCounterBadgeDisplayMode!==void 0)n.uint32(48).int32(e.unreadCounterBadgeDisplayMode);if(e.isMessagesNotificationEnabled!==void 0)n.uint32(56).bool(e.isMessagesNotificationEnabled);if(e.isCallsNotificationEnabled!==void 0)n.uint32(64).bool(e.isCallsNotificationEnabled);if(e.isReactionsNotificationEnabled!==void 0)n.uint32(72).bool(e.isReactionsNotificationEnabled);if(e.isStatusReactionsNotificationEnabled!==void 0)n.uint32(80).bool(e.isStatusReactionsNotificationEnabled);if(e.isTextPreviewForNotificationEnabled!==void 0)n.uint32(88).bool(e.isTextPreviewForNotificationEnabled);if(e.defaultNotificationToneId!==void 0)n.uint32(96).int32(e.defaultNotificationToneId);if(e.groupDefaultNotificationToneId!==void 0)n.uint32(104).int32(e.groupDefaultNotificationToneId);if(e.appTheme!==void 0)n.uint32(112).int32(e.appTheme);if(e.wallpaperId!==void 0)n.uint32(120).int32(e.wallpaperId);if(e.isDoodleWallpaperEnabled!==void 0)n.uint32(128).bool(e.isDoodleWallpaperEnabled);if(e.fontSize!==void 0)n.uint32(136).int32(e.fontSize);if(e.isPhotosAutodownloadEnabled!==void 0)n.uint32(144).bool(e.isPhotosAutodownloadEnabled);if(e.isAudiosAutodownloadEnabled!==void 0)n.uint32(152).bool(e.isAudiosAutodownloadEnabled);if(e.isVideosAutodownloadEnabled!==void 0)n.uint32(160).bool(e.isVideosAutodownloadEnabled);if(e.isDocumentsAutodownloadEnabled!==void 0)n.uint32(168).bool(e.isDocumentsAutodownloadEnabled);if(e.disableLinkPreviews!==void 0)n.uint32(176).bool(e.disableLinkPreviews);if(e.notificationToneId!==void 0)n.uint32(184).int32(e.notificationToneId);if(e.mediaUploadQuality!==void 0)n.uint32(192).int32(e.mediaUploadQuality);if(e.isSpellCheckEnabled!==void 0)n.uint32(200).bool(e.isSpellCheckEnabled);if(e.isEnterToSendEnabled!==void 0)n.uint32(208).bool(e.isEnterToSendEnabled);if(e.isGroupMessageNotificationEnabled!==void 0)n.uint32(216).bool(e.isGroupMessageNotificationEnabled);if(e.isGroupReactionsNotificationEnabled!==void 0)n.uint32(224).bool(e.isGroupReactionsNotificationEnabled);if(e.isStatusNotificationEnabled!==void 0)n.uint32(232).bool(e.isStatusNotificationEnabled);if(e.statusNotificationToneId!==void 0)n.uint32(240).int32(e.statusNotificationToneId);if(e.shouldPlaySoundForCallNotification!==void 0)n.uint32(248).bool(e.shouldPlaySoundForCallNotification);if(e.chatThemeId!==void 0)n.uint32(258).string(e.chatThemeId);if(e.colorSchemeId!==void 0)n.uint32(266).string(e.colorSchemeId);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Dk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.startAtLogin=i.bool();continue}case 2:{if(t!==16)break;a.minimizeToTray=i.bool();continue}case 3:{if(t!==26)break;a.language=i.string();continue}case 4:{if(t!==32)break;a.replaceTextWithEmoji=i.bool();continue}case 5:{if(t!==40)break;a.bannerNotificationDisplayMode=i.int32();continue}case 6:{if(t!==48)break;a.unreadCounterBadgeDisplayMode=i.int32();continue}case 7:{if(t!==56)break;a.isMessagesNotificationEnabled=i.bool();continue}case 8:{if(t!==64)break;a.isCallsNotificationEnabled=i.bool();continue}case 9:{if(t!==72)break;a.isReactionsNotificationEnabled=i.bool();continue}case 10:{if(t!==80)break;a.isStatusReactionsNotificationEnabled=i.bool();continue}case 11:{if(t!==88)break;a.isTextPreviewForNotificationEnabled=i.bool();continue}case 12:{if(t!==96)break;a.defaultNotificationToneId=i.int32();continue}case 13:{if(t!==104)break;a.groupDefaultNotificationToneId=i.int32();continue}case 14:{if(t!==112)break;a.appTheme=i.int32();continue}case 15:{if(t!==120)break;a.wallpaperId=i.int32();continue}case 16:{if(t!==128)break;a.isDoodleWallpaperEnabled=i.bool();continue}case 17:{if(t!==136)break;a.fontSize=i.int32();continue}case 18:{if(t!==144)break;a.isPhotosAutodownloadEnabled=i.bool();continue}case 19:{if(t!==152)break;a.isAudiosAutodownloadEnabled=i.bool();continue}case 20:{if(t!==160)break;a.isVideosAutodownloadEnabled=i.bool();continue}case 21:{if(t!==168)break;a.isDocumentsAutodownloadEnabled=i.bool();continue}case 22:{if(t!==176)break;a.disableLinkPreviews=i.bool();continue}case 23:{if(t!==184)break;a.notificationToneId=i.int32();continue}case 24:{if(t!==192)break;a.mediaUploadQuality=i.int32();continue}case 25:{if(t!==200)break;a.isSpellCheckEnabled=i.bool();continue}case 26:{if(t!==208)break;a.isEnterToSendEnabled=i.bool();continue}case 27:{if(t!==216)break;a.isGroupMessageNotificationEnabled=i.bool();continue}case 28:{if(t!==224)break;a.isGroupReactionsNotificationEnabled=i.bool();continue}case 29:{if(t!==232)break;a.isStatusNotificationEnabled=i.bool();continue}case 30:{if(t!==240)break;a.statusNotificationToneId=i.int32();continue}case 31:{if(t!==248)break;a.shouldPlaySoundForCallNotification=i.bool();continue}case 32:{if(t!==258)break;a.chatThemeId=i.string();continue}case 33:{if(t!==266)break;a.colorSchemeId=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Qu.fromPartial(e??{})},fromPartial(e){let n=Dk();return n.startAtLogin=e.startAtLogin??void 0,n.minimizeToTray=e.minimizeToTray??void 0,n.language=e.language??void 0,n.replaceTextWithEmoji=e.replaceTextWithEmoji??void 0,n.bannerNotificationDisplayMode=e.bannerNotificationDisplayMode??void 0,n.unreadCounterBadgeDisplayMode=e.unreadCounterBadgeDisplayMode??void 0,n.isMessagesNotificationEnabled=e.isMessagesNotificationEnabled??void 0,n.isCallsNotificationEnabled=e.isCallsNotificationEnabled??void 0,n.isReactionsNotificationEnabled=e.isReactionsNotificationEnabled??void 0,n.isStatusReactionsNotificationEnabled=e.isStatusReactionsNotificationEnabled??void 0,n.isTextPreviewForNotificationEnabled=e.isTextPreviewForNotificationEnabled??void 0,n.defaultNotificationToneId=e.defaultNotificationToneId??void 0,n.groupDefaultNotificationToneId=e.groupDefaultNotificationToneId??void 0,n.appTheme=e.appTheme??void 0,n.wallpaperId=e.wallpaperId??void 0,n.isDoodleWallpaperEnabled=e.isDoodleWallpaperEnabled??void 0,n.fontSize=e.fontSize??void 0,n.isPhotosAutodownloadEnabled=e.isPhotosAutodownloadEnabled??void 0,n.isAudiosAutodownloadEnabled=e.isAudiosAutodownloadEnabled??void 0,n.isVideosAutodownloadEnabled=e.isVideosAutodownloadEnabled??void 0,n.isDocumentsAutodownloadEnabled=e.isDocumentsAutodownloadEnabled??void 0,n.disableLinkPreviews=e.disableLinkPreviews??void 0,n.notificationToneId=e.notificationToneId??void 0,n.mediaUploadQuality=e.mediaUploadQuality??void 0,n.isSpellCheckEnabled=e.isSpellCheckEnabled??void 0,n.isEnterToSendEnabled=e.isEnterToSendEnabled??void 0,n.isGroupMessageNotificationEnabled=e.isGroupMessageNotificationEnabled??void 0,n.isGroupReactionsNotificationEnabled=e.isGroupReactionsNotificationEnabled??void 0,n.isStatusNotificationEnabled=e.isStatusNotificationEnabled??void 0,n.statusNotificationToneId=e.statusNotificationToneId??void 0,n.shouldPlaySoundForCallNotification=e.shouldPlaySoundForCallNotification??void 0,n.chatThemeId=e.chatThemeId??void 0,n.colorSchemeId=e.colorSchemeId??void 0,n}};function Ek(){return{}}var zu={encode(e,n=new s){if(e.starred!==void 0)n.uint32(8).bool(e.starred);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ek();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.starred=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return zu.fromPartial(e??{})},fromPartial(e){let n=Ek();return n.starred=e.starred??void 0,n}};function Bk(){return{}}var Yu={encode(e,n=new s){if(e.enabled!==void 0)n.uint32(8).bool(e.enabled);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Bk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.enabled=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Yu.fromPartial(e??{})},fromPartial(e){let n=Bk();return n.enabled=e.enabled??void 0,n}};function Ck(){return{}}var Zu={encode(e,n=new s){if(e.mode!==void 0)n.uint32(8).int32(e.mode);if(e.userJid!==void 0&&e.userJid.length!==0)for(let i of e.userJid)n.uint32(18).string(i);if(e.shareToFb!==void 0)n.uint32(24).bool(e.shareToFb);if(e.shareToIg!==void 0)n.uint32(32).bool(e.shareToIg);if(e.customLists!==void 0&&e.customLists.length!==0)for(let i of e.customLists)Xu.encode(i,n.uint32(42).fork()).join();if(e.modes!==void 0&&e.modes.length!==0)for(let i of e.modes)n.uint32(48).int32(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ck();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.mode=i.int32();continue}case 2:{if(t!==18)break;if(a.userJid===void 0)a.userJid=[];let o=i.string();if(o!==void 0)a.userJid.push(o);continue}case 3:{if(t!==24)break;a.shareToFb=i.bool();continue}case 4:{if(t!==32)break;a.shareToIg=i.bool();continue}case 5:{if(t!==42)break;if(a.customLists===void 0)a.customLists=[];let o=Xu.decode(i,i.uint32());if(o!==void 0)a.customLists.push(o);continue}case 6:{if(t===48){if(a.modes===void 0)a.modes=[];a.modes.push(i.int32());continue}if(t===50){if(a.modes===void 0)a.modes=[];let o=i.uint32()+i.pos;while(i.pos<o)a.modes.push(i.int32());continue}break}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Zu.fromPartial(e??{})},fromPartial(e){let n=Ck();return n.mode=e.mode??void 0,n.userJid=e.userJid?.map((i)=>i)||void 0,n.shareToFb=e.shareToFb??void 0,n.shareToIg=e.shareToIg??void 0,n.customLists=e.customLists?.map((i)=>Xu.fromPartial(i))||void 0,n.modes=e.modes?.map((i)=>i)||void 0,n}};function vk(){return{}}var Xu={encode(e,n=new s){if(e.listId!==void 0)n.uint32(10).string(e.listId);if(e.name!==void 0)n.uint32(18).string(e.name);if(e.emoji!==void 0)n.uint32(26).string(e.emoji);if(e.isSelected!==void 0)n.uint32(32).bool(e.isSelected);if(e.userJid!==void 0&&e.userJid.length!==0)for(let i of e.userJid)n.uint32(42).string(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=vk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.listId=i.string();continue}case 2:{if(t!==18)break;a.name=i.string();continue}case 3:{if(t!==26)break;a.emoji=i.string();continue}case 4:{if(t!==32)break;a.isSelected=i.bool();continue}case 5:{if(t!==42)break;if(a.userJid===void 0)a.userJid=[];let o=i.string();if(o!==void 0)a.userJid.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Xu.fromPartial(e??{})},fromPartial(e){let n=vk();return n.listId=e.listId??void 0,n.name=e.name??void 0,n.emoji=e.emoji??void 0,n.isSelected=e.isSelected??void 0,n.userJid=e.userJid?.map((i)=>i)||void 0,n}};function xk(){return{}}var Pn={encode(e,n=new s){if(e.url!==void 0)n.uint32(10).string(e.url);if(e.fileEncSha256!==void 0)n.uint32(18).bytes(e.fileEncSha256);if(e.mediaKey!==void 0)n.uint32(26).bytes(e.mediaKey);if(e.mimetype!==void 0)n.uint32(34).string(e.mimetype);if(e.height!==void 0)n.uint32(40).uint32(e.height);if(e.width!==void 0)n.uint32(48).uint32(e.width);if(e.directPath!==void 0)n.uint32(58).string(e.directPath);if(e.fileLength!==void 0)n.uint32(64).uint64(e.fileLength);if(e.isFavorite!==void 0)n.uint32(72).bool(e.isFavorite);if(e.deviceIdHint!==void 0)n.uint32(80).uint32(e.deviceIdHint);if(e.isLottie!==void 0)n.uint32(88).bool(e.isLottie);if(e.imageHash!==void 0)n.uint32(98).string(e.imageHash);if(e.isAvatarSticker!==void 0)n.uint32(104).bool(e.isAvatarSticker);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=xk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.url=i.string();continue}case 2:{if(t!==18)break;a.fileEncSha256=i.bytes();continue}case 3:{if(t!==26)break;a.mediaKey=i.bytes();continue}case 4:{if(t!==34)break;a.mimetype=i.string();continue}case 5:{if(t!==40)break;a.height=i.uint32();continue}case 6:{if(t!==48)break;a.width=i.uint32();continue}case 7:{if(t!==58)break;a.directPath=i.string();continue}case 8:{if(t!==64)break;a.fileLength=i.uint64Number();continue}case 9:{if(t!==72)break;a.isFavorite=i.bool();continue}case 10:{if(t!==80)break;a.deviceIdHint=i.uint32();continue}case 11:{if(t!==88)break;a.isLottie=i.bool();continue}case 12:{if(t!==98)break;a.imageHash=i.string();continue}case 13:{if(t!==104)break;a.isAvatarSticker=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Pn.fromPartial(e??{})},fromPartial(e){let n=xk();return n.url=e.url??void 0,n.fileEncSha256=e.fileEncSha256??void 0,n.mediaKey=e.mediaKey??void 0,n.mimetype=e.mimetype??void 0,n.height=e.height??void 0,n.width=e.width??void 0,n.directPath=e.directPath??void 0,n.fileLength=e.fileLength??void 0,n.isFavorite=e.isFavorite??void 0,n.deviceIdHint=e.deviceIdHint??void 0,n.isLottie=e.isLottie??void 0,n.imageHash=e.imageHash??void 0,n.isAvatarSticker=e.isAvatarSticker??void 0,n}};function Nk(){return{}}var $u={encode(e,n=new s){if(e.isDeactivated!==void 0)n.uint32(8).bool(e.isDeactivated);if(e.isAutoRenewing!==void 0)n.uint32(16).bool(e.isAutoRenewing);if(e.expirationDate!==void 0)n.uint32(24).int64(e.expirationDate);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Nk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isDeactivated=i.bool();continue}case 2:{if(t!==16)break;a.isAutoRenewing=i.bool();continue}case 3:{if(t!==24)break;a.expirationDate=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return $u.fromPartial(e??{})},fromPartial(e){let n=Nk();return n.isDeactivated=e.isDeactivated??void 0,n.isAutoRenewing=e.isAutoRenewing??void 0,n.expirationDate=e.expirationDate??void 0,n}};function Ok(){return{}}var ju={encode(e,n=new s){if(e.subscriptions!==void 0&&e.subscriptions.length!==0)for(let i of e.subscriptions)nc.encode(i,n.uint32(10).fork()).join();if(e.paidFeature!==void 0&&e.paidFeature.length!==0)for(let i of e.paidFeature)ec.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Ok();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.subscriptions===void 0)a.subscriptions=[];let o=nc.decode(i,i.uint32());if(o!==void 0)a.subscriptions.push(o);continue}case 2:{if(t!==18)break;if(a.paidFeature===void 0)a.paidFeature=[];let o=ec.decode(i,i.uint32());if(o!==void 0)a.paidFeature.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ju.fromPartial(e??{})},fromPartial(e){let n=Ok();return n.subscriptions=e.subscriptions?.map((i)=>nc.fromPartial(i))||void 0,n.paidFeature=e.paidFeature?.map((i)=>ec.fromPartial(i))||void 0,n}};function Uk(){return{}}var ec={encode(e,n=new s){if(e.name!==void 0)n.uint32(10).string(e.name);if(e.enabled!==void 0)n.uint32(16).bool(e.enabled);if(e.limit!==void 0)n.uint32(24).int32(e.limit);if(e.expirationTime!==void 0)n.uint32(32).int64(e.expirationTime);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Uk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.name=i.string();continue}case 2:{if(t!==16)break;a.enabled=i.bool();continue}case 3:{if(t!==24)break;a.limit=i.int32();continue}case 4:{if(t!==32)break;a.expirationTime=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ec.fromPartial(e??{})},fromPartial(e){let n=Uk();return n.name=e.name??void 0,n.enabled=e.enabled??void 0,n.limit=e.limit??void 0,n.expirationTime=e.expirationTime??void 0,n}};function Tk(){return{}}var nc={encode(e,n=new s){if(e.id!==void 0)n.uint32(10).string(e.id);if(e.tier!==void 0)n.uint32(16).int32(e.tier);if(e.status!==void 0)n.uint32(26).string(e.status);if(e.startTime!==void 0)n.uint32(32).int64(e.startTime);if(e.endTime!==void 0)n.uint32(40).int64(e.endTime);if(e.isPlatformChanged!==void 0)n.uint32(48).bool(e.isPlatformChanged);if(e.source!==void 0)n.uint32(58).string(e.source);if(e.creationTime!==void 0)n.uint32(64).int64(e.creationTime);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Tk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.id=i.string();continue}case 2:{if(t!==16)break;a.tier=i.int32();continue}case 3:{if(t!==26)break;a.status=i.string();continue}case 4:{if(t!==32)break;a.startTime=i.int64Number();continue}case 5:{if(t!==40)break;a.endTime=i.int64Number();continue}case 6:{if(t!==48)break;a.isPlatformChanged=i.bool();continue}case 7:{if(t!==58)break;a.source=i.string();continue}case 8:{if(t!==64)break;a.creationTime=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return nc.fromPartial(e??{})},fromPartial(e){let n=Tk();return n.id=e.id??void 0,n.tier=e.tier??void 0,n.status=e.status??void 0,n.startTime=e.startTime??void 0,n.endTime=e.endTime??void 0,n.isPlatformChanged=e.isPlatformChanged??void 0,n.source=e.source??void 0,n.creationTime=e.creationTime??void 0,n}};function Lk(){return{}}var ic={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.timestamp!==void 0)n.uint32(16).int64(e.timestamp);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Lk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==16)break;a.timestamp=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ic.fromPartial(e??{})},fromPartial(e){let n=Lk();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.timestamp=e.timestamp??void 0,n}};function wk(){return{}}var ae={encode(e,n=new s){if(e.lastMessageTimestamp!==void 0)n.uint32(8).int64(e.lastMessageTimestamp);if(e.lastSystemMessageTimestamp!==void 0)n.uint32(16).int64(e.lastSystemMessageTimestamp);if(e.messages!==void 0&&e.messages.length!==0)for(let i of e.messages)ic.encode(i,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=wk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.lastMessageTimestamp=i.int64Number();continue}case 2:{if(t!==16)break;a.lastSystemMessageTimestamp=i.int64Number();continue}case 3:{if(t!==26)break;if(a.messages===void 0)a.messages=[];let o=ic.decode(i,i.uint32());if(o!==void 0)a.messages.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ae.fromPartial(e??{})},fromPartial(e){let n=wk();return n.lastMessageTimestamp=e.lastMessageTimestamp??void 0,n.lastSystemMessageTimestamp=e.lastSystemMessageTimestamp??void 0,n.messages=e.messages?.map((i)=>ic.fromPartial(i))||void 0,n}};function Fk(){return{}}var tc={encode(e,n=new s){if(e.pinned!==void 0)n.uint32(8).bool(e.pinned);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Fk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.pinned=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return tc.fromPartial(e??{})},fromPartial(e){let n=Fk();return n.pinned=e.pinned??void 0,n}};function Vk(){return{}}var ac={encode(e,n=new s){if(e.isTwentyFourHourFormatEnabled!==void 0)n.uint32(8).bool(e.isTwentyFourHourFormatEnabled);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Vk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.isTwentyFourHourFormatEnabled=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ac.fromPartial(e??{})},fromPartial(e){let n=Vk();return n.isTwentyFourHourFormatEnabled=e.isTwentyFourHourFormatEnabled??void 0,n}};function Kk(){return{}}var rc={encode(e,n=new s){if(e.definition!==void 0)n.uint32(10).bytes(e.definition);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Kk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.definition=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return rc.fromPartial(e??{})},fromPartial(e){let n=Kk();return n.definition=e.definition??void 0,n}};function Wk(){return{}}var dc={encode(e,n=new s){if(e.unarchiveChats!==void 0)n.uint32(8).bool(e.unarchiveChats);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Wk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.unarchiveChats=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return dc.fromPartial(e??{})},fromPartial(e){let n=Wk();return n.unarchiveChats=e.unarchiveChats??void 0,n}};function Hk(){return{}}var oc={encode(e,n=new s){if(e.muted!==void 0)n.uint32(8).bool(e.muted);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Hk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.muted=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return oc.fromPartial(e??{})},fromPartial(e){let n=Hk();return n.muted=e.muted??void 0,n}};function qk(){return{}}var sc={encode(e,n=new s){if(e.chatStartMode!==void 0)n.uint32(8).int32(e.chatStartMode);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=qk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.chatStartMode=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return sc.fromPartial(e??{})},fromPartial(e){let n=qk();return n.chatStartMode=e.chatStartMode??void 0,n}};function Gk(){return{}}var uc={encode(e,n=new s){if(e.secrets!==void 0&&e.secrets.length!==0)for(let i of e.secrets)cc.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Gk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.secrets===void 0)a.secrets=[];let o=cc.decode(i,i.uint32());if(o!==void 0)a.secrets.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return uc.fromPartial(e??{})},fromPartial(e){let n=Gk();return n.secrets=e.secrets?.map((i)=>cc.fromPartial(i))||void 0,n}};function Jk(){return{}}var cc={encode(e,n=new s){if(e.id!==void 0)n.uint32(10).string(e.id);if(e.rootSecret!==void 0)n.uint32(18).bytes(e.rootSecret);if(e.epoch!==void 0)n.uint32(24).int64(e.epoch);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Jk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.id=i.string();continue}case 2:{if(t!==18)break;a.rootSecret=i.bytes();continue}case 3:{if(t!==24)break;a.epoch=i.int64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return cc.fromPartial(e??{})},fromPartial(e){let n=Jk();return n.id=e.id??void 0,n.rootSecret=e.rootSecret??void 0,n.epoch=e.epoch??void 0,n}};function Qk(){return{}}var fc={encode(e,n=new s){if(e.linkState!==void 0)n.uint32(16).int32(e.linkState);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Qk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 2:{if(t!==16)break;a.linkState=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return fc.fromPartial(e??{})},fromPartial(e){let n=Qk();return n.linkState=e.linkState??void 0,n}};function zk(){return{}}var lc={encode(e,n=new s){if(e.identifier!==void 0)n.uint32(10).string(e.identifier);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=zk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.identifier=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return lc.fromPartial(e??{})},fromPartial(e){let n=zk();return n.identifier=e.identifier??void 0,n}};function Yk(){return{}}var pc={encode(e,n=new s){if(e.blob!==void 0)n.uint32(10).bytes(e.blob);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Yk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.blob=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return pc.fromPartial(e??{})},fromPartial(e){let n=Yk();return n.blob=e.blob??void 0,n}};function Zk(){return{}}var Ce={encode(e,n=new s){if(e.operation!==void 0)n.uint32(8).int32(e.operation);if(e.record!==void 0)ve.encode(e.record,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Zk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.operation=i.int32();continue}case 2:{if(t!==18)break;a.record=ve.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ce.fromPartial(e??{})},fromPartial(e){let n=Zk();return n.operation=e.operation??void 0,n.record=e.record!==void 0&&e.record!==null?ve.fromPartial(e.record):void 0,n}};function Xk(){return{}}var ef={encode(e,n=new s){if(e.mutations!==void 0&&e.mutations.length!==0)for(let i of e.mutations)Ce.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=Xk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.mutations===void 0)a.mutations=[];let o=Ce.decode(i,i.uint32());if(o!==void 0)a.mutations.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ef.fromPartial(e??{})},fromPartial(e){let n=Xk();return n.mutations=e.mutations?.map((i)=>Ce.fromPartial(i))||void 0,n}};function $k(){return{}}var nf={encode(e,n=new s){if(e.version!==void 0)Se.encode(e.version,n.uint32(10).fork()).join();if(e.mutations!==void 0&&e.mutations.length!==0)for(let i of e.mutations)Ce.encode(i,n.uint32(18).fork()).join();if(e.externalMutations!==void 0)Bn.encode(e.externalMutations,n.uint32(26).fork()).join();if(e.snapshotMac!==void 0)n.uint32(34).bytes(e.snapshotMac);if(e.patchMac!==void 0)n.uint32(42).bytes(e.patchMac);if(e.keyId!==void 0)me.encode(e.keyId,n.uint32(50).fork()).join();if(e.exitCode!==void 0)En.encode(e.exitCode,n.uint32(58).fork()).join();if(e.deviceIndex!==void 0)n.uint32(64).uint32(e.deviceIndex);if(e.clientDebugData!==void 0)n.uint32(74).bytes(e.clientDebugData);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=$k();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.version=Se.decode(i,i.uint32());continue}case 2:{if(t!==18)break;if(a.mutations===void 0)a.mutations=[];let o=Ce.decode(i,i.uint32());if(o!==void 0)a.mutations.push(o);continue}case 3:{if(t!==26)break;a.externalMutations=Bn.decode(i,i.uint32());continue}case 4:{if(t!==34)break;a.snapshotMac=i.bytes();continue}case 5:{if(t!==42)break;a.patchMac=i.bytes();continue}case 6:{if(t!==50)break;a.keyId=me.decode(i,i.uint32());continue}case 7:{if(t!==58)break;a.exitCode=En.decode(i,i.uint32());continue}case 8:{if(t!==64)break;a.deviceIndex=i.uint32();continue}case 9:{if(t!==74)break;a.clientDebugData=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return nf.fromPartial(e??{})},fromPartial(e){let n=$k();return n.version=e.version!==void 0&&e.version!==null?Se.fromPartial(e.version):void 0,n.mutations=e.mutations?.map((i)=>Ce.fromPartial(i))||void 0,n.externalMutations=e.externalMutations!==void 0&&e.externalMutations!==null?Bn.fromPartial(e.externalMutations):void 0,n.snapshotMac=e.snapshotMac??void 0,n.patchMac=e.patchMac??void 0,n.keyId=e.keyId!==void 0&&e.keyId!==null?me.fromPartial(e.keyId):void 0,n.exitCode=e.exitCode!==void 0&&e.exitCode!==null?En.fromPartial(e.exitCode):void 0,n.deviceIndex=e.deviceIndex??void 0,n.clientDebugData=e.clientDebugData??void 0,n}};function jk(){return{}}var gc={encode(e,n=new s){if(e.value!==void 0)Cn.encode(e.value,n.uint32(10).fork()).join();if(e.keyId!==void 0)n.uint32(18).bytes(e.keyId);if(e.mac!==void 0)n.uint32(26).bytes(e.mac);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=jk();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.value=Cn.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.keyId=i.bytes();continue}case 3:{if(t!==26)break;a.mac=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return gc.fromPartial(e??{})},fromPartial(e){let n=jk();return n.value=e.value!==void 0&&e.value!==null?Cn.fromPartial(e.value):void 0,n.keyId=e.keyId??void 0,n.mac=e.mac??void 0,n}};function eA(){return{}}var ve={encode(e,n=new s){if(e.index!==void 0)pc.encode(e.index,n.uint32(10).fork()).join();if(e.value!==void 0)yc.encode(e.value,n.uint32(18).fork()).join();if(e.keyId!==void 0)me.encode(e.keyId,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=eA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.index=pc.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.value=yc.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.keyId=me.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ve.fromPartial(e??{})},fromPartial(e){let n=eA();return n.index=e.index!==void 0&&e.index!==null?pc.fromPartial(e.index):void 0,n.value=e.value!==void 0&&e.value!==null?yc.fromPartial(e.value):void 0,n.keyId=e.keyId!==void 0&&e.keyId!==null?me.fromPartial(e.keyId):void 0,n}};function nA(){return{}}var tf={encode(e,n=new s){if(e.version!==void 0)Se.encode(e.version,n.uint32(10).fork()).join();if(e.records!==void 0&&e.records.length!==0)for(let i of e.records)ve.encode(i,n.uint32(18).fork()).join();if(e.mac!==void 0)n.uint32(26).bytes(e.mac);if(e.keyId!==void 0)me.encode(e.keyId,n.uint32(34).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=nA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.version=Se.decode(i,i.uint32());continue}case 2:{if(t!==18)break;if(a.records===void 0)a.records=[];let o=ve.decode(i,i.uint32());if(o!==void 0)a.records.push(o);continue}case 3:{if(t!==26)break;a.mac=i.bytes();continue}case 4:{if(t!==34)break;a.keyId=me.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return tf.fromPartial(e??{})},fromPartial(e){let n=nA();return n.version=e.version!==void 0&&e.version!==null?Se.fromPartial(e.version):void 0,n.records=e.records?.map((i)=>ve.fromPartial(i))||void 0,n.mac=e.mac??void 0,n.keyId=e.keyId!==void 0&&e.keyId!==null?me.fromPartial(e.keyId):void 0,n}};function iA(){return{}}var gR={encode(e,n=new s){if(e.version!==void 0)Se.encode(e.version,n.uint32(10).fork()).join();if(e.collectionName!==void 0)n.uint32(18).string(e.collectionName);if(e.mutationRecords!==void 0&&e.mutationRecords.length!==0)for(let i of e.mutationRecords)gc.encode(i,n.uint32(26).fork()).join();if(e.collectionLthash!==void 0)n.uint32(34).bytes(e.collectionLthash);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=iA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.version=Se.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.collectionName=i.string();continue}case 3:{if(t!==26)break;if(a.mutationRecords===void 0)a.mutationRecords=[];let o=gc.decode(i,i.uint32());if(o!==void 0)a.mutationRecords.push(o);continue}case 4:{if(t!==34)break;a.collectionLthash=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return gR.fromPartial(e??{})},fromPartial(e){let n=iA();return n.version=e.version!==void 0&&e.version!==null?Se.fromPartial(e.version):void 0,n.collectionName=e.collectionName??void 0,n.mutationRecords=e.mutationRecords?.map((i)=>gc.fromPartial(i))||void 0,n.collectionLthash=e.collectionLthash??void 0,n}};function tA(){return{}}var yc={encode(e,n=new s){if(e.blob!==void 0)n.uint32(10).bytes(e.blob);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=tA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.blob=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return yc.fromPartial(e??{})},fromPartial(e){let n=tA();return n.blob=e.blob??void 0,n}};function aA(){return{}}var Se={encode(e,n=new s){if(e.version!==void 0)n.uint32(8).uint64(e.version);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=aA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.version=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Se.fromPartial(e??{})},fromPartial(e){let n=aA();return n.version=e.version??void 0,n}};function rA(){return{}}var Mc={encode(e,n=new s){if(e.title!==void 0)n.uint32(10).string(e.title);if(e.tapUrl!==void 0)n.uint32(18).string(e.tapUrl);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=rA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.title=i.string();continue}case 2:{if(t!==18)break;a.tapUrl=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Mc.fromPartial(e??{})},fromPartial(e){let n=rA();return n.title=e.title??void 0,n.tapUrl=e.tapUrl??void 0,n}};function dA(){return{}}var mc={encode(e,n=new s){if(e.index!==void 0)n.uint32(32).uint32(e.index);if(e.quickReplyButton!==void 0)hc.encode(e.quickReplyButton,n.uint32(10).fork()).join();if(e.urlButton!==void 0)kc.encode(e.urlButton,n.uint32(18).fork()).join();if(e.callButton!==void 0)_c.encode(e.callButton,n.uint32(26).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=dA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 4:{if(t!==32)break;a.index=i.uint32();continue}case 1:{if(t!==10)break;a.quickReplyButton=hc.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.urlButton=kc.decode(i,i.uint32());continue}case 3:{if(t!==26)break;a.callButton=_c.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return mc.fromPartial(e??{})},fromPartial(e){let n=dA();return n.index=e.index??void 0,n.quickReplyButton=e.quickReplyButton!==void 0&&e.quickReplyButton!==null?hc.fromPartial(e.quickReplyButton):void 0,n.urlButton=e.urlButton!==void 0&&e.urlButton!==null?kc.fromPartial(e.urlButton):void 0,n.callButton=e.callButton!==void 0&&e.callButton!==null?_c.fromPartial(e.callButton):void 0,n}};function oA(){return{}}var _c={encode(e,n=new s){if(e.displayText!==void 0)H.encode(e.displayText,n.uint32(10).fork()).join();if(e.phoneNumber!==void 0)H.encode(e.phoneNumber,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=oA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.displayText=H.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.phoneNumber=H.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return _c.fromPartial(e??{})},fromPartial(e){let n=oA();return n.displayText=e.displayText!==void 0&&e.displayText!==null?H.fromPartial(e.displayText):void 0,n.phoneNumber=e.phoneNumber!==void 0&&e.phoneNumber!==null?H.fromPartial(e.phoneNumber):void 0,n}};function sA(){return{}}var hc={encode(e,n=new s){if(e.displayText!==void 0)H.encode(e.displayText,n.uint32(10).fork()).join();if(e.id!==void 0)n.uint32(18).string(e.id);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=sA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.displayText=H.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.id=i.string();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return hc.fromPartial(e??{})},fromPartial(e){let n=sA();return n.displayText=e.displayText!==void 0&&e.displayText!==null?H.fromPartial(e.displayText):void 0,n.id=e.id??void 0,n}};function uA(){return{}}var kc={encode(e,n=new s){if(e.displayText!==void 0)H.encode(e.displayText,n.uint32(10).fork()).join();if(e.url!==void 0)H.encode(e.url,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=uA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.displayText=H.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.url=H.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return kc.fromPartial(e??{})},fromPartial(e){let n=uA();return n.displayText=e.displayText!==void 0&&e.displayText!==null?H.fromPartial(e.displayText):void 0,n.url=e.url!==void 0&&e.url!==null?H.fromPartial(e.url):void 0,n}};function cA(){return{}}var Ac={encode(e,n=new s){if(e.threadType!==void 0)n.uint32(8).int32(e.threadType);if(e.threadKey!==void 0)_.encode(e.threadKey,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=cA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.threadType=i.int32();continue}case 2:{if(t!==18)break;a.threadKey=_.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ac.fromPartial(e??{})},fromPartial(e){let n=cA();return n.threadType=e.threadType??void 0,n.threadKey=e.threadKey!==void 0&&e.threadKey!==null?_.fromPartial(e.threadKey):void 0,n}};function fA(){return{}}var Sc={encode(e,n=new s){if(e.messages!==void 0&&e.messages.length!==0)for(let i of e.messages)G.encode(i,n.uint32(10).fork()).join();if(e.parentMessage!==void 0)_.encode(e.parentMessage,n.uint32(18).fork()).join();if(e.associationType!==void 0)n.uint32(24).int32(e.associationType);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=fA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.messages===void 0)a.messages=[];let o=G.decode(i,i.uint32());if(o!==void 0)a.messages.push(o);continue}case 2:{if(t!==18)break;a.parentMessage=_.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.associationType=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Sc.fromPartial(e??{})},fromPartial(e){let n=fA();return n.messages=e.messages?.map((i)=>G.fromPartial(i))||void 0,n.parentMessage=e.parentMessage!==void 0&&e.parentMessage!==null?_.fromPartial(e.parentMessage):void 0,n.associationType=e.associationType??void 0,n}};function lA(){return{}}var Pc={encode(e,n=new s){if(e.messages!==void 0&&e.messages.length!==0)for(let i of e.messages)ie.encode(i,n.uint32(10).fork()).join();if(e.parentMessage!==void 0)_.encode(e.parentMessage,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=lA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.messages===void 0)a.messages=[];let o=ie.decode(i,i.uint32());if(o!==void 0)a.messages.push(o);continue}case 2:{if(t!==18)break;a.parentMessage=_.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Pc.fromPartial(e??{})},fromPartial(e){let n=lA();return n.messages=e.messages?.map((i)=>ie.fromPartial(i))||void 0,n.parentMessage=e.parentMessage!==void 0&&e.parentMessage!==null?_.fromPartial(e.parentMessage):void 0,n}};function pA(){return{}}var bn={encode(e,n=new s){if(e.urlTrackingMapElements!==void 0&&e.urlTrackingMapElements.length!==0)for(let i of e.urlTrackingMapElements)bc.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=pA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;if(a.urlTrackingMapElements===void 0)a.urlTrackingMapElements=[];let o=bc.decode(i,i.uint32());if(o!==void 0)a.urlTrackingMapElements.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return bn.fromPartial(e??{})},fromPartial(e){let n=pA();return n.urlTrackingMapElements=e.urlTrackingMapElements?.map((i)=>bc.fromPartial(i))||void 0,n}};function gA(){return{}}var bc={encode(e,n=new s){if(e.originalUrl!==void 0)n.uint32(10).string(e.originalUrl);if(e.unconsentedUsersUrl!==void 0)n.uint32(18).string(e.unconsentedUsersUrl);if(e.consentedUsersUrl!==void 0)n.uint32(26).string(e.consentedUsersUrl);if(e.cardIndex!==void 0)n.uint32(32).uint32(e.cardIndex);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=gA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.originalUrl=i.string();continue}case 2:{if(t!==18)break;a.unconsentedUsersUrl=i.string();continue}case 3:{if(t!==26)break;a.consentedUsersUrl=i.string();continue}case 4:{if(t!==32)break;a.cardIndex=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return bc.fromPartial(e??{})},fromPartial(e){let n=gA();return n.originalUrl=e.originalUrl??void 0,n.unconsentedUsersUrl=e.unconsentedUsersUrl??void 0,n.consentedUsersUrl=e.consentedUsersUrl??void 0,n.cardIndex=e.cardIndex??void 0,n}};function yA(){return{}}var Ic={encode(e,n=new s){if(e.encoding!==void 0)n.uint32(8).int32(e.encoding);if(e.transformer!==void 0)n.uint32(16).int32(e.transformer);if(e.transformerArg!==void 0&&e.transformerArg.length!==0)for(let i of e.transformerArg)Rc.encode(i,n.uint32(26).fork()).join();if(e.transformedData!==void 0)n.uint32(34).bytes(e.transformedData);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=yA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.encoding=i.int32();continue}case 2:{if(t!==16)break;a.transformer=i.int32();continue}case 3:{if(t!==26)break;if(a.transformerArg===void 0)a.transformerArg=[];let o=Rc.decode(i,i.uint32());if(o!==void 0)a.transformerArg.push(o);continue}case 4:{if(t!==34)break;a.transformedData=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ic.fromPartial(e??{})},fromPartial(e){let n=yA();return n.encoding=e.encoding??void 0,n.transformer=e.transformer??void 0,n.transformerArg=e.transformerArg?.map((i)=>Rc.fromPartial(i))||void 0,n.transformedData=e.transformedData??void 0,n}};function MA(){return{}}var Rc={encode(e,n=new s){if(e.key!==void 0)n.uint32(10).string(e.key);if(e.value!==void 0)Dc.encode(e.value,n.uint32(18).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=MA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=i.string();continue}case 2:{if(t!==18)break;a.value=Dc.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Rc.fromPartial(e??{})},fromPartial(e){let n=MA();return n.key=e.key??void 0,n.value=e.value!==void 0&&e.value!==null?Dc.fromPartial(e.value):void 0,n}};function mA(){return{}}var Dc={encode(e,n=new s){if(e.asBlob!==void 0)n.uint32(10).bytes(e.asBlob);if(e.asUnsignedInteger!==void 0)n.uint32(16).uint32(e.asUnsignedInteger);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=mA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.asBlob=i.bytes();continue}case 2:{if(t!==16)break;a.asUnsignedInteger=i.uint32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Dc.fromPartial(e??{})},fromPartial(e){let n=mA();return n.asBlob=e.asBlob??void 0,n.asUnsignedInteger=e.asUnsignedInteger??void 0,n}};function _A(){return{}}var Ec={encode(e,n=new s){if(e.userJid!==void 0)n.uint32(10).string(e.userJid);if(e.receiptTimestamp!==void 0)n.uint32(16).int64(e.receiptTimestamp);if(e.readTimestamp!==void 0)n.uint32(24).int64(e.readTimestamp);if(e.playedTimestamp!==void 0)n.uint32(32).int64(e.playedTimestamp);if(e.pendingDeviceJid!==void 0&&e.pendingDeviceJid.length!==0)for(let i of e.pendingDeviceJid)n.uint32(42).string(i);if(e.deliveredDeviceJid!==void 0&&e.deliveredDeviceJid.length!==0)for(let i of e.deliveredDeviceJid)n.uint32(50).string(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=_A();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.userJid=i.string();continue}case 2:{if(t!==16)break;a.receiptTimestamp=i.int64Number();continue}case 3:{if(t!==24)break;a.readTimestamp=i.int64Number();continue}case 4:{if(t!==32)break;a.playedTimestamp=i.int64Number();continue}case 5:{if(t!==42)break;if(a.pendingDeviceJid===void 0)a.pendingDeviceJid=[];let o=i.string();if(o!==void 0)a.pendingDeviceJid.push(o);continue}case 6:{if(t!==50)break;if(a.deliveredDeviceJid===void 0)a.deliveredDeviceJid=[];let o=i.string();if(o!==void 0)a.deliveredDeviceJid.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Ec.fromPartial(e??{})},fromPartial(e){let n=_A();return n.userJid=e.userJid??void 0,n.receiptTimestamp=e.receiptTimestamp??void 0,n.readTimestamp=e.readTimestamp??void 0,n.playedTimestamp=e.playedTimestamp??void 0,n.pendingDeviceJid=e.pendingDeviceJid?.map((i)=>i)||void 0,n.deliveredDeviceJid=e.deliveredDeviceJid?.map((i)=>i)||void 0,n}};function hA(){return{}}var xe={encode(e,n=new s){if(e.details!==void 0)n.uint32(10).bytes(e.details);if(e.signature!==void 0)n.uint32(18).bytes(e.signature);if(e.serverSignature!==void 0)n.uint32(26).bytes(e.serverSignature);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=hA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.details=i.bytes();continue}case 2:{if(t!==18)break;a.signature=i.bytes();continue}case 3:{if(t!==26)break;a.serverSignature=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return xe.fromPartial(e??{})},fromPartial(e){let n=hA();return n.details=e.details??void 0,n.signature=e.signature??void 0,n.serverSignature=e.serverSignature??void 0,n}};function kA(){return{}}var af={encode(e,n=new s){if(e.serial!==void 0)n.uint32(8).uint64(e.serial);if(e.issuer!==void 0)n.uint32(18).string(e.issuer);if(e.verifiedName!==void 0)n.uint32(34).string(e.verifiedName);if(e.localizedNames!==void 0&&e.localizedNames.length!==0)for(let i of e.localizedNames)ar.encode(i,n.uint32(66).fork()).join();if(e.issueTime!==void 0)n.uint32(80).uint64(e.issueTime);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=kA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.serial=i.uint64Number();continue}case 2:{if(t!==18)break;a.issuer=i.string();continue}case 4:{if(t!==34)break;a.verifiedName=i.string();continue}case 8:{if(t!==66)break;if(a.localizedNames===void 0)a.localizedNames=[];let o=ar.decode(i,i.uint32());if(o!==void 0)a.localizedNames.push(o);continue}case 10:{if(t!==80)break;a.issueTime=i.uint64Number();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return af.fromPartial(e??{})},fromPartial(e){let n=kA();return n.serial=e.serial??void 0,n.issuer=e.issuer??void 0,n.verifiedName=e.verifiedName??void 0,n.localizedNames=e.localizedNames?.map((i)=>ar.fromPartial(i))||void 0,n.issueTime=e.issueTime??void 0,n}};function AA(){return{}}var Bc={encode(e,n=new s){if(e.vdId!==void 0)n.uint32(10).bytes(e.vdId);if(e.vdPublicKey!==void 0)n.uint32(18).bytes(e.vdPublicKey);if(e.vdEpochStoragePublicKey!==void 0)n.uint32(26).bytes(e.vdEpochStoragePublicKey);if(e.vdEpochStoragePublicKeySig!==void 0)n.uint32(34).bytes(e.vdEpochStoragePublicKeySig);if(e.ocmfRotationToken!==void 0)n.uint32(42).bytes(e.ocmfRotationToken);if(e.deviceEpochHmac!==void 0)n.uint32(50).bytes(e.deviceEpochHmac);if(e.encryptedSecretValues!==void 0)Da.encode(e.encryptedSecretValues,n.uint32(58).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=AA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.vdId=i.bytes();continue}case 2:{if(t!==18)break;a.vdPublicKey=i.bytes();continue}case 3:{if(t!==26)break;a.vdEpochStoragePublicKey=i.bytes();continue}case 4:{if(t!==34)break;a.vdEpochStoragePublicKeySig=i.bytes();continue}case 5:{if(t!==42)break;a.ocmfRotationToken=i.bytes();continue}case 6:{if(t!==50)break;a.deviceEpochHmac=i.bytes();continue}case 7:{if(t!==58)break;a.encryptedSecretValues=Da.decode(i,i.uint32());continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return Bc.fromPartial(e??{})},fromPartial(e){let n=AA();return n.vdId=e.vdId??void 0,n.vdPublicKey=e.vdPublicKey??void 0,n.vdEpochStoragePublicKey=e.vdEpochStoragePublicKey??void 0,n.vdEpochStoragePublicKeySig=e.vdEpochStoragePublicKeySig??void 0,n.ocmfRotationToken=e.ocmfRotationToken??void 0,n.deviceEpochHmac=e.deviceEpochHmac??void 0,n.encryptedSecretValues=e.encryptedSecretValues!==void 0&&e.encryptedSecretValues!==null?Da.fromPartial(e.encryptedSecretValues):void 0,n}};function SA(){return{}}var pe={encode(e,n=new s){if(e.filename!==void 0)n.uint32(10).string(e.filename);if(e.opacity!==void 0)n.uint32(16).uint32(e.opacity);if(e.isGenAi!==void 0)n.uint32(24).bool(e.isGenAi);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=SA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.filename=i.string();continue}case 2:{if(t!==16)break;a.opacity=i.uint32();continue}case 3:{if(t!==24)break;a.isGenAi=i.bool();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return pe.fromPartial(e??{})},fromPartial(e){let n=SA();return n.filename=e.filename??void 0,n.opacity=e.opacity??void 0,n.isGenAi=e.isGenAi??void 0,n}};function PA(){return{}}var yR={encode(e,n=new s){if(e.labelsDisplay!==void 0)n.uint32(8).int32(e.labelsDisplay);if(e.voipIndividualOutgoing!==void 0)n.uint32(16).int32(e.voipIndividualOutgoing);if(e.groupsV3!==void 0)n.uint32(24).int32(e.groupsV3);if(e.groupsV3Create!==void 0)n.uint32(32).int32(e.groupsV3Create);if(e.changeNumberV2!==void 0)n.uint32(40).int32(e.changeNumberV2);if(e.queryStatusV3Thumbnail!==void 0)n.uint32(48).int32(e.queryStatusV3Thumbnail);if(e.liveLocations!==void 0)n.uint32(56).int32(e.liveLocations);if(e.queryVname!==void 0)n.uint32(64).int32(e.queryVname);if(e.voipIndividualIncoming!==void 0)n.uint32(72).int32(e.voipIndividualIncoming);if(e.quickRepliesQuery!==void 0)n.uint32(80).int32(e.quickRepliesQuery);if(e.payments!==void 0)n.uint32(88).int32(e.payments);if(e.stickerPackQuery!==void 0)n.uint32(96).int32(e.stickerPackQuery);if(e.liveLocationsFinal!==void 0)n.uint32(104).int32(e.liveLocationsFinal);if(e.labelsEdit!==void 0)n.uint32(112).int32(e.labelsEdit);if(e.mediaUpload!==void 0)n.uint32(120).int32(e.mediaUpload);if(e.mediaUploadRichQuickReplies!==void 0)n.uint32(144).int32(e.mediaUploadRichQuickReplies);if(e.vnameV2!==void 0)n.uint32(152).int32(e.vnameV2);if(e.videoPlaybackUrl!==void 0)n.uint32(160).int32(e.videoPlaybackUrl);if(e.statusRanking!==void 0)n.uint32(168).int32(e.statusRanking);if(e.voipIndividualVideo!==void 0)n.uint32(176).int32(e.voipIndividualVideo);if(e.thirdPartyStickers!==void 0)n.uint32(184).int32(e.thirdPartyStickers);if(e.frequentlyForwardedSetting!==void 0)n.uint32(192).int32(e.frequentlyForwardedSetting);if(e.groupsV4JoinPermission!==void 0)n.uint32(200).int32(e.groupsV4JoinPermission);if(e.recentStickers!==void 0)n.uint32(208).int32(e.recentStickers);if(e.catalog!==void 0)n.uint32(216).int32(e.catalog);if(e.starredStickers!==void 0)n.uint32(224).int32(e.starredStickers);if(e.voipGroupCall!==void 0)n.uint32(232).int32(e.voipGroupCall);if(e.templateMessage!==void 0)n.uint32(240).int32(e.templateMessage);if(e.templateMessageInteractivity!==void 0)n.uint32(248).int32(e.templateMessageInteractivity);if(e.ephemeralMessages!==void 0)n.uint32(256).int32(e.ephemeralMessages);if(e.e2ENotificationSync!==void 0)n.uint32(264).int32(e.e2ENotificationSync);if(e.recentStickersV2!==void 0)n.uint32(272).int32(e.recentStickersV2);if(e.recentStickersV3!==void 0)n.uint32(288).int32(e.recentStickersV3);if(e.userNotice!==void 0)n.uint32(296).int32(e.userNotice);if(e.support!==void 0)n.uint32(312).int32(e.support);if(e.groupUiiCleanup!==void 0)n.uint32(320).int32(e.groupUiiCleanup);if(e.groupDogfoodingInternalOnly!==void 0)n.uint32(328).int32(e.groupDogfoodingInternalOnly);if(e.settingsSync!==void 0)n.uint32(336).int32(e.settingsSync);if(e.archiveV2!==void 0)n.uint32(344).int32(e.archiveV2);if(e.ephemeralAllowGroupMembers!==void 0)n.uint32(352).int32(e.ephemeralAllowGroupMembers);if(e.ephemeral24HDuration!==void 0)n.uint32(360).int32(e.ephemeral24HDuration);if(e.mdForceUpgrade!==void 0)n.uint32(368).int32(e.mdForceUpgrade);if(e.disappearingMode!==void 0)n.uint32(376).int32(e.disappearingMode);if(e.externalMdOptInAvailable!==void 0)n.uint32(384).int32(e.externalMdOptInAvailable);if(e.noDeleteMessageTimeLimit!==void 0)n.uint32(392).int32(e.noDeleteMessageTimeLimit);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=PA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==8)break;a.labelsDisplay=i.int32();continue}case 2:{if(t!==16)break;a.voipIndividualOutgoing=i.int32();continue}case 3:{if(t!==24)break;a.groupsV3=i.int32();continue}case 4:{if(t!==32)break;a.groupsV3Create=i.int32();continue}case 5:{if(t!==40)break;a.changeNumberV2=i.int32();continue}case 6:{if(t!==48)break;a.queryStatusV3Thumbnail=i.int32();continue}case 7:{if(t!==56)break;a.liveLocations=i.int32();continue}case 8:{if(t!==64)break;a.queryVname=i.int32();continue}case 9:{if(t!==72)break;a.voipIndividualIncoming=i.int32();continue}case 10:{if(t!==80)break;a.quickRepliesQuery=i.int32();continue}case 11:{if(t!==88)break;a.payments=i.int32();continue}case 12:{if(t!==96)break;a.stickerPackQuery=i.int32();continue}case 13:{if(t!==104)break;a.liveLocationsFinal=i.int32();continue}case 14:{if(t!==112)break;a.labelsEdit=i.int32();continue}case 15:{if(t!==120)break;a.mediaUpload=i.int32();continue}case 18:{if(t!==144)break;a.mediaUploadRichQuickReplies=i.int32();continue}case 19:{if(t!==152)break;a.vnameV2=i.int32();continue}case 20:{if(t!==160)break;a.videoPlaybackUrl=i.int32();continue}case 21:{if(t!==168)break;a.statusRanking=i.int32();continue}case 22:{if(t!==176)break;a.voipIndividualVideo=i.int32();continue}case 23:{if(t!==184)break;a.thirdPartyStickers=i.int32();continue}case 24:{if(t!==192)break;a.frequentlyForwardedSetting=i.int32();continue}case 25:{if(t!==200)break;a.groupsV4JoinPermission=i.int32();continue}case 26:{if(t!==208)break;a.recentStickers=i.int32();continue}case 27:{if(t!==216)break;a.catalog=i.int32();continue}case 28:{if(t!==224)break;a.starredStickers=i.int32();continue}case 29:{if(t!==232)break;a.voipGroupCall=i.int32();continue}case 30:{if(t!==240)break;a.templateMessage=i.int32();continue}case 31:{if(t!==248)break;a.templateMessageInteractivity=i.int32();continue}case 32:{if(t!==256)break;a.ephemeralMessages=i.int32();continue}case 33:{if(t!==264)break;a.e2ENotificationSync=i.int32();continue}case 34:{if(t!==272)break;a.recentStickersV2=i.int32();continue}case 36:{if(t!==288)break;a.recentStickersV3=i.int32();continue}case 37:{if(t!==296)break;a.userNotice=i.int32();continue}case 39:{if(t!==312)break;a.support=i.int32();continue}case 40:{if(t!==320)break;a.groupUiiCleanup=i.int32();continue}case 41:{if(t!==328)break;a.groupDogfoodingInternalOnly=i.int32();continue}case 42:{if(t!==336)break;a.settingsSync=i.int32();continue}case 43:{if(t!==344)break;a.archiveV2=i.int32();continue}case 44:{if(t!==352)break;a.ephemeralAllowGroupMembers=i.int32();continue}case 45:{if(t!==360)break;a.ephemeral24HDuration=i.int32();continue}case 46:{if(t!==368)break;a.mdForceUpgrade=i.int32();continue}case 47:{if(t!==376)break;a.disappearingMode=i.int32();continue}case 48:{if(t!==384)break;a.externalMdOptInAvailable=i.int32();continue}case 49:{if(t!==392)break;a.noDeleteMessageTimeLimit=i.int32();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return yR.fromPartial(e??{})},fromPartial(e){let n=PA();return n.labelsDisplay=e.labelsDisplay??void 0,n.voipIndividualOutgoing=e.voipIndividualOutgoing??void 0,n.groupsV3=e.groupsV3??void 0,n.groupsV3Create=e.groupsV3Create??void 0,n.changeNumberV2=e.changeNumberV2??void 0,n.queryStatusV3Thumbnail=e.queryStatusV3Thumbnail??void 0,n.liveLocations=e.liveLocations??void 0,n.queryVname=e.queryVname??void 0,n.voipIndividualIncoming=e.voipIndividualIncoming??void 0,n.quickRepliesQuery=e.quickRepliesQuery??void 0,n.payments=e.payments??void 0,n.stickerPackQuery=e.stickerPackQuery??void 0,n.liveLocationsFinal=e.liveLocationsFinal??void 0,n.labelsEdit=e.labelsEdit??void 0,n.mediaUpload=e.mediaUpload??void 0,n.mediaUploadRichQuickReplies=e.mediaUploadRichQuickReplies??void 0,n.vnameV2=e.vnameV2??void 0,n.videoPlaybackUrl=e.videoPlaybackUrl??void 0,n.statusRanking=e.statusRanking??void 0,n.voipIndividualVideo=e.voipIndividualVideo??void 0,n.thirdPartyStickers=e.thirdPartyStickers??void 0,n.frequentlyForwardedSetting=e.frequentlyForwardedSetting??void 0,n.groupsV4JoinPermission=e.groupsV4JoinPermission??void 0,n.recentStickers=e.recentStickers??void 0,n.catalog=e.catalog??void 0,n.starredStickers=e.starredStickers??void 0,n.voipGroupCall=e.voipGroupCall??void 0,n.templateMessage=e.templateMessage??void 0,n.templateMessageInteractivity=e.templateMessageInteractivity??void 0,n.ephemeralMessages=e.ephemeralMessages??void 0,n.e2ENotificationSync=e.e2ENotificationSync??void 0,n.recentStickersV2=e.recentStickersV2??void 0,n.recentStickersV3=e.recentStickersV3??void 0,n.userNotice=e.userNotice??void 0,n.support=e.support??void 0,n.groupUiiCleanup=e.groupUiiCleanup??void 0,n.groupDogfoodingInternalOnly=e.groupDogfoodingInternalOnly??void 0,n.settingsSync=e.settingsSync??void 0,n.archiveV2=e.archiveV2??void 0,n.ephemeralAllowGroupMembers=e.ephemeralAllowGroupMembers??void 0,n.ephemeral24HDuration=e.ephemeral24HDuration??void 0,n.mdForceUpgrade=e.mdForceUpgrade??void 0,n.disappearingMode=e.disappearingMode??void 0,n.externalMdOptInAvailable=e.externalMdOptInAvailable??void 0,n.noDeleteMessageTimeLimit=e.noDeleteMessageTimeLimit??void 0,n}};function bA(){return{}}var G={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.message!==void 0)F.encode(e.message,n.uint32(18).fork()).join();if(e.messageTimestamp!==void 0)n.uint32(24).uint64(e.messageTimestamp);if(e.status!==void 0)n.uint32(32).int32(e.status);if(e.participant!==void 0)n.uint32(42).string(e.participant);if(e.messageC2STimestamp!==void 0)n.uint32(48).uint64(e.messageC2STimestamp);if(e.ignore!==void 0)n.uint32(128).bool(e.ignore);if(e.starred!==void 0)n.uint32(136).bool(e.starred);if(e.broadcast!==void 0)n.uint32(144).bool(e.broadcast);if(e.pushName!==void 0)n.uint32(154).string(e.pushName);if(e.mediaCiphertextSha256!==void 0)n.uint32(162).bytes(e.mediaCiphertextSha256);if(e.multicast!==void 0)n.uint32(168).bool(e.multicast);if(e.urlText!==void 0)n.uint32(176).bool(e.urlText);if(e.urlNumber!==void 0)n.uint32(184).bool(e.urlNumber);if(e.messageStubType!==void 0)n.uint32(192).int32(e.messageStubType);if(e.clearMedia!==void 0)n.uint32(200).bool(e.clearMedia);if(e.messageStubParameters!==void 0&&e.messageStubParameters.length!==0)for(let i of e.messageStubParameters)n.uint32(210).string(i);if(e.duration!==void 0)n.uint32(216).uint32(e.duration);if(e.labels!==void 0&&e.labels.length!==0)for(let i of e.labels)n.uint32(226).string(i);if(e.paymentInfo!==void 0)Je.encode(e.paymentInfo,n.uint32(234).fork()).join();if(e.finalLiveLocation!==void 0)ln.encode(e.finalLiveLocation,n.uint32(242).fork()).join();if(e.quotedPaymentInfo!==void 0)Je.encode(e.quotedPaymentInfo,n.uint32(250).fork()).join();if(e.ephemeralStartTimestamp!==void 0)n.uint32(256).uint64(e.ephemeralStartTimestamp);if(e.ephemeralDuration!==void 0)n.uint32(264).uint32(e.ephemeralDuration);if(e.ephemeralOffToOn!==void 0)n.uint32(272).bool(e.ephemeralOffToOn);if(e.ephemeralOutOfSync!==void 0)n.uint32(280).bool(e.ephemeralOutOfSync);if(e.bizPrivacyStatus!==void 0)n.uint32(288).int32(e.bizPrivacyStatus);if(e.verifiedBizName!==void 0)n.uint32(298).string(e.verifiedBizName);if(e.mediaData!==void 0)Ve.encode(e.mediaData,n.uint32(306).fork()).join();if(e.photoChange!==void 0)jo.encode(e.photoChange,n.uint32(314).fork()).join();if(e.userReceipt!==void 0&&e.userReceipt.length!==0)for(let i of e.userReceipt)Ec.encode(i,n.uint32(322).fork()).join();if(e.reactions!==void 0&&e.reactions.length!==0)for(let i of e.reactions)ls.encode(i,n.uint32(330).fork()).join();if(e.quotedStickerData!==void 0)Ve.encode(e.quotedStickerData,n.uint32(338).fork()).join();if(e.futureproofData!==void 0)n.uint32(346).bytes(e.futureproofData);if(e.statusPsa!==void 0)Os.encode(e.statusPsa,n.uint32(354).fork()).join();if(e.pollUpdates!==void 0&&e.pollUpdates.length!==0)for(let i of e.pollUpdates)rs.encode(i,n.uint32(362).fork()).join();if(e.pollAdditionalMetadata!==void 0)is.encode(e.pollAdditionalMetadata,n.uint32(370).fork()).join();if(e.agentId!==void 0)n.uint32(378).string(e.agentId);if(e.statusAlreadyViewed!==void 0)n.uint32(384).bool(e.statusAlreadyViewed);if(e.messageSecret!==void 0)n.uint32(394).bytes(e.messageSecret);if(e.keepInChat!==void 0)er.encode(e.keepInChat,n.uint32(402).fork()).join();if(e.originalSelfAuthorUserJidString!==void 0)n.uint32(410).string(e.originalSelfAuthorUserJidString);if(e.revokeMessageTimestamp!==void 0)n.uint32(416).uint64(e.revokeMessageTimestamp);if(e.pinInChat!==void 0)es.encode(e.pinInChat,n.uint32(434).fork()).join();if(e.premiumMessageInfo!==void 0)ds.encode(e.premiumMessageInfo,n.uint32(442).fork()).join();if(e.is1PBizBotMessage!==void 0)n.uint32(448).bool(e.is1PBizBotMessage);if(e.isGroupHistoryMessage!==void 0)n.uint32(456).bool(e.isGroupHistoryMessage);if(e.botMessageInvokerJid!==void 0)n.uint32(466).string(e.botMessageInvokerJid);if(e.commentMetadata!==void 0)Ot.encode(e.commentMetadata,n.uint32(474).fork()).join();if(e.eventResponses!==void 0&&e.eventResponses.length!==0)for(let i of e.eventResponses)Ca.encode(i,n.uint32(490).fork()).join();if(e.reportingTokenInfo!==void 0)gs.encode(e.reportingTokenInfo,n.uint32(498).fork()).join();if(e.newsletterServerId!==void 0)n.uint32(504).uint64(e.newsletterServerId);if(e.eventAdditionalMetadata!==void 0)Ba.encode(e.eventAdditionalMetadata,n.uint32(514).fork()).join();if(e.isMentionedInStatus!==void 0)n.uint32(520).bool(e.isMentionedInStatus);if(e.statusMentions!==void 0&&e.statusMentions.length!==0)for(let i of e.statusMentions)n.uint32(530).string(i);if(e.targetMessageId!==void 0)_.encode(e.targetMessageId,n.uint32(538).fork()).join();if(e.messageAddOns!==void 0&&e.messageAddOns.length!==0)for(let i of e.messageAddOns)Ho.encode(i,n.uint32(546).fork()).join();if(e.statusMentionMessageInfo!==void 0)Ns.encode(e.statusMentionMessageInfo,n.uint32(554).fork()).join();if(e.isSupportAiMessage!==void 0)n.uint32(560).bool(e.isSupportAiMessage);if(e.statusMentionSources!==void 0&&e.statusMentionSources.length!==0)for(let i of e.statusMentionSources)n.uint32(570).string(i);if(e.supportAiCitations!==void 0&&e.supportAiCitations.length!==0)for(let i of e.supportAiCitations)It.encode(i,n.uint32(578).fork()).join();if(e.botTargetId!==void 0)n.uint32(586).string(e.botTargetId);if(e.groupHistoryIndividualMessageInfo!==void 0)Oa.encode(e.groupHistoryIndividualMessageInfo,n.uint32(594).fork()).join();if(e.groupHistoryBundleInfo!==void 0)Na.encode(e.groupHistoryBundleInfo,n.uint32(602).fork()).join();if(e.interactiveMessageAdditionalMetadata!==void 0)ja.encode(e.interactiveMessageAdditionalMetadata,n.uint32(610).fork()).join();if(e.quarantinedMessage!==void 0)fs.encode(e.quarantinedMessage,n.uint32(618).fork()).join();if(e.nonJidMentions!==void 0)n.uint32(624).uint32(e.nonJidMentions);if(e.hsmTag!==void 0)n.uint32(634).string(e.hsmTag);if(e.ephemeralExpirationTimestamp!==void 0)n.uint32(640).uint64(e.ephemeralExpirationTimestamp);if(e.scheduledMessageMetadata!==void 0)ys.encode(e.scheduledMessageMetadata,n.uint32(650).fork()).join();if(e.decisionId!==void 0)n.uint32(658).string(e.decisionId);if(e.decisionSources!==void 0&&e.decisionSources.length!==0)for(let i of e.decisionSources)n.uint32(666).string(i);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=bA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.message=F.decode(i,i.uint32());continue}case 3:{if(t!==24)break;a.messageTimestamp=i.uint64Number();continue}case 4:{if(t!==32)break;a.status=i.int32();continue}case 5:{if(t!==42)break;a.participant=i.string();continue}case 6:{if(t!==48)break;a.messageC2STimestamp=i.uint64Number();continue}case 16:{if(t!==128)break;a.ignore=i.bool();continue}case 17:{if(t!==136)break;a.starred=i.bool();continue}case 18:{if(t!==144)break;a.broadcast=i.bool();continue}case 19:{if(t!==154)break;a.pushName=i.string();continue}case 20:{if(t!==162)break;a.mediaCiphertextSha256=i.bytes();continue}case 21:{if(t!==168)break;a.multicast=i.bool();continue}case 22:{if(t!==176)break;a.urlText=i.bool();continue}case 23:{if(t!==184)break;a.urlNumber=i.bool();continue}case 24:{if(t!==192)break;a.messageStubType=i.int32();continue}case 25:{if(t!==200)break;a.clearMedia=i.bool();continue}case 26:{if(t!==210)break;if(a.messageStubParameters===void 0)a.messageStubParameters=[];let o=i.string();if(o!==void 0)a.messageStubParameters.push(o);continue}case 27:{if(t!==216)break;a.duration=i.uint32();continue}case 28:{if(t!==226)break;if(a.labels===void 0)a.labels=[];let o=i.string();if(o!==void 0)a.labels.push(o);continue}case 29:{if(t!==234)break;a.paymentInfo=Je.decode(i,i.uint32());continue}case 30:{if(t!==242)break;a.finalLiveLocation=ln.decode(i,i.uint32());continue}case 31:{if(t!==250)break;a.quotedPaymentInfo=Je.decode(i,i.uint32());continue}case 32:{if(t!==256)break;a.ephemeralStartTimestamp=i.uint64Number();continue}case 33:{if(t!==264)break;a.ephemeralDuration=i.uint32();continue}case 34:{if(t!==272)break;a.ephemeralOffToOn=i.bool();continue}case 35:{if(t!==280)break;a.ephemeralOutOfSync=i.bool();continue}case 36:{if(t!==288)break;a.bizPrivacyStatus=i.int32();continue}case 37:{if(t!==298)break;a.verifiedBizName=i.string();continue}case 38:{if(t!==306)break;a.mediaData=Ve.decode(i,i.uint32());continue}case 39:{if(t!==314)break;a.photoChange=jo.decode(i,i.uint32());continue}case 40:{if(t!==322)break;if(a.userReceipt===void 0)a.userReceipt=[];let o=Ec.decode(i,i.uint32());if(o!==void 0)a.userReceipt.push(o);continue}case 41:{if(t!==330)break;if(a.reactions===void 0)a.reactions=[];let o=ls.decode(i,i.uint32());if(o!==void 0)a.reactions.push(o);continue}case 42:{if(t!==338)break;a.quotedStickerData=Ve.decode(i,i.uint32());continue}case 43:{if(t!==346)break;a.futureproofData=i.bytes();continue}case 44:{if(t!==354)break;a.statusPsa=Os.decode(i,i.uint32());continue}case 45:{if(t!==362)break;if(a.pollUpdates===void 0)a.pollUpdates=[];let o=rs.decode(i,i.uint32());if(o!==void 0)a.pollUpdates.push(o);continue}case 46:{if(t!==370)break;a.pollAdditionalMetadata=is.decode(i,i.uint32());continue}case 47:{if(t!==378)break;a.agentId=i.string();continue}case 48:{if(t!==384)break;a.statusAlreadyViewed=i.bool();continue}case 49:{if(t!==394)break;a.messageSecret=i.bytes();continue}case 50:{if(t!==402)break;a.keepInChat=er.decode(i,i.uint32());continue}case 51:{if(t!==410)break;a.originalSelfAuthorUserJidString=i.string();continue}case 52:{if(t!==416)break;a.revokeMessageTimestamp=i.uint64Number();continue}case 54:{if(t!==434)break;a.pinInChat=es.decode(i,i.uint32());continue}case 55:{if(t!==442)break;a.premiumMessageInfo=ds.decode(i,i.uint32());continue}case 56:{if(t!==448)break;a.is1PBizBotMessage=i.bool();continue}case 57:{if(t!==456)break;a.isGroupHistoryMessage=i.bool();continue}case 58:{if(t!==466)break;a.botMessageInvokerJid=i.string();continue}case 59:{if(t!==474)break;a.commentMetadata=Ot.decode(i,i.uint32());continue}case 61:{if(t!==490)break;if(a.eventResponses===void 0)a.eventResponses=[];let o=Ca.decode(i,i.uint32());if(o!==void 0)a.eventResponses.push(o);continue}case 62:{if(t!==498)break;a.reportingTokenInfo=gs.decode(i,i.uint32());continue}case 63:{if(t!==504)break;a.newsletterServerId=i.uint64Number();continue}case 64:{if(t!==514)break;a.eventAdditionalMetadata=Ba.decode(i,i.uint32());continue}case 65:{if(t!==520)break;a.isMentionedInStatus=i.bool();continue}case 66:{if(t!==530)break;if(a.statusMentions===void 0)a.statusMentions=[];let o=i.string();if(o!==void 0)a.statusMentions.push(o);continue}case 67:{if(t!==538)break;a.targetMessageId=_.decode(i,i.uint32());continue}case 68:{if(t!==546)break;if(a.messageAddOns===void 0)a.messageAddOns=[];let o=Ho.decode(i,i.uint32());if(o!==void 0)a.messageAddOns.push(o);continue}case 69:{if(t!==554)break;a.statusMentionMessageInfo=Ns.decode(i,i.uint32());continue}case 70:{if(t!==560)break;a.isSupportAiMessage=i.bool();continue}case 71:{if(t!==570)break;if(a.statusMentionSources===void 0)a.statusMentionSources=[];let o=i.string();if(o!==void 0)a.statusMentionSources.push(o);continue}case 72:{if(t!==578)break;if(a.supportAiCitations===void 0)a.supportAiCitations=[];let o=It.decode(i,i.uint32());if(o!==void 0)a.supportAiCitations.push(o);continue}case 73:{if(t!==586)break;a.botTargetId=i.string();continue}case 74:{if(t!==594)break;a.groupHistoryIndividualMessageInfo=Oa.decode(i,i.uint32());continue}case 75:{if(t!==602)break;a.groupHistoryBundleInfo=Na.decode(i,i.uint32());continue}case 76:{if(t!==610)break;a.interactiveMessageAdditionalMetadata=ja.decode(i,i.uint32());continue}case 77:{if(t!==618)break;a.quarantinedMessage=fs.decode(i,i.uint32());continue}case 78:{if(t!==624)break;a.nonJidMentions=i.uint32();continue}case 79:{if(t!==634)break;a.hsmTag=i.string();continue}case 80:{if(t!==640)break;a.ephemeralExpirationTimestamp=i.uint64Number();continue}case 81:{if(t!==650)break;a.scheduledMessageMetadata=ys.decode(i,i.uint32());continue}case 82:{if(t!==658)break;a.decisionId=i.string();continue}case 83:{if(t!==666)break;if(a.decisionSources===void 0)a.decisionSources=[];let o=i.string();if(o!==void 0)a.decisionSources.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return G.fromPartial(e??{})},fromPartial(e){let n=bA();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.message=e.message!==void 0&&e.message!==null?F.fromPartial(e.message):void 0,n.messageTimestamp=e.messageTimestamp??void 0,n.status=e.status??void 0,n.participant=e.participant??void 0,n.messageC2STimestamp=e.messageC2STimestamp??void 0,n.ignore=e.ignore??void 0,n.starred=e.starred??void 0,n.broadcast=e.broadcast??void 0,n.pushName=e.pushName??void 0,n.mediaCiphertextSha256=e.mediaCiphertextSha256??void 0,n.multicast=e.multicast??void 0,n.urlText=e.urlText??void 0,n.urlNumber=e.urlNumber??void 0,n.messageStubType=e.messageStubType??void 0,n.clearMedia=e.clearMedia??void 0,n.messageStubParameters=e.messageStubParameters?.map((i)=>i)||void 0,n.duration=e.duration??void 0,n.labels=e.labels?.map((i)=>i)||void 0,n.paymentInfo=e.paymentInfo!==void 0&&e.paymentInfo!==null?Je.fromPartial(e.paymentInfo):void 0,n.finalLiveLocation=e.finalLiveLocation!==void 0&&e.finalLiveLocation!==null?ln.fromPartial(e.finalLiveLocation):void 0,n.quotedPaymentInfo=e.quotedPaymentInfo!==void 0&&e.quotedPaymentInfo!==null?Je.fromPartial(e.quotedPaymentInfo):void 0,n.ephemeralStartTimestamp=e.ephemeralStartTimestamp??void 0,n.ephemeralDuration=e.ephemeralDuration??void 0,n.ephemeralOffToOn=e.ephemeralOffToOn??void 0,n.ephemeralOutOfSync=e.ephemeralOutOfSync??void 0,n.bizPrivacyStatus=e.bizPrivacyStatus??void 0,n.verifiedBizName=e.verifiedBizName??void 0,n.mediaData=e.mediaData!==void 0&&e.mediaData!==null?Ve.fromPartial(e.mediaData):void 0,n.photoChange=e.photoChange!==void 0&&e.photoChange!==null?jo.fromPartial(e.photoChange):void 0,n.userReceipt=e.userReceipt?.map((i)=>Ec.fromPartial(i))||void 0,n.reactions=e.reactions?.map((i)=>ls.fromPartial(i))||void 0,n.quotedStickerData=e.quotedStickerData!==void 0&&e.quotedStickerData!==null?Ve.fromPartial(e.quotedStickerData):void 0,n.futureproofData=e.futureproofData??void 0,n.statusPsa=e.statusPsa!==void 0&&e.statusPsa!==null?Os.fromPartial(e.statusPsa):void 0,n.pollUpdates=e.pollUpdates?.map((i)=>rs.fromPartial(i))||void 0,n.pollAdditionalMetadata=e.pollAdditionalMetadata!==void 0&&e.pollAdditionalMetadata!==null?is.fromPartial(e.pollAdditionalMetadata):void 0,n.agentId=e.agentId??void 0,n.statusAlreadyViewed=e.statusAlreadyViewed??void 0,n.messageSecret=e.messageSecret??void 0,n.keepInChat=e.keepInChat!==void 0&&e.keepInChat!==null?er.fromPartial(e.keepInChat):void 0,n.originalSelfAuthorUserJidString=e.originalSelfAuthorUserJidString??void 0,n.revokeMessageTimestamp=e.revokeMessageTimestamp??void 0,n.pinInChat=e.pinInChat!==void 0&&e.pinInChat!==null?es.fromPartial(e.pinInChat):void 0,n.premiumMessageInfo=e.premiumMessageInfo!==void 0&&e.premiumMessageInfo!==null?ds.fromPartial(e.premiumMessageInfo):void 0,n.is1PBizBotMessage=e.is1PBizBotMessage??void 0,n.isGroupHistoryMessage=e.isGroupHistoryMessage??void 0,n.botMessageInvokerJid=e.botMessageInvokerJid??void 0,n.commentMetadata=e.commentMetadata!==void 0&&e.commentMetadata!==null?Ot.fromPartial(e.commentMetadata):void 0,n.eventResponses=e.eventResponses?.map((i)=>Ca.fromPartial(i))||void 0,n.reportingTokenInfo=e.reportingTokenInfo!==void 0&&e.reportingTokenInfo!==null?gs.fromPartial(e.reportingTokenInfo):void 0,n.newsletterServerId=e.newsletterServerId??void 0,n.eventAdditionalMetadata=e.eventAdditionalMetadata!==void 0&&e.eventAdditionalMetadata!==null?Ba.fromPartial(e.eventAdditionalMetadata):void 0,n.isMentionedInStatus=e.isMentionedInStatus??void 0,n.statusMentions=e.statusMentions?.map((i)=>i)||void 0,n.targetMessageId=e.targetMessageId!==void 0&&e.targetMessageId!==null?_.fromPartial(e.targetMessageId):void 0,n.messageAddOns=e.messageAddOns?.map((i)=>Ho.fromPartial(i))||void 0,n.statusMentionMessageInfo=e.statusMentionMessageInfo!==void 0&&e.statusMentionMessageInfo!==null?Ns.fromPartial(e.statusMentionMessageInfo):void 0,n.isSupportAiMessage=e.isSupportAiMessage??void 0,n.statusMentionSources=e.statusMentionSources?.map((i)=>i)||void 0,n.supportAiCitations=e.supportAiCitations?.map((i)=>It.fromPartial(i))||void 0,n.botTargetId=e.botTargetId??void 0,n.groupHistoryIndividualMessageInfo=e.groupHistoryIndividualMessageInfo!==void 0&&e.groupHistoryIndividualMessageInfo!==null?Oa.fromPartial(e.groupHistoryIndividualMessageInfo):void 0,n.groupHistoryBundleInfo=e.groupHistoryBundleInfo!==void 0&&e.groupHistoryBundleInfo!==null?Na.fromPartial(e.groupHistoryBundleInfo):void 0,n.interactiveMessageAdditionalMetadata=e.interactiveMessageAdditionalMetadata!==void 0&&e.interactiveMessageAdditionalMetadata!==null?ja.fromPartial(e.interactiveMessageAdditionalMetadata):void 0,n.quarantinedMessage=e.quarantinedMessage!==void 0&&e.quarantinedMessage!==null?fs.fromPartial(e.quarantinedMessage):void 0,n.nonJidMentions=e.nonJidMentions??void 0,n.hsmTag=e.hsmTag??void 0,n.ephemeralExpirationTimestamp=e.ephemeralExpirationTimestamp??void 0,n.scheduledMessageMetadata=e.scheduledMessageMetadata!==void 0&&e.scheduledMessageMetadata!==null?ys.fromPartial(e.scheduledMessageMetadata):void 0,n.decisionId=e.decisionId??void 0,n.decisionSources=e.decisionSources?.map((i)=>i)||void 0,n}};function IA(){return{}}var ie={encode(e,n=new s){if(e.key!==void 0)_.encode(e.key,n.uint32(10).fork()).join();if(e.messageBytes!==void 0)n.uint32(18).bytes(e.messageBytes);return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=IA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 1:{if(t!==10)break;a.key=_.decode(i,i.uint32());continue}case 2:{if(t!==18)break;a.messageBytes=i.bytes();continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return ie.fromPartial(e??{})},fromPartial(e){let n=IA();return n.key=e.key!==void 0&&e.key!==null?_.fromPartial(e.key):void 0,n.messageBytes=e.messageBytes??void 0,n}};function RA(){return{}}var MR={encode(e,n=new s){if(e.timestamp!==void 0)n.uint32(16).uint64(e.timestamp);if(e.unreadChats!==void 0)n.uint32(24).uint32(e.unreadChats);if(e.notifyMessageCount!==void 0)n.uint32(32).uint32(e.notifyMessageCount);if(e.notifyMessages!==void 0&&e.notifyMessages.length!==0)for(let i of e.notifyMessages)G.encode(i,n.uint32(42).fork()).join();return n},decode(e,n){let i=e instanceof d?e:new d(e),r=n===void 0?i.len:i.pos+n,a=RA();while(i.pos<r){let t=i.uint32();switch(t>>>3){case 2:{if(t!==16)break;a.timestamp=i.uint64Number();continue}case 3:{if(t!==24)break;a.unreadChats=i.uint32();continue}case 4:{if(t!==32)break;a.notifyMessageCount=i.uint32();continue}case 5:{if(t!==42)break;if(a.notifyMessages===void 0)a.notifyMessages=[];let o=G.decode(i,i.uint32());if(o!==void 0)a.notifyMessages.push(o);continue}}if((t&7)===4||t===0)break;i.skip(t&7)}return a},create(e){return MR.fromPartial(e??{})},fromPartial(e){let n=RA();return n.timestamp=e.timestamp??void 0,n.unreadChats=e.unreadChats??void 0,n.notifyMessageCount=e.notifyMessageCount??void 0,n.notifyMessages=e.notifyMessages?.map((i)=>G.fromPartial(i))||void 0,n}};var B1={Message:F,WebMessageInfo:G,HistorySync:zc,SyncActionData:Cn,ClientPayload:Gc,AdvSignedDeviceIdentity:Vc,AdvSignedKeyIndexList:Wc,AdvDeviceIdentity:Fc,AdvSignedDeviceIdentityHmac:Kc,HandshakeMessage:Qc,SyncdRecord:ve,SyncdMutation:Ce,SyncdMutations:ef,SyncdPatch:nf,SyncdSnapshot:tf,ExitCode:En,SyncActionValue:vn,DeviceProps:Jc,SenderKeyDistributionMessage:Xc,SenderKeyMessage:$c,ServerErrorReceipt:jc,CertChain:Hc,"CertChain.NoiseCertificate":Re,"CertChain.NoiseCertificate.Details":qc,ExternalBlobReference:Bn,LidMigrationMappingSyncPayload:Yc,MediaRetryNotification:Zc,VerifiedNameCertificate:xe,"VerifiedNameCertificate.Details":af,"Message.PollVoteMessage":Be,"Message.EventResponseMessage":Ee},C1=Cc;function Af(e){let n=B1[e];if(n)return n;let i=e.replace(/\./g,"_"),r=C1[i];if(r&&typeof r==="object"&&"encode"in r)return r;throw Error(`unknown proto type: ${e}`)}function v1(e){return typeof e==="object"&&e!==null&&typeof e.unsigned==="boolean"&&typeof e.low==="number"&&typeof e.high==="number"}function x1(e){let n=BigInt(e.low>>>0);return(e.unsigned?BigInt(e.high>>>0):BigInt(e.high|0))*4294967296n+n}function rf(e){if(e===null)return;if(v1(e))return x1(e);if(typeof e!=="object")return e;if(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)return e;if(Array.isArray(e)){let a;for(let t=0;t<e.length;t++){let o=rf(e[t]);if(o!==e[t])(a??=e.slice())[t]=o}return a??e}let n=e,i=Object.getPrototypeOf(n);if(i!==Object.prototype&&i!==null){let a={};for(let t of Object.keys(n)){let o=rf(n[t]);if(o!==void 0)a[t]=o}return a}let r;for(let a in n){let t=rf(n[a]);if(t!==n[a])(r??={...n})[a]=t}return r??e}function Sf(e,n){return Af(e).encode(rf(n??{})).finish()}function N1(e,n){return Af(e).decode(n)}var mR=1;function O1(e,n,i){if(i.length<mR)throw RangeError("protobuf batch offsets must contain the leading sentinel");if(i[0]!==0)throw RangeError("protobuf batch offsets must start at zero");let r=i.length-mR;for(let f=0;f<r;f++)if(i[f+1]<i[f])throw RangeError("protobuf batch offsets must be monotonic");if(i[r]!==n.length)throw RangeError("protobuf batch offsets must end at the data length");let a=Af(e),t=new d(n),o=Array(r);for(let f=0;f<r;f++){let y=i[f],p=i[f+1];if(t.pos=y,o[f]=a.decode(t,p-y),t.pos!==p)throw RangeError("protobuf decoder did not consume the delimited entry")}return o}var _R=new TextDecoder,Pf=new TextEncoder;function U1(e,n){let i=Array(Math.max(0,n.length-1));for(let r=0;r+1<n.length;r++)i[r]=_R.decode(e.subarray(n[r],n[r+1]));return i}function T1(e){let n=(r)=>{let a=e[r];if(a===void 0)throw RangeError("packed record references a missing table entry");return a};return{required:n,optional:(r)=>r===0?void 0:n(r-1)}}class hR{table=[];indexByValue=new Map;intern(e){let n=this.indexByValue.get(e);if(n!==void 0)return n;let i=this.table.length;return this.table.push(e),this.indexByValue.set(e,i),i}internOptional(e){return e===void 0?0:this.intern(e)+1}pack(){let e=new TextEncoder,n=this.table.map((t)=>e.encode(t)),i=new Uint32Array(n.length+1),r=0;for(let t=0;t<n.length;t++)r+=n[t].length,i[t+1]=r;let a=new Uint8Array(r);for(let t=0;t<n.length;t++)a.set(n[t],i[t]);return{data:a,offsets:i}}}var Tn=10,kR=0,AR=1,SR=2,PR=3,bR=4,IR=5,RR=6,DR=7,ER=8,BR=9,CR=1,vR=2,xR=4,NR=8,In=24,OR=0,UR=4,TR=8,LR=12,wR=16;function L1(e){return(e.byteOffset+In)%8===0?e:new Uint8Array(e)}function w1(e){let n=L1(e);if(n.byteLength<In)throw RangeError("message wire batch is shorter than its header");let i=new DataView(n.buffer,n.byteOffset,In),r=i.getUint32(OR,!0),a=i.getUint32(UR,!0),t=i.getUint32(TR,!0),o=i.getUint32(LR,!0),f=i.getUint32(wR,!0);if(f!==Tn)throw RangeError(`message wire batch record width ${f} does not match the expected ${Tn}`);let y=r*f*8,p=(r+1)*4,k=(a+1)*4,x=In+y+p+k+t+o;if(n.byteLength<x)throw RangeError(`message wire batch is truncated: ${n.byteLength} bytes, expected ${x}`);let E=In,P=new Float64Array(n.buffer,n.byteOffset+E,r*f);E+=y;let R=new Uint32Array(n.buffer,n.byteOffset+E,r+1);E+=p;let V=new Uint32Array(n.buffer,n.byteOffset+E,a+1);E+=k;let B=n.subarray(E,E+t);E+=t;let K=n.subarray(E,E+o),{required:Pe,optional:be}=T1(U1(K,V)),Oe=Array(r);for(let Ie=0;Ie<r;Ie++){let T=Ie*f,xn=P[T+DR];Oe[Ie]={chat:Pe(P[T+kR]),sender:Pe(P[T+AR]),senderAlt:be(P[T+SR]),recipientAlt:be(P[T+PR]),isFromMe:(xn&CR)!==0,isGroup:(xn&vR)!==0,id:Pe(P[T+bR]),timestamp:P[T+RR],pushName:Pe(P[T+IR]),isViewOnce:(xn&xR)!==0,isOffline:(xn&NR)!==0,unavailableRequestId:be(P[T+ER]),edit:be(P[T+BR])}}return{messageData:B,messageOffsets:R,infos:Oe}}function F1(e){let n=new hR,i=new Float64Array(e.length*Tn),r=new Uint32Array(e.length+1),a=0;for(let x=0;x<e.length;x++){let{payload:E,info:P}=e[x];a+=E.byteLength,r[x+1]=a;let R=x*Tn;i[R+kR]=n.intern(P.chat),i[R+AR]=n.intern(P.sender),i[R+SR]=n.internOptional(P.senderAlt),i[R+PR]=n.internOptional(P.recipientAlt),i[R+bR]=n.intern(P.id),i[R+IR]=n.intern(P.pushName),i[R+RR]=P.timestamp,i[R+DR]=(P.isFromMe?CR:0)|(P.isGroup?vR:0)|(P.isViewOnce?xR:0)|(P.isOffline?NR:0),i[R+ER]=n.internOptional(P.unavailableRequestId),i[R+BR]=n.internOptional(P.edit)}let{data:t,offsets:o}=n.pack(),f=In+i.byteLength+r.byteLength+o.byteLength+a+t.byteLength,y=new Uint8Array(f),p=new DataView(y.buffer,0,In);p.setUint32(OR,e.length,!0),p.setUint32(UR,Math.max(0,o.length-1),!0),p.setUint32(TR,a,!0),p.setUint32(LR,t.byteLength,!0),p.setUint32(wR,Tn,!0);let k=In;y.set(new Uint8Array(i.buffer,i.byteOffset,i.byteLength),k),k+=i.byteLength,y.set(new Uint8Array(r.buffer,r.byteOffset,r.byteLength),k),k+=r.byteLength,y.set(new Uint8Array(o.buffer,o.byteOffset,o.byteLength),k),k+=o.byteLength;for(let{payload:x}of e)y.set(x,k),k+=x.byteLength;return y.set(t,k),y}var df=20,FR=1,V1=100,VR=1,KR=2,WR=4,HR=8;class bf{strings=[];jids=[];view;bytes;cursor=0;inlineCursor=0;region="";begin(e){if(this.bytes=e,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),e.byteLength<df)throw RangeError("packed batch is shorter than its header");let n=this.view.getUint32(0,!0),i=this.view.getUint32(4,!0),r=this.view.getUint32(8,!0),a=this.view.getUint32(12,!0);if((this.view.getUint32(16,!0)&FR)!==0)this.strings.length=0,this.jids.length=0;let o=df,f=o;o+=i*4;let y=o;o+=r*11;let p=o,k=e.byteLength-a;if(k<p)throw RangeError("packed batch regions overlap");this.region=a===0?"":this.decodeRegion(k,a),this.inlineCursor=0;for(let x=0;x<i;x++){let E=f+x*4,P=this.view.getUint16(E,!0),R=this.view.getUint16(E+2,!0);this.strings[P]=this.region.substring(this.inlineCursor,this.inlineCursor+=R)}for(let x=0;x<r;x++){let E=y+x*11,P=this.view.getUint16(E,!0),R=this.strings[this.view.getUint16(E+2,!0)],V=this.strings[this.view.getUint16(E+4,!0)];if(R===void 0||V===void 0)throw RangeError("packed jid references a missing string slot");this.jids[P]=Object.freeze({user:R,server:V,agent:this.view.getUint8(E+6),device:this.view.getUint16(E+7,!0),integrator:this.view.getUint16(E+9,!0)})}return this.cursor=p,n}decodeRegion(e,n){if(n>=V1)return _R.decode(this.bytes.subarray(e,e+n));let i="",r=e,a=e+(n/4|0)*4;while(r<a){let t=this.view.getUint32(r,!0);i+=String.fromCharCode(t&255,t>>8&255,t>>16&255,t>>>24),r+=4}while(r<e+n)i+=String.fromCharCode(this.view.getUint8(r++));return i}u8(){return this.view.getUint8(this.cursor++)}f64(){let e=this.view.getFloat64(this.cursor,!0);return this.cursor+=8,e}inline(){let e=this.view.getUint16(this.cursor,!0);return this.cursor+=2,this.region.substring(this.inlineCursor,this.inlineCursor+=e)}slot(){let e=this.view.getUint16(this.cursor,!0);return this.cursor+=2,e}str(){let e=this.strings[this.slot()];if(e===void 0)throw RangeError("packed record references a missing string slot");return e}strOptional(){let e=this.slot();if(e===0)return;let n=this.strings[e-1];if(n===void 0)throw RangeError("packed record references a missing string slot");return n}jid(){let e=this.jids[this.slot()];if(e===void 0)throw RangeError("packed record references a missing jid slot");return e}jidOptional(){let e=this.slot();if(e===0)return;let n=this.jids[e-1];if(n===void 0)throw RangeError("packed record references a missing jid slot");return n}}var re=new bf,Un=new bf;function K1(e){let n=re.begin(e),i=Array(n);for(let r=0;r<n;r++){let a=re.u8(),t=re.jid(),o=re.jid(),f=re.jidOptional(),y=re.jidOptional(),p=re.jidOptional(),k=re.jidOptional(),x=re.strOptional(),E=re.str(),P=re.f64(),R=re.u8(),V=Array(R);for(let B=0;B<R;B++)V[B]=re.inline();i[r]={source:{chat:t,sender:o,is_from_me:(a&VR)!==0,is_group:(a&KR)!==0,addressing_mode:x,sender_alt:f,recipient_alt:y,broadcast_list_owner:p,recipient:k},message_ids:V,timestamp:P,type:(a&HR)!==0?{Other:E}:E,offline:(a&WR)!==0}}return i}function W1(e){let n=Un.begin(e),i=Array(n);for(let r=0;r<n;r++){let a=Un.strOptional(),t=Un.jidOptional(),o=Un.strOptional(),f=Un.f64();i[r]={id:Un.inline(),class:a,from:t,timestamp:Number.isNaN(f)?void 0:f,error:o}}return i}class If{stringSlots=new Map;jidSlots=new Map;newStrings=[];newJids=[];records=[];definitions=[];inline=[];recordCount=0;cacheStr(e){let n=this.stringSlots.get(e);if(n!==void 0)return n;let i=this.stringSlots.size;return this.stringSlots.set(e,i),this.newStrings.push([i,Pf.encode(e).length]),this.definitions.push(e),i}cacheStrOptional(e){return e===void 0?0:this.cacheStr(e)+1}cacheJid(e){let n=[e.user,e.server,e.agent,e.device,e.integrator].join(" "),i=this.jidSlots.get(n);if(i!==void 0)return i;let r=this.cacheStr(e.user),a=this.cacheStr(e.server),t=this.jidSlots.size;return this.jidSlots.set(n,t),this.newJids.push([t,r,a,e.agent,e.device,e.integrator]),t}cacheJidOptional(e){return e===void 0?0:this.cacheJid(e)+1}u8(e){this.records.push(e&255)}slot(e){this.records.push(e&255,e>>8&255)}f64(e){let n=new DataView(new ArrayBuffer(8));n.setFloat64(0,e,!0);for(let i=0;i<8;i++)this.records.push(n.getUint8(i))}writeInline(e){let n=Pf.encode(e).length;this.records.push(n&255,n>>8&255),this.inline.push(e)}endRecord(){this.recordCount++}finish(){let e=Pf.encode(this.definitions.join("")+this.inline.join("")),n=df+this.newStrings.length*4+this.newJids.length*11+this.records.length+e.length,i=new Uint8Array(n),r=new DataView(i.buffer);r.setUint32(0,this.recordCount,!0),r.setUint32(4,this.newStrings.length,!0),r.setUint32(8,this.newJids.length,!0),r.setUint32(12,e.length,!0),r.setUint32(16,FR,!0);let a=df;for(let[t,o]of this.newStrings)r.setUint16(a,t,!0),r.setUint16(a+2,o,!0),a+=4;for(let[t,o,f,y,p,k]of this.newJids)r.setUint16(a,t,!0),r.setUint16(a+2,o,!0),r.setUint16(a+4,f,!0),r.setUint8(a+6,y),r.setUint16(a+7,p,!0),r.setUint16(a+9,k,!0),a+=11;return i.set(this.records,a),a+=this.records.length,i.set(e,a),i}}function H1(e){let n=new If;for(let i of e){let r=typeof i.type!=="string",a=n.cacheJid(i.source.chat),t=n.cacheJid(i.source.sender),o=n.cacheJidOptional(i.source.sender_alt),f=n.cacheJidOptional(i.source.recipient_alt),y=n.cacheJidOptional(i.source.broadcast_list_owner),p=n.cacheJidOptional(i.source.recipient),k=n.cacheStrOptional(i.source.addressing_mode),x=n.cacheStr(typeof i.type==="string"?i.type:i.type.Other);n.u8((i.source.is_from_me?VR:0)|(i.source.is_group?KR:0)|(i.offline?WR:0)|(r?HR:0));for(let E of[a,t,o,f,y,p,k,x])n.slot(E);n.f64(i.timestamp),n.u8(i.message_ids.length);for(let E of i.message_ids)n.writeInline(E);n.endRecord()}return n.finish()}function q1(e){let n=new If;for(let i of e)n.slot(n.cacheStrOptional(i.class)),n.slot(n.cacheJidOptional(i.from)),n.slot(n.cacheStrOptional(i.error)),n.f64(i.timestamp??Number.NaN),n.writeInline(i.id),n.endRecord();return n.finish()}var Df=(e)=>typeof e==="object"&&e!==null&&typeof e.encode==="function"&&typeof e.decode==="function",GR=(e)=>typeof e==="object"&&e!==null&&!Df(e);function G1(){return this}var qR=(e)=>{if(e&&typeof e==="object"&&!("toJSON"in e))Object.defineProperty(e,"toJSON",{value:G1,enumerable:!1,writable:!0,configurable:!0})},J1=(e,n)=>({encode(i){return{finish(){return Sf(e,i)}}},decode(i,r){let a=i instanceof d?i:new d(i instanceof Uint8Array?i:ArrayBuffer.isView(i)?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i)),t=n.decode(a,r);return qR(t),t},create(i){return i||{}},fromObject(i){if(i&&typeof i==="object")qR(i);return i||{}},toObject(i){return i},fromPartial:n.fromPartial?.bind(n)??((i)=>i||{})}),Q1=()=>({create(e){return e||{}},fromObject(e){return e||{}}}),Rf="_",z1=".",Y1="protobufPackage",Z1={ADVKeyIndexList:"ADVSignedKeyIndexList"},X1=["Message","WebMessageInfo","ContextInfo","SyncActionValue"],$1=(e,n)=>e!==Y1&&!e.startsWith(Rf)&&typeof n!=="function"&&(Df(n)||GR(n)),j1=(e)=>{let n=e.at(0);return n!==void 0&&n===n.toUpperCase()&&n!==n.toLowerCase()},eD=(e)=>new Proxy(e,{get(n,i,r){let a=Reflect.get(n,i,r);if(a!==void 0||typeof i!=="string"||!j1(i))return a;let t=Q1();return Reflect.set(n,i,t),t}}),nD=()=>{let e={};for(let[n,i]of Object.entries(Cc)){if(!$1(n,i))continue;let r=n.split(Rf),a=r.pop(),t=e;for(let o of r)t[o]??={},t=t[o];if(Df(i)){let o=J1(n.replaceAll(Rf,z1),i);t[a]=Object.assign(o,t[a]??{})}else if(GR(i))t[a]=Object.assign({},t[a]??{},i)}for(let[n,i]of Object.entries(Z1))if(e[i]&&!e[n])e[n]=e[i];for(let n of X1)if(e[n])e[n]=eD(e[n]);return e},iD=nD();var aD=new URL("whatsapp_rust_bridge_bg.wasm",import.meta.url),rD=tD(aD);Nf({module:rD});var nE=xf,iE=vf;export{d as BinaryReader,sf as IntoUnderlyingByteSource,uf as IntoUnderlyingSink,Wn as IntoUnderlyingSource,Tn as MESSAGE_WIRE_INFO_RECORD_WIDTH,Hn as WasmWhatsAppClient,oD as beginWasmAllocationProfile,sD as calculateAgreement,uD as calculateSignature,iE as createWhatsAppClient,w1 as decodeMessageWireBatch,N1 as decodeProto,O1 as decodeProtoBatch,K1 as decodeReceiptWireBatch,cD as decodeSenderKeyRecordComponents,W1 as decodeServerAckWireBatch,fD as decodeSessionRecordComponents,lD as decryptEventResponsePayload,pD as decryptPollVote,gD as decryptPollVotePayload,F1 as encodeMessageWireBatch,Sf as encodeProto,H1 as encodeReceiptWireBatch,yD as encodeSenderKeyRecordComponents,q1 as encodeServerAckWireBatch,MD as encodeSessionRecordComponents,mD as generateKeyPair,_D as getEnabledFeatures,hD as getPublicFromPrivateKey,kD as getWasmAllocationSnapshot,AD as getWasmMemoryBytes,SD as hasLogger,PD as hkdf,bD as importLegacySessionRecordV1,ID as inflateZlib,Nf as initSync,nE as initWasmEngine,RD as logMessage,DD as md5,ED as projectLegacySessionRecordV1,iD as proto,BD as setLogger,CD as updateLogger,vD as verifySignature};
1
+ var oR=Object.defineProperty;var bR=($)=>$;function iR($,K){this[$]=bR.bind(null,K)}var mR=($,K)=>{for(var Q in K)oR($,Q,{get:K[Q],enumerable:!0,configurable:!0,set:iR.bind(K,Q)})};import{readFileSync as eB}from"node:fs";class J6{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,QB.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingbytesource_free($,0)}get autoAllocateChunkSize(){return z.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let $=this.__destroy_into_raw();z.intounderlyingbytesource_cancel($)}pull($){let K=z.intounderlyingbytesource_pull(this.__wbg_ptr,B($));return D(K)}start($){z.intounderlyingbytesource_start(this.__wbg_ptr,B($))}get type(){let $=z.intounderlyingbytesource_type(this.__wbg_ptr);return KB[$]}}if(Symbol.dispose)J6.prototype[Symbol.dispose]=J6.prototype.free;class X6{__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,ZB.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsink_free($,0)}abort($){let K=this.__destroy_into_raw(),Q=z.intounderlyingsink_abort(K,B($));return D(Q)}close(){let $=this.__destroy_into_raw(),K=z.intounderlyingsink_close($);return D(K)}write($){let K=z.intounderlyingsink_write(this.__wbg_ptr,B($));return D(K)}}if(Symbol.dispose)X6.prototype[Symbol.dispose]=X6.prototype.free;class n${static __wrap($){let K=Object.create(n$.prototype);return K.__wbg_ptr=$,A6.register(K,K.__wbg_ptr,K),K}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,A6.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_intounderlyingsource_free($,0)}cancel(){let $=this.__destroy_into_raw();z.intounderlyingsource_cancel($)}pull($){let K=z.intounderlyingsource_pull(this.__wbg_ptr,B($));return D(K)}}if(Symbol.dispose)n$.prototype[Symbol.dispose]=n$.prototype.free;class d${static __wrap($){let K=Object.create(d$.prototype);return K.__wbg_ptr=$,E6.register(K,K.__wbg_ptr,K),K}__destroy_into_raw(){let $=this.__wbg_ptr;return this.__wbg_ptr=0,E6.unregister(this),$}free(){let $=this.__destroy_into_raw();z.__wbg_wasmwhatsappclient_free($,0)}acknowledgeStanza($){let K=z.wasmwhatsappclient_acknowledgeStanza(this.__wbg_ptr,B($));return D(K)}addLidPnMappings($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_addLidPnMappings(this.__wbg_ptr,K,Q);return D(X)}archiveChat($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_archiveChat(this.__wbg_ptr,Q,X,K);return D(J)}assertSessions($,K){let Q=g($,z.__wbindgen_export),X=U,J=z.wasmwhatsappclient_assertSessions(this.__wbg_ptr,Q,X,K);return D(J)}clearChat($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=z.wasmwhatsappclient_clearChat(this.__wbg_ptr,X,J,K,Q);return D(Z)}communityFetchAllParticipating(){let $=z.wasmwhatsappclient_communityFetchAllParticipating(this.__wbg_ptr);return D($)}communityParticipantsUpdate($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_communityParticipantsUpdate(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}connect(){let $=z.wasmwhatsappclient_connect(this.__wbg_ptr);return D($)}createCommunity($,K,Q,X,J){let Z=k($,z.__wbindgen_export,z.__wbindgen_export2),Y=U;var G=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),L=U;let C=z.wasmwhatsappclient_createCommunity(this.__wbg_ptr,Z,Y,G,L,Q,X,J);return D(C)}createCommunitySubgroup($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=z.wasmwhatsappclient_createCommunitySubgroup(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}createGroup($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=g(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_createGroup(this.__wbg_ptr,Q,X,J,Z);return D(Y)}createParticipantNodesBytes($,K,Q){let X=g($,z.__wbindgen_export),J=U,Z=u(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_createParticipantNodesBytes(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}createPoll($,K,Q,X){let J=k($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=k(K,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=g(Q,z.__wbindgen_export),C=U,N=z.wasmwhatsappclient_createPoll(this.__wbg_ptr,J,Z,Y,G,L,C,X);return D(N)}deactivateCommunity($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_deactivateCommunity(this.__wbg_ptr,K,Q);return D(X)}deleteChat($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_deleteChat(this.__wbg_ptr,K,Q);return D(X)}deleteMessageForMe($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=z.wasmwhatsappclient_deleteMessageForMe(this.__wbg_ptr,X,J,Z,Y,Q);return D(G)}disconnect(){let $=z.wasmwhatsappclient_disconnect(this.__wbg_ptr);return D($)}downloadMedia($,K,Q,X,J,Z){let Y=k($,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=u(K,z.__wbindgen_export),C=U,N=u(Q,z.__wbindgen_export),y=U,I=u(X,z.__wbindgen_export),O=U,M=z.wasmwhatsappclient_downloadMedia(this.__wbg_ptr,Y,G,L,C,N,y,I,O,J,B(Z));return D(M)}downloadMediaStream($,K,Q,X,J,Z){try{let C=z.__wbindgen_add_to_stack_pointer(-16),N=k($,z.__wbindgen_export,z.__wbindgen_export2),y=U,I=u(K,z.__wbindgen_export),O=U,M=u(Q,z.__wbindgen_export),n=U,S=u(X,z.__wbindgen_export),d=U;z.wasmwhatsappclient_downloadMediaStream(C,this.__wbg_ptr,N,y,I,O,M,n,S,d,J,B(Z));var Y=T().getInt32(C+0,!0),G=T().getInt32(C+4,!0),L=T().getInt32(C+8,!0);if(L)throw D(G);return D(Y)}finally{z.__wbindgen_add_to_stack_pointer(16)}}editMessageBytes($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=u(Q,z.__wbindgen_export),L=U,C=z.wasmwhatsappclient_editMessageBytes(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}encryptMediaStream($,K,Q){let X=z.wasmwhatsappclient_encryptMediaStream(this.__wbg_ptr,B($),B(K),B(Q));return D(X)}ensurePreKeys(){let $=z.wasmwhatsappclient_ensurePreKeys(this.__wbg_ptr);return D($)}fetchBlocklist(){let $=z.wasmwhatsappclient_fetchBlocklist(this.__wbg_ptr);return D($)}fetchMessageHistory($,K,Q,X,J){let Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=z.wasmwhatsappclient_fetchMessageHistory(this.__wbg_ptr,$,Z,Y,G,L,X,J);return D(C)}fetchPrivacySettings(){let $=z.wasmwhatsappclient_fetchPrivacySettings(this.__wbg_ptr);return D($)}fetchReachoutTimelock(){let $=z.wasmwhatsappclient_fetchReachoutTimelock(this.__wbg_ptr);return D($)}fetchStatus($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_fetchStatus(this.__wbg_ptr,K,Q);return D(X)}fetchUserInfo($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_fetchUserInfo(this.__wbg_ptr,K,Q);return D(X)}getAccount(){let $=z.wasmwhatsappclient_getAccount(this.__wbg_ptr);return D($)}getBusinessProfile($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_getBusinessProfile(this.__wbg_ptr,K,Q);return D(X)}getCommunitySubgroups($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_getCommunitySubgroups(this.__wbg_ptr,K,Q);return D(X)}getCoreAllocationSnapshot(){let $=z.wasmwhatsappclient_getCoreAllocationSnapshot(this.__wbg_ptr);return D($)}getGroupMetadata($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_getGroupMetadata(this.__wbg_ptr,K,Q);return D(X)}getJid(){let $=z.wasmwhatsappclient_getJid(this.__wbg_ptr);return D($)}getLid(){let $=z.wasmwhatsappclient_getLid(this.__wbg_ptr);return D($)}getMediaConn($){let K=z.wasmwhatsappclient_getMediaConn(this.__wbg_ptr,$);return D(K)}getMemoryDiagnostics(){let $=z.wasmwhatsappclient_getMemoryDiagnostics(this.__wbg_ptr);return D($)}getPushName(){let $=z.wasmwhatsappclient_getPushName(this.__wbg_ptr);return D($)}getUSyncDevices($,K,Q){let X=g($,z.__wbindgen_export),J=U,Z=z.wasmwhatsappclient_getUSyncDevices(this.__wbg_ptr,X,J,K,Q);return D(Z)}groupAcceptInvite($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupAcceptInvite(this.__wbg_ptr,K,Q);return D(X)}groupAcceptInviteV4($,K,Q,X){let J=k($,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=k(K,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=k(X,z.__wbindgen_export,z.__wbindgen_export2),C=U,N=z.wasmwhatsappclient_groupAcceptInviteV4(this.__wbg_ptr,J,Z,Y,G,Q,L,C);return D(N)}groupFetchAllParticipating(){let $=z.wasmwhatsappclient_groupFetchAllParticipating(this.__wbg_ptr);return D($)}groupGetInviteInfo($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupGetInviteInfo(this.__wbg_ptr,K,Q);return D(X)}groupInviteCode($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupInviteCode(this.__wbg_ptr,K,Q);return D(X)}groupLeave($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupLeave(this.__wbg_ptr,K,Q);return D(X)}groupMemberAddMode($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_groupMemberAddMode(this.__wbg_ptr,Q,X,B(K));return D(J)}groupParticipantsUpdate($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_groupParticipantsUpdate(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}groupRequestParticipantsList($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupRequestParticipantsList(this.__wbg_ptr,K,Q);return D(X)}groupRequestParticipantsUpdate($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_groupRequestParticipantsUpdate(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}groupRevokeInvite($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_groupRevokeInvite(this.__wbg_ptr,K,Q);return D(X)}groupRevokeInviteV4($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_groupRevokeInviteV4(this.__wbg_ptr,Q,X,J,Z);return D(Y)}groupSettingUpdate($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=z.wasmwhatsappclient_groupSettingUpdate(this.__wbg_ptr,X,J,B(K),Q);return D(Z)}groupToggleEphemeral($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_groupToggleEphemeral(this.__wbg_ptr,Q,X,K);return D(J)}groupUpdateDescription($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var J=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U;let Y=z.wasmwhatsappclient_groupUpdateDescription(this.__wbg_ptr,Q,X,J,Z);return D(Y)}groupUpdateSubject($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_groupUpdateSubject(this.__wbg_ptr,Q,X,J,Z);return D(Y)}isConnected(){return z.wasmwhatsappclient_isConnected(this.__wbg_ptr)!==0}isLoggedIn(){return z.wasmwhatsappclient_isLoggedIn(this.__wbg_ptr)!==0}isOnWhatsApp($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_isOnWhatsApp(this.__wbg_ptr,K,Q);return D(X)}jidToSignalProtocolAddress($){let K,Q;try{let C=z.__wbindgen_add_to_stack_pointer(-16),N=k($,z.__wbindgen_export,z.__wbindgen_export2),y=U;z.wasmwhatsappclient_jidToSignalProtocolAddress(C,this.__wbg_ptr,N,y);var X=T().getInt32(C+0,!0),J=T().getInt32(C+4,!0),Z=T().getInt32(C+8,!0),Y=T().getInt32(C+12,!0),G=X,L=J;if(Y)throw G=0,L=0,D(Z);return K=G,Q=L,X0(G,L)}finally{z.__wbindgen_add_to_stack_pointer(16),z.__wbindgen_export4(K,Q,1)}}lidForPn($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_lidForPn(this.__wbg_ptr,K,Q);return D(X)}linkCommunitySubgroups($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=g(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_linkCommunitySubgroups(this.__wbg_ptr,Q,X,J,Z);return D(Y)}logout(){let $=z.wasmwhatsappclient_logout(this.__wbg_ptr);return D($)}markChatAsRead($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_markChatAsRead(this.__wbg_ptr,Q,X,K);return D(J)}markPlayed($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_markPlayed(this.__wbg_ptr,K,Q);return D(X)}muteChat($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_muteChat(this.__wbg_ptr,Q,X,!j(K),j(K)?0:K);return D(J)}newsletterCreate($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var J=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U;let Y=z.wasmwhatsappclient_newsletterCreate(this.__wbg_ptr,Q,X,J,Z);return D(Y)}newsletterMetadata($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_newsletterMetadata(this.__wbg_ptr,K,Q);return D(X)}newsletterMute($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_newsletterMute(this.__wbg_ptr,Q,X,K);return D(J)}newsletterReactMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U;var G=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U;let C=z.wasmwhatsappclient_newsletterReactMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}newsletterSubscribe($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_newsletterSubscribe(this.__wbg_ptr,K,Q);return D(X)}newsletterUnsubscribe($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_newsletterUnsubscribe(this.__wbg_ptr,K,Q);return D(X)}pinChat($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_pinChat(this.__wbg_ptr,Q,X,K);return D(J)}pnForLid($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_pnForLid(this.__wbg_ptr,K,Q);return D(X)}presenceSubscribe($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_presenceSubscribe(this.__wbg_ptr,K,Q);return D(X)}profilePictureUrl($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=z.wasmwhatsappclient_profilePictureUrl(this.__wbg_ptr,X,J,B(K),!j(Q),j(Q)?0:Q);return D(Z)}queryNode($,K){let Q=z.wasmwhatsappclient_queryNode(this.__wbg_ptr,B($),!j(K),j(K)?0:K);return D(Q)}queryUsync($){let K=z.wasmwhatsappclient_queryUsync(this.__wbg_ptr,B($));return D(K)}readMessages($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_readMessages(this.__wbg_ptr,K,Q);return D(X)}reconnect(){let $=z.wasmwhatsappclient_reconnect(this.__wbg_ptr);return D($)}refreshPreKeys($){let K=z.wasmwhatsappclient_refreshPreKeys(this.__wbg_ptr,j($)?Number.MAX_SAFE_INTEGER:$>>>0);return D(K)}rejectCall($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=z.wasmwhatsappclient_rejectCall(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}rejectStanza($,K,Q){let X=z.wasmwhatsappclient_rejectStanza(this.__wbg_ptr,B($),K,j(Q)?Number.MAX_SAFE_INTEGER:Q>>0);return D(X)}relayMessageBytes($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=u(K,z.__wbindgen_export),Y=U;var G=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U;let C=z.wasmwhatsappclient_relayMessageBytes(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}relayMessageBytesWithOptions($,K,Q,X,J,Z){let Y=k($,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=u(K,z.__wbindgen_export),C=U;var N=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),y=U;let I=z.wasmwhatsappclient_relayMessageBytesWithOptions(this.__wbg_ptr,Y,G,L,C,N,y,B(X),J,Z);return D(I)}removeGroupProfilePicture($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_removeGroupProfilePicture(this.__wbg_ptr,K,Q);return D(X)}removeProfilePicture(){let $=z.wasmwhatsappclient_removeProfilePicture(this.__wbg_ptr);return D($)}requestMediaReupload($,K,Q,X,J){let Z=k($,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=k(K,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=u(Q,z.__wbindgen_export),N=U;var y=j(J)?0:k(J,z.__wbindgen_export,z.__wbindgen_export2),I=U;let O=z.wasmwhatsappclient_requestMediaReupload(this.__wbg_ptr,Z,Y,G,L,C,N,X,y,I);return D(O)}requestMessageRetry($,K){let Q=z.wasmwhatsappclient_requestMessageRetry(this.__wbg_ptr,B($),j(K)?16777215:K?1:0);return D(Q)}requestPairingCode($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U;var J=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U;let Y=z.wasmwhatsappclient_requestPairingCode(this.__wbg_ptr,Q,X,J,Z);return D(Y)}retransmitMessageBytes($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=u(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_retransmitMessageBytes(this.__wbg_ptr,X,J,Z,Y,B(Q));return D(G)}revokeMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U;var G=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U;let C=z.wasmwhatsappclient_revokeMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}rotateSignedKey(){let $=z.wasmwhatsappclient_rotateSignedKey(this.__wbg_ptr);return D($)}run(){try{let Q=z.__wbindgen_add_to_stack_pointer(-16);z.wasmwhatsappclient_run(Q,this.__wbg_ptr);var $=T().getInt32(Q+0,!0),K=T().getInt32(Q+4,!0);if(K)throw D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}saveContact($,K,Q,X){let J=k($,z.__wbindgen_export,z.__wbindgen_export2),Z=U;var Y=j(K)?0:k(K,z.__wbindgen_export,z.__wbindgen_export2),G=U,L=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),C=U;let N=z.wasmwhatsappclient_saveContact(this.__wbg_ptr,J,Z,Y,G,L,C,X);return D(N)}sendChatState($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_sendChatState(this.__wbg_ptr,Q,X,B(K));return D(J)}sendCommentBytes($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=u(Q,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_sendCommentBytes(this.__wbg_ptr,X,J,B(K),Z,Y);return D(G)}sendMessageBytes($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=u(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_sendMessageBytes(this.__wbg_ptr,Q,X,J,Z);return D(Y)}sendNode($){let K=z.wasmwhatsappclient_sendNode(this.__wbg_ptr,B($));return D(K)}sendPresence($){let K=z.wasmwhatsappclient_sendPresence(this.__wbg_ptr,B($));return D(K)}sendRawMessage($){let K=u($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_sendRawMessage(this.__wbg_ptr,K,Q);return D(X)}sendReaction($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U;var Z=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),Y=U;let G=z.wasmwhatsappclient_sendReaction(this.__wbg_ptr,X,J,B(K),Z,Y);return D(G)}sendStatusMessageBytes($,K){let Q=u($,z.__wbindgen_export),X=U,J=g(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_sendStatusMessageBytes(this.__wbg_ptr,Q,X,J,Z);return D(Y)}sendStatusMessageBytesWithOptions($,K,Q,X,J){let Z=u($,z.__wbindgen_export),Y=U,G=g(K,z.__wbindgen_export),L=U;var C=j(Q)?0:k(Q,z.__wbindgen_export,z.__wbindgen_export2),N=U;let y=z.wasmwhatsappclient_sendStatusMessageBytesWithOptions(this.__wbg_ptr,Z,Y,G,L,C,N,B(X),J);return D(y)}setAutoReconnect($){z.wasmwhatsappclient_setAutoReconnect(this.__wbg_ptr,$)}setClientProfile($){let K=z.wasmwhatsappclient_setClientProfile(this.__wbg_ptr,B($));return D(K)}setDeviceProps($){let K=z.wasmwhatsappclient_setDeviceProps(this.__wbg_ptr,B($));return D(K)}setGroupProfilePicture($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=u(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_setGroupProfilePicture(this.__wbg_ptr,Q,X,J,Z);return D(Y)}setInitialPushName($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_setInitialPushName(this.__wbg_ptr,K,Q);return D(X)}setPushName($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_setPushName(this.__wbg_ptr,K,Q);return D(X)}setRawNodeForwarding($){z.wasmwhatsappclient_setRawNodeForwarding(this.__wbg_ptr,$)}signalDecryptGroupMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=u(Q,z.__wbindgen_export),L=U,C=z.wasmwhatsappclient_signalDecryptGroupMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}signalDecryptMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=u(Q,z.__wbindgen_export),L=U,C=z.wasmwhatsappclient_signalDecryptMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}signalDeleteSenderKey($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_signalDeleteSenderKey(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalDeleteSessions($){let K=g($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_signalDeleteSessions(this.__wbg_ptr,K,Q);return D(X)}signalEncryptGroupMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=u(K,z.__wbindgen_export),Y=U,G=k(Q,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=z.wasmwhatsappclient_signalEncryptGroupMessage(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}signalEncryptMessage($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=u(K,z.__wbindgen_export),Z=U,Y=z.wasmwhatsappclient_signalEncryptMessage(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalGetSenderKeyDistribution($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_signalGetSenderKeyDistribution(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalGetSessionInfo($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_signalGetSessionInfo(this.__wbg_ptr,K,Q);return D(X)}signalHasSenderKey($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_signalHasSenderKey(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalInstallPreKeyBundle($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_signalInstallPreKeyBundle(this.__wbg_ptr,Q,X,B(K));return D(J)}signalMigrateSessions($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_signalMigrateSessions(this.__wbg_ptr,Q,X,J,Z);return D(Y)}signalProcessSenderKeyDistribution($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=u(Q,z.__wbindgen_export),L=U,C=z.wasmwhatsappclient_signalProcessSenderKeyDistribution(this.__wbg_ptr,X,J,Z,Y,G,L);return D(C)}signalValidateSession($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_signalValidateSession(this.__wbg_ptr,K,Q);return D(X)}starMessage($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=k(K,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=z.wasmwhatsappclient_starMessage(this.__wbg_ptr,X,J,Z,Y,Q);return D(G)}unlinkCommunitySubgroups($,K,Q){let X=k($,z.__wbindgen_export,z.__wbindgen_export2),J=U,Z=g(K,z.__wbindgen_export),Y=U,G=z.wasmwhatsappclient_unlinkCommunitySubgroups(this.__wbg_ptr,X,J,Z,Y,Q);return D(G)}updateBlockStatus($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=z.wasmwhatsappclient_updateBlockStatus(this.__wbg_ptr,Q,X,B(K));return D(J)}updateDefaultDisappearingMode($){let K=z.wasmwhatsappclient_updateDefaultDisappearingMode(this.__wbg_ptr,$);return D(K)}updateMemberLabel($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_updateMemberLabel(this.__wbg_ptr,Q,X,J,Z);return D(Y)}updatePrivacySetting($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U,Y=z.wasmwhatsappclient_updatePrivacySetting(this.__wbg_ptr,Q,X,J,Z);return D(Y)}updateProfilePicture($){let K=u($,z.__wbindgen_export),Q=U,X=z.wasmwhatsappclient_updateProfilePicture(this.__wbg_ptr,K,Q);return D(X)}updateProfileStatus($){let K=k($,z.__wbindgen_export,z.__wbindgen_export2),Q=U,X=z.wasmwhatsappclient_updateProfileStatus(this.__wbg_ptr,K,Q);return D(X)}uploadEncryptedMediaStream($,K,Q,X,J,Z){let Y=u(K,z.__wbindgen_export),G=U,L=u(Q,z.__wbindgen_export),C=U,N=u(X,z.__wbindgen_export),y=U,I=z.wasmwhatsappclient_uploadEncryptedMediaStream(this.__wbg_ptr,B($),Y,G,L,C,N,y,J,B(Z));return D(I)}uploadMedia($,K){let Q=u($,z.__wbindgen_export),X=U,J=z.wasmwhatsappclient_uploadMedia(this.__wbg_ptr,Q,X,B(K));return D(J)}validateKeyBundle(){let $=z.wasmwhatsappclient_validateKeyBundle(this.__wbg_ptr);return D($)}votePoll($,K,Q,X,J){let Z=k($,z.__wbindgen_export,z.__wbindgen_export2),Y=U,G=k(K,z.__wbindgen_export,z.__wbindgen_export2),L=U,C=k(Q,z.__wbindgen_export,z.__wbindgen_export2),N=U,y=u(X,z.__wbindgen_export),I=U,O=g(J,z.__wbindgen_export),M=U,n=z.wasmwhatsappclient_votePoll(this.__wbg_ptr,Z,Y,G,L,C,N,y,I,O,M);return D(n)}}if(Symbol.dispose)d$.prototype[Symbol.dispose]=d$.prototype.free;function ZO(){z.beginWasmAllocationProfile()}function JO($,K){try{let Z=z.__wbindgen_add_to_stack_pointer(-16),Y=u($,z.__wbindgen_export),G=U,L=u(K,z.__wbindgen_export),C=U;z.calculateAgreement(Z,Y,G,L,C);var Q=T().getInt32(Z+0,!0),X=T().getInt32(Z+4,!0),J=T().getInt32(Z+8,!0);if(J)throw D(X);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function XO($,K){try{let Z=z.__wbindgen_add_to_stack_pointer(-16),Y=u($,z.__wbindgen_export),G=U,L=u(K,z.__wbindgen_export),C=U;z.calculateSignature(Z,Y,G,L,C);var Q=T().getInt32(Z+0,!0),X=T().getInt32(Z+4,!0),J=T().getInt32(Z+8,!0);if(J)throw D(X);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function W6($,K,Q,X,J,Z,Y){let G=z.createWhatsAppClient(B($),B(K),j(Q)?0:B(Q),j(X)?0:B(X),j(J)?0:B(J),j(Z)?0:B(Z),j(Y)?0:B(Y));return D(G)}function qO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16),Z=u($,z.__wbindgen_export),Y=U;z.decodeSenderKeyRecordComponents(J,Z,Y);var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function YO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16),Z=u($,z.__wbindgen_export),Y=U;z.decodeSessionRecordComponents(J,Z,Y);var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function HO($,K,Q,X,J,Z){try{let C=z.__wbindgen_add_to_stack_pointer(-16),N=u($,z.__wbindgen_export),y=U,I=u(K,z.__wbindgen_export),O=U,M=u(Q,z.__wbindgen_export),n=U,S=k(X,z.__wbindgen_export,z.__wbindgen_export2),d=U,B0=k(J,z.__wbindgen_export,z.__wbindgen_export2),O0=U,f0=k(Z,z.__wbindgen_export,z.__wbindgen_export2),A0=U;z.decryptEventResponsePayload(C,N,y,I,O,M,n,S,d,B0,O0,f0,A0);var Y=T().getInt32(C+0,!0),G=T().getInt32(C+4,!0),L=T().getInt32(C+8,!0);if(L)throw D(G);return D(Y)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function zO($,K,Q,X,J,Z,Y){try{let I=z.__wbindgen_add_to_stack_pointer(-16),O=u($,z.__wbindgen_export),M=U,n=u(K,z.__wbindgen_export),S=U,d=u(Q,z.__wbindgen_export),B0=U,O0=k(X,z.__wbindgen_export,z.__wbindgen_export2),f0=U,A0=k(J,z.__wbindgen_export,z.__wbindgen_export2),l=U,v$=k(Z,z.__wbindgen_export,z.__wbindgen_export2),jR=U,cR=g(Y,z.__wbindgen_export),p=U;z.decryptPollVote(I,O,M,n,S,d,B0,O0,f0,A0,l,v$,jR,cR,p);var G=T().getInt32(I+0,!0),L=T().getInt32(I+4,!0),C=T().getInt32(I+8,!0),N=T().getInt32(I+12,!0);if(N)throw D(C);var y=A$(G,L).slice();return z.__wbindgen_export4(G,L*4,4),y}finally{z.__wbindgen_add_to_stack_pointer(16)}}function VO($,K,Q,X,J,Z){try{let C=z.__wbindgen_add_to_stack_pointer(-16),N=u($,z.__wbindgen_export),y=U,I=u(K,z.__wbindgen_export),O=U,M=u(Q,z.__wbindgen_export),n=U,S=k(X,z.__wbindgen_export,z.__wbindgen_export2),d=U,B0=k(J,z.__wbindgen_export,z.__wbindgen_export2),O0=U,f0=k(Z,z.__wbindgen_export,z.__wbindgen_export2),A0=U;z.decryptPollVotePayload(C,N,y,I,O,M,n,S,d,B0,O0,f0,A0);var Y=T().getInt32(C+0,!0),G=T().getInt32(C+4,!0),L=T().getInt32(C+8,!0);if(L)throw D(G);return D(Y)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function GO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSenderKeyRecordComponents(J,B($));var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function UO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16);z.encodeSessionRecordComponents(J,B($));var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function CO(){let $=z.generateKeyPair();return D($)}function DO(){let $=z.getEnabledFeatures();return D($)}function LO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16),Z=u($,z.__wbindgen_export),Y=U;z.getPublicFromPrivateKey(J,Z,Y);var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function PO(){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.getWasmAllocationSnapshot(X);var $=T().getInt32(X+0,!0),K=T().getInt32(X+4,!0),Q=T().getInt32(X+8,!0);if(Q)throw D(K);return D($)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function FO(){return z.getWasmMemoryBytes()}function xO(){return z.hasLogger()!==0}function kO($,K,Q){try{let Y=z.__wbindgen_add_to_stack_pointer(-16),G=u($,z.__wbindgen_export),L=U;z.hkdf(Y,G,L,K,B(Q));var X=T().getInt32(Y+0,!0),J=T().getInt32(Y+4,!0),Z=T().getInt32(Y+8,!0);if(Z)throw D(J);return D(X)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function NO($,K){try{let Z=z.__wbindgen_add_to_stack_pointer(-16);z.importLegacySessionRecordV1(Z,B($),B(K));var Q=T().getInt32(Z+0,!0),X=T().getInt32(Z+4,!0),J=T().getInt32(Z+8,!0);if(J)throw D(X);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function RO($,K){try{let Z=z.__wbindgen_add_to_stack_pointer(-16),Y=u($,z.__wbindgen_export),G=U;z.inflateZlib(Z,Y,G,!j(K),j(K)?0:K);var Q=T().getInt32(Z+0,!0),X=T().getInt32(Z+4,!0),J=T().getInt32(Z+8,!0);if(J)throw D(X);return D(Q)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function I6($,K){z.initWasmEngine(B($),B(K))}function BO($,K){let Q=k($,z.__wbindgen_export,z.__wbindgen_export2),X=U,J=k(K,z.__wbindgen_export,z.__wbindgen_export2),Z=U;z.logMessage(Q,X,J,Z)}function OO($){let K=u($,z.__wbindgen_export),Q=U,X=z.md5(K,Q);return D(X)}function AO($){try{let J=z.__wbindgen_add_to_stack_pointer(-16),Z=u($,z.__wbindgen_export),Y=U;z.projectLegacySessionRecordV1(J,Z,Y);var K=T().getInt32(J+0,!0),Q=T().getInt32(J+4,!0),X=T().getInt32(J+8,!0);if(X)throw D(Q);return D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function EO($){try{let X=z.__wbindgen_add_to_stack_pointer(-16);z.setLogger(X,B($));var K=T().getInt32(X+0,!0),Q=T().getInt32(X+4,!0);if(Q)throw D(K)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function MO($){z.updateLogger(B($))}function WO($,K,Q){try{let Y=z.__wbindgen_add_to_stack_pointer(-16),G=u($,z.__wbindgen_export),L=U,C=u(K,z.__wbindgen_export),N=U,y=u(Q,z.__wbindgen_export),I=U;z.verifySignature(Y,G,L,C,N,y,I);var X=T().getInt32(Y+0,!0),J=T().getInt32(Y+4,!0),Z=T().getInt32(Y+8,!0);if(Z)throw D(J);return X!==0}finally{z.__wbindgen_add_to_stack_pointer(16)}}function gR(){return{__proto__:null,"./whatsapp_rust_bridge_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(K,Q){let X=Error(X0(K,Q));return B(X)},__wbg_Number_9a4e0ecb0fa16705:function(K){return Number(F(K))},__wbg_String_8564e559799eccda:function(K,Q){let X=String(F(Q)),J=k(X,z.__wbindgen_export,z.__wbindgen_export2),Z=U;T().setInt32(K+4,Z,!0),T().setInt32(K+0,J,!0)},__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f:function(K,Q){let X=F(Q),J=typeof X==="bigint"?X:void 0;T().setBigInt64(K+8,j(J)?BigInt(0):J,!0),T().setInt32(K+0,!j(J),!0)},__wbg___wbindgen_boolean_get_fa956cfa2d1bd751:function(K){let Q=F(K),X=typeof Q==="boolean"?Q:void 0;return j(X)?16777215:X?1:0},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(K,Q){let X=q6(F(Q)),J=k(X,z.__wbindgen_export,z.__wbindgen_export2),Z=U;T().setInt32(K+4,Z,!0),T().setInt32(K+0,J,!0)},__wbg___wbindgen_in_aca499c5de7ff5e5:function(K,Q){return F(K)in F(Q)},__wbg___wbindgen_is_bigint_2f76dc55065b4273:function(K){return typeof F(K)==="bigint"},__wbg___wbindgen_is_function_1ff95bcc5517c252:function(K){return typeof F(K)==="function"},__wbg___wbindgen_is_null_ea9085d691f535d3:function(K){return F(K)===null},__wbg___wbindgen_is_object_a27215656b807791:function(K){let Q=F(K);return typeof Q==="object"&&Q!==null},__wbg___wbindgen_is_string_ea5e6cc2e4141dfe:function(K){return typeof F(K)==="string"},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(K){return F(K)===void 0},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(K,Q){return F(K)===F(Q)},__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170:function(K,Q){return F(K)==F(Q)},__wbg___wbindgen_number_get_394265ed1e1b84ee:function(K,Q){let X=F(Q),J=typeof X==="number"?X:void 0;T().setFloat64(K+8,j(J)?0:J,!0),T().setInt32(K+0,!j(J),!0)},__wbg___wbindgen_string_get_b0ca35b86a603356:function(K,Q){let X=F(Q),J=typeof X==="string"?X:void 0;var Z=j(J)?0:k(J,z.__wbindgen_export,z.__wbindgen_export2),Y=U;T().setInt32(K+4,Y,!0),T().setInt32(K+0,Z,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(K,Q){throw Error(X0(K,Q))},__wbg__wbg_cb_unref_fffb441def202758:function(K){F(K)._wbg_cb_unref()},__wbg_apply_3ac86a26fdb56c05:function(){return s(function(K,Q,X){let J=F(K).apply(F(Q),F(X));return B(J)},arguments)},__wbg_bind_ed119fc9a791cb9c:function(K,Q,X,J){let Z=F(K).bind(F(Q),F(X),F(J));return B(Z)},__wbg_buffer_54b87055582c8a81:function(K){let Q=F(K).buffer;return B(Q)},__wbg_byobRequest_06b654bb15590436:function(K){let Q=F(K).byobRequest;return j(Q)?0:B(Q)},__wbg_byteLength_41862ca4020b9c43:function(K){return F(K).byteLength},__wbg_byteOffset_d42e18c4441f628b:function(K){return F(K).byteOffset},__wbg_call_44b7209e1e252e6a:function(){return s(function(K,Q,X,J,Z){let Y=F(K).call(F(Q),F(X),F(J),F(Z));return B(Y)},arguments)},__wbg_call_8a2dd23819f8a60a:function(){return s(function(K,Q){let X=F(K).call(F(Q));return B(X)},arguments)},__wbg_call_a6e5c5dce5018821:function(){return s(function(K,Q,X){let J=F(K).call(F(Q),F(X));return B(J)},arguments)},__wbg_call_d118afd8bd2557eb:function(){return s(function(K,Q,X,J,Z,Y){let G=F(K).call(F(Q),F(X),F(J),F(Z),F(Y));return B(G)},arguments)},__wbg_call_e3b662382210db98:function(){return s(function(K,Q,X,J){let Z=F(K).call(F(Q),F(X),F(J));return B(Z)},arguments)},__wbg_cancel_3983a93e24cc66b3:function(K){let Q=F(K).cancel();return B(Q)},__wbg_catch_c1a60df4c30d76d3:function(K,Q){let X=F(K).catch(F(Q));return B(X)},__wbg_close_1e6096d41f7ce5d0:function(K){let Q=F(K).close();return B(Q)},__wbg_close_249a23304523681b:function(){return s(function(K){F(K).close()},arguments)},__wbg_close_72d318d9c16e83ef:function(){return s(function(K){F(K).close()},arguments)},__wbg_debug_10ca7029b12f8d85:function(K,Q,X,J){F(K).debug(F(Q),X===0?void 0:X0(X,J))},__wbg_debug_cf53e2612c84e4ee:function(K,Q,X,J){console.debug(F(K),F(Q),F(X),F(J))},__wbg_done_89b2b13e91a60321:function(K){return F(K).done},__wbg_enqueue_6d83b4c6281bafd6:function(){return s(function(K,Q){F(K).enqueue(F(Q))},arguments)},__wbg_entries_015dc610cd81ede0:function(K){let Q=Object.entries(F(K));return B(Q)},__wbg_error_657700d53a73881f:function(K,Q,X,J){console.error(F(K),F(Q),F(X),F(J))},__wbg_error_9cce413345f88385:function(K,Q,X,J){F(K).error(F(Q),X===0?void 0:X0(X,J))},__wbg_error_a6fa202b58aa1cd3:function(K,Q){let X,J;try{X=K,J=Q,console.error(X0(K,Q))}finally{z.__wbindgen_export4(X,J,1)}},__wbg_from_13e323c65fc8f464:function(K){let Q=Array.from(F(K));return B(Q)},__wbg_getRandomValues_cc7f052a444bb2ce:function(){return s(function(K,Q){globalThis.crypto.getRandomValues(T$(K,Q))},arguments)},__wbg_getReader_bb0230851fbf986b:function(){return s(function(K){let Q=F(K).getReader();return B(Q)},arguments)},__wbg_getWriter_d71a99bcd847ccef:function(){return s(function(K){let Q=F(K).getWriter();return B(Q)},arguments)},__wbg_get_507a50627bffa49b:function(K,Q){let X=F(K)[Q>>>0];return B(X)},__wbg_get_78f252d074a84d0b:function(){return s(function(K,Q){let X=Reflect.get(F(K),F(Q));return B(X)},arguments)},__wbg_get_c7eb1f358a7654df:function(){return s(function(K,Q){let X=Reflect.get(F(K),F(Q));return B(X)},arguments)},__wbg_get_done_670108eb06ecbe46:function(K){let Q=F(K).done;return j(Q)?16777215:Q?1:0},__wbg_get_unchecked_6e0ad6d2a41b06f6:function(K,Q){let X=F(K)[Q>>>0];return B(X)},__wbg_get_value_f465f5be30aa0963:function(K){let Q=F(K).value;return B(Q)},__wbg_get_with_ref_key_6412cf3094599694:function(K,Q){let X=F(K)[F(Q)];return B(X)},__wbg_info_79f5309d69d9c70e:function(K,Q,X,J){console.info(F(K),F(Q),F(X),F(J))},__wbg_info_b728e87a346ff6a2:function(K,Q,X,J){F(K).info(F(Q),X===0?void 0:X0(X,J))},__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb:function(K){let Q;try{Q=F(K)instanceof ArrayBuffer}catch(J){Q=!1}return Q},__wbg_instanceof_Array_de0fa65266a8c7c0:function(K){let Q;try{Q=F(K)instanceof Array}catch(J){Q=!1}return Q},__wbg_instanceof_Map_e5b5e3db98422fcc:function(K){let Q;try{Q=F(K)instanceof Map}catch(J){Q=!1}return Q},__wbg_instanceof_Object_33f20e6f12439f3e:function(K){let Q;try{Q=F(K)instanceof Object}catch(J){Q=!1}return Q},__wbg_instanceof_Promise_4cb210c0b8f8c959:function(K){let Q;try{Q=F(K)instanceof Promise}catch(J){Q=!1}return Q},__wbg_instanceof_Uint8Array_309b927aaf7a3fc7:function(K){let Q;try{Q=F(K)instanceof Uint8Array}catch(J){Q=!1}return Q},__wbg_isArray_0677c962b281d01a:function(K){return Array.isArray(F(K))},__wbg_isSafeInteger_04f36e4056f1b851:function(K){return Number.isSafeInteger(F(K))},__wbg_iterator_6f722e4a93058b71:function(){return B(Symbol.iterator)},__wbg_keys_58421f8f96795607:function(K){let Q=Object.keys(F(K));return B(Q)},__wbg_length_1f0964f4a5e2c6d8:function(K){return F(K).length},__wbg_length_370319915dc99107:function(K){return F(K).length},__wbg_level_4b50b181832c5acf:function(K,Q){let X=F(Q).level,J=k(X,z.__wbindgen_export,z.__wbindgen_export2),Z=U;T().setInt32(K+4,Z,!0),T().setInt32(K+0,J,!0)},__wbg_log_a45418e25b210a4c:function(K,Q,X,J){console.log(F(K),F(Q),F(X),F(J))},__wbg_new_227d7c05414eb861:function(){let K=Error();return B(K)},__wbg_new_32b398fb48b6d94a:function(){return B([])},__wbg_new_7796ffc7ed656783:function(){return B(new Map)},__wbg_new_b667d279fd5aa943:function(K,Q){let X=Error(X0(K,Q));return B(X)},__wbg_new_cd45aabdf6073e84:function(K){let Q=new Uint8Array(F(K));return B(Q)},__wbg_new_da52cf8fe3429cb2:function(){return B({})},__wbg_new_from_slice_7568ba55b4a7e81f:function(K,Q){let X=new Uint32Array(XB(K,Q));return B(X)},__wbg_new_from_slice_77cdfb7977362f3c:function(K,Q){let X=new Uint8Array(T$(K,Q));return B(X)},__wbg_new_typed_1824d93f294193e5:function(K,Q){try{var X={a:K,b:Q},J=(Y,G)=>{let L=X.a;X.a=0;try{return eR(L,X.b,Y,G)}finally{X.a=L}};let Z=new Promise(J);return B(Z)}finally{X.a=0}},__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82:function(K,Q,X){let J=new Uint8Array(F(K),Q>>>0,X>>>0);return B(J)},__wbg_new_with_into_underlying_source_8812003c9985c511:function(K,Q){let X=new ReadableStream(n$.__wrap(K),D(Q));return B(X)},__wbg_new_with_length_e6785c33c8e4cce8:function(K){let Q=new Uint8Array(K>>>0);return B(Q)},__wbg_new_with_length_f8cbc3a5b9ff9368:function(K){let Q=Array(K>>>0);return B(Q)},__wbg_next_6dbf2c0ac8cde20f:function(K){let Q=F(K).next;return B(Q)},__wbg_next_71f2aa1cb3d1e37e:function(){return s(function(K){let Q=F(K).next();return B(Q)},arguments)},__wbg_now_44881ed1d5dba857:function(){return s(function(){return performance.now()},arguments)},__wbg_now_86c0d4ba3fa605b8:function(){return Date.now()},__wbg_now_fefb743ab429013f:function(){return performance.now()},__wbg_of_2bf3ed8a776ff19a:function(K,Q,X,J){let Z=Array.of(F(K),F(Q),F(X),F(J));return B(Z)},__wbg_prototypesetcall_2592ffff58ff115d:function(K,Q,X){Uint8Array.prototype.set.call(T$(K,Q),F(X))},__wbg_prototypesetcall_4770620bbe4688a0:function(K,Q,X){Uint8Array.prototype.set.call(T$(K,Q),F(X))},__wbg_push_d2ae3af0c1217ae6:function(K,Q){return F(K).push(F(Q))},__wbg_queueMicrotask_0ab5b2d2393e99b9:function(K){let Q=F(K).queueMicrotask;return B(Q)},__wbg_queueMicrotask_6a09b7bc46549209:function(K){queueMicrotask(F(K))},__wbg_read_8afa15f12a160ef8:function(K){let Q=F(K).read();return B(Q)},__wbg_ready_68b537848a5c627a:function(K){let Q=F(K).ready;return B(Q)},__wbg_releaseLock_33c25ace78b2d4c6:function(K){F(K).releaseLock()},__wbg_releaseLock_5b92874cad775644:function(K){F(K).releaseLock()},__wbg_resolve_2191a4dfe481c25b:function(K){let Q=Promise.resolve(F(K));return B(Q)},__wbg_respond_510e32df8aeb6817:function(){return s(function(K,Q){F(K).respond(Q>>>0)},arguments)},__wbg_set_4d7dd76f3dae2926:function(K,Q,X){F(K).set(T$(Q,X))},__wbg_set_575dd786d51585f8:function(K,Q,X){let J=F(K).set(F(Q),F(X));return B(J)},__wbg_set_6be42768c690e380:function(K,Q,X){F(K)[D(Q)]=D(X)},__wbg_set_8535240470bf2500:function(){return s(function(K,Q,X){return Reflect.set(F(K),F(Q),F(X))},arguments)},__wbg_set_8a16b38e4805b298:function(K,Q,X){F(K)[Q>>>0]=D(X)},__wbg_set_high_water_mark_44d043cd607dd13a:function(K,Q){F(K).highWaterMark=Q},__wbg_set_name_3bbc583faefa4193:function(K,Q,X){F(K).name=X0(Q,X)},__wbg_stack_3b0d974bbf31e44f:function(K,Q){let X=F(Q).stack,J=k(X,z.__wbindgen_export,z.__wbindgen_export2),Z=U;T().setInt32(K+4,Z,!0),T().setInt32(K+0,J,!0)},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){let K=typeof global>"u"?null:global;return j(K)?0:B(K)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){let K=typeof globalThis>"u"?null:globalThis;return j(K)?0:B(K)},__wbg_static_accessor_SELF_146583524fe1469b:function(){let K=typeof self>"u"?null:self;return j(K)?0:B(K)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){let K=typeof window>"u"?null:window;return j(K)?0:B(K)},__wbg_then_16d107c451e9905d:function(K,Q,X){let J=F(K).then(F(Q),F(X));return B(J)},__wbg_then_6ec10ae38b3e92f7:function(K,Q){let X=F(K).then(F(Q));return B(X)},__wbg_trace_58264fbce2ceb5e6:function(K,Q,X,J){F(K).trace(F(Q),X===0?void 0:X0(X,J))},__wbg_value_a5d5488a9589444a:function(K){let Q=F(K).value;return B(Q)},__wbg_view_21f1d4a4f175dfa9:function(K){let Q=F(K).view;return j(Q)?0:B(Q)},__wbg_warn_77c4eb4a21e10a21:function(K,Q,X,J){console.warn(F(K),F(Q),F(X),F(J))},__wbg_warn_db531770752932a9:function(K,Q,X,J){F(K).warn(F(Q),X===0?void 0:X0(X,J))},__wbg_wasmwhatsappclient_new:function(K){let Q=d$.__wrap(K);return B(Q)},__wbg_write_f6dc0059c3feedce:function(K,Q){let X=F(K).write(F(Q));return B(X)},__wbindgen_cast_0000000000000001:function(K,Q){let X=h$(K,Q,rR);return B(X)},__wbindgen_cast_0000000000000002:function(K,Q){let X=h$(K,Q,sR);return B(X)},__wbindgen_cast_0000000000000003:function(K,Q){let X=h$(K,Q,$B);return B(X)},__wbindgen_cast_0000000000000004:function(K,Q){let X=h$(K,Q,aR);return B(X)},__wbindgen_cast_0000000000000005:function(K,Q){let X=h$(K,Q,tR);return B(X)},__wbindgen_cast_0000000000000006:function(K){return B(K)},__wbindgen_cast_0000000000000007:function(K){return B(K)},__wbindgen_cast_0000000000000008:function(K,Q){let X=T$(K,Q);return B(X)},__wbindgen_cast_0000000000000009:function(K,Q){let X=X0(K,Q);return B(X)},__wbindgen_cast_000000000000000a:function(K){let Q=BigInt.asUintN(64,K);return B(Q)},__wbindgen_cast_000000000000000b:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_000000000000000c:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_000000000000000d:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_000000000000000e:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_000000000000000f:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_cast_0000000000000010:function(K,Q){var X=A$(K,Q).slice();return z.__wbindgen_export4(K,Q*4,4),B(X)},__wbindgen_object_clone_ref:function(K){let Q=F(K);return B(Q)},__wbindgen_object_drop_ref:function(K){D(K)}}}}function tR($,K){z.__wasm_bindgen_func_elem_3791($,K)}function rR($,K,Q){z.__wasm_bindgen_func_elem_8210($,K,B(Q))}function aR($,K,Q){z.__wasm_bindgen_func_elem_3792($,K,B(Q))}function sR($,K,Q){try{let Z=z.__wbindgen_add_to_stack_pointer(-16);z.__wasm_bindgen_func_elem_24626(Z,$,K,B(Q));var X=T().getInt32(Z+0,!0),J=T().getInt32(Z+4,!0);if(J)throw D(X)}finally{z.__wbindgen_add_to_stack_pointer(16)}}function eR($,K,Q,X){z.__wasm_bindgen_func_elem_24628($,K,B(Q),B(X))}function $B($,K,Q){z.__wasm_bindgen_func_elem_3793($,K,Q)}var KB=["bytes"],QB=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingbytesource_free($,1)),ZB=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsink_free($,1)),A6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_intounderlyingsource_free($,1)),E6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbg_wasmwhatsappclient_free($,1));function B($){if(u$===y0.length)y0.push(y0.length+1);let K=u$;return u$=y0[K],y0[K]=$,K}var M6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(($)=>z.__wbindgen_export5($.a,$.b));function q6($){let K=typeof $;if(K=="number"||K=="boolean"||$==null)return`${$}`;if(K=="string")return`"${$}"`;if(K=="symbol"){let J=$.description;if(J==null)return"Symbol";else return`Symbol(${J})`}if(K=="function"){let J=$.name;if(typeof J=="string"&&J.length>0)return`Function(${J})`;else return"Function"}if(Array.isArray($)){let J=$.length,Z="[";if(J>0)Z+=q6($[0]);for(let Y=1;Y<J;Y++)Z+=", "+q6($[Y]);return Z+="]",Z}let Q=/\[object ([^\]]+)\]/.exec(toString.call($)),X;if(Q&&Q.length>1)X=Q[1];else return toString.call($);if(X=="Object")try{return"Object("+JSON.stringify($)+")"}catch(J){return"Object"}if($ instanceof Error)return`${$.name}: ${$.message}
2
+ ${$.stack}`;return X}function JB($){if($<1028)return;y0[$]=u$,u$=$}function A$($,K){$=$>>>0;let Q=T(),X=[];for(let J=$;J<$+4*K;J+=4)X.push(D(Q.getUint32(J,!0)));return X}function XB($,K){return $=$>>>0,qB().subarray($/4,$/4+K)}function T$($,K){return $=$>>>0,y$().subarray($/1,$/1+K)}var E$=null;function T(){if(E$===null||E$.buffer.detached===!0||E$.buffer.detached===void 0&&E$.buffer!==z.memory.buffer)E$=new DataView(z.memory.buffer);return E$}function X0($,K){return HB($>>>0,K)}var l$=null;function qB(){if(l$===null||l$.byteLength===0)l$=new Uint32Array(z.memory.buffer);return l$}var p$=null;function y$(){if(p$===null||p$.byteLength===0)p$=new Uint8Array(z.memory.buffer);return p$}function F($){return y0[$]}function s($,K){try{return $.apply(this,K)}catch(Q){z.__wbindgen_export3(B(Q))}}var y0=Array(1024).fill(void 0);y0.push(void 0,null,!0,!1);var u$=y0.length;function j($){return $===void 0||$===null}function h$($,K,Q){let X={a:$,b:K,cnt:1},J=(...Z)=>{X.cnt++;let Y=X.a;X.a=0;try{return Q(Y,X.b,...Z)}finally{X.a=Y,J._wbg_cb_unref()}};return J._wbg_cb_unref=()=>{if(--X.cnt===0)z.__wbindgen_export5(X.a,X.b),X.a=0,M6.unregister(X)},M6.register(J,X,X),J}function u($,K){let Q=K($.length*1,1)>>>0;return y$().set($,Q/1),U=$.length,Q}function g($,K){let Q=K($.length*4,4)>>>0,X=T();for(let J=0;J<$.length;J++)X.setUint32(Q+4*J,B($[J]),!0);return U=$.length,Q}function k($,K,Q){if(Q===void 0){let G=w$.encode($),L=K(G.length,1)>>>0;return y$().subarray(L,L+G.length).set(G),U=G.length,L}let X=$.length,J=K(X,1)>>>0,Z=y$(),Y=0;for(;Y<X;Y++){let G=$.charCodeAt(Y);if(G>127)break;Z[J+Y]=G}if(Y!==X){if(Y!==0)$=$.slice(Y);J=Q(J,X,X=Y+$.length*3,1)>>>0;let G=y$().subarray(J+Y,J+X),L=w$.encodeInto($,G);Y+=L.written,J=Q(J,X,Y,1)>>>0}return U=Y,J}function D($){let K=F($);return JB($),K}var IY=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});IY.decode();var YB=2146435072,Z6=0;function HB($,K){if(Z6+=K,Z6>=YB)IY=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),IY.decode(),Z6=K;return IY.decode(y$().subarray($,$+K))}var w$=new TextEncoder;if(!("encodeInto"in w$))w$.encodeInto=function($,K){let Q=w$.encode($);return K.set(Q),{read:$.length,written:Q.length}};var U=0,zB,VB,z;function GB($,K){return VB=$,z=$.exports,zB=K,E$=null,l$=null,p$=null,z}function S6($){if(z!==void 0)return z;if($!==void 0)if(Object.getPrototypeOf($)===Object.prototype)({module:$}=$);else console.warn("using deprecated parameters for `initSync()`; pass a single object instead");let K=gR();if(!($ instanceof WebAssembly.Module))$=new WebAssembly.Module($);let Q=new WebAssembly.Instance($,K);return GB(Q,$)}var WY={};mR(WY,{protobufPackage:()=>AB,mentionMentionType:()=>lP,futureProofBehavior:()=>_P,consumerApplicationStatusTextMesageFontType:()=>yP,consumerApplicationMetadataSpecialTextSize:()=>TP,commandCommandType:()=>vP,WebNotificationsInfo:()=>UR,WebMessageInfo_StubType:()=>DN,WebMessageInfo_Status:()=>CN,WebMessageInfo_BizPrivacyStatus:()=>UN,WebMessageInfoWithMessageBytes:()=>K0,WebMessageInfo:()=>b,WebLinkRenderConfig:()=>jP,WebFeatures_Flag:()=>GN,WebFeatures:()=>GR,WallpaperSettings:()=>U0,VirtualDeviceOutput:()=>MY,VerifiedNameCertificate_Details:()=>$6,VerifiedNameCertificate:()=>T0,UserReceipt:()=>EY,UserPassword_TransformerArg_Value:()=>AY,UserPassword_TransformerArg:()=>OY,UserPassword_Transformer:()=>VN,UserPassword_Encoding:()=>zN,UserPassword:()=>BY,UrlTrackingMap_UrlTrackingMapElement:()=>RY,UrlTrackingMap:()=>B$,UnCountedAssociatedMessageListWithMessageBytes:()=>NY,UnCountedAssociatedMessageList:()=>kY,ThreadID_ThreadType:()=>HN,ThreadID:()=>xY,TemplateButton_URLButton:()=>FY,TemplateButton_QuickReplyButton:()=>PY,TemplateButton_CallButton:()=>LY,TemplateButton:()=>DY,TapLinkAction:()=>CY,SyncdVersion:()=>R0,SyncdValue:()=>UY,SyncdSnapshotRecovery:()=>VR,SyncdSnapshot:()=>eY,SyncdRecord:()=>v0,SyncdPlainTextRecord:()=>GY,SyncdPatch:()=>sY,SyncdMutations:()=>aY,SyncdMutation_SyncdOperation:()=>YN,SyncdMutation:()=>S0,SyncdIndex:()=>VY,SyncActionValue_WamoUserIdentifierAction:()=>zY,SyncActionValue_WaffleAccountLinkStateAction_AccountLinkState:()=>qN,SyncActionValue_WaffleAccountLinkStateAction:()=>HY,SyncActionValue_WASARootSecretAction_RootSecretEntry:()=>YY,SyncActionValue_WASARootSecretAction:()=>qY,SyncActionValue_UsernameChatStartModeAction_ChatStartMode:()=>XN,SyncActionValue_UsernameChatStartModeAction:()=>XY,SyncActionValue_UserStatusMuteAction:()=>JY,SyncActionValue_UnarchiveChatsSetting:()=>ZY,SyncActionValue_UGCBot:()=>QY,SyncActionValue_TimeFormatAction:()=>KY,SyncActionValue_ThreadPinAction:()=>$Y,SyncActionValue_SyncActionMessageRange:()=>Z0,SyncActionValue_SyncActionMessage:()=>e9,SyncActionValue_SubscriptionsSyncV2Action_SubscriptionInfo:()=>s9,SyncActionValue_SubscriptionsSyncV2Action_PaidFeature:()=>a9,SyncActionValue_SubscriptionsSyncV2Action:()=>r9,SyncActionValue_SubscriptionAction:()=>t9,SyncActionValue_StickerAction:()=>R$,SyncActionValue_StatusPrivacyAction_StatusDistributionMode:()=>JN,SyncActionValue_StatusPrivacyAction_CustomList:()=>g9,SyncActionValue_StatusPrivacyAction:()=>m9,SyncActionValue_StatusPostOptInNotificationPreferencesAction:()=>i9,SyncActionValue_StarAction:()=>b9,SyncActionValue_SettingsSyncAction_SettingPlatform:()=>ZN,SyncActionValue_SettingsSyncAction_SettingKey:()=>QN,SyncActionValue_SettingsSyncAction_MediaQualitySetting:()=>KN,SyncActionValue_SettingsSyncAction_DisplayMode:()=>$N,SyncActionValue_SettingsSyncAction:()=>o9,SyncActionValue_RemoveRecentStickerAction:()=>c9,SyncActionValue_RecentEmojiWeightsAction:()=>j9,SyncActionValue_QuickReplyAction:()=>d9,SyncActionValue_PushNameSetting:()=>n9,SyncActionValue_PrivateProcessingSettingAction_PrivateProcessingStatus:()=>ek,SyncActionValue_PrivateProcessingSettingAction:()=>w9,SyncActionValue_PrivacySettingRelayAllCalls:()=>u9,SyncActionValue_PrivacySettingDisableLinkPreviewsAction:()=>p9,SyncActionValue_PrivacySettingChannelsPersonalisedRecommendationAction:()=>l9,SyncActionValue_PrimaryVersionAction:()=>h9,SyncActionValue_PrimaryFeature:()=>_9,SyncActionValue_PnForLidChatAction:()=>f9,SyncActionValue_PinAction:()=>y9,SyncActionValue_PaymentTosAction_PaymentNotice:()=>sk,SyncActionValue_PaymentTosAction:()=>T9,SyncActionValue_PaymentInfoAction:()=>v9,SyncActionValue_OutContactAction:()=>S9,SyncActionValue_NuxAction:()=>I9,SyncActionValue_NotificationActivitySettingAction_NotificationActivitySetting:()=>ak,SyncActionValue_NotificationActivitySettingAction:()=>W9,SyncActionValue_NoteEditAction_NoteType:()=>rk,SyncActionValue_NoteEditAction:()=>M9,SyncActionValue_NewsletterSavedInterestsAction:()=>E9,SyncActionValue_NctSaltSyncAction:()=>A9,SyncActionValue_MuteAction:()=>O9,SyncActionValue_MusicUserIdAction_MusicUserIdMapEntry:()=>hY,SyncActionValue_MusicUserIdAction:()=>B9,SyncActionValue_MerchantPaymentPartnerAction_Status:()=>tk,SyncActionValue_MerchantPaymentPartnerAction:()=>R9,SyncActionValue_MarketingMessageBroadcastAction:()=>N9,SyncActionValue_MarketingMessageAction_MarketingMessagePrototypeType:()=>gk,SyncActionValue_MarketingMessageAction:()=>k9,SyncActionValue_MarkChatAsReadAction:()=>x9,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIReplyMode:()=>mk,SyncActionValue_MaibaAIFeaturesControlAction_MaibaAIFeatureStatus:()=>ik,SyncActionValue_MaibaAIFeaturesControlAction:()=>F9,SyncActionValue_LockChatAction:()=>P9,SyncActionValue_LocaleSetting:()=>L9,SyncActionValue_LidContactAction:()=>D9,SyncActionValue_LabelReorderingAction:()=>C9,SyncActionValue_LabelEditAction_ListType:()=>bk,SyncActionValue_LabelEditAction:()=>U9,SyncActionValue_LabelAssociationAction:()=>G9,SyncActionValue_KeyExpiration:()=>V9,SyncActionValue_InteractiveMessageAction_InteractiveMessageActionMode:()=>ok,SyncActionValue_InteractiveMessageAction:()=>z9,SyncActionValue_FavoritesAction_Favorite:()=>H9,SyncActionValue_FavoritesAction:()=>Y9,SyncActionValue_ExternalWebBetaAction:()=>q9,SyncActionValue_DetectedOutcomesStatusAction:()=>X9,SyncActionValue_DeleteMessageForMeAction:()=>J9,SyncActionValue_DeleteIndividualCallLogAction:()=>Z9,SyncActionValue_DeleteChatAction:()=>Q9,SyncActionValue_CustomerDataAction:()=>K9,SyncActionValue_CustomPaymentMethodsAction:()=>$9,SyncActionValue_CustomPaymentMethodMetadata:()=>eq,SyncActionValue_CustomPaymentMethod:()=>sq,SyncActionValue_CtwaPerCustomerDataSharingAction:()=>aq,SyncActionValue_ContactAction:()=>rq,SyncActionValue_CoexV2VersionAction:()=>tq,SyncActionValue_ClearChatAction:()=>gq,SyncActionValue_ChatAssignmentOpenedStatusAction:()=>mq,SyncActionValue_ChatAssignmentAction:()=>iq,SyncActionValue_CallLogAction:()=>bq,SyncActionValue_BusinessBroadcastListAction:()=>oq,SyncActionValue_BusinessBroadcastInsightsAction:()=>cq,SyncActionValue_BusinessBroadcastCampaignStatus:()=>dk,SyncActionValue_BusinessBroadcastCampaignAction:()=>jq,SyncActionValue_BusinessBroadcastAssociationAction:()=>zR,SyncActionValue_BroadcastListParticipant:()=>dq,SyncActionValue_BotWelcomeRequestAction:()=>nq,SyncActionValue_BizAISettingsNudgeAction_BizAISettingsCategory:()=>ck,SyncActionValue_BizAISettingsNudgeAction:()=>wq,SyncActionValue_AvatarUpdatedAction_AvatarEventType:()=>jk,SyncActionValue_AvatarUpdatedAction:()=>uq,SyncActionValue_AutoOrganizeBusinessChatSetting:()=>pq,SyncActionValue_ArchiveChatAction:()=>lq,SyncActionValue_AndroidUnsupportedActions:()=>hq,SyncActionValue_AiThreadRenameAction:()=>_q,SyncActionValue_AgentAction:()=>fq,SyncActionValue:()=>S$,SyncActionData:()=>I$,SubProtocol:()=>o,StickerMetadata:()=>yq,StatusPSA:()=>Tq,StatusMentionMessage:()=>vq,StatusAttribution_Type:()=>lk,StatusAttribution_StatusReshare_Source:()=>nk,StatusAttribution_StatusReshare_Metadata:()=>Sq,StatusAttribution_StatusReshare:()=>Iq,StatusAttribution_RLAttribution_Source:()=>wk,StatusAttribution_RLAttribution:()=>Wq,StatusAttribution_Music:()=>Mq,StatusAttribution_GroupStatus:()=>Eq,StatusAttribution_ExternalShare_Source:()=>uk,StatusAttribution_ExternalShare:()=>Aq,StatusAttribution_AiCreatedAttribution_Source:()=>pk,StatusAttribution_AiCreatedAttribution:()=>Oq,StatusAttribution:()=>Bq,SignedPreKeyRecordStructure:()=>HR,SignalMessage:()=>YR,SessionTransparencyType:()=>dP,SessionTransparencyMetadata:()=>Rq,SessionStructure_PendingPreKey:()=>Nq,SessionStructure_PendingKeyExchange:()=>kq,SessionStructure_Chain_MessageKey:()=>xq,SessionStructure_Chain_ChainKey:()=>Fq,SessionStructure_Chain:()=>m0,SessionStructure:()=>i0,ServerErrorReceipt:()=>rY,SenderKeyStateStructure_SenderSigningKey:()=>Pq,SenderKeyStateStructure_SenderMessageKey:()=>Lq,SenderKeyStateStructure_SenderChainKey:()=>Dq,SenderKeyStateStructure:()=>Cq,SenderKeyRecordStructure:()=>qR,SenderKeyMessage:()=>tY,SenderKeyDistributionMessage:()=>gY,ScheduledMessageMetadata:()=>Uq,RoutingInfo:()=>XR,ReportingTokenInfo:()=>Gq,Reportable:()=>JR,RecordStructure:()=>ZR,RecentEmojiWeight:()=>Vq,Reaction:()=>zq,QuarantinedMessage:()=>Hq,QP_FilterResult:()=>hk,QP_FilterParameters:()=>Yq,QP_FilterClientNotSupportedConfig:()=>_k,QP_FilterClause:()=>j$,QP_Filter:()=>qq,QP_ClauseType:()=>fk,QP:()=>QR,Pushname:()=>Xq,ProloguePayload:()=>KR,ProcessedVideo_VideoQuality:()=>yk,ProcessedVideo:()=>Jq,PrivacySystemMessage:()=>nP,PrimaryEphemeralIdentity:()=>$R,PremiumMessageInfo:()=>Zq,PreKeySignalMessage:()=>eN,PreKeyRecordStructure:()=>sN,PollUpdate:()=>Qq,PollEncValue:()=>Kq,PollAdditionalMetadata_PollNameHashHistoryEntry:()=>$q,PollAdditionalMetadata:()=>e8,Point:()=>s8,PinInChat_Type:()=>Tk,PinInChat:()=>a8,PhotoChange:()=>r8,PhoneNumberToLIDMapping:()=>t8,PaymentInfo_TxnStatus:()=>vk,PaymentInfo_Status:()=>Sk,PaymentInfo_Currency:()=>Ik,PaymentInfo:()=>b0,PaymentBackground_Type:()=>Wk,PaymentBackground_MediaData:()=>g8,PaymentBackground:()=>N$,PatchDebugData_Platform:()=>Mk,PatchDebugData:()=>aN,PastParticipants:()=>m8,PastParticipant_LeaveReason:()=>Ek,PastParticipant:()=>i8,PairingRequest:()=>rN,OrfThreadIdOutput:()=>tN,OrfThreadIdInput:()=>b8,NotificationSettings:()=>o0,NotificationMessageInfo:()=>gN,NoiseCertificate_Details:()=>mN,NoiseCertificate:()=>iN,MutationProps:()=>wP,MsgRowOpaqueData:()=>bN,MsgOpaqueData_PollVotesSnapshot:()=>o8,MsgOpaqueData_PollVoteSnapshot:()=>c8,MsgOpaqueData_PollType:()=>Ak,MsgOpaqueData_PollOption:()=>k$,MsgOpaqueData_PollContentType:()=>Ok,MsgOpaqueData_EventLocation:()=>j8,MsgOpaqueData:()=>c0,Money:()=>r,Message_VideoMessage_VideoSourceType:()=>kk,Message_VideoMessage_Attribution:()=>xk,Message_VideoMessage:()=>t,Message_VideoEndCard:()=>w8,Message_URLMetadata:()=>u8,Message_TemplateMessage_HydratedFourRowTemplate:()=>j0,Message_TemplateMessage_FourRowTemplate:()=>p8,Message_TemplateMessage:()=>P$,Message_TemplateButtonReplyMessage:()=>l8,Message_StickerSyncRMRMessage:()=>h8,Message_StickerPackMessage_StickerPackOrigin:()=>Fk,Message_StickerPackMessage_Sticker:()=>_8,Message_StickerPackMessage:()=>f8,Message_StickerMessage:()=>L$,Message_StatusStickerInteractionMessage_StatusStickerType:()=>Pk,Message_StatusStickerInteractionMessage:()=>y8,Message_StatusQuotedMessage_StatusQuotedMessageType:()=>Lk,Message_StatusQuotedMessage:()=>T8,Message_StatusQuestionAnswerMessage:()=>v8,Message_StatusNotificationMessage_StatusNotificationType:()=>Dk,Message_StatusNotificationMessage:()=>S8,Message_SplitPaymentParticipant_SplitPaymentStatus:()=>Ck,Message_SplitPaymentParticipant:()=>I8,Message_SplitPaymentMessage:()=>W8,Message_SenderKeyDistributionMessage:()=>d0,Message_SendPaymentMessage:()=>M8,Message_SecretEncryptedMessage_SecretEncType:()=>Uk,Message_SecretEncryptedMessage:()=>E8,Message_ScheduledCallEditMessage_EditType:()=>Gk,Message_ScheduledCallEditMessage:()=>A8,Message_ScheduledCallCreationMessage_CallType:()=>Vk,Message_ScheduledCallCreationMessage:()=>O8,Message_RootSecretDistributeMessage:()=>B8,Message_RequestWelcomeMessageMetadata_WelcomeTrigger:()=>zk,Message_RequestWelcomeMessageMetadata_LocalChatState:()=>Hk,Message_RequestWelcomeMessageMetadata:()=>R8,Message_RequestPhoneNumberMessage:()=>N8,Message_RequestPaymentMessage:()=>k8,Message_ReactionMessage:()=>x8,Message_QuestionResponseMessage:()=>F8,Message_ProtocolMessage_Type:()=>Yk,Message_ProtocolMessage:()=>P8,Message_ProductMessage_ProductSnapshot:()=>L8,Message_ProductMessage_CatalogSnapshot:()=>D8,Message_ProductMessage:()=>D$,Message_PollVoteMessage:()=>I0,Message_PollUpdateMessageMetadata:()=>N0,Message_PollUpdateMessage:()=>C8,Message_PollType:()=>Ex,Message_PollResultSnapshotMessage_PollVote:()=>U8,Message_PollResultSnapshotMessage:()=>n0,Message_PollEncValue:()=>G8,Message_PollCreationMessage_Option:()=>G0,Message_PollCreationMessage:()=>e,Message_PollContentType:()=>Ax,Message_PollAddOptionMessage:()=>V8,Message_PlaceholderMessage_PlaceholderType:()=>qk,Message_PlaceholderMessage:()=>z8,Message_PinInChatMessage_Type:()=>Xk,Message_PinInChatMessage:()=>H8,Message_PeerDataOperationRequestType:()=>Ox,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_WaffleNonceFetchResponse:()=>Y8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_SyncDSnapshotFatalRecoveryResponse:()=>q8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_PlaceholderMessageResendResponse:()=>X8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_PaymentLinkPreviewMetadata:()=>J8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse_LinkPreviewHighQualityThumbnail:()=>Z8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_LinkPreviewResponse:()=>Q8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponseCode:()=>Jk,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_HistorySyncChunkRetryResponse:()=>K8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandResponseCode:()=>Zk,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FullHistorySyncOnDemandRequestResponse:()=>$8,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_FlowResponsesCsvBundle:()=>eX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionMetaNonceFetchResponse:()=>sX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_CompanionCanonicalUserNonceFetchResponse:()=>aX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactState:()=>rX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult_BizBroadcastInsightsContactListResponse:()=>tX,Message_PeerDataOperationRequestResponseMessage_PeerDataOperationResult:()=>gX,Message_PeerDataOperationRequestResponseMessage:()=>mX,Message_PeerDataOperationRequestMessage_SyncDCollectionFatalRecoveryRequest:()=>iX,Message_PeerDataOperationRequestMessage_RequestUrlPreview:()=>bX,Message_PeerDataOperationRequestMessage_RequestStickerReupload:()=>oX,Message_PeerDataOperationRequestMessage_PlaceholderMessageResendRequest:()=>cX,Message_PeerDataOperationRequestMessage_HistorySyncOnDemandRequest:()=>jX,Message_PeerDataOperationRequestMessage_HistorySyncChunkRetryRequest:()=>dX,Message_PeerDataOperationRequestMessage_GalaxyFlowAction_GalaxyFlowActionType:()=>Qk,Message_PeerDataOperationRequestMessage_GalaxyFlowAction:()=>nX,Message_PeerDataOperationRequestMessage_FullHistorySyncOnDemandRequest:()=>wX,Message_PeerDataOperationRequestMessage_CompanionCanonicalUserNonceFetchRequest:()=>uX,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsRefreshRequest:()=>pX,Message_PeerDataOperationRequestMessage_BizBroadcastInsightsContactListRequest:()=>lX,Message_PeerDataOperationRequestMessage:()=>hX,Message_PaymentReminderMessage_ReminderStatus:()=>Kk,Message_PaymentReminderMessage_ReminderFrequency:()=>$k,Message_PaymentReminderMessage:()=>_X,Message_PaymentLinkMetadata_PaymentLinkProvider:()=>fX,Message_PaymentLinkMetadata_PaymentLinkHeader_PaymentLinkHeaderType:()=>ex,Message_PaymentLinkMetadata_PaymentLinkHeader:()=>yX,Message_PaymentLinkMetadata_PaymentLinkButton:()=>TX,Message_PaymentLinkMetadata:()=>C$,Message_PaymentInviteMessage_ServiceType:()=>sx,Message_PaymentInviteMessage_InviteType:()=>ax,Message_PaymentInviteMessage:()=>vX,Message_PaymentExtendedMetadata:()=>SX,Message_OrderMessage_OrderSurface:()=>rx,Message_OrderMessage_OrderStatus:()=>tx,Message_OrderMessage:()=>IX,Message_NewsletterFollowerInviteMessage:()=>WX,Message_NewsletterAdminInviteMessage:()=>MX,Message_MessageHistoryNotice:()=>EX,Message_MessageHistoryMetadata:()=>U$,Message_MessageHistoryBundle:()=>G$,Message_MMSThumbnailMetadata:()=>AX,Message_LocationMessage:()=>a,Message_LiveLocationMessage:()=>V$,Message_ListResponseMessage_SingleSelectReply:()=>OX,Message_ListResponseMessage_ListType:()=>gx,Message_ListResponseMessage:()=>BX,Message_ListMessage_Section:()=>RX,Message_ListMessage_Row:()=>NX,Message_ListMessage_ProductSection:()=>kX,Message_ListMessage_ProductListInfo:()=>xX,Message_ListMessage_ProductListHeaderImage:()=>FX,Message_ListMessage_Product:()=>PX,Message_ListMessage_ListType:()=>mx,Message_ListMessage:()=>LX,Message_LinkPreviewMetadata_SocialMediaPostType:()=>ix,Message_LinkPreviewMetadata:()=>DX,Message_KeepInChatMessage:()=>CX,Message_InvoiceMessage_AttachmentType:()=>bx,Message_InvoiceMessage:()=>UX,Message_InteractiveResponseMessage_NativeFlowResponseMessage:()=>GX,Message_InteractiveResponseMessage_Body_Format:()=>ox,Message_InteractiveResponseMessage_Body:()=>VX,Message_InteractiveResponseMessage:()=>zX,Message_InteractiveMessage_ShopMessage_Surface:()=>cx,Message_InteractiveMessage_ShopMessage:()=>HX,Message_InteractiveMessage_NativeFlowMessage_NativeFlowButton:()=>YX,Message_InteractiveMessage_NativeFlowMessage:()=>qX,Message_InteractiveMessage_Header:()=>XX,Message_InteractiveMessage_Footer:()=>JX,Message_InteractiveMessage_CollectionMessage:()=>ZX,Message_InteractiveMessage_CarouselMessage_CarouselCardType:()=>jx,Message_InteractiveMessage_CarouselMessage:()=>QX,Message_InteractiveMessage_Body:()=>KX,Message_InteractiveMessage_BloksWidget:()=>z$,Message_InteractiveMessage:()=>k0,Message_InsightDeliveryState:()=>Bx,Message_InitialSecurityNotificationSettingSync:()=>$X,Message_ImageMessage_ImageSourceType:()=>dx,Message_ImageMessage:()=>i,Message_HistorySyncType:()=>Rx,Message_HistorySyncNotification:()=>eJ,Message_HistorySyncMessageAccessStatus:()=>sJ,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeUnixEpoch:()=>aJ,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_DayOfWeekType:()=>nx,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent_CalendarType:()=>wx,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime_HSMDateTimeComponent:()=>rJ,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMDateTime:()=>tJ,Message_HighlyStructuredMessage_HSMLocalizableParameter_HSMCurrency:()=>gJ,Message_HighlyStructuredMessage_HSMLocalizableParameter:()=>mJ,Message_HighlyStructuredMessage:()=>c,Message_GroupInviteMessage_GroupType:()=>ux,Message_GroupInviteMessage:()=>iJ,Message_FutureProofMessage:()=>W,Message_FullHistorySyncOnDemandRequestMetadata:()=>x0,Message_FullHistorySyncOnDemandConfig:()=>bJ,Message_ExtendedTextMessage_PreviewType:()=>px,Message_ExtendedTextMessage_InviteLinkGroupType:()=>lx,Message_ExtendedTextMessage_FontType:()=>hx,Message_ExtendedTextMessage:()=>oJ,Message_EventResponseMessage_EventResponseType:()=>_x,Message_EventResponseMessage:()=>W0,Message_EventMessage:()=>cJ,Message_EventInviteMessage:()=>jJ,Message_EncReactionMessage:()=>dJ,Message_EncEventResponseMessage:()=>nJ,Message_EncCommentMessage:()=>wJ,Message_DocumentMessage:()=>$0,Message_DeviceSentMessage:()=>uJ,Message_DeclinePaymentRequestMessage:()=>pJ,Message_ContactsArrayMessage:()=>lJ,Message_ContactMessage:()=>H$,Message_ConditionalRevealMessage_ConditionalRevealMessageType:()=>fx,Message_ConditionalRevealMessage:()=>hJ,Message_CommentMessage:()=>_J,Message_CloudAPIThreadControlNotification_CloudAPIThreadControlNotificationContent:()=>fJ,Message_CloudAPIThreadControlNotification_CloudAPIThreadControl:()=>yx,Message_CloudAPIThreadControlNotification:()=>yJ,Message_ChatThemeSetting:()=>TJ,Message_ChatStockImageWallpaper:()=>vJ,Message_ChatSolidColorWallpaper:()=>SJ,Message_ChatDefaultWallpaper:()=>IJ,Message_ChatCustomImageWallpaper:()=>WJ,Message_Chat:()=>MJ,Message_CancelPaymentRequestMessage:()=>EJ,Message_CallLogMessage_CallType:()=>Tx,Message_CallLogMessage_CallParticipant:()=>AJ,Message_CallLogMessage_CallOutcome:()=>vx,Message_CallLogMessage:()=>OJ,Message_Call:()=>BJ,Message_ButtonsResponseMessage_Type:()=>Sx,Message_ButtonsResponseMessage:()=>RJ,Message_ButtonsMessage_HeaderType:()=>Wx,Message_ButtonsMessage_Button_Type:()=>Ix,Message_ButtonsMessage_Button_NativeFlowInfo:()=>NJ,Message_ButtonsMessage_Button_ButtonText:()=>kJ,Message_ButtonsMessage_Button:()=>xJ,Message_ButtonsMessage:()=>FJ,Message_BCallMessage_MediaType:()=>Mx,Message_BCallMessage:()=>PJ,Message_AudioMessage:()=>Y$,Message_AppStateSyncKeyShare:()=>LJ,Message_AppStateSyncKeyRequest:()=>DJ,Message_AppStateSyncKeyId:()=>q$,Message_AppStateSyncKeyFingerprint:()=>CJ,Message_AppStateSyncKeyData:()=>UJ,Message_AppStateSyncKey:()=>GJ,Message_AppStateFatalExceptionNotification:()=>VJ,Message_AlbumMessage:()=>zJ,MessageText:()=>m,MessageSecretMessage:()=>oN,MessageKey:()=>x,MessageContextInfo_MessageAddonExpiryType:()=>Bk,MessageContextInfo:()=>x$,MessageAssociation_AssociationType:()=>Rk,MessageAssociation:()=>d8,MessageAddOn_MessageAddOnType:()=>Nk,MessageAddOnContextInfo:()=>F$,MessageAddOn:()=>n8,Message:()=>w,Mention:()=>HJ,MemberLabel:()=>F0,MediaVisibility:()=>uP,MediaRetryNotification_ResultType:()=>Nx,MediaRetryNotification:()=>mY,MediaNotifyMessage:()=>YJ,MediaKeyDomain:()=>pP,MediaEntry_ProgressiveJpegDetails:()=>qJ,MediaEntry_DownloadableThumbnail:()=>XJ,MediaEntry:()=>cN,MediaDomainInfo:()=>JJ,MediaData:()=>w0,Location:()=>ZJ,LocalizedName:()=>QJ,LimitSharing_TriggerType:()=>kx,LimitSharing:()=>V0,LegacyMessage:()=>KJ,LabyrinthWaCommand:()=>jN,LIDMigrationMappingSyncPayload:()=>iY,LIDMigrationMappingSyncMessage:()=>eZ,LIDMigrationMapping:()=>$J,KeyId:()=>P0,KeyExchangeMessage:()=>dN,KeepType:()=>hP,KeepInChat:()=>sZ,InteractiveMessageAdditionalMetadata:()=>aZ,InteractiveAnnotation_StatusLinkType:()=>xx,InteractiveAnnotation:()=>Q0,InlineContact:()=>rZ,InThreadSurveyMetadata_InThreadSurveyQuestion:()=>tZ,InThreadSurveyMetadata_InThreadSurveyPrivacyStatementPart:()=>gZ,InThreadSurveyMetadata_InThreadSurveyOption:()=>mZ,InThreadSurveyMetadata:()=>iZ,IdentityKeyPairStructure:()=>nN,HydratedTemplateButton_HydratedURLButton_WebviewPresentationType:()=>Fx,HydratedTemplateButton_HydratedURLButton:()=>bZ,HydratedTemplateButton_HydratedQuickReplyButton:()=>oZ,HydratedTemplateButton_HydratedCallButton:()=>cZ,HydratedTemplateButton:()=>jZ,HistorySync_HistorySyncType:()=>Px,HistorySync_BotAIWaitListState:()=>Lx,HistorySyncMsg:()=>dZ,HistorySync:()=>bY,HatchMetadataSync:()=>nZ,HandshakeMessage_ServerHello:()=>wZ,HandshakeMessage_HandshakePqMode:()=>Dx,HandshakeMessage_ClientHello:()=>uZ,HandshakeMessage_ClientFinish:()=>pZ,HandshakeMessage:()=>oY,GroupRootKeyShareEntry:()=>lZ,GroupRootKeyShare:()=>hZ,GroupParticipant_Rank:()=>Cx,GroupParticipant:()=>_Z,GroupMention:()=>fZ,GroupHistoryWithMessageBytes:()=>wN,GroupHistoryIndividualMessageInfo:()=>yZ,GroupHistoryBundleInfo_ProcessState:()=>Ux,GroupHistoryBundleInfo:()=>TZ,GroupHistory:()=>uN,GlobalSettings:()=>vZ,ForwardedAIBotMessageInfo:()=>SZ,FingerprintData_HostedState:()=>Gx,FingerprintData:()=>u0,Field_SubfieldEntry:()=>_Y,Field:()=>M0,ExternalBlobReference:()=>W$,ExitCode:()=>M$,EventResponse:()=>IZ,EventAdditionalMetadata:()=>WZ,Epoch0Output:()=>MZ,EphemeralSetting:()=>pN,EncryptedSecretValuesOutput:()=>EZ,EncryptedPairingRequest:()=>lN,EncryptMessageOutput:()=>hN,EncryptMessageInput:()=>AZ,EmbeddedMusic:()=>L0,EmbeddedMessage:()=>OZ,EmbeddedContent:()=>BZ,DisappearingMode_Trigger:()=>Vx,DisappearingMode_Initiator:()=>zx,DisappearingMode:()=>D0,DeviceProps_PlatformType:()=>Hx,DeviceProps_HistorySyncConfig:()=>X$,DeviceProps_AppVersion:()=>RZ,DeviceProps:()=>cY,DeviceOutput:()=>NZ,DeviceListMetadata:()=>kZ,DeviceConsistencyCodeMessage:()=>_N,DeviceCapabilities_UserHasAvatar:()=>xZ,DeviceCapabilities_MemberNameTagPrimarySupport:()=>qx,DeviceCapabilities_LIDMigration:()=>FZ,DeviceCapabilities_ChatLockSupportLevel:()=>Xx,DeviceCapabilities_BusinessBroadcast:()=>PZ,DeviceCapabilities_AiThread_SupportLevel:()=>Yx,DeviceCapabilities_AiThread:()=>LZ,DeviceCapabilities:()=>DZ,DecryptMessageOutput:()=>fN,DecryptMessageInput:()=>CZ,CreateBackupOutput:()=>yN,CreateBackupInput:()=>UZ,Conversation_GroupAppealStatus:()=>Jx,Conversation_EndOfHistoryTransferType:()=>Zx,Conversation:()=>GZ,ContextInfo_UTMInfo:()=>VZ,ContextInfo_StatusSourceType:()=>gF,ContextInfo_StatusAudienceMetadata_AudienceType:()=>Qx,ContextInfo_StatusAudienceMetadata:()=>zZ,ContextInfo_StatusAttributionType:()=>mF,ContextInfo_QuotedType:()=>iF,ContextInfo_QuestionReplyQuotedMessage:()=>HZ,ContextInfo_PartiallySelectedContent:()=>YZ,ContextInfo_PairedMediaType:()=>bF,ContextInfo_ForwardedNewsletterMessageInfo_ContentType:()=>Kx,ContextInfo_ForwardedNewsletterMessageInfo:()=>J$,ContextInfo_ForwardOrigin:()=>oF,ContextInfo_FeatureEligibilities:()=>qZ,ContextInfo_ExternalAdReplyInfo_MediaType:()=>$x,ContextInfo_ExternalAdReplyInfo_AdType:()=>eF,ContextInfo_ExternalAdReplyInfo:()=>XZ,ContextInfo_DataSharingContext_Parameters:()=>g0,ContextInfo_DataSharingContext_DataSharingFlags:()=>sF,ContextInfo_DataSharingContext:()=>JZ,ContextInfo_CrossAppSource:()=>cF,ContextInfo_BusinessMessageForwardInfo:()=>ZZ,ContextInfo_BusinessInteractionPills_SignedPayload:()=>TN,ContextInfo_BusinessInteractionPills_PillType:()=>aF,ContextInfo_BusinessInteractionPills_Pill:()=>Z$,ContextInfo_BusinessInteractionPills_EntryPoint:()=>rF,ContextInfo_BusinessInteractionPills:()=>QZ,ContextInfo_AdReplyInfo_MediaType:()=>tF,ContextInfo_AdReplyInfo:()=>KZ,ContextInfo:()=>A,ConsumerApplication_consumerApplicationExtendedTextMessagePreviewType:()=>jF,ConsumerApplication_ViewOnceMessage:()=>$Z,ConsumerApplication_VideoMessage:()=>Q$,ConsumerApplication_SubProtocolPayload:()=>eQ,ConsumerApplication_StickerMessage:()=>sQ,ConsumerApplication_StatusTextMesage:()=>aQ,ConsumerApplication_Signal:()=>rQ,ConsumerApplication_RevokeMessage:()=>tQ,ConsumerApplication_ReactionMessage:()=>gQ,ConsumerApplication_PollVoteMessage:()=>vN,ConsumerApplication_PollUpdateMessage:()=>mQ,ConsumerApplication_PollEncValue:()=>p0,ConsumerApplication_PollCreationMessage:()=>iQ,ConsumerApplication_PollAddOptionMessage:()=>SN,ConsumerApplication_Point:()=>bQ,ConsumerApplication_Payload:()=>oQ,ConsumerApplication_Option:()=>K$,ConsumerApplication_Metadata:()=>cQ,ConsumerApplication_MediaPayload:()=>IN,ConsumerApplication_LocationMessage:()=>jQ,ConsumerApplication_Location:()=>C0,ConsumerApplication_LiveLocationMessage:()=>dQ,ConsumerApplication_InteractiveAnnotation:()=>WN,ConsumerApplication_ImageMessage:()=>$$,ConsumerApplication_GroupInviteMessage:()=>nQ,ConsumerApplication_ExtendedTextMessage:()=>e0,ConsumerApplication_EditMessage:()=>wQ,ConsumerApplication_DocumentMessage:()=>uQ,ConsumerApplication_Content:()=>pQ,ConsumerApplication_ContactsArrayMessage:()=>lQ,ConsumerApplication_ContactMessage:()=>s0,ConsumerApplication_AudioMessage:()=>hQ,ConsumerApplication_ApplicationData:()=>_Q,ConsumerApplication:()=>MN,Config_FieldEntry:()=>fY,Config:()=>EN,CompanionEphemeralIdentity:()=>AN,CompanionCommitment:()=>fQ,CommentMetadata:()=>yQ,Command:()=>TQ,CombinedFingerprint:()=>ON,CollectionName:()=>fP,ClientPayload_WebInfo_WebdPayload:()=>vQ,ClientPayload_WebInfo_WebSubPlatform:()=>dF,ClientPayload_WebInfo:()=>SQ,ClientPayload_UserAgent_ReleaseChannel:()=>nF,ClientPayload_UserAgent_Platform:()=>wF,ClientPayload_UserAgent_DistributionChannel:()=>uF,ClientPayload_UserAgent_DeviceType:()=>pF,ClientPayload_UserAgent_AppVersion:()=>IQ,ClientPayload_UserAgent:()=>WQ,ClientPayload_TrafficAnonymization:()=>hF,ClientPayload_Product:()=>_F,ClientPayload_InteropData:()=>MQ,ClientPayload_IOSAppExtension:()=>fF,ClientPayload_DevicePairingRegistrationData:()=>EQ,ClientPayload_DNSSource_DNSResolutionMethod:()=>lF,ClientPayload_DNSSource:()=>AQ,ClientPayload_ConnectType:()=>yF,ClientPayload_ConnectReason:()=>TF,ClientPayload_AccountType:()=>vF,ClientPayload:()=>jY,ClientPairingProps:()=>BN,Citation:()=>OQ,ChatRowOpaqueData_DraftMessage_CtwaContextLinkData:()=>BQ,ChatRowOpaqueData_DraftMessage_CtwaContextData_ContextInfoExternalAdReplyInfoMediaType:()=>SF,ChatRowOpaqueData_DraftMessage_CtwaContextData:()=>RQ,ChatRowOpaqueData_DraftMessage:()=>NQ,ChatRowOpaqueData:()=>RN,ChatLockSettings:()=>a0,CertChain_NoiseCertificate_Details:()=>dY,CertChain_NoiseCertificate:()=>E0,CertChain:()=>nY,CallLogRecord_SilenceReason:()=>IF,CallLogRecord_ParticipantInfo:()=>kQ,CallLogRecord_CallType:()=>WF,CallLogRecord_CallResult:()=>MF,CallLogRecord:()=>r0,BotUnifiedResponseMutation_SideBySideMetadata:()=>xQ,BotUnifiedResponseMutation_MediaDetailsMetadata:()=>FQ,BotUnifiedResponseMutation:()=>PQ,BotSuggestedPromptMetadata:()=>LQ,BotSourcesMetadata_BotSourceItem_SourceProvider:()=>EF,BotSourcesMetadata_BotSourceItem:()=>DQ,BotSourcesMetadata:()=>CQ,BotSignatureVerificationUseCaseProof_BotSignatureUseCase:()=>AF,BotSignatureVerificationUseCaseProof:()=>UQ,BotSignatureVerificationMetadata:()=>t0,BotSessionSource:()=>SP,BotSessionMetadata:()=>GQ,BotResolvedToolCallMetadata:()=>VQ,BotRenderingMetadata_Keyword:()=>zQ,BotRenderingMetadata:()=>HQ,BotRenderingConfigMetadata:()=>YQ,BotReminderMetadata_ReminderFrequency:()=>OF,BotReminderMetadata_ReminderAction:()=>BF,BotReminderMetadata:()=>qQ,BotQuotaMetadata_BotFeatureQuotaMetadata_BotFeatureType:()=>RF,BotQuotaMetadata_BotFeatureQuotaMetadata:()=>XQ,BotQuotaMetadata:()=>JQ,BotPttPromptMetadata:()=>ZQ,BotPromptSuggestions:()=>QQ,BotPromptSuggestion:()=>KQ,BotPromotionMessageMetadata_BotPromotionType:()=>NF,BotPromotionMessageMetadata:()=>$Q,BotProgressIndicatorMetadata_BotPlanningStepMetadata_PlanningStepStatus:()=>xF,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotSearchSourceProvider:()=>FF,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningStepSectionMetadata:()=>eK,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata_BotPlanningSearchSourceProvider:()=>kF,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourcesMetadata:()=>sK,BotProgressIndicatorMetadata_BotPlanningStepMetadata_BotPlanningSearchSourceMetadata:()=>aK,BotProgressIndicatorMetadata_BotPlanningStepMetadata:()=>rK,BotProgressIndicatorMetadata:()=>tK,BotPluginMetadata_SearchProvider:()=>PF,BotPluginMetadata_PluginType:()=>LF,BotPluginMetadata:()=>gK,BotModelMetadata_PremiumModelStatus:()=>DF,BotModelMetadata_ModelType:()=>CF,BotModelMetadata:()=>mK,BotModeSelectionMetadata_BotUserSelectionMode:()=>UF,BotModeSelectionMetadata:()=>iK,BotMetricsThreadEntryPoint:()=>IP,BotMetricsMetadata:()=>bK,BotMetricsEntryPoint:()=>WP,BotMetadata:()=>oK,BotMessageSharingInfo:()=>cK,BotMessageOrigin_BotMessageOriginType:()=>GF,BotMessageOriginMetadata:()=>jK,BotMessageOrigin:()=>dK,BotMemuMetadata:()=>nK,BotMemoryMetadata:()=>wK,BotMemoryFact:()=>l0,BotMediaMetadata_OrientationType:()=>VF,BotMediaMetadata:()=>z0,BotLinkedAccountsMetadata:()=>uK,BotLinkedAccount_BotLinkedAccountType:()=>zF,BotLinkedAccount:()=>pK,BotInfrastructureDiagnostics_BotBackend:()=>HF,BotInfrastructureDiagnostics:()=>lK,BotImagineMetadata_ImagineType:()=>YF,BotImagineMetadata:()=>hK,BotGroupParticipantMetadata:()=>_K,BotGroupMetadata:()=>fK,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyResponseEventData:()=>yK,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCardImpressionEventData:()=>TK,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAImpressionEventData:()=>vK,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyCTAClickEventData:()=>SK,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData_SideBySideSurveyAbandonEventData:()=>IK,BotFeedbackMessage_SideBySideSurveyMetadata_SidebySideSurveyMetaAiAnalyticsData:()=>WK,BotFeedbackMessage_SideBySideSurveyMetadata_SideBySideSurveyAnalyticsData:()=>MK,BotFeedbackMessage_SideBySideSurveyMetadata:()=>EK,BotFeedbackMessage_ReportKind:()=>qF,BotFeedbackMessage_BotFeedbackKindMultiplePositive:()=>XF,BotFeedbackMessage_BotFeedbackKindMultipleNegative:()=>JF,BotFeedbackMessage_BotFeedbackKind:()=>ZF,BotFeedbackMessage:()=>AK,BotDocumentMessageMetadata_DocumentPluginType:()=>QF,BotDocumentMessageMetadata:()=>OK,BotCommandMetadata:()=>BK,BotCapabilityMetadata_BotCapabilityType:()=>KF,BotCapabilityMetadata:()=>RK,BotAgentMetadata:()=>NK,BotAgentDeepLinkMetadata:()=>kK,BotAgeCollectionMetadata_AgeCollectionType:()=>$F,BotAgeCollectionMetadata:()=>xK,BizIdentityInfo_VerifiedLevelValue:()=>eP,BizIdentityInfo_HostStorageType:()=>sP,BizIdentityInfo_ActualActorsType:()=>aP,BizIdentityInfo:()=>NN,BizAccountPayload:()=>kN,BizAccountLinkInfo_HostStorageType:()=>rP,BizAccountLinkInfo_AccountType:()=>tP,BizAccountLinkInfo:()=>xN,AvatarUserSettings:()=>FK,AutoDownloadSettings:()=>Y0,ActionLink:()=>PK,AccountLinkingOpaqueData:()=>FN,Account:()=>LK,AIThreadInfo_AIThreadServerInfo:()=>DK,AIThreadInfo_AIThreadClientInfo_AIThreadType:()=>gP,AIThreadInfo_AIThreadClientInfo:()=>CK,AIThreadInfo:()=>UK,AISubscriptionUpsellMetadata:()=>GK,AISubscriptionRequestType:()=>MP,AIRichResponseUnifiedResponse:()=>VK,AIRichResponseTableMetadata_AIRichResponseTableRow:()=>zK,AIRichResponseTableMetadata:()=>HK,AIRichResponseSubMessageType:()=>EP,AIRichResponseSubMessage:()=>YK,AIRichResponseMessageType:()=>AP,AIRichResponseMessage:()=>qK,AIRichResponseMapMetadata_AIRichResponseMapAnnotation:()=>XK,AIRichResponseMapMetadata:()=>JK,AIRichResponseLatexMetadata_AIRichResponseLatexExpression:()=>ZK,AIRichResponseLatexMetadata:()=>QK,AIRichResponseInlineImageMetadata_AIRichResponseImageAlignment:()=>mP,AIRichResponseInlineImageMetadata:()=>KK,AIRichResponseImageURL:()=>H0,AIRichResponseGridImageMetadata:()=>$K,AIRichResponseDynamicMetadata_AIRichResponseDynamicMetadataType:()=>iP,AIRichResponseDynamicMetadata:()=>e$,AIRichResponseContentItemsMetadata_ContentType:()=>bP,AIRichResponseContentItemsMetadata_AIRichResponseReelItem:()=>s$,AIRichResponseContentItemsMetadata_AIRichResponseContentItemMetadata:()=>a$,AIRichResponseContentItemsMetadata:()=>r$,AIRichResponseCodeMetadata_AIRichResponseCodeHighlightType:()=>oP,AIRichResponseCodeMetadata_AIRichResponseCodeBlock:()=>t$,AIRichResponseCodeMetadata:()=>g$,AIRegenerateMetadata:()=>m$,AIQueryFanout:()=>i$,AIMetadataOperation:()=>b$,AIMediaCollectionMetadata:()=>o$,AIMediaCollectionMessage:()=>c$,AIHomeState_AIHomeOption_AIHomeActionType:()=>cP,AIHomeState_AIHomeOption:()=>h0,AIHomeState:()=>PN,ADVSignedKeyIndexList:()=>wY,ADVSignedDeviceIdentityHMAC:()=>uY,ADVSignedDeviceIdentity:()=>pY,ADVKeyIndexList:()=>LN,ADVEncryptionType:()=>OP,ADVDeviceIdentity:()=>lY});function T6(){let $=0,K=0;for(let X=0;X<28;X+=7){let J=this.buf[this.pos++];if($|=(J&127)<<X,(J&128)==0)return this.assertBounds(),[$,K]}let Q=this.buf[this.pos++];if($|=(Q&15)<<28,K=(Q&112)>>4,(Q&128)==0)return this.assertBounds(),[$,K];for(let X=3;X<=31;X+=7){let J=this.buf[this.pos++];if(K|=(J&127)<<X,(J&128)==0)return this.assertBounds(),[$,K]}throw Error("invalid varint")}function vY($,K,Q){for(let Z=0;Z<28;Z=Z+7){let Y=$>>>Z,G=!(Y>>>7==0&&K==0),L=(G?Y|128:Y)&255;if(Q.push(L),!G)return}let X=$>>>28&15|(K&7)<<4,J=K>>3!=0;if(Q.push((J?X|128:X)&255),!J)return;for(let Z=3;Z<31;Z=Z+7){let Y=K>>>Z,G=Y>>>7!=0,L=(G?Y|128:Y)&255;if(Q.push(L),!G)return}Q.push(K>>>31&1)}var SY=4294967296;function Y6($){let K=$[0]==="-";if(K)$=$.slice(1);let Q=1e6,X=0,J=0;function Z(Y,G){let L=Number($.slice(Y,G));if(J*=Q,X=X*Q+L,X>=SY)J=J+(X/SY|0),X=X%SY}return Z(-24,-18),Z(-18,-12),Z(-12,-6),Z(-6),K?f6(X,J):z6(X,J)}function y6($,K){let Q=z6($,K),X=Q.hi&2147483648;if(X)Q=f6(Q.lo,Q.hi);let J=H6(Q.lo,Q.hi);return X?"-"+J:J}function H6($,K){if({lo:$,hi:K}=UB($,K),K<=2097151)return String(SY*K+$);let Q=$&16777215,X=($>>>24|K<<8)&16777215,J=K>>16&65535,Z=Q+X*6777216+J*6710656,Y=X+J*8147497,G=J*2,L=1e7;if(Z>=L)Y+=Math.floor(Z/L),Z%=L;if(Y>=L)G+=Math.floor(Y/L),Y%=L;return G.toString()+v6(Y)+v6(Z)}function UB($,K){return{lo:$>>>0,hi:K>>>0}}function z6($,K){return{lo:$|0,hi:K|0}}function f6($,K){if(K=~K,$)$=~$+1;else K+=1;return z6($,K)}var v6=($)=>{let K=String($);return"0000000".slice(K.length)+K};function V6($,K){if($>=0){while($>127)K.push($&127|128),$=$>>>7;K.push($)}else{for(let Q=0;Q<9;Q++)K.push($&127|128),$=$>>7;K.push(1)}}function _6(){let $=this.buf[this.pos++],K=$&127;if(($&128)==0)return this.assertBounds(),K;if($=this.buf[this.pos++],K|=($&127)<<7,($&128)==0)return this.assertBounds(),K;if($=this.buf[this.pos++],K|=($&127)<<14,($&128)==0)return this.assertBounds(),K;if($=this.buf[this.pos++],K|=($&127)<<21,($&128)==0)return this.assertBounds(),K;$=this.buf[this.pos++],K|=($&15)<<28;for(let Q=5;($&128)!==0&&Q<10;Q++)$=this.buf[this.pos++];if(($&128)!=0)throw Error("invalid varint");return this.assertBounds(),K>>>0}var q0=CB();function CB(){let $=new DataView(new ArrayBuffer(8));if(typeof BigInt==="function"&&typeof $.getBigInt64==="function"&&typeof $.getBigUint64==="function"&&typeof $.setBigInt64==="function"&&typeof $.setBigUint64==="function"&&(!!globalThis.Deno||typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){let Q=BigInt("-9223372036854775808"),X=BigInt("9223372036854775807"),J=BigInt("0"),Z=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(Y){let G=typeof Y=="bigint"?Y:BigInt(Y);if(G>X||G<Q)throw Error(`invalid int64: ${Y}`);return G},uParse(Y){let G=typeof Y=="bigint"?Y:BigInt(Y);if(G>Z||G<J)throw Error(`invalid uint64: ${Y}`);return G},enc(Y){return $.setBigInt64(0,this.parse(Y),!0),{lo:$.getInt32(0,!0),hi:$.getInt32(4,!0)}},uEnc(Y){return $.setBigInt64(0,this.uParse(Y),!0),{lo:$.getInt32(0,!0),hi:$.getInt32(4,!0)}},dec(Y,G){return $.setInt32(0,Y,!0),$.setInt32(4,G,!0),$.getBigInt64(0,!0)},uDec(Y,G){return $.setInt32(0,Y,!0),$.setInt32(4,G,!0),$.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(Q){if(typeof Q!="string")Q=Q.toString();return h6(Q),Q},uParse(Q){if(typeof Q!="string")Q=Q.toString();return l6(Q),Q},enc(Q){if(typeof Q!="string")Q=Q.toString();return h6(Q),Y6(Q)},uEnc(Q){if(typeof Q!="string")Q=Q.toString();return l6(Q),Y6(Q)},dec(Q,X){return y6(Q,X)},uDec(Q,X){return H6(Q,X)}}}function h6($){if(!/^-?[0-9]+$/.test($))throw Error("invalid int64: "+$)}function l6($){if(!/^[0-9]+$/.test($))throw Error("invalid uint64: "+$)}var G6=Symbol.for("@bufbuild/protobuf/text-encoding");function U6(){if(globalThis[G6]==null){let $=new globalThis.TextEncoder,K=new globalThis.TextDecoder,Q;globalThis[G6]={encodeUtf8(X){return $.encode(X)},decodeUtf8(X,J){if(J){if(Q===void 0)Q=new globalThis.TextDecoder("utf-8",{fatal:!0});return Q.decode(X)}return K.decode(X)},checkUtf8(X){try{return encodeURIComponent(X),!0}catch(J){return!1}}}}return globalThis[G6]}var _0;(function($){$[$.Varint=0]="Varint",$[$.Bit64=1]="Bit64",$[$.LengthDelimited=2]="LengthDelimited",$[$.StartGroup=3]="StartGroup",$[$.EndGroup=4]="EndGroup",$[$.Bit32=5]="Bit32"})(_0||(_0={}));var DB=340282346638528860000000000000000000000,LB=-340282346638528860000000000000000000000,PB=4294967295,FB=2147483647,xB=-2147483648;class H{constructor($=U6().encodeUtf8){this.encodeUtf8=$,this.stack=[],this.chunks=[],this.buf=[]}finish(){if(this.buf.length)this.chunks.push(new Uint8Array(this.buf)),this.buf=[];let $=0;for(let X=0;X<this.chunks.length;X++)$+=this.chunks[X].length;let K=new Uint8Array($),Q=0;for(let X=0;X<this.chunks.length;X++)K.set(this.chunks[X],Q),Q+=this.chunks[X].length;return this.chunks=[],K}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let $=this.finish(),K=this.stack.pop();if(!K)throw Error("invalid state, fork stack empty");return this.chunks=K.chunks,this.buf=K.buf,this.uint32($.byteLength),this.raw($)}tag($,K){return this.uint32(($<<3|K)>>>0)}raw($){if(this.buf.length)this.chunks.push(new Uint8Array(this.buf)),this.buf=[];return this.chunks.push($),this}uint32($){p6($);while($>127)this.buf.push($&127|128),$=$>>>7;return this.buf.push($),this}int32($){return C6($),V6($,this.buf),this}bool($){return this.buf.push($?1:0),this}bytes($){return this.uint32($.byteLength),this.raw($)}string($){let K=this.encodeUtf8($);return this.uint32(K.byteLength),this.raw(K)}float($){kB($);let K=new Uint8Array(4);return new DataView(K.buffer).setFloat32(0,$,!0),this.raw(K)}double($){let K=new Uint8Array(8);return new DataView(K.buffer).setFloat64(0,$,!0),this.raw(K)}fixed32($){p6($);let K=new Uint8Array(4);return new DataView(K.buffer).setUint32(0,$,!0),this.raw(K)}sfixed32($){C6($);let K=new Uint8Array(4);return new DataView(K.buffer).setInt32(0,$,!0),this.raw(K)}sint32($){return C6($),$=($<<1^$>>31)>>>0,V6($,this.buf),this}sfixed64($){let K=new Uint8Array(8),Q=new DataView(K.buffer),X=q0.enc($);return Q.setInt32(0,X.lo,!0),Q.setInt32(4,X.hi,!0),this.raw(K)}fixed64($){let K=new Uint8Array(8),Q=new DataView(K.buffer),X=q0.uEnc($);return Q.setInt32(0,X.lo,!0),Q.setInt32(4,X.hi,!0),this.raw(K)}int64($){let K=q0.enc($);return vY(K.lo,K.hi,this.buf),this}sint64($){let K=q0.enc($),Q=K.hi>>31,X=K.lo<<1^Q,J=(K.hi<<1|K.lo>>>31)^Q;return vY(X,J,this.buf),this}uint64($){let K=q0.uEnc($);return vY(K.lo,K.hi,this.buf),this}}class D6{constructor($,K=U6().decodeUtf8){this.decodeUtf8=K,this.varint64=T6,this.uint32=_6,this.buf=$,this.len=$.length,this.pos=0,this.view=new DataView($.buffer,$.byteOffset,$.byteLength)}tag(){let $=this.pos,K=this.uint32(),Q=this.pos-$;if(Q>5||Q==5&&this.buf[this.pos-1]>15)throw Error("illegal tag: varint overflows uint32");let X=K>>>3,J=K&7;if(X<=0||J>5)throw Error("illegal tag: field no "+X+" wire type "+J);return[X,J]}skip($,K){let Q=this.pos;switch($){case _0.Varint:while(this.buf[this.pos++]&128);break;case _0.Bit64:this.pos+=4;case _0.Bit32:this.pos+=4;break;case _0.LengthDelimited:let X=this.uint32();this.pos+=X;break;case _0.StartGroup:for(;;){let[J,Z]=this.tag();if(Z===_0.EndGroup){if(K!==void 0&&J!==K)throw Error("invalid end group tag");break}this.skip(Z,J)}break;default:throw Error("cant skip wire type "+$)}return this.assertBounds(),this.buf.subarray(Q,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let $=this.uint32();return $>>>1^-($&1)}int64(){return q0.dec(...this.varint64())}uint64(){return q0.uDec(...this.varint64())}sint64(){let[$,K]=this.varint64(),Q=-($&1);return $=($>>>1|(K&1)<<31)^Q,K=K>>>1^Q,q0.dec($,K)}bool(){let[$,K]=this.varint64();return $!==0||K!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return q0.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return q0.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let $=this.uint32(),K=this.pos;return this.pos+=$,this.assertBounds(),this.buf.subarray(K,K+$)}string($){return this.decodeUtf8(this.bytes(),$)}}function C6($){if(typeof $=="string")$=Number($);else if(typeof $!="number")throw Error("invalid int32: "+typeof $);if(!Number.isInteger($)||$>FB||$<xB)throw Error("invalid int32: "+$)}function p6($){if(typeof $=="string")$=Number($);else if(typeof $!="number")throw Error("invalid uint32: "+typeof $);if(!Number.isInteger($)||$>PB||$<0)throw Error("invalid uint32: "+$)}function kB($){if(typeof $=="string"){let K=$;if($=Number($),Number.isNaN($)&&K!=="NaN")throw Error("invalid float32: "+K)}else if(typeof $!="number")throw Error("invalid float32: "+typeof $);if(Number.isFinite($)&&($>DB||$<LB))throw Error("invalid float32: "+$)}import{Buffer as NB}from"node:buffer";var w6=32,n6=2**w6,yY=7,TY=1<<yY,RB=TY-1,BB="utf8",OB=Math.floor(Math.log2(Number.MAX_SAFE_INTEGER)/yY)*yY,P6=($)=>{if($>Number.MAX_SAFE_INTEGER)throw Error("Value is larger than Number.MAX_SAFE_INTEGER");if($<Number.MIN_SAFE_INTEGER)throw Error("Value is smaller than Number.MIN_SAFE_INTEGER");return $},u6=($,K)=>P6((K>>>0)*n6+($>>>0)),L6=($,K)=>P6((K|0)*n6+($>>>0));class q extends D6{utf8Buffer;constructor($){super($);this.utf8Buffer=NB.from($.buffer,$.byteOffset,$.byteLength)}string($){if($)return super.string(!0);let K=this.uint32(),Q=this.pos;return this.pos+=K,this.assertBounds(),this.utf8Buffer.toString(BB,Q,this.pos)}bool(){let $=this.buf[this.pos++];if(($&TY)===0)return this.assertBounds(),$!==0;this.pos--;let[K,Q]=this.varint64();return K!==0||Q!==0}positiveSafeVarint(){let $=this.pos,K=0,Q=1;for(let X=0;X<=OB;X+=yY){let J=this.buf[this.pos++];if(K+=(J&RB)*Q,(J&TY)===0)return this.assertBounds(),P6(K);Q*=TY}this.pos=$;return}uint64Number(){let $=this.positiveSafeVarint();if($!==void 0)return $;let[K,Q]=this.varint64();return u6(K,Q)}int64Number(){let $=this.positiveSafeVarint();if($!==void 0)return $;let[K,Q]=this.varint64();return L6(K,Q)}sint64Number(){let[$,K]=this.varint64(),Q=-($&1);return $=($>>>1|(K&1)<<w6-1)^Q,K=K>>>1^Q,L6($,K)}fixed64Number(){return u6(this.sfixed32(),this.sfixed32())}sfixed64Number(){return L6(this.sfixed32(),this.sfixed32())}}var AB="whatsapp",OP;((J)=>{J[J.E2EE=0]="E2EE";J[J.HOSTED=1]="HOSTED";J[J.NON_E2EE=2]="NON_E2EE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OP||={});var AP;((X)=>{X[X.AI_RICH_RESPONSE_TYPE_UNKNOWN=0]="AI_RICH_RESPONSE_TYPE_UNKNOWN";X[X.AI_RICH_RESPONSE_TYPE_STANDARD=1]="AI_RICH_RESPONSE_TYPE_STANDARD";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AP||={});var EP;((y)=>{y[y.AI_RICH_RESPONSE_UNKNOWN=0]="AI_RICH_RESPONSE_UNKNOWN";y[y.AI_RICH_RESPONSE_GRID_IMAGE=1]="AI_RICH_RESPONSE_GRID_IMAGE";y[y.AI_RICH_RESPONSE_TEXT=2]="AI_RICH_RESPONSE_TEXT";y[y.AI_RICH_RESPONSE_INLINE_IMAGE=3]="AI_RICH_RESPONSE_INLINE_IMAGE";y[y.AI_RICH_RESPONSE_TABLE=4]="AI_RICH_RESPONSE_TABLE";y[y.AI_RICH_RESPONSE_CODE=5]="AI_RICH_RESPONSE_CODE";y[y.AI_RICH_RESPONSE_DYNAMIC=6]="AI_RICH_RESPONSE_DYNAMIC";y[y.AI_RICH_RESPONSE_MAP=7]="AI_RICH_RESPONSE_MAP";y[y.AI_RICH_RESPONSE_LATEX=8]="AI_RICH_RESPONSE_LATEX";y[y.AI_RICH_RESPONSE_CONTENT_ITEMS=9]="AI_RICH_RESPONSE_CONTENT_ITEMS";y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EP||={});var MP;((Z)=>{Z[Z.UNSPECIFIED=0]="UNSPECIFIED";Z[Z.THINK_HARD=1]="THINK_HARD";Z[Z.IMAGE_GEN=2]="IMAGE_GEN";Z[Z.VIDEO_GEN=3]="VIDEO_GEN";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MP||={});var WP;((E)=>{E[E.UNDEFINED_ENTRY_POINT=0]="UNDEFINED_ENTRY_POINT";E[E.FAVICON=1]="FAVICON";E[E.CHATLIST=2]="CHATLIST";E[E.AISEARCH_NULL_STATE_PAPER_PLANE=3]="AISEARCH_NULL_STATE_PAPER_PLANE";E[E.AISEARCH_NULL_STATE_SUGGESTION=4]="AISEARCH_NULL_STATE_SUGGESTION";E[E.AISEARCH_TYPE_AHEAD_SUGGESTION=5]="AISEARCH_TYPE_AHEAD_SUGGESTION";E[E.AISEARCH_TYPE_AHEAD_PAPER_PLANE=6]="AISEARCH_TYPE_AHEAD_PAPER_PLANE";E[E.AISEARCH_TYPE_AHEAD_RESULT_CHATLIST=7]="AISEARCH_TYPE_AHEAD_RESULT_CHATLIST";E[E.AISEARCH_TYPE_AHEAD_RESULT_MESSAGES=8]="AISEARCH_TYPE_AHEAD_RESULT_MESSAGES";E[E.AIVOICE_SEARCH_BAR=9]="AIVOICE_SEARCH_BAR";E[E.AIVOICE_FAVICON=10]="AIVOICE_FAVICON";E[E.AISTUDIO=11]="AISTUDIO";E[E.DEEPLINK=12]="DEEPLINK";E[E.NOTIFICATION=13]="NOTIFICATION";E[E.PROFILE_MESSAGE_BUTTON=14]="PROFILE_MESSAGE_BUTTON";E[E.FORWARD=15]="FORWARD";E[E.APP_SHORTCUT=16]="APP_SHORTCUT";E[E.FF_FAMILY=17]="FF_FAMILY";E[E.AI_TAB=18]="AI_TAB";E[E.AI_HOME=19]="AI_HOME";E[E.AI_DEEPLINK_IMMERSIVE=20]="AI_DEEPLINK_IMMERSIVE";E[E.AI_DEEPLINK=21]="AI_DEEPLINK";E[E.META_AI_CHAT_SHORTCUT_AI_STUDIO=22]="META_AI_CHAT_SHORTCUT_AI_STUDIO";E[E.UGC_CHAT_SHORTCUT_AI_STUDIO=23]="UGC_CHAT_SHORTCUT_AI_STUDIO";E[E.NEW_CHAT_AI_STUDIO=24]="NEW_CHAT_AI_STUDIO";E[E.AIVOICE_FAVICON_CALL_HISTORY=25]="AIVOICE_FAVICON_CALL_HISTORY";E[E.ASK_META_AI_CONTEXT_MENU=26]="ASK_META_AI_CONTEXT_MENU";E[E.ASK_META_AI_CONTEXT_MENU_1ON1=27]="ASK_META_AI_CONTEXT_MENU_1ON1";E[E.ASK_META_AI_CONTEXT_MENU_GROUP=28]="ASK_META_AI_CONTEXT_MENU_GROUP";E[E.INVOKE_META_AI_1ON1=29]="INVOKE_META_AI_1ON1";E[E.INVOKE_META_AI_GROUP=30]="INVOKE_META_AI_GROUP";E[E.META_AI_FORWARD=31]="META_AI_FORWARD";E[E.NEW_CHAT_AI_CONTACT=32]="NEW_CHAT_AI_CONTACT";E[E.MESSAGE_QUICK_ACTION_1_ON_1_CHAT=33]="MESSAGE_QUICK_ACTION_1_ON_1_CHAT";E[E.MESSAGE_QUICK_ACTION_GROUP_CHAT=34]="MESSAGE_QUICK_ACTION_GROUP_CHAT";E[E.ATTACHMENT_TRAY_1_ON_1_CHAT=35]="ATTACHMENT_TRAY_1_ON_1_CHAT";E[E.ATTACHMENT_TRAY_GROUP_CHAT=36]="ATTACHMENT_TRAY_GROUP_CHAT";E[E.ASK_META_AI_MEDIA_VIEWER_1ON1=37]="ASK_META_AI_MEDIA_VIEWER_1ON1";E[E.ASK_META_AI_MEDIA_VIEWER_GROUP=38]="ASK_META_AI_MEDIA_VIEWER_GROUP";E[E.MEDIA_PICKER_1_ON_1_CHAT=39]="MEDIA_PICKER_1_ON_1_CHAT";E[E.MEDIA_PICKER_GROUP_CHAT=40]="MEDIA_PICKER_GROUP_CHAT";E[E.ASK_META_AI_NO_SEARCH_RESULTS=41]="ASK_META_AI_NO_SEARCH_RESULTS";E[E.META_AI_SETTINGS=45]="META_AI_SETTINGS";E[E.WEB_INTRO_PANEL=46]="WEB_INTRO_PANEL";E[E.WEB_NAVIGATION_BAR=47]="WEB_NAVIGATION_BAR";E[E.GROUP_MEMBER=54]="GROUP_MEMBER";E[E.CHATLIST_SEARCH=55]="CHATLIST_SEARCH";E[E.NEW_CHAT_LIST=56]="NEW_CHAT_LIST";E[E.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WP||={});var IP;((Y)=>{Y[Y.AI_TAB_THREAD=1]="AI_TAB_THREAD";Y[Y.AI_HOME_THREAD=2]="AI_HOME_THREAD";Y[Y.AI_DEEPLINK_IMMERSIVE_THREAD=3]="AI_DEEPLINK_IMMERSIVE_THREAD";Y[Y.AI_DEEPLINK_THREAD=4]="AI_DEEPLINK_THREAD";Y[Y.ASK_META_AI_CONTEXT_MENU_THREAD=5]="ASK_META_AI_CONTEXT_MENU_THREAD";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IP||={});var SP;((C)=>{C[C.NONE=0]="NONE";C[C.NULL_STATE=1]="NULL_STATE";C[C.TYPEAHEAD=2]="TYPEAHEAD";C[C.USER_INPUT=3]="USER_INPUT";C[C.EMU_FLASH=4]="EMU_FLASH";C[C.EMU_FLASH_FOLLOWUP=5]="EMU_FLASH_FOLLOWUP";C[C.VOICE=6]="VOICE";C[C.AI_HOME_SESSION=7]="AI_HOME_SESSION";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SP||={});var vP;((Z)=>{Z[Z.EVERYONE=1]="EVERYONE";Z[Z.SILENT=2]="SILENT";Z[Z.AI=3]="AI";Z[Z.AI_IMAGINE=4]="AI_IMAGINE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vP||={});var TP;((J)=>{J[J.SMALL=1]="SMALL";J[J.MEDIUM=2]="MEDIUM";J[J.LARGE=3]="LARGE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TP||={});var yP;((G)=>{G[G.SANS_SERIF=0]="SANS_SERIF";G[G.SERIF=1]="SERIF";G[G.NORICAN_REGULAR=2]="NORICAN_REGULAR";G[G.BRYNDAN_WRITE=3]="BRYNDAN_WRITE";G[G.BEBASNEUE_REGULAR=4]="BEBASNEUE_REGULAR";G[G.OSWALD_HEAVY=5]="OSWALD_HEAVY";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yP||={});var fP;((G)=>{G[G.COLLECTION_NAME_UNKNOWN=0]="COLLECTION_NAME_UNKNOWN";G[G.REGULAR=1]="REGULAR";G[G.REGULAR_LOW=2]="REGULAR_LOW";G[G.REGULAR_HIGH=3]="REGULAR_HIGH";G[G.CRITICAL_BLOCK=4]="CRITICAL_BLOCK";G[G.CRITICAL_UNBLOCK_LOW=5]="CRITICAL_UNBLOCK_LOW";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fP||={});var _P;((J)=>{J[J.PLACEHOLDER=0]="PLACEHOLDER";J[J.NO_PLACEHOLDER=1]="NO_PLACEHOLDER";J[J.IGNORE=2]="IGNORE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_P||={});var hP;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.KEEP_FOR_ALL=1]="KEEP_FOR_ALL";J[J.UNDO_KEEP_FOR_ALL=2]="UNDO_KEEP_FOR_ALL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hP||={});var lP;((Q)=>{Q[Q.PROFILE=0]="PROFILE";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lP||={});var pP;((J)=>{J[J.MEDIA_KEY_DOMAIN_UNKNOWN=0]="MEDIA_KEY_DOMAIN_UNKNOWN";J[J.MEDIA_KEY_DOMAIN_E2EE=1]="MEDIA_KEY_DOMAIN_E2EE";J[J.MEDIA_KEY_DOMAIN_NON_E2EE=2]="MEDIA_KEY_DOMAIN_NON_E2EE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pP||={});var uP;((J)=>{J[J.DEFAULT=0]="DEFAULT";J[J.OFF=1]="OFF";J[J.ON=2]="ON";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uP||={});var wP;((P)=>{P[P.STAR_ACTION=2]="STAR_ACTION";P[P.CONTACT_ACTION=3]="CONTACT_ACTION";P[P.MUTE_ACTION=4]="MUTE_ACTION";P[P.PIN_ACTION=5]="PIN_ACTION";P[P.SECURITY_NOTIFICATION_SETTING=6]="SECURITY_NOTIFICATION_SETTING";P[P.PUSH_NAME_SETTING=7]="PUSH_NAME_SETTING";P[P.QUICK_REPLY_ACTION=8]="QUICK_REPLY_ACTION";P[P.RECENT_EMOJI_WEIGHTS_ACTION=11]="RECENT_EMOJI_WEIGHTS_ACTION";P[P.LABEL_MESSAGE_ACTION=13]="LABEL_MESSAGE_ACTION";P[P.LABEL_EDIT_ACTION=14]="LABEL_EDIT_ACTION";P[P.LABEL_ASSOCIATION_ACTION=15]="LABEL_ASSOCIATION_ACTION";P[P.LOCALE_SETTING=16]="LOCALE_SETTING";P[P.ARCHIVE_CHAT_ACTION=17]="ARCHIVE_CHAT_ACTION";P[P.DELETE_MESSAGE_FOR_ME_ACTION=18]="DELETE_MESSAGE_FOR_ME_ACTION";P[P.KEY_EXPIRATION=19]="KEY_EXPIRATION";P[P.MARK_CHAT_AS_READ_ACTION=20]="MARK_CHAT_AS_READ_ACTION";P[P.CLEAR_CHAT_ACTION=21]="CLEAR_CHAT_ACTION";P[P.DELETE_CHAT_ACTION=22]="DELETE_CHAT_ACTION";P[P.UNARCHIVE_CHATS_SETTING=23]="UNARCHIVE_CHATS_SETTING";P[P.PRIMARY_FEATURE=24]="PRIMARY_FEATURE";P[P.ANDROID_UNSUPPORTED_ACTIONS=26]="ANDROID_UNSUPPORTED_ACTIONS";P[P.AGENT_ACTION=27]="AGENT_ACTION";P[P.SUBSCRIPTION_ACTION=28]="SUBSCRIPTION_ACTION";P[P.USER_STATUS_MUTE_ACTION=29]="USER_STATUS_MUTE_ACTION";P[P.TIME_FORMAT_ACTION=30]="TIME_FORMAT_ACTION";P[P.NUX_ACTION=31]="NUX_ACTION";P[P.PRIMARY_VERSION_ACTION=32]="PRIMARY_VERSION_ACTION";P[P.STICKER_ACTION=33]="STICKER_ACTION";P[P.REMOVE_RECENT_STICKER_ACTION=34]="REMOVE_RECENT_STICKER_ACTION";P[P.CHAT_ASSIGNMENT=35]="CHAT_ASSIGNMENT";P[P.CHAT_ASSIGNMENT_OPENED_STATUS=36]="CHAT_ASSIGNMENT_OPENED_STATUS";P[P.PN_FOR_LID_CHAT_ACTION=37]="PN_FOR_LID_CHAT_ACTION";P[P.MARKETING_MESSAGE_ACTION=38]="MARKETING_MESSAGE_ACTION";P[P.MARKETING_MESSAGE_BROADCAST_ACTION=39]="MARKETING_MESSAGE_BROADCAST_ACTION";P[P.EXTERNAL_WEB_BETA_ACTION=40]="EXTERNAL_WEB_BETA_ACTION";P[P.PRIVACY_SETTING_RELAY_ALL_CALLS=41]="PRIVACY_SETTING_RELAY_ALL_CALLS";P[P.CALL_LOG_ACTION=42]="CALL_LOG_ACTION";P[P.UGC_BOT=43]="UGC_BOT";P[P.STATUS_PRIVACY=44]="STATUS_PRIVACY";P[P.BOT_WELCOME_REQUEST_ACTION=45]="BOT_WELCOME_REQUEST_ACTION";P[P.DELETE_INDIVIDUAL_CALL_LOG=46]="DELETE_INDIVIDUAL_CALL_LOG";P[P.LABEL_REORDERING_ACTION=47]="LABEL_REORDERING_ACTION";P[P.PAYMENT_INFO_ACTION=48]="PAYMENT_INFO_ACTION";P[P.CUSTOM_PAYMENT_METHODS_ACTION=49]="CUSTOM_PAYMENT_METHODS_ACTION";P[P.LOCK_CHAT_ACTION=50]="LOCK_CHAT_ACTION";P[P.CHAT_LOCK_SETTINGS=51]="CHAT_LOCK_SETTINGS";P[P.WAMO_USER_IDENTIFIER_ACTION=52]="WAMO_USER_IDENTIFIER_ACTION";P[P.PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION=53]="PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION";P[P.DEVICE_CAPABILITIES=54]="DEVICE_CAPABILITIES";P[P.NOTE_EDIT_ACTION=55]="NOTE_EDIT_ACTION";P[P.FAVORITES_ACTION=56]="FAVORITES_ACTION";P[P.MERCHANT_PAYMENT_PARTNER_ACTION=57]="MERCHANT_PAYMENT_PARTNER_ACTION";P[P.WAFFLE_ACCOUNT_LINK_STATE_ACTION=58]="WAFFLE_ACCOUNT_LINK_STATE_ACTION";P[P.USERNAME_CHAT_START_MODE=59]="USERNAME_CHAT_START_MODE";P[P.NOTIFICATION_ACTIVITY_SETTING_ACTION=60]="NOTIFICATION_ACTIVITY_SETTING_ACTION";P[P.LID_CONTACT_ACTION=61]="LID_CONTACT_ACTION";P[P.CTWA_PER_CUSTOMER_DATA_SHARING_ACTION=62]="CTWA_PER_CUSTOMER_DATA_SHARING_ACTION";P[P.PAYMENT_TOS_ACTION=63]="PAYMENT_TOS_ACTION";P[P.PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION=64]="PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION";P[P.BUSINESS_BROADCAST_ASSOCIATION_ACTION=65]="BUSINESS_BROADCAST_ASSOCIATION_ACTION";P[P.DETECTED_OUTCOMES_STATUS_ACTION=66]="DETECTED_OUTCOMES_STATUS_ACTION";P[P.MAIBA_AI_FEATURES_CONTROL_ACTION=68]="MAIBA_AI_FEATURES_CONTROL_ACTION";P[P.BUSINESS_BROADCAST_LIST_ACTION=69]="BUSINESS_BROADCAST_LIST_ACTION";P[P.MUSIC_USER_ID_ACTION=70]="MUSIC_USER_ID_ACTION";P[P.STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION=71]="STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION";P[P.AVATAR_UPDATED_ACTION=72]="AVATAR_UPDATED_ACTION";P[P.GALAXY_FLOW_ACTION=73]="GALAXY_FLOW_ACTION";P[P.PRIVATE_PROCESSING_SETTING_ACTION=74]="PRIVATE_PROCESSING_SETTING_ACTION";P[P.NEWSLETTER_SAVED_INTERESTS_ACTION=75]="NEWSLETTER_SAVED_INTERESTS_ACTION";P[P.AI_THREAD_RENAME_ACTION=76]="AI_THREAD_RENAME_ACTION";P[P.INTERACTIVE_MESSAGE_ACTION=77]="INTERACTIVE_MESSAGE_ACTION";P[P.SETTINGS_SYNC_ACTION=78]="SETTINGS_SYNC_ACTION";P[P.OUT_CONTACT_ACTION=79]="OUT_CONTACT_ACTION";P[P.NCT_SALT_SYNC_ACTION=80]="NCT_SALT_SYNC_ACTION";P[P.BUSINESS_BROADCAST_CAMPAIGN_ACTION=81]="BUSINESS_BROADCAST_CAMPAIGN_ACTION";P[P.BUSINESS_BROADCAST_INSIGHTS_ACTION=82]="BUSINESS_BROADCAST_INSIGHTS_ACTION";P[P.CUSTOMER_DATA_ACTION=83]="CUSTOMER_DATA_ACTION";P[P.SUBSCRIPTIONS_SYNC_V2_ACTION=84]="SUBSCRIPTIONS_SYNC_V2_ACTION";P[P.THREAD_PIN_ACTION=85]="THREAD_PIN_ACTION";P[P.AUTO_ORGANIZE_BUSINESS_CHAT_SETTING=86]="AUTO_ORGANIZE_BUSINESS_CHAT_SETTING";P[P.BIZ_AI_SETTINGS_NUDGE_ACTION=87]="BIZ_AI_SETTINGS_NUDGE_ACTION";P[P.COEX_V2_VERSION_ACTION=88]="COEX_V2_VERSION_ACTION";P[P.WASA_ROOT_SECRET_ACTION=89]="WASA_ROOT_SECRET_ACTION";P[P.SHARE_OWN_PN=10001]="SHARE_OWN_PN";P[P.BUSINESS_BROADCAST_ACTION=10002]="BUSINESS_BROADCAST_ACTION";P[P.AI_THREAD_DELETE_ACTION=10003]="AI_THREAD_DELETE_ACTION";P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wP||={});var nP;((J)=>{J[J.E2EE_MSG=1]="E2EE_MSG";J[J.NE2EE_SELF=2]="NE2EE_SELF";J[J.NE2EE_OTHER=3]="NE2EE_OTHER";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nP||={});var dP;((X)=>{X[X.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";X[X.NY_AI_SAFETY_DISCLAIMER=1]="NY_AI_SAFETY_DISCLAIMER";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dP||={});var jP;((X)=>{X[X.WEBVIEW=0]="WEBVIEW";X[X.SYSTEM=1]="SYSTEM";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jP||={});var cP;((G)=>{G[G.PROMPT=0]="PROMPT";G[G.CREATE_IMAGE=1]="CREATE_IMAGE";G[G.ANIMATE_PHOTO=2]="ANIMATE_PHOTO";G[G.ANALYZE_FILE=3]="ANALYZE_FILE";G[G.COLLABORATE=4]="COLLABORATE";G[G.OPEN_GREETING_CARD=5]="OPEN_GREETING_CARD";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cP||={});var oP;((G)=>{G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT=0]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD=1]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD=2]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING=3]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER=4]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER";G[G.AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT=5]="AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oP||={});var bP;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.CAROUSEL=1]="CAROUSEL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bP||={});var iP;((J)=>{J[J.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN=0]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN";J[J.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE=1]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE";J[J.AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF=2]="AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iP||={});var mP;((J)=>{J[J.AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED=0]="AI_RICH_RESPONSE_IMAGE_LAYOUT_LEADING_ALIGNED";J[J.AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED=1]="AI_RICH_RESPONSE_IMAGE_LAYOUT_TRAILING_ALIGNED";J[J.AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED=2]="AI_RICH_RESPONSE_IMAGE_LAYOUT_CENTER_ALIGNED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mP||={});var gP;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.DEFAULT=1]="DEFAULT";Z[Z.INCOGNITO=2]="INCOGNITO";Z[Z.SIDE_CHAT=3]="SIDE_CHAT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gP||={});var tP;((Q)=>{Q[Q.ENTERPRISE=0]="ENTERPRISE";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tP||={});var rP;((X)=>{X[X.ON_PREMISE=0]="ON_PREMISE";X[X.FACEBOOK=1]="FACEBOOK";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rP||={});var aP;((X)=>{X[X.SELF=0]="SELF";X[X.BSP=1]="BSP";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aP||={});var sP;((X)=>{X[X.ON_PREMISE=0]="ON_PREMISE";X[X.FACEBOOK=1]="FACEBOOK";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sP||={});var eP;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.LOW=1]="LOW";J[J.HIGH=2]="HIGH";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eP||={});var $F;((X)=>{X[X.O18_BINARY=0]="O18_BINARY";X[X.WAFFLE=1]="WAFFLE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})($F||={});var KF;((R)=>{R[R.UNKNOWN=0]="UNKNOWN";R[R.PROGRESS_INDICATOR=1]="PROGRESS_INDICATOR";R[R.RICH_RESPONSE_HEADING=2]="RICH_RESPONSE_HEADING";R[R.RICH_RESPONSE_NESTED_LIST=3]="RICH_RESPONSE_NESTED_LIST";R[R.AI_MEMORY=4]="AI_MEMORY";R[R.RICH_RESPONSE_THREAD_SURFING=5]="RICH_RESPONSE_THREAD_SURFING";R[R.RICH_RESPONSE_TABLE=6]="RICH_RESPONSE_TABLE";R[R.RICH_RESPONSE_CODE=7]="RICH_RESPONSE_CODE";R[R.RICH_RESPONSE_STRUCTURED_RESPONSE=8]="RICH_RESPONSE_STRUCTURED_RESPONSE";R[R.RICH_RESPONSE_INLINE_IMAGE=9]="RICH_RESPONSE_INLINE_IMAGE";R[R.WA_IG_1P_PLUGIN_RANKING_CONTROL=10]="WA_IG_1P_PLUGIN_RANKING_CONTROL";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_1=11]="WA_IG_1P_PLUGIN_RANKING_UPDATE_1";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_2=12]="WA_IG_1P_PLUGIN_RANKING_UPDATE_2";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_3=13]="WA_IG_1P_PLUGIN_RANKING_UPDATE_3";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_4=14]="WA_IG_1P_PLUGIN_RANKING_UPDATE_4";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_5=15]="WA_IG_1P_PLUGIN_RANKING_UPDATE_5";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_6=16]="WA_IG_1P_PLUGIN_RANKING_UPDATE_6";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_7=17]="WA_IG_1P_PLUGIN_RANKING_UPDATE_7";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_8=18]="WA_IG_1P_PLUGIN_RANKING_UPDATE_8";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_9=19]="WA_IG_1P_PLUGIN_RANKING_UPDATE_9";R[R.WA_IG_1P_PLUGIN_RANKING_UPDATE_10=20]="WA_IG_1P_PLUGIN_RANKING_UPDATE_10";R[R.RICH_RESPONSE_SUB_HEADING=21]="RICH_RESPONSE_SUB_HEADING";R[R.RICH_RESPONSE_GRID_IMAGE=22]="RICH_RESPONSE_GRID_IMAGE";R[R.AI_STUDIO_UGC_MEMORY=23]="AI_STUDIO_UGC_MEMORY";R[R.RICH_RESPONSE_LATEX=24]="RICH_RESPONSE_LATEX";R[R.RICH_RESPONSE_MAPS=25]="RICH_RESPONSE_MAPS";R[R.RICH_RESPONSE_INLINE_REELS=26]="RICH_RESPONSE_INLINE_REELS";R[R.AGENTIC_PLANNING=27]="AGENTIC_PLANNING";R[R.ACCOUNT_LINKING=28]="ACCOUNT_LINKING";R[R.STREAMING_DISAGGREGATION=29]="STREAMING_DISAGGREGATION";R[R.RICH_RESPONSE_GRID_IMAGE_3P=30]="RICH_RESPONSE_GRID_IMAGE_3P";R[R.RICH_RESPONSE_LATEX_INLINE=31]="RICH_RESPONSE_LATEX_INLINE";R[R.QUERY_PLAN=32]="QUERY_PLAN";R[R.PROACTIVE_MESSAGE=33]="PROACTIVE_MESSAGE";R[R.RICH_RESPONSE_UNIFIED_RESPONSE=34]="RICH_RESPONSE_UNIFIED_RESPONSE";R[R.PROMOTION_MESSAGE=35]="PROMOTION_MESSAGE";R[R.SIMPLIFIED_PROFILE_PAGE=36]="SIMPLIFIED_PROFILE_PAGE";R[R.RICH_RESPONSE_SOURCES_IN_MESSAGE=37]="RICH_RESPONSE_SOURCES_IN_MESSAGE";R[R.RICH_RESPONSE_SIDE_BY_SIDE_SURVEY=38]="RICH_RESPONSE_SIDE_BY_SIDE_SURVEY";R[R.RICH_RESPONSE_UNIFIED_TEXT_COMPONENT=39]="RICH_RESPONSE_UNIFIED_TEXT_COMPONENT";R[R.AI_SHARED_MEMORY=40]="AI_SHARED_MEMORY";R[R.RICH_RESPONSE_UNIFIED_SOURCES=41]="RICH_RESPONSE_UNIFIED_SOURCES";R[R.RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS=42]="RICH_RESPONSE_UNIFIED_DOMAIN_CITATIONS";R[R.RICH_RESPONSE_UR_INLINE_REELS_ENABLED=43]="RICH_RESPONSE_UR_INLINE_REELS_ENABLED";R[R.RICH_RESPONSE_UR_MEDIA_GRID_ENABLED=44]="RICH_RESPONSE_UR_MEDIA_GRID_ENABLED";R[R.RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER=45]="RICH_RESPONSE_UR_TIMESTAMP_PLACEHOLDER";R[R.RICH_RESPONSE_IN_APP_SURVEY=46]="RICH_RESPONSE_IN_APP_SURVEY";R[R.AI_RESPONSE_MODEL_BRANDING=47]="AI_RESPONSE_MODEL_BRANDING";R[R.SESSION_TRANSPARENCY_SYSTEM_MESSAGE=48]="SESSION_TRANSPARENCY_SYSTEM_MESSAGE";R[R.RICH_RESPONSE_UR_REASONING=49]="RICH_RESPONSE_UR_REASONING";R[R.RICH_RESPONSE_UR_ZEITGEIST_CITATIONS=50]="RICH_RESPONSE_UR_ZEITGEIST_CITATIONS";R[R.RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL=51]="RICH_RESPONSE_UR_ZEITGEIST_CAROUSEL";R[R.AI_IMAGINE_LOADING_INDICATOR=52]="AI_IMAGINE_LOADING_INDICATOR";R[R.RICH_RESPONSE_UR_IMAGINE=53]="RICH_RESPONSE_UR_IMAGINE";R[R.AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR=54]="AI_IMAGINE_UR_TO_NATIVE_LOADING_INDICATOR";R[R.RICH_RESPONSE_UR_BLOKS_ENABLED=55]="RICH_RESPONSE_UR_BLOKS_ENABLED";R[R.RICH_RESPONSE_INLINE_LINKS_ENABLED=56]="RICH_RESPONSE_INLINE_LINKS_ENABLED";R[R.RICH_RESPONSE_UR_IMAGINE_VIDEO=57]="RICH_RESPONSE_UR_IMAGINE_VIDEO";R[R.JSON_PATCH_STREAMING=58]="JSON_PATCH_STREAMING";R[R.AI_TAB_FORCE_CLIPPY=59]="AI_TAB_FORCE_CLIPPY";R[R.UNIFIED_RESPONSE_EMBEDDED_SCREENS=60]="UNIFIED_RESPONSE_EMBEDDED_SCREENS";R[R.AI_SUBSCRIPTION_ENABLED=61]="AI_SUBSCRIPTION_ENABLED";R[R.UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED=62]="UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED";R[R.UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED=63]="UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED";R[R.AI_RICH_RESPONSE_MAPS_V2_ENABLED=64]="AI_RICH_RESPONSE_MAPS_V2_ENABLED";R[R.AI_SUBSCRIPTION_METERING_ENABLED=65]="AI_SUBSCRIPTION_METERING_ENABLED";R[R.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KF||={});var QF;((X)=>{X[X.TEXT_EXTRACTION=0]="TEXT_EXTRACTION";X[X.OCR_AND_IMAGES=1]="OCR_AND_IMAGES";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QF||={});var ZF;((S)=>{S[S.BOT_FEEDBACK_POSITIVE=0]="BOT_FEEDBACK_POSITIVE";S[S.BOT_FEEDBACK_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_NEGATIVE_GENERIC";S[S.BOT_FEEDBACK_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_NEGATIVE_HELPFUL";S[S.BOT_FEEDBACK_NEGATIVE_INTERESTING=3]="BOT_FEEDBACK_NEGATIVE_INTERESTING";S[S.BOT_FEEDBACK_NEGATIVE_ACCURATE=4]="BOT_FEEDBACK_NEGATIVE_ACCURATE";S[S.BOT_FEEDBACK_NEGATIVE_SAFE=5]="BOT_FEEDBACK_NEGATIVE_SAFE";S[S.BOT_FEEDBACK_NEGATIVE_OTHER=6]="BOT_FEEDBACK_NEGATIVE_OTHER";S[S.BOT_FEEDBACK_NEGATIVE_REFUSED=7]="BOT_FEEDBACK_NEGATIVE_REFUSED";S[S.BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING=8]="BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING";S[S.BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT=9]="BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT";S[S.BOT_FEEDBACK_NEGATIVE_PERSONALIZED=10]="BOT_FEEDBACK_NEGATIVE_PERSONALIZED";S[S.BOT_FEEDBACK_NEGATIVE_CLARITY=11]="BOT_FEEDBACK_NEGATIVE_CLARITY";S[S.BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON=12]="BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON";S[S.BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY=13]="BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY";S[S.BOT_FEEDBACK_NEGATIVE=14]="BOT_FEEDBACK_NEGATIVE";S[S.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZF||={});var JF;((N)=>{N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL=2]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING=4]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE=8]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE=16]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER=32]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED=64]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING=128]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING";N[N.BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT=256]="BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT";N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JF||={});var XF;((Q)=>{Q[Q.BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC=1]="BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XF||={});var qF;((X)=>{X[X.NONE=0]="NONE";X[X.GENERIC=1]="GENERIC";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qF||={});var YF;((Y)=>{Y[Y.UNKNOWN=0]="UNKNOWN";Y[Y.IMAGINE=1]="IMAGINE";Y[Y.MEMU=2]="MEMU";Y[Y.FLASH=3]="FLASH";Y[Y.EDIT=4]="EDIT";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YF||={});var HF;((X)=>{X[X.AAPI=0]="AAPI";X[X.CLIPPY=1]="CLIPPY";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HF||={});var zF;((Q)=>{Q[Q.BOT_LINKED_ACCOUNT_TYPE_1P=0]="BOT_LINKED_ACCOUNT_TYPE_1P";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zF||={});var VF;((J)=>{J[J.CENTER=1]="CENTER";J[J.LEFT=2]="LEFT";J[J.RIGHT=3]="RIGHT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VF||={});var GF;((Q)=>{Q[Q.BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED=0]="BOT_MESSAGE_ORIGIN_TYPE_AI_INITIATED";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GF||={});var UF;((X)=>{X[X.DEFAULT_MODE=0]="DEFAULT_MODE";X[X.THINK_HARD_MODE=1]="THINK_HARD_MODE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UF||={});var CF;((J)=>{J[J.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";J[J.LLAMA_PROD=1]="LLAMA_PROD";J[J.LLAMA_PROD_PREMIUM=2]="LLAMA_PROD_PREMIUM";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CF||={});var DF;((J)=>{J[J.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";J[J.AVAILABLE=1]="AVAILABLE";J[J.QUOTA_EXCEED_LIMIT=2]="QUOTA_EXCEED_LIMIT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DF||={});var LF;((J)=>{J[J.UNKNOWN_PLUGIN=0]="UNKNOWN_PLUGIN";J[J.REELS=1]="REELS";J[J.SEARCH=2]="SEARCH";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(LF||={});var PF;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.BING=1]="BING";Z[Z.GOOGLE=2]="GOOGLE";Z[Z.SUPPORT=3]="SUPPORT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(PF||={});var FF;((Z)=>{Z[Z.UNKNOWN_PROVIDER=0]="UNKNOWN_PROVIDER";Z[Z.OTHER=1]="OTHER";Z[Z.GOOGLE=2]="GOOGLE";Z[Z.BING=3]="BING";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(FF||={});var xF;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.PLANNED=1]="PLANNED";Z[Z.EXECUTING=2]="EXECUTING";Z[Z.FINISHED=3]="FINISHED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xF||={});var kF;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.OTHER=1]="OTHER";Z[Z.GOOGLE=2]="GOOGLE";Z[Z.BING=3]="BING";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kF||={});var NF;((J)=>{J[J.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";J[J.C50=1]="C50";J[J.SURVEY_PLATFORM=2]="SURVEY_PLATFORM";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(NF||={});var RF;((X)=>{X[X.UNKNOWN_FEATURE=0]="UNKNOWN_FEATURE";X[X.REASONING_FEATURE=1]="REASONING_FEATURE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(RF||={});var BF;((Z)=>{Z[Z.NOTIFY=1]="NOTIFY";Z[Z.CREATE=2]="CREATE";Z[Z.DELETE=3]="DELETE";Z[Z.UPDATE=4]="UPDATE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(BF||={});var OF;((Y)=>{Y[Y.ONCE=1]="ONCE";Y[Y.DAILY=2]="DAILY";Y[Y.WEEKLY=3]="WEEKLY";Y[Y.BIWEEKLY=4]="BIWEEKLY";Y[Y.MONTHLY=5]="MONTHLY";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(OF||={});var AF;((Z)=>{Z[Z.UNSPECIFIED=0]="UNSPECIFIED";Z[Z.WA_BOT_MSG=1]="WA_BOT_MSG";Z[Z.WA_TEE_BOT_MSG=2]="WA_TEE_BOT_MSG";Z[Z.P2P_PILLS=3]="P2P_PILLS";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(AF||={});var EF;((Y)=>{Y[Y.UNKNOWN=0]="UNKNOWN";Y[Y.BING=1]="BING";Y[Y.GOOGLE=2]="GOOGLE";Y[Y.SUPPORT=3]="SUPPORT";Y[Y.OTHER=4]="OTHER";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(EF||={});var MF;((I)=>{I[I.CONNECTED=0]="CONNECTED";I[I.REJECTED=1]="REJECTED";I[I.CANCELLED=2]="CANCELLED";I[I.ACCEPTEDELSEWHERE=3]="ACCEPTEDELSEWHERE";I[I.MISSED=4]="MISSED";I[I.INVALID=5]="INVALID";I[I.UNAVAILABLE=6]="UNAVAILABLE";I[I.UPCOMING=7]="UPCOMING";I[I.FAILED=8]="FAILED";I[I.ABANDONED=9]="ABANDONED";I[I.ONGOING=10]="ONGOING";I[I.UNRECOGNIZED=-1]="UNRECOGNIZED"})(MF||={});var WF;((J)=>{J[J.REGULAR=0]="REGULAR";J[J.SCHEDULED_CALL=1]="SCHEDULED_CALL";J[J.VOICE_CHAT=2]="VOICE_CHAT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(WF||={});var IF;((Z)=>{Z[Z.NONE=0]="NONE";Z[Z.SCHEDULED=1]="SCHEDULED";Z[Z.PRIVACY=2]="PRIVACY";Z[Z.LIGHTWEIGHT=3]="LIGHTWEIGHT";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(IF||={});var SF;((J)=>{J[J.NONE=0]="NONE";J[J.IMAGE=1]="IMAGE";J[J.VIDEO=2]="VIDEO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(SF||={});var vF;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.GUEST=1]="GUEST";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vF||={});var TF;((L)=>{L[L.PUSH=0]="PUSH";L[L.USER_ACTIVATED=1]="USER_ACTIVATED";L[L.SCHEDULED=2]="SCHEDULED";L[L.ERROR_RECONNECT=3]="ERROR_RECONNECT";L[L.NETWORK_SWITCH=4]="NETWORK_SWITCH";L[L.PING_RECONNECT=5]="PING_RECONNECT";L[L.UNKNOWN=6]="UNKNOWN";L[L.UNRECOGNIZED=-1]="UNRECOGNIZED"})(TF||={});var yF;((S)=>{S[S.CELLULAR_UNKNOWN=0]="CELLULAR_UNKNOWN";S[S.WIFI_UNKNOWN=1]="WIFI_UNKNOWN";S[S.CELLULAR_EDGE=100]="CELLULAR_EDGE";S[S.CELLULAR_IDEN=101]="CELLULAR_IDEN";S[S.CELLULAR_UMTS=102]="CELLULAR_UMTS";S[S.CELLULAR_EVDO=103]="CELLULAR_EVDO";S[S.CELLULAR_GPRS=104]="CELLULAR_GPRS";S[S.CELLULAR_HSDPA=105]="CELLULAR_HSDPA";S[S.CELLULAR_HSUPA=106]="CELLULAR_HSUPA";S[S.CELLULAR_HSPA=107]="CELLULAR_HSPA";S[S.CELLULAR_CDMA=108]="CELLULAR_CDMA";S[S.CELLULAR_1XRTT=109]="CELLULAR_1XRTT";S[S.CELLULAR_EHRPD=110]="CELLULAR_EHRPD";S[S.CELLULAR_LTE=111]="CELLULAR_LTE";S[S.CELLULAR_HSPAP=112]="CELLULAR_HSPAP";S[S.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yF||={});var fF;((J)=>{J[J.SHARE_EXTENSION=0]="SHARE_EXTENSION";J[J.SERVICE_EXTENSION=1]="SERVICE_EXTENSION";J[J.INTENTS_EXTENSION=2]="INTENTS_EXTENSION";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fF||={});var _F;((Y)=>{Y[Y.WHATSAPP=0]="WHATSAPP";Y[Y.MESSENGER=1]="MESSENGER";Y[Y.INTEROP=2]="INTEROP";Y[Y.INTEROP_MSGR=3]="INTEROP_MSGR";Y[Y.WHATSAPP_LID=4]="WHATSAPP_LID";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_F||={});var hF;((X)=>{X[X.OFF=0]="OFF";X[X.STANDARD=1]="STANDARD";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hF||={});var lF;((C)=>{C[C.SYSTEM=0]="SYSTEM";C[C.GOOGLE=1]="GOOGLE";C[C.HARDCODED=2]="HARDCODED";C[C.OVERRIDE=3]="OVERRIDE";C[C.FALLBACK=4]="FALLBACK";C[C.MNS=5]="MNS";C[C.MNS_SECONDARY=6]="MNS_SECONDARY";C[C.SOCKS_PROXY=7]="SOCKS_PROXY";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lF||={});var pF;((Y)=>{Y[Y.PHONE=0]="PHONE";Y[Y.TABLET=1]="TABLET";Y[Y.DESKTOP=2]="DESKTOP";Y[Y.WEARABLE=3]="WEARABLE";Y[Y.VR=4]="VR";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pF||={});var uF;((Z)=>{Z[Z.APPSTORE=0]="APPSTORE";Z[Z.WEBSITE=1]="WEBSITE";Z[Z.TESTFLIGHT=2]="TESTFLIGHT";Z[Z.INTERNAL=3]="INTERNAL";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uF||={});var wF;((v)=>{v[v.ANDROID=0]="ANDROID";v[v.IOS=1]="IOS";v[v.WINDOWS_PHONE=2]="WINDOWS_PHONE";v[v.BLACKBERRY=3]="BLACKBERRY";v[v.BLACKBERRYX=4]="BLACKBERRYX";v[v.S40=5]="S40";v[v.S60=6]="S60";v[v.PYTHON_CLIENT=7]="PYTHON_CLIENT";v[v.TIZEN=8]="TIZEN";v[v.ENTERPRISE=9]="ENTERPRISE";v[v.SMB_ANDROID=10]="SMB_ANDROID";v[v.KAIOS=11]="KAIOS";v[v.SMB_IOS=12]="SMB_IOS";v[v.WINDOWS=13]="WINDOWS";v[v.WEB=14]="WEB";v[v.PORTAL=15]="PORTAL";v[v.GREEN_ANDROID=16]="GREEN_ANDROID";v[v.GREEN_IPHONE=17]="GREEN_IPHONE";v[v.BLUE_ANDROID=18]="BLUE_ANDROID";v[v.BLUE_IPHONE=19]="BLUE_IPHONE";v[v.FBLITE_ANDROID=20]="FBLITE_ANDROID";v[v.MLITE_ANDROID=21]="MLITE_ANDROID";v[v.IGLITE_ANDROID=22]="IGLITE_ANDROID";v[v.PAGE=23]="PAGE";v[v.MACOS=24]="MACOS";v[v.OCULUS_MSG=25]="OCULUS_MSG";v[v.OCULUS_CALL=26]="OCULUS_CALL";v[v.MILAN=27]="MILAN";v[v.CAPI=28]="CAPI";v[v.WEAROS=29]="WEAROS";v[v.ARDEVICE=30]="ARDEVICE";v[v.VRDEVICE=31]="VRDEVICE";v[v.BLUE_WEB=32]="BLUE_WEB";v[v.IPAD=33]="IPAD";v[v.TEST=34]="TEST";v[v.SMART_GLASSES=35]="SMART_GLASSES";v[v.BLUE_VR=36]="BLUE_VR";v[v.AR_WRIST=37]="AR_WRIST";v[v.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wF||={});var nF;((Z)=>{Z[Z.RELEASE=0]="RELEASE";Z[Z.BETA=1]="BETA";Z[Z.ALPHA=2]="ALPHA";Z[Z.DEBUG=3]="DEBUG";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nF||={});var dF;((G)=>{G[G.WEB_BROWSER=0]="WEB_BROWSER";G[G.APP_STORE=1]="APP_STORE";G[G.WIN_STORE=2]="WIN_STORE";G[G.DARWIN=3]="DARWIN";G[G.WIN32=4]="WIN32";G[G.WIN_HYBRID=5]="WIN_HYBRID";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dF||={});var jF;((X)=>{X[X.NONE=0]="NONE";X[X.VIDEO=1]="VIDEO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jF||={});var cF;((J)=>{J[J.CROSS_APP_SOURCE_UNKNOWN=0]="CROSS_APP_SOURCE_UNKNOWN";J[J.CROSS_APP_SOURCE_INSTAGRAM=1]="CROSS_APP_SOURCE_INSTAGRAM";J[J.CROSS_APP_SOURCE_FACEBOOK=2]="CROSS_APP_SOURCE_FACEBOOK";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cF||={});var oF;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.CHAT=1]="CHAT";G[G.STATUS=2]="STATUS";G[G.CHANNELS=3]="CHANNELS";G[G.META_AI=4]="META_AI";G[G.UGC=5]="UGC";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(oF||={});var bF;((N)=>{N[N.NOT_PAIRED_MEDIA=0]="NOT_PAIRED_MEDIA";N[N.SD_VIDEO_PARENT=1]="SD_VIDEO_PARENT";N[N.HD_VIDEO_CHILD=2]="HD_VIDEO_CHILD";N[N.SD_IMAGE_PARENT=3]="SD_IMAGE_PARENT";N[N.HD_IMAGE_CHILD=4]="HD_IMAGE_CHILD";N[N.MOTION_PHOTO_PARENT=5]="MOTION_PHOTO_PARENT";N[N.MOTION_PHOTO_CHILD=6]="MOTION_PHOTO_CHILD";N[N.HEVC_VIDEO_PARENT=7]="HEVC_VIDEO_PARENT";N[N.HEVC_VIDEO_CHILD=8]="HEVC_VIDEO_CHILD";N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bF||={});var iF;((X)=>{X[X.EXPLICIT=0]="EXPLICIT";X[X.AUTO=1]="AUTO";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(iF||={});var mF;((Y)=>{Y[Y.NONE=0]="NONE";Y[Y.RESHARED_FROM_MENTION=1]="RESHARED_FROM_MENTION";Y[Y.RESHARED_FROM_POST=2]="RESHARED_FROM_POST";Y[Y.RESHARED_FROM_POST_MANY_TIMES=3]="RESHARED_FROM_POST_MANY_TIMES";Y[Y.FORWARDED_FROM_STATUS=4]="FORWARDED_FROM_STATUS";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mF||={});var gF;((G)=>{G[G.IMAGE=0]="IMAGE";G[G.VIDEO=1]="VIDEO";G[G.GIF=2]="GIF";G[G.AUDIO=3]="AUDIO";G[G.TEXT=4]="TEXT";G[G.MUSIC_STANDALONE=5]="MUSIC_STANDALONE";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gF||={});var tF;((J)=>{J[J.NONE=0]="NONE";J[J.IMAGE=1]="IMAGE";J[J.VIDEO=2]="VIDEO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tF||={});var rF;((G)=>{G[G.ENTRY_POINT_UNKNOWN=0]="ENTRY_POINT_UNKNOWN";G[G.P2P_LINK_SHARE=1]="P2P_LINK_SHARE";G[G.CONTACT_CARD_SHARING=2]="CONTACT_CARD_SHARING";G[G.PHONE_NUMBER=3]="PHONE_NUMBER";G[G.STATUS=4]="STATUS";G[G.IN_THREAD_CONTEXT_CARD=5]="IN_THREAD_CONTEXT_CARD";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rF||={});var aF;((M)=>{M[M.UNKNOWN=0]="UNKNOWN";M[M.VIEW_BUSINESS=1]="VIEW_BUSINESS";M[M.CHAT=2]="CHAT";M[M.CALL=3]="CALL";M[M.CATALOG=4]="CATALOG";M[M.CHANNEL=5]="CHANNEL";M[M.BOOK_APPOINTMENT=6]="BOOK_APPOINTMENT";M[M.OFFERS=7]="OFFERS";M[M.BESTSELLERS=8]="BESTSELLERS";M[M.MENU=9]="MENU";M[M.ABOUT=10]="ABOUT";M[M.SHOP=11]="SHOP";M[M.ORDER=12]="ORDER";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(aF||={});var sF;((X)=>{X[X.SHOW_MM_DISCLOSURE_ON_CLICK=1]="SHOW_MM_DISCLOSURE_ON_CLICK";X[X.SHOW_MM_DISCLOSURE_ON_READ=2]="SHOW_MM_DISCLOSURE_ON_READ";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sF||={});var eF;((X)=>{X[X.CTWA=0]="CTWA";X[X.CAWC=1]="CAWC";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(eF||={});var $x;((J)=>{J[J.NONE=0]="NONE";J[J.IMAGE=1]="IMAGE";J[J.VIDEO=2]="VIDEO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})($x||={});var Kx;((J)=>{J[J.UPDATE=1]="UPDATE";J[J.UPDATE_CARD=2]="UPDATE_CARD";J[J.LINK_CARD=3]="LINK_CARD";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Kx||={});var Qx;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.CLOSE_FRIENDS=1]="CLOSE_FRIENDS";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Qx||={});var Zx;((Z)=>{Z[Z.COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY=0]="COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY";Z[Z.COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY=1]="COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY";Z[Z.COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY=2]="COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY";Z[Z.COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS=3]="COMPLETE_ON_DEMAND_SYNC_WITH_MORE_MSG_ON_PRIMARY_BUT_NO_ACCESS";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Zx||={});var Jx;((Z)=>{Z[Z.NO_APPEAL=0]="NO_APPEAL";Z[Z.APPEAL_IN_REVIEW=1]="APPEAL_IN_REVIEW";Z[Z.APPEAL_APPROVED=2]="APPEAL_APPROVED";Z[Z.APPEAL_REJECTED=3]="APPEAL_REJECTED";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jx||={});var Xx;((J)=>{J[J.NONE=0]="NONE";J[J.MINIMAL=1]="MINIMAL";J[J.FULL=2]="FULL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Xx||={});var qx;((J)=>{J[J.DISABLED=0]="DISABLED";J[J.RECEIVER_ENABLED=1]="RECEIVER_ENABLED";J[J.SENDER_ENABLED=2]="SENDER_ENABLED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qx||={});var Yx;((J)=>{J[J.NONE=0]="NONE";J[J.INFRA=1]="INFRA";J[J.FULL=2]="FULL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Yx||={});var Hx;((p)=>{p[p.UNKNOWN=0]="UNKNOWN";p[p.CHROME=1]="CHROME";p[p.FIREFOX=2]="FIREFOX";p[p.IE=3]="IE";p[p.OPERA=4]="OPERA";p[p.SAFARI=5]="SAFARI";p[p.EDGE=6]="EDGE";p[p.DESKTOP=7]="DESKTOP";p[p.IPAD=8]="IPAD";p[p.ANDROID_TABLET=9]="ANDROID_TABLET";p[p.OHANA=10]="OHANA";p[p.ALOHA=11]="ALOHA";p[p.CATALINA=12]="CATALINA";p[p.TCL_TV=13]="TCL_TV";p[p.IOS_PHONE=14]="IOS_PHONE";p[p.IOS_CATALYST=15]="IOS_CATALYST";p[p.ANDROID_PHONE=16]="ANDROID_PHONE";p[p.ANDROID_AMBIGUOUS=17]="ANDROID_AMBIGUOUS";p[p.WEAR_OS=18]="WEAR_OS";p[p.AR_WRIST=19]="AR_WRIST";p[p.AR_DEVICE=20]="AR_DEVICE";p[p.UWP=21]="UWP";p[p.VR=22]="VR";p[p.CLOUD_API=23]="CLOUD_API";p[p.SMARTGLASSES=24]="SMARTGLASSES";p[p.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Hx||={});var zx;((Z)=>{Z[Z.CHANGED_IN_CHAT=0]="CHANGED_IN_CHAT";Z[Z.INITIATED_BY_ME=1]="INITIATED_BY_ME";Z[Z.INITIATED_BY_OTHER=2]="INITIATED_BY_OTHER";Z[Z.BIZ_UPGRADE_FB_HOSTING=3]="BIZ_UPGRADE_FB_HOSTING";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zx||={});var Vx;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.CHAT_SETTING=1]="CHAT_SETTING";G[G.ACCOUNT_SETTING=2]="ACCOUNT_SETTING";G[G.BULK_CHANGE=3]="BULK_CHANGE";G[G.BIZ_SUPPORTS_FB_HOSTING=4]="BIZ_SUPPORTS_FB_HOSTING";G[G.UNKNOWN_GROUPS=5]="UNKNOWN_GROUPS";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Vx||={});var Gx;((X)=>{X[X.E2EE=0]="E2EE";X[X.HOSTED=1]="HOSTED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Gx||={});var Ux;((G)=>{G[G.NOT_INJECTED=0]="NOT_INJECTED";G[G.INJECTED=1]="INJECTED";G[G.INJECTED_PARTIAL=2]="INJECTED_PARTIAL";G[G.INJECTION_FAILED=3]="INJECTION_FAILED";G[G.INJECTION_FAILED_NO_RETRY=4]="INJECTION_FAILED_NO_RETRY";G[G.DEDUPED=5]="DEDUPED";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ux||={});var Cx;((J)=>{J[J.REGULAR=0]="REGULAR";J[J.ADMIN=1]="ADMIN";J[J.SUPERADMIN=2]="SUPERADMIN";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Cx||={});var Dx;((N)=>{N[N.HANDSHAKE_PQ_MODE_UNKNOWN=0]="HANDSHAKE_PQ_MODE_UNKNOWN";N[N.XXKEM=1]="XXKEM";N[N.XXKEM_FS=2]="XXKEM_FS";N[N.WA_CLASSICAL=3]="WA_CLASSICAL";N[N.WA_PQ=4]="WA_PQ";N[N.IKKEM=5]="IKKEM";N[N.IKKEM_FS=6]="IKKEM_FS";N[N.XXKEM_2=7]="XXKEM_2";N[N.IKKEM_2=8]="IKKEM_2";N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Dx||={});var Lx;((X)=>{X[X.IN_WAITLIST=0]="IN_WAITLIST";X[X.AI_AVAILABLE=1]="AI_AVAILABLE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Lx||={});var Px;((L)=>{L[L.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";L[L.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";L[L.FULL=2]="FULL";L[L.RECENT=3]="RECENT";L[L.PUSH_NAME=4]="PUSH_NAME";L[L.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";L[L.ON_DEMAND=6]="ON_DEMAND";L[L.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Px||={});var Fx;((J)=>{J[J.FULL=1]="FULL";J[J.TALL=2]="TALL";J[J.COMPACT=3]="COMPACT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Fx||={});var xx;((J)=>{J[J.RASTERIZED_LINK_PREVIEW=1]="RASTERIZED_LINK_PREVIEW";J[J.RASTERIZED_LINK_TRUNCATED=2]="RASTERIZED_LINK_TRUNCATED";J[J.RASTERIZED_LINK_FULL_URL=3]="RASTERIZED_LINK_FULL_URL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xx||={});var kx;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.CHAT_SETTING=1]="CHAT_SETTING";Z[Z.BIZ_SUPPORTS_FB_HOSTING=2]="BIZ_SUPPORTS_FB_HOSTING";Z[Z.UNKNOWN_GROUP=3]="UNKNOWN_GROUP";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kx||={});var Nx;((Z)=>{Z[Z.GENERAL_ERROR=0]="GENERAL_ERROR";Z[Z.SUCCESS=1]="SUCCESS";Z[Z.NOT_FOUND=2]="NOT_FOUND";Z[Z.DECRYPTION_ERROR=3]="DECRYPTION_ERROR";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Nx||={});var Rx;((N)=>{N[N.INITIAL_BOOTSTRAP=0]="INITIAL_BOOTSTRAP";N[N.INITIAL_STATUS_V3=1]="INITIAL_STATUS_V3";N[N.FULL=2]="FULL";N[N.RECENT=3]="RECENT";N[N.PUSH_NAME=4]="PUSH_NAME";N[N.NON_BLOCKING_DATA=5]="NON_BLOCKING_DATA";N[N.ON_DEMAND=6]="ON_DEMAND";N[N.NO_HISTORY=7]="NO_HISTORY";N[N.MESSAGE_ACCESS_STATUS=8]="MESSAGE_ACCESS_STATUS";N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Rx||={});var Bx;((Y)=>{Y[Y.SENT=0]="SENT";Y[Y.DELIVERED=1]="DELIVERED";Y[Y.READ=2]="READ";Y[Y.REPLIED=3]="REPLIED";Y[Y.QUICK_REPLIED=4]="QUICK_REPLIED";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Bx||={});var Ox;((n)=>{n[n.UPLOAD_STICKER=0]="UPLOAD_STICKER";n[n.SEND_RECENT_STICKER_BOOTSTRAP=1]="SEND_RECENT_STICKER_BOOTSTRAP";n[n.GENERATE_LINK_PREVIEW=2]="GENERATE_LINK_PREVIEW";n[n.HISTORY_SYNC_ON_DEMAND=3]="HISTORY_SYNC_ON_DEMAND";n[n.PLACEHOLDER_MESSAGE_RESEND=4]="PLACEHOLDER_MESSAGE_RESEND";n[n.WAFFLE_LINKING_NONCE_FETCH=5]="WAFFLE_LINKING_NONCE_FETCH";n[n.FULL_HISTORY_SYNC_ON_DEMAND=6]="FULL_HISTORY_SYNC_ON_DEMAND";n[n.COMPANION_META_NONCE_FETCH=7]="COMPANION_META_NONCE_FETCH";n[n.COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY=8]="COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY";n[n.COMPANION_CANONICAL_USER_NONCE_FETCH=9]="COMPANION_CANONICAL_USER_NONCE_FETCH";n[n.HISTORY_SYNC_CHUNK_RETRY=10]="HISTORY_SYNC_CHUNK_RETRY";n[n.GALAXY_FLOW_ACTION=11]="GALAXY_FLOW_ACTION";n[n.BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO=12]="BUSINESS_BROADCAST_INSIGHTS_DELIVERED_TO";n[n.BUSINESS_BROADCAST_INSIGHTS_REFRESH=13]="BUSINESS_BROADCAST_INSIGHTS_REFRESH";n[n.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ox||={});var Ax;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.TEXT=1]="TEXT";J[J.IMAGE=2]="IMAGE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ax||={});var Ex;((X)=>{X[X.POLL=0]="POLL";X[X.QUIZ=1]="QUIZ";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ex||={});var Mx;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.AUDIO=1]="AUDIO";J[J.VIDEO=2]="VIDEO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Mx||={});var Wx;((L)=>{L[L.UNKNOWN=0]="UNKNOWN";L[L.EMPTY=1]="EMPTY";L[L.TEXT=2]="TEXT";L[L.DOCUMENT=3]="DOCUMENT";L[L.IMAGE=4]="IMAGE";L[L.VIDEO=5]="VIDEO";L[L.LOCATION=6]="LOCATION";L[L.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Wx||={});var Ix;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.RESPONSE=1]="RESPONSE";J[J.NATIVE_FLOW=2]="NATIVE_FLOW";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ix||={});var Sx;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.DISPLAY_TEXT=1]="DISPLAY_TEXT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Sx||={});var vx;((C)=>{C[C.CONNECTED=0]="CONNECTED";C[C.MISSED=1]="MISSED";C[C.FAILED=2]="FAILED";C[C.REJECTED=3]="REJECTED";C[C.ACCEPTED_ELSEWHERE=4]="ACCEPTED_ELSEWHERE";C[C.ONGOING=5]="ONGOING";C[C.SILENCED_BY_DND=6]="SILENCED_BY_DND";C[C.SILENCED_UNKNOWN_CALLER=7]="SILENCED_UNKNOWN_CALLER";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vx||={});var Tx;((J)=>{J[J.REGULAR=0]="REGULAR";J[J.SCHEDULED_CALL=1]="SCHEDULED_CALL";J[J.VOICE_CHAT=2]="VOICE_CHAT";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Tx||={});var yx;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.CONTROL_PASSED=1]="CONTROL_PASSED";Z[Z.CONTROL_TAKEN=2]="CONTROL_TAKEN";Z[Z.INFO=3]="INFO";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yx||={});var fx;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.SCHEDULED_MESSAGE=1]="SCHEDULED_MESSAGE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fx||={});var _x;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.GOING=1]="GOING";Z[Z.NOT_GOING=2]="NOT_GOING";Z[Z.MAYBE=3]="MAYBE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_x||={});var hx;((C)=>{C[C.SYSTEM=0]="SYSTEM";C[C.SYSTEM_TEXT=1]="SYSTEM_TEXT";C[C.FB_SCRIPT=2]="FB_SCRIPT";C[C.SYSTEM_BOLD=6]="SYSTEM_BOLD";C[C.MORNINGBREEZE_REGULAR=7]="MORNINGBREEZE_REGULAR";C[C.CALISTOGA_REGULAR=8]="CALISTOGA_REGULAR";C[C.EXO2_EXTRABOLD=9]="EXO2_EXTRABOLD";C[C.COURIERPRIME_BOLD=10]="COURIERPRIME_BOLD";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hx||={});var lx;((Z)=>{Z[Z.DEFAULT=0]="DEFAULT";Z[Z.PARENT=1]="PARENT";Z[Z.SUB=2]="SUB";Z[Z.DEFAULT_SUB=3]="DEFAULT_SUB";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lx||={});var px;((G)=>{G[G.NONE=0]="NONE";G[G.VIDEO=1]="VIDEO";G[G.PLACEHOLDER=4]="PLACEHOLDER";G[G.IMAGE=5]="IMAGE";G[G.PAYMENT_LINKS=6]="PAYMENT_LINKS";G[G.PROFILE=7]="PROFILE";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(px||={});var ux;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.PARENT=1]="PARENT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ux||={});var wx;((X)=>{X[X.GREGORIAN=1]="GREGORIAN";X[X.SOLAR_HIJRI=2]="SOLAR_HIJRI";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wx||={});var nx;((L)=>{L[L.MONDAY=1]="MONDAY";L[L.TUESDAY=2]="TUESDAY";L[L.WEDNESDAY=3]="WEDNESDAY";L[L.THURSDAY=4]="THURSDAY";L[L.FRIDAY=5]="FRIDAY";L[L.SATURDAY=6]="SATURDAY";L[L.SUNDAY=7]="SUNDAY";L[L.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nx||={});var dx;((Z)=>{Z[Z.USER_IMAGE=0]="USER_IMAGE";Z[Z.AI_GENERATED=1]="AI_GENERATED";Z[Z.AI_MODIFIED=2]="AI_MODIFIED";Z[Z.RASTERIZED_TEXT_STATUS=3]="RASTERIZED_TEXT_STATUS";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dx||={});var jx;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.HSCROLL_CARDS=1]="HSCROLL_CARDS";J[J.ALBUM_IMAGE=2]="ALBUM_IMAGE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jx||={});var cx;((Z)=>{Z[Z.UNKNOWN_SURFACE=0]="UNKNOWN_SURFACE";Z[Z.FB=1]="FB";Z[Z.IG=2]="IG";Z[Z.WA=3]="WA";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(cx||={});var ox;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.EXTENSIONS_1=1]="EXTENSIONS_1";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ox||={});var bx;((X)=>{X[X.IMAGE=0]="IMAGE";X[X.PDF=1]="PDF";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bx||={});var ix;((G)=>{G[G.NONE=0]="NONE";G[G.REEL=1]="REEL";G[G.LIVE_VIDEO=2]="LIVE_VIDEO";G[G.LONG_VIDEO=3]="LONG_VIDEO";G[G.SINGLE_IMAGE=4]="SINGLE_IMAGE";G[G.CAROUSEL=5]="CAROUSEL";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ix||={});var mx;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.SINGLE_SELECT=1]="SINGLE_SELECT";J[J.PRODUCT_LIST=2]="PRODUCT_LIST";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mx||={});var gx;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.SINGLE_SELECT=1]="SINGLE_SELECT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gx||={});var tx;((J)=>{J[J.INQUIRY=1]="INQUIRY";J[J.ACCEPTED=2]="ACCEPTED";J[J.DECLINED=3]="DECLINED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tx||={});var rx;((Q)=>{Q[Q.CATALOG=1]="CATALOG";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rx||={});var ax;((X)=>{X[X.DEFAULT=0]="DEFAULT";X[X.MAPPER=1]="MAPPER";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ax||={});var sx;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.FBPAY=1]="FBPAY";Z[Z.NOVI=2]="NOVI";Z[Z.UPI=3]="UPI";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sx||={});var ex;((X)=>{X[X.LINK_PREVIEW=0]="LINK_PREVIEW";X[X.ORDER=1]="ORDER";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ex||={});var $k;((Y)=>{Y[Y.REMINDER_FREQUENCY_UNKNOWN=0]="REMINDER_FREQUENCY_UNKNOWN";Y[Y.WEEKLY=1]="WEEKLY";Y[Y.BI_WEEKLY=2]="BI_WEEKLY";Y[Y.MONTHLY=3]="MONTHLY";Y[Y.QUARTERLY=4]="QUARTERLY";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})($k||={});var Kk;((G)=>{G[G.REMINDER_STATUS_UNKNOWN=0]="REMINDER_STATUS_UNKNOWN";G[G.ACTIVE=1]="ACTIVE";G[G.CANCELLED_BY_CREATOR=2]="CANCELLED_BY_CREATOR";G[G.STOPPED_BY_RECEIVER=3]="STOPPED_BY_RECEIVER";G[G.EXPIRED=4]="EXPIRED";G[G.PAID=5]="PAID";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Kk||={});var Qk;((X)=>{X[X.NOTIFY_LAUNCH=1]="NOTIFY_LAUNCH";X[X.DOWNLOAD_RESPONSES=2]="DOWNLOAD_RESPONSES";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Qk||={});var Zk;((C)=>{C[C.REQUEST_SUCCESS=0]="REQUEST_SUCCESS";C[C.REQUEST_TIME_EXPIRED=1]="REQUEST_TIME_EXPIRED";C[C.DECLINED_SHARING_HISTORY=2]="DECLINED_SHARING_HISTORY";C[C.GENERIC_ERROR=3]="GENERIC_ERROR";C[C.ERROR_REQUEST_ON_NON_SMB_PRIMARY=4]="ERROR_REQUEST_ON_NON_SMB_PRIMARY";C[C.ERROR_HOSTED_DEVICE_NOT_CONNECTED=5]="ERROR_HOSTED_DEVICE_NOT_CONNECTED";C[C.ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET=6]="ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET";C[C.ERROR_MULTI_PROVIDER_NOT_CONFIGURED=7]="ERROR_MULTI_PROVIDER_NOT_CONFIGURED";C[C.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Zk||={});var Jk;((G)=>{G[G.GENERATION_ERROR=1]="GENERATION_ERROR";G[G.CHUNK_CONSUMED=2]="CHUNK_CONSUMED";G[G.TIMEOUT=3]="TIMEOUT";G[G.SESSION_EXHAUSTED=4]="SESSION_EXHAUSTED";G[G.CHUNK_EXHAUSTED=5]="CHUNK_EXHAUSTED";G[G.DUPLICATED_REQUEST=6]="DUPLICATED_REQUEST";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Jk||={});var Xk;((J)=>{J[J.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";J[J.PIN_FOR_ALL=1]="PIN_FOR_ALL";J[J.UNPIN_FOR_ALL=2]="UNPIN_FOR_ALL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Xk||={});var qk;((Q)=>{Q[Q.MASK_LINKED_DEVICES=0]="MASK_LINKED_DEVICES";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qk||={});var Yk;((h)=>{h[h.REVOKE=0]="REVOKE";h[h.EPHEMERAL_SETTING=3]="EPHEMERAL_SETTING";h[h.EPHEMERAL_SYNC_RESPONSE=4]="EPHEMERAL_SYNC_RESPONSE";h[h.HISTORY_SYNC_NOTIFICATION=5]="HISTORY_SYNC_NOTIFICATION";h[h.APP_STATE_SYNC_KEY_SHARE=6]="APP_STATE_SYNC_KEY_SHARE";h[h.APP_STATE_SYNC_KEY_REQUEST=7]="APP_STATE_SYNC_KEY_REQUEST";h[h.MSG_FANOUT_BACKFILL_REQUEST=8]="MSG_FANOUT_BACKFILL_REQUEST";h[h.INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC=9]="INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC";h[h.APP_STATE_FATAL_EXCEPTION_NOTIFICATION=10]="APP_STATE_FATAL_EXCEPTION_NOTIFICATION";h[h.SHARE_PHONE_NUMBER=11]="SHARE_PHONE_NUMBER";h[h.MESSAGE_EDIT=14]="MESSAGE_EDIT";h[h.PEER_DATA_OPERATION_REQUEST_MESSAGE=16]="PEER_DATA_OPERATION_REQUEST_MESSAGE";h[h.PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE=17]="PEER_DATA_OPERATION_REQUEST_RESPONSE_MESSAGE";h[h.REQUEST_WELCOME_MESSAGE=18]="REQUEST_WELCOME_MESSAGE";h[h.BOT_FEEDBACK_MESSAGE=19]="BOT_FEEDBACK_MESSAGE";h[h.MEDIA_NOTIFY_MESSAGE=20]="MEDIA_NOTIFY_MESSAGE";h[h.CLOUD_API_THREAD_CONTROL_NOTIFICATION=21]="CLOUD_API_THREAD_CONTROL_NOTIFICATION";h[h.LID_MIGRATION_MAPPING_SYNC=22]="LID_MIGRATION_MAPPING_SYNC";h[h.REMINDER_MESSAGE=23]="REMINDER_MESSAGE";h[h.BOT_MEMU_ONBOARDING_MESSAGE=24]="BOT_MEMU_ONBOARDING_MESSAGE";h[h.STATUS_MENTION_MESSAGE=25]="STATUS_MENTION_MESSAGE";h[h.STOP_GENERATION_MESSAGE=26]="STOP_GENERATION_MESSAGE";h[h.LIMIT_SHARING=27]="LIMIT_SHARING";h[h.AI_PSI_METADATA=28]="AI_PSI_METADATA";h[h.AI_QUERY_FANOUT=29]="AI_QUERY_FANOUT";h[h.GROUP_MEMBER_LABEL_CHANGE=30]="GROUP_MEMBER_LABEL_CHANGE";h[h.AI_MEDIA_COLLECTION_MESSAGE=31]="AI_MEDIA_COLLECTION_MESSAGE";h[h.MESSAGE_UNSCHEDULE=32]="MESSAGE_UNSCHEDULE";h[h.CHAT_THEME_SETTING=34]="CHAT_THEME_SETTING";h[h.AI_METADATA_OPERATION=35]="AI_METADATA_OPERATION";h[h.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Yk||={});var Hk;((X)=>{X[X.EMPTY=0]="EMPTY";X[X.NON_EMPTY=1]="NON_EMPTY";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Hk||={});var zk;((X)=>{X[X.CHAT_OPEN=0]="CHAT_OPEN";X[X.COMPANION_PAIRING=1]="COMPANION_PAIRING";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zk||={});var Vk;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.VOICE=1]="VOICE";J[J.VIDEO=2]="VIDEO";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Vk||={});var Gk;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.CANCEL=1]="CANCEL";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Gk||={});var Uk;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.EVENT_EDIT=1]="EVENT_EDIT";G[G.MESSAGE_EDIT=2]="MESSAGE_EDIT";G[G.MESSAGE_SCHEDULE=3]="MESSAGE_SCHEDULE";G[G.POLL_EDIT=4]="POLL_EDIT";G[G.POLL_ADD_OPTION=5]="POLL_ADD_OPTION";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Uk||={});var Ck;((X)=>{X[X.PENDING=0]="PENDING";X[X.PAID=1]="PAID";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ck||={});var Dk;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.STATUS_ADD_YOURS=1]="STATUS_ADD_YOURS";Z[Z.STATUS_RESHARE=2]="STATUS_RESHARE";Z[Z.STATUS_QUESTION_ANSWER_RESHARE=3]="STATUS_QUESTION_ANSWER_RESHARE";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Dk||={});var Lk;((Q)=>{Q[Q.QUESTION_ANSWER=1]="QUESTION_ANSWER";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Lk||={});var Pk;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.REACTION=1]="REACTION";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Pk||={});var Fk;((J)=>{J[J.FIRST_PARTY=0]="FIRST_PARTY";J[J.THIRD_PARTY=1]="THIRD_PARTY";J[J.USER_CREATED=2]="USER_CREATED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Fk||={});var xk;((Z)=>{Z[Z.NONE=0]="NONE";Z[Z.GIPHY=1]="GIPHY";Z[Z.TENOR=2]="TENOR";Z[Z.KLIPY=3]="KLIPY";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(xk||={});var kk;((X)=>{X[X.USER_VIDEO=0]="USER_VIDEO";X[X.AI_GENERATED=1]="AI_GENERATED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(kk||={});var Nk;((Y)=>{Y[Y.UNDEFINED=0]="UNDEFINED";Y[Y.REACTION=1]="REACTION";Y[Y.EVENT_RESPONSE=2]="EVENT_RESPONSE";Y[Y.POLL_UPDATE=3]="POLL_UPDATE";Y[Y.PIN_IN_CHAT=4]="PIN_IN_CHAT";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Nk||={});var Rk;((l)=>{l[l.UNKNOWN=0]="UNKNOWN";l[l.MEDIA_ALBUM=1]="MEDIA_ALBUM";l[l.BOT_PLUGIN=2]="BOT_PLUGIN";l[l.EVENT_COVER_IMAGE=3]="EVENT_COVER_IMAGE";l[l.STATUS_POLL=4]="STATUS_POLL";l[l.HD_VIDEO_DUAL_UPLOAD=5]="HD_VIDEO_DUAL_UPLOAD";l[l.STATUS_EXTERNAL_RESHARE=6]="STATUS_EXTERNAL_RESHARE";l[l.MEDIA_POLL=7]="MEDIA_POLL";l[l.STATUS_ADD_YOURS=8]="STATUS_ADD_YOURS";l[l.STATUS_NOTIFICATION=9]="STATUS_NOTIFICATION";l[l.HD_IMAGE_DUAL_UPLOAD=10]="HD_IMAGE_DUAL_UPLOAD";l[l.STICKER_ANNOTATION=11]="STICKER_ANNOTATION";l[l.MOTION_PHOTO=12]="MOTION_PHOTO";l[l.STATUS_LINK_ACTION=13]="STATUS_LINK_ACTION";l[l.VIEW_ALL_REPLIES=14]="VIEW_ALL_REPLIES";l[l.STATUS_ADD_YOURS_AI_IMAGINE=15]="STATUS_ADD_YOURS_AI_IMAGINE";l[l.STATUS_QUESTION=16]="STATUS_QUESTION";l[l.STATUS_ADD_YOURS_DIWALI=17]="STATUS_ADD_YOURS_DIWALI";l[l.STATUS_REACTION=18]="STATUS_REACTION";l[l.HEVC_VIDEO_DUAL_UPLOAD=19]="HEVC_VIDEO_DUAL_UPLOAD";l[l.POLL_ADD_OPTION=20]="POLL_ADD_OPTION";l[l.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Rk||={});var Bk;((X)=>{X[X.STATIC=1]="STATIC";X[X.DEPENDENT_ON_PARENT=2]="DEPENDENT_ON_PARENT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Bk||={});var Ok;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.TEXT=1]="TEXT";J[J.IMAGE=2]="IMAGE";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ok||={});var Ak;((X)=>{X[X.POLL=0]="POLL";X[X.QUIZ=1]="QUIZ";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ak||={});var Ek;((X)=>{X[X.LEFT=0]="LEFT";X[X.REMOVED=1]="REMOVED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ek||={});var Mk;((O)=>{O[O.ANDROID=0]="ANDROID";O[O.SMBA=1]="SMBA";O[O.IPHONE=2]="IPHONE";O[O.SMBI=3]="SMBI";O[O.WEB=4]="WEB";O[O.UWP=5]="UWP";O[O.DARWIN=6]="DARWIN";O[O.IPAD=7]="IPAD";O[O.WEAROS=8]="WEAROS";O[O.WASG=9]="WASG";O[O.WEARM=10]="WEARM";O[O.CAPI=11]="CAPI";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Mk||={});var Wk;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.DEFAULT=1]="DEFAULT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Wk||={});var Ik;((X)=>{X[X.UNKNOWN_CURRENCY=0]="UNKNOWN_CURRENCY";X[X.INR=1]="INR";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Ik||={});var Sk;((O)=>{O[O.UNKNOWN_STATUS=0]="UNKNOWN_STATUS";O[O.PROCESSING=1]="PROCESSING";O[O.SENT=2]="SENT";O[O.NEED_TO_ACCEPT=3]="NEED_TO_ACCEPT";O[O.COMPLETE=4]="COMPLETE";O[O.COULD_NOT_COMPLETE=5]="COULD_NOT_COMPLETE";O[O.REFUNDED=6]="REFUNDED";O[O.EXPIRED=7]="EXPIRED";O[O.REJECTED=8]="REJECTED";O[O.CANCELLED=9]="CANCELLED";O[O.WAITING_FOR_PAYER=10]="WAITING_FOR_PAYER";O[O.WAITING=11]="WAITING";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Sk||={});var vk;((_)=>{_[_.UNKNOWN=0]="UNKNOWN";_[_.PENDING_SETUP=1]="PENDING_SETUP";_[_.PENDING_RECEIVER_SETUP=2]="PENDING_RECEIVER_SETUP";_[_.INIT=3]="INIT";_[_.SUCCESS=4]="SUCCESS";_[_.COMPLETED=5]="COMPLETED";_[_.FAILED=6]="FAILED";_[_.FAILED_RISK=7]="FAILED_RISK";_[_.FAILED_PROCESSING=8]="FAILED_PROCESSING";_[_.FAILED_RECEIVER_PROCESSING=9]="FAILED_RECEIVER_PROCESSING";_[_.FAILED_DA=10]="FAILED_DA";_[_.FAILED_DA_FINAL=11]="FAILED_DA_FINAL";_[_.REFUNDED_TXN=12]="REFUNDED_TXN";_[_.REFUND_FAILED=13]="REFUND_FAILED";_[_.REFUND_FAILED_PROCESSING=14]="REFUND_FAILED_PROCESSING";_[_.REFUND_FAILED_DA=15]="REFUND_FAILED_DA";_[_.EXPIRED_TXN=16]="EXPIRED_TXN";_[_.AUTH_CANCELED=17]="AUTH_CANCELED";_[_.AUTH_CANCEL_FAILED_PROCESSING=18]="AUTH_CANCEL_FAILED_PROCESSING";_[_.AUTH_CANCEL_FAILED=19]="AUTH_CANCEL_FAILED";_[_.COLLECT_INIT=20]="COLLECT_INIT";_[_.COLLECT_SUCCESS=21]="COLLECT_SUCCESS";_[_.COLLECT_FAILED=22]="COLLECT_FAILED";_[_.COLLECT_FAILED_RISK=23]="COLLECT_FAILED_RISK";_[_.COLLECT_REJECTED=24]="COLLECT_REJECTED";_[_.COLLECT_EXPIRED=25]="COLLECT_EXPIRED";_[_.COLLECT_CANCELED=26]="COLLECT_CANCELED";_[_.COLLECT_CANCELLING=27]="COLLECT_CANCELLING";_[_.IN_REVIEW=28]="IN_REVIEW";_[_.REVERSAL_SUCCESS=29]="REVERSAL_SUCCESS";_[_.REVERSAL_PENDING=30]="REVERSAL_PENDING";_[_.REFUND_PENDING=31]="REFUND_PENDING";_[_.UNRECOGNIZED=-1]="UNRECOGNIZED"})(vk||={});var Tk;((J)=>{J[J.UNKNOWN_TYPE=0]="UNKNOWN_TYPE";J[J.PIN_FOR_ALL=1]="PIN_FOR_ALL";J[J.UNPIN_FOR_ALL=2]="UNPIN_FOR_ALL";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(Tk||={});var yk;((Z)=>{Z[Z.UNDEFINED=0]="UNDEFINED";Z[Z.LOW=1]="LOW";Z[Z.MID=2]="MID";Z[Z.HIGH=3]="HIGH";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(yk||={});var fk;((J)=>{J[J.AND=1]="AND";J[J.OR=2]="OR";J[J.NOR=3]="NOR";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(fk||={});var _k;((X)=>{X[X.PASS_BY_DEFAULT=1]="PASS_BY_DEFAULT";X[X.FAIL_BY_DEFAULT=2]="FAIL_BY_DEFAULT";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(_k||={});var hk;((J)=>{J[J.TRUE=1]="TRUE";J[J.FALSE=2]="FALSE";J[J.UNKNOWN=3]="UNKNOWN";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(hk||={});var lk;((O)=>{O[O.UNKNOWN=0]="UNKNOWN";O[O.RESHARE=1]="RESHARE";O[O.EXTERNAL_SHARE=2]="EXTERNAL_SHARE";O[O.MUSIC=3]="MUSIC";O[O.STATUS_MENTION=4]="STATUS_MENTION";O[O.GROUP_STATUS=5]="GROUP_STATUS";O[O.RL_ATTRIBUTION=6]="RL_ATTRIBUTION";O[O.AI_CREATED=7]="AI_CREATED";O[O.LAYOUTS=8]="LAYOUTS";O[O.NEWSLETTER_STATUS=9]="NEWSLETTER_STATUS";O[O.STATUS_CLOSE_SHARING=10]="STATUS_CLOSE_SHARING";O[O.PAID_PARTNERSHIP=11]="PAID_PARTNERSHIP";O[O.UNRECOGNIZED=-1]="UNRECOGNIZED"})(lk||={});var pk;((X)=>{X[X.UNKNOWN=0]="UNKNOWN";X[X.STATUS_MIMICRY=1]="STATUS_MIMICRY";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(pk||={});var uk;((M)=>{M[M.UNKNOWN=0]="UNKNOWN";M[M.INSTAGRAM=1]="INSTAGRAM";M[M.FACEBOOK=2]="FACEBOOK";M[M.MESSENGER=3]="MESSENGER";M[M.SPOTIFY=4]="SPOTIFY";M[M.YOUTUBE=5]="YOUTUBE";M[M.PINTEREST=6]="PINTEREST";M[M.THREADS=7]="THREADS";M[M.APPLE_MUSIC=8]="APPLE_MUSIC";M[M.SHARECHAT=9]="SHARECHAT";M[M.GOOGLE_PHOTOS=10]="GOOGLE_PHOTOS";M[M.SOUNDCLOUD=11]="SOUNDCLOUD";M[M.SHAZAM=12]="SHAZAM";M[M.UNRECOGNIZED=-1]="UNRECOGNIZED"})(uk||={});var wk;((Z)=>{Z[Z.UNKNOWN=0]="UNKNOWN";Z[Z.RAY_BAN_META_GLASSES=1]="RAY_BAN_META_GLASSES";Z[Z.OAKLEY_META_GLASSES=2]="OAKLEY_META_GLASSES";Z[Z.HYPERNOVA_GLASSES=3]="HYPERNOVA_GLASSES";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(wk||={});var nk;((Y)=>{Y[Y.UNKNOWN=0]="UNKNOWN";Y[Y.INTERNAL_RESHARE=1]="INTERNAL_RESHARE";Y[Y.MENTION_RESHARE=2]="MENTION_RESHARE";Y[Y.CHANNEL_RESHARE=3]="CHANNEL_RESHARE";Y[Y.FORWARD=4]="FORWARD";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(nk||={});var dk;((Y)=>{Y[Y.DRAFT=1]="DRAFT";Y[Y.SCHEDULED=2]="SCHEDULED";Y[Y.PROCESSING=3]="PROCESSING";Y[Y.FAILED=4]="FAILED";Y[Y.SENT=5]="SENT";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(dk||={});var jk;((J)=>{J[J.UPDATED=0]="UPDATED";J[J.CREATED=1]="CREATED";J[J.DELETED=2]="DELETED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(jk||={});var ck;((G)=>{G[G.UNKNOWN=0]="UNKNOWN";G[G.INSTRUCTIONS=1]="INSTRUCTIONS";G[G.RESPONSE_SETTINGS=2]="RESPONSE_SETTINGS";G[G.EXAMPLE_RESPONSES=3]="EXAMPLE_RESPONSES";G[G.KNOWLEDGE=4]="KNOWLEDGE";G[G.LEAD_GEN=5]="LEAD_GEN";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ck||={});var ok;((Q)=>{Q[Q.DISABLE_CTA=1]="DISABLE_CTA";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ok||={});var bk;((d)=>{d[d.NONE=0]="NONE";d[d.UNREAD=1]="UNREAD";d[d.GROUPS=2]="GROUPS";d[d.FAVORITES=3]="FAVORITES";d[d.PREDEFINED=4]="PREDEFINED";d[d.CUSTOM=5]="CUSTOM";d[d.COMMUNITY=6]="COMMUNITY";d[d.SERVER_ASSIGNED=7]="SERVER_ASSIGNED";d[d.DRAFTED=8]="DRAFTED";d[d.AI_HANDOFF=9]="AI_HANDOFF";d[d.CHANNELS=10]="CHANNELS";d[d.AI_RESPONDING=11]="AI_RESPONDING";d[d.ARCHIVED=12]="ARCHIVED";d[d.LOCKED=13]="LOCKED";d[d.INVITES=14]="INVITES";d[d.THIRD_PARTY=15]="THIRD_PARTY";d[d.UNRECOGNIZED=-1]="UNRECOGNIZED"})(bk||={});var ik;((J)=>{J[J.ENABLED=0]="ENABLED";J[J.ENABLED_HAS_LEARNING=1]="ENABLED_HAS_LEARNING";J[J.DISABLED=2]="DISABLED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ik||={});var mk;((J)=>{J[J.MUTED=0]="MUTED";J[J.AI_AGENT=1]="AI_AGENT";J[J.SUGGESTIONS=2]="SUGGESTIONS";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(mk||={});var gk;((Q)=>{Q[Q.PERSONALIZED=0]="PERSONALIZED";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(gk||={});var tk;((X)=>{X[X.ACTIVE=0]="ACTIVE";X[X.INACTIVE=1]="INACTIVE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(tk||={});var rk;((X)=>{X[X.UNSTRUCTURED=1]="UNSTRUCTURED";X[X.STRUCTURED=2]="STRUCTURED";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(rk||={});var ak;((Z)=>{Z[Z.DEFAULT_ALL_MESSAGES=0]="DEFAULT_ALL_MESSAGES";Z[Z.ALL_MESSAGES=1]="ALL_MESSAGES";Z[Z.HIGHLIGHTS=2]="HIGHLIGHTS";Z[Z.DEFAULT_HIGHLIGHTS=3]="DEFAULT_HIGHLIGHTS";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ak||={});var sk;((Q)=>{Q[Q.BR_PAY_PRIVACY_POLICY=0]="BR_PAY_PRIVACY_POLICY";Q[Q.UNRECOGNIZED=-1]="UNRECOGNIZED"})(sk||={});var ek;((J)=>{J[J.UNDEFINED=0]="UNDEFINED";J[J.ENABLED=1]="ENABLED";J[J.DISABLED=2]="DISABLED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ek||={});var $N;((Z)=>{Z[Z.DISPLAY_MODE_UNKNOWN=0]="DISPLAY_MODE_UNKNOWN";Z[Z.ALWAYS=1]="ALWAYS";Z[Z.NEVER=2]="NEVER";Z[Z.ONLY_WHEN_APP_IS_OPEN=3]="ONLY_WHEN_APP_IS_OPEN";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})($N||={});var KN;((J)=>{J[J.MEDIA_QUALITY_UNKNOWN=0]="MEDIA_QUALITY_UNKNOWN";J[J.STANDARD=1]="STANDARD";J[J.HD=2]="HD";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(KN||={});var QN;((f)=>{f[f.SETTING_KEY_UNKNOWN=0]="SETTING_KEY_UNKNOWN";f[f.START_AT_LOGIN=1]="START_AT_LOGIN";f[f.MINIMIZE_TO_TRAY=2]="MINIMIZE_TO_TRAY";f[f.LANGUAGE=3]="LANGUAGE";f[f.REPLACE_TEXT_WITH_EMOJI=4]="REPLACE_TEXT_WITH_EMOJI";f[f.BANNER_NOTIFICATION_DISPLAY_MODE=5]="BANNER_NOTIFICATION_DISPLAY_MODE";f[f.UNREAD_COUNTER_BADGE_DISPLAY_MODE=6]="UNREAD_COUNTER_BADGE_DISPLAY_MODE";f[f.IS_MESSAGES_NOTIFICATION_ENABLED=7]="IS_MESSAGES_NOTIFICATION_ENABLED";f[f.IS_CALLS_NOTIFICATION_ENABLED=8]="IS_CALLS_NOTIFICATION_ENABLED";f[f.IS_REACTIONS_NOTIFICATION_ENABLED=9]="IS_REACTIONS_NOTIFICATION_ENABLED";f[f.IS_STATUS_REACTIONS_NOTIFICATION_ENABLED=10]="IS_STATUS_REACTIONS_NOTIFICATION_ENABLED";f[f.IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED=11]="IS_TEXT_PREVIEW_FOR_NOTIFICATION_ENABLED";f[f.DEFAULT_NOTIFICATION_TONE_ID=12]="DEFAULT_NOTIFICATION_TONE_ID";f[f.GROUP_DEFAULT_NOTIFICATION_TONE_ID=13]="GROUP_DEFAULT_NOTIFICATION_TONE_ID";f[f.APP_THEME=14]="APP_THEME";f[f.WALLPAPER_ID=15]="WALLPAPER_ID";f[f.IS_DOODLE_WALLPAPER_ENABLED=16]="IS_DOODLE_WALLPAPER_ENABLED";f[f.FONT_SIZE=17]="FONT_SIZE";f[f.IS_PHOTOS_AUTODOWNLOAD_ENABLED=18]="IS_PHOTOS_AUTODOWNLOAD_ENABLED";f[f.IS_AUDIOS_AUTODOWNLOAD_ENABLED=19]="IS_AUDIOS_AUTODOWNLOAD_ENABLED";f[f.IS_VIDEOS_AUTODOWNLOAD_ENABLED=20]="IS_VIDEOS_AUTODOWNLOAD_ENABLED";f[f.IS_DOCUMENTS_AUTODOWNLOAD_ENABLED=21]="IS_DOCUMENTS_AUTODOWNLOAD_ENABLED";f[f.DISABLE_LINK_PREVIEWS=22]="DISABLE_LINK_PREVIEWS";f[f.NOTIFICATION_TONE_ID=23]="NOTIFICATION_TONE_ID";f[f.MEDIA_UPLOAD_QUALITY=24]="MEDIA_UPLOAD_QUALITY";f[f.IS_SPELL_CHECK_ENABLED=25]="IS_SPELL_CHECK_ENABLED";f[f.IS_ENTER_TO_SEND_ENABLED=26]="IS_ENTER_TO_SEND_ENABLED";f[f.IS_GROUP_MESSAGE_NOTIFICATION_ENABLED=27]="IS_GROUP_MESSAGE_NOTIFICATION_ENABLED";f[f.IS_GROUP_REACTIONS_NOTIFICATION_ENABLED=28]="IS_GROUP_REACTIONS_NOTIFICATION_ENABLED";f[f.IS_STATUS_NOTIFICATION_ENABLED=29]="IS_STATUS_NOTIFICATION_ENABLED";f[f.STATUS_NOTIFICATION_TONE_ID=30]="STATUS_NOTIFICATION_TONE_ID";f[f.SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION=31]="SHOULD_PLAY_SOUND_FOR_CALL_NOTIFICATION";f[f.CHAT_THEME_ID=32]="CHAT_THEME_ID";f[f.COLOR_SCHEME_ID=33]="COLOR_SCHEME_ID";f[f.UNRECOGNIZED=-1]="UNRECOGNIZED"})(QN||={});var ZN;((Y)=>{Y[Y.PLATFORM_UNKNOWN=0]="PLATFORM_UNKNOWN";Y[Y.WEB=1]="WEB";Y[Y.HYBRID=2]="HYBRID";Y[Y.WINDOWS=3]="WINDOWS";Y[Y.MAC=4]="MAC";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(ZN||={});var JN;((Y)=>{Y[Y.ALLOW_LIST=0]="ALLOW_LIST";Y[Y.DENY_LIST=1]="DENY_LIST";Y[Y.CONTACTS=2]="CONTACTS";Y[Y.CLOSE_FRIENDS=3]="CLOSE_FRIENDS";Y[Y.CUSTOM_LIST=4]="CUSTOM_LIST";Y[Y.UNRECOGNIZED=-1]="UNRECOGNIZED"})(JN||={});var XN;((X)=>{X[X.LID=1]="LID";X[X.PN=2]="PN";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(XN||={});var qN;((J)=>{J[J.ACTIVE=0]="ACTIVE";J[J.PAUSED=1]="PAUSED";J[J.UNLINKED=2]="UNLINKED";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(qN||={});var YN;((X)=>{X[X.SET=0]="SET";X[X.REMOVE=1]="REMOVE";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(YN||={});var HN;((J)=>{J[J.UNKNOWN=0]="UNKNOWN";J[J.VIEW_REPLIES=1]="VIEW_REPLIES";J[J.AI_THREAD=2]="AI_THREAD";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(HN||={});var zN;((X)=>{X[X.UTF8=0]="UTF8";X[X.UTF8_BROKEN=1]="UTF8_BROKEN";X[X.UNRECOGNIZED=-1]="UNRECOGNIZED"})(zN||={});var VN;((J)=>{J[J.NONE=0]="NONE";J[J.PBKDF2_HMAC_SHA512=1]="PBKDF2_HMAC_SHA512";J[J.PBKDF2_HMAC_SHA384=2]="PBKDF2_HMAC_SHA384";J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"})(VN||={});var GN;((Z)=>{Z[Z.NOT_STARTED=0]="NOT_STARTED";Z[Z.FORCE_UPGRADE=1]="FORCE_UPGRADE";Z[Z.DEVELOPMENT=2]="DEVELOPMENT";Z[Z.PRODUCTION=3]="PRODUCTION";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(GN||={});var UN;((Z)=>{Z[Z.E2EE=0]="E2EE";Z[Z.FB=2]="FB";Z[Z.BSP=1]="BSP";Z[Z.BSP_AND_FB=3]="BSP_AND_FB";Z[Z.UNRECOGNIZED=-1]="UNRECOGNIZED"})(UN||={});var CN;((G)=>{G[G.ERROR=0]="ERROR";G[G.PENDING=1]="PENDING";G[G.SERVER_ACK=2]="SERVER_ACK";G[G.DELIVERY_ACK=3]="DELIVERY_ACK";G[G.READ=4]="READ";G[G.PLAYED=5]="PLAYED";G[G.UNRECOGNIZED=-1]="UNRECOGNIZED"})(CN||={});var DN;((V)=>{V[V.UNKNOWN=0]="UNKNOWN";V[V.REVOKE=1]="REVOKE";V[V.CIPHERTEXT=2]="CIPHERTEXT";V[V.FUTUREPROOF=3]="FUTUREPROOF";V[V.NON_VERIFIED_TRANSITION=4]="NON_VERIFIED_TRANSITION";V[V.UNVERIFIED_TRANSITION=5]="UNVERIFIED_TRANSITION";V[V.VERIFIED_TRANSITION=6]="VERIFIED_TRANSITION";V[V.VERIFIED_LOW_UNKNOWN=7]="VERIFIED_LOW_UNKNOWN";V[V.VERIFIED_HIGH=8]="VERIFIED_HIGH";V[V.VERIFIED_INITIAL_UNKNOWN=9]="VERIFIED_INITIAL_UNKNOWN";V[V.VERIFIED_INITIAL_LOW=10]="VERIFIED_INITIAL_LOW";V[V.VERIFIED_INITIAL_HIGH=11]="VERIFIED_INITIAL_HIGH";V[V.VERIFIED_TRANSITION_ANY_TO_NONE=12]="VERIFIED_TRANSITION_ANY_TO_NONE";V[V.VERIFIED_TRANSITION_ANY_TO_HIGH=13]="VERIFIED_TRANSITION_ANY_TO_HIGH";V[V.VERIFIED_TRANSITION_HIGH_TO_LOW=14]="VERIFIED_TRANSITION_HIGH_TO_LOW";V[V.VERIFIED_TRANSITION_HIGH_TO_UNKNOWN=15]="VERIFIED_TRANSITION_HIGH_TO_UNKNOWN";V[V.VERIFIED_TRANSITION_UNKNOWN_TO_LOW=16]="VERIFIED_TRANSITION_UNKNOWN_TO_LOW";V[V.VERIFIED_TRANSITION_LOW_TO_UNKNOWN=17]="VERIFIED_TRANSITION_LOW_TO_UNKNOWN";V[V.VERIFIED_TRANSITION_NONE_TO_LOW=18]="VERIFIED_TRANSITION_NONE_TO_LOW";V[V.VERIFIED_TRANSITION_NONE_TO_UNKNOWN=19]="VERIFIED_TRANSITION_NONE_TO_UNKNOWN";V[V.GROUP_CREATE=20]="GROUP_CREATE";V[V.GROUP_CHANGE_SUBJECT=21]="GROUP_CHANGE_SUBJECT";V[V.GROUP_CHANGE_ICON=22]="GROUP_CHANGE_ICON";V[V.GROUP_CHANGE_INVITE_LINK=23]="GROUP_CHANGE_INVITE_LINK";V[V.GROUP_CHANGE_DESCRIPTION=24]="GROUP_CHANGE_DESCRIPTION";V[V.GROUP_CHANGE_RESTRICT=25]="GROUP_CHANGE_RESTRICT";V[V.GROUP_CHANGE_ANNOUNCE=26]="GROUP_CHANGE_ANNOUNCE";V[V.GROUP_PARTICIPANT_ADD=27]="GROUP_PARTICIPANT_ADD";V[V.GROUP_PARTICIPANT_REMOVE=28]="GROUP_PARTICIPANT_REMOVE";V[V.GROUP_PARTICIPANT_PROMOTE=29]="GROUP_PARTICIPANT_PROMOTE";V[V.GROUP_PARTICIPANT_DEMOTE=30]="GROUP_PARTICIPANT_DEMOTE";V[V.GROUP_PARTICIPANT_INVITE=31]="GROUP_PARTICIPANT_INVITE";V[V.GROUP_PARTICIPANT_LEAVE=32]="GROUP_PARTICIPANT_LEAVE";V[V.GROUP_PARTICIPANT_CHANGE_NUMBER=33]="GROUP_PARTICIPANT_CHANGE_NUMBER";V[V.BROADCAST_CREATE=34]="BROADCAST_CREATE";V[V.BROADCAST_ADD=35]="BROADCAST_ADD";V[V.BROADCAST_REMOVE=36]="BROADCAST_REMOVE";V[V.GENERIC_NOTIFICATION=37]="GENERIC_NOTIFICATION";V[V.E2E_IDENTITY_CHANGED=38]="E2E_IDENTITY_CHANGED";V[V.E2E_ENCRYPTED=39]="E2E_ENCRYPTED";V[V.CALL_MISSED_VOICE=40]="CALL_MISSED_VOICE";V[V.CALL_MISSED_VIDEO=41]="CALL_MISSED_VIDEO";V[V.INDIVIDUAL_CHANGE_NUMBER=42]="INDIVIDUAL_CHANGE_NUMBER";V[V.GROUP_DELETE=43]="GROUP_DELETE";V[V.GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE=44]="GROUP_ANNOUNCE_MODE_MESSAGE_BOUNCE";V[V.CALL_MISSED_GROUP_VOICE=45]="CALL_MISSED_GROUP_VOICE";V[V.CALL_MISSED_GROUP_VIDEO=46]="CALL_MISSED_GROUP_VIDEO";V[V.PAYMENT_CIPHERTEXT=47]="PAYMENT_CIPHERTEXT";V[V.PAYMENT_FUTUREPROOF=48]="PAYMENT_FUTUREPROOF";V[V.PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED=49]="PAYMENT_TRANSACTION_STATUS_UPDATE_FAILED";V[V.PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED=50]="PAYMENT_TRANSACTION_STATUS_UPDATE_REFUNDED";V[V.PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED=51]="PAYMENT_TRANSACTION_STATUS_UPDATE_REFUND_FAILED";V[V.PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP=52]="PAYMENT_TRANSACTION_STATUS_RECEIVER_PENDING_SETUP";V[V.PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP=53]="PAYMENT_TRANSACTION_STATUS_RECEIVER_SUCCESS_AFTER_HICCUP";V[V.PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER=54]="PAYMENT_ACTION_ACCOUNT_SETUP_REMINDER";V[V.PAYMENT_ACTION_SEND_PAYMENT_REMINDER=55]="PAYMENT_ACTION_SEND_PAYMENT_REMINDER";V[V.PAYMENT_ACTION_SEND_PAYMENT_INVITATION=56]="PAYMENT_ACTION_SEND_PAYMENT_INVITATION";V[V.PAYMENT_ACTION_REQUEST_DECLINED=57]="PAYMENT_ACTION_REQUEST_DECLINED";V[V.PAYMENT_ACTION_REQUEST_EXPIRED=58]="PAYMENT_ACTION_REQUEST_EXPIRED";V[V.PAYMENT_ACTION_REQUEST_CANCELLED=59]="PAYMENT_ACTION_REQUEST_CANCELLED";V[V.BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM=60]="BIZ_VERIFIED_TRANSITION_TOP_TO_BOTTOM";V[V.BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP=61]="BIZ_VERIFIED_TRANSITION_BOTTOM_TO_TOP";V[V.BIZ_INTRO_TOP=62]="BIZ_INTRO_TOP";V[V.BIZ_INTRO_BOTTOM=63]="BIZ_INTRO_BOTTOM";V[V.BIZ_NAME_CHANGE=64]="BIZ_NAME_CHANGE";V[V.BIZ_MOVE_TO_CONSUMER_APP=65]="BIZ_MOVE_TO_CONSUMER_APP";V[V.BIZ_TWO_TIER_MIGRATION_TOP=66]="BIZ_TWO_TIER_MIGRATION_TOP";V[V.BIZ_TWO_TIER_MIGRATION_BOTTOM=67]="BIZ_TWO_TIER_MIGRATION_BOTTOM";V[V.OVERSIZED=68]="OVERSIZED";V[V.GROUP_CHANGE_NO_FREQUENTLY_FORWARDED=69]="GROUP_CHANGE_NO_FREQUENTLY_FORWARDED";V[V.GROUP_V4_ADD_INVITE_SENT=70]="GROUP_V4_ADD_INVITE_SENT";V[V.GROUP_PARTICIPANT_ADD_REQUEST_JOIN=71]="GROUP_PARTICIPANT_ADD_REQUEST_JOIN";V[V.CHANGE_EPHEMERAL_SETTING=72]="CHANGE_EPHEMERAL_SETTING";V[V.E2E_DEVICE_CHANGED=73]="E2E_DEVICE_CHANGED";V[V.VIEWED_ONCE=74]="VIEWED_ONCE";V[V.E2E_ENCRYPTED_NOW=75]="E2E_ENCRYPTED_NOW";V[V.BLUE_MSG_BSP_FB_TO_BSP_PREMISE=76]="BLUE_MSG_BSP_FB_TO_BSP_PREMISE";V[V.BLUE_MSG_BSP_FB_TO_SELF_FB=77]="BLUE_MSG_BSP_FB_TO_SELF_FB";V[V.BLUE_MSG_BSP_FB_TO_SELF_PREMISE=78]="BLUE_MSG_BSP_FB_TO_SELF_PREMISE";V[V.BLUE_MSG_BSP_FB_UNVERIFIED=79]="BLUE_MSG_BSP_FB_UNVERIFIED";V[V.BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=80]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";V[V.BLUE_MSG_BSP_FB_VERIFIED=81]="BLUE_MSG_BSP_FB_VERIFIED";V[V.BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=82]="BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";V[V.BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE=83]="BLUE_MSG_BSP_PREMISE_TO_SELF_PREMISE";V[V.BLUE_MSG_BSP_PREMISE_UNVERIFIED=84]="BLUE_MSG_BSP_PREMISE_UNVERIFIED";V[V.BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=85]="BLUE_MSG_BSP_PREMISE_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";V[V.BLUE_MSG_BSP_PREMISE_VERIFIED=86]="BLUE_MSG_BSP_PREMISE_VERIFIED";V[V.BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=87]="BLUE_MSG_BSP_PREMISE_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";V[V.BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED=88]="BLUE_MSG_CONSUMER_TO_BSP_FB_UNVERIFIED";V[V.BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED=89]="BLUE_MSG_CONSUMER_TO_BSP_PREMISE_UNVERIFIED";V[V.BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED=90]="BLUE_MSG_CONSUMER_TO_SELF_FB_UNVERIFIED";V[V.BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED=91]="BLUE_MSG_CONSUMER_TO_SELF_PREMISE_UNVERIFIED";V[V.BLUE_MSG_SELF_FB_TO_BSP_PREMISE=92]="BLUE_MSG_SELF_FB_TO_BSP_PREMISE";V[V.BLUE_MSG_SELF_FB_TO_SELF_PREMISE=93]="BLUE_MSG_SELF_FB_TO_SELF_PREMISE";V[V.BLUE_MSG_SELF_FB_UNVERIFIED=94]="BLUE_MSG_SELF_FB_UNVERIFIED";V[V.BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED=95]="BLUE_MSG_SELF_FB_UNVERIFIED_TO_SELF_PREMISE_VERIFIED";V[V.BLUE_MSG_SELF_FB_VERIFIED=96]="BLUE_MSG_SELF_FB_VERIFIED";V[V.BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED=97]="BLUE_MSG_SELF_FB_VERIFIED_TO_SELF_PREMISE_UNVERIFIED";V[V.BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE=98]="BLUE_MSG_SELF_PREMISE_TO_BSP_PREMISE";V[V.BLUE_MSG_SELF_PREMISE_UNVERIFIED=99]="BLUE_MSG_SELF_PREMISE_UNVERIFIED";V[V.BLUE_MSG_SELF_PREMISE_VERIFIED=100]="BLUE_MSG_SELF_PREMISE_VERIFIED";V[V.BLUE_MSG_TO_BSP_FB=101]="BLUE_MSG_TO_BSP_FB";V[V.BLUE_MSG_TO_CONSUMER=102]="BLUE_MSG_TO_CONSUMER";V[V.BLUE_MSG_TO_SELF_FB=103]="BLUE_MSG_TO_SELF_FB";V[V.BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED=104]="BLUE_MSG_UNVERIFIED_TO_BSP_FB_VERIFIED";V[V.BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=105]="BLUE_MSG_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";V[V.BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED=106]="BLUE_MSG_UNVERIFIED_TO_SELF_FB_VERIFIED";V[V.BLUE_MSG_UNVERIFIED_TO_VERIFIED=107]="BLUE_MSG_UNVERIFIED_TO_VERIFIED";V[V.BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED=108]="BLUE_MSG_VERIFIED_TO_BSP_FB_UNVERIFIED";V[V.BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=109]="BLUE_MSG_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";V[V.BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED=110]="BLUE_MSG_VERIFIED_TO_SELF_FB_UNVERIFIED";V[V.BLUE_MSG_VERIFIED_TO_UNVERIFIED=111]="BLUE_MSG_VERIFIED_TO_UNVERIFIED";V[V.BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=112]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";V[V.BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED=113]="BLUE_MSG_BSP_FB_UNVERIFIED_TO_SELF_FB_VERIFIED";V[V.BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=114]="BLUE_MSG_BSP_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";V[V.BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED=115]="BLUE_MSG_BSP_FB_VERIFIED_TO_SELF_FB_UNVERIFIED";V[V.BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED=116]="BLUE_MSG_SELF_FB_UNVERIFIED_TO_BSP_PREMISE_VERIFIED";V[V.BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED=117]="BLUE_MSG_SELF_FB_VERIFIED_TO_BSP_PREMISE_UNVERIFIED";V[V.E2E_IDENTITY_UNAVAILABLE=118]="E2E_IDENTITY_UNAVAILABLE";V[V.GROUP_CREATING=119]="GROUP_CREATING";V[V.GROUP_CREATE_FAILED=120]="GROUP_CREATE_FAILED";V[V.GROUP_BOUNCED=121]="GROUP_BOUNCED";V[V.BLOCK_CONTACT=122]="BLOCK_CONTACT";V[V.EPHEMERAL_SETTING_NOT_APPLIED=123]="EPHEMERAL_SETTING_NOT_APPLIED";V[V.SYNC_FAILED=124]="SYNC_FAILED";V[V.SYNCING=125]="SYNCING";V[V.BIZ_PRIVACY_MODE_INIT_FB=126]="BIZ_PRIVACY_MODE_INIT_FB";V[V.BIZ_PRIVACY_MODE_INIT_BSP=127]="BIZ_PRIVACY_MODE_INIT_BSP";V[V.BIZ_PRIVACY_MODE_TO_FB=128]="BIZ_PRIVACY_MODE_TO_FB";V[V.BIZ_PRIVACY_MODE_TO_BSP=129]="BIZ_PRIVACY_MODE_TO_BSP";V[V.DISAPPEARING_MODE=130]="DISAPPEARING_MODE";V[V.E2E_DEVICE_FETCH_FAILED=131]="E2E_DEVICE_FETCH_FAILED";V[V.ADMIN_REVOKE=132]="ADMIN_REVOKE";V[V.GROUP_INVITE_LINK_GROWTH_LOCKED=133]="GROUP_INVITE_LINK_GROWTH_LOCKED";V[V.COMMUNITY_LINK_PARENT_GROUP=134]="COMMUNITY_LINK_PARENT_GROUP";V[V.COMMUNITY_LINK_SIBLING_GROUP=135]="COMMUNITY_LINK_SIBLING_GROUP";V[V.COMMUNITY_LINK_SUB_GROUP=136]="COMMUNITY_LINK_SUB_GROUP";V[V.COMMUNITY_UNLINK_PARENT_GROUP=137]="COMMUNITY_UNLINK_PARENT_GROUP";V[V.COMMUNITY_UNLINK_SIBLING_GROUP=138]="COMMUNITY_UNLINK_SIBLING_GROUP";V[V.COMMUNITY_UNLINK_SUB_GROUP=139]="COMMUNITY_UNLINK_SUB_GROUP";V[V.GROUP_PARTICIPANT_ACCEPT=140]="GROUP_PARTICIPANT_ACCEPT";V[V.GROUP_PARTICIPANT_LINKED_GROUP_JOIN=141]="GROUP_PARTICIPANT_LINKED_GROUP_JOIN";V[V.COMMUNITY_CREATE=142]="COMMUNITY_CREATE";V[V.EPHEMERAL_KEEP_IN_CHAT=143]="EPHEMERAL_KEEP_IN_CHAT";V[V.GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST=144]="GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST";V[V.GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE=145]="GROUP_MEMBERSHIP_JOIN_APPROVAL_MODE";V[V.INTEGRITY_UNLINK_PARENT_GROUP=146]="INTEGRITY_UNLINK_PARENT_GROUP";V[V.COMMUNITY_PARTICIPANT_PROMOTE=147]="COMMUNITY_PARTICIPANT_PROMOTE";V[V.COMMUNITY_PARTICIPANT_DEMOTE=148]="COMMUNITY_PARTICIPANT_DEMOTE";V[V.COMMUNITY_PARENT_GROUP_DELETED=149]="COMMUNITY_PARENT_GROUP_DELETED";V[V.COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL=150]="COMMUNITY_LINK_PARENT_GROUP_MEMBERSHIP_APPROVAL";V[V.GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP=151]="GROUP_PARTICIPANT_JOINED_GROUP_AND_PARENT_GROUP";V[V.MASKED_THREAD_CREATED=152]="MASKED_THREAD_CREATED";V[V.MASKED_THREAD_UNMASKED=153]="MASKED_THREAD_UNMASKED";V[V.BIZ_CHAT_ASSIGNMENT=154]="BIZ_CHAT_ASSIGNMENT";V[V.CHAT_PSA=155]="CHAT_PSA";V[V.CHAT_POLL_CREATION_MESSAGE=156]="CHAT_POLL_CREATION_MESSAGE";V[V.CAG_MASKED_THREAD_CREATED=157]="CAG_MASKED_THREAD_CREATED";V[V.COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED=158]="COMMUNITY_PARENT_GROUP_SUBJECT_CHANGED";V[V.CAG_INVITE_AUTO_ADD=159]="CAG_INVITE_AUTO_ADD";V[V.BIZ_CHAT_ASSIGNMENT_UNASSIGN=160]="BIZ_CHAT_ASSIGNMENT_UNASSIGN";V[V.CAG_INVITE_AUTO_JOINED=161]="CAG_INVITE_AUTO_JOINED";V[V.SCHEDULED_CALL_START_MESSAGE=162]="SCHEDULED_CALL_START_MESSAGE";V[V.COMMUNITY_INVITE_RICH=163]="COMMUNITY_INVITE_RICH";V[V.COMMUNITY_INVITE_AUTO_ADD_RICH=164]="COMMUNITY_INVITE_AUTO_ADD_RICH";V[V.SUB_GROUP_INVITE_RICH=165]="SUB_GROUP_INVITE_RICH";V[V.SUB_GROUP_PARTICIPANT_ADD_RICH=166]="SUB_GROUP_PARTICIPANT_ADD_RICH";V[V.COMMUNITY_LINK_PARENT_GROUP_RICH=167]="COMMUNITY_LINK_PARENT_GROUP_RICH";V[V.COMMUNITY_PARTICIPANT_ADD_RICH=168]="COMMUNITY_PARTICIPANT_ADD_RICH";V[V.SILENCED_UNKNOWN_CALLER_AUDIO=169]="SILENCED_UNKNOWN_CALLER_AUDIO";V[V.SILENCED_UNKNOWN_CALLER_VIDEO=170]="SILENCED_UNKNOWN_CALLER_VIDEO";V[V.GROUP_MEMBER_ADD_MODE=171]="GROUP_MEMBER_ADD_MODE";V[V.GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD=172]="GROUP_MEMBERSHIP_JOIN_APPROVAL_REQUEST_NON_ADMIN_ADD";V[V.COMMUNITY_CHANGE_DESCRIPTION=173]="COMMUNITY_CHANGE_DESCRIPTION";V[V.SENDER_INVITE=174]="SENDER_INVITE";V[V.RECEIVER_INVITE=175]="RECEIVER_INVITE";V[V.COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS=176]="COMMUNITY_ALLOW_MEMBER_ADDED_GROUPS";V[V.PINNED_MESSAGE_IN_CHAT=177]="PINNED_MESSAGE_IN_CHAT";V[V.PAYMENT_INVITE_SETUP_INVITER=178]="PAYMENT_INVITE_SETUP_INVITER";V[V.PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY=179]="PAYMENT_INVITE_SETUP_INVITEE_RECEIVE_ONLY";V[V.PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE=180]="PAYMENT_INVITE_SETUP_INVITEE_SEND_AND_RECEIVE";V[V.LINKED_GROUP_CALL_START=181]="LINKED_GROUP_CALL_START";V[V.REPORT_TO_ADMIN_ENABLED_STATUS=182]="REPORT_TO_ADMIN_ENABLED_STATUS";V[V.EMPTY_SUBGROUP_CREATE=183]="EMPTY_SUBGROUP_CREATE";V[V.SCHEDULED_CALL_CANCEL=184]="SCHEDULED_CALL_CANCEL";V[V.SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH=185]="SUBGROUP_ADMIN_TRIGGERED_AUTO_ADD_RICH";V[V.GROUP_CHANGE_RECENT_HISTORY_SHARING=186]="GROUP_CHANGE_RECENT_HISTORY_SHARING";V[V.PAID_MESSAGE_SERVER_CAMPAIGN_ID=187]="PAID_MESSAGE_SERVER_CAMPAIGN_ID";V[V.GENERAL_CHAT_CREATE=188]="GENERAL_CHAT_CREATE";V[V.GENERAL_CHAT_ADD=189]="GENERAL_CHAT_ADD";V[V.GENERAL_CHAT_AUTO_ADD_DISABLED=190]="GENERAL_CHAT_AUTO_ADD_DISABLED";V[V.SUGGESTED_SUBGROUP_ANNOUNCE=191]="SUGGESTED_SUBGROUP_ANNOUNCE";V[V.BIZ_BOT_1P_MESSAGING_ENABLED=192]="BIZ_BOT_1P_MESSAGING_ENABLED";V[V.CHANGE_USERNAME=193]="CHANGE_USERNAME";V[V.BIZ_COEX_PRIVACY_INIT_SELF=194]="BIZ_COEX_PRIVACY_INIT_SELF";V[V.BIZ_COEX_PRIVACY_TRANSITION_SELF=195]="BIZ_COEX_PRIVACY_TRANSITION_SELF";V[V.SUPPORT_AI_EDUCATION=196]="SUPPORT_AI_EDUCATION";V[V.BIZ_BOT_3P_MESSAGING_ENABLED=197]="BIZ_BOT_3P_MESSAGING_ENABLED";V[V.REMINDER_SETUP_MESSAGE=198]="REMINDER_SETUP_MESSAGE";V[V.REMINDER_SENT_MESSAGE=199]="REMINDER_SENT_MESSAGE";V[V.REMINDER_CANCEL_MESSAGE=200]="REMINDER_CANCEL_MESSAGE";V[V.BIZ_COEX_PRIVACY_INIT=201]="BIZ_COEX_PRIVACY_INIT";V[V.BIZ_COEX_PRIVACY_TRANSITION=202]="BIZ_COEX_PRIVACY_TRANSITION";V[V.GROUP_DEACTIVATED=203]="GROUP_DEACTIVATED";V[V.COMMUNITY_DEACTIVATE_SIBLING_GROUP=204]="COMMUNITY_DEACTIVATE_SIBLING_GROUP";V[V.EVENT_UPDATED=205]="EVENT_UPDATED";V[V.EVENT_CANCELED=206]="EVENT_CANCELED";V[V.COMMUNITY_OWNER_UPDATED=207]="COMMUNITY_OWNER_UPDATED";V[V.COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN=208]="COMMUNITY_SUB_GROUP_VISIBILITY_HIDDEN";V[V.CAPI_GROUP_NE2EE_SYSTEM_MESSAGE=209]="CAPI_GROUP_NE2EE_SYSTEM_MESSAGE";V[V.STATUS_MENTION=210]="STATUS_MENTION";V[V.USER_CONTROLS_SYSTEM_MESSAGE=211]="USER_CONTROLS_SYSTEM_MESSAGE";V[V.SUPPORT_SYSTEM_MESSAGE=212]="SUPPORT_SYSTEM_MESSAGE";V[V.CHANGE_LID=213]="CHANGE_LID";V[V.BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE=214]="BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_IN_MESSAGE";V[V.BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE=215]="BIZ_CUSTOMER_3PD_DATA_SHARING_OPT_OUT_MESSAGE";V[V.CHANGE_LIMIT_SHARING=216]="CHANGE_LIMIT_SHARING";V[V.GROUP_MEMBER_LINK_MODE=217]="GROUP_MEMBER_LINK_MODE";V[V.BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE=218]="BIZ_AUTOMATICALLY_LABELED_CHAT_SYSTEM_MESSAGE";V[V.PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE=219]="PHONE_NUMBER_HIDING_CHAT_DEPRECATED_MESSAGE";V[V.QUARANTINED_MESSAGE=220]="QUARANTINED_MESSAGE";V[V.GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE=221]="GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE";V[V.GROUP_OPEN_BOT_ADDED=222]="GROUP_OPEN_BOT_ADDED";V[V.GROUP_TEE_BOT_ADDED=223]="GROUP_TEE_BOT_ADDED";V[V.CONTACT_INFO=224]="CONTACT_INFO";V[V.SCHEDULED_MESSAGE_CREATED=225]="SCHEDULED_MESSAGE_CREATED";V[V.IDENTITY_TRUST_MARKED=226]="IDENTITY_TRUST_MARKED";V[V.IDENTITY_TRUST_UNMARKED=227]="IDENTITY_TRUST_UNMARKED";V[V.IDENTITY_TRUST_REVOKED=228]="IDENTITY_TRUST_REVOKED";V[V.CTWA_CONSUMER_DISCLOSURE=230]="CTWA_CONSUMER_DISCLOSURE";V[V.UNRECOGNIZED=-1]="UNRECOGNIZED"})(DN||={});function d6(){return{}}var lY={encode($,K=new H){if($.rawId!==void 0)K.uint32(8).uint32($.rawId);if($.timestamp!==void 0)K.uint32(16).uint64($.timestamp);if($.keyIndex!==void 0)K.uint32(24).uint32($.keyIndex);if($.accountType!==void 0)K.uint32(32).int32($.accountType);if($.deviceType!==void 0)K.uint32(40).int32($.deviceType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=d6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.rawId=Q.uint32();continue}case 2:{if(Z!==16)break;J.timestamp=Q.uint64Number();continue}case 3:{if(Z!==24)break;J.keyIndex=Q.uint32();continue}case 4:{if(Z!==32)break;J.accountType=Q.int32();continue}case 5:{if(Z!==40)break;J.deviceType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lY.fromPartial($??{})},fromPartial($){let K=d6();return K.rawId=$.rawId??void 0,K.timestamp=$.timestamp??void 0,K.keyIndex=$.keyIndex??void 0,K.accountType=$.accountType??void 0,K.deviceType=$.deviceType??void 0,K}};function j6(){return{}}var LN={encode($,K=new H){if($.rawId!==void 0)K.uint32(8).uint32($.rawId);if($.timestamp!==void 0)K.uint32(16).uint64($.timestamp);if($.currentIndex!==void 0)K.uint32(24).uint32($.currentIndex);if($.validIndexes!==void 0&&$.validIndexes.length!==0){K.uint32(34).fork();for(let Q of $.validIndexes)K.uint32(Q);K.join()}if($.accountType!==void 0)K.uint32(40).int32($.accountType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=j6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.rawId=Q.uint32();continue}case 2:{if(Z!==16)break;J.timestamp=Q.uint64Number();continue}case 3:{if(Z!==24)break;J.currentIndex=Q.uint32();continue}case 4:{if(Z===32){if(J.validIndexes===void 0)J.validIndexes=[];J.validIndexes.push(Q.uint32());continue}if(Z===34){if(J.validIndexes===void 0)J.validIndexes=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.validIndexes.push(Q.uint32());continue}break}case 5:{if(Z!==40)break;J.accountType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LN.fromPartial($??{})},fromPartial($){let K=j6();return K.rawId=$.rawId??void 0,K.timestamp=$.timestamp??void 0,K.currentIndex=$.currentIndex??void 0,K.validIndexes=$.validIndexes?.map((Q)=>Q)||void 0,K.accountType=$.accountType??void 0,K}};function c6(){return{}}var pY={encode($,K=new H){if($.details!==void 0)K.uint32(10).bytes($.details);if($.accountSignatureKey!==void 0)K.uint32(18).bytes($.accountSignatureKey);if($.accountSignature!==void 0)K.uint32(26).bytes($.accountSignature);if($.deviceSignature!==void 0)K.uint32(34).bytes($.deviceSignature);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=c6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.details=Q.bytes();continue}case 2:{if(Z!==18)break;J.accountSignatureKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.accountSignature=Q.bytes();continue}case 4:{if(Z!==34)break;J.deviceSignature=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pY.fromPartial($??{})},fromPartial($){let K=c6();return K.details=$.details??void 0,K.accountSignatureKey=$.accountSignatureKey??void 0,K.accountSignature=$.accountSignature??void 0,K.deviceSignature=$.deviceSignature??void 0,K}};function o6(){return{}}var uY={encode($,K=new H){if($.details!==void 0)K.uint32(10).bytes($.details);if($.hmac!==void 0)K.uint32(18).bytes($.hmac);if($.accountType!==void 0)K.uint32(24).int32($.accountType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=o6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.details=Q.bytes();continue}case 2:{if(Z!==18)break;J.hmac=Q.bytes();continue}case 3:{if(Z!==24)break;J.accountType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uY.fromPartial($??{})},fromPartial($){let K=o6();return K.details=$.details??void 0,K.hmac=$.hmac??void 0,K.accountType=$.accountType??void 0,K}};function b6(){return{}}var wY={encode($,K=new H){if($.details!==void 0)K.uint32(10).bytes($.details);if($.accountSignature!==void 0)K.uint32(18).bytes($.accountSignature);if($.accountSignatureKey!==void 0)K.uint32(26).bytes($.accountSignatureKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=b6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.details=Q.bytes();continue}case 2:{if(Z!==18)break;J.accountSignature=Q.bytes();continue}case 3:{if(Z!==26)break;J.accountSignatureKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wY.fromPartial($??{})},fromPartial($){let K=b6();return K.details=$.details??void 0,K.accountSignature=$.accountSignature??void 0,K.accountSignatureKey=$.accountSignatureKey??void 0,K}};function i6(){return{}}var PN={encode($,K=new H){if($.lastFetchTime!==void 0)K.uint32(8).int64($.lastFetchTime);if($.capabilityOptions!==void 0&&$.capabilityOptions.length!==0)for(let Q of $.capabilityOptions)h0.encode(Q,K.uint32(18).fork()).join();if($.conversationOptions!==void 0&&$.conversationOptions.length!==0)for(let Q of $.conversationOptions)h0.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=i6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.lastFetchTime=Q.int64Number();continue}case 2:{if(Z!==18)break;if(J.capabilityOptions===void 0)J.capabilityOptions=[];let Y=h0.decode(Q,Q.uint32());if(Y!==void 0)J.capabilityOptions.push(Y);continue}case 3:{if(Z!==26)break;if(J.conversationOptions===void 0)J.conversationOptions=[];let Y=h0.decode(Q,Q.uint32());if(Y!==void 0)J.conversationOptions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PN.fromPartial($??{})},fromPartial($){let K=i6();return K.lastFetchTime=$.lastFetchTime??void 0,K.capabilityOptions=$.capabilityOptions?.map((Q)=>h0.fromPartial(Q))||void 0,K.conversationOptions=$.conversationOptions?.map((Q)=>h0.fromPartial(Q))||void 0,K}};function m6(){return{}}var h0={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.title!==void 0)K.uint32(18).string($.title);if($.promptText!==void 0)K.uint32(26).string($.promptText);if($.sessionId!==void 0)K.uint32(34).string($.sessionId);if($.imageWdsIdentifier!==void 0)K.uint32(42).string($.imageWdsIdentifier);if($.imageTintColor!==void 0)K.uint32(50).string($.imageTintColor);if($.imageBackgroundColor!==void 0)K.uint32(58).string($.imageBackgroundColor);if($.cardTypeId!==void 0)K.uint32(66).string($.cardTypeId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=m6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.title=Q.string();continue}case 3:{if(Z!==26)break;J.promptText=Q.string();continue}case 4:{if(Z!==34)break;J.sessionId=Q.string();continue}case 5:{if(Z!==42)break;J.imageWdsIdentifier=Q.string();continue}case 6:{if(Z!==50)break;J.imageTintColor=Q.string();continue}case 7:{if(Z!==58)break;J.imageBackgroundColor=Q.string();continue}case 8:{if(Z!==66)break;J.cardTypeId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return h0.fromPartial($??{})},fromPartial($){let K=m6();return K.type=$.type??void 0,K.title=$.title??void 0,K.promptText=$.promptText??void 0,K.sessionId=$.sessionId??void 0,K.imageWdsIdentifier=$.imageWdsIdentifier??void 0,K.imageTintColor=$.imageTintColor??void 0,K.imageBackgroundColor=$.imageBackgroundColor??void 0,K.cardTypeId=$.cardTypeId??void 0,K}};function g6(){return{}}var c$={encode($,K=new H){if($.collectionId!==void 0)K.uint32(10).string($.collectionId);if($.expectedMediaCount!==void 0)K.uint32(16).uint32($.expectedMediaCount);if($.hasGlobalCaption!==void 0)K.uint32(24).bool($.hasGlobalCaption);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=g6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.collectionId=Q.string();continue}case 2:{if(Z!==16)break;J.expectedMediaCount=Q.uint32();continue}case 3:{if(Z!==24)break;J.hasGlobalCaption=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return c$.fromPartial($??{})},fromPartial($){let K=g6();return K.collectionId=$.collectionId??void 0,K.expectedMediaCount=$.expectedMediaCount??void 0,K.hasGlobalCaption=$.hasGlobalCaption??void 0,K}};function t6(){return{}}var o$={encode($,K=new H){if($.collectionId!==void 0)K.uint32(10).string($.collectionId);if($.uploadOrderIndex!==void 0)K.uint32(16).uint32($.uploadOrderIndex);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=t6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.collectionId=Q.string();continue}case 2:{if(Z!==16)break;J.uploadOrderIndex=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return o$.fromPartial($??{})},fromPartial($){let K=t6();return K.collectionId=$.collectionId??void 0,K.uploadOrderIndex=$.uploadOrderIndex??void 0,K}};function r6(){return{}}var b$={encode($,K=new H){if($.hatchMetadataSync!==void 0)nZ.encode($.hatchMetadataSync,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=r6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.hatchMetadataSync=nZ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return b$.fromPartial($??{})},fromPartial($){let K=r6();return K.hatchMetadataSync=$.hatchMetadataSync!==void 0&&$.hatchMetadataSync!==null?nZ.fromPartial($.hatchMetadataSync):void 0,K}};function a6(){return{}}var i$={encode($,K=new H){if($.messageKey!==void 0)x.encode($.messageKey,K.uint32(10).fork()).join();if($.message!==void 0)w.encode($.message,K.uint32(18).fork()).join();if($.timestamp!==void 0)K.uint32(24).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=a6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.message=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return i$.fromPartial($??{})},fromPartial($){let K=a6();return K.messageKey=$.messageKey!==void 0&&$.messageKey!==null?x.fromPartial($.messageKey):void 0,K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K.timestamp=$.timestamp??void 0,K}};function s6(){return{}}var m$={encode($,K=new H){if($.messageKey!==void 0)x.encode($.messageKey,K.uint32(10).fork()).join();if($.responseTimestampMs!==void 0)K.uint32(16).int64($.responseTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=s6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.responseTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return m$.fromPartial($??{})},fromPartial($){let K=s6();return K.messageKey=$.messageKey!==void 0&&$.messageKey!==null?x.fromPartial($.messageKey):void 0,K.responseTimestampMs=$.responseTimestampMs??void 0,K}};function e6(){return{}}var g$={encode($,K=new H){if($.codeLanguage!==void 0)K.uint32(10).string($.codeLanguage);if($.codeBlocks!==void 0&&$.codeBlocks.length!==0)for(let Q of $.codeBlocks)t$.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=e6();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.codeLanguage=Q.string();continue}case 2:{if(Z!==18)break;if(J.codeBlocks===void 0)J.codeBlocks=[];let Y=t$.decode(Q,Q.uint32());if(Y!==void 0)J.codeBlocks.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return g$.fromPartial($??{})},fromPartial($){let K=e6();return K.codeLanguage=$.codeLanguage??void 0,K.codeBlocks=$.codeBlocks?.map((Q)=>t$.fromPartial(Q))||void 0,K}};function $H(){return{}}var t$={encode($,K=new H){if($.highlightType!==void 0)K.uint32(8).int32($.highlightType);if($.codeContent!==void 0)K.uint32(18).string($.codeContent);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$H();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.highlightType=Q.int32();continue}case 2:{if(Z!==18)break;J.codeContent=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return t$.fromPartial($??{})},fromPartial($){let K=$H();return K.highlightType=$.highlightType??void 0,K.codeContent=$.codeContent??void 0,K}};function KH(){return{}}var r$={encode($,K=new H){if($.itemsMetadata!==void 0&&$.itemsMetadata.length!==0)for(let Q of $.itemsMetadata)a$.encode(Q,K.uint32(10).fork()).join();if($.contentType!==void 0)K.uint32(16).int32($.contentType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.itemsMetadata===void 0)J.itemsMetadata=[];let Y=a$.decode(Q,Q.uint32());if(Y!==void 0)J.itemsMetadata.push(Y);continue}case 2:{if(Z!==16)break;J.contentType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return r$.fromPartial($??{})},fromPartial($){let K=KH();return K.itemsMetadata=$.itemsMetadata?.map((Q)=>a$.fromPartial(Q))||void 0,K.contentType=$.contentType??void 0,K}};function QH(){return{}}var a$={encode($,K=new H){if($.reelItem!==void 0)s$.encode($.reelItem,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.reelItem=s$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return a$.fromPartial($??{})},fromPartial($){let K=QH();return K.reelItem=$.reelItem!==void 0&&$.reelItem!==null?s$.fromPartial($.reelItem):void 0,K}};function ZH(){return{}}var s$={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.profileIconUrl!==void 0)K.uint32(18).string($.profileIconUrl);if($.thumbnailUrl!==void 0)K.uint32(26).string($.thumbnailUrl);if($.videoUrl!==void 0)K.uint32(34).string($.videoUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.profileIconUrl=Q.string();continue}case 3:{if(Z!==26)break;J.thumbnailUrl=Q.string();continue}case 4:{if(Z!==34)break;J.videoUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return s$.fromPartial($??{})},fromPartial($){let K=ZH();return K.title=$.title??void 0,K.profileIconUrl=$.profileIconUrl??void 0,K.thumbnailUrl=$.thumbnailUrl??void 0,K.videoUrl=$.videoUrl??void 0,K}};function JH(){return{}}var e$={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.version!==void 0)K.uint32(16).uint64($.version);if($.url!==void 0)K.uint32(26).string($.url);if($.loopCount!==void 0)K.uint32(32).uint32($.loopCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==16)break;J.version=Q.uint64Number();continue}case 3:{if(Z!==26)break;J.url=Q.string();continue}case 4:{if(Z!==32)break;J.loopCount=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return e$.fromPartial($??{})},fromPartial($){let K=JH();return K.type=$.type??void 0,K.version=$.version??void 0,K.url=$.url??void 0,K.loopCount=$.loopCount??void 0,K}};function XH(){return{}}var $K={encode($,K=new H){if($.gridImageUrl!==void 0)H0.encode($.gridImageUrl,K.uint32(10).fork()).join();if($.imageUrls!==void 0&&$.imageUrls.length!==0)for(let Q of $.imageUrls)H0.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.gridImageUrl=H0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;if(J.imageUrls===void 0)J.imageUrls=[];let Y=H0.decode(Q,Q.uint32());if(Y!==void 0)J.imageUrls.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $K.fromPartial($??{})},fromPartial($){let K=XH();return K.gridImageUrl=$.gridImageUrl!==void 0&&$.gridImageUrl!==null?H0.fromPartial($.gridImageUrl):void 0,K.imageUrls=$.imageUrls?.map((Q)=>H0.fromPartial(Q))||void 0,K}};function qH(){return{}}var H0={encode($,K=new H){if($.imagePreviewUrl!==void 0)K.uint32(10).string($.imagePreviewUrl);if($.imageHighResUrl!==void 0)K.uint32(18).string($.imageHighResUrl);if($.sourceUrl!==void 0)K.uint32(26).string($.sourceUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.imagePreviewUrl=Q.string();continue}case 2:{if(Z!==18)break;J.imageHighResUrl=Q.string();continue}case 3:{if(Z!==26)break;J.sourceUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return H0.fromPartial($??{})},fromPartial($){let K=qH();return K.imagePreviewUrl=$.imagePreviewUrl??void 0,K.imageHighResUrl=$.imageHighResUrl??void 0,K.sourceUrl=$.sourceUrl??void 0,K}};function YH(){return{}}var KK={encode($,K=new H){if($.imageUrl!==void 0)H0.encode($.imageUrl,K.uint32(10).fork()).join();if($.imageText!==void 0)K.uint32(18).string($.imageText);if($.alignment!==void 0)K.uint32(24).int32($.alignment);if($.tapLinkUrl!==void 0)K.uint32(34).string($.tapLinkUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.imageUrl=H0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.imageText=Q.string();continue}case 3:{if(Z!==24)break;J.alignment=Q.int32();continue}case 4:{if(Z!==34)break;J.tapLinkUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KK.fromPartial($??{})},fromPartial($){let K=YH();return K.imageUrl=$.imageUrl!==void 0&&$.imageUrl!==null?H0.fromPartial($.imageUrl):void 0,K.imageText=$.imageText??void 0,K.alignment=$.alignment??void 0,K.tapLinkUrl=$.tapLinkUrl??void 0,K}};function HH(){return{}}var QK={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.expressions!==void 0&&$.expressions.length!==0)for(let Q of $.expressions)ZK.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==18)break;if(J.expressions===void 0)J.expressions=[];let Y=ZK.decode(Q,Q.uint32());if(Y!==void 0)J.expressions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QK.fromPartial($??{})},fromPartial($){let K=HH();return K.text=$.text??void 0,K.expressions=$.expressions?.map((Q)=>ZK.fromPartial(Q))||void 0,K}};function zH(){return{}}var ZK={encode($,K=new H){if($.latexExpression!==void 0)K.uint32(10).string($.latexExpression);if($.url!==void 0)K.uint32(18).string($.url);if($.width!==void 0)K.uint32(25).double($.width);if($.height!==void 0)K.uint32(33).double($.height);if($.fontHeight!==void 0)K.uint32(41).double($.fontHeight);if($.imageTopPadding!==void 0)K.uint32(49).double($.imageTopPadding);if($.imageLeadingPadding!==void 0)K.uint32(57).double($.imageLeadingPadding);if($.imageBottomPadding!==void 0)K.uint32(65).double($.imageBottomPadding);if($.imageTrailingPadding!==void 0)K.uint32(73).double($.imageTrailingPadding);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.latexExpression=Q.string();continue}case 2:{if(Z!==18)break;J.url=Q.string();continue}case 3:{if(Z!==25)break;J.width=Q.double();continue}case 4:{if(Z!==33)break;J.height=Q.double();continue}case 5:{if(Z!==41)break;J.fontHeight=Q.double();continue}case 6:{if(Z!==49)break;J.imageTopPadding=Q.double();continue}case 7:{if(Z!==57)break;J.imageLeadingPadding=Q.double();continue}case 8:{if(Z!==65)break;J.imageBottomPadding=Q.double();continue}case 9:{if(Z!==73)break;J.imageTrailingPadding=Q.double();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZK.fromPartial($??{})},fromPartial($){let K=zH();return K.latexExpression=$.latexExpression??void 0,K.url=$.url??void 0,K.width=$.width??void 0,K.height=$.height??void 0,K.fontHeight=$.fontHeight??void 0,K.imageTopPadding=$.imageTopPadding??void 0,K.imageLeadingPadding=$.imageLeadingPadding??void 0,K.imageBottomPadding=$.imageBottomPadding??void 0,K.imageTrailingPadding=$.imageTrailingPadding??void 0,K}};function VH(){return{}}var JK={encode($,K=new H){if($.centerLatitude!==void 0)K.uint32(9).double($.centerLatitude);if($.centerLongitude!==void 0)K.uint32(17).double($.centerLongitude);if($.latitudeDelta!==void 0)K.uint32(25).double($.latitudeDelta);if($.longitudeDelta!==void 0)K.uint32(33).double($.longitudeDelta);if($.annotations!==void 0&&$.annotations.length!==0)for(let Q of $.annotations)XK.encode(Q,K.uint32(42).fork()).join();if($.showInfoList!==void 0)K.uint32(48).bool($.showInfoList);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.centerLatitude=Q.double();continue}case 2:{if(Z!==17)break;J.centerLongitude=Q.double();continue}case 3:{if(Z!==25)break;J.latitudeDelta=Q.double();continue}case 4:{if(Z!==33)break;J.longitudeDelta=Q.double();continue}case 5:{if(Z!==42)break;if(J.annotations===void 0)J.annotations=[];let Y=XK.decode(Q,Q.uint32());if(Y!==void 0)J.annotations.push(Y);continue}case 6:{if(Z!==48)break;J.showInfoList=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JK.fromPartial($??{})},fromPartial($){let K=VH();return K.centerLatitude=$.centerLatitude??void 0,K.centerLongitude=$.centerLongitude??void 0,K.latitudeDelta=$.latitudeDelta??void 0,K.longitudeDelta=$.longitudeDelta??void 0,K.annotations=$.annotations?.map((Q)=>XK.fromPartial(Q))||void 0,K.showInfoList=$.showInfoList??void 0,K}};function GH(){return{}}var XK={encode($,K=new H){if($.annotationNumber!==void 0)K.uint32(8).uint32($.annotationNumber);if($.latitude!==void 0)K.uint32(17).double($.latitude);if($.longitude!==void 0)K.uint32(25).double($.longitude);if($.title!==void 0)K.uint32(34).string($.title);if($.body!==void 0)K.uint32(42).string($.body);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.annotationNumber=Q.uint32();continue}case 2:{if(Z!==17)break;J.latitude=Q.double();continue}case 3:{if(Z!==25)break;J.longitude=Q.double();continue}case 4:{if(Z!==34)break;J.title=Q.string();continue}case 5:{if(Z!==42)break;J.body=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XK.fromPartial($??{})},fromPartial($){let K=GH();return K.annotationNumber=$.annotationNumber??void 0,K.latitude=$.latitude??void 0,K.longitude=$.longitude??void 0,K.title=$.title??void 0,K.body=$.body??void 0,K}};function UH(){return{}}var qK={encode($,K=new H){if($.messageType!==void 0)K.uint32(8).int32($.messageType);if($.submessages!==void 0&&$.submessages.length!==0)for(let Q of $.submessages)YK.encode(Q,K.uint32(18).fork()).join();if($.unifiedResponse!==void 0)VK.encode($.unifiedResponse,K.uint32(26).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.messageType=Q.int32();continue}case 2:{if(Z!==18)break;if(J.submessages===void 0)J.submessages=[];let Y=YK.decode(Q,Q.uint32());if(Y!==void 0)J.submessages.push(Y);continue}case 3:{if(Z!==26)break;J.unifiedResponse=VK.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qK.fromPartial($??{})},fromPartial($){let K=UH();return K.messageType=$.messageType??void 0,K.submessages=$.submessages?.map((Q)=>YK.fromPartial(Q))||void 0,K.unifiedResponse=$.unifiedResponse!==void 0&&$.unifiedResponse!==null?VK.fromPartial($.unifiedResponse):void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function CH(){return{}}var YK={encode($,K=new H){if($.messageType!==void 0)K.uint32(8).int32($.messageType);if($.gridImageMetadata!==void 0)$K.encode($.gridImageMetadata,K.uint32(18).fork()).join();if($.messageText!==void 0)K.uint32(26).string($.messageText);if($.imageMetadata!==void 0)KK.encode($.imageMetadata,K.uint32(34).fork()).join();if($.codeMetadata!==void 0)g$.encode($.codeMetadata,K.uint32(42).fork()).join();if($.tableMetadata!==void 0)HK.encode($.tableMetadata,K.uint32(50).fork()).join();if($.dynamicMetadata!==void 0)e$.encode($.dynamicMetadata,K.uint32(58).fork()).join();if($.latexMetadata!==void 0)QK.encode($.latexMetadata,K.uint32(66).fork()).join();if($.mapMetadata!==void 0)JK.encode($.mapMetadata,K.uint32(74).fork()).join();if($.contentItemsMetadata!==void 0)r$.encode($.contentItemsMetadata,K.uint32(82).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.messageType=Q.int32();continue}case 2:{if(Z!==18)break;J.gridImageMetadata=$K.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.messageText=Q.string();continue}case 4:{if(Z!==34)break;J.imageMetadata=KK.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.codeMetadata=g$.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.tableMetadata=HK.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.dynamicMetadata=e$.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.latexMetadata=QK.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.mapMetadata=JK.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.contentItemsMetadata=r$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YK.fromPartial($??{})},fromPartial($){let K=CH();return K.messageType=$.messageType??void 0,K.gridImageMetadata=$.gridImageMetadata!==void 0&&$.gridImageMetadata!==null?$K.fromPartial($.gridImageMetadata):void 0,K.messageText=$.messageText??void 0,K.imageMetadata=$.imageMetadata!==void 0&&$.imageMetadata!==null?KK.fromPartial($.imageMetadata):void 0,K.codeMetadata=$.codeMetadata!==void 0&&$.codeMetadata!==null?g$.fromPartial($.codeMetadata):void 0,K.tableMetadata=$.tableMetadata!==void 0&&$.tableMetadata!==null?HK.fromPartial($.tableMetadata):void 0,K.dynamicMetadata=$.dynamicMetadata!==void 0&&$.dynamicMetadata!==null?e$.fromPartial($.dynamicMetadata):void 0,K.latexMetadata=$.latexMetadata!==void 0&&$.latexMetadata!==null?QK.fromPartial($.latexMetadata):void 0,K.mapMetadata=$.mapMetadata!==void 0&&$.mapMetadata!==null?JK.fromPartial($.mapMetadata):void 0,K.contentItemsMetadata=$.contentItemsMetadata!==void 0&&$.contentItemsMetadata!==null?r$.fromPartial($.contentItemsMetadata):void 0,K}};function DH(){return{}}var HK={encode($,K=new H){if($.rows!==void 0&&$.rows.length!==0)for(let Q of $.rows)zK.encode(Q,K.uint32(10).fork()).join();if($.title!==void 0)K.uint32(18).string($.title);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.rows===void 0)J.rows=[];let Y=zK.decode(Q,Q.uint32());if(Y!==void 0)J.rows.push(Y);continue}case 2:{if(Z!==18)break;J.title=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HK.fromPartial($??{})},fromPartial($){let K=DH();return K.rows=$.rows?.map((Q)=>zK.fromPartial(Q))||void 0,K.title=$.title??void 0,K}};function LH(){return{}}var zK={encode($,K=new H){if($.items!==void 0&&$.items.length!==0)for(let Q of $.items)K.uint32(10).string(Q);if($.isHeading!==void 0)K.uint32(16).bool($.isHeading);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.items===void 0)J.items=[];let Y=Q.string();if(Y!==void 0)J.items.push(Y);continue}case 2:{if(Z!==16)break;J.isHeading=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zK.fromPartial($??{})},fromPartial($){let K=LH();return K.items=$.items?.map((Q)=>Q)||void 0,K.isHeading=$.isHeading??void 0,K}};function PH(){return{}}var VK={encode($,K=new H){if($.data!==void 0)K.uint32(10).bytes($.data);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.data=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VK.fromPartial($??{})},fromPartial($){let K=PH();return K.data=$.data??void 0,K}};function FH(){return{}}var GK={encode($,K=new H){if($.requestType!==void 0)K.uint32(8).int32($.requestType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.requestType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GK.fromPartial($??{})},fromPartial($){let K=FH();return K.requestType=$.requestType??void 0,K}};function xH(){return{}}var UK={encode($,K=new H){if($.serverInfo!==void 0)DK.encode($.serverInfo,K.uint32(10).fork()).join();if($.clientInfo!==void 0)CK.encode($.clientInfo,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.serverInfo=DK.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.clientInfo=CK.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UK.fromPartial($??{})},fromPartial($){let K=xH();return K.serverInfo=$.serverInfo!==void 0&&$.serverInfo!==null?DK.fromPartial($.serverInfo):void 0,K.clientInfo=$.clientInfo!==void 0&&$.clientInfo!==null?CK.fromPartial($.clientInfo):void 0,K}};function kH(){return{}}var CK={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.sourceChatJid!==void 0)K.uint32(18).string($.sourceChatJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.sourceChatJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return CK.fromPartial($??{})},fromPartial($){let K=kH();return K.type=$.type??void 0,K.sourceChatJid=$.sourceChatJid??void 0,K}};function NH(){return{}}var DK={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return DK.fromPartial($??{})},fromPartial($){let K=NH();return K.title=$.title??void 0,K}};function RH(){return{}}var LK={encode($,K=new H){if($.lid!==void 0)K.uint32(10).string($.lid);if($.username!==void 0)K.uint32(18).string($.username);if($.countryCode!==void 0)K.uint32(26).string($.countryCode);if($.isUsernameDeleted!==void 0)K.uint32(32).bool($.isUsernameDeleted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.lid=Q.string();continue}case 2:{if(Z!==18)break;J.username=Q.string();continue}case 3:{if(Z!==26)break;J.countryCode=Q.string();continue}case 4:{if(Z!==32)break;J.isUsernameDeleted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LK.fromPartial($??{})},fromPartial($){let K=RH();return K.lid=$.lid??void 0,K.username=$.username??void 0,K.countryCode=$.countryCode??void 0,K.isUsernameDeleted=$.isUsernameDeleted??void 0,K}};function BH(){return{}}var FN={encode($,K=new H){if($.accesstoken!==void 0)K.uint32(10).string($.accesstoken);if($.fbid!==void 0)K.uint32(18).string($.fbid);if($.nonce!==void 0)K.uint32(26).string($.nonce);if($.encryptedPassword!==void 0)K.uint32(34).string($.encryptedPassword);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.accesstoken=Q.string();continue}case 2:{if(Z!==18)break;J.fbid=Q.string();continue}case 3:{if(Z!==26)break;J.nonce=Q.string();continue}case 4:{if(Z!==34)break;J.encryptedPassword=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FN.fromPartial($??{})},fromPartial($){let K=BH();return K.accesstoken=$.accesstoken??void 0,K.fbid=$.fbid??void 0,K.nonce=$.nonce??void 0,K.encryptedPassword=$.encryptedPassword??void 0,K}};function OH(){return{}}var PK={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.buttonTitle!==void 0)K.uint32(18).string($.buttonTitle);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.buttonTitle=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PK.fromPartial($??{})},fromPartial($){let K=OH();return K.url=$.url??void 0,K.buttonTitle=$.buttonTitle??void 0,K}};function AH(){return{}}var Y0={encode($,K=new H){if($.downloadImages!==void 0)K.uint32(8).bool($.downloadImages);if($.downloadAudio!==void 0)K.uint32(16).bool($.downloadAudio);if($.downloadVideo!==void 0)K.uint32(24).bool($.downloadVideo);if($.downloadDocuments!==void 0)K.uint32(32).bool($.downloadDocuments);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.downloadImages=Q.bool();continue}case 2:{if(Z!==16)break;J.downloadAudio=Q.bool();continue}case 3:{if(Z!==24)break;J.downloadVideo=Q.bool();continue}case 4:{if(Z!==32)break;J.downloadDocuments=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Y0.fromPartial($??{})},fromPartial($){let K=AH();return K.downloadImages=$.downloadImages??void 0,K.downloadAudio=$.downloadAudio??void 0,K.downloadVideo=$.downloadVideo??void 0,K.downloadDocuments=$.downloadDocuments??void 0,K}};function EH(){return{}}var FK={encode($,K=new H){if($.fbid!==void 0)K.uint32(10).string($.fbid);if($.password!==void 0)K.uint32(18).string($.password);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=EH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fbid=Q.string();continue}case 2:{if(Z!==18)break;J.password=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FK.fromPartial($??{})},fromPartial($){let K=EH();return K.fbid=$.fbid??void 0,K.password=$.password??void 0,K}};function MH(){return{}}var xN={encode($,K=new H){if($.whatsappBizAcctFbid!==void 0)K.uint32(8).uint64($.whatsappBizAcctFbid);if($.whatsappAcctNumber!==void 0)K.uint32(18).string($.whatsappAcctNumber);if($.issueTime!==void 0)K.uint32(24).uint64($.issueTime);if($.hostStorage!==void 0)K.uint32(32).int32($.hostStorage);if($.accountType!==void 0)K.uint32(40).int32($.accountType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=MH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.whatsappBizAcctFbid=Q.uint64Number();continue}case 2:{if(Z!==18)break;J.whatsappAcctNumber=Q.string();continue}case 3:{if(Z!==24)break;J.issueTime=Q.uint64Number();continue}case 4:{if(Z!==32)break;J.hostStorage=Q.int32();continue}case 5:{if(Z!==40)break;J.accountType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xN.fromPartial($??{})},fromPartial($){let K=MH();return K.whatsappBizAcctFbid=$.whatsappBizAcctFbid??void 0,K.whatsappAcctNumber=$.whatsappAcctNumber??void 0,K.issueTime=$.issueTime??void 0,K.hostStorage=$.hostStorage??void 0,K.accountType=$.accountType??void 0,K}};function WH(){return{}}var kN={encode($,K=new H){if($.vnameCert!==void 0)T0.encode($.vnameCert,K.uint32(10).fork()).join();if($.bizAcctLinkInfo!==void 0)K.uint32(18).bytes($.bizAcctLinkInfo);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.vnameCert=T0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.bizAcctLinkInfo=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kN.fromPartial($??{})},fromPartial($){let K=WH();return K.vnameCert=$.vnameCert!==void 0&&$.vnameCert!==null?T0.fromPartial($.vnameCert):void 0,K.bizAcctLinkInfo=$.bizAcctLinkInfo??void 0,K}};function IH(){return{}}var NN={encode($,K=new H){if($.vlevel!==void 0)K.uint32(8).int32($.vlevel);if($.vnameCert!==void 0)T0.encode($.vnameCert,K.uint32(18).fork()).join();if($.signed!==void 0)K.uint32(24).bool($.signed);if($.revoked!==void 0)K.uint32(32).bool($.revoked);if($.hostStorage!==void 0)K.uint32(40).int32($.hostStorage);if($.actualActors!==void 0)K.uint32(48).int32($.actualActors);if($.privacyModeTs!==void 0)K.uint32(56).uint64($.privacyModeTs);if($.featureControls!==void 0)K.uint32(64).uint64($.featureControls);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=IH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.vlevel=Q.int32();continue}case 2:{if(Z!==18)break;J.vnameCert=T0.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.signed=Q.bool();continue}case 4:{if(Z!==32)break;J.revoked=Q.bool();continue}case 5:{if(Z!==40)break;J.hostStorage=Q.int32();continue}case 6:{if(Z!==48)break;J.actualActors=Q.int32();continue}case 7:{if(Z!==56)break;J.privacyModeTs=Q.uint64Number();continue}case 8:{if(Z!==64)break;J.featureControls=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NN.fromPartial($??{})},fromPartial($){let K=IH();return K.vlevel=$.vlevel??void 0,K.vnameCert=$.vnameCert!==void 0&&$.vnameCert!==null?T0.fromPartial($.vnameCert):void 0,K.signed=$.signed??void 0,K.revoked=$.revoked??void 0,K.hostStorage=$.hostStorage??void 0,K.actualActors=$.actualActors??void 0,K.privacyModeTs=$.privacyModeTs??void 0,K.featureControls=$.featureControls??void 0,K}};function SH(){return{}}var xK={encode($,K=new H){if($.ageCollectionEligible!==void 0)K.uint32(8).bool($.ageCollectionEligible);if($.shouldTriggerAgeCollectionOnClient!==void 0)K.uint32(16).bool($.shouldTriggerAgeCollectionOnClient);if($.ageCollectionType!==void 0)K.uint32(24).int32($.ageCollectionType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.ageCollectionEligible=Q.bool();continue}case 2:{if(Z!==16)break;J.shouldTriggerAgeCollectionOnClient=Q.bool();continue}case 3:{if(Z!==24)break;J.ageCollectionType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xK.fromPartial($??{})},fromPartial($){let K=SH();return K.ageCollectionEligible=$.ageCollectionEligible??void 0,K.shouldTriggerAgeCollectionOnClient=$.shouldTriggerAgeCollectionOnClient??void 0,K.ageCollectionType=$.ageCollectionType??void 0,K}};function vH(){return{}}var kK={encode($,K=new H){if($.token!==void 0)K.uint32(10).string($.token);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.token=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kK.fromPartial($??{})},fromPartial($){let K=vH();return K.token=$.token??void 0,K}};function TH(){return{}}var NK={encode($,K=new H){if($.deepLinkMetadata!==void 0)kK.encode($.deepLinkMetadata,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.deepLinkMetadata=kK.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NK.fromPartial($??{})},fromPartial($){let K=TH();return K.deepLinkMetadata=$.deepLinkMetadata!==void 0&&$.deepLinkMetadata!==null?kK.fromPartial($.deepLinkMetadata):void 0,K}};function yH(){return{}}var RK={encode($,K=new H){if($.capabilities!==void 0&&$.capabilities.length!==0)for(let Q of $.capabilities)K.uint32(8).int32(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z===8){if(J.capabilities===void 0)J.capabilities=[];J.capabilities.push(Q.int32());continue}if(Z===10){if(J.capabilities===void 0)J.capabilities=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.capabilities.push(Q.int32());continue}break}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RK.fromPartial($??{})},fromPartial($){let K=yH();return K.capabilities=$.capabilities?.map((Q)=>Q)||void 0,K}};function fH(){return{}}var BK={encode($,K=new H){if($.commandName!==void 0)K.uint32(10).string($.commandName);if($.commandDescription!==void 0)K.uint32(18).string($.commandDescription);if($.commandPrompt!==void 0)K.uint32(26).string($.commandPrompt);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.commandName=Q.string();continue}case 2:{if(Z!==18)break;J.commandDescription=Q.string();continue}case 3:{if(Z!==26)break;J.commandPrompt=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BK.fromPartial($??{})},fromPartial($){let K=fH();return K.commandName=$.commandName??void 0,K.commandDescription=$.commandDescription??void 0,K.commandPrompt=$.commandPrompt??void 0,K}};function _H(){return{}}var OK={encode($,K=new H){if($.pluginType!==void 0)K.uint32(8).int32($.pluginType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_H();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.pluginType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return OK.fromPartial($??{})},fromPartial($){let K=_H();return K.pluginType=$.pluginType??void 0,K}};function hH(){return{}}var AK={encode($,K=new H){if($.messageKey!==void 0)x.encode($.messageKey,K.uint32(10).fork()).join();if($.kind!==void 0)K.uint32(16).int32($.kind);if($.text!==void 0)K.uint32(26).string($.text);if($.kindNegative!==void 0)K.uint32(32).uint64($.kindNegative);if($.kindPositive!==void 0)K.uint32(40).uint64($.kindPositive);if($.kindReport!==void 0)K.uint32(48).int32($.kindReport);if($.sideBySideSurveyMetadata!==void 0)EK.encode($.sideBySideSurveyMetadata,K.uint32(58).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.kind=Q.int32();continue}case 3:{if(Z!==26)break;J.text=Q.string();continue}case 4:{if(Z!==32)break;J.kindNegative=Q.uint64Number();continue}case 5:{if(Z!==40)break;J.kindPositive=Q.uint64Number();continue}case 6:{if(Z!==48)break;J.kindReport=Q.int32();continue}case 7:{if(Z!==58)break;J.sideBySideSurveyMetadata=EK.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AK.fromPartial($??{})},fromPartial($){let K=hH();return K.messageKey=$.messageKey!==void 0&&$.messageKey!==null?x.fromPartial($.messageKey):void 0,K.kind=$.kind??void 0,K.text=$.text??void 0,K.kindNegative=$.kindNegative??void 0,K.kindPositive=$.kindPositive??void 0,K.kindReport=$.kindReport??void 0,K.sideBySideSurveyMetadata=$.sideBySideSurveyMetadata!==void 0&&$.sideBySideSurveyMetadata!==null?EK.fromPartial($.sideBySideSurveyMetadata):void 0,K}};function lH(){return{}}var EK={encode($,K=new H){if($.selectedRequestId!==void 0)K.uint32(10).string($.selectedRequestId);if($.surveyId!==void 0)K.uint32(16).uint32($.surveyId);if($.simonSessionFbid!==void 0)K.uint32(26).string($.simonSessionFbid);if($.responseOtid!==void 0)K.uint32(34).string($.responseOtid);if($.responseTimestampMsString!==void 0)K.uint32(42).string($.responseTimestampMsString);if($.isSelectedResponsePrimary!==void 0)K.uint32(48).bool($.isSelectedResponsePrimary);if($.messageIdToEdit!==void 0)K.uint32(58).string($.messageIdToEdit);if($.analyticsData!==void 0)MK.encode($.analyticsData,K.uint32(66).fork()).join();if($.metaAiAnalyticsData!==void 0)WK.encode($.metaAiAnalyticsData,K.uint32(74).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.selectedRequestId=Q.string();continue}case 2:{if(Z!==16)break;J.surveyId=Q.uint32();continue}case 3:{if(Z!==26)break;J.simonSessionFbid=Q.string();continue}case 4:{if(Z!==34)break;J.responseOtid=Q.string();continue}case 5:{if(Z!==42)break;J.responseTimestampMsString=Q.string();continue}case 6:{if(Z!==48)break;J.isSelectedResponsePrimary=Q.bool();continue}case 7:{if(Z!==58)break;J.messageIdToEdit=Q.string();continue}case 8:{if(Z!==66)break;J.analyticsData=MK.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.metaAiAnalyticsData=WK.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EK.fromPartial($??{})},fromPartial($){let K=lH();return K.selectedRequestId=$.selectedRequestId??void 0,K.surveyId=$.surveyId??void 0,K.simonSessionFbid=$.simonSessionFbid??void 0,K.responseOtid=$.responseOtid??void 0,K.responseTimestampMsString=$.responseTimestampMsString??void 0,K.isSelectedResponsePrimary=$.isSelectedResponsePrimary??void 0,K.messageIdToEdit=$.messageIdToEdit??void 0,K.analyticsData=$.analyticsData!==void 0&&$.analyticsData!==null?MK.fromPartial($.analyticsData):void 0,K.metaAiAnalyticsData=$.metaAiAnalyticsData!==void 0&&$.metaAiAnalyticsData!==null?WK.fromPartial($.metaAiAnalyticsData):void 0,K}};function pH(){return{}}var MK={encode($,K=new H){if($.tessaEvent!==void 0)K.uint32(10).string($.tessaEvent);if($.tessaSessionFbid!==void 0)K.uint32(18).string($.tessaSessionFbid);if($.simonSessionFbid!==void 0)K.uint32(26).string($.simonSessionFbid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.tessaEvent=Q.string();continue}case 2:{if(Z!==18)break;J.tessaSessionFbid=Q.string();continue}case 3:{if(Z!==26)break;J.simonSessionFbid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MK.fromPartial($??{})},fromPartial($){let K=pH();return K.tessaEvent=$.tessaEvent??void 0,K.tessaSessionFbid=$.tessaSessionFbid??void 0,K.simonSessionFbid=$.simonSessionFbid??void 0,K}};function uH(){return{}}var WK={encode($,K=new H){if($.surveyId!==void 0)K.uint32(8).uint32($.surveyId);if($.primaryResponseId!==void 0)K.uint32(18).string($.primaryResponseId);if($.testArmName!==void 0)K.uint32(26).string($.testArmName);if($.timestampMsString!==void 0)K.uint32(34).string($.timestampMsString);if($.ctaImpressionEvent!==void 0)vK.encode($.ctaImpressionEvent,K.uint32(42).fork()).join();if($.ctaClickEvent!==void 0)SK.encode($.ctaClickEvent,K.uint32(50).fork()).join();if($.cardImpressionEvent!==void 0)TK.encode($.cardImpressionEvent,K.uint32(58).fork()).join();if($.responseEvent!==void 0)yK.encode($.responseEvent,K.uint32(66).fork()).join();if($.abandonEvent!==void 0)IK.encode($.abandonEvent,K.uint32(74).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.surveyId=Q.uint32();continue}case 2:{if(Z!==18)break;J.primaryResponseId=Q.string();continue}case 3:{if(Z!==26)break;J.testArmName=Q.string();continue}case 4:{if(Z!==34)break;J.timestampMsString=Q.string();continue}case 5:{if(Z!==42)break;J.ctaImpressionEvent=vK.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.ctaClickEvent=SK.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.cardImpressionEvent=TK.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.responseEvent=yK.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.abandonEvent=IK.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return WK.fromPartial($??{})},fromPartial($){let K=uH();return K.surveyId=$.surveyId??void 0,K.primaryResponseId=$.primaryResponseId??void 0,K.testArmName=$.testArmName??void 0,K.timestampMsString=$.timestampMsString??void 0,K.ctaImpressionEvent=$.ctaImpressionEvent!==void 0&&$.ctaImpressionEvent!==null?vK.fromPartial($.ctaImpressionEvent):void 0,K.ctaClickEvent=$.ctaClickEvent!==void 0&&$.ctaClickEvent!==null?SK.fromPartial($.ctaClickEvent):void 0,K.cardImpressionEvent=$.cardImpressionEvent!==void 0&&$.cardImpressionEvent!==null?TK.fromPartial($.cardImpressionEvent):void 0,K.responseEvent=$.responseEvent!==void 0&&$.responseEvent!==null?yK.fromPartial($.responseEvent):void 0,K.abandonEvent=$.abandonEvent!==void 0&&$.abandonEvent!==null?IK.fromPartial($.abandonEvent):void 0,K}};function wH(){return{}}var IK={encode($,K=new H){if($.abandonDwellTimeMsString!==void 0)K.uint32(10).string($.abandonDwellTimeMsString);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.abandonDwellTimeMsString=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return IK.fromPartial($??{})},fromPartial($){let K=wH();return K.abandonDwellTimeMsString=$.abandonDwellTimeMsString??void 0,K}};function nH(){return{}}var SK={encode($,K=new H){if($.isSurveyExpired!==void 0)K.uint32(8).bool($.isSurveyExpired);if($.clickDwellTimeMsString!==void 0)K.uint32(18).string($.clickDwellTimeMsString);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isSurveyExpired=Q.bool();continue}case 2:{if(Z!==18)break;J.clickDwellTimeMsString=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return SK.fromPartial($??{})},fromPartial($){let K=nH();return K.isSurveyExpired=$.isSurveyExpired??void 0,K.clickDwellTimeMsString=$.clickDwellTimeMsString??void 0,K}};function dH(){return{}}var vK={encode($,K=new H){if($.isSurveyExpired!==void 0)K.uint32(8).bool($.isSurveyExpired);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isSurveyExpired=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vK.fromPartial($??{})},fromPartial($){let K=dH();return K.isSurveyExpired=$.isSurveyExpired??void 0,K}};function jH(){return{}}var TK={encode($,K=new H){return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return TK.fromPartial($??{})},fromPartial($){return jH()}};function cH(){return{}}var yK={encode($,K=new H){if($.responseDwellTimeMsString!==void 0)K.uint32(10).string($.responseDwellTimeMsString);if($.selectedResponseId!==void 0)K.uint32(18).string($.selectedResponseId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.responseDwellTimeMsString=Q.string();continue}case 2:{if(Z!==18)break;J.selectedResponseId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yK.fromPartial($??{})},fromPartial($){let K=cH();return K.responseDwellTimeMsString=$.responseDwellTimeMsString??void 0,K.selectedResponseId=$.selectedResponseId??void 0,K}};function oH(){return{}}var fK={encode($,K=new H){if($.participantsMetadata!==void 0&&$.participantsMetadata.length!==0)for(let Q of $.participantsMetadata)_K.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.participantsMetadata===void 0)J.participantsMetadata=[];let Y=_K.decode(Q,Q.uint32());if(Y!==void 0)J.participantsMetadata.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fK.fromPartial($??{})},fromPartial($){let K=oH();return K.participantsMetadata=$.participantsMetadata?.map((Q)=>_K.fromPartial(Q))||void 0,K}};function bH(){return{}}var _K={encode($,K=new H){if($.botFbid!==void 0)K.uint32(10).string($.botFbid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.botFbid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _K.fromPartial($??{})},fromPartial($){let K=bH();return K.botFbid=$.botFbid??void 0,K}};function iH(){return{}}var hK={encode($,K=new H){if($.imagineType!==void 0)K.uint32(8).int32($.imagineType);if($.shortPrompt!==void 0)K.uint32(18).string($.shortPrompt);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.imagineType=Q.int32();continue}case 2:{if(Z!==18)break;J.shortPrompt=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hK.fromPartial($??{})},fromPartial($){let K=iH();return K.imagineType=$.imagineType??void 0,K.shortPrompt=$.shortPrompt??void 0,K}};function mH(){return{}}var lK={encode($,K=new H){if($.botBackend!==void 0)K.uint32(8).int32($.botBackend);if($.toolsUsed!==void 0&&$.toolsUsed.length!==0)for(let Q of $.toolsUsed)K.uint32(18).string(Q);if($.isThinking!==void 0)K.uint32(24).bool($.isThinking);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.botBackend=Q.int32();continue}case 2:{if(Z!==18)break;if(J.toolsUsed===void 0)J.toolsUsed=[];let Y=Q.string();if(Y!==void 0)J.toolsUsed.push(Y);continue}case 3:{if(Z!==24)break;J.isThinking=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lK.fromPartial($??{})},fromPartial($){let K=mH();return K.botBackend=$.botBackend??void 0,K.toolsUsed=$.toolsUsed?.map((Q)=>Q)||void 0,K.isThinking=$.isThinking??void 0,K}};function gH(){return{}}var pK={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pK.fromPartial($??{})},fromPartial($){let K=gH();return K.type=$.type??void 0,K}};function tH(){return{}}var uK={encode($,K=new H){if($.accounts!==void 0&&$.accounts.length!==0)for(let Q of $.accounts)pK.encode(Q,K.uint32(10).fork()).join();if($.acAuthTokens!==void 0)K.uint32(18).bytes($.acAuthTokens);if($.acErrorCode!==void 0)K.uint32(24).int32($.acErrorCode);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.accounts===void 0)J.accounts=[];let Y=pK.decode(Q,Q.uint32());if(Y!==void 0)J.accounts.push(Y);continue}case 2:{if(Z!==18)break;J.acAuthTokens=Q.bytes();continue}case 3:{if(Z!==24)break;J.acErrorCode=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uK.fromPartial($??{})},fromPartial($){let K=tH();return K.accounts=$.accounts?.map((Q)=>pK.fromPartial(Q))||void 0,K.acAuthTokens=$.acAuthTokens??void 0,K.acErrorCode=$.acErrorCode??void 0,K}};function rH(){return{}}var z0={encode($,K=new H){if($.fileSha256!==void 0)K.uint32(10).string($.fileSha256);if($.mediaKey!==void 0)K.uint32(18).string($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(26).string($.fileEncSha256);if($.directPath!==void 0)K.uint32(34).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(40).int64($.mediaKeyTimestamp);if($.mimetype!==void 0)K.uint32(50).string($.mimetype);if($.orientationType!==void 0)K.uint32(56).int32($.orientationType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fileSha256=Q.string();continue}case 2:{if(Z!==18)break;J.mediaKey=Q.string();continue}case 3:{if(Z!==26)break;J.fileEncSha256=Q.string();continue}case 4:{if(Z!==34)break;J.directPath=Q.string();continue}case 5:{if(Z!==40)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 6:{if(Z!==50)break;J.mimetype=Q.string();continue}case 7:{if(Z!==56)break;J.orientationType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return z0.fromPartial($??{})},fromPartial($){let K=rH();return K.fileSha256=$.fileSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.mimetype=$.mimetype??void 0,K.orientationType=$.orientationType??void 0,K}};function aH(){return{}}var l0={encode($,K=new H){if($.fact!==void 0)K.uint32(10).string($.fact);if($.factId!==void 0)K.uint32(18).string($.factId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fact=Q.string();continue}case 2:{if(Z!==18)break;J.factId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return l0.fromPartial($??{})},fromPartial($){let K=aH();return K.fact=$.fact??void 0,K.factId=$.factId??void 0,K}};function sH(){return{}}var wK={encode($,K=new H){if($.addedFacts!==void 0&&$.addedFacts.length!==0)for(let Q of $.addedFacts)l0.encode(Q,K.uint32(10).fork()).join();if($.removedFacts!==void 0&&$.removedFacts.length!==0)for(let Q of $.removedFacts)l0.encode(Q,K.uint32(18).fork()).join();if($.disclaimer!==void 0)K.uint32(26).string($.disclaimer);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.addedFacts===void 0)J.addedFacts=[];let Y=l0.decode(Q,Q.uint32());if(Y!==void 0)J.addedFacts.push(Y);continue}case 2:{if(Z!==18)break;if(J.removedFacts===void 0)J.removedFacts=[];let Y=l0.decode(Q,Q.uint32());if(Y!==void 0)J.removedFacts.push(Y);continue}case 3:{if(Z!==26)break;J.disclaimer=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wK.fromPartial($??{})},fromPartial($){let K=sH();return K.addedFacts=$.addedFacts?.map((Q)=>l0.fromPartial(Q))||void 0,K.removedFacts=$.removedFacts?.map((Q)=>l0.fromPartial(Q))||void 0,K.disclaimer=$.disclaimer??void 0,K}};function eH(){return{}}var nK={encode($,K=new H){if($.faceImages!==void 0&&$.faceImages.length!==0)for(let Q of $.faceImages)z0.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eH();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.faceImages===void 0)J.faceImages=[];let Y=z0.decode(Q,Q.uint32());if(Y!==void 0)J.faceImages.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nK.fromPartial($??{})},fromPartial($){let K=eH();return K.faceImages=$.faceImages?.map((Q)=>z0.fromPartial(Q))||void 0,K}};function $z(){return{}}var dK={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$z();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dK.fromPartial($??{})},fromPartial($){let K=$z();return K.type=$.type??void 0,K}};function Kz(){return{}}var jK={encode($,K=new H){if($.origins!==void 0&&$.origins.length!==0)for(let Q of $.origins)dK.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Kz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.origins===void 0)J.origins=[];let Y=dK.decode(Q,Q.uint32());if(Y!==void 0)J.origins.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jK.fromPartial($??{})},fromPartial($){let K=Kz();return K.origins=$.origins?.map((Q)=>dK.fromPartial(Q))||void 0,K}};function Qz(){return{}}var cK={encode($,K=new H){if($.botEntryPointOrigin!==void 0)K.uint32(8).int32($.botEntryPointOrigin);if($.forwardScore!==void 0)K.uint32(16).uint32($.forwardScore);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Qz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.botEntryPointOrigin=Q.int32();continue}case 2:{if(Z!==16)break;J.forwardScore=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cK.fromPartial($??{})},fromPartial($){let K=Qz();return K.botEntryPointOrigin=$.botEntryPointOrigin??void 0,K.forwardScore=$.forwardScore??void 0,K}};function Zz(){return{}}var oK={encode($,K=new H){if($.personaId!==void 0)K.uint32(18).string($.personaId);if($.pluginMetadata!==void 0)gK.encode($.pluginMetadata,K.uint32(26).fork()).join();if($.suggestedPromptMetadata!==void 0)LQ.encode($.suggestedPromptMetadata,K.uint32(34).fork()).join();if($.invokerJid!==void 0)K.uint32(42).string($.invokerJid);if($.sessionMetadata!==void 0)GQ.encode($.sessionMetadata,K.uint32(50).fork()).join();if($.memuMetadata!==void 0)nK.encode($.memuMetadata,K.uint32(58).fork()).join();if($.timezone!==void 0)K.uint32(66).string($.timezone);if($.reminderMetadata!==void 0)qQ.encode($.reminderMetadata,K.uint32(74).fork()).join();if($.modelMetadata!==void 0)mK.encode($.modelMetadata,K.uint32(82).fork()).join();if($.messageDisclaimerText!==void 0)K.uint32(90).string($.messageDisclaimerText);if($.progressIndicatorMetadata!==void 0)tK.encode($.progressIndicatorMetadata,K.uint32(98).fork()).join();if($.capabilityMetadata!==void 0)RK.encode($.capabilityMetadata,K.uint32(106).fork()).join();if($.imagineMetadata!==void 0)hK.encode($.imagineMetadata,K.uint32(114).fork()).join();if($.memoryMetadata!==void 0)wK.encode($.memoryMetadata,K.uint32(122).fork()).join();if($.renderingMetadata!==void 0)HQ.encode($.renderingMetadata,K.uint32(130).fork()).join();if($.botMetricsMetadata!==void 0)bK.encode($.botMetricsMetadata,K.uint32(138).fork()).join();if($.botLinkedAccountsMetadata!==void 0)uK.encode($.botLinkedAccountsMetadata,K.uint32(146).fork()).join();if($.richResponseSourcesMetadata!==void 0)CQ.encode($.richResponseSourcesMetadata,K.uint32(154).fork()).join();if($.aiConversationContext!==void 0)K.uint32(162).bytes($.aiConversationContext);if($.botPromotionMessageMetadata!==void 0)$Q.encode($.botPromotionMessageMetadata,K.uint32(170).fork()).join();if($.botModeSelectionMetadata!==void 0)iK.encode($.botModeSelectionMetadata,K.uint32(178).fork()).join();if($.botQuotaMetadata!==void 0)JQ.encode($.botQuotaMetadata,K.uint32(186).fork()).join();if($.botAgeCollectionMetadata!==void 0)xK.encode($.botAgeCollectionMetadata,K.uint32(194).fork()).join();if($.conversationStarterPromptId!==void 0)K.uint32(202).string($.conversationStarterPromptId);if($.botResponseId!==void 0)K.uint32(210).string($.botResponseId);if($.verificationMetadata!==void 0)t0.encode($.verificationMetadata,K.uint32(218).fork()).join();if($.unifiedResponseMutation!==void 0)PQ.encode($.unifiedResponseMutation,K.uint32(226).fork()).join();if($.botMessageOriginMetadata!==void 0)jK.encode($.botMessageOriginMetadata,K.uint32(234).fork()).join();if($.inThreadSurveyMetadata!==void 0)iZ.encode($.inThreadSurveyMetadata,K.uint32(242).fork()).join();if($.botThreadInfo!==void 0)UK.encode($.botThreadInfo,K.uint32(250).fork()).join();if($.regenerateMetadata!==void 0)m$.encode($.regenerateMetadata,K.uint32(258).fork()).join();if($.sessionTransparencyMetadata!==void 0)Rq.encode($.sessionTransparencyMetadata,K.uint32(266).fork()).join();if($.botDocumentMessageMetadata!==void 0)OK.encode($.botDocumentMessageMetadata,K.uint32(274).fork()).join();if($.botGroupMetadata!==void 0)fK.encode($.botGroupMetadata,K.uint32(282).fork()).join();if($.botRenderingConfigMetadata!==void 0)YQ.encode($.botRenderingConfigMetadata,K.uint32(290).fork()).join();if($.botInfrastructureDiagnostics!==void 0)lK.encode($.botInfrastructureDiagnostics,K.uint32(298).fork()).join();if($.aiMediaCollectionMetadata!==void 0)o$.encode($.aiMediaCollectionMetadata,K.uint32(306).fork()).join();if($.commandMetadata!==void 0)BK.encode($.commandMetadata,K.uint32(314).fork()).join();if($.resolvedToolCallMetadata!==void 0)VQ.encode($.resolvedToolCallMetadata,K.uint32(322).fork()).join();if($.subscriptionUpsellMetadata!==void 0)GK.encode($.subscriptionUpsellMetadata,K.uint32(330).fork()).join();if($.pttPromptMetadata!==void 0)ZQ.encode($.pttPromptMetadata,K.uint32(338).fork()).join();if($.internalMetadata!==void 0)K.uint32(7994).bytes($.internalMetadata);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Zz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 2:{if(Z!==18)break;J.personaId=Q.string();continue}case 3:{if(Z!==26)break;J.pluginMetadata=gK.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.suggestedPromptMetadata=LQ.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.invokerJid=Q.string();continue}case 6:{if(Z!==50)break;J.sessionMetadata=GQ.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.memuMetadata=nK.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.timezone=Q.string();continue}case 9:{if(Z!==74)break;J.reminderMetadata=qQ.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.modelMetadata=mK.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.messageDisclaimerText=Q.string();continue}case 12:{if(Z!==98)break;J.progressIndicatorMetadata=tK.decode(Q,Q.uint32());continue}case 13:{if(Z!==106)break;J.capabilityMetadata=RK.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.imagineMetadata=hK.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;J.memoryMetadata=wK.decode(Q,Q.uint32());continue}case 16:{if(Z!==130)break;J.renderingMetadata=HQ.decode(Q,Q.uint32());continue}case 17:{if(Z!==138)break;J.botMetricsMetadata=bK.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.botLinkedAccountsMetadata=uK.decode(Q,Q.uint32());continue}case 19:{if(Z!==154)break;J.richResponseSourcesMetadata=CQ.decode(Q,Q.uint32());continue}case 20:{if(Z!==162)break;J.aiConversationContext=Q.bytes();continue}case 21:{if(Z!==170)break;J.botPromotionMessageMetadata=$Q.decode(Q,Q.uint32());continue}case 22:{if(Z!==178)break;J.botModeSelectionMetadata=iK.decode(Q,Q.uint32());continue}case 23:{if(Z!==186)break;J.botQuotaMetadata=JQ.decode(Q,Q.uint32());continue}case 24:{if(Z!==194)break;J.botAgeCollectionMetadata=xK.decode(Q,Q.uint32());continue}case 25:{if(Z!==202)break;J.conversationStarterPromptId=Q.string();continue}case 26:{if(Z!==210)break;J.botResponseId=Q.string();continue}case 27:{if(Z!==218)break;J.verificationMetadata=t0.decode(Q,Q.uint32());continue}case 28:{if(Z!==226)break;J.unifiedResponseMutation=PQ.decode(Q,Q.uint32());continue}case 29:{if(Z!==234)break;J.botMessageOriginMetadata=jK.decode(Q,Q.uint32());continue}case 30:{if(Z!==242)break;J.inThreadSurveyMetadata=iZ.decode(Q,Q.uint32());continue}case 31:{if(Z!==250)break;J.botThreadInfo=UK.decode(Q,Q.uint32());continue}case 32:{if(Z!==258)break;J.regenerateMetadata=m$.decode(Q,Q.uint32());continue}case 33:{if(Z!==266)break;J.sessionTransparencyMetadata=Rq.decode(Q,Q.uint32());continue}case 34:{if(Z!==274)break;J.botDocumentMessageMetadata=OK.decode(Q,Q.uint32());continue}case 35:{if(Z!==282)break;J.botGroupMetadata=fK.decode(Q,Q.uint32());continue}case 36:{if(Z!==290)break;J.botRenderingConfigMetadata=YQ.decode(Q,Q.uint32());continue}case 37:{if(Z!==298)break;J.botInfrastructureDiagnostics=lK.decode(Q,Q.uint32());continue}case 38:{if(Z!==306)break;J.aiMediaCollectionMetadata=o$.decode(Q,Q.uint32());continue}case 39:{if(Z!==314)break;J.commandMetadata=BK.decode(Q,Q.uint32());continue}case 40:{if(Z!==322)break;J.resolvedToolCallMetadata=VQ.decode(Q,Q.uint32());continue}case 41:{if(Z!==330)break;J.subscriptionUpsellMetadata=GK.decode(Q,Q.uint32());continue}case 42:{if(Z!==338)break;J.pttPromptMetadata=ZQ.decode(Q,Q.uint32());continue}case 999:{if(Z!==7994)break;J.internalMetadata=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oK.fromPartial($??{})},fromPartial($){let K=Zz();return K.personaId=$.personaId??void 0,K.pluginMetadata=$.pluginMetadata!==void 0&&$.pluginMetadata!==null?gK.fromPartial($.pluginMetadata):void 0,K.suggestedPromptMetadata=$.suggestedPromptMetadata!==void 0&&$.suggestedPromptMetadata!==null?LQ.fromPartial($.suggestedPromptMetadata):void 0,K.invokerJid=$.invokerJid??void 0,K.sessionMetadata=$.sessionMetadata!==void 0&&$.sessionMetadata!==null?GQ.fromPartial($.sessionMetadata):void 0,K.memuMetadata=$.memuMetadata!==void 0&&$.memuMetadata!==null?nK.fromPartial($.memuMetadata):void 0,K.timezone=$.timezone??void 0,K.reminderMetadata=$.reminderMetadata!==void 0&&$.reminderMetadata!==null?qQ.fromPartial($.reminderMetadata):void 0,K.modelMetadata=$.modelMetadata!==void 0&&$.modelMetadata!==null?mK.fromPartial($.modelMetadata):void 0,K.messageDisclaimerText=$.messageDisclaimerText??void 0,K.progressIndicatorMetadata=$.progressIndicatorMetadata!==void 0&&$.progressIndicatorMetadata!==null?tK.fromPartial($.progressIndicatorMetadata):void 0,K.capabilityMetadata=$.capabilityMetadata!==void 0&&$.capabilityMetadata!==null?RK.fromPartial($.capabilityMetadata):void 0,K.imagineMetadata=$.imagineMetadata!==void 0&&$.imagineMetadata!==null?hK.fromPartial($.imagineMetadata):void 0,K.memoryMetadata=$.memoryMetadata!==void 0&&$.memoryMetadata!==null?wK.fromPartial($.memoryMetadata):void 0,K.renderingMetadata=$.renderingMetadata!==void 0&&$.renderingMetadata!==null?HQ.fromPartial($.renderingMetadata):void 0,K.botMetricsMetadata=$.botMetricsMetadata!==void 0&&$.botMetricsMetadata!==null?bK.fromPartial($.botMetricsMetadata):void 0,K.botLinkedAccountsMetadata=$.botLinkedAccountsMetadata!==void 0&&$.botLinkedAccountsMetadata!==null?uK.fromPartial($.botLinkedAccountsMetadata):void 0,K.richResponseSourcesMetadata=$.richResponseSourcesMetadata!==void 0&&$.richResponseSourcesMetadata!==null?CQ.fromPartial($.richResponseSourcesMetadata):void 0,K.aiConversationContext=$.aiConversationContext??void 0,K.botPromotionMessageMetadata=$.botPromotionMessageMetadata!==void 0&&$.botPromotionMessageMetadata!==null?$Q.fromPartial($.botPromotionMessageMetadata):void 0,K.botModeSelectionMetadata=$.botModeSelectionMetadata!==void 0&&$.botModeSelectionMetadata!==null?iK.fromPartial($.botModeSelectionMetadata):void 0,K.botQuotaMetadata=$.botQuotaMetadata!==void 0&&$.botQuotaMetadata!==null?JQ.fromPartial($.botQuotaMetadata):void 0,K.botAgeCollectionMetadata=$.botAgeCollectionMetadata!==void 0&&$.botAgeCollectionMetadata!==null?xK.fromPartial($.botAgeCollectionMetadata):void 0,K.conversationStarterPromptId=$.conversationStarterPromptId??void 0,K.botResponseId=$.botResponseId??void 0,K.verificationMetadata=$.verificationMetadata!==void 0&&$.verificationMetadata!==null?t0.fromPartial($.verificationMetadata):void 0,K.unifiedResponseMutation=$.unifiedResponseMutation!==void 0&&$.unifiedResponseMutation!==null?PQ.fromPartial($.unifiedResponseMutation):void 0,K.botMessageOriginMetadata=$.botMessageOriginMetadata!==void 0&&$.botMessageOriginMetadata!==null?jK.fromPartial($.botMessageOriginMetadata):void 0,K.inThreadSurveyMetadata=$.inThreadSurveyMetadata!==void 0&&$.inThreadSurveyMetadata!==null?iZ.fromPartial($.inThreadSurveyMetadata):void 0,K.botThreadInfo=$.botThreadInfo!==void 0&&$.botThreadInfo!==null?UK.fromPartial($.botThreadInfo):void 0,K.regenerateMetadata=$.regenerateMetadata!==void 0&&$.regenerateMetadata!==null?m$.fromPartial($.regenerateMetadata):void 0,K.sessionTransparencyMetadata=$.sessionTransparencyMetadata!==void 0&&$.sessionTransparencyMetadata!==null?Rq.fromPartial($.sessionTransparencyMetadata):void 0,K.botDocumentMessageMetadata=$.botDocumentMessageMetadata!==void 0&&$.botDocumentMessageMetadata!==null?OK.fromPartial($.botDocumentMessageMetadata):void 0,K.botGroupMetadata=$.botGroupMetadata!==void 0&&$.botGroupMetadata!==null?fK.fromPartial($.botGroupMetadata):void 0,K.botRenderingConfigMetadata=$.botRenderingConfigMetadata!==void 0&&$.botRenderingConfigMetadata!==null?YQ.fromPartial($.botRenderingConfigMetadata):void 0,K.botInfrastructureDiagnostics=$.botInfrastructureDiagnostics!==void 0&&$.botInfrastructureDiagnostics!==null?lK.fromPartial($.botInfrastructureDiagnostics):void 0,K.aiMediaCollectionMetadata=$.aiMediaCollectionMetadata!==void 0&&$.aiMediaCollectionMetadata!==null?o$.fromPartial($.aiMediaCollectionMetadata):void 0,K.commandMetadata=$.commandMetadata!==void 0&&$.commandMetadata!==null?BK.fromPartial($.commandMetadata):void 0,K.resolvedToolCallMetadata=$.resolvedToolCallMetadata!==void 0&&$.resolvedToolCallMetadata!==null?VQ.fromPartial($.resolvedToolCallMetadata):void 0,K.subscriptionUpsellMetadata=$.subscriptionUpsellMetadata!==void 0&&$.subscriptionUpsellMetadata!==null?GK.fromPartial($.subscriptionUpsellMetadata):void 0,K.pttPromptMetadata=$.pttPromptMetadata!==void 0&&$.pttPromptMetadata!==null?ZQ.fromPartial($.pttPromptMetadata):void 0,K.internalMetadata=$.internalMetadata??void 0,K}};function Jz(){return{}}var bK={encode($,K=new H){if($.destinationId!==void 0)K.uint32(10).string($.destinationId);if($.destinationEntryPoint!==void 0)K.uint32(16).int32($.destinationEntryPoint);if($.threadOrigin!==void 0)K.uint32(24).int32($.threadOrigin);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Jz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.destinationId=Q.string();continue}case 2:{if(Z!==16)break;J.destinationEntryPoint=Q.int32();continue}case 3:{if(Z!==24)break;J.threadOrigin=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bK.fromPartial($??{})},fromPartial($){let K=Jz();return K.destinationId=$.destinationId??void 0,K.destinationEntryPoint=$.destinationEntryPoint??void 0,K.threadOrigin=$.threadOrigin??void 0,K}};function Xz(){return{}}var iK={encode($,K=new H){if($.mode!==void 0&&$.mode.length!==0)for(let Q of $.mode)K.uint32(8).int32(Q);if($.overrideMode!==void 0&&$.overrideMode.length!==0)for(let Q of $.overrideMode)K.uint32(16).uint32(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Xz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z===8){if(J.mode===void 0)J.mode=[];J.mode.push(Q.int32());continue}if(Z===10){if(J.mode===void 0)J.mode=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.mode.push(Q.int32());continue}break}case 2:{if(Z===16){if(J.overrideMode===void 0)J.overrideMode=[];J.overrideMode.push(Q.uint32());continue}if(Z===18){if(J.overrideMode===void 0)J.overrideMode=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.overrideMode.push(Q.uint32());continue}break}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iK.fromPartial($??{})},fromPartial($){let K=Xz();return K.mode=$.mode?.map((Q)=>Q)||void 0,K.overrideMode=$.overrideMode?.map((Q)=>Q)||void 0,K}};function qz(){return{}}var mK={encode($,K=new H){if($.modelType!==void 0)K.uint32(8).int32($.modelType);if($.premiumModelStatus!==void 0)K.uint32(16).int32($.premiumModelStatus);if($.modelNameOverride!==void 0)K.uint32(26).string($.modelNameOverride);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.modelType=Q.int32();continue}case 2:{if(Z!==16)break;J.premiumModelStatus=Q.int32();continue}case 3:{if(Z!==26)break;J.modelNameOverride=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mK.fromPartial($??{})},fromPartial($){let K=qz();return K.modelType=$.modelType??void 0,K.premiumModelStatus=$.premiumModelStatus??void 0,K.modelNameOverride=$.modelNameOverride??void 0,K}};function Yz(){return{}}var gK={encode($,K=new H){if($.provider!==void 0)K.uint32(8).int32($.provider);if($.pluginType!==void 0)K.uint32(16).int32($.pluginType);if($.thumbnailCdnUrl!==void 0)K.uint32(26).string($.thumbnailCdnUrl);if($.profilePhotoCdnUrl!==void 0)K.uint32(34).string($.profilePhotoCdnUrl);if($.searchProviderUrl!==void 0)K.uint32(42).string($.searchProviderUrl);if($.referenceIndex!==void 0)K.uint32(48).uint32($.referenceIndex);if($.expectedLinksCount!==void 0)K.uint32(56).uint32($.expectedLinksCount);if($.searchQuery!==void 0)K.uint32(74).string($.searchQuery);if($.parentPluginMessageKey!==void 0)x.encode($.parentPluginMessageKey,K.uint32(82).fork()).join();if($.deprecatedField!==void 0)K.uint32(88).int32($.deprecatedField);if($.parentPluginType!==void 0)K.uint32(96).int32($.parentPluginType);if($.faviconCdnUrl!==void 0)K.uint32(106).string($.faviconCdnUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Yz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.provider=Q.int32();continue}case 2:{if(Z!==16)break;J.pluginType=Q.int32();continue}case 3:{if(Z!==26)break;J.thumbnailCdnUrl=Q.string();continue}case 4:{if(Z!==34)break;J.profilePhotoCdnUrl=Q.string();continue}case 5:{if(Z!==42)break;J.searchProviderUrl=Q.string();continue}case 6:{if(Z!==48)break;J.referenceIndex=Q.uint32();continue}case 7:{if(Z!==56)break;J.expectedLinksCount=Q.uint32();continue}case 9:{if(Z!==74)break;J.searchQuery=Q.string();continue}case 10:{if(Z!==82)break;J.parentPluginMessageKey=x.decode(Q,Q.uint32());continue}case 11:{if(Z!==88)break;J.deprecatedField=Q.int32();continue}case 12:{if(Z!==96)break;J.parentPluginType=Q.int32();continue}case 13:{if(Z!==106)break;J.faviconCdnUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gK.fromPartial($??{})},fromPartial($){let K=Yz();return K.provider=$.provider??void 0,K.pluginType=$.pluginType??void 0,K.thumbnailCdnUrl=$.thumbnailCdnUrl??void 0,K.profilePhotoCdnUrl=$.profilePhotoCdnUrl??void 0,K.searchProviderUrl=$.searchProviderUrl??void 0,K.referenceIndex=$.referenceIndex??void 0,K.expectedLinksCount=$.expectedLinksCount??void 0,K.searchQuery=$.searchQuery??void 0,K.parentPluginMessageKey=$.parentPluginMessageKey!==void 0&&$.parentPluginMessageKey!==null?x.fromPartial($.parentPluginMessageKey):void 0,K.deprecatedField=$.deprecatedField??void 0,K.parentPluginType=$.parentPluginType??void 0,K.faviconCdnUrl=$.faviconCdnUrl??void 0,K}};function Hz(){return{}}var tK={encode($,K=new H){if($.progressDescription!==void 0)K.uint32(10).string($.progressDescription);if($.stepsMetadata!==void 0&&$.stepsMetadata.length!==0)for(let Q of $.stepsMetadata)rK.encode(Q,K.uint32(18).fork()).join();if($.estimatedCompletionTime!==void 0)K.uint32(24).int64($.estimatedCompletionTime);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Hz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.progressDescription=Q.string();continue}case 2:{if(Z!==18)break;if(J.stepsMetadata===void 0)J.stepsMetadata=[];let Y=rK.decode(Q,Q.uint32());if(Y!==void 0)J.stepsMetadata.push(Y);continue}case 3:{if(Z!==24)break;J.estimatedCompletionTime=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tK.fromPartial($??{})},fromPartial($){let K=Hz();return K.progressDescription=$.progressDescription??void 0,K.stepsMetadata=$.stepsMetadata?.map((Q)=>rK.fromPartial(Q))||void 0,K.estimatedCompletionTime=$.estimatedCompletionTime??void 0,K}};function zz(){return{}}var rK={encode($,K=new H){if($.statusTitle!==void 0)K.uint32(10).string($.statusTitle);if($.statusBody!==void 0)K.uint32(18).string($.statusBody);if($.sourcesMetadata!==void 0&&$.sourcesMetadata.length!==0)for(let Q of $.sourcesMetadata)sK.encode(Q,K.uint32(26).fork()).join();if($.status!==void 0)K.uint32(32).int32($.status);if($.isReasoning!==void 0)K.uint32(40).bool($.isReasoning);if($.isEnhancedSearch!==void 0)K.uint32(48).bool($.isEnhancedSearch);if($.sections!==void 0&&$.sections.length!==0)for(let Q of $.sections)eK.encode(Q,K.uint32(58).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.statusTitle=Q.string();continue}case 2:{if(Z!==18)break;J.statusBody=Q.string();continue}case 3:{if(Z!==26)break;if(J.sourcesMetadata===void 0)J.sourcesMetadata=[];let Y=sK.decode(Q,Q.uint32());if(Y!==void 0)J.sourcesMetadata.push(Y);continue}case 4:{if(Z!==32)break;J.status=Q.int32();continue}case 5:{if(Z!==40)break;J.isReasoning=Q.bool();continue}case 6:{if(Z!==48)break;J.isEnhancedSearch=Q.bool();continue}case 7:{if(Z!==58)break;if(J.sections===void 0)J.sections=[];let Y=eK.decode(Q,Q.uint32());if(Y!==void 0)J.sections.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rK.fromPartial($??{})},fromPartial($){let K=zz();return K.statusTitle=$.statusTitle??void 0,K.statusBody=$.statusBody??void 0,K.sourcesMetadata=$.sourcesMetadata?.map((Q)=>sK.fromPartial(Q))||void 0,K.status=$.status??void 0,K.isReasoning=$.isReasoning??void 0,K.isEnhancedSearch=$.isEnhancedSearch??void 0,K.sections=$.sections?.map((Q)=>eK.fromPartial(Q))||void 0,K}};function Vz(){return{}}var aK={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.provider!==void 0)K.uint32(16).int32($.provider);if($.sourceUrl!==void 0)K.uint32(26).string($.sourceUrl);if($.favIconUrl!==void 0)K.uint32(34).string($.favIconUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Vz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==16)break;J.provider=Q.int32();continue}case 3:{if(Z!==26)break;J.sourceUrl=Q.string();continue}case 4:{if(Z!==34)break;J.favIconUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aK.fromPartial($??{})},fromPartial($){let K=Vz();return K.title=$.title??void 0,K.provider=$.provider??void 0,K.sourceUrl=$.sourceUrl??void 0,K.favIconUrl=$.favIconUrl??void 0,K}};function Gz(){return{}}var sK={encode($,K=new H){if($.sourceTitle!==void 0)K.uint32(10).string($.sourceTitle);if($.provider!==void 0)K.uint32(16).int32($.provider);if($.sourceUrl!==void 0)K.uint32(26).string($.sourceUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Gz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.sourceTitle=Q.string();continue}case 2:{if(Z!==16)break;J.provider=Q.int32();continue}case 3:{if(Z!==26)break;J.sourceUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sK.fromPartial($??{})},fromPartial($){let K=Gz();return K.sourceTitle=$.sourceTitle??void 0,K.provider=$.provider??void 0,K.sourceUrl=$.sourceUrl??void 0,K}};function Uz(){return{}}var eK={encode($,K=new H){if($.sectionTitle!==void 0)K.uint32(10).string($.sectionTitle);if($.sectionBody!==void 0)K.uint32(18).string($.sectionBody);if($.sourcesMetadata!==void 0&&$.sourcesMetadata.length!==0)for(let Q of $.sourcesMetadata)aK.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Uz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.sectionTitle=Q.string();continue}case 2:{if(Z!==18)break;J.sectionBody=Q.string();continue}case 3:{if(Z!==26)break;if(J.sourcesMetadata===void 0)J.sourcesMetadata=[];let Y=aK.decode(Q,Q.uint32());if(Y!==void 0)J.sourcesMetadata.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eK.fromPartial($??{})},fromPartial($){let K=Uz();return K.sectionTitle=$.sectionTitle??void 0,K.sectionBody=$.sectionBody??void 0,K.sourcesMetadata=$.sourcesMetadata?.map((Q)=>aK.fromPartial(Q))||void 0,K}};function Cz(){return{}}var $Q={encode($,K=new H){if($.promotionType!==void 0)K.uint32(8).int32($.promotionType);if($.buttonTitle!==void 0)K.uint32(18).string($.buttonTitle);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Cz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.promotionType=Q.int32();continue}case 2:{if(Z!==18)break;J.buttonTitle=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $Q.fromPartial($??{})},fromPartial($){let K=Cz();return K.promotionType=$.promotionType??void 0,K.buttonTitle=$.buttonTitle??void 0,K}};function Dz(){return{}}var KQ={encode($,K=new H){if($.prompt!==void 0)K.uint32(10).string($.prompt);if($.promptId!==void 0)K.uint32(18).string($.promptId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Dz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.prompt=Q.string();continue}case 2:{if(Z!==18)break;J.promptId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KQ.fromPartial($??{})},fromPartial($){let K=Dz();return K.prompt=$.prompt??void 0,K.promptId=$.promptId??void 0,K}};function Lz(){return{}}var QQ={encode($,K=new H){if($.suggestions!==void 0&&$.suggestions.length!==0)for(let Q of $.suggestions)KQ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Lz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.suggestions===void 0)J.suggestions=[];let Y=KQ.decode(Q,Q.uint32());if(Y!==void 0)J.suggestions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QQ.fromPartial($??{})},fromPartial($){let K=Lz();return K.suggestions=$.suggestions?.map((Q)=>KQ.fromPartial(Q))||void 0,K}};function Pz(){return{}}var ZQ={encode($,K=new H){if($.transcript!==void 0)K.uint32(10).string($.transcript);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Pz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.transcript=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZQ.fromPartial($??{})},fromPartial($){let K=Pz();return K.transcript=$.transcript??void 0,K}};function Fz(){return{}}var JQ={encode($,K=new H){if($.botFeatureQuotaMetadata!==void 0&&$.botFeatureQuotaMetadata.length!==0)for(let Q of $.botFeatureQuotaMetadata)XQ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Fz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.botFeatureQuotaMetadata===void 0)J.botFeatureQuotaMetadata=[];let Y=XQ.decode(Q,Q.uint32());if(Y!==void 0)J.botFeatureQuotaMetadata.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JQ.fromPartial($??{})},fromPartial($){let K=Fz();return K.botFeatureQuotaMetadata=$.botFeatureQuotaMetadata?.map((Q)=>XQ.fromPartial(Q))||void 0,K}};function xz(){return{}}var XQ={encode($,K=new H){if($.featureType!==void 0)K.uint32(8).int32($.featureType);if($.remainingQuota!==void 0)K.uint32(16).uint32($.remainingQuota);if($.expirationTimestamp!==void 0)K.uint32(24).uint64($.expirationTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.featureType=Q.int32();continue}case 2:{if(Z!==16)break;J.remainingQuota=Q.uint32();continue}case 3:{if(Z!==24)break;J.expirationTimestamp=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XQ.fromPartial($??{})},fromPartial($){let K=xz();return K.featureType=$.featureType??void 0,K.remainingQuota=$.remainingQuota??void 0,K.expirationTimestamp=$.expirationTimestamp??void 0,K}};function kz(){return{}}var qQ={encode($,K=new H){if($.requestMessageKey!==void 0)x.encode($.requestMessageKey,K.uint32(10).fork()).join();if($.action!==void 0)K.uint32(16).int32($.action);if($.name!==void 0)K.uint32(26).string($.name);if($.nextTriggerTimestamp!==void 0)K.uint32(32).uint64($.nextTriggerTimestamp);if($.frequency!==void 0)K.uint32(40).int32($.frequency);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.requestMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.action=Q.int32();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}case 4:{if(Z!==32)break;J.nextTriggerTimestamp=Q.uint64Number();continue}case 5:{if(Z!==40)break;J.frequency=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qQ.fromPartial($??{})},fromPartial($){let K=kz();return K.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?x.fromPartial($.requestMessageKey):void 0,K.action=$.action??void 0,K.name=$.name??void 0,K.nextTriggerTimestamp=$.nextTriggerTimestamp??void 0,K.frequency=$.frequency??void 0,K}};function Nz(){return{}}var YQ={encode($,K=new H){if($.bloksVersioningId!==void 0)K.uint32(10).string($.bloksVersioningId);if($.pixelDensity!==void 0)K.uint32(17).double($.pixelDensity);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Nz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.bloksVersioningId=Q.string();continue}case 2:{if(Z!==17)break;J.pixelDensity=Q.double();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YQ.fromPartial($??{})},fromPartial($){let K=Nz();return K.bloksVersioningId=$.bloksVersioningId??void 0,K.pixelDensity=$.pixelDensity??void 0,K}};function Rz(){return{}}var HQ={encode($,K=new H){if($.keywords!==void 0&&$.keywords.length!==0)for(let Q of $.keywords)zQ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Rz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.keywords===void 0)J.keywords=[];let Y=zQ.decode(Q,Q.uint32());if(Y!==void 0)J.keywords.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HQ.fromPartial($??{})},fromPartial($){let K=Rz();return K.keywords=$.keywords?.map((Q)=>zQ.fromPartial(Q))||void 0,K}};function Bz(){return{}}var zQ={encode($,K=new H){if($.value!==void 0)K.uint32(10).string($.value);if($.associatedPrompts!==void 0&&$.associatedPrompts.length!==0)for(let Q of $.associatedPrompts)K.uint32(18).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Bz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.value=Q.string();continue}case 2:{if(Z!==18)break;if(J.associatedPrompts===void 0)J.associatedPrompts=[];let Y=Q.string();if(Y!==void 0)J.associatedPrompts.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zQ.fromPartial($??{})},fromPartial($){let K=Bz();return K.value=$.value??void 0,K.associatedPrompts=$.associatedPrompts?.map((Q)=>Q)||void 0,K}};function Oz(){return{}}var VQ={encode($,K=new H){if($.toolCallId!==void 0)K.uint32(10).string($.toolCallId);if($.resolutionDataSerialized!==void 0)K.uint32(18).string($.resolutionDataSerialized);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Oz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.toolCallId=Q.string();continue}case 2:{if(Z!==18)break;J.resolutionDataSerialized=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VQ.fromPartial($??{})},fromPartial($){let K=Oz();return K.toolCallId=$.toolCallId??void 0,K.resolutionDataSerialized=$.resolutionDataSerialized??void 0,K}};function Az(){return{}}var GQ={encode($,K=new H){if($.sessionId!==void 0)K.uint32(10).string($.sessionId);if($.sessionSource!==void 0)K.uint32(16).int32($.sessionSource);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Az();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.sessionId=Q.string();continue}case 2:{if(Z!==16)break;J.sessionSource=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GQ.fromPartial($??{})},fromPartial($){let K=Az();return K.sessionId=$.sessionId??void 0,K.sessionSource=$.sessionSource??void 0,K}};function Ez(){return{}}var t0={encode($,K=new H){if($.proofs!==void 0&&$.proofs.length!==0)for(let Q of $.proofs)UQ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Ez();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.proofs===void 0)J.proofs=[];let Y=UQ.decode(Q,Q.uint32());if(Y!==void 0)J.proofs.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return t0.fromPartial($??{})},fromPartial($){let K=Ez();return K.proofs=$.proofs?.map((Q)=>UQ.fromPartial(Q))||void 0,K}};function Mz(){return{}}var UQ={encode($,K=new H){if($.version!==void 0)K.uint32(8).int32($.version);if($.useCase!==void 0)K.uint32(16).int32($.useCase);if($.signature!==void 0)K.uint32(26).bytes($.signature);if($.certificateChain!==void 0&&$.certificateChain.length!==0)for(let Q of $.certificateChain)K.uint32(34).bytes(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Mz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.version=Q.int32();continue}case 2:{if(Z!==16)break;J.useCase=Q.int32();continue}case 3:{if(Z!==26)break;J.signature=Q.bytes();continue}case 4:{if(Z!==34)break;if(J.certificateChain===void 0)J.certificateChain=[];let Y=Q.bytes();if(Y!==void 0)J.certificateChain.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UQ.fromPartial($??{})},fromPartial($){let K=Mz();return K.version=$.version??void 0,K.useCase=$.useCase??void 0,K.signature=$.signature??void 0,K.certificateChain=$.certificateChain?.map((Q)=>Q)||void 0,K}};function Wz(){return{}}var CQ={encode($,K=new H){if($.sources!==void 0&&$.sources.length!==0)for(let Q of $.sources)DQ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Wz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.sources===void 0)J.sources=[];let Y=DQ.decode(Q,Q.uint32());if(Y!==void 0)J.sources.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return CQ.fromPartial($??{})},fromPartial($){let K=Wz();return K.sources=$.sources?.map((Q)=>DQ.fromPartial(Q))||void 0,K}};function Iz(){return{}}var DQ={encode($,K=new H){if($.provider!==void 0)K.uint32(8).int32($.provider);if($.thumbnailCdnUrl!==void 0)K.uint32(18).string($.thumbnailCdnUrl);if($.sourceProviderUrl!==void 0)K.uint32(26).string($.sourceProviderUrl);if($.sourceQuery!==void 0)K.uint32(34).string($.sourceQuery);if($.faviconCdnUrl!==void 0)K.uint32(42).string($.faviconCdnUrl);if($.citationNumber!==void 0)K.uint32(48).uint32($.citationNumber);if($.sourceTitle!==void 0)K.uint32(58).string($.sourceTitle);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Iz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.provider=Q.int32();continue}case 2:{if(Z!==18)break;J.thumbnailCdnUrl=Q.string();continue}case 3:{if(Z!==26)break;J.sourceProviderUrl=Q.string();continue}case 4:{if(Z!==34)break;J.sourceQuery=Q.string();continue}case 5:{if(Z!==42)break;J.faviconCdnUrl=Q.string();continue}case 6:{if(Z!==48)break;J.citationNumber=Q.uint32();continue}case 7:{if(Z!==58)break;J.sourceTitle=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return DQ.fromPartial($??{})},fromPartial($){let K=Iz();return K.provider=$.provider??void 0,K.thumbnailCdnUrl=$.thumbnailCdnUrl??void 0,K.sourceProviderUrl=$.sourceProviderUrl??void 0,K.sourceQuery=$.sourceQuery??void 0,K.faviconCdnUrl=$.faviconCdnUrl??void 0,K.citationNumber=$.citationNumber??void 0,K.sourceTitle=$.sourceTitle??void 0,K}};function Sz(){return{}}var LQ={encode($,K=new H){if($.suggestedPrompts!==void 0&&$.suggestedPrompts.length!==0)for(let Q of $.suggestedPrompts)K.uint32(10).string(Q);if($.selectedPromptIndex!==void 0)K.uint32(16).uint32($.selectedPromptIndex);if($.promptSuggestions!==void 0)QQ.encode($.promptSuggestions,K.uint32(26).fork()).join();if($.selectedPromptId!==void 0)K.uint32(34).string($.selectedPromptId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Sz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.suggestedPrompts===void 0)J.suggestedPrompts=[];let Y=Q.string();if(Y!==void 0)J.suggestedPrompts.push(Y);continue}case 2:{if(Z!==16)break;J.selectedPromptIndex=Q.uint32();continue}case 3:{if(Z!==26)break;J.promptSuggestions=QQ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.selectedPromptId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LQ.fromPartial($??{})},fromPartial($){let K=Sz();return K.suggestedPrompts=$.suggestedPrompts?.map((Q)=>Q)||void 0,K.selectedPromptIndex=$.selectedPromptIndex??void 0,K.promptSuggestions=$.promptSuggestions!==void 0&&$.promptSuggestions!==null?QQ.fromPartial($.promptSuggestions):void 0,K.selectedPromptId=$.selectedPromptId??void 0,K}};function vz(){return{}}var PQ={encode($,K=new H){if($.sbsMetadata!==void 0)xQ.encode($.sbsMetadata,K.uint32(10).fork()).join();if($.mediaDetailsMetadataList!==void 0&&$.mediaDetailsMetadataList.length!==0)for(let Q of $.mediaDetailsMetadataList)FQ.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.sbsMetadata=xQ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;if(J.mediaDetailsMetadataList===void 0)J.mediaDetailsMetadataList=[];let Y=FQ.decode(Q,Q.uint32());if(Y!==void 0)J.mediaDetailsMetadataList.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PQ.fromPartial($??{})},fromPartial($){let K=vz();return K.sbsMetadata=$.sbsMetadata!==void 0&&$.sbsMetadata!==null?xQ.fromPartial($.sbsMetadata):void 0,K.mediaDetailsMetadataList=$.mediaDetailsMetadataList?.map((Q)=>FQ.fromPartial(Q))||void 0,K}};function Tz(){return{}}var FQ={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.highResMedia!==void 0)z0.encode($.highResMedia,K.uint32(18).fork()).join();if($.previewMedia!==void 0)z0.encode($.previewMedia,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Tz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==18)break;J.highResMedia=z0.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.previewMedia=z0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FQ.fromPartial($??{})},fromPartial($){let K=Tz();return K.id=$.id??void 0,K.highResMedia=$.highResMedia!==void 0&&$.highResMedia!==null?z0.fromPartial($.highResMedia):void 0,K.previewMedia=$.previewMedia!==void 0&&$.previewMedia!==null?z0.fromPartial($.previewMedia):void 0,K}};function yz(){return{}}var xQ={encode($,K=new H){if($.primaryResponseId!==void 0)K.uint32(10).string($.primaryResponseId);if($.surveyCtaHasRendered!==void 0)K.uint32(16).bool($.surveyCtaHasRendered);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.primaryResponseId=Q.string();continue}case 2:{if(Z!==16)break;J.surveyCtaHasRendered=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xQ.fromPartial($??{})},fromPartial($){let K=yz();return K.primaryResponseId=$.primaryResponseId??void 0,K.surveyCtaHasRendered=$.surveyCtaHasRendered??void 0,K}};function fz(){return{}}var r0={encode($,K=new H){if($.callResult!==void 0)K.uint32(8).int32($.callResult);if($.isDndMode!==void 0)K.uint32(16).bool($.isDndMode);if($.silenceReason!==void 0)K.uint32(24).int32($.silenceReason);if($.duration!==void 0)K.uint32(32).int64($.duration);if($.startTime!==void 0)K.uint32(40).int64($.startTime);if($.isIncoming!==void 0)K.uint32(48).bool($.isIncoming);if($.isVideo!==void 0)K.uint32(56).bool($.isVideo);if($.isCallLink!==void 0)K.uint32(64).bool($.isCallLink);if($.callLinkToken!==void 0)K.uint32(74).string($.callLinkToken);if($.scheduledCallId!==void 0)K.uint32(82).string($.scheduledCallId);if($.callId!==void 0)K.uint32(90).string($.callId);if($.callCreatorJid!==void 0)K.uint32(98).string($.callCreatorJid);if($.groupJid!==void 0)K.uint32(106).string($.groupJid);if($.participants!==void 0&&$.participants.length!==0)for(let Q of $.participants)kQ.encode(Q,K.uint32(114).fork()).join();if($.callType!==void 0)K.uint32(120).int32($.callType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.callResult=Q.int32();continue}case 2:{if(Z!==16)break;J.isDndMode=Q.bool();continue}case 3:{if(Z!==24)break;J.silenceReason=Q.int32();continue}case 4:{if(Z!==32)break;J.duration=Q.int64Number();continue}case 5:{if(Z!==40)break;J.startTime=Q.int64Number();continue}case 6:{if(Z!==48)break;J.isIncoming=Q.bool();continue}case 7:{if(Z!==56)break;J.isVideo=Q.bool();continue}case 8:{if(Z!==64)break;J.isCallLink=Q.bool();continue}case 9:{if(Z!==74)break;J.callLinkToken=Q.string();continue}case 10:{if(Z!==82)break;J.scheduledCallId=Q.string();continue}case 11:{if(Z!==90)break;J.callId=Q.string();continue}case 12:{if(Z!==98)break;J.callCreatorJid=Q.string();continue}case 13:{if(Z!==106)break;J.groupJid=Q.string();continue}case 14:{if(Z!==114)break;if(J.participants===void 0)J.participants=[];let Y=kQ.decode(Q,Q.uint32());if(Y!==void 0)J.participants.push(Y);continue}case 15:{if(Z!==120)break;J.callType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return r0.fromPartial($??{})},fromPartial($){let K=fz();return K.callResult=$.callResult??void 0,K.isDndMode=$.isDndMode??void 0,K.silenceReason=$.silenceReason??void 0,K.duration=$.duration??void 0,K.startTime=$.startTime??void 0,K.isIncoming=$.isIncoming??void 0,K.isVideo=$.isVideo??void 0,K.isCallLink=$.isCallLink??void 0,K.callLinkToken=$.callLinkToken??void 0,K.scheduledCallId=$.scheduledCallId??void 0,K.callId=$.callId??void 0,K.callCreatorJid=$.callCreatorJid??void 0,K.groupJid=$.groupJid??void 0,K.participants=$.participants?.map((Q)=>kQ.fromPartial(Q))||void 0,K.callType=$.callType??void 0,K}};function _z(){return{}}var kQ={encode($,K=new H){if($.userJid!==void 0)K.uint32(10).string($.userJid);if($.callResult!==void 0)K.uint32(16).int32($.callResult);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_z();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.userJid=Q.string();continue}case 2:{if(Z!==16)break;J.callResult=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kQ.fromPartial($??{})},fromPartial($){let K=_z();return K.userJid=$.userJid??void 0,K.callResult=$.callResult??void 0,K}};function hz(){return{}}var nY={encode($,K=new H){if($.leaf!==void 0)E0.encode($.leaf,K.uint32(10).fork()).join();if($.intermediate!==void 0)E0.encode($.intermediate,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.leaf=E0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.intermediate=E0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nY.fromPartial($??{})},fromPartial($){let K=hz();return K.leaf=$.leaf!==void 0&&$.leaf!==null?E0.fromPartial($.leaf):void 0,K.intermediate=$.intermediate!==void 0&&$.intermediate!==null?E0.fromPartial($.intermediate):void 0,K}};function lz(){return{}}var E0={encode($,K=new H){if($.details!==void 0)K.uint32(10).bytes($.details);if($.signature!==void 0)K.uint32(18).bytes($.signature);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.details=Q.bytes();continue}case 2:{if(Z!==18)break;J.signature=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return E0.fromPartial($??{})},fromPartial($){let K=lz();return K.details=$.details??void 0,K.signature=$.signature??void 0,K}};function pz(){return{}}var dY={encode($,K=new H){if($.serial!==void 0)K.uint32(8).uint32($.serial);if($.issuerSerial!==void 0)K.uint32(16).uint32($.issuerSerial);if($.key!==void 0)K.uint32(26).bytes($.key);if($.notBefore!==void 0)K.uint32(32).uint64($.notBefore);if($.notAfter!==void 0)K.uint32(40).uint64($.notAfter);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.serial=Q.uint32();continue}case 2:{if(Z!==16)break;J.issuerSerial=Q.uint32();continue}case 3:{if(Z!==26)break;J.key=Q.bytes();continue}case 4:{if(Z!==32)break;J.notBefore=Q.uint64Number();continue}case 5:{if(Z!==40)break;J.notAfter=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dY.fromPartial($??{})},fromPartial($){let K=pz();return K.serial=$.serial??void 0,K.issuerSerial=$.issuerSerial??void 0,K.key=$.key??void 0,K.notBefore=$.notBefore??void 0,K.notAfter=$.notAfter??void 0,K}};function uz(){return{}}var a0={encode($,K=new H){if($.hideLockedChats!==void 0)K.uint32(8).bool($.hideLockedChats);if($.secretCode!==void 0)BY.encode($.secretCode,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.hideLockedChats=Q.bool();continue}case 2:{if(Z!==18)break;J.secretCode=BY.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return a0.fromPartial($??{})},fromPartial($){let K=uz();return K.hideLockedChats=$.hideLockedChats??void 0,K.secretCode=$.secretCode!==void 0&&$.secretCode!==null?BY.fromPartial($.secretCode):void 0,K}};function wz(){return{}}var RN={encode($,K=new H){if($.draftMessage!==void 0)NQ.encode($.draftMessage,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.draftMessage=NQ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RN.fromPartial($??{})},fromPartial($){let K=wz();return K.draftMessage=$.draftMessage!==void 0&&$.draftMessage!==null?NQ.fromPartial($.draftMessage):void 0,K}};function nz(){return{}}var NQ={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.omittedUrl!==void 0)K.uint32(18).string($.omittedUrl);if($.ctwaContextLinkData!==void 0)BQ.encode($.ctwaContextLinkData,K.uint32(26).fork()).join();if($.ctwaContext!==void 0)RQ.encode($.ctwaContext,K.uint32(34).fork()).join();if($.timestamp!==void 0)K.uint32(40).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==18)break;J.omittedUrl=Q.string();continue}case 3:{if(Z!==26)break;J.ctwaContextLinkData=BQ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.ctwaContext=RQ.decode(Q,Q.uint32());continue}case 5:{if(Z!==40)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NQ.fromPartial($??{})},fromPartial($){let K=nz();return K.text=$.text??void 0,K.omittedUrl=$.omittedUrl??void 0,K.ctwaContextLinkData=$.ctwaContextLinkData!==void 0&&$.ctwaContextLinkData!==null?BQ.fromPartial($.ctwaContextLinkData):void 0,K.ctwaContext=$.ctwaContext!==void 0&&$.ctwaContext!==null?RQ.fromPartial($.ctwaContext):void 0,K.timestamp=$.timestamp??void 0,K}};function dz(){return{}}var RQ={encode($,K=new H){if($.conversionSource!==void 0)K.uint32(10).string($.conversionSource);if($.conversionData!==void 0)K.uint32(18).bytes($.conversionData);if($.sourceUrl!==void 0)K.uint32(26).string($.sourceUrl);if($.sourceId!==void 0)K.uint32(34).string($.sourceId);if($.sourceType!==void 0)K.uint32(42).string($.sourceType);if($.title!==void 0)K.uint32(50).string($.title);if($.description!==void 0)K.uint32(58).string($.description);if($.thumbnail!==void 0)K.uint32(66).string($.thumbnail);if($.thumbnailUrl!==void 0)K.uint32(74).string($.thumbnailUrl);if($.mediaType!==void 0)K.uint32(80).int32($.mediaType);if($.mediaUrl!==void 0)K.uint32(90).string($.mediaUrl);if($.isSuspiciousLink!==void 0)K.uint32(96).bool($.isSuspiciousLink);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.conversionSource=Q.string();continue}case 2:{if(Z!==18)break;J.conversionData=Q.bytes();continue}case 3:{if(Z!==26)break;J.sourceUrl=Q.string();continue}case 4:{if(Z!==34)break;J.sourceId=Q.string();continue}case 5:{if(Z!==42)break;J.sourceType=Q.string();continue}case 6:{if(Z!==50)break;J.title=Q.string();continue}case 7:{if(Z!==58)break;J.description=Q.string();continue}case 8:{if(Z!==66)break;J.thumbnail=Q.string();continue}case 9:{if(Z!==74)break;J.thumbnailUrl=Q.string();continue}case 10:{if(Z!==80)break;J.mediaType=Q.int32();continue}case 11:{if(Z!==90)break;J.mediaUrl=Q.string();continue}case 12:{if(Z!==96)break;J.isSuspiciousLink=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RQ.fromPartial($??{})},fromPartial($){let K=dz();return K.conversionSource=$.conversionSource??void 0,K.conversionData=$.conversionData??void 0,K.sourceUrl=$.sourceUrl??void 0,K.sourceId=$.sourceId??void 0,K.sourceType=$.sourceType??void 0,K.title=$.title??void 0,K.description=$.description??void 0,K.thumbnail=$.thumbnail??void 0,K.thumbnailUrl=$.thumbnailUrl??void 0,K.mediaType=$.mediaType??void 0,K.mediaUrl=$.mediaUrl??void 0,K.isSuspiciousLink=$.isSuspiciousLink??void 0,K}};function jz(){return{}}var BQ={encode($,K=new H){if($.context!==void 0)K.uint32(10).string($.context);if($.sourceUrl!==void 0)K.uint32(18).string($.sourceUrl);if($.icebreaker!==void 0)K.uint32(26).string($.icebreaker);if($.phone!==void 0)K.uint32(34).string($.phone);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.context=Q.string();continue}case 2:{if(Z!==18)break;J.sourceUrl=Q.string();continue}case 3:{if(Z!==26)break;J.icebreaker=Q.string();continue}case 4:{if(Z!==34)break;J.phone=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BQ.fromPartial($??{})},fromPartial($){let K=jz();return K.context=$.context??void 0,K.sourceUrl=$.sourceUrl??void 0,K.icebreaker=$.icebreaker??void 0,K.phone=$.phone??void 0,K}};function cz(){return{}}var OQ={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.subtitle!==void 0)K.uint32(18).string($.subtitle);if($.cmsId!==void 0)K.uint32(26).string($.cmsId);if($.imageUrl!==void 0)K.uint32(34).string($.imageUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.subtitle=Q.string();continue}case 3:{if(Z!==26)break;J.cmsId=Q.string();continue}case 4:{if(Z!==34)break;J.imageUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return OQ.fromPartial($??{})},fromPartial($){let K=cz();return K.title=$.title??void 0,K.subtitle=$.subtitle??void 0,K.cmsId=$.cmsId??void 0,K.imageUrl=$.imageUrl??void 0,K}};function oz(){return{}}var BN={encode($,K=new H){if($.isChatDbLidMigrated!==void 0)K.uint32(8).bool($.isChatDbLidMigrated);if($.isSyncdPureLidSession!==void 0)K.uint32(16).bool($.isSyncdPureLidSession);if($.isSyncdSnapshotRecoveryEnabled!==void 0)K.uint32(24).bool($.isSyncdSnapshotRecoveryEnabled);if($.isHsThumbnailSyncEnabled!==void 0)K.uint32(32).bool($.isHsThumbnailSyncEnabled);if($.subscriptionSyncPayload!==void 0)K.uint32(42).bytes($.subscriptionSyncPayload);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isChatDbLidMigrated=Q.bool();continue}case 2:{if(Z!==16)break;J.isSyncdPureLidSession=Q.bool();continue}case 3:{if(Z!==24)break;J.isSyncdSnapshotRecoveryEnabled=Q.bool();continue}case 4:{if(Z!==32)break;J.isHsThumbnailSyncEnabled=Q.bool();continue}case 5:{if(Z!==42)break;J.subscriptionSyncPayload=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BN.fromPartial($??{})},fromPartial($){let K=oz();return K.isChatDbLidMigrated=$.isChatDbLidMigrated??void 0,K.isSyncdPureLidSession=$.isSyncdPureLidSession??void 0,K.isSyncdSnapshotRecoveryEnabled=$.isSyncdSnapshotRecoveryEnabled??void 0,K.isHsThumbnailSyncEnabled=$.isHsThumbnailSyncEnabled??void 0,K.subscriptionSyncPayload=$.subscriptionSyncPayload??void 0,K}};function bz(){return{}}var jY={encode($,K=new H){if($.username!==void 0)K.uint32(8).uint64($.username);if($.passive!==void 0)K.uint32(24).bool($.passive);if($.userAgent!==void 0)WQ.encode($.userAgent,K.uint32(42).fork()).join();if($.webInfo!==void 0)SQ.encode($.webInfo,K.uint32(50).fork()).join();if($.pushName!==void 0)K.uint32(58).string($.pushName);if($.sessionId!==void 0)K.uint32(77).sfixed32($.sessionId);if($.shortConnect!==void 0)K.uint32(80).bool($.shortConnect);if($.connectType!==void 0)K.uint32(96).int32($.connectType);if($.connectReason!==void 0)K.uint32(104).int32($.connectReason);if($.shards!==void 0&&$.shards.length!==0)for(let Q of $.shards)K.uint32(112).int32(Q);if($.dnsSource!==void 0)AQ.encode($.dnsSource,K.uint32(122).fork()).join();if($.connectAttemptCount!==void 0)K.uint32(128).uint32($.connectAttemptCount);if($.device!==void 0)K.uint32(144).uint32($.device);if($.devicePairingData!==void 0)EQ.encode($.devicePairingData,K.uint32(154).fork()).join();if($.product!==void 0)K.uint32(160).int32($.product);if($.fbCat!==void 0)K.uint32(170).bytes($.fbCat);if($.fbUserAgent!==void 0)K.uint32(178).bytes($.fbUserAgent);if($.oc!==void 0)K.uint32(184).bool($.oc);if($.lc!==void 0)K.uint32(192).int32($.lc);if($.iosAppExtension!==void 0)K.uint32(240).int32($.iosAppExtension);if($.fbAppId!==void 0)K.uint32(248).uint64($.fbAppId);if($.fbDeviceId!==void 0)K.uint32(258).bytes($.fbDeviceId);if($.pull!==void 0)K.uint32(264).bool($.pull);if($.paddingBytes!==void 0)K.uint32(274).bytes($.paddingBytes);if($.yearClass!==void 0)K.uint32(288).int32($.yearClass);if($.memClass!==void 0)K.uint32(296).int32($.memClass);if($.interopData!==void 0)MQ.encode($.interopData,K.uint32(306).fork()).join();if($.trafficAnonymization!==void 0)K.uint32(320).int32($.trafficAnonymization);if($.lidDbMigrated!==void 0)K.uint32(328).bool($.lidDbMigrated);if($.accountType!==void 0)K.uint32(336).int32($.accountType);if($.connectionSequenceInfo!==void 0)K.uint32(349).sfixed32($.connectionSequenceInfo);if($.paaLink!==void 0)K.uint32(352).bool($.paaLink);if($.preacksCount!==void 0)K.uint32(360).int32($.preacksCount);if($.processingQueueSize!==void 0)K.uint32(368).int32($.processingQueueSize);if($.pairedPeripherals!==void 0&&$.pairedPeripherals.length!==0)for(let Q of $.pairedPeripherals)K.uint32(378).string(Q);if($.testIsolationId!==void 0)K.uint32(386).bytes($.testIsolationId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.username=Q.uint64Number();continue}case 3:{if(Z!==24)break;J.passive=Q.bool();continue}case 5:{if(Z!==42)break;J.userAgent=WQ.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.webInfo=SQ.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.pushName=Q.string();continue}case 9:{if(Z!==77)break;J.sessionId=Q.sfixed32();continue}case 10:{if(Z!==80)break;J.shortConnect=Q.bool();continue}case 12:{if(Z!==96)break;J.connectType=Q.int32();continue}case 13:{if(Z!==104)break;J.connectReason=Q.int32();continue}case 14:{if(Z===112){if(J.shards===void 0)J.shards=[];J.shards.push(Q.int32());continue}if(Z===114){if(J.shards===void 0)J.shards=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.shards.push(Q.int32());continue}break}case 15:{if(Z!==122)break;J.dnsSource=AQ.decode(Q,Q.uint32());continue}case 16:{if(Z!==128)break;J.connectAttemptCount=Q.uint32();continue}case 18:{if(Z!==144)break;J.device=Q.uint32();continue}case 19:{if(Z!==154)break;J.devicePairingData=EQ.decode(Q,Q.uint32());continue}case 20:{if(Z!==160)break;J.product=Q.int32();continue}case 21:{if(Z!==170)break;J.fbCat=Q.bytes();continue}case 22:{if(Z!==178)break;J.fbUserAgent=Q.bytes();continue}case 23:{if(Z!==184)break;J.oc=Q.bool();continue}case 24:{if(Z!==192)break;J.lc=Q.int32();continue}case 30:{if(Z!==240)break;J.iosAppExtension=Q.int32();continue}case 31:{if(Z!==248)break;J.fbAppId=Q.uint64Number();continue}case 32:{if(Z!==258)break;J.fbDeviceId=Q.bytes();continue}case 33:{if(Z!==264)break;J.pull=Q.bool();continue}case 34:{if(Z!==274)break;J.paddingBytes=Q.bytes();continue}case 36:{if(Z!==288)break;J.yearClass=Q.int32();continue}case 37:{if(Z!==296)break;J.memClass=Q.int32();continue}case 38:{if(Z!==306)break;J.interopData=MQ.decode(Q,Q.uint32());continue}case 40:{if(Z!==320)break;J.trafficAnonymization=Q.int32();continue}case 41:{if(Z!==328)break;J.lidDbMigrated=Q.bool();continue}case 42:{if(Z!==336)break;J.accountType=Q.int32();continue}case 43:{if(Z!==349)break;J.connectionSequenceInfo=Q.sfixed32();continue}case 44:{if(Z!==352)break;J.paaLink=Q.bool();continue}case 45:{if(Z!==360)break;J.preacksCount=Q.int32();continue}case 46:{if(Z!==368)break;J.processingQueueSize=Q.int32();continue}case 47:{if(Z!==378)break;if(J.pairedPeripherals===void 0)J.pairedPeripherals=[];let Y=Q.string();if(Y!==void 0)J.pairedPeripherals.push(Y);continue}case 48:{if(Z!==386)break;J.testIsolationId=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jY.fromPartial($??{})},fromPartial($){let K=bz();return K.username=$.username??void 0,K.passive=$.passive??void 0,K.userAgent=$.userAgent!==void 0&&$.userAgent!==null?WQ.fromPartial($.userAgent):void 0,K.webInfo=$.webInfo!==void 0&&$.webInfo!==null?SQ.fromPartial($.webInfo):void 0,K.pushName=$.pushName??void 0,K.sessionId=$.sessionId??void 0,K.shortConnect=$.shortConnect??void 0,K.connectType=$.connectType??void 0,K.connectReason=$.connectReason??void 0,K.shards=$.shards?.map((Q)=>Q)||void 0,K.dnsSource=$.dnsSource!==void 0&&$.dnsSource!==null?AQ.fromPartial($.dnsSource):void 0,K.connectAttemptCount=$.connectAttemptCount??void 0,K.device=$.device??void 0,K.devicePairingData=$.devicePairingData!==void 0&&$.devicePairingData!==null?EQ.fromPartial($.devicePairingData):void 0,K.product=$.product??void 0,K.fbCat=$.fbCat??void 0,K.fbUserAgent=$.fbUserAgent??void 0,K.oc=$.oc??void 0,K.lc=$.lc??void 0,K.iosAppExtension=$.iosAppExtension??void 0,K.fbAppId=$.fbAppId??void 0,K.fbDeviceId=$.fbDeviceId??void 0,K.pull=$.pull??void 0,K.paddingBytes=$.paddingBytes??void 0,K.yearClass=$.yearClass??void 0,K.memClass=$.memClass??void 0,K.interopData=$.interopData!==void 0&&$.interopData!==null?MQ.fromPartial($.interopData):void 0,K.trafficAnonymization=$.trafficAnonymization??void 0,K.lidDbMigrated=$.lidDbMigrated??void 0,K.accountType=$.accountType??void 0,K.connectionSequenceInfo=$.connectionSequenceInfo??void 0,K.paaLink=$.paaLink??void 0,K.preacksCount=$.preacksCount??void 0,K.processingQueueSize=$.processingQueueSize??void 0,K.pairedPeripherals=$.pairedPeripherals?.map((Q)=>Q)||void 0,K.testIsolationId=$.testIsolationId??void 0,K}};function iz(){return{}}var AQ={encode($,K=new H){if($.dnsMethod!==void 0)K.uint32(120).int32($.dnsMethod);if($.appCached!==void 0)K.uint32(128).bool($.appCached);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 15:{if(Z!==120)break;J.dnsMethod=Q.int32();continue}case 16:{if(Z!==128)break;J.appCached=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AQ.fromPartial($??{})},fromPartial($){let K=iz();return K.dnsMethod=$.dnsMethod??void 0,K.appCached=$.appCached??void 0,K}};function mz(){return{}}var EQ={encode($,K=new H){if($.eRegid!==void 0)K.uint32(10).bytes($.eRegid);if($.eKeytype!==void 0)K.uint32(18).bytes($.eKeytype);if($.eIdent!==void 0)K.uint32(26).bytes($.eIdent);if($.eSkeyId!==void 0)K.uint32(34).bytes($.eSkeyId);if($.eSkeyVal!==void 0)K.uint32(42).bytes($.eSkeyVal);if($.eSkeySig!==void 0)K.uint32(50).bytes($.eSkeySig);if($.buildHash!==void 0)K.uint32(58).bytes($.buildHash);if($.deviceProps!==void 0)K.uint32(66).bytes($.deviceProps);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.eRegid=Q.bytes();continue}case 2:{if(Z!==18)break;J.eKeytype=Q.bytes();continue}case 3:{if(Z!==26)break;J.eIdent=Q.bytes();continue}case 4:{if(Z!==34)break;J.eSkeyId=Q.bytes();continue}case 5:{if(Z!==42)break;J.eSkeyVal=Q.bytes();continue}case 6:{if(Z!==50)break;J.eSkeySig=Q.bytes();continue}case 7:{if(Z!==58)break;J.buildHash=Q.bytes();continue}case 8:{if(Z!==66)break;J.deviceProps=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EQ.fromPartial($??{})},fromPartial($){let K=mz();return K.eRegid=$.eRegid??void 0,K.eKeytype=$.eKeytype??void 0,K.eIdent=$.eIdent??void 0,K.eSkeyId=$.eSkeyId??void 0,K.eSkeyVal=$.eSkeyVal??void 0,K.eSkeySig=$.eSkeySig??void 0,K.buildHash=$.buildHash??void 0,K.deviceProps=$.deviceProps??void 0,K}};function gz(){return{}}var MQ={encode($,K=new H){if($.accountId!==void 0)K.uint32(8).uint64($.accountId);if($.token!==void 0)K.uint32(18).bytes($.token);if($.enableReadReceipts!==void 0)K.uint32(24).bool($.enableReadReceipts);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.accountId=Q.uint64Number();continue}case 2:{if(Z!==18)break;J.token=Q.bytes();continue}case 3:{if(Z!==24)break;J.enableReadReceipts=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MQ.fromPartial($??{})},fromPartial($){let K=gz();return K.accountId=$.accountId??void 0,K.token=$.token??void 0,K.enableReadReceipts=$.enableReadReceipts??void 0,K}};function tz(){return{}}var WQ={encode($,K=new H){if($.platform!==void 0)K.uint32(8).int32($.platform);if($.appVersion!==void 0)IQ.encode($.appVersion,K.uint32(18).fork()).join();if($.mcc!==void 0)K.uint32(26).string($.mcc);if($.mnc!==void 0)K.uint32(34).string($.mnc);if($.osVersion!==void 0)K.uint32(42).string($.osVersion);if($.manufacturer!==void 0)K.uint32(50).string($.manufacturer);if($.device!==void 0)K.uint32(58).string($.device);if($.osBuildNumber!==void 0)K.uint32(66).string($.osBuildNumber);if($.phoneId!==void 0)K.uint32(74).string($.phoneId);if($.releaseChannel!==void 0)K.uint32(80).int32($.releaseChannel);if($.localeLanguageIso6391!==void 0)K.uint32(90).string($.localeLanguageIso6391);if($.localeCountryIso31661Alpha2!==void 0)K.uint32(98).string($.localeCountryIso31661Alpha2);if($.deviceBoard!==void 0)K.uint32(106).string($.deviceBoard);if($.deviceExpId!==void 0)K.uint32(114).string($.deviceExpId);if($.deviceType!==void 0)K.uint32(120).int32($.deviceType);if($.deviceModelType!==void 0)K.uint32(130).string($.deviceModelType);if($.distributionChannel!==void 0)K.uint32(136).int32($.distributionChannel);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.platform=Q.int32();continue}case 2:{if(Z!==18)break;J.appVersion=IQ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.mcc=Q.string();continue}case 4:{if(Z!==34)break;J.mnc=Q.string();continue}case 5:{if(Z!==42)break;J.osVersion=Q.string();continue}case 6:{if(Z!==50)break;J.manufacturer=Q.string();continue}case 7:{if(Z!==58)break;J.device=Q.string();continue}case 8:{if(Z!==66)break;J.osBuildNumber=Q.string();continue}case 9:{if(Z!==74)break;J.phoneId=Q.string();continue}case 10:{if(Z!==80)break;J.releaseChannel=Q.int32();continue}case 11:{if(Z!==90)break;J.localeLanguageIso6391=Q.string();continue}case 12:{if(Z!==98)break;J.localeCountryIso31661Alpha2=Q.string();continue}case 13:{if(Z!==106)break;J.deviceBoard=Q.string();continue}case 14:{if(Z!==114)break;J.deviceExpId=Q.string();continue}case 15:{if(Z!==120)break;J.deviceType=Q.int32();continue}case 16:{if(Z!==130)break;J.deviceModelType=Q.string();continue}case 17:{if(Z!==136)break;J.distributionChannel=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return WQ.fromPartial($??{})},fromPartial($){let K=tz();return K.platform=$.platform??void 0,K.appVersion=$.appVersion!==void 0&&$.appVersion!==null?IQ.fromPartial($.appVersion):void 0,K.mcc=$.mcc??void 0,K.mnc=$.mnc??void 0,K.osVersion=$.osVersion??void 0,K.manufacturer=$.manufacturer??void 0,K.device=$.device??void 0,K.osBuildNumber=$.osBuildNumber??void 0,K.phoneId=$.phoneId??void 0,K.releaseChannel=$.releaseChannel??void 0,K.localeLanguageIso6391=$.localeLanguageIso6391??void 0,K.localeCountryIso31661Alpha2=$.localeCountryIso31661Alpha2??void 0,K.deviceBoard=$.deviceBoard??void 0,K.deviceExpId=$.deviceExpId??void 0,K.deviceType=$.deviceType??void 0,K.deviceModelType=$.deviceModelType??void 0,K.distributionChannel=$.distributionChannel??void 0,K}};function rz(){return{}}var IQ={encode($,K=new H){if($.primary!==void 0)K.uint32(8).uint32($.primary);if($.secondary!==void 0)K.uint32(16).uint32($.secondary);if($.tertiary!==void 0)K.uint32(24).uint32($.tertiary);if($.quaternary!==void 0)K.uint32(32).uint32($.quaternary);if($.quinary!==void 0)K.uint32(40).uint32($.quinary);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.primary=Q.uint32();continue}case 2:{if(Z!==16)break;J.secondary=Q.uint32();continue}case 3:{if(Z!==24)break;J.tertiary=Q.uint32();continue}case 4:{if(Z!==32)break;J.quaternary=Q.uint32();continue}case 5:{if(Z!==40)break;J.quinary=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return IQ.fromPartial($??{})},fromPartial($){let K=rz();return K.primary=$.primary??void 0,K.secondary=$.secondary??void 0,K.tertiary=$.tertiary??void 0,K.quaternary=$.quaternary??void 0,K.quinary=$.quinary??void 0,K}};function az(){return{}}var SQ={encode($,K=new H){if($.refToken!==void 0)K.uint32(10).string($.refToken);if($.version!==void 0)K.uint32(18).string($.version);if($.webdPayload!==void 0)vQ.encode($.webdPayload,K.uint32(26).fork()).join();if($.webSubPlatform!==void 0)K.uint32(32).int32($.webSubPlatform);if($.browser!==void 0)K.uint32(42).string($.browser);if($.browserVersion!==void 0)K.uint32(50).string($.browserVersion);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=az();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.refToken=Q.string();continue}case 2:{if(Z!==18)break;J.version=Q.string();continue}case 3:{if(Z!==26)break;J.webdPayload=vQ.decode(Q,Q.uint32());continue}case 4:{if(Z!==32)break;J.webSubPlatform=Q.int32();continue}case 5:{if(Z!==42)break;J.browser=Q.string();continue}case 6:{if(Z!==50)break;J.browserVersion=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return SQ.fromPartial($??{})},fromPartial($){let K=az();return K.refToken=$.refToken??void 0,K.version=$.version??void 0,K.webdPayload=$.webdPayload!==void 0&&$.webdPayload!==null?vQ.fromPartial($.webdPayload):void 0,K.webSubPlatform=$.webSubPlatform??void 0,K.browser=$.browser??void 0,K.browserVersion=$.browserVersion??void 0,K}};function sz(){return{}}var vQ={encode($,K=new H){if($.usesParticipantInKey!==void 0)K.uint32(8).bool($.usesParticipantInKey);if($.supportsStarredMessages!==void 0)K.uint32(16).bool($.supportsStarredMessages);if($.supportsDocumentMessages!==void 0)K.uint32(24).bool($.supportsDocumentMessages);if($.supportsUrlMessages!==void 0)K.uint32(32).bool($.supportsUrlMessages);if($.supportsMediaRetry!==void 0)K.uint32(40).bool($.supportsMediaRetry);if($.supportsE2EImage!==void 0)K.uint32(48).bool($.supportsE2EImage);if($.supportsE2EVideo!==void 0)K.uint32(56).bool($.supportsE2EVideo);if($.supportsE2EAudio!==void 0)K.uint32(64).bool($.supportsE2EAudio);if($.supportsE2EDocument!==void 0)K.uint32(72).bool($.supportsE2EDocument);if($.documentTypes!==void 0)K.uint32(82).string($.documentTypes);if($.features!==void 0)K.uint32(90).bytes($.features);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sz();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.usesParticipantInKey=Q.bool();continue}case 2:{if(Z!==16)break;J.supportsStarredMessages=Q.bool();continue}case 3:{if(Z!==24)break;J.supportsDocumentMessages=Q.bool();continue}case 4:{if(Z!==32)break;J.supportsUrlMessages=Q.bool();continue}case 5:{if(Z!==40)break;J.supportsMediaRetry=Q.bool();continue}case 6:{if(Z!==48)break;J.supportsE2EImage=Q.bool();continue}case 7:{if(Z!==56)break;J.supportsE2EVideo=Q.bool();continue}case 8:{if(Z!==64)break;J.supportsE2EAudio=Q.bool();continue}case 9:{if(Z!==72)break;J.supportsE2EDocument=Q.bool();continue}case 10:{if(Z!==82)break;J.documentTypes=Q.string();continue}case 11:{if(Z!==90)break;J.features=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vQ.fromPartial($??{})},fromPartial($){let K=sz();return K.usesParticipantInKey=$.usesParticipantInKey??void 0,K.supportsStarredMessages=$.supportsStarredMessages??void 0,K.supportsDocumentMessages=$.supportsDocumentMessages??void 0,K.supportsUrlMessages=$.supportsUrlMessages??void 0,K.supportsMediaRetry=$.supportsMediaRetry??void 0,K.supportsE2EImage=$.supportsE2EImage??void 0,K.supportsE2EVideo=$.supportsE2EVideo??void 0,K.supportsE2EAudio=$.supportsE2EAudio??void 0,K.supportsE2EDocument=$.supportsE2EDocument??void 0,K.documentTypes=$.documentTypes??void 0,K.features=$.features??void 0,K}};function ez(){return{}}var ON={encode($,K=new H){if($.version!==void 0)K.uint32(8).uint32($.version);if($.localFingerprint!==void 0)u0.encode($.localFingerprint,K.uint32(18).fork()).join();if($.remoteFingerprint!==void 0)u0.encode($.remoteFingerprint,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ez();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.version=Q.uint32();continue}case 2:{if(Z!==18)break;J.localFingerprint=u0.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.remoteFingerprint=u0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ON.fromPartial($??{})},fromPartial($){let K=ez();return K.version=$.version??void 0,K.localFingerprint=$.localFingerprint!==void 0&&$.localFingerprint!==null?u0.fromPartial($.localFingerprint):void 0,K.remoteFingerprint=$.remoteFingerprint!==void 0&&$.remoteFingerprint!==null?u0.fromPartial($.remoteFingerprint):void 0,K}};function $V(){return{}}var TQ={encode($,K=new H){if($.commandType!==void 0)K.uint32(8).int32($.commandType);if($.offset!==void 0)K.uint32(16).uint32($.offset);if($.length!==void 0)K.uint32(24).uint32($.length);if($.validationToken!==void 0)K.uint32(34).string($.validationToken);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$V();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.commandType=Q.int32();continue}case 2:{if(Z!==16)break;J.offset=Q.uint32();continue}case 3:{if(Z!==24)break;J.length=Q.uint32();continue}case 4:{if(Z!==34)break;J.validationToken=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return TQ.fromPartial($??{})},fromPartial($){let K=$V();return K.commandType=$.commandType??void 0,K.offset=$.offset??void 0,K.length=$.length??void 0,K.validationToken=$.validationToken??void 0,K}};function KV(){return{}}var yQ={encode($,K=new H){if($.commentParentKey!==void 0)x.encode($.commentParentKey,K.uint32(10).fork()).join();if($.replyCount!==void 0)K.uint32(16).uint32($.replyCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.commentParentKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.replyCount=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yQ.fromPartial($??{})},fromPartial($){let K=KV();return K.commentParentKey=$.commentParentKey!==void 0&&$.commentParentKey!==null?x.fromPartial($.commentParentKey):void 0,K.replyCount=$.replyCount??void 0,K}};function QV(){return{}}var fQ={encode($,K=new H){if($.hash!==void 0)K.uint32(10).bytes($.hash);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.hash=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fQ.fromPartial($??{})},fromPartial($){let K=QV();return K.hash=$.hash??void 0,K}};function ZV(){return{}}var AN={encode($,K=new H){if($.publicKey!==void 0)K.uint32(10).bytes($.publicKey);if($.deviceType!==void 0)K.uint32(16).int32($.deviceType);if($.ref!==void 0)K.uint32(26).string($.ref);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.publicKey=Q.bytes();continue}case 2:{if(Z!==16)break;J.deviceType=Q.int32();continue}case 3:{if(Z!==26)break;J.ref=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AN.fromPartial($??{})},fromPartial($){let K=ZV();return K.publicKey=$.publicKey??void 0,K.deviceType=$.deviceType??void 0,K.ref=$.ref??void 0,K}};function JV(){return{}}var EN={encode($,K=new H){if(globalThis.Object.entries($.field||{}).forEach(([Q,X])=>{fY.encode({key:Q,value:X},K.uint32(10).fork()).join()}),$.version!==void 0)K.uint32(16).uint32($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;let Y=fY.decode(Q,Q.uint32());if(Y.value!==void 0&&Y.key!==void 0){if(J.field===void 0)J.field={};J.field[Y.key]=Y.value}continue}case 2:{if(Z!==16)break;J.version=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EN.fromPartial($??{})},fromPartial($){let K=JV();return K.field=$.field===void 0||$.field===null?void 0:globalThis.Object.entries($.field??{}).reduce((Q,[X,J])=>{if(J!==void 0)Q[globalThis.Number(X)]=M0.fromPartial(J);return Q},{}),K.version=$.version??void 0,K}};function XV(){return{}}var fY={encode($,K=new H){if($.key!==void 0)K.uint32(8).uint32($.key);if($.value!==void 0)M0.encode($.value,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.key=Q.uint32();continue}case 2:{if(Z!==18)break;J.value=M0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fY.fromPartial($??{})},fromPartial($){let K=XV();return K.key=$.key??void 0,K.value=$.value!==void 0&&$.value!==null?M0.fromPartial($.value):void 0,K}};function qV(){return{}}var MN={encode($,K=new H){if($.payload!==void 0)oQ.encode($.payload,K.uint32(10).fork()).join();if($.metadata!==void 0)cQ.encode($.metadata,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.payload=oQ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.metadata=cQ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MN.fromPartial($??{})},fromPartial($){let K=qV();return K.payload=$.payload!==void 0&&$.payload!==null?oQ.fromPartial($.payload):void 0,K.metadata=$.metadata!==void 0&&$.metadata!==null?cQ.fromPartial($.metadata):void 0,K}};function YV(){return{}}var _Q={encode($,K=new H){if($.revoke!==void 0)tQ.encode($.revoke,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.revoke=tQ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _Q.fromPartial($??{})},fromPartial($){let K=YV();return K.revoke=$.revoke!==void 0&&$.revoke!==null?tQ.fromPartial($.revoke):void 0,K}};function HV(){return{}}var hQ={encode($,K=new H){if($.audio!==void 0)o.encode($.audio,K.uint32(10).fork()).join();if($.ptt!==void 0)K.uint32(16).bool($.ptt);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.audio=o.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.ptt=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hQ.fromPartial($??{})},fromPartial($){let K=HV();return K.audio=$.audio!==void 0&&$.audio!==null?o.fromPartial($.audio):void 0,K.ptt=$.ptt??void 0,K}};function zV(){return{}}var s0={encode($,K=new H){if($.contact!==void 0)o.encode($.contact,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.contact=o.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return s0.fromPartial($??{})},fromPartial($){let K=zV();return K.contact=$.contact!==void 0&&$.contact!==null?o.fromPartial($.contact):void 0,K}};function VV(){return{}}var lQ={encode($,K=new H){if($.displayName!==void 0)K.uint32(10).string($.displayName);if($.contacts!==void 0&&$.contacts.length!==0)for(let Q of $.contacts)s0.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayName=Q.string();continue}case 2:{if(Z!==18)break;if(J.contacts===void 0)J.contacts=[];let Y=s0.decode(Q,Q.uint32());if(Y!==void 0)J.contacts.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lQ.fromPartial($??{})},fromPartial($){let K=VV();return K.displayName=$.displayName??void 0,K.contacts=$.contacts?.map((Q)=>s0.fromPartial(Q))||void 0,K}};function GV(){return{}}var pQ={encode($,K=new H){if($.messageText!==void 0)m.encode($.messageText,K.uint32(10).fork()).join();if($.imageMessage!==void 0)$$.encode($.imageMessage,K.uint32(18).fork()).join();if($.contactMessage!==void 0)s0.encode($.contactMessage,K.uint32(26).fork()).join();if($.locationMessage!==void 0)jQ.encode($.locationMessage,K.uint32(34).fork()).join();if($.extendedTextMessage!==void 0)e0.encode($.extendedTextMessage,K.uint32(42).fork()).join();if($.statusTextMessage!==void 0)aQ.encode($.statusTextMessage,K.uint32(50).fork()).join();if($.documentMessage!==void 0)uQ.encode($.documentMessage,K.uint32(58).fork()).join();if($.audioMessage!==void 0)hQ.encode($.audioMessage,K.uint32(66).fork()).join();if($.videoMessage!==void 0)Q$.encode($.videoMessage,K.uint32(74).fork()).join();if($.contactsArrayMessage!==void 0)lQ.encode($.contactsArrayMessage,K.uint32(82).fork()).join();if($.liveLocationMessage!==void 0)dQ.encode($.liveLocationMessage,K.uint32(90).fork()).join();if($.stickerMessage!==void 0)sQ.encode($.stickerMessage,K.uint32(98).fork()).join();if($.groupInviteMessage!==void 0)nQ.encode($.groupInviteMessage,K.uint32(106).fork()).join();if($.viewOnceMessage!==void 0)$Z.encode($.viewOnceMessage,K.uint32(114).fork()).join();if($.reactionMessage!==void 0)gQ.encode($.reactionMessage,K.uint32(130).fork()).join();if($.pollCreationMessage!==void 0)iQ.encode($.pollCreationMessage,K.uint32(138).fork()).join();if($.pollUpdateMessage!==void 0)mQ.encode($.pollUpdateMessage,K.uint32(146).fork()).join();if($.editMessage!==void 0)wQ.encode($.editMessage,K.uint32(154).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageText=m.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.imageMessage=$$.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.contactMessage=s0.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.locationMessage=jQ.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.extendedTextMessage=e0.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.statusTextMessage=aQ.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.documentMessage=uQ.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.audioMessage=hQ.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.videoMessage=Q$.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.contactsArrayMessage=lQ.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.liveLocationMessage=dQ.decode(Q,Q.uint32());continue}case 12:{if(Z!==98)break;J.stickerMessage=sQ.decode(Q,Q.uint32());continue}case 13:{if(Z!==106)break;J.groupInviteMessage=nQ.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.viewOnceMessage=$Z.decode(Q,Q.uint32());continue}case 16:{if(Z!==130)break;J.reactionMessage=gQ.decode(Q,Q.uint32());continue}case 17:{if(Z!==138)break;J.pollCreationMessage=iQ.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.pollUpdateMessage=mQ.decode(Q,Q.uint32());continue}case 19:{if(Z!==154)break;J.editMessage=wQ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pQ.fromPartial($??{})},fromPartial($){let K=GV();return K.messageText=$.messageText!==void 0&&$.messageText!==null?m.fromPartial($.messageText):void 0,K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?$$.fromPartial($.imageMessage):void 0,K.contactMessage=$.contactMessage!==void 0&&$.contactMessage!==null?s0.fromPartial($.contactMessage):void 0,K.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?jQ.fromPartial($.locationMessage):void 0,K.extendedTextMessage=$.extendedTextMessage!==void 0&&$.extendedTextMessage!==null?e0.fromPartial($.extendedTextMessage):void 0,K.statusTextMessage=$.statusTextMessage!==void 0&&$.statusTextMessage!==null?aQ.fromPartial($.statusTextMessage):void 0,K.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?uQ.fromPartial($.documentMessage):void 0,K.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?hQ.fromPartial($.audioMessage):void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?Q$.fromPartial($.videoMessage):void 0,K.contactsArrayMessage=$.contactsArrayMessage!==void 0&&$.contactsArrayMessage!==null?lQ.fromPartial($.contactsArrayMessage):void 0,K.liveLocationMessage=$.liveLocationMessage!==void 0&&$.liveLocationMessage!==null?dQ.fromPartial($.liveLocationMessage):void 0,K.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?sQ.fromPartial($.stickerMessage):void 0,K.groupInviteMessage=$.groupInviteMessage!==void 0&&$.groupInviteMessage!==null?nQ.fromPartial($.groupInviteMessage):void 0,K.viewOnceMessage=$.viewOnceMessage!==void 0&&$.viewOnceMessage!==null?$Z.fromPartial($.viewOnceMessage):void 0,K.reactionMessage=$.reactionMessage!==void 0&&$.reactionMessage!==null?gQ.fromPartial($.reactionMessage):void 0,K.pollCreationMessage=$.pollCreationMessage!==void 0&&$.pollCreationMessage!==null?iQ.fromPartial($.pollCreationMessage):void 0,K.pollUpdateMessage=$.pollUpdateMessage!==void 0&&$.pollUpdateMessage!==null?mQ.fromPartial($.pollUpdateMessage):void 0,K.editMessage=$.editMessage!==void 0&&$.editMessage!==null?wQ.fromPartial($.editMessage):void 0,K}};function UV(){return{}}var uQ={encode($,K=new H){if($.document!==void 0)o.encode($.document,K.uint32(10).fork()).join();if($.fileName!==void 0)K.uint32(18).string($.fileName);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.document=o.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.fileName=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uQ.fromPartial($??{})},fromPartial($){let K=UV();return K.document=$.document!==void 0&&$.document!==null?o.fromPartial($.document):void 0,K.fileName=$.fileName??void 0,K}};function CV(){return{}}var wQ={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.message!==void 0)m.encode($.message,K.uint32(18).fork()).join();if($.timestampMs!==void 0)K.uint32(24).int64($.timestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.message=m.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.timestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wQ.fromPartial($??{})},fromPartial($){let K=CV();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.message=$.message!==void 0&&$.message!==null?m.fromPartial($.message):void 0,K.timestampMs=$.timestampMs??void 0,K}};function DV(){return{}}var e0={encode($,K=new H){if($.text!==void 0)m.encode($.text,K.uint32(10).fork()).join();if($.matchedText!==void 0)K.uint32(18).string($.matchedText);if($.canonicalUrl!==void 0)K.uint32(26).string($.canonicalUrl);if($.description!==void 0)K.uint32(34).string($.description);if($.title!==void 0)K.uint32(42).string($.title);if($.thumbnail!==void 0)o.encode($.thumbnail,K.uint32(50).fork()).join();if($.previewType!==void 0)K.uint32(56).int32($.previewType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=m.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.matchedText=Q.string();continue}case 3:{if(Z!==26)break;J.canonicalUrl=Q.string();continue}case 4:{if(Z!==34)break;J.description=Q.string();continue}case 5:{if(Z!==42)break;J.title=Q.string();continue}case 6:{if(Z!==50)break;J.thumbnail=o.decode(Q,Q.uint32());continue}case 7:{if(Z!==56)break;J.previewType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return e0.fromPartial($??{})},fromPartial($){let K=DV();return K.text=$.text!==void 0&&$.text!==null?m.fromPartial($.text):void 0,K.matchedText=$.matchedText??void 0,K.canonicalUrl=$.canonicalUrl??void 0,K.description=$.description??void 0,K.title=$.title??void 0,K.thumbnail=$.thumbnail!==void 0&&$.thumbnail!==null?o.fromPartial($.thumbnail):void 0,K.previewType=$.previewType??void 0,K}};function LV(){return{}}var nQ={encode($,K=new H){if($.groupJid!==void 0)K.uint32(10).string($.groupJid);if($.inviteCode!==void 0)K.uint32(18).string($.inviteCode);if($.inviteExpiration!==void 0)K.uint32(24).int64($.inviteExpiration);if($.groupName!==void 0)K.uint32(34).string($.groupName);if($.jpegThumbnail!==void 0)K.uint32(42).bytes($.jpegThumbnail);if($.caption!==void 0)m.encode($.caption,K.uint32(50).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.groupJid=Q.string();continue}case 2:{if(Z!==18)break;J.inviteCode=Q.string();continue}case 3:{if(Z!==24)break;J.inviteExpiration=Q.int64Number();continue}case 4:{if(Z!==34)break;J.groupName=Q.string();continue}case 5:{if(Z!==42)break;J.jpegThumbnail=Q.bytes();continue}case 6:{if(Z!==50)break;J.caption=m.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nQ.fromPartial($??{})},fromPartial($){let K=LV();return K.groupJid=$.groupJid??void 0,K.inviteCode=$.inviteCode??void 0,K.inviteExpiration=$.inviteExpiration??void 0,K.groupName=$.groupName??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.caption=$.caption!==void 0&&$.caption!==null?m.fromPartial($.caption):void 0,K}};function PV(){return{}}var $$={encode($,K=new H){if($.image!==void 0)o.encode($.image,K.uint32(10).fork()).join();if($.caption!==void 0)m.encode($.caption,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.image=o.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.caption=m.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $$.fromPartial($??{})},fromPartial($){let K=PV();return K.image=$.image!==void 0&&$.image!==null?o.fromPartial($.image):void 0,K.caption=$.caption!==void 0&&$.caption!==null?m.fromPartial($.caption):void 0,K}};function FV(){return{}}var WN={encode($,K=new H){if($.polygonVertices!==void 0&&$.polygonVertices.length!==0)for(let Q of $.polygonVertices)bQ.encode(Q,K.uint32(10).fork()).join();if($.location!==void 0)C0.encode($.location,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.polygonVertices===void 0)J.polygonVertices=[];let Y=bQ.decode(Q,Q.uint32());if(Y!==void 0)J.polygonVertices.push(Y);continue}case 2:{if(Z!==18)break;J.location=C0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return WN.fromPartial($??{})},fromPartial($){let K=FV();return K.polygonVertices=$.polygonVertices?.map((Q)=>bQ.fromPartial(Q))||void 0,K.location=$.location!==void 0&&$.location!==null?C0.fromPartial($.location):void 0,K}};function xV(){return{}}var dQ={encode($,K=new H){if($.location!==void 0)C0.encode($.location,K.uint32(10).fork()).join();if($.accuracyInMeters!==void 0)K.uint32(16).uint32($.accuracyInMeters);if($.speedInMps!==void 0)K.uint32(29).float($.speedInMps);if($.degreesClockwiseFromMagneticNorth!==void 0)K.uint32(32).uint32($.degreesClockwiseFromMagneticNorth);if($.caption!==void 0)m.encode($.caption,K.uint32(42).fork()).join();if($.sequenceNumber!==void 0)K.uint32(48).int64($.sequenceNumber);if($.timeOffset!==void 0)K.uint32(56).uint32($.timeOffset);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.location=C0.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.accuracyInMeters=Q.uint32();continue}case 3:{if(Z!==29)break;J.speedInMps=Q.float();continue}case 4:{if(Z!==32)break;J.degreesClockwiseFromMagneticNorth=Q.uint32();continue}case 5:{if(Z!==42)break;J.caption=m.decode(Q,Q.uint32());continue}case 6:{if(Z!==48)break;J.sequenceNumber=Q.int64Number();continue}case 7:{if(Z!==56)break;J.timeOffset=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dQ.fromPartial($??{})},fromPartial($){let K=xV();return K.location=$.location!==void 0&&$.location!==null?C0.fromPartial($.location):void 0,K.accuracyInMeters=$.accuracyInMeters??void 0,K.speedInMps=$.speedInMps??void 0,K.degreesClockwiseFromMagneticNorth=$.degreesClockwiseFromMagneticNorth??void 0,K.caption=$.caption!==void 0&&$.caption!==null?m.fromPartial($.caption):void 0,K.sequenceNumber=$.sequenceNumber??void 0,K.timeOffset=$.timeOffset??void 0,K}};function kV(){return{}}var C0={encode($,K=new H){if($.degreesLatitude!==void 0)K.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)K.uint32(17).double($.degreesLongitude);if($.name!==void 0)K.uint32(26).string($.name);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.degreesLatitude=Q.double();continue}case 2:{if(Z!==17)break;J.degreesLongitude=Q.double();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return C0.fromPartial($??{})},fromPartial($){let K=kV();return K.degreesLatitude=$.degreesLatitude??void 0,K.degreesLongitude=$.degreesLongitude??void 0,K.name=$.name??void 0,K}};function NV(){return{}}var jQ={encode($,K=new H){if($.location!==void 0)C0.encode($.location,K.uint32(10).fork()).join();if($.address!==void 0)K.uint32(18).string($.address);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.location=C0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.address=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jQ.fromPartial($??{})},fromPartial($){let K=NV();return K.location=$.location!==void 0&&$.location!==null?C0.fromPartial($.location):void 0,K.address=$.address??void 0,K}};function RV(){return{}}var IN={encode($,K=new H){if($.protocol!==void 0)o.encode($.protocol,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.protocol=o.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return IN.fromPartial($??{})},fromPartial($){let K=RV();return K.protocol=$.protocol!==void 0&&$.protocol!==null?o.fromPartial($.protocol):void 0,K}};function BV(){return{}}var cQ={encode($,K=new H){if($.specialTextSize!==void 0)K.uint32(8).int32($.specialTextSize);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.specialTextSize=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cQ.fromPartial($??{})},fromPartial($){let K=BV();return K.specialTextSize=$.specialTextSize??void 0,K}};function OV(){return{}}var K$={encode($,K=new H){if($.optionName!==void 0)K.uint32(10).string($.optionName);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.optionName=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return K$.fromPartial($??{})},fromPartial($){let K=OV();return K.optionName=$.optionName??void 0,K}};function AV(){return{}}var oQ={encode($,K=new H){if($.content!==void 0)pQ.encode($.content,K.uint32(10).fork()).join();if($.applicationData!==void 0)_Q.encode($.applicationData,K.uint32(18).fork()).join();if($.signal!==void 0)rQ.encode($.signal,K.uint32(26).fork()).join();if($.subProtocol!==void 0)eQ.encode($.subProtocol,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.content=pQ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.applicationData=_Q.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.signal=rQ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.subProtocol=eQ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oQ.fromPartial($??{})},fromPartial($){let K=AV();return K.content=$.content!==void 0&&$.content!==null?pQ.fromPartial($.content):void 0,K.applicationData=$.applicationData!==void 0&&$.applicationData!==null?_Q.fromPartial($.applicationData):void 0,K.signal=$.signal!==void 0&&$.signal!==null?rQ.fromPartial($.signal):void 0,K.subProtocol=$.subProtocol!==void 0&&$.subProtocol!==null?eQ.fromPartial($.subProtocol):void 0,K}};function EV(){return{}}var bQ={encode($,K=new H){if($.x!==void 0)K.uint32(9).double($.x);if($.y!==void 0)K.uint32(17).double($.y);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=EV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.x=Q.double();continue}case 2:{if(Z!==17)break;J.y=Q.double();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bQ.fromPartial($??{})},fromPartial($){let K=EV();return K.x=$.x??void 0,K.y=$.y??void 0,K}};function MV(){return{}}var SN={encode($,K=new H){if($.pollOption!==void 0&&$.pollOption.length!==0)for(let Q of $.pollOption)K$.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=MV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.pollOption===void 0)J.pollOption=[];let Y=K$.decode(Q,Q.uint32());if(Y!==void 0)J.pollOption.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return SN.fromPartial($??{})},fromPartial($){let K=MV();return K.pollOption=$.pollOption?.map((Q)=>K$.fromPartial(Q))||void 0,K}};function WV(){return{}}var iQ={encode($,K=new H){if($.encKey!==void 0)K.uint32(10).bytes($.encKey);if($.name!==void 0)K.uint32(18).string($.name);if($.options!==void 0&&$.options.length!==0)for(let Q of $.options)K$.encode(Q,K.uint32(26).fork()).join();if($.selectableOptionsCount!==void 0)K.uint32(32).uint32($.selectableOptionsCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.name=Q.string();continue}case 3:{if(Z!==26)break;if(J.options===void 0)J.options=[];let Y=K$.decode(Q,Q.uint32());if(Y!==void 0)J.options.push(Y);continue}case 4:{if(Z!==32)break;J.selectableOptionsCount=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iQ.fromPartial($??{})},fromPartial($){let K=WV();return K.encKey=$.encKey??void 0,K.name=$.name??void 0,K.options=$.options?.map((Q)=>K$.fromPartial(Q))||void 0,K.selectableOptionsCount=$.selectableOptionsCount??void 0,K}};function IV(){return{}}var p0={encode($,K=new H){if($.encPayload!==void 0)K.uint32(10).bytes($.encPayload);if($.encIv!==void 0)K.uint32(18).bytes($.encIv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=IV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encPayload=Q.bytes();continue}case 2:{if(Z!==18)break;J.encIv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return p0.fromPartial($??{})},fromPartial($){let K=IV();return K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K}};function SV(){return{}}var mQ={encode($,K=new H){if($.pollCreationMessageKey!==void 0)x.encode($.pollCreationMessageKey,K.uint32(10).fork()).join();if($.vote!==void 0)p0.encode($.vote,K.uint32(18).fork()).join();if($.addOption!==void 0)p0.encode($.addOption,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pollCreationMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.vote=p0.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.addOption=p0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mQ.fromPartial($??{})},fromPartial($){let K=SV();return K.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?x.fromPartial($.pollCreationMessageKey):void 0,K.vote=$.vote!==void 0&&$.vote!==null?p0.fromPartial($.vote):void 0,K.addOption=$.addOption!==void 0&&$.addOption!==null?p0.fromPartial($.addOption):void 0,K}};function vV(){return{}}var vN={encode($,K=new H){if($.selectedOptions!==void 0&&$.selectedOptions.length!==0)for(let Q of $.selectedOptions)K.uint32(10).bytes(Q);if($.senderTimestampMs!==void 0)K.uint32(16).int64($.senderTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.selectedOptions===void 0)J.selectedOptions=[];let Y=Q.bytes();if(Y!==void 0)J.selectedOptions.push(Y);continue}case 2:{if(Z!==16)break;J.senderTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vN.fromPartial($??{})},fromPartial($){let K=vV();return K.selectedOptions=$.selectedOptions?.map((Q)=>Q)||void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K}};function TV(){return{}}var gQ={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.text!==void 0)K.uint32(18).string($.text);if($.groupingKey!==void 0)K.uint32(26).string($.groupingKey);if($.senderTimestampMs!==void 0)K.uint32(32).int64($.senderTimestampMs);if($.reactionMetadataDataclassData!==void 0)K.uint32(42).string($.reactionMetadataDataclassData);if($.style!==void 0)K.uint32(48).int32($.style);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}case 3:{if(Z!==26)break;J.groupingKey=Q.string();continue}case 4:{if(Z!==32)break;J.senderTimestampMs=Q.int64Number();continue}case 5:{if(Z!==42)break;J.reactionMetadataDataclassData=Q.string();continue}case 6:{if(Z!==48)break;J.style=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gQ.fromPartial($??{})},fromPartial($){let K=TV();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.text=$.text??void 0,K.groupingKey=$.groupingKey??void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K.reactionMetadataDataclassData=$.reactionMetadataDataclassData??void 0,K.style=$.style??void 0,K}};function yV(){return{}}var tQ={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tQ.fromPartial($??{})},fromPartial($){let K=yV();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K}};function fV(){return{}}var rQ={encode($,K=new H){return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rQ.fromPartial($??{})},fromPartial($){return fV()}};function _V(){return{}}var aQ={encode($,K=new H){if($.text!==void 0)e0.encode($.text,K.uint32(10).fork()).join();if($.textArgb!==void 0)K.uint32(53).fixed32($.textArgb);if($.backgroundArgb!==void 0)K.uint32(61).fixed32($.backgroundArgb);if($.font!==void 0)K.uint32(64).int32($.font);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_V();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=e0.decode(Q,Q.uint32());continue}case 6:{if(Z!==53)break;J.textArgb=Q.fixed32();continue}case 7:{if(Z!==61)break;J.backgroundArgb=Q.fixed32();continue}case 8:{if(Z!==64)break;J.font=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aQ.fromPartial($??{})},fromPartial($){let K=_V();return K.text=$.text!==void 0&&$.text!==null?e0.fromPartial($.text):void 0,K.textArgb=$.textArgb??void 0,K.backgroundArgb=$.backgroundArgb??void 0,K.font=$.font??void 0,K}};function hV(){return{}}var sQ={encode($,K=new H){if($.sticker!==void 0)o.encode($.sticker,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.sticker=o.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sQ.fromPartial($??{})},fromPartial($){let K=hV();return K.sticker=$.sticker!==void 0&&$.sticker!==null?o.fromPartial($.sticker):void 0,K}};function lV(){return{}}var eQ={encode($,K=new H){if($.futureProof!==void 0)K.uint32(8).int32($.futureProof);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.futureProof=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eQ.fromPartial($??{})},fromPartial($){let K=lV();return K.futureProof=$.futureProof??void 0,K}};function pV(){return{}}var Q$={encode($,K=new H){if($.video!==void 0)o.encode($.video,K.uint32(10).fork()).join();if($.caption!==void 0)m.encode($.caption,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.video=o.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.caption=m.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Q$.fromPartial($??{})},fromPartial($){let K=pV();return K.video=$.video!==void 0&&$.video!==null?o.fromPartial($.video):void 0,K.caption=$.caption!==void 0&&$.caption!==null?m.fromPartial($.caption):void 0,K}};function uV(){return{}}var $Z={encode($,K=new H){if($.imageMessage!==void 0)$$.encode($.imageMessage,K.uint32(10).fork()).join();if($.videoMessage!==void 0)Q$.encode($.videoMessage,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.imageMessage=$$.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.videoMessage=Q$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $Z.fromPartial($??{})},fromPartial($){let K=uV();return K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?$$.fromPartial($.imageMessage):void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?Q$.fromPartial($.videoMessage):void 0,K}};function wV(){return{}}var A={encode($,K=new H){if($.stanzaId!==void 0)K.uint32(10).string($.stanzaId);if($.participant!==void 0)K.uint32(18).string($.participant);if($.quotedMessage!==void 0)w.encode($.quotedMessage,K.uint32(26).fork()).join();if($.remoteJid!==void 0)K.uint32(34).string($.remoteJid);if($.mentionedJid!==void 0&&$.mentionedJid.length!==0)for(let Q of $.mentionedJid)K.uint32(122).string(Q);if($.conversionSource!==void 0)K.uint32(146).string($.conversionSource);if($.conversionData!==void 0)K.uint32(154).bytes($.conversionData);if($.conversionDelaySeconds!==void 0)K.uint32(160).uint32($.conversionDelaySeconds);if($.forwardingScore!==void 0)K.uint32(168).uint32($.forwardingScore);if($.isForwarded!==void 0)K.uint32(176).bool($.isForwarded);if($.quotedAd!==void 0)KZ.encode($.quotedAd,K.uint32(186).fork()).join();if($.placeholderKey!==void 0)x.encode($.placeholderKey,K.uint32(194).fork()).join();if($.expiration!==void 0)K.uint32(200).uint32($.expiration);if($.ephemeralSettingTimestamp!==void 0)K.uint32(208).int64($.ephemeralSettingTimestamp);if($.ephemeralSharedSecret!==void 0)K.uint32(218).bytes($.ephemeralSharedSecret);if($.externalAdReply!==void 0)XZ.encode($.externalAdReply,K.uint32(226).fork()).join();if($.entryPointConversionSource!==void 0)K.uint32(234).string($.entryPointConversionSource);if($.entryPointConversionApp!==void 0)K.uint32(242).string($.entryPointConversionApp);if($.entryPointConversionDelaySeconds!==void 0)K.uint32(248).uint32($.entryPointConversionDelaySeconds);if($.disappearingMode!==void 0)D0.encode($.disappearingMode,K.uint32(258).fork()).join();if($.actionLink!==void 0)PK.encode($.actionLink,K.uint32(266).fork()).join();if($.groupSubject!==void 0)K.uint32(274).string($.groupSubject);if($.parentGroupJid!==void 0)K.uint32(282).string($.parentGroupJid);if($.trustBannerType!==void 0)K.uint32(298).string($.trustBannerType);if($.trustBannerAction!==void 0)K.uint32(304).uint32($.trustBannerAction);if($.isSampled!==void 0)K.uint32(312).bool($.isSampled);if($.groupMentions!==void 0&&$.groupMentions.length!==0)for(let Q of $.groupMentions)fZ.encode(Q,K.uint32(322).fork()).join();if($.utm!==void 0)VZ.encode($.utm,K.uint32(330).fork()).join();if($.forwardedNewsletterMessageInfo!==void 0)J$.encode($.forwardedNewsletterMessageInfo,K.uint32(346).fork()).join();if($.businessMessageForwardInfo!==void 0)ZZ.encode($.businessMessageForwardInfo,K.uint32(354).fork()).join();if($.smbClientCampaignId!==void 0)K.uint32(362).string($.smbClientCampaignId);if($.smbServerCampaignId!==void 0)K.uint32(370).string($.smbServerCampaignId);if($.dataSharingContext!==void 0)JZ.encode($.dataSharingContext,K.uint32(378).fork()).join();if($.alwaysShowAdAttribution!==void 0)K.uint32(384).bool($.alwaysShowAdAttribution);if($.featureEligibilities!==void 0)qZ.encode($.featureEligibilities,K.uint32(394).fork()).join();if($.entryPointConversionExternalSource!==void 0)K.uint32(402).string($.entryPointConversionExternalSource);if($.entryPointConversionExternalMedium!==void 0)K.uint32(410).string($.entryPointConversionExternalMedium);if($.ctwaSignals!==void 0)K.uint32(434).string($.ctwaSignals);if($.ctwaPayload!==void 0)K.uint32(442).bytes($.ctwaPayload);if($.forwardedAiBotMessageInfo!==void 0)SZ.encode($.forwardedAiBotMessageInfo,K.uint32(450).fork()).join();if($.statusAttributionType!==void 0)K.uint32(456).int32($.statusAttributionType);if($.urlTrackingMap!==void 0)B$.encode($.urlTrackingMap,K.uint32(466).fork()).join();if($.pairedMediaType!==void 0)K.uint32(472).int32($.pairedMediaType);if($.rankingVersion!==void 0)K.uint32(480).uint32($.rankingVersion);if($.memberLabel!==void 0)F0.encode($.memberLabel,K.uint32(498).fork()).join();if($.isQuestion!==void 0)K.uint32(504).bool($.isQuestion);if($.statusSourceType!==void 0)K.uint32(512).int32($.statusSourceType);if($.statusAttributions!==void 0&&$.statusAttributions.length!==0)for(let Q of $.statusAttributions)Bq.encode(Q,K.uint32(522).fork()).join();if($.isGroupStatus!==void 0)K.uint32(528).bool($.isGroupStatus);if($.forwardOrigin!==void 0)K.uint32(536).int32($.forwardOrigin);if($.questionReplyQuotedMessage!==void 0)HZ.encode($.questionReplyQuotedMessage,K.uint32(546).fork()).join();if($.statusAudienceMetadata!==void 0)zZ.encode($.statusAudienceMetadata,K.uint32(554).fork()).join();if($.nonJidMentions!==void 0)K.uint32(560).uint32($.nonJidMentions);if($.quotedType!==void 0)K.uint32(568).int32($.quotedType);if($.botMessageSharingInfo!==void 0)cK.encode($.botMessageSharingInfo,K.uint32(578).fork()).join();if($.isSpoiler!==void 0)K.uint32(584).bool($.isSpoiler);if($.mediaDomainInfo!==void 0)JJ.encode($.mediaDomainInfo,K.uint32(594).fork()).join();if($.partiallySelectedContent!==void 0)YZ.encode($.partiallySelectedContent,K.uint32(602).fork()).join();if($.afterReadDuration!==void 0)K.uint32(608).uint32($.afterReadDuration);if($.crossAppSource!==void 0)K.uint32(616).int32($.crossAppSource);if($.businessInteractionPills!==void 0)QZ.encode($.businessInteractionPills,K.uint32(626).fork()).join();if($.posterStatusId!==void 0)K.uint32(634).string($.posterStatusId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stanzaId=Q.string();continue}case 2:{if(Z!==18)break;J.participant=Q.string();continue}case 3:{if(Z!==26)break;J.quotedMessage=w.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.remoteJid=Q.string();continue}case 15:{if(Z!==122)break;if(J.mentionedJid===void 0)J.mentionedJid=[];let Y=Q.string();if(Y!==void 0)J.mentionedJid.push(Y);continue}case 18:{if(Z!==146)break;J.conversionSource=Q.string();continue}case 19:{if(Z!==154)break;J.conversionData=Q.bytes();continue}case 20:{if(Z!==160)break;J.conversionDelaySeconds=Q.uint32();continue}case 21:{if(Z!==168)break;J.forwardingScore=Q.uint32();continue}case 22:{if(Z!==176)break;J.isForwarded=Q.bool();continue}case 23:{if(Z!==186)break;J.quotedAd=KZ.decode(Q,Q.uint32());continue}case 24:{if(Z!==194)break;J.placeholderKey=x.decode(Q,Q.uint32());continue}case 25:{if(Z!==200)break;J.expiration=Q.uint32();continue}case 26:{if(Z!==208)break;J.ephemeralSettingTimestamp=Q.int64Number();continue}case 27:{if(Z!==218)break;J.ephemeralSharedSecret=Q.bytes();continue}case 28:{if(Z!==226)break;J.externalAdReply=XZ.decode(Q,Q.uint32());continue}case 29:{if(Z!==234)break;J.entryPointConversionSource=Q.string();continue}case 30:{if(Z!==242)break;J.entryPointConversionApp=Q.string();continue}case 31:{if(Z!==248)break;J.entryPointConversionDelaySeconds=Q.uint32();continue}case 32:{if(Z!==258)break;J.disappearingMode=D0.decode(Q,Q.uint32());continue}case 33:{if(Z!==266)break;J.actionLink=PK.decode(Q,Q.uint32());continue}case 34:{if(Z!==274)break;J.groupSubject=Q.string();continue}case 35:{if(Z!==282)break;J.parentGroupJid=Q.string();continue}case 37:{if(Z!==298)break;J.trustBannerType=Q.string();continue}case 38:{if(Z!==304)break;J.trustBannerAction=Q.uint32();continue}case 39:{if(Z!==312)break;J.isSampled=Q.bool();continue}case 40:{if(Z!==322)break;if(J.groupMentions===void 0)J.groupMentions=[];let Y=fZ.decode(Q,Q.uint32());if(Y!==void 0)J.groupMentions.push(Y);continue}case 41:{if(Z!==330)break;J.utm=VZ.decode(Q,Q.uint32());continue}case 43:{if(Z!==346)break;J.forwardedNewsletterMessageInfo=J$.decode(Q,Q.uint32());continue}case 44:{if(Z!==354)break;J.businessMessageForwardInfo=ZZ.decode(Q,Q.uint32());continue}case 45:{if(Z!==362)break;J.smbClientCampaignId=Q.string();continue}case 46:{if(Z!==370)break;J.smbServerCampaignId=Q.string();continue}case 47:{if(Z!==378)break;J.dataSharingContext=JZ.decode(Q,Q.uint32());continue}case 48:{if(Z!==384)break;J.alwaysShowAdAttribution=Q.bool();continue}case 49:{if(Z!==394)break;J.featureEligibilities=qZ.decode(Q,Q.uint32());continue}case 50:{if(Z!==402)break;J.entryPointConversionExternalSource=Q.string();continue}case 51:{if(Z!==410)break;J.entryPointConversionExternalMedium=Q.string();continue}case 54:{if(Z!==434)break;J.ctwaSignals=Q.string();continue}case 55:{if(Z!==442)break;J.ctwaPayload=Q.bytes();continue}case 56:{if(Z!==450)break;J.forwardedAiBotMessageInfo=SZ.decode(Q,Q.uint32());continue}case 57:{if(Z!==456)break;J.statusAttributionType=Q.int32();continue}case 58:{if(Z!==466)break;J.urlTrackingMap=B$.decode(Q,Q.uint32());continue}case 59:{if(Z!==472)break;J.pairedMediaType=Q.int32();continue}case 60:{if(Z!==480)break;J.rankingVersion=Q.uint32();continue}case 62:{if(Z!==498)break;J.memberLabel=F0.decode(Q,Q.uint32());continue}case 63:{if(Z!==504)break;J.isQuestion=Q.bool();continue}case 64:{if(Z!==512)break;J.statusSourceType=Q.int32();continue}case 65:{if(Z!==522)break;if(J.statusAttributions===void 0)J.statusAttributions=[];let Y=Bq.decode(Q,Q.uint32());if(Y!==void 0)J.statusAttributions.push(Y);continue}case 66:{if(Z!==528)break;J.isGroupStatus=Q.bool();continue}case 67:{if(Z!==536)break;J.forwardOrigin=Q.int32();continue}case 68:{if(Z!==546)break;J.questionReplyQuotedMessage=HZ.decode(Q,Q.uint32());continue}case 69:{if(Z!==554)break;J.statusAudienceMetadata=zZ.decode(Q,Q.uint32());continue}case 70:{if(Z!==560)break;J.nonJidMentions=Q.uint32();continue}case 71:{if(Z!==568)break;J.quotedType=Q.int32();continue}case 72:{if(Z!==578)break;J.botMessageSharingInfo=cK.decode(Q,Q.uint32());continue}case 73:{if(Z!==584)break;J.isSpoiler=Q.bool();continue}case 74:{if(Z!==594)break;J.mediaDomainInfo=JJ.decode(Q,Q.uint32());continue}case 75:{if(Z!==602)break;J.partiallySelectedContent=YZ.decode(Q,Q.uint32());continue}case 76:{if(Z!==608)break;J.afterReadDuration=Q.uint32();continue}case 77:{if(Z!==616)break;J.crossAppSource=Q.int32();continue}case 78:{if(Z!==626)break;J.businessInteractionPills=QZ.decode(Q,Q.uint32());continue}case 79:{if(Z!==634)break;J.posterStatusId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return A.fromPartial($??{})},fromPartial($){let K=wV();return K.stanzaId=$.stanzaId??void 0,K.participant=$.participant??void 0,K.quotedMessage=$.quotedMessage!==void 0&&$.quotedMessage!==null?w.fromPartial($.quotedMessage):void 0,K.remoteJid=$.remoteJid??void 0,K.mentionedJid=$.mentionedJid?.map((Q)=>Q)||void 0,K.conversionSource=$.conversionSource??void 0,K.conversionData=$.conversionData??void 0,K.conversionDelaySeconds=$.conversionDelaySeconds??void 0,K.forwardingScore=$.forwardingScore??void 0,K.isForwarded=$.isForwarded??void 0,K.quotedAd=$.quotedAd!==void 0&&$.quotedAd!==null?KZ.fromPartial($.quotedAd):void 0,K.placeholderKey=$.placeholderKey!==void 0&&$.placeholderKey!==null?x.fromPartial($.placeholderKey):void 0,K.expiration=$.expiration??void 0,K.ephemeralSettingTimestamp=$.ephemeralSettingTimestamp??void 0,K.ephemeralSharedSecret=$.ephemeralSharedSecret??void 0,K.externalAdReply=$.externalAdReply!==void 0&&$.externalAdReply!==null?XZ.fromPartial($.externalAdReply):void 0,K.entryPointConversionSource=$.entryPointConversionSource??void 0,K.entryPointConversionApp=$.entryPointConversionApp??void 0,K.entryPointConversionDelaySeconds=$.entryPointConversionDelaySeconds??void 0,K.disappearingMode=$.disappearingMode!==void 0&&$.disappearingMode!==null?D0.fromPartial($.disappearingMode):void 0,K.actionLink=$.actionLink!==void 0&&$.actionLink!==null?PK.fromPartial($.actionLink):void 0,K.groupSubject=$.groupSubject??void 0,K.parentGroupJid=$.parentGroupJid??void 0,K.trustBannerType=$.trustBannerType??void 0,K.trustBannerAction=$.trustBannerAction??void 0,K.isSampled=$.isSampled??void 0,K.groupMentions=$.groupMentions?.map((Q)=>fZ.fromPartial(Q))||void 0,K.utm=$.utm!==void 0&&$.utm!==null?VZ.fromPartial($.utm):void 0,K.forwardedNewsletterMessageInfo=$.forwardedNewsletterMessageInfo!==void 0&&$.forwardedNewsletterMessageInfo!==null?J$.fromPartial($.forwardedNewsletterMessageInfo):void 0,K.businessMessageForwardInfo=$.businessMessageForwardInfo!==void 0&&$.businessMessageForwardInfo!==null?ZZ.fromPartial($.businessMessageForwardInfo):void 0,K.smbClientCampaignId=$.smbClientCampaignId??void 0,K.smbServerCampaignId=$.smbServerCampaignId??void 0,K.dataSharingContext=$.dataSharingContext!==void 0&&$.dataSharingContext!==null?JZ.fromPartial($.dataSharingContext):void 0,K.alwaysShowAdAttribution=$.alwaysShowAdAttribution??void 0,K.featureEligibilities=$.featureEligibilities!==void 0&&$.featureEligibilities!==null?qZ.fromPartial($.featureEligibilities):void 0,K.entryPointConversionExternalSource=$.entryPointConversionExternalSource??void 0,K.entryPointConversionExternalMedium=$.entryPointConversionExternalMedium??void 0,K.ctwaSignals=$.ctwaSignals??void 0,K.ctwaPayload=$.ctwaPayload??void 0,K.forwardedAiBotMessageInfo=$.forwardedAiBotMessageInfo!==void 0&&$.forwardedAiBotMessageInfo!==null?SZ.fromPartial($.forwardedAiBotMessageInfo):void 0,K.statusAttributionType=$.statusAttributionType??void 0,K.urlTrackingMap=$.urlTrackingMap!==void 0&&$.urlTrackingMap!==null?B$.fromPartial($.urlTrackingMap):void 0,K.pairedMediaType=$.pairedMediaType??void 0,K.rankingVersion=$.rankingVersion??void 0,K.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?F0.fromPartial($.memberLabel):void 0,K.isQuestion=$.isQuestion??void 0,K.statusSourceType=$.statusSourceType??void 0,K.statusAttributions=$.statusAttributions?.map((Q)=>Bq.fromPartial(Q))||void 0,K.isGroupStatus=$.isGroupStatus??void 0,K.forwardOrigin=$.forwardOrigin??void 0,K.questionReplyQuotedMessage=$.questionReplyQuotedMessage!==void 0&&$.questionReplyQuotedMessage!==null?HZ.fromPartial($.questionReplyQuotedMessage):void 0,K.statusAudienceMetadata=$.statusAudienceMetadata!==void 0&&$.statusAudienceMetadata!==null?zZ.fromPartial($.statusAudienceMetadata):void 0,K.nonJidMentions=$.nonJidMentions??void 0,K.quotedType=$.quotedType??void 0,K.botMessageSharingInfo=$.botMessageSharingInfo!==void 0&&$.botMessageSharingInfo!==null?cK.fromPartial($.botMessageSharingInfo):void 0,K.isSpoiler=$.isSpoiler??void 0,K.mediaDomainInfo=$.mediaDomainInfo!==void 0&&$.mediaDomainInfo!==null?JJ.fromPartial($.mediaDomainInfo):void 0,K.partiallySelectedContent=$.partiallySelectedContent!==void 0&&$.partiallySelectedContent!==null?YZ.fromPartial($.partiallySelectedContent):void 0,K.afterReadDuration=$.afterReadDuration??void 0,K.crossAppSource=$.crossAppSource??void 0,K.businessInteractionPills=$.businessInteractionPills!==void 0&&$.businessInteractionPills!==null?QZ.fromPartial($.businessInteractionPills):void 0,K.posterStatusId=$.posterStatusId??void 0,K}};function nV(){return{}}var KZ={encode($,K=new H){if($.advertiserName!==void 0)K.uint32(10).string($.advertiserName);if($.mediaType!==void 0)K.uint32(16).int32($.mediaType);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.caption!==void 0)K.uint32(138).string($.caption);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.advertiserName=Q.string();continue}case 2:{if(Z!==16)break;J.mediaType=Q.int32();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.caption=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KZ.fromPartial($??{})},fromPartial($){let K=nV();return K.advertiserName=$.advertiserName??void 0,K.mediaType=$.mediaType??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.caption=$.caption??void 0,K}};function dV(){return{}}var QZ={encode($,K=new H){if($.businessJid!==void 0)K.uint32(10).string($.businessJid);if($.pills!==void 0&&$.pills.length!==0)for(let Q of $.pills)Z$.encode(Q,K.uint32(18).fork()).join();if($.entryPoint!==void 0)K.uint32(24).int32($.entryPoint);if($.signedPayload!==void 0)K.uint32(34).bytes($.signedPayload);if($.signatureEnvelope!==void 0)t0.encode($.signatureEnvelope,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.businessJid=Q.string();continue}case 2:{if(Z!==18)break;if(J.pills===void 0)J.pills=[];let Y=Z$.decode(Q,Q.uint32());if(Y!==void 0)J.pills.push(Y);continue}case 3:{if(Z!==24)break;J.entryPoint=Q.int32();continue}case 4:{if(Z!==34)break;J.signedPayload=Q.bytes();continue}case 5:{if(Z!==42)break;J.signatureEnvelope=t0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QZ.fromPartial($??{})},fromPartial($){let K=dV();return K.businessJid=$.businessJid??void 0,K.pills=$.pills?.map((Q)=>Z$.fromPartial(Q))||void 0,K.entryPoint=$.entryPoint??void 0,K.signedPayload=$.signedPayload??void 0,K.signatureEnvelope=$.signatureEnvelope!==void 0&&$.signatureEnvelope!==null?t0.fromPartial($.signatureEnvelope):void 0,K}};function jV(){return{}}var Z$={encode($,K=new H){if($.pillType!==void 0)K.uint32(8).int32($.pillType);if($.actionUrl!==void 0)K.uint32(18).string($.actionUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.pillType=Q.int32();continue}case 2:{if(Z!==18)break;J.actionUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Z$.fromPartial($??{})},fromPartial($){let K=jV();return K.pillType=$.pillType??void 0,K.actionUrl=$.actionUrl??void 0,K}};function cV(){return{}}var TN={encode($,K=new H){if($.verifiedName!==void 0)K.uint32(10).string($.verifiedName);if($.pills!==void 0&&$.pills.length!==0)for(let Q of $.pills)Z$.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.verifiedName=Q.string();continue}case 2:{if(Z!==18)break;if(J.pills===void 0)J.pills=[];let Y=Z$.decode(Q,Q.uint32());if(Y!==void 0)J.pills.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return TN.fromPartial($??{})},fromPartial($){let K=cV();return K.verifiedName=$.verifiedName??void 0,K.pills=$.pills?.map((Q)=>Z$.fromPartial(Q))||void 0,K}};function oV(){return{}}var ZZ={encode($,K=new H){if($.businessOwnerJid!==void 0)K.uint32(10).string($.businessOwnerJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.businessOwnerJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZZ.fromPartial($??{})},fromPartial($){let K=oV();return K.businessOwnerJid=$.businessOwnerJid??void 0,K}};function bV(){return{}}var JZ={encode($,K=new H){if($.showMmDisclosure!==void 0)K.uint32(8).bool($.showMmDisclosure);if($.encryptedSignalTokenConsented!==void 0)K.uint32(18).string($.encryptedSignalTokenConsented);if($.parameters!==void 0&&$.parameters.length!==0)for(let Q of $.parameters)g0.encode(Q,K.uint32(26).fork()).join();if($.dataSharingFlags!==void 0)K.uint32(32).int32($.dataSharingFlags);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.showMmDisclosure=Q.bool();continue}case 2:{if(Z!==18)break;J.encryptedSignalTokenConsented=Q.string();continue}case 3:{if(Z!==26)break;if(J.parameters===void 0)J.parameters=[];let Y=g0.decode(Q,Q.uint32());if(Y!==void 0)J.parameters.push(Y);continue}case 4:{if(Z!==32)break;J.dataSharingFlags=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JZ.fromPartial($??{})},fromPartial($){let K=bV();return K.showMmDisclosure=$.showMmDisclosure??void 0,K.encryptedSignalTokenConsented=$.encryptedSignalTokenConsented??void 0,K.parameters=$.parameters?.map((Q)=>g0.fromPartial(Q))||void 0,K.dataSharingFlags=$.dataSharingFlags??void 0,K}};function iV(){return{}}var g0={encode($,K=new H){if($.key!==void 0)K.uint32(10).string($.key);if($.stringData!==void 0)K.uint32(18).string($.stringData);if($.intData!==void 0)K.uint32(24).int64($.intData);if($.floatData!==void 0)K.uint32(37).float($.floatData);if($.contents!==void 0)g0.encode($.contents,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=Q.string();continue}case 2:{if(Z!==18)break;J.stringData=Q.string();continue}case 3:{if(Z!==24)break;J.intData=Q.int64Number();continue}case 4:{if(Z!==37)break;J.floatData=Q.float();continue}case 5:{if(Z!==42)break;J.contents=g0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return g0.fromPartial($??{})},fromPartial($){let K=iV();return K.key=$.key??void 0,K.stringData=$.stringData??void 0,K.intData=$.intData??void 0,K.floatData=$.floatData??void 0,K.contents=$.contents!==void 0&&$.contents!==null?g0.fromPartial($.contents):void 0,K}};function mV(){return{}}var XZ={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.body!==void 0)K.uint32(18).string($.body);if($.mediaType!==void 0)K.uint32(24).int32($.mediaType);if($.thumbnailUrl!==void 0)K.uint32(34).string($.thumbnailUrl);if($.mediaUrl!==void 0)K.uint32(42).string($.mediaUrl);if($.thumbnail!==void 0)K.uint32(50).bytes($.thumbnail);if($.sourceType!==void 0)K.uint32(58).string($.sourceType);if($.sourceId!==void 0)K.uint32(66).string($.sourceId);if($.sourceUrl!==void 0)K.uint32(74).string($.sourceUrl);if($.containsAutoReply!==void 0)K.uint32(80).bool($.containsAutoReply);if($.renderLargerThumbnail!==void 0)K.uint32(88).bool($.renderLargerThumbnail);if($.showAdAttribution!==void 0)K.uint32(96).bool($.showAdAttribution);if($.ctwaClid!==void 0)K.uint32(106).string($.ctwaClid);if($.ref!==void 0)K.uint32(114).string($.ref);if($.clickToWhatsappCall!==void 0)K.uint32(120).bool($.clickToWhatsappCall);if($.adContextPreviewDismissed!==void 0)K.uint32(128).bool($.adContextPreviewDismissed);if($.sourceApp!==void 0)K.uint32(138).string($.sourceApp);if($.automatedGreetingMessageShown!==void 0)K.uint32(144).bool($.automatedGreetingMessageShown);if($.greetingMessageBody!==void 0)K.uint32(154).string($.greetingMessageBody);if($.ctaPayload!==void 0)K.uint32(162).string($.ctaPayload);if($.disableNudge!==void 0)K.uint32(168).bool($.disableNudge);if($.originalImageUrl!==void 0)K.uint32(178).string($.originalImageUrl);if($.automatedGreetingMessageCtaType!==void 0)K.uint32(186).string($.automatedGreetingMessageCtaType);if($.wtwaAdFormat!==void 0)K.uint32(192).bool($.wtwaAdFormat);if($.adType!==void 0)K.uint32(200).int32($.adType);if($.wtwaWebsiteUrl!==void 0)K.uint32(210).string($.wtwaWebsiteUrl);if($.adPreviewUrl!==void 0)K.uint32(218).string($.adPreviewUrl);if($.containsCtwaFlowsAutoReply!==void 0)K.uint32(224).bool($.containsCtwaFlowsAutoReply);if($.agmThumbnailStrategy!==void 0)K.uint32(232).int32($.agmThumbnailStrategy);if($.agmTitleStrategy!==void 0)K.uint32(240).int32($.agmTitleStrategy);if($.agmSubtitleStrategy!==void 0)K.uint32(248).int32($.agmSubtitleStrategy);if($.agmHeaderInteractionStrategy!==void 0)K.uint32(256).int32($.agmHeaderInteractionStrategy);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.body=Q.string();continue}case 3:{if(Z!==24)break;J.mediaType=Q.int32();continue}case 4:{if(Z!==34)break;J.thumbnailUrl=Q.string();continue}case 5:{if(Z!==42)break;J.mediaUrl=Q.string();continue}case 6:{if(Z!==50)break;J.thumbnail=Q.bytes();continue}case 7:{if(Z!==58)break;J.sourceType=Q.string();continue}case 8:{if(Z!==66)break;J.sourceId=Q.string();continue}case 9:{if(Z!==74)break;J.sourceUrl=Q.string();continue}case 10:{if(Z!==80)break;J.containsAutoReply=Q.bool();continue}case 11:{if(Z!==88)break;J.renderLargerThumbnail=Q.bool();continue}case 12:{if(Z!==96)break;J.showAdAttribution=Q.bool();continue}case 13:{if(Z!==106)break;J.ctwaClid=Q.string();continue}case 14:{if(Z!==114)break;J.ref=Q.string();continue}case 15:{if(Z!==120)break;J.clickToWhatsappCall=Q.bool();continue}case 16:{if(Z!==128)break;J.adContextPreviewDismissed=Q.bool();continue}case 17:{if(Z!==138)break;J.sourceApp=Q.string();continue}case 18:{if(Z!==144)break;J.automatedGreetingMessageShown=Q.bool();continue}case 19:{if(Z!==154)break;J.greetingMessageBody=Q.string();continue}case 20:{if(Z!==162)break;J.ctaPayload=Q.string();continue}case 21:{if(Z!==168)break;J.disableNudge=Q.bool();continue}case 22:{if(Z!==178)break;J.originalImageUrl=Q.string();continue}case 23:{if(Z!==186)break;J.automatedGreetingMessageCtaType=Q.string();continue}case 24:{if(Z!==192)break;J.wtwaAdFormat=Q.bool();continue}case 25:{if(Z!==200)break;J.adType=Q.int32();continue}case 26:{if(Z!==210)break;J.wtwaWebsiteUrl=Q.string();continue}case 27:{if(Z!==218)break;J.adPreviewUrl=Q.string();continue}case 28:{if(Z!==224)break;J.containsCtwaFlowsAutoReply=Q.bool();continue}case 29:{if(Z!==232)break;J.agmThumbnailStrategy=Q.int32();continue}case 30:{if(Z!==240)break;J.agmTitleStrategy=Q.int32();continue}case 31:{if(Z!==248)break;J.agmSubtitleStrategy=Q.int32();continue}case 32:{if(Z!==256)break;J.agmHeaderInteractionStrategy=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XZ.fromPartial($??{})},fromPartial($){let K=mV();return K.title=$.title??void 0,K.body=$.body??void 0,K.mediaType=$.mediaType??void 0,K.thumbnailUrl=$.thumbnailUrl??void 0,K.mediaUrl=$.mediaUrl??void 0,K.thumbnail=$.thumbnail??void 0,K.sourceType=$.sourceType??void 0,K.sourceId=$.sourceId??void 0,K.sourceUrl=$.sourceUrl??void 0,K.containsAutoReply=$.containsAutoReply??void 0,K.renderLargerThumbnail=$.renderLargerThumbnail??void 0,K.showAdAttribution=$.showAdAttribution??void 0,K.ctwaClid=$.ctwaClid??void 0,K.ref=$.ref??void 0,K.clickToWhatsappCall=$.clickToWhatsappCall??void 0,K.adContextPreviewDismissed=$.adContextPreviewDismissed??void 0,K.sourceApp=$.sourceApp??void 0,K.automatedGreetingMessageShown=$.automatedGreetingMessageShown??void 0,K.greetingMessageBody=$.greetingMessageBody??void 0,K.ctaPayload=$.ctaPayload??void 0,K.disableNudge=$.disableNudge??void 0,K.originalImageUrl=$.originalImageUrl??void 0,K.automatedGreetingMessageCtaType=$.automatedGreetingMessageCtaType??void 0,K.wtwaAdFormat=$.wtwaAdFormat??void 0,K.adType=$.adType??void 0,K.wtwaWebsiteUrl=$.wtwaWebsiteUrl??void 0,K.adPreviewUrl=$.adPreviewUrl??void 0,K.containsCtwaFlowsAutoReply=$.containsCtwaFlowsAutoReply??void 0,K.agmThumbnailStrategy=$.agmThumbnailStrategy??void 0,K.agmTitleStrategy=$.agmTitleStrategy??void 0,K.agmSubtitleStrategy=$.agmSubtitleStrategy??void 0,K.agmHeaderInteractionStrategy=$.agmHeaderInteractionStrategy??void 0,K}};function gV(){return{}}var qZ={encode($,K=new H){if($.cannotBeReactedTo!==void 0)K.uint32(8).bool($.cannotBeReactedTo);if($.cannotBeRanked!==void 0)K.uint32(16).bool($.cannotBeRanked);if($.canRequestFeedback!==void 0)K.uint32(24).bool($.canRequestFeedback);if($.canBeReshared!==void 0)K.uint32(32).bool($.canBeReshared);if($.canReceiveMultiReact!==void 0)K.uint32(40).bool($.canReceiveMultiReact);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.cannotBeReactedTo=Q.bool();continue}case 2:{if(Z!==16)break;J.cannotBeRanked=Q.bool();continue}case 3:{if(Z!==24)break;J.canRequestFeedback=Q.bool();continue}case 4:{if(Z!==32)break;J.canBeReshared=Q.bool();continue}case 5:{if(Z!==40)break;J.canReceiveMultiReact=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qZ.fromPartial($??{})},fromPartial($){let K=gV();return K.cannotBeReactedTo=$.cannotBeReactedTo??void 0,K.cannotBeRanked=$.cannotBeRanked??void 0,K.canRequestFeedback=$.canRequestFeedback??void 0,K.canBeReshared=$.canBeReshared??void 0,K.canReceiveMultiReact=$.canReceiveMultiReact??void 0,K}};function tV(){return{}}var J$={encode($,K=new H){if($.newsletterJid!==void 0)K.uint32(10).string($.newsletterJid);if($.serverMessageId!==void 0)K.uint32(16).int32($.serverMessageId);if($.newsletterName!==void 0)K.uint32(26).string($.newsletterName);if($.contentType!==void 0)K.uint32(32).int32($.contentType);if($.accessibilityText!==void 0)K.uint32(42).string($.accessibilityText);if($.profileName!==void 0)K.uint32(50).string($.profileName);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.newsletterJid=Q.string();continue}case 2:{if(Z!==16)break;J.serverMessageId=Q.int32();continue}case 3:{if(Z!==26)break;J.newsletterName=Q.string();continue}case 4:{if(Z!==32)break;J.contentType=Q.int32();continue}case 5:{if(Z!==42)break;J.accessibilityText=Q.string();continue}case 6:{if(Z!==50)break;J.profileName=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return J$.fromPartial($??{})},fromPartial($){let K=tV();return K.newsletterJid=$.newsletterJid??void 0,K.serverMessageId=$.serverMessageId??void 0,K.newsletterName=$.newsletterName??void 0,K.contentType=$.contentType??void 0,K.accessibilityText=$.accessibilityText??void 0,K.profileName=$.profileName??void 0,K}};function rV(){return{}}var YZ={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YZ.fromPartial($??{})},fromPartial($){let K=rV();return K.text=$.text??void 0,K}};function aV(){return{}}var HZ={encode($,K=new H){if($.serverQuestionId!==void 0)K.uint32(8).int32($.serverQuestionId);if($.quotedQuestion!==void 0)w.encode($.quotedQuestion,K.uint32(18).fork()).join();if($.quotedResponse!==void 0)w.encode($.quotedResponse,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.serverQuestionId=Q.int32();continue}case 2:{if(Z!==18)break;J.quotedQuestion=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.quotedResponse=w.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HZ.fromPartial($??{})},fromPartial($){let K=aV();return K.serverQuestionId=$.serverQuestionId??void 0,K.quotedQuestion=$.quotedQuestion!==void 0&&$.quotedQuestion!==null?w.fromPartial($.quotedQuestion):void 0,K.quotedResponse=$.quotedResponse!==void 0&&$.quotedResponse!==null?w.fromPartial($.quotedResponse):void 0,K}};function sV(){return{}}var zZ={encode($,K=new H){if($.audienceType!==void 0)K.uint32(8).int32($.audienceType);if($.listName!==void 0)K.uint32(18).string($.listName);if($.listEmoji!==void 0)K.uint32(26).string($.listEmoji);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.audienceType=Q.int32();continue}case 2:{if(Z!==18)break;J.listName=Q.string();continue}case 3:{if(Z!==26)break;J.listEmoji=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zZ.fromPartial($??{})},fromPartial($){let K=sV();return K.audienceType=$.audienceType??void 0,K.listName=$.listName??void 0,K.listEmoji=$.listEmoji??void 0,K}};function eV(){return{}}var VZ={encode($,K=new H){if($.utmSource!==void 0)K.uint32(10).string($.utmSource);if($.utmCampaign!==void 0)K.uint32(18).string($.utmCampaign);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eV();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.utmSource=Q.string();continue}case 2:{if(Z!==18)break;J.utmCampaign=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VZ.fromPartial($??{})},fromPartial($){let K=eV();return K.utmSource=$.utmSource??void 0,K.utmCampaign=$.utmCampaign??void 0,K}};function $G(){return{}}var GZ={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.messages!==void 0&&$.messages.length!==0)for(let Q of $.messages)dZ.encode(Q,K.uint32(18).fork()).join();if($.newJid!==void 0)K.uint32(26).string($.newJid);if($.oldJid!==void 0)K.uint32(34).string($.oldJid);if($.lastMsgTimestamp!==void 0)K.uint32(40).uint64($.lastMsgTimestamp);if($.unreadCount!==void 0)K.uint32(48).uint32($.unreadCount);if($.readOnly!==void 0)K.uint32(56).bool($.readOnly);if($.endOfHistoryTransfer!==void 0)K.uint32(64).bool($.endOfHistoryTransfer);if($.ephemeralExpiration!==void 0)K.uint32(72).uint32($.ephemeralExpiration);if($.ephemeralSettingTimestamp!==void 0)K.uint32(80).int64($.ephemeralSettingTimestamp);if($.endOfHistoryTransferType!==void 0)K.uint32(88).int32($.endOfHistoryTransferType);if($.conversationTimestamp!==void 0)K.uint32(96).uint64($.conversationTimestamp);if($.name!==void 0)K.uint32(106).string($.name);if($.pHash!==void 0)K.uint32(114).string($.pHash);if($.notSpam!==void 0)K.uint32(120).bool($.notSpam);if($.archived!==void 0)K.uint32(128).bool($.archived);if($.disappearingMode!==void 0)D0.encode($.disappearingMode,K.uint32(138).fork()).join();if($.unreadMentionCount!==void 0)K.uint32(144).uint32($.unreadMentionCount);if($.markedAsUnread!==void 0)K.uint32(152).bool($.markedAsUnread);if($.participant!==void 0&&$.participant.length!==0)for(let Q of $.participant)_Z.encode(Q,K.uint32(162).fork()).join();if($.tcToken!==void 0)K.uint32(170).bytes($.tcToken);if($.tcTokenTimestamp!==void 0)K.uint32(176).uint64($.tcTokenTimestamp);if($.contactPrimaryIdentityKey!==void 0)K.uint32(186).bytes($.contactPrimaryIdentityKey);if($.pinned!==void 0)K.uint32(192).uint32($.pinned);if($.muteEndTime!==void 0)K.uint32(200).uint64($.muteEndTime);if($.wallpaper!==void 0)U0.encode($.wallpaper,K.uint32(210).fork()).join();if($.mediaVisibility!==void 0)K.uint32(216).int32($.mediaVisibility);if($.tcTokenSenderTimestamp!==void 0)K.uint32(224).uint64($.tcTokenSenderTimestamp);if($.suspended!==void 0)K.uint32(232).bool($.suspended);if($.terminated!==void 0)K.uint32(240).bool($.terminated);if($.createdAt!==void 0)K.uint32(248).uint64($.createdAt);if($.createdBy!==void 0)K.uint32(258).string($.createdBy);if($.description!==void 0)K.uint32(266).string($.description);if($.support!==void 0)K.uint32(272).bool($.support);if($.isParentGroup!==void 0)K.uint32(280).bool($.isParentGroup);if($.parentGroupId!==void 0)K.uint32(298).string($.parentGroupId);if($.isDefaultSubgroup!==void 0)K.uint32(288).bool($.isDefaultSubgroup);if($.displayName!==void 0)K.uint32(306).string($.displayName);if($.pnJid!==void 0)K.uint32(314).string($.pnJid);if($.shareOwnPn!==void 0)K.uint32(320).bool($.shareOwnPn);if($.pnhDuplicateLidThread!==void 0)K.uint32(328).bool($.pnhDuplicateLidThread);if($.lidJid!==void 0)K.uint32(338).string($.lidJid);if($.username!==void 0)K.uint32(346).string($.username);if($.lidOriginType!==void 0)K.uint32(354).string($.lidOriginType);if($.commentsCount!==void 0)K.uint32(360).uint32($.commentsCount);if($.locked!==void 0)K.uint32(368).bool($.locked);if($.systemMessageToInsert!==void 0)K.uint32(376).int32($.systemMessageToInsert);if($.capiCreatedGroup!==void 0)K.uint32(384).bool($.capiCreatedGroup);if($.accountLid!==void 0)K.uint32(394).string($.accountLid);if($.limitSharing!==void 0)K.uint32(400).bool($.limitSharing);if($.limitSharingSettingTimestamp!==void 0)K.uint32(408).int64($.limitSharingSettingTimestamp);if($.limitSharingTrigger!==void 0)K.uint32(416).int32($.limitSharingTrigger);if($.limitSharingInitiatedByMe!==void 0)K.uint32(424).bool($.limitSharingInitiatedByMe);if($.maibaAiThreadEnabled!==void 0)K.uint32(432).bool($.maibaAiThreadEnabled);if($.isMarketingMessageThread!==void 0)K.uint32(440).bool($.isMarketingMessageThread);if($.isSenderNewAccount!==void 0)K.uint32(448).bool($.isSenderNewAccount);if($.afterReadDuration!==void 0)K.uint32(456).uint32($.afterReadDuration);if($.isSenderSuspicious!==void 0)K.uint32(464).bool($.isSenderSuspicious);if($.appealStatus!==void 0)K.uint32(472).int32($.appealStatus);if($.appealUpdateTime!==void 0)K.uint32(480).uint64($.appealUpdateTime);if($.authAgentParentCompanyName!==void 0)K.uint32(490).string($.authAgentParentCompanyName);if($.authAgentObaPhoneNumber!==void 0)K.uint32(498).string($.authAgentObaPhoneNumber);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$G();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==18)break;if(J.messages===void 0)J.messages=[];let Y=dZ.decode(Q,Q.uint32());if(Y!==void 0)J.messages.push(Y);continue}case 3:{if(Z!==26)break;J.newJid=Q.string();continue}case 4:{if(Z!==34)break;J.oldJid=Q.string();continue}case 5:{if(Z!==40)break;J.lastMsgTimestamp=Q.uint64Number();continue}case 6:{if(Z!==48)break;J.unreadCount=Q.uint32();continue}case 7:{if(Z!==56)break;J.readOnly=Q.bool();continue}case 8:{if(Z!==64)break;J.endOfHistoryTransfer=Q.bool();continue}case 9:{if(Z!==72)break;J.ephemeralExpiration=Q.uint32();continue}case 10:{if(Z!==80)break;J.ephemeralSettingTimestamp=Q.int64Number();continue}case 11:{if(Z!==88)break;J.endOfHistoryTransferType=Q.int32();continue}case 12:{if(Z!==96)break;J.conversationTimestamp=Q.uint64Number();continue}case 13:{if(Z!==106)break;J.name=Q.string();continue}case 14:{if(Z!==114)break;J.pHash=Q.string();continue}case 15:{if(Z!==120)break;J.notSpam=Q.bool();continue}case 16:{if(Z!==128)break;J.archived=Q.bool();continue}case 17:{if(Z!==138)break;J.disappearingMode=D0.decode(Q,Q.uint32());continue}case 18:{if(Z!==144)break;J.unreadMentionCount=Q.uint32();continue}case 19:{if(Z!==152)break;J.markedAsUnread=Q.bool();continue}case 20:{if(Z!==162)break;if(J.participant===void 0)J.participant=[];let Y=_Z.decode(Q,Q.uint32());if(Y!==void 0)J.participant.push(Y);continue}case 21:{if(Z!==170)break;J.tcToken=Q.bytes();continue}case 22:{if(Z!==176)break;J.tcTokenTimestamp=Q.uint64Number();continue}case 23:{if(Z!==186)break;J.contactPrimaryIdentityKey=Q.bytes();continue}case 24:{if(Z!==192)break;J.pinned=Q.uint32();continue}case 25:{if(Z!==200)break;J.muteEndTime=Q.uint64Number();continue}case 26:{if(Z!==210)break;J.wallpaper=U0.decode(Q,Q.uint32());continue}case 27:{if(Z!==216)break;J.mediaVisibility=Q.int32();continue}case 28:{if(Z!==224)break;J.tcTokenSenderTimestamp=Q.uint64Number();continue}case 29:{if(Z!==232)break;J.suspended=Q.bool();continue}case 30:{if(Z!==240)break;J.terminated=Q.bool();continue}case 31:{if(Z!==248)break;J.createdAt=Q.uint64Number();continue}case 32:{if(Z!==258)break;J.createdBy=Q.string();continue}case 33:{if(Z!==266)break;J.description=Q.string();continue}case 34:{if(Z!==272)break;J.support=Q.bool();continue}case 35:{if(Z!==280)break;J.isParentGroup=Q.bool();continue}case 37:{if(Z!==298)break;J.parentGroupId=Q.string();continue}case 36:{if(Z!==288)break;J.isDefaultSubgroup=Q.bool();continue}case 38:{if(Z!==306)break;J.displayName=Q.string();continue}case 39:{if(Z!==314)break;J.pnJid=Q.string();continue}case 40:{if(Z!==320)break;J.shareOwnPn=Q.bool();continue}case 41:{if(Z!==328)break;J.pnhDuplicateLidThread=Q.bool();continue}case 42:{if(Z!==338)break;J.lidJid=Q.string();continue}case 43:{if(Z!==346)break;J.username=Q.string();continue}case 44:{if(Z!==354)break;J.lidOriginType=Q.string();continue}case 45:{if(Z!==360)break;J.commentsCount=Q.uint32();continue}case 46:{if(Z!==368)break;J.locked=Q.bool();continue}case 47:{if(Z!==376)break;J.systemMessageToInsert=Q.int32();continue}case 48:{if(Z!==384)break;J.capiCreatedGroup=Q.bool();continue}case 49:{if(Z!==394)break;J.accountLid=Q.string();continue}case 50:{if(Z!==400)break;J.limitSharing=Q.bool();continue}case 51:{if(Z!==408)break;J.limitSharingSettingTimestamp=Q.int64Number();continue}case 52:{if(Z!==416)break;J.limitSharingTrigger=Q.int32();continue}case 53:{if(Z!==424)break;J.limitSharingInitiatedByMe=Q.bool();continue}case 54:{if(Z!==432)break;J.maibaAiThreadEnabled=Q.bool();continue}case 55:{if(Z!==440)break;J.isMarketingMessageThread=Q.bool();continue}case 56:{if(Z!==448)break;J.isSenderNewAccount=Q.bool();continue}case 57:{if(Z!==456)break;J.afterReadDuration=Q.uint32();continue}case 58:{if(Z!==464)break;J.isSenderSuspicious=Q.bool();continue}case 59:{if(Z!==472)break;J.appealStatus=Q.int32();continue}case 60:{if(Z!==480)break;J.appealUpdateTime=Q.uint64Number();continue}case 61:{if(Z!==490)break;J.authAgentParentCompanyName=Q.string();continue}case 62:{if(Z!==498)break;J.authAgentObaPhoneNumber=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GZ.fromPartial($??{})},fromPartial($){let K=$G();return K.id=$.id??void 0,K.messages=$.messages?.map((Q)=>dZ.fromPartial(Q))||void 0,K.newJid=$.newJid??void 0,K.oldJid=$.oldJid??void 0,K.lastMsgTimestamp=$.lastMsgTimestamp??void 0,K.unreadCount=$.unreadCount??void 0,K.readOnly=$.readOnly??void 0,K.endOfHistoryTransfer=$.endOfHistoryTransfer??void 0,K.ephemeralExpiration=$.ephemeralExpiration??void 0,K.ephemeralSettingTimestamp=$.ephemeralSettingTimestamp??void 0,K.endOfHistoryTransferType=$.endOfHistoryTransferType??void 0,K.conversationTimestamp=$.conversationTimestamp??void 0,K.name=$.name??void 0,K.pHash=$.pHash??void 0,K.notSpam=$.notSpam??void 0,K.archived=$.archived??void 0,K.disappearingMode=$.disappearingMode!==void 0&&$.disappearingMode!==null?D0.fromPartial($.disappearingMode):void 0,K.unreadMentionCount=$.unreadMentionCount??void 0,K.markedAsUnread=$.markedAsUnread??void 0,K.participant=$.participant?.map((Q)=>_Z.fromPartial(Q))||void 0,K.tcToken=$.tcToken??void 0,K.tcTokenTimestamp=$.tcTokenTimestamp??void 0,K.contactPrimaryIdentityKey=$.contactPrimaryIdentityKey??void 0,K.pinned=$.pinned??void 0,K.muteEndTime=$.muteEndTime??void 0,K.wallpaper=$.wallpaper!==void 0&&$.wallpaper!==null?U0.fromPartial($.wallpaper):void 0,K.mediaVisibility=$.mediaVisibility??void 0,K.tcTokenSenderTimestamp=$.tcTokenSenderTimestamp??void 0,K.suspended=$.suspended??void 0,K.terminated=$.terminated??void 0,K.createdAt=$.createdAt??void 0,K.createdBy=$.createdBy??void 0,K.description=$.description??void 0,K.support=$.support??void 0,K.isParentGroup=$.isParentGroup??void 0,K.parentGroupId=$.parentGroupId??void 0,K.isDefaultSubgroup=$.isDefaultSubgroup??void 0,K.displayName=$.displayName??void 0,K.pnJid=$.pnJid??void 0,K.shareOwnPn=$.shareOwnPn??void 0,K.pnhDuplicateLidThread=$.pnhDuplicateLidThread??void 0,K.lidJid=$.lidJid??void 0,K.username=$.username??void 0,K.lidOriginType=$.lidOriginType??void 0,K.commentsCount=$.commentsCount??void 0,K.locked=$.locked??void 0,K.systemMessageToInsert=$.systemMessageToInsert??void 0,K.capiCreatedGroup=$.capiCreatedGroup??void 0,K.accountLid=$.accountLid??void 0,K.limitSharing=$.limitSharing??void 0,K.limitSharingSettingTimestamp=$.limitSharingSettingTimestamp??void 0,K.limitSharingTrigger=$.limitSharingTrigger??void 0,K.limitSharingInitiatedByMe=$.limitSharingInitiatedByMe??void 0,K.maibaAiThreadEnabled=$.maibaAiThreadEnabled??void 0,K.isMarketingMessageThread=$.isMarketingMessageThread??void 0,K.isSenderNewAccount=$.isSenderNewAccount??void 0,K.afterReadDuration=$.afterReadDuration??void 0,K.isSenderSuspicious=$.isSenderSuspicious??void 0,K.appealStatus=$.appealStatus??void 0,K.appealUpdateTime=$.appealUpdateTime??void 0,K.authAgentParentCompanyName=$.authAgentParentCompanyName??void 0,K.authAgentObaPhoneNumber=$.authAgentObaPhoneNumber??void 0,K}};function KG(){return{}}var UZ={encode($,K=new H){if($.recoveryCode!==void 0)K.uint32(10).string($.recoveryCode);if($.userId!==void 0)K.uint32(16).uint64($.userId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.recoveryCode=Q.string();continue}case 2:{if(Z!==16)break;J.userId=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UZ.fromPartial($??{})},fromPartial($){let K=KG();return K.recoveryCode=$.recoveryCode??void 0,K.userId=$.userId??void 0,K}};function QG(){return{}}var yN={encode($,K=new H){if($.device!==void 0)NZ.encode($.device,K.uint32(10).fork()).join();if($.virtualDevice!==void 0)MY.encode($.virtualDevice,K.uint32(18).fork()).join();if($.epoch0!==void 0)MZ.encode($.epoch0,K.uint32(26).fork()).join();if($.mailboxRootKey!==void 0)K.uint32(34).bytes($.mailboxRootKey);if($.error!==void 0)K.uint32(42).string($.error);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.device=NZ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.virtualDevice=MY.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.epoch0=MZ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.mailboxRootKey=Q.bytes();continue}case 5:{if(Z!==42)break;J.error=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yN.fromPartial($??{})},fromPartial($){let K=QG();return K.device=$.device!==void 0&&$.device!==null?NZ.fromPartial($.device):void 0,K.virtualDevice=$.virtualDevice!==void 0&&$.virtualDevice!==null?MY.fromPartial($.virtualDevice):void 0,K.epoch0=$.epoch0!==void 0&&$.epoch0!==null?MZ.fromPartial($.epoch0):void 0,K.mailboxRootKey=$.mailboxRootKey??void 0,K.error=$.error??void 0,K}};function ZG(){return{}}var CZ={encode($,K=new H){if($.epochRootKey!==void 0)K.uint32(10).bytes($.epochRootKey);if($.epochAnonId!==void 0)K.uint32(18).bytes($.epochAnonId);if($.threadId!==void 0)K.uint32(26).string($.threadId);if($.encryptionVersion!==void 0)K.uint32(32).int32($.encryptionVersion);if($.ciphertext!==void 0)K.uint32(42).bytes($.ciphertext);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.epochRootKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.epochAnonId=Q.bytes();continue}case 3:{if(Z!==26)break;J.threadId=Q.string();continue}case 4:{if(Z!==32)break;J.encryptionVersion=Q.int32();continue}case 5:{if(Z!==42)break;J.ciphertext=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return CZ.fromPartial($??{})},fromPartial($){let K=ZG();return K.epochRootKey=$.epochRootKey??void 0,K.epochAnonId=$.epochAnonId??void 0,K.threadId=$.threadId??void 0,K.encryptionVersion=$.encryptionVersion??void 0,K.ciphertext=$.ciphertext??void 0,K}};function JG(){return{}}var fN={encode($,K=new H){if($.plaintextPayload!==void 0)K.uint32(10).bytes($.plaintextPayload);if($.error!==void 0)K.uint32(18).string($.error);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.plaintextPayload=Q.bytes();continue}case 2:{if(Z!==18)break;J.error=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fN.fromPartial($??{})},fromPartial($){let K=JG();return K.plaintextPayload=$.plaintextPayload??void 0,K.error=$.error??void 0,K}};function XG(){return{}}var DZ={encode($,K=new H){if($.chatLockSupportLevel!==void 0)K.uint32(8).int32($.chatLockSupportLevel);if($.lidMigration!==void 0)FZ.encode($.lidMigration,K.uint32(18).fork()).join();if($.businessBroadcast!==void 0)PZ.encode($.businessBroadcast,K.uint32(26).fork()).join();if($.userHasAvatar!==void 0)xZ.encode($.userHasAvatar,K.uint32(34).fork()).join();if($.memberNameTagPrimarySupport!==void 0)K.uint32(40).int32($.memberNameTagPrimarySupport);if($.aiThread!==void 0)LZ.encode($.aiThread,K.uint32(50).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.chatLockSupportLevel=Q.int32();continue}case 2:{if(Z!==18)break;J.lidMigration=FZ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.businessBroadcast=PZ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.userHasAvatar=xZ.decode(Q,Q.uint32());continue}case 5:{if(Z!==40)break;J.memberNameTagPrimarySupport=Q.int32();continue}case 6:{if(Z!==50)break;J.aiThread=LZ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return DZ.fromPartial($??{})},fromPartial($){let K=XG();return K.chatLockSupportLevel=$.chatLockSupportLevel??void 0,K.lidMigration=$.lidMigration!==void 0&&$.lidMigration!==null?FZ.fromPartial($.lidMigration):void 0,K.businessBroadcast=$.businessBroadcast!==void 0&&$.businessBroadcast!==null?PZ.fromPartial($.businessBroadcast):void 0,K.userHasAvatar=$.userHasAvatar!==void 0&&$.userHasAvatar!==null?xZ.fromPartial($.userHasAvatar):void 0,K.memberNameTagPrimarySupport=$.memberNameTagPrimarySupport??void 0,K.aiThread=$.aiThread!==void 0&&$.aiThread!==null?LZ.fromPartial($.aiThread):void 0,K}};function qG(){return{}}var LZ={encode($,K=new H){if($.supportLevel!==void 0)K.uint32(8).int32($.supportLevel);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.supportLevel=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LZ.fromPartial($??{})},fromPartial($){let K=qG();return K.supportLevel=$.supportLevel??void 0,K}};function YG(){return{}}var PZ={encode($,K=new H){if($.importListEnabled!==void 0)K.uint32(8).bool($.importListEnabled);if($.companionSupportEnabled!==void 0)K.uint32(16).bool($.companionSupportEnabled);if($.campaignSyncEnabled!==void 0)K.uint32(24).bool($.campaignSyncEnabled);if($.insightsSyncEnabled!==void 0)K.uint32(32).bool($.insightsSyncEnabled);if($.recipientLimit!==void 0)K.uint32(40).int32($.recipientLimit);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.importListEnabled=Q.bool();continue}case 2:{if(Z!==16)break;J.companionSupportEnabled=Q.bool();continue}case 3:{if(Z!==24)break;J.campaignSyncEnabled=Q.bool();continue}case 4:{if(Z!==32)break;J.insightsSyncEnabled=Q.bool();continue}case 5:{if(Z!==40)break;J.recipientLimit=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PZ.fromPartial($??{})},fromPartial($){let K=YG();return K.importListEnabled=$.importListEnabled??void 0,K.companionSupportEnabled=$.companionSupportEnabled??void 0,K.campaignSyncEnabled=$.campaignSyncEnabled??void 0,K.insightsSyncEnabled=$.insightsSyncEnabled??void 0,K.recipientLimit=$.recipientLimit??void 0,K}};function HG(){return{}}var FZ={encode($,K=new H){if($.chatDbMigrationTimestamp!==void 0)K.uint32(8).uint64($.chatDbMigrationTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.chatDbMigrationTimestamp=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FZ.fromPartial($??{})},fromPartial($){let K=HG();return K.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,K}};function zG(){return{}}var xZ={encode($,K=new H){if($.userHasAvatar!==void 0)K.uint32(8).bool($.userHasAvatar);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.userHasAvatar=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xZ.fromPartial($??{})},fromPartial($){let K=zG();return K.userHasAvatar=$.userHasAvatar??void 0,K}};function VG(){return{}}var _N={encode($,K=new H){if($.generation!==void 0)K.uint32(8).uint32($.generation);if($.signature!==void 0)K.uint32(18).bytes($.signature);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.generation=Q.uint32();continue}case 2:{if(Z!==18)break;J.signature=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _N.fromPartial($??{})},fromPartial($){let K=VG();return K.generation=$.generation??void 0,K.signature=$.signature??void 0,K}};function GG(){return{}}var kZ={encode($,K=new H){if($.senderKeyHash!==void 0)K.uint32(10).bytes($.senderKeyHash);if($.senderTimestamp!==void 0)K.uint32(16).uint64($.senderTimestamp);if($.senderKeyIndexes!==void 0&&$.senderKeyIndexes.length!==0){K.uint32(26).fork();for(let Q of $.senderKeyIndexes)K.uint32(Q);K.join()}if($.senderAccountType!==void 0)K.uint32(32).int32($.senderAccountType);if($.receiverAccountType!==void 0)K.uint32(40).int32($.receiverAccountType);if($.recipientKeyHash!==void 0)K.uint32(66).bytes($.recipientKeyHash);if($.recipientTimestamp!==void 0)K.uint32(72).uint64($.recipientTimestamp);if($.recipientKeyIndexes!==void 0&&$.recipientKeyIndexes.length!==0){K.uint32(82).fork();for(let Q of $.recipientKeyIndexes)K.uint32(Q);K.join()}return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.senderKeyHash=Q.bytes();continue}case 2:{if(Z!==16)break;J.senderTimestamp=Q.uint64Number();continue}case 3:{if(Z===24){if(J.senderKeyIndexes===void 0)J.senderKeyIndexes=[];J.senderKeyIndexes.push(Q.uint32());continue}if(Z===26){if(J.senderKeyIndexes===void 0)J.senderKeyIndexes=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.senderKeyIndexes.push(Q.uint32());continue}break}case 4:{if(Z!==32)break;J.senderAccountType=Q.int32();continue}case 5:{if(Z!==40)break;J.receiverAccountType=Q.int32();continue}case 8:{if(Z!==66)break;J.recipientKeyHash=Q.bytes();continue}case 9:{if(Z!==72)break;J.recipientTimestamp=Q.uint64Number();continue}case 10:{if(Z===80){if(J.recipientKeyIndexes===void 0)J.recipientKeyIndexes=[];J.recipientKeyIndexes.push(Q.uint32());continue}if(Z===82){if(J.recipientKeyIndexes===void 0)J.recipientKeyIndexes=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.recipientKeyIndexes.push(Q.uint32());continue}break}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kZ.fromPartial($??{})},fromPartial($){let K=GG();return K.senderKeyHash=$.senderKeyHash??void 0,K.senderTimestamp=$.senderTimestamp??void 0,K.senderKeyIndexes=$.senderKeyIndexes?.map((Q)=>Q)||void 0,K.senderAccountType=$.senderAccountType??void 0,K.receiverAccountType=$.receiverAccountType??void 0,K.recipientKeyHash=$.recipientKeyHash??void 0,K.recipientTimestamp=$.recipientTimestamp??void 0,K.recipientKeyIndexes=$.recipientKeyIndexes?.map((Q)=>Q)||void 0,K}};function UG(){return{}}var NZ={encode($,K=new H){if($.publicKey!==void 0)K.uint32(10).bytes($.publicKey);if($.epochAuthPublicKey!==void 0)K.uint32(18).bytes($.epochAuthPublicKey);if($.epochAuthPublicKeySig!==void 0)K.uint32(26).bytes($.epochAuthPublicKeySig);if($.epochStoragePublicKey!==void 0)K.uint32(34).bytes($.epochStoragePublicKey);if($.epochStoragePublicKeySig!==void 0)K.uint32(42).bytes($.epochStoragePublicKeySig);if($.supportedEncryptionVersions!==void 0&&$.supportedEncryptionVersions.length!==0)for(let Q of $.supportedEncryptionVersions)K.uint32(48).int32(Q);if($.encryptionVersionSignature!==void 0)K.uint32(58).bytes($.encryptionVersionSignature);if($.clientVersion!==void 0)K.uint32(64).int32($.clientVersion);if($.ocmfClientState!==void 0)K.uint32(74).bytes($.ocmfClientState);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.publicKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.epochAuthPublicKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.epochAuthPublicKeySig=Q.bytes();continue}case 4:{if(Z!==34)break;J.epochStoragePublicKey=Q.bytes();continue}case 5:{if(Z!==42)break;J.epochStoragePublicKeySig=Q.bytes();continue}case 6:{if(Z===48){if(J.supportedEncryptionVersions===void 0)J.supportedEncryptionVersions=[];J.supportedEncryptionVersions.push(Q.int32());continue}if(Z===50){if(J.supportedEncryptionVersions===void 0)J.supportedEncryptionVersions=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.supportedEncryptionVersions.push(Q.int32());continue}break}case 7:{if(Z!==58)break;J.encryptionVersionSignature=Q.bytes();continue}case 8:{if(Z!==64)break;J.clientVersion=Q.int32();continue}case 9:{if(Z!==74)break;J.ocmfClientState=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NZ.fromPartial($??{})},fromPartial($){let K=UG();return K.publicKey=$.publicKey??void 0,K.epochAuthPublicKey=$.epochAuthPublicKey??void 0,K.epochAuthPublicKeySig=$.epochAuthPublicKeySig??void 0,K.epochStoragePublicKey=$.epochStoragePublicKey??void 0,K.epochStoragePublicKeySig=$.epochStoragePublicKeySig??void 0,K.supportedEncryptionVersions=$.supportedEncryptionVersions?.map((Q)=>Q)||void 0,K.encryptionVersionSignature=$.encryptionVersionSignature??void 0,K.clientVersion=$.clientVersion??void 0,K.ocmfClientState=$.ocmfClientState??void 0,K}};function CG(){return{}}var cY={encode($,K=new H){if($.os!==void 0)K.uint32(10).string($.os);if($.version!==void 0)RZ.encode($.version,K.uint32(18).fork()).join();if($.platformType!==void 0)K.uint32(24).int32($.platformType);if($.requireFullSync!==void 0)K.uint32(32).bool($.requireFullSync);if($.historySyncConfig!==void 0)X$.encode($.historySyncConfig,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.os=Q.string();continue}case 2:{if(Z!==18)break;J.version=RZ.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.platformType=Q.int32();continue}case 4:{if(Z!==32)break;J.requireFullSync=Q.bool();continue}case 5:{if(Z!==42)break;J.historySyncConfig=X$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cY.fromPartial($??{})},fromPartial($){let K=CG();return K.os=$.os??void 0,K.version=$.version!==void 0&&$.version!==null?RZ.fromPartial($.version):void 0,K.platformType=$.platformType??void 0,K.requireFullSync=$.requireFullSync??void 0,K.historySyncConfig=$.historySyncConfig!==void 0&&$.historySyncConfig!==null?X$.fromPartial($.historySyncConfig):void 0,K}};function DG(){return{}}var RZ={encode($,K=new H){if($.primary!==void 0)K.uint32(8).uint32($.primary);if($.secondary!==void 0)K.uint32(16).uint32($.secondary);if($.tertiary!==void 0)K.uint32(24).uint32($.tertiary);if($.quaternary!==void 0)K.uint32(32).uint32($.quaternary);if($.quinary!==void 0)K.uint32(40).uint32($.quinary);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.primary=Q.uint32();continue}case 2:{if(Z!==16)break;J.secondary=Q.uint32();continue}case 3:{if(Z!==24)break;J.tertiary=Q.uint32();continue}case 4:{if(Z!==32)break;J.quaternary=Q.uint32();continue}case 5:{if(Z!==40)break;J.quinary=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RZ.fromPartial($??{})},fromPartial($){let K=DG();return K.primary=$.primary??void 0,K.secondary=$.secondary??void 0,K.tertiary=$.tertiary??void 0,K.quaternary=$.quaternary??void 0,K.quinary=$.quinary??void 0,K}};function LG(){return{}}var X$={encode($,K=new H){if($.fullSyncDaysLimit!==void 0)K.uint32(8).uint32($.fullSyncDaysLimit);if($.fullSyncSizeMbLimit!==void 0)K.uint32(16).uint32($.fullSyncSizeMbLimit);if($.storageQuotaMb!==void 0)K.uint32(24).uint32($.storageQuotaMb);if($.inlineInitialPayloadInE2EeMsg!==void 0)K.uint32(32).bool($.inlineInitialPayloadInE2EeMsg);if($.recentSyncDaysLimit!==void 0)K.uint32(40).uint32($.recentSyncDaysLimit);if($.supportCallLogHistory!==void 0)K.uint32(48).bool($.supportCallLogHistory);if($.supportBotUserAgentChatHistory!==void 0)K.uint32(56).bool($.supportBotUserAgentChatHistory);if($.supportCagReactionsAndPolls!==void 0)K.uint32(64).bool($.supportCagReactionsAndPolls);if($.supportBizHostedMsg!==void 0)K.uint32(72).bool($.supportBizHostedMsg);if($.supportRecentSyncChunkMessageCountTuning!==void 0)K.uint32(80).bool($.supportRecentSyncChunkMessageCountTuning);if($.supportHostedGroupMsg!==void 0)K.uint32(88).bool($.supportHostedGroupMsg);if($.supportFbidBotChatHistory!==void 0)K.uint32(96).bool($.supportFbidBotChatHistory);if($.supportAddOnHistorySyncMigration!==void 0)K.uint32(104).bool($.supportAddOnHistorySyncMigration);if($.supportMessageAssociation!==void 0)K.uint32(112).bool($.supportMessageAssociation);if($.supportGroupHistory!==void 0)K.uint32(120).bool($.supportGroupHistory);if($.onDemandReady!==void 0)K.uint32(128).bool($.onDemandReady);if($.supportGuestChat!==void 0)K.uint32(136).bool($.supportGuestChat);if($.completeOnDemandReady!==void 0)K.uint32(144).bool($.completeOnDemandReady);if($.thumbnailSyncDaysLimit!==void 0)K.uint32(152).uint32($.thumbnailSyncDaysLimit);if($.initialSyncMaxMessagesPerChat!==void 0)K.uint32(160).uint32($.initialSyncMaxMessagesPerChat);if($.supportManusHistory!==void 0)K.uint32(168).bool($.supportManusHistory);if($.supportHatchHistory!==void 0)K.uint32(176).bool($.supportHatchHistory);if($.supportedBotChannelFbids!==void 0&&$.supportedBotChannelFbids.length!==0)for(let Q of $.supportedBotChannelFbids)K.uint32(186).string(Q);if($.supportInlineContacts!==void 0)K.uint32(192).bool($.supportInlineContacts);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.fullSyncDaysLimit=Q.uint32();continue}case 2:{if(Z!==16)break;J.fullSyncSizeMbLimit=Q.uint32();continue}case 3:{if(Z!==24)break;J.storageQuotaMb=Q.uint32();continue}case 4:{if(Z!==32)break;J.inlineInitialPayloadInE2EeMsg=Q.bool();continue}case 5:{if(Z!==40)break;J.recentSyncDaysLimit=Q.uint32();continue}case 6:{if(Z!==48)break;J.supportCallLogHistory=Q.bool();continue}case 7:{if(Z!==56)break;J.supportBotUserAgentChatHistory=Q.bool();continue}case 8:{if(Z!==64)break;J.supportCagReactionsAndPolls=Q.bool();continue}case 9:{if(Z!==72)break;J.supportBizHostedMsg=Q.bool();continue}case 10:{if(Z!==80)break;J.supportRecentSyncChunkMessageCountTuning=Q.bool();continue}case 11:{if(Z!==88)break;J.supportHostedGroupMsg=Q.bool();continue}case 12:{if(Z!==96)break;J.supportFbidBotChatHistory=Q.bool();continue}case 13:{if(Z!==104)break;J.supportAddOnHistorySyncMigration=Q.bool();continue}case 14:{if(Z!==112)break;J.supportMessageAssociation=Q.bool();continue}case 15:{if(Z!==120)break;J.supportGroupHistory=Q.bool();continue}case 16:{if(Z!==128)break;J.onDemandReady=Q.bool();continue}case 17:{if(Z!==136)break;J.supportGuestChat=Q.bool();continue}case 18:{if(Z!==144)break;J.completeOnDemandReady=Q.bool();continue}case 19:{if(Z!==152)break;J.thumbnailSyncDaysLimit=Q.uint32();continue}case 20:{if(Z!==160)break;J.initialSyncMaxMessagesPerChat=Q.uint32();continue}case 21:{if(Z!==168)break;J.supportManusHistory=Q.bool();continue}case 22:{if(Z!==176)break;J.supportHatchHistory=Q.bool();continue}case 23:{if(Z!==186)break;if(J.supportedBotChannelFbids===void 0)J.supportedBotChannelFbids=[];let Y=Q.string();if(Y!==void 0)J.supportedBotChannelFbids.push(Y);continue}case 24:{if(Z!==192)break;J.supportInlineContacts=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return X$.fromPartial($??{})},fromPartial($){let K=LG();return K.fullSyncDaysLimit=$.fullSyncDaysLimit??void 0,K.fullSyncSizeMbLimit=$.fullSyncSizeMbLimit??void 0,K.storageQuotaMb=$.storageQuotaMb??void 0,K.inlineInitialPayloadInE2EeMsg=$.inlineInitialPayloadInE2EeMsg??void 0,K.recentSyncDaysLimit=$.recentSyncDaysLimit??void 0,K.supportCallLogHistory=$.supportCallLogHistory??void 0,K.supportBotUserAgentChatHistory=$.supportBotUserAgentChatHistory??void 0,K.supportCagReactionsAndPolls=$.supportCagReactionsAndPolls??void 0,K.supportBizHostedMsg=$.supportBizHostedMsg??void 0,K.supportRecentSyncChunkMessageCountTuning=$.supportRecentSyncChunkMessageCountTuning??void 0,K.supportHostedGroupMsg=$.supportHostedGroupMsg??void 0,K.supportFbidBotChatHistory=$.supportFbidBotChatHistory??void 0,K.supportAddOnHistorySyncMigration=$.supportAddOnHistorySyncMigration??void 0,K.supportMessageAssociation=$.supportMessageAssociation??void 0,K.supportGroupHistory=$.supportGroupHistory??void 0,K.onDemandReady=$.onDemandReady??void 0,K.supportGuestChat=$.supportGuestChat??void 0,K.completeOnDemandReady=$.completeOnDemandReady??void 0,K.thumbnailSyncDaysLimit=$.thumbnailSyncDaysLimit??void 0,K.initialSyncMaxMessagesPerChat=$.initialSyncMaxMessagesPerChat??void 0,K.supportManusHistory=$.supportManusHistory??void 0,K.supportHatchHistory=$.supportHatchHistory??void 0,K.supportedBotChannelFbids=$.supportedBotChannelFbids?.map((Q)=>Q)||void 0,K.supportInlineContacts=$.supportInlineContacts??void 0,K}};function PG(){return{}}var D0={encode($,K=new H){if($.initiator!==void 0)K.uint32(8).int32($.initiator);if($.trigger!==void 0)K.uint32(16).int32($.trigger);if($.initiatorDeviceJid!==void 0)K.uint32(26).string($.initiatorDeviceJid);if($.initiatedByMe!==void 0)K.uint32(32).bool($.initiatedByMe);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.initiator=Q.int32();continue}case 2:{if(Z!==16)break;J.trigger=Q.int32();continue}case 3:{if(Z!==26)break;J.initiatorDeviceJid=Q.string();continue}case 4:{if(Z!==32)break;J.initiatedByMe=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return D0.fromPartial($??{})},fromPartial($){let K=PG();return K.initiator=$.initiator??void 0,K.trigger=$.trigger??void 0,K.initiatorDeviceJid=$.initiatorDeviceJid??void 0,K.initiatedByMe=$.initiatedByMe??void 0,K}};function FG(){return{}}var BZ={encode($,K=new H){if($.embeddedMessage!==void 0)OZ.encode($.embeddedMessage,K.uint32(10).fork()).join();if($.embeddedMusic!==void 0)L0.encode($.embeddedMusic,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.embeddedMessage=OZ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.embeddedMusic=L0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BZ.fromPartial($??{})},fromPartial($){let K=FG();return K.embeddedMessage=$.embeddedMessage!==void 0&&$.embeddedMessage!==null?OZ.fromPartial($.embeddedMessage):void 0,K.embeddedMusic=$.embeddedMusic!==void 0&&$.embeddedMusic!==null?L0.fromPartial($.embeddedMusic):void 0,K}};function xG(){return{}}var OZ={encode($,K=new H){if($.stanzaId!==void 0)K.uint32(10).string($.stanzaId);if($.message!==void 0)w.encode($.message,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stanzaId=Q.string();continue}case 2:{if(Z!==18)break;J.message=w.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return OZ.fromPartial($??{})},fromPartial($){let K=xG();return K.stanzaId=$.stanzaId??void 0,K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K}};function kG(){return{}}var L0={encode($,K=new H){if($.musicContentMediaId!==void 0)K.uint32(10).string($.musicContentMediaId);if($.songId!==void 0)K.uint32(18).string($.songId);if($.author!==void 0)K.uint32(26).string($.author);if($.title!==void 0)K.uint32(34).string($.title);if($.artworkDirectPath!==void 0)K.uint32(42).string($.artworkDirectPath);if($.artworkSha256!==void 0)K.uint32(50).bytes($.artworkSha256);if($.artworkEncSha256!==void 0)K.uint32(58).bytes($.artworkEncSha256);if($.artistAttribution!==void 0)K.uint32(66).string($.artistAttribution);if($.countryBlocklist!==void 0)K.uint32(74).bytes($.countryBlocklist);if($.isExplicit!==void 0)K.uint32(80).bool($.isExplicit);if($.artworkMediaKey!==void 0)K.uint32(90).bytes($.artworkMediaKey);if($.musicSongStartTimeInMs!==void 0)K.uint32(96).int64($.musicSongStartTimeInMs);if($.derivedContentStartTimeInMs!==void 0)K.uint32(104).int64($.derivedContentStartTimeInMs);if($.overlapDurationInMs!==void 0)K.uint32(112).int64($.overlapDurationInMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.musicContentMediaId=Q.string();continue}case 2:{if(Z!==18)break;J.songId=Q.string();continue}case 3:{if(Z!==26)break;J.author=Q.string();continue}case 4:{if(Z!==34)break;J.title=Q.string();continue}case 5:{if(Z!==42)break;J.artworkDirectPath=Q.string();continue}case 6:{if(Z!==50)break;J.artworkSha256=Q.bytes();continue}case 7:{if(Z!==58)break;J.artworkEncSha256=Q.bytes();continue}case 8:{if(Z!==66)break;J.artistAttribution=Q.string();continue}case 9:{if(Z!==74)break;J.countryBlocklist=Q.bytes();continue}case 10:{if(Z!==80)break;J.isExplicit=Q.bool();continue}case 11:{if(Z!==90)break;J.artworkMediaKey=Q.bytes();continue}case 12:{if(Z!==96)break;J.musicSongStartTimeInMs=Q.int64Number();continue}case 13:{if(Z!==104)break;J.derivedContentStartTimeInMs=Q.int64Number();continue}case 14:{if(Z!==112)break;J.overlapDurationInMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return L0.fromPartial($??{})},fromPartial($){let K=kG();return K.musicContentMediaId=$.musicContentMediaId??void 0,K.songId=$.songId??void 0,K.author=$.author??void 0,K.title=$.title??void 0,K.artworkDirectPath=$.artworkDirectPath??void 0,K.artworkSha256=$.artworkSha256??void 0,K.artworkEncSha256=$.artworkEncSha256??void 0,K.artistAttribution=$.artistAttribution??void 0,K.countryBlocklist=$.countryBlocklist??void 0,K.isExplicit=$.isExplicit??void 0,K.artworkMediaKey=$.artworkMediaKey??void 0,K.musicSongStartTimeInMs=$.musicSongStartTimeInMs??void 0,K.derivedContentStartTimeInMs=$.derivedContentStartTimeInMs??void 0,K.overlapDurationInMs=$.overlapDurationInMs??void 0,K}};function NG(){return{}}var AZ={encode($,K=new H){if($.epochRootKey!==void 0)K.uint32(10).bytes($.epochRootKey);if($.mailboxRootKey!==void 0)K.uint32(18).bytes($.mailboxRootKey);if($.orfClientState!==void 0)K.uint32(26).bytes($.orfClientState);if($.epochAnonId!==void 0)K.uint32(34).bytes($.epochAnonId);if($.epochId!==void 0)K.uint32(40).uint64($.epochId);if($.threadId!==void 0)K.uint32(50).string($.threadId);if($.waCanonicalUserFbid!==void 0)K.uint32(56).uint64($.waCanonicalUserFbid);if($.timestampMs!==void 0)K.uint32(64).uint64($.timestampMs);if($.backupId!==void 0)K.uint32(72).uint64($.backupId);if($.plaintextPayload!==void 0)K.uint32(82).bytes($.plaintextPayload);if($.stanzaId!==void 0)K.uint32(90).string($.stanzaId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.epochRootKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.mailboxRootKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.orfClientState=Q.bytes();continue}case 4:{if(Z!==34)break;J.epochAnonId=Q.bytes();continue}case 5:{if(Z!==40)break;J.epochId=Q.uint64Number();continue}case 6:{if(Z!==50)break;J.threadId=Q.string();continue}case 7:{if(Z!==56)break;J.waCanonicalUserFbid=Q.uint64Number();continue}case 8:{if(Z!==64)break;J.timestampMs=Q.uint64Number();continue}case 9:{if(Z!==72)break;J.backupId=Q.uint64Number();continue}case 10:{if(Z!==82)break;J.plaintextPayload=Q.bytes();continue}case 11:{if(Z!==90)break;J.stanzaId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AZ.fromPartial($??{})},fromPartial($){let K=NG();return K.epochRootKey=$.epochRootKey??void 0,K.mailboxRootKey=$.mailboxRootKey??void 0,K.orfClientState=$.orfClientState??void 0,K.epochAnonId=$.epochAnonId??void 0,K.epochId=$.epochId??void 0,K.threadId=$.threadId??void 0,K.waCanonicalUserFbid=$.waCanonicalUserFbid??void 0,K.timestampMs=$.timestampMs??void 0,K.backupId=$.backupId??void 0,K.plaintextPayload=$.plaintextPayload??void 0,K.stanzaId=$.stanzaId??void 0,K}};function RG(){return{}}var hN={encode($,K=new H){if($.encryptedProtobuf!==void 0)K.uint32(10).bytes($.encryptedProtobuf);if($.orfThreadId!==void 0)K.uint32(18).bytes($.orfThreadId);if($.valueSecretRef!==void 0)K.uint32(26).string($.valueSecretRef);if($.offlineThreadingId!==void 0)K.uint32(32).uint64($.offlineThreadingId);if($.timestampMs!==void 0)K.uint32(40).uint64($.timestampMs);if($.messageKey!==void 0)K.uint32(50).bytes($.messageKey);if($.error!==void 0)K.uint32(58).string($.error);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encryptedProtobuf=Q.bytes();continue}case 2:{if(Z!==18)break;J.orfThreadId=Q.bytes();continue}case 3:{if(Z!==26)break;J.valueSecretRef=Q.string();continue}case 4:{if(Z!==32)break;J.offlineThreadingId=Q.uint64Number();continue}case 5:{if(Z!==40)break;J.timestampMs=Q.uint64Number();continue}case 6:{if(Z!==50)break;J.messageKey=Q.bytes();continue}case 7:{if(Z!==58)break;J.error=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hN.fromPartial($??{})},fromPartial($){let K=RG();return K.encryptedProtobuf=$.encryptedProtobuf??void 0,K.orfThreadId=$.orfThreadId??void 0,K.valueSecretRef=$.valueSecretRef??void 0,K.offlineThreadingId=$.offlineThreadingId??void 0,K.timestampMs=$.timestampMs??void 0,K.messageKey=$.messageKey??void 0,K.error=$.error??void 0,K}};function BG(){return{}}var lN={encode($,K=new H){if($.encryptedPayload!==void 0)K.uint32(10).bytes($.encryptedPayload);if($.iv!==void 0)K.uint32(18).bytes($.iv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encryptedPayload=Q.bytes();continue}case 2:{if(Z!==18)break;J.iv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lN.fromPartial($??{})},fromPartial($){let K=BG();return K.encryptedPayload=$.encryptedPayload??void 0,K.iv=$.iv??void 0,K}};function OG(){return{}}var EZ={encode($,K=new H){if($.encryptedDevicePrivateKey!==void 0)K.uint32(10).bytes($.encryptedDevicePrivateKey);if($.encryptedObliviousValidationTokenBlob!==void 0)K.uint32(18).bytes($.encryptedObliviousValidationTokenBlob);if($.encryptedEpochStoragePrivateKey!==void 0)K.uint32(26).bytes($.encryptedEpochStoragePrivateKey);if($.encryptedOcmfClientState!==void 0)K.uint32(34).bytes($.encryptedOcmfClientState);if($.encryptedOrfClientStateV2!==void 0)K.uint32(42).bytes($.encryptedOrfClientStateV2);if($.encryptedMailboxRootKeyBlob!==void 0)K.uint32(50).bytes($.encryptedMailboxRootKeyBlob);if($.encryptedEpochAnonId!==void 0)K.uint32(58).bytes($.encryptedEpochAnonId);if($.encryptedEpochRootKey!==void 0)K.uint32(66).bytes($.encryptedEpochRootKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encryptedDevicePrivateKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.encryptedObliviousValidationTokenBlob=Q.bytes();continue}case 3:{if(Z!==26)break;J.encryptedEpochStoragePrivateKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.encryptedOcmfClientState=Q.bytes();continue}case 5:{if(Z!==42)break;J.encryptedOrfClientStateV2=Q.bytes();continue}case 6:{if(Z!==50)break;J.encryptedMailboxRootKeyBlob=Q.bytes();continue}case 7:{if(Z!==58)break;J.encryptedEpochAnonId=Q.bytes();continue}case 8:{if(Z!==66)break;J.encryptedEpochRootKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EZ.fromPartial($??{})},fromPartial($){let K=OG();return K.encryptedDevicePrivateKey=$.encryptedDevicePrivateKey??void 0,K.encryptedObliviousValidationTokenBlob=$.encryptedObliviousValidationTokenBlob??void 0,K.encryptedEpochStoragePrivateKey=$.encryptedEpochStoragePrivateKey??void 0,K.encryptedOcmfClientState=$.encryptedOcmfClientState??void 0,K.encryptedOrfClientStateV2=$.encryptedOrfClientStateV2??void 0,K.encryptedMailboxRootKeyBlob=$.encryptedMailboxRootKeyBlob??void 0,K.encryptedEpochAnonId=$.encryptedEpochAnonId??void 0,K.encryptedEpochRootKey=$.encryptedEpochRootKey??void 0,K}};function AG(){return{}}var pN={encode($,K=new H){if($.duration!==void 0)K.uint32(13).sfixed32($.duration);if($.timestamp!==void 0)K.uint32(17).sfixed64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==13)break;J.duration=Q.sfixed32();continue}case 2:{if(Z!==17)break;J.timestamp=Q.sfixed64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pN.fromPartial($??{})},fromPartial($){let K=AG();return K.duration=$.duration??void 0,K.timestamp=$.timestamp??void 0,K}};function EG(){return{}}var MZ={encode($,K=new H){if($.epochFbid!==void 0)K.uint32(8).uint64($.epochFbid);if($.epochAnonId!==void 0)K.uint32(18).bytes($.epochAnonId);if($.epochData!==void 0)K.uint32(26).bytes($.epochData);if($.wrappedRootKeyForSelf!==void 0)K.uint32(34).bytes($.wrappedRootKeyForSelf);if($.epochSignature!==void 0)K.uint32(42).bytes($.epochSignature);if($.epochRootKeyFingerprint!==void 0)K.uint32(50).bytes($.epochRootKeyFingerprint);if($.epochRootKey!==void 0)K.uint32(58).bytes($.epochRootKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=EG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.epochFbid=Q.uint64Number();continue}case 2:{if(Z!==18)break;J.epochAnonId=Q.bytes();continue}case 3:{if(Z!==26)break;J.epochData=Q.bytes();continue}case 4:{if(Z!==34)break;J.wrappedRootKeyForSelf=Q.bytes();continue}case 5:{if(Z!==42)break;J.epochSignature=Q.bytes();continue}case 6:{if(Z!==50)break;J.epochRootKeyFingerprint=Q.bytes();continue}case 7:{if(Z!==58)break;J.epochRootKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MZ.fromPartial($??{})},fromPartial($){let K=EG();return K.epochFbid=$.epochFbid??void 0,K.epochAnonId=$.epochAnonId??void 0,K.epochData=$.epochData??void 0,K.wrappedRootKeyForSelf=$.wrappedRootKeyForSelf??void 0,K.epochSignature=$.epochSignature??void 0,K.epochRootKeyFingerprint=$.epochRootKeyFingerprint??void 0,K.epochRootKey=$.epochRootKey??void 0,K}};function MG(){return{}}var WZ={encode($,K=new H){if($.isStale!==void 0)K.uint32(8).bool($.isStale);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=MG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isStale=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return WZ.fromPartial($??{})},fromPartial($){let K=MG();return K.isStale=$.isStale??void 0,K}};function WG(){return{}}var IZ={encode($,K=new H){if($.eventResponseMessageKey!==void 0)x.encode($.eventResponseMessageKey,K.uint32(10).fork()).join();if($.timestampMs!==void 0)K.uint32(16).int64($.timestampMs);if($.eventResponseMessage!==void 0)W0.encode($.eventResponseMessage,K.uint32(26).fork()).join();if($.unread!==void 0)K.uint32(32).bool($.unread);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.eventResponseMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.timestampMs=Q.int64Number();continue}case 3:{if(Z!==26)break;J.eventResponseMessage=W0.decode(Q,Q.uint32());continue}case 4:{if(Z!==32)break;J.unread=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return IZ.fromPartial($??{})},fromPartial($){let K=WG();return K.eventResponseMessageKey=$.eventResponseMessageKey!==void 0&&$.eventResponseMessageKey!==null?x.fromPartial($.eventResponseMessageKey):void 0,K.timestampMs=$.timestampMs??void 0,K.eventResponseMessage=$.eventResponseMessage!==void 0&&$.eventResponseMessage!==null?W0.fromPartial($.eventResponseMessage):void 0,K.unread=$.unread??void 0,K}};function IG(){return{}}var M$={encode($,K=new H){if($.code!==void 0)K.uint32(8).uint64($.code);if($.text!==void 0)K.uint32(18).string($.text);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=IG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.code=Q.uint64Number();continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return M$.fromPartial($??{})},fromPartial($){let K=IG();return K.code=$.code??void 0,K.text=$.text??void 0,K}};function SG(){return{}}var W$={encode($,K=new H){if($.mediaKey!==void 0)K.uint32(10).bytes($.mediaKey);if($.directPath!==void 0)K.uint32(18).string($.directPath);if($.handle!==void 0)K.uint32(26).string($.handle);if($.fileSizeBytes!==void 0)K.uint32(32).uint64($.fileSizeBytes);if($.fileSha256!==void 0)K.uint32(42).bytes($.fileSha256);if($.fileEncSha256!==void 0)K.uint32(50).bytes($.fileEncSha256);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.mediaKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.directPath=Q.string();continue}case 3:{if(Z!==26)break;J.handle=Q.string();continue}case 4:{if(Z!==32)break;J.fileSizeBytes=Q.uint64Number();continue}case 5:{if(Z!==42)break;J.fileSha256=Q.bytes();continue}case 6:{if(Z!==50)break;J.fileEncSha256=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return W$.fromPartial($??{})},fromPartial($){let K=SG();return K.mediaKey=$.mediaKey??void 0,K.directPath=$.directPath??void 0,K.handle=$.handle??void 0,K.fileSizeBytes=$.fileSizeBytes??void 0,K.fileSha256=$.fileSha256??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K}};function vG(){return{}}var M0={encode($,K=new H){if($.minVersion!==void 0)K.uint32(8).uint32($.minVersion);if($.maxVersion!==void 0)K.uint32(16).uint32($.maxVersion);if($.notReportableMinVersion!==void 0)K.uint32(24).uint32($.notReportableMinVersion);if($.isMessage!==void 0)K.uint32(32).bool($.isMessage);return globalThis.Object.entries($.subfield||{}).forEach(([Q,X])=>{_Y.encode({key:Q,value:X},K.uint32(42).fork()).join()}),K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.minVersion=Q.uint32();continue}case 2:{if(Z!==16)break;J.maxVersion=Q.uint32();continue}case 3:{if(Z!==24)break;J.notReportableMinVersion=Q.uint32();continue}case 4:{if(Z!==32)break;J.isMessage=Q.bool();continue}case 5:{if(Z!==42)break;let Y=_Y.decode(Q,Q.uint32());if(Y.value!==void 0&&Y.key!==void 0){if(J.subfield===void 0)J.subfield={};J.subfield[Y.key]=Y.value}continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return M0.fromPartial($??{})},fromPartial($){let K=vG();return K.minVersion=$.minVersion??void 0,K.maxVersion=$.maxVersion??void 0,K.notReportableMinVersion=$.notReportableMinVersion??void 0,K.isMessage=$.isMessage??void 0,K.subfield=$.subfield===void 0||$.subfield===null?void 0:globalThis.Object.entries($.subfield??{}).reduce((Q,[X,J])=>{if(J!==void 0)Q[globalThis.Number(X)]=M0.fromPartial(J);return Q},{}),K}};function TG(){return{}}var _Y={encode($,K=new H){if($.key!==void 0)K.uint32(8).uint32($.key);if($.value!==void 0)M0.encode($.value,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.key=Q.uint32();continue}case 2:{if(Z!==18)break;J.value=M0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _Y.fromPartial($??{})},fromPartial($){let K=TG();return K.key=$.key??void 0,K.value=$.value!==void 0&&$.value!==null?M0.fromPartial($.value):void 0,K}};function yG(){return{}}var u0={encode($,K=new H){if($.publicKey!==void 0)K.uint32(10).bytes($.publicKey);if($.pnIdentifier!==void 0)K.uint32(18).bytes($.pnIdentifier);if($.lidIdentifier!==void 0)K.uint32(26).bytes($.lidIdentifier);if($.usernameIdentifier!==void 0)K.uint32(34).bytes($.usernameIdentifier);if($.hostedState!==void 0)K.uint32(40).int32($.hostedState);if($.hashedPublicKey!==void 0)K.uint32(50).bytes($.hashedPublicKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.publicKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.pnIdentifier=Q.bytes();continue}case 3:{if(Z!==26)break;J.lidIdentifier=Q.bytes();continue}case 4:{if(Z!==34)break;J.usernameIdentifier=Q.bytes();continue}case 5:{if(Z!==40)break;J.hostedState=Q.int32();continue}case 6:{if(Z!==50)break;J.hashedPublicKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return u0.fromPartial($??{})},fromPartial($){let K=yG();return K.publicKey=$.publicKey??void 0,K.pnIdentifier=$.pnIdentifier??void 0,K.lidIdentifier=$.lidIdentifier??void 0,K.usernameIdentifier=$.usernameIdentifier??void 0,K.hostedState=$.hostedState??void 0,K.hashedPublicKey=$.hashedPublicKey??void 0,K}};function fG(){return{}}var SZ={encode($,K=new H){if($.botName!==void 0)K.uint32(10).string($.botName);if($.botJid!==void 0)K.uint32(18).string($.botJid);if($.creatorName!==void 0)K.uint32(26).string($.creatorName);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.botName=Q.string();continue}case 2:{if(Z!==18)break;J.botJid=Q.string();continue}case 3:{if(Z!==26)break;J.creatorName=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return SZ.fromPartial($??{})},fromPartial($){let K=fG();return K.botName=$.botName??void 0,K.botJid=$.botJid??void 0,K.creatorName=$.creatorName??void 0,K}};function _G(){return{}}var vZ={encode($,K=new H){if($.lightThemeWallpaper!==void 0)U0.encode($.lightThemeWallpaper,K.uint32(10).fork()).join();if($.mediaVisibility!==void 0)K.uint32(16).int32($.mediaVisibility);if($.darkThemeWallpaper!==void 0)U0.encode($.darkThemeWallpaper,K.uint32(26).fork()).join();if($.autoDownloadWiFi!==void 0)Y0.encode($.autoDownloadWiFi,K.uint32(34).fork()).join();if($.autoDownloadCellular!==void 0)Y0.encode($.autoDownloadCellular,K.uint32(42).fork()).join();if($.autoDownloadRoaming!==void 0)Y0.encode($.autoDownloadRoaming,K.uint32(50).fork()).join();if($.showIndividualNotificationsPreview!==void 0)K.uint32(56).bool($.showIndividualNotificationsPreview);if($.showGroupNotificationsPreview!==void 0)K.uint32(64).bool($.showGroupNotificationsPreview);if($.disappearingModeDuration!==void 0)K.uint32(72).int32($.disappearingModeDuration);if($.disappearingModeTimestamp!==void 0)K.uint32(80).int64($.disappearingModeTimestamp);if($.avatarUserSettings!==void 0)FK.encode($.avatarUserSettings,K.uint32(90).fork()).join();if($.fontSize!==void 0)K.uint32(96).int32($.fontSize);if($.securityNotifications!==void 0)K.uint32(104).bool($.securityNotifications);if($.autoUnarchiveChats!==void 0)K.uint32(112).bool($.autoUnarchiveChats);if($.videoQualityMode!==void 0)K.uint32(120).int32($.videoQualityMode);if($.photoQualityMode!==void 0)K.uint32(128).int32($.photoQualityMode);if($.individualNotificationSettings!==void 0)o0.encode($.individualNotificationSettings,K.uint32(138).fork()).join();if($.groupNotificationSettings!==void 0)o0.encode($.groupNotificationSettings,K.uint32(146).fork()).join();if($.chatLockSettings!==void 0)a0.encode($.chatLockSettings,K.uint32(154).fork()).join();if($.chatDbLidMigrationTimestamp!==void 0)K.uint32(160).int64($.chatDbLidMigrationTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_G();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.lightThemeWallpaper=U0.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.mediaVisibility=Q.int32();continue}case 3:{if(Z!==26)break;J.darkThemeWallpaper=U0.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.autoDownloadWiFi=Y0.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.autoDownloadCellular=Y0.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.autoDownloadRoaming=Y0.decode(Q,Q.uint32());continue}case 7:{if(Z!==56)break;J.showIndividualNotificationsPreview=Q.bool();continue}case 8:{if(Z!==64)break;J.showGroupNotificationsPreview=Q.bool();continue}case 9:{if(Z!==72)break;J.disappearingModeDuration=Q.int32();continue}case 10:{if(Z!==80)break;J.disappearingModeTimestamp=Q.int64Number();continue}case 11:{if(Z!==90)break;J.avatarUserSettings=FK.decode(Q,Q.uint32());continue}case 12:{if(Z!==96)break;J.fontSize=Q.int32();continue}case 13:{if(Z!==104)break;J.securityNotifications=Q.bool();continue}case 14:{if(Z!==112)break;J.autoUnarchiveChats=Q.bool();continue}case 15:{if(Z!==120)break;J.videoQualityMode=Q.int32();continue}case 16:{if(Z!==128)break;J.photoQualityMode=Q.int32();continue}case 17:{if(Z!==138)break;J.individualNotificationSettings=o0.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.groupNotificationSettings=o0.decode(Q,Q.uint32());continue}case 19:{if(Z!==154)break;J.chatLockSettings=a0.decode(Q,Q.uint32());continue}case 20:{if(Z!==160)break;J.chatDbLidMigrationTimestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vZ.fromPartial($??{})},fromPartial($){let K=_G();return K.lightThemeWallpaper=$.lightThemeWallpaper!==void 0&&$.lightThemeWallpaper!==null?U0.fromPartial($.lightThemeWallpaper):void 0,K.mediaVisibility=$.mediaVisibility??void 0,K.darkThemeWallpaper=$.darkThemeWallpaper!==void 0&&$.darkThemeWallpaper!==null?U0.fromPartial($.darkThemeWallpaper):void 0,K.autoDownloadWiFi=$.autoDownloadWiFi!==void 0&&$.autoDownloadWiFi!==null?Y0.fromPartial($.autoDownloadWiFi):void 0,K.autoDownloadCellular=$.autoDownloadCellular!==void 0&&$.autoDownloadCellular!==null?Y0.fromPartial($.autoDownloadCellular):void 0,K.autoDownloadRoaming=$.autoDownloadRoaming!==void 0&&$.autoDownloadRoaming!==null?Y0.fromPartial($.autoDownloadRoaming):void 0,K.showIndividualNotificationsPreview=$.showIndividualNotificationsPreview??void 0,K.showGroupNotificationsPreview=$.showGroupNotificationsPreview??void 0,K.disappearingModeDuration=$.disappearingModeDuration??void 0,K.disappearingModeTimestamp=$.disappearingModeTimestamp??void 0,K.avatarUserSettings=$.avatarUserSettings!==void 0&&$.avatarUserSettings!==null?FK.fromPartial($.avatarUserSettings):void 0,K.fontSize=$.fontSize??void 0,K.securityNotifications=$.securityNotifications??void 0,K.autoUnarchiveChats=$.autoUnarchiveChats??void 0,K.videoQualityMode=$.videoQualityMode??void 0,K.photoQualityMode=$.photoQualityMode??void 0,K.individualNotificationSettings=$.individualNotificationSettings!==void 0&&$.individualNotificationSettings!==null?o0.fromPartial($.individualNotificationSettings):void 0,K.groupNotificationSettings=$.groupNotificationSettings!==void 0&&$.groupNotificationSettings!==null?o0.fromPartial($.groupNotificationSettings):void 0,K.chatLockSettings=$.chatLockSettings!==void 0&&$.chatLockSettings!==null?a0.fromPartial($.chatLockSettings):void 0,K.chatDbLidMigrationTimestamp=$.chatDbLidMigrationTimestamp??void 0,K}};function hG(){return{}}var uN={encode($,K=new H){if($.messages!==void 0&&$.messages.length!==0)for(let Q of $.messages)b.encode(Q,K.uint32(10).fork()).join();if($.uncountedAssociatedMessageLists!==void 0&&$.uncountedAssociatedMessageLists.length!==0)for(let Q of $.uncountedAssociatedMessageLists)kY.encode(Q,K.uint32(18).fork()).join();if($.commentMessages!==void 0&&$.commentMessages.length!==0)for(let Q of $.commentMessages)b.encode(Q,K.uint32(26).fork()).join();if($.outOfWindowPinnedMessages!==void 0&&$.outOfWindowPinnedMessages.length!==0)for(let Q of $.outOfWindowPinnedMessages)b.encode(Q,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.messages===void 0)J.messages=[];let Y=b.decode(Q,Q.uint32());if(Y!==void 0)J.messages.push(Y);continue}case 2:{if(Z!==18)break;if(J.uncountedAssociatedMessageLists===void 0)J.uncountedAssociatedMessageLists=[];let Y=kY.decode(Q,Q.uint32());if(Y!==void 0)J.uncountedAssociatedMessageLists.push(Y);continue}case 3:{if(Z!==26)break;if(J.commentMessages===void 0)J.commentMessages=[];let Y=b.decode(Q,Q.uint32());if(Y!==void 0)J.commentMessages.push(Y);continue}case 4:{if(Z!==34)break;if(J.outOfWindowPinnedMessages===void 0)J.outOfWindowPinnedMessages=[];let Y=b.decode(Q,Q.uint32());if(Y!==void 0)J.outOfWindowPinnedMessages.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uN.fromPartial($??{})},fromPartial($){let K=hG();return K.messages=$.messages?.map((Q)=>b.fromPartial(Q))||void 0,K.uncountedAssociatedMessageLists=$.uncountedAssociatedMessageLists?.map((Q)=>kY.fromPartial(Q))||void 0,K.commentMessages=$.commentMessages?.map((Q)=>b.fromPartial(Q))||void 0,K.outOfWindowPinnedMessages=$.outOfWindowPinnedMessages?.map((Q)=>b.fromPartial(Q))||void 0,K}};function lG(){return{}}var TZ={encode($,K=new H){if($.deprecatedMessageHistoryBundle!==void 0)G$.encode($.deprecatedMessageHistoryBundle,K.uint32(10).fork()).join();if($.processState!==void 0)K.uint32(16).int32($.processState);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.deprecatedMessageHistoryBundle=G$.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.processState=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return TZ.fromPartial($??{})},fromPartial($){let K=lG();return K.deprecatedMessageHistoryBundle=$.deprecatedMessageHistoryBundle!==void 0&&$.deprecatedMessageHistoryBundle!==null?G$.fromPartial($.deprecatedMessageHistoryBundle):void 0,K.processState=$.processState??void 0,K}};function pG(){return{}}var yZ={encode($,K=new H){if($.bundleMessageKey!==void 0)x.encode($.bundleMessageKey,K.uint32(10).fork()).join();if($.editedAfterReceivedAsHistory!==void 0)K.uint32(16).bool($.editedAfterReceivedAsHistory);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.bundleMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.editedAfterReceivedAsHistory=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yZ.fromPartial($??{})},fromPartial($){let K=pG();return K.bundleMessageKey=$.bundleMessageKey!==void 0&&$.bundleMessageKey!==null?x.fromPartial($.bundleMessageKey):void 0,K.editedAfterReceivedAsHistory=$.editedAfterReceivedAsHistory??void 0,K}};function uG(){return{}}var wN={encode($,K=new H){if($.messages!==void 0&&$.messages.length!==0)for(let Q of $.messages)K0.encode(Q,K.uint32(10).fork()).join();if($.uncountedAssociatedMessageLists!==void 0&&$.uncountedAssociatedMessageLists.length!==0)for(let Q of $.uncountedAssociatedMessageLists)NY.encode(Q,K.uint32(18).fork()).join();if($.commentMessages!==void 0&&$.commentMessages.length!==0)for(let Q of $.commentMessages)K0.encode(Q,K.uint32(26).fork()).join();if($.outOfWindowPinnedMessages!==void 0&&$.outOfWindowPinnedMessages.length!==0)for(let Q of $.outOfWindowPinnedMessages)K0.encode(Q,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.messages===void 0)J.messages=[];let Y=K0.decode(Q,Q.uint32());if(Y!==void 0)J.messages.push(Y);continue}case 2:{if(Z!==18)break;if(J.uncountedAssociatedMessageLists===void 0)J.uncountedAssociatedMessageLists=[];let Y=NY.decode(Q,Q.uint32());if(Y!==void 0)J.uncountedAssociatedMessageLists.push(Y);continue}case 3:{if(Z!==26)break;if(J.commentMessages===void 0)J.commentMessages=[];let Y=K0.decode(Q,Q.uint32());if(Y!==void 0)J.commentMessages.push(Y);continue}case 4:{if(Z!==34)break;if(J.outOfWindowPinnedMessages===void 0)J.outOfWindowPinnedMessages=[];let Y=K0.decode(Q,Q.uint32());if(Y!==void 0)J.outOfWindowPinnedMessages.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wN.fromPartial($??{})},fromPartial($){let K=uG();return K.messages=$.messages?.map((Q)=>K0.fromPartial(Q))||void 0,K.uncountedAssociatedMessageLists=$.uncountedAssociatedMessageLists?.map((Q)=>NY.fromPartial(Q))||void 0,K.commentMessages=$.commentMessages?.map((Q)=>K0.fromPartial(Q))||void 0,K.outOfWindowPinnedMessages=$.outOfWindowPinnedMessages?.map((Q)=>K0.fromPartial(Q))||void 0,K}};function wG(){return{}}var fZ={encode($,K=new H){if($.groupJid!==void 0)K.uint32(10).string($.groupJid);if($.groupSubject!==void 0)K.uint32(18).string($.groupSubject);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.groupJid=Q.string();continue}case 2:{if(Z!==18)break;J.groupSubject=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fZ.fromPartial($??{})},fromPartial($){let K=wG();return K.groupJid=$.groupJid??void 0,K.groupSubject=$.groupSubject??void 0,K}};function nG(){return{}}var _Z={encode($,K=new H){if($.userJid!==void 0)K.uint32(10).string($.userJid);if($.rank!==void 0)K.uint32(16).int32($.rank);if($.memberLabel!==void 0)F0.encode($.memberLabel,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.userJid=Q.string();continue}case 2:{if(Z!==16)break;J.rank=Q.int32();continue}case 3:{if(Z!==26)break;J.memberLabel=F0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _Z.fromPartial($??{})},fromPartial($){let K=nG();return K.userJid=$.userJid??void 0,K.rank=$.rank??void 0,K.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?F0.fromPartial($.memberLabel):void 0,K}};function dG(){return{}}var hZ={encode($,K=new H){if($.keys!==void 0&&$.keys.length!==0)for(let Q of $.keys)lZ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.keys===void 0)J.keys=[];let Y=lZ.decode(Q,Q.uint32());if(Y!==void 0)J.keys.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hZ.fromPartial($??{})},fromPartial($){let K=dG();return K.keys=$.keys?.map((Q)=>lZ.fromPartial(Q))||void 0,K}};function jG(){return{}}var lZ={encode($,K=new H){if($.groupRootKey!==void 0)K.uint32(10).bytes($.groupRootKey);if($.keyId!==void 0)K.uint32(18).string($.keyId);if($.expiryTimestampMs!==void 0)K.uint32(24).int64($.expiryTimestampMs);if($.createdTimestampMs!==void 0)K.uint32(32).int64($.createdTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.groupRootKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.keyId=Q.string();continue}case 3:{if(Z!==24)break;J.expiryTimestampMs=Q.int64Number();continue}case 4:{if(Z!==32)break;J.createdTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lZ.fromPartial($??{})},fromPartial($){let K=jG();return K.groupRootKey=$.groupRootKey??void 0,K.keyId=$.keyId??void 0,K.expiryTimestampMs=$.expiryTimestampMs??void 0,K.createdTimestampMs=$.createdTimestampMs??void 0,K}};function cG(){return{}}var oY={encode($,K=new H){if($.clientHello!==void 0)uZ.encode($.clientHello,K.uint32(18).fork()).join();if($.serverHello!==void 0)wZ.encode($.serverHello,K.uint32(26).fork()).join();if($.clientFinish!==void 0)pZ.encode($.clientFinish,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 2:{if(Z!==18)break;J.clientHello=uZ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.serverHello=wZ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.clientFinish=pZ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oY.fromPartial($??{})},fromPartial($){let K=cG();return K.clientHello=$.clientHello!==void 0&&$.clientHello!==null?uZ.fromPartial($.clientHello):void 0,K.serverHello=$.serverHello!==void 0&&$.serverHello!==null?wZ.fromPartial($.serverHello):void 0,K.clientFinish=$.clientFinish!==void 0&&$.clientFinish!==null?pZ.fromPartial($.clientFinish):void 0,K}};function oG(){return{}}var pZ={encode($,K=new H){if($.static!==void 0)K.uint32(10).bytes($.static);if($.payload!==void 0)K.uint32(18).bytes($.payload);if($.extendedCiphertext!==void 0)K.uint32(26).bytes($.extendedCiphertext);if($.paddedBytes!==void 0)K.uint32(34).bytes($.paddedBytes);if($.simulateXxkemFs!==void 0)K.uint32(40).bool($.simulateXxkemFs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.static=Q.bytes();continue}case 2:{if(Z!==18)break;J.payload=Q.bytes();continue}case 3:{if(Z!==26)break;J.extendedCiphertext=Q.bytes();continue}case 4:{if(Z!==34)break;J.paddedBytes=Q.bytes();continue}case 5:{if(Z!==40)break;J.simulateXxkemFs=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pZ.fromPartial($??{})},fromPartial($){let K=oG();return K.static=$.static??void 0,K.payload=$.payload??void 0,K.extendedCiphertext=$.extendedCiphertext??void 0,K.paddedBytes=$.paddedBytes??void 0,K.simulateXxkemFs=$.simulateXxkemFs??void 0,K}};function bG(){return{}}var uZ={encode($,K=new H){if($.ephemeral!==void 0)K.uint32(10).bytes($.ephemeral);if($.static!==void 0)K.uint32(18).bytes($.static);if($.payload!==void 0)K.uint32(26).bytes($.payload);if($.useExtended!==void 0)K.uint32(32).bool($.useExtended);if($.extendedCiphertext!==void 0)K.uint32(42).bytes($.extendedCiphertext);if($.paddedBytes!==void 0)K.uint32(50).bytes($.paddedBytes);if($.sendServerHelloPaddedBytes!==void 0)K.uint32(56).bool($.sendServerHelloPaddedBytes);if($.simulateXxkemFs!==void 0)K.uint32(64).bool($.simulateXxkemFs);if($.pqMode!==void 0)K.uint32(72).int32($.pqMode);if($.extendedEphemeral!==void 0)K.uint32(82).bytes($.extendedEphemeral);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.ephemeral=Q.bytes();continue}case 2:{if(Z!==18)break;J.static=Q.bytes();continue}case 3:{if(Z!==26)break;J.payload=Q.bytes();continue}case 4:{if(Z!==32)break;J.useExtended=Q.bool();continue}case 5:{if(Z!==42)break;J.extendedCiphertext=Q.bytes();continue}case 6:{if(Z!==50)break;J.paddedBytes=Q.bytes();continue}case 7:{if(Z!==56)break;J.sendServerHelloPaddedBytes=Q.bool();continue}case 8:{if(Z!==64)break;J.simulateXxkemFs=Q.bool();continue}case 9:{if(Z!==72)break;J.pqMode=Q.int32();continue}case 10:{if(Z!==82)break;J.extendedEphemeral=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uZ.fromPartial($??{})},fromPartial($){let K=bG();return K.ephemeral=$.ephemeral??void 0,K.static=$.static??void 0,K.payload=$.payload??void 0,K.useExtended=$.useExtended??void 0,K.extendedCiphertext=$.extendedCiphertext??void 0,K.paddedBytes=$.paddedBytes??void 0,K.sendServerHelloPaddedBytes=$.sendServerHelloPaddedBytes??void 0,K.simulateXxkemFs=$.simulateXxkemFs??void 0,K.pqMode=$.pqMode??void 0,K.extendedEphemeral=$.extendedEphemeral??void 0,K}};function iG(){return{}}var wZ={encode($,K=new H){if($.ephemeral!==void 0)K.uint32(10).bytes($.ephemeral);if($.static!==void 0)K.uint32(18).bytes($.static);if($.payload!==void 0)K.uint32(26).bytes($.payload);if($.extendedStatic!==void 0)K.uint32(34).bytes($.extendedStatic);if($.paddingBytes!==void 0)K.uint32(42).bytes($.paddingBytes);if($.extendedCiphertext!==void 0)K.uint32(50).bytes($.extendedCiphertext);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.ephemeral=Q.bytes();continue}case 2:{if(Z!==18)break;J.static=Q.bytes();continue}case 3:{if(Z!==26)break;J.payload=Q.bytes();continue}case 4:{if(Z!==34)break;J.extendedStatic=Q.bytes();continue}case 5:{if(Z!==42)break;J.paddingBytes=Q.bytes();continue}case 6:{if(Z!==50)break;J.extendedCiphertext=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wZ.fromPartial($??{})},fromPartial($){let K=iG();return K.ephemeral=$.ephemeral??void 0,K.static=$.static??void 0,K.payload=$.payload??void 0,K.extendedStatic=$.extendedStatic??void 0,K.paddingBytes=$.paddingBytes??void 0,K.extendedCiphertext=$.extendedCiphertext??void 0,K}};function mG(){return{}}var nZ={encode($,K=new H){if($.data!==void 0)K.uint32(10).bytes($.data);if($.timestampMs!==void 0)K.uint32(16).int64($.timestampMs);if($.requestId!==void 0)K.uint32(26).string($.requestId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.data=Q.bytes();continue}case 2:{if(Z!==16)break;J.timestampMs=Q.int64Number();continue}case 3:{if(Z!==26)break;J.requestId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nZ.fromPartial($??{})},fromPartial($){let K=mG();return K.data=$.data??void 0,K.timestampMs=$.timestampMs??void 0,K.requestId=$.requestId??void 0,K}};function gG(){return{}}var bY={encode($,K=new H){if($.syncType!==void 0)K.uint32(8).int32($.syncType);if($.conversations!==void 0&&$.conversations.length!==0)for(let Q of $.conversations)GZ.encode(Q,K.uint32(18).fork()).join();if($.statusV3Messages!==void 0&&$.statusV3Messages.length!==0)for(let Q of $.statusV3Messages)b.encode(Q,K.uint32(26).fork()).join();if($.chunkOrder!==void 0)K.uint32(40).uint32($.chunkOrder);if($.progress!==void 0)K.uint32(48).uint32($.progress);if($.pushnames!==void 0&&$.pushnames.length!==0)for(let Q of $.pushnames)Xq.encode(Q,K.uint32(58).fork()).join();if($.globalSettings!==void 0)vZ.encode($.globalSettings,K.uint32(66).fork()).join();if($.threadIdUserSecret!==void 0)K.uint32(74).bytes($.threadIdUserSecret);if($.threadDsTimeframeOffset!==void 0)K.uint32(80).uint32($.threadDsTimeframeOffset);if($.recentStickers!==void 0&&$.recentStickers.length!==0)for(let Q of $.recentStickers)yq.encode(Q,K.uint32(90).fork()).join();if($.pastParticipants!==void 0&&$.pastParticipants.length!==0)for(let Q of $.pastParticipants)m8.encode(Q,K.uint32(98).fork()).join();if($.callLogRecords!==void 0&&$.callLogRecords.length!==0)for(let Q of $.callLogRecords)r0.encode(Q,K.uint32(106).fork()).join();if($.aiWaitListState!==void 0)K.uint32(112).int32($.aiWaitListState);if($.phoneNumberToLidMappings!==void 0&&$.phoneNumberToLidMappings.length!==0)for(let Q of $.phoneNumberToLidMappings)t8.encode(Q,K.uint32(122).fork()).join();if($.companionMetaNonce!==void 0)K.uint32(130).string($.companionMetaNonce);if($.shareableChatIdentifierEncryptionKey!==void 0)K.uint32(138).bytes($.shareableChatIdentifierEncryptionKey);if($.accounts!==void 0&&$.accounts.length!==0)for(let Q of $.accounts)LK.encode(Q,K.uint32(146).fork()).join();if($.nctSalt!==void 0)K.uint32(154).bytes($.nctSalt);if($.inlineContacts!==void 0&&$.inlineContacts.length!==0)for(let Q of $.inlineContacts)rZ.encode(Q,K.uint32(162).fork()).join();if($.inlineContactsProvided!==void 0)K.uint32(168).bool($.inlineContactsProvided);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.syncType=Q.int32();continue}case 2:{if(Z!==18)break;if(J.conversations===void 0)J.conversations=[];let Y=GZ.decode(Q,Q.uint32());if(Y!==void 0)J.conversations.push(Y);continue}case 3:{if(Z!==26)break;if(J.statusV3Messages===void 0)J.statusV3Messages=[];let Y=b.decode(Q,Q.uint32());if(Y!==void 0)J.statusV3Messages.push(Y);continue}case 5:{if(Z!==40)break;J.chunkOrder=Q.uint32();continue}case 6:{if(Z!==48)break;J.progress=Q.uint32();continue}case 7:{if(Z!==58)break;if(J.pushnames===void 0)J.pushnames=[];let Y=Xq.decode(Q,Q.uint32());if(Y!==void 0)J.pushnames.push(Y);continue}case 8:{if(Z!==66)break;J.globalSettings=vZ.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.threadIdUserSecret=Q.bytes();continue}case 10:{if(Z!==80)break;J.threadDsTimeframeOffset=Q.uint32();continue}case 11:{if(Z!==90)break;if(J.recentStickers===void 0)J.recentStickers=[];let Y=yq.decode(Q,Q.uint32());if(Y!==void 0)J.recentStickers.push(Y);continue}case 12:{if(Z!==98)break;if(J.pastParticipants===void 0)J.pastParticipants=[];let Y=m8.decode(Q,Q.uint32());if(Y!==void 0)J.pastParticipants.push(Y);continue}case 13:{if(Z!==106)break;if(J.callLogRecords===void 0)J.callLogRecords=[];let Y=r0.decode(Q,Q.uint32());if(Y!==void 0)J.callLogRecords.push(Y);continue}case 14:{if(Z!==112)break;J.aiWaitListState=Q.int32();continue}case 15:{if(Z!==122)break;if(J.phoneNumberToLidMappings===void 0)J.phoneNumberToLidMappings=[];let Y=t8.decode(Q,Q.uint32());if(Y!==void 0)J.phoneNumberToLidMappings.push(Y);continue}case 16:{if(Z!==130)break;J.companionMetaNonce=Q.string();continue}case 17:{if(Z!==138)break;J.shareableChatIdentifierEncryptionKey=Q.bytes();continue}case 18:{if(Z!==146)break;if(J.accounts===void 0)J.accounts=[];let Y=LK.decode(Q,Q.uint32());if(Y!==void 0)J.accounts.push(Y);continue}case 19:{if(Z!==154)break;J.nctSalt=Q.bytes();continue}case 20:{if(Z!==162)break;if(J.inlineContacts===void 0)J.inlineContacts=[];let Y=rZ.decode(Q,Q.uint32());if(Y!==void 0)J.inlineContacts.push(Y);continue}case 21:{if(Z!==168)break;J.inlineContactsProvided=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bY.fromPartial($??{})},fromPartial($){let K=gG();return K.syncType=$.syncType??void 0,K.conversations=$.conversations?.map((Q)=>GZ.fromPartial(Q))||void 0,K.statusV3Messages=$.statusV3Messages?.map((Q)=>b.fromPartial(Q))||void 0,K.chunkOrder=$.chunkOrder??void 0,K.progress=$.progress??void 0,K.pushnames=$.pushnames?.map((Q)=>Xq.fromPartial(Q))||void 0,K.globalSettings=$.globalSettings!==void 0&&$.globalSettings!==null?vZ.fromPartial($.globalSettings):void 0,K.threadIdUserSecret=$.threadIdUserSecret??void 0,K.threadDsTimeframeOffset=$.threadDsTimeframeOffset??void 0,K.recentStickers=$.recentStickers?.map((Q)=>yq.fromPartial(Q))||void 0,K.pastParticipants=$.pastParticipants?.map((Q)=>m8.fromPartial(Q))||void 0,K.callLogRecords=$.callLogRecords?.map((Q)=>r0.fromPartial(Q))||void 0,K.aiWaitListState=$.aiWaitListState??void 0,K.phoneNumberToLidMappings=$.phoneNumberToLidMappings?.map((Q)=>t8.fromPartial(Q))||void 0,K.companionMetaNonce=$.companionMetaNonce??void 0,K.shareableChatIdentifierEncryptionKey=$.shareableChatIdentifierEncryptionKey??void 0,K.accounts=$.accounts?.map((Q)=>LK.fromPartial(Q))||void 0,K.nctSalt=$.nctSalt??void 0,K.inlineContacts=$.inlineContacts?.map((Q)=>rZ.fromPartial(Q))||void 0,K.inlineContactsProvided=$.inlineContactsProvided??void 0,K}};function tG(){return{}}var dZ={encode($,K=new H){if($.message!==void 0)b.encode($.message,K.uint32(10).fork()).join();if($.msgOrderId!==void 0)K.uint32(16).uint64($.msgOrderId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.message=b.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.msgOrderId=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dZ.fromPartial($??{})},fromPartial($){let K=tG();return K.message=$.message!==void 0&&$.message!==null?b.fromPartial($.message):void 0,K.msgOrderId=$.msgOrderId??void 0,K}};function rG(){return{}}var jZ={encode($,K=new H){if($.index!==void 0)K.uint32(32).uint32($.index);if($.quickReplyButton!==void 0)oZ.encode($.quickReplyButton,K.uint32(10).fork()).join();if($.urlButton!==void 0)bZ.encode($.urlButton,K.uint32(18).fork()).join();if($.callButton!==void 0)cZ.encode($.callButton,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 4:{if(Z!==32)break;J.index=Q.uint32();continue}case 1:{if(Z!==10)break;J.quickReplyButton=oZ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.urlButton=bZ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.callButton=cZ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jZ.fromPartial($??{})},fromPartial($){let K=rG();return K.index=$.index??void 0,K.quickReplyButton=$.quickReplyButton!==void 0&&$.quickReplyButton!==null?oZ.fromPartial($.quickReplyButton):void 0,K.urlButton=$.urlButton!==void 0&&$.urlButton!==null?bZ.fromPartial($.urlButton):void 0,K.callButton=$.callButton!==void 0&&$.callButton!==null?cZ.fromPartial($.callButton):void 0,K}};function aG(){return{}}var cZ={encode($,K=new H){if($.displayText!==void 0)K.uint32(10).string($.displayText);if($.phoneNumber!==void 0)K.uint32(18).string($.phoneNumber);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=Q.string();continue}case 2:{if(Z!==18)break;J.phoneNumber=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cZ.fromPartial($??{})},fromPartial($){let K=aG();return K.displayText=$.displayText??void 0,K.phoneNumber=$.phoneNumber??void 0,K}};function sG(){return{}}var oZ={encode($,K=new H){if($.displayText!==void 0)K.uint32(10).string($.displayText);if($.id!==void 0)K.uint32(18).string($.id);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=Q.string();continue}case 2:{if(Z!==18)break;J.id=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oZ.fromPartial($??{})},fromPartial($){let K=sG();return K.displayText=$.displayText??void 0,K.id=$.id??void 0,K}};function eG(){return{}}var bZ={encode($,K=new H){if($.displayText!==void 0)K.uint32(10).string($.displayText);if($.url!==void 0)K.uint32(18).string($.url);if($.consentedUsersUrl!==void 0)K.uint32(26).string($.consentedUsersUrl);if($.webviewPresentation!==void 0)K.uint32(32).int32($.webviewPresentation);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eG();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=Q.string();continue}case 2:{if(Z!==18)break;J.url=Q.string();continue}case 3:{if(Z!==26)break;J.consentedUsersUrl=Q.string();continue}case 4:{if(Z!==32)break;J.webviewPresentation=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bZ.fromPartial($??{})},fromPartial($){let K=eG();return K.displayText=$.displayText??void 0,K.url=$.url??void 0,K.consentedUsersUrl=$.consentedUsersUrl??void 0,K.webviewPresentation=$.webviewPresentation??void 0,K}};function $5(){return{}}var nN={encode($,K=new H){if($.publicKey!==void 0)K.uint32(10).bytes($.publicKey);if($.privateKey!==void 0)K.uint32(18).bytes($.privateKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.publicKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.privateKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nN.fromPartial($??{})},fromPartial($){let K=$5();return K.publicKey=$.publicKey??void 0,K.privateKey=$.privateKey??void 0,K}};function K5(){return{}}var iZ={encode($,K=new H){if($.tessaSessionId!==void 0)K.uint32(10).string($.tessaSessionId);if($.simonSessionId!==void 0)K.uint32(18).string($.simonSessionId);if($.simonSurveyId!==void 0)K.uint32(26).string($.simonSurveyId);if($.tessaRootId!==void 0)K.uint32(34).string($.tessaRootId);if($.requestId!==void 0)K.uint32(42).string($.requestId);if($.tessaEvent!==void 0)K.uint32(50).string($.tessaEvent);if($.invitationHeaderText!==void 0)K.uint32(58).string($.invitationHeaderText);if($.invitationBodyText!==void 0)K.uint32(66).string($.invitationBodyText);if($.invitationCtaText!==void 0)K.uint32(74).string($.invitationCtaText);if($.invitationCtaUrl!==void 0)K.uint32(82).string($.invitationCtaUrl);if($.surveyTitle!==void 0)K.uint32(90).string($.surveyTitle);if($.questions!==void 0&&$.questions.length!==0)for(let Q of $.questions)tZ.encode(Q,K.uint32(98).fork()).join();if($.surveyContinueButtonText!==void 0)K.uint32(106).string($.surveyContinueButtonText);if($.surveySubmitButtonText!==void 0)K.uint32(114).string($.surveySubmitButtonText);if($.privacyStatementFull!==void 0)K.uint32(122).string($.privacyStatementFull);if($.privacyStatementParts!==void 0&&$.privacyStatementParts.length!==0)for(let Q of $.privacyStatementParts)gZ.encode(Q,K.uint32(130).fork()).join();if($.feedbackToastText!==void 0)K.uint32(138).string($.feedbackToastText);if($.startQuestionIndex!==void 0)K.uint32(144).int32($.startQuestionIndex);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=K5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.tessaSessionId=Q.string();continue}case 2:{if(Z!==18)break;J.simonSessionId=Q.string();continue}case 3:{if(Z!==26)break;J.simonSurveyId=Q.string();continue}case 4:{if(Z!==34)break;J.tessaRootId=Q.string();continue}case 5:{if(Z!==42)break;J.requestId=Q.string();continue}case 6:{if(Z!==50)break;J.tessaEvent=Q.string();continue}case 7:{if(Z!==58)break;J.invitationHeaderText=Q.string();continue}case 8:{if(Z!==66)break;J.invitationBodyText=Q.string();continue}case 9:{if(Z!==74)break;J.invitationCtaText=Q.string();continue}case 10:{if(Z!==82)break;J.invitationCtaUrl=Q.string();continue}case 11:{if(Z!==90)break;J.surveyTitle=Q.string();continue}case 12:{if(Z!==98)break;if(J.questions===void 0)J.questions=[];let Y=tZ.decode(Q,Q.uint32());if(Y!==void 0)J.questions.push(Y);continue}case 13:{if(Z!==106)break;J.surveyContinueButtonText=Q.string();continue}case 14:{if(Z!==114)break;J.surveySubmitButtonText=Q.string();continue}case 15:{if(Z!==122)break;J.privacyStatementFull=Q.string();continue}case 16:{if(Z!==130)break;if(J.privacyStatementParts===void 0)J.privacyStatementParts=[];let Y=gZ.decode(Q,Q.uint32());if(Y!==void 0)J.privacyStatementParts.push(Y);continue}case 17:{if(Z!==138)break;J.feedbackToastText=Q.string();continue}case 18:{if(Z!==144)break;J.startQuestionIndex=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iZ.fromPartial($??{})},fromPartial($){let K=K5();return K.tessaSessionId=$.tessaSessionId??void 0,K.simonSessionId=$.simonSessionId??void 0,K.simonSurveyId=$.simonSurveyId??void 0,K.tessaRootId=$.tessaRootId??void 0,K.requestId=$.requestId??void 0,K.tessaEvent=$.tessaEvent??void 0,K.invitationHeaderText=$.invitationHeaderText??void 0,K.invitationBodyText=$.invitationBodyText??void 0,K.invitationCtaText=$.invitationCtaText??void 0,K.invitationCtaUrl=$.invitationCtaUrl??void 0,K.surveyTitle=$.surveyTitle??void 0,K.questions=$.questions?.map((Q)=>tZ.fromPartial(Q))||void 0,K.surveyContinueButtonText=$.surveyContinueButtonText??void 0,K.surveySubmitButtonText=$.surveySubmitButtonText??void 0,K.privacyStatementFull=$.privacyStatementFull??void 0,K.privacyStatementParts=$.privacyStatementParts?.map((Q)=>gZ.fromPartial(Q))||void 0,K.feedbackToastText=$.feedbackToastText??void 0,K.startQuestionIndex=$.startQuestionIndex??void 0,K}};function Q5(){return{}}var mZ={encode($,K=new H){if($.stringValue!==void 0)K.uint32(10).string($.stringValue);if($.numericValue!==void 0)K.uint32(16).uint32($.numericValue);if($.textTranslated!==void 0)K.uint32(26).string($.textTranslated);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Q5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stringValue=Q.string();continue}case 2:{if(Z!==16)break;J.numericValue=Q.uint32();continue}case 3:{if(Z!==26)break;J.textTranslated=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mZ.fromPartial($??{})},fromPartial($){let K=Q5();return K.stringValue=$.stringValue??void 0,K.numericValue=$.numericValue??void 0,K.textTranslated=$.textTranslated??void 0,K}};function Z5(){return{}}var gZ={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.url!==void 0)K.uint32(18).string($.url);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Z5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==18)break;J.url=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gZ.fromPartial($??{})},fromPartial($){let K=Z5();return K.text=$.text??void 0,K.url=$.url??void 0,K}};function J5(){return{}}var tZ={encode($,K=new H){if($.questionText!==void 0)K.uint32(10).string($.questionText);if($.questionId!==void 0)K.uint32(18).string($.questionId);if($.questionOptions!==void 0&&$.questionOptions.length!==0)for(let Q of $.questionOptions)mZ.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=J5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.questionText=Q.string();continue}case 2:{if(Z!==18)break;J.questionId=Q.string();continue}case 3:{if(Z!==26)break;if(J.questionOptions===void 0)J.questionOptions=[];let Y=mZ.decode(Q,Q.uint32());if(Y!==void 0)J.questionOptions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tZ.fromPartial($??{})},fromPartial($){let K=J5();return K.questionText=$.questionText??void 0,K.questionId=$.questionId??void 0,K.questionOptions=$.questionOptions?.map((Q)=>mZ.fromPartial(Q))||void 0,K}};function X5(){return{}}var rZ={encode($,K=new H){if($.pnJid!==void 0)K.uint32(10).string($.pnJid);if($.lidJid!==void 0)K.uint32(18).string($.lidJid);if($.fullName!==void 0)K.uint32(26).string($.fullName);if($.firstName!==void 0)K.uint32(34).string($.firstName);if($.username!==void 0)K.uint32(42).string($.username);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=X5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pnJid=Q.string();continue}case 2:{if(Z!==18)break;J.lidJid=Q.string();continue}case 3:{if(Z!==26)break;J.fullName=Q.string();continue}case 4:{if(Z!==34)break;J.firstName=Q.string();continue}case 5:{if(Z!==42)break;J.username=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rZ.fromPartial($??{})},fromPartial($){let K=X5();return K.pnJid=$.pnJid??void 0,K.lidJid=$.lidJid??void 0,K.fullName=$.fullName??void 0,K.firstName=$.firstName??void 0,K.username=$.username??void 0,K}};function q5(){return{}}var Q0={encode($,K=new H){if($.polygonVertices!==void 0&&$.polygonVertices.length!==0)for(let Q of $.polygonVertices)s8.encode(Q,K.uint32(10).fork()).join();if($.shouldSkipConfirmation!==void 0)K.uint32(32).bool($.shouldSkipConfirmation);if($.embeddedContent!==void 0)BZ.encode($.embeddedContent,K.uint32(42).fork()).join();if($.statusLinkType!==void 0)K.uint32(64).int32($.statusLinkType);if($.location!==void 0)ZJ.encode($.location,K.uint32(18).fork()).join();if($.newsletter!==void 0)J$.encode($.newsletter,K.uint32(26).fork()).join();if($.embeddedAction!==void 0)K.uint32(48).bool($.embeddedAction);if($.tapAction!==void 0)CY.encode($.tapAction,K.uint32(58).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=q5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.polygonVertices===void 0)J.polygonVertices=[];let Y=s8.decode(Q,Q.uint32());if(Y!==void 0)J.polygonVertices.push(Y);continue}case 4:{if(Z!==32)break;J.shouldSkipConfirmation=Q.bool();continue}case 5:{if(Z!==42)break;J.embeddedContent=BZ.decode(Q,Q.uint32());continue}case 8:{if(Z!==64)break;J.statusLinkType=Q.int32();continue}case 2:{if(Z!==18)break;J.location=ZJ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.newsletter=J$.decode(Q,Q.uint32());continue}case 6:{if(Z!==48)break;J.embeddedAction=Q.bool();continue}case 7:{if(Z!==58)break;J.tapAction=CY.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Q0.fromPartial($??{})},fromPartial($){let K=q5();return K.polygonVertices=$.polygonVertices?.map((Q)=>s8.fromPartial(Q))||void 0,K.shouldSkipConfirmation=$.shouldSkipConfirmation??void 0,K.embeddedContent=$.embeddedContent!==void 0&&$.embeddedContent!==null?BZ.fromPartial($.embeddedContent):void 0,K.statusLinkType=$.statusLinkType??void 0,K.location=$.location!==void 0&&$.location!==null?ZJ.fromPartial($.location):void 0,K.newsletter=$.newsletter!==void 0&&$.newsletter!==null?J$.fromPartial($.newsletter):void 0,K.embeddedAction=$.embeddedAction??void 0,K.tapAction=$.tapAction!==void 0&&$.tapAction!==null?CY.fromPartial($.tapAction):void 0,K}};function Y5(){return{}}var aZ={encode($,K=new H){if($.isGalaxyFlowCompleted!==void 0)K.uint32(8).bool($.isGalaxyFlowCompleted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Y5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isGalaxyFlowCompleted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aZ.fromPartial($??{})},fromPartial($){let K=Y5();return K.isGalaxyFlowCompleted=$.isGalaxyFlowCompleted??void 0,K}};function H5(){return{}}var sZ={encode($,K=new H){if($.keepType!==void 0)K.uint32(8).int32($.keepType);if($.serverTimestamp!==void 0)K.uint32(16).int64($.serverTimestamp);if($.key!==void 0)x.encode($.key,K.uint32(26).fork()).join();if($.deviceJid!==void 0)K.uint32(34).string($.deviceJid);if($.clientTimestampMs!==void 0)K.uint32(40).int64($.clientTimestampMs);if($.serverTimestampMs!==void 0)K.uint32(48).int64($.serverTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=H5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.keepType=Q.int32();continue}case 2:{if(Z!==16)break;J.serverTimestamp=Q.int64Number();continue}case 3:{if(Z!==26)break;J.key=x.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.deviceJid=Q.string();continue}case 5:{if(Z!==40)break;J.clientTimestampMs=Q.int64Number();continue}case 6:{if(Z!==48)break;J.serverTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sZ.fromPartial($??{})},fromPartial($){let K=H5();return K.keepType=$.keepType??void 0,K.serverTimestamp=$.serverTimestamp??void 0,K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.deviceJid=$.deviceJid??void 0,K.clientTimestampMs=$.clientTimestampMs??void 0,K.serverTimestampMs=$.serverTimestampMs??void 0,K}};function z5(){return{}}var dN={encode($,K=new H){if($.id!==void 0)K.uint32(8).uint32($.id);if($.baseKey!==void 0)K.uint32(18).bytes($.baseKey);if($.ratchetKey!==void 0)K.uint32(26).bytes($.ratchetKey);if($.identityKey!==void 0)K.uint32(34).bytes($.identityKey);if($.baseKeySignature!==void 0)K.uint32(42).bytes($.baseKeySignature);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=z5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.id=Q.uint32();continue}case 2:{if(Z!==18)break;J.baseKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.ratchetKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.identityKey=Q.bytes();continue}case 5:{if(Z!==42)break;J.baseKeySignature=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dN.fromPartial($??{})},fromPartial($){let K=z5();return K.id=$.id??void 0,K.baseKey=$.baseKey??void 0,K.ratchetKey=$.ratchetKey??void 0,K.identityKey=$.identityKey??void 0,K.baseKeySignature=$.baseKeySignature??void 0,K}};function V5(){return{}}var P0={encode($,K=new H){if($.id!==void 0)K.uint32(10).bytes($.id);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=V5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return P0.fromPartial($??{})},fromPartial($){let K=V5();return K.id=$.id??void 0,K}};function G5(){return{}}var eZ={encode($,K=new H){if($.encodedMappingPayload!==void 0)K.uint32(10).bytes($.encodedMappingPayload);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=G5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encodedMappingPayload=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eZ.fromPartial($??{})},fromPartial($){let K=G5();return K.encodedMappingPayload=$.encodedMappingPayload??void 0,K}};function U5(){return{}}var $J={encode($,K=new H){if($.pn!==void 0)K.uint32(8).uint64($.pn);if($.assignedLid!==void 0)K.uint32(16).uint64($.assignedLid);if($.latestLid!==void 0)K.uint32(24).uint64($.latestLid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=U5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.pn=Q.uint64Number();continue}case 2:{if(Z!==16)break;J.assignedLid=Q.uint64Number();continue}case 3:{if(Z!==24)break;J.latestLid=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $J.fromPartial($??{})},fromPartial($){let K=U5();return K.pn=$.pn??void 0,K.assignedLid=$.assignedLid??void 0,K.latestLid=$.latestLid??void 0,K}};function C5(){return{}}var iY={encode($,K=new H){if($.pnToLidMappings!==void 0&&$.pnToLidMappings.length!==0)for(let Q of $.pnToLidMappings)$J.encode(Q,K.uint32(10).fork()).join();if($.chatDbMigrationTimestamp!==void 0)K.uint32(16).uint64($.chatDbMigrationTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=C5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.pnToLidMappings===void 0)J.pnToLidMappings=[];let Y=$J.decode(Q,Q.uint32());if(Y!==void 0)J.pnToLidMappings.push(Y);continue}case 2:{if(Z!==16)break;J.chatDbMigrationTimestamp=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iY.fromPartial($??{})},fromPartial($){let K=C5();return K.pnToLidMappings=$.pnToLidMappings?.map((Q)=>$J.fromPartial(Q))||void 0,K.chatDbMigrationTimestamp=$.chatDbMigrationTimestamp??void 0,K}};function D5(){return{}}var jN={encode($,K=new H){if($.createBackupInput!==void 0)UZ.encode($.createBackupInput,K.uint32(10).fork()).join();if($.encryptMessageInput!==void 0)AZ.encode($.encryptMessageInput,K.uint32(18).fork()).join();if($.decryptMessageInput!==void 0)CZ.encode($.decryptMessageInput,K.uint32(26).fork()).join();if($.orfThreadIdInput!==void 0)b8.encode($.orfThreadIdInput,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=D5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.createBackupInput=UZ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.encryptMessageInput=AZ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.decryptMessageInput=CZ.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.orfThreadIdInput=b8.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jN.fromPartial($??{})},fromPartial($){let K=D5();return K.createBackupInput=$.createBackupInput!==void 0&&$.createBackupInput!==null?UZ.fromPartial($.createBackupInput):void 0,K.encryptMessageInput=$.encryptMessageInput!==void 0&&$.encryptMessageInput!==null?AZ.fromPartial($.encryptMessageInput):void 0,K.decryptMessageInput=$.decryptMessageInput!==void 0&&$.decryptMessageInput!==null?CZ.fromPartial($.decryptMessageInput):void 0,K.orfThreadIdInput=$.orfThreadIdInput!==void 0&&$.orfThreadIdInput!==null?b8.fromPartial($.orfThreadIdInput):void 0,K}};function L5(){return{}}var KJ={encode($,K=new H){if($.eventResponseMessage!==void 0)W0.encode($.eventResponseMessage,K.uint32(10).fork()).join();if($.pollVote!==void 0)I0.encode($.pollVote,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=L5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.eventResponseMessage=W0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.pollVote=I0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KJ.fromPartial($??{})},fromPartial($){let K=L5();return K.eventResponseMessage=$.eventResponseMessage!==void 0&&$.eventResponseMessage!==null?W0.fromPartial($.eventResponseMessage):void 0,K.pollVote=$.pollVote!==void 0&&$.pollVote!==null?I0.fromPartial($.pollVote):void 0,K}};function P5(){return{}}var V0={encode($,K=new H){if($.sharingLimited!==void 0)K.uint32(8).bool($.sharingLimited);if($.trigger!==void 0)K.uint32(16).int32($.trigger);if($.limitSharingSettingTimestamp!==void 0)K.uint32(24).int64($.limitSharingSettingTimestamp);if($.initiatedByMe!==void 0)K.uint32(32).bool($.initiatedByMe);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=P5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.sharingLimited=Q.bool();continue}case 2:{if(Z!==16)break;J.trigger=Q.int32();continue}case 3:{if(Z!==24)break;J.limitSharingSettingTimestamp=Q.int64Number();continue}case 4:{if(Z!==32)break;J.initiatedByMe=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return V0.fromPartial($??{})},fromPartial($){let K=P5();return K.sharingLimited=$.sharingLimited??void 0,K.trigger=$.trigger??void 0,K.limitSharingSettingTimestamp=$.limitSharingSettingTimestamp??void 0,K.initiatedByMe=$.initiatedByMe??void 0,K}};function F5(){return{}}var QJ={encode($,K=new H){if($.lg!==void 0)K.uint32(10).string($.lg);if($.lc!==void 0)K.uint32(18).string($.lc);if($.verifiedName!==void 0)K.uint32(26).string($.verifiedName);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=F5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.lg=Q.string();continue}case 2:{if(Z!==18)break;J.lc=Q.string();continue}case 3:{if(Z!==26)break;J.verifiedName=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QJ.fromPartial($??{})},fromPartial($){let K=F5();return K.lg=$.lg??void 0,K.lc=$.lc??void 0,K.verifiedName=$.verifiedName??void 0,K}};function x5(){return{}}var ZJ={encode($,K=new H){if($.degreesLatitude!==void 0)K.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)K.uint32(17).double($.degreesLongitude);if($.name!==void 0)K.uint32(26).string($.name);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=x5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.degreesLatitude=Q.double();continue}case 2:{if(Z!==17)break;J.degreesLongitude=Q.double();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZJ.fromPartial($??{})},fromPartial($){let K=x5();return K.degreesLatitude=$.degreesLatitude??void 0,K.degreesLongitude=$.degreesLongitude??void 0,K.name=$.name??void 0,K}};function k5(){return{}}var w0={encode($,K=new H){if($.localPath!==void 0)K.uint32(10).string($.localPath);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=k5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.localPath=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return w0.fromPartial($??{})},fromPartial($){let K=k5();return K.localPath=$.localPath??void 0,K}};function N5(){return{}}var JJ={encode($,K=new H){if($.mediaKeyDomain!==void 0)K.uint32(8).int32($.mediaKeyDomain);if($.e2EeMediaKey!==void 0)K.uint32(18).bytes($.e2EeMediaKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=N5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.mediaKeyDomain=Q.int32();continue}case 2:{if(Z!==18)break;J.e2EeMediaKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JJ.fromPartial($??{})},fromPartial($){let K=N5();return K.mediaKeyDomain=$.mediaKeyDomain??void 0,K.e2EeMediaKey=$.e2EeMediaKey??void 0,K}};function R5(){return{}}var cN={encode($,K=new H){if($.fileSha256!==void 0)K.uint32(10).bytes($.fileSha256);if($.mediaKey!==void 0)K.uint32(18).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(26).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(34).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(40).int64($.mediaKeyTimestamp);if($.serverMediaType!==void 0)K.uint32(50).string($.serverMediaType);if($.uploadToken!==void 0)K.uint32(58).bytes($.uploadToken);if($.validatedTimestamp!==void 0)K.uint32(66).bytes($.validatedTimestamp);if($.sidecar!==void 0)K.uint32(74).bytes($.sidecar);if($.objectId!==void 0)K.uint32(82).string($.objectId);if($.fbid!==void 0)K.uint32(90).string($.fbid);if($.downloadableThumbnail!==void 0)XJ.encode($.downloadableThumbnail,K.uint32(98).fork()).join();if($.handle!==void 0)K.uint32(106).string($.handle);if($.filename!==void 0)K.uint32(114).string($.filename);if($.progressiveJpegDetails!==void 0)qJ.encode($.progressiveJpegDetails,K.uint32(122).fork()).join();if($.size!==void 0)K.uint32(128).int64($.size);if($.lastDownloadAttemptTimestamp!==void 0)K.uint32(136).int64($.lastDownloadAttemptTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=R5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fileSha256=Q.bytes();continue}case 2:{if(Z!==18)break;J.mediaKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.fileEncSha256=Q.bytes();continue}case 4:{if(Z!==34)break;J.directPath=Q.string();continue}case 5:{if(Z!==40)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 6:{if(Z!==50)break;J.serverMediaType=Q.string();continue}case 7:{if(Z!==58)break;J.uploadToken=Q.bytes();continue}case 8:{if(Z!==66)break;J.validatedTimestamp=Q.bytes();continue}case 9:{if(Z!==74)break;J.sidecar=Q.bytes();continue}case 10:{if(Z!==82)break;J.objectId=Q.string();continue}case 11:{if(Z!==90)break;J.fbid=Q.string();continue}case 12:{if(Z!==98)break;J.downloadableThumbnail=XJ.decode(Q,Q.uint32());continue}case 13:{if(Z!==106)break;J.handle=Q.string();continue}case 14:{if(Z!==114)break;J.filename=Q.string();continue}case 15:{if(Z!==122)break;J.progressiveJpegDetails=qJ.decode(Q,Q.uint32());continue}case 16:{if(Z!==128)break;J.size=Q.int64Number();continue}case 17:{if(Z!==136)break;J.lastDownloadAttemptTimestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cN.fromPartial($??{})},fromPartial($){let K=R5();return K.fileSha256=$.fileSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.serverMediaType=$.serverMediaType??void 0,K.uploadToken=$.uploadToken??void 0,K.validatedTimestamp=$.validatedTimestamp??void 0,K.sidecar=$.sidecar??void 0,K.objectId=$.objectId??void 0,K.fbid=$.fbid??void 0,K.downloadableThumbnail=$.downloadableThumbnail!==void 0&&$.downloadableThumbnail!==null?XJ.fromPartial($.downloadableThumbnail):void 0,K.handle=$.handle??void 0,K.filename=$.filename??void 0,K.progressiveJpegDetails=$.progressiveJpegDetails!==void 0&&$.progressiveJpegDetails!==null?qJ.fromPartial($.progressiveJpegDetails):void 0,K.size=$.size??void 0,K.lastDownloadAttemptTimestamp=$.lastDownloadAttemptTimestamp??void 0,K}};function B5(){return{}}var XJ={encode($,K=new H){if($.fileSha256!==void 0)K.uint32(10).bytes($.fileSha256);if($.fileEncSha256!==void 0)K.uint32(18).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(26).string($.directPath);if($.mediaKey!==void 0)K.uint32(34).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)K.uint32(40).int64($.mediaKeyTimestamp);if($.objectId!==void 0)K.uint32(50).string($.objectId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=B5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fileSha256=Q.bytes();continue}case 2:{if(Z!==18)break;J.fileEncSha256=Q.bytes();continue}case 3:{if(Z!==26)break;J.directPath=Q.string();continue}case 4:{if(Z!==34)break;J.mediaKey=Q.bytes();continue}case 5:{if(Z!==40)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 6:{if(Z!==50)break;J.objectId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XJ.fromPartial($??{})},fromPartial($){let K=B5();return K.fileSha256=$.fileSha256??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKey=$.mediaKey??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.objectId=$.objectId??void 0,K}};function O5(){return{}}var qJ={encode($,K=new H){if($.scanLengths!==void 0&&$.scanLengths.length!==0)for(let Q of $.scanLengths)K.uint32(8).uint32(Q);if($.sidecar!==void 0)K.uint32(18).bytes($.sidecar);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=O5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z===8){if(J.scanLengths===void 0)J.scanLengths=[];J.scanLengths.push(Q.uint32());continue}if(Z===10){if(J.scanLengths===void 0)J.scanLengths=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.scanLengths.push(Q.uint32());continue}break}case 2:{if(Z!==18)break;J.sidecar=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qJ.fromPartial($??{})},fromPartial($){let K=O5();return K.scanLengths=$.scanLengths?.map((Q)=>Q)||void 0,K.sidecar=$.sidecar??void 0,K}};function A5(){return{}}var YJ={encode($,K=new H){if($.expressPathUrl!==void 0)K.uint32(10).string($.expressPathUrl);if($.fileEncSha256!==void 0)K.uint32(18).bytes($.fileEncSha256);if($.fileLength!==void 0)K.uint32(24).uint64($.fileLength);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=A5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.expressPathUrl=Q.string();continue}case 2:{if(Z!==18)break;J.fileEncSha256=Q.bytes();continue}case 3:{if(Z!==24)break;J.fileLength=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YJ.fromPartial($??{})},fromPartial($){let K=A5();return K.expressPathUrl=$.expressPathUrl??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.fileLength=$.fileLength??void 0,K}};function E5(){return{}}var mY={encode($,K=new H){if($.stanzaId!==void 0)K.uint32(10).string($.stanzaId);if($.directPath!==void 0)K.uint32(18).string($.directPath);if($.result!==void 0)K.uint32(24).int32($.result);if($.messageSecret!==void 0)K.uint32(34).bytes($.messageSecret);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=E5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stanzaId=Q.string();continue}case 2:{if(Z!==18)break;J.directPath=Q.string();continue}case 3:{if(Z!==24)break;J.result=Q.int32();continue}case 4:{if(Z!==34)break;J.messageSecret=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mY.fromPartial($??{})},fromPartial($){let K=E5();return K.stanzaId=$.stanzaId??void 0,K.directPath=$.directPath??void 0,K.result=$.result??void 0,K.messageSecret=$.messageSecret??void 0,K}};function M5(){return{}}var F0={encode($,K=new H){if($.label!==void 0)K.uint32(10).string($.label);if($.labelTimestamp!==void 0)K.uint32(16).int64($.labelTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=M5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.label=Q.string();continue}case 2:{if(Z!==16)break;J.labelTimestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return F0.fromPartial($??{})},fromPartial($){let K=M5();return K.label=$.label??void 0,K.labelTimestamp=$.labelTimestamp??void 0,K}};function W5(){return{}}var HJ={encode($,K=new H){if($.mentionType!==void 0)K.uint32(8).int32($.mentionType);if($.mentionedJid!==void 0)K.uint32(18).string($.mentionedJid);if($.offset!==void 0)K.uint32(24).uint32($.offset);if($.length!==void 0)K.uint32(32).uint32($.length);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=W5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.mentionType=Q.int32();continue}case 2:{if(Z!==18)break;J.mentionedJid=Q.string();continue}case 3:{if(Z!==24)break;J.offset=Q.uint32();continue}case 4:{if(Z!==32)break;J.length=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HJ.fromPartial($??{})},fromPartial($){let K=W5();return K.mentionType=$.mentionType??void 0,K.mentionedJid=$.mentionedJid??void 0,K.offset=$.offset??void 0,K.length=$.length??void 0,K}};function I5(){return{}}var w={encode($,K=new H){if($.conversation!==void 0)K.uint32(10).string($.conversation);if($.senderKeyDistributionMessage!==void 0)d0.encode($.senderKeyDistributionMessage,K.uint32(18).fork()).join();if($.imageMessage!==void 0)i.encode($.imageMessage,K.uint32(26).fork()).join();if($.contactMessage!==void 0)H$.encode($.contactMessage,K.uint32(34).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,K.uint32(42).fork()).join();if($.extendedTextMessage!==void 0)oJ.encode($.extendedTextMessage,K.uint32(50).fork()).join();if($.documentMessage!==void 0)$0.encode($.documentMessage,K.uint32(58).fork()).join();if($.audioMessage!==void 0)Y$.encode($.audioMessage,K.uint32(66).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,K.uint32(74).fork()).join();if($.call!==void 0)BJ.encode($.call,K.uint32(82).fork()).join();if($.chat!==void 0)MJ.encode($.chat,K.uint32(90).fork()).join();if($.protocolMessage!==void 0)P8.encode($.protocolMessage,K.uint32(98).fork()).join();if($.contactsArrayMessage!==void 0)lJ.encode($.contactsArrayMessage,K.uint32(106).fork()).join();if($.highlyStructuredMessage!==void 0)c.encode($.highlyStructuredMessage,K.uint32(114).fork()).join();if($.fastRatchetKeySenderKeyDistributionMessage!==void 0)d0.encode($.fastRatchetKeySenderKeyDistributionMessage,K.uint32(122).fork()).join();if($.sendPaymentMessage!==void 0)M8.encode($.sendPaymentMessage,K.uint32(130).fork()).join();if($.liveLocationMessage!==void 0)V$.encode($.liveLocationMessage,K.uint32(146).fork()).join();if($.requestPaymentMessage!==void 0)k8.encode($.requestPaymentMessage,K.uint32(178).fork()).join();if($.declinePaymentRequestMessage!==void 0)pJ.encode($.declinePaymentRequestMessage,K.uint32(186).fork()).join();if($.cancelPaymentRequestMessage!==void 0)EJ.encode($.cancelPaymentRequestMessage,K.uint32(194).fork()).join();if($.templateMessage!==void 0)P$.encode($.templateMessage,K.uint32(202).fork()).join();if($.stickerMessage!==void 0)L$.encode($.stickerMessage,K.uint32(210).fork()).join();if($.groupInviteMessage!==void 0)iJ.encode($.groupInviteMessage,K.uint32(226).fork()).join();if($.templateButtonReplyMessage!==void 0)l8.encode($.templateButtonReplyMessage,K.uint32(234).fork()).join();if($.productMessage!==void 0)D$.encode($.productMessage,K.uint32(242).fork()).join();if($.deviceSentMessage!==void 0)uJ.encode($.deviceSentMessage,K.uint32(250).fork()).join();if($.messageContextInfo!==void 0)x$.encode($.messageContextInfo,K.uint32(282).fork()).join();if($.listMessage!==void 0)LX.encode($.listMessage,K.uint32(290).fork()).join();if($.viewOnceMessage!==void 0)W.encode($.viewOnceMessage,K.uint32(298).fork()).join();if($.orderMessage!==void 0)IX.encode($.orderMessage,K.uint32(306).fork()).join();if($.listResponseMessage!==void 0)BX.encode($.listResponseMessage,K.uint32(314).fork()).join();if($.ephemeralMessage!==void 0)W.encode($.ephemeralMessage,K.uint32(322).fork()).join();if($.invoiceMessage!==void 0)UX.encode($.invoiceMessage,K.uint32(330).fork()).join();if($.buttonsMessage!==void 0)FJ.encode($.buttonsMessage,K.uint32(338).fork()).join();if($.buttonsResponseMessage!==void 0)RJ.encode($.buttonsResponseMessage,K.uint32(346).fork()).join();if($.paymentInviteMessage!==void 0)vX.encode($.paymentInviteMessage,K.uint32(354).fork()).join();if($.interactiveMessage!==void 0)k0.encode($.interactiveMessage,K.uint32(362).fork()).join();if($.reactionMessage!==void 0)x8.encode($.reactionMessage,K.uint32(370).fork()).join();if($.stickerSyncRmrMessage!==void 0)h8.encode($.stickerSyncRmrMessage,K.uint32(378).fork()).join();if($.interactiveResponseMessage!==void 0)zX.encode($.interactiveResponseMessage,K.uint32(386).fork()).join();if($.pollCreationMessage!==void 0)e.encode($.pollCreationMessage,K.uint32(394).fork()).join();if($.pollUpdateMessage!==void 0)C8.encode($.pollUpdateMessage,K.uint32(402).fork()).join();if($.keepInChatMessage!==void 0)CX.encode($.keepInChatMessage,K.uint32(410).fork()).join();if($.documentWithCaptionMessage!==void 0)W.encode($.documentWithCaptionMessage,K.uint32(426).fork()).join();if($.requestPhoneNumberMessage!==void 0)N8.encode($.requestPhoneNumberMessage,K.uint32(434).fork()).join();if($.viewOnceMessageV2!==void 0)W.encode($.viewOnceMessageV2,K.uint32(442).fork()).join();if($.encReactionMessage!==void 0)dJ.encode($.encReactionMessage,K.uint32(450).fork()).join();if($.editedMessage!==void 0)W.encode($.editedMessage,K.uint32(466).fork()).join();if($.viewOnceMessageV2Extension!==void 0)W.encode($.viewOnceMessageV2Extension,K.uint32(474).fork()).join();if($.pollCreationMessageV2!==void 0)e.encode($.pollCreationMessageV2,K.uint32(482).fork()).join();if($.scheduledCallCreationMessage!==void 0)O8.encode($.scheduledCallCreationMessage,K.uint32(490).fork()).join();if($.groupMentionedMessage!==void 0)W.encode($.groupMentionedMessage,K.uint32(498).fork()).join();if($.pinInChatMessage!==void 0)H8.encode($.pinInChatMessage,K.uint32(506).fork()).join();if($.pollCreationMessageV3!==void 0)e.encode($.pollCreationMessageV3,K.uint32(514).fork()).join();if($.scheduledCallEditMessage!==void 0)A8.encode($.scheduledCallEditMessage,K.uint32(522).fork()).join();if($.ptvMessage!==void 0)t.encode($.ptvMessage,K.uint32(530).fork()).join();if($.botInvokeMessage!==void 0)W.encode($.botInvokeMessage,K.uint32(538).fork()).join();if($.callLogMesssage!==void 0)OJ.encode($.callLogMesssage,K.uint32(554).fork()).join();if($.messageHistoryBundle!==void 0)G$.encode($.messageHistoryBundle,K.uint32(562).fork()).join();if($.encCommentMessage!==void 0)wJ.encode($.encCommentMessage,K.uint32(570).fork()).join();if($.bcallMessage!==void 0)PJ.encode($.bcallMessage,K.uint32(578).fork()).join();if($.lottieStickerMessage!==void 0)W.encode($.lottieStickerMessage,K.uint32(594).fork()).join();if($.eventMessage!==void 0)cJ.encode($.eventMessage,K.uint32(602).fork()).join();if($.encEventResponseMessage!==void 0)nJ.encode($.encEventResponseMessage,K.uint32(610).fork()).join();if($.commentMessage!==void 0)_J.encode($.commentMessage,K.uint32(618).fork()).join();if($.newsletterAdminInviteMessage!==void 0)MX.encode($.newsletterAdminInviteMessage,K.uint32(626).fork()).join();if($.placeholderMessage!==void 0)z8.encode($.placeholderMessage,K.uint32(642).fork()).join();if($.secretEncryptedMessage!==void 0)E8.encode($.secretEncryptedMessage,K.uint32(658).fork()).join();if($.albumMessage!==void 0)zJ.encode($.albumMessage,K.uint32(666).fork()).join();if($.eventCoverImage!==void 0)W.encode($.eventCoverImage,K.uint32(682).fork()).join();if($.stickerPackMessage!==void 0)f8.encode($.stickerPackMessage,K.uint32(690).fork()).join();if($.statusMentionMessage!==void 0)W.encode($.statusMentionMessage,K.uint32(698).fork()).join();if($.pollResultSnapshotMessage!==void 0)n0.encode($.pollResultSnapshotMessage,K.uint32(706).fork()).join();if($.pollCreationOptionImageMessage!==void 0)W.encode($.pollCreationOptionImageMessage,K.uint32(722).fork()).join();if($.associatedChildMessage!==void 0)W.encode($.associatedChildMessage,K.uint32(730).fork()).join();if($.groupStatusMentionMessage!==void 0)W.encode($.groupStatusMentionMessage,K.uint32(738).fork()).join();if($.pollCreationMessageV4!==void 0)W.encode($.pollCreationMessageV4,K.uint32(746).fork()).join();if($.statusAddYours!==void 0)W.encode($.statusAddYours,K.uint32(762).fork()).join();if($.groupStatusMessage!==void 0)W.encode($.groupStatusMessage,K.uint32(770).fork()).join();if($.richResponseMessage!==void 0)qK.encode($.richResponseMessage,K.uint32(778).fork()).join();if($.statusNotificationMessage!==void 0)S8.encode($.statusNotificationMessage,K.uint32(786).fork()).join();if($.limitSharingMessage!==void 0)W.encode($.limitSharingMessage,K.uint32(794).fork()).join();if($.botTaskMessage!==void 0)W.encode($.botTaskMessage,K.uint32(802).fork()).join();if($.questionMessage!==void 0)W.encode($.questionMessage,K.uint32(810).fork()).join();if($.messageHistoryNotice!==void 0)EX.encode($.messageHistoryNotice,K.uint32(818).fork()).join();if($.groupStatusMessageV2!==void 0)W.encode($.groupStatusMessageV2,K.uint32(826).fork()).join();if($.botForwardedMessage!==void 0)W.encode($.botForwardedMessage,K.uint32(834).fork()).join();if($.statusQuestionAnswerMessage!==void 0)v8.encode($.statusQuestionAnswerMessage,K.uint32(842).fork()).join();if($.questionReplyMessage!==void 0)W.encode($.questionReplyMessage,K.uint32(850).fork()).join();if($.questionResponseMessage!==void 0)F8.encode($.questionResponseMessage,K.uint32(858).fork()).join();if($.statusQuotedMessage!==void 0)T8.encode($.statusQuotedMessage,K.uint32(874).fork()).join();if($.statusStickerInteractionMessage!==void 0)y8.encode($.statusStickerInteractionMessage,K.uint32(882).fork()).join();if($.pollCreationMessageV5!==void 0)e.encode($.pollCreationMessageV5,K.uint32(890).fork()).join();if($.newsletterFollowerInviteMessageV2!==void 0)WX.encode($.newsletterFollowerInviteMessageV2,K.uint32(906).fork()).join();if($.pollResultSnapshotMessageV3!==void 0)n0.encode($.pollResultSnapshotMessageV3,K.uint32(922).fork()).join();if($.newsletterAdminProfileMessage!==void 0)W.encode($.newsletterAdminProfileMessage,K.uint32(930).fork()).join();if($.newsletterAdminProfileMessageV2!==void 0)W.encode($.newsletterAdminProfileMessageV2,K.uint32(938).fork()).join();if($.spoilerMessage!==void 0)W.encode($.spoilerMessage,K.uint32(946).fork()).join();if($.pollCreationMessageV6!==void 0)e.encode($.pollCreationMessageV6,K.uint32(954).fork()).join();if($.conditionalRevealMessage!==void 0)hJ.encode($.conditionalRevealMessage,K.uint32(962).fork()).join();if($.pollAddOptionMessage!==void 0)V8.encode($.pollAddOptionMessage,K.uint32(970).fork()).join();if($.eventInviteMessage!==void 0)jJ.encode($.eventInviteMessage,K.uint32(978).fork()).join();if($.groupRootKeyShare!==void 0)hZ.encode($.groupRootKeyShare,K.uint32(986).fork()).join();if($.paymentReminderMessage!==void 0)_X.encode($.paymentReminderMessage,K.uint32(994).fork()).join();if($.splitPaymentMessage!==void 0)W8.encode($.splitPaymentMessage,K.uint32(1002).fork()).join();if($.newsletterAdminProfileStatusMessage!==void 0)W.encode($.newsletterAdminProfileStatusMessage,K.uint32(1010).fork()).join();if($.rootSecretDistributeMessage!==void 0)B8.encode($.rootSecretDistributeMessage,K.uint32(1018).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=I5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.conversation=Q.string();continue}case 2:{if(Z!==18)break;J.senderKeyDistributionMessage=d0.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.imageMessage=i.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.contactMessage=H$.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.locationMessage=a.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.extendedTextMessage=oJ.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.documentMessage=$0.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.audioMessage=Y$.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.videoMessage=t.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.call=BJ.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.chat=MJ.decode(Q,Q.uint32());continue}case 12:{if(Z!==98)break;J.protocolMessage=P8.decode(Q,Q.uint32());continue}case 13:{if(Z!==106)break;J.contactsArrayMessage=lJ.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.highlyStructuredMessage=c.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;J.fastRatchetKeySenderKeyDistributionMessage=d0.decode(Q,Q.uint32());continue}case 16:{if(Z!==130)break;J.sendPaymentMessage=M8.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.liveLocationMessage=V$.decode(Q,Q.uint32());continue}case 22:{if(Z!==178)break;J.requestPaymentMessage=k8.decode(Q,Q.uint32());continue}case 23:{if(Z!==186)break;J.declinePaymentRequestMessage=pJ.decode(Q,Q.uint32());continue}case 24:{if(Z!==194)break;J.cancelPaymentRequestMessage=EJ.decode(Q,Q.uint32());continue}case 25:{if(Z!==202)break;J.templateMessage=P$.decode(Q,Q.uint32());continue}case 26:{if(Z!==210)break;J.stickerMessage=L$.decode(Q,Q.uint32());continue}case 28:{if(Z!==226)break;J.groupInviteMessage=iJ.decode(Q,Q.uint32());continue}case 29:{if(Z!==234)break;J.templateButtonReplyMessage=l8.decode(Q,Q.uint32());continue}case 30:{if(Z!==242)break;J.productMessage=D$.decode(Q,Q.uint32());continue}case 31:{if(Z!==250)break;J.deviceSentMessage=uJ.decode(Q,Q.uint32());continue}case 35:{if(Z!==282)break;J.messageContextInfo=x$.decode(Q,Q.uint32());continue}case 36:{if(Z!==290)break;J.listMessage=LX.decode(Q,Q.uint32());continue}case 37:{if(Z!==298)break;J.viewOnceMessage=W.decode(Q,Q.uint32());continue}case 38:{if(Z!==306)break;J.orderMessage=IX.decode(Q,Q.uint32());continue}case 39:{if(Z!==314)break;J.listResponseMessage=BX.decode(Q,Q.uint32());continue}case 40:{if(Z!==322)break;J.ephemeralMessage=W.decode(Q,Q.uint32());continue}case 41:{if(Z!==330)break;J.invoiceMessage=UX.decode(Q,Q.uint32());continue}case 42:{if(Z!==338)break;J.buttonsMessage=FJ.decode(Q,Q.uint32());continue}case 43:{if(Z!==346)break;J.buttonsResponseMessage=RJ.decode(Q,Q.uint32());continue}case 44:{if(Z!==354)break;J.paymentInviteMessage=vX.decode(Q,Q.uint32());continue}case 45:{if(Z!==362)break;J.interactiveMessage=k0.decode(Q,Q.uint32());continue}case 46:{if(Z!==370)break;J.reactionMessage=x8.decode(Q,Q.uint32());continue}case 47:{if(Z!==378)break;J.stickerSyncRmrMessage=h8.decode(Q,Q.uint32());continue}case 48:{if(Z!==386)break;J.interactiveResponseMessage=zX.decode(Q,Q.uint32());continue}case 49:{if(Z!==394)break;J.pollCreationMessage=e.decode(Q,Q.uint32());continue}case 50:{if(Z!==402)break;J.pollUpdateMessage=C8.decode(Q,Q.uint32());continue}case 51:{if(Z!==410)break;J.keepInChatMessage=CX.decode(Q,Q.uint32());continue}case 53:{if(Z!==426)break;J.documentWithCaptionMessage=W.decode(Q,Q.uint32());continue}case 54:{if(Z!==434)break;J.requestPhoneNumberMessage=N8.decode(Q,Q.uint32());continue}case 55:{if(Z!==442)break;J.viewOnceMessageV2=W.decode(Q,Q.uint32());continue}case 56:{if(Z!==450)break;J.encReactionMessage=dJ.decode(Q,Q.uint32());continue}case 58:{if(Z!==466)break;J.editedMessage=W.decode(Q,Q.uint32());continue}case 59:{if(Z!==474)break;J.viewOnceMessageV2Extension=W.decode(Q,Q.uint32());continue}case 60:{if(Z!==482)break;J.pollCreationMessageV2=e.decode(Q,Q.uint32());continue}case 61:{if(Z!==490)break;J.scheduledCallCreationMessage=O8.decode(Q,Q.uint32());continue}case 62:{if(Z!==498)break;J.groupMentionedMessage=W.decode(Q,Q.uint32());continue}case 63:{if(Z!==506)break;J.pinInChatMessage=H8.decode(Q,Q.uint32());continue}case 64:{if(Z!==514)break;J.pollCreationMessageV3=e.decode(Q,Q.uint32());continue}case 65:{if(Z!==522)break;J.scheduledCallEditMessage=A8.decode(Q,Q.uint32());continue}case 66:{if(Z!==530)break;J.ptvMessage=t.decode(Q,Q.uint32());continue}case 67:{if(Z!==538)break;J.botInvokeMessage=W.decode(Q,Q.uint32());continue}case 69:{if(Z!==554)break;J.callLogMesssage=OJ.decode(Q,Q.uint32());continue}case 70:{if(Z!==562)break;J.messageHistoryBundle=G$.decode(Q,Q.uint32());continue}case 71:{if(Z!==570)break;J.encCommentMessage=wJ.decode(Q,Q.uint32());continue}case 72:{if(Z!==578)break;J.bcallMessage=PJ.decode(Q,Q.uint32());continue}case 74:{if(Z!==594)break;J.lottieStickerMessage=W.decode(Q,Q.uint32());continue}case 75:{if(Z!==602)break;J.eventMessage=cJ.decode(Q,Q.uint32());continue}case 76:{if(Z!==610)break;J.encEventResponseMessage=nJ.decode(Q,Q.uint32());continue}case 77:{if(Z!==618)break;J.commentMessage=_J.decode(Q,Q.uint32());continue}case 78:{if(Z!==626)break;J.newsletterAdminInviteMessage=MX.decode(Q,Q.uint32());continue}case 80:{if(Z!==642)break;J.placeholderMessage=z8.decode(Q,Q.uint32());continue}case 82:{if(Z!==658)break;J.secretEncryptedMessage=E8.decode(Q,Q.uint32());continue}case 83:{if(Z!==666)break;J.albumMessage=zJ.decode(Q,Q.uint32());continue}case 85:{if(Z!==682)break;J.eventCoverImage=W.decode(Q,Q.uint32());continue}case 86:{if(Z!==690)break;J.stickerPackMessage=f8.decode(Q,Q.uint32());continue}case 87:{if(Z!==698)break;J.statusMentionMessage=W.decode(Q,Q.uint32());continue}case 88:{if(Z!==706)break;J.pollResultSnapshotMessage=n0.decode(Q,Q.uint32());continue}case 90:{if(Z!==722)break;J.pollCreationOptionImageMessage=W.decode(Q,Q.uint32());continue}case 91:{if(Z!==730)break;J.associatedChildMessage=W.decode(Q,Q.uint32());continue}case 92:{if(Z!==738)break;J.groupStatusMentionMessage=W.decode(Q,Q.uint32());continue}case 93:{if(Z!==746)break;J.pollCreationMessageV4=W.decode(Q,Q.uint32());continue}case 95:{if(Z!==762)break;J.statusAddYours=W.decode(Q,Q.uint32());continue}case 96:{if(Z!==770)break;J.groupStatusMessage=W.decode(Q,Q.uint32());continue}case 97:{if(Z!==778)break;J.richResponseMessage=qK.decode(Q,Q.uint32());continue}case 98:{if(Z!==786)break;J.statusNotificationMessage=S8.decode(Q,Q.uint32());continue}case 99:{if(Z!==794)break;J.limitSharingMessage=W.decode(Q,Q.uint32());continue}case 100:{if(Z!==802)break;J.botTaskMessage=W.decode(Q,Q.uint32());continue}case 101:{if(Z!==810)break;J.questionMessage=W.decode(Q,Q.uint32());continue}case 102:{if(Z!==818)break;J.messageHistoryNotice=EX.decode(Q,Q.uint32());continue}case 103:{if(Z!==826)break;J.groupStatusMessageV2=W.decode(Q,Q.uint32());continue}case 104:{if(Z!==834)break;J.botForwardedMessage=W.decode(Q,Q.uint32());continue}case 105:{if(Z!==842)break;J.statusQuestionAnswerMessage=v8.decode(Q,Q.uint32());continue}case 106:{if(Z!==850)break;J.questionReplyMessage=W.decode(Q,Q.uint32());continue}case 107:{if(Z!==858)break;J.questionResponseMessage=F8.decode(Q,Q.uint32());continue}case 109:{if(Z!==874)break;J.statusQuotedMessage=T8.decode(Q,Q.uint32());continue}case 110:{if(Z!==882)break;J.statusStickerInteractionMessage=y8.decode(Q,Q.uint32());continue}case 111:{if(Z!==890)break;J.pollCreationMessageV5=e.decode(Q,Q.uint32());continue}case 113:{if(Z!==906)break;J.newsletterFollowerInviteMessageV2=WX.decode(Q,Q.uint32());continue}case 115:{if(Z!==922)break;J.pollResultSnapshotMessageV3=n0.decode(Q,Q.uint32());continue}case 116:{if(Z!==930)break;J.newsletterAdminProfileMessage=W.decode(Q,Q.uint32());continue}case 117:{if(Z!==938)break;J.newsletterAdminProfileMessageV2=W.decode(Q,Q.uint32());continue}case 118:{if(Z!==946)break;J.spoilerMessage=W.decode(Q,Q.uint32());continue}case 119:{if(Z!==954)break;J.pollCreationMessageV6=e.decode(Q,Q.uint32());continue}case 120:{if(Z!==962)break;J.conditionalRevealMessage=hJ.decode(Q,Q.uint32());continue}case 121:{if(Z!==970)break;J.pollAddOptionMessage=V8.decode(Q,Q.uint32());continue}case 122:{if(Z!==978)break;J.eventInviteMessage=jJ.decode(Q,Q.uint32());continue}case 123:{if(Z!==986)break;J.groupRootKeyShare=hZ.decode(Q,Q.uint32());continue}case 124:{if(Z!==994)break;J.paymentReminderMessage=_X.decode(Q,Q.uint32());continue}case 125:{if(Z!==1002)break;J.splitPaymentMessage=W8.decode(Q,Q.uint32());continue}case 126:{if(Z!==1010)break;J.newsletterAdminProfileStatusMessage=W.decode(Q,Q.uint32());continue}case 127:{if(Z!==1018)break;J.rootSecretDistributeMessage=B8.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return w.fromPartial($??{})},fromPartial($){let K=I5();return K.conversation=$.conversation??void 0,K.senderKeyDistributionMessage=$.senderKeyDistributionMessage!==void 0&&$.senderKeyDistributionMessage!==null?d0.fromPartial($.senderKeyDistributionMessage):void 0,K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,K.contactMessage=$.contactMessage!==void 0&&$.contactMessage!==null?H$.fromPartial($.contactMessage):void 0,K.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,K.extendedTextMessage=$.extendedTextMessage!==void 0&&$.extendedTextMessage!==null?oJ.fromPartial($.extendedTextMessage):void 0,K.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,K.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?Y$.fromPartial($.audioMessage):void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,K.call=$.call!==void 0&&$.call!==null?BJ.fromPartial($.call):void 0,K.chat=$.chat!==void 0&&$.chat!==null?MJ.fromPartial($.chat):void 0,K.protocolMessage=$.protocolMessage!==void 0&&$.protocolMessage!==null?P8.fromPartial($.protocolMessage):void 0,K.contactsArrayMessage=$.contactsArrayMessage!==void 0&&$.contactsArrayMessage!==null?lJ.fromPartial($.contactsArrayMessage):void 0,K.highlyStructuredMessage=$.highlyStructuredMessage!==void 0&&$.highlyStructuredMessage!==null?c.fromPartial($.highlyStructuredMessage):void 0,K.fastRatchetKeySenderKeyDistributionMessage=$.fastRatchetKeySenderKeyDistributionMessage!==void 0&&$.fastRatchetKeySenderKeyDistributionMessage!==null?d0.fromPartial($.fastRatchetKeySenderKeyDistributionMessage):void 0,K.sendPaymentMessage=$.sendPaymentMessage!==void 0&&$.sendPaymentMessage!==null?M8.fromPartial($.sendPaymentMessage):void 0,K.liveLocationMessage=$.liveLocationMessage!==void 0&&$.liveLocationMessage!==null?V$.fromPartial($.liveLocationMessage):void 0,K.requestPaymentMessage=$.requestPaymentMessage!==void 0&&$.requestPaymentMessage!==null?k8.fromPartial($.requestPaymentMessage):void 0,K.declinePaymentRequestMessage=$.declinePaymentRequestMessage!==void 0&&$.declinePaymentRequestMessage!==null?pJ.fromPartial($.declinePaymentRequestMessage):void 0,K.cancelPaymentRequestMessage=$.cancelPaymentRequestMessage!==void 0&&$.cancelPaymentRequestMessage!==null?EJ.fromPartial($.cancelPaymentRequestMessage):void 0,K.templateMessage=$.templateMessage!==void 0&&$.templateMessage!==null?P$.fromPartial($.templateMessage):void 0,K.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?L$.fromPartial($.stickerMessage):void 0,K.groupInviteMessage=$.groupInviteMessage!==void 0&&$.groupInviteMessage!==null?iJ.fromPartial($.groupInviteMessage):void 0,K.templateButtonReplyMessage=$.templateButtonReplyMessage!==void 0&&$.templateButtonReplyMessage!==null?l8.fromPartial($.templateButtonReplyMessage):void 0,K.productMessage=$.productMessage!==void 0&&$.productMessage!==null?D$.fromPartial($.productMessage):void 0,K.deviceSentMessage=$.deviceSentMessage!==void 0&&$.deviceSentMessage!==null?uJ.fromPartial($.deviceSentMessage):void 0,K.messageContextInfo=$.messageContextInfo!==void 0&&$.messageContextInfo!==null?x$.fromPartial($.messageContextInfo):void 0,K.listMessage=$.listMessage!==void 0&&$.listMessage!==null?LX.fromPartial($.listMessage):void 0,K.viewOnceMessage=$.viewOnceMessage!==void 0&&$.viewOnceMessage!==null?W.fromPartial($.viewOnceMessage):void 0,K.orderMessage=$.orderMessage!==void 0&&$.orderMessage!==null?IX.fromPartial($.orderMessage):void 0,K.listResponseMessage=$.listResponseMessage!==void 0&&$.listResponseMessage!==null?BX.fromPartial($.listResponseMessage):void 0,K.ephemeralMessage=$.ephemeralMessage!==void 0&&$.ephemeralMessage!==null?W.fromPartial($.ephemeralMessage):void 0,K.invoiceMessage=$.invoiceMessage!==void 0&&$.invoiceMessage!==null?UX.fromPartial($.invoiceMessage):void 0,K.buttonsMessage=$.buttonsMessage!==void 0&&$.buttonsMessage!==null?FJ.fromPartial($.buttonsMessage):void 0,K.buttonsResponseMessage=$.buttonsResponseMessage!==void 0&&$.buttonsResponseMessage!==null?RJ.fromPartial($.buttonsResponseMessage):void 0,K.paymentInviteMessage=$.paymentInviteMessage!==void 0&&$.paymentInviteMessage!==null?vX.fromPartial($.paymentInviteMessage):void 0,K.interactiveMessage=$.interactiveMessage!==void 0&&$.interactiveMessage!==null?k0.fromPartial($.interactiveMessage):void 0,K.reactionMessage=$.reactionMessage!==void 0&&$.reactionMessage!==null?x8.fromPartial($.reactionMessage):void 0,K.stickerSyncRmrMessage=$.stickerSyncRmrMessage!==void 0&&$.stickerSyncRmrMessage!==null?h8.fromPartial($.stickerSyncRmrMessage):void 0,K.interactiveResponseMessage=$.interactiveResponseMessage!==void 0&&$.interactiveResponseMessage!==null?zX.fromPartial($.interactiveResponseMessage):void 0,K.pollCreationMessage=$.pollCreationMessage!==void 0&&$.pollCreationMessage!==null?e.fromPartial($.pollCreationMessage):void 0,K.pollUpdateMessage=$.pollUpdateMessage!==void 0&&$.pollUpdateMessage!==null?C8.fromPartial($.pollUpdateMessage):void 0,K.keepInChatMessage=$.keepInChatMessage!==void 0&&$.keepInChatMessage!==null?CX.fromPartial($.keepInChatMessage):void 0,K.documentWithCaptionMessage=$.documentWithCaptionMessage!==void 0&&$.documentWithCaptionMessage!==null?W.fromPartial($.documentWithCaptionMessage):void 0,K.requestPhoneNumberMessage=$.requestPhoneNumberMessage!==void 0&&$.requestPhoneNumberMessage!==null?N8.fromPartial($.requestPhoneNumberMessage):void 0,K.viewOnceMessageV2=$.viewOnceMessageV2!==void 0&&$.viewOnceMessageV2!==null?W.fromPartial($.viewOnceMessageV2):void 0,K.encReactionMessage=$.encReactionMessage!==void 0&&$.encReactionMessage!==null?dJ.fromPartial($.encReactionMessage):void 0,K.editedMessage=$.editedMessage!==void 0&&$.editedMessage!==null?W.fromPartial($.editedMessage):void 0,K.viewOnceMessageV2Extension=$.viewOnceMessageV2Extension!==void 0&&$.viewOnceMessageV2Extension!==null?W.fromPartial($.viewOnceMessageV2Extension):void 0,K.pollCreationMessageV2=$.pollCreationMessageV2!==void 0&&$.pollCreationMessageV2!==null?e.fromPartial($.pollCreationMessageV2):void 0,K.scheduledCallCreationMessage=$.scheduledCallCreationMessage!==void 0&&$.scheduledCallCreationMessage!==null?O8.fromPartial($.scheduledCallCreationMessage):void 0,K.groupMentionedMessage=$.groupMentionedMessage!==void 0&&$.groupMentionedMessage!==null?W.fromPartial($.groupMentionedMessage):void 0,K.pinInChatMessage=$.pinInChatMessage!==void 0&&$.pinInChatMessage!==null?H8.fromPartial($.pinInChatMessage):void 0,K.pollCreationMessageV3=$.pollCreationMessageV3!==void 0&&$.pollCreationMessageV3!==null?e.fromPartial($.pollCreationMessageV3):void 0,K.scheduledCallEditMessage=$.scheduledCallEditMessage!==void 0&&$.scheduledCallEditMessage!==null?A8.fromPartial($.scheduledCallEditMessage):void 0,K.ptvMessage=$.ptvMessage!==void 0&&$.ptvMessage!==null?t.fromPartial($.ptvMessage):void 0,K.botInvokeMessage=$.botInvokeMessage!==void 0&&$.botInvokeMessage!==null?W.fromPartial($.botInvokeMessage):void 0,K.callLogMesssage=$.callLogMesssage!==void 0&&$.callLogMesssage!==null?OJ.fromPartial($.callLogMesssage):void 0,K.messageHistoryBundle=$.messageHistoryBundle!==void 0&&$.messageHistoryBundle!==null?G$.fromPartial($.messageHistoryBundle):void 0,K.encCommentMessage=$.encCommentMessage!==void 0&&$.encCommentMessage!==null?wJ.fromPartial($.encCommentMessage):void 0,K.bcallMessage=$.bcallMessage!==void 0&&$.bcallMessage!==null?PJ.fromPartial($.bcallMessage):void 0,K.lottieStickerMessage=$.lottieStickerMessage!==void 0&&$.lottieStickerMessage!==null?W.fromPartial($.lottieStickerMessage):void 0,K.eventMessage=$.eventMessage!==void 0&&$.eventMessage!==null?cJ.fromPartial($.eventMessage):void 0,K.encEventResponseMessage=$.encEventResponseMessage!==void 0&&$.encEventResponseMessage!==null?nJ.fromPartial($.encEventResponseMessage):void 0,K.commentMessage=$.commentMessage!==void 0&&$.commentMessage!==null?_J.fromPartial($.commentMessage):void 0,K.newsletterAdminInviteMessage=$.newsletterAdminInviteMessage!==void 0&&$.newsletterAdminInviteMessage!==null?MX.fromPartial($.newsletterAdminInviteMessage):void 0,K.placeholderMessage=$.placeholderMessage!==void 0&&$.placeholderMessage!==null?z8.fromPartial($.placeholderMessage):void 0,K.secretEncryptedMessage=$.secretEncryptedMessage!==void 0&&$.secretEncryptedMessage!==null?E8.fromPartial($.secretEncryptedMessage):void 0,K.albumMessage=$.albumMessage!==void 0&&$.albumMessage!==null?zJ.fromPartial($.albumMessage):void 0,K.eventCoverImage=$.eventCoverImage!==void 0&&$.eventCoverImage!==null?W.fromPartial($.eventCoverImage):void 0,K.stickerPackMessage=$.stickerPackMessage!==void 0&&$.stickerPackMessage!==null?f8.fromPartial($.stickerPackMessage):void 0,K.statusMentionMessage=$.statusMentionMessage!==void 0&&$.statusMentionMessage!==null?W.fromPartial($.statusMentionMessage):void 0,K.pollResultSnapshotMessage=$.pollResultSnapshotMessage!==void 0&&$.pollResultSnapshotMessage!==null?n0.fromPartial($.pollResultSnapshotMessage):void 0,K.pollCreationOptionImageMessage=$.pollCreationOptionImageMessage!==void 0&&$.pollCreationOptionImageMessage!==null?W.fromPartial($.pollCreationOptionImageMessage):void 0,K.associatedChildMessage=$.associatedChildMessage!==void 0&&$.associatedChildMessage!==null?W.fromPartial($.associatedChildMessage):void 0,K.groupStatusMentionMessage=$.groupStatusMentionMessage!==void 0&&$.groupStatusMentionMessage!==null?W.fromPartial($.groupStatusMentionMessage):void 0,K.pollCreationMessageV4=$.pollCreationMessageV4!==void 0&&$.pollCreationMessageV4!==null?W.fromPartial($.pollCreationMessageV4):void 0,K.statusAddYours=$.statusAddYours!==void 0&&$.statusAddYours!==null?W.fromPartial($.statusAddYours):void 0,K.groupStatusMessage=$.groupStatusMessage!==void 0&&$.groupStatusMessage!==null?W.fromPartial($.groupStatusMessage):void 0,K.richResponseMessage=$.richResponseMessage!==void 0&&$.richResponseMessage!==null?qK.fromPartial($.richResponseMessage):void 0,K.statusNotificationMessage=$.statusNotificationMessage!==void 0&&$.statusNotificationMessage!==null?S8.fromPartial($.statusNotificationMessage):void 0,K.limitSharingMessage=$.limitSharingMessage!==void 0&&$.limitSharingMessage!==null?W.fromPartial($.limitSharingMessage):void 0,K.botTaskMessage=$.botTaskMessage!==void 0&&$.botTaskMessage!==null?W.fromPartial($.botTaskMessage):void 0,K.questionMessage=$.questionMessage!==void 0&&$.questionMessage!==null?W.fromPartial($.questionMessage):void 0,K.messageHistoryNotice=$.messageHistoryNotice!==void 0&&$.messageHistoryNotice!==null?EX.fromPartial($.messageHistoryNotice):void 0,K.groupStatusMessageV2=$.groupStatusMessageV2!==void 0&&$.groupStatusMessageV2!==null?W.fromPartial($.groupStatusMessageV2):void 0,K.botForwardedMessage=$.botForwardedMessage!==void 0&&$.botForwardedMessage!==null?W.fromPartial($.botForwardedMessage):void 0,K.statusQuestionAnswerMessage=$.statusQuestionAnswerMessage!==void 0&&$.statusQuestionAnswerMessage!==null?v8.fromPartial($.statusQuestionAnswerMessage):void 0,K.questionReplyMessage=$.questionReplyMessage!==void 0&&$.questionReplyMessage!==null?W.fromPartial($.questionReplyMessage):void 0,K.questionResponseMessage=$.questionResponseMessage!==void 0&&$.questionResponseMessage!==null?F8.fromPartial($.questionResponseMessage):void 0,K.statusQuotedMessage=$.statusQuotedMessage!==void 0&&$.statusQuotedMessage!==null?T8.fromPartial($.statusQuotedMessage):void 0,K.statusStickerInteractionMessage=$.statusStickerInteractionMessage!==void 0&&$.statusStickerInteractionMessage!==null?y8.fromPartial($.statusStickerInteractionMessage):void 0,K.pollCreationMessageV5=$.pollCreationMessageV5!==void 0&&$.pollCreationMessageV5!==null?e.fromPartial($.pollCreationMessageV5):void 0,K.newsletterFollowerInviteMessageV2=$.newsletterFollowerInviteMessageV2!==void 0&&$.newsletterFollowerInviteMessageV2!==null?WX.fromPartial($.newsletterFollowerInviteMessageV2):void 0,K.pollResultSnapshotMessageV3=$.pollResultSnapshotMessageV3!==void 0&&$.pollResultSnapshotMessageV3!==null?n0.fromPartial($.pollResultSnapshotMessageV3):void 0,K.newsletterAdminProfileMessage=$.newsletterAdminProfileMessage!==void 0&&$.newsletterAdminProfileMessage!==null?W.fromPartial($.newsletterAdminProfileMessage):void 0,K.newsletterAdminProfileMessageV2=$.newsletterAdminProfileMessageV2!==void 0&&$.newsletterAdminProfileMessageV2!==null?W.fromPartial($.newsletterAdminProfileMessageV2):void 0,K.spoilerMessage=$.spoilerMessage!==void 0&&$.spoilerMessage!==null?W.fromPartial($.spoilerMessage):void 0,K.pollCreationMessageV6=$.pollCreationMessageV6!==void 0&&$.pollCreationMessageV6!==null?e.fromPartial($.pollCreationMessageV6):void 0,K.conditionalRevealMessage=$.conditionalRevealMessage!==void 0&&$.conditionalRevealMessage!==null?hJ.fromPartial($.conditionalRevealMessage):void 0,K.pollAddOptionMessage=$.pollAddOptionMessage!==void 0&&$.pollAddOptionMessage!==null?V8.fromPartial($.pollAddOptionMessage):void 0,K.eventInviteMessage=$.eventInviteMessage!==void 0&&$.eventInviteMessage!==null?jJ.fromPartial($.eventInviteMessage):void 0,K.groupRootKeyShare=$.groupRootKeyShare!==void 0&&$.groupRootKeyShare!==null?hZ.fromPartial($.groupRootKeyShare):void 0,K.paymentReminderMessage=$.paymentReminderMessage!==void 0&&$.paymentReminderMessage!==null?_X.fromPartial($.paymentReminderMessage):void 0,K.splitPaymentMessage=$.splitPaymentMessage!==void 0&&$.splitPaymentMessage!==null?W8.fromPartial($.splitPaymentMessage):void 0,K.newsletterAdminProfileStatusMessage=$.newsletterAdminProfileStatusMessage!==void 0&&$.newsletterAdminProfileStatusMessage!==null?W.fromPartial($.newsletterAdminProfileStatusMessage):void 0,K.rootSecretDistributeMessage=$.rootSecretDistributeMessage!==void 0&&$.rootSecretDistributeMessage!==null?B8.fromPartial($.rootSecretDistributeMessage):void 0,K}};function S5(){return{}}var zJ={encode($,K=new H){if($.expectedImageCount!==void 0)K.uint32(16).uint32($.expectedImageCount);if($.expectedVideoCount!==void 0)K.uint32(24).uint32($.expectedVideoCount);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=S5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 2:{if(Z!==16)break;J.expectedImageCount=Q.uint32();continue}case 3:{if(Z!==24)break;J.expectedVideoCount=Q.uint32();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zJ.fromPartial($??{})},fromPartial($){let K=S5();return K.expectedImageCount=$.expectedImageCount??void 0,K.expectedVideoCount=$.expectedVideoCount??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function v5(){return{}}var VJ={encode($,K=new H){if($.collectionNames!==void 0&&$.collectionNames.length!==0)for(let Q of $.collectionNames)K.uint32(10).string(Q);if($.timestamp!==void 0)K.uint32(16).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=v5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.collectionNames===void 0)J.collectionNames=[];let Y=Q.string();if(Y!==void 0)J.collectionNames.push(Y);continue}case 2:{if(Z!==16)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VJ.fromPartial($??{})},fromPartial($){let K=v5();return K.collectionNames=$.collectionNames?.map((Q)=>Q)||void 0,K.timestamp=$.timestamp??void 0,K}};function T5(){return{}}var GJ={encode($,K=new H){if($.keyId!==void 0)q$.encode($.keyId,K.uint32(10).fork()).join();if($.keyData!==void 0)UJ.encode($.keyData,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=T5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.keyId=q$.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.keyData=UJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GJ.fromPartial($??{})},fromPartial($){let K=T5();return K.keyId=$.keyId!==void 0&&$.keyId!==null?q$.fromPartial($.keyId):void 0,K.keyData=$.keyData!==void 0&&$.keyData!==null?UJ.fromPartial($.keyData):void 0,K}};function y5(){return{}}var UJ={encode($,K=new H){if($.keyData!==void 0)K.uint32(10).bytes($.keyData);if($.fingerprint!==void 0)CJ.encode($.fingerprint,K.uint32(18).fork()).join();if($.timestamp!==void 0)K.uint32(24).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=y5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.keyData=Q.bytes();continue}case 2:{if(Z!==18)break;J.fingerprint=CJ.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UJ.fromPartial($??{})},fromPartial($){let K=y5();return K.keyData=$.keyData??void 0,K.fingerprint=$.fingerprint!==void 0&&$.fingerprint!==null?CJ.fromPartial($.fingerprint):void 0,K.timestamp=$.timestamp??void 0,K}};function f5(){return{}}var CJ={encode($,K=new H){if($.rawId!==void 0)K.uint32(8).uint32($.rawId);if($.currentIndex!==void 0)K.uint32(16).uint32($.currentIndex);if($.deviceIndexes!==void 0&&$.deviceIndexes.length!==0){K.uint32(26).fork();for(let Q of $.deviceIndexes)K.uint32(Q);K.join()}return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=f5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.rawId=Q.uint32();continue}case 2:{if(Z!==16)break;J.currentIndex=Q.uint32();continue}case 3:{if(Z===24){if(J.deviceIndexes===void 0)J.deviceIndexes=[];J.deviceIndexes.push(Q.uint32());continue}if(Z===26){if(J.deviceIndexes===void 0)J.deviceIndexes=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.deviceIndexes.push(Q.uint32());continue}break}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return CJ.fromPartial($??{})},fromPartial($){let K=f5();return K.rawId=$.rawId??void 0,K.currentIndex=$.currentIndex??void 0,K.deviceIndexes=$.deviceIndexes?.map((Q)=>Q)||void 0,K}};function _5(){return{}}var q$={encode($,K=new H){if($.keyId!==void 0)K.uint32(10).bytes($.keyId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.keyId=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return q$.fromPartial($??{})},fromPartial($){let K=_5();return K.keyId=$.keyId??void 0,K}};function h5(){return{}}var DJ={encode($,K=new H){if($.keyIds!==void 0&&$.keyIds.length!==0)for(let Q of $.keyIds)q$.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=h5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.keyIds===void 0)J.keyIds=[];let Y=q$.decode(Q,Q.uint32());if(Y!==void 0)J.keyIds.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return DJ.fromPartial($??{})},fromPartial($){let K=h5();return K.keyIds=$.keyIds?.map((Q)=>q$.fromPartial(Q))||void 0,K}};function l5(){return{}}var LJ={encode($,K=new H){if($.keys!==void 0&&$.keys.length!==0)for(let Q of $.keys)GJ.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=l5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.keys===void 0)J.keys=[];let Y=GJ.decode(Q,Q.uint32());if(Y!==void 0)J.keys.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LJ.fromPartial($??{})},fromPartial($){let K=l5();return K.keys=$.keys?.map((Q)=>GJ.fromPartial(Q))||void 0,K}};function p5(){return{}}var Y$={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.mimetype!==void 0)K.uint32(18).string($.mimetype);if($.fileSha256!==void 0)K.uint32(26).bytes($.fileSha256);if($.fileLength!==void 0)K.uint32(32).uint64($.fileLength);if($.seconds!==void 0)K.uint32(40).uint32($.seconds);if($.ptt!==void 0)K.uint32(48).bool($.ptt);if($.mediaKey!==void 0)K.uint32(58).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(66).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(74).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(80).int64($.mediaKeyTimestamp);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.streamingSidecar!==void 0)K.uint32(146).bytes($.streamingSidecar);if($.waveform!==void 0)K.uint32(154).bytes($.waveform);if($.backgroundArgb!==void 0)K.uint32(165).fixed32($.backgroundArgb);if($.viewOnce!==void 0)K.uint32(168).bool($.viewOnce);if($.accessibilityLabel!==void 0)K.uint32(178).string($.accessibilityLabel);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=p5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.mimetype=Q.string();continue}case 3:{if(Z!==26)break;J.fileSha256=Q.bytes();continue}case 4:{if(Z!==32)break;J.fileLength=Q.uint64Number();continue}case 5:{if(Z!==40)break;J.seconds=Q.uint32();continue}case 6:{if(Z!==48)break;J.ptt=Q.bool();continue}case 7:{if(Z!==58)break;J.mediaKey=Q.bytes();continue}case 8:{if(Z!==66)break;J.fileEncSha256=Q.bytes();continue}case 9:{if(Z!==74)break;J.directPath=Q.string();continue}case 10:{if(Z!==80)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.streamingSidecar=Q.bytes();continue}case 19:{if(Z!==154)break;J.waveform=Q.bytes();continue}case 20:{if(Z!==165)break;J.backgroundArgb=Q.fixed32();continue}case 21:{if(Z!==168)break;J.viewOnce=Q.bool();continue}case 22:{if(Z!==178)break;J.accessibilityLabel=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Y$.fromPartial($??{})},fromPartial($){let K=p5();return K.url=$.url??void 0,K.mimetype=$.mimetype??void 0,K.fileSha256=$.fileSha256??void 0,K.fileLength=$.fileLength??void 0,K.seconds=$.seconds??void 0,K.ptt=$.ptt??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.streamingSidecar=$.streamingSidecar??void 0,K.waveform=$.waveform??void 0,K.backgroundArgb=$.backgroundArgb??void 0,K.viewOnce=$.viewOnce??void 0,K.accessibilityLabel=$.accessibilityLabel??void 0,K}};function u5(){return{}}var PJ={encode($,K=new H){if($.sessionId!==void 0)K.uint32(10).string($.sessionId);if($.mediaType!==void 0)K.uint32(16).int32($.mediaType);if($.masterKey!==void 0)K.uint32(26).bytes($.masterKey);if($.caption!==void 0)K.uint32(34).string($.caption);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=u5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.sessionId=Q.string();continue}case 2:{if(Z!==16)break;J.mediaType=Q.int32();continue}case 3:{if(Z!==26)break;J.masterKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.caption=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PJ.fromPartial($??{})},fromPartial($){let K=u5();return K.sessionId=$.sessionId??void 0,K.mediaType=$.mediaType??void 0,K.masterKey=$.masterKey??void 0,K.caption=$.caption??void 0,K}};function w5(){return{}}var FJ={encode($,K=new H){if($.contentText!==void 0)K.uint32(50).string($.contentText);if($.footerText!==void 0)K.uint32(58).string($.footerText);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(66).fork()).join();if($.buttons!==void 0&&$.buttons.length!==0)for(let Q of $.buttons)xJ.encode(Q,K.uint32(74).fork()).join();if($.headerType!==void 0)K.uint32(80).int32($.headerType);if($.text!==void 0)K.uint32(10).string($.text);if($.documentMessage!==void 0)$0.encode($.documentMessage,K.uint32(18).fork()).join();if($.imageMessage!==void 0)i.encode($.imageMessage,K.uint32(26).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,K.uint32(34).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=w5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 6:{if(Z!==50)break;J.contentText=Q.string();continue}case 7:{if(Z!==58)break;J.footerText=Q.string();continue}case 8:{if(Z!==66)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;if(J.buttons===void 0)J.buttons=[];let Y=xJ.decode(Q,Q.uint32());if(Y!==void 0)J.buttons.push(Y);continue}case 10:{if(Z!==80)break;J.headerType=Q.int32();continue}case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==18)break;J.documentMessage=$0.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.imageMessage=i.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.videoMessage=t.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.locationMessage=a.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FJ.fromPartial($??{})},fromPartial($){let K=w5();return K.contentText=$.contentText??void 0,K.footerText=$.footerText??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.buttons=$.buttons?.map((Q)=>xJ.fromPartial(Q))||void 0,K.headerType=$.headerType??void 0,K.text=$.text??void 0,K.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,K.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,K}};function n5(){return{}}var xJ={encode($,K=new H){if($.buttonId!==void 0)K.uint32(10).string($.buttonId);if($.buttonText!==void 0)kJ.encode($.buttonText,K.uint32(18).fork()).join();if($.type!==void 0)K.uint32(24).int32($.type);if($.nativeFlowInfo!==void 0)NJ.encode($.nativeFlowInfo,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=n5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.buttonId=Q.string();continue}case 2:{if(Z!==18)break;J.buttonText=kJ.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.type=Q.int32();continue}case 4:{if(Z!==34)break;J.nativeFlowInfo=NJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xJ.fromPartial($??{})},fromPartial($){let K=n5();return K.buttonId=$.buttonId??void 0,K.buttonText=$.buttonText!==void 0&&$.buttonText!==null?kJ.fromPartial($.buttonText):void 0,K.type=$.type??void 0,K.nativeFlowInfo=$.nativeFlowInfo!==void 0&&$.nativeFlowInfo!==null?NJ.fromPartial($.nativeFlowInfo):void 0,K}};function d5(){return{}}var kJ={encode($,K=new H){if($.displayText!==void 0)K.uint32(10).string($.displayText);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=d5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kJ.fromPartial($??{})},fromPartial($){let K=d5();return K.displayText=$.displayText??void 0,K}};function j5(){return{}}var NJ={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.paramsJson!==void 0)K.uint32(18).string($.paramsJson);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=j5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==18)break;J.paramsJson=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NJ.fromPartial($??{})},fromPartial($){let K=j5();return K.name=$.name??void 0,K.paramsJson=$.paramsJson??void 0,K}};function c5(){return{}}var RJ={encode($,K=new H){if($.selectedButtonId!==void 0)K.uint32(10).string($.selectedButtonId);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(26).fork()).join();if($.type!==void 0)K.uint32(32).int32($.type);if($.selectedDisplayText!==void 0)K.uint32(18).string($.selectedDisplayText);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=c5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.selectedButtonId=Q.string();continue}case 3:{if(Z!==26)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 4:{if(Z!==32)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.selectedDisplayText=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RJ.fromPartial($??{})},fromPartial($){let K=c5();return K.selectedButtonId=$.selectedButtonId??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.type=$.type??void 0,K.selectedDisplayText=$.selectedDisplayText??void 0,K}};function o5(){return{}}var BJ={encode($,K=new H){if($.callKey!==void 0)K.uint32(10).bytes($.callKey);if($.conversionSource!==void 0)K.uint32(18).string($.conversionSource);if($.conversionData!==void 0)K.uint32(26).bytes($.conversionData);if($.conversionDelaySeconds!==void 0)K.uint32(32).uint32($.conversionDelaySeconds);if($.ctwaSignals!==void 0)K.uint32(42).string($.ctwaSignals);if($.ctwaPayload!==void 0)K.uint32(50).bytes($.ctwaPayload);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(58).fork()).join();if($.nativeFlowCallButtonPayload!==void 0)K.uint32(66).string($.nativeFlowCallButtonPayload);if($.deeplinkPayload!==void 0)K.uint32(74).string($.deeplinkPayload);if($.messageContextInfo!==void 0)x$.encode($.messageContextInfo,K.uint32(82).fork()).join();if($.callEntryPoint!==void 0)K.uint32(88).uint32($.callEntryPoint);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=o5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.callKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.conversionSource=Q.string();continue}case 3:{if(Z!==26)break;J.conversionData=Q.bytes();continue}case 4:{if(Z!==32)break;J.conversionDelaySeconds=Q.uint32();continue}case 5:{if(Z!==42)break;J.ctwaSignals=Q.string();continue}case 6:{if(Z!==50)break;J.ctwaPayload=Q.bytes();continue}case 7:{if(Z!==58)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.nativeFlowCallButtonPayload=Q.string();continue}case 9:{if(Z!==74)break;J.deeplinkPayload=Q.string();continue}case 10:{if(Z!==82)break;J.messageContextInfo=x$.decode(Q,Q.uint32());continue}case 11:{if(Z!==88)break;J.callEntryPoint=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BJ.fromPartial($??{})},fromPartial($){let K=o5();return K.callKey=$.callKey??void 0,K.conversionSource=$.conversionSource??void 0,K.conversionData=$.conversionData??void 0,K.conversionDelaySeconds=$.conversionDelaySeconds??void 0,K.ctwaSignals=$.ctwaSignals??void 0,K.ctwaPayload=$.ctwaPayload??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.nativeFlowCallButtonPayload=$.nativeFlowCallButtonPayload??void 0,K.deeplinkPayload=$.deeplinkPayload??void 0,K.messageContextInfo=$.messageContextInfo!==void 0&&$.messageContextInfo!==null?x$.fromPartial($.messageContextInfo):void 0,K.callEntryPoint=$.callEntryPoint??void 0,K}};function b5(){return{}}var OJ={encode($,K=new H){if($.isVideo!==void 0)K.uint32(8).bool($.isVideo);if($.callOutcome!==void 0)K.uint32(16).int32($.callOutcome);if($.durationSecs!==void 0)K.uint32(24).int64($.durationSecs);if($.callType!==void 0)K.uint32(32).int32($.callType);if($.participants!==void 0&&$.participants.length!==0)for(let Q of $.participants)AJ.encode(Q,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=b5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isVideo=Q.bool();continue}case 2:{if(Z!==16)break;J.callOutcome=Q.int32();continue}case 3:{if(Z!==24)break;J.durationSecs=Q.int64Number();continue}case 4:{if(Z!==32)break;J.callType=Q.int32();continue}case 5:{if(Z!==42)break;if(J.participants===void 0)J.participants=[];let Y=AJ.decode(Q,Q.uint32());if(Y!==void 0)J.participants.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return OJ.fromPartial($??{})},fromPartial($){let K=b5();return K.isVideo=$.isVideo??void 0,K.callOutcome=$.callOutcome??void 0,K.durationSecs=$.durationSecs??void 0,K.callType=$.callType??void 0,K.participants=$.participants?.map((Q)=>AJ.fromPartial(Q))||void 0,K}};function i5(){return{}}var AJ={encode($,K=new H){if($.jid!==void 0)K.uint32(10).string($.jid);if($.callOutcome!==void 0)K.uint32(16).int32($.callOutcome);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=i5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.jid=Q.string();continue}case 2:{if(Z!==16)break;J.callOutcome=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AJ.fromPartial($??{})},fromPartial($){let K=i5();return K.jid=$.jid??void 0,K.callOutcome=$.callOutcome??void 0,K}};function m5(){return{}}var EJ={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=m5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EJ.fromPartial($??{})},fromPartial($){let K=m5();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K}};function g5(){return{}}var MJ={encode($,K=new H){if($.displayName!==void 0)K.uint32(10).string($.displayName);if($.id!==void 0)K.uint32(18).string($.id);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=g5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayName=Q.string();continue}case 2:{if(Z!==18)break;J.id=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MJ.fromPartial($??{})},fromPartial($){let K=g5();return K.displayName=$.displayName??void 0,K.id=$.id??void 0,K}};function t5(){return{}}var WJ={encode($,K=new H){if($.directPath!==void 0)K.uint32(10).string($.directPath);if($.mediaKey!==void 0)K.uint32(18).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(26).bytes($.fileEncSha256);if($.fileSha256!==void 0)K.uint32(34).bytes($.fileSha256);if($.dimLevel!==void 0)K.uint32(45).float($.dimLevel);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=t5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.directPath=Q.string();continue}case 2:{if(Z!==18)break;J.mediaKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.fileEncSha256=Q.bytes();continue}case 4:{if(Z!==34)break;J.fileSha256=Q.bytes();continue}case 5:{if(Z!==45)break;J.dimLevel=Q.float();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return WJ.fromPartial($??{})},fromPartial($){let K=t5();return K.directPath=$.directPath??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.fileSha256=$.fileSha256??void 0,K.dimLevel=$.dimLevel??void 0,K}};function r5(){return{}}var IJ={encode($,K=new H){if($.isDoodleEnabled!==void 0)K.uint32(8).bool($.isDoodleEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=r5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isDoodleEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return IJ.fromPartial($??{})},fromPartial($){let K=r5();return K.isDoodleEnabled=$.isDoodleEnabled??void 0,K}};function a5(){return{}}var SJ={encode($,K=new H){if($.colorLight!==void 0)K.uint32(10).string($.colorLight);if($.colorDark!==void 0)K.uint32(18).string($.colorDark);if($.isDoodleEnabled!==void 0)K.uint32(24).bool($.isDoodleEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=a5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.colorLight=Q.string();continue}case 2:{if(Z!==18)break;J.colorDark=Q.string();continue}case 3:{if(Z!==24)break;J.isDoodleEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return SJ.fromPartial($??{})},fromPartial($){let K=a5();return K.colorLight=$.colorLight??void 0,K.colorDark=$.colorDark??void 0,K.isDoodleEnabled=$.isDoodleEnabled??void 0,K}};function s5(){return{}}var vJ={encode($,K=new H){if($.stockImageId!==void 0)K.uint32(10).string($.stockImageId);if($.dimLevel!==void 0)K.uint32(21).float($.dimLevel);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=s5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stockImageId=Q.string();continue}case 2:{if(Z!==21)break;J.dimLevel=Q.float();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vJ.fromPartial($??{})},fromPartial($){let K=s5();return K.stockImageId=$.stockImageId??void 0,K.dimLevel=$.dimLevel??void 0,K}};function e5(){return{}}var TJ={encode($,K=new H){if($.settingTimestampMs!==void 0)K.uint32(8).int64($.settingTimestampMs);if($.clearTheme!==void 0)K.uint32(16).bool($.clearTheme);if($.colorSchemeId!==void 0)K.uint32(26).string($.colorSchemeId);if($.defaultWallpaper!==void 0)IJ.encode($.defaultWallpaper,K.uint32(82).fork()).join();if($.solidColor!==void 0)SJ.encode($.solidColor,K.uint32(90).fork()).join();if($.stockImage!==void 0)vJ.encode($.stockImage,K.uint32(98).fork()).join();if($.customImage!==void 0)WJ.encode($.customImage,K.uint32(106).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=e5();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.settingTimestampMs=Q.int64Number();continue}case 2:{if(Z!==16)break;J.clearTheme=Q.bool();continue}case 3:{if(Z!==26)break;J.colorSchemeId=Q.string();continue}case 10:{if(Z!==82)break;J.defaultWallpaper=IJ.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.solidColor=SJ.decode(Q,Q.uint32());continue}case 12:{if(Z!==98)break;J.stockImage=vJ.decode(Q,Q.uint32());continue}case 13:{if(Z!==106)break;J.customImage=WJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return TJ.fromPartial($??{})},fromPartial($){let K=e5();return K.settingTimestampMs=$.settingTimestampMs??void 0,K.clearTheme=$.clearTheme??void 0,K.colorSchemeId=$.colorSchemeId??void 0,K.defaultWallpaper=$.defaultWallpaper!==void 0&&$.defaultWallpaper!==null?IJ.fromPartial($.defaultWallpaper):void 0,K.solidColor=$.solidColor!==void 0&&$.solidColor!==null?SJ.fromPartial($.solidColor):void 0,K.stockImage=$.stockImage!==void 0&&$.stockImage!==null?vJ.fromPartial($.stockImage):void 0,K.customImage=$.customImage!==void 0&&$.customImage!==null?WJ.fromPartial($.customImage):void 0,K}};function $U(){return{}}var yJ={encode($,K=new H){if($.status!==void 0)K.uint32(8).int32($.status);if($.senderNotificationTimestampMs!==void 0)K.uint32(16).int64($.senderNotificationTimestampMs);if($.consumerLid!==void 0)K.uint32(26).string($.consumerLid);if($.consumerPhoneNumber!==void 0)K.uint32(34).string($.consumerPhoneNumber);if($.notificationContent!==void 0)fJ.encode($.notificationContent,K.uint32(42).fork()).join();if($.shouldSuppressNotification!==void 0)K.uint32(48).bool($.shouldSuppressNotification);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$U();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.status=Q.int32();continue}case 2:{if(Z!==16)break;J.senderNotificationTimestampMs=Q.int64Number();continue}case 3:{if(Z!==26)break;J.consumerLid=Q.string();continue}case 4:{if(Z!==34)break;J.consumerPhoneNumber=Q.string();continue}case 5:{if(Z!==42)break;J.notificationContent=fJ.decode(Q,Q.uint32());continue}case 6:{if(Z!==48)break;J.shouldSuppressNotification=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yJ.fromPartial($??{})},fromPartial($){let K=$U();return K.status=$.status??void 0,K.senderNotificationTimestampMs=$.senderNotificationTimestampMs??void 0,K.consumerLid=$.consumerLid??void 0,K.consumerPhoneNumber=$.consumerPhoneNumber??void 0,K.notificationContent=$.notificationContent!==void 0&&$.notificationContent!==null?fJ.fromPartial($.notificationContent):void 0,K.shouldSuppressNotification=$.shouldSuppressNotification??void 0,K}};function KU(){return{}}var fJ={encode($,K=new H){if($.handoffNotificationText!==void 0)K.uint32(10).string($.handoffNotificationText);if($.extraJson!==void 0)K.uint32(18).string($.extraJson);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.handoffNotificationText=Q.string();continue}case 2:{if(Z!==18)break;J.extraJson=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fJ.fromPartial($??{})},fromPartial($){let K=KU();return K.handoffNotificationText=$.handoffNotificationText??void 0,K.extraJson=$.extraJson??void 0,K}};function QU(){return{}}var _J={encode($,K=new H){if($.message!==void 0)w.encode($.message,K.uint32(10).fork()).join();if($.targetMessageKey!==void 0)x.encode($.targetMessageKey,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.message=w.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.targetMessageKey=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _J.fromPartial($??{})},fromPartial($){let K=QU();return K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?x.fromPartial($.targetMessageKey):void 0,K}};function ZU(){return{}}var hJ={encode($,K=new H){if($.encPayload!==void 0)K.uint32(10).bytes($.encPayload);if($.encIv!==void 0)K.uint32(18).bytes($.encIv);if($.conditionalRevealMessageType!==void 0)K.uint32(24).int32($.conditionalRevealMessageType);if($.revealKeyId!==void 0)K.uint32(34).string($.revealKeyId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encPayload=Q.bytes();continue}case 2:{if(Z!==18)break;J.encIv=Q.bytes();continue}case 3:{if(Z!==24)break;J.conditionalRevealMessageType=Q.int32();continue}case 4:{if(Z!==34)break;J.revealKeyId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hJ.fromPartial($??{})},fromPartial($){let K=ZU();return K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K.conditionalRevealMessageType=$.conditionalRevealMessageType??void 0,K.revealKeyId=$.revealKeyId??void 0,K}};function JU(){return{}}var H$={encode($,K=new H){if($.displayName!==void 0)K.uint32(10).string($.displayName);if($.vcard!==void 0)K.uint32(130).string($.vcard);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.isSelfContact!==void 0)K.uint32(144).bool($.isSelfContact);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayName=Q.string();continue}case 16:{if(Z!==130)break;J.vcard=Q.string();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==144)break;J.isSelfContact=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return H$.fromPartial($??{})},fromPartial($){let K=JU();return K.displayName=$.displayName??void 0,K.vcard=$.vcard??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.isSelfContact=$.isSelfContact??void 0,K}};function XU(){return{}}var lJ={encode($,K=new H){if($.displayName!==void 0)K.uint32(10).string($.displayName);if($.contacts!==void 0&&$.contacts.length!==0)for(let Q of $.contacts)H$.encode(Q,K.uint32(18).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayName=Q.string();continue}case 2:{if(Z!==18)break;if(J.contacts===void 0)J.contacts=[];let Y=H$.decode(Q,Q.uint32());if(Y!==void 0)J.contacts.push(Y);continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lJ.fromPartial($??{})},fromPartial($){let K=XU();return K.displayName=$.displayName??void 0,K.contacts=$.contacts?.map((Q)=>H$.fromPartial(Q))||void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function qU(){return{}}var pJ={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pJ.fromPartial($??{})},fromPartial($){let K=qU();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K}};function YU(){return{}}var uJ={encode($,K=new H){if($.destinationJid!==void 0)K.uint32(10).string($.destinationJid);if($.message!==void 0)w.encode($.message,K.uint32(18).fork()).join();if($.phash!==void 0)K.uint32(26).string($.phash);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.destinationJid=Q.string();continue}case 2:{if(Z!==18)break;J.message=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.phash=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uJ.fromPartial($??{})},fromPartial($){let K=YU();return K.destinationJid=$.destinationJid??void 0,K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K.phash=$.phash??void 0,K}};function HU(){return{}}var $0={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.mimetype!==void 0)K.uint32(18).string($.mimetype);if($.title!==void 0)K.uint32(26).string($.title);if($.fileSha256!==void 0)K.uint32(34).bytes($.fileSha256);if($.fileLength!==void 0)K.uint32(40).uint64($.fileLength);if($.pageCount!==void 0)K.uint32(48).uint32($.pageCount);if($.mediaKey!==void 0)K.uint32(58).bytes($.mediaKey);if($.fileName!==void 0)K.uint32(66).string($.fileName);if($.fileEncSha256!==void 0)K.uint32(74).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(82).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(88).int64($.mediaKeyTimestamp);if($.contactVcard!==void 0)K.uint32(96).bool($.contactVcard);if($.thumbnailDirectPath!==void 0)K.uint32(106).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)K.uint32(114).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)K.uint32(122).bytes($.thumbnailEncSha256);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.thumbnailHeight!==void 0)K.uint32(144).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)K.uint32(152).uint32($.thumbnailWidth);if($.caption!==void 0)K.uint32(162).string($.caption);if($.accessibilityLabel!==void 0)K.uint32(170).string($.accessibilityLabel);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.mimetype=Q.string();continue}case 3:{if(Z!==26)break;J.title=Q.string();continue}case 4:{if(Z!==34)break;J.fileSha256=Q.bytes();continue}case 5:{if(Z!==40)break;J.fileLength=Q.uint64Number();continue}case 6:{if(Z!==48)break;J.pageCount=Q.uint32();continue}case 7:{if(Z!==58)break;J.mediaKey=Q.bytes();continue}case 8:{if(Z!==66)break;J.fileName=Q.string();continue}case 9:{if(Z!==74)break;J.fileEncSha256=Q.bytes();continue}case 10:{if(Z!==82)break;J.directPath=Q.string();continue}case 11:{if(Z!==88)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 12:{if(Z!==96)break;J.contactVcard=Q.bool();continue}case 13:{if(Z!==106)break;J.thumbnailDirectPath=Q.string();continue}case 14:{if(Z!==114)break;J.thumbnailSha256=Q.bytes();continue}case 15:{if(Z!==122)break;J.thumbnailEncSha256=Q.bytes();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==144)break;J.thumbnailHeight=Q.uint32();continue}case 19:{if(Z!==152)break;J.thumbnailWidth=Q.uint32();continue}case 20:{if(Z!==162)break;J.caption=Q.string();continue}case 21:{if(Z!==170)break;J.accessibilityLabel=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $0.fromPartial($??{})},fromPartial($){let K=HU();return K.url=$.url??void 0,K.mimetype=$.mimetype??void 0,K.title=$.title??void 0,K.fileSha256=$.fileSha256??void 0,K.fileLength=$.fileLength??void 0,K.pageCount=$.pageCount??void 0,K.mediaKey=$.mediaKey??void 0,K.fileName=$.fileName??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.contactVcard=$.contactVcard??void 0,K.thumbnailDirectPath=$.thumbnailDirectPath??void 0,K.thumbnailSha256=$.thumbnailSha256??void 0,K.thumbnailEncSha256=$.thumbnailEncSha256??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.thumbnailHeight=$.thumbnailHeight??void 0,K.thumbnailWidth=$.thumbnailWidth??void 0,K.caption=$.caption??void 0,K.accessibilityLabel=$.accessibilityLabel??void 0,K}};function zU(){return{}}var wJ={encode($,K=new H){if($.targetMessageKey!==void 0)x.encode($.targetMessageKey,K.uint32(10).fork()).join();if($.encPayload!==void 0)K.uint32(18).bytes($.encPayload);if($.encIv!==void 0)K.uint32(26).bytes($.encIv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.targetMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.encPayload=Q.bytes();continue}case 3:{if(Z!==26)break;J.encIv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wJ.fromPartial($??{})},fromPartial($){let K=zU();return K.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?x.fromPartial($.targetMessageKey):void 0,K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K}};function VU(){return{}}var nJ={encode($,K=new H){if($.eventCreationMessageKey!==void 0)x.encode($.eventCreationMessageKey,K.uint32(10).fork()).join();if($.encPayload!==void 0)K.uint32(18).bytes($.encPayload);if($.encIv!==void 0)K.uint32(26).bytes($.encIv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.eventCreationMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.encPayload=Q.bytes();continue}case 3:{if(Z!==26)break;J.encIv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nJ.fromPartial($??{})},fromPartial($){let K=VU();return K.eventCreationMessageKey=$.eventCreationMessageKey!==void 0&&$.eventCreationMessageKey!==null?x.fromPartial($.eventCreationMessageKey):void 0,K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K}};function GU(){return{}}var dJ={encode($,K=new H){if($.targetMessageKey!==void 0)x.encode($.targetMessageKey,K.uint32(10).fork()).join();if($.encPayload!==void 0)K.uint32(18).bytes($.encPayload);if($.encIv!==void 0)K.uint32(26).bytes($.encIv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.targetMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.encPayload=Q.bytes();continue}case 3:{if(Z!==26)break;J.encIv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dJ.fromPartial($??{})},fromPartial($){let K=GU();return K.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?x.fromPartial($.targetMessageKey):void 0,K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K}};function UU(){return{}}var jJ={encode($,K=new H){if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(10).fork()).join();if($.eventId!==void 0)K.uint32(18).string($.eventId);if($.eventTitle!==void 0)K.uint32(26).string($.eventTitle);if($.jpegThumbnail!==void 0)K.uint32(34).bytes($.jpegThumbnail);if($.startTime!==void 0)K.uint32(40).int64($.startTime);if($.caption!==void 0)K.uint32(50).string($.caption);if($.isCanceled!==void 0)K.uint32(56).bool($.isCanceled);if($.endTime!==void 0)K.uint32(64).int64($.endTime);if($.callLink!==void 0)K.uint32(74).string($.callLink);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.eventId=Q.string();continue}case 3:{if(Z!==26)break;J.eventTitle=Q.string();continue}case 4:{if(Z!==34)break;J.jpegThumbnail=Q.bytes();continue}case 5:{if(Z!==40)break;J.startTime=Q.int64Number();continue}case 6:{if(Z!==50)break;J.caption=Q.string();continue}case 7:{if(Z!==56)break;J.isCanceled=Q.bool();continue}case 8:{if(Z!==64)break;J.endTime=Q.int64Number();continue}case 9:{if(Z!==74)break;J.callLink=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jJ.fromPartial($??{})},fromPartial($){let K=UU();return K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.eventId=$.eventId??void 0,K.eventTitle=$.eventTitle??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.startTime=$.startTime??void 0,K.caption=$.caption??void 0,K.isCanceled=$.isCanceled??void 0,K.endTime=$.endTime??void 0,K.callLink=$.callLink??void 0,K}};function CU(){return{}}var cJ={encode($,K=new H){if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(10).fork()).join();if($.isCanceled!==void 0)K.uint32(16).bool($.isCanceled);if($.name!==void 0)K.uint32(26).string($.name);if($.description!==void 0)K.uint32(34).string($.description);if($.location!==void 0)a.encode($.location,K.uint32(42).fork()).join();if($.joinLink!==void 0)K.uint32(50).string($.joinLink);if($.startTime!==void 0)K.uint32(56).int64($.startTime);if($.endTime!==void 0)K.uint32(64).int64($.endTime);if($.extraGuestsAllowed!==void 0)K.uint32(72).bool($.extraGuestsAllowed);if($.isScheduleCall!==void 0)K.uint32(80).bool($.isScheduleCall);if($.hasReminder!==void 0)K.uint32(88).bool($.hasReminder);if($.reminderOffsetSec!==void 0)K.uint32(96).int64($.reminderOffsetSec);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.isCanceled=Q.bool();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}case 4:{if(Z!==34)break;J.description=Q.string();continue}case 5:{if(Z!==42)break;J.location=a.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.joinLink=Q.string();continue}case 7:{if(Z!==56)break;J.startTime=Q.int64Number();continue}case 8:{if(Z!==64)break;J.endTime=Q.int64Number();continue}case 9:{if(Z!==72)break;J.extraGuestsAllowed=Q.bool();continue}case 10:{if(Z!==80)break;J.isScheduleCall=Q.bool();continue}case 11:{if(Z!==88)break;J.hasReminder=Q.bool();continue}case 12:{if(Z!==96)break;J.reminderOffsetSec=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cJ.fromPartial($??{})},fromPartial($){let K=CU();return K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.isCanceled=$.isCanceled??void 0,K.name=$.name??void 0,K.description=$.description??void 0,K.location=$.location!==void 0&&$.location!==null?a.fromPartial($.location):void 0,K.joinLink=$.joinLink??void 0,K.startTime=$.startTime??void 0,K.endTime=$.endTime??void 0,K.extraGuestsAllowed=$.extraGuestsAllowed??void 0,K.isScheduleCall=$.isScheduleCall??void 0,K.hasReminder=$.hasReminder??void 0,K.reminderOffsetSec=$.reminderOffsetSec??void 0,K}};function DU(){return{}}var W0={encode($,K=new H){if($.response!==void 0)K.uint32(8).int32($.response);if($.timestampMs!==void 0)K.uint32(16).int64($.timestampMs);if($.extraGuestCount!==void 0)K.uint32(24).int32($.extraGuestCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.response=Q.int32();continue}case 2:{if(Z!==16)break;J.timestampMs=Q.int64Number();continue}case 3:{if(Z!==24)break;J.extraGuestCount=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return W0.fromPartial($??{})},fromPartial($){let K=DU();return K.response=$.response??void 0,K.timestampMs=$.timestampMs??void 0,K.extraGuestCount=$.extraGuestCount??void 0,K}};function LU(){return{}}var oJ={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.matchedText!==void 0)K.uint32(18).string($.matchedText);if($.description!==void 0)K.uint32(42).string($.description);if($.title!==void 0)K.uint32(50).string($.title);if($.textArgb!==void 0)K.uint32(61).fixed32($.textArgb);if($.backgroundArgb!==void 0)K.uint32(69).fixed32($.backgroundArgb);if($.font!==void 0)K.uint32(72).int32($.font);if($.previewType!==void 0)K.uint32(80).int32($.previewType);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.doNotPlayInline!==void 0)K.uint32(144).bool($.doNotPlayInline);if($.thumbnailDirectPath!==void 0)K.uint32(154).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)K.uint32(162).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)K.uint32(170).bytes($.thumbnailEncSha256);if($.mediaKey!==void 0)K.uint32(178).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)K.uint32(184).int64($.mediaKeyTimestamp);if($.thumbnailHeight!==void 0)K.uint32(192).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)K.uint32(200).uint32($.thumbnailWidth);if($.inviteLinkGroupType!==void 0)K.uint32(208).int32($.inviteLinkGroupType);if($.inviteLinkParentGroupSubjectV2!==void 0)K.uint32(218).string($.inviteLinkParentGroupSubjectV2);if($.inviteLinkParentGroupThumbnailV2!==void 0)K.uint32(226).bytes($.inviteLinkParentGroupThumbnailV2);if($.inviteLinkGroupTypeV2!==void 0)K.uint32(232).int32($.inviteLinkGroupTypeV2);if($.viewOnce!==void 0)K.uint32(240).bool($.viewOnce);if($.videoHeight!==void 0)K.uint32(248).uint32($.videoHeight);if($.videoWidth!==void 0)K.uint32(256).uint32($.videoWidth);if($.faviconMMSMetadata!==void 0)AX.encode($.faviconMMSMetadata,K.uint32(266).fork()).join();if($.linkPreviewMetadata!==void 0)DX.encode($.linkPreviewMetadata,K.uint32(274).fork()).join();if($.paymentLinkMetadata!==void 0)C$.encode($.paymentLinkMetadata,K.uint32(282).fork()).join();if($.endCardTiles!==void 0&&$.endCardTiles.length!==0)for(let Q of $.endCardTiles)w8.encode(Q,K.uint32(290).fork()).join();if($.videoContentUrl!==void 0)K.uint32(298).string($.videoContentUrl);if($.musicMetadata!==void 0)L0.encode($.musicMetadata,K.uint32(306).fork()).join();if($.paymentExtendedMetadata!==void 0)SX.encode($.paymentExtendedMetadata,K.uint32(314).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==18)break;J.matchedText=Q.string();continue}case 5:{if(Z!==42)break;J.description=Q.string();continue}case 6:{if(Z!==50)break;J.title=Q.string();continue}case 7:{if(Z!==61)break;J.textArgb=Q.fixed32();continue}case 8:{if(Z!==69)break;J.backgroundArgb=Q.fixed32();continue}case 9:{if(Z!==72)break;J.font=Q.int32();continue}case 10:{if(Z!==80)break;J.previewType=Q.int32();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==144)break;J.doNotPlayInline=Q.bool();continue}case 19:{if(Z!==154)break;J.thumbnailDirectPath=Q.string();continue}case 20:{if(Z!==162)break;J.thumbnailSha256=Q.bytes();continue}case 21:{if(Z!==170)break;J.thumbnailEncSha256=Q.bytes();continue}case 22:{if(Z!==178)break;J.mediaKey=Q.bytes();continue}case 23:{if(Z!==184)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 24:{if(Z!==192)break;J.thumbnailHeight=Q.uint32();continue}case 25:{if(Z!==200)break;J.thumbnailWidth=Q.uint32();continue}case 26:{if(Z!==208)break;J.inviteLinkGroupType=Q.int32();continue}case 27:{if(Z!==218)break;J.inviteLinkParentGroupSubjectV2=Q.string();continue}case 28:{if(Z!==226)break;J.inviteLinkParentGroupThumbnailV2=Q.bytes();continue}case 29:{if(Z!==232)break;J.inviteLinkGroupTypeV2=Q.int32();continue}case 30:{if(Z!==240)break;J.viewOnce=Q.bool();continue}case 31:{if(Z!==248)break;J.videoHeight=Q.uint32();continue}case 32:{if(Z!==256)break;J.videoWidth=Q.uint32();continue}case 33:{if(Z!==266)break;J.faviconMMSMetadata=AX.decode(Q,Q.uint32());continue}case 34:{if(Z!==274)break;J.linkPreviewMetadata=DX.decode(Q,Q.uint32());continue}case 35:{if(Z!==282)break;J.paymentLinkMetadata=C$.decode(Q,Q.uint32());continue}case 36:{if(Z!==290)break;if(J.endCardTiles===void 0)J.endCardTiles=[];let Y=w8.decode(Q,Q.uint32());if(Y!==void 0)J.endCardTiles.push(Y);continue}case 37:{if(Z!==298)break;J.videoContentUrl=Q.string();continue}case 38:{if(Z!==306)break;J.musicMetadata=L0.decode(Q,Q.uint32());continue}case 39:{if(Z!==314)break;J.paymentExtendedMetadata=SX.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oJ.fromPartial($??{})},fromPartial($){let K=LU();return K.text=$.text??void 0,K.matchedText=$.matchedText??void 0,K.description=$.description??void 0,K.title=$.title??void 0,K.textArgb=$.textArgb??void 0,K.backgroundArgb=$.backgroundArgb??void 0,K.font=$.font??void 0,K.previewType=$.previewType??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.doNotPlayInline=$.doNotPlayInline??void 0,K.thumbnailDirectPath=$.thumbnailDirectPath??void 0,K.thumbnailSha256=$.thumbnailSha256??void 0,K.thumbnailEncSha256=$.thumbnailEncSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.thumbnailHeight=$.thumbnailHeight??void 0,K.thumbnailWidth=$.thumbnailWidth??void 0,K.inviteLinkGroupType=$.inviteLinkGroupType??void 0,K.inviteLinkParentGroupSubjectV2=$.inviteLinkParentGroupSubjectV2??void 0,K.inviteLinkParentGroupThumbnailV2=$.inviteLinkParentGroupThumbnailV2??void 0,K.inviteLinkGroupTypeV2=$.inviteLinkGroupTypeV2??void 0,K.viewOnce=$.viewOnce??void 0,K.videoHeight=$.videoHeight??void 0,K.videoWidth=$.videoWidth??void 0,K.faviconMMSMetadata=$.faviconMMSMetadata!==void 0&&$.faviconMMSMetadata!==null?AX.fromPartial($.faviconMMSMetadata):void 0,K.linkPreviewMetadata=$.linkPreviewMetadata!==void 0&&$.linkPreviewMetadata!==null?DX.fromPartial($.linkPreviewMetadata):void 0,K.paymentLinkMetadata=$.paymentLinkMetadata!==void 0&&$.paymentLinkMetadata!==null?C$.fromPartial($.paymentLinkMetadata):void 0,K.endCardTiles=$.endCardTiles?.map((Q)=>w8.fromPartial(Q))||void 0,K.videoContentUrl=$.videoContentUrl??void 0,K.musicMetadata=$.musicMetadata!==void 0&&$.musicMetadata!==null?L0.fromPartial($.musicMetadata):void 0,K.paymentExtendedMetadata=$.paymentExtendedMetadata!==void 0&&$.paymentExtendedMetadata!==null?SX.fromPartial($.paymentExtendedMetadata):void 0,K}};function PU(){return{}}var bJ={encode($,K=new H){if($.historyFromTimestamp!==void 0)K.uint32(8).uint64($.historyFromTimestamp);if($.historyDurationDays!==void 0)K.uint32(16).uint32($.historyDurationDays);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.historyFromTimestamp=Q.uint64Number();continue}case 2:{if(Z!==16)break;J.historyDurationDays=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bJ.fromPartial($??{})},fromPartial($){let K=PU();return K.historyFromTimestamp=$.historyFromTimestamp??void 0,K.historyDurationDays=$.historyDurationDays??void 0,K}};function FU(){return{}}var x0={encode($,K=new H){if($.requestId!==void 0)K.uint32(10).string($.requestId);if($.businessProduct!==void 0)K.uint32(18).string($.businessProduct);if($.opaqueClientData!==void 0)K.uint32(26).bytes($.opaqueClientData);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.requestId=Q.string();continue}case 2:{if(Z!==18)break;J.businessProduct=Q.string();continue}case 3:{if(Z!==26)break;J.opaqueClientData=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return x0.fromPartial($??{})},fromPartial($){let K=FU();return K.requestId=$.requestId??void 0,K.businessProduct=$.businessProduct??void 0,K.opaqueClientData=$.opaqueClientData??void 0,K}};function xU(){return{}}var W={encode($,K=new H){if($.message!==void 0)w.encode($.message,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.message=w.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return W.fromPartial($??{})},fromPartial($){let K=xU();return K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K}};function kU(){return{}}var iJ={encode($,K=new H){if($.groupJid!==void 0)K.uint32(10).string($.groupJid);if($.inviteCode!==void 0)K.uint32(18).string($.inviteCode);if($.inviteExpiration!==void 0)K.uint32(24).int64($.inviteExpiration);if($.groupName!==void 0)K.uint32(34).string($.groupName);if($.jpegThumbnail!==void 0)K.uint32(42).bytes($.jpegThumbnail);if($.caption!==void 0)K.uint32(50).string($.caption);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(58).fork()).join();if($.groupType!==void 0)K.uint32(64).int32($.groupType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.groupJid=Q.string();continue}case 2:{if(Z!==18)break;J.inviteCode=Q.string();continue}case 3:{if(Z!==24)break;J.inviteExpiration=Q.int64Number();continue}case 4:{if(Z!==34)break;J.groupName=Q.string();continue}case 5:{if(Z!==42)break;J.jpegThumbnail=Q.bytes();continue}case 6:{if(Z!==50)break;J.caption=Q.string();continue}case 7:{if(Z!==58)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 8:{if(Z!==64)break;J.groupType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iJ.fromPartial($??{})},fromPartial($){let K=kU();return K.groupJid=$.groupJid??void 0,K.inviteCode=$.inviteCode??void 0,K.inviteExpiration=$.inviteExpiration??void 0,K.groupName=$.groupName??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.caption=$.caption??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.groupType=$.groupType??void 0,K}};function NU(){return{}}var c={encode($,K=new H){if($.namespace!==void 0)K.uint32(10).string($.namespace);if($.elementName!==void 0)K.uint32(18).string($.elementName);if($.params!==void 0&&$.params.length!==0)for(let Q of $.params)K.uint32(26).string(Q);if($.fallbackLg!==void 0)K.uint32(34).string($.fallbackLg);if($.fallbackLc!==void 0)K.uint32(42).string($.fallbackLc);if($.localizableParams!==void 0&&$.localizableParams.length!==0)for(let Q of $.localizableParams)mJ.encode(Q,K.uint32(50).fork()).join();if($.deterministicLg!==void 0)K.uint32(58).string($.deterministicLg);if($.deterministicLc!==void 0)K.uint32(66).string($.deterministicLc);if($.hydratedHsm!==void 0)P$.encode($.hydratedHsm,K.uint32(74).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.namespace=Q.string();continue}case 2:{if(Z!==18)break;J.elementName=Q.string();continue}case 3:{if(Z!==26)break;if(J.params===void 0)J.params=[];let Y=Q.string();if(Y!==void 0)J.params.push(Y);continue}case 4:{if(Z!==34)break;J.fallbackLg=Q.string();continue}case 5:{if(Z!==42)break;J.fallbackLc=Q.string();continue}case 6:{if(Z!==50)break;if(J.localizableParams===void 0)J.localizableParams=[];let Y=mJ.decode(Q,Q.uint32());if(Y!==void 0)J.localizableParams.push(Y);continue}case 7:{if(Z!==58)break;J.deterministicLg=Q.string();continue}case 8:{if(Z!==66)break;J.deterministicLc=Q.string();continue}case 9:{if(Z!==74)break;J.hydratedHsm=P$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return c.fromPartial($??{})},fromPartial($){let K=NU();return K.namespace=$.namespace??void 0,K.elementName=$.elementName??void 0,K.params=$.params?.map((Q)=>Q)||void 0,K.fallbackLg=$.fallbackLg??void 0,K.fallbackLc=$.fallbackLc??void 0,K.localizableParams=$.localizableParams?.map((Q)=>mJ.fromPartial(Q))||void 0,K.deterministicLg=$.deterministicLg??void 0,K.deterministicLc=$.deterministicLc??void 0,K.hydratedHsm=$.hydratedHsm!==void 0&&$.hydratedHsm!==null?P$.fromPartial($.hydratedHsm):void 0,K}};function RU(){return{}}var mJ={encode($,K=new H){if($.default!==void 0)K.uint32(10).string($.default);if($.currency!==void 0)gJ.encode($.currency,K.uint32(18).fork()).join();if($.dateTime!==void 0)tJ.encode($.dateTime,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.default=Q.string();continue}case 2:{if(Z!==18)break;J.currency=gJ.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.dateTime=tJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mJ.fromPartial($??{})},fromPartial($){let K=RU();return K.default=$.default??void 0,K.currency=$.currency!==void 0&&$.currency!==null?gJ.fromPartial($.currency):void 0,K.dateTime=$.dateTime!==void 0&&$.dateTime!==null?tJ.fromPartial($.dateTime):void 0,K}};function BU(){return{}}var gJ={encode($,K=new H){if($.currencyCode!==void 0)K.uint32(10).string($.currencyCode);if($.amount1000!==void 0)K.uint32(16).int64($.amount1000);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.currencyCode=Q.string();continue}case 2:{if(Z!==16)break;J.amount1000=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gJ.fromPartial($??{})},fromPartial($){let K=BU();return K.currencyCode=$.currencyCode??void 0,K.amount1000=$.amount1000??void 0,K}};function OU(){return{}}var tJ={encode($,K=new H){if($.component!==void 0)rJ.encode($.component,K.uint32(10).fork()).join();if($.unixEpoch!==void 0)aJ.encode($.unixEpoch,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.component=rJ.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.unixEpoch=aJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tJ.fromPartial($??{})},fromPartial($){let K=OU();return K.component=$.component!==void 0&&$.component!==null?rJ.fromPartial($.component):void 0,K.unixEpoch=$.unixEpoch!==void 0&&$.unixEpoch!==null?aJ.fromPartial($.unixEpoch):void 0,K}};function AU(){return{}}var rJ={encode($,K=new H){if($.dayOfWeek!==void 0)K.uint32(8).int32($.dayOfWeek);if($.year!==void 0)K.uint32(16).uint32($.year);if($.month!==void 0)K.uint32(24).uint32($.month);if($.dayOfMonth!==void 0)K.uint32(32).uint32($.dayOfMonth);if($.hour!==void 0)K.uint32(40).uint32($.hour);if($.minute!==void 0)K.uint32(48).uint32($.minute);if($.calendar!==void 0)K.uint32(56).int32($.calendar);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.dayOfWeek=Q.int32();continue}case 2:{if(Z!==16)break;J.year=Q.uint32();continue}case 3:{if(Z!==24)break;J.month=Q.uint32();continue}case 4:{if(Z!==32)break;J.dayOfMonth=Q.uint32();continue}case 5:{if(Z!==40)break;J.hour=Q.uint32();continue}case 6:{if(Z!==48)break;J.minute=Q.uint32();continue}case 7:{if(Z!==56)break;J.calendar=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rJ.fromPartial($??{})},fromPartial($){let K=AU();return K.dayOfWeek=$.dayOfWeek??void 0,K.year=$.year??void 0,K.month=$.month??void 0,K.dayOfMonth=$.dayOfMonth??void 0,K.hour=$.hour??void 0,K.minute=$.minute??void 0,K.calendar=$.calendar??void 0,K}};function EU(){return{}}var aJ={encode($,K=new H){if($.timestamp!==void 0)K.uint32(8).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=EU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aJ.fromPartial($??{})},fromPartial($){let K=EU();return K.timestamp=$.timestamp??void 0,K}};function MU(){return{}}var sJ={encode($,K=new H){if($.completeAccessGranted!==void 0)K.uint32(8).bool($.completeAccessGranted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=MU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.completeAccessGranted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sJ.fromPartial($??{})},fromPartial($){let K=MU();return K.completeAccessGranted=$.completeAccessGranted??void 0,K}};function WU(){return{}}var eJ={encode($,K=new H){if($.fileSha256!==void 0)K.uint32(10).bytes($.fileSha256);if($.fileLength!==void 0)K.uint32(16).uint64($.fileLength);if($.mediaKey!==void 0)K.uint32(26).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(34).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(42).string($.directPath);if($.syncType!==void 0)K.uint32(48).int32($.syncType);if($.chunkOrder!==void 0)K.uint32(56).uint32($.chunkOrder);if($.originalMessageId!==void 0)K.uint32(66).string($.originalMessageId);if($.progress!==void 0)K.uint32(72).uint32($.progress);if($.oldestMsgInChunkTimestampSec!==void 0)K.uint32(80).int64($.oldestMsgInChunkTimestampSec);if($.initialHistBootstrapInlinePayload!==void 0)K.uint32(90).bytes($.initialHistBootstrapInlinePayload);if($.peerDataRequestSessionId!==void 0)K.uint32(98).string($.peerDataRequestSessionId);if($.fullHistorySyncOnDemandRequestMetadata!==void 0)x0.encode($.fullHistorySyncOnDemandRequestMetadata,K.uint32(106).fork()).join();if($.encHandle!==void 0)K.uint32(114).string($.encHandle);if($.messageAccessStatus!==void 0)sJ.encode($.messageAccessStatus,K.uint32(122).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fileSha256=Q.bytes();continue}case 2:{if(Z!==16)break;J.fileLength=Q.uint64Number();continue}case 3:{if(Z!==26)break;J.mediaKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.fileEncSha256=Q.bytes();continue}case 5:{if(Z!==42)break;J.directPath=Q.string();continue}case 6:{if(Z!==48)break;J.syncType=Q.int32();continue}case 7:{if(Z!==56)break;J.chunkOrder=Q.uint32();continue}case 8:{if(Z!==66)break;J.originalMessageId=Q.string();continue}case 9:{if(Z!==72)break;J.progress=Q.uint32();continue}case 10:{if(Z!==80)break;J.oldestMsgInChunkTimestampSec=Q.int64Number();continue}case 11:{if(Z!==90)break;J.initialHistBootstrapInlinePayload=Q.bytes();continue}case 12:{if(Z!==98)break;J.peerDataRequestSessionId=Q.string();continue}case 13:{if(Z!==106)break;J.fullHistorySyncOnDemandRequestMetadata=x0.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.encHandle=Q.string();continue}case 15:{if(Z!==122)break;J.messageAccessStatus=sJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eJ.fromPartial($??{})},fromPartial($){let K=WU();return K.fileSha256=$.fileSha256??void 0,K.fileLength=$.fileLength??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.syncType=$.syncType??void 0,K.chunkOrder=$.chunkOrder??void 0,K.originalMessageId=$.originalMessageId??void 0,K.progress=$.progress??void 0,K.oldestMsgInChunkTimestampSec=$.oldestMsgInChunkTimestampSec??void 0,K.initialHistBootstrapInlinePayload=$.initialHistBootstrapInlinePayload??void 0,K.peerDataRequestSessionId=$.peerDataRequestSessionId??void 0,K.fullHistorySyncOnDemandRequestMetadata=$.fullHistorySyncOnDemandRequestMetadata!==void 0&&$.fullHistorySyncOnDemandRequestMetadata!==null?x0.fromPartial($.fullHistorySyncOnDemandRequestMetadata):void 0,K.encHandle=$.encHandle??void 0,K.messageAccessStatus=$.messageAccessStatus!==void 0&&$.messageAccessStatus!==null?sJ.fromPartial($.messageAccessStatus):void 0,K}};function IU(){return{}}var i={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.mimetype!==void 0)K.uint32(18).string($.mimetype);if($.caption!==void 0)K.uint32(26).string($.caption);if($.fileSha256!==void 0)K.uint32(34).bytes($.fileSha256);if($.fileLength!==void 0)K.uint32(40).uint64($.fileLength);if($.height!==void 0)K.uint32(48).uint32($.height);if($.width!==void 0)K.uint32(56).uint32($.width);if($.mediaKey!==void 0)K.uint32(66).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(74).bytes($.fileEncSha256);if($.interactiveAnnotations!==void 0&&$.interactiveAnnotations.length!==0)for(let Q of $.interactiveAnnotations)Q0.encode(Q,K.uint32(82).fork()).join();if($.directPath!==void 0)K.uint32(90).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(96).int64($.mediaKeyTimestamp);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.firstScanSidecar!==void 0)K.uint32(146).bytes($.firstScanSidecar);if($.firstScanLength!==void 0)K.uint32(152).uint32($.firstScanLength);if($.experimentGroupId!==void 0)K.uint32(160).uint32($.experimentGroupId);if($.scansSidecar!==void 0)K.uint32(170).bytes($.scansSidecar);if($.scanLengths!==void 0&&$.scanLengths.length!==0)for(let Q of $.scanLengths)K.uint32(176).uint32(Q);if($.midQualityFileSha256!==void 0)K.uint32(186).bytes($.midQualityFileSha256);if($.midQualityFileEncSha256!==void 0)K.uint32(194).bytes($.midQualityFileEncSha256);if($.viewOnce!==void 0)K.uint32(200).bool($.viewOnce);if($.thumbnailDirectPath!==void 0)K.uint32(210).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)K.uint32(218).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)K.uint32(226).bytes($.thumbnailEncSha256);if($.staticUrl!==void 0)K.uint32(234).string($.staticUrl);if($.annotations!==void 0&&$.annotations.length!==0)for(let Q of $.annotations)Q0.encode(Q,K.uint32(242).fork()).join();if($.imageSourceType!==void 0)K.uint32(248).int32($.imageSourceType);if($.accessibilityLabel!==void 0)K.uint32(258).string($.accessibilityLabel);if($.qrUrl!==void 0)K.uint32(274).string($.qrUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=IU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.mimetype=Q.string();continue}case 3:{if(Z!==26)break;J.caption=Q.string();continue}case 4:{if(Z!==34)break;J.fileSha256=Q.bytes();continue}case 5:{if(Z!==40)break;J.fileLength=Q.uint64Number();continue}case 6:{if(Z!==48)break;J.height=Q.uint32();continue}case 7:{if(Z!==56)break;J.width=Q.uint32();continue}case 8:{if(Z!==66)break;J.mediaKey=Q.bytes();continue}case 9:{if(Z!==74)break;J.fileEncSha256=Q.bytes();continue}case 10:{if(Z!==82)break;if(J.interactiveAnnotations===void 0)J.interactiveAnnotations=[];let Y=Q0.decode(Q,Q.uint32());if(Y!==void 0)J.interactiveAnnotations.push(Y);continue}case 11:{if(Z!==90)break;J.directPath=Q.string();continue}case 12:{if(Z!==96)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.firstScanSidecar=Q.bytes();continue}case 19:{if(Z!==152)break;J.firstScanLength=Q.uint32();continue}case 20:{if(Z!==160)break;J.experimentGroupId=Q.uint32();continue}case 21:{if(Z!==170)break;J.scansSidecar=Q.bytes();continue}case 22:{if(Z===176){if(J.scanLengths===void 0)J.scanLengths=[];J.scanLengths.push(Q.uint32());continue}if(Z===178){if(J.scanLengths===void 0)J.scanLengths=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.scanLengths.push(Q.uint32());continue}break}case 23:{if(Z!==186)break;J.midQualityFileSha256=Q.bytes();continue}case 24:{if(Z!==194)break;J.midQualityFileEncSha256=Q.bytes();continue}case 25:{if(Z!==200)break;J.viewOnce=Q.bool();continue}case 26:{if(Z!==210)break;J.thumbnailDirectPath=Q.string();continue}case 27:{if(Z!==218)break;J.thumbnailSha256=Q.bytes();continue}case 28:{if(Z!==226)break;J.thumbnailEncSha256=Q.bytes();continue}case 29:{if(Z!==234)break;J.staticUrl=Q.string();continue}case 30:{if(Z!==242)break;if(J.annotations===void 0)J.annotations=[];let Y=Q0.decode(Q,Q.uint32());if(Y!==void 0)J.annotations.push(Y);continue}case 31:{if(Z!==248)break;J.imageSourceType=Q.int32();continue}case 32:{if(Z!==258)break;J.accessibilityLabel=Q.string();continue}case 34:{if(Z!==274)break;J.qrUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return i.fromPartial($??{})},fromPartial($){let K=IU();return K.url=$.url??void 0,K.mimetype=$.mimetype??void 0,K.caption=$.caption??void 0,K.fileSha256=$.fileSha256??void 0,K.fileLength=$.fileLength??void 0,K.height=$.height??void 0,K.width=$.width??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.interactiveAnnotations=$.interactiveAnnotations?.map((Q)=>Q0.fromPartial(Q))||void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.firstScanSidecar=$.firstScanSidecar??void 0,K.firstScanLength=$.firstScanLength??void 0,K.experimentGroupId=$.experimentGroupId??void 0,K.scansSidecar=$.scansSidecar??void 0,K.scanLengths=$.scanLengths?.map((Q)=>Q)||void 0,K.midQualityFileSha256=$.midQualityFileSha256??void 0,K.midQualityFileEncSha256=$.midQualityFileEncSha256??void 0,K.viewOnce=$.viewOnce??void 0,K.thumbnailDirectPath=$.thumbnailDirectPath??void 0,K.thumbnailSha256=$.thumbnailSha256??void 0,K.thumbnailEncSha256=$.thumbnailEncSha256??void 0,K.staticUrl=$.staticUrl??void 0,K.annotations=$.annotations?.map((Q)=>Q0.fromPartial(Q))||void 0,K.imageSourceType=$.imageSourceType??void 0,K.accessibilityLabel=$.accessibilityLabel??void 0,K.qrUrl=$.qrUrl??void 0,K}};function SU(){return{}}var $X={encode($,K=new H){if($.securityNotificationEnabled!==void 0)K.uint32(8).bool($.securityNotificationEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.securityNotificationEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $X.fromPartial($??{})},fromPartial($){let K=SU();return K.securityNotificationEnabled=$.securityNotificationEnabled??void 0,K}};function vU(){return{}}var k0={encode($,K=new H){if($.header!==void 0)XX.encode($.header,K.uint32(10).fork()).join();if($.body!==void 0)KX.encode($.body,K.uint32(18).fork()).join();if($.footer!==void 0)JX.encode($.footer,K.uint32(26).fork()).join();if($.bloksWidget!==void 0)z$.encode($.bloksWidget,K.uint32(66).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(122).fork()).join();if($.urlTrackingMap!==void 0)B$.encode($.urlTrackingMap,K.uint32(130).fork()).join();if($.shopStorefrontMessage!==void 0)HX.encode($.shopStorefrontMessage,K.uint32(34).fork()).join();if($.collectionMessage!==void 0)ZX.encode($.collectionMessage,K.uint32(42).fork()).join();if($.nativeFlowMessage!==void 0)qX.encode($.nativeFlowMessage,K.uint32(50).fork()).join();if($.carouselMessage!==void 0)QX.encode($.carouselMessage,K.uint32(58).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.header=XX.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.body=KX.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.footer=JX.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.bloksWidget=z$.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 16:{if(Z!==130)break;J.urlTrackingMap=B$.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.shopStorefrontMessage=HX.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.collectionMessage=ZX.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.nativeFlowMessage=qX.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.carouselMessage=QX.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return k0.fromPartial($??{})},fromPartial($){let K=vU();return K.header=$.header!==void 0&&$.header!==null?XX.fromPartial($.header):void 0,K.body=$.body!==void 0&&$.body!==null?KX.fromPartial($.body):void 0,K.footer=$.footer!==void 0&&$.footer!==null?JX.fromPartial($.footer):void 0,K.bloksWidget=$.bloksWidget!==void 0&&$.bloksWidget!==null?z$.fromPartial($.bloksWidget):void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.urlTrackingMap=$.urlTrackingMap!==void 0&&$.urlTrackingMap!==null?B$.fromPartial($.urlTrackingMap):void 0,K.shopStorefrontMessage=$.shopStorefrontMessage!==void 0&&$.shopStorefrontMessage!==null?HX.fromPartial($.shopStorefrontMessage):void 0,K.collectionMessage=$.collectionMessage!==void 0&&$.collectionMessage!==null?ZX.fromPartial($.collectionMessage):void 0,K.nativeFlowMessage=$.nativeFlowMessage!==void 0&&$.nativeFlowMessage!==null?qX.fromPartial($.nativeFlowMessage):void 0,K.carouselMessage=$.carouselMessage!==void 0&&$.carouselMessage!==null?QX.fromPartial($.carouselMessage):void 0,K}};function TU(){return{}}var z$={encode($,K=new H){if($.uuid!==void 0)K.uint32(10).string($.uuid);if($.data!==void 0)K.uint32(18).string($.data);if($.type!==void 0)K.uint32(26).string($.type);if($.fallback!==void 0)K.uint32(34).string($.fallback);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.uuid=Q.string();continue}case 2:{if(Z!==18)break;J.data=Q.string();continue}case 3:{if(Z!==26)break;J.type=Q.string();continue}case 4:{if(Z!==34)break;J.fallback=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return z$.fromPartial($??{})},fromPartial($){let K=TU();return K.uuid=$.uuid??void 0,K.data=$.data??void 0,K.type=$.type??void 0,K.fallback=$.fallback??void 0,K}};function yU(){return{}}var KX={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KX.fromPartial($??{})},fromPartial($){let K=yU();return K.text=$.text??void 0,K}};function fU(){return{}}var QX={encode($,K=new H){if($.cards!==void 0&&$.cards.length!==0)for(let Q of $.cards)k0.encode(Q,K.uint32(10).fork()).join();if($.messageVersion!==void 0)K.uint32(16).int32($.messageVersion);if($.carouselCardType!==void 0)K.uint32(24).int32($.carouselCardType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.cards===void 0)J.cards=[];let Y=k0.decode(Q,Q.uint32());if(Y!==void 0)J.cards.push(Y);continue}case 2:{if(Z!==16)break;J.messageVersion=Q.int32();continue}case 3:{if(Z!==24)break;J.carouselCardType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QX.fromPartial($??{})},fromPartial($){let K=fU();return K.cards=$.cards?.map((Q)=>k0.fromPartial(Q))||void 0,K.messageVersion=$.messageVersion??void 0,K.carouselCardType=$.carouselCardType??void 0,K}};function _U(){return{}}var ZX={encode($,K=new H){if($.bizJid!==void 0)K.uint32(10).string($.bizJid);if($.id!==void 0)K.uint32(18).string($.id);if($.messageVersion!==void 0)K.uint32(24).int32($.messageVersion);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_U();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.bizJid=Q.string();continue}case 2:{if(Z!==18)break;J.id=Q.string();continue}case 3:{if(Z!==24)break;J.messageVersion=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZX.fromPartial($??{})},fromPartial($){let K=_U();return K.bizJid=$.bizJid??void 0,K.id=$.id??void 0,K.messageVersion=$.messageVersion??void 0,K}};function hU(){return{}}var JX={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.hasMediaAttachment!==void 0)K.uint32(24).bool($.hasMediaAttachment);if($.audioMessage!==void 0)Y$.encode($.audioMessage,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 3:{if(Z!==24)break;J.hasMediaAttachment=Q.bool();continue}case 2:{if(Z!==18)break;J.audioMessage=Y$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JX.fromPartial($??{})},fromPartial($){let K=hU();return K.text=$.text??void 0,K.hasMediaAttachment=$.hasMediaAttachment??void 0,K.audioMessage=$.audioMessage!==void 0&&$.audioMessage!==null?Y$.fromPartial($.audioMessage):void 0,K}};function lU(){return{}}var XX={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.subtitle!==void 0)K.uint32(18).string($.subtitle);if($.hasMediaAttachment!==void 0)K.uint32(40).bool($.hasMediaAttachment);if($.bloksWidget!==void 0)z$.encode($.bloksWidget,K.uint32(82).fork()).join();if($.documentMessage!==void 0)$0.encode($.documentMessage,K.uint32(26).fork()).join();if($.imageMessage!==void 0)i.encode($.imageMessage,K.uint32(34).fork()).join();if($.jpegThumbnail!==void 0)K.uint32(50).bytes($.jpegThumbnail);if($.videoMessage!==void 0)t.encode($.videoMessage,K.uint32(58).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,K.uint32(66).fork()).join();if($.productMessage!==void 0)D$.encode($.productMessage,K.uint32(74).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.subtitle=Q.string();continue}case 5:{if(Z!==40)break;J.hasMediaAttachment=Q.bool();continue}case 10:{if(Z!==82)break;J.bloksWidget=z$.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.documentMessage=$0.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.imageMessage=i.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.jpegThumbnail=Q.bytes();continue}case 7:{if(Z!==58)break;J.videoMessage=t.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.locationMessage=a.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.productMessage=D$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XX.fromPartial($??{})},fromPartial($){let K=lU();return K.title=$.title??void 0,K.subtitle=$.subtitle??void 0,K.hasMediaAttachment=$.hasMediaAttachment??void 0,K.bloksWidget=$.bloksWidget!==void 0&&$.bloksWidget!==null?z$.fromPartial($.bloksWidget):void 0,K.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,K.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,K.productMessage=$.productMessage!==void 0&&$.productMessage!==null?D$.fromPartial($.productMessage):void 0,K}};function pU(){return{}}var qX={encode($,K=new H){if($.buttons!==void 0&&$.buttons.length!==0)for(let Q of $.buttons)YX.encode(Q,K.uint32(10).fork()).join();if($.messageParamsJson!==void 0)K.uint32(18).string($.messageParamsJson);if($.messageVersion!==void 0)K.uint32(24).int32($.messageVersion);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.buttons===void 0)J.buttons=[];let Y=YX.decode(Q,Q.uint32());if(Y!==void 0)J.buttons.push(Y);continue}case 2:{if(Z!==18)break;J.messageParamsJson=Q.string();continue}case 3:{if(Z!==24)break;J.messageVersion=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qX.fromPartial($??{})},fromPartial($){let K=pU();return K.buttons=$.buttons?.map((Q)=>YX.fromPartial(Q))||void 0,K.messageParamsJson=$.messageParamsJson??void 0,K.messageVersion=$.messageVersion??void 0,K}};function uU(){return{}}var YX={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.buttonParamsJson!==void 0)K.uint32(18).string($.buttonParamsJson);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==18)break;J.buttonParamsJson=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YX.fromPartial($??{})},fromPartial($){let K=uU();return K.name=$.name??void 0,K.buttonParamsJson=$.buttonParamsJson??void 0,K}};function wU(){return{}}var HX={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.surface!==void 0)K.uint32(16).int32($.surface);if($.messageVersion!==void 0)K.uint32(24).int32($.messageVersion);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==16)break;J.surface=Q.int32();continue}case 3:{if(Z!==24)break;J.messageVersion=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HX.fromPartial($??{})},fromPartial($){let K=wU();return K.id=$.id??void 0,K.surface=$.surface??void 0,K.messageVersion=$.messageVersion??void 0,K}};function nU(){return{}}var zX={encode($,K=new H){if($.body!==void 0)VX.encode($.body,K.uint32(10).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(122).fork()).join();if($.nativeFlowResponseMessage!==void 0)GX.encode($.nativeFlowResponseMessage,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.body=VX.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.nativeFlowResponseMessage=GX.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zX.fromPartial($??{})},fromPartial($){let K=nU();return K.body=$.body!==void 0&&$.body!==null?VX.fromPartial($.body):void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.nativeFlowResponseMessage=$.nativeFlowResponseMessage!==void 0&&$.nativeFlowResponseMessage!==null?GX.fromPartial($.nativeFlowResponseMessage):void 0,K}};function dU(){return{}}var VX={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.format!==void 0)K.uint32(16).int32($.format);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==16)break;J.format=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VX.fromPartial($??{})},fromPartial($){let K=dU();return K.text=$.text??void 0,K.format=$.format??void 0,K}};function jU(){return{}}var GX={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.paramsJson!==void 0)K.uint32(18).string($.paramsJson);if($.version!==void 0)K.uint32(24).int32($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==18)break;J.paramsJson=Q.string();continue}case 3:{if(Z!==24)break;J.version=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GX.fromPartial($??{})},fromPartial($){let K=jU();return K.name=$.name??void 0,K.paramsJson=$.paramsJson??void 0,K.version=$.version??void 0,K}};function cU(){return{}}var UX={encode($,K=new H){if($.note!==void 0)K.uint32(10).string($.note);if($.token!==void 0)K.uint32(18).string($.token);if($.attachmentType!==void 0)K.uint32(24).int32($.attachmentType);if($.attachmentMimetype!==void 0)K.uint32(34).string($.attachmentMimetype);if($.attachmentMediaKey!==void 0)K.uint32(42).bytes($.attachmentMediaKey);if($.attachmentMediaKeyTimestamp!==void 0)K.uint32(48).int64($.attachmentMediaKeyTimestamp);if($.attachmentFileSha256!==void 0)K.uint32(58).bytes($.attachmentFileSha256);if($.attachmentFileEncSha256!==void 0)K.uint32(66).bytes($.attachmentFileEncSha256);if($.attachmentDirectPath!==void 0)K.uint32(74).string($.attachmentDirectPath);if($.attachmentJpegThumbnail!==void 0)K.uint32(82).bytes($.attachmentJpegThumbnail);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.note=Q.string();continue}case 2:{if(Z!==18)break;J.token=Q.string();continue}case 3:{if(Z!==24)break;J.attachmentType=Q.int32();continue}case 4:{if(Z!==34)break;J.attachmentMimetype=Q.string();continue}case 5:{if(Z!==42)break;J.attachmentMediaKey=Q.bytes();continue}case 6:{if(Z!==48)break;J.attachmentMediaKeyTimestamp=Q.int64Number();continue}case 7:{if(Z!==58)break;J.attachmentFileSha256=Q.bytes();continue}case 8:{if(Z!==66)break;J.attachmentFileEncSha256=Q.bytes();continue}case 9:{if(Z!==74)break;J.attachmentDirectPath=Q.string();continue}case 10:{if(Z!==82)break;J.attachmentJpegThumbnail=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UX.fromPartial($??{})},fromPartial($){let K=cU();return K.note=$.note??void 0,K.token=$.token??void 0,K.attachmentType=$.attachmentType??void 0,K.attachmentMimetype=$.attachmentMimetype??void 0,K.attachmentMediaKey=$.attachmentMediaKey??void 0,K.attachmentMediaKeyTimestamp=$.attachmentMediaKeyTimestamp??void 0,K.attachmentFileSha256=$.attachmentFileSha256??void 0,K.attachmentFileEncSha256=$.attachmentFileEncSha256??void 0,K.attachmentDirectPath=$.attachmentDirectPath??void 0,K.attachmentJpegThumbnail=$.attachmentJpegThumbnail??void 0,K}};function oU(){return{}}var CX={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.keepType!==void 0)K.uint32(16).int32($.keepType);if($.timestampMs!==void 0)K.uint32(24).int64($.timestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.keepType=Q.int32();continue}case 3:{if(Z!==24)break;J.timestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return CX.fromPartial($??{})},fromPartial($){let K=oU();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.keepType=$.keepType??void 0,K.timestampMs=$.timestampMs??void 0,K}};function bU(){return{}}var DX={encode($,K=new H){if($.paymentLinkMetadata!==void 0)C$.encode($.paymentLinkMetadata,K.uint32(10).fork()).join();if($.urlMetadata!==void 0)u8.encode($.urlMetadata,K.uint32(18).fork()).join();if($.fbExperimentId!==void 0)K.uint32(24).uint32($.fbExperimentId);if($.linkMediaDuration!==void 0)K.uint32(32).uint32($.linkMediaDuration);if($.socialMediaPostType!==void 0)K.uint32(40).int32($.socialMediaPostType);if($.linkInlineVideoMuted!==void 0)K.uint32(48).bool($.linkInlineVideoMuted);if($.videoContentUrl!==void 0)K.uint32(58).string($.videoContentUrl);if($.musicMetadata!==void 0)L0.encode($.musicMetadata,K.uint32(66).fork()).join();if($.videoContentCaption!==void 0)K.uint32(74).string($.videoContentCaption);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.paymentLinkMetadata=C$.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.urlMetadata=u8.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.fbExperimentId=Q.uint32();continue}case 4:{if(Z!==32)break;J.linkMediaDuration=Q.uint32();continue}case 5:{if(Z!==40)break;J.socialMediaPostType=Q.int32();continue}case 6:{if(Z!==48)break;J.linkInlineVideoMuted=Q.bool();continue}case 7:{if(Z!==58)break;J.videoContentUrl=Q.string();continue}case 8:{if(Z!==66)break;J.musicMetadata=L0.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.videoContentCaption=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return DX.fromPartial($??{})},fromPartial($){let K=bU();return K.paymentLinkMetadata=$.paymentLinkMetadata!==void 0&&$.paymentLinkMetadata!==null?C$.fromPartial($.paymentLinkMetadata):void 0,K.urlMetadata=$.urlMetadata!==void 0&&$.urlMetadata!==null?u8.fromPartial($.urlMetadata):void 0,K.fbExperimentId=$.fbExperimentId??void 0,K.linkMediaDuration=$.linkMediaDuration??void 0,K.socialMediaPostType=$.socialMediaPostType??void 0,K.linkInlineVideoMuted=$.linkInlineVideoMuted??void 0,K.videoContentUrl=$.videoContentUrl??void 0,K.musicMetadata=$.musicMetadata!==void 0&&$.musicMetadata!==null?L0.fromPartial($.musicMetadata):void 0,K.videoContentCaption=$.videoContentCaption??void 0,K}};function iU(){return{}}var LX={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.description!==void 0)K.uint32(18).string($.description);if($.buttonText!==void 0)K.uint32(26).string($.buttonText);if($.listType!==void 0)K.uint32(32).int32($.listType);if($.sections!==void 0&&$.sections.length!==0)for(let Q of $.sections)RX.encode(Q,K.uint32(42).fork()).join();if($.productListInfo!==void 0)xX.encode($.productListInfo,K.uint32(50).fork()).join();if($.footerText!==void 0)K.uint32(58).string($.footerText);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(66).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.description=Q.string();continue}case 3:{if(Z!==26)break;J.buttonText=Q.string();continue}case 4:{if(Z!==32)break;J.listType=Q.int32();continue}case 5:{if(Z!==42)break;if(J.sections===void 0)J.sections=[];let Y=RX.decode(Q,Q.uint32());if(Y!==void 0)J.sections.push(Y);continue}case 6:{if(Z!==50)break;J.productListInfo=xX.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.footerText=Q.string();continue}case 8:{if(Z!==66)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LX.fromPartial($??{})},fromPartial($){let K=iU();return K.title=$.title??void 0,K.description=$.description??void 0,K.buttonText=$.buttonText??void 0,K.listType=$.listType??void 0,K.sections=$.sections?.map((Q)=>RX.fromPartial(Q))||void 0,K.productListInfo=$.productListInfo!==void 0&&$.productListInfo!==null?xX.fromPartial($.productListInfo):void 0,K.footerText=$.footerText??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function mU(){return{}}var PX={encode($,K=new H){if($.productId!==void 0)K.uint32(10).string($.productId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.productId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PX.fromPartial($??{})},fromPartial($){let K=mU();return K.productId=$.productId??void 0,K}};function gU(){return{}}var FX={encode($,K=new H){if($.productId!==void 0)K.uint32(10).string($.productId);if($.jpegThumbnail!==void 0)K.uint32(18).bytes($.jpegThumbnail);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.productId=Q.string();continue}case 2:{if(Z!==18)break;J.jpegThumbnail=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FX.fromPartial($??{})},fromPartial($){let K=gU();return K.productId=$.productId??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K}};function tU(){return{}}var xX={encode($,K=new H){if($.productSections!==void 0&&$.productSections.length!==0)for(let Q of $.productSections)kX.encode(Q,K.uint32(10).fork()).join();if($.headerImage!==void 0)FX.encode($.headerImage,K.uint32(18).fork()).join();if($.businessOwnerJid!==void 0)K.uint32(26).string($.businessOwnerJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.productSections===void 0)J.productSections=[];let Y=kX.decode(Q,Q.uint32());if(Y!==void 0)J.productSections.push(Y);continue}case 2:{if(Z!==18)break;J.headerImage=FX.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.businessOwnerJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xX.fromPartial($??{})},fromPartial($){let K=tU();return K.productSections=$.productSections?.map((Q)=>kX.fromPartial(Q))||void 0,K.headerImage=$.headerImage!==void 0&&$.headerImage!==null?FX.fromPartial($.headerImage):void 0,K.businessOwnerJid=$.businessOwnerJid??void 0,K}};function rU(){return{}}var kX={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.products!==void 0&&$.products.length!==0)for(let Q of $.products)PX.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;if(J.products===void 0)J.products=[];let Y=PX.decode(Q,Q.uint32());if(Y!==void 0)J.products.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kX.fromPartial($??{})},fromPartial($){let K=rU();return K.title=$.title??void 0,K.products=$.products?.map((Q)=>PX.fromPartial(Q))||void 0,K}};function aU(){return{}}var NX={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.description!==void 0)K.uint32(18).string($.description);if($.rowId!==void 0)K.uint32(26).string($.rowId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.description=Q.string();continue}case 3:{if(Z!==26)break;J.rowId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NX.fromPartial($??{})},fromPartial($){let K=aU();return K.title=$.title??void 0,K.description=$.description??void 0,K.rowId=$.rowId??void 0,K}};function sU(){return{}}var RX={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.rows!==void 0&&$.rows.length!==0)for(let Q of $.rows)NX.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;if(J.rows===void 0)J.rows=[];let Y=NX.decode(Q,Q.uint32());if(Y!==void 0)J.rows.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RX.fromPartial($??{})},fromPartial($){let K=sU();return K.title=$.title??void 0,K.rows=$.rows?.map((Q)=>NX.fromPartial(Q))||void 0,K}};function eU(){return{}}var BX={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.listType!==void 0)K.uint32(16).int32($.listType);if($.singleSelectReply!==void 0)OX.encode($.singleSelectReply,K.uint32(26).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(34).fork()).join();if($.description!==void 0)K.uint32(42).string($.description);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eU();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==16)break;J.listType=Q.int32();continue}case 3:{if(Z!==26)break;J.singleSelectReply=OX.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.description=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BX.fromPartial($??{})},fromPartial($){let K=eU();return K.title=$.title??void 0,K.listType=$.listType??void 0,K.singleSelectReply=$.singleSelectReply!==void 0&&$.singleSelectReply!==null?OX.fromPartial($.singleSelectReply):void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.description=$.description??void 0,K}};function $7(){return{}}var OX={encode($,K=new H){if($.selectedRowId!==void 0)K.uint32(10).string($.selectedRowId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.selectedRowId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return OX.fromPartial($??{})},fromPartial($){let K=$7();return K.selectedRowId=$.selectedRowId??void 0,K}};function K7(){return{}}var V$={encode($,K=new H){if($.degreesLatitude!==void 0)K.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)K.uint32(17).double($.degreesLongitude);if($.accuracyInMeters!==void 0)K.uint32(24).uint32($.accuracyInMeters);if($.speedInMps!==void 0)K.uint32(37).float($.speedInMps);if($.degreesClockwiseFromMagneticNorth!==void 0)K.uint32(40).uint32($.degreesClockwiseFromMagneticNorth);if($.caption!==void 0)K.uint32(50).string($.caption);if($.sequenceNumber!==void 0)K.uint32(56).int64($.sequenceNumber);if($.timeOffset!==void 0)K.uint32(64).uint32($.timeOffset);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=K7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.degreesLatitude=Q.double();continue}case 2:{if(Z!==17)break;J.degreesLongitude=Q.double();continue}case 3:{if(Z!==24)break;J.accuracyInMeters=Q.uint32();continue}case 4:{if(Z!==37)break;J.speedInMps=Q.float();continue}case 5:{if(Z!==40)break;J.degreesClockwiseFromMagneticNorth=Q.uint32();continue}case 6:{if(Z!==50)break;J.caption=Q.string();continue}case 7:{if(Z!==56)break;J.sequenceNumber=Q.int64Number();continue}case 8:{if(Z!==64)break;J.timeOffset=Q.uint32();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return V$.fromPartial($??{})},fromPartial($){let K=K7();return K.degreesLatitude=$.degreesLatitude??void 0,K.degreesLongitude=$.degreesLongitude??void 0,K.accuracyInMeters=$.accuracyInMeters??void 0,K.speedInMps=$.speedInMps??void 0,K.degreesClockwiseFromMagneticNorth=$.degreesClockwiseFromMagneticNorth??void 0,K.caption=$.caption??void 0,K.sequenceNumber=$.sequenceNumber??void 0,K.timeOffset=$.timeOffset??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function Q7(){return{}}var a={encode($,K=new H){if($.degreesLatitude!==void 0)K.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)K.uint32(17).double($.degreesLongitude);if($.name!==void 0)K.uint32(26).string($.name);if($.address!==void 0)K.uint32(34).string($.address);if($.url!==void 0)K.uint32(42).string($.url);if($.isLive!==void 0)K.uint32(48).bool($.isLive);if($.accuracyInMeters!==void 0)K.uint32(56).uint32($.accuracyInMeters);if($.speedInMps!==void 0)K.uint32(69).float($.speedInMps);if($.degreesClockwiseFromMagneticNorth!==void 0)K.uint32(72).uint32($.degreesClockwiseFromMagneticNorth);if($.comment!==void 0)K.uint32(90).string($.comment);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Q7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.degreesLatitude=Q.double();continue}case 2:{if(Z!==17)break;J.degreesLongitude=Q.double();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}case 4:{if(Z!==34)break;J.address=Q.string();continue}case 5:{if(Z!==42)break;J.url=Q.string();continue}case 6:{if(Z!==48)break;J.isLive=Q.bool();continue}case 7:{if(Z!==56)break;J.accuracyInMeters=Q.uint32();continue}case 8:{if(Z!==69)break;J.speedInMps=Q.float();continue}case 9:{if(Z!==72)break;J.degreesClockwiseFromMagneticNorth=Q.uint32();continue}case 11:{if(Z!==90)break;J.comment=Q.string();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return a.fromPartial($??{})},fromPartial($){let K=Q7();return K.degreesLatitude=$.degreesLatitude??void 0,K.degreesLongitude=$.degreesLongitude??void 0,K.name=$.name??void 0,K.address=$.address??void 0,K.url=$.url??void 0,K.isLive=$.isLive??void 0,K.accuracyInMeters=$.accuracyInMeters??void 0,K.speedInMps=$.speedInMps??void 0,K.degreesClockwiseFromMagneticNorth=$.degreesClockwiseFromMagneticNorth??void 0,K.comment=$.comment??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function Z7(){return{}}var AX={encode($,K=new H){if($.thumbnailDirectPath!==void 0)K.uint32(10).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)K.uint32(18).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)K.uint32(26).bytes($.thumbnailEncSha256);if($.mediaKey!==void 0)K.uint32(34).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)K.uint32(40).int64($.mediaKeyTimestamp);if($.thumbnailHeight!==void 0)K.uint32(48).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)K.uint32(56).uint32($.thumbnailWidth);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Z7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.thumbnailDirectPath=Q.string();continue}case 2:{if(Z!==18)break;J.thumbnailSha256=Q.bytes();continue}case 3:{if(Z!==26)break;J.thumbnailEncSha256=Q.bytes();continue}case 4:{if(Z!==34)break;J.mediaKey=Q.bytes();continue}case 5:{if(Z!==40)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 6:{if(Z!==48)break;J.thumbnailHeight=Q.uint32();continue}case 7:{if(Z!==56)break;J.thumbnailWidth=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AX.fromPartial($??{})},fromPartial($){let K=Z7();return K.thumbnailDirectPath=$.thumbnailDirectPath??void 0,K.thumbnailSha256=$.thumbnailSha256??void 0,K.thumbnailEncSha256=$.thumbnailEncSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.thumbnailHeight=$.thumbnailHeight??void 0,K.thumbnailWidth=$.thumbnailWidth??void 0,K}};function J7(){return{}}var G$={encode($,K=new H){if($.mimetype!==void 0)K.uint32(10).string($.mimetype);if($.fileSha256!==void 0)K.uint32(18).bytes($.fileSha256);if($.mediaKey!==void 0)K.uint32(26).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(34).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(42).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(48).int64($.mediaKeyTimestamp);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(58).fork()).join();if($.messageHistoryMetadata!==void 0)U$.encode($.messageHistoryMetadata,K.uint32(66).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=J7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.mimetype=Q.string();continue}case 2:{if(Z!==18)break;J.fileSha256=Q.bytes();continue}case 3:{if(Z!==26)break;J.mediaKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.fileEncSha256=Q.bytes();continue}case 5:{if(Z!==42)break;J.directPath=Q.string();continue}case 6:{if(Z!==48)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 7:{if(Z!==58)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.messageHistoryMetadata=U$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return G$.fromPartial($??{})},fromPartial($){let K=J7();return K.mimetype=$.mimetype??void 0,K.fileSha256=$.fileSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.messageHistoryMetadata=$.messageHistoryMetadata!==void 0&&$.messageHistoryMetadata!==null?U$.fromPartial($.messageHistoryMetadata):void 0,K}};function X7(){return{}}var U$={encode($,K=new H){if($.historyReceivers!==void 0&&$.historyReceivers.length!==0)for(let Q of $.historyReceivers)K.uint32(10).string(Q);if($.oldestMessageTimestampInWindow!==void 0)K.uint32(16).int64($.oldestMessageTimestampInWindow);if($.messageCount!==void 0)K.uint32(24).int64($.messageCount);if($.nonHistoryReceivers!==void 0&&$.nonHistoryReceivers.length!==0)for(let Q of $.nonHistoryReceivers)K.uint32(34).string(Q);if($.oldestMessageTimestampInBundle!==void 0)K.uint32(40).int64($.oldestMessageTimestampInBundle);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=X7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.historyReceivers===void 0)J.historyReceivers=[];let Y=Q.string();if(Y!==void 0)J.historyReceivers.push(Y);continue}case 2:{if(Z!==16)break;J.oldestMessageTimestampInWindow=Q.int64Number();continue}case 3:{if(Z!==24)break;J.messageCount=Q.int64Number();continue}case 4:{if(Z!==34)break;if(J.nonHistoryReceivers===void 0)J.nonHistoryReceivers=[];let Y=Q.string();if(Y!==void 0)J.nonHistoryReceivers.push(Y);continue}case 5:{if(Z!==40)break;J.oldestMessageTimestampInBundle=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return U$.fromPartial($??{})},fromPartial($){let K=X7();return K.historyReceivers=$.historyReceivers?.map((Q)=>Q)||void 0,K.oldestMessageTimestampInWindow=$.oldestMessageTimestampInWindow??void 0,K.messageCount=$.messageCount??void 0,K.nonHistoryReceivers=$.nonHistoryReceivers?.map((Q)=>Q)||void 0,K.oldestMessageTimestampInBundle=$.oldestMessageTimestampInBundle??void 0,K}};function q7(){return{}}var EX={encode($,K=new H){if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(10).fork()).join();if($.messageHistoryMetadata!==void 0)U$.encode($.messageHistoryMetadata,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=q7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.messageHistoryMetadata=U$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EX.fromPartial($??{})},fromPartial($){let K=q7();return K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.messageHistoryMetadata=$.messageHistoryMetadata!==void 0&&$.messageHistoryMetadata!==null?U$.fromPartial($.messageHistoryMetadata):void 0,K}};function Y7(){return{}}var MX={encode($,K=new H){if($.newsletterJid!==void 0)K.uint32(10).string($.newsletterJid);if($.newsletterName!==void 0)K.uint32(18).string($.newsletterName);if($.jpegThumbnail!==void 0)K.uint32(26).bytes($.jpegThumbnail);if($.caption!==void 0)K.uint32(34).string($.caption);if($.inviteExpiration!==void 0)K.uint32(40).int64($.inviteExpiration);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(50).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Y7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.newsletterJid=Q.string();continue}case 2:{if(Z!==18)break;J.newsletterName=Q.string();continue}case 3:{if(Z!==26)break;J.jpegThumbnail=Q.bytes();continue}case 4:{if(Z!==34)break;J.caption=Q.string();continue}case 5:{if(Z!==40)break;J.inviteExpiration=Q.int64Number();continue}case 6:{if(Z!==50)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MX.fromPartial($??{})},fromPartial($){let K=Y7();return K.newsletterJid=$.newsletterJid??void 0,K.newsletterName=$.newsletterName??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.caption=$.caption??void 0,K.inviteExpiration=$.inviteExpiration??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function H7(){return{}}var WX={encode($,K=new H){if($.newsletterJid!==void 0)K.uint32(10).string($.newsletterJid);if($.newsletterName!==void 0)K.uint32(18).string($.newsletterName);if($.jpegThumbnail!==void 0)K.uint32(26).bytes($.jpegThumbnail);if($.caption!==void 0)K.uint32(34).string($.caption);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=H7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.newsletterJid=Q.string();continue}case 2:{if(Z!==18)break;J.newsletterName=Q.string();continue}case 3:{if(Z!==26)break;J.jpegThumbnail=Q.bytes();continue}case 4:{if(Z!==34)break;J.caption=Q.string();continue}case 5:{if(Z!==42)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return WX.fromPartial($??{})},fromPartial($){let K=H7();return K.newsletterJid=$.newsletterJid??void 0,K.newsletterName=$.newsletterName??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.caption=$.caption??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function z7(){return{}}var IX={encode($,K=new H){if($.orderId!==void 0)K.uint32(10).string($.orderId);if($.thumbnail!==void 0)K.uint32(18).bytes($.thumbnail);if($.itemCount!==void 0)K.uint32(24).int32($.itemCount);if($.status!==void 0)K.uint32(32).int32($.status);if($.surface!==void 0)K.uint32(40).int32($.surface);if($.message!==void 0)K.uint32(50).string($.message);if($.orderTitle!==void 0)K.uint32(58).string($.orderTitle);if($.sellerJid!==void 0)K.uint32(66).string($.sellerJid);if($.token!==void 0)K.uint32(74).string($.token);if($.totalAmount1000!==void 0)K.uint32(80).int64($.totalAmount1000);if($.totalCurrencyCode!==void 0)K.uint32(90).string($.totalCurrencyCode);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.messageVersion!==void 0)K.uint32(96).int32($.messageVersion);if($.orderRequestMessageId!==void 0)x.encode($.orderRequestMessageId,K.uint32(106).fork()).join();if($.catalogType!==void 0)K.uint32(122).string($.catalogType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=z7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.orderId=Q.string();continue}case 2:{if(Z!==18)break;J.thumbnail=Q.bytes();continue}case 3:{if(Z!==24)break;J.itemCount=Q.int32();continue}case 4:{if(Z!==32)break;J.status=Q.int32();continue}case 5:{if(Z!==40)break;J.surface=Q.int32();continue}case 6:{if(Z!==50)break;J.message=Q.string();continue}case 7:{if(Z!==58)break;J.orderTitle=Q.string();continue}case 8:{if(Z!==66)break;J.sellerJid=Q.string();continue}case 9:{if(Z!==74)break;J.token=Q.string();continue}case 10:{if(Z!==80)break;J.totalAmount1000=Q.int64Number();continue}case 11:{if(Z!==90)break;J.totalCurrencyCode=Q.string();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 12:{if(Z!==96)break;J.messageVersion=Q.int32();continue}case 13:{if(Z!==106)break;J.orderRequestMessageId=x.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;J.catalogType=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return IX.fromPartial($??{})},fromPartial($){let K=z7();return K.orderId=$.orderId??void 0,K.thumbnail=$.thumbnail??void 0,K.itemCount=$.itemCount??void 0,K.status=$.status??void 0,K.surface=$.surface??void 0,K.message=$.message??void 0,K.orderTitle=$.orderTitle??void 0,K.sellerJid=$.sellerJid??void 0,K.token=$.token??void 0,K.totalAmount1000=$.totalAmount1000??void 0,K.totalCurrencyCode=$.totalCurrencyCode??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.messageVersion=$.messageVersion??void 0,K.orderRequestMessageId=$.orderRequestMessageId!==void 0&&$.orderRequestMessageId!==null?x.fromPartial($.orderRequestMessageId):void 0,K.catalogType=$.catalogType??void 0,K}};function V7(){return{}}var SX={encode($,K=new H){if($.type!==void 0)K.uint32(8).uint32($.type);if($.platform!==void 0)K.uint32(18).string($.platform);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=V7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.uint32();continue}case 2:{if(Z!==18)break;J.platform=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return SX.fromPartial($??{})},fromPartial($){let K=V7();return K.type=$.type??void 0,K.platform=$.platform??void 0,K}};function G7(){return{}}var vX={encode($,K=new H){if($.serviceType!==void 0)K.uint32(8).int32($.serviceType);if($.expiryTimestamp!==void 0)K.uint32(16).int64($.expiryTimestamp);if($.incentiveEligible!==void 0)K.uint32(24).bool($.incentiveEligible);if($.referralId!==void 0)K.uint32(34).string($.referralId);if($.inviteType!==void 0)K.uint32(40).int32($.inviteType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=G7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.serviceType=Q.int32();continue}case 2:{if(Z!==16)break;J.expiryTimestamp=Q.int64Number();continue}case 3:{if(Z!==24)break;J.incentiveEligible=Q.bool();continue}case 4:{if(Z!==34)break;J.referralId=Q.string();continue}case 5:{if(Z!==40)break;J.inviteType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vX.fromPartial($??{})},fromPartial($){let K=G7();return K.serviceType=$.serviceType??void 0,K.expiryTimestamp=$.expiryTimestamp??void 0,K.incentiveEligible=$.incentiveEligible??void 0,K.referralId=$.referralId??void 0,K.inviteType=$.inviteType??void 0,K}};function U7(){return{}}var C$={encode($,K=new H){if($.button!==void 0)TX.encode($.button,K.uint32(10).fork()).join();if($.header!==void 0)yX.encode($.header,K.uint32(18).fork()).join();if($.provider!==void 0)fX.encode($.provider,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=U7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.button=TX.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.header=yX.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.provider=fX.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return C$.fromPartial($??{})},fromPartial($){let K=U7();return K.button=$.button!==void 0&&$.button!==null?TX.fromPartial($.button):void 0,K.header=$.header!==void 0&&$.header!==null?yX.fromPartial($.header):void 0,K.provider=$.provider!==void 0&&$.provider!==null?fX.fromPartial($.provider):void 0,K}};function C7(){return{}}var TX={encode($,K=new H){if($.displayText!==void 0)K.uint32(10).string($.displayText);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=C7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return TX.fromPartial($??{})},fromPartial($){let K=C7();return K.displayText=$.displayText??void 0,K}};function D7(){return{}}var yX={encode($,K=new H){if($.headerType!==void 0)K.uint32(8).int32($.headerType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=D7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.headerType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yX.fromPartial($??{})},fromPartial($){let K=D7();return K.headerType=$.headerType??void 0,K}};function L7(){return{}}var fX={encode($,K=new H){if($.paramsJson!==void 0)K.uint32(10).string($.paramsJson);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=L7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.paramsJson=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fX.fromPartial($??{})},fromPartial($){let K=L7();return K.paramsJson=$.paramsJson??void 0,K}};function P7(){return{}}var _X={encode($,K=new H){if($.reminderId!==void 0)K.uint32(10).string($.reminderId);if($.instanceId!==void 0)K.uint32(18).string($.instanceId);if($.description!==void 0)K.uint32(26).string($.description);if($.frequency!==void 0)K.uint32(32).int32($.frequency);if($.status!==void 0)K.uint32(40).int32($.status);if($.payeeVpa!==void 0)K.uint32(50).string($.payeeVpa);if($.payeeJid!==void 0)K.uint32(58).string($.payeeJid);if($.payerJid!==void 0)K.uint32(66).string($.payerJid);if($.amount!==void 0)r.encode($.amount,K.uint32(74).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=P7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.reminderId=Q.string();continue}case 2:{if(Z!==18)break;J.instanceId=Q.string();continue}case 3:{if(Z!==26)break;J.description=Q.string();continue}case 4:{if(Z!==32)break;J.frequency=Q.int32();continue}case 5:{if(Z!==40)break;J.status=Q.int32();continue}case 6:{if(Z!==50)break;J.payeeVpa=Q.string();continue}case 7:{if(Z!==58)break;J.payeeJid=Q.string();continue}case 8:{if(Z!==66)break;J.payerJid=Q.string();continue}case 9:{if(Z!==74)break;J.amount=r.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _X.fromPartial($??{})},fromPartial($){let K=P7();return K.reminderId=$.reminderId??void 0,K.instanceId=$.instanceId??void 0,K.description=$.description??void 0,K.frequency=$.frequency??void 0,K.status=$.status??void 0,K.payeeVpa=$.payeeVpa??void 0,K.payeeJid=$.payeeJid??void 0,K.payerJid=$.payerJid??void 0,K.amount=$.amount!==void 0&&$.amount!==null?r.fromPartial($.amount):void 0,K}};function F7(){return{}}var hX={encode($,K=new H){if($.peerDataOperationRequestType!==void 0)K.uint32(8).int32($.peerDataOperationRequestType);if($.requestStickerReupload!==void 0&&$.requestStickerReupload.length!==0)for(let Q of $.requestStickerReupload)oX.encode(Q,K.uint32(18).fork()).join();if($.requestUrlPreview!==void 0&&$.requestUrlPreview.length!==0)for(let Q of $.requestUrlPreview)bX.encode(Q,K.uint32(26).fork()).join();if($.historySyncOnDemandRequest!==void 0)jX.encode($.historySyncOnDemandRequest,K.uint32(34).fork()).join();if($.placeholderMessageResendRequest!==void 0&&$.placeholderMessageResendRequest.length!==0)for(let Q of $.placeholderMessageResendRequest)cX.encode(Q,K.uint32(42).fork()).join();if($.fullHistorySyncOnDemandRequest!==void 0)wX.encode($.fullHistorySyncOnDemandRequest,K.uint32(50).fork()).join();if($.syncdCollectionFatalRecoveryRequest!==void 0)iX.encode($.syncdCollectionFatalRecoveryRequest,K.uint32(58).fork()).join();if($.historySyncChunkRetryRequest!==void 0)dX.encode($.historySyncChunkRetryRequest,K.uint32(66).fork()).join();if($.galaxyFlowAction!==void 0)nX.encode($.galaxyFlowAction,K.uint32(74).fork()).join();if($.companionCanonicalUserNonceFetchRequest!==void 0)uX.encode($.companionCanonicalUserNonceFetchRequest,K.uint32(82).fork()).join();if($.bizBroadcastInsightsContactListRequest!==void 0)lX.encode($.bizBroadcastInsightsContactListRequest,K.uint32(90).fork()).join();if($.bizBroadcastInsightsRefreshRequest!==void 0)pX.encode($.bizBroadcastInsightsRefreshRequest,K.uint32(98).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=F7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.peerDataOperationRequestType=Q.int32();continue}case 2:{if(Z!==18)break;if(J.requestStickerReupload===void 0)J.requestStickerReupload=[];let Y=oX.decode(Q,Q.uint32());if(Y!==void 0)J.requestStickerReupload.push(Y);continue}case 3:{if(Z!==26)break;if(J.requestUrlPreview===void 0)J.requestUrlPreview=[];let Y=bX.decode(Q,Q.uint32());if(Y!==void 0)J.requestUrlPreview.push(Y);continue}case 4:{if(Z!==34)break;J.historySyncOnDemandRequest=jX.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;if(J.placeholderMessageResendRequest===void 0)J.placeholderMessageResendRequest=[];let Y=cX.decode(Q,Q.uint32());if(Y!==void 0)J.placeholderMessageResendRequest.push(Y);continue}case 6:{if(Z!==50)break;J.fullHistorySyncOnDemandRequest=wX.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.syncdCollectionFatalRecoveryRequest=iX.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.historySyncChunkRetryRequest=dX.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.galaxyFlowAction=nX.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.companionCanonicalUserNonceFetchRequest=uX.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.bizBroadcastInsightsContactListRequest=lX.decode(Q,Q.uint32());continue}case 12:{if(Z!==98)break;J.bizBroadcastInsightsRefreshRequest=pX.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hX.fromPartial($??{})},fromPartial($){let K=F7();return K.peerDataOperationRequestType=$.peerDataOperationRequestType??void 0,K.requestStickerReupload=$.requestStickerReupload?.map((Q)=>oX.fromPartial(Q))||void 0,K.requestUrlPreview=$.requestUrlPreview?.map((Q)=>bX.fromPartial(Q))||void 0,K.historySyncOnDemandRequest=$.historySyncOnDemandRequest!==void 0&&$.historySyncOnDemandRequest!==null?jX.fromPartial($.historySyncOnDemandRequest):void 0,K.placeholderMessageResendRequest=$.placeholderMessageResendRequest?.map((Q)=>cX.fromPartial(Q))||void 0,K.fullHistorySyncOnDemandRequest=$.fullHistorySyncOnDemandRequest!==void 0&&$.fullHistorySyncOnDemandRequest!==null?wX.fromPartial($.fullHistorySyncOnDemandRequest):void 0,K.syncdCollectionFatalRecoveryRequest=$.syncdCollectionFatalRecoveryRequest!==void 0&&$.syncdCollectionFatalRecoveryRequest!==null?iX.fromPartial($.syncdCollectionFatalRecoveryRequest):void 0,K.historySyncChunkRetryRequest=$.historySyncChunkRetryRequest!==void 0&&$.historySyncChunkRetryRequest!==null?dX.fromPartial($.historySyncChunkRetryRequest):void 0,K.galaxyFlowAction=$.galaxyFlowAction!==void 0&&$.galaxyFlowAction!==null?nX.fromPartial($.galaxyFlowAction):void 0,K.companionCanonicalUserNonceFetchRequest=$.companionCanonicalUserNonceFetchRequest!==void 0&&$.companionCanonicalUserNonceFetchRequest!==null?uX.fromPartial($.companionCanonicalUserNonceFetchRequest):void 0,K.bizBroadcastInsightsContactListRequest=$.bizBroadcastInsightsContactListRequest!==void 0&&$.bizBroadcastInsightsContactListRequest!==null?lX.fromPartial($.bizBroadcastInsightsContactListRequest):void 0,K.bizBroadcastInsightsRefreshRequest=$.bizBroadcastInsightsRefreshRequest!==void 0&&$.bizBroadcastInsightsRefreshRequest!==null?pX.fromPartial($.bizBroadcastInsightsRefreshRequest):void 0,K}};function x7(){return{}}var lX={encode($,K=new H){if($.campaignId!==void 0)K.uint32(10).string($.campaignId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=x7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.campaignId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lX.fromPartial($??{})},fromPartial($){let K=x7();return K.campaignId=$.campaignId??void 0,K}};function k7(){return{}}var pX={encode($,K=new H){if($.campaignId!==void 0)K.uint32(10).string($.campaignId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=k7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.campaignId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pX.fromPartial($??{})},fromPartial($){let K=k7();return K.campaignId=$.campaignId??void 0,K}};function N7(){return{}}var uX={encode($,K=new H){if($.registrationTraceId!==void 0)K.uint32(10).string($.registrationTraceId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=N7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.registrationTraceId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uX.fromPartial($??{})},fromPartial($){let K=N7();return K.registrationTraceId=$.registrationTraceId??void 0,K}};function R7(){return{}}var wX={encode($,K=new H){if($.requestMetadata!==void 0)x0.encode($.requestMetadata,K.uint32(10).fork()).join();if($.historySyncConfig!==void 0)X$.encode($.historySyncConfig,K.uint32(18).fork()).join();if($.fullHistorySyncOnDemandConfig!==void 0)bJ.encode($.fullHistorySyncOnDemandConfig,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=R7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.requestMetadata=x0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.historySyncConfig=X$.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.fullHistorySyncOnDemandConfig=bJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wX.fromPartial($??{})},fromPartial($){let K=R7();return K.requestMetadata=$.requestMetadata!==void 0&&$.requestMetadata!==null?x0.fromPartial($.requestMetadata):void 0,K.historySyncConfig=$.historySyncConfig!==void 0&&$.historySyncConfig!==null?X$.fromPartial($.historySyncConfig):void 0,K.fullHistorySyncOnDemandConfig=$.fullHistorySyncOnDemandConfig!==void 0&&$.fullHistorySyncOnDemandConfig!==null?bJ.fromPartial($.fullHistorySyncOnDemandConfig):void 0,K}};function B7(){return{}}var nX={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.flowId!==void 0)K.uint32(18).string($.flowId);if($.stanzaId!==void 0)K.uint32(26).string($.stanzaId);if($.galaxyFlowDownloadRequestId!==void 0)K.uint32(34).string($.galaxyFlowDownloadRequestId);if($.agmId!==void 0)K.uint32(42).string($.agmId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=B7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.flowId=Q.string();continue}case 3:{if(Z!==26)break;J.stanzaId=Q.string();continue}case 4:{if(Z!==34)break;J.galaxyFlowDownloadRequestId=Q.string();continue}case 5:{if(Z!==42)break;J.agmId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nX.fromPartial($??{})},fromPartial($){let K=B7();return K.type=$.type??void 0,K.flowId=$.flowId??void 0,K.stanzaId=$.stanzaId??void 0,K.galaxyFlowDownloadRequestId=$.galaxyFlowDownloadRequestId??void 0,K.agmId=$.agmId??void 0,K}};function O7(){return{}}var dX={encode($,K=new H){if($.syncType!==void 0)K.uint32(8).int32($.syncType);if($.chunkOrder!==void 0)K.uint32(16).uint32($.chunkOrder);if($.chunkNotificationId!==void 0)K.uint32(26).string($.chunkNotificationId);if($.regenerateChunk!==void 0)K.uint32(32).bool($.regenerateChunk);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=O7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.syncType=Q.int32();continue}case 2:{if(Z!==16)break;J.chunkOrder=Q.uint32();continue}case 3:{if(Z!==26)break;J.chunkNotificationId=Q.string();continue}case 4:{if(Z!==32)break;J.regenerateChunk=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dX.fromPartial($??{})},fromPartial($){let K=O7();return K.syncType=$.syncType??void 0,K.chunkOrder=$.chunkOrder??void 0,K.chunkNotificationId=$.chunkNotificationId??void 0,K.regenerateChunk=$.regenerateChunk??void 0,K}};function A7(){return{}}var jX={encode($,K=new H){if($.chatJid!==void 0)K.uint32(10).string($.chatJid);if($.oldestMsgId!==void 0)K.uint32(18).string($.oldestMsgId);if($.oldestMsgFromMe!==void 0)K.uint32(24).bool($.oldestMsgFromMe);if($.onDemandMsgCount!==void 0)K.uint32(32).int32($.onDemandMsgCount);if($.oldestMsgTimestampMs!==void 0)K.uint32(40).int64($.oldestMsgTimestampMs);if($.accountLid!==void 0)K.uint32(50).string($.accountLid);if($.supportInlineResponse!==void 0)K.uint32(56).bool($.supportInlineResponse);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=A7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.chatJid=Q.string();continue}case 2:{if(Z!==18)break;J.oldestMsgId=Q.string();continue}case 3:{if(Z!==24)break;J.oldestMsgFromMe=Q.bool();continue}case 4:{if(Z!==32)break;J.onDemandMsgCount=Q.int32();continue}case 5:{if(Z!==40)break;J.oldestMsgTimestampMs=Q.int64Number();continue}case 6:{if(Z!==50)break;J.accountLid=Q.string();continue}case 7:{if(Z!==56)break;J.supportInlineResponse=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jX.fromPartial($??{})},fromPartial($){let K=A7();return K.chatJid=$.chatJid??void 0,K.oldestMsgId=$.oldestMsgId??void 0,K.oldestMsgFromMe=$.oldestMsgFromMe??void 0,K.onDemandMsgCount=$.onDemandMsgCount??void 0,K.oldestMsgTimestampMs=$.oldestMsgTimestampMs??void 0,K.accountLid=$.accountLid??void 0,K.supportInlineResponse=$.supportInlineResponse??void 0,K}};function E7(){return{}}var cX={encode($,K=new H){if($.messageKey!==void 0)x.encode($.messageKey,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=E7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageKey=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cX.fromPartial($??{})},fromPartial($){let K=E7();return K.messageKey=$.messageKey!==void 0&&$.messageKey!==null?x.fromPartial($.messageKey):void 0,K}};function M7(){return{}}var oX={encode($,K=new H){if($.fileSha256!==void 0)K.uint32(10).string($.fileSha256);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=M7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fileSha256=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oX.fromPartial($??{})},fromPartial($){let K=M7();return K.fileSha256=$.fileSha256??void 0,K}};function W7(){return{}}var bX={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.includeHqThumbnail!==void 0)K.uint32(16).bool($.includeHqThumbnail);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=W7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==16)break;J.includeHqThumbnail=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bX.fromPartial($??{})},fromPartial($){let K=W7();return K.url=$.url??void 0,K.includeHqThumbnail=$.includeHqThumbnail??void 0,K}};function I7(){return{}}var iX={encode($,K=new H){if($.collectionName!==void 0)K.uint32(10).string($.collectionName);if($.timestamp!==void 0)K.uint32(16).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=I7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.collectionName=Q.string();continue}case 2:{if(Z!==16)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iX.fromPartial($??{})},fromPartial($){let K=I7();return K.collectionName=$.collectionName??void 0,K.timestamp=$.timestamp??void 0,K}};function S7(){return{}}var mX={encode($,K=new H){if($.peerDataOperationRequestType!==void 0)K.uint32(8).int32($.peerDataOperationRequestType);if($.stanzaId!==void 0)K.uint32(18).string($.stanzaId);if($.peerDataOperationResult!==void 0&&$.peerDataOperationResult.length!==0)for(let Q of $.peerDataOperationResult)gX.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=S7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.peerDataOperationRequestType=Q.int32();continue}case 2:{if(Z!==18)break;J.stanzaId=Q.string();continue}case 3:{if(Z!==26)break;if(J.peerDataOperationResult===void 0)J.peerDataOperationResult=[];let Y=gX.decode(Q,Q.uint32());if(Y!==void 0)J.peerDataOperationResult.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mX.fromPartial($??{})},fromPartial($){let K=S7();return K.peerDataOperationRequestType=$.peerDataOperationRequestType??void 0,K.stanzaId=$.stanzaId??void 0,K.peerDataOperationResult=$.peerDataOperationResult?.map((Q)=>gX.fromPartial(Q))||void 0,K}};function v7(){return{}}var gX={encode($,K=new H){if($.mediaUploadResult!==void 0)K.uint32(8).int32($.mediaUploadResult);if($.stickerMessage!==void 0)L$.encode($.stickerMessage,K.uint32(18).fork()).join();if($.linkPreviewResponse!==void 0)Q8.encode($.linkPreviewResponse,K.uint32(26).fork()).join();if($.placeholderMessageResendResponse!==void 0)X8.encode($.placeholderMessageResendResponse,K.uint32(34).fork()).join();if($.waffleNonceFetchRequestResponse!==void 0)Y8.encode($.waffleNonceFetchRequestResponse,K.uint32(42).fork()).join();if($.fullHistorySyncOnDemandRequestResponse!==void 0)$8.encode($.fullHistorySyncOnDemandRequestResponse,K.uint32(50).fork()).join();if($.companionMetaNonceFetchRequestResponse!==void 0)sX.encode($.companionMetaNonceFetchRequestResponse,K.uint32(58).fork()).join();if($.syncdSnapshotFatalRecoveryResponse!==void 0)q8.encode($.syncdSnapshotFatalRecoveryResponse,K.uint32(66).fork()).join();if($.companionCanonicalUserNonceFetchRequestResponse!==void 0)aX.encode($.companionCanonicalUserNonceFetchRequestResponse,K.uint32(74).fork()).join();if($.historySyncChunkRetryResponse!==void 0)K8.encode($.historySyncChunkRetryResponse,K.uint32(82).fork()).join();if($.flowResponsesCsvBundle!==void 0)eX.encode($.flowResponsesCsvBundle,K.uint32(90).fork()).join();if($.bizBroadcastInsightsContactListResponse!==void 0)tX.encode($.bizBroadcastInsightsContactListResponse,K.uint32(98).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=v7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.mediaUploadResult=Q.int32();continue}case 2:{if(Z!==18)break;J.stickerMessage=L$.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.linkPreviewResponse=Q8.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.placeholderMessageResendResponse=X8.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.waffleNonceFetchRequestResponse=Y8.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.fullHistorySyncOnDemandRequestResponse=$8.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.companionMetaNonceFetchRequestResponse=sX.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.syncdSnapshotFatalRecoveryResponse=q8.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.companionCanonicalUserNonceFetchRequestResponse=aX.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.historySyncChunkRetryResponse=K8.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.flowResponsesCsvBundle=eX.decode(Q,Q.uint32());continue}case 12:{if(Z!==98)break;J.bizBroadcastInsightsContactListResponse=tX.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gX.fromPartial($??{})},fromPartial($){let K=v7();return K.mediaUploadResult=$.mediaUploadResult??void 0,K.stickerMessage=$.stickerMessage!==void 0&&$.stickerMessage!==null?L$.fromPartial($.stickerMessage):void 0,K.linkPreviewResponse=$.linkPreviewResponse!==void 0&&$.linkPreviewResponse!==null?Q8.fromPartial($.linkPreviewResponse):void 0,K.placeholderMessageResendResponse=$.placeholderMessageResendResponse!==void 0&&$.placeholderMessageResendResponse!==null?X8.fromPartial($.placeholderMessageResendResponse):void 0,K.waffleNonceFetchRequestResponse=$.waffleNonceFetchRequestResponse!==void 0&&$.waffleNonceFetchRequestResponse!==null?Y8.fromPartial($.waffleNonceFetchRequestResponse):void 0,K.fullHistorySyncOnDemandRequestResponse=$.fullHistorySyncOnDemandRequestResponse!==void 0&&$.fullHistorySyncOnDemandRequestResponse!==null?$8.fromPartial($.fullHistorySyncOnDemandRequestResponse):void 0,K.companionMetaNonceFetchRequestResponse=$.companionMetaNonceFetchRequestResponse!==void 0&&$.companionMetaNonceFetchRequestResponse!==null?sX.fromPartial($.companionMetaNonceFetchRequestResponse):void 0,K.syncdSnapshotFatalRecoveryResponse=$.syncdSnapshotFatalRecoveryResponse!==void 0&&$.syncdSnapshotFatalRecoveryResponse!==null?q8.fromPartial($.syncdSnapshotFatalRecoveryResponse):void 0,K.companionCanonicalUserNonceFetchRequestResponse=$.companionCanonicalUserNonceFetchRequestResponse!==void 0&&$.companionCanonicalUserNonceFetchRequestResponse!==null?aX.fromPartial($.companionCanonicalUserNonceFetchRequestResponse):void 0,K.historySyncChunkRetryResponse=$.historySyncChunkRetryResponse!==void 0&&$.historySyncChunkRetryResponse!==null?K8.fromPartial($.historySyncChunkRetryResponse):void 0,K.flowResponsesCsvBundle=$.flowResponsesCsvBundle!==void 0&&$.flowResponsesCsvBundle!==null?eX.fromPartial($.flowResponsesCsvBundle):void 0,K.bizBroadcastInsightsContactListResponse=$.bizBroadcastInsightsContactListResponse!==void 0&&$.bizBroadcastInsightsContactListResponse!==null?tX.fromPartial($.bizBroadcastInsightsContactListResponse):void 0,K}};function T7(){return{}}var tX={encode($,K=new H){if($.campaignId!==void 0)K.uint32(10).string($.campaignId);if($.timestampMs!==void 0)K.uint32(16).int64($.timestampMs);if($.contacts!==void 0&&$.contacts.length!==0)for(let Q of $.contacts)rX.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=T7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.campaignId=Q.string();continue}case 2:{if(Z!==16)break;J.timestampMs=Q.int64Number();continue}case 3:{if(Z!==26)break;if(J.contacts===void 0)J.contacts=[];let Y=rX.decode(Q,Q.uint32());if(Y!==void 0)J.contacts.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tX.fromPartial($??{})},fromPartial($){let K=T7();return K.campaignId=$.campaignId??void 0,K.timestampMs=$.timestampMs??void 0,K.contacts=$.contacts?.map((Q)=>rX.fromPartial(Q))||void 0,K}};function y7(){return{}}var rX={encode($,K=new H){if($.contactJid!==void 0)K.uint32(10).string($.contactJid);if($.state!==void 0)K.uint32(16).int32($.state);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=y7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.contactJid=Q.string();continue}case 2:{if(Z!==16)break;J.state=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rX.fromPartial($??{})},fromPartial($){let K=y7();return K.contactJid=$.contactJid??void 0,K.state=$.state??void 0,K}};function f7(){return{}}var aX={encode($,K=new H){if($.nonce!==void 0)K.uint32(10).string($.nonce);if($.waFbid!==void 0)K.uint32(18).string($.waFbid);if($.forceRefresh!==void 0)K.uint32(24).bool($.forceRefresh);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=f7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.nonce=Q.string();continue}case 2:{if(Z!==18)break;J.waFbid=Q.string();continue}case 3:{if(Z!==24)break;J.forceRefresh=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aX.fromPartial($??{})},fromPartial($){let K=f7();return K.nonce=$.nonce??void 0,K.waFbid=$.waFbid??void 0,K.forceRefresh=$.forceRefresh??void 0,K}};function _7(){return{}}var sX={encode($,K=new H){if($.nonce!==void 0)K.uint32(10).string($.nonce);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.nonce=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sX.fromPartial($??{})},fromPartial($){let K=_7();return K.nonce=$.nonce??void 0,K}};function h7(){return{}}var eX={encode($,K=new H){if($.flowId!==void 0)K.uint32(10).string($.flowId);if($.galaxyFlowDownloadRequestId!==void 0)K.uint32(18).string($.galaxyFlowDownloadRequestId);if($.fileName!==void 0)K.uint32(26).string($.fileName);if($.mimetype!==void 0)K.uint32(34).string($.mimetype);if($.fileSha256!==void 0)K.uint32(42).bytes($.fileSha256);if($.mediaKey!==void 0)K.uint32(50).bytes($.mediaKey);if($.fileEncSha256!==void 0)K.uint32(58).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(66).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(72).int64($.mediaKeyTimestamp);if($.fileLength!==void 0)K.uint32(80).uint64($.fileLength);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=h7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.flowId=Q.string();continue}case 2:{if(Z!==18)break;J.galaxyFlowDownloadRequestId=Q.string();continue}case 3:{if(Z!==26)break;J.fileName=Q.string();continue}case 4:{if(Z!==34)break;J.mimetype=Q.string();continue}case 5:{if(Z!==42)break;J.fileSha256=Q.bytes();continue}case 6:{if(Z!==50)break;J.mediaKey=Q.bytes();continue}case 7:{if(Z!==58)break;J.fileEncSha256=Q.bytes();continue}case 8:{if(Z!==66)break;J.directPath=Q.string();continue}case 9:{if(Z!==72)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 10:{if(Z!==80)break;J.fileLength=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eX.fromPartial($??{})},fromPartial($){let K=h7();return K.flowId=$.flowId??void 0,K.galaxyFlowDownloadRequestId=$.galaxyFlowDownloadRequestId??void 0,K.fileName=$.fileName??void 0,K.mimetype=$.mimetype??void 0,K.fileSha256=$.fileSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.fileLength=$.fileLength??void 0,K}};function l7(){return{}}var $8={encode($,K=new H){if($.requestMetadata!==void 0)x0.encode($.requestMetadata,K.uint32(10).fork()).join();if($.responseCode!==void 0)K.uint32(16).int32($.responseCode);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=l7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.requestMetadata=x0.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.responseCode=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $8.fromPartial($??{})},fromPartial($){let K=l7();return K.requestMetadata=$.requestMetadata!==void 0&&$.requestMetadata!==null?x0.fromPartial($.requestMetadata):void 0,K.responseCode=$.responseCode??void 0,K}};function p7(){return{}}var K8={encode($,K=new H){if($.syncType!==void 0)K.uint32(8).int32($.syncType);if($.chunkOrder!==void 0)K.uint32(16).uint32($.chunkOrder);if($.requestId!==void 0)K.uint32(26).string($.requestId);if($.responseCode!==void 0)K.uint32(32).int32($.responseCode);if($.canRecover!==void 0)K.uint32(40).bool($.canRecover);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=p7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.syncType=Q.int32();continue}case 2:{if(Z!==16)break;J.chunkOrder=Q.uint32();continue}case 3:{if(Z!==26)break;J.requestId=Q.string();continue}case 4:{if(Z!==32)break;J.responseCode=Q.int32();continue}case 5:{if(Z!==40)break;J.canRecover=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return K8.fromPartial($??{})},fromPartial($){let K=p7();return K.syncType=$.syncType??void 0,K.chunkOrder=$.chunkOrder??void 0,K.requestId=$.requestId??void 0,K.responseCode=$.responseCode??void 0,K.canRecover=$.canRecover??void 0,K}};function u7(){return{}}var Q8={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.title!==void 0)K.uint32(18).string($.title);if($.description!==void 0)K.uint32(26).string($.description);if($.thumbData!==void 0)K.uint32(34).bytes($.thumbData);if($.matchText!==void 0)K.uint32(50).string($.matchText);if($.previewType!==void 0)K.uint32(58).string($.previewType);if($.hqThumbnail!==void 0)Z8.encode($.hqThumbnail,K.uint32(66).fork()).join();if($.previewMetadata!==void 0)J8.encode($.previewMetadata,K.uint32(74).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=u7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.title=Q.string();continue}case 3:{if(Z!==26)break;J.description=Q.string();continue}case 4:{if(Z!==34)break;J.thumbData=Q.bytes();continue}case 6:{if(Z!==50)break;J.matchText=Q.string();continue}case 7:{if(Z!==58)break;J.previewType=Q.string();continue}case 8:{if(Z!==66)break;J.hqThumbnail=Z8.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.previewMetadata=J8.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Q8.fromPartial($??{})},fromPartial($){let K=u7();return K.url=$.url??void 0,K.title=$.title??void 0,K.description=$.description??void 0,K.thumbData=$.thumbData??void 0,K.matchText=$.matchText??void 0,K.previewType=$.previewType??void 0,K.hqThumbnail=$.hqThumbnail!==void 0&&$.hqThumbnail!==null?Z8.fromPartial($.hqThumbnail):void 0,K.previewMetadata=$.previewMetadata!==void 0&&$.previewMetadata!==null?J8.fromPartial($.previewMetadata):void 0,K}};function w7(){return{}}var Z8={encode($,K=new H){if($.directPath!==void 0)K.uint32(10).string($.directPath);if($.thumbHash!==void 0)K.uint32(18).string($.thumbHash);if($.encThumbHash!==void 0)K.uint32(26).string($.encThumbHash);if($.mediaKey!==void 0)K.uint32(34).bytes($.mediaKey);if($.mediaKeyTimestampMs!==void 0)K.uint32(40).int64($.mediaKeyTimestampMs);if($.thumbWidth!==void 0)K.uint32(48).int32($.thumbWidth);if($.thumbHeight!==void 0)K.uint32(56).int32($.thumbHeight);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=w7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.directPath=Q.string();continue}case 2:{if(Z!==18)break;J.thumbHash=Q.string();continue}case 3:{if(Z!==26)break;J.encThumbHash=Q.string();continue}case 4:{if(Z!==34)break;J.mediaKey=Q.bytes();continue}case 5:{if(Z!==40)break;J.mediaKeyTimestampMs=Q.int64Number();continue}case 6:{if(Z!==48)break;J.thumbWidth=Q.int32();continue}case 7:{if(Z!==56)break;J.thumbHeight=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Z8.fromPartial($??{})},fromPartial($){let K=w7();return K.directPath=$.directPath??void 0,K.thumbHash=$.thumbHash??void 0,K.encThumbHash=$.encThumbHash??void 0,K.mediaKey=$.mediaKey??void 0,K.mediaKeyTimestampMs=$.mediaKeyTimestampMs??void 0,K.thumbWidth=$.thumbWidth??void 0,K.thumbHeight=$.thumbHeight??void 0,K}};function n7(){return{}}var J8={encode($,K=new H){if($.isBusinessVerified!==void 0)K.uint32(8).bool($.isBusinessVerified);if($.providerName!==void 0)K.uint32(18).string($.providerName);if($.amount!==void 0)K.uint32(26).string($.amount);if($.offset!==void 0)K.uint32(34).string($.offset);if($.currency!==void 0)K.uint32(42).string($.currency);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=n7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isBusinessVerified=Q.bool();continue}case 2:{if(Z!==18)break;J.providerName=Q.string();continue}case 3:{if(Z!==26)break;J.amount=Q.string();continue}case 4:{if(Z!==34)break;J.offset=Q.string();continue}case 5:{if(Z!==42)break;J.currency=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return J8.fromPartial($??{})},fromPartial($){let K=n7();return K.isBusinessVerified=$.isBusinessVerified??void 0,K.providerName=$.providerName??void 0,K.amount=$.amount??void 0,K.offset=$.offset??void 0,K.currency=$.currency??void 0,K}};function d7(){return{}}var X8={encode($,K=new H){if($.webMessageInfoBytes!==void 0)K.uint32(10).bytes($.webMessageInfoBytes);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=d7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.webMessageInfoBytes=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return X8.fromPartial($??{})},fromPartial($){let K=d7();return K.webMessageInfoBytes=$.webMessageInfoBytes??void 0,K}};function j7(){return{}}var q8={encode($,K=new H){if($.collectionSnapshot!==void 0)K.uint32(10).bytes($.collectionSnapshot);if($.isCompressed!==void 0)K.uint32(16).bool($.isCompressed);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=j7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.collectionSnapshot=Q.bytes();continue}case 2:{if(Z!==16)break;J.isCompressed=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return q8.fromPartial($??{})},fromPartial($){let K=j7();return K.collectionSnapshot=$.collectionSnapshot??void 0,K.isCompressed=$.isCompressed??void 0,K}};function c7(){return{}}var Y8={encode($,K=new H){if($.nonce!==void 0)K.uint32(10).string($.nonce);if($.waEntFbid!==void 0)K.uint32(18).string($.waEntFbid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=c7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.nonce=Q.string();continue}case 2:{if(Z!==18)break;J.waEntFbid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Y8.fromPartial($??{})},fromPartial($){let K=c7();return K.nonce=$.nonce??void 0,K.waEntFbid=$.waEntFbid??void 0,K}};function o7(){return{}}var H8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.type!==void 0)K.uint32(16).int32($.type);if($.senderTimestampMs!==void 0)K.uint32(24).int64($.senderTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=o7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.type=Q.int32();continue}case 3:{if(Z!==24)break;J.senderTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return H8.fromPartial($??{})},fromPartial($){let K=o7();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.type=$.type??void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K}};function b7(){return{}}var z8={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=b7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return z8.fromPartial($??{})},fromPartial($){let K=b7();return K.type=$.type??void 0,K}};function i7(){return{}}var V8={encode($,K=new H){if($.pollCreationMessageKey!==void 0)x.encode($.pollCreationMessageKey,K.uint32(10).fork()).join();if($.addOption!==void 0)G0.encode($.addOption,K.uint32(18).fork()).join();if($.metadata!==void 0)N0.encode($.metadata,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=i7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pollCreationMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.addOption=G0.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.metadata=N0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return V8.fromPartial($??{})},fromPartial($){let K=i7();return K.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?x.fromPartial($.pollCreationMessageKey):void 0,K.addOption=$.addOption!==void 0&&$.addOption!==null?G0.fromPartial($.addOption):void 0,K.metadata=$.metadata!==void 0&&$.metadata!==null?N0.fromPartial($.metadata):void 0,K}};function m7(){return{}}var e={encode($,K=new H){if($.encKey!==void 0)K.uint32(10).bytes($.encKey);if($.name!==void 0)K.uint32(18).string($.name);if($.options!==void 0&&$.options.length!==0)for(let Q of $.options)G0.encode(Q,K.uint32(26).fork()).join();if($.selectableOptionsCount!==void 0)K.uint32(32).uint32($.selectableOptionsCount);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(42).fork()).join();if($.pollContentType!==void 0)K.uint32(48).int32($.pollContentType);if($.pollType!==void 0)K.uint32(56).int32($.pollType);if($.correctAnswer!==void 0)G0.encode($.correctAnswer,K.uint32(66).fork()).join();if($.endTime!==void 0)K.uint32(72).int64($.endTime);if($.hideParticipantName!==void 0)K.uint32(80).bool($.hideParticipantName);if($.allowAddOption!==void 0)K.uint32(88).bool($.allowAddOption);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=m7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.name=Q.string();continue}case 3:{if(Z!==26)break;if(J.options===void 0)J.options=[];let Y=G0.decode(Q,Q.uint32());if(Y!==void 0)J.options.push(Y);continue}case 4:{if(Z!==32)break;J.selectableOptionsCount=Q.uint32();continue}case 5:{if(Z!==42)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 6:{if(Z!==48)break;J.pollContentType=Q.int32();continue}case 7:{if(Z!==56)break;J.pollType=Q.int32();continue}case 8:{if(Z!==66)break;J.correctAnswer=G0.decode(Q,Q.uint32());continue}case 9:{if(Z!==72)break;J.endTime=Q.int64Number();continue}case 10:{if(Z!==80)break;J.hideParticipantName=Q.bool();continue}case 11:{if(Z!==88)break;J.allowAddOption=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return e.fromPartial($??{})},fromPartial($){let K=m7();return K.encKey=$.encKey??void 0,K.name=$.name??void 0,K.options=$.options?.map((Q)=>G0.fromPartial(Q))||void 0,K.selectableOptionsCount=$.selectableOptionsCount??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.pollContentType=$.pollContentType??void 0,K.pollType=$.pollType??void 0,K.correctAnswer=$.correctAnswer!==void 0&&$.correctAnswer!==null?G0.fromPartial($.correctAnswer):void 0,K.endTime=$.endTime??void 0,K.hideParticipantName=$.hideParticipantName??void 0,K.allowAddOption=$.allowAddOption??void 0,K}};function g7(){return{}}var G0={encode($,K=new H){if($.optionName!==void 0)K.uint32(10).string($.optionName);if($.optionHash!==void 0)K.uint32(18).string($.optionHash);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=g7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.optionName=Q.string();continue}case 2:{if(Z!==18)break;J.optionHash=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return G0.fromPartial($??{})},fromPartial($){let K=g7();return K.optionName=$.optionName??void 0,K.optionHash=$.optionHash??void 0,K}};function t7(){return{}}var G8={encode($,K=new H){if($.encPayload!==void 0)K.uint32(10).bytes($.encPayload);if($.encIv!==void 0)K.uint32(18).bytes($.encIv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=t7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encPayload=Q.bytes();continue}case 2:{if(Z!==18)break;J.encIv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return G8.fromPartial($??{})},fromPartial($){let K=t7();return K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K}};function r7(){return{}}var n0={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.pollVotes!==void 0&&$.pollVotes.length!==0)for(let Q of $.pollVotes)U8.encode(Q,K.uint32(18).fork()).join();if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(26).fork()).join();if($.pollType!==void 0)K.uint32(32).int32($.pollType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=r7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==18)break;if(J.pollVotes===void 0)J.pollVotes=[];let Y=U8.decode(Q,Q.uint32());if(Y!==void 0)J.pollVotes.push(Y);continue}case 3:{if(Z!==26)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 4:{if(Z!==32)break;J.pollType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return n0.fromPartial($??{})},fromPartial($){let K=r7();return K.name=$.name??void 0,K.pollVotes=$.pollVotes?.map((Q)=>U8.fromPartial(Q))||void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.pollType=$.pollType??void 0,K}};function a7(){return{}}var U8={encode($,K=new H){if($.optionName!==void 0)K.uint32(10).string($.optionName);if($.optionVoteCount!==void 0)K.uint32(16).int64($.optionVoteCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=a7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.optionName=Q.string();continue}case 2:{if(Z!==16)break;J.optionVoteCount=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return U8.fromPartial($??{})},fromPartial($){let K=a7();return K.optionName=$.optionName??void 0,K.optionVoteCount=$.optionVoteCount??void 0,K}};function s7(){return{}}var C8={encode($,K=new H){if($.pollCreationMessageKey!==void 0)x.encode($.pollCreationMessageKey,K.uint32(10).fork()).join();if($.vote!==void 0)G8.encode($.vote,K.uint32(18).fork()).join();if($.metadata!==void 0)N0.encode($.metadata,K.uint32(26).fork()).join();if($.senderTimestampMs!==void 0)K.uint32(32).int64($.senderTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=s7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pollCreationMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.vote=G8.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.metadata=N0.decode(Q,Q.uint32());continue}case 4:{if(Z!==32)break;J.senderTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return C8.fromPartial($??{})},fromPartial($){let K=s7();return K.pollCreationMessageKey=$.pollCreationMessageKey!==void 0&&$.pollCreationMessageKey!==null?x.fromPartial($.pollCreationMessageKey):void 0,K.vote=$.vote!==void 0&&$.vote!==null?G8.fromPartial($.vote):void 0,K.metadata=$.metadata!==void 0&&$.metadata!==null?N0.fromPartial($.metadata):void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K}};function e7(){return{}}var N0={encode($,K=new H){if($.pollNameHash!==void 0)K.uint32(10).bytes($.pollNameHash);if($.lastEditStanzaId!==void 0)K.uint32(18).string($.lastEditStanzaId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=e7();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pollNameHash=Q.bytes();continue}case 2:{if(Z!==18)break;J.lastEditStanzaId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return N0.fromPartial($??{})},fromPartial($){let K=e7();return K.pollNameHash=$.pollNameHash??void 0,K.lastEditStanzaId=$.lastEditStanzaId??void 0,K}};function $C(){return{}}var I0={encode($,K=new H){if($.selectedOptions!==void 0&&$.selectedOptions.length!==0)for(let Q of $.selectedOptions)K.uint32(10).bytes(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$C();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.selectedOptions===void 0)J.selectedOptions=[];let Y=Q.bytes();if(Y!==void 0)J.selectedOptions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return I0.fromPartial($??{})},fromPartial($){let K=$C();return K.selectedOptions=$.selectedOptions?.map((Q)=>Q)||void 0,K}};function KC(){return{}}var D$={encode($,K=new H){if($.product!==void 0)L8.encode($.product,K.uint32(10).fork()).join();if($.businessOwnerJid!==void 0)K.uint32(18).string($.businessOwnerJid);if($.catalog!==void 0)D8.encode($.catalog,K.uint32(34).fork()).join();if($.body!==void 0)K.uint32(42).string($.body);if($.footer!==void 0)K.uint32(50).string($.footer);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.product=L8.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.businessOwnerJid=Q.string();continue}case 4:{if(Z!==34)break;J.catalog=D8.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.body=Q.string();continue}case 6:{if(Z!==50)break;J.footer=Q.string();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return D$.fromPartial($??{})},fromPartial($){let K=KC();return K.product=$.product!==void 0&&$.product!==null?L8.fromPartial($.product):void 0,K.businessOwnerJid=$.businessOwnerJid??void 0,K.catalog=$.catalog!==void 0&&$.catalog!==null?D8.fromPartial($.catalog):void 0,K.body=$.body??void 0,K.footer=$.footer??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function QC(){return{}}var D8={encode($,K=new H){if($.catalogImage!==void 0)i.encode($.catalogImage,K.uint32(10).fork()).join();if($.title!==void 0)K.uint32(18).string($.title);if($.description!==void 0)K.uint32(26).string($.description);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.catalogImage=i.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.title=Q.string();continue}case 3:{if(Z!==26)break;J.description=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return D8.fromPartial($??{})},fromPartial($){let K=QC();return K.catalogImage=$.catalogImage!==void 0&&$.catalogImage!==null?i.fromPartial($.catalogImage):void 0,K.title=$.title??void 0,K.description=$.description??void 0,K}};function ZC(){return{}}var L8={encode($,K=new H){if($.productImage!==void 0)i.encode($.productImage,K.uint32(10).fork()).join();if($.productId!==void 0)K.uint32(18).string($.productId);if($.title!==void 0)K.uint32(26).string($.title);if($.description!==void 0)K.uint32(34).string($.description);if($.currencyCode!==void 0)K.uint32(42).string($.currencyCode);if($.priceAmount1000!==void 0)K.uint32(48).int64($.priceAmount1000);if($.retailerId!==void 0)K.uint32(58).string($.retailerId);if($.url!==void 0)K.uint32(66).string($.url);if($.productImageCount!==void 0)K.uint32(72).uint32($.productImageCount);if($.firstImageId!==void 0)K.uint32(90).string($.firstImageId);if($.salePriceAmount1000!==void 0)K.uint32(96).int64($.salePriceAmount1000);if($.signedUrl!==void 0)K.uint32(106).string($.signedUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.productImage=i.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.productId=Q.string();continue}case 3:{if(Z!==26)break;J.title=Q.string();continue}case 4:{if(Z!==34)break;J.description=Q.string();continue}case 5:{if(Z!==42)break;J.currencyCode=Q.string();continue}case 6:{if(Z!==48)break;J.priceAmount1000=Q.int64Number();continue}case 7:{if(Z!==58)break;J.retailerId=Q.string();continue}case 8:{if(Z!==66)break;J.url=Q.string();continue}case 9:{if(Z!==72)break;J.productImageCount=Q.uint32();continue}case 11:{if(Z!==90)break;J.firstImageId=Q.string();continue}case 12:{if(Z!==96)break;J.salePriceAmount1000=Q.int64Number();continue}case 13:{if(Z!==106)break;J.signedUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return L8.fromPartial($??{})},fromPartial($){let K=ZC();return K.productImage=$.productImage!==void 0&&$.productImage!==null?i.fromPartial($.productImage):void 0,K.productId=$.productId??void 0,K.title=$.title??void 0,K.description=$.description??void 0,K.currencyCode=$.currencyCode??void 0,K.priceAmount1000=$.priceAmount1000??void 0,K.retailerId=$.retailerId??void 0,K.url=$.url??void 0,K.productImageCount=$.productImageCount??void 0,K.firstImageId=$.firstImageId??void 0,K.salePriceAmount1000=$.salePriceAmount1000??void 0,K.signedUrl=$.signedUrl??void 0,K}};function JC(){return{}}var P8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.type!==void 0)K.uint32(16).int32($.type);if($.ephemeralExpiration!==void 0)K.uint32(32).uint32($.ephemeralExpiration);if($.ephemeralSettingTimestamp!==void 0)K.uint32(40).int64($.ephemeralSettingTimestamp);if($.historySyncNotification!==void 0)eJ.encode($.historySyncNotification,K.uint32(50).fork()).join();if($.appStateSyncKeyShare!==void 0)LJ.encode($.appStateSyncKeyShare,K.uint32(58).fork()).join();if($.appStateSyncKeyRequest!==void 0)DJ.encode($.appStateSyncKeyRequest,K.uint32(66).fork()).join();if($.initialSecurityNotificationSettingSync!==void 0)$X.encode($.initialSecurityNotificationSettingSync,K.uint32(74).fork()).join();if($.appStateFatalExceptionNotification!==void 0)VJ.encode($.appStateFatalExceptionNotification,K.uint32(82).fork()).join();if($.disappearingMode!==void 0)D0.encode($.disappearingMode,K.uint32(90).fork()).join();if($.editedMessage!==void 0)w.encode($.editedMessage,K.uint32(114).fork()).join();if($.timestampMs!==void 0)K.uint32(120).int64($.timestampMs);if($.peerDataOperationRequestMessage!==void 0)hX.encode($.peerDataOperationRequestMessage,K.uint32(130).fork()).join();if($.peerDataOperationRequestResponseMessage!==void 0)mX.encode($.peerDataOperationRequestResponseMessage,K.uint32(138).fork()).join();if($.botFeedbackMessage!==void 0)AK.encode($.botFeedbackMessage,K.uint32(146).fork()).join();if($.invokerJid!==void 0)K.uint32(154).string($.invokerJid);if($.requestWelcomeMessageMetadata!==void 0)R8.encode($.requestWelcomeMessageMetadata,K.uint32(162).fork()).join();if($.mediaNotifyMessage!==void 0)YJ.encode($.mediaNotifyMessage,K.uint32(170).fork()).join();if($.cloudApiThreadControlNotification!==void 0)yJ.encode($.cloudApiThreadControlNotification,K.uint32(178).fork()).join();if($.lidMigrationMappingSyncMessage!==void 0)eZ.encode($.lidMigrationMappingSyncMessage,K.uint32(186).fork()).join();if($.limitSharing!==void 0)V0.encode($.limitSharing,K.uint32(194).fork()).join();if($.aiPsiMetadata!==void 0)K.uint32(202).bytes($.aiPsiMetadata);if($.aiQueryFanout!==void 0)i$.encode($.aiQueryFanout,K.uint32(210).fork()).join();if($.memberLabel!==void 0)F0.encode($.memberLabel,K.uint32(218).fork()).join();if($.aiMediaCollectionMessage!==void 0)c$.encode($.aiMediaCollectionMessage,K.uint32(226).fork()).join();if($.afterReadDuration!==void 0)K.uint32(232).uint32($.afterReadDuration);if($.chatThemeSetting!==void 0)TJ.encode($.chatThemeSetting,K.uint32(242).fork()).join();if($.aiMetadataOperation!==void 0)b$.encode($.aiMetadataOperation,K.uint32(250).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.type=Q.int32();continue}case 4:{if(Z!==32)break;J.ephemeralExpiration=Q.uint32();continue}case 5:{if(Z!==40)break;J.ephemeralSettingTimestamp=Q.int64Number();continue}case 6:{if(Z!==50)break;J.historySyncNotification=eJ.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.appStateSyncKeyShare=LJ.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.appStateSyncKeyRequest=DJ.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.initialSecurityNotificationSettingSync=$X.decode(Q,Q.uint32());continue}case 10:{if(Z!==82)break;J.appStateFatalExceptionNotification=VJ.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.disappearingMode=D0.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.editedMessage=w.decode(Q,Q.uint32());continue}case 15:{if(Z!==120)break;J.timestampMs=Q.int64Number();continue}case 16:{if(Z!==130)break;J.peerDataOperationRequestMessage=hX.decode(Q,Q.uint32());continue}case 17:{if(Z!==138)break;J.peerDataOperationRequestResponseMessage=mX.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.botFeedbackMessage=AK.decode(Q,Q.uint32());continue}case 19:{if(Z!==154)break;J.invokerJid=Q.string();continue}case 20:{if(Z!==162)break;J.requestWelcomeMessageMetadata=R8.decode(Q,Q.uint32());continue}case 21:{if(Z!==170)break;J.mediaNotifyMessage=YJ.decode(Q,Q.uint32());continue}case 22:{if(Z!==178)break;J.cloudApiThreadControlNotification=yJ.decode(Q,Q.uint32());continue}case 23:{if(Z!==186)break;J.lidMigrationMappingSyncMessage=eZ.decode(Q,Q.uint32());continue}case 24:{if(Z!==194)break;J.limitSharing=V0.decode(Q,Q.uint32());continue}case 25:{if(Z!==202)break;J.aiPsiMetadata=Q.bytes();continue}case 26:{if(Z!==210)break;J.aiQueryFanout=i$.decode(Q,Q.uint32());continue}case 27:{if(Z!==218)break;J.memberLabel=F0.decode(Q,Q.uint32());continue}case 28:{if(Z!==226)break;J.aiMediaCollectionMessage=c$.decode(Q,Q.uint32());continue}case 29:{if(Z!==232)break;J.afterReadDuration=Q.uint32();continue}case 30:{if(Z!==242)break;J.chatThemeSetting=TJ.decode(Q,Q.uint32());continue}case 31:{if(Z!==250)break;J.aiMetadataOperation=b$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return P8.fromPartial($??{})},fromPartial($){let K=JC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.type=$.type??void 0,K.ephemeralExpiration=$.ephemeralExpiration??void 0,K.ephemeralSettingTimestamp=$.ephemeralSettingTimestamp??void 0,K.historySyncNotification=$.historySyncNotification!==void 0&&$.historySyncNotification!==null?eJ.fromPartial($.historySyncNotification):void 0,K.appStateSyncKeyShare=$.appStateSyncKeyShare!==void 0&&$.appStateSyncKeyShare!==null?LJ.fromPartial($.appStateSyncKeyShare):void 0,K.appStateSyncKeyRequest=$.appStateSyncKeyRequest!==void 0&&$.appStateSyncKeyRequest!==null?DJ.fromPartial($.appStateSyncKeyRequest):void 0,K.initialSecurityNotificationSettingSync=$.initialSecurityNotificationSettingSync!==void 0&&$.initialSecurityNotificationSettingSync!==null?$X.fromPartial($.initialSecurityNotificationSettingSync):void 0,K.appStateFatalExceptionNotification=$.appStateFatalExceptionNotification!==void 0&&$.appStateFatalExceptionNotification!==null?VJ.fromPartial($.appStateFatalExceptionNotification):void 0,K.disappearingMode=$.disappearingMode!==void 0&&$.disappearingMode!==null?D0.fromPartial($.disappearingMode):void 0,K.editedMessage=$.editedMessage!==void 0&&$.editedMessage!==null?w.fromPartial($.editedMessage):void 0,K.timestampMs=$.timestampMs??void 0,K.peerDataOperationRequestMessage=$.peerDataOperationRequestMessage!==void 0&&$.peerDataOperationRequestMessage!==null?hX.fromPartial($.peerDataOperationRequestMessage):void 0,K.peerDataOperationRequestResponseMessage=$.peerDataOperationRequestResponseMessage!==void 0&&$.peerDataOperationRequestResponseMessage!==null?mX.fromPartial($.peerDataOperationRequestResponseMessage):void 0,K.botFeedbackMessage=$.botFeedbackMessage!==void 0&&$.botFeedbackMessage!==null?AK.fromPartial($.botFeedbackMessage):void 0,K.invokerJid=$.invokerJid??void 0,K.requestWelcomeMessageMetadata=$.requestWelcomeMessageMetadata!==void 0&&$.requestWelcomeMessageMetadata!==null?R8.fromPartial($.requestWelcomeMessageMetadata):void 0,K.mediaNotifyMessage=$.mediaNotifyMessage!==void 0&&$.mediaNotifyMessage!==null?YJ.fromPartial($.mediaNotifyMessage):void 0,K.cloudApiThreadControlNotification=$.cloudApiThreadControlNotification!==void 0&&$.cloudApiThreadControlNotification!==null?yJ.fromPartial($.cloudApiThreadControlNotification):void 0,K.lidMigrationMappingSyncMessage=$.lidMigrationMappingSyncMessage!==void 0&&$.lidMigrationMappingSyncMessage!==null?eZ.fromPartial($.lidMigrationMappingSyncMessage):void 0,K.limitSharing=$.limitSharing!==void 0&&$.limitSharing!==null?V0.fromPartial($.limitSharing):void 0,K.aiPsiMetadata=$.aiPsiMetadata??void 0,K.aiQueryFanout=$.aiQueryFanout!==void 0&&$.aiQueryFanout!==null?i$.fromPartial($.aiQueryFanout):void 0,K.memberLabel=$.memberLabel!==void 0&&$.memberLabel!==null?F0.fromPartial($.memberLabel):void 0,K.aiMediaCollectionMessage=$.aiMediaCollectionMessage!==void 0&&$.aiMediaCollectionMessage!==null?c$.fromPartial($.aiMediaCollectionMessage):void 0,K.afterReadDuration=$.afterReadDuration??void 0,K.chatThemeSetting=$.chatThemeSetting!==void 0&&$.chatThemeSetting!==null?TJ.fromPartial($.chatThemeSetting):void 0,K.aiMetadataOperation=$.aiMetadataOperation!==void 0&&$.aiMetadataOperation!==null?b$.fromPartial($.aiMetadataOperation):void 0,K}};function XC(){return{}}var F8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.text!==void 0)K.uint32(18).string($.text);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return F8.fromPartial($??{})},fromPartial($){let K=XC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.text=$.text??void 0,K}};function qC(){return{}}var x8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.text!==void 0)K.uint32(18).string($.text);if($.groupingKey!==void 0)K.uint32(26).string($.groupingKey);if($.senderTimestampMs!==void 0)K.uint32(32).int64($.senderTimestampMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}case 3:{if(Z!==26)break;J.groupingKey=Q.string();continue}case 4:{if(Z!==32)break;J.senderTimestampMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return x8.fromPartial($??{})},fromPartial($){let K=qC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.text=$.text??void 0,K.groupingKey=$.groupingKey??void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K}};function YC(){return{}}var k8={encode($,K=new H){if($.noteMessage!==void 0)w.encode($.noteMessage,K.uint32(34).fork()).join();if($.currencyCodeIso4217!==void 0)K.uint32(10).string($.currencyCodeIso4217);if($.amount1000!==void 0)K.uint32(16).uint64($.amount1000);if($.requestFrom!==void 0)K.uint32(26).string($.requestFrom);if($.expiryTimestamp!==void 0)K.uint32(40).int64($.expiryTimestamp);if($.amount!==void 0)r.encode($.amount,K.uint32(50).fork()).join();if($.background!==void 0)N$.encode($.background,K.uint32(58).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 4:{if(Z!==34)break;J.noteMessage=w.decode(Q,Q.uint32());continue}case 1:{if(Z!==10)break;J.currencyCodeIso4217=Q.string();continue}case 2:{if(Z!==16)break;J.amount1000=Q.uint64Number();continue}case 3:{if(Z!==26)break;J.requestFrom=Q.string();continue}case 5:{if(Z!==40)break;J.expiryTimestamp=Q.int64Number();continue}case 6:{if(Z!==50)break;J.amount=r.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.background=N$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return k8.fromPartial($??{})},fromPartial($){let K=YC();return K.noteMessage=$.noteMessage!==void 0&&$.noteMessage!==null?w.fromPartial($.noteMessage):void 0,K.currencyCodeIso4217=$.currencyCodeIso4217??void 0,K.amount1000=$.amount1000??void 0,K.requestFrom=$.requestFrom??void 0,K.expiryTimestamp=$.expiryTimestamp??void 0,K.amount=$.amount!==void 0&&$.amount!==null?r.fromPartial($.amount):void 0,K.background=$.background!==void 0&&$.background!==null?N$.fromPartial($.background):void 0,K}};function HC(){return{}}var N8={encode($,K=new H){if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return N8.fromPartial($??{})},fromPartial($){let K=HC();return K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function zC(){return{}}var R8={encode($,K=new H){if($.localChatState!==void 0)K.uint32(8).int32($.localChatState);if($.welcomeTrigger!==void 0)K.uint32(16).int32($.welcomeTrigger);if($.botAgentMetadata!==void 0)NK.encode($.botAgentMetadata,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.localChatState=Q.int32();continue}case 2:{if(Z!==16)break;J.welcomeTrigger=Q.int32();continue}case 3:{if(Z!==26)break;J.botAgentMetadata=NK.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return R8.fromPartial($??{})},fromPartial($){let K=zC();return K.localChatState=$.localChatState??void 0,K.welcomeTrigger=$.welcomeTrigger??void 0,K.botAgentMetadata=$.botAgentMetadata!==void 0&&$.botAgentMetadata!==null?NK.fromPartial($.botAgentMetadata):void 0,K}};function VC(){return{}}var B8={encode($,K=new H){if($.chatJid!==void 0)K.uint32(10).string($.chatJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.chatJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return B8.fromPartial($??{})},fromPartial($){let K=VC();return K.chatJid=$.chatJid??void 0,K}};function GC(){return{}}var O8={encode($,K=new H){if($.scheduledTimestampMs!==void 0)K.uint32(8).int64($.scheduledTimestampMs);if($.callType!==void 0)K.uint32(16).int32($.callType);if($.title!==void 0)K.uint32(26).string($.title);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.scheduledTimestampMs=Q.int64Number();continue}case 2:{if(Z!==16)break;J.callType=Q.int32();continue}case 3:{if(Z!==26)break;J.title=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return O8.fromPartial($??{})},fromPartial($){let K=GC();return K.scheduledTimestampMs=$.scheduledTimestampMs??void 0,K.callType=$.callType??void 0,K.title=$.title??void 0,K}};function UC(){return{}}var A8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.editType!==void 0)K.uint32(16).int32($.editType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.editType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return A8.fromPartial($??{})},fromPartial($){let K=UC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.editType=$.editType??void 0,K}};function CC(){return{}}var E8={encode($,K=new H){if($.targetMessageKey!==void 0)x.encode($.targetMessageKey,K.uint32(10).fork()).join();if($.encPayload!==void 0)K.uint32(18).bytes($.encPayload);if($.encIv!==void 0)K.uint32(26).bytes($.encIv);if($.secretEncType!==void 0)K.uint32(32).int32($.secretEncType);if($.remoteKeyId!==void 0)K.uint32(42).string($.remoteKeyId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.targetMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.encPayload=Q.bytes();continue}case 3:{if(Z!==26)break;J.encIv=Q.bytes();continue}case 4:{if(Z!==32)break;J.secretEncType=Q.int32();continue}case 5:{if(Z!==42)break;J.remoteKeyId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return E8.fromPartial($??{})},fromPartial($){let K=CC();return K.targetMessageKey=$.targetMessageKey!==void 0&&$.targetMessageKey!==null?x.fromPartial($.targetMessageKey):void 0,K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K.secretEncType=$.secretEncType??void 0,K.remoteKeyId=$.remoteKeyId??void 0,K}};function DC(){return{}}var M8={encode($,K=new H){if($.noteMessage!==void 0)w.encode($.noteMessage,K.uint32(18).fork()).join();if($.requestMessageKey!==void 0)x.encode($.requestMessageKey,K.uint32(26).fork()).join();if($.background!==void 0)N$.encode($.background,K.uint32(34).fork()).join();if($.transactionData!==void 0)K.uint32(42).string($.transactionData);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 2:{if(Z!==18)break;J.noteMessage=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.requestMessageKey=x.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.background=N$.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.transactionData=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return M8.fromPartial($??{})},fromPartial($){let K=DC();return K.noteMessage=$.noteMessage!==void 0&&$.noteMessage!==null?w.fromPartial($.noteMessage):void 0,K.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?x.fromPartial($.requestMessageKey):void 0,K.background=$.background!==void 0&&$.background!==null?N$.fromPartial($.background):void 0,K.transactionData=$.transactionData??void 0,K}};function LC(){return{}}var d0={encode($,K=new H){if($.groupId!==void 0)K.uint32(10).string($.groupId);if($.axolotlSenderKeyDistributionMessage!==void 0)K.uint32(18).bytes($.axolotlSenderKeyDistributionMessage);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.groupId=Q.string();continue}case 2:{if(Z!==18)break;J.axolotlSenderKeyDistributionMessage=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return d0.fromPartial($??{})},fromPartial($){let K=LC();return K.groupId=$.groupId??void 0,K.axolotlSenderKeyDistributionMessage=$.axolotlSenderKeyDistributionMessage??void 0,K}};function PC(){return{}}var W8={encode($,K=new H){if($.splitId!==void 0)K.uint32(10).string($.splitId);if($.totalAmount!==void 0)r.encode($.totalAmount,K.uint32(18).fork()).join();if($.description!==void 0)K.uint32(26).string($.description);if($.requesterJid!==void 0)K.uint32(34).string($.requesterJid);if($.participants!==void 0&&$.participants.length!==0)for(let Q of $.participants)I8.encode(Q,K.uint32(42).fork()).join();if($.createdAtMs!==void 0)K.uint32(48).int64($.createdAtMs);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.splitId=Q.string();continue}case 2:{if(Z!==18)break;J.totalAmount=r.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.description=Q.string();continue}case 4:{if(Z!==34)break;J.requesterJid=Q.string();continue}case 5:{if(Z!==42)break;if(J.participants===void 0)J.participants=[];let Y=I8.decode(Q,Q.uint32());if(Y!==void 0)J.participants.push(Y);continue}case 6:{if(Z!==48)break;J.createdAtMs=Q.int64Number();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return W8.fromPartial($??{})},fromPartial($){let K=PC();return K.splitId=$.splitId??void 0,K.totalAmount=$.totalAmount!==void 0&&$.totalAmount!==null?r.fromPartial($.totalAmount):void 0,K.description=$.description??void 0,K.requesterJid=$.requesterJid??void 0,K.participants=$.participants?.map((Q)=>I8.fromPartial(Q))||void 0,K.createdAtMs=$.createdAtMs??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K}};function FC(){return{}}var I8={encode($,K=new H){if($.jid!==void 0)K.uint32(10).string($.jid);if($.amount!==void 0)r.encode($.amount,K.uint32(18).fork()).join();if($.status!==void 0)K.uint32(24).int32($.status);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.jid=Q.string();continue}case 2:{if(Z!==18)break;J.amount=r.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.status=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return I8.fromPartial($??{})},fromPartial($){let K=FC();return K.jid=$.jid??void 0,K.amount=$.amount!==void 0&&$.amount!==null?r.fromPartial($.amount):void 0,K.status=$.status??void 0,K}};function xC(){return{}}var S8={encode($,K=new H){if($.responseMessageKey!==void 0)x.encode($.responseMessageKey,K.uint32(10).fork()).join();if($.originalMessageKey!==void 0)x.encode($.originalMessageKey,K.uint32(18).fork()).join();if($.type!==void 0)K.uint32(24).int32($.type);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.responseMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.originalMessageKey=x.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.type=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return S8.fromPartial($??{})},fromPartial($){let K=xC();return K.responseMessageKey=$.responseMessageKey!==void 0&&$.responseMessageKey!==null?x.fromPartial($.responseMessageKey):void 0,K.originalMessageKey=$.originalMessageKey!==void 0&&$.originalMessageKey!==null?x.fromPartial($.originalMessageKey):void 0,K.type=$.type??void 0,K}};function kC(){return{}}var v8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.text!==void 0)K.uint32(18).string($.text);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return v8.fromPartial($??{})},fromPartial($){let K=kC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.text=$.text??void 0,K}};function NC(){return{}}var T8={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.text!==void 0)K.uint32(18).string($.text);if($.thumbnail!==void 0)K.uint32(26).bytes($.thumbnail);if($.originalStatusId!==void 0)x.encode($.originalStatusId,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}case 3:{if(Z!==26)break;J.thumbnail=Q.bytes();continue}case 4:{if(Z!==34)break;J.originalStatusId=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return T8.fromPartial($??{})},fromPartial($){let K=NC();return K.type=$.type??void 0,K.text=$.text??void 0,K.thumbnail=$.thumbnail??void 0,K.originalStatusId=$.originalStatusId!==void 0&&$.originalStatusId!==null?x.fromPartial($.originalStatusId):void 0,K}};function RC(){return{}}var y8={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.stickerKey!==void 0)K.uint32(18).string($.stickerKey);if($.type!==void 0)K.uint32(24).int32($.type);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.stickerKey=Q.string();continue}case 3:{if(Z!==24)break;J.type=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return y8.fromPartial($??{})},fromPartial($){let K=RC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.stickerKey=$.stickerKey??void 0,K.type=$.type??void 0,K}};function BC(){return{}}var L$={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.fileSha256!==void 0)K.uint32(18).bytes($.fileSha256);if($.fileEncSha256!==void 0)K.uint32(26).bytes($.fileEncSha256);if($.mediaKey!==void 0)K.uint32(34).bytes($.mediaKey);if($.mimetype!==void 0)K.uint32(42).string($.mimetype);if($.height!==void 0)K.uint32(48).uint32($.height);if($.width!==void 0)K.uint32(56).uint32($.width);if($.directPath!==void 0)K.uint32(66).string($.directPath);if($.fileLength!==void 0)K.uint32(72).uint64($.fileLength);if($.mediaKeyTimestamp!==void 0)K.uint32(80).int64($.mediaKeyTimestamp);if($.firstFrameLength!==void 0)K.uint32(88).uint32($.firstFrameLength);if($.firstFrameSidecar!==void 0)K.uint32(98).bytes($.firstFrameSidecar);if($.isAnimated!==void 0)K.uint32(104).bool($.isAnimated);if($.pngThumbnail!==void 0)K.uint32(130).bytes($.pngThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.stickerSentTs!==void 0)K.uint32(144).int64($.stickerSentTs);if($.isAvatar!==void 0)K.uint32(152).bool($.isAvatar);if($.isAiSticker!==void 0)K.uint32(160).bool($.isAiSticker);if($.isLottie!==void 0)K.uint32(168).bool($.isLottie);if($.accessibilityLabel!==void 0)K.uint32(178).string($.accessibilityLabel);if($.premium!==void 0)K.uint32(192).int32($.premium);if($.emojis!==void 0)K.uint32(202).string($.emojis);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.fileSha256=Q.bytes();continue}case 3:{if(Z!==26)break;J.fileEncSha256=Q.bytes();continue}case 4:{if(Z!==34)break;J.mediaKey=Q.bytes();continue}case 5:{if(Z!==42)break;J.mimetype=Q.string();continue}case 6:{if(Z!==48)break;J.height=Q.uint32();continue}case 7:{if(Z!==56)break;J.width=Q.uint32();continue}case 8:{if(Z!==66)break;J.directPath=Q.string();continue}case 9:{if(Z!==72)break;J.fileLength=Q.uint64Number();continue}case 10:{if(Z!==80)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 11:{if(Z!==88)break;J.firstFrameLength=Q.uint32();continue}case 12:{if(Z!==98)break;J.firstFrameSidecar=Q.bytes();continue}case 13:{if(Z!==104)break;J.isAnimated=Q.bool();continue}case 16:{if(Z!==130)break;J.pngThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==144)break;J.stickerSentTs=Q.int64Number();continue}case 19:{if(Z!==152)break;J.isAvatar=Q.bool();continue}case 20:{if(Z!==160)break;J.isAiSticker=Q.bool();continue}case 21:{if(Z!==168)break;J.isLottie=Q.bool();continue}case 22:{if(Z!==178)break;J.accessibilityLabel=Q.string();continue}case 24:{if(Z!==192)break;J.premium=Q.int32();continue}case 25:{if(Z!==202)break;J.emojis=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return L$.fromPartial($??{})},fromPartial($){let K=BC();return K.url=$.url??void 0,K.fileSha256=$.fileSha256??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.mimetype=$.mimetype??void 0,K.height=$.height??void 0,K.width=$.width??void 0,K.directPath=$.directPath??void 0,K.fileLength=$.fileLength??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.firstFrameLength=$.firstFrameLength??void 0,K.firstFrameSidecar=$.firstFrameSidecar??void 0,K.isAnimated=$.isAnimated??void 0,K.pngThumbnail=$.pngThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.stickerSentTs=$.stickerSentTs??void 0,K.isAvatar=$.isAvatar??void 0,K.isAiSticker=$.isAiSticker??void 0,K.isLottie=$.isLottie??void 0,K.accessibilityLabel=$.accessibilityLabel??void 0,K.premium=$.premium??void 0,K.emojis=$.emojis??void 0,K}};function OC(){return{}}var f8={encode($,K=new H){if($.stickerPackId!==void 0)K.uint32(10).string($.stickerPackId);if($.name!==void 0)K.uint32(18).string($.name);if($.publisher!==void 0)K.uint32(26).string($.publisher);if($.stickers!==void 0&&$.stickers.length!==0)for(let Q of $.stickers)_8.encode(Q,K.uint32(34).fork()).join();if($.fileLength!==void 0)K.uint32(40).uint64($.fileLength);if($.fileSha256!==void 0)K.uint32(50).bytes($.fileSha256);if($.fileEncSha256!==void 0)K.uint32(58).bytes($.fileEncSha256);if($.mediaKey!==void 0)K.uint32(66).bytes($.mediaKey);if($.directPath!==void 0)K.uint32(74).string($.directPath);if($.caption!==void 0)K.uint32(82).string($.caption);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(90).fork()).join();if($.packDescription!==void 0)K.uint32(98).string($.packDescription);if($.mediaKeyTimestamp!==void 0)K.uint32(104).int64($.mediaKeyTimestamp);if($.trayIconFileName!==void 0)K.uint32(114).string($.trayIconFileName);if($.thumbnailDirectPath!==void 0)K.uint32(122).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)K.uint32(130).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)K.uint32(138).bytes($.thumbnailEncSha256);if($.thumbnailHeight!==void 0)K.uint32(144).uint32($.thumbnailHeight);if($.thumbnailWidth!==void 0)K.uint32(152).uint32($.thumbnailWidth);if($.imageDataHash!==void 0)K.uint32(162).string($.imageDataHash);if($.stickerPackSize!==void 0)K.uint32(168).uint64($.stickerPackSize);if($.stickerPackOrigin!==void 0)K.uint32(176).int32($.stickerPackOrigin);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stickerPackId=Q.string();continue}case 2:{if(Z!==18)break;J.name=Q.string();continue}case 3:{if(Z!==26)break;J.publisher=Q.string();continue}case 4:{if(Z!==34)break;if(J.stickers===void 0)J.stickers=[];let Y=_8.decode(Q,Q.uint32());if(Y!==void 0)J.stickers.push(Y);continue}case 5:{if(Z!==40)break;J.fileLength=Q.uint64Number();continue}case 6:{if(Z!==50)break;J.fileSha256=Q.bytes();continue}case 7:{if(Z!==58)break;J.fileEncSha256=Q.bytes();continue}case 8:{if(Z!==66)break;J.mediaKey=Q.bytes();continue}case 9:{if(Z!==74)break;J.directPath=Q.string();continue}case 10:{if(Z!==82)break;J.caption=Q.string();continue}case 11:{if(Z!==90)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 12:{if(Z!==98)break;J.packDescription=Q.string();continue}case 13:{if(Z!==104)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 14:{if(Z!==114)break;J.trayIconFileName=Q.string();continue}case 15:{if(Z!==122)break;J.thumbnailDirectPath=Q.string();continue}case 16:{if(Z!==130)break;J.thumbnailSha256=Q.bytes();continue}case 17:{if(Z!==138)break;J.thumbnailEncSha256=Q.bytes();continue}case 18:{if(Z!==144)break;J.thumbnailHeight=Q.uint32();continue}case 19:{if(Z!==152)break;J.thumbnailWidth=Q.uint32();continue}case 20:{if(Z!==162)break;J.imageDataHash=Q.string();continue}case 21:{if(Z!==168)break;J.stickerPackSize=Q.uint64Number();continue}case 22:{if(Z!==176)break;J.stickerPackOrigin=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return f8.fromPartial($??{})},fromPartial($){let K=OC();return K.stickerPackId=$.stickerPackId??void 0,K.name=$.name??void 0,K.publisher=$.publisher??void 0,K.stickers=$.stickers?.map((Q)=>_8.fromPartial(Q))||void 0,K.fileLength=$.fileLength??void 0,K.fileSha256=$.fileSha256??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.directPath=$.directPath??void 0,K.caption=$.caption??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.packDescription=$.packDescription??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.trayIconFileName=$.trayIconFileName??void 0,K.thumbnailDirectPath=$.thumbnailDirectPath??void 0,K.thumbnailSha256=$.thumbnailSha256??void 0,K.thumbnailEncSha256=$.thumbnailEncSha256??void 0,K.thumbnailHeight=$.thumbnailHeight??void 0,K.thumbnailWidth=$.thumbnailWidth??void 0,K.imageDataHash=$.imageDataHash??void 0,K.stickerPackSize=$.stickerPackSize??void 0,K.stickerPackOrigin=$.stickerPackOrigin??void 0,K}};function AC(){return{}}var _8={encode($,K=new H){if($.fileName!==void 0)K.uint32(10).string($.fileName);if($.isAnimated!==void 0)K.uint32(16).bool($.isAnimated);if($.emojis!==void 0&&$.emojis.length!==0)for(let Q of $.emojis)K.uint32(26).string(Q);if($.accessibilityLabel!==void 0)K.uint32(34).string($.accessibilityLabel);if($.isLottie!==void 0)K.uint32(40).bool($.isLottie);if($.mimetype!==void 0)K.uint32(50).string($.mimetype);if($.premium!==void 0)K.uint32(56).int32($.premium);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fileName=Q.string();continue}case 2:{if(Z!==16)break;J.isAnimated=Q.bool();continue}case 3:{if(Z!==26)break;if(J.emojis===void 0)J.emojis=[];let Y=Q.string();if(Y!==void 0)J.emojis.push(Y);continue}case 4:{if(Z!==34)break;J.accessibilityLabel=Q.string();continue}case 5:{if(Z!==40)break;J.isLottie=Q.bool();continue}case 6:{if(Z!==50)break;J.mimetype=Q.string();continue}case 7:{if(Z!==56)break;J.premium=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _8.fromPartial($??{})},fromPartial($){let K=AC();return K.fileName=$.fileName??void 0,K.isAnimated=$.isAnimated??void 0,K.emojis=$.emojis?.map((Q)=>Q)||void 0,K.accessibilityLabel=$.accessibilityLabel??void 0,K.isLottie=$.isLottie??void 0,K.mimetype=$.mimetype??void 0,K.premium=$.premium??void 0,K}};function EC(){return{}}var h8={encode($,K=new H){if($.filehash!==void 0&&$.filehash.length!==0)for(let Q of $.filehash)K.uint32(10).string(Q);if($.rmrSource!==void 0)K.uint32(18).string($.rmrSource);if($.requestTimestamp!==void 0)K.uint32(24).int64($.requestTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=EC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.filehash===void 0)J.filehash=[];let Y=Q.string();if(Y!==void 0)J.filehash.push(Y);continue}case 2:{if(Z!==18)break;J.rmrSource=Q.string();continue}case 3:{if(Z!==24)break;J.requestTimestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return h8.fromPartial($??{})},fromPartial($){let K=EC();return K.filehash=$.filehash?.map((Q)=>Q)||void 0,K.rmrSource=$.rmrSource??void 0,K.requestTimestamp=$.requestTimestamp??void 0,K}};function MC(){return{}}var l8={encode($,K=new H){if($.selectedId!==void 0)K.uint32(10).string($.selectedId);if($.selectedDisplayText!==void 0)K.uint32(18).string($.selectedDisplayText);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(26).fork()).join();if($.selectedIndex!==void 0)K.uint32(32).uint32($.selectedIndex);if($.selectedCarouselCardIndex!==void 0)K.uint32(40).uint32($.selectedCarouselCardIndex);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=MC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.selectedId=Q.string();continue}case 2:{if(Z!==18)break;J.selectedDisplayText=Q.string();continue}case 3:{if(Z!==26)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 4:{if(Z!==32)break;J.selectedIndex=Q.uint32();continue}case 5:{if(Z!==40)break;J.selectedCarouselCardIndex=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return l8.fromPartial($??{})},fromPartial($){let K=MC();return K.selectedId=$.selectedId??void 0,K.selectedDisplayText=$.selectedDisplayText??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.selectedIndex=$.selectedIndex??void 0,K.selectedCarouselCardIndex=$.selectedCarouselCardIndex??void 0,K}};function WC(){return{}}var P$={encode($,K=new H){if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(26).fork()).join();if($.hydratedTemplate!==void 0)j0.encode($.hydratedTemplate,K.uint32(34).fork()).join();if($.templateId!==void 0)K.uint32(74).string($.templateId);if($.fourRowTemplate!==void 0)p8.encode($.fourRowTemplate,K.uint32(10).fork()).join();if($.hydratedFourRowTemplate!==void 0)j0.encode($.hydratedFourRowTemplate,K.uint32(18).fork()).join();if($.interactiveMessageTemplate!==void 0)k0.encode($.interactiveMessageTemplate,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 3:{if(Z!==26)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.hydratedTemplate=j0.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.templateId=Q.string();continue}case 1:{if(Z!==10)break;J.fourRowTemplate=p8.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.hydratedFourRowTemplate=j0.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.interactiveMessageTemplate=k0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return P$.fromPartial($??{})},fromPartial($){let K=WC();return K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.hydratedTemplate=$.hydratedTemplate!==void 0&&$.hydratedTemplate!==null?j0.fromPartial($.hydratedTemplate):void 0,K.templateId=$.templateId??void 0,K.fourRowTemplate=$.fourRowTemplate!==void 0&&$.fourRowTemplate!==null?p8.fromPartial($.fourRowTemplate):void 0,K.hydratedFourRowTemplate=$.hydratedFourRowTemplate!==void 0&&$.hydratedFourRowTemplate!==null?j0.fromPartial($.hydratedFourRowTemplate):void 0,K.interactiveMessageTemplate=$.interactiveMessageTemplate!==void 0&&$.interactiveMessageTemplate!==null?k0.fromPartial($.interactiveMessageTemplate):void 0,K}};function IC(){return{}}var p8={encode($,K=new H){if($.content!==void 0)c.encode($.content,K.uint32(50).fork()).join();if($.footer!==void 0)c.encode($.footer,K.uint32(58).fork()).join();if($.buttons!==void 0&&$.buttons.length!==0)for(let Q of $.buttons)DY.encode(Q,K.uint32(66).fork()).join();if($.documentMessage!==void 0)$0.encode($.documentMessage,K.uint32(10).fork()).join();if($.highlyStructuredMessage!==void 0)c.encode($.highlyStructuredMessage,K.uint32(18).fork()).join();if($.imageMessage!==void 0)i.encode($.imageMessage,K.uint32(26).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,K.uint32(34).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=IC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 6:{if(Z!==50)break;J.content=c.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.footer=c.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;if(J.buttons===void 0)J.buttons=[];let Y=DY.decode(Q,Q.uint32());if(Y!==void 0)J.buttons.push(Y);continue}case 1:{if(Z!==10)break;J.documentMessage=$0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.highlyStructuredMessage=c.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.imageMessage=i.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.videoMessage=t.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.locationMessage=a.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return p8.fromPartial($??{})},fromPartial($){let K=IC();return K.content=$.content!==void 0&&$.content!==null?c.fromPartial($.content):void 0,K.footer=$.footer!==void 0&&$.footer!==null?c.fromPartial($.footer):void 0,K.buttons=$.buttons?.map((Q)=>DY.fromPartial(Q))||void 0,K.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,K.highlyStructuredMessage=$.highlyStructuredMessage!==void 0&&$.highlyStructuredMessage!==null?c.fromPartial($.highlyStructuredMessage):void 0,K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,K.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,K}};function SC(){return{}}var j0={encode($,K=new H){if($.hydratedContentText!==void 0)K.uint32(50).string($.hydratedContentText);if($.hydratedFooterText!==void 0)K.uint32(58).string($.hydratedFooterText);if($.hydratedButtons!==void 0&&$.hydratedButtons.length!==0)for(let Q of $.hydratedButtons)jZ.encode(Q,K.uint32(66).fork()).join();if($.templateId!==void 0)K.uint32(74).string($.templateId);if($.maskLinkedDevices!==void 0)K.uint32(80).bool($.maskLinkedDevices);if($.documentMessage!==void 0)$0.encode($.documentMessage,K.uint32(10).fork()).join();if($.hydratedTitleText!==void 0)K.uint32(18).string($.hydratedTitleText);if($.imageMessage!==void 0)i.encode($.imageMessage,K.uint32(26).fork()).join();if($.videoMessage!==void 0)t.encode($.videoMessage,K.uint32(34).fork()).join();if($.locationMessage!==void 0)a.encode($.locationMessage,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 6:{if(Z!==50)break;J.hydratedContentText=Q.string();continue}case 7:{if(Z!==58)break;J.hydratedFooterText=Q.string();continue}case 8:{if(Z!==66)break;if(J.hydratedButtons===void 0)J.hydratedButtons=[];let Y=jZ.decode(Q,Q.uint32());if(Y!==void 0)J.hydratedButtons.push(Y);continue}case 9:{if(Z!==74)break;J.templateId=Q.string();continue}case 10:{if(Z!==80)break;J.maskLinkedDevices=Q.bool();continue}case 1:{if(Z!==10)break;J.documentMessage=$0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.hydratedTitleText=Q.string();continue}case 3:{if(Z!==26)break;J.imageMessage=i.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.videoMessage=t.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.locationMessage=a.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return j0.fromPartial($??{})},fromPartial($){let K=SC();return K.hydratedContentText=$.hydratedContentText??void 0,K.hydratedFooterText=$.hydratedFooterText??void 0,K.hydratedButtons=$.hydratedButtons?.map((Q)=>jZ.fromPartial(Q))||void 0,K.templateId=$.templateId??void 0,K.maskLinkedDevices=$.maskLinkedDevices??void 0,K.documentMessage=$.documentMessage!==void 0&&$.documentMessage!==null?$0.fromPartial($.documentMessage):void 0,K.hydratedTitleText=$.hydratedTitleText??void 0,K.imageMessage=$.imageMessage!==void 0&&$.imageMessage!==null?i.fromPartial($.imageMessage):void 0,K.videoMessage=$.videoMessage!==void 0&&$.videoMessage!==null?t.fromPartial($.videoMessage):void 0,K.locationMessage=$.locationMessage!==void 0&&$.locationMessage!==null?a.fromPartial($.locationMessage):void 0,K}};function vC(){return{}}var u8={encode($,K=new H){if($.fbExperimentId!==void 0)K.uint32(8).uint32($.fbExperimentId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.fbExperimentId=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return u8.fromPartial($??{})},fromPartial($){let K=vC();return K.fbExperimentId=$.fbExperimentId??void 0,K}};function TC(){return{}}var w8={encode($,K=new H){if($.username!==void 0)K.uint32(10).string($.username);if($.caption!==void 0)K.uint32(18).string($.caption);if($.thumbnailImageUrl!==void 0)K.uint32(26).string($.thumbnailImageUrl);if($.profilePictureUrl!==void 0)K.uint32(34).string($.profilePictureUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.username=Q.string();continue}case 2:{if(Z!==18)break;J.caption=Q.string();continue}case 3:{if(Z!==26)break;J.thumbnailImageUrl=Q.string();continue}case 4:{if(Z!==34)break;J.profilePictureUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return w8.fromPartial($??{})},fromPartial($){let K=TC();return K.username=$.username??void 0,K.caption=$.caption??void 0,K.thumbnailImageUrl=$.thumbnailImageUrl??void 0,K.profilePictureUrl=$.profilePictureUrl??void 0,K}};function yC(){return{}}var t={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.mimetype!==void 0)K.uint32(18).string($.mimetype);if($.fileSha256!==void 0)K.uint32(26).bytes($.fileSha256);if($.fileLength!==void 0)K.uint32(32).uint64($.fileLength);if($.seconds!==void 0)K.uint32(40).uint32($.seconds);if($.mediaKey!==void 0)K.uint32(50).bytes($.mediaKey);if($.caption!==void 0)K.uint32(58).string($.caption);if($.gifPlayback!==void 0)K.uint32(64).bool($.gifPlayback);if($.height!==void 0)K.uint32(72).uint32($.height);if($.width!==void 0)K.uint32(80).uint32($.width);if($.fileEncSha256!==void 0)K.uint32(90).bytes($.fileEncSha256);if($.interactiveAnnotations!==void 0&&$.interactiveAnnotations.length!==0)for(let Q of $.interactiveAnnotations)Q0.encode(Q,K.uint32(98).fork()).join();if($.directPath!==void 0)K.uint32(106).string($.directPath);if($.mediaKeyTimestamp!==void 0)K.uint32(112).int64($.mediaKeyTimestamp);if($.jpegThumbnail!==void 0)K.uint32(130).bytes($.jpegThumbnail);if($.contextInfo!==void 0)A.encode($.contextInfo,K.uint32(138).fork()).join();if($.streamingSidecar!==void 0)K.uint32(146).bytes($.streamingSidecar);if($.gifAttribution!==void 0)K.uint32(152).int32($.gifAttribution);if($.viewOnce!==void 0)K.uint32(160).bool($.viewOnce);if($.thumbnailDirectPath!==void 0)K.uint32(170).string($.thumbnailDirectPath);if($.thumbnailSha256!==void 0)K.uint32(178).bytes($.thumbnailSha256);if($.thumbnailEncSha256!==void 0)K.uint32(186).bytes($.thumbnailEncSha256);if($.staticUrl!==void 0)K.uint32(194).string($.staticUrl);if($.annotations!==void 0&&$.annotations.length!==0)for(let Q of $.annotations)Q0.encode(Q,K.uint32(202).fork()).join();if($.accessibilityLabel!==void 0)K.uint32(210).string($.accessibilityLabel);if($.processedVideos!==void 0&&$.processedVideos.length!==0)for(let Q of $.processedVideos)Jq.encode(Q,K.uint32(218).fork()).join();if($.externalShareFullVideoDurationInSeconds!==void 0)K.uint32(224).uint32($.externalShareFullVideoDurationInSeconds);if($.motionPhotoPresentationOffsetMs!==void 0)K.uint32(232).uint64($.motionPhotoPresentationOffsetMs);if($.metadataUrl!==void 0)K.uint32(242).string($.metadataUrl);if($.videoSourceType!==void 0)K.uint32(248).int32($.videoSourceType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.mimetype=Q.string();continue}case 3:{if(Z!==26)break;J.fileSha256=Q.bytes();continue}case 4:{if(Z!==32)break;J.fileLength=Q.uint64Number();continue}case 5:{if(Z!==40)break;J.seconds=Q.uint32();continue}case 6:{if(Z!==50)break;J.mediaKey=Q.bytes();continue}case 7:{if(Z!==58)break;J.caption=Q.string();continue}case 8:{if(Z!==64)break;J.gifPlayback=Q.bool();continue}case 9:{if(Z!==72)break;J.height=Q.uint32();continue}case 10:{if(Z!==80)break;J.width=Q.uint32();continue}case 11:{if(Z!==90)break;J.fileEncSha256=Q.bytes();continue}case 12:{if(Z!==98)break;if(J.interactiveAnnotations===void 0)J.interactiveAnnotations=[];let Y=Q0.decode(Q,Q.uint32());if(Y!==void 0)J.interactiveAnnotations.push(Y);continue}case 13:{if(Z!==106)break;J.directPath=Q.string();continue}case 14:{if(Z!==112)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 16:{if(Z!==130)break;J.jpegThumbnail=Q.bytes();continue}case 17:{if(Z!==138)break;J.contextInfo=A.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.streamingSidecar=Q.bytes();continue}case 19:{if(Z!==152)break;J.gifAttribution=Q.int32();continue}case 20:{if(Z!==160)break;J.viewOnce=Q.bool();continue}case 21:{if(Z!==170)break;J.thumbnailDirectPath=Q.string();continue}case 22:{if(Z!==178)break;J.thumbnailSha256=Q.bytes();continue}case 23:{if(Z!==186)break;J.thumbnailEncSha256=Q.bytes();continue}case 24:{if(Z!==194)break;J.staticUrl=Q.string();continue}case 25:{if(Z!==202)break;if(J.annotations===void 0)J.annotations=[];let Y=Q0.decode(Q,Q.uint32());if(Y!==void 0)J.annotations.push(Y);continue}case 26:{if(Z!==210)break;J.accessibilityLabel=Q.string();continue}case 27:{if(Z!==218)break;if(J.processedVideos===void 0)J.processedVideos=[];let Y=Jq.decode(Q,Q.uint32());if(Y!==void 0)J.processedVideos.push(Y);continue}case 28:{if(Z!==224)break;J.externalShareFullVideoDurationInSeconds=Q.uint32();continue}case 29:{if(Z!==232)break;J.motionPhotoPresentationOffsetMs=Q.uint64Number();continue}case 30:{if(Z!==242)break;J.metadataUrl=Q.string();continue}case 31:{if(Z!==248)break;J.videoSourceType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return t.fromPartial($??{})},fromPartial($){let K=yC();return K.url=$.url??void 0,K.mimetype=$.mimetype??void 0,K.fileSha256=$.fileSha256??void 0,K.fileLength=$.fileLength??void 0,K.seconds=$.seconds??void 0,K.mediaKey=$.mediaKey??void 0,K.caption=$.caption??void 0,K.gifPlayback=$.gifPlayback??void 0,K.height=$.height??void 0,K.width=$.width??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.interactiveAnnotations=$.interactiveAnnotations?.map((Q)=>Q0.fromPartial(Q))||void 0,K.directPath=$.directPath??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K.contextInfo=$.contextInfo!==void 0&&$.contextInfo!==null?A.fromPartial($.contextInfo):void 0,K.streamingSidecar=$.streamingSidecar??void 0,K.gifAttribution=$.gifAttribution??void 0,K.viewOnce=$.viewOnce??void 0,K.thumbnailDirectPath=$.thumbnailDirectPath??void 0,K.thumbnailSha256=$.thumbnailSha256??void 0,K.thumbnailEncSha256=$.thumbnailEncSha256??void 0,K.staticUrl=$.staticUrl??void 0,K.annotations=$.annotations?.map((Q)=>Q0.fromPartial(Q))||void 0,K.accessibilityLabel=$.accessibilityLabel??void 0,K.processedVideos=$.processedVideos?.map((Q)=>Jq.fromPartial(Q))||void 0,K.externalShareFullVideoDurationInSeconds=$.externalShareFullVideoDurationInSeconds??void 0,K.motionPhotoPresentationOffsetMs=$.motionPhotoPresentationOffsetMs??void 0,K.metadataUrl=$.metadataUrl??void 0,K.videoSourceType=$.videoSourceType??void 0,K}};function fC(){return{}}var n8={encode($,K=new H){if($.messageAddOnType!==void 0)K.uint32(8).int32($.messageAddOnType);if($.messageAddOn!==void 0)w.encode($.messageAddOn,K.uint32(18).fork()).join();if($.senderTimestampMs!==void 0)K.uint32(24).int64($.senderTimestampMs);if($.serverTimestampMs!==void 0)K.uint32(32).int64($.serverTimestampMs);if($.status!==void 0)K.uint32(40).int32($.status);if($.addOnContextInfo!==void 0)F$.encode($.addOnContextInfo,K.uint32(50).fork()).join();if($.messageAddOnKey!==void 0)x.encode($.messageAddOnKey,K.uint32(58).fork()).join();if($.legacyMessage!==void 0)KJ.encode($.legacyMessage,K.uint32(66).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.messageAddOnType=Q.int32();continue}case 2:{if(Z!==18)break;J.messageAddOn=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.senderTimestampMs=Q.int64Number();continue}case 4:{if(Z!==32)break;J.serverTimestampMs=Q.int64Number();continue}case 5:{if(Z!==40)break;J.status=Q.int32();continue}case 6:{if(Z!==50)break;J.addOnContextInfo=F$.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.messageAddOnKey=x.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.legacyMessage=KJ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return n8.fromPartial($??{})},fromPartial($){let K=fC();return K.messageAddOnType=$.messageAddOnType??void 0,K.messageAddOn=$.messageAddOn!==void 0&&$.messageAddOn!==null?w.fromPartial($.messageAddOn):void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K.serverTimestampMs=$.serverTimestampMs??void 0,K.status=$.status??void 0,K.addOnContextInfo=$.addOnContextInfo!==void 0&&$.addOnContextInfo!==null?F$.fromPartial($.addOnContextInfo):void 0,K.messageAddOnKey=$.messageAddOnKey!==void 0&&$.messageAddOnKey!==null?x.fromPartial($.messageAddOnKey):void 0,K.legacyMessage=$.legacyMessage!==void 0&&$.legacyMessage!==null?KJ.fromPartial($.legacyMessage):void 0,K}};function _C(){return{}}var F$={encode($,K=new H){if($.messageAddOnDurationInSecs!==void 0)K.uint32(8).uint32($.messageAddOnDurationInSecs);if($.messageAddOnExpiryType!==void 0)K.uint32(16).int32($.messageAddOnExpiryType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_C();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.messageAddOnDurationInSecs=Q.uint32();continue}case 2:{if(Z!==16)break;J.messageAddOnExpiryType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return F$.fromPartial($??{})},fromPartial($){let K=_C();return K.messageAddOnDurationInSecs=$.messageAddOnDurationInSecs??void 0,K.messageAddOnExpiryType=$.messageAddOnExpiryType??void 0,K}};function hC(){return{}}var d8={encode($,K=new H){if($.associationType!==void 0)K.uint32(8).int32($.associationType);if($.parentMessageKey!==void 0)x.encode($.parentMessageKey,K.uint32(18).fork()).join();if($.messageIndex!==void 0)K.uint32(24).int32($.messageIndex);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.associationType=Q.int32();continue}case 2:{if(Z!==18)break;J.parentMessageKey=x.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.messageIndex=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return d8.fromPartial($??{})},fromPartial($){let K=hC();return K.associationType=$.associationType??void 0,K.parentMessageKey=$.parentMessageKey!==void 0&&$.parentMessageKey!==null?x.fromPartial($.parentMessageKey):void 0,K.messageIndex=$.messageIndex??void 0,K}};function lC(){return{}}var x$={encode($,K=new H){if($.deviceListMetadata!==void 0)kZ.encode($.deviceListMetadata,K.uint32(10).fork()).join();if($.deviceListMetadataVersion!==void 0)K.uint32(16).int32($.deviceListMetadataVersion);if($.messageSecret!==void 0)K.uint32(26).bytes($.messageSecret);if($.paddingBytes!==void 0)K.uint32(34).bytes($.paddingBytes);if($.messageAddOnDurationInSecs!==void 0)K.uint32(40).uint32($.messageAddOnDurationInSecs);if($.botMessageSecret!==void 0)K.uint32(50).bytes($.botMessageSecret);if($.botMetadata!==void 0)oK.encode($.botMetadata,K.uint32(58).fork()).join();if($.reportingTokenVersion!==void 0)K.uint32(64).int32($.reportingTokenVersion);if($.messageAddOnExpiryType!==void 0)K.uint32(72).int32($.messageAddOnExpiryType);if($.messageAssociation!==void 0)d8.encode($.messageAssociation,K.uint32(82).fork()).join();if($.capiCreatedGroup!==void 0)K.uint32(88).bool($.capiCreatedGroup);if($.supportPayload!==void 0)K.uint32(98).string($.supportPayload);if($.limitSharing!==void 0)V0.encode($.limitSharing,K.uint32(106).fork()).join();if($.limitSharingV2!==void 0)V0.encode($.limitSharingV2,K.uint32(114).fork()).join();if($.threadId!==void 0&&$.threadId.length!==0)for(let Q of $.threadId)xY.encode(Q,K.uint32(122).fork()).join();if($.weblinkRenderConfig!==void 0)K.uint32(128).int32($.weblinkRenderConfig);if($.teeBotMetadata!==void 0)K.uint32(138).bytes($.teeBotMetadata);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.deviceListMetadata=kZ.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.deviceListMetadataVersion=Q.int32();continue}case 3:{if(Z!==26)break;J.messageSecret=Q.bytes();continue}case 4:{if(Z!==34)break;J.paddingBytes=Q.bytes();continue}case 5:{if(Z!==40)break;J.messageAddOnDurationInSecs=Q.uint32();continue}case 6:{if(Z!==50)break;J.botMessageSecret=Q.bytes();continue}case 7:{if(Z!==58)break;J.botMetadata=oK.decode(Q,Q.uint32());continue}case 8:{if(Z!==64)break;J.reportingTokenVersion=Q.int32();continue}case 9:{if(Z!==72)break;J.messageAddOnExpiryType=Q.int32();continue}case 10:{if(Z!==82)break;J.messageAssociation=d8.decode(Q,Q.uint32());continue}case 11:{if(Z!==88)break;J.capiCreatedGroup=Q.bool();continue}case 12:{if(Z!==98)break;J.supportPayload=Q.string();continue}case 13:{if(Z!==106)break;J.limitSharing=V0.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.limitSharingV2=V0.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;if(J.threadId===void 0)J.threadId=[];let Y=xY.decode(Q,Q.uint32());if(Y!==void 0)J.threadId.push(Y);continue}case 16:{if(Z!==128)break;J.weblinkRenderConfig=Q.int32();continue}case 17:{if(Z!==138)break;J.teeBotMetadata=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return x$.fromPartial($??{})},fromPartial($){let K=lC();return K.deviceListMetadata=$.deviceListMetadata!==void 0&&$.deviceListMetadata!==null?kZ.fromPartial($.deviceListMetadata):void 0,K.deviceListMetadataVersion=$.deviceListMetadataVersion??void 0,K.messageSecret=$.messageSecret??void 0,K.paddingBytes=$.paddingBytes??void 0,K.messageAddOnDurationInSecs=$.messageAddOnDurationInSecs??void 0,K.botMessageSecret=$.botMessageSecret??void 0,K.botMetadata=$.botMetadata!==void 0&&$.botMetadata!==null?oK.fromPartial($.botMetadata):void 0,K.reportingTokenVersion=$.reportingTokenVersion??void 0,K.messageAddOnExpiryType=$.messageAddOnExpiryType??void 0,K.messageAssociation=$.messageAssociation!==void 0&&$.messageAssociation!==null?d8.fromPartial($.messageAssociation):void 0,K.capiCreatedGroup=$.capiCreatedGroup??void 0,K.supportPayload=$.supportPayload??void 0,K.limitSharing=$.limitSharing!==void 0&&$.limitSharing!==null?V0.fromPartial($.limitSharing):void 0,K.limitSharingV2=$.limitSharingV2!==void 0&&$.limitSharingV2!==null?V0.fromPartial($.limitSharingV2):void 0,K.threadId=$.threadId?.map((Q)=>xY.fromPartial(Q))||void 0,K.weblinkRenderConfig=$.weblinkRenderConfig??void 0,K.teeBotMetadata=$.teeBotMetadata??void 0,K}};function pC(){return{}}var x={encode($,K=new H){if($.remoteJid!==void 0)K.uint32(10).string($.remoteJid);if($.fromMe!==void 0)K.uint32(16).bool($.fromMe);if($.id!==void 0)K.uint32(26).string($.id);if($.participant!==void 0)K.uint32(34).string($.participant);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.remoteJid=Q.string();continue}case 2:{if(Z!==16)break;J.fromMe=Q.bool();continue}case 3:{if(Z!==26)break;J.id=Q.string();continue}case 4:{if(Z!==34)break;J.participant=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return x.fromPartial($??{})},fromPartial($){let K=pC();return K.remoteJid=$.remoteJid??void 0,K.fromMe=$.fromMe??void 0,K.id=$.id??void 0,K.participant=$.participant??void 0,K}};function uC(){return{}}var oN={encode($,K=new H){if($.version!==void 0)K.uint32(13).sfixed32($.version);if($.encIv!==void 0)K.uint32(18).bytes($.encIv);if($.encPayload!==void 0)K.uint32(26).bytes($.encPayload);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==13)break;J.version=Q.sfixed32();continue}case 2:{if(Z!==18)break;J.encIv=Q.bytes();continue}case 3:{if(Z!==26)break;J.encPayload=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oN.fromPartial($??{})},fromPartial($){let K=uC();return K.version=$.version??void 0,K.encIv=$.encIv??void 0,K.encPayload=$.encPayload??void 0,K}};function wC(){return{}}var m={encode($,K=new H){if($.text!==void 0)K.uint32(10).string($.text);if($.mentionedJid!==void 0&&$.mentionedJid.length!==0)for(let Q of $.mentionedJid)K.uint32(18).string(Q);if($.commands!==void 0&&$.commands.length!==0)for(let Q of $.commands)TQ.encode(Q,K.uint32(26).fork()).join();if($.mentions!==void 0&&$.mentions.length!==0)for(let Q of $.mentions)HJ.encode(Q,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.text=Q.string();continue}case 2:{if(Z!==18)break;if(J.mentionedJid===void 0)J.mentionedJid=[];let Y=Q.string();if(Y!==void 0)J.mentionedJid.push(Y);continue}case 3:{if(Z!==26)break;if(J.commands===void 0)J.commands=[];let Y=TQ.decode(Q,Q.uint32());if(Y!==void 0)J.commands.push(Y);continue}case 4:{if(Z!==34)break;if(J.mentions===void 0)J.mentions=[];let Y=HJ.decode(Q,Q.uint32());if(Y!==void 0)J.mentions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return m.fromPartial($??{})},fromPartial($){let K=wC();return K.text=$.text??void 0,K.mentionedJid=$.mentionedJid?.map((Q)=>Q)||void 0,K.commands=$.commands?.map((Q)=>TQ.fromPartial(Q))||void 0,K.mentions=$.mentions?.map((Q)=>HJ.fromPartial(Q))||void 0,K}};function nC(){return{}}var r={encode($,K=new H){if($.value!==void 0)K.uint32(8).int64($.value);if($.offset!==void 0)K.uint32(16).uint32($.offset);if($.currencyCode!==void 0)K.uint32(26).string($.currencyCode);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.value=Q.int64Number();continue}case 2:{if(Z!==16)break;J.offset=Q.uint32();continue}case 3:{if(Z!==26)break;J.currencyCode=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return r.fromPartial($??{})},fromPartial($){let K=nC();return K.value=$.value??void 0,K.offset=$.offset??void 0,K.currencyCode=$.currencyCode??void 0,K}};function dC(){return{}}var c0={encode($,K=new H){if($.body!==void 0)K.uint32(10).string($.body);if($.caption!==void 0)K.uint32(26).string($.caption);if($.lng!==void 0)K.uint32(41).double($.lng);if($.isLive!==void 0)K.uint32(48).bool($.isLive);if($.lat!==void 0)K.uint32(57).double($.lat);if($.paymentAmount1000!==void 0)K.uint32(64).int32($.paymentAmount1000);if($.paymentNoteMsgBody!==void 0)K.uint32(74).string($.paymentNoteMsgBody);if($.matchedText!==void 0)K.uint32(90).string($.matchedText);if($.title!==void 0)K.uint32(98).string($.title);if($.description!==void 0)K.uint32(106).string($.description);if($.futureproofBuffer!==void 0)K.uint32(114).bytes($.futureproofBuffer);if($.clientUrl!==void 0)K.uint32(122).string($.clientUrl);if($.loc!==void 0)K.uint32(130).string($.loc);if($.pollName!==void 0)K.uint32(138).string($.pollName);if($.pollOptions!==void 0&&$.pollOptions.length!==0)for(let Q of $.pollOptions)k$.encode(Q,K.uint32(146).fork()).join();if($.pollSelectableOptionsCount!==void 0)K.uint32(160).uint32($.pollSelectableOptionsCount);if($.messageSecret!==void 0)K.uint32(170).bytes($.messageSecret);if($.originalSelfAuthor!==void 0)K.uint32(410).string($.originalSelfAuthor);if($.senderTimestampMs!==void 0)K.uint32(176).int64($.senderTimestampMs);if($.pollUpdateParentKey!==void 0)K.uint32(186).string($.pollUpdateParentKey);if($.encPollVote!==void 0)Kq.encode($.encPollVote,K.uint32(194).fork()).join();if($.isSentCagPollCreation!==void 0)K.uint32(224).bool($.isSentCagPollCreation);if($.pollContentType!==void 0)K.uint32(336).int32($.pollContentType);if($.pollType!==void 0)K.uint32(368).int32($.pollType);if($.correctOptionIndex!==void 0)K.uint32(376).int32($.correctOptionIndex);if($.pollVotesSnapshot!==void 0)o8.encode($.pollVotesSnapshot,K.uint32(330).fork()).join();if($.encReactionTargetMessageKey!==void 0)K.uint32(202).string($.encReactionTargetMessageKey);if($.encReactionEncPayload!==void 0)K.uint32(210).bytes($.encReactionEncPayload);if($.encReactionEncIv!==void 0)K.uint32(218).bytes($.encReactionEncIv);if($.botMessageSecret!==void 0)K.uint32(234).bytes($.botMessageSecret);if($.targetMessageKey!==void 0)K.uint32(242).string($.targetMessageKey);if($.encPayload!==void 0)K.uint32(250).bytes($.encPayload);if($.encIv!==void 0)K.uint32(258).bytes($.encIv);if($.eventName!==void 0)K.uint32(266).string($.eventName);if($.isEventCanceled!==void 0)K.uint32(272).bool($.isEventCanceled);if($.eventDescription!==void 0)K.uint32(282).string($.eventDescription);if($.eventJoinLink!==void 0)K.uint32(290).string($.eventJoinLink);if($.eventStartTime!==void 0)K.uint32(296).int64($.eventStartTime);if($.eventLocation!==void 0)j8.encode($.eventLocation,K.uint32(306).fork()).join();if($.eventEndTime!==void 0)K.uint32(320).int64($.eventEndTime);if($.eventIsScheduledCall!==void 0)K.uint32(352).bool($.eventIsScheduledCall);if($.eventExtraGuestsAllowed!==void 0)K.uint32(360).bool($.eventExtraGuestsAllowed);if($.plainProtobufBytes!==void 0)K.uint32(346).bytes($.plainProtobufBytes);if($.quarantineExtractedText!==void 0)K.uint32(386).string($.quarantineExtractedText);if($.pollEndTime!==void 0)K.uint32(392).int64($.pollEndTime);if($.pollHideVoterNames!==void 0)K.uint32(400).bool($.pollHideVoterNames);if($.pollAllowAddOption!==void 0)K.uint32(416).bool($.pollAllowAddOption);if($.sharableEventInviteId!==void 0)K.uint32(426).string($.sharableEventInviteId);if($.sharableEventInviteTitle!==void 0)K.uint32(434).string($.sharableEventInviteTitle);if($.sharableEventInviteStartTime!==void 0)K.uint32(440).int64($.sharableEventInviteStartTime);if($.sharableEventInviteEndTime!==void 0)K.uint32(448).int64($.sharableEventInviteEndTime);if($.sharableEventInviteCaption!==void 0)K.uint32(458).string($.sharableEventInviteCaption);if($.sharableEventInviteIsCanceled!==void 0)K.uint32(464).bool($.sharableEventInviteIsCanceled);if($.sharableEventInviteJpegThumbnail!==void 0)K.uint32(474).bytes($.sharableEventInviteJpegThumbnail);if($.sharableEventInviteCallLink!==void 0)K.uint32(482).string($.sharableEventInviteCallLink);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.body=Q.string();continue}case 3:{if(Z!==26)break;J.caption=Q.string();continue}case 5:{if(Z!==41)break;J.lng=Q.double();continue}case 6:{if(Z!==48)break;J.isLive=Q.bool();continue}case 7:{if(Z!==57)break;J.lat=Q.double();continue}case 8:{if(Z!==64)break;J.paymentAmount1000=Q.int32();continue}case 9:{if(Z!==74)break;J.paymentNoteMsgBody=Q.string();continue}case 11:{if(Z!==90)break;J.matchedText=Q.string();continue}case 12:{if(Z!==98)break;J.title=Q.string();continue}case 13:{if(Z!==106)break;J.description=Q.string();continue}case 14:{if(Z!==114)break;J.futureproofBuffer=Q.bytes();continue}case 15:{if(Z!==122)break;J.clientUrl=Q.string();continue}case 16:{if(Z!==130)break;J.loc=Q.string();continue}case 17:{if(Z!==138)break;J.pollName=Q.string();continue}case 18:{if(Z!==146)break;if(J.pollOptions===void 0)J.pollOptions=[];let Y=k$.decode(Q,Q.uint32());if(Y!==void 0)J.pollOptions.push(Y);continue}case 20:{if(Z!==160)break;J.pollSelectableOptionsCount=Q.uint32();continue}case 21:{if(Z!==170)break;J.messageSecret=Q.bytes();continue}case 51:{if(Z!==410)break;J.originalSelfAuthor=Q.string();continue}case 22:{if(Z!==176)break;J.senderTimestampMs=Q.int64Number();continue}case 23:{if(Z!==186)break;J.pollUpdateParentKey=Q.string();continue}case 24:{if(Z!==194)break;J.encPollVote=Kq.decode(Q,Q.uint32());continue}case 28:{if(Z!==224)break;J.isSentCagPollCreation=Q.bool();continue}case 42:{if(Z!==336)break;J.pollContentType=Q.int32();continue}case 46:{if(Z!==368)break;J.pollType=Q.int32();continue}case 47:{if(Z!==376)break;J.correctOptionIndex=Q.int32();continue}case 41:{if(Z!==330)break;J.pollVotesSnapshot=o8.decode(Q,Q.uint32());continue}case 25:{if(Z!==202)break;J.encReactionTargetMessageKey=Q.string();continue}case 26:{if(Z!==210)break;J.encReactionEncPayload=Q.bytes();continue}case 27:{if(Z!==218)break;J.encReactionEncIv=Q.bytes();continue}case 29:{if(Z!==234)break;J.botMessageSecret=Q.bytes();continue}case 30:{if(Z!==242)break;J.targetMessageKey=Q.string();continue}case 31:{if(Z!==250)break;J.encPayload=Q.bytes();continue}case 32:{if(Z!==258)break;J.encIv=Q.bytes();continue}case 33:{if(Z!==266)break;J.eventName=Q.string();continue}case 34:{if(Z!==272)break;J.isEventCanceled=Q.bool();continue}case 35:{if(Z!==282)break;J.eventDescription=Q.string();continue}case 36:{if(Z!==290)break;J.eventJoinLink=Q.string();continue}case 37:{if(Z!==296)break;J.eventStartTime=Q.int64Number();continue}case 38:{if(Z!==306)break;J.eventLocation=j8.decode(Q,Q.uint32());continue}case 40:{if(Z!==320)break;J.eventEndTime=Q.int64Number();continue}case 44:{if(Z!==352)break;J.eventIsScheduledCall=Q.bool();continue}case 45:{if(Z!==360)break;J.eventExtraGuestsAllowed=Q.bool();continue}case 43:{if(Z!==346)break;J.plainProtobufBytes=Q.bytes();continue}case 48:{if(Z!==386)break;J.quarantineExtractedText=Q.string();continue}case 49:{if(Z!==392)break;J.pollEndTime=Q.int64Number();continue}case 50:{if(Z!==400)break;J.pollHideVoterNames=Q.bool();continue}case 52:{if(Z!==416)break;J.pollAllowAddOption=Q.bool();continue}case 53:{if(Z!==426)break;J.sharableEventInviteId=Q.string();continue}case 54:{if(Z!==434)break;J.sharableEventInviteTitle=Q.string();continue}case 55:{if(Z!==440)break;J.sharableEventInviteStartTime=Q.int64Number();continue}case 56:{if(Z!==448)break;J.sharableEventInviteEndTime=Q.int64Number();continue}case 57:{if(Z!==458)break;J.sharableEventInviteCaption=Q.string();continue}case 58:{if(Z!==464)break;J.sharableEventInviteIsCanceled=Q.bool();continue}case 59:{if(Z!==474)break;J.sharableEventInviteJpegThumbnail=Q.bytes();continue}case 60:{if(Z!==482)break;J.sharableEventInviteCallLink=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return c0.fromPartial($??{})},fromPartial($){let K=dC();return K.body=$.body??void 0,K.caption=$.caption??void 0,K.lng=$.lng??void 0,K.isLive=$.isLive??void 0,K.lat=$.lat??void 0,K.paymentAmount1000=$.paymentAmount1000??void 0,K.paymentNoteMsgBody=$.paymentNoteMsgBody??void 0,K.matchedText=$.matchedText??void 0,K.title=$.title??void 0,K.description=$.description??void 0,K.futureproofBuffer=$.futureproofBuffer??void 0,K.clientUrl=$.clientUrl??void 0,K.loc=$.loc??void 0,K.pollName=$.pollName??void 0,K.pollOptions=$.pollOptions?.map((Q)=>k$.fromPartial(Q))||void 0,K.pollSelectableOptionsCount=$.pollSelectableOptionsCount??void 0,K.messageSecret=$.messageSecret??void 0,K.originalSelfAuthor=$.originalSelfAuthor??void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K.pollUpdateParentKey=$.pollUpdateParentKey??void 0,K.encPollVote=$.encPollVote!==void 0&&$.encPollVote!==null?Kq.fromPartial($.encPollVote):void 0,K.isSentCagPollCreation=$.isSentCagPollCreation??void 0,K.pollContentType=$.pollContentType??void 0,K.pollType=$.pollType??void 0,K.correctOptionIndex=$.correctOptionIndex??void 0,K.pollVotesSnapshot=$.pollVotesSnapshot!==void 0&&$.pollVotesSnapshot!==null?o8.fromPartial($.pollVotesSnapshot):void 0,K.encReactionTargetMessageKey=$.encReactionTargetMessageKey??void 0,K.encReactionEncPayload=$.encReactionEncPayload??void 0,K.encReactionEncIv=$.encReactionEncIv??void 0,K.botMessageSecret=$.botMessageSecret??void 0,K.targetMessageKey=$.targetMessageKey??void 0,K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K.eventName=$.eventName??void 0,K.isEventCanceled=$.isEventCanceled??void 0,K.eventDescription=$.eventDescription??void 0,K.eventJoinLink=$.eventJoinLink??void 0,K.eventStartTime=$.eventStartTime??void 0,K.eventLocation=$.eventLocation!==void 0&&$.eventLocation!==null?j8.fromPartial($.eventLocation):void 0,K.eventEndTime=$.eventEndTime??void 0,K.eventIsScheduledCall=$.eventIsScheduledCall??void 0,K.eventExtraGuestsAllowed=$.eventExtraGuestsAllowed??void 0,K.plainProtobufBytes=$.plainProtobufBytes??void 0,K.quarantineExtractedText=$.quarantineExtractedText??void 0,K.pollEndTime=$.pollEndTime??void 0,K.pollHideVoterNames=$.pollHideVoterNames??void 0,K.pollAllowAddOption=$.pollAllowAddOption??void 0,K.sharableEventInviteId=$.sharableEventInviteId??void 0,K.sharableEventInviteTitle=$.sharableEventInviteTitle??void 0,K.sharableEventInviteStartTime=$.sharableEventInviteStartTime??void 0,K.sharableEventInviteEndTime=$.sharableEventInviteEndTime??void 0,K.sharableEventInviteCaption=$.sharableEventInviteCaption??void 0,K.sharableEventInviteIsCanceled=$.sharableEventInviteIsCanceled??void 0,K.sharableEventInviteJpegThumbnail=$.sharableEventInviteJpegThumbnail??void 0,K.sharableEventInviteCallLink=$.sharableEventInviteCallLink??void 0,K}};function jC(){return{}}var j8={encode($,K=new H){if($.degreesLatitude!==void 0)K.uint32(9).double($.degreesLatitude);if($.degreesLongitude!==void 0)K.uint32(17).double($.degreesLongitude);if($.name!==void 0)K.uint32(26).string($.name);if($.address!==void 0)K.uint32(34).string($.address);if($.url!==void 0)K.uint32(42).string($.url);if($.jpegThumbnail!==void 0)K.uint32(50).bytes($.jpegThumbnail);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==9)break;J.degreesLatitude=Q.double();continue}case 2:{if(Z!==17)break;J.degreesLongitude=Q.double();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}case 4:{if(Z!==34)break;J.address=Q.string();continue}case 5:{if(Z!==42)break;J.url=Q.string();continue}case 6:{if(Z!==50)break;J.jpegThumbnail=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return j8.fromPartial($??{})},fromPartial($){let K=jC();return K.degreesLatitude=$.degreesLatitude??void 0,K.degreesLongitude=$.degreesLongitude??void 0,K.name=$.name??void 0,K.address=$.address??void 0,K.url=$.url??void 0,K.jpegThumbnail=$.jpegThumbnail??void 0,K}};function cC(){return{}}var k$={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.hash!==void 0)K.uint32(18).string($.hash);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==18)break;J.hash=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return k$.fromPartial($??{})},fromPartial($){let K=cC();return K.name=$.name??void 0,K.hash=$.hash??void 0,K}};function oC(){return{}}var c8={encode($,K=new H){if($.option!==void 0)k$.encode($.option,K.uint32(10).fork()).join();if($.optionVoteCount!==void 0)K.uint32(16).int32($.optionVoteCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.option=k$.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.optionVoteCount=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return c8.fromPartial($??{})},fromPartial($){let K=oC();return K.option=$.option!==void 0&&$.option!==null?k$.fromPartial($.option):void 0,K.optionVoteCount=$.optionVoteCount??void 0,K}};function bC(){return{}}var o8={encode($,K=new H){if($.pollVotes!==void 0&&$.pollVotes.length!==0)for(let Q of $.pollVotes)c8.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.pollVotes===void 0)J.pollVotes=[];let Y=c8.decode(Q,Q.uint32());if(Y!==void 0)J.pollVotes.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return o8.fromPartial($??{})},fromPartial($){let K=bC();return K.pollVotes=$.pollVotes?.map((Q)=>c8.fromPartial(Q))||void 0,K}};function iC(){return{}}var bN={encode($,K=new H){if($.currentMsg!==void 0)c0.encode($.currentMsg,K.uint32(10).fork()).join();if($.quotedMsg!==void 0)c0.encode($.quotedMsg,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.currentMsg=c0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.quotedMsg=c0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bN.fromPartial($??{})},fromPartial($){let K=iC();return K.currentMsg=$.currentMsg!==void 0&&$.currentMsg!==null?c0.fromPartial($.currentMsg):void 0,K.quotedMsg=$.quotedMsg!==void 0&&$.quotedMsg!==null?c0.fromPartial($.quotedMsg):void 0,K}};function mC(){return{}}var iN={encode($,K=new H){if($.details!==void 0)K.uint32(10).bytes($.details);if($.signature!==void 0)K.uint32(18).bytes($.signature);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.details=Q.bytes();continue}case 2:{if(Z!==18)break;J.signature=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iN.fromPartial($??{})},fromPartial($){let K=mC();return K.details=$.details??void 0,K.signature=$.signature??void 0,K}};function gC(){return{}}var mN={encode($,K=new H){if($.serial!==void 0)K.uint32(8).uint32($.serial);if($.issuer!==void 0)K.uint32(18).string($.issuer);if($.expires!==void 0)K.uint32(24).uint64($.expires);if($.subject!==void 0)K.uint32(34).string($.subject);if($.key!==void 0)K.uint32(42).bytes($.key);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.serial=Q.uint32();continue}case 2:{if(Z!==18)break;J.issuer=Q.string();continue}case 3:{if(Z!==24)break;J.expires=Q.uint64Number();continue}case 4:{if(Z!==34)break;J.subject=Q.string();continue}case 5:{if(Z!==42)break;J.key=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mN.fromPartial($??{})},fromPartial($){let K=gC();return K.serial=$.serial??void 0,K.issuer=$.issuer??void 0,K.expires=$.expires??void 0,K.subject=$.subject??void 0,K.key=$.key??void 0,K}};function tC(){return{}}var gN={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.message!==void 0)w.encode($.message,K.uint32(18).fork()).join();if($.messageTimestamp!==void 0)K.uint32(24).uint64($.messageTimestamp);if($.participant!==void 0)K.uint32(34).string($.participant);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.message=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.messageTimestamp=Q.uint64Number();continue}case 4:{if(Z!==34)break;J.participant=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gN.fromPartial($??{})},fromPartial($){let K=tC();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K.messageTimestamp=$.messageTimestamp??void 0,K.participant=$.participant??void 0,K}};function rC(){return{}}var o0={encode($,K=new H){if($.messageVibrate!==void 0)K.uint32(10).string($.messageVibrate);if($.messagePopup!==void 0)K.uint32(18).string($.messagePopup);if($.messageLight!==void 0)K.uint32(26).string($.messageLight);if($.lowPriorityNotifications!==void 0)K.uint32(32).bool($.lowPriorityNotifications);if($.reactionsMuted!==void 0)K.uint32(40).bool($.reactionsMuted);if($.callVibrate!==void 0)K.uint32(50).string($.callVibrate);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageVibrate=Q.string();continue}case 2:{if(Z!==18)break;J.messagePopup=Q.string();continue}case 3:{if(Z!==26)break;J.messageLight=Q.string();continue}case 4:{if(Z!==32)break;J.lowPriorityNotifications=Q.bool();continue}case 5:{if(Z!==40)break;J.reactionsMuted=Q.bool();continue}case 6:{if(Z!==50)break;J.callVibrate=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return o0.fromPartial($??{})},fromPartial($){let K=rC();return K.messageVibrate=$.messageVibrate??void 0,K.messagePopup=$.messagePopup??void 0,K.messageLight=$.messageLight??void 0,K.lowPriorityNotifications=$.lowPriorityNotifications??void 0,K.reactionsMuted=$.reactionsMuted??void 0,K.callVibrate=$.callVibrate??void 0,K}};function aC(){return{}}var b8={encode($,K=new H){if($.orfClientState!==void 0)K.uint32(10).bytes($.orfClientState);if($.threadId!==void 0)K.uint32(18).string($.threadId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.orfClientState=Q.bytes();continue}case 2:{if(Z!==18)break;J.threadId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return b8.fromPartial($??{})},fromPartial($){let K=aC();return K.orfClientState=$.orfClientState??void 0,K.threadId=$.threadId??void 0,K}};function sC(){return{}}var tN={encode($,K=new H){if($.orfThreadId!==void 0)K.uint32(10).bytes($.orfThreadId);if($.error!==void 0)K.uint32(18).string($.error);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.orfThreadId=Q.bytes();continue}case 2:{if(Z!==18)break;J.error=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tN.fromPartial($??{})},fromPartial($){let K=sC();return K.orfThreadId=$.orfThreadId??void 0,K.error=$.error??void 0,K}};function eC(){return{}}var rN={encode($,K=new H){if($.companionPublicKey!==void 0)K.uint32(10).bytes($.companionPublicKey);if($.companionIdentityKey!==void 0)K.uint32(18).bytes($.companionIdentityKey);if($.advSecret!==void 0)K.uint32(26).bytes($.advSecret);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eC();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.companionPublicKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.companionIdentityKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.advSecret=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rN.fromPartial($??{})},fromPartial($){let K=eC();return K.companionPublicKey=$.companionPublicKey??void 0,K.companionIdentityKey=$.companionIdentityKey??void 0,K.advSecret=$.advSecret??void 0,K}};function $D(){return{}}var i8={encode($,K=new H){if($.userJid!==void 0)K.uint32(10).string($.userJid);if($.leaveReason!==void 0)K.uint32(16).int32($.leaveReason);if($.leaveTs!==void 0)K.uint32(24).uint64($.leaveTs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$D();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.userJid=Q.string();continue}case 2:{if(Z!==16)break;J.leaveReason=Q.int32();continue}case 3:{if(Z!==24)break;J.leaveTs=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return i8.fromPartial($??{})},fromPartial($){let K=$D();return K.userJid=$.userJid??void 0,K.leaveReason=$.leaveReason??void 0,K.leaveTs=$.leaveTs??void 0,K}};function KD(){return{}}var m8={encode($,K=new H){if($.groupJid!==void 0)K.uint32(10).string($.groupJid);if($.pastParticipants!==void 0&&$.pastParticipants.length!==0)for(let Q of $.pastParticipants)i8.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.groupJid=Q.string();continue}case 2:{if(Z!==18)break;if(J.pastParticipants===void 0)J.pastParticipants=[];let Y=i8.decode(Q,Q.uint32());if(Y!==void 0)J.pastParticipants.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return m8.fromPartial($??{})},fromPartial($){let K=KD();return K.groupJid=$.groupJid??void 0,K.pastParticipants=$.pastParticipants?.map((Q)=>i8.fromPartial(Q))||void 0,K}};function QD(){return{}}var aN={encode($,K=new H){if($.currentLthash!==void 0)K.uint32(10).bytes($.currentLthash);if($.newLthash!==void 0)K.uint32(18).bytes($.newLthash);if($.patchVersion!==void 0)K.uint32(26).bytes($.patchVersion);if($.collectionName!==void 0)K.uint32(34).bytes($.collectionName);if($.firstFourBytesFromAHashOfSnapshotMacKey!==void 0)K.uint32(42).bytes($.firstFourBytesFromAHashOfSnapshotMacKey);if($.newLthashSubtract!==void 0)K.uint32(50).bytes($.newLthashSubtract);if($.numberAdd!==void 0)K.uint32(56).int32($.numberAdd);if($.numberRemove!==void 0)K.uint32(64).int32($.numberRemove);if($.numberOverride!==void 0)K.uint32(72).int32($.numberOverride);if($.senderPlatform!==void 0)K.uint32(80).int32($.senderPlatform);if($.isSenderPrimary!==void 0)K.uint32(88).bool($.isSenderPrimary);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.currentLthash=Q.bytes();continue}case 2:{if(Z!==18)break;J.newLthash=Q.bytes();continue}case 3:{if(Z!==26)break;J.patchVersion=Q.bytes();continue}case 4:{if(Z!==34)break;J.collectionName=Q.bytes();continue}case 5:{if(Z!==42)break;J.firstFourBytesFromAHashOfSnapshotMacKey=Q.bytes();continue}case 6:{if(Z!==50)break;J.newLthashSubtract=Q.bytes();continue}case 7:{if(Z!==56)break;J.numberAdd=Q.int32();continue}case 8:{if(Z!==64)break;J.numberRemove=Q.int32();continue}case 9:{if(Z!==72)break;J.numberOverride=Q.int32();continue}case 10:{if(Z!==80)break;J.senderPlatform=Q.int32();continue}case 11:{if(Z!==88)break;J.isSenderPrimary=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aN.fromPartial($??{})},fromPartial($){let K=QD();return K.currentLthash=$.currentLthash??void 0,K.newLthash=$.newLthash??void 0,K.patchVersion=$.patchVersion??void 0,K.collectionName=$.collectionName??void 0,K.firstFourBytesFromAHashOfSnapshotMacKey=$.firstFourBytesFromAHashOfSnapshotMacKey??void 0,K.newLthashSubtract=$.newLthashSubtract??void 0,K.numberAdd=$.numberAdd??void 0,K.numberRemove=$.numberRemove??void 0,K.numberOverride=$.numberOverride??void 0,K.senderPlatform=$.senderPlatform??void 0,K.isSenderPrimary=$.isSenderPrimary??void 0,K}};function ZD(){return{}}var N$={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.fileLength!==void 0)K.uint32(16).uint64($.fileLength);if($.width!==void 0)K.uint32(24).uint32($.width);if($.height!==void 0)K.uint32(32).uint32($.height);if($.mimetype!==void 0)K.uint32(42).string($.mimetype);if($.placeholderArgb!==void 0)K.uint32(53).fixed32($.placeholderArgb);if($.textArgb!==void 0)K.uint32(61).fixed32($.textArgb);if($.subtextArgb!==void 0)K.uint32(69).fixed32($.subtextArgb);if($.mediaData!==void 0)g8.encode($.mediaData,K.uint32(74).fork()).join();if($.type!==void 0)K.uint32(80).int32($.type);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==16)break;J.fileLength=Q.uint64Number();continue}case 3:{if(Z!==24)break;J.width=Q.uint32();continue}case 4:{if(Z!==32)break;J.height=Q.uint32();continue}case 5:{if(Z!==42)break;J.mimetype=Q.string();continue}case 6:{if(Z!==53)break;J.placeholderArgb=Q.fixed32();continue}case 7:{if(Z!==61)break;J.textArgb=Q.fixed32();continue}case 8:{if(Z!==69)break;J.subtextArgb=Q.fixed32();continue}case 9:{if(Z!==74)break;J.mediaData=g8.decode(Q,Q.uint32());continue}case 10:{if(Z!==80)break;J.type=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return N$.fromPartial($??{})},fromPartial($){let K=ZD();return K.id=$.id??void 0,K.fileLength=$.fileLength??void 0,K.width=$.width??void 0,K.height=$.height??void 0,K.mimetype=$.mimetype??void 0,K.placeholderArgb=$.placeholderArgb??void 0,K.textArgb=$.textArgb??void 0,K.subtextArgb=$.subtextArgb??void 0,K.mediaData=$.mediaData!==void 0&&$.mediaData!==null?g8.fromPartial($.mediaData):void 0,K.type=$.type??void 0,K}};function JD(){return{}}var g8={encode($,K=new H){if($.mediaKey!==void 0)K.uint32(10).bytes($.mediaKey);if($.mediaKeyTimestamp!==void 0)K.uint32(16).int64($.mediaKeyTimestamp);if($.fileSha256!==void 0)K.uint32(26).bytes($.fileSha256);if($.fileEncSha256!==void 0)K.uint32(34).bytes($.fileEncSha256);if($.directPath!==void 0)K.uint32(42).string($.directPath);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.mediaKey=Q.bytes();continue}case 2:{if(Z!==16)break;J.mediaKeyTimestamp=Q.int64Number();continue}case 3:{if(Z!==26)break;J.fileSha256=Q.bytes();continue}case 4:{if(Z!==34)break;J.fileEncSha256=Q.bytes();continue}case 5:{if(Z!==42)break;J.directPath=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return g8.fromPartial($??{})},fromPartial($){let K=JD();return K.mediaKey=$.mediaKey??void 0,K.mediaKeyTimestamp=$.mediaKeyTimestamp??void 0,K.fileSha256=$.fileSha256??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.directPath=$.directPath??void 0,K}};function XD(){return{}}var b0={encode($,K=new H){if($.currencyDeprecated!==void 0)K.uint32(8).int32($.currencyDeprecated);if($.amount1000!==void 0)K.uint32(16).uint64($.amount1000);if($.receiverJid!==void 0)K.uint32(26).string($.receiverJid);if($.status!==void 0)K.uint32(32).int32($.status);if($.transactionTimestamp!==void 0)K.uint32(40).uint64($.transactionTimestamp);if($.requestMessageKey!==void 0)x.encode($.requestMessageKey,K.uint32(50).fork()).join();if($.expiryTimestamp!==void 0)K.uint32(56).uint64($.expiryTimestamp);if($.futureproofed!==void 0)K.uint32(64).bool($.futureproofed);if($.currency!==void 0)K.uint32(74).string($.currency);if($.txnStatus!==void 0)K.uint32(80).int32($.txnStatus);if($.useNoviFiatFormat!==void 0)K.uint32(88).bool($.useNoviFiatFormat);if($.primaryAmount!==void 0)r.encode($.primaryAmount,K.uint32(98).fork()).join();if($.exchangeAmount!==void 0)r.encode($.exchangeAmount,K.uint32(106).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.currencyDeprecated=Q.int32();continue}case 2:{if(Z!==16)break;J.amount1000=Q.uint64Number();continue}case 3:{if(Z!==26)break;J.receiverJid=Q.string();continue}case 4:{if(Z!==32)break;J.status=Q.int32();continue}case 5:{if(Z!==40)break;J.transactionTimestamp=Q.uint64Number();continue}case 6:{if(Z!==50)break;J.requestMessageKey=x.decode(Q,Q.uint32());continue}case 7:{if(Z!==56)break;J.expiryTimestamp=Q.uint64Number();continue}case 8:{if(Z!==64)break;J.futureproofed=Q.bool();continue}case 9:{if(Z!==74)break;J.currency=Q.string();continue}case 10:{if(Z!==80)break;J.txnStatus=Q.int32();continue}case 11:{if(Z!==88)break;J.useNoviFiatFormat=Q.bool();continue}case 12:{if(Z!==98)break;J.primaryAmount=r.decode(Q,Q.uint32());continue}case 13:{if(Z!==106)break;J.exchangeAmount=r.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return b0.fromPartial($??{})},fromPartial($){let K=XD();return K.currencyDeprecated=$.currencyDeprecated??void 0,K.amount1000=$.amount1000??void 0,K.receiverJid=$.receiverJid??void 0,K.status=$.status??void 0,K.transactionTimestamp=$.transactionTimestamp??void 0,K.requestMessageKey=$.requestMessageKey!==void 0&&$.requestMessageKey!==null?x.fromPartial($.requestMessageKey):void 0,K.expiryTimestamp=$.expiryTimestamp??void 0,K.futureproofed=$.futureproofed??void 0,K.currency=$.currency??void 0,K.txnStatus=$.txnStatus??void 0,K.useNoviFiatFormat=$.useNoviFiatFormat??void 0,K.primaryAmount=$.primaryAmount!==void 0&&$.primaryAmount!==null?r.fromPartial($.primaryAmount):void 0,K.exchangeAmount=$.exchangeAmount!==void 0&&$.exchangeAmount!==null?r.fromPartial($.exchangeAmount):void 0,K}};function qD(){return{}}var t8={encode($,K=new H){if($.pnJid!==void 0)K.uint32(10).string($.pnJid);if($.lidJid!==void 0)K.uint32(18).string($.lidJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pnJid=Q.string();continue}case 2:{if(Z!==18)break;J.lidJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return t8.fromPartial($??{})},fromPartial($){let K=qD();return K.pnJid=$.pnJid??void 0,K.lidJid=$.lidJid??void 0,K}};function YD(){return{}}var r8={encode($,K=new H){if($.oldPhoto!==void 0)K.uint32(10).bytes($.oldPhoto);if($.newPhoto!==void 0)K.uint32(18).bytes($.newPhoto);if($.newPhotoId!==void 0)K.uint32(24).uint32($.newPhotoId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.oldPhoto=Q.bytes();continue}case 2:{if(Z!==18)break;J.newPhoto=Q.bytes();continue}case 3:{if(Z!==24)break;J.newPhotoId=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return r8.fromPartial($??{})},fromPartial($){let K=YD();return K.oldPhoto=$.oldPhoto??void 0,K.newPhoto=$.newPhoto??void 0,K.newPhotoId=$.newPhotoId??void 0,K}};function HD(){return{}}var a8={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.key!==void 0)x.encode($.key,K.uint32(18).fork()).join();if($.senderTimestampMs!==void 0)K.uint32(24).int64($.senderTimestampMs);if($.serverTimestampMs!==void 0)K.uint32(32).int64($.serverTimestampMs);if($.messageAddOnContextInfo!==void 0)F$.encode($.messageAddOnContextInfo,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.key=x.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.senderTimestampMs=Q.int64Number();continue}case 4:{if(Z!==32)break;J.serverTimestampMs=Q.int64Number();continue}case 5:{if(Z!==42)break;J.messageAddOnContextInfo=F$.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return a8.fromPartial($??{})},fromPartial($){let K=HD();return K.type=$.type??void 0,K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K.serverTimestampMs=$.serverTimestampMs??void 0,K.messageAddOnContextInfo=$.messageAddOnContextInfo!==void 0&&$.messageAddOnContextInfo!==null?F$.fromPartial($.messageAddOnContextInfo):void 0,K}};function zD(){return{}}var s8={encode($,K=new H){if($.xDeprecated!==void 0)K.uint32(8).int32($.xDeprecated);if($.yDeprecated!==void 0)K.uint32(16).int32($.yDeprecated);if($.x!==void 0)K.uint32(25).double($.x);if($.y!==void 0)K.uint32(33).double($.y);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.xDeprecated=Q.int32();continue}case 2:{if(Z!==16)break;J.yDeprecated=Q.int32();continue}case 3:{if(Z!==25)break;J.x=Q.double();continue}case 4:{if(Z!==33)break;J.y=Q.double();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return s8.fromPartial($??{})},fromPartial($){let K=zD();return K.xDeprecated=$.xDeprecated??void 0,K.yDeprecated=$.yDeprecated??void 0,K.x=$.x??void 0,K.y=$.y??void 0,K}};function VD(){return{}}var e8={encode($,K=new H){if($.pollInvalidated!==void 0)K.uint32(8).bool($.pollInvalidated);if($.pollNameHashHistory!==void 0&&$.pollNameHashHistory.length!==0)for(let Q of $.pollNameHashHistory)$q.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.pollInvalidated=Q.bool();continue}case 2:{if(Z!==18)break;if(J.pollNameHashHistory===void 0)J.pollNameHashHistory=[];let Y=$q.decode(Q,Q.uint32());if(Y!==void 0)J.pollNameHashHistory.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return e8.fromPartial($??{})},fromPartial($){let K=VD();return K.pollInvalidated=$.pollInvalidated??void 0,K.pollNameHashHistory=$.pollNameHashHistory?.map((Q)=>$q.fromPartial(Q))||void 0,K}};function GD(){return{}}var $q={encode($,K=new H){if($.editStanzaId!==void 0)K.uint32(10).string($.editStanzaId);if($.pollNameHash!==void 0)K.uint32(18).bytes($.pollNameHash);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.editStanzaId=Q.string();continue}case 2:{if(Z!==18)break;J.pollNameHash=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $q.fromPartial($??{})},fromPartial($){let K=GD();return K.editStanzaId=$.editStanzaId??void 0,K.pollNameHash=$.pollNameHash??void 0,K}};function UD(){return{}}var Kq={encode($,K=new H){if($.encPayload!==void 0)K.uint32(10).bytes($.encPayload);if($.encIv!==void 0)K.uint32(18).bytes($.encIv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.encPayload=Q.bytes();continue}case 2:{if(Z!==18)break;J.encIv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Kq.fromPartial($??{})},fromPartial($){let K=UD();return K.encPayload=$.encPayload??void 0,K.encIv=$.encIv??void 0,K}};function CD(){return{}}var Qq={encode($,K=new H){if($.pollUpdateMessageKey!==void 0)x.encode($.pollUpdateMessageKey,K.uint32(10).fork()).join();if($.vote!==void 0)I0.encode($.vote,K.uint32(18).fork()).join();if($.senderTimestampMs!==void 0)K.uint32(24).int64($.senderTimestampMs);if($.serverTimestampMs!==void 0)K.uint32(32).int64($.serverTimestampMs);if($.unread!==void 0)K.uint32(40).bool($.unread);if($.metadata!==void 0)N0.encode($.metadata,K.uint32(50).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pollUpdateMessageKey=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.vote=I0.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.senderTimestampMs=Q.int64Number();continue}case 4:{if(Z!==32)break;J.serverTimestampMs=Q.int64Number();continue}case 5:{if(Z!==40)break;J.unread=Q.bool();continue}case 6:{if(Z!==50)break;J.metadata=N0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Qq.fromPartial($??{})},fromPartial($){let K=CD();return K.pollUpdateMessageKey=$.pollUpdateMessageKey!==void 0&&$.pollUpdateMessageKey!==null?x.fromPartial($.pollUpdateMessageKey):void 0,K.vote=$.vote!==void 0&&$.vote!==null?I0.fromPartial($.vote):void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K.serverTimestampMs=$.serverTimestampMs??void 0,K.unread=$.unread??void 0,K.metadata=$.metadata!==void 0&&$.metadata!==null?N0.fromPartial($.metadata):void 0,K}};function DD(){return{}}var sN={encode($,K=new H){if($.id!==void 0)K.uint32(8).uint32($.id);if($.publicKey!==void 0)K.uint32(18).bytes($.publicKey);if($.privateKey!==void 0)K.uint32(26).bytes($.privateKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.id=Q.uint32();continue}case 2:{if(Z!==18)break;J.publicKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.privateKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sN.fromPartial($??{})},fromPartial($){let K=DD();return K.id=$.id??void 0,K.publicKey=$.publicKey??void 0,K.privateKey=$.privateKey??void 0,K}};function LD(){return{}}var eN={encode($,K=new H){if($.registrationId!==void 0)K.uint32(40).uint32($.registrationId);if($.preKeyId!==void 0)K.uint32(8).uint32($.preKeyId);if($.signedPreKeyId!==void 0)K.uint32(48).uint32($.signedPreKeyId);if($.baseKey!==void 0)K.uint32(18).bytes($.baseKey);if($.identityKey!==void 0)K.uint32(26).bytes($.identityKey);if($.message!==void 0)K.uint32(34).bytes($.message);if($.kyberPreKeyId!==void 0)K.uint32(56).uint32($.kyberPreKeyId);if($.kyberCiphertext!==void 0)K.uint32(66).bytes($.kyberCiphertext);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 5:{if(Z!==40)break;J.registrationId=Q.uint32();continue}case 1:{if(Z!==8)break;J.preKeyId=Q.uint32();continue}case 6:{if(Z!==48)break;J.signedPreKeyId=Q.uint32();continue}case 2:{if(Z!==18)break;J.baseKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.identityKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.message=Q.bytes();continue}case 7:{if(Z!==56)break;J.kyberPreKeyId=Q.uint32();continue}case 8:{if(Z!==66)break;J.kyberCiphertext=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eN.fromPartial($??{})},fromPartial($){let K=LD();return K.registrationId=$.registrationId??void 0,K.preKeyId=$.preKeyId??void 0,K.signedPreKeyId=$.signedPreKeyId??void 0,K.baseKey=$.baseKey??void 0,K.identityKey=$.identityKey??void 0,K.message=$.message??void 0,K.kyberPreKeyId=$.kyberPreKeyId??void 0,K.kyberCiphertext=$.kyberCiphertext??void 0,K}};function PD(){return{}}var Zq={encode($,K=new H){if($.serverCampaignId!==void 0)K.uint32(10).string($.serverCampaignId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.serverCampaignId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Zq.fromPartial($??{})},fromPartial($){let K=PD();return K.serverCampaignId=$.serverCampaignId??void 0,K}};function FD(){return{}}var $R={encode($,K=new H){if($.publicKey!==void 0)K.uint32(10).bytes($.publicKey);if($.nonce!==void 0)K.uint32(18).bytes($.nonce);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.publicKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.nonce=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $R.fromPartial($??{})},fromPartial($){let K=FD();return K.publicKey=$.publicKey??void 0,K.nonce=$.nonce??void 0,K}};function xD(){return{}}var Jq={encode($,K=new H){if($.directPath!==void 0)K.uint32(10).string($.directPath);if($.fileSha256!==void 0)K.uint32(18).bytes($.fileSha256);if($.height!==void 0)K.uint32(24).uint32($.height);if($.width!==void 0)K.uint32(32).uint32($.width);if($.fileLength!==void 0)K.uint32(40).uint64($.fileLength);if($.bitrate!==void 0)K.uint32(48).uint32($.bitrate);if($.quality!==void 0)K.uint32(56).int32($.quality);if($.capabilities!==void 0&&$.capabilities.length!==0)for(let Q of $.capabilities)K.uint32(66).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.directPath=Q.string();continue}case 2:{if(Z!==18)break;J.fileSha256=Q.bytes();continue}case 3:{if(Z!==24)break;J.height=Q.uint32();continue}case 4:{if(Z!==32)break;J.width=Q.uint32();continue}case 5:{if(Z!==40)break;J.fileLength=Q.uint64Number();continue}case 6:{if(Z!==48)break;J.bitrate=Q.uint32();continue}case 7:{if(Z!==56)break;J.quality=Q.int32();continue}case 8:{if(Z!==66)break;if(J.capabilities===void 0)J.capabilities=[];let Y=Q.string();if(Y!==void 0)J.capabilities.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Jq.fromPartial($??{})},fromPartial($){let K=xD();return K.directPath=$.directPath??void 0,K.fileSha256=$.fileSha256??void 0,K.height=$.height??void 0,K.width=$.width??void 0,K.fileLength=$.fileLength??void 0,K.bitrate=$.bitrate??void 0,K.quality=$.quality??void 0,K.capabilities=$.capabilities?.map((Q)=>Q)||void 0,K}};function kD(){return{}}var KR={encode($,K=new H){if($.companionEphemeralIdentity!==void 0)K.uint32(10).bytes($.companionEphemeralIdentity);if($.commitment!==void 0)fQ.encode($.commitment,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.companionEphemeralIdentity=Q.bytes();continue}case 2:{if(Z!==18)break;J.commitment=fQ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KR.fromPartial($??{})},fromPartial($){let K=kD();return K.companionEphemeralIdentity=$.companionEphemeralIdentity??void 0,K.commitment=$.commitment!==void 0&&$.commitment!==null?fQ.fromPartial($.commitment):void 0,K}};function ND(){return{}}var Xq={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.pushname!==void 0)K.uint32(18).string($.pushname);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ND();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==18)break;J.pushname=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Xq.fromPartial($??{})},fromPartial($){let K=ND();return K.id=$.id??void 0,K.pushname=$.pushname??void 0,K}};function RD(){return{}}var QR={encode($,K=new H){return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QR.fromPartial($??{})},fromPartial($){return RD()}};function BD(){return{}}var qq={encode($,K=new H){if($.filterName!==void 0)K.uint32(10).string($.filterName);if($.parameters!==void 0&&$.parameters.length!==0)for(let Q of $.parameters)Yq.encode(Q,K.uint32(18).fork()).join();if($.filterResult!==void 0)K.uint32(24).int32($.filterResult);if($.clientNotSupportedConfig!==void 0)K.uint32(32).int32($.clientNotSupportedConfig);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.filterName=Q.string();continue}case 2:{if(Z!==18)break;if(J.parameters===void 0)J.parameters=[];let Y=Yq.decode(Q,Q.uint32());if(Y!==void 0)J.parameters.push(Y);continue}case 3:{if(Z!==24)break;J.filterResult=Q.int32();continue}case 4:{if(Z!==32)break;J.clientNotSupportedConfig=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qq.fromPartial($??{})},fromPartial($){let K=BD();return K.filterName=$.filterName??void 0,K.parameters=$.parameters?.map((Q)=>Yq.fromPartial(Q))||void 0,K.filterResult=$.filterResult??void 0,K.clientNotSupportedConfig=$.clientNotSupportedConfig??void 0,K}};function OD(){return{}}var j$={encode($,K=new H){if($.clauseType!==void 0)K.uint32(8).int32($.clauseType);if($.clauses!==void 0&&$.clauses.length!==0)for(let Q of $.clauses)j$.encode(Q,K.uint32(18).fork()).join();if($.filters!==void 0&&$.filters.length!==0)for(let Q of $.filters)qq.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.clauseType=Q.int32();continue}case 2:{if(Z!==18)break;if(J.clauses===void 0)J.clauses=[];let Y=j$.decode(Q,Q.uint32());if(Y!==void 0)J.clauses.push(Y);continue}case 3:{if(Z!==26)break;if(J.filters===void 0)J.filters=[];let Y=qq.decode(Q,Q.uint32());if(Y!==void 0)J.filters.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return j$.fromPartial($??{})},fromPartial($){let K=OD();return K.clauseType=$.clauseType??void 0,K.clauses=$.clauses?.map((Q)=>j$.fromPartial(Q))||void 0,K.filters=$.filters?.map((Q)=>qq.fromPartial(Q))||void 0,K}};function AD(){return{}}var Yq={encode($,K=new H){if($.key!==void 0)K.uint32(10).string($.key);if($.value!==void 0)K.uint32(18).string($.value);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=Q.string();continue}case 2:{if(Z!==18)break;J.value=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Yq.fromPartial($??{})},fromPartial($){let K=AD();return K.key=$.key??void 0,K.value=$.value??void 0,K}};function ED(){return{}}var Hq={encode($,K=new H){if($.originalData!==void 0)K.uint32(10).bytes($.originalData);if($.extractedText!==void 0)K.uint32(18).string($.extractedText);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ED();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.originalData=Q.bytes();continue}case 2:{if(Z!==18)break;J.extractedText=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Hq.fromPartial($??{})},fromPartial($){let K=ED();return K.originalData=$.originalData??void 0,K.extractedText=$.extractedText??void 0,K}};function MD(){return{}}var zq={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.text!==void 0)K.uint32(18).string($.text);if($.groupingKey!==void 0)K.uint32(26).string($.groupingKey);if($.senderTimestampMs!==void 0)K.uint32(32).int64($.senderTimestampMs);if($.unread!==void 0)K.uint32(40).bool($.unread);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=MD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.text=Q.string();continue}case 3:{if(Z!==26)break;J.groupingKey=Q.string();continue}case 4:{if(Z!==32)break;J.senderTimestampMs=Q.int64Number();continue}case 5:{if(Z!==40)break;J.unread=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zq.fromPartial($??{})},fromPartial($){let K=MD();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.text=$.text??void 0,K.groupingKey=$.groupingKey??void 0,K.senderTimestampMs=$.senderTimestampMs??void 0,K.unread=$.unread??void 0,K}};function WD(){return{}}var Vq={encode($,K=new H){if($.emoji!==void 0)K.uint32(10).string($.emoji);if($.weight!==void 0)K.uint32(21).float($.weight);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.emoji=Q.string();continue}case 2:{if(Z!==21)break;J.weight=Q.float();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Vq.fromPartial($??{})},fromPartial($){let K=WD();return K.emoji=$.emoji??void 0,K.weight=$.weight??void 0,K}};function ID(){return{}}var ZR={encode($,K=new H){if($.currentSession!==void 0)i0.encode($.currentSession,K.uint32(10).fork()).join();if($.previousSessions!==void 0&&$.previousSessions.length!==0)for(let Q of $.previousSessions)i0.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ID();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.currentSession=i0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;if(J.previousSessions===void 0)J.previousSessions=[];let Y=i0.decode(Q,Q.uint32());if(Y!==void 0)J.previousSessions.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZR.fromPartial($??{})},fromPartial($){let K=ID();return K.currentSession=$.currentSession!==void 0&&$.currentSession!==null?i0.fromPartial($.currentSession):void 0,K.previousSessions=$.previousSessions?.map((Q)=>i0.fromPartial(Q))||void 0,K}};function SD(){return{}}var JR={encode($,K=new H){if($.minVersion!==void 0)K.uint32(8).uint32($.minVersion);if($.maxVersion!==void 0)K.uint32(16).uint32($.maxVersion);if($.notReportableMinVersion!==void 0)K.uint32(24).uint32($.notReportableMinVersion);if($.never!==void 0)K.uint32(32).bool($.never);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.minVersion=Q.uint32();continue}case 2:{if(Z!==16)break;J.maxVersion=Q.uint32();continue}case 3:{if(Z!==24)break;J.notReportableMinVersion=Q.uint32();continue}case 4:{if(Z!==32)break;J.never=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JR.fromPartial($??{})},fromPartial($){let K=SD();return K.minVersion=$.minVersion??void 0,K.maxVersion=$.maxVersion??void 0,K.notReportableMinVersion=$.notReportableMinVersion??void 0,K.never=$.never??void 0,K}};function vD(){return{}}var Gq={encode($,K=new H){if($.reportingTag!==void 0)K.uint32(10).bytes($.reportingTag);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.reportingTag=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Gq.fromPartial($??{})},fromPartial($){let K=vD();return K.reportingTag=$.reportingTag??void 0,K}};function TD(){return{}}var XR={encode($,K=new H){if($.regionId!==void 0&&$.regionId.length!==0)for(let Q of $.regionId)K.uint32(8).int32(Q);if($.clusterId!==void 0&&$.clusterId.length!==0)for(let Q of $.clusterId)K.uint32(16).int32(Q);if($.taskId!==void 0)K.uint32(24).int32($.taskId);if($.debug!==void 0)K.uint32(32).bool($.debug);if($.tcpBbr!==void 0)K.uint32(40).bool($.tcpBbr);if($.tcpKeepalive!==void 0)K.uint32(48).bool($.tcpKeepalive);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z===8){if(J.regionId===void 0)J.regionId=[];J.regionId.push(Q.int32());continue}if(Z===10){if(J.regionId===void 0)J.regionId=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.regionId.push(Q.int32());continue}break}case 2:{if(Z===16){if(J.clusterId===void 0)J.clusterId=[];J.clusterId.push(Q.int32());continue}if(Z===18){if(J.clusterId===void 0)J.clusterId=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.clusterId.push(Q.int32());continue}break}case 3:{if(Z!==24)break;J.taskId=Q.int32();continue}case 4:{if(Z!==32)break;J.debug=Q.bool();continue}case 5:{if(Z!==40)break;J.tcpBbr=Q.bool();continue}case 6:{if(Z!==48)break;J.tcpKeepalive=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XR.fromPartial($??{})},fromPartial($){let K=TD();return K.regionId=$.regionId?.map((Q)=>Q)||void 0,K.clusterId=$.clusterId?.map((Q)=>Q)||void 0,K.taskId=$.taskId??void 0,K.debug=$.debug??void 0,K.tcpBbr=$.tcpBbr??void 0,K.tcpKeepalive=$.tcpKeepalive??void 0,K}};function yD(){return{}}var Uq={encode($,K=new H){if($.revealKeyId!==void 0)K.uint32(10).string($.revealKeyId);if($.revealKey!==void 0)K.uint32(18).bytes($.revealKey);if($.scheduledTime!==void 0)K.uint32(24).uint64($.scheduledTime);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.revealKeyId=Q.string();continue}case 2:{if(Z!==18)break;J.revealKey=Q.bytes();continue}case 3:{if(Z!==24)break;J.scheduledTime=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Uq.fromPartial($??{})},fromPartial($){let K=yD();return K.revealKeyId=$.revealKeyId??void 0,K.revealKey=$.revealKey??void 0,K.scheduledTime=$.scheduledTime??void 0,K}};function fD(){return{}}var gY={encode($,K=new H){if($.id!==void 0)K.uint32(8).uint32($.id);if($.iteration!==void 0)K.uint32(16).uint32($.iteration);if($.chainKey!==void 0)K.uint32(26).bytes($.chainKey);if($.signingKey!==void 0)K.uint32(34).bytes($.signingKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.id=Q.uint32();continue}case 2:{if(Z!==16)break;J.iteration=Q.uint32();continue}case 3:{if(Z!==26)break;J.chainKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.signingKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gY.fromPartial($??{})},fromPartial($){let K=fD();return K.id=$.id??void 0,K.iteration=$.iteration??void 0,K.chainKey=$.chainKey??void 0,K.signingKey=$.signingKey??void 0,K}};function _D(){return{}}var tY={encode($,K=new H){if($.id!==void 0)K.uint32(8).uint32($.id);if($.iteration!==void 0)K.uint32(16).uint32($.iteration);if($.ciphertext!==void 0)K.uint32(26).bytes($.ciphertext);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_D();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.id=Q.uint32();continue}case 2:{if(Z!==16)break;J.iteration=Q.uint32();continue}case 3:{if(Z!==26)break;J.ciphertext=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tY.fromPartial($??{})},fromPartial($){let K=_D();return K.id=$.id??void 0,K.iteration=$.iteration??void 0,K.ciphertext=$.ciphertext??void 0,K}};function hD(){return{}}var qR={encode($,K=new H){if($.senderKeyStates!==void 0&&$.senderKeyStates.length!==0)for(let Q of $.senderKeyStates)Cq.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.senderKeyStates===void 0)J.senderKeyStates=[];let Y=Cq.decode(Q,Q.uint32());if(Y!==void 0)J.senderKeyStates.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qR.fromPartial($??{})},fromPartial($){let K=hD();return K.senderKeyStates=$.senderKeyStates?.map((Q)=>Cq.fromPartial(Q))||void 0,K}};function lD(){return{}}var Cq={encode($,K=new H){if($.senderKeyId!==void 0)K.uint32(8).uint32($.senderKeyId);if($.senderChainKey!==void 0)Dq.encode($.senderChainKey,K.uint32(18).fork()).join();if($.senderSigningKey!==void 0)Pq.encode($.senderSigningKey,K.uint32(26).fork()).join();if($.senderMessageKeys!==void 0&&$.senderMessageKeys.length!==0)for(let Q of $.senderMessageKeys)Lq.encode(Q,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.senderKeyId=Q.uint32();continue}case 2:{if(Z!==18)break;J.senderChainKey=Dq.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.senderSigningKey=Pq.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;if(J.senderMessageKeys===void 0)J.senderMessageKeys=[];let Y=Lq.decode(Q,Q.uint32());if(Y!==void 0)J.senderMessageKeys.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Cq.fromPartial($??{})},fromPartial($){let K=lD();return K.senderKeyId=$.senderKeyId??void 0,K.senderChainKey=$.senderChainKey!==void 0&&$.senderChainKey!==null?Dq.fromPartial($.senderChainKey):void 0,K.senderSigningKey=$.senderSigningKey!==void 0&&$.senderSigningKey!==null?Pq.fromPartial($.senderSigningKey):void 0,K.senderMessageKeys=$.senderMessageKeys?.map((Q)=>Lq.fromPartial(Q))||void 0,K}};function pD(){return{}}var Dq={encode($,K=new H){if($.iteration!==void 0)K.uint32(8).uint32($.iteration);if($.seed!==void 0)K.uint32(18).bytes($.seed);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.iteration=Q.uint32();continue}case 2:{if(Z!==18)break;J.seed=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Dq.fromPartial($??{})},fromPartial($){let K=pD();return K.iteration=$.iteration??void 0,K.seed=$.seed??void 0,K}};function uD(){return{}}var Lq={encode($,K=new H){if($.iteration!==void 0)K.uint32(8).uint32($.iteration);if($.seed!==void 0)K.uint32(18).bytes($.seed);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.iteration=Q.uint32();continue}case 2:{if(Z!==18)break;J.seed=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Lq.fromPartial($??{})},fromPartial($){let K=uD();return K.iteration=$.iteration??void 0,K.seed=$.seed??void 0,K}};function wD(){return{}}var Pq={encode($,K=new H){if($.public!==void 0)K.uint32(10).bytes($.public);if($.private!==void 0)K.uint32(18).bytes($.private);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.public=Q.bytes();continue}case 2:{if(Z!==18)break;J.private=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Pq.fromPartial($??{})},fromPartial($){let K=wD();return K.public=$.public??void 0,K.private=$.private??void 0,K}};function nD(){return{}}var rY={encode($,K=new H){if($.stanzaId!==void 0)K.uint32(10).string($.stanzaId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.stanzaId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rY.fromPartial($??{})},fromPartial($){let K=nD();return K.stanzaId=$.stanzaId??void 0,K}};function dD(){return{}}var i0={encode($,K=new H){if($.sessionVersion!==void 0)K.uint32(8).uint32($.sessionVersion);if($.localIdentityPublic!==void 0)K.uint32(18).bytes($.localIdentityPublic);if($.remoteIdentityPublic!==void 0)K.uint32(26).bytes($.remoteIdentityPublic);if($.rootKey!==void 0)K.uint32(34).bytes($.rootKey);if($.previousCounter!==void 0)K.uint32(40).uint32($.previousCounter);if($.senderChain!==void 0)m0.encode($.senderChain,K.uint32(50).fork()).join();if($.receiverChains!==void 0&&$.receiverChains.length!==0)for(let Q of $.receiverChains)m0.encode(Q,K.uint32(58).fork()).join();if($.pendingKeyExchange!==void 0)kq.encode($.pendingKeyExchange,K.uint32(66).fork()).join();if($.pendingPreKey!==void 0)Nq.encode($.pendingPreKey,K.uint32(74).fork()).join();if($.remoteRegistrationId!==void 0)K.uint32(80).uint32($.remoteRegistrationId);if($.localRegistrationId!==void 0)K.uint32(88).uint32($.localRegistrationId);if($.needsRefresh!==void 0)K.uint32(96).bool($.needsRefresh);if($.aliceBaseKey!==void 0)K.uint32(106).bytes($.aliceBaseKey);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.sessionVersion=Q.uint32();continue}case 2:{if(Z!==18)break;J.localIdentityPublic=Q.bytes();continue}case 3:{if(Z!==26)break;J.remoteIdentityPublic=Q.bytes();continue}case 4:{if(Z!==34)break;J.rootKey=Q.bytes();continue}case 5:{if(Z!==40)break;J.previousCounter=Q.uint32();continue}case 6:{if(Z!==50)break;J.senderChain=m0.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;if(J.receiverChains===void 0)J.receiverChains=[];let Y=m0.decode(Q,Q.uint32());if(Y!==void 0)J.receiverChains.push(Y);continue}case 8:{if(Z!==66)break;J.pendingKeyExchange=kq.decode(Q,Q.uint32());continue}case 9:{if(Z!==74)break;J.pendingPreKey=Nq.decode(Q,Q.uint32());continue}case 10:{if(Z!==80)break;J.remoteRegistrationId=Q.uint32();continue}case 11:{if(Z!==88)break;J.localRegistrationId=Q.uint32();continue}case 12:{if(Z!==96)break;J.needsRefresh=Q.bool();continue}case 13:{if(Z!==106)break;J.aliceBaseKey=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return i0.fromPartial($??{})},fromPartial($){let K=dD();return K.sessionVersion=$.sessionVersion??void 0,K.localIdentityPublic=$.localIdentityPublic??void 0,K.remoteIdentityPublic=$.remoteIdentityPublic??void 0,K.rootKey=$.rootKey??void 0,K.previousCounter=$.previousCounter??void 0,K.senderChain=$.senderChain!==void 0&&$.senderChain!==null?m0.fromPartial($.senderChain):void 0,K.receiverChains=$.receiverChains?.map((Q)=>m0.fromPartial(Q))||void 0,K.pendingKeyExchange=$.pendingKeyExchange!==void 0&&$.pendingKeyExchange!==null?kq.fromPartial($.pendingKeyExchange):void 0,K.pendingPreKey=$.pendingPreKey!==void 0&&$.pendingPreKey!==null?Nq.fromPartial($.pendingPreKey):void 0,K.remoteRegistrationId=$.remoteRegistrationId??void 0,K.localRegistrationId=$.localRegistrationId??void 0,K.needsRefresh=$.needsRefresh??void 0,K.aliceBaseKey=$.aliceBaseKey??void 0,K}};function jD(){return{}}var m0={encode($,K=new H){if($.senderRatchetKey!==void 0)K.uint32(10).bytes($.senderRatchetKey);if($.senderRatchetKeyPrivate!==void 0)K.uint32(18).bytes($.senderRatchetKeyPrivate);if($.chainKey!==void 0)Fq.encode($.chainKey,K.uint32(26).fork()).join();if($.messageKeys!==void 0&&$.messageKeys.length!==0)for(let Q of $.messageKeys)xq.encode(Q,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.senderRatchetKey=Q.bytes();continue}case 2:{if(Z!==18)break;J.senderRatchetKeyPrivate=Q.bytes();continue}case 3:{if(Z!==26)break;J.chainKey=Fq.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;if(J.messageKeys===void 0)J.messageKeys=[];let Y=xq.decode(Q,Q.uint32());if(Y!==void 0)J.messageKeys.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return m0.fromPartial($??{})},fromPartial($){let K=jD();return K.senderRatchetKey=$.senderRatchetKey??void 0,K.senderRatchetKeyPrivate=$.senderRatchetKeyPrivate??void 0,K.chainKey=$.chainKey!==void 0&&$.chainKey!==null?Fq.fromPartial($.chainKey):void 0,K.messageKeys=$.messageKeys?.map((Q)=>xq.fromPartial(Q))||void 0,K}};function cD(){return{}}var Fq={encode($,K=new H){if($.index!==void 0)K.uint32(8).uint32($.index);if($.key!==void 0)K.uint32(18).bytes($.key);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.index=Q.uint32();continue}case 2:{if(Z!==18)break;J.key=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Fq.fromPartial($??{})},fromPartial($){let K=cD();return K.index=$.index??void 0,K.key=$.key??void 0,K}};function oD(){return{}}var xq={encode($,K=new H){if($.index!==void 0)K.uint32(8).uint32($.index);if($.cipherKey!==void 0)K.uint32(18).bytes($.cipherKey);if($.macKey!==void 0)K.uint32(26).bytes($.macKey);if($.iv!==void 0)K.uint32(34).bytes($.iv);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.index=Q.uint32();continue}case 2:{if(Z!==18)break;J.cipherKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.macKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.iv=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xq.fromPartial($??{})},fromPartial($){let K=oD();return K.index=$.index??void 0,K.cipherKey=$.cipherKey??void 0,K.macKey=$.macKey??void 0,K.iv=$.iv??void 0,K}};function bD(){return{}}var kq={encode($,K=new H){if($.sequence!==void 0)K.uint32(8).uint32($.sequence);if($.localBaseKey!==void 0)K.uint32(18).bytes($.localBaseKey);if($.localBaseKeyPrivate!==void 0)K.uint32(26).bytes($.localBaseKeyPrivate);if($.localRatchetKey!==void 0)K.uint32(34).bytes($.localRatchetKey);if($.localRatchetKeyPrivate!==void 0)K.uint32(42).bytes($.localRatchetKeyPrivate);if($.localIdentityKey!==void 0)K.uint32(58).bytes($.localIdentityKey);if($.localIdentityKeyPrivate!==void 0)K.uint32(66).bytes($.localIdentityKeyPrivate);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.sequence=Q.uint32();continue}case 2:{if(Z!==18)break;J.localBaseKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.localBaseKeyPrivate=Q.bytes();continue}case 4:{if(Z!==34)break;J.localRatchetKey=Q.bytes();continue}case 5:{if(Z!==42)break;J.localRatchetKeyPrivate=Q.bytes();continue}case 7:{if(Z!==58)break;J.localIdentityKey=Q.bytes();continue}case 8:{if(Z!==66)break;J.localIdentityKeyPrivate=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kq.fromPartial($??{})},fromPartial($){let K=bD();return K.sequence=$.sequence??void 0,K.localBaseKey=$.localBaseKey??void 0,K.localBaseKeyPrivate=$.localBaseKeyPrivate??void 0,K.localRatchetKey=$.localRatchetKey??void 0,K.localRatchetKeyPrivate=$.localRatchetKeyPrivate??void 0,K.localIdentityKey=$.localIdentityKey??void 0,K.localIdentityKeyPrivate=$.localIdentityKeyPrivate??void 0,K}};function iD(){return{}}var Nq={encode($,K=new H){if($.preKeyId!==void 0)K.uint32(8).uint32($.preKeyId);if($.signedPreKeyId!==void 0)K.uint32(24).int32($.signedPreKeyId);if($.baseKey!==void 0)K.uint32(18).bytes($.baseKey);if($.kyberPreKeyId!==void 0)K.uint32(32).uint32($.kyberPreKeyId);if($.kyberCiphertext!==void 0)K.uint32(42).bytes($.kyberCiphertext);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.preKeyId=Q.uint32();continue}case 3:{if(Z!==24)break;J.signedPreKeyId=Q.int32();continue}case 2:{if(Z!==18)break;J.baseKey=Q.bytes();continue}case 4:{if(Z!==32)break;J.kyberPreKeyId=Q.uint32();continue}case 5:{if(Z!==42)break;J.kyberCiphertext=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Nq.fromPartial($??{})},fromPartial($){let K=iD();return K.preKeyId=$.preKeyId??void 0,K.signedPreKeyId=$.signedPreKeyId??void 0,K.baseKey=$.baseKey??void 0,K.kyberPreKeyId=$.kyberPreKeyId??void 0,K.kyberCiphertext=$.kyberCiphertext??void 0,K}};function mD(){return{}}var Rq={encode($,K=new H){if($.disclaimerText!==void 0)K.uint32(10).string($.disclaimerText);if($.hcaId!==void 0)K.uint32(18).string($.hcaId);if($.sessionTransparencyType!==void 0)K.uint32(24).int32($.sessionTransparencyType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.disclaimerText=Q.string();continue}case 2:{if(Z!==18)break;J.hcaId=Q.string();continue}case 3:{if(Z!==24)break;J.sessionTransparencyType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Rq.fromPartial($??{})},fromPartial($){let K=mD();return K.disclaimerText=$.disclaimerText??void 0,K.hcaId=$.hcaId??void 0,K.sessionTransparencyType=$.sessionTransparencyType??void 0,K}};function gD(){return{}}var YR={encode($,K=new H){if($.ratchetKey!==void 0)K.uint32(10).bytes($.ratchetKey);if($.counter!==void 0)K.uint32(16).uint32($.counter);if($.previousCounter!==void 0)K.uint32(24).uint32($.previousCounter);if($.ciphertext!==void 0)K.uint32(34).bytes($.ciphertext);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.ratchetKey=Q.bytes();continue}case 2:{if(Z!==16)break;J.counter=Q.uint32();continue}case 3:{if(Z!==24)break;J.previousCounter=Q.uint32();continue}case 4:{if(Z!==34)break;J.ciphertext=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YR.fromPartial($??{})},fromPartial($){let K=gD();return K.ratchetKey=$.ratchetKey??void 0,K.counter=$.counter??void 0,K.previousCounter=$.previousCounter??void 0,K.ciphertext=$.ciphertext??void 0,K}};function tD(){return{}}var HR={encode($,K=new H){if($.id!==void 0)K.uint32(8).uint32($.id);if($.publicKey!==void 0)K.uint32(18).bytes($.publicKey);if($.privateKey!==void 0)K.uint32(26).bytes($.privateKey);if($.signature!==void 0)K.uint32(34).bytes($.signature);if($.timestamp!==void 0)K.uint32(41).fixed64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.id=Q.uint32();continue}case 2:{if(Z!==18)break;J.publicKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.privateKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.signature=Q.bytes();continue}case 5:{if(Z!==41)break;J.timestamp=Q.fixed64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HR.fromPartial($??{})},fromPartial($){let K=tD();return K.id=$.id??void 0,K.publicKey=$.publicKey??void 0,K.privateKey=$.privateKey??void 0,K.signature=$.signature??void 0,K.timestamp=$.timestamp??void 0,K}};function rD(){return{}}var Bq={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.actionUrl!==void 0)K.uint32(18).string($.actionUrl);if($.statusReshare!==void 0)Iq.encode($.statusReshare,K.uint32(26).fork()).join();if($.externalShare!==void 0)Aq.encode($.externalShare,K.uint32(34).fork()).join();if($.music!==void 0)Mq.encode($.music,K.uint32(42).fork()).join();if($.groupStatus!==void 0)Eq.encode($.groupStatus,K.uint32(50).fork()).join();if($.rlAttribution!==void 0)Wq.encode($.rlAttribution,K.uint32(58).fork()).join();if($.aiCreatedAttribution!==void 0)Oq.encode($.aiCreatedAttribution,K.uint32(66).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.actionUrl=Q.string();continue}case 3:{if(Z!==26)break;J.statusReshare=Iq.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.externalShare=Aq.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.music=Mq.decode(Q,Q.uint32());continue}case 6:{if(Z!==50)break;J.groupStatus=Eq.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.rlAttribution=Wq.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.aiCreatedAttribution=Oq.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Bq.fromPartial($??{})},fromPartial($){let K=rD();return K.type=$.type??void 0,K.actionUrl=$.actionUrl??void 0,K.statusReshare=$.statusReshare!==void 0&&$.statusReshare!==null?Iq.fromPartial($.statusReshare):void 0,K.externalShare=$.externalShare!==void 0&&$.externalShare!==null?Aq.fromPartial($.externalShare):void 0,K.music=$.music!==void 0&&$.music!==null?Mq.fromPartial($.music):void 0,K.groupStatus=$.groupStatus!==void 0&&$.groupStatus!==null?Eq.fromPartial($.groupStatus):void 0,K.rlAttribution=$.rlAttribution!==void 0&&$.rlAttribution!==null?Wq.fromPartial($.rlAttribution):void 0,K.aiCreatedAttribution=$.aiCreatedAttribution!==void 0&&$.aiCreatedAttribution!==null?Oq.fromPartial($.aiCreatedAttribution):void 0,K}};function aD(){return{}}var Oq={encode($,K=new H){if($.source!==void 0)K.uint32(8).int32($.source);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.source=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Oq.fromPartial($??{})},fromPartial($){let K=aD();return K.source=$.source??void 0,K}};function sD(){return{}}var Aq={encode($,K=new H){if($.actionUrl!==void 0)K.uint32(10).string($.actionUrl);if($.source!==void 0)K.uint32(16).int32($.source);if($.duration!==void 0)K.uint32(24).int32($.duration);if($.actionFallbackUrl!==void 0)K.uint32(34).string($.actionFallbackUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.actionUrl=Q.string();continue}case 2:{if(Z!==16)break;J.source=Q.int32();continue}case 3:{if(Z!==24)break;J.duration=Q.int32();continue}case 4:{if(Z!==34)break;J.actionFallbackUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Aq.fromPartial($??{})},fromPartial($){let K=sD();return K.actionUrl=$.actionUrl??void 0,K.source=$.source??void 0,K.duration=$.duration??void 0,K.actionFallbackUrl=$.actionFallbackUrl??void 0,K}};function eD(){return{}}var Eq={encode($,K=new H){if($.authorJid!==void 0)K.uint32(10).string($.authorJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eD();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.authorJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Eq.fromPartial($??{})},fromPartial($){let K=eD();return K.authorJid=$.authorJid??void 0,K}};function $L(){return{}}var Mq={encode($,K=new H){if($.authorName!==void 0)K.uint32(10).string($.authorName);if($.songId!==void 0)K.uint32(18).string($.songId);if($.title!==void 0)K.uint32(26).string($.title);if($.author!==void 0)K.uint32(34).string($.author);if($.artistAttribution!==void 0)K.uint32(42).string($.artistAttribution);if($.isExplicit!==void 0)K.uint32(48).bool($.isExplicit);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$L();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.authorName=Q.string();continue}case 2:{if(Z!==18)break;J.songId=Q.string();continue}case 3:{if(Z!==26)break;J.title=Q.string();continue}case 4:{if(Z!==34)break;J.author=Q.string();continue}case 5:{if(Z!==42)break;J.artistAttribution=Q.string();continue}case 6:{if(Z!==48)break;J.isExplicit=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Mq.fromPartial($??{})},fromPartial($){let K=$L();return K.authorName=$.authorName??void 0,K.songId=$.songId??void 0,K.title=$.title??void 0,K.author=$.author??void 0,K.artistAttribution=$.artistAttribution??void 0,K.isExplicit=$.isExplicit??void 0,K}};function KL(){return{}}var Wq={encode($,K=new H){if($.source!==void 0)K.uint32(8).int32($.source);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.source=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Wq.fromPartial($??{})},fromPartial($){let K=KL();return K.source=$.source??void 0,K}};function QL(){return{}}var Iq={encode($,K=new H){if($.source!==void 0)K.uint32(8).int32($.source);if($.metadata!==void 0)Sq.encode($.metadata,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.source=Q.int32();continue}case 2:{if(Z!==18)break;J.metadata=Sq.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Iq.fromPartial($??{})},fromPartial($){let K=QL();return K.source=$.source??void 0,K.metadata=$.metadata!==void 0&&$.metadata!==null?Sq.fromPartial($.metadata):void 0,K}};function ZL(){return{}}var Sq={encode($,K=new H){if($.duration!==void 0)K.uint32(8).int32($.duration);if($.channelJid!==void 0)K.uint32(18).string($.channelJid);if($.channelMessageId!==void 0)K.uint32(24).int32($.channelMessageId);if($.hasMultipleReshares!==void 0)K.uint32(32).bool($.hasMultipleReshares);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.duration=Q.int32();continue}case 2:{if(Z!==18)break;J.channelJid=Q.string();continue}case 3:{if(Z!==24)break;J.channelMessageId=Q.int32();continue}case 4:{if(Z!==32)break;J.hasMultipleReshares=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Sq.fromPartial($??{})},fromPartial($){let K=ZL();return K.duration=$.duration??void 0,K.channelJid=$.channelJid??void 0,K.channelMessageId=$.channelMessageId??void 0,K.hasMultipleReshares=$.hasMultipleReshares??void 0,K}};function JL(){return{}}var vq={encode($,K=new H){if($.quotedStatus!==void 0)w.encode($.quotedStatus,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.quotedStatus=w.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return vq.fromPartial($??{})},fromPartial($){let K=JL();return K.quotedStatus=$.quotedStatus!==void 0&&$.quotedStatus!==null?w.fromPartial($.quotedStatus):void 0,K}};function XL(){return{}}var Tq={encode($,K=new H){if($.campaignId!==void 0)K.uint32(352).uint64($.campaignId);if($.campaignExpirationTimestamp!==void 0)K.uint32(360).uint64($.campaignExpirationTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 44:{if(Z!==352)break;J.campaignId=Q.uint64Number();continue}case 45:{if(Z!==360)break;J.campaignExpirationTimestamp=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Tq.fromPartial($??{})},fromPartial($){let K=XL();return K.campaignId=$.campaignId??void 0,K.campaignExpirationTimestamp=$.campaignExpirationTimestamp??void 0,K}};function qL(){return{}}var yq={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.fileSha256!==void 0)K.uint32(18).bytes($.fileSha256);if($.fileEncSha256!==void 0)K.uint32(26).bytes($.fileEncSha256);if($.mediaKey!==void 0)K.uint32(34).bytes($.mediaKey);if($.mimetype!==void 0)K.uint32(42).string($.mimetype);if($.height!==void 0)K.uint32(48).uint32($.height);if($.width!==void 0)K.uint32(56).uint32($.width);if($.directPath!==void 0)K.uint32(66).string($.directPath);if($.fileLength!==void 0)K.uint32(72).uint64($.fileLength);if($.weight!==void 0)K.uint32(85).float($.weight);if($.lastStickerSentTs!==void 0)K.uint32(88).int64($.lastStickerSentTs);if($.isLottie!==void 0)K.uint32(96).bool($.isLottie);if($.imageHash!==void 0)K.uint32(106).string($.imageHash);if($.isAvatarSticker!==void 0)K.uint32(112).bool($.isAvatarSticker);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.fileSha256=Q.bytes();continue}case 3:{if(Z!==26)break;J.fileEncSha256=Q.bytes();continue}case 4:{if(Z!==34)break;J.mediaKey=Q.bytes();continue}case 5:{if(Z!==42)break;J.mimetype=Q.string();continue}case 6:{if(Z!==48)break;J.height=Q.uint32();continue}case 7:{if(Z!==56)break;J.width=Q.uint32();continue}case 8:{if(Z!==66)break;J.directPath=Q.string();continue}case 9:{if(Z!==72)break;J.fileLength=Q.uint64Number();continue}case 10:{if(Z!==85)break;J.weight=Q.float();continue}case 11:{if(Z!==88)break;J.lastStickerSentTs=Q.int64Number();continue}case 12:{if(Z!==96)break;J.isLottie=Q.bool();continue}case 13:{if(Z!==106)break;J.imageHash=Q.string();continue}case 14:{if(Z!==112)break;J.isAvatarSticker=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return yq.fromPartial($??{})},fromPartial($){let K=qL();return K.url=$.url??void 0,K.fileSha256=$.fileSha256??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.mimetype=$.mimetype??void 0,K.height=$.height??void 0,K.width=$.width??void 0,K.directPath=$.directPath??void 0,K.fileLength=$.fileLength??void 0,K.weight=$.weight??void 0,K.lastStickerSentTs=$.lastStickerSentTs??void 0,K.isLottie=$.isLottie??void 0,K.imageHash=$.imageHash??void 0,K.isAvatarSticker=$.isAvatarSticker??void 0,K}};function YL(){return{}}var o={encode($,K=new H){if($.payload!==void 0)K.uint32(10).bytes($.payload);if($.version!==void 0)K.uint32(16).int32($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.payload=Q.bytes();continue}case 2:{if(Z!==16)break;J.version=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return o.fromPartial($??{})},fromPartial($){let K=YL();return K.payload=$.payload??void 0,K.version=$.version??void 0,K}};function HL(){return{}}var I$={encode($,K=new H){if($.index!==void 0)K.uint32(10).bytes($.index);if($.value!==void 0)S$.encode($.value,K.uint32(18).fork()).join();if($.padding!==void 0)K.uint32(26).bytes($.padding);if($.version!==void 0)K.uint32(32).int32($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.index=Q.bytes();continue}case 2:{if(Z!==18)break;J.value=S$.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.padding=Q.bytes();continue}case 4:{if(Z!==32)break;J.version=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return I$.fromPartial($??{})},fromPartial($){let K=HL();return K.index=$.index??void 0,K.value=$.value!==void 0&&$.value!==null?S$.fromPartial($.value):void 0,K.padding=$.padding??void 0,K.version=$.version??void 0,K}};function zL(){return{}}var S$={encode($,K=new H){if($.timestamp!==void 0)K.uint32(8).int64($.timestamp);if($.starAction!==void 0)b9.encode($.starAction,K.uint32(18).fork()).join();if($.contactAction!==void 0)rq.encode($.contactAction,K.uint32(26).fork()).join();if($.muteAction!==void 0)O9.encode($.muteAction,K.uint32(34).fork()).join();if($.pinAction!==void 0)y9.encode($.pinAction,K.uint32(42).fork()).join();if($.pushNameSetting!==void 0)n9.encode($.pushNameSetting,K.uint32(58).fork()).join();if($.quickReplyAction!==void 0)d9.encode($.quickReplyAction,K.uint32(66).fork()).join();if($.recentEmojiWeightsAction!==void 0)j9.encode($.recentEmojiWeightsAction,K.uint32(90).fork()).join();if($.labelEditAction!==void 0)U9.encode($.labelEditAction,K.uint32(114).fork()).join();if($.labelAssociationAction!==void 0)G9.encode($.labelAssociationAction,K.uint32(122).fork()).join();if($.localeSetting!==void 0)L9.encode($.localeSetting,K.uint32(130).fork()).join();if($.archiveChatAction!==void 0)lq.encode($.archiveChatAction,K.uint32(138).fork()).join();if($.deleteMessageForMeAction!==void 0)J9.encode($.deleteMessageForMeAction,K.uint32(146).fork()).join();if($.keyExpiration!==void 0)V9.encode($.keyExpiration,K.uint32(154).fork()).join();if($.markChatAsReadAction!==void 0)x9.encode($.markChatAsReadAction,K.uint32(162).fork()).join();if($.clearChatAction!==void 0)gq.encode($.clearChatAction,K.uint32(170).fork()).join();if($.deleteChatAction!==void 0)Q9.encode($.deleteChatAction,K.uint32(178).fork()).join();if($.unarchiveChatsSetting!==void 0)ZY.encode($.unarchiveChatsSetting,K.uint32(186).fork()).join();if($.primaryFeature!==void 0)_9.encode($.primaryFeature,K.uint32(194).fork()).join();if($.androidUnsupportedActions!==void 0)hq.encode($.androidUnsupportedActions,K.uint32(210).fork()).join();if($.agentAction!==void 0)fq.encode($.agentAction,K.uint32(218).fork()).join();if($.subscriptionAction!==void 0)t9.encode($.subscriptionAction,K.uint32(226).fork()).join();if($.userStatusMuteAction!==void 0)JY.encode($.userStatusMuteAction,K.uint32(234).fork()).join();if($.timeFormatAction!==void 0)KY.encode($.timeFormatAction,K.uint32(242).fork()).join();if($.nuxAction!==void 0)I9.encode($.nuxAction,K.uint32(250).fork()).join();if($.primaryVersionAction!==void 0)h9.encode($.primaryVersionAction,K.uint32(258).fork()).join();if($.stickerAction!==void 0)R$.encode($.stickerAction,K.uint32(266).fork()).join();if($.removeRecentStickerAction!==void 0)c9.encode($.removeRecentStickerAction,K.uint32(274).fork()).join();if($.chatAssignment!==void 0)iq.encode($.chatAssignment,K.uint32(282).fork()).join();if($.chatAssignmentOpenedStatus!==void 0)mq.encode($.chatAssignmentOpenedStatus,K.uint32(290).fork()).join();if($.pnForLidChatAction!==void 0)f9.encode($.pnForLidChatAction,K.uint32(298).fork()).join();if($.marketingMessageAction!==void 0)k9.encode($.marketingMessageAction,K.uint32(306).fork()).join();if($.marketingMessageBroadcastAction!==void 0)N9.encode($.marketingMessageBroadcastAction,K.uint32(314).fork()).join();if($.externalWebBetaAction!==void 0)q9.encode($.externalWebBetaAction,K.uint32(322).fork()).join();if($.privacySettingRelayAllCalls!==void 0)u9.encode($.privacySettingRelayAllCalls,K.uint32(330).fork()).join();if($.callLogAction!==void 0)bq.encode($.callLogAction,K.uint32(338).fork()).join();if($.ugcBot!==void 0)QY.encode($.ugcBot,K.uint32(346).fork()).join();if($.statusPrivacy!==void 0)m9.encode($.statusPrivacy,K.uint32(354).fork()).join();if($.botWelcomeRequestAction!==void 0)nq.encode($.botWelcomeRequestAction,K.uint32(362).fork()).join();if($.deleteIndividualCallLog!==void 0)Z9.encode($.deleteIndividualCallLog,K.uint32(370).fork()).join();if($.labelReorderingAction!==void 0)C9.encode($.labelReorderingAction,K.uint32(378).fork()).join();if($.paymentInfoAction!==void 0)v9.encode($.paymentInfoAction,K.uint32(386).fork()).join();if($.customPaymentMethodsAction!==void 0)$9.encode($.customPaymentMethodsAction,K.uint32(394).fork()).join();if($.lockChatAction!==void 0)P9.encode($.lockChatAction,K.uint32(402).fork()).join();if($.chatLockSettings!==void 0)a0.encode($.chatLockSettings,K.uint32(410).fork()).join();if($.wamoUserIdentifierAction!==void 0)zY.encode($.wamoUserIdentifierAction,K.uint32(418).fork()).join();if($.privacySettingDisableLinkPreviewsAction!==void 0)p9.encode($.privacySettingDisableLinkPreviewsAction,K.uint32(426).fork()).join();if($.deviceCapabilities!==void 0)DZ.encode($.deviceCapabilities,K.uint32(434).fork()).join();if($.noteEditAction!==void 0)M9.encode($.noteEditAction,K.uint32(442).fork()).join();if($.favoritesAction!==void 0)Y9.encode($.favoritesAction,K.uint32(450).fork()).join();if($.merchantPaymentPartnerAction!==void 0)R9.encode($.merchantPaymentPartnerAction,K.uint32(458).fork()).join();if($.waffleAccountLinkStateAction!==void 0)HY.encode($.waffleAccountLinkStateAction,K.uint32(466).fork()).join();if($.usernameChatStartMode!==void 0)XY.encode($.usernameChatStartMode,K.uint32(474).fork()).join();if($.notificationActivitySettingAction!==void 0)W9.encode($.notificationActivitySettingAction,K.uint32(482).fork()).join();if($.lidContactAction!==void 0)D9.encode($.lidContactAction,K.uint32(490).fork()).join();if($.ctwaPerCustomerDataSharingAction!==void 0)aq.encode($.ctwaPerCustomerDataSharingAction,K.uint32(498).fork()).join();if($.paymentTosAction!==void 0)T9.encode($.paymentTosAction,K.uint32(506).fork()).join();if($.privacySettingChannelsPersonalisedRecommendationAction!==void 0)l9.encode($.privacySettingChannelsPersonalisedRecommendationAction,K.uint32(514).fork()).join();if($.detectedOutcomesStatusAction!==void 0)X9.encode($.detectedOutcomesStatusAction,K.uint32(530).fork()).join();if($.maibaAiFeaturesControlAction!==void 0)F9.encode($.maibaAiFeaturesControlAction,K.uint32(546).fork()).join();if($.businessBroadcastListAction!==void 0)oq.encode($.businessBroadcastListAction,K.uint32(554).fork()).join();if($.musicUserIdAction!==void 0)B9.encode($.musicUserIdAction,K.uint32(562).fork()).join();if($.statusPostOptInNotificationPreferencesAction!==void 0)i9.encode($.statusPostOptInNotificationPreferencesAction,K.uint32(570).fork()).join();if($.avatarUpdatedAction!==void 0)uq.encode($.avatarUpdatedAction,K.uint32(578).fork()).join();if($.privateProcessingSettingAction!==void 0)w9.encode($.privateProcessingSettingAction,K.uint32(594).fork()).join();if($.newsletterSavedInterestsAction!==void 0)E9.encode($.newsletterSavedInterestsAction,K.uint32(602).fork()).join();if($.aiThreadRenameAction!==void 0)_q.encode($.aiThreadRenameAction,K.uint32(610).fork()).join();if($.interactiveMessageAction!==void 0)z9.encode($.interactiveMessageAction,K.uint32(618).fork()).join();if($.settingsSyncAction!==void 0)o9.encode($.settingsSyncAction,K.uint32(626).fork()).join();if($.outContactAction!==void 0)S9.encode($.outContactAction,K.uint32(634).fork()).join();if($.nctSaltSyncAction!==void 0)A9.encode($.nctSaltSyncAction,K.uint32(642).fork()).join();if($.businessBroadcastCampaignAction!==void 0)jq.encode($.businessBroadcastCampaignAction,K.uint32(650).fork()).join();if($.businessBroadcastInsightsAction!==void 0)cq.encode($.businessBroadcastInsightsAction,K.uint32(658).fork()).join();if($.customerDataAction!==void 0)K9.encode($.customerDataAction,K.uint32(666).fork()).join();if($.subscriptionsSyncV2Action!==void 0)r9.encode($.subscriptionsSyncV2Action,K.uint32(674).fork()).join();if($.threadPinAction!==void 0)$Y.encode($.threadPinAction,K.uint32(682).fork()).join();if($.autoOrganizeBusinessChatSetting!==void 0)pq.encode($.autoOrganizeBusinessChatSetting,K.uint32(690).fork()).join();if($.bizAiSettingsNudgeAction!==void 0)wq.encode($.bizAiSettingsNudgeAction,K.uint32(698).fork()).join();if($.coexV2VersionAction!==void 0)tq.encode($.coexV2VersionAction,K.uint32(706).fork()).join();if($.wasaRootSecretAction!==void 0)qY.encode($.wasaRootSecretAction,K.uint32(714).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.timestamp=Q.int64Number();continue}case 2:{if(Z!==18)break;J.starAction=b9.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.contactAction=rq.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.muteAction=O9.decode(Q,Q.uint32());continue}case 5:{if(Z!==42)break;J.pinAction=y9.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.pushNameSetting=n9.decode(Q,Q.uint32());continue}case 8:{if(Z!==66)break;J.quickReplyAction=d9.decode(Q,Q.uint32());continue}case 11:{if(Z!==90)break;J.recentEmojiWeightsAction=j9.decode(Q,Q.uint32());continue}case 14:{if(Z!==114)break;J.labelEditAction=U9.decode(Q,Q.uint32());continue}case 15:{if(Z!==122)break;J.labelAssociationAction=G9.decode(Q,Q.uint32());continue}case 16:{if(Z!==130)break;J.localeSetting=L9.decode(Q,Q.uint32());continue}case 17:{if(Z!==138)break;J.archiveChatAction=lq.decode(Q,Q.uint32());continue}case 18:{if(Z!==146)break;J.deleteMessageForMeAction=J9.decode(Q,Q.uint32());continue}case 19:{if(Z!==154)break;J.keyExpiration=V9.decode(Q,Q.uint32());continue}case 20:{if(Z!==162)break;J.markChatAsReadAction=x9.decode(Q,Q.uint32());continue}case 21:{if(Z!==170)break;J.clearChatAction=gq.decode(Q,Q.uint32());continue}case 22:{if(Z!==178)break;J.deleteChatAction=Q9.decode(Q,Q.uint32());continue}case 23:{if(Z!==186)break;J.unarchiveChatsSetting=ZY.decode(Q,Q.uint32());continue}case 24:{if(Z!==194)break;J.primaryFeature=_9.decode(Q,Q.uint32());continue}case 26:{if(Z!==210)break;J.androidUnsupportedActions=hq.decode(Q,Q.uint32());continue}case 27:{if(Z!==218)break;J.agentAction=fq.decode(Q,Q.uint32());continue}case 28:{if(Z!==226)break;J.subscriptionAction=t9.decode(Q,Q.uint32());continue}case 29:{if(Z!==234)break;J.userStatusMuteAction=JY.decode(Q,Q.uint32());continue}case 30:{if(Z!==242)break;J.timeFormatAction=KY.decode(Q,Q.uint32());continue}case 31:{if(Z!==250)break;J.nuxAction=I9.decode(Q,Q.uint32());continue}case 32:{if(Z!==258)break;J.primaryVersionAction=h9.decode(Q,Q.uint32());continue}case 33:{if(Z!==266)break;J.stickerAction=R$.decode(Q,Q.uint32());continue}case 34:{if(Z!==274)break;J.removeRecentStickerAction=c9.decode(Q,Q.uint32());continue}case 35:{if(Z!==282)break;J.chatAssignment=iq.decode(Q,Q.uint32());continue}case 36:{if(Z!==290)break;J.chatAssignmentOpenedStatus=mq.decode(Q,Q.uint32());continue}case 37:{if(Z!==298)break;J.pnForLidChatAction=f9.decode(Q,Q.uint32());continue}case 38:{if(Z!==306)break;J.marketingMessageAction=k9.decode(Q,Q.uint32());continue}case 39:{if(Z!==314)break;J.marketingMessageBroadcastAction=N9.decode(Q,Q.uint32());continue}case 40:{if(Z!==322)break;J.externalWebBetaAction=q9.decode(Q,Q.uint32());continue}case 41:{if(Z!==330)break;J.privacySettingRelayAllCalls=u9.decode(Q,Q.uint32());continue}case 42:{if(Z!==338)break;J.callLogAction=bq.decode(Q,Q.uint32());continue}case 43:{if(Z!==346)break;J.ugcBot=QY.decode(Q,Q.uint32());continue}case 44:{if(Z!==354)break;J.statusPrivacy=m9.decode(Q,Q.uint32());continue}case 45:{if(Z!==362)break;J.botWelcomeRequestAction=nq.decode(Q,Q.uint32());continue}case 46:{if(Z!==370)break;J.deleteIndividualCallLog=Z9.decode(Q,Q.uint32());continue}case 47:{if(Z!==378)break;J.labelReorderingAction=C9.decode(Q,Q.uint32());continue}case 48:{if(Z!==386)break;J.paymentInfoAction=v9.decode(Q,Q.uint32());continue}case 49:{if(Z!==394)break;J.customPaymentMethodsAction=$9.decode(Q,Q.uint32());continue}case 50:{if(Z!==402)break;J.lockChatAction=P9.decode(Q,Q.uint32());continue}case 51:{if(Z!==410)break;J.chatLockSettings=a0.decode(Q,Q.uint32());continue}case 52:{if(Z!==418)break;J.wamoUserIdentifierAction=zY.decode(Q,Q.uint32());continue}case 53:{if(Z!==426)break;J.privacySettingDisableLinkPreviewsAction=p9.decode(Q,Q.uint32());continue}case 54:{if(Z!==434)break;J.deviceCapabilities=DZ.decode(Q,Q.uint32());continue}case 55:{if(Z!==442)break;J.noteEditAction=M9.decode(Q,Q.uint32());continue}case 56:{if(Z!==450)break;J.favoritesAction=Y9.decode(Q,Q.uint32());continue}case 57:{if(Z!==458)break;J.merchantPaymentPartnerAction=R9.decode(Q,Q.uint32());continue}case 58:{if(Z!==466)break;J.waffleAccountLinkStateAction=HY.decode(Q,Q.uint32());continue}case 59:{if(Z!==474)break;J.usernameChatStartMode=XY.decode(Q,Q.uint32());continue}case 60:{if(Z!==482)break;J.notificationActivitySettingAction=W9.decode(Q,Q.uint32());continue}case 61:{if(Z!==490)break;J.lidContactAction=D9.decode(Q,Q.uint32());continue}case 62:{if(Z!==498)break;J.ctwaPerCustomerDataSharingAction=aq.decode(Q,Q.uint32());continue}case 63:{if(Z!==506)break;J.paymentTosAction=T9.decode(Q,Q.uint32());continue}case 64:{if(Z!==514)break;J.privacySettingChannelsPersonalisedRecommendationAction=l9.decode(Q,Q.uint32());continue}case 66:{if(Z!==530)break;J.detectedOutcomesStatusAction=X9.decode(Q,Q.uint32());continue}case 68:{if(Z!==546)break;J.maibaAiFeaturesControlAction=F9.decode(Q,Q.uint32());continue}case 69:{if(Z!==554)break;J.businessBroadcastListAction=oq.decode(Q,Q.uint32());continue}case 70:{if(Z!==562)break;J.musicUserIdAction=B9.decode(Q,Q.uint32());continue}case 71:{if(Z!==570)break;J.statusPostOptInNotificationPreferencesAction=i9.decode(Q,Q.uint32());continue}case 72:{if(Z!==578)break;J.avatarUpdatedAction=uq.decode(Q,Q.uint32());continue}case 74:{if(Z!==594)break;J.privateProcessingSettingAction=w9.decode(Q,Q.uint32());continue}case 75:{if(Z!==602)break;J.newsletterSavedInterestsAction=E9.decode(Q,Q.uint32());continue}case 76:{if(Z!==610)break;J.aiThreadRenameAction=_q.decode(Q,Q.uint32());continue}case 77:{if(Z!==618)break;J.interactiveMessageAction=z9.decode(Q,Q.uint32());continue}case 78:{if(Z!==626)break;J.settingsSyncAction=o9.decode(Q,Q.uint32());continue}case 79:{if(Z!==634)break;J.outContactAction=S9.decode(Q,Q.uint32());continue}case 80:{if(Z!==642)break;J.nctSaltSyncAction=A9.decode(Q,Q.uint32());continue}case 81:{if(Z!==650)break;J.businessBroadcastCampaignAction=jq.decode(Q,Q.uint32());continue}case 82:{if(Z!==658)break;J.businessBroadcastInsightsAction=cq.decode(Q,Q.uint32());continue}case 83:{if(Z!==666)break;J.customerDataAction=K9.decode(Q,Q.uint32());continue}case 84:{if(Z!==674)break;J.subscriptionsSyncV2Action=r9.decode(Q,Q.uint32());continue}case 85:{if(Z!==682)break;J.threadPinAction=$Y.decode(Q,Q.uint32());continue}case 86:{if(Z!==690)break;J.autoOrganizeBusinessChatSetting=pq.decode(Q,Q.uint32());continue}case 87:{if(Z!==698)break;J.bizAiSettingsNudgeAction=wq.decode(Q,Q.uint32());continue}case 88:{if(Z!==706)break;J.coexV2VersionAction=tq.decode(Q,Q.uint32());continue}case 89:{if(Z!==714)break;J.wasaRootSecretAction=qY.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return S$.fromPartial($??{})},fromPartial($){let K=zL();return K.timestamp=$.timestamp??void 0,K.starAction=$.starAction!==void 0&&$.starAction!==null?b9.fromPartial($.starAction):void 0,K.contactAction=$.contactAction!==void 0&&$.contactAction!==null?rq.fromPartial($.contactAction):void 0,K.muteAction=$.muteAction!==void 0&&$.muteAction!==null?O9.fromPartial($.muteAction):void 0,K.pinAction=$.pinAction!==void 0&&$.pinAction!==null?y9.fromPartial($.pinAction):void 0,K.pushNameSetting=$.pushNameSetting!==void 0&&$.pushNameSetting!==null?n9.fromPartial($.pushNameSetting):void 0,K.quickReplyAction=$.quickReplyAction!==void 0&&$.quickReplyAction!==null?d9.fromPartial($.quickReplyAction):void 0,K.recentEmojiWeightsAction=$.recentEmojiWeightsAction!==void 0&&$.recentEmojiWeightsAction!==null?j9.fromPartial($.recentEmojiWeightsAction):void 0,K.labelEditAction=$.labelEditAction!==void 0&&$.labelEditAction!==null?U9.fromPartial($.labelEditAction):void 0,K.labelAssociationAction=$.labelAssociationAction!==void 0&&$.labelAssociationAction!==null?G9.fromPartial($.labelAssociationAction):void 0,K.localeSetting=$.localeSetting!==void 0&&$.localeSetting!==null?L9.fromPartial($.localeSetting):void 0,K.archiveChatAction=$.archiveChatAction!==void 0&&$.archiveChatAction!==null?lq.fromPartial($.archiveChatAction):void 0,K.deleteMessageForMeAction=$.deleteMessageForMeAction!==void 0&&$.deleteMessageForMeAction!==null?J9.fromPartial($.deleteMessageForMeAction):void 0,K.keyExpiration=$.keyExpiration!==void 0&&$.keyExpiration!==null?V9.fromPartial($.keyExpiration):void 0,K.markChatAsReadAction=$.markChatAsReadAction!==void 0&&$.markChatAsReadAction!==null?x9.fromPartial($.markChatAsReadAction):void 0,K.clearChatAction=$.clearChatAction!==void 0&&$.clearChatAction!==null?gq.fromPartial($.clearChatAction):void 0,K.deleteChatAction=$.deleteChatAction!==void 0&&$.deleteChatAction!==null?Q9.fromPartial($.deleteChatAction):void 0,K.unarchiveChatsSetting=$.unarchiveChatsSetting!==void 0&&$.unarchiveChatsSetting!==null?ZY.fromPartial($.unarchiveChatsSetting):void 0,K.primaryFeature=$.primaryFeature!==void 0&&$.primaryFeature!==null?_9.fromPartial($.primaryFeature):void 0,K.androidUnsupportedActions=$.androidUnsupportedActions!==void 0&&$.androidUnsupportedActions!==null?hq.fromPartial($.androidUnsupportedActions):void 0,K.agentAction=$.agentAction!==void 0&&$.agentAction!==null?fq.fromPartial($.agentAction):void 0,K.subscriptionAction=$.subscriptionAction!==void 0&&$.subscriptionAction!==null?t9.fromPartial($.subscriptionAction):void 0,K.userStatusMuteAction=$.userStatusMuteAction!==void 0&&$.userStatusMuteAction!==null?JY.fromPartial($.userStatusMuteAction):void 0,K.timeFormatAction=$.timeFormatAction!==void 0&&$.timeFormatAction!==null?KY.fromPartial($.timeFormatAction):void 0,K.nuxAction=$.nuxAction!==void 0&&$.nuxAction!==null?I9.fromPartial($.nuxAction):void 0,K.primaryVersionAction=$.primaryVersionAction!==void 0&&$.primaryVersionAction!==null?h9.fromPartial($.primaryVersionAction):void 0,K.stickerAction=$.stickerAction!==void 0&&$.stickerAction!==null?R$.fromPartial($.stickerAction):void 0,K.removeRecentStickerAction=$.removeRecentStickerAction!==void 0&&$.removeRecentStickerAction!==null?c9.fromPartial($.removeRecentStickerAction):void 0,K.chatAssignment=$.chatAssignment!==void 0&&$.chatAssignment!==null?iq.fromPartial($.chatAssignment):void 0,K.chatAssignmentOpenedStatus=$.chatAssignmentOpenedStatus!==void 0&&$.chatAssignmentOpenedStatus!==null?mq.fromPartial($.chatAssignmentOpenedStatus):void 0,K.pnForLidChatAction=$.pnForLidChatAction!==void 0&&$.pnForLidChatAction!==null?f9.fromPartial($.pnForLidChatAction):void 0,K.marketingMessageAction=$.marketingMessageAction!==void 0&&$.marketingMessageAction!==null?k9.fromPartial($.marketingMessageAction):void 0,K.marketingMessageBroadcastAction=$.marketingMessageBroadcastAction!==void 0&&$.marketingMessageBroadcastAction!==null?N9.fromPartial($.marketingMessageBroadcastAction):void 0,K.externalWebBetaAction=$.externalWebBetaAction!==void 0&&$.externalWebBetaAction!==null?q9.fromPartial($.externalWebBetaAction):void 0,K.privacySettingRelayAllCalls=$.privacySettingRelayAllCalls!==void 0&&$.privacySettingRelayAllCalls!==null?u9.fromPartial($.privacySettingRelayAllCalls):void 0,K.callLogAction=$.callLogAction!==void 0&&$.callLogAction!==null?bq.fromPartial($.callLogAction):void 0,K.ugcBot=$.ugcBot!==void 0&&$.ugcBot!==null?QY.fromPartial($.ugcBot):void 0,K.statusPrivacy=$.statusPrivacy!==void 0&&$.statusPrivacy!==null?m9.fromPartial($.statusPrivacy):void 0,K.botWelcomeRequestAction=$.botWelcomeRequestAction!==void 0&&$.botWelcomeRequestAction!==null?nq.fromPartial($.botWelcomeRequestAction):void 0,K.deleteIndividualCallLog=$.deleteIndividualCallLog!==void 0&&$.deleteIndividualCallLog!==null?Z9.fromPartial($.deleteIndividualCallLog):void 0,K.labelReorderingAction=$.labelReorderingAction!==void 0&&$.labelReorderingAction!==null?C9.fromPartial($.labelReorderingAction):void 0,K.paymentInfoAction=$.paymentInfoAction!==void 0&&$.paymentInfoAction!==null?v9.fromPartial($.paymentInfoAction):void 0,K.customPaymentMethodsAction=$.customPaymentMethodsAction!==void 0&&$.customPaymentMethodsAction!==null?$9.fromPartial($.customPaymentMethodsAction):void 0,K.lockChatAction=$.lockChatAction!==void 0&&$.lockChatAction!==null?P9.fromPartial($.lockChatAction):void 0,K.chatLockSettings=$.chatLockSettings!==void 0&&$.chatLockSettings!==null?a0.fromPartial($.chatLockSettings):void 0,K.wamoUserIdentifierAction=$.wamoUserIdentifierAction!==void 0&&$.wamoUserIdentifierAction!==null?zY.fromPartial($.wamoUserIdentifierAction):void 0,K.privacySettingDisableLinkPreviewsAction=$.privacySettingDisableLinkPreviewsAction!==void 0&&$.privacySettingDisableLinkPreviewsAction!==null?p9.fromPartial($.privacySettingDisableLinkPreviewsAction):void 0,K.deviceCapabilities=$.deviceCapabilities!==void 0&&$.deviceCapabilities!==null?DZ.fromPartial($.deviceCapabilities):void 0,K.noteEditAction=$.noteEditAction!==void 0&&$.noteEditAction!==null?M9.fromPartial($.noteEditAction):void 0,K.favoritesAction=$.favoritesAction!==void 0&&$.favoritesAction!==null?Y9.fromPartial($.favoritesAction):void 0,K.merchantPaymentPartnerAction=$.merchantPaymentPartnerAction!==void 0&&$.merchantPaymentPartnerAction!==null?R9.fromPartial($.merchantPaymentPartnerAction):void 0,K.waffleAccountLinkStateAction=$.waffleAccountLinkStateAction!==void 0&&$.waffleAccountLinkStateAction!==null?HY.fromPartial($.waffleAccountLinkStateAction):void 0,K.usernameChatStartMode=$.usernameChatStartMode!==void 0&&$.usernameChatStartMode!==null?XY.fromPartial($.usernameChatStartMode):void 0,K.notificationActivitySettingAction=$.notificationActivitySettingAction!==void 0&&$.notificationActivitySettingAction!==null?W9.fromPartial($.notificationActivitySettingAction):void 0,K.lidContactAction=$.lidContactAction!==void 0&&$.lidContactAction!==null?D9.fromPartial($.lidContactAction):void 0,K.ctwaPerCustomerDataSharingAction=$.ctwaPerCustomerDataSharingAction!==void 0&&$.ctwaPerCustomerDataSharingAction!==null?aq.fromPartial($.ctwaPerCustomerDataSharingAction):void 0,K.paymentTosAction=$.paymentTosAction!==void 0&&$.paymentTosAction!==null?T9.fromPartial($.paymentTosAction):void 0,K.privacySettingChannelsPersonalisedRecommendationAction=$.privacySettingChannelsPersonalisedRecommendationAction!==void 0&&$.privacySettingChannelsPersonalisedRecommendationAction!==null?l9.fromPartial($.privacySettingChannelsPersonalisedRecommendationAction):void 0,K.detectedOutcomesStatusAction=$.detectedOutcomesStatusAction!==void 0&&$.detectedOutcomesStatusAction!==null?X9.fromPartial($.detectedOutcomesStatusAction):void 0,K.maibaAiFeaturesControlAction=$.maibaAiFeaturesControlAction!==void 0&&$.maibaAiFeaturesControlAction!==null?F9.fromPartial($.maibaAiFeaturesControlAction):void 0,K.businessBroadcastListAction=$.businessBroadcastListAction!==void 0&&$.businessBroadcastListAction!==null?oq.fromPartial($.businessBroadcastListAction):void 0,K.musicUserIdAction=$.musicUserIdAction!==void 0&&$.musicUserIdAction!==null?B9.fromPartial($.musicUserIdAction):void 0,K.statusPostOptInNotificationPreferencesAction=$.statusPostOptInNotificationPreferencesAction!==void 0&&$.statusPostOptInNotificationPreferencesAction!==null?i9.fromPartial($.statusPostOptInNotificationPreferencesAction):void 0,K.avatarUpdatedAction=$.avatarUpdatedAction!==void 0&&$.avatarUpdatedAction!==null?uq.fromPartial($.avatarUpdatedAction):void 0,K.privateProcessingSettingAction=$.privateProcessingSettingAction!==void 0&&$.privateProcessingSettingAction!==null?w9.fromPartial($.privateProcessingSettingAction):void 0,K.newsletterSavedInterestsAction=$.newsletterSavedInterestsAction!==void 0&&$.newsletterSavedInterestsAction!==null?E9.fromPartial($.newsletterSavedInterestsAction):void 0,K.aiThreadRenameAction=$.aiThreadRenameAction!==void 0&&$.aiThreadRenameAction!==null?_q.fromPartial($.aiThreadRenameAction):void 0,K.interactiveMessageAction=$.interactiveMessageAction!==void 0&&$.interactiveMessageAction!==null?z9.fromPartial($.interactiveMessageAction):void 0,K.settingsSyncAction=$.settingsSyncAction!==void 0&&$.settingsSyncAction!==null?o9.fromPartial($.settingsSyncAction):void 0,K.outContactAction=$.outContactAction!==void 0&&$.outContactAction!==null?S9.fromPartial($.outContactAction):void 0,K.nctSaltSyncAction=$.nctSaltSyncAction!==void 0&&$.nctSaltSyncAction!==null?A9.fromPartial($.nctSaltSyncAction):void 0,K.businessBroadcastCampaignAction=$.businessBroadcastCampaignAction!==void 0&&$.businessBroadcastCampaignAction!==null?jq.fromPartial($.businessBroadcastCampaignAction):void 0,K.businessBroadcastInsightsAction=$.businessBroadcastInsightsAction!==void 0&&$.businessBroadcastInsightsAction!==null?cq.fromPartial($.businessBroadcastInsightsAction):void 0,K.customerDataAction=$.customerDataAction!==void 0&&$.customerDataAction!==null?K9.fromPartial($.customerDataAction):void 0,K.subscriptionsSyncV2Action=$.subscriptionsSyncV2Action!==void 0&&$.subscriptionsSyncV2Action!==null?r9.fromPartial($.subscriptionsSyncV2Action):void 0,K.threadPinAction=$.threadPinAction!==void 0&&$.threadPinAction!==null?$Y.fromPartial($.threadPinAction):void 0,K.autoOrganizeBusinessChatSetting=$.autoOrganizeBusinessChatSetting!==void 0&&$.autoOrganizeBusinessChatSetting!==null?pq.fromPartial($.autoOrganizeBusinessChatSetting):void 0,K.bizAiSettingsNudgeAction=$.bizAiSettingsNudgeAction!==void 0&&$.bizAiSettingsNudgeAction!==null?wq.fromPartial($.bizAiSettingsNudgeAction):void 0,K.coexV2VersionAction=$.coexV2VersionAction!==void 0&&$.coexV2VersionAction!==null?tq.fromPartial($.coexV2VersionAction):void 0,K.wasaRootSecretAction=$.wasaRootSecretAction!==void 0&&$.wasaRootSecretAction!==null?qY.fromPartial($.wasaRootSecretAction):void 0,K}};function VL(){return{}}var fq={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.deviceId!==void 0)K.uint32(16).int32($.deviceId);if($.isDeleted!==void 0)K.uint32(24).bool($.isDeleted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==16)break;J.deviceId=Q.int32();continue}case 3:{if(Z!==24)break;J.isDeleted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return fq.fromPartial($??{})},fromPartial($){let K=VL();return K.name=$.name??void 0,K.deviceId=$.deviceId??void 0,K.isDeleted=$.isDeleted??void 0,K}};function GL(){return{}}var _q={encode($,K=new H){if($.newTitle!==void 0)K.uint32(10).string($.newTitle);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.newTitle=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _q.fromPartial($??{})},fromPartial($){let K=GL();return K.newTitle=$.newTitle??void 0,K}};function UL(){return{}}var hq={encode($,K=new H){if($.allowed!==void 0)K.uint32(8).bool($.allowed);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.allowed=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hq.fromPartial($??{})},fromPartial($){let K=UL();return K.allowed=$.allowed??void 0,K}};function CL(){return{}}var lq={encode($,K=new H){if($.archived!==void 0)K.uint32(8).bool($.archived);if($.messageRange!==void 0)Z0.encode($.messageRange,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.archived=Q.bool();continue}case 2:{if(Z!==18)break;J.messageRange=Z0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return lq.fromPartial($??{})},fromPartial($){let K=CL();return K.archived=$.archived??void 0,K.messageRange=$.messageRange!==void 0&&$.messageRange!==null?Z0.fromPartial($.messageRange):void 0,K}};function DL(){return{}}var pq={encode($,K=new H){if($.autoOrganize!==void 0)K.uint32(8).bool($.autoOrganize);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.autoOrganize=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return pq.fromPartial($??{})},fromPartial($){let K=DL();return K.autoOrganize=$.autoOrganize??void 0,K}};function LL(){return{}}var uq={encode($,K=new H){if($.eventType!==void 0)K.uint32(8).int32($.eventType);if($.recentAvatarStickers!==void 0&&$.recentAvatarStickers.length!==0)for(let Q of $.recentAvatarStickers)R$.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.eventType=Q.int32();continue}case 2:{if(Z!==18)break;if(J.recentAvatarStickers===void 0)J.recentAvatarStickers=[];let Y=R$.decode(Q,Q.uint32());if(Y!==void 0)J.recentAvatarStickers.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return uq.fromPartial($??{})},fromPartial($){let K=LL();return K.eventType=$.eventType??void 0,K.recentAvatarStickers=$.recentAvatarStickers?.map((Q)=>R$.fromPartial(Q))||void 0,K}};function PL(){return{}}var wq={encode($,K=new H){if($.category!==void 0)K.uint32(8).int32($.category);if($.version!==void 0)K.uint32(16).int64($.version);if($.updatedAtMs!==void 0)K.uint32(24).int64($.updatedAtMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.category=Q.int32();continue}case 2:{if(Z!==16)break;J.version=Q.int64Number();continue}case 3:{if(Z!==24)break;J.updatedAtMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return wq.fromPartial($??{})},fromPartial($){let K=PL();return K.category=$.category??void 0,K.version=$.version??void 0,K.updatedAtMs=$.updatedAtMs??void 0,K}};function FL(){return{}}var nq={encode($,K=new H){if($.isSent!==void 0)K.uint32(8).bool($.isSent);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isSent=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return nq.fromPartial($??{})},fromPartial($){let K=FL();return K.isSent=$.isSent??void 0,K}};function xL(){return{}}var dq={encode($,K=new H){if($.lidJid!==void 0)K.uint32(10).string($.lidJid);if($.pnJid!==void 0)K.uint32(18).string($.pnJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.lidJid=Q.string();continue}case 2:{if(Z!==18)break;J.pnJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return dq.fromPartial($??{})},fromPartial($){let K=xL();return K.lidJid=$.lidJid??void 0,K.pnJid=$.pnJid??void 0,K}};function kL(){return{}}var zR={encode($,K=new H){if($.deleted!==void 0)K.uint32(8).bool($.deleted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.deleted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zR.fromPartial($??{})},fromPartial($){let K=kL();return K.deleted=$.deleted??void 0,K}};function NL(){return{}}var jq={encode($,K=new H){if($.deviceId!==void 0)K.uint32(8).int32($.deviceId);if($.adId!==void 0)K.uint32(18).string($.adId);if($.name!==void 0)K.uint32(26).string($.name);if($.msgId!==void 0)K.uint32(34).string($.msgId);if($.broadcastJid!==void 0)K.uint32(42).string($.broadcastJid);if($.reservedQuota!==void 0)K.uint32(48).int32($.reservedQuota);if($.scheduledTimestamp!==void 0)K.uint32(56).int64($.scheduledTimestamp);if($.createTimestamp!==void 0)K.uint32(64).int64($.createTimestamp);if($.status!==void 0)K.uint32(72).int32($.status);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.deviceId=Q.int32();continue}case 2:{if(Z!==18)break;J.adId=Q.string();continue}case 3:{if(Z!==26)break;J.name=Q.string();continue}case 4:{if(Z!==34)break;J.msgId=Q.string();continue}case 5:{if(Z!==42)break;J.broadcastJid=Q.string();continue}case 6:{if(Z!==48)break;J.reservedQuota=Q.int32();continue}case 7:{if(Z!==56)break;J.scheduledTimestamp=Q.int64Number();continue}case 8:{if(Z!==64)break;J.createTimestamp=Q.int64Number();continue}case 9:{if(Z!==72)break;J.status=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return jq.fromPartial($??{})},fromPartial($){let K=NL();return K.deviceId=$.deviceId??void 0,K.adId=$.adId??void 0,K.name=$.name??void 0,K.msgId=$.msgId??void 0,K.broadcastJid=$.broadcastJid??void 0,K.reservedQuota=$.reservedQuota??void 0,K.scheduledTimestamp=$.scheduledTimestamp??void 0,K.createTimestamp=$.createTimestamp??void 0,K.status=$.status??void 0,K}};function RL(){return{}}var cq={encode($,K=new H){if($.recipientCount!==void 0)K.uint32(8).int32($.recipientCount);if($.deliveredCount!==void 0)K.uint32(16).int32($.deliveredCount);if($.readCount!==void 0)K.uint32(24).int32($.readCount);if($.repliedCount!==void 0)K.uint32(32).int32($.repliedCount);if($.quickReplyCount!==void 0)K.uint32(40).int32($.quickReplyCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.recipientCount=Q.int32();continue}case 2:{if(Z!==16)break;J.deliveredCount=Q.int32();continue}case 3:{if(Z!==24)break;J.readCount=Q.int32();continue}case 4:{if(Z!==32)break;J.repliedCount=Q.int32();continue}case 5:{if(Z!==40)break;J.quickReplyCount=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return cq.fromPartial($??{})},fromPartial($){let K=RL();return K.recipientCount=$.recipientCount??void 0,K.deliveredCount=$.deliveredCount??void 0,K.readCount=$.readCount??void 0,K.repliedCount=$.repliedCount??void 0,K.quickReplyCount=$.quickReplyCount??void 0,K}};function BL(){return{}}var oq={encode($,K=new H){if($.deleted!==void 0)K.uint32(8).bool($.deleted);if($.participants!==void 0&&$.participants.length!==0)for(let Q of $.participants)dq.encode(Q,K.uint32(18).fork()).join();if($.listName!==void 0)K.uint32(26).string($.listName);if($.labelIds!==void 0&&$.labelIds.length!==0)for(let Q of $.labelIds)K.uint32(34).string(Q);if($.audienceExpression!==void 0)K.uint32(42).string($.audienceExpression);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.deleted=Q.bool();continue}case 2:{if(Z!==18)break;if(J.participants===void 0)J.participants=[];let Y=dq.decode(Q,Q.uint32());if(Y!==void 0)J.participants.push(Y);continue}case 3:{if(Z!==26)break;J.listName=Q.string();continue}case 4:{if(Z!==34)break;if(J.labelIds===void 0)J.labelIds=[];let Y=Q.string();if(Y!==void 0)J.labelIds.push(Y);continue}case 5:{if(Z!==42)break;J.audienceExpression=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return oq.fromPartial($??{})},fromPartial($){let K=BL();return K.deleted=$.deleted??void 0,K.participants=$.participants?.map((Q)=>dq.fromPartial(Q))||void 0,K.listName=$.listName??void 0,K.labelIds=$.labelIds?.map((Q)=>Q)||void 0,K.audienceExpression=$.audienceExpression??void 0,K}};function OL(){return{}}var bq={encode($,K=new H){if($.callLogRecord!==void 0)r0.encode($.callLogRecord,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=OL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.callLogRecord=r0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return bq.fromPartial($??{})},fromPartial($){let K=OL();return K.callLogRecord=$.callLogRecord!==void 0&&$.callLogRecord!==null?r0.fromPartial($.callLogRecord):void 0,K}};function AL(){return{}}var iq={encode($,K=new H){if($.deviceAgentId!==void 0)K.uint32(10).string($.deviceAgentId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=AL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.deviceAgentId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return iq.fromPartial($??{})},fromPartial($){let K=AL();return K.deviceAgentId=$.deviceAgentId??void 0,K}};function EL(){return{}}var mq={encode($,K=new H){if($.chatOpened!==void 0)K.uint32(8).bool($.chatOpened);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=EL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.chatOpened=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return mq.fromPartial($??{})},fromPartial($){let K=EL();return K.chatOpened=$.chatOpened??void 0,K}};function ML(){return{}}var gq={encode($,K=new H){if($.messageRange!==void 0)Z0.encode($.messageRange,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ML();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageRange=Z0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return gq.fromPartial($??{})},fromPartial($){let K=ML();return K.messageRange=$.messageRange!==void 0&&$.messageRange!==null?Z0.fromPartial($.messageRange):void 0,K}};function WL(){return{}}var tq={encode($,K=new H){if($.version!==void 0)K.uint32(8).uint64($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=WL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.version=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return tq.fromPartial($??{})},fromPartial($){let K=WL();return K.version=$.version??void 0,K}};function IL(){return{}}var rq={encode($,K=new H){if($.fullName!==void 0)K.uint32(10).string($.fullName);if($.firstName!==void 0)K.uint32(18).string($.firstName);if($.lidJid!==void 0)K.uint32(26).string($.lidJid);if($.saveOnPrimaryAddressbook!==void 0)K.uint32(32).bool($.saveOnPrimaryAddressbook);if($.pnJid!==void 0)K.uint32(42).string($.pnJid);if($.username!==void 0)K.uint32(50).string($.username);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=IL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fullName=Q.string();continue}case 2:{if(Z!==18)break;J.firstName=Q.string();continue}case 3:{if(Z!==26)break;J.lidJid=Q.string();continue}case 4:{if(Z!==32)break;J.saveOnPrimaryAddressbook=Q.bool();continue}case 5:{if(Z!==42)break;J.pnJid=Q.string();continue}case 6:{if(Z!==50)break;J.username=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return rq.fromPartial($??{})},fromPartial($){let K=IL();return K.fullName=$.fullName??void 0,K.firstName=$.firstName??void 0,K.lidJid=$.lidJid??void 0,K.saveOnPrimaryAddressbook=$.saveOnPrimaryAddressbook??void 0,K.pnJid=$.pnJid??void 0,K.username=$.username??void 0,K}};function SL(){return{}}var aq={encode($,K=new H){if($.isCtwaPerCustomerDataSharingEnabled!==void 0)K.uint32(8).bool($.isCtwaPerCustomerDataSharingEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=SL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isCtwaPerCustomerDataSharingEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aq.fromPartial($??{})},fromPartial($){let K=SL();return K.isCtwaPerCustomerDataSharingEnabled=$.isCtwaPerCustomerDataSharingEnabled??void 0,K}};function vL(){return{}}var sq={encode($,K=new H){if($.credentialId!==void 0)K.uint32(10).string($.credentialId);if($.country!==void 0)K.uint32(18).string($.country);if($.type!==void 0)K.uint32(26).string($.type);if($.metadata!==void 0&&$.metadata.length!==0)for(let Q of $.metadata)eq.encode(Q,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=vL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.credentialId=Q.string();continue}case 2:{if(Z!==18)break;J.country=Q.string();continue}case 3:{if(Z!==26)break;J.type=Q.string();continue}case 4:{if(Z!==34)break;if(J.metadata===void 0)J.metadata=[];let Y=eq.decode(Q,Q.uint32());if(Y!==void 0)J.metadata.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sq.fromPartial($??{})},fromPartial($){let K=vL();return K.credentialId=$.credentialId??void 0,K.country=$.country??void 0,K.type=$.type??void 0,K.metadata=$.metadata?.map((Q)=>eq.fromPartial(Q))||void 0,K}};function TL(){return{}}var eq={encode($,K=new H){if($.key!==void 0)K.uint32(10).string($.key);if($.value!==void 0)K.uint32(18).string($.value);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=TL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=Q.string();continue}case 2:{if(Z!==18)break;J.value=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eq.fromPartial($??{})},fromPartial($){let K=TL();return K.key=$.key??void 0,K.value=$.value??void 0,K}};function yL(){return{}}var $9={encode($,K=new H){if($.customPaymentMethods!==void 0&&$.customPaymentMethods.length!==0)for(let Q of $.customPaymentMethods)sq.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=yL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.customPaymentMethods===void 0)J.customPaymentMethods=[];let Y=sq.decode(Q,Q.uint32());if(Y!==void 0)J.customPaymentMethods.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $9.fromPartial($??{})},fromPartial($){let K=yL();return K.customPaymentMethods=$.customPaymentMethods?.map((Q)=>sq.fromPartial(Q))||void 0,K}};function fL(){return{}}var K9={encode($,K=new H){if($.chatJid!==void 0)K.uint32(10).string($.chatJid);if($.contactType!==void 0)K.uint32(16).int32($.contactType);if($.email!==void 0)K.uint32(26).string($.email);if($.altPhoneNumbers!==void 0)K.uint32(34).string($.altPhoneNumbers);if($.birthday!==void 0)K.uint32(40).int64($.birthday);if($.address!==void 0)K.uint32(50).string($.address);if($.acquisitionSource!==void 0)K.uint32(56).int32($.acquisitionSource);if($.leadStage!==void 0)K.uint32(64).int32($.leadStage);if($.lastOrder!==void 0)K.uint32(72).int64($.lastOrder);if($.createdAt!==void 0)K.uint32(80).int64($.createdAt);if($.modifiedAt!==void 0)K.uint32(88).int64($.modifiedAt);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=fL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.chatJid=Q.string();continue}case 2:{if(Z!==16)break;J.contactType=Q.int32();continue}case 3:{if(Z!==26)break;J.email=Q.string();continue}case 4:{if(Z!==34)break;J.altPhoneNumbers=Q.string();continue}case 5:{if(Z!==40)break;J.birthday=Q.int64Number();continue}case 6:{if(Z!==50)break;J.address=Q.string();continue}case 7:{if(Z!==56)break;J.acquisitionSource=Q.int32();continue}case 8:{if(Z!==64)break;J.leadStage=Q.int32();continue}case 9:{if(Z!==72)break;J.lastOrder=Q.int64Number();continue}case 10:{if(Z!==80)break;J.createdAt=Q.int64Number();continue}case 11:{if(Z!==88)break;J.modifiedAt=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return K9.fromPartial($??{})},fromPartial($){let K=fL();return K.chatJid=$.chatJid??void 0,K.contactType=$.contactType??void 0,K.email=$.email??void 0,K.altPhoneNumbers=$.altPhoneNumbers??void 0,K.birthday=$.birthday??void 0,K.address=$.address??void 0,K.acquisitionSource=$.acquisitionSource??void 0,K.leadStage=$.leadStage??void 0,K.lastOrder=$.lastOrder??void 0,K.createdAt=$.createdAt??void 0,K.modifiedAt=$.modifiedAt??void 0,K}};function _L(){return{}}var Q9={encode($,K=new H){if($.messageRange!==void 0)Z0.encode($.messageRange,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_L();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.messageRange=Z0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Q9.fromPartial($??{})},fromPartial($){let K=_L();return K.messageRange=$.messageRange!==void 0&&$.messageRange!==null?Z0.fromPartial($.messageRange):void 0,K}};function hL(){return{}}var Z9={encode($,K=new H){if($.peerJid!==void 0)K.uint32(10).string($.peerJid);if($.isIncoming!==void 0)K.uint32(16).bool($.isIncoming);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=hL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.peerJid=Q.string();continue}case 2:{if(Z!==16)break;J.isIncoming=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Z9.fromPartial($??{})},fromPartial($){let K=hL();return K.peerJid=$.peerJid??void 0,K.isIncoming=$.isIncoming??void 0,K}};function lL(){return{}}var J9={encode($,K=new H){if($.deleteMedia!==void 0)K.uint32(8).bool($.deleteMedia);if($.messageTimestamp!==void 0)K.uint32(16).int64($.messageTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=lL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.deleteMedia=Q.bool();continue}case 2:{if(Z!==16)break;J.messageTimestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return J9.fromPartial($??{})},fromPartial($){let K=lL();return K.deleteMedia=$.deleteMedia??void 0,K.messageTimestamp=$.messageTimestamp??void 0,K}};function pL(){return{}}var X9={encode($,K=new H){if($.isEnabled!==void 0)K.uint32(8).bool($.isEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=pL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return X9.fromPartial($??{})},fromPartial($){let K=pL();return K.isEnabled=$.isEnabled??void 0,K}};function uL(){return{}}var q9={encode($,K=new H){if($.isOptIn!==void 0)K.uint32(8).bool($.isOptIn);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=uL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isOptIn=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return q9.fromPartial($??{})},fromPartial($){let K=uL();return K.isOptIn=$.isOptIn??void 0,K}};function wL(){return{}}var Y9={encode($,K=new H){if($.favorites!==void 0&&$.favorites.length!==0)for(let Q of $.favorites)H9.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=wL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.favorites===void 0)J.favorites=[];let Y=H9.decode(Q,Q.uint32());if(Y!==void 0)J.favorites.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Y9.fromPartial($??{})},fromPartial($){let K=wL();return K.favorites=$.favorites?.map((Q)=>H9.fromPartial(Q))||void 0,K}};function nL(){return{}}var H9={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=nL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return H9.fromPartial($??{})},fromPartial($){let K=nL();return K.id=$.id??void 0,K}};function dL(){return{}}var z9={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.agmId!==void 0)K.uint32(18).string($.agmId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=dL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.agmId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return z9.fromPartial($??{})},fromPartial($){let K=dL();return K.type=$.type??void 0,K.agmId=$.agmId??void 0,K}};function jL(){return{}}var V9={encode($,K=new H){if($.expiredKeyEpoch!==void 0)K.uint32(8).int32($.expiredKeyEpoch);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=jL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.expiredKeyEpoch=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return V9.fromPartial($??{})},fromPartial($){let K=jL();return K.expiredKeyEpoch=$.expiredKeyEpoch??void 0,K}};function cL(){return{}}var G9={encode($,K=new H){if($.labeled!==void 0)K.uint32(8).bool($.labeled);if($.modelMetaData!==void 0)K.uint32(18).string($.modelMetaData);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=cL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.labeled=Q.bool();continue}case 2:{if(Z!==18)break;J.modelMetaData=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return G9.fromPartial($??{})},fromPartial($){let K=cL();return K.labeled=$.labeled??void 0,K.modelMetaData=$.modelMetaData??void 0,K}};function oL(){return{}}var U9={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.color!==void 0)K.uint32(16).int32($.color);if($.predefinedId!==void 0)K.uint32(24).int32($.predefinedId);if($.deleted!==void 0)K.uint32(32).bool($.deleted);if($.orderIndex!==void 0)K.uint32(40).int32($.orderIndex);if($.isActive!==void 0)K.uint32(48).bool($.isActive);if($.type!==void 0)K.uint32(56).int32($.type);if($.isImmutable!==void 0)K.uint32(64).bool($.isImmutable);if($.muteEndTimeMs!==void 0)K.uint32(72).int64($.muteEndTimeMs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=oL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==16)break;J.color=Q.int32();continue}case 3:{if(Z!==24)break;J.predefinedId=Q.int32();continue}case 4:{if(Z!==32)break;J.deleted=Q.bool();continue}case 5:{if(Z!==40)break;J.orderIndex=Q.int32();continue}case 6:{if(Z!==48)break;J.isActive=Q.bool();continue}case 7:{if(Z!==56)break;J.type=Q.int32();continue}case 8:{if(Z!==64)break;J.isImmutable=Q.bool();continue}case 9:{if(Z!==72)break;J.muteEndTimeMs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return U9.fromPartial($??{})},fromPartial($){let K=oL();return K.name=$.name??void 0,K.color=$.color??void 0,K.predefinedId=$.predefinedId??void 0,K.deleted=$.deleted??void 0,K.orderIndex=$.orderIndex??void 0,K.isActive=$.isActive??void 0,K.type=$.type??void 0,K.isImmutable=$.isImmutable??void 0,K.muteEndTimeMs=$.muteEndTimeMs??void 0,K}};function bL(){return{}}var C9={encode($,K=new H){if($.sortedLabelIds!==void 0&&$.sortedLabelIds.length!==0)for(let Q of $.sortedLabelIds)K.uint32(8).int32(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=bL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z===8){if(J.sortedLabelIds===void 0)J.sortedLabelIds=[];J.sortedLabelIds.push(Q.int32());continue}if(Z===10){if(J.sortedLabelIds===void 0)J.sortedLabelIds=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.sortedLabelIds.push(Q.int32());continue}break}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return C9.fromPartial($??{})},fromPartial($){let K=bL();return K.sortedLabelIds=$.sortedLabelIds?.map((Q)=>Q)||void 0,K}};function iL(){return{}}var D9={encode($,K=new H){if($.fullName!==void 0)K.uint32(10).string($.fullName);if($.firstName!==void 0)K.uint32(18).string($.firstName);if($.username!==void 0)K.uint32(26).string($.username);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=iL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fullName=Q.string();continue}case 2:{if(Z!==18)break;J.firstName=Q.string();continue}case 3:{if(Z!==26)break;J.username=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return D9.fromPartial($??{})},fromPartial($){let K=iL();return K.fullName=$.fullName??void 0,K.firstName=$.firstName??void 0,K.username=$.username??void 0,K}};function mL(){return{}}var L9={encode($,K=new H){if($.locale!==void 0)K.uint32(10).string($.locale);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=mL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.locale=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return L9.fromPartial($??{})},fromPartial($){let K=mL();return K.locale=$.locale??void 0,K}};function gL(){return{}}var P9={encode($,K=new H){if($.locked!==void 0)K.uint32(8).bool($.locked);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=gL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.locked=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return P9.fromPartial($??{})},fromPartial($){let K=gL();return K.locked=$.locked??void 0,K}};function tL(){return{}}var F9={encode($,K=new H){if($.aiFeatureStatus!==void 0)K.uint32(8).int32($.aiFeatureStatus);if($.aiReplyMode!==void 0)K.uint32(16).int32($.aiReplyMode);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=tL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.aiFeatureStatus=Q.int32();continue}case 2:{if(Z!==16)break;J.aiReplyMode=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return F9.fromPartial($??{})},fromPartial($){let K=tL();return K.aiFeatureStatus=$.aiFeatureStatus??void 0,K.aiReplyMode=$.aiReplyMode??void 0,K}};function rL(){return{}}var x9={encode($,K=new H){if($.read!==void 0)K.uint32(8).bool($.read);if($.messageRange!==void 0)Z0.encode($.messageRange,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=rL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.read=Q.bool();continue}case 2:{if(Z!==18)break;J.messageRange=Z0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return x9.fromPartial($??{})},fromPartial($){let K=rL();return K.read=$.read??void 0,K.messageRange=$.messageRange!==void 0&&$.messageRange!==null?Z0.fromPartial($.messageRange):void 0,K}};function aL(){return{}}var k9={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.message!==void 0)K.uint32(18).string($.message);if($.type!==void 0)K.uint32(24).int32($.type);if($.createdAt!==void 0)K.uint32(32).int64($.createdAt);if($.lastSentAt!==void 0)K.uint32(40).int64($.lastSentAt);if($.isDeleted!==void 0)K.uint32(48).bool($.isDeleted);if($.mediaId!==void 0)K.uint32(58).string($.mediaId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=aL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==18)break;J.message=Q.string();continue}case 3:{if(Z!==24)break;J.type=Q.int32();continue}case 4:{if(Z!==32)break;J.createdAt=Q.int64Number();continue}case 5:{if(Z!==40)break;J.lastSentAt=Q.int64Number();continue}case 6:{if(Z!==48)break;J.isDeleted=Q.bool();continue}case 7:{if(Z!==58)break;J.mediaId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return k9.fromPartial($??{})},fromPartial($){let K=aL();return K.name=$.name??void 0,K.message=$.message??void 0,K.type=$.type??void 0,K.createdAt=$.createdAt??void 0,K.lastSentAt=$.lastSentAt??void 0,K.isDeleted=$.isDeleted??void 0,K.mediaId=$.mediaId??void 0,K}};function sL(){return{}}var N9={encode($,K=new H){if($.repliedCount!==void 0)K.uint32(8).int32($.repliedCount);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=sL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.repliedCount=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return N9.fromPartial($??{})},fromPartial($){let K=sL();return K.repliedCount=$.repliedCount??void 0,K}};function eL(){return{}}var R9={encode($,K=new H){if($.status!==void 0)K.uint32(8).int32($.status);if($.country!==void 0)K.uint32(18).string($.country);if($.gatewayName!==void 0)K.uint32(26).string($.gatewayName);if($.credentialId!==void 0)K.uint32(34).string($.credentialId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=eL();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.status=Q.int32();continue}case 2:{if(Z!==18)break;J.country=Q.string();continue}case 3:{if(Z!==26)break;J.gatewayName=Q.string();continue}case 4:{if(Z!==34)break;J.credentialId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return R9.fromPartial($??{})},fromPartial($){let K=eL();return K.status=$.status??void 0,K.country=$.country??void 0,K.gatewayName=$.gatewayName??void 0,K.credentialId=$.credentialId??void 0,K}};function $4(){return{}}var B9={encode($,K=new H){if($.musicUserId!==void 0)K.uint32(10).string($.musicUserId);return globalThis.Object.entries($.musicUserIdMap||{}).forEach(([Q,X])=>{hY.encode({key:Q,value:X},K.uint32(18).fork()).join()}),K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.musicUserId=Q.string();continue}case 2:{if(Z!==18)break;let Y=hY.decode(Q,Q.uint32());if(Y.value!==void 0&&Y.key!==void 0){if(J.musicUserIdMap===void 0)J.musicUserIdMap={};J.musicUserIdMap[Y.key]=Y.value}continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return B9.fromPartial($??{})},fromPartial($){let K=$4();return K.musicUserId=$.musicUserId??void 0,K.musicUserIdMap=$.musicUserIdMap===void 0||$.musicUserIdMap===null?void 0:globalThis.Object.entries($.musicUserIdMap??{}).reduce((Q,[X,J])=>{if(J!==void 0)Q[X]=globalThis.String(J);return Q},{}),K}};function K4(){return{}}var hY={encode($,K=new H){if($.key!==void 0)K.uint32(10).string($.key);if($.value!==void 0)K.uint32(18).string($.value);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=K4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=Q.string();continue}case 2:{if(Z!==18)break;J.value=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return hY.fromPartial($??{})},fromPartial($){let K=K4();return K.key=$.key??void 0,K.value=$.value??void 0,K}};function Q4(){return{}}var O9={encode($,K=new H){if($.muted!==void 0)K.uint32(8).bool($.muted);if($.muteEndTimestamp!==void 0)K.uint32(16).int64($.muteEndTimestamp);if($.autoMuted!==void 0)K.uint32(24).bool($.autoMuted);if($.muteEveryoneMentionEndTimestamp!==void 0)K.uint32(32).int64($.muteEveryoneMentionEndTimestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Q4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.muted=Q.bool();continue}case 2:{if(Z!==16)break;J.muteEndTimestamp=Q.int64Number();continue}case 3:{if(Z!==24)break;J.autoMuted=Q.bool();continue}case 4:{if(Z!==32)break;J.muteEveryoneMentionEndTimestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return O9.fromPartial($??{})},fromPartial($){let K=Q4();return K.muted=$.muted??void 0,K.muteEndTimestamp=$.muteEndTimestamp??void 0,K.autoMuted=$.autoMuted??void 0,K.muteEveryoneMentionEndTimestamp=$.muteEveryoneMentionEndTimestamp??void 0,K}};function Z4(){return{}}var A9={encode($,K=new H){if($.salt!==void 0)K.uint32(10).bytes($.salt);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Z4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.salt=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return A9.fromPartial($??{})},fromPartial($){let K=Z4();return K.salt=$.salt??void 0,K}};function J4(){return{}}var E9={encode($,K=new H){if($.newsletterSavedInterests!==void 0)K.uint32(10).string($.newsletterSavedInterests);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=J4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.newsletterSavedInterests=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return E9.fromPartial($??{})},fromPartial($){let K=J4();return K.newsletterSavedInterests=$.newsletterSavedInterests??void 0,K}};function X4(){return{}}var M9={encode($,K=new H){if($.type!==void 0)K.uint32(8).int32($.type);if($.chatJid!==void 0)K.uint32(18).string($.chatJid);if($.createdAt!==void 0)K.uint32(24).int64($.createdAt);if($.deleted!==void 0)K.uint32(32).bool($.deleted);if($.unstructuredContent!==void 0)K.uint32(42).string($.unstructuredContent);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=X4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.type=Q.int32();continue}case 2:{if(Z!==18)break;J.chatJid=Q.string();continue}case 3:{if(Z!==24)break;J.createdAt=Q.int64Number();continue}case 4:{if(Z!==32)break;J.deleted=Q.bool();continue}case 5:{if(Z!==42)break;J.unstructuredContent=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return M9.fromPartial($??{})},fromPartial($){let K=X4();return K.type=$.type??void 0,K.chatJid=$.chatJid??void 0,K.createdAt=$.createdAt??void 0,K.deleted=$.deleted??void 0,K.unstructuredContent=$.unstructuredContent??void 0,K}};function q4(){return{}}var W9={encode($,K=new H){if($.notificationActivitySetting!==void 0)K.uint32(8).int32($.notificationActivitySetting);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=q4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.notificationActivitySetting=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return W9.fromPartial($??{})},fromPartial($){let K=q4();return K.notificationActivitySetting=$.notificationActivitySetting??void 0,K}};function Y4(){return{}}var I9={encode($,K=new H){if($.acknowledged!==void 0)K.uint32(8).bool($.acknowledged);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=Y4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.acknowledged=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return I9.fromPartial($??{})},fromPartial($){let K=Y4();return K.acknowledged=$.acknowledged??void 0,K}};function H4(){return{}}var S9={encode($,K=new H){if($.fullName!==void 0)K.uint32(10).string($.fullName);if($.firstName!==void 0)K.uint32(18).string($.firstName);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=H4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.fullName=Q.string();continue}case 2:{if(Z!==18)break;J.firstName=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return S9.fromPartial($??{})},fromPartial($){let K=H4();return K.fullName=$.fullName??void 0,K.firstName=$.firstName??void 0,K}};function z4(){return{}}var v9={encode($,K=new H){if($.cpi!==void 0)K.uint32(10).string($.cpi);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=z4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.cpi=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return v9.fromPartial($??{})},fromPartial($){let K=z4();return K.cpi=$.cpi??void 0,K}};function V4(){return{}}var T9={encode($,K=new H){if($.paymentNotice!==void 0)K.uint32(8).int32($.paymentNotice);if($.accepted!==void 0)K.uint32(16).bool($.accepted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=V4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.paymentNotice=Q.int32();continue}case 2:{if(Z!==16)break;J.accepted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return T9.fromPartial($??{})},fromPartial($){let K=V4();return K.paymentNotice=$.paymentNotice??void 0,K.accepted=$.accepted??void 0,K}};function G4(){return{}}var y9={encode($,K=new H){if($.pinned!==void 0)K.uint32(8).bool($.pinned);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=G4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.pinned=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return y9.fromPartial($??{})},fromPartial($){let K=G4();return K.pinned=$.pinned??void 0,K}};function U4(){return{}}var f9={encode($,K=new H){if($.pnJid!==void 0)K.uint32(10).string($.pnJid);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=U4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.pnJid=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return f9.fromPartial($??{})},fromPartial($){let K=U4();return K.pnJid=$.pnJid??void 0,K}};function C4(){return{}}var _9={encode($,K=new H){if($.flags!==void 0&&$.flags.length!==0)for(let Q of $.flags)K.uint32(10).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=C4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.flags===void 0)J.flags=[];let Y=Q.string();if(Y!==void 0)J.flags.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return _9.fromPartial($??{})},fromPartial($){let K=C4();return K.flags=$.flags?.map((Q)=>Q)||void 0,K}};function D4(){return{}}var h9={encode($,K=new H){if($.version!==void 0)K.uint32(10).string($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=D4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.version=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return h9.fromPartial($??{})},fromPartial($){let K=D4();return K.version=$.version??void 0,K}};function L4(){return{}}var l9={encode($,K=new H){if($.isUserOptedOut!==void 0)K.uint32(8).bool($.isUserOptedOut);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=L4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isUserOptedOut=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return l9.fromPartial($??{})},fromPartial($){let K=L4();return K.isUserOptedOut=$.isUserOptedOut??void 0,K}};function P4(){return{}}var p9={encode($,K=new H){if($.isPreviewsDisabled!==void 0)K.uint32(8).bool($.isPreviewsDisabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=P4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isPreviewsDisabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return p9.fromPartial($??{})},fromPartial($){let K=P4();return K.isPreviewsDisabled=$.isPreviewsDisabled??void 0,K}};function F4(){return{}}var u9={encode($,K=new H){if($.isEnabled!==void 0)K.uint32(8).bool($.isEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=F4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return u9.fromPartial($??{})},fromPartial($){let K=F4();return K.isEnabled=$.isEnabled??void 0,K}};function x4(){return{}}var w9={encode($,K=new H){if($.privateProcessingStatus!==void 0)K.uint32(8).int32($.privateProcessingStatus);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=x4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.privateProcessingStatus=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return w9.fromPartial($??{})},fromPartial($){let K=x4();return K.privateProcessingStatus=$.privateProcessingStatus??void 0,K}};function k4(){return{}}var n9={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=k4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return n9.fromPartial($??{})},fromPartial($){let K=k4();return K.name=$.name??void 0,K}};function N4(){return{}}var d9={encode($,K=new H){if($.shortcut!==void 0)K.uint32(10).string($.shortcut);if($.message!==void 0)K.uint32(18).string($.message);if($.keywords!==void 0&&$.keywords.length!==0)for(let Q of $.keywords)K.uint32(26).string(Q);if($.count!==void 0)K.uint32(32).int32($.count);if($.deleted!==void 0)K.uint32(40).bool($.deleted);if($.associatedLabelIds!==void 0&&$.associatedLabelIds.length!==0)for(let Q of $.associatedLabelIds)K.uint32(50).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=N4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.shortcut=Q.string();continue}case 2:{if(Z!==18)break;J.message=Q.string();continue}case 3:{if(Z!==26)break;if(J.keywords===void 0)J.keywords=[];let Y=Q.string();if(Y!==void 0)J.keywords.push(Y);continue}case 4:{if(Z!==32)break;J.count=Q.int32();continue}case 5:{if(Z!==40)break;J.deleted=Q.bool();continue}case 6:{if(Z!==50)break;if(J.associatedLabelIds===void 0)J.associatedLabelIds=[];let Y=Q.string();if(Y!==void 0)J.associatedLabelIds.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return d9.fromPartial($??{})},fromPartial($){let K=N4();return K.shortcut=$.shortcut??void 0,K.message=$.message??void 0,K.keywords=$.keywords?.map((Q)=>Q)||void 0,K.count=$.count??void 0,K.deleted=$.deleted??void 0,K.associatedLabelIds=$.associatedLabelIds?.map((Q)=>Q)||void 0,K}};function R4(){return{}}var j9={encode($,K=new H){if($.weights!==void 0&&$.weights.length!==0)for(let Q of $.weights)Vq.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=R4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.weights===void 0)J.weights=[];let Y=Vq.decode(Q,Q.uint32());if(Y!==void 0)J.weights.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return j9.fromPartial($??{})},fromPartial($){let K=R4();return K.weights=$.weights?.map((Q)=>Vq.fromPartial(Q))||void 0,K}};function B4(){return{}}var c9={encode($,K=new H){if($.lastStickerSentTs!==void 0)K.uint32(8).int64($.lastStickerSentTs);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=B4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.lastStickerSentTs=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return c9.fromPartial($??{})},fromPartial($){let K=B4();return K.lastStickerSentTs=$.lastStickerSentTs??void 0,K}};function O4(){return{}}var o9={encode($,K=new H){if($.startAtLogin!==void 0)K.uint32(8).bool($.startAtLogin);if($.minimizeToTray!==void 0)K.uint32(16).bool($.minimizeToTray);if($.language!==void 0)K.uint32(26).string($.language);if($.replaceTextWithEmoji!==void 0)K.uint32(32).bool($.replaceTextWithEmoji);if($.bannerNotificationDisplayMode!==void 0)K.uint32(40).int32($.bannerNotificationDisplayMode);if($.unreadCounterBadgeDisplayMode!==void 0)K.uint32(48).int32($.unreadCounterBadgeDisplayMode);if($.isMessagesNotificationEnabled!==void 0)K.uint32(56).bool($.isMessagesNotificationEnabled);if($.isCallsNotificationEnabled!==void 0)K.uint32(64).bool($.isCallsNotificationEnabled);if($.isReactionsNotificationEnabled!==void 0)K.uint32(72).bool($.isReactionsNotificationEnabled);if($.isStatusReactionsNotificationEnabled!==void 0)K.uint32(80).bool($.isStatusReactionsNotificationEnabled);if($.isTextPreviewForNotificationEnabled!==void 0)K.uint32(88).bool($.isTextPreviewForNotificationEnabled);if($.defaultNotificationToneId!==void 0)K.uint32(96).int32($.defaultNotificationToneId);if($.groupDefaultNotificationToneId!==void 0)K.uint32(104).int32($.groupDefaultNotificationToneId);if($.appTheme!==void 0)K.uint32(112).int32($.appTheme);if($.wallpaperId!==void 0)K.uint32(120).int32($.wallpaperId);if($.isDoodleWallpaperEnabled!==void 0)K.uint32(128).bool($.isDoodleWallpaperEnabled);if($.fontSize!==void 0)K.uint32(136).int32($.fontSize);if($.isPhotosAutodownloadEnabled!==void 0)K.uint32(144).bool($.isPhotosAutodownloadEnabled);if($.isAudiosAutodownloadEnabled!==void 0)K.uint32(152).bool($.isAudiosAutodownloadEnabled);if($.isVideosAutodownloadEnabled!==void 0)K.uint32(160).bool($.isVideosAutodownloadEnabled);if($.isDocumentsAutodownloadEnabled!==void 0)K.uint32(168).bool($.isDocumentsAutodownloadEnabled);if($.disableLinkPreviews!==void 0)K.uint32(176).bool($.disableLinkPreviews);if($.notificationToneId!==void 0)K.uint32(184).int32($.notificationToneId);if($.mediaUploadQuality!==void 0)K.uint32(192).int32($.mediaUploadQuality);if($.isSpellCheckEnabled!==void 0)K.uint32(200).bool($.isSpellCheckEnabled);if($.isEnterToSendEnabled!==void 0)K.uint32(208).bool($.isEnterToSendEnabled);if($.isGroupMessageNotificationEnabled!==void 0)K.uint32(216).bool($.isGroupMessageNotificationEnabled);if($.isGroupReactionsNotificationEnabled!==void 0)K.uint32(224).bool($.isGroupReactionsNotificationEnabled);if($.isStatusNotificationEnabled!==void 0)K.uint32(232).bool($.isStatusNotificationEnabled);if($.statusNotificationToneId!==void 0)K.uint32(240).int32($.statusNotificationToneId);if($.shouldPlaySoundForCallNotification!==void 0)K.uint32(248).bool($.shouldPlaySoundForCallNotification);if($.chatThemeId!==void 0)K.uint32(258).string($.chatThemeId);if($.colorSchemeId!==void 0)K.uint32(266).string($.colorSchemeId);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=O4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.startAtLogin=Q.bool();continue}case 2:{if(Z!==16)break;J.minimizeToTray=Q.bool();continue}case 3:{if(Z!==26)break;J.language=Q.string();continue}case 4:{if(Z!==32)break;J.replaceTextWithEmoji=Q.bool();continue}case 5:{if(Z!==40)break;J.bannerNotificationDisplayMode=Q.int32();continue}case 6:{if(Z!==48)break;J.unreadCounterBadgeDisplayMode=Q.int32();continue}case 7:{if(Z!==56)break;J.isMessagesNotificationEnabled=Q.bool();continue}case 8:{if(Z!==64)break;J.isCallsNotificationEnabled=Q.bool();continue}case 9:{if(Z!==72)break;J.isReactionsNotificationEnabled=Q.bool();continue}case 10:{if(Z!==80)break;J.isStatusReactionsNotificationEnabled=Q.bool();continue}case 11:{if(Z!==88)break;J.isTextPreviewForNotificationEnabled=Q.bool();continue}case 12:{if(Z!==96)break;J.defaultNotificationToneId=Q.int32();continue}case 13:{if(Z!==104)break;J.groupDefaultNotificationToneId=Q.int32();continue}case 14:{if(Z!==112)break;J.appTheme=Q.int32();continue}case 15:{if(Z!==120)break;J.wallpaperId=Q.int32();continue}case 16:{if(Z!==128)break;J.isDoodleWallpaperEnabled=Q.bool();continue}case 17:{if(Z!==136)break;J.fontSize=Q.int32();continue}case 18:{if(Z!==144)break;J.isPhotosAutodownloadEnabled=Q.bool();continue}case 19:{if(Z!==152)break;J.isAudiosAutodownloadEnabled=Q.bool();continue}case 20:{if(Z!==160)break;J.isVideosAutodownloadEnabled=Q.bool();continue}case 21:{if(Z!==168)break;J.isDocumentsAutodownloadEnabled=Q.bool();continue}case 22:{if(Z!==176)break;J.disableLinkPreviews=Q.bool();continue}case 23:{if(Z!==184)break;J.notificationToneId=Q.int32();continue}case 24:{if(Z!==192)break;J.mediaUploadQuality=Q.int32();continue}case 25:{if(Z!==200)break;J.isSpellCheckEnabled=Q.bool();continue}case 26:{if(Z!==208)break;J.isEnterToSendEnabled=Q.bool();continue}case 27:{if(Z!==216)break;J.isGroupMessageNotificationEnabled=Q.bool();continue}case 28:{if(Z!==224)break;J.isGroupReactionsNotificationEnabled=Q.bool();continue}case 29:{if(Z!==232)break;J.isStatusNotificationEnabled=Q.bool();continue}case 30:{if(Z!==240)break;J.statusNotificationToneId=Q.int32();continue}case 31:{if(Z!==248)break;J.shouldPlaySoundForCallNotification=Q.bool();continue}case 32:{if(Z!==258)break;J.chatThemeId=Q.string();continue}case 33:{if(Z!==266)break;J.colorSchemeId=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return o9.fromPartial($??{})},fromPartial($){let K=O4();return K.startAtLogin=$.startAtLogin??void 0,K.minimizeToTray=$.minimizeToTray??void 0,K.language=$.language??void 0,K.replaceTextWithEmoji=$.replaceTextWithEmoji??void 0,K.bannerNotificationDisplayMode=$.bannerNotificationDisplayMode??void 0,K.unreadCounterBadgeDisplayMode=$.unreadCounterBadgeDisplayMode??void 0,K.isMessagesNotificationEnabled=$.isMessagesNotificationEnabled??void 0,K.isCallsNotificationEnabled=$.isCallsNotificationEnabled??void 0,K.isReactionsNotificationEnabled=$.isReactionsNotificationEnabled??void 0,K.isStatusReactionsNotificationEnabled=$.isStatusReactionsNotificationEnabled??void 0,K.isTextPreviewForNotificationEnabled=$.isTextPreviewForNotificationEnabled??void 0,K.defaultNotificationToneId=$.defaultNotificationToneId??void 0,K.groupDefaultNotificationToneId=$.groupDefaultNotificationToneId??void 0,K.appTheme=$.appTheme??void 0,K.wallpaperId=$.wallpaperId??void 0,K.isDoodleWallpaperEnabled=$.isDoodleWallpaperEnabled??void 0,K.fontSize=$.fontSize??void 0,K.isPhotosAutodownloadEnabled=$.isPhotosAutodownloadEnabled??void 0,K.isAudiosAutodownloadEnabled=$.isAudiosAutodownloadEnabled??void 0,K.isVideosAutodownloadEnabled=$.isVideosAutodownloadEnabled??void 0,K.isDocumentsAutodownloadEnabled=$.isDocumentsAutodownloadEnabled??void 0,K.disableLinkPreviews=$.disableLinkPreviews??void 0,K.notificationToneId=$.notificationToneId??void 0,K.mediaUploadQuality=$.mediaUploadQuality??void 0,K.isSpellCheckEnabled=$.isSpellCheckEnabled??void 0,K.isEnterToSendEnabled=$.isEnterToSendEnabled??void 0,K.isGroupMessageNotificationEnabled=$.isGroupMessageNotificationEnabled??void 0,K.isGroupReactionsNotificationEnabled=$.isGroupReactionsNotificationEnabled??void 0,K.isStatusNotificationEnabled=$.isStatusNotificationEnabled??void 0,K.statusNotificationToneId=$.statusNotificationToneId??void 0,K.shouldPlaySoundForCallNotification=$.shouldPlaySoundForCallNotification??void 0,K.chatThemeId=$.chatThemeId??void 0,K.colorSchemeId=$.colorSchemeId??void 0,K}};function A4(){return{}}var b9={encode($,K=new H){if($.starred!==void 0)K.uint32(8).bool($.starred);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=A4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.starred=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return b9.fromPartial($??{})},fromPartial($){let K=A4();return K.starred=$.starred??void 0,K}};function E4(){return{}}var i9={encode($,K=new H){if($.enabled!==void 0)K.uint32(8).bool($.enabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=E4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.enabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return i9.fromPartial($??{})},fromPartial($){let K=E4();return K.enabled=$.enabled??void 0,K}};function M4(){return{}}var m9={encode($,K=new H){if($.mode!==void 0)K.uint32(8).int32($.mode);if($.userJid!==void 0&&$.userJid.length!==0)for(let Q of $.userJid)K.uint32(18).string(Q);if($.shareToFb!==void 0)K.uint32(24).bool($.shareToFb);if($.shareToIg!==void 0)K.uint32(32).bool($.shareToIg);if($.customLists!==void 0&&$.customLists.length!==0)for(let Q of $.customLists)g9.encode(Q,K.uint32(42).fork()).join();if($.modes!==void 0&&$.modes.length!==0)for(let Q of $.modes)K.uint32(48).int32(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=M4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.mode=Q.int32();continue}case 2:{if(Z!==18)break;if(J.userJid===void 0)J.userJid=[];let Y=Q.string();if(Y!==void 0)J.userJid.push(Y);continue}case 3:{if(Z!==24)break;J.shareToFb=Q.bool();continue}case 4:{if(Z!==32)break;J.shareToIg=Q.bool();continue}case 5:{if(Z!==42)break;if(J.customLists===void 0)J.customLists=[];let Y=g9.decode(Q,Q.uint32());if(Y!==void 0)J.customLists.push(Y);continue}case 6:{if(Z===48){if(J.modes===void 0)J.modes=[];J.modes.push(Q.int32());continue}if(Z===50){if(J.modes===void 0)J.modes=[];let Y=Q.uint32()+Q.pos;while(Q.pos<Y)J.modes.push(Q.int32());continue}break}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return m9.fromPartial($??{})},fromPartial($){let K=M4();return K.mode=$.mode??void 0,K.userJid=$.userJid?.map((Q)=>Q)||void 0,K.shareToFb=$.shareToFb??void 0,K.shareToIg=$.shareToIg??void 0,K.customLists=$.customLists?.map((Q)=>g9.fromPartial(Q))||void 0,K.modes=$.modes?.map((Q)=>Q)||void 0,K}};function W4(){return{}}var g9={encode($,K=new H){if($.listId!==void 0)K.uint32(10).string($.listId);if($.name!==void 0)K.uint32(18).string($.name);if($.emoji!==void 0)K.uint32(26).string($.emoji);if($.isSelected!==void 0)K.uint32(32).bool($.isSelected);if($.userJid!==void 0&&$.userJid.length!==0)for(let Q of $.userJid)K.uint32(42).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=W4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.listId=Q.string();continue}case 2:{if(Z!==18)break;J.name=Q.string();continue}case 3:{if(Z!==26)break;J.emoji=Q.string();continue}case 4:{if(Z!==32)break;J.isSelected=Q.bool();continue}case 5:{if(Z!==42)break;if(J.userJid===void 0)J.userJid=[];let Y=Q.string();if(Y!==void 0)J.userJid.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return g9.fromPartial($??{})},fromPartial($){let K=W4();return K.listId=$.listId??void 0,K.name=$.name??void 0,K.emoji=$.emoji??void 0,K.isSelected=$.isSelected??void 0,K.userJid=$.userJid?.map((Q)=>Q)||void 0,K}};function I4(){return{}}var R$={encode($,K=new H){if($.url!==void 0)K.uint32(10).string($.url);if($.fileEncSha256!==void 0)K.uint32(18).bytes($.fileEncSha256);if($.mediaKey!==void 0)K.uint32(26).bytes($.mediaKey);if($.mimetype!==void 0)K.uint32(34).string($.mimetype);if($.height!==void 0)K.uint32(40).uint32($.height);if($.width!==void 0)K.uint32(48).uint32($.width);if($.directPath!==void 0)K.uint32(58).string($.directPath);if($.fileLength!==void 0)K.uint32(64).uint64($.fileLength);if($.isFavorite!==void 0)K.uint32(72).bool($.isFavorite);if($.deviceIdHint!==void 0)K.uint32(80).uint32($.deviceIdHint);if($.isLottie!==void 0)K.uint32(88).bool($.isLottie);if($.imageHash!==void 0)K.uint32(98).string($.imageHash);if($.isAvatarSticker!==void 0)K.uint32(104).bool($.isAvatarSticker);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=I4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.url=Q.string();continue}case 2:{if(Z!==18)break;J.fileEncSha256=Q.bytes();continue}case 3:{if(Z!==26)break;J.mediaKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.mimetype=Q.string();continue}case 5:{if(Z!==40)break;J.height=Q.uint32();continue}case 6:{if(Z!==48)break;J.width=Q.uint32();continue}case 7:{if(Z!==58)break;J.directPath=Q.string();continue}case 8:{if(Z!==64)break;J.fileLength=Q.uint64Number();continue}case 9:{if(Z!==72)break;J.isFavorite=Q.bool();continue}case 10:{if(Z!==80)break;J.deviceIdHint=Q.uint32();continue}case 11:{if(Z!==88)break;J.isLottie=Q.bool();continue}case 12:{if(Z!==98)break;J.imageHash=Q.string();continue}case 13:{if(Z!==104)break;J.isAvatarSticker=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return R$.fromPartial($??{})},fromPartial($){let K=I4();return K.url=$.url??void 0,K.fileEncSha256=$.fileEncSha256??void 0,K.mediaKey=$.mediaKey??void 0,K.mimetype=$.mimetype??void 0,K.height=$.height??void 0,K.width=$.width??void 0,K.directPath=$.directPath??void 0,K.fileLength=$.fileLength??void 0,K.isFavorite=$.isFavorite??void 0,K.deviceIdHint=$.deviceIdHint??void 0,K.isLottie=$.isLottie??void 0,K.imageHash=$.imageHash??void 0,K.isAvatarSticker=$.isAvatarSticker??void 0,K}};function S4(){return{}}var t9={encode($,K=new H){if($.isDeactivated!==void 0)K.uint32(8).bool($.isDeactivated);if($.isAutoRenewing!==void 0)K.uint32(16).bool($.isAutoRenewing);if($.expirationDate!==void 0)K.uint32(24).int64($.expirationDate);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=S4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isDeactivated=Q.bool();continue}case 2:{if(Z!==16)break;J.isAutoRenewing=Q.bool();continue}case 3:{if(Z!==24)break;J.expirationDate=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return t9.fromPartial($??{})},fromPartial($){let K=S4();return K.isDeactivated=$.isDeactivated??void 0,K.isAutoRenewing=$.isAutoRenewing??void 0,K.expirationDate=$.expirationDate??void 0,K}};function v4(){return{}}var r9={encode($,K=new H){if($.subscriptions!==void 0&&$.subscriptions.length!==0)for(let Q of $.subscriptions)s9.encode(Q,K.uint32(10).fork()).join();if($.paidFeature!==void 0&&$.paidFeature.length!==0)for(let Q of $.paidFeature)a9.encode(Q,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=v4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.subscriptions===void 0)J.subscriptions=[];let Y=s9.decode(Q,Q.uint32());if(Y!==void 0)J.subscriptions.push(Y);continue}case 2:{if(Z!==18)break;if(J.paidFeature===void 0)J.paidFeature=[];let Y=a9.decode(Q,Q.uint32());if(Y!==void 0)J.paidFeature.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return r9.fromPartial($??{})},fromPartial($){let K=v4();return K.subscriptions=$.subscriptions?.map((Q)=>s9.fromPartial(Q))||void 0,K.paidFeature=$.paidFeature?.map((Q)=>a9.fromPartial(Q))||void 0,K}};function T4(){return{}}var a9={encode($,K=new H){if($.name!==void 0)K.uint32(10).string($.name);if($.enabled!==void 0)K.uint32(16).bool($.enabled);if($.limit!==void 0)K.uint32(24).int32($.limit);if($.expirationTime!==void 0)K.uint32(32).int64($.expirationTime);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=T4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.name=Q.string();continue}case 2:{if(Z!==16)break;J.enabled=Q.bool();continue}case 3:{if(Z!==24)break;J.limit=Q.int32();continue}case 4:{if(Z!==32)break;J.expirationTime=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return a9.fromPartial($??{})},fromPartial($){let K=T4();return K.name=$.name??void 0,K.enabled=$.enabled??void 0,K.limit=$.limit??void 0,K.expirationTime=$.expirationTime??void 0,K}};function y4(){return{}}var s9={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.tier!==void 0)K.uint32(16).int32($.tier);if($.status!==void 0)K.uint32(26).string($.status);if($.startTime!==void 0)K.uint32(32).int64($.startTime);if($.endTime!==void 0)K.uint32(40).int64($.endTime);if($.isPlatformChanged!==void 0)K.uint32(48).bool($.isPlatformChanged);if($.source!==void 0)K.uint32(58).string($.source);if($.creationTime!==void 0)K.uint32(64).int64($.creationTime);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=y4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==16)break;J.tier=Q.int32();continue}case 3:{if(Z!==26)break;J.status=Q.string();continue}case 4:{if(Z!==32)break;J.startTime=Q.int64Number();continue}case 5:{if(Z!==40)break;J.endTime=Q.int64Number();continue}case 6:{if(Z!==48)break;J.isPlatformChanged=Q.bool();continue}case 7:{if(Z!==58)break;J.source=Q.string();continue}case 8:{if(Z!==64)break;J.creationTime=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return s9.fromPartial($??{})},fromPartial($){let K=y4();return K.id=$.id??void 0,K.tier=$.tier??void 0,K.status=$.status??void 0,K.startTime=$.startTime??void 0,K.endTime=$.endTime??void 0,K.isPlatformChanged=$.isPlatformChanged??void 0,K.source=$.source??void 0,K.creationTime=$.creationTime??void 0,K}};function f4(){return{}}var e9={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.timestamp!==void 0)K.uint32(16).int64($.timestamp);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=f4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==16)break;J.timestamp=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return e9.fromPartial($??{})},fromPartial($){let K=f4();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.timestamp=$.timestamp??void 0,K}};function _4(){return{}}var Z0={encode($,K=new H){if($.lastMessageTimestamp!==void 0)K.uint32(8).int64($.lastMessageTimestamp);if($.lastSystemMessageTimestamp!==void 0)K.uint32(16).int64($.lastSystemMessageTimestamp);if($.messages!==void 0&&$.messages.length!==0)for(let Q of $.messages)e9.encode(Q,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=_4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.lastMessageTimestamp=Q.int64Number();continue}case 2:{if(Z!==16)break;J.lastSystemMessageTimestamp=Q.int64Number();continue}case 3:{if(Z!==26)break;if(J.messages===void 0)J.messages=[];let Y=e9.decode(Q,Q.uint32());if(Y!==void 0)J.messages.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return Z0.fromPartial($??{})},fromPartial($){let K=_4();return K.lastMessageTimestamp=$.lastMessageTimestamp??void 0,K.lastSystemMessageTimestamp=$.lastSystemMessageTimestamp??void 0,K.messages=$.messages?.map((Q)=>e9.fromPartial(Q))||void 0,K}};function h4(){return{}}var $Y={encode($,K=new H){if($.pinned!==void 0)K.uint32(8).bool($.pinned);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=h4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.pinned=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $Y.fromPartial($??{})},fromPartial($){let K=h4();return K.pinned=$.pinned??void 0,K}};function l4(){return{}}var KY={encode($,K=new H){if($.isTwentyFourHourFormatEnabled!==void 0)K.uint32(8).bool($.isTwentyFourHourFormatEnabled);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=l4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.isTwentyFourHourFormatEnabled=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return KY.fromPartial($??{})},fromPartial($){let K=l4();return K.isTwentyFourHourFormatEnabled=$.isTwentyFourHourFormatEnabled??void 0,K}};function p4(){return{}}var QY={encode($,K=new H){if($.definition!==void 0)K.uint32(10).bytes($.definition);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=p4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.definition=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return QY.fromPartial($??{})},fromPartial($){let K=p4();return K.definition=$.definition??void 0,K}};function u4(){return{}}var ZY={encode($,K=new H){if($.unarchiveChats!==void 0)K.uint32(8).bool($.unarchiveChats);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=u4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.unarchiveChats=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return ZY.fromPartial($??{})},fromPartial($){let K=u4();return K.unarchiveChats=$.unarchiveChats??void 0,K}};function w4(){return{}}var JY={encode($,K=new H){if($.muted!==void 0)K.uint32(8).bool($.muted);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=w4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.muted=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return JY.fromPartial($??{})},fromPartial($){let K=w4();return K.muted=$.muted??void 0,K}};function n4(){return{}}var XY={encode($,K=new H){if($.chatStartMode!==void 0)K.uint32(8).int32($.chatStartMode);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=n4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.chatStartMode=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return XY.fromPartial($??{})},fromPartial($){let K=n4();return K.chatStartMode=$.chatStartMode??void 0,K}};function d4(){return{}}var qY={encode($,K=new H){if($.secrets!==void 0&&$.secrets.length!==0)for(let Q of $.secrets)YY.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=d4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.secrets===void 0)J.secrets=[];let Y=YY.decode(Q,Q.uint32());if(Y!==void 0)J.secrets.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return qY.fromPartial($??{})},fromPartial($){let K=d4();return K.secrets=$.secrets?.map((Q)=>YY.fromPartial(Q))||void 0,K}};function j4(){return{}}var YY={encode($,K=new H){if($.id!==void 0)K.uint32(10).string($.id);if($.rootSecret!==void 0)K.uint32(18).bytes($.rootSecret);if($.epoch!==void 0)K.uint32(24).int64($.epoch);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=j4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.id=Q.string();continue}case 2:{if(Z!==18)break;J.rootSecret=Q.bytes();continue}case 3:{if(Z!==24)break;J.epoch=Q.int64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return YY.fromPartial($??{})},fromPartial($){let K=j4();return K.id=$.id??void 0,K.rootSecret=$.rootSecret??void 0,K.epoch=$.epoch??void 0,K}};function c4(){return{}}var HY={encode($,K=new H){if($.linkState!==void 0)K.uint32(16).int32($.linkState);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=c4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 2:{if(Z!==16)break;J.linkState=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return HY.fromPartial($??{})},fromPartial($){let K=c4();return K.linkState=$.linkState??void 0,K}};function o4(){return{}}var zY={encode($,K=new H){if($.identifier!==void 0)K.uint32(10).string($.identifier);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=o4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.identifier=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return zY.fromPartial($??{})},fromPartial($){let K=o4();return K.identifier=$.identifier??void 0,K}};function b4(){return{}}var VY={encode($,K=new H){if($.blob!==void 0)K.uint32(10).bytes($.blob);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=b4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.blob=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VY.fromPartial($??{})},fromPartial($){let K=b4();return K.blob=$.blob??void 0,K}};function i4(){return{}}var S0={encode($,K=new H){if($.operation!==void 0)K.uint32(8).int32($.operation);if($.record!==void 0)v0.encode($.record,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=i4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.operation=Q.int32();continue}case 2:{if(Z!==18)break;J.record=v0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return S0.fromPartial($??{})},fromPartial($){let K=i4();return K.operation=$.operation??void 0,K.record=$.record!==void 0&&$.record!==null?v0.fromPartial($.record):void 0,K}};function m4(){return{}}var aY={encode($,K=new H){if($.mutations!==void 0&&$.mutations.length!==0)for(let Q of $.mutations)S0.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=m4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.mutations===void 0)J.mutations=[];let Y=S0.decode(Q,Q.uint32());if(Y!==void 0)J.mutations.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return aY.fromPartial($??{})},fromPartial($){let K=m4();return K.mutations=$.mutations?.map((Q)=>S0.fromPartial(Q))||void 0,K}};function g4(){return{}}var sY={encode($,K=new H){if($.version!==void 0)R0.encode($.version,K.uint32(10).fork()).join();if($.mutations!==void 0&&$.mutations.length!==0)for(let Q of $.mutations)S0.encode(Q,K.uint32(18).fork()).join();if($.externalMutations!==void 0)W$.encode($.externalMutations,K.uint32(26).fork()).join();if($.snapshotMac!==void 0)K.uint32(34).bytes($.snapshotMac);if($.patchMac!==void 0)K.uint32(42).bytes($.patchMac);if($.keyId!==void 0)P0.encode($.keyId,K.uint32(50).fork()).join();if($.exitCode!==void 0)M$.encode($.exitCode,K.uint32(58).fork()).join();if($.deviceIndex!==void 0)K.uint32(64).uint32($.deviceIndex);if($.clientDebugData!==void 0)K.uint32(74).bytes($.clientDebugData);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=g4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.version=R0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;if(J.mutations===void 0)J.mutations=[];let Y=S0.decode(Q,Q.uint32());if(Y!==void 0)J.mutations.push(Y);continue}case 3:{if(Z!==26)break;J.externalMutations=W$.decode(Q,Q.uint32());continue}case 4:{if(Z!==34)break;J.snapshotMac=Q.bytes();continue}case 5:{if(Z!==42)break;J.patchMac=Q.bytes();continue}case 6:{if(Z!==50)break;J.keyId=P0.decode(Q,Q.uint32());continue}case 7:{if(Z!==58)break;J.exitCode=M$.decode(Q,Q.uint32());continue}case 8:{if(Z!==64)break;J.deviceIndex=Q.uint32();continue}case 9:{if(Z!==74)break;J.clientDebugData=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return sY.fromPartial($??{})},fromPartial($){let K=g4();return K.version=$.version!==void 0&&$.version!==null?R0.fromPartial($.version):void 0,K.mutations=$.mutations?.map((Q)=>S0.fromPartial(Q))||void 0,K.externalMutations=$.externalMutations!==void 0&&$.externalMutations!==null?W$.fromPartial($.externalMutations):void 0,K.snapshotMac=$.snapshotMac??void 0,K.patchMac=$.patchMac??void 0,K.keyId=$.keyId!==void 0&&$.keyId!==null?P0.fromPartial($.keyId):void 0,K.exitCode=$.exitCode!==void 0&&$.exitCode!==null?M$.fromPartial($.exitCode):void 0,K.deviceIndex=$.deviceIndex??void 0,K.clientDebugData=$.clientDebugData??void 0,K}};function t4(){return{}}var GY={encode($,K=new H){if($.value!==void 0)I$.encode($.value,K.uint32(10).fork()).join();if($.keyId!==void 0)K.uint32(18).bytes($.keyId);if($.mac!==void 0)K.uint32(26).bytes($.mac);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=t4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.value=I$.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.keyId=Q.bytes();continue}case 3:{if(Z!==26)break;J.mac=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GY.fromPartial($??{})},fromPartial($){let K=t4();return K.value=$.value!==void 0&&$.value!==null?I$.fromPartial($.value):void 0,K.keyId=$.keyId??void 0,K.mac=$.mac??void 0,K}};function r4(){return{}}var v0={encode($,K=new H){if($.index!==void 0)VY.encode($.index,K.uint32(10).fork()).join();if($.value!==void 0)UY.encode($.value,K.uint32(18).fork()).join();if($.keyId!==void 0)P0.encode($.keyId,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=r4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.index=VY.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.value=UY.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.keyId=P0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return v0.fromPartial($??{})},fromPartial($){let K=r4();return K.index=$.index!==void 0&&$.index!==null?VY.fromPartial($.index):void 0,K.value=$.value!==void 0&&$.value!==null?UY.fromPartial($.value):void 0,K.keyId=$.keyId!==void 0&&$.keyId!==null?P0.fromPartial($.keyId):void 0,K}};function a4(){return{}}var eY={encode($,K=new H){if($.version!==void 0)R0.encode($.version,K.uint32(10).fork()).join();if($.records!==void 0&&$.records.length!==0)for(let Q of $.records)v0.encode(Q,K.uint32(18).fork()).join();if($.mac!==void 0)K.uint32(26).bytes($.mac);if($.keyId!==void 0)P0.encode($.keyId,K.uint32(34).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=a4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.version=R0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;if(J.records===void 0)J.records=[];let Y=v0.decode(Q,Q.uint32());if(Y!==void 0)J.records.push(Y);continue}case 3:{if(Z!==26)break;J.mac=Q.bytes();continue}case 4:{if(Z!==34)break;J.keyId=P0.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return eY.fromPartial($??{})},fromPartial($){let K=a4();return K.version=$.version!==void 0&&$.version!==null?R0.fromPartial($.version):void 0,K.records=$.records?.map((Q)=>v0.fromPartial(Q))||void 0,K.mac=$.mac??void 0,K.keyId=$.keyId!==void 0&&$.keyId!==null?P0.fromPartial($.keyId):void 0,K}};function s4(){return{}}var VR={encode($,K=new H){if($.version!==void 0)R0.encode($.version,K.uint32(10).fork()).join();if($.collectionName!==void 0)K.uint32(18).string($.collectionName);if($.mutationRecords!==void 0&&$.mutationRecords.length!==0)for(let Q of $.mutationRecords)GY.encode(Q,K.uint32(26).fork()).join();if($.collectionLthash!==void 0)K.uint32(34).bytes($.collectionLthash);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=s4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.version=R0.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.collectionName=Q.string();continue}case 3:{if(Z!==26)break;if(J.mutationRecords===void 0)J.mutationRecords=[];let Y=GY.decode(Q,Q.uint32());if(Y!==void 0)J.mutationRecords.push(Y);continue}case 4:{if(Z!==34)break;J.collectionLthash=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return VR.fromPartial($??{})},fromPartial($){let K=s4();return K.version=$.version!==void 0&&$.version!==null?R0.fromPartial($.version):void 0,K.collectionName=$.collectionName??void 0,K.mutationRecords=$.mutationRecords?.map((Q)=>GY.fromPartial(Q))||void 0,K.collectionLthash=$.collectionLthash??void 0,K}};function e4(){return{}}var UY={encode($,K=new H){if($.blob!==void 0)K.uint32(10).bytes($.blob);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=e4();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.blob=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UY.fromPartial($??{})},fromPartial($){let K=e4();return K.blob=$.blob??void 0,K}};function $P(){return{}}var R0={encode($,K=new H){if($.version!==void 0)K.uint32(8).uint64($.version);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=$P();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.version=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return R0.fromPartial($??{})},fromPartial($){let K=$P();return K.version=$.version??void 0,K}};function KP(){return{}}var CY={encode($,K=new H){if($.title!==void 0)K.uint32(10).string($.title);if($.tapUrl!==void 0)K.uint32(18).string($.tapUrl);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=KP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.title=Q.string();continue}case 2:{if(Z!==18)break;J.tapUrl=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return CY.fromPartial($??{})},fromPartial($){let K=KP();return K.title=$.title??void 0,K.tapUrl=$.tapUrl??void 0,K}};function QP(){return{}}var DY={encode($,K=new H){if($.index!==void 0)K.uint32(32).uint32($.index);if($.quickReplyButton!==void 0)PY.encode($.quickReplyButton,K.uint32(10).fork()).join();if($.urlButton!==void 0)FY.encode($.urlButton,K.uint32(18).fork()).join();if($.callButton!==void 0)LY.encode($.callButton,K.uint32(26).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=QP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 4:{if(Z!==32)break;J.index=Q.uint32();continue}case 1:{if(Z!==10)break;J.quickReplyButton=PY.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.urlButton=FY.decode(Q,Q.uint32());continue}case 3:{if(Z!==26)break;J.callButton=LY.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return DY.fromPartial($??{})},fromPartial($){let K=QP();return K.index=$.index??void 0,K.quickReplyButton=$.quickReplyButton!==void 0&&$.quickReplyButton!==null?PY.fromPartial($.quickReplyButton):void 0,K.urlButton=$.urlButton!==void 0&&$.urlButton!==null?FY.fromPartial($.urlButton):void 0,K.callButton=$.callButton!==void 0&&$.callButton!==null?LY.fromPartial($.callButton):void 0,K}};function ZP(){return{}}var LY={encode($,K=new H){if($.displayText!==void 0)c.encode($.displayText,K.uint32(10).fork()).join();if($.phoneNumber!==void 0)c.encode($.phoneNumber,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=ZP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=c.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.phoneNumber=c.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return LY.fromPartial($??{})},fromPartial($){let K=ZP();return K.displayText=$.displayText!==void 0&&$.displayText!==null?c.fromPartial($.displayText):void 0,K.phoneNumber=$.phoneNumber!==void 0&&$.phoneNumber!==null?c.fromPartial($.phoneNumber):void 0,K}};function JP(){return{}}var PY={encode($,K=new H){if($.displayText!==void 0)c.encode($.displayText,K.uint32(10).fork()).join();if($.id!==void 0)K.uint32(18).string($.id);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=JP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=c.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.id=Q.string();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return PY.fromPartial($??{})},fromPartial($){let K=JP();return K.displayText=$.displayText!==void 0&&$.displayText!==null?c.fromPartial($.displayText):void 0,K.id=$.id??void 0,K}};function XP(){return{}}var FY={encode($,K=new H){if($.displayText!==void 0)c.encode($.displayText,K.uint32(10).fork()).join();if($.url!==void 0)c.encode($.url,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=XP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.displayText=c.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.url=c.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return FY.fromPartial($??{})},fromPartial($){let K=XP();return K.displayText=$.displayText!==void 0&&$.displayText!==null?c.fromPartial($.displayText):void 0,K.url=$.url!==void 0&&$.url!==null?c.fromPartial($.url):void 0,K}};function qP(){return{}}var xY={encode($,K=new H){if($.threadType!==void 0)K.uint32(8).int32($.threadType);if($.threadKey!==void 0)x.encode($.threadKey,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=qP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.threadType=Q.int32();continue}case 2:{if(Z!==18)break;J.threadKey=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return xY.fromPartial($??{})},fromPartial($){let K=qP();return K.threadType=$.threadType??void 0,K.threadKey=$.threadKey!==void 0&&$.threadKey!==null?x.fromPartial($.threadKey):void 0,K}};function YP(){return{}}var kY={encode($,K=new H){if($.messages!==void 0&&$.messages.length!==0)for(let Q of $.messages)b.encode(Q,K.uint32(10).fork()).join();if($.parentMessage!==void 0)x.encode($.parentMessage,K.uint32(18).fork()).join();if($.associationType!==void 0)K.uint32(24).int32($.associationType);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=YP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.messages===void 0)J.messages=[];let Y=b.decode(Q,Q.uint32());if(Y!==void 0)J.messages.push(Y);continue}case 2:{if(Z!==18)break;J.parentMessage=x.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.associationType=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return kY.fromPartial($??{})},fromPartial($){let K=YP();return K.messages=$.messages?.map((Q)=>b.fromPartial(Q))||void 0,K.parentMessage=$.parentMessage!==void 0&&$.parentMessage!==null?x.fromPartial($.parentMessage):void 0,K.associationType=$.associationType??void 0,K}};function HP(){return{}}var NY={encode($,K=new H){if($.messages!==void 0&&$.messages.length!==0)for(let Q of $.messages)K0.encode(Q,K.uint32(10).fork()).join();if($.parentMessage!==void 0)x.encode($.parentMessage,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=HP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.messages===void 0)J.messages=[];let Y=K0.decode(Q,Q.uint32());if(Y!==void 0)J.messages.push(Y);continue}case 2:{if(Z!==18)break;J.parentMessage=x.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return NY.fromPartial($??{})},fromPartial($){let K=HP();return K.messages=$.messages?.map((Q)=>K0.fromPartial(Q))||void 0,K.parentMessage=$.parentMessage!==void 0&&$.parentMessage!==null?x.fromPartial($.parentMessage):void 0,K}};function zP(){return{}}var B$={encode($,K=new H){if($.urlTrackingMapElements!==void 0&&$.urlTrackingMapElements.length!==0)for(let Q of $.urlTrackingMapElements)RY.encode(Q,K.uint32(10).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=zP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;if(J.urlTrackingMapElements===void 0)J.urlTrackingMapElements=[];let Y=RY.decode(Q,Q.uint32());if(Y!==void 0)J.urlTrackingMapElements.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return B$.fromPartial($??{})},fromPartial($){let K=zP();return K.urlTrackingMapElements=$.urlTrackingMapElements?.map((Q)=>RY.fromPartial(Q))||void 0,K}};function VP(){return{}}var RY={encode($,K=new H){if($.originalUrl!==void 0)K.uint32(10).string($.originalUrl);if($.unconsentedUsersUrl!==void 0)K.uint32(18).string($.unconsentedUsersUrl);if($.consentedUsersUrl!==void 0)K.uint32(26).string($.consentedUsersUrl);if($.cardIndex!==void 0)K.uint32(32).uint32($.cardIndex);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=VP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.originalUrl=Q.string();continue}case 2:{if(Z!==18)break;J.unconsentedUsersUrl=Q.string();continue}case 3:{if(Z!==26)break;J.consentedUsersUrl=Q.string();continue}case 4:{if(Z!==32)break;J.cardIndex=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return RY.fromPartial($??{})},fromPartial($){let K=VP();return K.originalUrl=$.originalUrl??void 0,K.unconsentedUsersUrl=$.unconsentedUsersUrl??void 0,K.consentedUsersUrl=$.consentedUsersUrl??void 0,K.cardIndex=$.cardIndex??void 0,K}};function GP(){return{}}var BY={encode($,K=new H){if($.encoding!==void 0)K.uint32(8).int32($.encoding);if($.transformer!==void 0)K.uint32(16).int32($.transformer);if($.transformerArg!==void 0&&$.transformerArg.length!==0)for(let Q of $.transformerArg)OY.encode(Q,K.uint32(26).fork()).join();if($.transformedData!==void 0)K.uint32(34).bytes($.transformedData);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=GP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.encoding=Q.int32();continue}case 2:{if(Z!==16)break;J.transformer=Q.int32();continue}case 3:{if(Z!==26)break;if(J.transformerArg===void 0)J.transformerArg=[];let Y=OY.decode(Q,Q.uint32());if(Y!==void 0)J.transformerArg.push(Y);continue}case 4:{if(Z!==34)break;J.transformedData=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return BY.fromPartial($??{})},fromPartial($){let K=GP();return K.encoding=$.encoding??void 0,K.transformer=$.transformer??void 0,K.transformerArg=$.transformerArg?.map((Q)=>OY.fromPartial(Q))||void 0,K.transformedData=$.transformedData??void 0,K}};function UP(){return{}}var OY={encode($,K=new H){if($.key!==void 0)K.uint32(10).string($.key);if($.value!==void 0)AY.encode($.value,K.uint32(18).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=UP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=Q.string();continue}case 2:{if(Z!==18)break;J.value=AY.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return OY.fromPartial($??{})},fromPartial($){let K=UP();return K.key=$.key??void 0,K.value=$.value!==void 0&&$.value!==null?AY.fromPartial($.value):void 0,K}};function CP(){return{}}var AY={encode($,K=new H){if($.asBlob!==void 0)K.uint32(10).bytes($.asBlob);if($.asUnsignedInteger!==void 0)K.uint32(16).uint32($.asUnsignedInteger);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=CP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.asBlob=Q.bytes();continue}case 2:{if(Z!==16)break;J.asUnsignedInteger=Q.uint32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return AY.fromPartial($??{})},fromPartial($){let K=CP();return K.asBlob=$.asBlob??void 0,K.asUnsignedInteger=$.asUnsignedInteger??void 0,K}};function DP(){return{}}var EY={encode($,K=new H){if($.userJid!==void 0)K.uint32(10).string($.userJid);if($.receiptTimestamp!==void 0)K.uint32(16).int64($.receiptTimestamp);if($.readTimestamp!==void 0)K.uint32(24).int64($.readTimestamp);if($.playedTimestamp!==void 0)K.uint32(32).int64($.playedTimestamp);if($.pendingDeviceJid!==void 0&&$.pendingDeviceJid.length!==0)for(let Q of $.pendingDeviceJid)K.uint32(42).string(Q);if($.deliveredDeviceJid!==void 0&&$.deliveredDeviceJid.length!==0)for(let Q of $.deliveredDeviceJid)K.uint32(50).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=DP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.userJid=Q.string();continue}case 2:{if(Z!==16)break;J.receiptTimestamp=Q.int64Number();continue}case 3:{if(Z!==24)break;J.readTimestamp=Q.int64Number();continue}case 4:{if(Z!==32)break;J.playedTimestamp=Q.int64Number();continue}case 5:{if(Z!==42)break;if(J.pendingDeviceJid===void 0)J.pendingDeviceJid=[];let Y=Q.string();if(Y!==void 0)J.pendingDeviceJid.push(Y);continue}case 6:{if(Z!==50)break;if(J.deliveredDeviceJid===void 0)J.deliveredDeviceJid=[];let Y=Q.string();if(Y!==void 0)J.deliveredDeviceJid.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return EY.fromPartial($??{})},fromPartial($){let K=DP();return K.userJid=$.userJid??void 0,K.receiptTimestamp=$.receiptTimestamp??void 0,K.readTimestamp=$.readTimestamp??void 0,K.playedTimestamp=$.playedTimestamp??void 0,K.pendingDeviceJid=$.pendingDeviceJid?.map((Q)=>Q)||void 0,K.deliveredDeviceJid=$.deliveredDeviceJid?.map((Q)=>Q)||void 0,K}};function LP(){return{}}var T0={encode($,K=new H){if($.details!==void 0)K.uint32(10).bytes($.details);if($.signature!==void 0)K.uint32(18).bytes($.signature);if($.serverSignature!==void 0)K.uint32(26).bytes($.serverSignature);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=LP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.details=Q.bytes();continue}case 2:{if(Z!==18)break;J.signature=Q.bytes();continue}case 3:{if(Z!==26)break;J.serverSignature=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return T0.fromPartial($??{})},fromPartial($){let K=LP();return K.details=$.details??void 0,K.signature=$.signature??void 0,K.serverSignature=$.serverSignature??void 0,K}};function PP(){return{}}var $6={encode($,K=new H){if($.serial!==void 0)K.uint32(8).uint64($.serial);if($.issuer!==void 0)K.uint32(18).string($.issuer);if($.verifiedName!==void 0)K.uint32(34).string($.verifiedName);if($.localizedNames!==void 0&&$.localizedNames.length!==0)for(let Q of $.localizedNames)QJ.encode(Q,K.uint32(66).fork()).join();if($.issueTime!==void 0)K.uint32(80).uint64($.issueTime);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=PP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.serial=Q.uint64Number();continue}case 2:{if(Z!==18)break;J.issuer=Q.string();continue}case 4:{if(Z!==34)break;J.verifiedName=Q.string();continue}case 8:{if(Z!==66)break;if(J.localizedNames===void 0)J.localizedNames=[];let Y=QJ.decode(Q,Q.uint32());if(Y!==void 0)J.localizedNames.push(Y);continue}case 10:{if(Z!==80)break;J.issueTime=Q.uint64Number();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return $6.fromPartial($??{})},fromPartial($){let K=PP();return K.serial=$.serial??void 0,K.issuer=$.issuer??void 0,K.verifiedName=$.verifiedName??void 0,K.localizedNames=$.localizedNames?.map((Q)=>QJ.fromPartial(Q))||void 0,K.issueTime=$.issueTime??void 0,K}};function FP(){return{}}var MY={encode($,K=new H){if($.vdId!==void 0)K.uint32(10).bytes($.vdId);if($.vdPublicKey!==void 0)K.uint32(18).bytes($.vdPublicKey);if($.vdEpochStoragePublicKey!==void 0)K.uint32(26).bytes($.vdEpochStoragePublicKey);if($.vdEpochStoragePublicKeySig!==void 0)K.uint32(34).bytes($.vdEpochStoragePublicKeySig);if($.ocmfRotationToken!==void 0)K.uint32(42).bytes($.ocmfRotationToken);if($.deviceEpochHmac!==void 0)K.uint32(50).bytes($.deviceEpochHmac);if($.encryptedSecretValues!==void 0)EZ.encode($.encryptedSecretValues,K.uint32(58).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=FP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.vdId=Q.bytes();continue}case 2:{if(Z!==18)break;J.vdPublicKey=Q.bytes();continue}case 3:{if(Z!==26)break;J.vdEpochStoragePublicKey=Q.bytes();continue}case 4:{if(Z!==34)break;J.vdEpochStoragePublicKeySig=Q.bytes();continue}case 5:{if(Z!==42)break;J.ocmfRotationToken=Q.bytes();continue}case 6:{if(Z!==50)break;J.deviceEpochHmac=Q.bytes();continue}case 7:{if(Z!==58)break;J.encryptedSecretValues=EZ.decode(Q,Q.uint32());continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return MY.fromPartial($??{})},fromPartial($){let K=FP();return K.vdId=$.vdId??void 0,K.vdPublicKey=$.vdPublicKey??void 0,K.vdEpochStoragePublicKey=$.vdEpochStoragePublicKey??void 0,K.vdEpochStoragePublicKeySig=$.vdEpochStoragePublicKeySig??void 0,K.ocmfRotationToken=$.ocmfRotationToken??void 0,K.deviceEpochHmac=$.deviceEpochHmac??void 0,K.encryptedSecretValues=$.encryptedSecretValues!==void 0&&$.encryptedSecretValues!==null?EZ.fromPartial($.encryptedSecretValues):void 0,K}};function xP(){return{}}var U0={encode($,K=new H){if($.filename!==void 0)K.uint32(10).string($.filename);if($.opacity!==void 0)K.uint32(16).uint32($.opacity);if($.isGenAi!==void 0)K.uint32(24).bool($.isGenAi);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=xP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.filename=Q.string();continue}case 2:{if(Z!==16)break;J.opacity=Q.uint32();continue}case 3:{if(Z!==24)break;J.isGenAi=Q.bool();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return U0.fromPartial($??{})},fromPartial($){let K=xP();return K.filename=$.filename??void 0,K.opacity=$.opacity??void 0,K.isGenAi=$.isGenAi??void 0,K}};function kP(){return{}}var GR={encode($,K=new H){if($.labelsDisplay!==void 0)K.uint32(8).int32($.labelsDisplay);if($.voipIndividualOutgoing!==void 0)K.uint32(16).int32($.voipIndividualOutgoing);if($.groupsV3!==void 0)K.uint32(24).int32($.groupsV3);if($.groupsV3Create!==void 0)K.uint32(32).int32($.groupsV3Create);if($.changeNumberV2!==void 0)K.uint32(40).int32($.changeNumberV2);if($.queryStatusV3Thumbnail!==void 0)K.uint32(48).int32($.queryStatusV3Thumbnail);if($.liveLocations!==void 0)K.uint32(56).int32($.liveLocations);if($.queryVname!==void 0)K.uint32(64).int32($.queryVname);if($.voipIndividualIncoming!==void 0)K.uint32(72).int32($.voipIndividualIncoming);if($.quickRepliesQuery!==void 0)K.uint32(80).int32($.quickRepliesQuery);if($.payments!==void 0)K.uint32(88).int32($.payments);if($.stickerPackQuery!==void 0)K.uint32(96).int32($.stickerPackQuery);if($.liveLocationsFinal!==void 0)K.uint32(104).int32($.liveLocationsFinal);if($.labelsEdit!==void 0)K.uint32(112).int32($.labelsEdit);if($.mediaUpload!==void 0)K.uint32(120).int32($.mediaUpload);if($.mediaUploadRichQuickReplies!==void 0)K.uint32(144).int32($.mediaUploadRichQuickReplies);if($.vnameV2!==void 0)K.uint32(152).int32($.vnameV2);if($.videoPlaybackUrl!==void 0)K.uint32(160).int32($.videoPlaybackUrl);if($.statusRanking!==void 0)K.uint32(168).int32($.statusRanking);if($.voipIndividualVideo!==void 0)K.uint32(176).int32($.voipIndividualVideo);if($.thirdPartyStickers!==void 0)K.uint32(184).int32($.thirdPartyStickers);if($.frequentlyForwardedSetting!==void 0)K.uint32(192).int32($.frequentlyForwardedSetting);if($.groupsV4JoinPermission!==void 0)K.uint32(200).int32($.groupsV4JoinPermission);if($.recentStickers!==void 0)K.uint32(208).int32($.recentStickers);if($.catalog!==void 0)K.uint32(216).int32($.catalog);if($.starredStickers!==void 0)K.uint32(224).int32($.starredStickers);if($.voipGroupCall!==void 0)K.uint32(232).int32($.voipGroupCall);if($.templateMessage!==void 0)K.uint32(240).int32($.templateMessage);if($.templateMessageInteractivity!==void 0)K.uint32(248).int32($.templateMessageInteractivity);if($.ephemeralMessages!==void 0)K.uint32(256).int32($.ephemeralMessages);if($.e2ENotificationSync!==void 0)K.uint32(264).int32($.e2ENotificationSync);if($.recentStickersV2!==void 0)K.uint32(272).int32($.recentStickersV2);if($.recentStickersV3!==void 0)K.uint32(288).int32($.recentStickersV3);if($.userNotice!==void 0)K.uint32(296).int32($.userNotice);if($.support!==void 0)K.uint32(312).int32($.support);if($.groupUiiCleanup!==void 0)K.uint32(320).int32($.groupUiiCleanup);if($.groupDogfoodingInternalOnly!==void 0)K.uint32(328).int32($.groupDogfoodingInternalOnly);if($.settingsSync!==void 0)K.uint32(336).int32($.settingsSync);if($.archiveV2!==void 0)K.uint32(344).int32($.archiveV2);if($.ephemeralAllowGroupMembers!==void 0)K.uint32(352).int32($.ephemeralAllowGroupMembers);if($.ephemeral24HDuration!==void 0)K.uint32(360).int32($.ephemeral24HDuration);if($.mdForceUpgrade!==void 0)K.uint32(368).int32($.mdForceUpgrade);if($.disappearingMode!==void 0)K.uint32(376).int32($.disappearingMode);if($.externalMdOptInAvailable!==void 0)K.uint32(384).int32($.externalMdOptInAvailable);if($.noDeleteMessageTimeLimit!==void 0)K.uint32(392).int32($.noDeleteMessageTimeLimit);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=kP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==8)break;J.labelsDisplay=Q.int32();continue}case 2:{if(Z!==16)break;J.voipIndividualOutgoing=Q.int32();continue}case 3:{if(Z!==24)break;J.groupsV3=Q.int32();continue}case 4:{if(Z!==32)break;J.groupsV3Create=Q.int32();continue}case 5:{if(Z!==40)break;J.changeNumberV2=Q.int32();continue}case 6:{if(Z!==48)break;J.queryStatusV3Thumbnail=Q.int32();continue}case 7:{if(Z!==56)break;J.liveLocations=Q.int32();continue}case 8:{if(Z!==64)break;J.queryVname=Q.int32();continue}case 9:{if(Z!==72)break;J.voipIndividualIncoming=Q.int32();continue}case 10:{if(Z!==80)break;J.quickRepliesQuery=Q.int32();continue}case 11:{if(Z!==88)break;J.payments=Q.int32();continue}case 12:{if(Z!==96)break;J.stickerPackQuery=Q.int32();continue}case 13:{if(Z!==104)break;J.liveLocationsFinal=Q.int32();continue}case 14:{if(Z!==112)break;J.labelsEdit=Q.int32();continue}case 15:{if(Z!==120)break;J.mediaUpload=Q.int32();continue}case 18:{if(Z!==144)break;J.mediaUploadRichQuickReplies=Q.int32();continue}case 19:{if(Z!==152)break;J.vnameV2=Q.int32();continue}case 20:{if(Z!==160)break;J.videoPlaybackUrl=Q.int32();continue}case 21:{if(Z!==168)break;J.statusRanking=Q.int32();continue}case 22:{if(Z!==176)break;J.voipIndividualVideo=Q.int32();continue}case 23:{if(Z!==184)break;J.thirdPartyStickers=Q.int32();continue}case 24:{if(Z!==192)break;J.frequentlyForwardedSetting=Q.int32();continue}case 25:{if(Z!==200)break;J.groupsV4JoinPermission=Q.int32();continue}case 26:{if(Z!==208)break;J.recentStickers=Q.int32();continue}case 27:{if(Z!==216)break;J.catalog=Q.int32();continue}case 28:{if(Z!==224)break;J.starredStickers=Q.int32();continue}case 29:{if(Z!==232)break;J.voipGroupCall=Q.int32();continue}case 30:{if(Z!==240)break;J.templateMessage=Q.int32();continue}case 31:{if(Z!==248)break;J.templateMessageInteractivity=Q.int32();continue}case 32:{if(Z!==256)break;J.ephemeralMessages=Q.int32();continue}case 33:{if(Z!==264)break;J.e2ENotificationSync=Q.int32();continue}case 34:{if(Z!==272)break;J.recentStickersV2=Q.int32();continue}case 36:{if(Z!==288)break;J.recentStickersV3=Q.int32();continue}case 37:{if(Z!==296)break;J.userNotice=Q.int32();continue}case 39:{if(Z!==312)break;J.support=Q.int32();continue}case 40:{if(Z!==320)break;J.groupUiiCleanup=Q.int32();continue}case 41:{if(Z!==328)break;J.groupDogfoodingInternalOnly=Q.int32();continue}case 42:{if(Z!==336)break;J.settingsSync=Q.int32();continue}case 43:{if(Z!==344)break;J.archiveV2=Q.int32();continue}case 44:{if(Z!==352)break;J.ephemeralAllowGroupMembers=Q.int32();continue}case 45:{if(Z!==360)break;J.ephemeral24HDuration=Q.int32();continue}case 46:{if(Z!==368)break;J.mdForceUpgrade=Q.int32();continue}case 47:{if(Z!==376)break;J.disappearingMode=Q.int32();continue}case 48:{if(Z!==384)break;J.externalMdOptInAvailable=Q.int32();continue}case 49:{if(Z!==392)break;J.noDeleteMessageTimeLimit=Q.int32();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return GR.fromPartial($??{})},fromPartial($){let K=kP();return K.labelsDisplay=$.labelsDisplay??void 0,K.voipIndividualOutgoing=$.voipIndividualOutgoing??void 0,K.groupsV3=$.groupsV3??void 0,K.groupsV3Create=$.groupsV3Create??void 0,K.changeNumberV2=$.changeNumberV2??void 0,K.queryStatusV3Thumbnail=$.queryStatusV3Thumbnail??void 0,K.liveLocations=$.liveLocations??void 0,K.queryVname=$.queryVname??void 0,K.voipIndividualIncoming=$.voipIndividualIncoming??void 0,K.quickRepliesQuery=$.quickRepliesQuery??void 0,K.payments=$.payments??void 0,K.stickerPackQuery=$.stickerPackQuery??void 0,K.liveLocationsFinal=$.liveLocationsFinal??void 0,K.labelsEdit=$.labelsEdit??void 0,K.mediaUpload=$.mediaUpload??void 0,K.mediaUploadRichQuickReplies=$.mediaUploadRichQuickReplies??void 0,K.vnameV2=$.vnameV2??void 0,K.videoPlaybackUrl=$.videoPlaybackUrl??void 0,K.statusRanking=$.statusRanking??void 0,K.voipIndividualVideo=$.voipIndividualVideo??void 0,K.thirdPartyStickers=$.thirdPartyStickers??void 0,K.frequentlyForwardedSetting=$.frequentlyForwardedSetting??void 0,K.groupsV4JoinPermission=$.groupsV4JoinPermission??void 0,K.recentStickers=$.recentStickers??void 0,K.catalog=$.catalog??void 0,K.starredStickers=$.starredStickers??void 0,K.voipGroupCall=$.voipGroupCall??void 0,K.templateMessage=$.templateMessage??void 0,K.templateMessageInteractivity=$.templateMessageInteractivity??void 0,K.ephemeralMessages=$.ephemeralMessages??void 0,K.e2ENotificationSync=$.e2ENotificationSync??void 0,K.recentStickersV2=$.recentStickersV2??void 0,K.recentStickersV3=$.recentStickersV3??void 0,K.userNotice=$.userNotice??void 0,K.support=$.support??void 0,K.groupUiiCleanup=$.groupUiiCleanup??void 0,K.groupDogfoodingInternalOnly=$.groupDogfoodingInternalOnly??void 0,K.settingsSync=$.settingsSync??void 0,K.archiveV2=$.archiveV2??void 0,K.ephemeralAllowGroupMembers=$.ephemeralAllowGroupMembers??void 0,K.ephemeral24HDuration=$.ephemeral24HDuration??void 0,K.mdForceUpgrade=$.mdForceUpgrade??void 0,K.disappearingMode=$.disappearingMode??void 0,K.externalMdOptInAvailable=$.externalMdOptInAvailable??void 0,K.noDeleteMessageTimeLimit=$.noDeleteMessageTimeLimit??void 0,K}};function NP(){return{}}var b={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.message!==void 0)w.encode($.message,K.uint32(18).fork()).join();if($.messageTimestamp!==void 0)K.uint32(24).uint64($.messageTimestamp);if($.status!==void 0)K.uint32(32).int32($.status);if($.participant!==void 0)K.uint32(42).string($.participant);if($.messageC2STimestamp!==void 0)K.uint32(48).uint64($.messageC2STimestamp);if($.ignore!==void 0)K.uint32(128).bool($.ignore);if($.starred!==void 0)K.uint32(136).bool($.starred);if($.broadcast!==void 0)K.uint32(144).bool($.broadcast);if($.pushName!==void 0)K.uint32(154).string($.pushName);if($.mediaCiphertextSha256!==void 0)K.uint32(162).bytes($.mediaCiphertextSha256);if($.multicast!==void 0)K.uint32(168).bool($.multicast);if($.urlText!==void 0)K.uint32(176).bool($.urlText);if($.urlNumber!==void 0)K.uint32(184).bool($.urlNumber);if($.messageStubType!==void 0)K.uint32(192).int32($.messageStubType);if($.clearMedia!==void 0)K.uint32(200).bool($.clearMedia);if($.messageStubParameters!==void 0&&$.messageStubParameters.length!==0)for(let Q of $.messageStubParameters)K.uint32(210).string(Q);if($.duration!==void 0)K.uint32(216).uint32($.duration);if($.labels!==void 0&&$.labels.length!==0)for(let Q of $.labels)K.uint32(226).string(Q);if($.paymentInfo!==void 0)b0.encode($.paymentInfo,K.uint32(234).fork()).join();if($.finalLiveLocation!==void 0)V$.encode($.finalLiveLocation,K.uint32(242).fork()).join();if($.quotedPaymentInfo!==void 0)b0.encode($.quotedPaymentInfo,K.uint32(250).fork()).join();if($.ephemeralStartTimestamp!==void 0)K.uint32(256).uint64($.ephemeralStartTimestamp);if($.ephemeralDuration!==void 0)K.uint32(264).uint32($.ephemeralDuration);if($.ephemeralOffToOn!==void 0)K.uint32(272).bool($.ephemeralOffToOn);if($.ephemeralOutOfSync!==void 0)K.uint32(280).bool($.ephemeralOutOfSync);if($.bizPrivacyStatus!==void 0)K.uint32(288).int32($.bizPrivacyStatus);if($.verifiedBizName!==void 0)K.uint32(298).string($.verifiedBizName);if($.mediaData!==void 0)w0.encode($.mediaData,K.uint32(306).fork()).join();if($.photoChange!==void 0)r8.encode($.photoChange,K.uint32(314).fork()).join();if($.userReceipt!==void 0&&$.userReceipt.length!==0)for(let Q of $.userReceipt)EY.encode(Q,K.uint32(322).fork()).join();if($.reactions!==void 0&&$.reactions.length!==0)for(let Q of $.reactions)zq.encode(Q,K.uint32(330).fork()).join();if($.quotedStickerData!==void 0)w0.encode($.quotedStickerData,K.uint32(338).fork()).join();if($.futureproofData!==void 0)K.uint32(346).bytes($.futureproofData);if($.statusPsa!==void 0)Tq.encode($.statusPsa,K.uint32(354).fork()).join();if($.pollUpdates!==void 0&&$.pollUpdates.length!==0)for(let Q of $.pollUpdates)Qq.encode(Q,K.uint32(362).fork()).join();if($.pollAdditionalMetadata!==void 0)e8.encode($.pollAdditionalMetadata,K.uint32(370).fork()).join();if($.agentId!==void 0)K.uint32(378).string($.agentId);if($.statusAlreadyViewed!==void 0)K.uint32(384).bool($.statusAlreadyViewed);if($.messageSecret!==void 0)K.uint32(394).bytes($.messageSecret);if($.keepInChat!==void 0)sZ.encode($.keepInChat,K.uint32(402).fork()).join();if($.originalSelfAuthorUserJidString!==void 0)K.uint32(410).string($.originalSelfAuthorUserJidString);if($.revokeMessageTimestamp!==void 0)K.uint32(416).uint64($.revokeMessageTimestamp);if($.pinInChat!==void 0)a8.encode($.pinInChat,K.uint32(434).fork()).join();if($.premiumMessageInfo!==void 0)Zq.encode($.premiumMessageInfo,K.uint32(442).fork()).join();if($.is1PBizBotMessage!==void 0)K.uint32(448).bool($.is1PBizBotMessage);if($.isGroupHistoryMessage!==void 0)K.uint32(456).bool($.isGroupHistoryMessage);if($.botMessageInvokerJid!==void 0)K.uint32(466).string($.botMessageInvokerJid);if($.commentMetadata!==void 0)yQ.encode($.commentMetadata,K.uint32(474).fork()).join();if($.eventResponses!==void 0&&$.eventResponses.length!==0)for(let Q of $.eventResponses)IZ.encode(Q,K.uint32(490).fork()).join();if($.reportingTokenInfo!==void 0)Gq.encode($.reportingTokenInfo,K.uint32(498).fork()).join();if($.newsletterServerId!==void 0)K.uint32(504).uint64($.newsletterServerId);if($.eventAdditionalMetadata!==void 0)WZ.encode($.eventAdditionalMetadata,K.uint32(514).fork()).join();if($.isMentionedInStatus!==void 0)K.uint32(520).bool($.isMentionedInStatus);if($.statusMentions!==void 0&&$.statusMentions.length!==0)for(let Q of $.statusMentions)K.uint32(530).string(Q);if($.targetMessageId!==void 0)x.encode($.targetMessageId,K.uint32(538).fork()).join();if($.messageAddOns!==void 0&&$.messageAddOns.length!==0)for(let Q of $.messageAddOns)n8.encode(Q,K.uint32(546).fork()).join();if($.statusMentionMessageInfo!==void 0)vq.encode($.statusMentionMessageInfo,K.uint32(554).fork()).join();if($.isSupportAiMessage!==void 0)K.uint32(560).bool($.isSupportAiMessage);if($.statusMentionSources!==void 0&&$.statusMentionSources.length!==0)for(let Q of $.statusMentionSources)K.uint32(570).string(Q);if($.supportAiCitations!==void 0&&$.supportAiCitations.length!==0)for(let Q of $.supportAiCitations)OQ.encode(Q,K.uint32(578).fork()).join();if($.botTargetId!==void 0)K.uint32(586).string($.botTargetId);if($.groupHistoryIndividualMessageInfo!==void 0)yZ.encode($.groupHistoryIndividualMessageInfo,K.uint32(594).fork()).join();if($.groupHistoryBundleInfo!==void 0)TZ.encode($.groupHistoryBundleInfo,K.uint32(602).fork()).join();if($.interactiveMessageAdditionalMetadata!==void 0)aZ.encode($.interactiveMessageAdditionalMetadata,K.uint32(610).fork()).join();if($.quarantinedMessage!==void 0)Hq.encode($.quarantinedMessage,K.uint32(618).fork()).join();if($.nonJidMentions!==void 0)K.uint32(624).uint32($.nonJidMentions);if($.hsmTag!==void 0)K.uint32(634).string($.hsmTag);if($.ephemeralExpirationTimestamp!==void 0)K.uint32(640).uint64($.ephemeralExpirationTimestamp);if($.scheduledMessageMetadata!==void 0)Uq.encode($.scheduledMessageMetadata,K.uint32(650).fork()).join();if($.decisionId!==void 0)K.uint32(658).string($.decisionId);if($.decisionSources!==void 0&&$.decisionSources.length!==0)for(let Q of $.decisionSources)K.uint32(666).string(Q);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=NP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.message=w.decode(Q,Q.uint32());continue}case 3:{if(Z!==24)break;J.messageTimestamp=Q.uint64Number();continue}case 4:{if(Z!==32)break;J.status=Q.int32();continue}case 5:{if(Z!==42)break;J.participant=Q.string();continue}case 6:{if(Z!==48)break;J.messageC2STimestamp=Q.uint64Number();continue}case 16:{if(Z!==128)break;J.ignore=Q.bool();continue}case 17:{if(Z!==136)break;J.starred=Q.bool();continue}case 18:{if(Z!==144)break;J.broadcast=Q.bool();continue}case 19:{if(Z!==154)break;J.pushName=Q.string();continue}case 20:{if(Z!==162)break;J.mediaCiphertextSha256=Q.bytes();continue}case 21:{if(Z!==168)break;J.multicast=Q.bool();continue}case 22:{if(Z!==176)break;J.urlText=Q.bool();continue}case 23:{if(Z!==184)break;J.urlNumber=Q.bool();continue}case 24:{if(Z!==192)break;J.messageStubType=Q.int32();continue}case 25:{if(Z!==200)break;J.clearMedia=Q.bool();continue}case 26:{if(Z!==210)break;if(J.messageStubParameters===void 0)J.messageStubParameters=[];let Y=Q.string();if(Y!==void 0)J.messageStubParameters.push(Y);continue}case 27:{if(Z!==216)break;J.duration=Q.uint32();continue}case 28:{if(Z!==226)break;if(J.labels===void 0)J.labels=[];let Y=Q.string();if(Y!==void 0)J.labels.push(Y);continue}case 29:{if(Z!==234)break;J.paymentInfo=b0.decode(Q,Q.uint32());continue}case 30:{if(Z!==242)break;J.finalLiveLocation=V$.decode(Q,Q.uint32());continue}case 31:{if(Z!==250)break;J.quotedPaymentInfo=b0.decode(Q,Q.uint32());continue}case 32:{if(Z!==256)break;J.ephemeralStartTimestamp=Q.uint64Number();continue}case 33:{if(Z!==264)break;J.ephemeralDuration=Q.uint32();continue}case 34:{if(Z!==272)break;J.ephemeralOffToOn=Q.bool();continue}case 35:{if(Z!==280)break;J.ephemeralOutOfSync=Q.bool();continue}case 36:{if(Z!==288)break;J.bizPrivacyStatus=Q.int32();continue}case 37:{if(Z!==298)break;J.verifiedBizName=Q.string();continue}case 38:{if(Z!==306)break;J.mediaData=w0.decode(Q,Q.uint32());continue}case 39:{if(Z!==314)break;J.photoChange=r8.decode(Q,Q.uint32());continue}case 40:{if(Z!==322)break;if(J.userReceipt===void 0)J.userReceipt=[];let Y=EY.decode(Q,Q.uint32());if(Y!==void 0)J.userReceipt.push(Y);continue}case 41:{if(Z!==330)break;if(J.reactions===void 0)J.reactions=[];let Y=zq.decode(Q,Q.uint32());if(Y!==void 0)J.reactions.push(Y);continue}case 42:{if(Z!==338)break;J.quotedStickerData=w0.decode(Q,Q.uint32());continue}case 43:{if(Z!==346)break;J.futureproofData=Q.bytes();continue}case 44:{if(Z!==354)break;J.statusPsa=Tq.decode(Q,Q.uint32());continue}case 45:{if(Z!==362)break;if(J.pollUpdates===void 0)J.pollUpdates=[];let Y=Qq.decode(Q,Q.uint32());if(Y!==void 0)J.pollUpdates.push(Y);continue}case 46:{if(Z!==370)break;J.pollAdditionalMetadata=e8.decode(Q,Q.uint32());continue}case 47:{if(Z!==378)break;J.agentId=Q.string();continue}case 48:{if(Z!==384)break;J.statusAlreadyViewed=Q.bool();continue}case 49:{if(Z!==394)break;J.messageSecret=Q.bytes();continue}case 50:{if(Z!==402)break;J.keepInChat=sZ.decode(Q,Q.uint32());continue}case 51:{if(Z!==410)break;J.originalSelfAuthorUserJidString=Q.string();continue}case 52:{if(Z!==416)break;J.revokeMessageTimestamp=Q.uint64Number();continue}case 54:{if(Z!==434)break;J.pinInChat=a8.decode(Q,Q.uint32());continue}case 55:{if(Z!==442)break;J.premiumMessageInfo=Zq.decode(Q,Q.uint32());continue}case 56:{if(Z!==448)break;J.is1PBizBotMessage=Q.bool();continue}case 57:{if(Z!==456)break;J.isGroupHistoryMessage=Q.bool();continue}case 58:{if(Z!==466)break;J.botMessageInvokerJid=Q.string();continue}case 59:{if(Z!==474)break;J.commentMetadata=yQ.decode(Q,Q.uint32());continue}case 61:{if(Z!==490)break;if(J.eventResponses===void 0)J.eventResponses=[];let Y=IZ.decode(Q,Q.uint32());if(Y!==void 0)J.eventResponses.push(Y);continue}case 62:{if(Z!==498)break;J.reportingTokenInfo=Gq.decode(Q,Q.uint32());continue}case 63:{if(Z!==504)break;J.newsletterServerId=Q.uint64Number();continue}case 64:{if(Z!==514)break;J.eventAdditionalMetadata=WZ.decode(Q,Q.uint32());continue}case 65:{if(Z!==520)break;J.isMentionedInStatus=Q.bool();continue}case 66:{if(Z!==530)break;if(J.statusMentions===void 0)J.statusMentions=[];let Y=Q.string();if(Y!==void 0)J.statusMentions.push(Y);continue}case 67:{if(Z!==538)break;J.targetMessageId=x.decode(Q,Q.uint32());continue}case 68:{if(Z!==546)break;if(J.messageAddOns===void 0)J.messageAddOns=[];let Y=n8.decode(Q,Q.uint32());if(Y!==void 0)J.messageAddOns.push(Y);continue}case 69:{if(Z!==554)break;J.statusMentionMessageInfo=vq.decode(Q,Q.uint32());continue}case 70:{if(Z!==560)break;J.isSupportAiMessage=Q.bool();continue}case 71:{if(Z!==570)break;if(J.statusMentionSources===void 0)J.statusMentionSources=[];let Y=Q.string();if(Y!==void 0)J.statusMentionSources.push(Y);continue}case 72:{if(Z!==578)break;if(J.supportAiCitations===void 0)J.supportAiCitations=[];let Y=OQ.decode(Q,Q.uint32());if(Y!==void 0)J.supportAiCitations.push(Y);continue}case 73:{if(Z!==586)break;J.botTargetId=Q.string();continue}case 74:{if(Z!==594)break;J.groupHistoryIndividualMessageInfo=yZ.decode(Q,Q.uint32());continue}case 75:{if(Z!==602)break;J.groupHistoryBundleInfo=TZ.decode(Q,Q.uint32());continue}case 76:{if(Z!==610)break;J.interactiveMessageAdditionalMetadata=aZ.decode(Q,Q.uint32());continue}case 77:{if(Z!==618)break;J.quarantinedMessage=Hq.decode(Q,Q.uint32());continue}case 78:{if(Z!==624)break;J.nonJidMentions=Q.uint32();continue}case 79:{if(Z!==634)break;J.hsmTag=Q.string();continue}case 80:{if(Z!==640)break;J.ephemeralExpirationTimestamp=Q.uint64Number();continue}case 81:{if(Z!==650)break;J.scheduledMessageMetadata=Uq.decode(Q,Q.uint32());continue}case 82:{if(Z!==658)break;J.decisionId=Q.string();continue}case 83:{if(Z!==666)break;if(J.decisionSources===void 0)J.decisionSources=[];let Y=Q.string();if(Y!==void 0)J.decisionSources.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return b.fromPartial($??{})},fromPartial($){let K=NP();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.message=$.message!==void 0&&$.message!==null?w.fromPartial($.message):void 0,K.messageTimestamp=$.messageTimestamp??void 0,K.status=$.status??void 0,K.participant=$.participant??void 0,K.messageC2STimestamp=$.messageC2STimestamp??void 0,K.ignore=$.ignore??void 0,K.starred=$.starred??void 0,K.broadcast=$.broadcast??void 0,K.pushName=$.pushName??void 0,K.mediaCiphertextSha256=$.mediaCiphertextSha256??void 0,K.multicast=$.multicast??void 0,K.urlText=$.urlText??void 0,K.urlNumber=$.urlNumber??void 0,K.messageStubType=$.messageStubType??void 0,K.clearMedia=$.clearMedia??void 0,K.messageStubParameters=$.messageStubParameters?.map((Q)=>Q)||void 0,K.duration=$.duration??void 0,K.labels=$.labels?.map((Q)=>Q)||void 0,K.paymentInfo=$.paymentInfo!==void 0&&$.paymentInfo!==null?b0.fromPartial($.paymentInfo):void 0,K.finalLiveLocation=$.finalLiveLocation!==void 0&&$.finalLiveLocation!==null?V$.fromPartial($.finalLiveLocation):void 0,K.quotedPaymentInfo=$.quotedPaymentInfo!==void 0&&$.quotedPaymentInfo!==null?b0.fromPartial($.quotedPaymentInfo):void 0,K.ephemeralStartTimestamp=$.ephemeralStartTimestamp??void 0,K.ephemeralDuration=$.ephemeralDuration??void 0,K.ephemeralOffToOn=$.ephemeralOffToOn??void 0,K.ephemeralOutOfSync=$.ephemeralOutOfSync??void 0,K.bizPrivacyStatus=$.bizPrivacyStatus??void 0,K.verifiedBizName=$.verifiedBizName??void 0,K.mediaData=$.mediaData!==void 0&&$.mediaData!==null?w0.fromPartial($.mediaData):void 0,K.photoChange=$.photoChange!==void 0&&$.photoChange!==null?r8.fromPartial($.photoChange):void 0,K.userReceipt=$.userReceipt?.map((Q)=>EY.fromPartial(Q))||void 0,K.reactions=$.reactions?.map((Q)=>zq.fromPartial(Q))||void 0,K.quotedStickerData=$.quotedStickerData!==void 0&&$.quotedStickerData!==null?w0.fromPartial($.quotedStickerData):void 0,K.futureproofData=$.futureproofData??void 0,K.statusPsa=$.statusPsa!==void 0&&$.statusPsa!==null?Tq.fromPartial($.statusPsa):void 0,K.pollUpdates=$.pollUpdates?.map((Q)=>Qq.fromPartial(Q))||void 0,K.pollAdditionalMetadata=$.pollAdditionalMetadata!==void 0&&$.pollAdditionalMetadata!==null?e8.fromPartial($.pollAdditionalMetadata):void 0,K.agentId=$.agentId??void 0,K.statusAlreadyViewed=$.statusAlreadyViewed??void 0,K.messageSecret=$.messageSecret??void 0,K.keepInChat=$.keepInChat!==void 0&&$.keepInChat!==null?sZ.fromPartial($.keepInChat):void 0,K.originalSelfAuthorUserJidString=$.originalSelfAuthorUserJidString??void 0,K.revokeMessageTimestamp=$.revokeMessageTimestamp??void 0,K.pinInChat=$.pinInChat!==void 0&&$.pinInChat!==null?a8.fromPartial($.pinInChat):void 0,K.premiumMessageInfo=$.premiumMessageInfo!==void 0&&$.premiumMessageInfo!==null?Zq.fromPartial($.premiumMessageInfo):void 0,K.is1PBizBotMessage=$.is1PBizBotMessage??void 0,K.isGroupHistoryMessage=$.isGroupHistoryMessage??void 0,K.botMessageInvokerJid=$.botMessageInvokerJid??void 0,K.commentMetadata=$.commentMetadata!==void 0&&$.commentMetadata!==null?yQ.fromPartial($.commentMetadata):void 0,K.eventResponses=$.eventResponses?.map((Q)=>IZ.fromPartial(Q))||void 0,K.reportingTokenInfo=$.reportingTokenInfo!==void 0&&$.reportingTokenInfo!==null?Gq.fromPartial($.reportingTokenInfo):void 0,K.newsletterServerId=$.newsletterServerId??void 0,K.eventAdditionalMetadata=$.eventAdditionalMetadata!==void 0&&$.eventAdditionalMetadata!==null?WZ.fromPartial($.eventAdditionalMetadata):void 0,K.isMentionedInStatus=$.isMentionedInStatus??void 0,K.statusMentions=$.statusMentions?.map((Q)=>Q)||void 0,K.targetMessageId=$.targetMessageId!==void 0&&$.targetMessageId!==null?x.fromPartial($.targetMessageId):void 0,K.messageAddOns=$.messageAddOns?.map((Q)=>n8.fromPartial(Q))||void 0,K.statusMentionMessageInfo=$.statusMentionMessageInfo!==void 0&&$.statusMentionMessageInfo!==null?vq.fromPartial($.statusMentionMessageInfo):void 0,K.isSupportAiMessage=$.isSupportAiMessage??void 0,K.statusMentionSources=$.statusMentionSources?.map((Q)=>Q)||void 0,K.supportAiCitations=$.supportAiCitations?.map((Q)=>OQ.fromPartial(Q))||void 0,K.botTargetId=$.botTargetId??void 0,K.groupHistoryIndividualMessageInfo=$.groupHistoryIndividualMessageInfo!==void 0&&$.groupHistoryIndividualMessageInfo!==null?yZ.fromPartial($.groupHistoryIndividualMessageInfo):void 0,K.groupHistoryBundleInfo=$.groupHistoryBundleInfo!==void 0&&$.groupHistoryBundleInfo!==null?TZ.fromPartial($.groupHistoryBundleInfo):void 0,K.interactiveMessageAdditionalMetadata=$.interactiveMessageAdditionalMetadata!==void 0&&$.interactiveMessageAdditionalMetadata!==null?aZ.fromPartial($.interactiveMessageAdditionalMetadata):void 0,K.quarantinedMessage=$.quarantinedMessage!==void 0&&$.quarantinedMessage!==null?Hq.fromPartial($.quarantinedMessage):void 0,K.nonJidMentions=$.nonJidMentions??void 0,K.hsmTag=$.hsmTag??void 0,K.ephemeralExpirationTimestamp=$.ephemeralExpirationTimestamp??void 0,K.scheduledMessageMetadata=$.scheduledMessageMetadata!==void 0&&$.scheduledMessageMetadata!==null?Uq.fromPartial($.scheduledMessageMetadata):void 0,K.decisionId=$.decisionId??void 0,K.decisionSources=$.decisionSources?.map((Q)=>Q)||void 0,K}};function RP(){return{}}var K0={encode($,K=new H){if($.key!==void 0)x.encode($.key,K.uint32(10).fork()).join();if($.messageBytes!==void 0)K.uint32(18).bytes($.messageBytes);return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=RP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 1:{if(Z!==10)break;J.key=x.decode(Q,Q.uint32());continue}case 2:{if(Z!==18)break;J.messageBytes=Q.bytes();continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return K0.fromPartial($??{})},fromPartial($){let K=RP();return K.key=$.key!==void 0&&$.key!==null?x.fromPartial($.key):void 0,K.messageBytes=$.messageBytes??void 0,K}};function BP(){return{}}var UR={encode($,K=new H){if($.timestamp!==void 0)K.uint32(16).uint64($.timestamp);if($.unreadChats!==void 0)K.uint32(24).uint32($.unreadChats);if($.notifyMessageCount!==void 0)K.uint32(32).uint32($.notifyMessageCount);if($.notifyMessages!==void 0&&$.notifyMessages.length!==0)for(let Q of $.notifyMessages)b.encode(Q,K.uint32(42).fork()).join();return K},decode($,K){let Q=$ instanceof q?$:new q($),X=K===void 0?Q.len:Q.pos+K,J=BP();while(Q.pos<X){let Z=Q.uint32();switch(Z>>>3){case 2:{if(Z!==16)break;J.timestamp=Q.uint64Number();continue}case 3:{if(Z!==24)break;J.unreadChats=Q.uint32();continue}case 4:{if(Z!==32)break;J.notifyMessageCount=Q.uint32();continue}case 5:{if(Z!==42)break;if(J.notifyMessages===void 0)J.notifyMessages=[];let Y=b.decode(Q,Q.uint32());if(Y!==void 0)J.notifyMessages.push(Y);continue}}if((Z&7)===4||Z===0)break;Q.skip(Z&7)}return J},create($){return UR.fromPartial($??{})},fromPartial($){let K=BP();return K.timestamp=$.timestamp??void 0,K.unreadChats=$.unreadChats??void 0,K.notifyMessageCount=$.notifyMessageCount??void 0,K.notifyMessages=$.notifyMessages?.map((Q)=>b.fromPartial(Q))||void 0,K}};var EB={Message:w,WebMessageInfo:b,HistorySync:bY,SyncActionData:I$,ClientPayload:jY,AdvSignedDeviceIdentity:pY,AdvSignedKeyIndexList:wY,AdvDeviceIdentity:lY,AdvSignedDeviceIdentityHmac:uY,HandshakeMessage:oY,SyncdRecord:v0,SyncdMutation:S0,SyncdMutations:aY,SyncdPatch:sY,SyncdSnapshot:eY,ExitCode:M$,SyncActionValue:S$,DeviceProps:cY,SenderKeyDistributionMessage:gY,SenderKeyMessage:tY,ServerErrorReceipt:rY,CertChain:nY,"CertChain.NoiseCertificate":E0,"CertChain.NoiseCertificate.Details":dY,ExternalBlobReference:W$,LidMigrationMappingSyncPayload:iY,MediaRetryNotification:mY,VerifiedNameCertificate:T0,"VerifiedNameCertificate.Details":$6,"Message.PollVoteMessage":I0,"Message.EventResponseMessage":W0},MB=WY;function F6($){let K=EB[$];if(K)return K;let Q=$.replace(/\./g,"_"),X=MB[Q];if(X&&typeof X==="object"&&"encode"in X)return X;throw Error(`unknown proto type: ${$}`)}function WB($){return typeof $==="object"&&$!==null&&typeof $.unsigned==="boolean"&&typeof $.low==="number"&&typeof $.high==="number"}function IB($){let K=BigInt($.low>>>0);return($.unsigned?BigInt($.high>>>0):BigInt($.high|0))*4294967296n+K}function K6($){if($===null)return;if(WB($))return IB($);if(typeof $!=="object")return $;if(ArrayBuffer.isView($)||$ instanceof ArrayBuffer)return $;if(Array.isArray($)){let J;for(let Z=0;Z<$.length;Z++){let Y=K6($[Z]);if(Y!==$[Z])(J??=$.slice())[Z]=Y}return J??$}let K=$,Q=Object.getPrototypeOf(K);if(Q!==Object.prototype&&Q!==null){let J={};for(let Z of Object.keys(K)){let Y=K6(K[Z]);if(Y!==void 0)J[Z]=Y}return J}let X;for(let J in K){let Z=K6(K[J]);if(Z!==K[J])(X??={...K})[J]=Z}return X??$}function x6($,K){return F6($).encode(K6(K??{})).finish()}function SB($,K){return F6($).decode(K)}var CR=1;function vB($,K,Q){if(Q.length<CR)throw RangeError("protobuf batch offsets must contain the leading sentinel");if(Q[0]!==0)throw RangeError("protobuf batch offsets must start at zero");let X=Q.length-CR;for(let G=0;G<X;G++)if(Q[G+1]<Q[G])throw RangeError("protobuf batch offsets must be monotonic");if(Q[X]!==K.length)throw RangeError("protobuf batch offsets must end at the data length");let J=F6($),Z=new q(K),Y=Array(X);for(let G=0;G<X;G++){let L=Q[G],C=Q[G+1];if(Z.pos=L,Y[G]=J.decode(Z,C-L),Z.pos!==C)throw RangeError("protobuf decoder did not consume the delimited entry")}return Y}var DR=new TextDecoder,k6=new TextEncoder;function TB($,K){let Q=Array(Math.max(0,K.length-1));for(let X=0;X+1<K.length;X++)Q[X]=DR.decode($.subarray(K[X],K[X+1]));return Q}function yB($){let K=(X)=>{let J=$[X];if(J===void 0)throw RangeError("packed record references a missing table entry");return J};return{required:K,optional:(X)=>X===0?void 0:K(X-1)}}class LR{table=[];indexByValue=new Map;intern($){let K=this.indexByValue.get($);if(K!==void 0)return K;let Q=this.table.length;return this.table.push($),this.indexByValue.set($,Q),Q}internOptional($){return $===void 0?0:this.intern($)+1}pack(){let $=new TextEncoder,K=this.table.map((Z)=>$.encode(Z)),Q=new Uint32Array(K.length+1),X=0;for(let Z=0;Z<K.length;Z++)X+=K[Z].length,Q[Z+1]=X;let J=new Uint8Array(X);for(let Z=0;Z<K.length;Z++)J.set(K[Z],Q[Z]);return{data:J,offsets:Q}}}var _$=10,PR=0,FR=1,xR=2,kR=3,NR=4,RR=5,BR=6,OR=7,AR=8,ER=9,MR=1,WR=2,IR=4,SR=8,O$=24,vR=0,TR=4,yR=8,fR=12,_R=16;function fB($){return($.byteOffset+O$)%8===0?$:new Uint8Array($)}function _B($){let K=fB($);if(K.byteLength<O$)throw RangeError("message wire batch is shorter than its header");let Q=new DataView(K.buffer,K.byteOffset,O$),X=Q.getUint32(vR,!0),J=Q.getUint32(TR,!0),Z=Q.getUint32(yR,!0),Y=Q.getUint32(fR,!0),G=Q.getUint32(_R,!0);if(G!==_$)throw RangeError(`message wire batch record width ${G} does not match the expected ${_$}`);let L=X*G*8,C=(X+1)*4,N=(J+1)*4,y=O$+L+C+N+Z+Y;if(K.byteLength<y)throw RangeError(`message wire batch is truncated: ${K.byteLength} bytes, expected ${y}`);let I=O$,O=new Float64Array(K.buffer,K.byteOffset+I,X*G);I+=L;let M=new Uint32Array(K.buffer,K.byteOffset+I,X+1);I+=C;let n=new Uint32Array(K.buffer,K.byteOffset+I,J+1);I+=N;let S=K.subarray(I,I+Z);I+=Z;let d=K.subarray(I,I+Y),{required:B0,optional:O0}=yB(TB(d,n)),f0=Array(X);for(let A0=0;A0<X;A0++){let l=A0*G,v$=O[l+OR];f0[A0]={chat:B0(O[l+PR]),sender:B0(O[l+FR]),senderAlt:O0(O[l+xR]),recipientAlt:O0(O[l+kR]),isFromMe:(v$&MR)!==0,isGroup:(v$&WR)!==0,id:B0(O[l+NR]),timestamp:O[l+BR],pushName:B0(O[l+RR]),isViewOnce:(v$&IR)!==0,isOffline:(v$&SR)!==0,unavailableRequestId:O0(O[l+AR]),edit:O0(O[l+ER])}}return{messageData:S,messageOffsets:M,infos:f0}}function hB($){let K=new LR,Q=new Float64Array($.length*_$),X=new Uint32Array($.length+1),J=0;for(let y=0;y<$.length;y++){let{payload:I,info:O}=$[y];J+=I.byteLength,X[y+1]=J;let M=y*_$;Q[M+PR]=K.intern(O.chat),Q[M+FR]=K.intern(O.sender),Q[M+xR]=K.internOptional(O.senderAlt),Q[M+kR]=K.internOptional(O.recipientAlt),Q[M+NR]=K.intern(O.id),Q[M+RR]=K.intern(O.pushName),Q[M+BR]=O.timestamp,Q[M+OR]=(O.isFromMe?MR:0)|(O.isGroup?WR:0)|(O.isViewOnce?IR:0)|(O.isOffline?SR:0),Q[M+AR]=K.internOptional(O.unavailableRequestId),Q[M+ER]=K.internOptional(O.edit)}let{data:Z,offsets:Y}=K.pack(),G=O$+Q.byteLength+X.byteLength+Y.byteLength+J+Z.byteLength,L=new Uint8Array(G),C=new DataView(L.buffer,0,O$);C.setUint32(vR,$.length,!0),C.setUint32(TR,Math.max(0,Y.length-1),!0),C.setUint32(yR,J,!0),C.setUint32(fR,Z.byteLength,!0),C.setUint32(_R,_$,!0);let N=O$;L.set(new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength),N),N+=Q.byteLength,L.set(new Uint8Array(X.buffer,X.byteOffset,X.byteLength),N),N+=X.byteLength,L.set(new Uint8Array(Y.buffer,Y.byteOffset,Y.byteLength),N),N+=Y.byteLength;for(let{payload:y}of $)L.set(y,N),N+=y.byteLength;return L.set(Z,N),L}var Q6=20,hR=1,lB=100,lR=1,pR=2,uR=4,wR=8;class N6{strings=[];jids=[];view;bytes;cursor=0;inlineCursor=0;region="";begin($){if(this.bytes=$,this.view=new DataView($.buffer,$.byteOffset,$.byteLength),$.byteLength<Q6)throw RangeError("packed batch is shorter than its header");let K=this.view.getUint32(0,!0),Q=this.view.getUint32(4,!0),X=this.view.getUint32(8,!0),J=this.view.getUint32(12,!0);if((this.view.getUint32(16,!0)&hR)!==0)this.strings.length=0,this.jids.length=0;let Y=Q6,G=Y;Y+=Q*4;let L=Y;Y+=X*11;let C=Y,N=$.byteLength-J;if(N<C)throw RangeError("packed batch regions overlap");this.region=J===0?"":this.decodeRegion(N,J),this.inlineCursor=0;for(let y=0;y<Q;y++){let I=G+y*4,O=this.view.getUint16(I,!0),M=this.view.getUint16(I+2,!0);this.strings[O]=this.region.substring(this.inlineCursor,this.inlineCursor+=M)}for(let y=0;y<X;y++){let I=L+y*11,O=this.view.getUint16(I,!0),M=this.strings[this.view.getUint16(I+2,!0)],n=this.strings[this.view.getUint16(I+4,!0)];if(M===void 0||n===void 0)throw RangeError("packed jid references a missing string slot");this.jids[O]=Object.freeze({user:M,server:n,agent:this.view.getUint8(I+6),device:this.view.getUint16(I+7,!0),integrator:this.view.getUint16(I+9,!0)})}return this.cursor=C,K}decodeRegion($,K){if(K>=lB)return DR.decode(this.bytes.subarray($,$+K));let Q="",X=$,J=$+(K/4|0)*4;while(X<J){let Z=this.view.getUint32(X,!0);Q+=String.fromCharCode(Z&255,Z>>8&255,Z>>16&255,Z>>>24),X+=4}while(X<$+K)Q+=String.fromCharCode(this.view.getUint8(X++));return Q}u8(){return this.view.getUint8(this.cursor++)}f64(){let $=this.view.getFloat64(this.cursor,!0);return this.cursor+=8,$}inline(){let $=this.view.getUint16(this.cursor,!0);return this.cursor+=2,this.region.substring(this.inlineCursor,this.inlineCursor+=$)}slot(){let $=this.view.getUint16(this.cursor,!0);return this.cursor+=2,$}str(){let $=this.strings[this.slot()];if($===void 0)throw RangeError("packed record references a missing string slot");return $}strOptional(){let $=this.slot();if($===0)return;let K=this.strings[$-1];if(K===void 0)throw RangeError("packed record references a missing string slot");return K}jid(){let $=this.jids[this.slot()];if($===void 0)throw RangeError("packed record references a missing jid slot");return $}jidOptional(){let $=this.slot();if($===0)return;let K=this.jids[$-1];if(K===void 0)throw RangeError("packed record references a missing jid slot");return K}}var J0=new N6,f$=new N6;function pB($){let K=J0.begin($),Q=Array(K);for(let X=0;X<K;X++){let J=J0.u8(),Z=J0.jid(),Y=J0.jid(),G=J0.jidOptional(),L=J0.jidOptional(),C=J0.jidOptional(),N=J0.jidOptional(),y=J0.strOptional(),I=J0.str(),O=J0.f64(),M=J0.u8(),n=Array(M);for(let S=0;S<M;S++)n[S]=J0.inline();Q[X]={source:{chat:Z,sender:Y,is_from_me:(J&lR)!==0,is_group:(J&pR)!==0,addressing_mode:y,sender_alt:G,recipient_alt:L,broadcast_list_owner:C,recipient:N},message_ids:n,timestamp:O,type:(J&wR)!==0?{Other:I}:I,offline:(J&uR)!==0}}return Q}function uB($){let K=f$.begin($),Q=Array(K);for(let X=0;X<K;X++){let J=f$.strOptional(),Z=f$.jidOptional(),Y=f$.strOptional(),G=f$.f64();Q[X]={id:f$.inline(),class:J,from:Z,timestamp:Number.isNaN(G)?void 0:G,error:Y}}return Q}class R6{stringSlots=new Map;jidSlots=new Map;newStrings=[];newJids=[];records=[];definitions=[];inline=[];recordCount=0;cacheStr($){let K=this.stringSlots.get($);if(K!==void 0)return K;let Q=this.stringSlots.size;return this.stringSlots.set($,Q),this.newStrings.push([Q,k6.encode($).length]),this.definitions.push($),Q}cacheStrOptional($){return $===void 0?0:this.cacheStr($)+1}cacheJid($){let K=[$.user,$.server,$.agent,$.device,$.integrator].join(" "),Q=this.jidSlots.get(K);if(Q!==void 0)return Q;let X=this.cacheStr($.user),J=this.cacheStr($.server),Z=this.jidSlots.size;return this.jidSlots.set(K,Z),this.newJids.push([Z,X,J,$.agent,$.device,$.integrator]),Z}cacheJidOptional($){return $===void 0?0:this.cacheJid($)+1}u8($){this.records.push($&255)}slot($){this.records.push($&255,$>>8&255)}f64($){let K=new DataView(new ArrayBuffer(8));K.setFloat64(0,$,!0);for(let Q=0;Q<8;Q++)this.records.push(K.getUint8(Q))}writeInline($){let K=k6.encode($).length;this.records.push(K&255,K>>8&255),this.inline.push($)}endRecord(){this.recordCount++}finish(){let $=k6.encode(this.definitions.join("")+this.inline.join("")),K=Q6+this.newStrings.length*4+this.newJids.length*11+this.records.length+$.length,Q=new Uint8Array(K),X=new DataView(Q.buffer);X.setUint32(0,this.recordCount,!0),X.setUint32(4,this.newStrings.length,!0),X.setUint32(8,this.newJids.length,!0),X.setUint32(12,$.length,!0),X.setUint32(16,hR,!0);let J=Q6;for(let[Z,Y]of this.newStrings)X.setUint16(J,Z,!0),X.setUint16(J+2,Y,!0),J+=4;for(let[Z,Y,G,L,C,N]of this.newJids)X.setUint16(J,Z,!0),X.setUint16(J+2,Y,!0),X.setUint16(J+4,G,!0),X.setUint8(J+6,L),X.setUint16(J+7,C,!0),X.setUint16(J+9,N,!0),J+=11;return Q.set(this.records,J),J+=this.records.length,Q.set($,J),Q}}function wB($){let K=new R6;for(let Q of $){let X=typeof Q.type!=="string",J=K.cacheJid(Q.source.chat),Z=K.cacheJid(Q.source.sender),Y=K.cacheJidOptional(Q.source.sender_alt),G=K.cacheJidOptional(Q.source.recipient_alt),L=K.cacheJidOptional(Q.source.broadcast_list_owner),C=K.cacheJidOptional(Q.source.recipient),N=K.cacheStrOptional(Q.source.addressing_mode),y=K.cacheStr(typeof Q.type==="string"?Q.type:Q.type.Other);K.u8((Q.source.is_from_me?lR:0)|(Q.source.is_group?pR:0)|(Q.offline?uR:0)|(X?wR:0));for(let I of[J,Z,Y,G,L,C,N,y])K.slot(I);K.f64(Q.timestamp),K.u8(Q.message_ids.length);for(let I of Q.message_ids)K.writeInline(I);K.endRecord()}return K.finish()}function nB($){let K=new R6;for(let Q of $)K.slot(K.cacheStrOptional(Q.class)),K.slot(K.cacheJidOptional(Q.from)),K.slot(K.cacheStrOptional(Q.error)),K.f64(Q.timestamp??Number.NaN),K.writeInline(Q.id),K.endRecord();return K.finish()}var O6=($)=>typeof $==="object"&&$!==null&&typeof $.encode==="function"&&typeof $.decode==="function",dR=($)=>typeof $==="object"&&$!==null&&!O6($);function dB(){return this}var nR=($)=>{if($&&typeof $==="object"&&!("toJSON"in $))Object.defineProperty($,"toJSON",{value:dB,enumerable:!1,writable:!0,configurable:!0})},jB=($,K)=>({encode(Q){return{finish(){return x6($,Q)}}},decode(Q,X){let J=Q instanceof q?Q:new q(Q instanceof Uint8Array?Q:ArrayBuffer.isView(Q)?new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength):new Uint8Array(Q)),Z=K.decode(J,X);return nR(Z),Z},create(Q){return Q||{}},fromObject(Q){if(Q&&typeof Q==="object")nR(Q);return Q||{}},toObject(Q){return Q},fromPartial:K.fromPartial?.bind(K)??((Q)=>Q||{})}),cB=()=>({create($){return $||{}},fromObject($){return $||{}}}),B6="_",oB=".",bB="protobufPackage",iB={ADVKeyIndexList:"ADVSignedKeyIndexList"},mB=["Message","WebMessageInfo","ContextInfo","SyncActionValue"],gB=($,K)=>$!==bB&&!$.startsWith(B6)&&typeof K!=="function"&&(O6(K)||dR(K)),tB=($)=>{let K=$.at(0);return K!==void 0&&K===K.toUpperCase()&&K!==K.toLowerCase()},rB=($)=>new Proxy($,{get(K,Q,X){let J=Reflect.get(K,Q,X);if(J!==void 0||typeof Q!=="string"||!tB(Q))return J;let Z=cB();return Reflect.set(K,Q,Z),Z}}),aB=()=>{let $={};for(let[K,Q]of Object.entries(WY)){if(!gB(K,Q))continue;let X=K.split(B6),J=X.pop(),Z=$;for(let Y of X)Z[Y]??={},Z=Z[Y];if(O6(Q)){let Y=jB(K.replaceAll(B6,oB),Q);Z[J]=Object.assign(Y,Z[J]??{})}else if(dR(Q))Z[J]=Object.assign({},Z[J]??{},Q)}for(let[K,Q]of Object.entries(iB))if($[Q]&&!$[K])$[K]=$[Q];for(let K of mB)if($[K])$[K]=rB($[K]);return $},sB=aB();var $O=new URL("whatsapp_rust_bridge_bg.wasm",import.meta.url),KO=eB($O);S6({module:KO});var aO=I6,sO=W6;export{WO as verifySignature,MO as updateLogger,EO as setLogger,sB as proto,AO as projectLegacySessionRecordV1,OO as md5,BO as logMessage,aO as initWasmEngine,S6 as initSync,RO as inflateZlib,NO as importLegacySessionRecordV1,kO as hkdf,xO as hasLogger,FO as getWasmMemoryBytes,PO as getWasmAllocationSnapshot,LO as getPublicFromPrivateKey,DO as getEnabledFeatures,CO as generateKeyPair,UO as encodeSessionRecordComponents,nB as encodeServerAckWireBatch,GO as encodeSenderKeyRecordComponents,wB as encodeReceiptWireBatch,x6 as encodeProto,hB as encodeMessageWireBatch,VO as decryptPollVotePayload,zO as decryptPollVote,HO as decryptEventResponsePayload,YO as decodeSessionRecordComponents,uB as decodeServerAckWireBatch,qO as decodeSenderKeyRecordComponents,pB as decodeReceiptWireBatch,vB as decodeProtoBatch,SB as decodeProto,_B as decodeMessageWireBatch,sO as createWhatsAppClient,XO as calculateSignature,JO as calculateAgreement,ZO as beginWasmAllocationProfile,d$ as WasmWhatsAppClient,_$ as MESSAGE_WIRE_INFO_RECORD_WIDTH,n$ as IntoUnderlyingSource,X6 as IntoUnderlyingSink,J6 as IntoUnderlyingByteSource,q as BinaryReader};