@rongcloud/electron-renderer 5.4.2-beem.5 → 5.4.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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AEngine, IRuntime, IEngineWatcher, IAPIContextOption, IExtraMethod, IAsyncRes, INaviInfo, ErrorCode, ConversationType, IPromiseResult, IReceivedMessage, MessageDirection, IRecallMsgOptions, IReceivedConversation, IServerConversationStatus, ISetConversationStatusOptions, ISendMsgOptions, IMessageReaderResponse, IServerUserSetting, IChatroomInfo, IChrmKVEntry, IChrmKVEntries, FileType, IUploadAuth, UploadMethod, IInsertMsgOptions, NotificationStatus, RTCMode, RTCJoinType, IRTCUserData, IJoinRTCRoomData, IRTCRoomInfo, IRTCUsers, RTCApiType, KVString, IRtcTokenData, ITagParam, ITagInfo, IConversationOption, IReceivedConversationByTag, ILocalTagStatus, IConversationTag, IServerRTCRoomEntry, RTCIdentityChangeType, IRTCJoinedInfo, IGroupMessageDeliverInfo, IBaseConversationInfo, IConversationState, IReqRoomPKOptions, ICancelRoomPKOptions, IResRoomPKOptions, IEndRoomPKOptions, IUltraGroupConversation, OperateStatus, IUltraMsgQueryOptions, IUltraExMsgOptions, IUltraModifyMsgOptions, IGetMsgOption, IRTCRoomBindOption, NotificationLevel } from '@rongcloud/engine';
1
+ import { AEngine, IRuntime, IEngineWatcher, IAPIContextOption, IExtraMethod, IAsyncRes, INaviInfo, ErrorCode, ConversationType, IPromiseResult, IReceivedMessage, MessageDirection, IRecallMsgOptions, IReceivedConversation, IServerConversationStatus, ISetConversationStatusOptions, ISendMsgOptions, IMessageReaderResponse, IServerUserSetting, IChatroomInfo, IChrmKVEntry, IChrmKVEntries, FileType, IUploadAuth, UploadMethod, IInsertMsgOptions, NotificationStatus, RTCMode, RTCJoinType, IRTCUserData, IJoinRTCRoomData, IRTCRoomInfo, IRTCUsers, RTCApiType, KVString, IRtcTokenData, ITagParam, ITagInfo, IConversationOption, IReceivedConversationByTag, ILocalTagStatus, IConversationTag, IServerRTCRoomEntry, RTCIdentityChangeType, IRTCJoinedInfo, IBaseConversationInfo, IConversationState, IReqRoomPKOptions, ICancelRoomPKOptions, IResRoomPKOptions, IEndRoomPKOptions, IUltraGroupConversation, OperateStatus, IUltraMsgQueryOptions, IUltraExMsgOptions, IUltraModifyMsgOptions, IGetMsgOption, IRTCRoomBindOption, NotificationLevel } from '@rongcloud/engine';
2
2
 
3
3
  declare class RCCppEngine extends AEngine {
4
4
  constructor(runtime: IRuntime, watcher: IEngineWatcher, options: IAPIContextOption);
@@ -172,12 +172,6 @@ declare class RCCppEngine extends AEngine {
172
172
  quitLivingRoomAsAudience(roomId: string): Promise<ErrorCode>;
173
173
  rtcIdentityChange(roomId: string, changeType: RTCIdentityChangeType, broadcastType?: number): Promise<IAsyncRes<IJoinRTCRoomData>>;
174
174
  getRTCJoinedUserInfo(userId: string): Promise<IAsyncRes<IRTCJoinedInfo[]>>;
175
- getGroupMessageDeliverList(targetId: string, messageUId: string, channelId: string): Promise<IAsyncRes<IGroupMessageDeliverInfo>>;
176
- getPrivateMessageDeliverTime(messageUId: string, channelId: string): Promise<IAsyncRes<number>>;
177
- setCallInfo(targetId: string, key: string, value: string): Promise<IAsyncRes<{
178
- key: string;
179
- value: string;
180
- }>>;
181
175
  getBlockConversationList(): Promise<IAsyncRes<IBaseConversationInfo[]>>;
182
176
  getTopConversationList(): Promise<IAsyncRes<IBaseConversationInfo[]>>;
183
177
  getUnreadMentionedCount(conversation: IConversationOption): Promise<IAsyncRes<number>>;
package/index.esm.js CHANGED
@@ -1 +1 @@
1
- import{Logger as t,VersionManage as e,isUndefined as n,ErrorCode as o,logger as _,AEngine as r}from"@rongcloud/engine";import{ipcRenderer as R}from"electron";var E=function(t,e){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},E(t,e)};var i,a=function(){return a=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var _ in e=arguments[n])Object.prototype.hasOwnProperty.call(e,_)&&(t[_]=e[_]);return t},a.apply(this,arguments)};function s(t,e,n,o){return new(n||(n=Promise))((function(_,r){function R(t){try{i(o.next(t))}catch(t){r(t)}}function E(t){try{i(o.throw(t))}catch(t){r(t)}}function i(t){var e;t.done?_(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(R,E)}i((o=o.apply(t,e||[])).next())}))}function O(t,e){var n,o,_,r,R={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return r={next:E(0),throw:E(1),return:E(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function E(r){return function(E){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;R;)try{if(n=1,o&&(_=2&r[0]?o.return:r[0]?o.throw||((_=o.return)&&_.call(o),0):o.next)&&!(_=_.call(o,r[1])).done)return _;switch(o=0,_&&(r=[2&r[0],_.value]),r[0]){case 0:case 1:_=r;break;case 4:return R.label++,{value:r[1],done:!1};case 5:R.label++,o=r[1],r=[0];continue;case 7:r=R.ops.pop(),R.trys.pop();continue;default:if(!(_=R.trys,(_=_.length>0&&_[_.length-1])||6!==r[0]&&2!==r[0])){R=0;continue}if(3===r[0]&&(!_||r[1]>_[0]&&r[1]<_[3])){R.label=r[1];break}if(6===r[0]&&R.label<_[1]){R.label=_[1],_=r;break}if(_&&R.label<_[2]){R.label=_[2],R.ops.push(r);break}_[2]&&R.ops.pop(),R.trys.pop();continue}r=e.call(t,R)}catch(t){r=[6,t],o=0}finally{n=_=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,E])}}}function C(t,e,n){if(n||2===arguments.length)for(var o,_=0,r=e.length;_<r;_++)!o&&_ in e||(o||(o=Array.prototype.slice.call(e,0,_)),o[_]=e[_]);return t.concat(o||Array.prototype.slice.call(e))}!function(t){t.WEBSOCKET="websocket",t.COMET="comet"}(i||(i={}));var T,c,N,l,u,I,A,S,M,p,L,f,g,h,D,U,P,d,y,m,v,G,V,H,B,K,w,F;!function(t){t[t.IMAGE=1]="IMAGE",t[t.AUDIO=2]="AUDIO",t[t.VIDEO=3]="VIDEO",t[t.FILE=4]="FILE",t[t.SIGHT=5]="SIGHT",t[t.COMBINE_HTML=6]="COMBINE_HTML"}(T||(T={})),function(t){t[t.SEND=1]="SEND",t[t.RECEIVE=2]="RECEIVE"}(c||(c={})),function(t){t[t.TIMEOUT=-1]="TIMEOUT",t[t.UNKNOWN=-2]="UNKNOWN",t[t.PARAMETER_ERROR=-3]="PARAMETER_ERROR",t[t.EXTRA_METHOD_UNDEFINED=-4]="EXTRA_METHOD_UNDEFINED",t[t.MAIN_PROCESS_ERROR=-5]="MAIN_PROCESS_ERROR",t[t.PARAMETER_CHANGED=-6]="PARAMETER_CHANGED",t[t.SUCCESS=0]="SUCCESS",t[t.RC_DISCUSSION_GROUP_ID_INVALID=20407]="RC_DISCUSSION_GROUP_ID_INVALID",t[t.SEND_FREQUENCY_TOO_FAST=20604]="SEND_FREQUENCY_TOO_FAST",t[t.NOT_IN_DISCUSSION=21406]="NOT_IN_DISCUSSION",t[t.FORBIDDEN_IN_GROUP=22408]="FORBIDDEN_IN_GROUP",t[t.RECALL_MESSAGE=25101]="RECALL_MESSAGE",t[t.NOT_IN_GROUP=22406]="NOT_IN_GROUP",t[t.NOT_IN_CHATROOM=23406]="NOT_IN_CHATROOM",t[t.FORBIDDEN_IN_CHATROOM=23408]="FORBIDDEN_IN_CHATROOM",t[t.RC_CHATROOM_USER_KICKED=23409]="RC_CHATROOM_USER_KICKED",t[t.RC_CHATROOM_NOT_EXIST=23410]="RC_CHATROOM_NOT_EXIST",t[t.RC_CHATROOM_IS_FULL=23411]="RC_CHATROOM_IS_FULL",t[t.RC_CHATROOM_PATAMETER_INVALID=23412]="RC_CHATROOM_PATAMETER_INVALID",t[t.CHATROOM_GET_HISTORYMSG_ERROR=23413]="CHATROOM_GET_HISTORYMSG_ERROR",t[t.CHATROOM_NOT_OPEN_HISTORYMSG_STORE=23414]="CHATROOM_NOT_OPEN_HISTORYMSG_STORE",t[t.CHATROOM_KV_EXCEED=23423]="CHATROOM_KV_EXCEED",t[t.CHATROOM_KV_OVERWRITE_INVALID=23424]="CHATROOM_KV_OVERWRITE_INVALID",t[t.CHATROOM_KV_STORE_NOT_OPEN=23426]="CHATROOM_KV_STORE_NOT_OPEN",t[t.CHATROOM_KEY_NOT_EXIST=23427]="CHATROOM_KEY_NOT_EXIST",t[t.CHATROOM_KV_SET_ERROR=23431]="CHATROOM_KV_SET_ERROR",t[t.SENSITIVE_SHIELD=21501]="SENSITIVE_SHIELD",t[t.SENSITIVE_REPLACE=21502]="SENSITIVE_REPLACE",t[t.JOIN_IN_DISCUSSION=21407]="JOIN_IN_DISCUSSION",t[t.CREATE_DISCUSSION=21408]="CREATE_DISCUSSION",t[t.INVITE_DICUSSION=21409]="INVITE_DICUSSION",t[t.GET_USERINFO_ERROR=23407]="GET_USERINFO_ERROR",t[t.REJECTED_BY_BLACKLIST=405]="REJECTED_BY_BLACKLIST",t[t.RC_NET_CHANNEL_INVALID=30001]="RC_NET_CHANNEL_INVALID",t[t.RC_NET_UNAVAILABLE=30002]="RC_NET_UNAVAILABLE",t[t.RC_MSG_RESP_TIMEOUT=30003]="RC_MSG_RESP_TIMEOUT",t[t.RC_HTTP_SEND_FAIL=30004]="RC_HTTP_SEND_FAIL",t[t.RC_HTTP_REQ_TIMEOUT=30005]="RC_HTTP_REQ_TIMEOUT",t[t.RC_HTTP_RECV_FAIL=30006]="RC_HTTP_RECV_FAIL",t[t.RC_NAVI_RESOURCE_ERROR=30007]="RC_NAVI_RESOURCE_ERROR",t[t.RC_NODE_NOT_FOUND=30008]="RC_NODE_NOT_FOUND",t[t.RC_DOMAIN_NOT_RESOLVE=30009]="RC_DOMAIN_NOT_RESOLVE",t[t.RC_SOCKET_NOT_CREATED=30010]="RC_SOCKET_NOT_CREATED",t[t.RC_SOCKET_DISCONNECTED=30011]="RC_SOCKET_DISCONNECTED",t[t.RC_PING_SEND_FAIL=30012]="RC_PING_SEND_FAIL",t[t.RC_PONG_RECV_FAIL=30013]="RC_PONG_RECV_FAIL",t[t.RC_MSG_SEND_FAIL=30014]="RC_MSG_SEND_FAIL",t[t.RC_MSG_CONTENT_EXCEED_LIMIT=30016]="RC_MSG_CONTENT_EXCEED_LIMIT",t[t.RC_CONN_ACK_TIMEOUT=31e3]="RC_CONN_ACK_TIMEOUT",t[t.RC_CONN_PROTO_VERSION_ERROR=31001]="RC_CONN_PROTO_VERSION_ERROR",t[t.RC_CONN_ID_REJECT=31002]="RC_CONN_ID_REJECT",t[t.RC_CONN_SERVER_UNAVAILABLE=31003]="RC_CONN_SERVER_UNAVAILABLE",t[t.RC_CONN_USER_OR_PASSWD_ERROR=31004]="RC_CONN_USER_OR_PASSWD_ERROR",t[t.RC_CONN_NOT_AUTHRORIZED=31005]="RC_CONN_NOT_AUTHRORIZED",t[t.RC_CONN_REDIRECTED=31006]="RC_CONN_REDIRECTED",t[t.RC_CONN_PACKAGE_NAME_INVALID=31007]="RC_CONN_PACKAGE_NAME_INVALID",t[t.RC_CONN_APP_BLOCKED_OR_DELETED=31008]="RC_CONN_APP_BLOCKED_OR_DELETED",t[t.RC_CONN_USER_BLOCKED=31009]="RC_CONN_USER_BLOCKED",t[t.RC_DISCONN_KICK=31010]="RC_DISCONN_KICK",t[t.RC_DISCONN_EXCEPTION=31011]="RC_DISCONN_EXCEPTION",t[t.RC_DISCONN_SAME_CLIENT_ON_LINE=31023]="RC_DISCONN_SAME_CLIENT_ON_LINE",t[t.RC_APP_AUTH_NOT_PASS=31026]="RC_APP_AUTH_NOT_PASS",t[t.RC_OTP_USED=31027]="RC_OTP_USED",t[t.RC_PLATFORM_ERROR=31028]="RC_PLATFORM_ERROR",t[t.RC_QUERY_ACK_NO_DATA=32001]="RC_QUERY_ACK_NO_DATA",t[t.RC_MSG_DATA_INCOMPLETE=32002]="RC_MSG_DATA_INCOMPLETE",t[t.BIZ_ERROR_CLIENT_NOT_INIT=33001]="BIZ_ERROR_CLIENT_NOT_INIT",t[t.BIZ_ERROR_DATABASE_ERROR=33002]="BIZ_ERROR_DATABASE_ERROR",t[t.BIZ_ERROR_INVALID_PARAMETER=33003]="BIZ_ERROR_INVALID_PARAMETER",t[t.BIZ_ERROR_NO_CHANNEL=33004]="BIZ_ERROR_NO_CHANNEL",t[t.BIZ_ERROR_RECONNECT_SUCCESS=33005]="BIZ_ERROR_RECONNECT_SUCCESS",t[t.BIZ_ERROR_CONNECTING=33006]="BIZ_ERROR_CONNECTING",t[t.MSG_ROAMING_SERVICE_UNAVAILABLE=33007]="MSG_ROAMING_SERVICE_UNAVAILABLE",t[t.MSG_INSERT_ERROR=33008]="MSG_INSERT_ERROR",t[t.MSG_DEL_ERROR=33009]="MSG_DEL_ERROR",t[t.TAG_EXISTS=33101]="TAG_EXISTS",t[t.TAG_NOT_EXIST=33100]="TAG_NOT_EXIST",t[t.NO_TAG_IN_CONVER=33102]="NO_TAG_IN_CONVER",t[t.CONVER_REMOVE_ERROR=34001]="CONVER_REMOVE_ERROR",t[t.CONVER_GETLIST_ERROR=34002]="CONVER_GETLIST_ERROR",t[t.CONVER_SETOP_ERROR=34003]="CONVER_SETOP_ERROR",t[t.CONVER_TOTAL_UNREAD_ERROR=34004]="CONVER_TOTAL_UNREAD_ERROR",t[t.CONVER_TYPE_UNREAD_ERROR=34005]="CONVER_TYPE_UNREAD_ERROR",t[t.CONVER_ID_TYPE_UNREAD_ERROR=34006]="CONVER_ID_TYPE_UNREAD_ERROR",t[t.EXPANSION_LIMIT_EXCEET=34010]="EXPANSION_LIMIT_EXCEET",t[t.MESSAGE_KV_NOT_SUPPORT=34008]="MESSAGE_KV_NOT_SUPPORT",t[t.CONVER_OUT_LIMIT_ERROR=34013]="CONVER_OUT_LIMIT_ERROR",t[t.CONVER_GET_ERROR=35021]="CONVER_GET_ERROR",t[t.GROUP_SYNC_ERROR=35001]="GROUP_SYNC_ERROR",t[t.GROUP_MATCH_ERROR=35002]="GROUP_MATCH_ERROR",t[t.READ_RECEIPT_ERROR=35003]="READ_RECEIPT_ERROR",t[t.PACKAGE_ENVIRONMENT_ERROR=35006]="PACKAGE_ENVIRONMENT_ERROR",t[t.CAN_NOT_RECONNECT=35007]="CAN_NOT_RECONNECT",t[t.SERVER_UNAVAILABLE=35008]="SERVER_UNAVAILABLE",t[t.HOSTNAME_ERROR=35009]="HOSTNAME_ERROR",t[t.HAS_OHTER_SAME_CLIENT_ON_LINE=35010]="HAS_OHTER_SAME_CLIENT_ON_LINE",t[t.METHOD_NOT_AVAILABLE=35011]="METHOD_NOT_AVAILABLE",t[t.METHOD_NOT_SUPPORT=35012]="METHOD_NOT_SUPPORT",t[t.MSG_LIMIT_ERROR=35013]="MSG_LIMIT_ERROR",t[t.METHOD_ONLY_SUPPORT_ULTRA_GROUP=35014]="METHOD_ONLY_SUPPORT_ULTRA_GROUP",t[t.UPLOAD_FILE_FAILED=35020]="UPLOAD_FILE_FAILED",t[t.CHATROOM_ID_ISNULL=36001]="CHATROOM_ID_ISNULL",t[t.CHARTOOM_JOIN_ERROR=36002]="CHARTOOM_JOIN_ERROR",t[t.CHATROOM_HISMESSAGE_ERROR=36003]="CHATROOM_HISMESSAGE_ERROR",t[t.CHATROOM_KV_NOT_FOUND=36004]="CHATROOM_KV_NOT_FOUND",t[t.BLACK_ADD_ERROR=37001]="BLACK_ADD_ERROR",t[t.BLACK_GETSTATUS_ERROR=37002]="BLACK_GETSTATUS_ERROR",t[t.BLACK_REMOVE_ERROR=37003]="BLACK_REMOVE_ERROR",t[t.DRAF_GET_ERROR=38001]="DRAF_GET_ERROR",t[t.DRAF_SAVE_ERROR=38002]="DRAF_SAVE_ERROR",t[t.DRAF_REMOVE_ERROR=38003]="DRAF_REMOVE_ERROR",t[t.SUBSCRIBE_ERROR=39001]="SUBSCRIBE_ERROR",t[t.NOT_SUPPORT=39002]="NOT_SUPPORT",t[t.QNTKN_FILETYPE_ERROR=41001]="QNTKN_FILETYPE_ERROR",t[t.QNTKN_GET_ERROR=41002]="QNTKN_GET_ERROR",t[t.COOKIE_ENABLE=51001]="COOKIE_ENABLE",t[t.HAVNODEVICEID=24001]="HAVNODEVICEID",t[t.DEVICEIDISHAVE=24002]="DEVICEIDISHAVE",t[t.FEILD=24009]="FEILD",t[t.VOIPISNULL=24013]="VOIPISNULL",t[t.NOENGINETYPE=24010]="NOENGINETYPE",t[t.NULLCHANNELNAME=24011]="NULLCHANNELNAME",t[t.VOIPDYANMICERROR=24012]="VOIPDYANMICERROR",t[t.NOVOIP=24014]="NOVOIP",t[t.INTERNALERRROR=24015]="INTERNALERRROR",t[t.VOIPCLOSE=24016]="VOIPCLOSE",t[t.ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL=24416]="ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL",t[t.CANCEL=1]="CANCEL",t[t.REJECT=2]="REJECT",t[t.HANGUP=3]="HANGUP",t[t.BUSYLINE=4]="BUSYLINE",t[t.NO_RESPONSE=5]="NO_RESPONSE",t[t.ENGINE_UN_SUPPORTED=6]="ENGINE_UN_SUPPORTED",t[t.NETWORK_ERROR=7]="NETWORK_ERROR",t[t.REMOTE_CANCEL=11]="REMOTE_CANCEL",t[t.REMOTE_REJECT=12]="REMOTE_REJECT",t[t.REMOTE_HANGUP=13]="REMOTE_HANGUP",t[t.REMOTE_BUSYLINE=14]="REMOTE_BUSYLINE",t[t.REMOTE_NO_RESPONSE=15]="REMOTE_NO_RESPONSE",t[t.REMOTE_ENGINE_UN_SUPPORTED=16]="REMOTE_ENGINE_UN_SUPPORTED",t[t.REMOTE_NETWORK_ERROR=17]="REMOTE_NETWORK_ERROR",t[t.VOIP_NOT_AVALIABLE=18]="VOIP_NOT_AVALIABLE",t[t.CHATROOM_KV_STORE_NOT_ALL_SUCCESS=23428]="CHATROOM_KV_STORE_NOT_ALL_SUCCESS",t[t.CHATROOM_KV_STORE_OUT_LIMIT=23429]="CHATROOM_KV_STORE_OUT_LIMIT"}(N||(N={})),function(t){t[t.NONE=0]="NONE",t[t.PRIVATE=1]="PRIVATE",t[t.DISCUSSION=2]="DISCUSSION",t[t.GROUP=3]="GROUP",t[t.CHATROOM=4]="CHATROOM",t[t.CUSTOMER_SERVICE=5]="CUSTOMER_SERVICE",t[t.SYSTEM=6]="SYSTEM",t[t.APP_PUBLIC_SERVICE=7]="APP_PUBLIC_SERVICE",t[t.PUBLIC_SERVICE=8]="PUBLIC_SERVICE",t[t.ULTRA_GROUP=10]="ULTRA_GROUP",t[t.RTC_ROOM=12]="RTC_ROOM"}(l||(l={})),function(t){t[t.CONNECTED=0]="CONNECTED",t[t.CONNECTING=1]="CONNECTING",t[t.DISCONNECTED=2]="DISCONNECTED",t[t.NETWORK_UNAVAILABLE=3]="NETWORK_UNAVAILABLE",t[t.CONNECTION_CLOSED=4]="CONNECTION_CLOSED",t[t.KICKED_OFFLINE_BY_OTHER_CLIENT=6]="KICKED_OFFLINE_BY_OTHER_CLIENT",t[t.WEBSOCKET_UNAVAILABLE=7]="WEBSOCKET_UNAVAILABLE",t[t.WEBSOCKET_ERROR=8]="WEBSOCKET_ERROR",t[t.BLOCKED=9]="BLOCKED",t[t.DOMAIN_INCORRECT=12]="DOMAIN_INCORRECT",t[t.DISCONNECT_BY_SERVER=13]="DISCONNECT_BY_SERVER",t[t.REDIRECT=14]="REDIRECT",t[t.APPKEY_IS_FAKE=20]="APPKEY_IS_FAKE",t[t.FORBID_RECONNECT_BY_OTHER_SAME_CLIENT=31023]="FORBID_RECONNECT_BY_OTHER_SAME_CLIENT",t[t.ULTRALIMIT=1101]="ULTRALIMIT",t[t.REQUEST_NAVI=201]="REQUEST_NAVI",t[t.RESPONSE_NAVI=202]="RESPONSE_NAVI",t[t.RESPONSE_NAVI_ERROR=203]="RESPONSE_NAVI_ERROR",t[t.RESPONSE_NAVI_TIMEOUT=204]="RESPONSE_NAVI_TIMEOUT"}(u||(u={})),function(t){t[t.READ=1]="READ",t[t.LISTENED=2]="LISTENED",t[t.DOWNLOADED=4]="DOWNLOADED",t[t.RETRIEVED=8]="RETRIEVED",t[t.UNREAD=0]="UNREAD"}(I||(I={})),function(t){t.TextMessage="RC:TxtMsg",t.VOICE="RC:VcMsg",t.HQ_VOICE="RC:HQVCMsg",t.IMAGE="RC:ImgMsg",t.GIF="RC:GIFMsg",t.RICH_CONTENT="RC:ImgTextMsg",t.LOCATION="RC:LBSMsg",t.FILE="RC:FileMsg",t.SIGHT="RC:SightMsg",t.COMBINE="RC:CombineMsg",t.CHRM_KV_NOTIFY="RC:chrmKVNotiMsg",t.LOG_COMMAND="RC:LogCmdMsg",t.EXPANSION_NOTIFY="RC:MsgExMsg",t.REFERENCE="RC:ReferenceMsg",t.RECALL="RC:RcCmd",t.READ_RECEIPT="RC:ReadNtf",t.READ_RECEIPT_REQUEST="RC:RRReqMsg",t.READ_RECEIPT_RESPONSE="RC:RRRspMsg",t.SYNC_READ_STATUS="RC:SRSMsg",t.GROUP_READ_RECEIPT_REQUEST="RC:RRMsg",t.DELIVERED="RC:Delivered",t.DELIVERED_MSG="RC:DRMsg",t.CHATROOM_JOIN="RC:ChrmJoinNtf",t.CHATROOM_LEFT="RC:ChrmQuitNtf",t.CHATROOM_MERGE_CHANGE="RC:ChrmMemChange",t.TYPING_STATUS="RC:TypSts",t.INTERCEPT="RC:InterceptMsg"}(A||(A={})),function(t){t[t.OPEN=1]="OPEN",t[t.CLOSE=2]="CLOSE"}(S||(S={})),function(t){t[t.ALL_MESSAGE=-1]="ALL_MESSAGE",t[t.NOT_SET=0]="NOT_SET",t[t.AT_MESSAGE_NOTIFICATION=1]="AT_MESSAGE_NOTIFICATION",t[t.AT_USER_NOTIFICATION=2]="AT_USER_NOTIFICATION",t[t.AT_GROUP_ALL_USER_NOTIFICATION=4]="AT_GROUP_ALL_USER_NOTIFICATION",t[t.NOT_MESSAGE_NOTIFICATION=5]="NOT_MESSAGE_NOTIFICATION"}(M||(M={})),function(t){t[t.ALL=1]="ALL",t[t.SINGAL=2]="SINGAL"}(p||(p={})),function(t){t[t.QINIU=1]="QINIU",t[t.ALI=2]="ALI",t[t.AWS=3]="AWS",t[t.STC=4]="STC"}(L||(L={})),function(t){t[t.UPDATE=1]="UPDATE",t[t.DELETE=2]="DELETE"}(f||(f={})),function(t){t[t.LOG=0]="LOG",t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t[t.FATAL=4]="FATAL",t[t.STATISTICS=6]="STATISTICS",t[t.NONE=1e3]="NONE"}(g||(g={})),function(t){t.IM="IM",t.RTC="RTC"}(h||(h={})),function(t){t.L_IMSDK_VER_O="L-imsdk_ver-O",t.A_INIT_O="A-init-O",t.L_INIT_O="L-init-O",t.P_INIT_O="P-init-O",t.A_CONNECT_T="A-connect-T",t.A_CONNECT_R="A-connect-R",t.A_CONNECT_S="A-connect-S",t.A_DISCONNECT_O="A-disconnect-O",t.A_RECONNECT_T="A-reconnect-T",t.A_RECONNECT_R="A_RECONNECT_R",t.L_CONNECT_T="L-connect-T",t.L_CONNECT_R="L-connect-R",t.L_CONNECT_S="L-connect-S",t.P_CONNECT_O="P-connect-O",t.P_CONNECT_S="P-connect-S",t.A_SEND_MSG_T="A-send_msg-T",t.A_SEND_MSG_R="A-send_msg-R",t.P_SEND_MSG_T="P-send_msg-T",t.P_SEND_MSG_R="P-send_msg-R",t.L_SEND_MSG_T="L-send_msg-T",t.L_SEND_MSG_R="L-send_msg-R",t.L_PULL_MSG_T="L-pull_msg-T",t.L_PULL_MSG_R="L-pull_msg-R",t.L_PULL_ULTRA_MSG_T="L-pull_ultra_msg-T",t.L_PULL_ULTRA_MSG_R="L-pull_ultra_msg-R",t.L_PULL_CHATROOM_KV_T="L-pull_chatroom_kv-T",t.L_PULL_CHATROOM_KV_R="L-pull_chatroom_kv-R",t.L_PULL_CHATROOM_MSG_T="L-pull_chatroom_msg-T",t.L_PULL_CHATROOM_MSG_R="L-pull_chatroom_msg-R",t.A_DELETE_MESSAGES_S="A-delete_messages-S",t.P_DELETE_MSG_S="P-delete_msg-S",t.L_PULL_CONVERSATION_S="L-pull_conversation-S",t.L_RECALL_ULTRA_MSG_S="L-recall_ultra_msg-S",t.A_REGTYP_O="A-regtyp-O",t.P_REGTYP_O="P-regtype-O",t.P_REGTYP_E="P-regtype-E",t.L_GET_NAVI_T="L-get_navi-T",t.L_GET_NAVI_R="L-get_navi-R",t.L_ENV_S="L-Env-S",t.L_GET_INDEX_NAVI_S="L-get_index_navi-S",t.A_JOIN_CHATROOM_T="A-join_chatroom-T",t.A_JOIN_CHATROOM_R="A-join_chatroom-R",t.L_JOIN_CHATROOM_T="L-join_chatroom-T",t.L_JOIN_CHATROOM_R="L-join_chatroom-R",t.A_QUIT_CHATROOM_T="A-quit_chatroom-T",t.A_QUIT_CHATROOM_R="A-quit_chatroom-R",t.L_REJOIN_CHATROOM_T="L-rejoin_chatroom-T",t.L_REJOIN_CHATROOM_R="L-rejoin_chatroom-R",t.L_MEDIA_S="L-media-S",t.L_MEDIA_UPLOAD_T="L-media_upload-T",t.L_MEDIA_UPLOAD_R="L-media_upload-R",t.G_UPLOAD_LOG_S="G-upload_log-S",t.G_REPORT_LOG_S="G-report_log-S",t.G_UPLOAD_LOG_E="G-upload_log-E",t.G_GET_REAL_TIMELOG_COMMAND_S="G-get_real_timelog_command-S",t.L_CHECK_ALIVE_IM_T="L-check_alive_im-T",t.L_CHECK_ALIVE_IM_R="L-check_alive_im-R",t.A_GET_HISTORY_MSG_T="A-get_history_msg-T",t.A_GET_HISTORY_MSG_R="A-get_history_msg-R",t.L_GET_HISTORY_MSG_T="L-get_history_msg-T",t.L_GET_HISTORY_MSG_R="L-get_history_msg-R",t.A_CALLBACK_O="A-callback-O",t.A_CALLBACK_E="A-callback-E"}(D||(D={})),function(t){t[t.QUIT=0]="QUIT",t[t.JOIN=1]="JOIN"}(U||(U={})),function(t){t[t.GLOBAL=1]="GLOBAL",t[t.CUSTOM=2]="CUSTOM",t[t.THIRD_PARTY=3]="THIRD_PARTY"}(P||(P={})),function(t){t[t.typing=0]="typing"}(d||(d={})),function(t){t[t.PUBLIC=0]="PUBLIC",t[t.PRIVATE=1]="PRIVATE"}(y||(y={})),function(t){t[t.PUBLIC_TO_PRIVATE=2]="PUBLIC_TO_PRIVATE",t[t.PRIVATE_TO_PUBLIC=3]="PRIVATE_TO_PUBLIC",t[t.PUBLIC_TO_PRIVATE_USER_NOT_IN=6]="PUBLIC_TO_PRIVATE_USER_NOT_IN"}(m||(m={})),function(t){t[t.MSG_EXPANSION=1]="MSG_EXPANSION",t[t.MSG_MODIFY=2]="MSG_MODIFY",t[t.MSG_RECALL=3]="MSG_RECALL",t[t.CHANNEL_CHANGE=4]="CHANNEL_CHANGE"}(v||(v={})),function(t){t[t.CHANNEL_DELETE=1]="CHANNEL_DELETE",t[t.PUBLIC_TO_PRIVATE=2]="PUBLIC_TO_PRIVATE",t[t.PRIVATE_TO_PUBLIC=3]="PRIVATE_TO_PUBLIC",t[t.PRIVATE_CHANNEL_USER_JOIN_PUBLIC=4]="PRIVATE_CHANNEL_USER_JOIN_PUBLIC",t[t.CHANNEL_USER_KICKED=5]="CHANNEL_USER_KICKED",t[t.PUBLIC_TO_PRIVATE_USER_NOT_IN=6]="PUBLIC_TO_PRIVATE_USER_NOT_IN"}(G||(G={})),function(t){t[t.RTC=0]="RTC",t[t.LIVE=2]="LIVE",t[t.SIP=4]="SIP",t[t.CALL=5]="CALL",t[t.MEETING=6]="MEETING"}(V||(V={})),function(t){t[t.AUDIO_AND_VIDEO=0]="AUDIO_AND_VIDEO",t[t.AUDIO=1]="AUDIO"}(H||(H={})),function(t){t[t.ANCHOR=1]="ANCHOR",t[t.AUDIENCE=2]="AUDIENCE"}(B||(B={})),function(t){t[t.ROOM=1]="ROOM",t[t.PERSON=2]="PERSON"}(K||(K={})),function(t){t[t.AnchorToViewer=1]="AnchorToViewer",t[t.ViewerToAnchor=2]="ViewerToAnchor"}(w||(w={})),function(t){t[t.KICK=0]="KICK",t[t.REFUSE=1]="REFUSE",t[t.COEXIST=2]="COEXIST"}(F||(F={}));var b="RC_Logs";function x(t){var e=t.target.result;if(1===t.oldVersion)try{e.deleteObjectStore(b)}catch(t){console.warn("version 1 indexDB delete error, name: ".concat(t.name,", message: ").concat(t.message,", stack: ").concat(t.stack))}!function(t,e,n){var o;if(!t.objectStoreNames.contains(e)){var _=a({},n.objectStoreParams);o=t.createObjectStore(e,_),n.indexs&&n.indexs.length>0&&n.indexs.forEach((function(t){o.createIndex(t.indexName,t.key,{unique:t.unique})}))}}(e,b,{indexs:[{indexName:"time",key:"time",unique:!1}],objectStoreParams:{autoIncrement:!0}})}var Y=function(){function t(){}return t.init=function(){if("undefined"!=typeof window&&window&&window.indexedDB){if(t.indexDBSwitch&&!t.opening){t.opening=!0;var e=window.indexedDB.open("RC_ENGINE_DB",2);e.onerror=function(e){t.opening=!1,console.warn("open indexDB request failed "+e.target.error)},e.onsuccess=function(e){t.opening=!1,t._db=e.target.result,t._db&&(t._db.onclose=function(e){var n;console.warn("The database ".concat(null===(n=t._db)||void 0===n?void 0:n.name," has unexpectedly closed."),e),t._db=null,t._instance=null},t._db.onerror=function(e){var n;console.warn("The database ".concat(null===(n=t._db)||void 0===n?void 0:n.name," has opening error."),e),t._db=null,t._instance=null},t._db.onabort=function(e){var n;console.warn("The database ".concat(null===(n=t._db)||void 0===n?void 0:n.name," has opening aborted."),e),t._db=null,t._instance=null}),t._instance=new t},e.onupgradeneeded=function(e){t.opening=!1,t._db=e.target.result,x(e)}}}else console.debug("IndexDB is not currently supported in the environment!")},t.getInstance=function(){return t._instance},t.prototype.addList=function(e,n){return new Promise((function(o){if(t._db){var _=t._db.transaction([e],"readwrite"),r=_.objectStore(e);n.forEach((function(t){null==r||r.add(t)})),_.oncomplete=function(t){o(!0)},_.onerror=function(t){o(!1)}}else o(!1)}))},t.prototype.getRangeData=function(e,n,o,_){return new Promise((function(r){if(t._db){var R=t._db.transaction([e],"readwrite").objectStore(e),E=IDBKeyRange.bound(o,_),i=R.index(n),a=[],s=i.openCursor(E);s.onsuccess=function(t){var e=t.target.result;e?(a.push(e.value),e.continue()):r(a)},s.onerror=function(t){console.error(t),r([])}}else r([])}))},t.prototype.getCount=function(e,n){return new Promise((function(n){if(t._db){var o=t._db.transaction([e],"readonly").objectStore(e).count();o.onsuccess=function(){n(o.result)},o.onerror=function(t){console.error(t),n(0)}}else n(0)}))},t.prototype.removeFirstData=function(e,n,o){return new Promise((function(n){if(t._db){var _=t._db.transaction([e],"readwrite").objectStore(e),r=_.getAllKeys(IDBKeyRange.lowerBound(0),o);r.onsuccess=function(){var t=r.result;t.length>0&&(_.delete(IDBKeyRange.bound(t[0],t[t.length-1])).onsuccess=function(){n(!0)})}}else n(!1)}))},t._db=null,t.indexDBSwitch=!0,t.opening=!1,t}(),k=function(){var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}));if(t=t.replace(/-/g,"")+"a",(t=function(t){var e="0123456789abcdefghigklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZa0".split(""),n=e.length+1,o=+t,_=[];do{var r=o%n;o=(o-r)/n,_.unshift(e[r])}while(o);return _.join("")}(t=parseInt(t,16))).length>22&&(t=t.slice(0,22)),t.length<22)for(var e=22-t.length,n=0;n<e;n++)t+="0";return t}();var W=[];function j(t,e,n,o){e=/^[\w]+-[\w]+-[\w]+?/.test(e)?e:"L-".concat(e,"-O"),o||(o=["RCRTCLog","RCCall","RCRTC","RTC-A"].includes(e)?h.RTC:h.IM);var _=Date.now(),r="";try{r=(r=JSON.stringify({message:n,userId:n.userId})).replace(/"/g,'""'),r='"'.concat(r,'"')}catch(t){console.log(D.G_UPLOAD_LOG_E,{name:t.name,message:t.message,stack:t.stack})}(function(t,e){void 0===e&&(e="utf-8");var n,o=0;if("utf-16"===e)for(var _=0,r=t.length;_<r;_++)o+=(n=t.charCodeAt(_))<=65535?2:4;else for(_=0,r=t.length;_<r;_++)o+=(n=t.charCodeAt(_))<127?1:n<=2047?2:n<=65535?3:4;return o})(r)>=1e3&&(r=function(t,e,n){if(void 0===n&&(n="utf-8"),!t||!e)return"";var o="utf-8"===n?3:2,_=0,r=0,R="";for(r=0;r<t.length;r++){if(t.charCodeAt(r)>255?_+=o:_++,_>e)return R;R+=t.charAt(r)}return t}(r,1e3),console.warn(D.G_UPLOAD_LOG_S,"Log length exceeds 1K"));var R=4-t,E={sessionId:k,time:_,level:R,content:"".concat(k,",").concat(Date.now(),",").concat(o,",").concat(R,",").concat(e,",").concat(r,"\n"),userId:n.userId};return W.push(E),E}var J=-1;J>=0&&(clearInterval(J),J=-1),"undefined"!=typeof window&&window&&window.indexedDB&&(J=setInterval((function(){W.length&&function(t){return s(this,void 0,void 0,(function(){var e,n,o;return O(this,(function(_){switch(_.label){case 0:if(!(e=Y.getInstance()))return[3,6];_.label=1;case 1:return _.trys.push([1,4,,5]),[4,e.addList(b,t)];case 2:return n=_.sent(),[4,e.getCount(b,"time")];case 3:return _.sent()>1e5&&e.removeFirstData(b,"time",2e3),[2,n];case 4:return o=_.sent(),console.error(D.G_UPLOAD_LOG_E,{name:o.name,message:o.message,stack:o.stack}),[2,!1];case 5:return[3,7];case 6:return Y.init(),[2,!1];case 7:return[2]}}))}))}(W.slice()).then((function(t){t&&(W=[])}))}),3e3));var X=new t("RCRenderer"),Q=0,q=Date.now(),Z=function(t){var e=Date.now();return q!==e&&(q=e,Q=0),[t,process.pid,e,Q++].join("__")};e.add("electron-renderer","5.4.2-beem.5");var z=function(t){function e(e,n,o){var r=t.call(this,e,n,o)||this;return r._resolveMaps={},_.init({customLogPrint:o.logStdout,localLogLevel:o.logLevel}),X.setLogLevel(o.logLevel),X.setLogStdout(o.logStdout),R.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(t,e){for(var o=[],_=2;_<arguments.length;_++)o[_-2]=arguments[_];var r=n[e];if(r)if("batchMessage"===e){var R=r,E=o[0].hasMoreMsg;delete o[0].hasMoreMsg,R([o[0]],void 0,E)}else if("onRTCDataChange"===e){R=r;var i=o[0][0].roomId;R(o[0],i)}else r(o[0]);else console.error.apply(console,C(["unknown notification type: ".concat(e),e],o,!1))})),R.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];X.info.apply(X,C(["__RC_CHANNEL_RESULT_FROM_MAIN__",e],n,!1));var _=r._resolveMaps[e];_&&(delete r._resolveMaps[e],_.apply(void 0,n))})),R.on("__RC_CHANNEL_CALL_RENDER__",(function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];r[e].apply(r,n)})),R.send("__RC_INNER_COMMAND_INIT__",r._options),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}E(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.setUserStatusListener=function(t,e){throw new Error("TODO -> setUserStatusListener")},e.prototype._callMain=function(t){for(var e=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var _=new Promise((function(o){var _=Z(t);e._resolveMaps[_]=o,X.info.apply(X,C(["__RC_CHANNEL_CALL_MAIN__",_,t],n,!1)),R.send.apply(R,C(["__RC_CHANNEL_CALL_MAIN__",_,t],n,!1))}));return _},e.prototype.callExtra=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this._callMain.apply(this,C(["callExtra",t],e,!1))},e.prototype._send2Main=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];X.info.apply(X,C(["__RC_CHANNEL_SEND_2_MAIN__",t],e,!1)),R.send.apply(R,C(["__RC_CHANNEL_SEND_2_MAIN__",t],e,!1))},e.prototype._callMainSync=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return X.info.apply(X,C(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],e,!1)),R.sendSync.apply(R,C(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],e,!1))},e.prototype.requestNaviInfo=function(t,e,n,o){return void 0===o&&(o=!0),s(this,void 0,void 0,(function(){return O(this,(function(_){return[2,this._callMain("requestNaviInfo",t,e,n,o)]}))}))},e.prototype.getNaviInfoFromCache=function(){return this._callMainSync("getNaviInfoFromCache")},e.prototype._insertLog2IndexDB=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],o=t[1],_=t[2],r=t[3];j(n,_,o,r)},e.prototype.connect=function(t,e,n,o){return this._callMain("connect",t,e,n,o)},e.prototype.reportSDKInfo=function(t){this._callMain("reportSDKInfo",t)},e.prototype.getConnectedTime=function(){return this._callMainSync("getConnectedTime")},e.prototype.getHistoryMessage=function(t,e,n,o,_,r,R){return this._callMain("getHistoryMessage",t,e,n,o,_,r,R)},e.prototype.getHistoryMessagesByObjectNames=function(t,e,n,o,_,r,R){return this._callMain("getHistoryMessagesByObjectNames",t,e,n,o,_,r,R)},e.prototype.deleteRemoteMessage=function(t,e,n,o){return this._callMain("deleteRemoteMessage",t,e,n,o)},e.prototype.recallMsg=function(t,e,n,o,_){return this._callMain("recallMsg",t,e,n,o,_)},e.prototype.deleteRemoteMessageByTimestamp=function(t,e,n,o){return this._callMain("deleteRemoteMessageByTimestamp",t,e,n,o)},e.prototype.getConversationList=function(t,e,n,o,_){return this._callMain("getConversationList",t,e,n,o,_)},e.prototype.getConversationsByPage=function(t,e,n,o){return this._callMain("getConversationsByPage",t,e,n,o)},e.prototype.getConversationListWithAllChannel=function(){return this._callMain("getConversationListWithAllChannel")},e.prototype.getConversationListWithAllChannelByPage=function(t,e){return this._callMain("getConversationListWithAllChannelByPage",t,e)},e.prototype.getConversation=function(t,e,n){return this._callMain("getConversation",t,e,n)},e.prototype.removeConversation=function(t,e,n){return this._callMain("removeConversation",t,e,n)},e.prototype.getAllConversationUnreadCount=function(t,e,n){return this._callMain("getAllConversationUnreadCount",t,e,n)},e.prototype.getConversationUnreadCount=function(t,e,n){return this._callMain("getConversationUnreadCount",t,e,n)},e.prototype.clearConversationUnreadCount=function(t,e,n){return this._callMain("clearConversationUnreadCount",t,e,n)},e.prototype.getFirstUnreadMessage=function(t,e,n){return this._callMain("getFirstUnreadMessage",t,e,n)},e.prototype.saveConversationMessageDraft=function(t,e,n){return this._callMain("saveConversationMessageDraft",t,e,n)},e.prototype.getConversationMessageDraft=function(t,e){return this._callMain("getConversationMessageDraft",t,e)},e.prototype.clearConversationMessageDraft=function(t,e){return this._callMain("clearConversationMessageDraft",t,e)},e.prototype.pullConversationStatus=function(t){return this._callMain("pullConversationStatus",t)},e.prototype.batchSetConversationStatus=function(t){var e=t[0].notificationLevel;return n(e)?this._callMain("batchSetConversationStatus",t):Promise.resolve(o.NOT_SUPPORT)},e.prototype.sendMessage=function(t,e,n,o,_){var r=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[r]=function(t){try{o(t)}catch(t){X.error(t)}}),this._callMain("sendMessage",t,e,n,r,_)},e.prototype.sendReadReceiptMessage=function(t,e,n){return this._callMain("sendReadReceiptMessage",t,e,n)},e.prototype.getMessageReader=function(t,e,n){return this._callMain("getMessageReader",t,e,n)},e.prototype.disconnect=function(){this._send2Main("disconnect")},e.prototype.pullUserSettings=function(t){return this._callMain("pullUserSettings",t)},e.prototype.registerMessageType=function(t,e,n,o){this._send2Main("registerMessageType",t,e,n,o)},e.prototype.joinChatroom=function(t,e){return this._callMain("joinChatroom",t,e)},e.prototype.joinExistChatroom=function(t,e){return this._callMain("joinExistChatroom",t,e)},e.prototype.quitChatroom=function(t){return this._callMain("quitChatroom",t)},e.prototype.getChatroomInfo=function(t,e,n){return this._callMain("getChatroomInfo",t,e,n)},e.prototype.getChatroomHistoryMessages=function(t,e,n,o){return this._callMain("getChatroomHistoryMessages",t,e,n,o)},e.prototype.setChatroomEntry=function(t,e){return this._callMain("setChatroomEntry",t,e)},e.prototype.setChatroomEntries=function(t,e){return this._callMain("setChatroomEntries",t,e)},e.prototype.forceSetChatroomEntry=function(t,e){return this._callMain("forceSetChatroomEntry",t,e)},e.prototype.removeChatroomEntry=function(t,e){return this._callMain("removeChatroomEntry",t,e)},e.prototype.forceRemoveChatroomEntry=function(t,e){return this._callMain("forceRemoveChatroomEntry",t,e)},e.prototype.removeChatroomEntries=function(t,e){return this._callMain("removeChatroomEntries",t,e)},e.prototype.getChatroomEntry=function(t,e){return this._callMain("getChatroomEntry",t,e)},e.prototype.getAllChatroomEntry=function(t){return this._callMain("getAllChatroomEntry",t)},e.prototype.getFileToken=function(t,e,n,o){return this._callMain("getFileToken",t,e,n,o)},e.prototype.getFileUrl=function(t,e,n,o){return this._callMain("getFileUrl",t,e,n,o)},e.prototype.setUserStatus=function(t){return this._callMain("setUserStatus",t)},e.prototype.subscribeUserStatus=function(t){return this._callMain("subscribeUserStatus",t)},e.prototype.getUserStatus=function(t){return this._callMain("getUserStatus",t)},e.prototype.clearConversations=function(t,e){return this._callMain("clearConversations",t,e)},e.prototype.addToBlacklist=function(t){return this._callMain("addToBlacklist",t)},e.prototype.removeFromBlacklist=function(t){return this._callMain("removeFromBlacklist",t)},e.prototype.getBlacklist=function(){return this._callMain("getBlacklist")},e.prototype.getBlacklistStatus=function(t){return this._callMain("getBlacklistStatus",t)},e.prototype.insertMessage=function(t,e,n){return this._callMain("insertMessage",t,e,n)},e.prototype.deleteMessages=function(t){return this._callMain("deleteMessages",t)},e.prototype.deleteMessagesByTimestamp=function(t,e,n,o,_){return this._callMain("deleteMessagesByTimestamp",t,e,n,o,_)},e.prototype.clearMessages=function(t,e,n){return this._callMain("clearMessages",t,e,n)},e.prototype.getMessage=function(t){return this._callMain("getMessage",t)},e.prototype.setMessageContent=function(t,e,n){return this._callMain("setMessageContent",t,e,n)},e.prototype.setMessageSearchField=function(t,e,n){return this._callMain("setMessageSearchField",t,e,n)},e.prototype.searchConversationByContent=function(t,e,n,o){return this._callMain("searchConversationByContent",t,e,n,o)},e.prototype.searchConversationByContentWithAllChannel=function(t,e,n){return this._callMain("searchConversationByContentWithAllChannel",t,e,n)},e.prototype.searchMessageByContentWithAllChannel=function(t,e,n,o,_){return this._callMain("searchMessageByContentWithAllChannel",t,e,n,o,_)},e.prototype.searchMessageByContentInTimeRangeWithAllChannel=function(t,e,n,o,_,r,R){return this._callMain("searchMessageByContentInTimeRangeWithAllChannel",t,e,n,o,_,r,R)},e.prototype.searchMessageByContent=function(t,e,n,o,_,r,R){return this._callMain("searchMessageByContent",t,e,n,o,_,r,R)},e.prototype.getUnreadMentionedMessages=function(t,e,n){return this._callMainSync("getUnreadMentionedMessages",t,e,n)},e.prototype.setMessageSentStatus=function(t,e){return this._callMain("setMessageSentStatus",t,e)},e.prototype.setMessageReceivedStatus=function(t,e){return this._callMain("setMessageReceivedStatus",t,e)},e.prototype.updateMessageReceiptStatus=function(t,e,n,o){return this._callMain("updateMessageReceiptStatus",t,e,n,o)},e.prototype.clearUnreadCountByTimestamp=function(t,e,n,o){return this._callMain("clearUnreadCountByTimestamp",t,e,n,o)},e.prototype.clearAllUnreadCount=function(){throw new Error("Method not implemented.")},e.prototype.getConversationNotificationStatus=function(t,e,n){return this._callMain("getConversationNotificationStatus",t,e,n)},e.prototype.getRemoteHistoryMessages=function(t,e,n,o,_,r){return this._callMain("getRemoteHistoryMessages",t,e,n,o,_,r)},e.prototype.getServerTime=function(){return this._callMainSync("getServerTime")},e.prototype.getDeviceId=function(){return this._callMainSync("getDeviceId")},e.prototype.getCurrentUserId=function(){return this._callMainSync("getCurrentUserId")},e.prototype.joinRTCRoom=function(t,e,n,o,_,r){return this._callMain("joinRTCRoom",t,e,n,o,_,r)},e.prototype.quitRTCRoom=function(t){return this._callMain("quitRTCRoom",t)},e.prototype.rtcPing=function(t,e,n){return this._callMain("rtcPing",t,e,n)},e.prototype.getRTCRoomInfo=function(t){return this._callMain("getRTCRoomInfo",t)},e.prototype.getRTCUserInfoList=function(t){return this._callMain("getRTCUserInfoList",t)},e.prototype.getRTCUserInfo=function(t){return this._callMain("getRTCUserInfo",t)},e.prototype.setRTCUserInfo=function(t,e,n){return this._callMain("setRTCUserInfo",t,e,n)},e.prototype.removeRTCUserInfo=function(t,e){return this._callMain("removeRTCUserInfo",t,e)},e.prototype.setRTCData=function(t,e,n,o,_,r){return this._callMain("setRTCData",t,e,n,o,_,r)},e.prototype.setRTCTotalRes=function(t,e,n,o,_){return this._callMain("setRTCTotalRes",t,e,n,o,_)},e.prototype.setRTCCDNUris=function(t,e,n){return this._callMain("setRTCCDNUris",t,e,n)},e.prototype.getRTCData=function(t,e,n,o){return this._callMain("getRTCData",t,e,n,o)},e.prototype.removeRTCData=function(t,e,n,o,_){return this._callMain("removeRTCData",t,e,n,o,_)},e.prototype.setRTCOutData=function(t,e,n,o){return this._callMain("setRTCOutData",t,e,n,o)},e.prototype.getRTCOutData=function(t,e){return this._callMain("getRTCOutData",t,e)},e.prototype.getRTCToken=function(t,e,n){return this._callMain("getRTCToken",t,e,n)},e.prototype.setRTCState=function(t,e){return this._callMain("setRTCState",t,e)},e.prototype.getRTCUserList=function(t){return this._callMain("getRTCUserList",t)},e.prototype.createTag=function(t){return this._callMain("createTag",t)},e.prototype.removeTag=function(t){return this._callMain("removeTag",t)},e.prototype.updateTag=function(t){return this._callMain("updateTag",t)},e.prototype.getTagList=function(){return this._callMain("getTagList")},e.prototype.addTagForConversations=function(t,e){return this._callMain("addTagForConversations",t,e)},e.prototype.removeTagForConversations=function(t,e){return this._callMain("removeTagForConversations",t,e)},e.prototype.removeTagsForConversation=function(t,e){return this._callMain("removeTagsForConversation",t,e)},e.prototype.getConversationListByTag=function(t,e,n,o){return this._callMain("getConversationListByTag",t,e,n,o)},e.prototype.getUnreadCountByTag=function(t,e){return this._callMain("getUnreadCountByTag",t,e)},e.prototype.setConversationStatusInTag=function(t,e,n){return this._callMain("setConversationStatusInTag",t,e,n)},e.prototype.getTagsForConversation=function(t){return this._callMain("getTagsForConversation",t)},e.prototype.clearData=function(){return this._callMain("clearData")},e.prototype.joinLivingRoomAsAudience=function(t,e,n){return this._callMain("joinLivingRoomAsAudience",t,e,n)},e.prototype.quitLivingRoomAsAudience=function(t){return this._callMain("quitLivingRoomAsAudience",t)},e.prototype.rtcIdentityChange=function(t,e,n){return this._callMain("switchLivingRoomRole",t,e,n)},e.prototype.getRTCJoinedUserInfo=function(t){return this._callMain("getRTCJoinedUserInfo",t)},e.prototype.getGroupMessageDeliverList=function(t,e,n){return this._callMain("getGroupMessageDeliverList",t,e,n)},e.prototype.getPrivateMessageDeliverTime=function(t,e){return this._callMain("getPrivateMessageDeliverTime",t,e)},e.prototype.setCallInfo=function(t,e,n){return this._callMain("setCallInfo",t,e,n)},e.prototype.getBlockConversationList=function(){throw new Error("Method not implemented.")},e.prototype.getTopConversationList=function(){throw new Error("Method not implemented.")},e.prototype.getUnreadMentionedCount=function(t){throw new Error("Method not implemented.")},e.prototype.getAllUnreadMentionedCount=function(){throw new Error("Method not implemented.")},e.prototype.getAllConversationState=function(){throw new Error("Method not implemented.")},e.prototype.requestRoomPK=function(t){return this._callMain("requestRoomPK",t)},e.prototype.cancelRoomPK=function(t){return this._callMain("cancelRoomPK",t)},e.prototype.responseRoomPK=function(t){return this._callMain("responseRoomPK",t)},e.prototype.endRoomPK=function(t){return this._callMain("endRoomPK",t)},e.prototype.getUltraGroupList=function(){throw new Error("Method not implemented.")},e.prototype.getBlockUltraGroupList=function(){throw new Error("Method not implemented.")},e.prototype.getTopUltraGroupList=function(){throw new Error("Method not implemented.")},e.prototype.clearUltraUnreadcount=function(t,e){throw new Error("Method not implemented.")},e.prototype.getUltraGroupUnreadMentionedCountByTargetId=function(t){throw new Error("Method not implemented.")},e.prototype.sendUltraMessage=function(t,e,n){throw new Error("Method not implemented.")},e.prototype.sendUltraGroupTypingStatus=function(t,e){throw new Error("Method not implemented.")},e.prototype.getUltraGroupMessageListByMessageUId=function(t){throw new Error("Method not implemented.")},e.prototype.expandUltraMessage=function(t){throw new Error("Method not implemented.")},e.prototype.modifyMessage=function(t){throw new Error("Method not implemented.")},e.prototype.getUltraHistoryMsg=function(t,e){throw new Error("Method not implemented.")},e.prototype.bindRTCRoomForChatroom=function(t){return this._callMain("bindRTCRoomForChatroom",t)},e.prototype.getConversationNotificationLevel=function(t,e,n){return s(this,void 0,void 0,(function(){return O(this,(function(t){return[2,Promise.resolve({code:o.NOT_SUPPORT})]}))}))},e.prototype.getUltraGroupDefaultNotificationLevel=function(t,e){return Promise.resolve({code:o.NOT_SUPPORT})},e.prototype.getAllUltraGroupUnreadCount=function(){return Promise.resolve({code:o.NOT_SUPPORT})},e.prototype.getUltraGroupUnreadCountByTargetId=function(){return Promise.resolve({code:o.NOT_SUPPORT})},e.prototype.setUltraGroupDefaultNotificationLevel=function(){return Promise.resolve({code:o.NOT_SUPPORT})},e}(r);window&&(window.RCCppEngine=z);export{z as RCCppEngine};
1
+ import{Logger as t,VersionManage as e,logger as n,isUndefined as o,ErrorCode as r,AEngine as i}from"@rongcloud/engine";import{ipcRenderer as a}from"electron";var s=function(t,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},s(t,e)};function l(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))}function c(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function u(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var p=new t("RCRenderer"),h=0,f=Date.now(),y=function(t){var e=Date.now();return f!==e&&(f=e,h=0),[t,process.pid,e,h++].join("__")};e.add("electron-renderer","5.4.4");var g=function(t){function e(e,o,r){var i=t.call(this,e,o,r)||this;return i._resolveMaps={},n.init({customLogPrint:r.logStdout,localLogLevel:r.logLevel}),p.setLogLevel(r.logLevel),p.setLogStdout(r.logStdout),a.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=o[e];if(i)if("batchMessage"===e){var a=i,s=n[0].hasMoreMsg;delete n[0].hasMoreMsg,a([n[0]],void 0,s)}else if("onRTCDataChange"===e){a=i;var l=n[0][0].roomId;a(n[0],l)}else i(n[0]);else console.error.apply(console,u(["unknown notification type: ".concat(e),e],n,!1))})),a.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];p.info.apply(p,u(["__RC_CHANNEL_RESULT_FROM_MAIN__",e],n,!1));var r=i._resolveMaps[e];r&&(delete i._resolveMaps[e],r.apply(void 0,n))})),a.on("__RC_CHANNEL_CALL_RENDER__",(function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];i[e].apply(i,n)})),a.send("__RC_INNER_COMMAND_INIT__",i._options),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.setUserStatusListener=function(t,e){throw new Error("TODO -> setUserStatusListener")},e.prototype._callMain=function(t){for(var e=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var r=new Promise((function(o){var r=y(t);e._resolveMaps[r]=o,p.info.apply(p,u(["__RC_CHANNEL_CALL_MAIN__",r,t],n,!1)),a.send.apply(a,u(["__RC_CHANNEL_CALL_MAIN__",r,t],n,!1))}));return r},e.prototype.callExtra=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this._callMain.apply(this,u(["callExtra",t],e,!1))},e.prototype._send2Main=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.info.apply(p,u(["__RC_CHANNEL_SEND_2_MAIN__",t],e,!1)),a.send.apply(a,u(["__RC_CHANNEL_SEND_2_MAIN__",t],e,!1))},e.prototype._callMainSync=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return p.info.apply(p,u(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],e,!1)),a.sendSync.apply(a,u(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],e,!1))},e.prototype.requestNaviInfo=function(t,e,n,o){return void 0===o&&(o=!0),l(this,void 0,void 0,(function(){return c(this,(function(r){return[2,this._callMain("requestNaviInfo",t,e,n,o)]}))}))},e.prototype.getNaviInfoFromCache=function(){return this._callMainSync("getNaviInfoFromCache")},e.prototype._insertLog2IndexDB=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o=t[0],r=t[1],i=t[2],a=t[3];n.insertIntoLogCache(o,i,r,a)},e.prototype.connect=function(t,e,n,o){return this._callMain("connect",t,e,n,o)},e.prototype.reportSDKInfo=function(t){this._callMain("reportSDKInfo",t)},e.prototype.getConnectedTime=function(){return this._callMainSync("getConnectedTime")},e.prototype.getHistoryMessage=function(t,e,n,o,r,i,a){return this._callMain("getHistoryMessage",t,e,n,o,r,i,a)},e.prototype.getHistoryMessagesByObjectNames=function(t,e,n,o,r,i,a){return this._callMain("getHistoryMessagesByObjectNames",t,e,n,o,r,i,a)},e.prototype.deleteRemoteMessage=function(t,e,n,o){return this._callMain("deleteRemoteMessage",t,e,n,o)},e.prototype.recallMsg=function(t,e,n,o,r){return this._callMain("recallMsg",t,e,n,o,r)},e.prototype.deleteRemoteMessageByTimestamp=function(t,e,n,o){return this._callMain("deleteRemoteMessageByTimestamp",t,e,n,o)},e.prototype.getConversationList=function(t,e,n,o,r){return this._callMain("getConversationList",t,e,n,o,r)},e.prototype.getConversationsByPage=function(t,e,n,o){return this._callMain("getConversationsByPage",t,e,n,o)},e.prototype.getConversationListWithAllChannel=function(){return this._callMain("getConversationListWithAllChannel")},e.prototype.getConversationListWithAllChannelByPage=function(t,e){return this._callMain("getConversationListWithAllChannelByPage",t,e)},e.prototype.getConversation=function(t,e,n){return this._callMain("getConversation",t,e,n)},e.prototype.removeConversation=function(t,e,n){return this._callMain("removeConversation",t,e,n)},e.prototype.getAllConversationUnreadCount=function(t,e,n){return this._callMain("getAllConversationUnreadCount",t,e,n)},e.prototype.getConversationUnreadCount=function(t,e,n){return this._callMain("getConversationUnreadCount",t,e,n)},e.prototype.clearConversationUnreadCount=function(t,e,n){return this._callMain("clearConversationUnreadCount",t,e,n)},e.prototype.getFirstUnreadMessage=function(t,e,n){return this._callMain("getFirstUnreadMessage",t,e,n)},e.prototype.saveConversationMessageDraft=function(t,e,n){return this._callMain("saveConversationMessageDraft",t,e,n)},e.prototype.getConversationMessageDraft=function(t,e){return this._callMain("getConversationMessageDraft",t,e)},e.prototype.clearConversationMessageDraft=function(t,e){return this._callMain("clearConversationMessageDraft",t,e)},e.prototype.pullConversationStatus=function(t){return this._callMain("pullConversationStatus",t)},e.prototype.batchSetConversationStatus=function(t){var e=t[0].notificationLevel;return o(e)?this._callMain("batchSetConversationStatus",t):Promise.resolve(r.NOT_SUPPORT)},e.prototype.sendMessage=function(t,e,n,o,r){var i=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[i]=function(t){try{o(t)}catch(t){p.error(t)}}),this._callMain("sendMessage",t,e,n,i,r)},e.prototype.sendReadReceiptMessage=function(t,e,n){return this._callMain("sendReadReceiptMessage",t,e,n)},e.prototype.getMessageReader=function(t,e,n){return this._callMain("getMessageReader",t,e,n)},e.prototype.disconnect=function(){this._send2Main("disconnect")},e.prototype.pullUserSettings=function(t){return this._callMain("pullUserSettings",t)},e.prototype.registerMessageType=function(t,e,n,o){this._send2Main("registerMessageType",t,e,n,o)},e.prototype.joinChatroom=function(t,e){return this._callMain("joinChatroom",t,e)},e.prototype.joinExistChatroom=function(t,e){return this._callMain("joinExistChatroom",t,e)},e.prototype.quitChatroom=function(t){return this._callMain("quitChatroom",t)},e.prototype.getChatroomInfo=function(t,e,n){return this._callMain("getChatroomInfo",t,e,n)},e.prototype.getChatroomHistoryMessages=function(t,e,n,o){return this._callMain("getChatroomHistoryMessages",t,e,n,o)},e.prototype.setChatroomEntry=function(t,e){return this._callMain("setChatroomEntry",t,e)},e.prototype.setChatroomEntries=function(t,e){return this._callMain("setChatroomEntries",t,e)},e.prototype.forceSetChatroomEntry=function(t,e){return this._callMain("forceSetChatroomEntry",t,e)},e.prototype.removeChatroomEntry=function(t,e){return this._callMain("removeChatroomEntry",t,e)},e.prototype.forceRemoveChatroomEntry=function(t,e){return this._callMain("forceRemoveChatroomEntry",t,e)},e.prototype.removeChatroomEntries=function(t,e){return this._callMain("removeChatroomEntries",t,e)},e.prototype.getChatroomEntry=function(t,e){return this._callMain("getChatroomEntry",t,e)},e.prototype.getAllChatroomEntry=function(t){return this._callMain("getAllChatroomEntry",t)},e.prototype.getFileToken=function(t,e,n,o){return this._callMain("getFileToken",t,e,n,o)},e.prototype.getFileUrl=function(t,e,n,o){return this._callMain("getFileUrl",t,e,n,o)},e.prototype.setUserStatus=function(t){return this._callMain("setUserStatus",t)},e.prototype.subscribeUserStatus=function(t){return this._callMain("subscribeUserStatus",t)},e.prototype.getUserStatus=function(t){return this._callMain("getUserStatus",t)},e.prototype.clearConversations=function(t,e){return this._callMain("clearConversations",t,e)},e.prototype.addToBlacklist=function(t){return this._callMain("addToBlacklist",t)},e.prototype.removeFromBlacklist=function(t){return this._callMain("removeFromBlacklist",t)},e.prototype.getBlacklist=function(){return this._callMain("getBlacklist")},e.prototype.getBlacklistStatus=function(t){return this._callMain("getBlacklistStatus",t)},e.prototype.insertMessage=function(t,e,n){return this._callMain("insertMessage",t,e,n)},e.prototype.deleteMessages=function(t){return this._callMain("deleteMessages",t)},e.prototype.deleteMessagesByTimestamp=function(t,e,n,o,r){return this._callMain("deleteMessagesByTimestamp",t,e,n,o,r)},e.prototype.clearMessages=function(t,e,n){return this._callMain("clearMessages",t,e,n)},e.prototype.getMessage=function(t){return this._callMain("getMessage",t)},e.prototype.setMessageContent=function(t,e,n){return this._callMain("setMessageContent",t,e,n)},e.prototype.setMessageSearchField=function(t,e,n){return this._callMain("setMessageSearchField",t,e,n)},e.prototype.searchConversationByContent=function(t,e,n,o){return this._callMain("searchConversationByContent",t,e,n,o)},e.prototype.searchConversationByContentWithAllChannel=function(t,e,n){return this._callMain("searchConversationByContentWithAllChannel",t,e,n)},e.prototype.searchMessageByContentWithAllChannel=function(t,e,n,o,r){return this._callMain("searchMessageByContentWithAllChannel",t,e,n,o,r)},e.prototype.searchMessageByContentInTimeRangeWithAllChannel=function(t,e,n,o,r,i,a){return this._callMain("searchMessageByContentInTimeRangeWithAllChannel",t,e,n,o,r,i,a)},e.prototype.searchMessageByContent=function(t,e,n,o,r,i,a){return this._callMain("searchMessageByContent",t,e,n,o,r,i,a)},e.prototype.getUnreadMentionedMessages=function(t,e,n){return this._callMainSync("getUnreadMentionedMessages",t,e,n)},e.prototype.setMessageSentStatus=function(t,e){return this._callMain("setMessageSentStatus",t,e)},e.prototype.setMessageReceivedStatus=function(t,e){return this._callMain("setMessageReceivedStatus",t,e)},e.prototype.updateMessageReceiptStatus=function(t,e,n,o){return this._callMain("updateMessageReceiptStatus",t,e,n,o)},e.prototype.clearUnreadCountByTimestamp=function(t,e,n,o){return this._callMain("clearUnreadCountByTimestamp",t,e,n,o)},e.prototype.clearAllUnreadCount=function(){throw new Error("Method not implemented.")},e.prototype.getConversationNotificationStatus=function(t,e,n){return this._callMain("getConversationNotificationStatus",t,e,n)},e.prototype.getRemoteHistoryMessages=function(t,e,n,o,r,i){return this._callMain("getRemoteHistoryMessages",t,e,n,o,r,i)},e.prototype.getServerTime=function(){return this._callMainSync("getServerTime")},e.prototype.getDeviceId=function(){return this._callMainSync("getDeviceId")},e.prototype.getCurrentUserId=function(){return this._callMainSync("getCurrentUserId")},e.prototype.joinRTCRoom=function(t,e,n,o,r,i){return this._callMain("joinRTCRoom",t,e,n,o,r,i)},e.prototype.quitRTCRoom=function(t){return this._callMain("quitRTCRoom",t)},e.prototype.rtcPing=function(t,e,n){return this._callMain("rtcPing",t,e,n)},e.prototype.getRTCRoomInfo=function(t){return this._callMain("getRTCRoomInfo",t)},e.prototype.getRTCUserInfoList=function(t){return this._callMain("getRTCUserInfoList",t)},e.prototype.getRTCUserInfo=function(t){return this._callMain("getRTCUserInfo",t)},e.prototype.setRTCUserInfo=function(t,e,n){return this._callMain("setRTCUserInfo",t,e,n)},e.prototype.removeRTCUserInfo=function(t,e){return this._callMain("removeRTCUserInfo",t,e)},e.prototype.setRTCData=function(t,e,n,o,r,i){return this._callMain("setRTCData",t,e,n,o,r,i)},e.prototype.setRTCTotalRes=function(t,e,n,o,r){return this._callMain("setRTCTotalRes",t,e,n,o,r)},e.prototype.setRTCCDNUris=function(t,e,n){return this._callMain("setRTCCDNUris",t,e,n)},e.prototype.getRTCData=function(t,e,n,o){return this._callMain("getRTCData",t,e,n,o)},e.prototype.removeRTCData=function(t,e,n,o,r){return this._callMain("removeRTCData",t,e,n,o,r)},e.prototype.setRTCOutData=function(t,e,n,o){return this._callMain("setRTCOutData",t,e,n,o)},e.prototype.getRTCOutData=function(t,e){return this._callMain("getRTCOutData",t,e)},e.prototype.getRTCToken=function(t,e,n){return this._callMain("getRTCToken",t,e,n)},e.prototype.setRTCState=function(t,e){return this._callMain("setRTCState",t,e)},e.prototype.getRTCUserList=function(t){return this._callMain("getRTCUserList",t)},e.prototype.createTag=function(t){return this._callMain("createTag",t)},e.prototype.removeTag=function(t){return this._callMain("removeTag",t)},e.prototype.updateTag=function(t){return this._callMain("updateTag",t)},e.prototype.getTagList=function(){return this._callMain("getTagList")},e.prototype.addTagForConversations=function(t,e){return this._callMain("addTagForConversations",t,e)},e.prototype.removeTagForConversations=function(t,e){return this._callMain("removeTagForConversations",t,e)},e.prototype.removeTagsForConversation=function(t,e){return this._callMain("removeTagsForConversation",t,e)},e.prototype.getConversationListByTag=function(t,e,n,o){return this._callMain("getConversationListByTag",t,e,n,o)},e.prototype.getUnreadCountByTag=function(t,e){return this._callMain("getUnreadCountByTag",t,e)},e.prototype.setConversationStatusInTag=function(t,e,n){return this._callMain("setConversationStatusInTag",t,e,n)},e.prototype.getTagsForConversation=function(t){return this._callMain("getTagsForConversation",t)},e.prototype.clearData=function(){return this._callMain("clearData")},e.prototype.joinLivingRoomAsAudience=function(t,e,n){return this._callMain("joinLivingRoomAsAudience",t,e,n)},e.prototype.quitLivingRoomAsAudience=function(t){return this._callMain("quitLivingRoomAsAudience",t)},e.prototype.rtcIdentityChange=function(t,e,n){return this._callMain("switchLivingRoomRole",t,e,n)},e.prototype.getRTCJoinedUserInfo=function(t){return this._callMain("getRTCJoinedUserInfo",t)},e.prototype.getBlockConversationList=function(){throw new Error("Method not implemented.")},e.prototype.getTopConversationList=function(){throw new Error("Method not implemented.")},e.prototype.getUnreadMentionedCount=function(t){throw new Error("Method not implemented.")},e.prototype.getAllUnreadMentionedCount=function(){throw new Error("Method not implemented.")},e.prototype.getAllConversationState=function(){throw new Error("Method not implemented.")},e.prototype.requestRoomPK=function(t){return this._callMain("requestRoomPK",t)},e.prototype.cancelRoomPK=function(t){return this._callMain("cancelRoomPK",t)},e.prototype.responseRoomPK=function(t){return this._callMain("responseRoomPK",t)},e.prototype.endRoomPK=function(t){return this._callMain("endRoomPK",t)},e.prototype.getUltraGroupList=function(){throw new Error("Method not implemented.")},e.prototype.getBlockUltraGroupList=function(){throw new Error("Method not implemented.")},e.prototype.getTopUltraGroupList=function(){throw new Error("Method not implemented.")},e.prototype.clearUltraUnreadcount=function(t,e){throw new Error("Method not implemented.")},e.prototype.getUltraGroupUnreadMentionedCountByTargetId=function(t){throw new Error("Method not implemented.")},e.prototype.sendUltraMessage=function(t,e,n){throw new Error("Method not implemented.")},e.prototype.sendUltraGroupTypingStatus=function(t,e){throw new Error("Method not implemented.")},e.prototype.getUltraGroupMessageListByMessageUId=function(t){throw new Error("Method not implemented.")},e.prototype.expandUltraMessage=function(t){throw new Error("Method not implemented.")},e.prototype.modifyMessage=function(t){throw new Error("Method not implemented.")},e.prototype.getUltraHistoryMsg=function(t,e){throw new Error("Method not implemented.")},e.prototype.bindRTCRoomForChatroom=function(t){return this._callMain("bindRTCRoomForChatroom",t)},e.prototype.getConversationNotificationLevel=function(t,e,n){return l(this,void 0,void 0,(function(){return c(this,(function(t){return[2,Promise.resolve({code:r.NOT_SUPPORT})]}))}))},e.prototype.getUltraGroupDefaultNotificationLevel=function(t,e){return Promise.resolve({code:r.NOT_SUPPORT})},e.prototype.getAllUltraGroupUnreadCount=function(){return Promise.resolve({code:r.NOT_SUPPORT})},e.prototype.getUltraGroupUnreadCountByTargetId=function(){return Promise.resolve({code:r.NOT_SUPPORT})},e.prototype.setUltraGroupDefaultNotificationLevel=function(){return Promise.resolve({code:r.NOT_SUPPORT})},e}(i);window&&(window.RCCppEngine=g);export{g as RCCppEngine};
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("@rongcloud/engine"),e=require("electron"),n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)};var o,_=function(){return _=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var _ in e=arguments[n])Object.prototype.hasOwnProperty.call(e,_)&&(t[_]=e[_]);return t},_.apply(this,arguments)};function r(t,e,n,o){return new(n||(n=Promise))((function(_,r){function R(t){try{i(o.next(t))}catch(t){r(t)}}function E(t){try{i(o.throw(t))}catch(t){r(t)}}function i(t){var e;t.done?_(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(R,E)}i((o=o.apply(t,e||[])).next())}))}function R(t,e){var n,o,_,r,R={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return r={next:E(0),throw:E(1),return:E(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function E(r){return function(E){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;R;)try{if(n=1,o&&(_=2&r[0]?o.return:r[0]?o.throw||((_=o.return)&&_.call(o),0):o.next)&&!(_=_.call(o,r[1])).done)return _;switch(o=0,_&&(r=[2&r[0],_.value]),r[0]){case 0:case 1:_=r;break;case 4:return R.label++,{value:r[1],done:!1};case 5:R.label++,o=r[1],r=[0];continue;case 7:r=R.ops.pop(),R.trys.pop();continue;default:if(!(_=R.trys,(_=_.length>0&&_[_.length-1])||6!==r[0]&&2!==r[0])){R=0;continue}if(3===r[0]&&(!_||r[1]>_[0]&&r[1]<_[3])){R.label=r[1];break}if(6===r[0]&&R.label<_[1]){R.label=_[1],_=r;break}if(_&&R.label<_[2]){R.label=_[2],R.ops.push(r);break}_[2]&&R.ops.pop(),R.trys.pop();continue}r=e.call(t,R)}catch(t){r=[6,t],o=0}finally{n=_=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,E])}}}function E(t,e,n){if(n||2===arguments.length)for(var o,_=0,r=e.length;_<r;_++)!o&&_ in e||(o||(o=Array.prototype.slice.call(e,0,_)),o[_]=e[_]);return t.concat(o||Array.prototype.slice.call(e))}!function(t){t.WEBSOCKET="websocket",t.COMET="comet"}(o||(o={}));var i,a,s,O,C,T,c,N,l,u,I,A,S,M,p,L,g,f,h,D,d,U,P,y,m,v,G,V;!function(t){t[t.IMAGE=1]="IMAGE",t[t.AUDIO=2]="AUDIO",t[t.VIDEO=3]="VIDEO",t[t.FILE=4]="FILE",t[t.SIGHT=5]="SIGHT",t[t.COMBINE_HTML=6]="COMBINE_HTML"}(i||(i={})),function(t){t[t.SEND=1]="SEND",t[t.RECEIVE=2]="RECEIVE"}(a||(a={})),function(t){t[t.TIMEOUT=-1]="TIMEOUT",t[t.UNKNOWN=-2]="UNKNOWN",t[t.PARAMETER_ERROR=-3]="PARAMETER_ERROR",t[t.EXTRA_METHOD_UNDEFINED=-4]="EXTRA_METHOD_UNDEFINED",t[t.MAIN_PROCESS_ERROR=-5]="MAIN_PROCESS_ERROR",t[t.PARAMETER_CHANGED=-6]="PARAMETER_CHANGED",t[t.SUCCESS=0]="SUCCESS",t[t.RC_DISCUSSION_GROUP_ID_INVALID=20407]="RC_DISCUSSION_GROUP_ID_INVALID",t[t.SEND_FREQUENCY_TOO_FAST=20604]="SEND_FREQUENCY_TOO_FAST",t[t.NOT_IN_DISCUSSION=21406]="NOT_IN_DISCUSSION",t[t.FORBIDDEN_IN_GROUP=22408]="FORBIDDEN_IN_GROUP",t[t.RECALL_MESSAGE=25101]="RECALL_MESSAGE",t[t.NOT_IN_GROUP=22406]="NOT_IN_GROUP",t[t.NOT_IN_CHATROOM=23406]="NOT_IN_CHATROOM",t[t.FORBIDDEN_IN_CHATROOM=23408]="FORBIDDEN_IN_CHATROOM",t[t.RC_CHATROOM_USER_KICKED=23409]="RC_CHATROOM_USER_KICKED",t[t.RC_CHATROOM_NOT_EXIST=23410]="RC_CHATROOM_NOT_EXIST",t[t.RC_CHATROOM_IS_FULL=23411]="RC_CHATROOM_IS_FULL",t[t.RC_CHATROOM_PATAMETER_INVALID=23412]="RC_CHATROOM_PATAMETER_INVALID",t[t.CHATROOM_GET_HISTORYMSG_ERROR=23413]="CHATROOM_GET_HISTORYMSG_ERROR",t[t.CHATROOM_NOT_OPEN_HISTORYMSG_STORE=23414]="CHATROOM_NOT_OPEN_HISTORYMSG_STORE",t[t.CHATROOM_KV_EXCEED=23423]="CHATROOM_KV_EXCEED",t[t.CHATROOM_KV_OVERWRITE_INVALID=23424]="CHATROOM_KV_OVERWRITE_INVALID",t[t.CHATROOM_KV_STORE_NOT_OPEN=23426]="CHATROOM_KV_STORE_NOT_OPEN",t[t.CHATROOM_KEY_NOT_EXIST=23427]="CHATROOM_KEY_NOT_EXIST",t[t.CHATROOM_KV_SET_ERROR=23431]="CHATROOM_KV_SET_ERROR",t[t.SENSITIVE_SHIELD=21501]="SENSITIVE_SHIELD",t[t.SENSITIVE_REPLACE=21502]="SENSITIVE_REPLACE",t[t.JOIN_IN_DISCUSSION=21407]="JOIN_IN_DISCUSSION",t[t.CREATE_DISCUSSION=21408]="CREATE_DISCUSSION",t[t.INVITE_DICUSSION=21409]="INVITE_DICUSSION",t[t.GET_USERINFO_ERROR=23407]="GET_USERINFO_ERROR",t[t.REJECTED_BY_BLACKLIST=405]="REJECTED_BY_BLACKLIST",t[t.RC_NET_CHANNEL_INVALID=30001]="RC_NET_CHANNEL_INVALID",t[t.RC_NET_UNAVAILABLE=30002]="RC_NET_UNAVAILABLE",t[t.RC_MSG_RESP_TIMEOUT=30003]="RC_MSG_RESP_TIMEOUT",t[t.RC_HTTP_SEND_FAIL=30004]="RC_HTTP_SEND_FAIL",t[t.RC_HTTP_REQ_TIMEOUT=30005]="RC_HTTP_REQ_TIMEOUT",t[t.RC_HTTP_RECV_FAIL=30006]="RC_HTTP_RECV_FAIL",t[t.RC_NAVI_RESOURCE_ERROR=30007]="RC_NAVI_RESOURCE_ERROR",t[t.RC_NODE_NOT_FOUND=30008]="RC_NODE_NOT_FOUND",t[t.RC_DOMAIN_NOT_RESOLVE=30009]="RC_DOMAIN_NOT_RESOLVE",t[t.RC_SOCKET_NOT_CREATED=30010]="RC_SOCKET_NOT_CREATED",t[t.RC_SOCKET_DISCONNECTED=30011]="RC_SOCKET_DISCONNECTED",t[t.RC_PING_SEND_FAIL=30012]="RC_PING_SEND_FAIL",t[t.RC_PONG_RECV_FAIL=30013]="RC_PONG_RECV_FAIL",t[t.RC_MSG_SEND_FAIL=30014]="RC_MSG_SEND_FAIL",t[t.RC_MSG_CONTENT_EXCEED_LIMIT=30016]="RC_MSG_CONTENT_EXCEED_LIMIT",t[t.RC_CONN_ACK_TIMEOUT=31e3]="RC_CONN_ACK_TIMEOUT",t[t.RC_CONN_PROTO_VERSION_ERROR=31001]="RC_CONN_PROTO_VERSION_ERROR",t[t.RC_CONN_ID_REJECT=31002]="RC_CONN_ID_REJECT",t[t.RC_CONN_SERVER_UNAVAILABLE=31003]="RC_CONN_SERVER_UNAVAILABLE",t[t.RC_CONN_USER_OR_PASSWD_ERROR=31004]="RC_CONN_USER_OR_PASSWD_ERROR",t[t.RC_CONN_NOT_AUTHRORIZED=31005]="RC_CONN_NOT_AUTHRORIZED",t[t.RC_CONN_REDIRECTED=31006]="RC_CONN_REDIRECTED",t[t.RC_CONN_PACKAGE_NAME_INVALID=31007]="RC_CONN_PACKAGE_NAME_INVALID",t[t.RC_CONN_APP_BLOCKED_OR_DELETED=31008]="RC_CONN_APP_BLOCKED_OR_DELETED",t[t.RC_CONN_USER_BLOCKED=31009]="RC_CONN_USER_BLOCKED",t[t.RC_DISCONN_KICK=31010]="RC_DISCONN_KICK",t[t.RC_DISCONN_EXCEPTION=31011]="RC_DISCONN_EXCEPTION",t[t.RC_DISCONN_SAME_CLIENT_ON_LINE=31023]="RC_DISCONN_SAME_CLIENT_ON_LINE",t[t.RC_APP_AUTH_NOT_PASS=31026]="RC_APP_AUTH_NOT_PASS",t[t.RC_OTP_USED=31027]="RC_OTP_USED",t[t.RC_PLATFORM_ERROR=31028]="RC_PLATFORM_ERROR",t[t.RC_QUERY_ACK_NO_DATA=32001]="RC_QUERY_ACK_NO_DATA",t[t.RC_MSG_DATA_INCOMPLETE=32002]="RC_MSG_DATA_INCOMPLETE",t[t.BIZ_ERROR_CLIENT_NOT_INIT=33001]="BIZ_ERROR_CLIENT_NOT_INIT",t[t.BIZ_ERROR_DATABASE_ERROR=33002]="BIZ_ERROR_DATABASE_ERROR",t[t.BIZ_ERROR_INVALID_PARAMETER=33003]="BIZ_ERROR_INVALID_PARAMETER",t[t.BIZ_ERROR_NO_CHANNEL=33004]="BIZ_ERROR_NO_CHANNEL",t[t.BIZ_ERROR_RECONNECT_SUCCESS=33005]="BIZ_ERROR_RECONNECT_SUCCESS",t[t.BIZ_ERROR_CONNECTING=33006]="BIZ_ERROR_CONNECTING",t[t.MSG_ROAMING_SERVICE_UNAVAILABLE=33007]="MSG_ROAMING_SERVICE_UNAVAILABLE",t[t.MSG_INSERT_ERROR=33008]="MSG_INSERT_ERROR",t[t.MSG_DEL_ERROR=33009]="MSG_DEL_ERROR",t[t.TAG_EXISTS=33101]="TAG_EXISTS",t[t.TAG_NOT_EXIST=33100]="TAG_NOT_EXIST",t[t.NO_TAG_IN_CONVER=33102]="NO_TAG_IN_CONVER",t[t.CONVER_REMOVE_ERROR=34001]="CONVER_REMOVE_ERROR",t[t.CONVER_GETLIST_ERROR=34002]="CONVER_GETLIST_ERROR",t[t.CONVER_SETOP_ERROR=34003]="CONVER_SETOP_ERROR",t[t.CONVER_TOTAL_UNREAD_ERROR=34004]="CONVER_TOTAL_UNREAD_ERROR",t[t.CONVER_TYPE_UNREAD_ERROR=34005]="CONVER_TYPE_UNREAD_ERROR",t[t.CONVER_ID_TYPE_UNREAD_ERROR=34006]="CONVER_ID_TYPE_UNREAD_ERROR",t[t.EXPANSION_LIMIT_EXCEET=34010]="EXPANSION_LIMIT_EXCEET",t[t.MESSAGE_KV_NOT_SUPPORT=34008]="MESSAGE_KV_NOT_SUPPORT",t[t.CONVER_OUT_LIMIT_ERROR=34013]="CONVER_OUT_LIMIT_ERROR",t[t.CONVER_GET_ERROR=35021]="CONVER_GET_ERROR",t[t.GROUP_SYNC_ERROR=35001]="GROUP_SYNC_ERROR",t[t.GROUP_MATCH_ERROR=35002]="GROUP_MATCH_ERROR",t[t.READ_RECEIPT_ERROR=35003]="READ_RECEIPT_ERROR",t[t.PACKAGE_ENVIRONMENT_ERROR=35006]="PACKAGE_ENVIRONMENT_ERROR",t[t.CAN_NOT_RECONNECT=35007]="CAN_NOT_RECONNECT",t[t.SERVER_UNAVAILABLE=35008]="SERVER_UNAVAILABLE",t[t.HOSTNAME_ERROR=35009]="HOSTNAME_ERROR",t[t.HAS_OHTER_SAME_CLIENT_ON_LINE=35010]="HAS_OHTER_SAME_CLIENT_ON_LINE",t[t.METHOD_NOT_AVAILABLE=35011]="METHOD_NOT_AVAILABLE",t[t.METHOD_NOT_SUPPORT=35012]="METHOD_NOT_SUPPORT",t[t.MSG_LIMIT_ERROR=35013]="MSG_LIMIT_ERROR",t[t.METHOD_ONLY_SUPPORT_ULTRA_GROUP=35014]="METHOD_ONLY_SUPPORT_ULTRA_GROUP",t[t.UPLOAD_FILE_FAILED=35020]="UPLOAD_FILE_FAILED",t[t.CHATROOM_ID_ISNULL=36001]="CHATROOM_ID_ISNULL",t[t.CHARTOOM_JOIN_ERROR=36002]="CHARTOOM_JOIN_ERROR",t[t.CHATROOM_HISMESSAGE_ERROR=36003]="CHATROOM_HISMESSAGE_ERROR",t[t.CHATROOM_KV_NOT_FOUND=36004]="CHATROOM_KV_NOT_FOUND",t[t.BLACK_ADD_ERROR=37001]="BLACK_ADD_ERROR",t[t.BLACK_GETSTATUS_ERROR=37002]="BLACK_GETSTATUS_ERROR",t[t.BLACK_REMOVE_ERROR=37003]="BLACK_REMOVE_ERROR",t[t.DRAF_GET_ERROR=38001]="DRAF_GET_ERROR",t[t.DRAF_SAVE_ERROR=38002]="DRAF_SAVE_ERROR",t[t.DRAF_REMOVE_ERROR=38003]="DRAF_REMOVE_ERROR",t[t.SUBSCRIBE_ERROR=39001]="SUBSCRIBE_ERROR",t[t.NOT_SUPPORT=39002]="NOT_SUPPORT",t[t.QNTKN_FILETYPE_ERROR=41001]="QNTKN_FILETYPE_ERROR",t[t.QNTKN_GET_ERROR=41002]="QNTKN_GET_ERROR",t[t.COOKIE_ENABLE=51001]="COOKIE_ENABLE",t[t.HAVNODEVICEID=24001]="HAVNODEVICEID",t[t.DEVICEIDISHAVE=24002]="DEVICEIDISHAVE",t[t.FEILD=24009]="FEILD",t[t.VOIPISNULL=24013]="VOIPISNULL",t[t.NOENGINETYPE=24010]="NOENGINETYPE",t[t.NULLCHANNELNAME=24011]="NULLCHANNELNAME",t[t.VOIPDYANMICERROR=24012]="VOIPDYANMICERROR",t[t.NOVOIP=24014]="NOVOIP",t[t.INTERNALERRROR=24015]="INTERNALERRROR",t[t.VOIPCLOSE=24016]="VOIPCLOSE",t[t.ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL=24416]="ULTRA_GROUP_USER_NOT_IN_PRIVATE_CHANNEL",t[t.CANCEL=1]="CANCEL",t[t.REJECT=2]="REJECT",t[t.HANGUP=3]="HANGUP",t[t.BUSYLINE=4]="BUSYLINE",t[t.NO_RESPONSE=5]="NO_RESPONSE",t[t.ENGINE_UN_SUPPORTED=6]="ENGINE_UN_SUPPORTED",t[t.NETWORK_ERROR=7]="NETWORK_ERROR",t[t.REMOTE_CANCEL=11]="REMOTE_CANCEL",t[t.REMOTE_REJECT=12]="REMOTE_REJECT",t[t.REMOTE_HANGUP=13]="REMOTE_HANGUP",t[t.REMOTE_BUSYLINE=14]="REMOTE_BUSYLINE",t[t.REMOTE_NO_RESPONSE=15]="REMOTE_NO_RESPONSE",t[t.REMOTE_ENGINE_UN_SUPPORTED=16]="REMOTE_ENGINE_UN_SUPPORTED",t[t.REMOTE_NETWORK_ERROR=17]="REMOTE_NETWORK_ERROR",t[t.VOIP_NOT_AVALIABLE=18]="VOIP_NOT_AVALIABLE",t[t.CHATROOM_KV_STORE_NOT_ALL_SUCCESS=23428]="CHATROOM_KV_STORE_NOT_ALL_SUCCESS",t[t.CHATROOM_KV_STORE_OUT_LIMIT=23429]="CHATROOM_KV_STORE_OUT_LIMIT"}(s||(s={})),function(t){t[t.NONE=0]="NONE",t[t.PRIVATE=1]="PRIVATE",t[t.DISCUSSION=2]="DISCUSSION",t[t.GROUP=3]="GROUP",t[t.CHATROOM=4]="CHATROOM",t[t.CUSTOMER_SERVICE=5]="CUSTOMER_SERVICE",t[t.SYSTEM=6]="SYSTEM",t[t.APP_PUBLIC_SERVICE=7]="APP_PUBLIC_SERVICE",t[t.PUBLIC_SERVICE=8]="PUBLIC_SERVICE",t[t.ULTRA_GROUP=10]="ULTRA_GROUP",t[t.RTC_ROOM=12]="RTC_ROOM"}(O||(O={})),function(t){t[t.CONNECTED=0]="CONNECTED",t[t.CONNECTING=1]="CONNECTING",t[t.DISCONNECTED=2]="DISCONNECTED",t[t.NETWORK_UNAVAILABLE=3]="NETWORK_UNAVAILABLE",t[t.CONNECTION_CLOSED=4]="CONNECTION_CLOSED",t[t.KICKED_OFFLINE_BY_OTHER_CLIENT=6]="KICKED_OFFLINE_BY_OTHER_CLIENT",t[t.WEBSOCKET_UNAVAILABLE=7]="WEBSOCKET_UNAVAILABLE",t[t.WEBSOCKET_ERROR=8]="WEBSOCKET_ERROR",t[t.BLOCKED=9]="BLOCKED",t[t.DOMAIN_INCORRECT=12]="DOMAIN_INCORRECT",t[t.DISCONNECT_BY_SERVER=13]="DISCONNECT_BY_SERVER",t[t.REDIRECT=14]="REDIRECT",t[t.APPKEY_IS_FAKE=20]="APPKEY_IS_FAKE",t[t.FORBID_RECONNECT_BY_OTHER_SAME_CLIENT=31023]="FORBID_RECONNECT_BY_OTHER_SAME_CLIENT",t[t.ULTRALIMIT=1101]="ULTRALIMIT",t[t.REQUEST_NAVI=201]="REQUEST_NAVI",t[t.RESPONSE_NAVI=202]="RESPONSE_NAVI",t[t.RESPONSE_NAVI_ERROR=203]="RESPONSE_NAVI_ERROR",t[t.RESPONSE_NAVI_TIMEOUT=204]="RESPONSE_NAVI_TIMEOUT"}(C||(C={})),function(t){t[t.READ=1]="READ",t[t.LISTENED=2]="LISTENED",t[t.DOWNLOADED=4]="DOWNLOADED",t[t.RETRIEVED=8]="RETRIEVED",t[t.UNREAD=0]="UNREAD"}(T||(T={})),function(t){t.TextMessage="RC:TxtMsg",t.VOICE="RC:VcMsg",t.HQ_VOICE="RC:HQVCMsg",t.IMAGE="RC:ImgMsg",t.GIF="RC:GIFMsg",t.RICH_CONTENT="RC:ImgTextMsg",t.LOCATION="RC:LBSMsg",t.FILE="RC:FileMsg",t.SIGHT="RC:SightMsg",t.COMBINE="RC:CombineMsg",t.CHRM_KV_NOTIFY="RC:chrmKVNotiMsg",t.LOG_COMMAND="RC:LogCmdMsg",t.EXPANSION_NOTIFY="RC:MsgExMsg",t.REFERENCE="RC:ReferenceMsg",t.RECALL="RC:RcCmd",t.READ_RECEIPT="RC:ReadNtf",t.READ_RECEIPT_REQUEST="RC:RRReqMsg",t.READ_RECEIPT_RESPONSE="RC:RRRspMsg",t.SYNC_READ_STATUS="RC:SRSMsg",t.GROUP_READ_RECEIPT_REQUEST="RC:RRMsg",t.DELIVERED="RC:Delivered",t.DELIVERED_MSG="RC:DRMsg",t.CHATROOM_JOIN="RC:ChrmJoinNtf",t.CHATROOM_LEFT="RC:ChrmQuitNtf",t.CHATROOM_MERGE_CHANGE="RC:ChrmMemChange",t.TYPING_STATUS="RC:TypSts",t.INTERCEPT="RC:InterceptMsg"}(c||(c={})),function(t){t[t.OPEN=1]="OPEN",t[t.CLOSE=2]="CLOSE"}(N||(N={})),function(t){t[t.ALL_MESSAGE=-1]="ALL_MESSAGE",t[t.NOT_SET=0]="NOT_SET",t[t.AT_MESSAGE_NOTIFICATION=1]="AT_MESSAGE_NOTIFICATION",t[t.AT_USER_NOTIFICATION=2]="AT_USER_NOTIFICATION",t[t.AT_GROUP_ALL_USER_NOTIFICATION=4]="AT_GROUP_ALL_USER_NOTIFICATION",t[t.NOT_MESSAGE_NOTIFICATION=5]="NOT_MESSAGE_NOTIFICATION"}(l||(l={})),function(t){t[t.ALL=1]="ALL",t[t.SINGAL=2]="SINGAL"}(u||(u={})),function(t){t[t.QINIU=1]="QINIU",t[t.ALI=2]="ALI",t[t.AWS=3]="AWS",t[t.STC=4]="STC"}(I||(I={})),function(t){t[t.UPDATE=1]="UPDATE",t[t.DELETE=2]="DELETE"}(A||(A={})),function(t){t[t.LOG=0]="LOG",t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t[t.FATAL=4]="FATAL",t[t.STATISTICS=6]="STATISTICS",t[t.NONE=1e3]="NONE"}(S||(S={})),function(t){t.IM="IM",t.RTC="RTC"}(M||(M={})),function(t){t.L_IMSDK_VER_O="L-imsdk_ver-O",t.A_INIT_O="A-init-O",t.L_INIT_O="L-init-O",t.P_INIT_O="P-init-O",t.A_CONNECT_T="A-connect-T",t.A_CONNECT_R="A-connect-R",t.A_CONNECT_S="A-connect-S",t.A_DISCONNECT_O="A-disconnect-O",t.A_RECONNECT_T="A-reconnect-T",t.A_RECONNECT_R="A_RECONNECT_R",t.L_CONNECT_T="L-connect-T",t.L_CONNECT_R="L-connect-R",t.L_CONNECT_S="L-connect-S",t.P_CONNECT_O="P-connect-O",t.P_CONNECT_S="P-connect-S",t.A_SEND_MSG_T="A-send_msg-T",t.A_SEND_MSG_R="A-send_msg-R",t.P_SEND_MSG_T="P-send_msg-T",t.P_SEND_MSG_R="P-send_msg-R",t.L_SEND_MSG_T="L-send_msg-T",t.L_SEND_MSG_R="L-send_msg-R",t.L_PULL_MSG_T="L-pull_msg-T",t.L_PULL_MSG_R="L-pull_msg-R",t.L_PULL_ULTRA_MSG_T="L-pull_ultra_msg-T",t.L_PULL_ULTRA_MSG_R="L-pull_ultra_msg-R",t.L_PULL_CHATROOM_KV_T="L-pull_chatroom_kv-T",t.L_PULL_CHATROOM_KV_R="L-pull_chatroom_kv-R",t.L_PULL_CHATROOM_MSG_T="L-pull_chatroom_msg-T",t.L_PULL_CHATROOM_MSG_R="L-pull_chatroom_msg-R",t.A_DELETE_MESSAGES_S="A-delete_messages-S",t.P_DELETE_MSG_S="P-delete_msg-S",t.L_PULL_CONVERSATION_S="L-pull_conversation-S",t.L_RECALL_ULTRA_MSG_S="L-recall_ultra_msg-S",t.A_REGTYP_O="A-regtyp-O",t.P_REGTYP_O="P-regtype-O",t.P_REGTYP_E="P-regtype-E",t.L_GET_NAVI_T="L-get_navi-T",t.L_GET_NAVI_R="L-get_navi-R",t.L_ENV_S="L-Env-S",t.L_GET_INDEX_NAVI_S="L-get_index_navi-S",t.A_JOIN_CHATROOM_T="A-join_chatroom-T",t.A_JOIN_CHATROOM_R="A-join_chatroom-R",t.L_JOIN_CHATROOM_T="L-join_chatroom-T",t.L_JOIN_CHATROOM_R="L-join_chatroom-R",t.A_QUIT_CHATROOM_T="A-quit_chatroom-T",t.A_QUIT_CHATROOM_R="A-quit_chatroom-R",t.L_REJOIN_CHATROOM_T="L-rejoin_chatroom-T",t.L_REJOIN_CHATROOM_R="L-rejoin_chatroom-R",t.L_MEDIA_S="L-media-S",t.L_MEDIA_UPLOAD_T="L-media_upload-T",t.L_MEDIA_UPLOAD_R="L-media_upload-R",t.G_UPLOAD_LOG_S="G-upload_log-S",t.G_REPORT_LOG_S="G-report_log-S",t.G_UPLOAD_LOG_E="G-upload_log-E",t.G_GET_REAL_TIMELOG_COMMAND_S="G-get_real_timelog_command-S",t.L_CHECK_ALIVE_IM_T="L-check_alive_im-T",t.L_CHECK_ALIVE_IM_R="L-check_alive_im-R",t.A_GET_HISTORY_MSG_T="A-get_history_msg-T",t.A_GET_HISTORY_MSG_R="A-get_history_msg-R",t.L_GET_HISTORY_MSG_T="L-get_history_msg-T",t.L_GET_HISTORY_MSG_R="L-get_history_msg-R",t.A_CALLBACK_O="A-callback-O",t.A_CALLBACK_E="A-callback-E"}(p||(p={})),function(t){t[t.QUIT=0]="QUIT",t[t.JOIN=1]="JOIN"}(L||(L={})),function(t){t[t.GLOBAL=1]="GLOBAL",t[t.CUSTOM=2]="CUSTOM",t[t.THIRD_PARTY=3]="THIRD_PARTY"}(g||(g={})),function(t){t[t.typing=0]="typing"}(f||(f={})),function(t){t[t.PUBLIC=0]="PUBLIC",t[t.PRIVATE=1]="PRIVATE"}(h||(h={})),function(t){t[t.PUBLIC_TO_PRIVATE=2]="PUBLIC_TO_PRIVATE",t[t.PRIVATE_TO_PUBLIC=3]="PRIVATE_TO_PUBLIC",t[t.PUBLIC_TO_PRIVATE_USER_NOT_IN=6]="PUBLIC_TO_PRIVATE_USER_NOT_IN"}(D||(D={})),function(t){t[t.MSG_EXPANSION=1]="MSG_EXPANSION",t[t.MSG_MODIFY=2]="MSG_MODIFY",t[t.MSG_RECALL=3]="MSG_RECALL",t[t.CHANNEL_CHANGE=4]="CHANNEL_CHANGE"}(d||(d={})),function(t){t[t.CHANNEL_DELETE=1]="CHANNEL_DELETE",t[t.PUBLIC_TO_PRIVATE=2]="PUBLIC_TO_PRIVATE",t[t.PRIVATE_TO_PUBLIC=3]="PRIVATE_TO_PUBLIC",t[t.PRIVATE_CHANNEL_USER_JOIN_PUBLIC=4]="PRIVATE_CHANNEL_USER_JOIN_PUBLIC",t[t.CHANNEL_USER_KICKED=5]="CHANNEL_USER_KICKED",t[t.PUBLIC_TO_PRIVATE_USER_NOT_IN=6]="PUBLIC_TO_PRIVATE_USER_NOT_IN"}(U||(U={})),function(t){t[t.RTC=0]="RTC",t[t.LIVE=2]="LIVE",t[t.SIP=4]="SIP",t[t.CALL=5]="CALL",t[t.MEETING=6]="MEETING"}(P||(P={})),function(t){t[t.AUDIO_AND_VIDEO=0]="AUDIO_AND_VIDEO",t[t.AUDIO=1]="AUDIO"}(y||(y={})),function(t){t[t.ANCHOR=1]="ANCHOR",t[t.AUDIENCE=2]="AUDIENCE"}(m||(m={})),function(t){t[t.ROOM=1]="ROOM",t[t.PERSON=2]="PERSON"}(v||(v={})),function(t){t[t.AnchorToViewer=1]="AnchorToViewer",t[t.ViewerToAnchor=2]="ViewerToAnchor"}(G||(G={})),function(t){t[t.KICK=0]="KICK",t[t.REFUSE=1]="REFUSE",t[t.COEXIST=2]="COEXIST"}(V||(V={}));var H="RC_Logs";function B(t){var e=t.target.result;if(1===t.oldVersion)try{e.deleteObjectStore(H)}catch(t){console.warn("version 1 indexDB delete error, name: ".concat(t.name,", message: ").concat(t.message,", stack: ").concat(t.stack))}!function(t,e,n){var o;if(!t.objectStoreNames.contains(e)){var r=_({},n.objectStoreParams);o=t.createObjectStore(e,r),n.indexs&&n.indexs.length>0&&n.indexs.forEach((function(t){o.createIndex(t.indexName,t.key,{unique:t.unique})}))}}(e,H,{indexs:[{indexName:"time",key:"time",unique:!1}],objectStoreParams:{autoIncrement:!0}})}var K=function(){function t(){}return t.init=function(){if("undefined"!=typeof window&&window&&window.indexedDB){if(t.indexDBSwitch&&!t.opening){t.opening=!0;var e=window.indexedDB.open("RC_ENGINE_DB",2);e.onerror=function(e){t.opening=!1,console.warn("open indexDB request failed "+e.target.error)},e.onsuccess=function(e){t.opening=!1,t._db=e.target.result,t._db&&(t._db.onclose=function(e){var n;console.warn("The database ".concat(null===(n=t._db)||void 0===n?void 0:n.name," has unexpectedly closed."),e),t._db=null,t._instance=null},t._db.onerror=function(e){var n;console.warn("The database ".concat(null===(n=t._db)||void 0===n?void 0:n.name," has opening error."),e),t._db=null,t._instance=null},t._db.onabort=function(e){var n;console.warn("The database ".concat(null===(n=t._db)||void 0===n?void 0:n.name," has opening aborted."),e),t._db=null,t._instance=null}),t._instance=new t},e.onupgradeneeded=function(e){t.opening=!1,t._db=e.target.result,B(e)}}}else console.debug("IndexDB is not currently supported in the environment!")},t.getInstance=function(){return t._instance},t.prototype.addList=function(e,n){return new Promise((function(o){if(t._db){var _=t._db.transaction([e],"readwrite"),r=_.objectStore(e);n.forEach((function(t){null==r||r.add(t)})),_.oncomplete=function(t){o(!0)},_.onerror=function(t){o(!1)}}else o(!1)}))},t.prototype.getRangeData=function(e,n,o,_){return new Promise((function(r){if(t._db){var R=t._db.transaction([e],"readwrite").objectStore(e),E=IDBKeyRange.bound(o,_),i=R.index(n),a=[],s=i.openCursor(E);s.onsuccess=function(t){var e=t.target.result;e?(a.push(e.value),e.continue()):r(a)},s.onerror=function(t){console.error(t),r([])}}else r([])}))},t.prototype.getCount=function(e,n){return new Promise((function(n){if(t._db){var o=t._db.transaction([e],"readonly").objectStore(e).count();o.onsuccess=function(){n(o.result)},o.onerror=function(t){console.error(t),n(0)}}else n(0)}))},t.prototype.removeFirstData=function(e,n,o){return new Promise((function(n){if(t._db){var _=t._db.transaction([e],"readwrite").objectStore(e),r=_.getAllKeys(IDBKeyRange.lowerBound(0),o);r.onsuccess=function(){var t=r.result;t.length>0&&(_.delete(IDBKeyRange.bound(t[0],t[t.length-1])).onsuccess=function(){n(!0)})}}else n(!1)}))},t._db=null,t.indexDBSwitch=!0,t.opening=!1,t}(),w=function(){var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}));if(t=t.replace(/-/g,"")+"a",(t=function(t){var e="0123456789abcdefghigklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZa0".split(""),n=e.length+1,o=+t,_=[];do{var r=o%n;o=(o-r)/n,_.unshift(e[r])}while(o);return _.join("")}(t=parseInt(t,16))).length>22&&(t=t.slice(0,22)),t.length<22)for(var e=22-t.length,n=0;n<e;n++)t+="0";return t}();var F=[];function b(t,e,n,o){e=/^[\w]+-[\w]+-[\w]+?/.test(e)?e:"L-".concat(e,"-O"),o||(o=["RCRTCLog","RCCall","RCRTC","RTC-A"].includes(e)?M.RTC:M.IM);var _=Date.now(),r="";try{r=(r=JSON.stringify({message:n,userId:n.userId})).replace(/"/g,'""'),r='"'.concat(r,'"')}catch(t){console.log(p.G_UPLOAD_LOG_E,{name:t.name,message:t.message,stack:t.stack})}(function(t,e){void 0===e&&(e="utf-8");var n,o=0;if("utf-16"===e)for(var _=0,r=t.length;_<r;_++)o+=(n=t.charCodeAt(_))<=65535?2:4;else for(_=0,r=t.length;_<r;_++)o+=(n=t.charCodeAt(_))<127?1:n<=2047?2:n<=65535?3:4;return o})(r)>=1e3&&(r=function(t,e,n){if(void 0===n&&(n="utf-8"),!t||!e)return"";var o="utf-8"===n?3:2,_=0,r=0,R="";for(r=0;r<t.length;r++){if(t.charCodeAt(r)>255?_+=o:_++,_>e)return R;R+=t.charAt(r)}return t}(r,1e3),console.warn(p.G_UPLOAD_LOG_S,"Log length exceeds 1K"));var R=4-t,E={sessionId:w,time:_,level:R,content:"".concat(w,",").concat(Date.now(),",").concat(o,",").concat(R,",").concat(e,",").concat(r,"\n"),userId:n.userId};return F.push(E),E}var x=-1;x>=0&&(clearInterval(x),x=-1),"undefined"!=typeof window&&window&&window.indexedDB&&(x=setInterval((function(){F.length&&function(t){return r(this,void 0,void 0,(function(){var e,n,o;return R(this,(function(_){switch(_.label){case 0:if(!(e=K.getInstance()))return[3,6];_.label=1;case 1:return _.trys.push([1,4,,5]),[4,e.addList(H,t)];case 2:return n=_.sent(),[4,e.getCount(H,"time")];case 3:return _.sent()>1e5&&e.removeFirstData(H,"time",2e3),[2,n];case 4:return o=_.sent(),console.error(p.G_UPLOAD_LOG_E,{name:o.name,message:o.message,stack:o.stack}),[2,!1];case 5:return[3,7];case 6:return K.init(),[2,!1];case 7:return[2]}}))}))}(F.slice()).then((function(t){t&&(F=[])}))}),3e3));var Y=new t.Logger("RCRenderer"),k=0,j=Date.now(),W=function(t){var e=Date.now();return j!==e&&(j=e,k=0),[t,process.pid,e,k++].join("__")};t.VersionManage.add("electron-renderer","5.4.2-beem.5");var J=function(o){function _(n,_,r){var R=o.call(this,n,_,r)||this;return R._resolveMaps={},t.logger.init({customLogPrint:r.logStdout,localLogLevel:r.logLevel}),Y.setLogLevel(r.logLevel),Y.setLogStdout(r.logStdout),e.ipcRenderer.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=_[e];if(r)if("batchMessage"===e){var R=r,i=n[0].hasMoreMsg;delete n[0].hasMoreMsg,R([n[0]],void 0,i)}else if("onRTCDataChange"===e){R=r;var a=n[0][0].roomId;R(n[0],a)}else r(n[0]);else console.error.apply(console,E(["unknown notification type: ".concat(e),e],n,!1))})),e.ipcRenderer.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];Y.info.apply(Y,E(["__RC_CHANNEL_RESULT_FROM_MAIN__",e],n,!1));var _=R._resolveMaps[e];_&&(delete R._resolveMaps[e],_.apply(void 0,n))})),e.ipcRenderer.on("__RC_CHANNEL_CALL_RENDER__",(function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];R[e].apply(R,n)})),e.ipcRenderer.send("__RC_INNER_COMMAND_INIT__",R._options),R}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}(_,o),_.prototype.setUserStatusListener=function(t,e){throw new Error("TODO -> setUserStatusListener")},_.prototype._callMain=function(t){for(var n=this,o=[],_=1;_<arguments.length;_++)o[_-1]=arguments[_];var r=new Promise((function(_){var r=W(t);n._resolveMaps[r]=_,Y.info.apply(Y,E(["__RC_CHANNEL_CALL_MAIN__",r,t],o,!1)),e.ipcRenderer.send.apply(e.ipcRenderer,E(["__RC_CHANNEL_CALL_MAIN__",r,t],o,!1))}));return r},_.prototype.callExtra=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this._callMain.apply(this,E(["callExtra",t],e,!1))},_.prototype._send2Main=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];Y.info.apply(Y,E(["__RC_CHANNEL_SEND_2_MAIN__",t],n,!1)),e.ipcRenderer.send.apply(e.ipcRenderer,E(["__RC_CHANNEL_SEND_2_MAIN__",t],n,!1))},_.prototype._callMainSync=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return Y.info.apply(Y,E(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],n,!1)),e.ipcRenderer.sendSync.apply(e.ipcRenderer,E(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],n,!1))},_.prototype.requestNaviInfo=function(t,e,n,o){return void 0===o&&(o=!0),r(this,void 0,void 0,(function(){return R(this,(function(_){return[2,this._callMain("requestNaviInfo",t,e,n,o)]}))}))},_.prototype.getNaviInfoFromCache=function(){return this._callMainSync("getNaviInfoFromCache")},_.prototype._insertLog2IndexDB=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],o=t[1],_=t[2],r=t[3];b(n,_,o,r)},_.prototype.connect=function(t,e,n,o){return this._callMain("connect",t,e,n,o)},_.prototype.reportSDKInfo=function(t){this._callMain("reportSDKInfo",t)},_.prototype.getConnectedTime=function(){return this._callMainSync("getConnectedTime")},_.prototype.getHistoryMessage=function(t,e,n,o,_,r,R){return this._callMain("getHistoryMessage",t,e,n,o,_,r,R)},_.prototype.getHistoryMessagesByObjectNames=function(t,e,n,o,_,r,R){return this._callMain("getHistoryMessagesByObjectNames",t,e,n,o,_,r,R)},_.prototype.deleteRemoteMessage=function(t,e,n,o){return this._callMain("deleteRemoteMessage",t,e,n,o)},_.prototype.recallMsg=function(t,e,n,o,_){return this._callMain("recallMsg",t,e,n,o,_)},_.prototype.deleteRemoteMessageByTimestamp=function(t,e,n,o){return this._callMain("deleteRemoteMessageByTimestamp",t,e,n,o)},_.prototype.getConversationList=function(t,e,n,o,_){return this._callMain("getConversationList",t,e,n,o,_)},_.prototype.getConversationsByPage=function(t,e,n,o){return this._callMain("getConversationsByPage",t,e,n,o)},_.prototype.getConversationListWithAllChannel=function(){return this._callMain("getConversationListWithAllChannel")},_.prototype.getConversationListWithAllChannelByPage=function(t,e){return this._callMain("getConversationListWithAllChannelByPage",t,e)},_.prototype.getConversation=function(t,e,n){return this._callMain("getConversation",t,e,n)},_.prototype.removeConversation=function(t,e,n){return this._callMain("removeConversation",t,e,n)},_.prototype.getAllConversationUnreadCount=function(t,e,n){return this._callMain("getAllConversationUnreadCount",t,e,n)},_.prototype.getConversationUnreadCount=function(t,e,n){return this._callMain("getConversationUnreadCount",t,e,n)},_.prototype.clearConversationUnreadCount=function(t,e,n){return this._callMain("clearConversationUnreadCount",t,e,n)},_.prototype.getFirstUnreadMessage=function(t,e,n){return this._callMain("getFirstUnreadMessage",t,e,n)},_.prototype.saveConversationMessageDraft=function(t,e,n){return this._callMain("saveConversationMessageDraft",t,e,n)},_.prototype.getConversationMessageDraft=function(t,e){return this._callMain("getConversationMessageDraft",t,e)},_.prototype.clearConversationMessageDraft=function(t,e){return this._callMain("clearConversationMessageDraft",t,e)},_.prototype.pullConversationStatus=function(t){return this._callMain("pullConversationStatus",t)},_.prototype.batchSetConversationStatus=function(e){var n=e[0].notificationLevel;return t.isUndefined(n)?this._callMain("batchSetConversationStatus",e):Promise.resolve(t.ErrorCode.NOT_SUPPORT)},_.prototype.sendMessage=function(t,e,n,o,_){var r=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[r]=function(t){try{o(t)}catch(t){Y.error(t)}}),this._callMain("sendMessage",t,e,n,r,_)},_.prototype.sendReadReceiptMessage=function(t,e,n){return this._callMain("sendReadReceiptMessage",t,e,n)},_.prototype.getMessageReader=function(t,e,n){return this._callMain("getMessageReader",t,e,n)},_.prototype.disconnect=function(){this._send2Main("disconnect")},_.prototype.pullUserSettings=function(t){return this._callMain("pullUserSettings",t)},_.prototype.registerMessageType=function(t,e,n,o){this._send2Main("registerMessageType",t,e,n,o)},_.prototype.joinChatroom=function(t,e){return this._callMain("joinChatroom",t,e)},_.prototype.joinExistChatroom=function(t,e){return this._callMain("joinExistChatroom",t,e)},_.prototype.quitChatroom=function(t){return this._callMain("quitChatroom",t)},_.prototype.getChatroomInfo=function(t,e,n){return this._callMain("getChatroomInfo",t,e,n)},_.prototype.getChatroomHistoryMessages=function(t,e,n,o){return this._callMain("getChatroomHistoryMessages",t,e,n,o)},_.prototype.setChatroomEntry=function(t,e){return this._callMain("setChatroomEntry",t,e)},_.prototype.setChatroomEntries=function(t,e){return this._callMain("setChatroomEntries",t,e)},_.prototype.forceSetChatroomEntry=function(t,e){return this._callMain("forceSetChatroomEntry",t,e)},_.prototype.removeChatroomEntry=function(t,e){return this._callMain("removeChatroomEntry",t,e)},_.prototype.forceRemoveChatroomEntry=function(t,e){return this._callMain("forceRemoveChatroomEntry",t,e)},_.prototype.removeChatroomEntries=function(t,e){return this._callMain("removeChatroomEntries",t,e)},_.prototype.getChatroomEntry=function(t,e){return this._callMain("getChatroomEntry",t,e)},_.prototype.getAllChatroomEntry=function(t){return this._callMain("getAllChatroomEntry",t)},_.prototype.getFileToken=function(t,e,n,o){return this._callMain("getFileToken",t,e,n,o)},_.prototype.getFileUrl=function(t,e,n,o){return this._callMain("getFileUrl",t,e,n,o)},_.prototype.setUserStatus=function(t){return this._callMain("setUserStatus",t)},_.prototype.subscribeUserStatus=function(t){return this._callMain("subscribeUserStatus",t)},_.prototype.getUserStatus=function(t){return this._callMain("getUserStatus",t)},_.prototype.clearConversations=function(t,e){return this._callMain("clearConversations",t,e)},_.prototype.addToBlacklist=function(t){return this._callMain("addToBlacklist",t)},_.prototype.removeFromBlacklist=function(t){return this._callMain("removeFromBlacklist",t)},_.prototype.getBlacklist=function(){return this._callMain("getBlacklist")},_.prototype.getBlacklistStatus=function(t){return this._callMain("getBlacklistStatus",t)},_.prototype.insertMessage=function(t,e,n){return this._callMain("insertMessage",t,e,n)},_.prototype.deleteMessages=function(t){return this._callMain("deleteMessages",t)},_.prototype.deleteMessagesByTimestamp=function(t,e,n,o,_){return this._callMain("deleteMessagesByTimestamp",t,e,n,o,_)},_.prototype.clearMessages=function(t,e,n){return this._callMain("clearMessages",t,e,n)},_.prototype.getMessage=function(t){return this._callMain("getMessage",t)},_.prototype.setMessageContent=function(t,e,n){return this._callMain("setMessageContent",t,e,n)},_.prototype.setMessageSearchField=function(t,e,n){return this._callMain("setMessageSearchField",t,e,n)},_.prototype.searchConversationByContent=function(t,e,n,o){return this._callMain("searchConversationByContent",t,e,n,o)},_.prototype.searchConversationByContentWithAllChannel=function(t,e,n){return this._callMain("searchConversationByContentWithAllChannel",t,e,n)},_.prototype.searchMessageByContentWithAllChannel=function(t,e,n,o,_){return this._callMain("searchMessageByContentWithAllChannel",t,e,n,o,_)},_.prototype.searchMessageByContentInTimeRangeWithAllChannel=function(t,e,n,o,_,r,R){return this._callMain("searchMessageByContentInTimeRangeWithAllChannel",t,e,n,o,_,r,R)},_.prototype.searchMessageByContent=function(t,e,n,o,_,r,R){return this._callMain("searchMessageByContent",t,e,n,o,_,r,R)},_.prototype.getUnreadMentionedMessages=function(t,e,n){return this._callMainSync("getUnreadMentionedMessages",t,e,n)},_.prototype.setMessageSentStatus=function(t,e){return this._callMain("setMessageSentStatus",t,e)},_.prototype.setMessageReceivedStatus=function(t,e){return this._callMain("setMessageReceivedStatus",t,e)},_.prototype.updateMessageReceiptStatus=function(t,e,n,o){return this._callMain("updateMessageReceiptStatus",t,e,n,o)},_.prototype.clearUnreadCountByTimestamp=function(t,e,n,o){return this._callMain("clearUnreadCountByTimestamp",t,e,n,o)},_.prototype.clearAllUnreadCount=function(){throw new Error("Method not implemented.")},_.prototype.getConversationNotificationStatus=function(t,e,n){return this._callMain("getConversationNotificationStatus",t,e,n)},_.prototype.getRemoteHistoryMessages=function(t,e,n,o,_,r){return this._callMain("getRemoteHistoryMessages",t,e,n,o,_,r)},_.prototype.getServerTime=function(){return this._callMainSync("getServerTime")},_.prototype.getDeviceId=function(){return this._callMainSync("getDeviceId")},_.prototype.getCurrentUserId=function(){return this._callMainSync("getCurrentUserId")},_.prototype.joinRTCRoom=function(t,e,n,o,_,r){return this._callMain("joinRTCRoom",t,e,n,o,_,r)},_.prototype.quitRTCRoom=function(t){return this._callMain("quitRTCRoom",t)},_.prototype.rtcPing=function(t,e,n){return this._callMain("rtcPing",t,e,n)},_.prototype.getRTCRoomInfo=function(t){return this._callMain("getRTCRoomInfo",t)},_.prototype.getRTCUserInfoList=function(t){return this._callMain("getRTCUserInfoList",t)},_.prototype.getRTCUserInfo=function(t){return this._callMain("getRTCUserInfo",t)},_.prototype.setRTCUserInfo=function(t,e,n){return this._callMain("setRTCUserInfo",t,e,n)},_.prototype.removeRTCUserInfo=function(t,e){return this._callMain("removeRTCUserInfo",t,e)},_.prototype.setRTCData=function(t,e,n,o,_,r){return this._callMain("setRTCData",t,e,n,o,_,r)},_.prototype.setRTCTotalRes=function(t,e,n,o,_){return this._callMain("setRTCTotalRes",t,e,n,o,_)},_.prototype.setRTCCDNUris=function(t,e,n){return this._callMain("setRTCCDNUris",t,e,n)},_.prototype.getRTCData=function(t,e,n,o){return this._callMain("getRTCData",t,e,n,o)},_.prototype.removeRTCData=function(t,e,n,o,_){return this._callMain("removeRTCData",t,e,n,o,_)},_.prototype.setRTCOutData=function(t,e,n,o){return this._callMain("setRTCOutData",t,e,n,o)},_.prototype.getRTCOutData=function(t,e){return this._callMain("getRTCOutData",t,e)},_.prototype.getRTCToken=function(t,e,n){return this._callMain("getRTCToken",t,e,n)},_.prototype.setRTCState=function(t,e){return this._callMain("setRTCState",t,e)},_.prototype.getRTCUserList=function(t){return this._callMain("getRTCUserList",t)},_.prototype.createTag=function(t){return this._callMain("createTag",t)},_.prototype.removeTag=function(t){return this._callMain("removeTag",t)},_.prototype.updateTag=function(t){return this._callMain("updateTag",t)},_.prototype.getTagList=function(){return this._callMain("getTagList")},_.prototype.addTagForConversations=function(t,e){return this._callMain("addTagForConversations",t,e)},_.prototype.removeTagForConversations=function(t,e){return this._callMain("removeTagForConversations",t,e)},_.prototype.removeTagsForConversation=function(t,e){return this._callMain("removeTagsForConversation",t,e)},_.prototype.getConversationListByTag=function(t,e,n,o){return this._callMain("getConversationListByTag",t,e,n,o)},_.prototype.getUnreadCountByTag=function(t,e){return this._callMain("getUnreadCountByTag",t,e)},_.prototype.setConversationStatusInTag=function(t,e,n){return this._callMain("setConversationStatusInTag",t,e,n)},_.prototype.getTagsForConversation=function(t){return this._callMain("getTagsForConversation",t)},_.prototype.clearData=function(){return this._callMain("clearData")},_.prototype.joinLivingRoomAsAudience=function(t,e,n){return this._callMain("joinLivingRoomAsAudience",t,e,n)},_.prototype.quitLivingRoomAsAudience=function(t){return this._callMain("quitLivingRoomAsAudience",t)},_.prototype.rtcIdentityChange=function(t,e,n){return this._callMain("switchLivingRoomRole",t,e,n)},_.prototype.getRTCJoinedUserInfo=function(t){return this._callMain("getRTCJoinedUserInfo",t)},_.prototype.getGroupMessageDeliverList=function(t,e,n){return this._callMain("getGroupMessageDeliverList",t,e,n)},_.prototype.getPrivateMessageDeliverTime=function(t,e){return this._callMain("getPrivateMessageDeliverTime",t,e)},_.prototype.setCallInfo=function(t,e,n){return this._callMain("setCallInfo",t,e,n)},_.prototype.getBlockConversationList=function(){throw new Error("Method not implemented.")},_.prototype.getTopConversationList=function(){throw new Error("Method not implemented.")},_.prototype.getUnreadMentionedCount=function(t){throw new Error("Method not implemented.")},_.prototype.getAllUnreadMentionedCount=function(){throw new Error("Method not implemented.")},_.prototype.getAllConversationState=function(){throw new Error("Method not implemented.")},_.prototype.requestRoomPK=function(t){return this._callMain("requestRoomPK",t)},_.prototype.cancelRoomPK=function(t){return this._callMain("cancelRoomPK",t)},_.prototype.responseRoomPK=function(t){return this._callMain("responseRoomPK",t)},_.prototype.endRoomPK=function(t){return this._callMain("endRoomPK",t)},_.prototype.getUltraGroupList=function(){throw new Error("Method not implemented.")},_.prototype.getBlockUltraGroupList=function(){throw new Error("Method not implemented.")},_.prototype.getTopUltraGroupList=function(){throw new Error("Method not implemented.")},_.prototype.clearUltraUnreadcount=function(t,e){throw new Error("Method not implemented.")},_.prototype.getUltraGroupUnreadMentionedCountByTargetId=function(t){throw new Error("Method not implemented.")},_.prototype.sendUltraMessage=function(t,e,n){throw new Error("Method not implemented.")},_.prototype.sendUltraGroupTypingStatus=function(t,e){throw new Error("Method not implemented.")},_.prototype.getUltraGroupMessageListByMessageUId=function(t){throw new Error("Method not implemented.")},_.prototype.expandUltraMessage=function(t){throw new Error("Method not implemented.")},_.prototype.modifyMessage=function(t){throw new Error("Method not implemented.")},_.prototype.getUltraHistoryMsg=function(t,e){throw new Error("Method not implemented.")},_.prototype.bindRTCRoomForChatroom=function(t){return this._callMain("bindRTCRoomForChatroom",t)},_.prototype.getConversationNotificationLevel=function(e,n,o){return r(this,void 0,void 0,(function(){return R(this,(function(e){return[2,Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})]}))}))},_.prototype.getUltraGroupDefaultNotificationLevel=function(e,n){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},_.prototype.getAllUltraGroupUnreadCount=function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},_.prototype.getUltraGroupUnreadCountByTargetId=function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},_.prototype.setUltraGroupDefaultNotificationLevel=function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},_}(t.AEngine);window&&(window.RCCppEngine=J),exports.RCCppEngine=J;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("@rongcloud/engine"),e=require("electron"),n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)};function o(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((o=o.apply(t,e||[])).next())}))}function r(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function i(t,e,n){if(n||2===arguments.length)for(var o,r=0,i=e.length;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}var a=new t.Logger("RCRenderer"),s=0,l=Date.now(),c=function(t){var e=Date.now();return l!==e&&(l=e,s=0),[t,process.pid,e,s++].join("__")};t.VersionManage.add("electron-renderer","5.4.4");var u=function(s){function l(n,o,r){var l=s.call(this,n,o,r)||this;return l._resolveMaps={},t.logger.init({customLogPrint:r.logStdout,localLogLevel:r.logLevel}),a.setLogLevel(r.logLevel),a.setLogStdout(r.logStdout),e.ipcRenderer.on("__RC_CHANNEL_NOTIFICATION_FROM_MAIN__",(function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=o[e];if(a)if("batchMessage"===e){var s=a,l=n[0].hasMoreMsg;delete n[0].hasMoreMsg,s([n[0]],void 0,l)}else if("onRTCDataChange"===e){s=a;var c=n[0][0].roomId;s(n[0],c)}else a(n[0]);else console.error.apply(console,i(["unknown notification type: ".concat(e),e],n,!1))})),e.ipcRenderer.on("__RC_CHANNEL_RESULT_FROM_MAIN__",(function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];a.info.apply(a,i(["__RC_CHANNEL_RESULT_FROM_MAIN__",e],n,!1));var r=l._resolveMaps[e];r&&(delete l._resolveMaps[e],r.apply(void 0,n))})),e.ipcRenderer.on("__RC_CHANNEL_CALL_RENDER__",(function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];l[e].apply(l,n)})),e.ipcRenderer.send("__RC_INNER_COMMAND_INIT__",l._options),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}(l,s),l.prototype.setUserStatusListener=function(t,e){throw new Error("TODO -> setUserStatusListener")},l.prototype._callMain=function(t){for(var n=this,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];var s=new Promise((function(r){var s=c(t);n._resolveMaps[s]=r,a.info.apply(a,i(["__RC_CHANNEL_CALL_MAIN__",s,t],o,!1)),e.ipcRenderer.send.apply(e.ipcRenderer,i(["__RC_CHANNEL_CALL_MAIN__",s,t],o,!1))}));return s},l.prototype.callExtra=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this._callMain.apply(this,i(["callExtra",t],e,!1))},l.prototype._send2Main=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];a.info.apply(a,i(["__RC_CHANNEL_SEND_2_MAIN__",t],n,!1)),e.ipcRenderer.send.apply(e.ipcRenderer,i(["__RC_CHANNEL_SEND_2_MAIN__",t],n,!1))},l.prototype._callMainSync=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return a.info.apply(a,i(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],n,!1)),e.ipcRenderer.sendSync.apply(e.ipcRenderer,i(["__RC_CHANNEL_CALL_MAIN_SYNC__",t],n,!1))},l.prototype.requestNaviInfo=function(t,e,n,i){return void 0===i&&(i=!0),o(this,void 0,void 0,(function(){return r(this,(function(o){return[2,this._callMain("requestNaviInfo",t,e,n,i)]}))}))},l.prototype.getNaviInfoFromCache=function(){return this._callMainSync("getNaviInfoFromCache")},l.prototype._insertLog2IndexDB=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=e[0],r=e[1],i=e[2],a=e[3];t.logger.insertIntoLogCache(o,i,r,a)},l.prototype.connect=function(t,e,n,o){return this._callMain("connect",t,e,n,o)},l.prototype.reportSDKInfo=function(t){this._callMain("reportSDKInfo",t)},l.prototype.getConnectedTime=function(){return this._callMainSync("getConnectedTime")},l.prototype.getHistoryMessage=function(t,e,n,o,r,i,a){return this._callMain("getHistoryMessage",t,e,n,o,r,i,a)},l.prototype.getHistoryMessagesByObjectNames=function(t,e,n,o,r,i,a){return this._callMain("getHistoryMessagesByObjectNames",t,e,n,o,r,i,a)},l.prototype.deleteRemoteMessage=function(t,e,n,o){return this._callMain("deleteRemoteMessage",t,e,n,o)},l.prototype.recallMsg=function(t,e,n,o,r){return this._callMain("recallMsg",t,e,n,o,r)},l.prototype.deleteRemoteMessageByTimestamp=function(t,e,n,o){return this._callMain("deleteRemoteMessageByTimestamp",t,e,n,o)},l.prototype.getConversationList=function(t,e,n,o,r){return this._callMain("getConversationList",t,e,n,o,r)},l.prototype.getConversationsByPage=function(t,e,n,o){return this._callMain("getConversationsByPage",t,e,n,o)},l.prototype.getConversationListWithAllChannel=function(){return this._callMain("getConversationListWithAllChannel")},l.prototype.getConversationListWithAllChannelByPage=function(t,e){return this._callMain("getConversationListWithAllChannelByPage",t,e)},l.prototype.getConversation=function(t,e,n){return this._callMain("getConversation",t,e,n)},l.prototype.removeConversation=function(t,e,n){return this._callMain("removeConversation",t,e,n)},l.prototype.getAllConversationUnreadCount=function(t,e,n){return this._callMain("getAllConversationUnreadCount",t,e,n)},l.prototype.getConversationUnreadCount=function(t,e,n){return this._callMain("getConversationUnreadCount",t,e,n)},l.prototype.clearConversationUnreadCount=function(t,e,n){return this._callMain("clearConversationUnreadCount",t,e,n)},l.prototype.getFirstUnreadMessage=function(t,e,n){return this._callMain("getFirstUnreadMessage",t,e,n)},l.prototype.saveConversationMessageDraft=function(t,e,n){return this._callMain("saveConversationMessageDraft",t,e,n)},l.prototype.getConversationMessageDraft=function(t,e){return this._callMain("getConversationMessageDraft",t,e)},l.prototype.clearConversationMessageDraft=function(t,e){return this._callMain("clearConversationMessageDraft",t,e)},l.prototype.pullConversationStatus=function(t){return this._callMain("pullConversationStatus",t)},l.prototype.batchSetConversationStatus=function(e){var n=e[0].notificationLevel;return t.isUndefined(n)?this._callMain("batchSetConversationStatus",e):Promise.resolve(t.ErrorCode.NOT_SUPPORT)},l.prototype.sendMessage=function(t,e,n,o,r){var i=["sendMessageBefore",Date.now(),Math.floor(Math.random()*Date.now())].join("_");return o&&(this._resolveMaps[i]=function(t){try{o(t)}catch(t){a.error(t)}}),this._callMain("sendMessage",t,e,n,i,r)},l.prototype.sendReadReceiptMessage=function(t,e,n){return this._callMain("sendReadReceiptMessage",t,e,n)},l.prototype.getMessageReader=function(t,e,n){return this._callMain("getMessageReader",t,e,n)},l.prototype.disconnect=function(){this._send2Main("disconnect")},l.prototype.pullUserSettings=function(t){return this._callMain("pullUserSettings",t)},l.prototype.registerMessageType=function(t,e,n,o){this._send2Main("registerMessageType",t,e,n,o)},l.prototype.joinChatroom=function(t,e){return this._callMain("joinChatroom",t,e)},l.prototype.joinExistChatroom=function(t,e){return this._callMain("joinExistChatroom",t,e)},l.prototype.quitChatroom=function(t){return this._callMain("quitChatroom",t)},l.prototype.getChatroomInfo=function(t,e,n){return this._callMain("getChatroomInfo",t,e,n)},l.prototype.getChatroomHistoryMessages=function(t,e,n,o){return this._callMain("getChatroomHistoryMessages",t,e,n,o)},l.prototype.setChatroomEntry=function(t,e){return this._callMain("setChatroomEntry",t,e)},l.prototype.setChatroomEntries=function(t,e){return this._callMain("setChatroomEntries",t,e)},l.prototype.forceSetChatroomEntry=function(t,e){return this._callMain("forceSetChatroomEntry",t,e)},l.prototype.removeChatroomEntry=function(t,e){return this._callMain("removeChatroomEntry",t,e)},l.prototype.forceRemoveChatroomEntry=function(t,e){return this._callMain("forceRemoveChatroomEntry",t,e)},l.prototype.removeChatroomEntries=function(t,e){return this._callMain("removeChatroomEntries",t,e)},l.prototype.getChatroomEntry=function(t,e){return this._callMain("getChatroomEntry",t,e)},l.prototype.getAllChatroomEntry=function(t){return this._callMain("getAllChatroomEntry",t)},l.prototype.getFileToken=function(t,e,n,o){return this._callMain("getFileToken",t,e,n,o)},l.prototype.getFileUrl=function(t,e,n,o){return this._callMain("getFileUrl",t,e,n,o)},l.prototype.setUserStatus=function(t){return this._callMain("setUserStatus",t)},l.prototype.subscribeUserStatus=function(t){return this._callMain("subscribeUserStatus",t)},l.prototype.getUserStatus=function(t){return this._callMain("getUserStatus",t)},l.prototype.clearConversations=function(t,e){return this._callMain("clearConversations",t,e)},l.prototype.addToBlacklist=function(t){return this._callMain("addToBlacklist",t)},l.prototype.removeFromBlacklist=function(t){return this._callMain("removeFromBlacklist",t)},l.prototype.getBlacklist=function(){return this._callMain("getBlacklist")},l.prototype.getBlacklistStatus=function(t){return this._callMain("getBlacklistStatus",t)},l.prototype.insertMessage=function(t,e,n){return this._callMain("insertMessage",t,e,n)},l.prototype.deleteMessages=function(t){return this._callMain("deleteMessages",t)},l.prototype.deleteMessagesByTimestamp=function(t,e,n,o,r){return this._callMain("deleteMessagesByTimestamp",t,e,n,o,r)},l.prototype.clearMessages=function(t,e,n){return this._callMain("clearMessages",t,e,n)},l.prototype.getMessage=function(t){return this._callMain("getMessage",t)},l.prototype.setMessageContent=function(t,e,n){return this._callMain("setMessageContent",t,e,n)},l.prototype.setMessageSearchField=function(t,e,n){return this._callMain("setMessageSearchField",t,e,n)},l.prototype.searchConversationByContent=function(t,e,n,o){return this._callMain("searchConversationByContent",t,e,n,o)},l.prototype.searchConversationByContentWithAllChannel=function(t,e,n){return this._callMain("searchConversationByContentWithAllChannel",t,e,n)},l.prototype.searchMessageByContentWithAllChannel=function(t,e,n,o,r){return this._callMain("searchMessageByContentWithAllChannel",t,e,n,o,r)},l.prototype.searchMessageByContentInTimeRangeWithAllChannel=function(t,e,n,o,r,i,a){return this._callMain("searchMessageByContentInTimeRangeWithAllChannel",t,e,n,o,r,i,a)},l.prototype.searchMessageByContent=function(t,e,n,o,r,i,a){return this._callMain("searchMessageByContent",t,e,n,o,r,i,a)},l.prototype.getUnreadMentionedMessages=function(t,e,n){return this._callMainSync("getUnreadMentionedMessages",t,e,n)},l.prototype.setMessageSentStatus=function(t,e){return this._callMain("setMessageSentStatus",t,e)},l.prototype.setMessageReceivedStatus=function(t,e){return this._callMain("setMessageReceivedStatus",t,e)},l.prototype.updateMessageReceiptStatus=function(t,e,n,o){return this._callMain("updateMessageReceiptStatus",t,e,n,o)},l.prototype.clearUnreadCountByTimestamp=function(t,e,n,o){return this._callMain("clearUnreadCountByTimestamp",t,e,n,o)},l.prototype.clearAllUnreadCount=function(){throw new Error("Method not implemented.")},l.prototype.getConversationNotificationStatus=function(t,e,n){return this._callMain("getConversationNotificationStatus",t,e,n)},l.prototype.getRemoteHistoryMessages=function(t,e,n,o,r,i){return this._callMain("getRemoteHistoryMessages",t,e,n,o,r,i)},l.prototype.getServerTime=function(){return this._callMainSync("getServerTime")},l.prototype.getDeviceId=function(){return this._callMainSync("getDeviceId")},l.prototype.getCurrentUserId=function(){return this._callMainSync("getCurrentUserId")},l.prototype.joinRTCRoom=function(t,e,n,o,r,i){return this._callMain("joinRTCRoom",t,e,n,o,r,i)},l.prototype.quitRTCRoom=function(t){return this._callMain("quitRTCRoom",t)},l.prototype.rtcPing=function(t,e,n){return this._callMain("rtcPing",t,e,n)},l.prototype.getRTCRoomInfo=function(t){return this._callMain("getRTCRoomInfo",t)},l.prototype.getRTCUserInfoList=function(t){return this._callMain("getRTCUserInfoList",t)},l.prototype.getRTCUserInfo=function(t){return this._callMain("getRTCUserInfo",t)},l.prototype.setRTCUserInfo=function(t,e,n){return this._callMain("setRTCUserInfo",t,e,n)},l.prototype.removeRTCUserInfo=function(t,e){return this._callMain("removeRTCUserInfo",t,e)},l.prototype.setRTCData=function(t,e,n,o,r,i){return this._callMain("setRTCData",t,e,n,o,r,i)},l.prototype.setRTCTotalRes=function(t,e,n,o,r){return this._callMain("setRTCTotalRes",t,e,n,o,r)},l.prototype.setRTCCDNUris=function(t,e,n){return this._callMain("setRTCCDNUris",t,e,n)},l.prototype.getRTCData=function(t,e,n,o){return this._callMain("getRTCData",t,e,n,o)},l.prototype.removeRTCData=function(t,e,n,o,r){return this._callMain("removeRTCData",t,e,n,o,r)},l.prototype.setRTCOutData=function(t,e,n,o){return this._callMain("setRTCOutData",t,e,n,o)},l.prototype.getRTCOutData=function(t,e){return this._callMain("getRTCOutData",t,e)},l.prototype.getRTCToken=function(t,e,n){return this._callMain("getRTCToken",t,e,n)},l.prototype.setRTCState=function(t,e){return this._callMain("setRTCState",t,e)},l.prototype.getRTCUserList=function(t){return this._callMain("getRTCUserList",t)},l.prototype.createTag=function(t){return this._callMain("createTag",t)},l.prototype.removeTag=function(t){return this._callMain("removeTag",t)},l.prototype.updateTag=function(t){return this._callMain("updateTag",t)},l.prototype.getTagList=function(){return this._callMain("getTagList")},l.prototype.addTagForConversations=function(t,e){return this._callMain("addTagForConversations",t,e)},l.prototype.removeTagForConversations=function(t,e){return this._callMain("removeTagForConversations",t,e)},l.prototype.removeTagsForConversation=function(t,e){return this._callMain("removeTagsForConversation",t,e)},l.prototype.getConversationListByTag=function(t,e,n,o){return this._callMain("getConversationListByTag",t,e,n,o)},l.prototype.getUnreadCountByTag=function(t,e){return this._callMain("getUnreadCountByTag",t,e)},l.prototype.setConversationStatusInTag=function(t,e,n){return this._callMain("setConversationStatusInTag",t,e,n)},l.prototype.getTagsForConversation=function(t){return this._callMain("getTagsForConversation",t)},l.prototype.clearData=function(){return this._callMain("clearData")},l.prototype.joinLivingRoomAsAudience=function(t,e,n){return this._callMain("joinLivingRoomAsAudience",t,e,n)},l.prototype.quitLivingRoomAsAudience=function(t){return this._callMain("quitLivingRoomAsAudience",t)},l.prototype.rtcIdentityChange=function(t,e,n){return this._callMain("switchLivingRoomRole",t,e,n)},l.prototype.getRTCJoinedUserInfo=function(t){return this._callMain("getRTCJoinedUserInfo",t)},l.prototype.getBlockConversationList=function(){throw new Error("Method not implemented.")},l.prototype.getTopConversationList=function(){throw new Error("Method not implemented.")},l.prototype.getUnreadMentionedCount=function(t){throw new Error("Method not implemented.")},l.prototype.getAllUnreadMentionedCount=function(){throw new Error("Method not implemented.")},l.prototype.getAllConversationState=function(){throw new Error("Method not implemented.")},l.prototype.requestRoomPK=function(t){return this._callMain("requestRoomPK",t)},l.prototype.cancelRoomPK=function(t){return this._callMain("cancelRoomPK",t)},l.prototype.responseRoomPK=function(t){return this._callMain("responseRoomPK",t)},l.prototype.endRoomPK=function(t){return this._callMain("endRoomPK",t)},l.prototype.getUltraGroupList=function(){throw new Error("Method not implemented.")},l.prototype.getBlockUltraGroupList=function(){throw new Error("Method not implemented.")},l.prototype.getTopUltraGroupList=function(){throw new Error("Method not implemented.")},l.prototype.clearUltraUnreadcount=function(t,e){throw new Error("Method not implemented.")},l.prototype.getUltraGroupUnreadMentionedCountByTargetId=function(t){throw new Error("Method not implemented.")},l.prototype.sendUltraMessage=function(t,e,n){throw new Error("Method not implemented.")},l.prototype.sendUltraGroupTypingStatus=function(t,e){throw new Error("Method not implemented.")},l.prototype.getUltraGroupMessageListByMessageUId=function(t){throw new Error("Method not implemented.")},l.prototype.expandUltraMessage=function(t){throw new Error("Method not implemented.")},l.prototype.modifyMessage=function(t){throw new Error("Method not implemented.")},l.prototype.getUltraHistoryMsg=function(t,e){throw new Error("Method not implemented.")},l.prototype.bindRTCRoomForChatroom=function(t){return this._callMain("bindRTCRoomForChatroom",t)},l.prototype.getConversationNotificationLevel=function(e,n,i){return o(this,void 0,void 0,(function(){return r(this,(function(e){return[2,Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})]}))}))},l.prototype.getUltraGroupDefaultNotificationLevel=function(e,n){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},l.prototype.getAllUltraGroupUnreadCount=function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},l.prototype.getUltraGroupUnreadCountByTargetId=function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},l.prototype.setUltraGroupDefaultNotificationLevel=function(){return Promise.resolve({code:t.ErrorCode.NOT_SUPPORT})},l}(t.AEngine);window&&(window.RCCppEngine=u),exports.RCCppEngine=u;
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "types": "index.d.ts",
12
12
  "module": "index.esm.js",
13
- "version": "5.4.2-beem.5",
13
+ "version": "5.4.4",
14
14
  "author": "pass-web@rongcloud.cn",
15
15
  "license": "LGPL 2.1",
16
16
  "homepage": "https://www.rongcloud.cn",
@@ -21,6 +21,6 @@
21
21
  "globals": "RCCppEngine"
22
22
  },
23
23
  "peerDependencies": {
24
- "@rongcloud/engine": "=5.4.2-beem.5"
24
+ "@rongcloud/engine": "=5.4.4"
25
25
  }
26
26
  }