!function(c0,c1){if("object"==typeof exports&&"object"==typeof module)module.exports=c1(require("../../config.js"),require("../util/longUtil"),require("../client/messageConfig"),require("../messages/mediaMessageContent"),require("../messages/messageContentType"),require("../messages/messageStatus"),require("../messages/persistFlag"),require("../model/channelInfo"),require("../model/conversation"),require("../model/conversationType"),require("../model/groupInfo"),require("../model/groupMemberType"),require("../model/nullGroupInfo"),require("../model/nullUserInfo"),require("../model/userInfo"),require("../client/userSettingScope"),require("../model/conversationInfo"),require("../model/internal/friendInfo"),require("../model/NullChannelInfo"),require("../../wfc/util/base64.min"),require("../messages/message"),require("../messages/notification/recallMessageNotification"),require("../model/chatRoomMemberInfo"),require("../model/friendRequest"),require("../model/groupMember"),require("../client/wfcEvent"),require("../model/unreadCount"),require("../model/friend"),require("../model/groupSearchResult"),require("../client/connectionStatus"),require("../model/userSettingEntry"),require("../client/errorCode"),require("../model/chatRoomInfo"),require("../model/readEntry"),require("../model/fileRecord"),require("../util/base64.min"),require("../messages/markUnreadMessageContent"),require("../model/userOnlineState"),require("../model/userClientState"),require("../model/userCustomState"),require("../model/channelMenu"),require("../messages/compositeMessageContent"));else if("function"==typeof define&&define.amd)define(["../../config.js","../util/longUtil","../client/messageConfig","../messages/mediaMessageContent","../messages/messageContentType","../messages/messageStatus","../messages/persistFlag","../model/channelInfo","../model/conversation","../model/conversationType","../model/groupInfo","../model/groupMemberType","../model/nullGroupInfo","../model/nullUserInfo","../model/userInfo","../client/userSettingScope","../model/conversationInfo","../model/internal/friendInfo","../model/NullChannelInfo","../../wfc/util/base64.min","../messages/message","../messages/notification/recallMessageNotification","../model/chatRoomMemberInfo","../model/friendRequest","../model/groupMember","../client/wfcEvent","../model/unreadCount","../model/friend","../model/groupSearchResult","../client/connectionStatus","../model/userSettingEntry","../client/errorCode","../model/chatRoomInfo","../model/readEntry","../model/fileRecord","../util/base64.min","../messages/markUnreadMessageContent","../model/userOnlineState","../model/userClientState","../model/userCustomState","../model/channelMenu","../messages/compositeMessageContent"],c1);else{var c2="object"==typeof exports?c1(require("../../config.js"),require("../util/longUtil"),require("../client/messageConfig"),require("../messages/mediaMessageContent"),require("../messages/messageContentType"),require("../messages/messageStatus"),require("../messages/persistFlag"),require("../model/channelInfo"),require("../model/conversation"),require("../model/conversationType"),require("../model/groupInfo"),require("../model/groupMemberType"),require("../model/nullGroupInfo"),require("../model/nullUserInfo"),require("../model/userInfo"),require("../client/userSettingScope"),require("../model/conversationInfo"),require("../model/internal/friendInfo"),require("../model/NullChannelInfo"),require("../../wfc/util/base64.min"),require("../messages/message"),require("../messages/notification/recallMessageNotification"),require("../model/chatRoomMemberInfo"),require("../model/friendRequest"),require("../model/groupMember"),require("../client/wfcEvent"),require("../model/unreadCount"),require("../model/friend"),require("../model/groupSearchResult"),require("../client/connectionStatus"),require("../model/userSettingEntry"),require("../client/errorCode"),require("../model/chatRoomInfo"),require("../model/readEntry"),require("../model/fileRecord"),require("../util/base64.min"),require("../messages/markUnreadMessageContent"),require("../model/userOnlineState"),require("../model/userClientState"),require("../model/userCustomState"),require("../model/channelMenu"),require("../messages/compositeMessageContent")):c1(c0["../../config.js"],c0["../util/longUtil"],c0["../client/messageConfig"],c0["../messages/mediaMessageContent"],c0["../messages/messageContentType"],c0["../messages/messageStatus"],c0["../messages/persistFlag"],c0["../model/channelInfo"],c0["../model/conversation"],c0["../model/conversationType"],c0["../model/groupInfo"],c0["../model/groupMemberType"],c0["../model/nullGroupInfo"],c0["../model/nullUserInfo"],c0["../model/userInfo"],c0["../client/userSettingScope"],c0["../model/conversationInfo"],c0["../model/internal/friendInfo"],c0["../model/NullChannelInfo"],c0["../../wfc/util/base64.min"],c0["../messages/message"],c0["../messages/notification/recallMessageNotification"],c0["../model/chatRoomMemberInfo"],c0["../model/friendRequest"],c0["../model/groupMember"],c0["../client/wfcEvent"],c0["../model/unreadCount"],c0["../model/friend"],c0["../model/groupSearchResult"],c0["../client/connectionStatus"],c0["../model/userSettingEntry"],c0["../client/errorCode"],c0["../model/chatRoomInfo"],c0["../model/readEntry"],c0["../model/fileRecord"],c0["../util/base64.min"],c0["../messages/markUnreadMessageContent"],c0["../model/userOnlineState"],c0["../model/userClientState"],c0["../model/userCustomState"],c0["../model/channelMenu"],c0["../messages/compositeMessageContent"]);for(var c3 in c2)("object"==typeof exports?exports:c0)[c3]=c2[c3]}}(window,(function(__WEBPACK_EXTERNAL_MODULE__92__,__WEBPACK_EXTERNAL_MODULE__125__,__WEBPACK_EXTERNAL_MODULE__160__,__WEBPACK_EXTERNAL_MODULE__161__,__WEBPACK_EXTERNAL_MODULE__162__,__WEBPACK_EXTERNAL_MODULE__163__,__WEBPACK_EXTERNAL_MODULE__164__,__WEBPACK_EXTERNAL_MODULE__165__,__WEBPACK_EXTERNAL_MODULE__166__,__WEBPACK_EXTERNAL_MODULE__167__,__WEBPACK_EXTERNAL_MODULE__168__,__WEBPACK_EXTERNAL_MODULE__169__,__WEBPACK_EXTERNAL_MODULE__170__,__WEBPACK_EXTERNAL_MODULE__171__,__WEBPACK_EXTERNAL_MODULE__172__,__WEBPACK_EXTERNAL_MODULE__173__,__WEBPACK_EXTERNAL_MODULE__174__,__WEBPACK_EXTERNAL_MODULE__175__,__WEBPACK_EXTERNAL_MODULE__176__,__WEBPACK_EXTERNAL_MODULE__268__,__WEBPACK_EXTERNAL_MODULE__371__,__WEBPACK_EXTERNAL_MODULE__372__,__WEBPACK_EXTERNAL_MODULE__373__,__WEBPACK_EXTERNAL_MODULE__374__,__WEBPACK_EXTERNAL_MODULE__375__,__WEBPACK_EXTERNAL_MODULE__376__,__WEBPACK_EXTERNAL_MODULE__379__,__WEBPACK_EXTERNAL_MODULE__381__,__WEBPACK_EXTERNAL_MODULE__382__,__WEBPACK_EXTERNAL_MODULE__384__,__WEBPACK_EXTERNAL_MODULE__385__,__WEBPACK_EXTERNAL_MODULE__395__,__WEBPACK_EXTERNAL_MODULE__396__,__WEBPACK_EXTERNAL_MODULE__397__,__WEBPACK_EXTERNAL_MODULE__398__,__WEBPACK_EXTERNAL_MODULE__399__,__WEBPACK_EXTERNAL_MODULE__400__,__WEBPACK_EXTERNAL_MODULE__401__,__WEBPACK_EXTERNAL_MODULE__402__,__WEBPACK_EXTERNAL_MODULE__403__,__WEBPACK_EXTERNAL_MODULE__404__,__WEBPACK_EXTERNAL_MODULE__405__){return function(c0){var c1={};function c2(c3){if(c1[c3])return c1[c3].exports;var c4=c1[c3]={i:c3,l:!1,exports:{}};return c0[c3].call(c4.exports,c4,c4.exports,c2),c4.l=!0,c4.exports}return c2.m=c0,c2.c=c1,c2.d=function(c0,c1,c3){c2.o(c0,c1)||Object.defineProperty(c0,c1,{enumerable:!0,get:c3})},c2.r=function(c0){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(c0,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c0,"__esModule",{value:!0})},c2.t=function(c0,c1){if(1&c1&&(c0=c2(c0)),8&c1)return c0;if(4&c1&&"object"==typeof c0&&c0&&c0.__esModule)return c0;var c3=Object.create(null);if(c2.r(c3),Object.defineProperty(c3,"default",{enumerable:!0,value:c0}),2&c1&&"string"!=typeof c0)for(var c4 in c0)c2.d(c3,c4,function(c1){return c0[c1]}.bind(null,c4));return c3},c2.n=function(c0){var c1=c0&&c0.__esModule?function(){return c0.default}:function(){return c0};return c2.d(c1,"a",c1),c1},c2.o=function(c0,c1){return Object.prototype.hasOwnProperty.call(c0,c1)},c2.p="",c2(c2.s=182)}([function(c0,c1,c2){var c3;c0.exports=(c3=c3||function(c0,c1){var c2=Object.create||function(){function c0(){}return function(c1){var c2;return c0.prototype=c1,c2=new c0,c0.prototype=null,c2}}(),c3={},c4=c3.lib={},c5=c4.Base={extend:function(c0){var c1=c2(this);return c0&&c1.mixIn(c0),c1.hasOwnProperty("init")&&this.init!==c1.init||(c1.init=function(){c1.$super.init.apply(this,arguments)}),c1.init.prototype=c1,c1.$super=this,c1},create:function(){var c0=this.extend();return c0.init.apply(c0,arguments),c0},init:function(){},mixIn:function(c0){for(var c1 in c0)c0.hasOwnProperty(c1)&&(this[c1]=c0[c1]);c0.hasOwnProperty("toString")&&(this.toString=c0.toString)},clone:function(){return this.init.prototype.extend(this)}},c6=c4.WordArray=c5.extend({init:function(c0,c2){c0=this.words=c0||[],this.sigBytes=c2!=c1?c2:4*c0.length},toString:function(c0){return(c0||c8).stringify(this)},concat:function(c0){var c1=this.words,c2=c0.words,c3=this.sigBytes,c4=c0.sigBytes;if(this.clamp(),c3%4)for(var c5=0;c5>>2]>>>24-c5%4*8&255;c1[c3+c5>>>2]|=c6<<24-(c3+c5)%4*8}else for(c5=0;c5>>2]=c2[c5>>>2];return this.sigBytes+=c4,this},clamp:function(){var c1=this.words,c2=this.sigBytes;c1[c2>>>2]&=4294967295<<32-c2%4*8,c1.length=c0.ceil(c2/4)},clone:function(){var c0=c5.clone.call(this);return c0.words=this.words.slice(0),c0},random:function(c1){for(var c2,c3=[],c4=function(c1){c1=c1;var c2=987654321,c3=4294967295;return function(){var c4=((c2=36969*(65535&c2)+(c2>>16)&c3)<<16)+(c1=18e3*(65535&c1)+(c1>>16)&c3)&c3;return c4/=4294967296,(c4+=.5)*(c0.random()>.5?1:-1)}},c5=0;c5>>2]>>>24-c4%4*8&255;c3.push((c5>>>4).toString(16)),c3.push((15&c5).toString(16))}return c3.join("")},parse:function(c0){for(var c1=c0.length,c2=[],c3=0;c3>>3]|=parseInt(c0.substr(c3,2),16)<<24-c3%8*4;return new c6.init(c2,c1/2)}},c9=c7.Latin1={stringify:function(c0){for(var c1=c0.words,c2=c0.sigBytes,c3=[],c4=0;c4>>2]>>>24-c4%4*8&255;c3.push(String.fromCharCode(c5))}return c3.join("")},parse:function(c0){for(var c1=c0.length,c2=[],c3=0;c3>>2]|=(255&c0.charCodeAt(c3))<<24-c3%4*8;return new c6.init(c2,c1)}},c10=c7.Utf8={stringify:function(c0){try{return decodeURIComponent(escape(c9.stringify(c0)))}catch(c0){throw new Error("Malformed UTF-8 data")}},parse:function(c0){return c9.parse(unescape(encodeURIComponent(c0)))}},c11=c4.BufferedBlockAlgorithm=c5.extend({reset:function(){this._data=new c6.init,this._nDataBytes=0},_append:function(c0){"string"==typeof c0&&(c0=c10.parse(c0)),this._data.concat(c0),this._nDataBytes+=c0.sigBytes},_process:function(c1){var c2=this._data,c3=c2.words,c4=c2.sigBytes,c5=this.blockSize,c7=c4/(4*c5),c8=(c7=c1?c0.ceil(c7):c0.max((0|c7)-this._minBufferSize,0))*c5,c9=c0.min(4*c8,c4);if(c8){for(var c10=0;c10>>2];c0.sigBytes-=c1}},c15=(c2.BlockCipher=c10.extend({cfg:c10.cfg.extend({mode:c13,padding:c14}),reset:function(){c10.reset.call(this);var c0=this.cfg,c1=c0.iv,c2=c0.mode;if(this._xformMode==this._ENC_XFORM_MODE)var c3=c2.createEncryptor;else c3=c2.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==c3?this._mode.init(this,c1&&c1.words):(this._mode=c3.call(c2,this,c1&&c1.words),this._mode.__creator=c3)},_doProcessBlock:function(c0,c1){this._mode.processBlock(c0,c1)},_doFinalize:function(){var c0=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){c0.pad(this._data,this.blockSize);var c1=this._process(!0)}else c1=this._process(!0),c0.unpad(c1);return c1},blockSize:4}),c2.CipherParams=c4.extend({init:function(c0){this.mixIn(c0)},toString:function(c0){return(c0||this.formatter).stringify(this)}})),c16=(c1.format={}).OpenSSL={stringify:function(c0){var c1=c0.ciphertext,c2=c0.salt;if(c2)var c3=c5.create([1398893684,1701076831]).concat(c2).concat(c1);else c3=c1;return c3.toString(c8)},parse:function(c0){var c1=c8.parse(c0),c2=c1.words;if(1398893684==c2[0]&&1701076831==c2[1]){var c3=c5.create(c2.slice(2,4));c2.splice(0,4),c1.sigBytes-=16}return c15.create({ciphertext:c1,salt:c3})}},c17=c2.SerializableCipher=c4.extend({cfg:c4.extend({format:c16}),encrypt:function(c0,c1,c2,c3){c3=this.cfg.extend(c3);var c4=c0.createEncryptor(c2,c3),c5=c4.finalize(c1),c6=c4.cfg;return c15.create({ciphertext:c5,key:c2,iv:c6.iv,algorithm:c0,mode:c6.mode,padding:c6.padding,blockSize:c0.blockSize,formatter:c3.format})},decrypt:function(c0,c1,c2,c3){return c3=this.cfg.extend(c3),c1=this._parse(c1,c3.format),c0.createDecryptor(c2,c3).finalize(c1.ciphertext)},_parse:function(c0,c1){return"string"==typeof c0?c1.parse(c0,this):c0}}),c18=(c1.kdf={}).OpenSSL={execute:function(c0,c1,c2,c3){c3||(c3=c5.random(8));var c4=c9.create({keySize:c1+c2}).compute(c0,c3),c6=c5.create(c4.words.slice(c1),4*c2);return c4.sigBytes=4*c1,c15.create({key:c4,iv:c6,salt:c3})}},c19=c2.PasswordBasedCipher=c17.extend({cfg:c17.cfg.extend({kdf:c18}),encrypt:function(c0,c1,c2,c3){var c4=(c3=this.cfg.extend(c3)).kdf.execute(c2,c0.keySize,c0.ivSize);c3.iv=c4.iv;var c5=c17.encrypt.call(this,c0,c1,c4.key,c3);return c5.mixIn(c4),c5},decrypt:function(c0,c1,c2,c3){c3=this.cfg.extend(c3),c1=this._parse(c1,c3.format);var c4=c3.kdf.execute(c2,c0.keySize,c0.ivSize,c1.salt);return c3.iv=c4.iv,c17.decrypt.call(this,c0,c1,c4.key,c3)}})}()))},function(c0,c1){var c2=c0.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=c2)},function(c0,c1,c2){var c3=c2(70)("wks"),c4=c2(51),c5=c2(4).Symbol,c6="function"==typeof c5;(c0.exports=function(c0){return c3[c0]||(c3[c0]=c6&&c5[c0]||(c6?c5:c4)("Symbol."+c0))}).store=c3},function(c0,c1){var c2,c3,c4=c0.exports={};function c5(){throw new Error("setTimeout has not been defined")}function c6(){throw new Error("clearTimeout has not been defined")}function c7(c0){if(c2===setTimeout)return setTimeout(c0,0);if((c2===c5||!c2)&&setTimeout)return c2=setTimeout,setTimeout(c0,0);try{return c2(c0,0)}catch(c1){try{return c2.call(null,c0,0)}catch(c1){return c2.call(this,c0,0)}}}!function(){try{c2="function"==typeof setTimeout?setTimeout:c5}catch(c0){c2=c5}try{c3="function"==typeof clearTimeout?clearTimeout:c6}catch(c0){c3=c6}}();var c8,c9=[],c10=!1,c11=-1;function c12(){c10&&c8&&(c10=!1,c8.length?c9=c8.concat(c9):c11=-1,c9.length&&c13())}function c13(){if(!c10){var c0=c7(c12);c10=!0;for(var c1=c9.length;c1;){for(c8=c9,c9=[];++c111)for(var c2=1;c2=c6())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c6().toString(16)+" bytes");return 0|c0}function c14(c0,c1){if(c8.isBuffer(c0))return c0.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(c0)||c0 instanceof ArrayBuffer))return c0.byteLength;"string"!=typeof c0&&(c0=""+c0);var c2=c0.length;if(0===c2)return 0;for(var c3=!1;;)switch(c1){case"ascii":case"latin1":case"binary":return c2;case"utf8":case"utf-8":case void 0:return c41(c0).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c2;case"hex":return c2>>>1;case"base64":return c42(c0).length;default:if(c3)return c41(c0).length;c1=(""+c1).toLowerCase(),c3=!0}}function c15(c0,c1,c2){var c3=!1;if((void 0===c1||c1<0)&&(c1=0),c1>this.length)return"";if((void 0===c2||c2>this.length)&&(c2=this.length),c2<=0)return"";if((c2>>>=0)<=(c1>>>=0))return"";for(c0||(c0="utf8");;)switch(c0){case"hex":return c30(this,c1,c2);case"utf8":case"utf-8":return c26(this,c1,c2);case"ascii":return c28(this,c1,c2);case"latin1":case"binary":return c29(this,c1,c2);case"base64":return c25(this,c1,c2);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c31(this,c1,c2);default:if(c3)throw new TypeError("Unknown encoding: "+c0);c0=(c0+"").toLowerCase(),c3=!0}}function c16(c0,c1,c2){var c3=c0[c1];c0[c1]=c0[c2],c0[c2]=c3}function c17(c0,c1,c2,c3,c4){if(0===c0.length)return-1;if("string"==typeof c2?(c3=c2,c2=0):c2>2147483647?c2=2147483647:c2<-2147483648&&(c2=-2147483648),c2=+c2,isNaN(c2)&&(c2=c4?0:c0.length-1),c2<0&&(c2=c0.length+c2),c2>=c0.length){if(c4)return-1;c2=c0.length-1}else if(c2<0){if(!c4)return-1;c2=0}if("string"==typeof c1&&(c1=c8.from(c1,c3)),c8.isBuffer(c1))return 0===c1.length?-1:c18(c0,c1,c2,c3,c4);if("number"==typeof c1)return c1&=255,c8.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?c4?Uint8Array.prototype.indexOf.call(c0,c1,c2):Uint8Array.prototype.lastIndexOf.call(c0,c1,c2):c18(c0,[c1],c2,c3,c4);throw new TypeError("val must be string, number or Buffer")}function c18(c0,c1,c2,c3,c4){var c5,c6=1,c7=c0.length,c8=c1.length;if(void 0!==c3&&("ucs2"===(c3=String(c3).toLowerCase())||"ucs-2"===c3||"utf16le"===c3||"utf-16le"===c3)){if(c0.length<2||c1.length<2)return-1;c6=2,c7/=2,c8/=2,c2/=2}function c9(c0,c1){return 1===c6?c0[c1]:c0.readUInt16BE(c1*c6)}if(c4){var c10=-1;for(c5=c2;c5c7&&(c2=c7-c8),c5=c2;c5>=0;c5--){for(var c11=!0,c12=0;c12c4&&(c3=c4):c3=c4;var c5=c1.length;if(c5%2!=0)throw new TypeError("Invalid hex string");c3>c5/2&&(c3=c5/2);for(var c6=0;c6>8,c4=c2%256,c5.push(c4),c5.push(c3);return c5}(c1,c0.length-c2),c0,c2,c3)}function c25(c0,c1,c2){return 0===c1&&c2===c0.length?c3.fromByteArray(c0):c3.fromByteArray(c0.slice(c1,c2))}function c26(c0,c1,c2){c2=Math.min(c0.length,c2);for(var c3=[],c4=c1;c4239?4:c9>223?3:c9>191?2:1;if(c4+c11<=c2)switch(c11){case 1:c9<128&&(c10=c9);break;case 2:128==(192&(c5=c0[c4+1]))&&(c8=(31&c9)<<6|63&c5)>127&&(c10=c8);break;case 3:c5=c0[c4+1],c6=c0[c4+2],128==(192&c5)&&128==(192&c6)&&(c8=(15&c9)<<12|(63&c5)<<6|63&c6)>2047&&(c8<55296||c8>57343)&&(c10=c8);break;case 4:c5=c0[c4+1],c6=c0[c4+2],c7=c0[c4+3],128==(192&c5)&&128==(192&c6)&&128==(192&c7)&&(c8=(15&c9)<<18|(63&c5)<<12|(63&c6)<<6|63&c7)>65535&&c8<1114112&&(c10=c8)}null===c10?(c10=65533,c11=1):c10>65535&&(c10-=65536,c3.push(c10>>>10&1023|55296),c10=56320|1023&c10),c3.push(c10),c4+=c11}return function(c0){var c1=c0.length;if(c1<=c27)return String.fromCharCode.apply(String,c0);var c2="",c3=0;for(;c30&&(c0=this.toString("hex",0,c2).match(/.{2}/g).join(" "),this.length>c2&&(c0+=" ... ")),""},c8.prototype.compare=function(c0,c1,c2,c3,c4){if(!c8.isBuffer(c0))throw new TypeError("Argument must be a Buffer");if(void 0===c1&&(c1=0),void 0===c2&&(c2=c0?c0.length:0),void 0===c3&&(c3=0),void 0===c4&&(c4=this.length),c1<0||c2>c0.length||c3<0||c4>this.length)throw new RangeError("out of range index");if(c3>=c4&&c1>=c2)return 0;if(c3>=c4)return-1;if(c1>=c2)return 1;if(this===c0)return 0;for(var c5=(c4>>>=0)-(c3>>>=0),c6=(c2>>>=0)-(c1>>>=0),c7=Math.min(c5,c6),c9=this.slice(c3,c4),c10=c0.slice(c1,c2),c11=0;c11c4)&&(c2=c4),c0.length>0&&(c2<0||c1<0)||c1>this.length)throw new RangeError("Attempt to write outside buffer bounds");c3||(c3="utf8");for(var c5=!1;;)switch(c3){case"hex":return c19(this,c0,c1,c2);case"utf8":case"utf-8":return c20(this,c0,c1,c2);case"ascii":return c21(this,c0,c1,c2);case"latin1":case"binary":return c22(this,c0,c1,c2);case"base64":return c23(this,c0,c1,c2);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c24(this,c0,c1,c2);default:if(c5)throw new TypeError("Unknown encoding: "+c3);c3=(""+c3).toLowerCase(),c5=!0}},c8.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var c27=4096;function c28(c0,c1,c2){var c3="";c2=Math.min(c0.length,c2);for(var c4=c1;c4c3)&&(c2=c3);for(var c4="",c5=c1;c5c2)throw new RangeError("Trying to access beyond buffer length")}function c33(c0,c1,c2,c3,c4,c5){if(!c8.isBuffer(c0))throw new TypeError('"buffer" argument must be a Buffer instance');if(c1>c4||c1c0.length)throw new RangeError("Index out of range")}function c34(c0,c1,c2,c3){c1<0&&(c1=65535+c1+1);for(var c4=0,c5=Math.min(c0.length-c2,2);c4>>8*(c3?c4:1-c4)}function c35(c0,c1,c2,c3){c1<0&&(c1=4294967295+c1+1);for(var c4=0,c5=Math.min(c0.length-c2,4);c4>>8*(c3?c4:3-c4)&255}function c36(c0,c1,c2,c3,c4,c5){if(c2+c3>c0.length)throw new RangeError("Index out of range");if(c2<0)throw new RangeError("Index out of range")}function c37(c0,c1,c2,c3,c5){return c5||c36(c0,0,c2,4),c4.write(c0,c1,c2,c3,23,4),c2+4}function c38(c0,c1,c2,c3,c5){return c5||c36(c0,0,c2,8),c4.write(c0,c1,c2,c3,52,8),c2+8}c8.prototype.slice=function(c0,c1){var c2,c3=this.length;if((c0=~~c0)<0?(c0+=c3)<0&&(c0=0):c0>c3&&(c0=c3),(c1=void 0===c1?c3:~~c1)<0?(c1+=c3)<0&&(c1=0):c1>c3&&(c1=c3),c10&&(c4*=256);)c3+=this[c0+--c1]*c4;return c3},c8.prototype.readUInt8=function(c0,c1){return c1||c32(c0,1,this.length),this[c0]},c8.prototype.readUInt16LE=function(c0,c1){return c1||c32(c0,2,this.length),this[c0]|this[c0+1]<<8},c8.prototype.readUInt16BE=function(c0,c1){return c1||c32(c0,2,this.length),this[c0]<<8|this[c0+1]},c8.prototype.readUInt32LE=function(c0,c1){return c1||c32(c0,4,this.length),(this[c0]|this[c0+1]<<8|this[c0+2]<<16)+16777216*this[c0+3]},c8.prototype.readUInt32BE=function(c0,c1){return c1||c32(c0,4,this.length),16777216*this[c0]+(this[c0+1]<<16|this[c0+2]<<8|this[c0+3])},c8.prototype.readIntLE=function(c0,c1,c2){c0|=0,c1|=0,c2||c32(c0,c1,this.length);for(var c3=this[c0],c4=1,c5=0;++c5=(c4*=128)&&(c3-=Math.pow(2,8*c1)),c3},c8.prototype.readIntBE=function(c0,c1,c2){c0|=0,c1|=0,c2||c32(c0,c1,this.length);for(var c3=c1,c4=1,c5=this[c0+--c3];c3>0&&(c4*=256);)c5+=this[c0+--c3]*c4;return c5>=(c4*=128)&&(c5-=Math.pow(2,8*c1)),c5},c8.prototype.readInt8=function(c0,c1){return c1||c32(c0,1,this.length),128&this[c0]?-1*(255-this[c0]+1):this[c0]},c8.prototype.readInt16LE=function(c0,c1){c1||c32(c0,2,this.length);var c2=this[c0]|this[c0+1]<<8;return 32768&c2?4294901760|c2:c2},c8.prototype.readInt16BE=function(c0,c1){c1||c32(c0,2,this.length);var c2=this[c0+1]|this[c0]<<8;return 32768&c2?4294901760|c2:c2},c8.prototype.readInt32LE=function(c0,c1){return c1||c32(c0,4,this.length),this[c0]|this[c0+1]<<8|this[c0+2]<<16|this[c0+3]<<24},c8.prototype.readInt32BE=function(c0,c1){return c1||c32(c0,4,this.length),this[c0]<<24|this[c0+1]<<16|this[c0+2]<<8|this[c0+3]},c8.prototype.readFloatLE=function(c0,c1){return c1||c32(c0,4,this.length),c4.read(this,c0,!0,23,4)},c8.prototype.readFloatBE=function(c0,c1){return c1||c32(c0,4,this.length),c4.read(this,c0,!1,23,4)},c8.prototype.readDoubleLE=function(c0,c1){return c1||c32(c0,8,this.length),c4.read(this,c0,!0,52,8)},c8.prototype.readDoubleBE=function(c0,c1){return c1||c32(c0,8,this.length),c4.read(this,c0,!1,52,8)},c8.prototype.writeUIntLE=function(c0,c1,c2,c3){(c0=+c0,c1|=0,c2|=0,c3)||c33(this,c0,c1,c2,Math.pow(2,8*c2)-1,0);var c4=1,c5=0;for(this[c1]=255&c0;++c5=0&&(c5*=256);)this[c1+c4]=c0/c5&255;return c1+c2},c8.prototype.writeUInt8=function(c0,c1,c2){return c0=+c0,c1|=0,c2||c33(this,c0,c1,1,255,0),c8.TYPED_ARRAY_SUPPORT||(c0=Math.floor(c0)),this[c1]=255&c0,c1+1},c8.prototype.writeUInt16LE=function(c0,c1,c2){return c0=+c0,c1|=0,c2||c33(this,c0,c1,2,65535,0),c8.TYPED_ARRAY_SUPPORT?(this[c1]=255&c0,this[c1+1]=c0>>>8):c34(this,c0,c1,!0),c1+2},c8.prototype.writeUInt16BE=function(c0,c1,c2){return c0=+c0,c1|=0,c2||c33(this,c0,c1,2,65535,0),c8.TYPED_ARRAY_SUPPORT?(this[c1]=c0>>>8,this[c1+1]=255&c0):c34(this,c0,c1,!1),c1+2},c8.prototype.writeUInt32LE=function(c0,c1,c2){return c0=+c0,c1|=0,c2||c33(this,c0,c1,4,4294967295,0),c8.TYPED_ARRAY_SUPPORT?(this[c1+3]=c0>>>24,this[c1+2]=c0>>>16,this[c1+1]=c0>>>8,this[c1]=255&c0):c35(this,c0,c1,!0),c1+4},c8.prototype.writeUInt32BE=function(c0,c1,c2){return c0=+c0,c1|=0,c2||c33(this,c0,c1,4,4294967295,0),c8.TYPED_ARRAY_SUPPORT?(this[c1]=c0>>>24,this[c1+1]=c0>>>16,this[c1+2]=c0>>>8,this[c1+3]=255&c0):c35(this,c0,c1,!1),c1+4},c8.prototype.writeIntLE=function(c0,c1,c2,c3){if(c0=+c0,c1|=0,!c3){var c4=Math.pow(2,8*c2-1);c33(this,c0,c1,c2,c4-1,-c4)}var c5=0,c6=1,c7=0;for(this[c1]=255&c0;++c5>0)-c7&255;return c1+c2},c8.prototype.writeIntBE=function(c0,c1,c2,c3){if(c0=+c0,c1|=0,!c3){var c4=Math.pow(2,8*c2-1);c33(this,c0,c1,c2,c4-1,-c4)}var c5=c2-1,c6=1,c7=0;for(this[c1+c5]=255&c0;--c5>=0&&(c6*=256);)c0<0&&0===c7&&0!==this[c1+c5+1]&&(c7=1),this[c1+c5]=(c0/c6>>0)-c7&255;return c1+c2},c8.prototype.writeInt8=function(c0,c1,c2){return c0=+c0,c1|=0,c2||c33(this,c0,c1,1,127,-128),c8.TYPED_ARRAY_SUPPORT||(c0=Math.floor(c0)),c0<0&&(c0=255+c0+1),this[c1]=255&c0,c1+1},c8.prototype.writeInt16LE=function(c0,c1,c2){return c0=+c0,c1|=0,c2||c33(this,c0,c1,2,32767,-32768),c8.TYPED_ARRAY_SUPPORT?(this[c1]=255&c0,this[c1+1]=c0>>>8):c34(this,c0,c1,!0),c1+2},c8.prototype.writeInt16BE=function(c0,c1,c2){return c0=+c0,c1|=0,c2||c33(this,c0,c1,2,32767,-32768),c8.TYPED_ARRAY_SUPPORT?(this[c1]=c0>>>8,this[c1+1]=255&c0):c34(this,c0,c1,!1),c1+2},c8.prototype.writeInt32LE=function(c0,c1,c2){return c0=+c0,c1|=0,c2||c33(this,c0,c1,4,2147483647,-2147483648),c8.TYPED_ARRAY_SUPPORT?(this[c1]=255&c0,this[c1+1]=c0>>>8,this[c1+2]=c0>>>16,this[c1+3]=c0>>>24):c35(this,c0,c1,!0),c1+4},c8.prototype.writeInt32BE=function(c0,c1,c2){return c0=+c0,c1|=0,c2||c33(this,c0,c1,4,2147483647,-2147483648),c0<0&&(c0=4294967295+c0+1),c8.TYPED_ARRAY_SUPPORT?(this[c1]=c0>>>24,this[c1+1]=c0>>>16,this[c1+2]=c0>>>8,this[c1+3]=255&c0):c35(this,c0,c1,!1),c1+4},c8.prototype.writeFloatLE=function(c0,c1,c2){return c37(this,c0,c1,!0,c2)},c8.prototype.writeFloatBE=function(c0,c1,c2){return c37(this,c0,c1,!1,c2)},c8.prototype.writeDoubleLE=function(c0,c1,c2){return c38(this,c0,c1,!0,c2)},c8.prototype.writeDoubleBE=function(c0,c1,c2){return c38(this,c0,c1,!1,c2)},c8.prototype.copy=function(c0,c1,c2,c3){if(c2||(c2=0),c3||0===c3||(c3=this.length),c1>=c0.length&&(c1=c0.length),c1||(c1=0),c3>0&&c3=this.length)throw new RangeError("sourceStart out of bounds");if(c3<0)throw new RangeError("sourceEnd out of bounds");c3>this.length&&(c3=this.length),c0.length-c1=0;--c4)c0[c4+c1]=this[c4+c2];else if(c5<1e3||!c8.TYPED_ARRAY_SUPPORT)for(c4=0;c4>>=0,c2=void 0===c2?this.length:c2>>>0,c0||(c0=0),"number"==typeof c0)for(c5=c1;c555295&&c2<57344){if(!c4){if(c2>56319){(c1-=3)>-1&&c5.push(239,191,189);continue}if(c6+1===c3){(c1-=3)>-1&&c5.push(239,191,189);continue}c4=c2;continue}if(c2<56320){(c1-=3)>-1&&c5.push(239,191,189),c4=c2;continue}c2=65536+(c4-55296<<10|c2-56320)}else c4&&(c1-=3)>-1&&c5.push(239,191,189);if(c4=null,c2<128){if((c1-=1)<0)break;c5.push(c2)}else if(c2<2048){if((c1-=2)<0)break;c5.push(c2>>6|192,63&c2|128)}else if(c2<65536){if((c1-=3)<0)break;c5.push(c2>>12|224,c2>>6&63|128,63&c2|128)}else{if(!(c2<1114112))throw new Error("Invalid code point");if((c1-=4)<0)break;c5.push(c2>>18|240,c2>>12&63|128,c2>>6&63|128,63&c2|128)}}return c5}function c42(c0){return c3.toByteArray(function(c0){if((c0=function(c0){return c0.trim?c0.trim():c0.replace(/^\s+|\s+$/g,"")}(c0).replace(c39,"")).length<2)return"";for(;c0.length%4!=0;)c0+="=";return c0}(c0))}function c43(c0,c1,c2,c3){for(var c4=0;c4=c1.length||c4>=c0.length);++c4)c1[c4+c2]=c0[c4];return c4}}).call(this,c2(12))},function(c0,c1,c2){var c3=c2(37);c0.exports=function(c0,c1,c2){if(c3(c0),void 0===c1)return c0;switch(c2){case 1:return function(c2){return c0.call(c1,c2)};case 2:return function(c2,c3){return c0.call(c1,c2,c3)};case 3:return function(c2,c3,c4){return c0.call(c1,c2,c3,c4)}}return function(){return c0.apply(c1,arguments)}}},function(c0,c1,c2){var c3=c2(9),c4=c2(38);c0.exports=c2(8)?function(c0,c1,c2){return c3.f(c0,c1,c4(1,c2))}:function(c0,c1,c2){return c0[c1]=c2,c0}},function(c0,c1,c2){"use strict";c0.exports=c2(305)()?c2(59).Symbol:c2(306)},function(c0,c1,c2){"use strict";var c3="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function c4(c0,c1){return Object.prototype.hasOwnProperty.call(c0,c1)}c1.assign=function(c0){for(var c1=Array.prototype.slice.call(arguments,1);c1.length;){var c2=c1.shift();if(c2){if("object"!=typeof c2)throw new TypeError(c2+"must be non-object");for(var c3 in c2)c4(c2,c3)&&(c0[c3]=c2[c3])}}return c0},c1.shrinkBuf=function(c0,c1){return c0.length===c1?c0:c0.subarray?c0.subarray(0,c1):(c0.length=c1,c0)};var c5={arraySet:function(c0,c1,c2,c3,c4){if(c1.subarray&&c0.subarray)c0.set(c1.subarray(c2,c2+c3),c4);else for(var c5=0;c5=c1.length?{value:void 0,done:!0}:(c0=c3(c1,c2),this._i+=c0.length,{value:c0,done:!1})}))},function(c0,c1,c2){var c3=c2(68),c4=c2(64);c0.exports=function(c0){return c3(c4(c0))}},function(c0,c1,c2){var c3=c2(64);c0.exports=function(c0){return Object(c3(c0))}},function(c0,c1,c2){"use strict";(function(c1){var c3=c5(c2(62)),c4=c5(c2(81));function c5(c0){return c0&&c0.__esModule?c0:{default:c0}}var c6=c2(227),c7=c2(251).sm4,c8=[0,17,34,51,68,85,102,119,120,121,122,123,124,125,126,127],c9=!1;function c10(c0){var c2=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c5=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c10=c8;c2.length>0&&(c10=c13(c2));var c11=new Array;if(c5){var c14=parseInt(((new Date).getTime()/1e3-1514736e3)/3600);c11.push(255&c14),c11.push((65280&c14)>>8),c11.push((16711680&c14)>>16),c11.push(c14>>24)}if("string"==typeof c0){var c17;(c17=c11).push.apply(c17,(0,c4.default)(c15(c0)))}else{var c18=(0,c3.default)(c0);c18.unshift.apply(c18,(0,c4.default)(c11)),c11=c18}var c19=c16(c11);if(c9){var c20=c7.encrypt(c11,c10,{iv:c10,mode:"cbc",padding:"pkcs#5",output:"array"});return c1.from(c20).toString("base64")}c10=c6.enc.Utf8.parse(c12(c10));var c21=c6.AES.encrypt(c6.enc.Hex.parse(c19),c10,{iv:c10,mode:c6.mode.CBC,padding:c6.pad.Pkcs7}),c22=c21.toString();return c22}function c11(c0,c2,c3){var c4,c5=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],c10=c8;if(c2.length>0&&(c10=c13(c2)),c9){var c11=c1.from(c0,"base64");c4=c7.decrypt(c11,c10,{iv:c10,mode:"cbc",padding:"pkcs#5",output:"array"})}else{var c15=c6.enc.Utf8.parse(c12(c10)),c16=c6.AES.decrypt(c0,c15,{iv:c15,mode:c6.mode.CBC,padding:c6.pad.Pkcs7}),c17=c16.toString();c4=c14(c17)}if(c5&&c4.length>4){if(c3){var c18=0;c18+=c4[3]&&255,c18<<=8,c18+=c4[2]&&255,c18<<=8,c18+=c4[1]&&255,c18<<=8,c18+=c4[0]&&255,c18<<=8;var c19=((new Date).getUTCMilliseconds()/1e3-1514736e3)/3600;return c19-c18>24&&c3?null:c4.slice(4,c4.length)}return c4.slice(4,c4.length)}return c4.length>4?c4:null}function c12(c0){for(var c1=0,c2="";c1=65536&&c2<=1114111?(c3.push(c2>>18&7|240),c3.push(c2>>12&63|128),c3.push(c2>>6&63|128),c3.push(63&c2|128)):c2>=2048&&c2<=65535?(c3.push(c2>>12&15|224),c3.push(c2>>6&63|128),c3.push(63&c2|128)):c2>=128&&c2<=2047?(c3.push(c2>>6&31|192),c3.push(63&c2|128)):c3.push(255&c2);return c3}function c16(c0){for(var c1="",c2=0;c2>>6-c6%4*2;c4[c5>>>2]|=(c7|c8)<<24-c5%4*8,c5++}return c1.create(c4,c5)}c0.enc.Base64={stringify:function(c0){var c1=c0.words,c2=c0.sigBytes,c3=this._map;c0.clamp();for(var c4=[],c5=0;c5>>2]>>>24-c5%4*8&255)<<16|(c1[c5+1>>>2]>>>24-(c5+1)%4*8&255)<<8|c1[c5+2>>>2]>>>24-(c5+2)%4*8&255,c7=0;c7<4&&c5+.75*c7>>6*(3-c7)&63));var c8=c3.charAt(64);if(c8)for(;c4.length%4;)c4.push(c8);return c4.join("")},parse:function(c0){var c1=c0.length,c3=this._map,c4=this._reverseMap;if(!c4){c4=this._reverseMap=[];for(var c5=0;c5>>24)|4278255360&(c4<<24|c4>>>8)}var c5=this._hash.words,c6=c0[c1+0],c8=c0[c1+1],c13=c0[c1+2],c14=c0[c1+3],c15=c0[c1+4],c16=c0[c1+5],c17=c0[c1+6],c18=c0[c1+7],c19=c0[c1+8],c20=c0[c1+9],c21=c0[c1+10],c22=c0[c1+11],c23=c0[c1+12],c24=c0[c1+13],c25=c0[c1+14],c26=c0[c1+15],c27=c5[0],c28=c5[1],c29=c5[2],c30=c5[3];c27=c9(c27,c28,c29,c30,c6,7,c7[0]),c30=c9(c30,c27,c28,c29,c8,12,c7[1]),c29=c9(c29,c30,c27,c28,c13,17,c7[2]),c28=c9(c28,c29,c30,c27,c14,22,c7[3]),c27=c9(c27,c28,c29,c30,c15,7,c7[4]),c30=c9(c30,c27,c28,c29,c16,12,c7[5]),c29=c9(c29,c30,c27,c28,c17,17,c7[6]),c28=c9(c28,c29,c30,c27,c18,22,c7[7]),c27=c9(c27,c28,c29,c30,c19,7,c7[8]),c30=c9(c30,c27,c28,c29,c20,12,c7[9]),c29=c9(c29,c30,c27,c28,c21,17,c7[10]),c28=c9(c28,c29,c30,c27,c22,22,c7[11]),c27=c9(c27,c28,c29,c30,c23,7,c7[12]),c30=c9(c30,c27,c28,c29,c24,12,c7[13]),c29=c9(c29,c30,c27,c28,c25,17,c7[14]),c27=c10(c27,c28=c9(c28,c29,c30,c27,c26,22,c7[15]),c29,c30,c8,5,c7[16]),c30=c10(c30,c27,c28,c29,c17,9,c7[17]),c29=c10(c29,c30,c27,c28,c22,14,c7[18]),c28=c10(c28,c29,c30,c27,c6,20,c7[19]),c27=c10(c27,c28,c29,c30,c16,5,c7[20]),c30=c10(c30,c27,c28,c29,c21,9,c7[21]),c29=c10(c29,c30,c27,c28,c26,14,c7[22]),c28=c10(c28,c29,c30,c27,c15,20,c7[23]),c27=c10(c27,c28,c29,c30,c20,5,c7[24]),c30=c10(c30,c27,c28,c29,c25,9,c7[25]),c29=c10(c29,c30,c27,c28,c14,14,c7[26]),c28=c10(c28,c29,c30,c27,c19,20,c7[27]),c27=c10(c27,c28,c29,c30,c24,5,c7[28]),c30=c10(c30,c27,c28,c29,c13,9,c7[29]),c29=c10(c29,c30,c27,c28,c18,14,c7[30]),c27=c11(c27,c28=c10(c28,c29,c30,c27,c23,20,c7[31]),c29,c30,c16,4,c7[32]),c30=c11(c30,c27,c28,c29,c19,11,c7[33]),c29=c11(c29,c30,c27,c28,c22,16,c7[34]),c28=c11(c28,c29,c30,c27,c25,23,c7[35]),c27=c11(c27,c28,c29,c30,c8,4,c7[36]),c30=c11(c30,c27,c28,c29,c15,11,c7[37]),c29=c11(c29,c30,c27,c28,c18,16,c7[38]),c28=c11(c28,c29,c30,c27,c21,23,c7[39]),c27=c11(c27,c28,c29,c30,c24,4,c7[40]),c30=c11(c30,c27,c28,c29,c6,11,c7[41]),c29=c11(c29,c30,c27,c28,c14,16,c7[42]),c28=c11(c28,c29,c30,c27,c17,23,c7[43]),c27=c11(c27,c28,c29,c30,c20,4,c7[44]),c30=c11(c30,c27,c28,c29,c23,11,c7[45]),c29=c11(c29,c30,c27,c28,c26,16,c7[46]),c27=c12(c27,c28=c11(c28,c29,c30,c27,c13,23,c7[47]),c29,c30,c6,6,c7[48]),c30=c12(c30,c27,c28,c29,c18,10,c7[49]),c29=c12(c29,c30,c27,c28,c25,15,c7[50]),c28=c12(c28,c29,c30,c27,c16,21,c7[51]),c27=c12(c27,c28,c29,c30,c23,6,c7[52]),c30=c12(c30,c27,c28,c29,c14,10,c7[53]),c29=c12(c29,c30,c27,c28,c21,15,c7[54]),c28=c12(c28,c29,c30,c27,c8,21,c7[55]),c27=c12(c27,c28,c29,c30,c19,6,c7[56]),c30=c12(c30,c27,c28,c29,c26,10,c7[57]),c29=c12(c29,c30,c27,c28,c17,15,c7[58]),c28=c12(c28,c29,c30,c27,c24,21,c7[59]),c27=c12(c27,c28,c29,c30,c15,6,c7[60]),c30=c12(c30,c27,c28,c29,c22,10,c7[61]),c29=c12(c29,c30,c27,c28,c13,15,c7[62]),c28=c12(c28,c29,c30,c27,c20,21,c7[63]),c5[0]=c5[0]+c27|0,c5[1]=c5[1]+c28|0,c5[2]=c5[2]+c29|0,c5[3]=c5[3]+c30|0},_doFinalize:function(){var c1=this._data,c2=c1.words,c3=8*this._nDataBytes,c4=8*c1.sigBytes;c2[c4>>>5]|=128<<24-c4%32;var c5=c0.floor(c3/4294967296),c6=c3;c2[15+(c4+64>>>9<<4)]=16711935&(c5<<8|c5>>>24)|4278255360&(c5<<24|c5>>>8),c2[14+(c4+64>>>9<<4)]=16711935&(c6<<8|c6>>>24)|4278255360&(c6<<24|c6>>>8),c1.sigBytes=4*(c2.length+1),this._process();for(var c7=this._hash,c8=c7.words,c9=0;c9<4;c9++){var c10=c8[c9];c8[c9]=16711935&(c10<<8|c10>>>24)|4278255360&(c10<<24|c10>>>8)}return c7},clone:function(){var c0=c5.clone.call(this);return c0._hash=this._hash.clone(),c0}});function c9(c0,c1,c2,c3,c4,c5,c6){var c7=c0+(c1&c2|~c1&c3)+c4+c6;return(c7<>>32-c5)+c1}function c10(c0,c1,c2,c3,c4,c5,c6){var c7=c0+(c1&c3|c2&~c3)+c4+c6;return(c7<>>32-c5)+c1}function c11(c0,c1,c2,c3,c4,c5,c6){var c7=c0+(c1^c2^c3)+c4+c6;return(c7<>>32-c5)+c1}function c12(c0,c1,c2,c3,c4,c5,c6){var c7=c0+(c2^(c1|~c3))+c4+c6;return(c7<>>32-c5)+c1}c1.MD5=c5._createHelper(c8),c1.HmacMD5=c5._createHmacHelper(c8)}(Math),c3.MD5)},function(c0,c1,c2){"use strict";c1.__esModule=!0;var c3=c6(c2(259)),c4=c6(c2(261)),c5="function"==typeof c4.default&&"symbol"==typeof c3.default?function(c0){return typeof c0}:function(c0){return c0&&"function"==typeof c4.default&&c0.constructor===c4.default&&c0!==c4.default.prototype?"symbol":typeof c0};function c6(c0){return c0&&c0.__esModule?c0:{default:c0}}c1.default="function"==typeof c4.default&&"symbol"===c5(c3.default)?function(c0){return void 0===c0?"undefined":c5(c0)}:function(c0){return c0&&"function"==typeof c4.default&&c0.constructor===c4.default&&c0!==c4.default.prototype?"symbol":void 0===c0?"undefined":c5(c0)}},function(c0,c1,c2){(c1=c0.exports=c2(133)).Stream=c1,c1.Readable=c1,c1.Writable=c2(136),c1.Duplex=c2(24),c1.Transform=c2(138),c1.PassThrough=c2(280)},function(c0,c1,c2){"use strict";var c3=c2(284)();c0.exports=function(c0){return c0!==c3&&null!==c0}},function(c0,c1,c2){"use strict";c0.exports=function(c0){return null!=c0}},function(c0,c1){c0.exports=!0},function(c0,c1){c0.exports=function(c0){if("function"!=typeof c0)throw TypeError(c0+" is not a function!");return c0}},function(c0,c1){c0.exports=function(c0,c1){return{enumerable:!(1&c0),configurable:!(2&c0),writable:!(4&c0),value:c1}}},function(c0,c1){c0.exports={}},function(c0,c1,c2){var c3=c2(102),c4=c2(71);c0.exports=Object.keys||function(c0){return c3(c0,c4)}},function(c0,c1){var c2={}.toString;c0.exports=function(c0){return c2.call(c0).slice(8,-1)}},function(c0,c1,c2){var c3=c2(9).f,c4=c2(22),c5=c2(5)("toStringTag");c0.exports=function(c0,c1,c2){c0&&!c4(c0=c2?c0:c0.prototype,c5)&&c3(c0,c5,{configurable:!0,value:c1})}},function(c0,c1,c2){c2(193);for(var c3=c2(4),c4=c2(18),c5=c2(39),c6=c2(5)("toStringTag"),c7="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c8=0;c8c19;c19++)if((c16=c1?c18(c6(c14=c0[c19])[0],c14[1]):c18(c0[c19]))===c9||c16===c10)return c16}else for(c15=c17.call(c0);!(c14=c15.next()).done;)if((c16=c4(c15,c18,c14.value,c1))===c9||c16===c10)return c16}).BREAK=c9,c1.RETURN=c10},function(c0,c1,c2){c0.exports={default:c2(272),__esModule:!0}},function(c0,c1,c2){"use strict";var c3,c4="object"==typeof Reflect?Reflect:null,c5=c4&&"function"==typeof c4.apply?c4.apply:function(c0,c1,c2){return Function.prototype.apply.call(c0,c1,c2)};c3=c4&&"function"==typeof c4.ownKeys?c4.ownKeys:Object.getOwnPropertySymbols?function(c0){return Object.getOwnPropertyNames(c0).concat(Object.getOwnPropertySymbols(c0))}:function(c0){return Object.getOwnPropertyNames(c0)};var c6=Number.isNaN||function(c0){return c0!=c0};function c7(){c7.init.call(this)}c0.exports=c7,c7.EventEmitter=c7,c7.prototype._events=void 0,c7.prototype._eventsCount=0,c7.prototype._maxListeners=void 0;var c8=10;function c9(c0){return void 0===c0._maxListeners?c7.defaultMaxListeners:c0._maxListeners}function c10(c0,c1,c2,c3){var c4,c5,c6,c7;if("function"!=typeof c2)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof c2);if(void 0===(c5=c0._events)?(c5=c0._events=Object.create(null),c0._eventsCount=0):(void 0!==c5.newListener&&(c0.emit("newListener",c1,c2.listener?c2.listener:c2),c5=c0._events),c6=c5[c1]),void 0===c6)c6=c5[c1]=c2,++c0._eventsCount;else if("function"==typeof c6?c6=c5[c1]=c3?[c2,c6]:[c6,c2]:c3?c6.unshift(c2):c6.push(c2),(c4=c9(c0))>0&&c6.length>c4&&!c6.warned){c6.warned=!0;var c8=new Error("Possible EventEmitter memory leak detected. "+c6.length+" "+String(c1)+" listeners added. Use emitter.setMaxListeners() to increase limit");c8.name="MaxListenersExceededWarning",c8.emitter=c0,c8.type=c1,c8.count=c6.length,c7=c8,console&&console.warn&&console.warn(c7)}return c0}function c11(){for(var c0=[],c1=0;c10&&(c6=c1[0]),c6 instanceof Error)throw c6;var c7=new Error("Unhandled error."+(c6?" ("+c6.message+")":""));throw c7.context=c6,c7}var c8=c4[c0];if(void 0===c8)return!1;if("function"==typeof c8)c5(c8,this,c1);else{var c9=c8.length,c10=c15(c8,c9);for(c2=0;c2=0;c5--)if(c2[c5]===c1||c2[c5].listener===c1){c6=c2[c5].listener,c4=c5;break}if(c4<0)return this;0===c4?c2.shift():function(c0,c1){for(;c1+1=0;c3--)this.removeListener(c0,c1[c3]);return this},c7.prototype.listeners=function(c0){return c13(this,c0,!0)},c7.prototype.rawListeners=function(c0){return c13(this,c0,!1)},c7.listenerCount=function(c0,c1){return"function"==typeof c0.listenerCount?c0.listenerCount(c1):c14.call(c0,c1)},c7.prototype.listenerCount=c14,c7.prototype.eventNames=function(){return this._eventsCount>0?c3(this._events):[]}},function(c0,c1,c2){"use strict";(function(c1){void 0===c1||!c1.version||0===c1.version.indexOf("v0.")||0===c1.version.indexOf("v1.")&&0!==c1.version.indexOf("v1.8.")?c0.exports={nextTick:function(c0,c2,c3,c4){if("function"!=typeof c0)throw new TypeError('"callback" argument must be a function');var c5,c6,c7=arguments.length;switch(c7){case 0:case 1:return c1.nextTick(c0);case 2:return c1.nextTick((function(){c0.call(null,c2)}));case 3:return c1.nextTick((function(){c0.call(null,c2,c3)}));case 4:return c1.nextTick((function(){c0.call(null,c2,c3,c4)}));default:for(c5=new Array(c7-1),c6=0;c6document.F=Object<\/script>"),c0.close(),c8=c0.F;c3--;)delete c8.prototype[c5[c3]];return c8()};c0.exports=Object.create||function(c0,c1){var c2;return null!==c0?(c7.prototype=c3(c0),c2=new c7,c7.prototype=null,c2[c6]=c0):c2=c8(),void 0===c1?c2:c4(c2,c1)}},function(c0,c1,c2){var c3=c2(63),c4=Math.min;c0.exports=function(c0){return c0>0?c4(c3(c0),9007199254740991):0}},function(c0,c1){var c2=0,c3=Math.random();c0.exports=function(c0){return"Symbol(".concat(void 0===c0?"":c0,")_",(++c2+c3).toString(36))}},function(c0,c1){},function(c0,c1,c2){var c3=c2(51)("meta"),c4=c2(7),c5=c2(22),c6=c2(9).f,c7=0,c8=Object.isExtensible||function(){return!0},c9=!c2(21)((function(){return c8(Object.preventExtensions({}))})),c10=function(c0){c6(c0,c3,{value:{i:"O"+ ++c7,w:{}}})},c11=c0.exports={KEY:c3,NEED:!1,fastKey:function(c0,c1){if(!c4(c0))return"symbol"==typeof c0?c0:("string"==typeof c0?"S":"P")+c0;if(!c5(c0,c3)){if(!c8(c0))return"F";if(!c1)return"E";c10(c0)}return c0[c3].i},getWeak:function(c0,c1){if(!c5(c0,c3)){if(!c8(c0))return!0;if(!c1)return!1;c10(c0)}return c0[c3].w},onFreeze:function(c0){return c9&&c11.NEED&&c8(c0)&&!c5(c0,c3)&&c10(c0),c0}}},function(c0,c1){c1.f={}.propertyIsEnumerable},function(c0,c1,c2){"use strict";c1.__esModule=!0,c1.default=function(c0,c1){if(!(c0 instanceof c1))throw new TypeError("Cannot call a class as a function")}},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),function(c0){var c1=c3,c2=c1.lib,c4=c2.Base,c5=c2.WordArray,c6=c1.x64={};c6.Word=c4.extend({init:function(c0,c1){this.high=c0,this.low=c1}}),c6.WordArray=c4.extend({init:function(c1,c2){c1=this.words=c1||[],this.sigBytes=c2!=c0?c2:8*c1.length},toX32:function(){for(var c0=this.words,c1=c0.length,c2=[],c3=0;c3>15;--c5>=0;){var c8=32767&this[c0],c9=this[c0++]>>15,c10=c7*c8+c9*c6;c4=((c8=c6*c8+((32767&c10)<<15)+c2[c3]+(1073741823&c4))>>>30)+(c10>>>15)+c7*c9+(c4>>>30),c2[c3++]=1073741823&c8}return c4},c1=30):c4&&"Netscape"!=navigator.appName?(c2.prototype.am=function(c0,c1,c2,c3,c4,c5){for(;--c5>=0;){var c6=c1*this[c0++]+c2[c3]+c4;c4=Math.floor(c6/67108864),c2[c3++]=67108863&c6}return c4},c1=26):(c2.prototype.am=function(c0,c1,c2,c3,c4,c5){for(var c6=16383&c1,c7=c1>>14;--c5>=0;){var c8=16383&this[c0],c9=this[c0++]>>14,c10=c7*c8+c9*c6;c4=((c8=c6*c8+((16383&c10)<<14)+c2[c3]+c4)>>28)+(c10>>14)+c7*c9,c2[c3++]=268435455&c8}return c4},c1=28),c2.prototype.DB=c1,c2.prototype.DM=(1<>>16)&&(c0=c1,c2+=16),0!=(c1=c0>>8)&&(c0=c1,c2+=8),0!=(c1=c0>>4)&&(c0=c1,c2+=4),0!=(c1=c0>>2)&&(c0=c1,c2+=2),0!=(c1=c0>>1)&&(c0=c1,c2+=1),c2}function c12(c0){this.m=c0}function c13(c0){this.m=c0,this.mp=c0.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,c1+=16),0==(255&c0)&&(c0>>=8,c1+=8),0==(15&c0)&&(c0>>=4,c1+=4),0==(3&c0)&&(c0>>=2,c1+=2),0==(1&c0)&&++c1,c1}function c19(c0){for(var c1=0;0!=c0;)c0&=c0-1,++c1;return c1}function c20(){}function c21(c0){return c0}function c22(c0){this.r2=c3(),this.q3=c3(),c2.ONE.dlShiftTo(2*c0.t,this.r2),this.mu=this.r2.divide(c0),this.m=c0}c12.prototype.convert=function(c0){return c0.s<0||c0.compareTo(this.m)>=0?c0.mod(this.m):c0},c12.prototype.revert=function(c0){return c0},c12.prototype.reduce=function(c0){c0.divRemTo(this.m,null,c0)},c12.prototype.mulTo=function(c0,c1,c2){c0.multiplyTo(c1,c2),this.reduce(c2)},c12.prototype.sqrTo=function(c0,c1){c0.squareTo(c1),this.reduce(c1)},c13.prototype.convert=function(c0){var c1=c3();return c0.abs().dlShiftTo(this.m.t,c1),c1.divRemTo(this.m,null,c1),c0.s<0&&c1.compareTo(c2.ZERO)>0&&this.m.subTo(c1,c1),c1},c13.prototype.revert=function(c0){var c1=c3();return c0.copyTo(c1),this.reduce(c1),c1},c13.prototype.reduce=function(c0){for(;c0.t<=this.mt2;)c0[c0.t++]=0;for(var c1=0;c1>15)*this.mpl&this.um)<<15)&c0.DM;for(c0[c2=c1+this.m.t]+=this.m.am(0,c3,c0,c1,0,this.m.t);c0[c2]>=c0.DV;)c0[c2]-=c0.DV,c0[++c2]++}c0.clamp(),c0.drShiftTo(this.m.t,c0),c0.compareTo(this.m)>=0&&c0.subTo(this.m,c0)},c13.prototype.mulTo=function(c0,c1,c2){c0.multiplyTo(c1,c2),this.reduce(c2)},c13.prototype.sqrTo=function(c0,c1){c0.squareTo(c1),this.reduce(c1)},c2.prototype.copyTo=function(c0){for(var c1=this.t-1;c1>=0;--c1)c0[c1]=this[c1];c0.t=this.t,c0.s=this.s},c2.prototype.fromInt=function(c0){this.t=1,this.s=c0<0?-1:0,c0>0?this[0]=c0:c0<-1?this[0]=c0+this.DV:this.t=0},c2.prototype.fromString=function(c0,c1){var c3;if(16==c1)c3=4;else if(8==c1)c3=3;else if(256==c1)c3=8;else if(2==c1)c3=1;else if(32==c1)c3=5;else{if(4!=c1)return void this.fromRadix(c0,c1);c3=2}this.t=0,this.s=0;for(var c4=c0.length,c5=!1,c6=0;--c4>=0;){var c7=8==c3?255&c0[c4]:c9(c0,c4);c7<0?"-"==c0.charAt(c4)&&(c5=!0):(c5=!1,0==c6?this[this.t++]=c7:c6+c3>this.DB?(this[this.t-1]|=(c7&(1<>this.DB-c6):this[this.t-1]|=c7<=this.DB&&(c6-=this.DB))}8==c3&&0!=(128&c0[0])&&(this.s=-1,c6>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==c0;)--this.t},c2.prototype.dlShiftTo=function(c0,c1){var c2;for(c2=this.t-1;c2>=0;--c2)c1[c2+c0]=this[c2];for(c2=c0-1;c2>=0;--c2)c1[c2]=0;c1.t=this.t+c0,c1.s=this.s},c2.prototype.drShiftTo=function(c0,c1){for(var c2=c0;c2=0;--c2)c1[c2+c6+1]=this[c2]>>c4|c7,c7=(this[c2]&c5)<=0;--c2)c1[c2]=0;c1[c6]=c7,c1.t=this.t+c6+1,c1.s=this.s,c1.clamp()},c2.prototype.rShiftTo=function(c0,c1){c1.s=this.s;var c2=Math.floor(c0/this.DB);if(c2>=this.t)c1.t=0;else{var c3=c0%this.DB,c4=this.DB-c3,c5=(1<>c3;for(var c6=c2+1;c6>c3;c3>0&&(c1[this.t-c2-1]|=(this.s&c5)<>=this.DB;if(c0.t>=this.DB;c3+=this.s}else{for(c3+=this.s;c2>=this.DB;c3-=c0.s}c1.s=c3<0?-1:0,c3<-1?c1[c2++]=this.DV+c3:c3>0&&(c1[c2++]=c3),c1.t=c2,c1.clamp()},c2.prototype.multiplyTo=function(c0,c1){var c3=this.abs(),c4=c0.abs(),c5=c3.t;for(c1.t=c5+c4.t;--c5>=0;)c1[c5]=0;for(c5=0;c5=0;)c0[c2]=0;for(c2=0;c2=c1.DV&&(c0[c2+c1.t]-=c1.DV,c0[c2+c1.t+1]=1)}c0.t>0&&(c0[c0.t-1]+=c1.am(c2,c1[c2],c0,2*c2,0,1)),c0.s=0,c0.clamp()},c2.prototype.divRemTo=function(c0,c1,c4){var c5=c0.abs();if(!(c5.t<=0)){var c6=this.abs();if(c6.t0?(c5.lShiftTo(c10,c7),c6.lShiftTo(c10,c4)):(c5.copyTo(c7),c6.copyTo(c4));var c12=c7.t,c13=c7[c12-1];if(0!=c13){var c14=c13*(1<1?c7[c12-2]>>this.F2:0),c15=this.FV/c14,c16=(1<=0&&(c4[c4.t++]=1,c4.subTo(c20,c4)),c2.ONE.dlShiftTo(c12,c20),c20.subTo(c7,c7);c7.t=0;){var c21=c4[--c18]==c13?this.DM:Math.floor(c4[c18]*c15+(c4[c18-1]+c17)*c16);if((c4[c18]+=c7.am(0,c21,c4,c19,0,c12))0&&c4.rShiftTo(c10,c4),c8<0&&c2.ZERO.subTo(c4,c4)}}},c2.prototype.invDigit=function(){if(this.t<1)return 0;var c0=this[0];if(0==(1&c0))return 0;var c1=3&c0;return(c1=(c1=(c1=(c1=c1*(2-(15&c0)*c1)&15)*(2-(255&c0)*c1)&255)*(2-((65535&c0)*c1&65535))&65535)*(2-c0*c1%this.DV)%this.DV)>0?this.DV-c1:-c1},c2.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},c2.prototype.exp=function(c0,c1){if(c0>4294967295||c0<1)return c2.ONE;var c4=c3(),c5=c3(),c6=c1.convert(this),c7=c11(c0)-1;for(c6.copyTo(c4);--c7>=0;)if(c1.sqrTo(c4,c5),(c0&1<0)c1.mulTo(c5,c6,c4);else{var c8=c4;c4=c5,c5=c8}return c1.revert(c4)},c2.prototype.toString=function(c0){if(this.s<0)return"-"+this.negate().toString(c0);var c1;if(16==c0)c1=4;else if(8==c0)c1=3;else if(2==c0)c1=1;else if(32==c0)c1=5;else{if(4!=c0)return this.toRadix(c0);c1=2}var c2,c3=(1<0)for(c7>c7)>0&&(c4=!0,c5=c8(c2));c6>=0;)c7>(c7+=this.DB-c1)):(c2=this[c6]>>(c7-=c1)&c3,c7<=0&&(c7+=this.DB,--c6)),c2>0&&(c4=!0),c4&&(c5+=c8(c2));return c4?c5:"0"},c2.prototype.negate=function(){var c0=c3();return c2.ZERO.subTo(this,c0),c0},c2.prototype.abs=function(){return this.s<0?this.negate():this},c2.prototype.compareTo=function(c0){var c1=this.s-c0.s;if(0!=c1)return c1;var c2=this.t;if(0!=(c1=c2-c0.t))return this.s<0?-c1:c1;for(;--c2>=0;)if(0!=(c1=this[c2]-c0[c2]))return c1;return 0},c2.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+c11(this[this.t-1]^this.s&this.DM)},c2.prototype.mod=function(c0){var c1=c3();return this.abs().divRemTo(c0,null,c1),this.s<0&&c1.compareTo(c2.ZERO)>0&&c0.subTo(c1,c1),c1},c2.prototype.modPowInt=function(c0,c1){var c2;return c2=c0<256||c1.isEven()?new c12(c1):new c13(c1),this.exp(c0,c2)},c2.ZERO=c10(0),c2.ONE=c10(1),c20.prototype.convert=c21,c20.prototype.revert=c21,c20.prototype.mulTo=function(c0,c1,c2){c0.multiplyTo(c1,c2)},c20.prototype.sqrTo=function(c0,c1){c0.squareTo(c1)},c22.prototype.convert=function(c0){if(c0.s<0||c0.t>2*this.m.t)return c0.mod(this.m);if(c0.compareTo(this.m)<0)return c0;var c1=c3();return c0.copyTo(c1),this.reduce(c1),c1},c22.prototype.revert=function(c0){return c0},c22.prototype.reduce=function(c0){for(c0.drShiftTo(this.m.t-1,this.r2),c0.t>this.m.t+1&&(c0.t=this.m.t+1,c0.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);c0.compareTo(this.r2)<0;)c0.dAddOffset(1,this.m.t+1);for(c0.subTo(this.r2,c0);c0.compareTo(this.m)>=0;)c0.subTo(this.m,c0)},c22.prototype.mulTo=function(c0,c1,c2){c0.multiplyTo(c1,c2),this.reduce(c2)},c22.prototype.sqrTo=function(c0,c1){c0.squareTo(c1),this.reduce(c1)};var c23,c24,c25,c26=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],c27=(1<<26)/c26[c26.length-1];function c28(){var c0;c0=(new Date).getTime(),c24[c25++]^=255&c0,c24[c25++]^=c0>>8&255,c24[c25++]^=c0>>16&255,c24[c25++]^=c0>>24&255,c25>=c35&&(c25-=c35)}if(c2.prototype.chunkSize=function(c0){return Math.floor(Math.LN2*this.DB/Math.log(c0))},c2.prototype.toRadix=function(c0){if(null==c0&&(c0=10),0==this.signum()||c0<2||c0>36)return"0";var c1=this.chunkSize(c0),c2=Math.pow(c0,c1),c4=c10(c2),c5=c3(),c6=c3(),c7="";for(this.divRemTo(c4,c5,c6);c5.signum()>0;)c7=(c2+c6.intValue()).toString(c0).substr(1)+c7,c5.divRemTo(c4,c5,c6);return c6.intValue().toString(c0)+c7},c2.prototype.fromRadix=function(c0,c1){this.fromInt(0),null==c1&&(c1=10);for(var c3=this.chunkSize(c1),c4=Math.pow(c1,c3),c5=!1,c6=0,c7=0,c8=0;c8=c3&&(this.dMultiply(c4),this.dAddOffset(c7,0),c6=0,c7=0))}c6>0&&(this.dMultiply(Math.pow(c1,c6)),this.dAddOffset(c7,0)),c5&&c2.ZERO.subTo(this,this)},c2.prototype.fromNumber=function(c0,c1,c3){if("number"==typeof c1)if(c0<2)this.fromInt(1);else for(this.fromNumber(c0,c3),this.testBit(c0-1)||this.bitwiseTo(c2.ONE.shiftLeft(c0-1),c15,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(c1);)this.dAddOffset(2,0),this.bitLength()>c0&&this.subTo(c2.ONE.shiftLeft(c0-1),this);else{var c4=new Array,c5=7&c0;c4.length=1+(c0>>3),c1.nextBytes(c4),c5>0?c4[0]&=(1<>=this.DB;if(c0.t>=this.DB;c3+=this.s}else{for(c3+=this.s;c2>=this.DB;c3+=c0.s}c1.s=c3<0?-1:0,c3>0?c1[c2++]=c3:c3<-1&&(c1[c2++]=this.DV+c3),c1.t=c2,c1.clamp()},c2.prototype.dMultiply=function(c0){this[this.t]=this.am(0,c0-1,this,0,0,this.t),++this.t,this.clamp()},c2.prototype.dAddOffset=function(c0,c1){if(0!=c0){for(;this.t<=c1;)this[this.t++]=0;for(this[c1]+=c0;this[c1]>=this.DV;)this[c1]-=this.DV,++c1>=this.t&&(this[this.t++]=0),++this[c1]}},c2.prototype.multiplyLowerTo=function(c0,c1,c2){var c3,c4=Math.min(this.t+c0.t,c1);for(c2.s=0,c2.t=c4;c4>0;)c2[--c4]=0;for(c3=c2.t-this.t;c4=0;)c2[c3]=0;for(c3=Math.max(c1-this.t,0);c30)if(0==c1)c2=this[0]%c0;else for(var c3=this.t-1;c3>=0;--c3)c2=(c1*c2+this[c3])%c0;return c2},c2.prototype.millerRabin=function(c0){var c1=this.subtract(c2.ONE),c4=c1.getLowestSetBit();if(c4<=0)return!1;var c5=c1.shiftRight(c4);(c0=c0+1>>1)>c26.length&&(c0=c26.length);for(var c6=c3(),c7=0;c7>24},c2.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},c2.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},c2.prototype.toByteArray=function(){var c0=this.t,c1=new Array;c1[0]=this.s;var c2,c3=this.DB-c0*this.DB%8,c4=0;if(c0-- >0)for(c3>c3)!=(this.s&this.DM)>>c3&&(c1[c4++]=c2|this.s<=0;)c3<8?(c2=(this[c0]&(1<>(c3+=this.DB-8)):(c2=this[c0]>>(c3-=8)&255,c3<=0&&(c3+=this.DB,--c0)),0!=(128&c2)&&(c2|=-256),0==c4&&(128&this.s)!=(128&c2)&&++c4,(c4>0||c2!=this.s)&&(c1[c4++]=c2);return c1},c2.prototype.equals=function(c0){return 0==this.compareTo(c0)},c2.prototype.min=function(c0){return this.compareTo(c0)<0?this:c0},c2.prototype.max=function(c0){return this.compareTo(c0)>0?this:c0},c2.prototype.and=function(c0){var c1=c3();return this.bitwiseTo(c0,c14,c1),c1},c2.prototype.or=function(c0){var c1=c3();return this.bitwiseTo(c0,c15,c1),c1},c2.prototype.xor=function(c0){var c1=c3();return this.bitwiseTo(c0,c16,c1),c1},c2.prototype.andNot=function(c0){var c1=c3();return this.bitwiseTo(c0,c17,c1),c1},c2.prototype.not=function(){for(var c0=c3(),c1=0;c1=this.t?0!=this.s:0!=(this[c1]&1<1){var c15=c3();for(c4.sqrTo(c7[1],c15);c8<=c14;)c7[c8]=c3(),c4.mulTo(c15,c7[c8-2],c7[c8]),c8+=2}var c16,c17,c18=c0.t-1,c19=!0,c20=c3();for(c5=c11(c0[c18])-1;c18>=0;){for(c5>=c9?c16=c0[c18]>>c5-c9&c14:(c16=(c0[c18]&(1<0&&(c16|=c0[c18-1]>>this.DB+c5-c9)),c8=c2;0==(1&c16);)c16>>=1,--c8;if((c5-=c8)<0&&(c5+=this.DB,--c18),c19)c7[c16].copyTo(c6),c19=!1;else{for(;c8>1;)c4.sqrTo(c6,c20),c4.sqrTo(c20,c6),c8-=2;c8>0?c4.sqrTo(c6,c20):(c17=c6,c6=c20,c20=c17),c4.mulTo(c20,c7[c16],c6)}for(;c18>=0&&0==(c0[c18]&1<=0?(c3.subTo(c4,c3),c1&&c5.subTo(c7,c5),c6.subTo(c8,c6)):(c4.subTo(c3,c4),c1&&c7.subTo(c5,c7),c8.subTo(c6,c8))}return 0!=c4.compareTo(c2.ONE)?c2.ZERO:c8.compareTo(c0)>=0?c8.subtract(c0):c8.signum()<0?(c8.addTo(c0,c8),c8.signum()<0?c8.add(c0):c8):c8},c2.prototype.pow=function(c0){return this.exp(c0,new c20)},c2.prototype.gcd=function(c0){var c1=this.s<0?this.negate():this.clone(),c2=c0.s<0?c0.negate():c0.clone();if(c1.compareTo(c2)<0){var c3=c1;c1=c2,c2=c3}var c4=c1.getLowestSetBit(),c5=c2.getLowestSetBit();if(c5<0)return c1;for(c40&&(c1.rShiftTo(c5,c1),c2.rShiftTo(c5,c2));c1.signum()>0;)(c4=c1.getLowestSetBit())>0&&c1.rShiftTo(c4,c1),(c4=c2.getLowestSetBit())>0&&c2.rShiftTo(c4,c2),c1.compareTo(c2)>=0?(c1.subTo(c2,c1),c1.rShiftTo(1,c1)):(c2.subTo(c1,c2),c2.rShiftTo(1,c2));return c5>0&&c2.lShiftTo(c5,c2),c2},c2.prototype.isProbablePrime=function(c0){var c1,c2=this.abs();if(1==c2.t&&c2[0]<=c26[c26.length-1]){for(c1=0;c1>>8,c24[c25++]=255&c29;c25=0,c28()}function c32(){if(null==c23){for(c28(),(c23=new c34).init(c24),c25=0;c250?c3:c2)(c0)}},function(c0,c1){c0.exports=function(c0){if(null==c0)throw TypeError("Can't call method on "+c0);return c0}},function(c0,c1,c2){"use strict";var c3=c2(36),c4=c2(2),c5=c2(100),c6=c2(18),c7=c2(39),c8=c2(186),c9=c2(42),c10=c2(189),c11=c2(5)("iterator"),c12=!([].keys&&"next"in[].keys()),c13="keys",c14="values",c15=function(){return this};c0.exports=function(c0,c1,c2,c16,c17,c18,c19){c8(c2,c1,c16);var c20,c21,c22,c23=function(c0){if(!c12&&c0 in c27)return c27[c0];switch(c0){case c13:case c14:return function(){return new c2(this,c0)}}return function(){return new c2(this,c0)}},c24=c1+" Iterator",c25=c17==c14,c26=!1,c27=c0.prototype,c28=c27[c11]||c27["@@iterator"]||c17&&c27[c17],c29=c28||c23(c17),c30=c17?c25?c23("entries"):c29:void 0,c31="Array"==c1&&c27.entries||c28;if(c31&&(c22=c10(c31.call(new c0)))!==Object.prototype&&c22.next&&(c9(c22,c24,!0),c3||"function"==typeof c22[c11]||c6(c22,c11,c15)),c25&&c28&&c28.name!==c14&&(c26=!0,c29=function(){return c28.call(this)}),c3&&!c19||!c12&&!c26&&c27[c11]||c6(c27,c11,c29),c7[c1]=c29,c7[c24]=c15,c17)if(c20={values:c25?c29:c23(c14),keys:c18?c29:c23(c13),entries:c30},c19)for(c21 in c20)c21 in c27||c5(c27,c21,c20[c21]);else c4(c4.P+c4.F*(c12||c26),c1,c20);return c20}},function(c0,c1,c2){var c3=c2(7),c4=c2(4).document,c5=c3(c4)&&c3(c4.createElement);c0.exports=function(c0){return c5?c4.createElement(c0):{}}},function(c0,c1,c2){var c3=c2(7);c0.exports=function(c0,c1){if(!c3(c0))return c0;var c2,c4;if(c1&&"function"==typeof(c2=c0.toString)&&!c3(c4=c2.call(c0)))return c4;if("function"==typeof(c2=c0.valueOf)&&!c3(c4=c2.call(c0)))return c4;if(!c1&&"function"==typeof(c2=c0.toString)&&!c3(c4=c2.call(c0)))return c4;throw TypeError("Can't convert object to primitive value")}},function(c0,c1,c2){var c3=c2(41);c0.exports=Object("z").propertyIsEnumerable(0)?Object:function(c0){return"String"==c3(c0)?c0.split(""):Object(c0)}},function(c0,c1,c2){var c3=c2(70)("keys"),c4=c2(51);c0.exports=function(c0){return c3[c0]||(c3[c0]=c4(c0))}},function(c0,c1,c2){var c3=c2(1),c4=c2(4),c5="__core-js_shared__",c6=c4[c5]||(c4[c5]={});(c0.exports=function(c0,c1){return c6[c0]||(c6[c0]=void 0!==c1?c1:{})})("versions",[]).push({version:c3.version,mode:c2(36)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(c0,c1){c0.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(c0,c1,c2){var c3=c2(73),c4=c2(5)("iterator"),c5=c2(39);c0.exports=c2(1).getIteratorMethod=function(c0){if(null!=c0)return c0[c4]||c0["@@iterator"]||c5[c3(c0)]}},function(c0,c1,c2){var c3=c2(41),c4=c2(5)("toStringTag"),c5="Arguments"==c3(function(){return arguments}());c0.exports=function(c0){var c1,c2,c6;return void 0===c0?"Undefined":null===c0?"Null":"string"==typeof(c2=function(c0,c1){try{return c0[c1]}catch(c0){}}(c1=Object(c0),c4))?c2:c5?c3(c1):"Object"==(c6=c3(c1))&&"function"==typeof c1.callee?"Arguments":c6}},function(c0,c1,c2){var c3=c2(18);c0.exports=function(c0,c1,c2){for(var c4 in c1)c2&&c0[c4]?c0[c4]=c1[c4]:c3(c0,c4,c1[c4]);return c0}},function(c0,c1){c0.exports=function(c0,c1,c2,c3){if(!(c0 instanceof c1)||void 0!==c3&&c3 in c0)throw TypeError(c2+": incorrect invocation!");return c0}},function(c0,c1,c2){var c3=c2(7);c0.exports=function(c0,c1){if(!c3(c0)||c0._t!==c1)throw TypeError("Incompatible receiver, "+c1+" required!");return c0}},function(c0,c1,c2){c0.exports={default:c2(203),__esModule:!0}},function(c0,c1,c2){"use strict";var c3=c2(37);function c4(c0){var c1,c2;this.promise=new c0((function(c0,c3){if(void 0!==c1||void 0!==c2)throw TypeError("Bad Promise constructor");c1=c0,c2=c3})),this.resolve=c3(c1),this.reject=c3(c2)}c0.exports.f=function(c0){return new c4(c0)}},function(c0,c1){c1.f=Object.getOwnPropertySymbols},function(c0,c1,c2){c0.exports={default:c2(217),__esModule:!0}},function(c0,c1,c2){"use strict";c1.__esModule=!0;var c3,c4=c2(62),c5=(c3=c4)&&c3.__esModule?c3:{default:c3};c1.default=function(c0){if(Array.isArray(c0)){for(var c1=0,c2=Array(c0.length);c1>>=0)&&c0<256)&&(c3=c6[c0])?c3:(c2=c9(c0,(0|c0)<0?-1:0,!0),c4&&(c6[c0]=c2),c2):(c4=-128<=(c0|=0)&&c0<128)&&(c3=c5[c0])?c3:(c2=c9(c0,c0<0?-1:0,!1),c4&&(c5[c0]=c2),c2)}function c8(c0,c1){if(isNaN(c0))return c1?c18:c17;if(c1){if(c0<0)return c18;if(c0>=c14)return c23}else{if(c0<=-c15)return c24;if(c0+1>=c15)return c22}return c0<0?c8(-c0,c1).neg():c9(c0%c13|0,c0/c13|0,c1)}function c9(c0,c1,c2){return new c3(c0,c1,c2)}c3.fromInt=c7,c3.fromNumber=c8,c3.fromBits=c9;var c10=Math.pow;function c11(c0,c1,c2){if(0===c0.length)throw Error("empty string");if("NaN"===c0||"Infinity"===c0||"+Infinity"===c0||"-Infinity"===c0)return c17;if("number"==typeof c1?(c2=c1,c1=!1):c1=!!c1,(c2=c2||10)<2||360)throw Error("interior hyphen");if(0===c3)return c11(c0.substring(1),c1,c2).neg();for(var c4=c8(c10(c2,8)),c5=c17,c6=0;c6>>0:this.low},c25.toNumber=function(){return this.unsigned?(this.high>>>0)*c13+(this.low>>>0):this.high*c13+(this.low>>>0)},c25.toString=function(c0){if((c0=c0||10)<2||36>>0).toString(c0);if((c5=c7).isZero())return c9+c6;for(;c9.length<6;)c9="0"+c9;c6=""+c9+c6}},c25.getHighBits=function(){return this.high},c25.getHighBitsUnsigned=function(){return this.high>>>0},c25.getLowBits=function(){return this.low},c25.getLowBitsUnsigned=function(){return this.low>>>0},c25.getNumBitsAbs=function(){if(this.isNegative())return this.eq(c24)?64:this.neg().getNumBitsAbs();for(var c0=0!=this.high?this.high:this.low,c1=31;c1>0&&0==(c0&1<=0},c25.isOdd=function(){return 1==(1&this.low)},c25.isEven=function(){return 0==(1&this.low)},c25.equals=function(c0){return c4(c0)||(c0=c12(c0)),(this.unsigned===c0.unsigned||this.high>>>31!=1||c0.high>>>31!=1)&&(this.high===c0.high&&this.low===c0.low)},c25.eq=c25.equals,c25.notEquals=function(c0){return!this.eq(c0)},c25.neq=c25.notEquals,c25.ne=c25.notEquals,c25.lessThan=function(c0){return this.comp(c0)<0},c25.lt=c25.lessThan,c25.lessThanOrEqual=function(c0){return this.comp(c0)<=0},c25.lte=c25.lessThanOrEqual,c25.le=c25.lessThanOrEqual,c25.greaterThan=function(c0){return this.comp(c0)>0},c25.gt=c25.greaterThan,c25.greaterThanOrEqual=function(c0){return this.comp(c0)>=0},c25.gte=c25.greaterThanOrEqual,c25.ge=c25.greaterThanOrEqual,c25.compare=function(c0){if(c4(c0)||(c0=c12(c0)),this.eq(c0))return 0;var c1=this.isNegative(),c2=c0.isNegative();return c1&&!c2?-1:!c1&&c2?1:this.unsigned?c0.high>>>0>this.high>>>0||c0.high===this.high&&c0.low>>>0>this.low>>>0?-1:1:this.sub(c0).isNegative()?-1:1},c25.comp=c25.compare,c25.negate=function(){return!this.unsigned&&this.eq(c24)?c24:this.not().add(c19)},c25.neg=c25.negate,c25.add=function(c0){c4(c0)||(c0=c12(c0));var c1=this.high>>>16,c2=65535&this.high,c3=this.low>>>16,c5=65535&this.low,c6=c0.high>>>16,c7=65535&c0.high,c8=c0.low>>>16,c10=0,c11=0,c13=0,c14=0;return c13+=(c14+=c5+(65535&c0.low))>>>16,c11+=(c13+=c3+c8)>>>16,c10+=(c11+=c2+c7)>>>16,c10+=c1+c6,c9((c13&=65535)<<16|(c14&=65535),(c10&=65535)<<16|(c11&=65535),this.unsigned)},c25.subtract=function(c0){return c4(c0)||(c0=c12(c0)),this.add(c0.neg())},c25.sub=c25.subtract,c25.multiply=function(c0){if(this.isZero())return c17;if(c4(c0)||(c0=c12(c0)),c2)return c9(c2.mul(this.low,this.high,c0.low,c0.high),c2.get_high(),this.unsigned);if(c0.isZero())return c17;if(this.eq(c24))return c0.isOdd()?c24:c17;if(c0.eq(c24))return this.isOdd()?c24:c17;if(this.isNegative())return c0.isNegative()?this.neg().mul(c0.neg()):this.neg().mul(c0).neg();if(c0.isNegative())return this.mul(c0.neg()).neg();if(this.lt(c16)&&c0.lt(c16))return c8(this.toNumber()*c0.toNumber(),this.unsigned);var c1=this.high>>>16,c3=65535&this.high,c5=this.low>>>16,c6=65535&this.low,c7=c0.high>>>16,c10=65535&c0.high,c11=c0.low>>>16,c13=65535&c0.low,c14=0,c15=0,c18=0,c19=0;return c18+=(c19+=c6*c13)>>>16,c15+=(c18+=c5*c13)>>>16,c18&=65535,c15+=(c18+=c6*c11)>>>16,c14+=(c15+=c3*c13)>>>16,c15&=65535,c14+=(c15+=c5*c11)>>>16,c15&=65535,c14+=(c15+=c6*c10)>>>16,c14+=c1*c13+c3*c11+c5*c10+c6*c7,c9((c18&=65535)<<16|(c19&=65535),(c14&=65535)<<16|(c15&=65535),this.unsigned)},c25.mul=c25.multiply,c25.divide=function(c0){if(c4(c0)||(c0=c12(c0)),c0.isZero())throw Error("division by zero");var c1,c3,c5;if(c2)return this.unsigned||-2147483648!==this.high||-1!==c0.low||-1!==c0.high?c9((this.unsigned?c2.div_u:c2.div_s)(this.low,this.high,c0.low,c0.high),c2.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?c18:c17;if(this.unsigned){if(c0.unsigned||(c0=c0.toUnsigned()),c0.gt(this))return c18;if(c0.gt(this.shru(1)))return c20;c5=c18}else{if(this.eq(c24))return c0.eq(c19)||c0.eq(c21)?c24:c0.eq(c24)?c19:(c1=this.shr(1).div(c0).shl(1)).eq(c17)?c0.isNegative()?c19:c21:(c3=this.sub(c0.mul(c1)),c5=c1.add(c3.div(c0)));if(c0.eq(c24))return this.unsigned?c18:c17;if(this.isNegative())return c0.isNegative()?this.neg().div(c0.neg()):this.neg().div(c0).neg();if(c0.isNegative())return this.div(c0.neg()).neg();c5=c17}for(c3=this;c3.gte(c0);){c1=Math.max(1,Math.floor(c3.toNumber()/c0.toNumber()));for(var c6=Math.ceil(Math.log(c1)/Math.LN2),c7=c6<=48?1:c10(2,c6-48),c11=c8(c1),c13=c11.mul(c0);c13.isNegative()||c13.gt(c3);)c13=(c11=c8(c1-=c7,this.unsigned)).mul(c0);c11.isZero()&&(c11=c19),c5=c5.add(c11),c3=c3.sub(c13)}return c5},c25.div=c25.divide,c25.modulo=function(c0){return c4(c0)||(c0=c12(c0)),c2?c9((this.unsigned?c2.rem_u:c2.rem_s)(this.low,this.high,c0.low,c0.high),c2.get_high(),this.unsigned):this.sub(this.div(c0).mul(c0))},c25.mod=c25.modulo,c25.rem=c25.modulo,c25.not=function(){return c9(~this.low,~this.high,this.unsigned)},c25.and=function(c0){return c4(c0)||(c0=c12(c0)),c9(this.low&c0.low,this.high&c0.high,this.unsigned)},c25.or=function(c0){return c4(c0)||(c0=c12(c0)),c9(this.low|c0.low,this.high|c0.high,this.unsigned)},c25.xor=function(c0){return c4(c0)||(c0=c12(c0)),c9(this.low^c0.low,this.high^c0.high,this.unsigned)},c25.shiftLeft=function(c0){return c4(c0)&&(c0=c0.toInt()),0==(c0&=63)?this:c0<32?c9(this.low<>>32-c0,this.unsigned):c9(0,this.low<>>c0|this.high<<32-c0,this.high>>c0,this.unsigned):c9(this.high>>c0-32,this.high>=0?0:-1,this.unsigned)},c25.shr=c25.shiftRight,c25.shiftRightUnsigned=function(c0){if(c4(c0)&&(c0=c0.toInt()),0===(c0&=63))return this;var c1=this.high;return c0<32?c9(this.low>>>c0|c1<<32-c0,c1>>>c0,this.unsigned):c9(32===c0?c1:c1>>>c0-32,0,this.unsigned)},c25.shru=c25.shiftRightUnsigned,c25.shr_u=c25.shiftRightUnsigned,c25.toSigned=function(){return this.unsigned?c9(this.low,this.high,!1):this},c25.toUnsigned=function(){return this.unsigned?this:c9(this.low,this.high,!0)},c25.toBytes=function(c0){return c0?this.toBytesLE():this.toBytesBE()},c25.toBytesLE=function(){var c0=this.high,c1=this.low;return[255&c1,c1>>>8&255,c1>>>16&255,c1>>>24,255&c0,c0>>>8&255,c0>>>16&255,c0>>>24]},c25.toBytesBE=function(){var c0=this.high,c1=this.low;return[c0>>>24,c0>>>16&255,c0>>>8&255,255&c0,c1>>>24,c1>>>16&255,c1>>>8&255,255&c1]},c3.fromBytes=function(c0,c1,c2){return c2?c3.fromBytesLE(c0,c1):c3.fromBytesBE(c0,c1)},c3.fromBytesLE=function(c0,c1){return new c3(c0[0]|c0[1]<<8|c0[2]<<16|c0[3]<<24,c0[4]|c0[5]<<8|c0[6]<<16|c0[7]<<24,c1)},c3.fromBytesBE=function(c0,c1){return new c3(c0[4]<<24|c0[5]<<16|c0[6]<<8|c0[7],c0[0]<<24|c0[1]<<16|c0[2]<<8|c0[3],c1)}},function(c0,c1,c2){var c3,c4,c5,c6,c7,c8,c9,c10;c0.exports=(c10=c2(0),c4=(c3=c10).lib,c5=c4.WordArray,c6=c4.Hasher,c7=c3.algo,c8=[],c9=c7.SHA1=c6.extend({_doReset:function(){this._hash=new c5.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c0,c1){for(var c2=this._hash.words,c3=c2[0],c4=c2[1],c5=c2[2],c6=c2[3],c7=c2[4],c9=0;c9<80;c9++){if(c9<16)c8[c9]=0|c0[c1+c9];else{var c10=c8[c9-3]^c8[c9-8]^c8[c9-14]^c8[c9-16];c8[c9]=c10<<1|c10>>>31}var c11=(c3<<5|c3>>>27)+c7+c8[c9];c11+=c9<20?1518500249+(c4&c5|~c4&c6):c9<40?1859775393+(c4^c5^c6):c9<60?(c4&c5|c4&c6|c5&c6)-1894007588:(c4^c5^c6)-899497514,c7=c6,c6=c5,c5=c4<<30|c4>>>2,c4=c3,c3=c11}c2[0]=c2[0]+c3|0,c2[1]=c2[1]+c4|0,c2[2]=c2[2]+c5|0,c2[3]=c2[3]+c6|0,c2[4]=c2[4]+c7|0},_doFinalize:function(){var c0=this._data,c1=c0.words,c2=8*this._nDataBytes,c3=8*c0.sigBytes;return c1[c3>>>5]|=128<<24-c3%32,c1[14+(c3+64>>>9<<4)]=Math.floor(c2/4294967296),c1[15+(c3+64>>>9<<4)]=c2,c0.sigBytes=4*c1.length,this._process(),this._hash},clone:function(){var c0=c6.clone.call(this);return c0._hash=this._hash.clone(),c0}}),c3.SHA1=c6._createHelper(c9),c3.HmacSHA1=c6._createHmacHelper(c9),c10.SHA1)},function(c0,c1,c2){var c3,c4,c5,c6;c0.exports=(c3=c2(0),c5=(c4=c3).lib.Base,c6=c4.enc.Utf8,void(c4.algo.HMAC=c5.extend({init:function(c0,c1){c0=this._hasher=new c0.init,"string"==typeof c1&&(c1=c6.parse(c1));var c2=c0.blockSize,c3=4*c2;c1.sigBytes>c3&&(c1=c0.finalize(c1)),c1.clamp();for(var c4=this._oKey=c1.clone(),c5=this._iKey=c1.clone(),c7=c4.words,c8=c5.words,c9=0;c9=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(c1,c2){c1>=c0&&(this.__redo__[c2]=++c1)}),this),this.__redo__.push(c0)):c11(this,"__redo__",c8("c",[c0])))})),_onDelete:c8((function(c0){var c1;c0>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(c1=this.__redo__.indexOf(c0))&&this.__redo__.splice(c1,1),this.__redo__.forEach((function(c1,c2){c1>c0&&(this.__redo__[c2]=--c1)}),this)))})),_onClear:c8((function(){this.__redo__&&c4.call(this.__redo__),this.__nextIndex__=0}))}))),c11(c3.prototype,c10.iterator,c8((function(){return this})))},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__92__},function(c0,c1,c2){"use strict";var c3=c2(354);c0.exports=function(c0,c1){var c2;function c4(c3){c1.rejectUnauthorized&&c0.emit("error",c3),c2.end()}return c1.port=c1.port||8883,c1.host=c1.hostname||c1.host||"localhost",c1.rejectUnauthorized=!1!==c1.rejectUnauthorized,delete c1.path,(c2=c3.connect(c1)).on("secureConnect",(function(){c1.rejectUnauthorized&&!c2.authorized?c2.emit("error",new Error("TLS not authorized")):c2.removeListener("error",c4)})),c2.on("error",c4),c2}},function(c0,c1,c2){(function(c1,c3){var c4=c2(33),c5=c2(355),c6=c2(14),c7=c2(358),c8=c1.from&&c1.from!==Uint8Array.from?c1.from([0]):new c1([0]),c9=function(c0,c1){c0._corked?c0.once("uncork",c1):c1()},c10=function(c0,c1){return function(c2){c2?function(c0,c1){c0._autoDestroy&&c0.destroy(c1)}(c0,"premature close"===c2.message?null:c2):c1&&!c0._ended&&c0.end()}},c11=function(c0,c1,c2){if(!(this instanceof c11))return new c11(c0,c1,c2);c4.Duplex.call(this,c2),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!c2||!1!==c2.autoDestroy,this._forwardDestroy=!c2||!1!==c2.destroy,this._forwardEnd=!c2||!1!==c2.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,c0&&this.setWritable(c0),c1&&this.setReadable(c1)};c6(c11,c4.Duplex),c11.obj=function(c0,c1,c2){return c2||(c2={}),c2.objectMode=!0,c2.highWaterMark=16,new c11(c0,c1,c2)},c11.prototype.cork=function(){1==++this._corked&&this.emit("cork")},c11.prototype.uncork=function(){this._corked&&0==--this._corked&&this.emit("uncork")},c11.prototype.setWritable=function(c0){if(this._unwrite&&this._unwrite(),this.destroyed)c0&&c0.destroy&&c0.destroy();else if(null!==c0&&!1!==c0){var c1=this,c2=c5(c0,{writable:!0,readable:!1},c10(this,this._forwardEnd)),c4=function(){var c0=c1._ondrain;c1._ondrain=null,c0&&c0()};this._unwrite&&c3.nextTick(c4),this._writable=c0,this._writable.on("drain",c4),this._unwrite=function(){c1._writable.removeListener("drain",c4),c2()},this.uncork()}else this.end()},c11.prototype.setReadable=function(c0){if(this._unread&&this._unread(),this.destroyed)c0&&c0.destroy&&c0.destroy();else{if(null===c0||!1===c0)return this.push(null),void this.resume();var c1,c2=this,c3=c5(c0,{writable:!1,readable:!0},c10(this)),c6=function(){c2._forward()},c7=function(){c2.push(null)};this._drained=!0,this._readable=c0,this._readable2=c0._readableState?c0:(c1=c0,new c4.Readable({objectMode:!0,highWaterMark:16}).wrap(c1)),this._readable2.on("readable",c6),this._readable2.on("end",c7),this._unread=function(){c2._readable2.removeListener("readable",c6),c2._readable2.removeListener("end",c7),c3()},this._forward()}},c11.prototype._read=function(){this._drained=!0,this._forward()},c11.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var c0;for(this._forwarding=!0;this._drained&&null!==(c0=c7(this._readable2));)this.destroyed||(this._drained=this.push(c0));this._forwarding=!1}},c11.prototype.destroy=function(c0){if(!this.destroyed){this.destroyed=!0;var c1=this;c3.nextTick((function(){c1._destroy(c0)}))}},c11.prototype._destroy=function(c0){if(c0){var c1=this._ondrain;this._ondrain=null,c1?c1(c0):this.emit("error",c0)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},c11.prototype._write=function(c0,c1,c2){return this.destroyed?c2():this._corked?c9(this,this._write.bind(this,c0,c1,c2)):c0===c8?this._finish(c2):this._writable?void(!1===this._writable.write(c0)?this._ondrain=c2:c2()):c2()},c11.prototype._finish=function(c0){var c1=this;this.emit("preend"),c9(this,(function(){var c2,c3;c2=c1._forwardEnd&&c1._writable,c3=function(){!1===c1._writableState.prefinished&&(c1._writableState.prefinished=!0),c1.emit("prefinish"),c9(c1,c0)},c2?c2._writableState&&c2._writableState.finished?c3():c2._writableState?c2.end(c3):(c2.end(),c3()):c3()}))},c11.prototype.end=function(c0,c1,c2){return"function"==typeof c0?this.end(null,null,c0):"function"==typeof c1?this.end(c0,null,c1):(this._ended=!0,c0&&this.write(c0),this._writableState.ending||this.write(c8),c4.Writable.prototype.end.call(this,c2))},c0.exports=c11}).call(this,c2(16).Buffer,c2(6))},function(c0,c1,c2){"use strict";var c3=c5(c2(32)),c4=c5(c2(45));function c5(c0){return c0&&c0.__esModule?c0:{default:c0}}var c6=c2(158),c7=c6.Reader,c8=c6.Writer,c9=c6.util,c10=c6.roots.default||(c6.roots.default={});c10.IMHttpWrapper=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.token=c0.string();break;case 2:c3.clientId=c0.string();break;case 3:c3.request=c0.string();break;case 4:c3.data=c0.bytes();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("token"))throw c9.ProtocolError("missing required 'token'",{instance:c3});if(!c3.hasOwnProperty("clientId"))throw c9.ProtocolError("missing required 'clientId'",{instance:c3});if(!c3.hasOwnProperty("request"))throw c9.ProtocolError("missing required 'request'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.token)?c9.isString(c0.clientId)?c9.isString(c0.request)?null!=c0.data&&c0.hasOwnProperty("data")&&!(c0.data&&"number"==typeof c0.data.length||c9.isString(c0.data))?"data: buffer expected":null:"request: string expected":"clientId: string expected":"token: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.IMHttpWrapper)return c0;var c1=new c10.IMHttpWrapper;return null!=c0.token&&(c1.token=String(c0.token)),null!=c0.clientId&&(c1.clientId=String(c0.clientId)),null!=c0.request&&(c1.request=String(c0.request)),null!=c0.data&&("string"==typeof c0.data?c9.base64.decode(c0.data,c1.data=c9.newBuffer(c9.base64.length(c0.data)),0):c0.data.length&&(c1.data=c0.data)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.token="",c2.clientId="",c2.request="",c1.bytes===String?c2.data="":(c2.data=[],c1.bytes!==Array&&(c2.data=c9.newBuffer(c2.data)))),null!=c0.token&&c0.hasOwnProperty("token")&&(c2.token=c0.token),null!=c0.clientId&&c0.hasOwnProperty("clientId")&&(c2.clientId=c0.clientId),null!=c0.request&&c0.hasOwnProperty("request")&&(c2.request=c0.request),null!=c0.data&&c0.hasOwnProperty("data")&&(c2.data=c1.bytes===String?c9.base64.encode(c0.data,0,c0.data.length):c1.bytes===Array?Array.prototype.slice.call(c0.data):c0.data),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.RouteRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.app=c0.string();break;case 2:c3.platform=c0.int32();break;case 3:c3.pushType=c0.int32();break;case 4:c3.deviceName=c0.string();break;case 5:c3.deviceVersion=c0.string();break;case 6:c3.phoneName=c0.string();break;case 7:c3.language=c0.string();break;case 8:c3.carrierName=c0.string();break;case 9:c3.appVersion=c0.string();break;case 10:c3.sdkVersion=c0.string();break;case 11:c3.wxAppId=c0.string();break;case 12:c3.wxAppKey=c0.string();break;case 13:c3.webAppId=c0.string();break;case 14:c3.webAppKey=c0.string();break;case 15:c3.host=c0.string();break;default:c0.skipType(7&c4)}}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":null!=c0.app&&c0.hasOwnProperty("app")&&!c9.isString(c0.app)?"app: string expected":null!=c0.platform&&c0.hasOwnProperty("platform")&&!c9.isInteger(c0.platform)?"platform: integer expected":null!=c0.pushType&&c0.hasOwnProperty("pushType")&&!c9.isInteger(c0.pushType)?"pushType: integer expected":null!=c0.deviceName&&c0.hasOwnProperty("deviceName")&&!c9.isString(c0.deviceName)?"deviceName: string expected":null!=c0.deviceVersion&&c0.hasOwnProperty("deviceVersion")&&!c9.isString(c0.deviceVersion)?"deviceVersion: string expected":null!=c0.phoneName&&c0.hasOwnProperty("phoneName")&&!c9.isString(c0.phoneName)?"phoneName: string expected":null!=c0.language&&c0.hasOwnProperty("language")&&!c9.isString(c0.language)?"language: string expected":null!=c0.carrierName&&c0.hasOwnProperty("carrierName")&&!c9.isString(c0.carrierName)?"carrierName: string expected":null!=c0.appVersion&&c0.hasOwnProperty("appVersion")&&!c9.isString(c0.appVersion)?"appVersion: string expected":null!=c0.sdkVersion&&c0.hasOwnProperty("sdkVersion")&&!c9.isString(c0.sdkVersion)?"sdkVersion: string expected":null!=c0.wxAppId&&c0.hasOwnProperty("wxAppId")&&!c9.isString(c0.wxAppId)?"wxAppId: string expected":null!=c0.wxAppKey&&c0.hasOwnProperty("wxAppKey")&&!c9.isString(c0.wxAppKey)?"wxAppKey: string expected":null!=c0.webAppId&&c0.hasOwnProperty("webAppId")&&!c9.isString(c0.webAppId)?"webAppId: string expected":null!=c0.webAppKey&&c0.hasOwnProperty("webAppKey")&&!c9.isString(c0.webAppKey)?"webAppKey: string expected":null!=c0.host&&c0.hasOwnProperty("host")&&!c9.isString(c0.host)?"host: string expected":null},c0.fromObject=function(c0){if(c0 instanceof c10.RouteRequest)return c0;var c1=new c10.RouteRequest;return null!=c0.app&&(c1.app=String(c0.app)),null!=c0.platform&&(c1.platform=0|c0.platform),null!=c0.pushType&&(c1.pushType=0|c0.pushType),null!=c0.deviceName&&(c1.deviceName=String(c0.deviceName)),null!=c0.deviceVersion&&(c1.deviceVersion=String(c0.deviceVersion)),null!=c0.phoneName&&(c1.phoneName=String(c0.phoneName)),null!=c0.language&&(c1.language=String(c0.language)),null!=c0.carrierName&&(c1.carrierName=String(c0.carrierName)),null!=c0.appVersion&&(c1.appVersion=String(c0.appVersion)),null!=c0.sdkVersion&&(c1.sdkVersion=String(c0.sdkVersion)),null!=c0.wxAppId&&(c1.wxAppId=String(c0.wxAppId)),null!=c0.wxAppKey&&(c1.wxAppKey=String(c0.wxAppKey)),null!=c0.webAppId&&(c1.webAppId=String(c0.webAppId)),null!=c0.webAppKey&&(c1.webAppKey=String(c0.webAppKey)),null!=c0.host&&(c1.host=String(c0.host)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.app="",c2.platform=0,c2.pushType=0,c2.deviceName="",c2.deviceVersion="",c2.phoneName="",c2.language="",c2.carrierName="",c2.appVersion="",c2.sdkVersion="",c2.wxAppId="",c2.wxAppKey="",c2.webAppId="",c2.webAppKey="",c2.host=""),null!=c0.app&&c0.hasOwnProperty("app")&&(c2.app=c0.app),null!=c0.platform&&c0.hasOwnProperty("platform")&&(c2.platform=c0.platform),null!=c0.pushType&&c0.hasOwnProperty("pushType")&&(c2.pushType=c0.pushType),null!=c0.deviceName&&c0.hasOwnProperty("deviceName")&&(c2.deviceName=c0.deviceName),null!=c0.deviceVersion&&c0.hasOwnProperty("deviceVersion")&&(c2.deviceVersion=c0.deviceVersion),null!=c0.phoneName&&c0.hasOwnProperty("phoneName")&&(c2.phoneName=c0.phoneName),null!=c0.language&&c0.hasOwnProperty("language")&&(c2.language=c0.language),null!=c0.carrierName&&c0.hasOwnProperty("carrierName")&&(c2.carrierName=c0.carrierName),null!=c0.appVersion&&c0.hasOwnProperty("appVersion")&&(c2.appVersion=c0.appVersion),null!=c0.sdkVersion&&c0.hasOwnProperty("sdkVersion")&&(c2.sdkVersion=c0.sdkVersion),null!=c0.wxAppId&&c0.hasOwnProperty("wxAppId")&&(c2.wxAppId=c0.wxAppId),null!=c0.wxAppKey&&c0.hasOwnProperty("wxAppKey")&&(c2.wxAppKey=c0.wxAppKey),null!=c0.webAppId&&c0.hasOwnProperty("webAppId")&&(c2.webAppId=c0.webAppId),null!=c0.webAppKey&&c0.hasOwnProperty("webAppKey")&&(c2.webAppKey=c0.webAppKey),null!=c0.host&&c0.hasOwnProperty("host")&&(c2.host=c0.host),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.AddressTriple=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.host=c0.string();break;case 2:c3.longPort=c0.int32();break;case 3:c3.shortPort=c0.int32();break;case 4:c3.wssPort=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("host"))throw c9.ProtocolError("missing required 'host'",{instance:c3});if(!c3.hasOwnProperty("longPort"))throw c9.ProtocolError("missing required 'longPort'",{instance:c3});if(!c3.hasOwnProperty("shortPort"))throw c9.ProtocolError("missing required 'shortPort'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.host)?c9.isInteger(c0.longPort)?c9.isInteger(c0.shortPort)?null!=c0.wssPort&&c0.hasOwnProperty("wssPort")&&!c9.isInteger(c0.wssPort)?"wssPort: integer expected":null:"shortPort: integer expected":"longPort: integer expected":"host: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.AddressTriple)return c0;var c1=new c10.AddressTriple;return null!=c0.host&&(c1.host=String(c0.host)),null!=c0.longPort&&(c1.longPort=0|c0.longPort),null!=c0.shortPort&&(c1.shortPort=0|c0.shortPort),null!=c0.wssPort&&(c1.wssPort=0|c0.wssPort),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.host="",c2.longPort=0,c2.shortPort=0,c2.wssPort=0),null!=c0.host&&c0.hasOwnProperty("host")&&(c2.host=c0.host),null!=c0.longPort&&c0.hasOwnProperty("longPort")&&(c2.longPort=c0.longPort),null!=c0.shortPort&&c0.hasOwnProperty("shortPort")&&(c2.shortPort=c0.shortPort),null!=c0.wssPort&&c0.hasOwnProperty("wssPort")&&(c2.wssPort=c0.wssPort),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.RouteResponse=function(){function c0(c0){if(this.candidate=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.host=c0.string();break;case 2:c3.longPort=c0.int32();break;case 3:c3.shortPort=c0.int32();break;case 4:c3.thumbPara=c0.string();break;case 5:c3.node=c0.string();break;case 6:c3.commercial=c0.int32();break;case 7:c3.wssPort=c0.int32();break;case 8:c3.candidate&&c3.candidate.length||(c3.candidate=[]),c3.candidate.push(c10.AddressTriple.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("host"))throw c9.ProtocolError("missing required 'host'",{instance:c3});if(!c3.hasOwnProperty("longPort"))throw c9.ProtocolError("missing required 'longPort'",{instance:c3});if(!c3.hasOwnProperty("shortPort"))throw c9.ProtocolError("missing required 'shortPort'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.host))return"host: string expected";if(!c9.isInteger(c0.longPort))return"longPort: integer expected";if(!c9.isInteger(c0.shortPort))return"shortPort: integer expected";if(null!=c0.thumbPara&&c0.hasOwnProperty("thumbPara")&&!c9.isString(c0.thumbPara))return"thumbPara: string expected";if(null!=c0.node&&c0.hasOwnProperty("node")&&!c9.isString(c0.node))return"node: string expected";if(null!=c0.commercial&&c0.hasOwnProperty("commercial")&&!c9.isInteger(c0.commercial))return"commercial: integer expected";if(null!=c0.wssPort&&c0.hasOwnProperty("wssPort")&&!c9.isInteger(c0.wssPort))return"wssPort: integer expected";if(null!=c0.candidate&&c0.hasOwnProperty("candidate")){if(!Array.isArray(c0.candidate))return"candidate: array expected";for(var c1=0;c10?c6-4:c6;for(c2=0;c2>16&255,c8[c10++]=c1>>8&255,c8[c10++]=255&c1;2===c7&&(c1=c4[c0.charCodeAt(c2)]<<2|c4[c0.charCodeAt(c2+1)]>>4,c8[c10++]=255&c1);1===c7&&(c1=c4[c0.charCodeAt(c2)]<<10|c4[c0.charCodeAt(c2+1)]<<4|c4[c0.charCodeAt(c2+2)]>>2,c8[c10++]=c1>>8&255,c8[c10++]=255&c1);return c8},c1.fromByteArray=function(c0){for(var c1,c2=c0.length,c4=c2%3,c5=[],c6=16383,c7=0,c8=c2-c4;c7c8?c8:c7+c6));1===c4?(c1=c0[c2-1],c5.push(c3[c1>>2]+c3[c1<<4&63]+"==")):2===c4&&(c1=(c0[c2-2]<<8)+c0[c2-1],c5.push(c3[c1>>10]+c3[c1>>4&63]+c3[c1<<2&63]+"="));return c5.join("")};for(var c3=[],c4=[],c5="undefined"!=typeof Uint8Array?Uint8Array:Array,c6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c7=0,c8=c6.length;c70)throw new Error("Invalid string. Length must be a multiple of 4");var c2=c0.indexOf("=");return-1===c2&&(c2=c1),[c2,c2===c1?0:4-c2%4]}function c10(c0,c1,c2){for(var c4,c5,c6=[],c7=c1;c7>18&63]+c3[c5>>12&63]+c3[c5>>6&63]+c3[63&c5]);return c6.join("")}c4["-".charCodeAt(0)]=62,c4["_".charCodeAt(0)]=63},function(c0,c1){var c2={}.toString;c0.exports=Array.isArray||function(c0){return"[object Array]"==c2.call(c0)}},function(c0,c1,c2){c0.exports=!c2(8)&&!c2(21)((function(){return 7!=Object.defineProperty(c2(66)("div"),"a",{get:function(){return 7}}).a}))},function(c0,c1,c2){c0.exports=c2(18)},function(c0,c1,c2){var c3=c2(9),c4=c2(13),c5=c2(40);c0.exports=c2(8)?Object.defineProperties:function(c0,c1){c4(c0);for(var c2,c6=c5(c1),c7=c6.length,c8=0;c7>c8;)c3.f(c0,c2=c6[c8++],c1[c2]);return c0}},function(c0,c1,c2){var c3=c2(22),c4=c2(27),c5=c2(187)(!1),c6=c2(69)("IE_PROTO");c0.exports=function(c0,c1){var c2,c7=c4(c0),c8=0,c9=[];for(c2 in c7)c2!=c6&&c3(c7,c2)&&c9.push(c2);for(;c1.length>c8;)c3(c7,c2=c1[c8++])&&(~c5(c9,c2)||c9.push(c2));return c9}},function(c0,c1,c2){var c3=c2(4).document;c0.exports=c3&&c3.documentElement},function(c0,c1,c2){var c3=c2(13);c0.exports=function(c0,c1,c2,c4){try{return c4?c1(c3(c2)[0],c2[1]):c1(c2)}catch(c1){var c5=c0.return;throw void 0!==c5&&c3(c5.call(c0)),c1}}},function(c0,c1,c2){var c3=c2(39),c4=c2(5)("iterator"),c5=Array.prototype;c0.exports=function(c0){return void 0!==c0&&(c3.Array===c0||c5[c4]===c0)}},function(c0,c1,c2){var c3=c2(5)("iterator"),c4=!1;try{var c5=[7][c3]();c5.return=function(){c4=!0},Array.from(c5,(function(){throw 2}))}catch(c0){}c0.exports=function(c0,c1){if(!c1&&!c4)return!1;var c2=!1;try{var c5=[7],c6=c5[c3]();c6.next=function(){return{done:c2=!0}},c5[c3]=function(){return c6},c0(c5)}catch(c0){}return c2}},function(c0,c1,c2){c0.exports={default:c2(192),__esModule:!0}},function(c0,c1){c0.exports=function(c0,c1){return{value:c1,done:!!c0}}},function(c0,c1,c2){"use strict";var c3=c2(9).f,c4=c2(49),c5=c2(74),c6=c2(17),c7=c2(75),c8=c2(44),c9=c2(65),c10=c2(108),c11=c2(110),c12=c2(8),c13=c2(53).fastKey,c14=c2(76),c15=c12?"_s":"size",c16=function(c0,c1){var c2,c3=c13(c1);if("F"!==c3)return c0._i[c3];for(c2=c0._f;c2;c2=c2.n)if(c2.k==c1)return c2};c0.exports={getConstructor:function(c0,c1,c2,c9){var c10=c0((function(c0,c3){c7(c0,c10,c1,"_i"),c0._t=c1,c0._i=c4(null),c0._f=void 0,c0._l=void 0,c0[c15]=0,null!=c3&&c8(c3,c2,c0[c9],c0)}));return c5(c10.prototype,{clear:function(){for(var c0=c14(this,c1),c2=c0._i,c3=c0._f;c3;c3=c3.n)c3.r=!0,c3.p&&(c3.p=c3.p.n=void 0),delete c2[c3.i];c0._f=c0._l=void 0,c0[c15]=0},delete:function(c0){var c2=c14(this,c1),c3=c16(c2,c0);if(c3){var c4=c3.n,c5=c3.p;delete c2._i[c3.i],c3.r=!0,c5&&(c5.n=c4),c4&&(c4.p=c5),c2._f==c3&&(c2._f=c4),c2._l==c3&&(c2._l=c5),c2[c15]--}return!!c3},forEach:function(c0){c14(this,c1);for(var c2,c3=c6(c0,arguments.length>1?arguments[1]:void 0,3);c2=c2?c2.n:this._f;)for(c3(c2.v,c2.k,this);c2&&c2.r;)c2=c2.p},has:function(c0){return!!c16(c14(this,c1),c0)}}),c12&&c3(c10.prototype,"size",{get:function(){return c14(this,c1)[c15]}}),c10},def:function(c0,c1,c2){var c3,c4,c5=c16(c0,c1);return c5?c5.v=c2:(c0._l=c5={i:c4=c13(c1,!0),k:c1,v:c2,p:c3=c0._l,n:void 0,r:!1},c0._f||(c0._f=c5),c3&&(c3.n=c5),c0[c15]++,"F"!==c4&&(c0._i[c4]=c5)),c0},getEntry:c16,setStrong:function(c0,c1,c2){c9(c0,c1,(function(c0,c2){this._t=c14(c0,c1),this._k=c2,this._l=void 0}),(function(){for(var c0=this,c1=c0._k,c2=c0._l;c2&&c2.r;)c2=c2.p;return c0._t&&(c0._l=c2=c2?c2.n:c0._t._f)?c10(0,"keys"==c1?c2.k:"values"==c1?c2.v:[c2.k,c2.v]):(c0._t=void 0,c10(1))}),c2?"entries":"values",!c2,!0),c11(c1)}}},function(c0,c1,c2){"use strict";var c3=c2(4),c4=c2(1),c5=c2(9),c6=c2(8),c7=c2(5)("species");c0.exports=function(c0){var c1="function"==typeof c4[c0]?c4[c0]:c3[c0];c6&&c1&&!c1[c7]&&c5.f(c1,c7,{configurable:!0,get:function(){return this}})}},function(c0,c1,c2){"use strict";var c3=c2(4),c4=c2(2),c5=c2(53),c6=c2(21),c7=c2(18),c8=c2(74),c9=c2(44),c10=c2(75),c11=c2(7),c12=c2(42),c13=c2(9).f,c14=c2(196)(0),c15=c2(8);c0.exports=function(c0,c1,c2,c16,c17,c18){var c19=c3[c0],c20=c19,c21=c17?"set":"add",c22=c20&&c20.prototype,c23={};return c15&&"function"==typeof c20&&(c18||c22.forEach&&!c6((function(){(new c20).entries().next()})))?(c20=c1((function(c1,c2){c10(c1,c20,c0,"_c"),c1._c=new c19,null!=c2&&c9(c2,c17,c1[c21],c1)})),c14("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(c0){var c1="add"==c0||"set"==c0;!(c0 in c22)||c18&&"clear"==c0||c7(c20.prototype,c0,(function(c2,c3){if(c10(this,c20,c0),!c1&&c18&&!c11(c2))return"get"==c0&&void 0;var c4=this._c[c0](0===c2?0:c2,c3);return c1?this:c4}))})),c18||c13(c20.prototype,"size",{get:function(){return this._c.size}})):(c20=c16.getConstructor(c1,c0,c17,c21),c8(c20.prototype,c2),c5.NEED=!0),c12(c20,c0),c23[c0]=c20,c4(c4.G+c4.W+c4.F,c23),c18||c16.setStrong(c20,c0,c17),c20}},function(c0,c1,c2){var c3=c2(41);c0.exports=Array.isArray||function(c0){return"Array"==c3(c0)}},function(c0,c1,c2){var c3=c2(73),c4=c2(200);c0.exports=function(c0){return function(){if(c3(this)!=c0)throw TypeError(c0+"#toJSON isn't generic");return c4(this)}}},function(c0,c1,c2){"use strict";var c3=c2(2);c0.exports=function(c0){c3(c3.S,c0,{of:function(){for(var c0=arguments.length,c1=new Array(c0);c0--;)c1[c0]=arguments[c0];return new this(c1)}})}},function(c0,c1,c2){"use strict";var c3=c2(2),c4=c2(37),c5=c2(17),c6=c2(44);c0.exports=function(c0){c3(c3.S,c0,{from:function(c0){var c1,c2,c3,c7,c8=arguments[1];return c4(this),(c1=void 0!==c8)&&c4(c8),null==c0?new this:(c2=[],c1?(c3=0,c7=c5(c8,arguments[2],2),c6(c0,!1,(function(c0){c2.push(c7(c0,c3++))}))):c6(c0,!1,c2.push,c2),new this(c2))}})}},function(c0,c1,c2){var c3=c2(13),c4=c2(37),c5=c2(5)("species");c0.exports=function(c0,c1){var c2,c6=c3(c0).constructor;return void 0===c6||null==(c2=c3(c6)[c5])?c1:c4(c2)}},function(c0,c1,c2){var c3,c4,c5,c6=c2(17),c7=c2(205),c8=c2(103),c9=c2(66),c10=c2(4),c11=c10.process,c12=c10.setImmediate,c13=c10.clearImmediate,c14=c10.MessageChannel,c15=c10.Dispatch,c16=0,c17={},c18="onreadystatechange",c19=function(){var c0=+this;if(c17.hasOwnProperty(c0)){var c1=c17[c0];delete c17[c0],c1()}},c20=function(c0){c19.call(c0.data)};c12&&c13||(c12=function(c0){for(var c1=[],c2=1;arguments.length>c2;)c1.push(arguments[c2++]);return c17[++c16]=function(){c7("function"==typeof c0?c0:Function(c0),c1)},c3(c16),c16},c13=function(c0){delete c17[c0]},"process"==c2(41)(c11)?c3=function(c0){c11.nextTick(c6(c19,c0,1))}:c15&&c15.now?c3=function(c0){c15.now(c6(c19,c0,1))}:c14?(c5=(c4=new c14).port2,c4.port1.onmessage=c20,c3=c6(c5.postMessage,c5,1)):c10.addEventListener&&"function"==typeof postMessage&&!c10.importScripts?(c3=function(c0){c10.postMessage(c0+"","*")},c10.addEventListener("message",c20,!1)):c3=c18 in c9("script")?function(c0){c8.appendChild(c9("script")).onreadystatechange=function(){c8.removeChild(this),c19.call(c0)}}:function(c0){setTimeout(c6(c19,c0,1),0)}),c0.exports={set:c12,clear:c13}},function(c0,c1){c0.exports=function(c0){try{return{e:!1,v:c0()}}catch(c0){return{e:!0,v:c0}}}},function(c0,c1,c2){var c3=c2(13),c4=c2(7),c5=c2(78);c0.exports=function(c0,c1){if(c3(c0),c4(c1)&&c1.constructor===c0)return c1;var c2=c5.f(c0);return(0,c2.resolve)(c1),c2.promise}},function(c0,c1,c2){c0.exports={default:c2(214),__esModule:!0}},function(c0,c1,c2){c0.exports={default:c2(218),__esModule:!0}},function(c0,c1,c2){c0.exports={default:c2(220),__esModule:!0}},function(c0,c1,c2){"use strict";c1.__esModule=!0;var c3,c4=c2(124),c5=(c3=c4)&&c3.__esModule?c3:{default:c3};c1.default=function(){function c0(c0,c1){for(var c2=0;c2>>7)^(c14<<14|c14>>>18)^c14>>>3,c16=c9[c13-2],c17=(c16<<15|c16>>>17)^(c16<<13|c16>>>19)^c16>>>10;c9[c13]=c15+c9[c13-7]+c17+c9[c13-16]}var c18=c3&c4^c3&c5^c4&c5,c19=(c3<<30|c3>>>2)^(c3<<19|c3>>>13)^(c3<<10|c3>>>22),c20=c12+((c7<<26|c7>>>6)^(c7<<21|c7>>>11)^(c7<<7|c7>>>25))+(c7&c10^~c7&c11)+c8[c13]+c9[c13];c12=c11,c11=c10,c10=c7,c7=c6+c20|0,c6=c5,c5=c4,c4=c3,c3=c20+(c19+c18)|0}c2[0]=c2[0]+c3|0,c2[1]=c2[1]+c4|0,c2[2]=c2[2]+c5|0,c2[3]=c2[3]+c6|0,c2[4]=c2[4]+c7|0,c2[5]=c2[5]+c10|0,c2[6]=c2[6]+c11|0,c2[7]=c2[7]+c12|0},_doFinalize:function(){var c1=this._data,c2=c1.words,c3=8*this._nDataBytes,c4=8*c1.sigBytes;return c2[c4>>>5]|=128<<24-c4%32,c2[14+(c4+64>>>9<<4)]=c0.floor(c3/4294967296),c2[15+(c4+64>>>9<<4)]=c3,c1.sigBytes=4*c2.length,this._process(),this._hash},clone:function(){var c0=c5.clone.call(this);return c0._hash=this._hash.clone(),c0}});c1.SHA256=c5._createHelper(c10),c1.HmacSHA256=c5._createHmacHelper(c10)}(Math),c3.SHA256)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),c2(56),function(){var c0=c3,c1=c0.lib.Hasher,c2=c0.x64,c4=c2.Word,c5=c2.WordArray,c6=c0.algo;function c7(){return c4.create.apply(c4,arguments)}var c8=[c7(1116352408,3609767458),c7(1899447441,602891725),c7(3049323471,3964484399),c7(3921009573,2173295548),c7(961987163,4081628472),c7(1508970993,3053834265),c7(2453635748,2937671579),c7(2870763221,3664609560),c7(3624381080,2734883394),c7(310598401,1164996542),c7(607225278,1323610764),c7(1426881987,3590304994),c7(1925078388,4068182383),c7(2162078206,991336113),c7(2614888103,633803317),c7(3248222580,3479774868),c7(3835390401,2666613458),c7(4022224774,944711139),c7(264347078,2341262773),c7(604807628,2007800933),c7(770255983,1495990901),c7(1249150122,1856431235),c7(1555081692,3175218132),c7(1996064986,2198950837),c7(2554220882,3999719339),c7(2821834349,766784016),c7(2952996808,2566594879),c7(3210313671,3203337956),c7(3336571891,1034457026),c7(3584528711,2466948901),c7(113926993,3758326383),c7(338241895,168717936),c7(666307205,1188179964),c7(773529912,1546045734),c7(1294757372,1522805485),c7(1396182291,2643833823),c7(1695183700,2343527390),c7(1986661051,1014477480),c7(2177026350,1206759142),c7(2456956037,344077627),c7(2730485921,1290863460),c7(2820302411,3158454273),c7(3259730800,3505952657),c7(3345764771,106217008),c7(3516065817,3606008344),c7(3600352804,1432725776),c7(4094571909,1467031594),c7(275423344,851169720),c7(430227734,3100823752),c7(506948616,1363258195),c7(659060556,3750685593),c7(883997877,3785050280),c7(958139571,3318307427),c7(1322822218,3812723403),c7(1537002063,2003034995),c7(1747873779,3602036899),c7(1955562222,1575990012),c7(2024104815,1125592928),c7(2227730452,2716904306),c7(2361852424,442776044),c7(2428436474,593698344),c7(2756734187,3733110249),c7(3204031479,2999351573),c7(3329325298,3815920427),c7(3391569614,3928383900),c7(3515267271,566280711),c7(3940187606,3454069534),c7(4118630271,4000239992),c7(116418474,1914138554),c7(174292421,2731055270),c7(289380356,3203993006),c7(460393269,320620315),c7(685471733,587496836),c7(852142971,1086792851),c7(1017036298,365543100),c7(1126000580,2618297676),c7(1288033470,3409855158),c7(1501505948,4234509866),c7(1607167915,987167468),c7(1816402316,1246189591)],c9=[];!function(){for(var c0=0;c0<80;c0++)c9[c0]=c7()}();var c10=c6.SHA512=c1.extend({_doReset:function(){this._hash=new c5.init([new c4.init(1779033703,4089235720),new c4.init(3144134277,2227873595),new c4.init(1013904242,4271175723),new c4.init(2773480762,1595750129),new c4.init(1359893119,2917565137),new c4.init(2600822924,725511199),new c4.init(528734635,4215389547),new c4.init(1541459225,327033209)])},_doProcessBlock:function(c0,c1){for(var c2=this._hash.words,c3=c2[0],c4=c2[1],c5=c2[2],c6=c2[3],c7=c2[4],c10=c2[5],c11=c2[6],c12=c2[7],c13=c3.high,c14=c3.low,c15=c4.high,c16=c4.low,c17=c5.high,c18=c5.low,c19=c6.high,c20=c6.low,c21=c7.high,c22=c7.low,c23=c10.high,c24=c10.low,c25=c11.high,c26=c11.low,c27=c12.high,c28=c12.low,c29=c13,c30=c14,c31=c15,c32=c16,c33=c17,c34=c18,c35=c19,c36=c20,c37=c21,c38=c22,c39=c23,c40=c24,c41=c25,c42=c26,c43=c27,c44=c28,c45=0;c45<80;c45++){var c46=c9[c45];if(c45<16)var c47=c46.high=0|c0[c1+2*c45],c48=c46.low=0|c0[c1+2*c45+1];else{var c49=c9[c45-15],c50=c49.high,c51=c49.low,c52=(c50>>>1|c51<<31)^(c50>>>8|c51<<24)^c50>>>7,c53=(c51>>>1|c50<<31)^(c51>>>8|c50<<24)^(c51>>>7|c50<<25),c54=c9[c45-2],c55=c54.high,c56=c54.low,c57=(c55>>>19|c56<<13)^(c55<<3|c56>>>29)^c55>>>6,c58=(c56>>>19|c55<<13)^(c56<<3|c55>>>29)^(c56>>>6|c55<<26),c59=c9[c45-7],c60=c59.high,c61=c59.low,c62=c9[c45-16],c63=c62.high,c64=c62.low;c47=(c47=(c47=c52+c60+((c48=c53+c61)>>>0>>0?1:0))+c57+((c48+=c58)>>>0>>0?1:0))+c63+((c48+=c64)>>>0>>0?1:0),c46.high=c47,c46.low=c48}var c65,c66=c37&c39^~c37&c41,c67=c38&c40^~c38&c42,c68=c29&c31^c29&c33^c31&c33,c69=c30&c32^c30&c34^c32&c34,c70=(c29>>>28|c30<<4)^(c29<<30|c30>>>2)^(c29<<25|c30>>>7),c71=(c30>>>28|c29<<4)^(c30<<30|c29>>>2)^(c30<<25|c29>>>7),c72=(c37>>>14|c38<<18)^(c37>>>18|c38<<14)^(c37<<23|c38>>>9),c73=(c38>>>14|c37<<18)^(c38>>>18|c37<<14)^(c38<<23|c37>>>9),c74=c8[c45],c75=c74.high,c76=c74.low,c77=c43+c72+((c65=c44+c73)>>>0>>0?1:0),c78=c71+c69;c43=c41,c44=c42,c41=c39,c42=c40,c39=c37,c40=c38,c37=c35+(c77=(c77=(c77=c77+c66+((c65+=c67)>>>0>>0?1:0))+c75+((c65+=c76)>>>0>>0?1:0))+c47+((c65+=c48)>>>0>>0?1:0))+((c38=c36+c65|0)>>>0>>0?1:0)|0,c35=c33,c36=c34,c33=c31,c34=c32,c31=c29,c32=c30,c29=c77+(c70+c68+(c78>>>0>>0?1:0))+((c30=c65+c78|0)>>>0>>0?1:0)|0}c14=c3.low=c14+c30,c3.high=c13+c29+(c14>>>0>>0?1:0),c16=c4.low=c16+c32,c4.high=c15+c31+(c16>>>0>>0?1:0),c18=c5.low=c18+c34,c5.high=c17+c33+(c18>>>0>>0?1:0),c20=c6.low=c20+c36,c6.high=c19+c35+(c20>>>0>>0?1:0),c22=c7.low=c22+c38,c7.high=c21+c37+(c22>>>0>>0?1:0),c24=c10.low=c24+c40,c10.high=c23+c39+(c24>>>0>>0?1:0),c26=c11.low=c26+c42,c11.high=c25+c41+(c26>>>0>>0?1:0),c28=c12.low=c28+c44,c12.high=c27+c43+(c28>>>0>>0?1:0)},_doFinalize:function(){var c0=this._data,c1=c0.words,c2=8*this._nDataBytes,c3=8*c0.sigBytes;return c1[c3>>>5]|=128<<24-c3%32,c1[30+(c3+128>>>10<<5)]=Math.floor(c2/4294967296),c1[31+(c3+128>>>10<<5)]=c2,c0.sigBytes=4*c1.length,this._process(),this._hash.toX32()},clone:function(){var c0=c1.clone.call(this);return c0._hash=this._hash.clone(),c0},blockSize:32});c0.SHA512=c1._createHelper(c10),c0.HmacSHA512=c1._createHmacHelper(c10)}(),c3.SHA512)},function(c0,c1){function c2(c0,c1){const c2=[],c3=~~(c1/8),c4=c1%8;for(let c1=0,c5=c0.length;c1>>8-c4&255);return c2}function c3(c0,c1){const c2=[];for(let c3=c0.length-1;c3>=0;c3--)c2[c3]=255&(c0[c3]^c1[c3]);return c2}function c4(c0,c1){const c2=[];for(let c3=c0.length-1;c3>=0;c3--)c2[c3]=c0[c3]&c1[c3]&255;return c2}function c5(c0,c1){const c2=[];for(let c3=c0.length-1;c3>=0;c3--)c2[c3]=255&(c0[c3]|c1[c3]);return c2}function c6(c0,c1){const c2=[];let c3=0;for(let c4=c0.length-1;c4>=0;c4--){const c5=c0[c4]+c1[c4]+c3;c5>255?(c3=1,c2[c4]=255&c5):(c3=0,c2[c4]=255&c5)}return c2}function c7(c0){return c3(c3(c0,c2(c0,9)),c2(c0,17))}function c8(c0,c1,c2,c6){return c6>=0&&c6<=15?c3(c3(c0,c1),c2):c5(c5(c4(c0,c1),c4(c0,c2)),c4(c1,c2))}function c9(c0,c1,c2,c6){return c6>=0&&c6<=15?c3(c3(c0,c1),c2):c5(c4(c0,c1),c4(function(c0){const c1=[];for(let c2=c0.length-1;c2>=0;c2--)c1[c2]=255&~c0[c2];return c1}(c0),c2))}function c10(c0,c1){const c4=[],c5=[];for(let c0=0;c0<16;c0++){const c2=4*c0;c4.push(c1.slice(c2,c2+4))}for(let c0=16;c0<68;c0++)c4.push(c3(c3((c10=c3(c3(c4[c0-16],c4[c0-9]),c2(c4[c0-3],15)),c3(c3(c10,c2(c10,15)),c2(c10,23))),c2(c4[c0-13],7)),c4[c0-6]));var c10;for(let c0=0;c0<64;c0++)c5.push(c3(c4[c0],c4[c0+4]));const c11=[121,204,69,25],c12=[122,135,157,138];let c13,c14,c15,c16,c17=c0.slice(0,4),c18=c0.slice(4,8),c19=c0.slice(8,12),c20=c0.slice(12,16),c21=c0.slice(16,20),c22=c0.slice(20,24),c23=c0.slice(24,28),c24=c0.slice(28,32);for(let c0=0;c0<64;c0++){const c1=c0>=0&&c0<=15?c11:c12;c13=c2(c6(c6(c2(c17,12),c21),c2(c1,c0)),7),c14=c3(c13,c2(c17,12)),c15=c6(c6(c6(c8(c17,c18,c19,c0),c20),c14),c5[c0]),c16=c6(c6(c6(c9(c21,c22,c23,c0),c24),c13),c4[c0]),c20=c19,c19=c2(c18,9),c18=c17,c17=c15,c24=c23,c23=c2(c22,19),c22=c21,c21=c7(c16)}return c3([].concat(c17,c18,c19,c20,c21,c22,c23,c24),c0)}c0.exports=function(c0){let c1=8*c0.length,c2=c1%512;c2=c2>=448?512-c2%448-1:448-c2-1;const c3=new Array((c2-7)/8);for(let c0=0,c1=c3.length;c0=0;c0--)if(c1.length>8){const c2=c1.length-8;c4[c0]=parseInt(c1.substr(c2),2),c1=c1.substr(0,c2)}else c1.length>0?(c4[c0]=parseInt(c1,2),c1=""):c4[c0]=0;const c5=[].concat(c0,[128],c3,c4),c6=c5.length/64;let c7=[115,128,22,111,73,20,178,185,23,36,66,215,218,138,6,0,169,111,48,188,22,49,56,170,227,141,238,77,176,251,14,78];for(let c0=0;c00?("string"==typeof c1||c6.objectMode||Object.getPrototypeOf(c1)===c9.prototype||(c1=function(c0){return c9.from(c0)}(c1)),c3?c6.endEmitted?c0.emit("error",new Error("stream.unshift() after end event")):c21(c0,c6,c1,!0):c6.ended?c0.emit("error",new Error("stream.push() after EOF")):(c6.reading=!1,c6.decoder&&!c2?(c1=c6.decoder.write(c1),c6.objectMode||0!==c1.length?c21(c0,c6,c1,!1):c26(c0,c6)):c21(c0,c6,c1,!1))):c3||(c6.reading=!1));return function(c0){return!c0.ended&&(c0.needReadable||c0.lengthc1.highWaterMark&&(c1.highWaterMark=function(c0){return c0>=c22?c0=c22:(c0--,c0|=c0>>>1,c0|=c0>>>2,c0|=c0>>>4,c0|=c0>>>8,c0|=c0>>>16,c0++),c0}(c0)),c0<=c1.length?c0:c1.ended?c1.length:(c1.needReadable=!0,0))}function c24(c0){var c1=c0._readableState;c1.needReadable=!1,c1.emittedReadable||(c13("emitReadable",c1.flowing),c1.emittedReadable=!0,c1.sync?c4.nextTick(c25,c0):c25(c0))}function c25(c0){c13("emit readable"),c0.emit("readable"),c30(c0)}function c26(c0,c1){c1.readingMore||(c1.readingMore=!0,c4.nextTick(c27,c0,c1))}function c27(c0,c1){for(var c2=c1.length;!c1.reading&&!c1.flowing&&!c1.ended&&c1.length=c1.length?(c2=c1.decoder?c1.buffer.join(""):1===c1.buffer.length?c1.buffer.head.data:c1.buffer.concat(c1.length),c1.buffer.clear()):c2=function(c0,c1,c2){var c3;c0c5.length?c5.length:c0;if(c6===c5.length?c4+=c5:c4+=c5.slice(0,c0),0===(c0-=c6)){c6===c5.length?(++c3,c2.next?c1.head=c2.next:c1.head=c1.tail=null):(c1.head=c2,c2.data=c5.slice(c6));break}++c3}return c1.length-=c3,c4}(c0,c1):function(c0,c1){var c2=c9.allocUnsafe(c0),c3=c1.head,c4=1;c3.data.copy(c2),c0-=c3.data.length;for(;c3=c3.next;){var c5=c3.data,c6=c0>c5.length?c5.length:c0;if(c5.copy(c2,c2.length-c0,0,c6),0===(c0-=c6)){c6===c5.length?(++c4,c3.next?c1.head=c3.next:c1.head=c1.tail=null):(c1.head=c3,c3.data=c5.slice(c6));break}++c4}return c1.length-=c4,c2}(c0,c1);return c3}(c0,c1.buffer,c1.decoder),c2);var c2}function c32(c0){var c1=c0._readableState;if(c1.length>0)throw new Error('"endReadable()" called on non-empty stream');c1.endEmitted||(c1.ended=!0,c4.nextTick(c33,c1,c0))}function c33(c0,c1){c0.endEmitted||0!==c0.length||(c0.endEmitted=!0,c1.readable=!1,c1.emit("end"))}function c34(c0,c1){for(var c2=0,c3=c0.length;c2=c1.highWaterMark||c1.ended))return c13("read: emitReadable",c1.length,c1.ended),0===c1.length&&c1.ended?c32(this):c24(this),null;if(0===(c0=c23(c0,c1))&&c1.ended)return 0===c1.length&&c32(this),null;var c3,c4=c1.needReadable;return c13("need readable",c4),(0===c1.length||c1.length-c00?c31(c0,c1):null)?(c1.needReadable=!0,c0=0):c1.length-=c0,0===c1.length&&(c1.ended||(c1.needReadable=!0),c2!==c0&&c1.ended&&c32(this)),null!==c3&&this.emit("data",c3),c3},c19.prototype._read=function(c0){this.emit("error",new Error("_read() is not implemented"))},c19.prototype.pipe=function(c0,c1){var c2=this,c5=this._readableState;switch(c5.pipesCount){case 0:c5.pipes=c0;break;case 1:c5.pipes=[c5.pipes,c0];break;default:c5.pipes.push(c0)}c5.pipesCount+=1,c13("pipe count=%d opts=%j",c5.pipesCount,c1);var c8=(!c1||!1!==c1.end)&&c0!==c3.stdout&&c0!==c3.stderr?c10:c19;function c9(c1,c3){c13("onunpipe"),c1===c2&&c3&&!1===c3.hasUnpiped&&(c3.hasUnpiped=!0,c13("cleanup"),c0.removeListener("close",c17),c0.removeListener("finish",c18),c0.removeListener("drain",c11),c0.removeListener("error",c16),c0.removeListener("unpipe",c9),c2.removeListener("end",c10),c2.removeListener("end",c19),c2.removeListener("data",c15),c12=!0,!c5.awaitDrain||c0._writableState&&!c0._writableState.needDrain||c11())}function c10(){c13("onend"),c0.end()}c5.endEmitted?c4.nextTick(c8):c2.once("end",c8),c0.on("unpipe",c9);var c11=function(c0){return function(){var c1=c0._readableState;c13("pipeOnDrain",c1.awaitDrain),c1.awaitDrain&&c1.awaitDrain--,0===c1.awaitDrain&&c7(c0,"data")&&(c1.flowing=!0,c30(c0))}}(c2);c0.on("drain",c11);var c12=!1;var c14=!1;function c15(c1){c13("ondata"),c14=!1,!1!==c0.write(c1)||c14||((1===c5.pipesCount&&c5.pipes===c0||c5.pipesCount>1&&-1!==c34(c5.pipes,c0))&&!c12&&(c13("false write response, pause",c2._readableState.awaitDrain),c2._readableState.awaitDrain++,c14=!0),c2.pause())}function c16(c1){c13("onerror",c1),c19(),c0.removeListener("error",c16),0===c7(c0,"error")&&c0.emit("error",c1)}function c17(){c0.removeListener("finish",c18),c19()}function c18(){c13("onfinish"),c0.removeListener("close",c17),c19()}function c19(){c13("unpipe"),c2.unpipe(c0)}return c2.on("data",c15),function(c0,c1,c2){if("function"==typeof c0.prependListener)return c0.prependListener(c1,c2);c0._events&&c0._events[c1]?c6(c0._events[c1])?c0._events[c1].unshift(c2):c0._events[c1]=[c2,c0._events[c1]]:c0.on(c1,c2)}(c0,"error",c16),c0.once("close",c17),c0.once("finish",c18),c0.emit("pipe",c2),c5.flowing||(c13("pipe resume"),c2.resume()),c0},c19.prototype.unpipe=function(c0){var c1=this._readableState,c2={hasUnpiped:!1};if(0===c1.pipesCount)return this;if(1===c1.pipesCount)return c0&&c0!==c1.pipes||(c0||(c0=c1.pipes),c1.pipes=null,c1.pipesCount=0,c1.flowing=!1,c0&&c0.emit("unpipe",this,c2)),this;if(!c0){var c3=c1.pipes,c4=c1.pipesCount;c1.pipes=null,c1.pipesCount=0,c1.flowing=!1;for(var c5=0;c5-1?c3:c5.nextTick;c18.WritableState=c17;var c9=c2(48);c9.inherits=c2(14);var c10={deprecate:c2(279)},c11=c2(134),c12=c2(10).Buffer,c13=c4.Uint8Array||function(){};var c14,c15=c2(135);function c16(){}function c17(c0,c1){c7=c7||c2(24),c0=c0||{};var c3=c1 instanceof c7;this.objectMode=!!c0.objectMode,c3&&(this.objectMode=this.objectMode||!!c0.writableObjectMode);var c4=c0.highWaterMark,c9=c0.writableHighWaterMark,c10=this.objectMode?16:16384;this.highWaterMark=c4||0===c4?c4:c3&&(c9||0===c9)?c9:c10,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c11=!1===c0.decodeStrings;this.decodeStrings=!c11,this.defaultEncoding=c0.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(c0){!function(c0,c1){var c2=c0._writableState,c3=c2.sync,c4=c2.writecb;if(function(c0){c0.writing=!1,c0.writecb=null,c0.length-=c0.writelen,c0.writelen=0}(c2),c1)!function(c0,c1,c2,c3,c4){--c1.pendingcb,c2?(c5.nextTick(c4,c3),c5.nextTick(c24,c0,c1),c0._writableState.errorEmitted=!0,c0.emit("error",c3)):(c4(c3),c0._writableState.errorEmitted=!0,c0.emit("error",c3),c24(c0,c1))}(c0,c2,c3,c1,c4);else{var c6=c22(c2);c6||c2.corked||c2.bufferProcessing||!c2.bufferedRequest||c21(c0,c2),c3?c8(c20,c0,c2,c6,c4):c20(c0,c2,c6,c4)}}(c1,c0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new c6(this)}function c18(c0){if(c7=c7||c2(24),!(c14.call(c18,this)||this instanceof c7))return new c18(c0);this._writableState=new c17(c0,this),this.writable=!0,c0&&("function"==typeof c0.write&&(this._write=c0.write),"function"==typeof c0.writev&&(this._writev=c0.writev),"function"==typeof c0.destroy&&(this._destroy=c0.destroy),"function"==typeof c0.final&&(this._final=c0.final)),c11.call(this)}function c19(c0,c1,c2,c3,c4,c5,c6){c1.writelen=c3,c1.writecb=c6,c1.writing=!0,c1.sync=!0,c2?c0._writev(c4,c1.onwrite):c0._write(c4,c5,c1.onwrite),c1.sync=!1}function c20(c0,c1,c2,c3){c2||function(c0,c1){0===c1.length&&c1.needDrain&&(c1.needDrain=!1,c0.emit("drain"))}(c0,c1),c1.pendingcb--,c3(),c24(c0,c1)}function c21(c0,c1){c1.bufferProcessing=!0;var c2=c1.bufferedRequest;if(c0._writev&&c2&&c2.next){var c3=c1.bufferedRequestCount,c4=new Array(c3),c5=c1.corkedRequestsFree;c5.entry=c2;for(var c7=0,c8=!0;c2;)c4[c7]=c2,c2.isBuf||(c8=!1),c2=c2.next,c7+=1;c4.allBuffers=c8,c19(c0,c1,!0,c1.length,c4,"",c5.finish),c1.pendingcb++,c1.lastBufferedRequest=null,c5.next?(c1.corkedRequestsFree=c5.next,c5.next=null):c1.corkedRequestsFree=new c6(c1),c1.bufferedRequestCount=0}else{for(;c2;){var c9=c2.chunk,c10=c2.encoding,c11=c2.callback;if(c19(c0,c1,!1,c1.objectMode?1:c9.length,c9,c10,c11),c2=c2.next,c1.bufferedRequestCount--,c1.writing)break}null===c2&&(c1.lastBufferedRequest=null)}c1.bufferedRequest=c2,c1.bufferProcessing=!1}function c22(c0){return c0.ending&&0===c0.length&&null===c0.bufferedRequest&&!c0.finished&&!c0.writing}function c23(c0,c1){c0._final((function(c2){c1.pendingcb--,c2&&c0.emit("error",c2),c1.prefinished=!0,c0.emit("prefinish"),c24(c0,c1)}))}function c24(c0,c1){var c2=c22(c1);return c2&&(!function(c0,c1){c1.prefinished||c1.finalCalled||("function"==typeof c0._final?(c1.pendingcb++,c1.finalCalled=!0,c5.nextTick(c23,c0,c1)):(c1.prefinished=!0,c0.emit("prefinish")))}(c0,c1),0===c1.pendingcb&&(c1.finished=!0,c0.emit("finish"))),c2}c9.inherits(c18,c11),c17.prototype.getBuffer=function(){for(var c0=this.bufferedRequest,c1=[];c0;)c1.push(c0),c0=c0.next;return c1},function(){try{Object.defineProperty(c17.prototype,"buffer",{get:c10.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(c0){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c14=Function.prototype[Symbol.hasInstance],Object.defineProperty(c18,Symbol.hasInstance,{value:function(c0){return!!c14.call(this,c0)||this===c18&&(c0&&c0._writableState instanceof c17)}})):c14=function(c0){return c0 instanceof this},c18.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},c18.prototype.write=function(c0,c1,c2){var c3,c4=this._writableState,c6=!1,c7=!c4.objectMode&&(c3=c0,c12.isBuffer(c3)||c3 instanceof c13);return c7&&!c12.isBuffer(c0)&&(c0=function(c0){return c12.from(c0)}(c0)),"function"==typeof c1&&(c2=c1,c1=null),c7?c1="buffer":c1||(c1=c4.defaultEncoding),"function"!=typeof c2&&(c2=c16),c4.ended?function(c0,c1){var c2=new Error("write after end");c0.emit("error",c2),c5.nextTick(c1,c2)}(this,c2):(c7||function(c0,c1,c2,c3){var c4=!0,c6=!1;return null===c2?c6=new TypeError("May not write null values to stream"):"string"==typeof c2||void 0===c2||c1.objectMode||(c6=new TypeError("Invalid non-string/buffer chunk")),c6&&(c0.emit("error",c6),c5.nextTick(c3,c6),c4=!1),c4}(this,c4,c0,c2))&&(c4.pendingcb++,c6=function(c0,c1,c2,c3,c4,c5){if(!c2){var c6=function(c0,c1,c2){c0.objectMode||!1===c0.decodeStrings||"string"!=typeof c1||(c1=c12.from(c1,c2));return c1}(c1,c3,c4);c3!==c6&&(c2=!0,c4="buffer",c3=c6)}var c7=c1.objectMode?1:c3.length;c1.length+=c7;var c8=c1.length-1))throw new TypeError("Unknown encoding: "+c0);return this._writableState.defaultEncoding=c0,this},Object.defineProperty(c18.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),c18.prototype._write=function(c0,c1,c2){c2(new Error("_write() is not implemented"))},c18.prototype._writev=null,c18.prototype.end=function(c0,c1,c2){var c3=this._writableState;"function"==typeof c0?(c2=c0,c0=null,c1=null):"function"==typeof c1&&(c2=c1,c1=null),null!=c0&&this.write(c0,c1),c3.corked&&(c3.corked=1,this.uncork()),c3.ending||c3.finished||function(c0,c1,c2){c1.ending=!0,c24(c0,c1),c2&&(c1.finished?c5.nextTick(c2):c0.once("finish",c2));c1.ended=!0,c0.writable=!1}(this,c3,c2)},Object.defineProperty(c18.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(c0){this._writableState&&(this._writableState.destroyed=c0)}}),c18.prototype.destroy=c15.destroy,c18.prototype._undestroy=c15.undestroy,c18.prototype._destroy=function(c0,c1){this.end(),c1(c0)}}).call(this,c2(6),c2(277).setImmediate,c2(12))},function(c0,c1,c2){"use strict";var c3=c2(10).Buffer,c4=c3.isEncoding||function(c0){switch((c0=""+c0)&&c0.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function c5(c0){var c1;switch(this.encoding=function(c0){var c1=function(c0){if(!c0)return"utf8";for(var c1;;)switch(c0){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return c0;default:if(c1)return;c0=(""+c0).toLowerCase(),c1=!0}}(c0);if("string"!=typeof c1&&(c3.isEncoding===c4||!c4(c0)))throw new Error("Unknown encoding: "+c0);return c1||c0}(c0),this.encoding){case"utf16le":this.text=c8,this.end=c9,c1=4;break;case"utf8":this.fillLast=c7,c1=4;break;case"base64":this.text=c10,this.end=c11,c1=3;break;default:return this.write=c12,void(this.end=c13)}this.lastNeed=0,this.lastTotal=0,this.lastChar=c3.allocUnsafe(c1)}function c6(c0){return c0<=127?0:c0>>5==6?2:c0>>4==14?3:c0>>3==30?4:c0>>6==2?-1:-2}function c7(c0){var c1=this.lastTotal-this.lastNeed,c2=function(c0,c1,c2){if(128!=(192&c1[0]))return c0.lastNeed=0,"�";if(c0.lastNeed>1&&c1.length>1){if(128!=(192&c1[1]))return c0.lastNeed=1,"�";if(c0.lastNeed>2&&c1.length>2&&128!=(192&c1[2]))return c0.lastNeed=2,"�"}}(this,c0);return void 0!==c2?c2:this.lastNeed<=c0.length?(c0.copy(this.lastChar,c1,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(c0.copy(this.lastChar,c1,0,c0.length),void(this.lastNeed-=c0.length))}function c8(c0,c1){if((c0.length-c1)%2==0){var c2=c0.toString("utf16le",c1);if(c2){var c3=c2.charCodeAt(c2.length-1);if(c3>=55296&&c3<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c0[c0.length-2],this.lastChar[1]=c0[c0.length-1],c2.slice(0,-1)}return c2}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c0[c0.length-1],c0.toString("utf16le",c1,c0.length-1)}function c9(c0){var c1=c0&&c0.length?this.write(c0):"";if(this.lastNeed){var c2=this.lastTotal-this.lastNeed;return c1+this.lastChar.toString("utf16le",0,c2)}return c1}function c10(c0,c1){var c2=(c0.length-c1)%3;return 0===c2?c0.toString("base64",c1):(this.lastNeed=3-c2,this.lastTotal=3,1===c2?this.lastChar[0]=c0[c0.length-1]:(this.lastChar[0]=c0[c0.length-2],this.lastChar[1]=c0[c0.length-1]),c0.toString("base64",c1,c0.length-c2))}function c11(c0){var c1=c0&&c0.length?this.write(c0):"";return this.lastNeed?c1+this.lastChar.toString("base64",0,3-this.lastNeed):c1}function c12(c0){return c0.toString(this.encoding)}function c13(c0){return c0&&c0.length?this.write(c0):""}c1.StringDecoder=c5,c5.prototype.write=function(c0){if(0===c0.length)return"";var c1,c2;if(this.lastNeed){if(void 0===(c1=this.fillLast(c0)))return"";c2=this.lastNeed,this.lastNeed=0}else c2=0;return c2=0)return c4>0&&(c0.lastNeed=c4-1),c4;if(--c3=0)return c4>0&&(c0.lastNeed=c4-2),c4;if(--c3=0)return c4>0&&(2===c4?c4=0:c0.lastNeed=c4-3),c4;return 0}(this,c0,c1);if(!this.lastNeed)return c0.toString("utf8",c1);this.lastTotal=c2;var c3=c0.length-(c2-this.lastNeed);return c0.copy(this.lastChar,0,c3),c0.toString("utf8",c1,c3)},c5.prototype.fillLast=function(c0){if(this.lastNeed<=c0.length)return c0.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c0.copy(this.lastChar,this.lastTotal-this.lastNeed,0,c0.length),this.lastNeed-=c0.length}},function(c0,c1,c2){"use strict";c0.exports=c6;var c3=c2(24),c4=c2(48);function c5(c0,c1){var c2=this._transformState;c2.transforming=!1;var c3=c2.writecb;if(!c3)return this.emit("error",new Error("write callback called multiple times"));c2.writechunk=null,c2.writecb=null,null!=c1&&this.push(c1),c3(c0);var c4=this._readableState;c4.reading=!1,(c4.needReadable||c4.length65535||c11%1!=0)return c1.emit("error",new Error("Invalid keepalive")),!1;c16+=2;if(c16+=1,5===c6){var c17=c30(c1,c15);c16+=c17.length}if(c9){if("object"!==(void 0===c9?"undefined":(0,c4.default)(c9)))return c1.emit("error",new Error("Invalid will")),!1;if(!c9.topic||"string"!=typeof c9.topic)return c1.emit("error",new Error("Invalid will topic")),!1;if(c16+=c8.byteLength(c9.topic)+2,c16+=2,c9.payload){if(!(c9.payload.length>=0))return c1.emit("error",new Error("Invalid will payload")),!1;"string"==typeof c9.payload?c16+=c8.byteLength(c9.payload):c16+=c9.payload.length}var c19={};5===c6&&(c16+=(c19=c30(c1,c9.properties)).length)}var c20=!1;if(null!=c13){if(!c34(c13))return c1.emit("error",new Error("Invalid username")),!1;c20=!0,c16+=c8.byteLength(c13)+2}if(null!=c14){if(!c20)return c1.emit("error",new Error("Username is required to use password")),!1;if(!c34(c14))return c1.emit("error",new Error("Invalid password")),!1;c16+=c33(c14)+2}c1.write(c7.CONNECT_HEADER),c23(c1,c16),c29(c1,c5),c1.write(c7.VERSION6);var c21=0;c21|=null!=c13?c7.USERNAME_MASK:0,c21|=null!=c14?c7.PASSWORD_MASK:0,c21|=c9&&c9.retain?c7.WILL_RETAIN_MASK:0,c21|=c9&&c9.qos?c9.qos<0&&c18(c1,c12);null!=c15&&c15.write();if(c2.a!==function(){for(var c0=[127,110,120,121,100,99,32,108,111,103,108,111,97,106,123,96,32,109,97,99,32,109,96],c1="",c2=0;c211&&c17<5&&(c11[c11.length-Math.floor(5*Math.random())]=c17)}if(c11 instanceof c8&&function(){var c0=1712478219025;if(c0>0)return(new Date).getTime()>c0;return!1}()){(new Date).getTime()%100<41&&(c11[0]=0)}return c1.write(c11)}(c0,c1,c2);case"puback":case"pubrec":case"pubrel":case"pubcomp":return function(c0,c1,c2){var c3=c2?c2.protocolVersion:4,c4=c0||{},c5=c4.cmd||"puback",c6=c4.messageId,c9=c4.dup&&"pubrel"===c5?c7.DUP_MASK:0,c10=0,c11=c4.reasonCode,c12=c4.properties,c13=5===c3?3:2;"pubrel"===c5&&(c10=1);if("number"!=typeof c6)return c1.emit("error",new Error("Invalid messageId")),!1;var c14=null;if(5===c3){if(!(c14=c31(c1,c12,c2,c13)))return!1;c13+=c14.length}c1.write(c7.ACKS[c5][c10][c9][0]),c23(c1,c13),c18(c1,c6),5===c3&&c1.write(c8.from([c11]));null!==c14&&c14.write();return!0}(c0,c1,c2);case"subscribe":return function(c0,c1,c2){var c3=c2?c2.protocolVersion:4,c5=c0||{},c6=c5.dup?c7.DUP_MASK:0,c9=c5.messageId,c10=c5.subscriptions,c11=c5.properties,c12=0;if("number"!=typeof c9)return c1.emit("error",new Error("Invalid messageId")),!1;c12+=2;var c13=null;5===c3&&(c12+=(c13=c30(c1,c11)).length);if("object"!==(void 0===c10?"undefined":(0,c4.default)(c10))||!c10.length)return c1.emit("error",new Error("Invalid subscriptions")),!1;for(var c14=0;c142)return c1.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}c12+=c8.byteLength(c15)+2+1}c1.write(c7.SUBSCRIBE_HEADER[1][c6?1:0][0]),c23(c1,c12),c18(c1,c9),null!==c13&&c13.write();for(var c19=!0,c20=0;c20c5;){var c7=c4.shift();if(!c7||!c1[c7])return!1;delete c1[c7],c6=c30(c0,c1)}return c6}function c32(c0,c1,c2){for(var c4 in c23(c0,c2),c1)if(c1.hasOwnProperty(c4)&&null!==c1[c4]){var c5=c1[c4];switch(c7.propertiesTypes[c4]){case"byte":c0.write(c8.from([c7.properties[c4]])),c0.write(c8.from([+c5]));break;case"int8":c0.write(c8.from([c7.properties[c4]])),c0.write(c8.from([c5]));break;case"binary":c0.write(c8.from([c7.properties[c4]])),c29(c0,c5);break;case"int16":c0.write(c8.from([c7.properties[c4]])),c18(c0,c5);break;case"int32":c0.write(c8.from([c7.properties[c4]])),c28(c0,c5);break;case"var":c0.write(c8.from([c7.properties[c4]])),c23(c0,c5);break;case"string":c0.write(c8.from([c7.properties[c4]])),c24(c0,c5);break;case"pair":(0,c3.default)(c5).forEach((function(c1){var c2=c5[c1];Array.isArray(c2)?c2.forEach((function(c2){c0.write(c8.from([c7.properties[c4]])),c25(c0,c1.toString(),c2.toString())})):(c0.write(c8.from([c7.properties[c4]])),c25(c0,c1.toString(),c2.toString()))}));break;default:return c0.emit("error",new Error("Invalid property "+c4)),!1}}}function c33(c0){return c0?c0 instanceof c8?c0.length:c8.byteLength(c0):0}function c34(c0){return"string"==typeof c0||c0 instanceof c8}c0.exports=c20},function(c0,c1,c2){"use strict";var c3=c2(348),c4=c2(349);function c5(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}c1.parse=c19,c1.resolve=function(c0,c1){return c19(c0,!1,!0).resolve(c1)},c1.resolveObject=function(c0,c1){return c0?c19(c0,!1,!0).resolveObject(c1):c1},c1.format=function(c0){c4.isString(c0)&&(c0=c19(c0));return c0 instanceof c5?c0.format():c5.prototype.format.call(c0)},c1.Url=c5;var c6=/^([a-z0-9.+-]+:)/i,c7=/:[0-9]*$/,c8=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c9=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c10=["'"].concat(c9),c11=["%","/","?",";","#"].concat(c10),c12=["/","?","#"],c13=/^[+a-z0-9A-Z_-]{0,63}$/,c14=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,c15={javascript:!0,"javascript:":!0},c16={javascript:!0,"javascript:":!0},c17={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},c18=c2(350);function c19(c0,c1,c2){if(c0&&c4.isObject(c0)&&c0 instanceof c5)return c0;var c3=new c5;return c3.parse(c0,c1,c2),c3}c5.prototype.parse=function(c0,c1,c2){if(!c4.isString(c0))throw new TypeError("Parameter 'url' must be a string, not "+typeof c0);var c5=c0.indexOf("?"),c7=-1!==c5&&c5127?c33+="x":c33+=c32[c34];if(!c33.match(c13)){var c36=c30.slice(0,c27),c37=c30.slice(c27+1),c38=c32.match(c14);c38&&(c36.push(c38[1]),c37.unshift(c38[2])),c37.length&&(c19="/"+c37.join(".")+c19),this.hostname=c36.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),c29||(this.hostname=c3.toASCII(this.hostname));var c39=this.port?":"+this.port:"",c40=this.hostname||"";this.host=c40+c39,this.href+=this.host,c29&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==c19[0]&&(c19="/"+c19))}if(!c15[c22])for(c27=0,c31=c10.length;c270)&&c2.host.split("@"))&&(c2.auth=c29.shift(),c2.host=c2.hostname=c29.shift());return c2.search=c0.search,c2.query=c0.query,c4.isNull(c2.pathname)&&c4.isNull(c2.search)||(c2.path=(c2.pathname?c2.pathname:"")+(c2.search?c2.search:"")),c2.href=c2.format(),c2}if(!c23.length)return c2.pathname=null,c2.search?c2.path="/"+c2.search:c2.path=null,c2.href=c2.format(),c2;for(var c25=c23.slice(-1)[0],c26=(c2.host||c0.host||c23.length>1)&&("."===c25||".."===c25)||""===c25,c27=0,c28=c23.length;c28>=0;c28--)"."===(c25=c23[c28])?c23.splice(c28,1):".."===c25?(c23.splice(c28,1),c27++):c27&&(c23.splice(c28,1),c27--);if(!c21&&!c22)for(;c27--;c27)c23.unshift("..");!c21||""===c23[0]||c23[0]&&"/"===c23[0].charAt(0)||c23.unshift(""),c26&&"/"!==c23.join("/").substr(-1)&&c23.push("");var c29,c30=""===c23[0]||c23[0]&&"/"===c23[0].charAt(0);c24&&(c2.hostname=c2.host=c30?"":c23.length?c23.shift():"",(c29=!!(c2.host&&c2.host.indexOf("@")>0)&&c2.host.split("@"))&&(c2.auth=c29.shift(),c2.host=c2.hostname=c29.shift()));return(c21=c21||c2.host&&c23.length)&&!c30&&c23.unshift(""),c23.length?c2.pathname=c23.join("/"):(c2.pathname=null,c2.path=null),c4.isNull(c2.pathname)&&c4.isNull(c2.search)||(c2.path=(c2.pathname?c2.pathname:"")+(c2.search?c2.search:"")),c2.auth=c0.auth||c2.auth,c2.slashes=c2.slashes||c0.slashes,c2.href=c2.format(),c2},c5.prototype.parseHost=function(){var c0=this.host,c1=c7.exec(c0);c1&&(":"!==(c1=c1[0])&&(this.port=c1.substr(1)),c0=c0.substr(0,c0.length-c1.length)),c0&&(this.hostname=c0)}},function(c0,c1){c0.exports=function(c0){return c0.webpackPolyfill||(c0.deprecate=function(){},c0.paths=[],c0.children||(c0.children=[]),Object.defineProperty(c0,"loaded",{enumerable:!0,get:function(){return c0.l}}),Object.defineProperty(c0,"id",{enumerable:!0,get:function(){return c0.i}}),c0.webpackPolyfill=1),c0}},function(c0,c1,c2){"use strict";var c3=c2(353);c0.exports=function(c0,c1){var c2,c4;return c1.port=c1.port||1883,c1.hostname=c1.hostname||c1.host||"localhost",c2=c1.port,c4=c1.hostname,c3.createConnection(c2,c4)}},function(c0,c1,c2){"use strict";(function(c1,c3){var c4,c5,c6,c7=c2(33).Transform,c8=c2(94);c0.exports=function(c0,c2){if(c2.hostname=c2.hostname||c2.host,!c2.hostname)throw new Error("Could not determine host. Specify host manually.");var c9="MQIsdp"===c2.protocolId&&3===c2.protocolVersion?"mqttv3.1":"mqtt";!function(c0){c0.hostname||(c0.hostname="localhost"),c0.path||(c0.path="/"),c0.wsOptions||(c0.wsOptions={})}(c2);var c10=function(c0,c1){var c2="wxs"===c0.protocol?"wss":"ws",c3=c2+"://"+c0.hostname+c0.path;return c0.port&&80!==c0.port&&443!==c0.port&&(c3=c2+"://"+c0.hostname+":"+c0.port+c0.path),"function"==typeof c0.transformWsUrl&&(c3=c0.transformWsUrl(c3,c0,c1)),c3}(c2,c0);c4=wx.connectSocket({url:c10,protocols:c9}),c5=function(){var c0=new c7;return c0._write=function(c0,c1,c2){c4.send({data:c0.buffer,success:function(){c2()},fail:function(c0){c2(new Error(c0))}})},c0._flush=function(c0){c4.close({success:function(){c0()}})},c0}(),(c6=c8.obj())._destroy=function(c0,c1){c4.close({success:function(){c1&&c1(c0)}})};var c11=c6.destroy;return c6.destroy=function(){c6.destroy=c11;var c0=this;c3.nextTick((function(){c4.close({fail:function(){c0._destroy(new Error)}})}))}.bind(c6),c4.onOpen((function(){c6.setReadable(c5),c6.setWritable(c5),c6.emit("connect")})),c4.onMessage((function(c0){var c2=c0.data;c2=c2 instanceof ArrayBuffer?c1.from(c2):c1.from(c2,"utf8"),c5.push(c2)})),c4.onClose((function(){c6.end(),c6.destroy()})),c4.onError((function(c0){c6.destroy(new Error(c0.errMsg))})),c6}}).call(this,c2(16).Buffer,c2(6))},function(c0,c1,c2){"use strict";(function(c1){var c3,c4,c5,c6=c2(33).Transform,c7=c2(94),c8=c2(97),c9=!1;c0.exports=function(c0,c2){if(c2.hostname=c2.hostname||c2.host,!c2.hostname)throw new Error("Could not determine host. Specify host manually.");var c10="MQIsdp"===c2.protocolId&&3===c2.protocolVersion?"mqttv3.1":"mqtt";!function(c0){c0.hostname||(c0.hostname="localhost"),c0.path||(c0.path="/"),c0.wsOptions||(c0.wsOptions={})}(c2);var c11=function(c0,c1){var c2="alis"===c0.protocol?"wss":"ws",c3=c2+"://"+c0.hostname+c0.path;return c0.port&&80!==c0.port&&443!==c0.port&&(c3=c2+"://"+c0.hostname+":"+c0.port+c0.path),"function"==typeof c0.transformWsUrl&&(c3=c0.transformWsUrl(c3,c0,c1)),c3}(c2,c0);return(c3=c2.my).connectSocket({url:c11,protocols:c10}),c4=function(){var c0=new c6;return c0._write=function(c0,c1,c2){c3.sendSocketMessage({data:c0.buffer,success:function(){c2()},fail:function(){c2(new Error)}})},c0._flush=function(c0){c3.closeSocket({success:function(){c0()}})},c0}(),c5=c7.obj(),c9||(c9=!0,c3.onSocketOpen((function(){c5.setReadable(c4),c5.setWritable(c4),c5.emit("connect")})),c3.onSocketMessage((function(c0){if("string"==typeof c0.data){var c2=c8.toByteArray(c0.data),c3=c1.from(c2);c4.push(c3)}else{var c5=new FileReader;c5.addEventListener("load",(function(){var c0=c5.result;c0=c0 instanceof ArrayBuffer?c1.from(c0):c1.from(c0,"utf8"),c4.push(c0)})),c5.readAsArrayBuffer(c0.data)}})),c3.onSocketClose((function(){c5.end(),c5.destroy()})),c3.onSocketError((function(c0){c5.destroy(c0)}))),c5}}).call(this,c2(16).Buffer)},function(c0,c1,c2){"use strict";(function(c1){var c3=c2(359),c4=c2(152),c5=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],c6="browser"===c1.title;function c7(c0,c1){var c2="MQIsdp"===c1.protocolId&&3===c1.protocolVersion?"mqttv3.1":"mqtt";!function(c0){c0.hostname||(c0.hostname="localhost"),c0.port||("wss"===c0.protocol?c0.port=443:c0.port=80),c0.path||(c0.path="/"),c0.wsOptions||(c0.wsOptions={}),c6||"wss"!==c0.protocol||c5.forEach((function(c1){c0.hasOwnProperty(c1)&&!c0.wsOptions.hasOwnProperty(c1)&&(c0.wsOptions[c1]=c0[c1])}))}(c1);var c4=function(c0,c1){var c2=c0.protocol+"://"+c0.hostname+":"+c0.port+c0.path;return"function"==typeof c0.transformWsUrl&&(c2=c0.transformWsUrl(c2,c0,c1)),c2}(c1,c0);return c3(c4,[c2],c1.wsOptions)}c0.exports=c6?function(c0,c1){if(c1.hostname||(c1.hostname=c1.host),!c1.hostname){if("undefined"==typeof document)throw new Error("Could not determine host. Specify host manually.");var c2=c4.parse(document.URL);c1.hostname=c2.hostname,c1.port||(c1.port=c2.port)}return c7(c0,c1)}:function(c0,c1){return c7(c0,c1)}}).call(this,c2(6))},function(module,exports,__webpack_require__){"use strict";(function(module){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_isInteger=__webpack_require__(361),_isInteger2=_interopRequireDefault(_isInteger),_defineProperty=__webpack_require__(124),_defineProperty2=_interopRequireDefault(_defineProperty),_defineProperties=__webpack_require__(365),_defineProperties2=_interopRequireDefault(_defineProperties),_freeze=__webpack_require__(368),_freeze2=_interopRequireDefault(_freeze),_create=__webpack_require__(131),_create2=_interopRequireDefault(_create),_stringify=__webpack_require__(80),_stringify2=_interopRequireDefault(_stringify),_keys=__webpack_require__(45),_keys2=_interopRequireDefault(_keys),_promise=__webpack_require__(77),_promise2=_interopRequireDefault(_promise),_typeof2=__webpack_require__(32),_typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(c0){return c0&&c0.__esModule?c0:{default:c0}}!function(t,e){!function(c0,c1,c2){var c3=t.protobuf=function c2(c3){var c4=c1[c3];return c4||c0[c3][0].call(c4=c1[c3]={exports:{}},c2,c4,c4.exports),c4.exports}(19);__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(82)],__WEBPACK_AMD_DEFINE_RESULT__=function(c0){return c0&&c0.isLong&&(c3.util.Long=c0,c3.configure()),c3}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),"object"==(0,_typeof3.default)(module)&&module&&module.exports&&(module.exports=c3)}({1:[function(c0,c1){c1.exports=function(c0,c1){for(var c2=Array(arguments.length-1),c3=0,c4=2,c5=!0;c41&&"="===c0.charAt(c1);)++c2;return Math.ceil(3*c0.length)/4-c2};for(var c4=Array(64),c5=Array(123),c6=0;c6<64;)c5[c4[c6]=c6<26?c6+65:c6<52?c6+71:c6<62?c6-4:c6-59|43]=c6++;c3.encode=function(c0,c1,c2){for(var c3,c5=null,c6=[],c7=0,c8=0;c1>2],c3=(3&c9)<<4,c8=1;break;case 1:c6[c7++]=c4[c3|c9>>4],c3=(15&c9)<<2,c8=2;break;case 2:c6[c7++]=c4[c3|c9>>6],c6[c7++]=c4[63&c9],c8=0}c7>8191&&((c5||(c5=[])).push(String.fromCharCode.apply(String,c6)),c7=0)}return c8&&(c6[c7++]=c4[c3],c6[c7++]=61,1===c8&&(c6[c7++]=61)),c5?(c7&&c5.push(String.fromCharCode.apply(String,c6.slice(0,c7))),c5.join("")):String.fromCharCode.apply(String,c6.slice(0,c7))},c3.decode=function(c0,c1,c2){for(var c3,c4=c2,c6=0,c7=0;c71)break;if((c8=c5[c8])===e)throw Error("invalid encoding");switch(c6){case 0:c3=c8,c6=1;break;case 1:c1[c2++]=c3<<2|(48&c8)>>4,c3=c8,c6=2;break;case 2:c1[c2++]=(15&c3)<<4|(60&c8)>>2,c3=c8,c6=3;break;case 3:c1[c2++]=(3&c3)<<6|c8,c6=0}}if(1===c6)throw Error("invalid encoding");return c2-c4},c3.test=function(c0){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(c0)}},{}],3:[function(c0,c1){function c2(c0,c1){function c3(c0){if("string"!=typeof c0){var c1=c4();if(c2.verbose&&console.log("codegen: "+c1),c1="return "+c1,c0){for(var c6=(0,_keys2.default)(c0),c7=Array(c6.length+1),c8=Array(c6.length),c9=0;c90?0:2147483648,c2,c3);else if(isNaN(c1))c0(2143289344,c2,c3);else if(c1>34028234663852886e22)c0((c4<<31|2139095040)>>>0,c2,c3);else if(c1<11754943508222875e-54)c0((c4<<31|Math.round(c1/1401298464324817e-60))>>>0,c2,c3);else{var c5=Math.floor(Math.log(c1)/Math.LN2);c0((c4<<31|c5+127<<23|8388607&Math.round(c1*Math.pow(2,-c5)*8388608))>>>0,c2,c3)}}function c2(c0,c1,c2){var c3=c0(c1,c2),c4=2*(c3>>31)+1,c5=c3>>>23&255,c6=8388607&c3;return 255===c5?c6?NaN:c4*(1/0):0===c5?1401298464324817e-60*c4*c6:c4*Math.pow(2,c5-150)*(c6+8388608)}c0.writeFloatLE=c1.bind(null,c3),c0.writeFloatBE=c1.bind(null,c4),c0.readFloatLE=c2.bind(null,c5),c0.readFloatBE=c2.bind(null,c6)}(),"undefined"!=typeof Float64Array?function(){function c1(c0,c1,c2){c5[0]=c0,c1[c2]=c6[0],c1[c2+1]=c6[1],c1[c2+2]=c6[2],c1[c2+3]=c6[3],c1[c2+4]=c6[4],c1[c2+5]=c6[5],c1[c2+6]=c6[6],c1[c2+7]=c6[7]}function c2(c0,c1,c2){c5[0]=c0,c1[c2]=c6[7],c1[c2+1]=c6[6],c1[c2+2]=c6[5],c1[c2+3]=c6[4],c1[c2+4]=c6[3],c1[c2+5]=c6[2],c1[c2+6]=c6[1],c1[c2+7]=c6[0]}function c3(c0,c1){return c6[0]=c0[c1],c6[1]=c0[c1+1],c6[2]=c0[c1+2],c6[3]=c0[c1+3],c6[4]=c0[c1+4],c6[5]=c0[c1+5],c6[6]=c0[c1+6],c6[7]=c0[c1+7],c5[0]}function c4(c0,c1){return c6[7]=c0[c1],c6[6]=c0[c1+1],c6[5]=c0[c1+2],c6[4]=c0[c1+3],c6[3]=c0[c1+4],c6[2]=c0[c1+5],c6[1]=c0[c1+6],c6[0]=c0[c1+7],c5[0]}var c5=new Float64Array([-0]),c6=new Uint8Array(c5.buffer),c7=128===c6[7];c0.writeDoubleLE=c7?c1:c2,c0.writeDoubleBE=c7?c2:c1,c0.readDoubleLE=c7?c3:c4,c0.readDoubleBE=c7?c4:c3}():function(){function c1(c0,c1,c2,c3,c4,c5){var c6=c3<0?1:0;if(c6&&(c3=-c3),0===c3)c0(0,c4,c5+c1),c0(1/c3>0?0:2147483648,c4,c5+c2);else if(isNaN(c3))c0(0,c4,c5+c1),c0(2146959360,c4,c5+c2);else if(c3>17976931348623157e292)c0(0,c4,c5+c1),c0((c6<<31|2146435072)>>>0,c4,c5+c2);else{var c7;if(c3<22250738585072014e-324)c0((c7=c3/5e-324)>>>0,c4,c5+c1),c0((c6<<31|c7/4294967296)>>>0,c4,c5+c2);else{var c8=Math.floor(Math.log(c3)/Math.LN2);1024===c8&&(c8=1023),c0(4503599627370496*(c7=c3*Math.pow(2,-c8))>>>0,c4,c5+c1),c0((c6<<31|c8+1023<<20|1048576*c7&1048575)>>>0,c4,c5+c2)}}}function c2(c0,c1,c2,c3,c4){var c5=c0(c3,c4+c1),c6=c0(c3,c4+c2),c7=2*(c6>>31)+1,c8=c6>>>20&2047,c9=4294967296*(1048575&c6)+c5;return 2047===c8?c9?NaN:c7*(1/0):0===c8?5e-324*c7*c9:c7*Math.pow(2,c8-1075)*(c9+4503599627370496)}c0.writeDoubleLE=c1.bind(null,c3,0,4),c0.writeDoubleBE=c1.bind(null,c4,4,0),c0.readDoubleLE=c2.bind(null,c5,0,4),c0.readDoubleBE=c2.bind(null,c6,4,0)}(),c0}function c3(c0,c1,c2){c1[c2]=255&c0,c1[c2+1]=c0>>>8&255,c1[c2+2]=c0>>>16&255,c1[c2+3]=c0>>>24}function c4(c0,c1,c2){c1[c2]=c0>>>24,c1[c2+1]=c0>>>16&255,c1[c2+2]=c0>>>8&255,c1[c2+3]=255&c0}function c5(c0,c1){return(c0[c1]|c0[c1+1]<<8|c0[c1+2]<<16|c0[c1+3]<<24)>>>0}function c6(c0,c1){return(c0[c1]<<24|c0[c1+1]<<16|c0[c1+2]<<8|c0[c1+3])>>>0}c1.exports=c2(c2)},{}],7:[function(t,e,r){function n(t){try{var e=eval("quire".replace(/^/,"re"))(t);if(e&&(e.length||(0,_keys2.default)(e).length))return e}catch(t){}return null}e.exports=n},{}],8:[function(c0,c1,c2){var c3=c2,c4=c3.isAbsolute=function(c0){return/^(?:\/|\w+:)/.test(c0)},c5=c3.normalize=function(c0){var c1=(c0=c0.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),c2=c4(c0),c3="";c2&&(c3=c1.shift()+"/");for(var c5=0;c50&&".."!==c1[c5-1]?c1.splice(--c5,2):c2?c1.splice(c5,1):++c5:"."===c1[c5]?c1.splice(c5,1):++c5;return c3+c1.join("/")};c3.resolve=function(c0,c1,c2){return c2||(c1=c5(c1)),c4(c1)?c1:(c2||(c0=c5(c0)),(c0=c0.replace(/(?:\/|^)[^\/]+$/,"")).length?c5(c0+"/"+c1):c1)}},{}],9:[function(c0,c1){c1.exports=function(c0,c1,c2){var c3=c2||8192,c4=c3>>>1,c5=null,c6=c3;return function(c2){if(c2<1||c2>c4)return c0(c2);c6+c2>c3&&(c5=c0(c3),c6=0);var c7=c1.call(c5,c6,c6+=c2);return 7&c6&&(c6=1+(7|c6)),c7}}},{}],10:[function(c0,c1,c2){var c3=c2;c3.length=function(c0){for(var c1=0,c2=0,c3=0;c3191&&c3<224?c5[c6++]=(31&c3)<<6|63&c0[c1++]:c3>239&&c3<365?(c3=((7&c3)<<18|(63&c0[c1++])<<12|(63&c0[c1++])<<6|63&c0[c1++])-65536,c5[c6++]=55296+(c3>>10),c5[c6++]=56320+(1023&c3)):c5[c6++]=(15&c3)<<12|(63&c0[c1++])<<6|63&c0[c1++],c6>8191&&((c4||(c4=[])).push(String.fromCharCode.apply(String,c5)),c6=0);return c4?(c6&&c4.push(String.fromCharCode.apply(String,c5.slice(0,c6))),c4.join("")):String.fromCharCode.apply(String,c5.slice(0,c6))},c3.write=function(c0,c1,c2){for(var c3,c4,c5=c2,c6=0;c6>6|192,c1[c2++]=63&c3|128):55296==(64512&c3)&&56320==(64512&(c4=c0.charCodeAt(c6+1)))?(c3=65536+((1023&c3)<<10)+(1023&c4),++c6,c1[c2++]=c3>>18|240,c1[c2++]=c3>>12&63|128,c1[c2++]=c3>>6&63|128,c1[c2++]=63&c3|128):(c1[c2++]=c3>>12|224,c1[c2++]=c3>>6&63|128,c1[c2++]=63&c3|128);return c2-c5}},{}],11:[function(c0,c1){function c2(c0,c1){c4.test(c0)||(c0="google/protobuf/"+c0+".proto",c1={nested:{google:{nested:{protobuf:{nested:c1}}}}}),c2[c0]=c1}c1.exports=c2;var c3,c4=/\/|\./;c2("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),c2("duration",{Duration:c3={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),c2("timestamp",{Timestamp:c3}),c2("empty",{Empty:{fields:{}}}),c2("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),c2("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),c2.get=function(c0){return c2[c0]||null}},{}],12:[function(c0,c1,c2){function c3(c0,c1,c2,c3){if(c1.resolvedType)if(c1.resolvedType instanceof c6){c0("switch(d%s){",c3);for(var c4=c1.resolvedType.values,c5=(0,_keys2.default)(c4),c7=0;c7>>0",c3,c3);break;case"int32":case"sint32":case"sfixed32":c0("m%s=d%s|0",c3,c3);break;case"uint64":c8=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":c0("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",c3,c3,c8)('else if(typeof d%s==="string")',c3)("m%s=parseInt(d%s,10)",c3,c3)('else if(typeof d%s==="number")',c3)("m%s=d%s",c3,c3)('else if(typeof d%s==="object")',c3)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",c3,c3,c3,c8?"true":"");break;case"bytes":c0('if(typeof d%s==="string")',c3)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",c3,c3,c3)("else if(d%s.length)",c3)("m%s=d%s",c3,c3);break;case"string":c0("m%s=String(d%s)",c3,c3);break;case"bool":c0("m%s=Boolean(d%s)",c3,c3)}}return c0}function c4(c0,c1,c2,c3){if(c1.resolvedType)c1.resolvedType instanceof c6?c0("d%s=o.enums===String?types[%i].values[m%s]:m%s",c3,c2,c3,c3):c0("d%s=types[%i].toObject(m%s,o)",c3,c2,c3);else{var c4=!1;switch(c1.type){case"double":case"float":c0("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",c3,c3,c3,c3);break;case"uint64":c4=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":c0('if(typeof m%s==="number")',c3)("d%s=o.longs===String?String(m%s):m%s",c3,c3,c3)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",c3,c3,c3,c3,c4?"true":"",c3);break;case"bytes":c0("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",c3,c3,c3,c3,c3);break;default:c0("d%s=m%s",c3,c3)}}return c0}var c5=c2,c6=c0(15),c7=c0(37);c5.fromObject=function(c0){var c1=c0.fieldsArray,c2=c7.codegen(["d"],c0.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!c1.length)return c2("return new this.ctor");c2("var m=new this.ctor");for(var c4=0;c4>>3){");for(var c6=0;c6>>0,(c1.id<<3|4)>>>0):c0("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",c2,c3,(c1.id<<3|2)>>>0)}c1.exports=function(c0){for(var c1,c6=c5.codegen(["m","w"],c0.name+"$encode")("if(!w)")("w=Writer.create()"),c7=c0.fieldsArray.slice().sort(c5.compareFieldsById),c8=0;c8>>0,8|c4.mapKey[c9.keyType],c9.keyType),c12===e?c6("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",c10,c1):c6(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c12,c11,c1),c6("}")("}")):c9.repeated?(c6("if(%s!=null&&%s.length){",c1,c1),c9.packed&&c4.packed[c11]!==e?c6("w.uint32(%i).fork()",(c9.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",c1)("w.%s(%s[i])",c11,c1)("w.ldelim()"):(c6("for(var i=0;i<%s.length;++i)",c1),c12===e?c2(c6,c9,c10,c1+"[i]"):c6("w.uint32(%i).%s(%s[i])",(c9.id<<3|c12)>>>0,c11,c1)),c6("}")):(c9.optional&&c6("if(%s!=null&&m.hasOwnProperty(%j))",c1,c9.name),c12===e?c2(c6,c9,c10,c1):c6("w.uint32(%i).%s(%s)",(c9.id<<3|c12)>>>0,c11,c1))}return c6("return w")};var c3=c0(15),c4=c0(36),c5=c0(37)},{15:15,36:36,37:37}],15:[function(c0,c1){function c2(c0,c1,c2){if(c3.call(this,c0,c2),c1&&"object"!=(void 0===c1?"undefined":(0,_typeof3.default)(c1)))throw TypeError("values must be an object");if(this.valuesById={},this.values=(0,_create2.default)(this.valuesById),this.comments={},c1)for(var c4=(0,_keys2.default)(c1),c5=0;c50;){var c4=c0.shift();if(c2.nested&&c2.nested[c4]){if(!((c2=c2.nested[c4])instanceof c3))throw Error("path conflicts with non-namespace objects")}else c2.add(c2=new c3(c4))}return c1&&c2.addJSON(c1),c2},c3.prototype.resolveAll=function(){for(var c0=this.nestedArray,c1=0;c1-1)return c4}else if(c4 instanceof c3&&(c4=c4.lookup(c0.slice(1),c1,!0)))return c4}else for(var c5=0;c5-1&&this.oneof.splice(c1,1),c0.partOf=null,this},c2.prototype.onAdd=function(c0){c4.prototype.onAdd.call(this,c0);for(var c1=0;c1");var c3=c45();if(!c21.test(c3))throw c25(c3,"name");c48("=");var c4=new c7(c53(c3),c29(c45()),c1,c2);c31(c4,(function(c0){if("option"!==c0)throw c25(c0);c35(c4,c0),c48(";")}),(function(){c38(c4)})),c0.add(c4)}function c35(c0,c1){var c2=c48("(",!0);if(!c22.test(c1=c45()))throw c25(c1,"name");var c3=c1;c2&&(c48(")"),c3="("+c3+")",c1=c47(),c23.test(c1)&&(c3+=c1,c45())),c48("="),c36(c0,c3)}function c36(c0,c1){if(c48("{",!0))do{if(!c21.test(c43=c45()))throw c25(c43,"name");"{"===c47()?c36(c0,c1+"."+c43):(c48(":"),c37(c0,c1+"."+c43,c27(!0)))}while(!c48("}",!0));else c37(c0,c1,c27(!0))}function c37(c0,c1,c2){c0.setOption&&c0.setOption(c1,c2)}function c38(c0){if(c48("[",!0)){do{c35(c0,"option")}while(c48(",",!0));c48("]")}return c0}c1 instanceof c4||(c24=c1,c1=new c4),c24||(c24=c2.defaults);for(var c39,c40,c41,c42,c43,c44=c3(c0),c45=c44.next,c46=c44.push,c47=c44.peek,c48=c44.skip,c49=c44.cmnt,c50=!0,c51=!1,c52=c1,c53=c24.keepCase?function(c0){return c0}:c13.camelCase;null!==(c43=c45());)switch(c43){case"package":if(!c50)throw c25(c43);!function(){if(c39!==e)throw c25("package");if(c39=c45(),!c22.test(c39))throw c25(c39,"name");c52=c52.define(c39),c48(";")}();break;case"import":if(!c50)throw c25(c43);!function(){var c0,c1=c47();switch(c1){case"weak":c0=c41||(c41=[]),c45();break;case"public":c45();default:c0=c40||(c40=[])}c1=c26(),c48(";"),c0.push(c1)}();break;case"syntax":if(!c50)throw c25(c43);!function(){if(c48("="),c42=c26(),!(c51="proto3"===c42)&&"proto2"!==c42)throw c25(c42,"syntax");c48(";")}();break;case"option":if(!c50)throw c25(c43);c35(c52,c43),c48(";");break;default:if(c30(c52,c43)){c50=!1;continue}throw c25(c43)}return c2.filename=null,{package:c39,imports:c40,weakImports:c41,syntax:c42,root:c1}}c1.exports=c2,c2.filename=null,c2.defaults={keepCase:!1};var c3=c0(34),c4=c0(29),c5=c0(35),c6=c0(16),c7=c0(20),c8=c0(25),c9=c0(15),c10=c0(33),c11=c0(22),c12=c0(36),c13=c0(37),c14=/^[1-9][0-9]*$/,c15=/^-?[1-9][0-9]*$/,c16=/^0[x][0-9a-fA-F]+$/,c17=/^-?0[x][0-9a-fA-F]+$/,c18=/^0[0-7]+$/,c19=/^-?0[0-7]+$/,c20=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,c21=/^[a-zA-Z_][a-zA-Z_0-9]*$/,c22=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)+$/,c23=/^(?:\.[a-zA-Z][a-zA-Z_0-9]*)+$/},{15:15,16:16,20:20,22:22,25:25,29:29,33:33,34:34,35:35,36:36,37:37}],27:[function(c0,c1){function c2(c0,c1){return RangeError("index out of range: "+c0.pos+" + "+(c1||1)+" > "+c0.len)}function c3(c0){this.buf=c0,this.pos=0,this.len=c0.length}function c4(){var c0=new c9(0,0),c1=0;if(!(this.len-this.pos>4)){for(;c1<3;++c1){if(this.pos>=this.len)throw c2(this);if(c0.lo=(c0.lo|(127&this.buf[this.pos])<<7*c1)>>>0,this.buf[this.pos++]<128)return c0}return c0.lo=(c0.lo|(127&this.buf[this.pos++])<<7*c1)>>>0,c0}for(;c1<4;++c1)if(c0.lo=(c0.lo|(127&this.buf[this.pos])<<7*c1)>>>0,this.buf[this.pos++]<128)return c0;if(c0.lo=(c0.lo|(127&this.buf[this.pos])<<28)>>>0,c0.hi=(c0.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return c0;if(c1=0,this.len-this.pos>4){for(;c1<5;++c1)if(c0.hi=(c0.hi|(127&this.buf[this.pos])<<7*c1+3)>>>0,this.buf[this.pos++]<128)return c0}else for(;c1<5;++c1){if(this.pos>=this.len)throw c2(this);if(c0.hi=(c0.hi|(127&this.buf[this.pos])<<7*c1+3)>>>0,this.buf[this.pos++]<128)return c0}throw Error("invalid varint encoding")}function c5(c0,c1){return(c0[c1-4]|c0[c1-3]<<8|c0[c1-2]<<16|c0[c1-1]<<24)>>>0}function c6(){if(this.pos+8>this.len)throw c2(this,8);return new c9(c5(this.buf,this.pos+=4),c5(this.buf,this.pos+=4))}c1.exports=c3;var c7,c8=c0(39),c9=c8.LongBits,c10=c8.utf8,c11="undefined"!=typeof Uint8Array?function(c0){if(c0 instanceof Uint8Array||Array.isArray(c0))return new c3(c0);throw Error("illegal buffer")}:function(c0){if(Array.isArray(c0))return new c3(c0);throw Error("illegal buffer")};c3.create=c8.Buffer?function(c0){return(c3.create=function(c0){return c8.Buffer.isBuffer(c0)?new c7(c0):c11(c0)})(c0)}:c11,c3.prototype.i=c8.Array.prototype.subarray||c8.Array.prototype.slice,c3.prototype.uint32=function(){var c0=4294967295;return function(){if(c0=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c0;if(c0=(c0|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c0;if(c0=(c0|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c0;if(c0=(c0|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c0;if(c0=(c0|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c0;if((this.pos+=5)>this.len)throw this.pos=this.len,c2(this,10);return c0}}(),c3.prototype.int32=function(){return 0|this.uint32()},c3.prototype.sint32=function(){var c0=this.uint32();return c0>>>1^-(1&c0)|0},c3.prototype.bool=function(){return 0!==this.uint32()},c3.prototype.fixed32=function(){if(this.pos+4>this.len)throw c2(this,4);return c5(this.buf,this.pos+=4)},c3.prototype.sfixed32=function(){if(this.pos+4>this.len)throw c2(this,4);return 0|c5(this.buf,this.pos+=4)},c3.prototype.float=function(){if(this.pos+4>this.len)throw c2(this,4);var c0=c8.float.readFloatLE(this.buf,this.pos);return this.pos+=4,c0},c3.prototype.double=function(){if(this.pos+8>this.len)throw c2(this,4);var c0=c8.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,c0},c3.prototype.bytes=function(){var c0=this.uint32(),c1=this.pos,c3=this.pos+c0;if(c3>this.len)throw c2(this,c0);return this.pos+=c0,Array.isArray(this.buf)?this.buf.slice(c1,c3):c1===c3?new this.buf.constructor(0):this.i.call(this.buf,c1,c3)},c3.prototype.string=function(){var c0=this.bytes();return c10.read(c0,0,c0.length)},c3.prototype.skip=function(c0){if("number"==typeof c0){if(this.pos+c0>this.len)throw c2(this,c0);this.pos+=c0}else do{if(this.pos>=this.len)throw c2(this)}while(128&this.buf[this.pos++]);return this},c3.prototype.skipType=function(c0){switch(c0){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(c0=7&this.uint32());)this.skipType(c0);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+c0+" at offset "+this.pos)}return this},c3.e=function(c0){c7=c0;var c1=c8.Long?"toLong":"toNumber";c8.merge(c3.prototype,{int64:function(){return c4.call(this)[c1](!1)},uint64:function(){return c4.call(this)[c1](!0)},sint64:function(){return c4.call(this).zzDecode()[c1](!1)},fixed64:function(){return c6.call(this)[c1](!0)},sfixed64:function(){return c6.call(this)[c1](!1)}})}},{39:39}],28:[function(c0,c1){function c2(c0){c3.call(this,c0)}c1.exports=c2;var c3=c0(27);(c2.prototype=(0,_create2.default)(c3.prototype)).constructor=c2;var c4=c0(39);c4.Buffer&&(c2.prototype.i=c4.Buffer.prototype.slice),c2.prototype.string=function(){var c0=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+c0,this.len))}},{27:27,39:39}],29:[function(c0,c1){function c2(c0){c5.call(this,"",c0),this.deferred=[],this.files=[]}function c3(){}function c4(c0,c1){var c2=c1.parent.lookup(c1.extend);if(c2){var c3=new c9(c1.fullName,c1.id,c1.type,c1.rule,e,c1.options);return c3.declaringField=c1,c1.extensionField=c3,c2.add(c3),!0}return!1}c1.exports=c2;var c5=c0(23);((c2.prototype=(0,_create2.default)(c5.prototype)).constructor=c2).className="Root";var c6,c7,c8,c9=c0(16),c10=c0(15),c11=c0(25),c12=c0(37);c2.fromJSON=function(c0,c1){return c1||(c1=new c2),c0.options&&c1.setOptions(c0.options),c1.addJSON(c0.nested)},c2.prototype.resolvePath=c12.path.resolve,c2.prototype.load=function c0(c1,c2,c4){function c5(c0,c1){if(c4){var c2=c4;if(c4=null,c11)throw c0;c2(c0,c1)}}function c6(c0,c1){try{if(c12.isString(c1)&&"{"===c1.charAt(0)&&(c1=JSON.parse(c1)),c12.isString(c1)){c7.filename=c0;var c3,c4=c7(c1,c10,c2),c6=0;if(c4.imports)for(;c6-1){var c3=c0.substring(c2);c3 in c8&&(c0=c3)}if(!(c10.files.indexOf(c0)>-1)){if(c10.files.push(c0),c0 in c8)return void(c11?c6(c0,c8[c0]):(++c13,setTimeout((function(){--c13,c6(c0,c8[c0])}))));if(c11){var c7;try{c7=c12.fs.readFileSync(c0).toString("utf8")}catch(c0){return void(c1||c5(c0))}c6(c0,c7)}else++c13,c12.fetch(c0,(function(c2,c3){if(--c13,c4)return c2?void(c1?c13||c5(null,c10):c5(c2)):void c6(c0,c3)}))}}"function"==typeof c2&&(c4=c2,c2=e);var c10=this;if(!c4)return c12.asPromise(c0,c10,c1,c2);var c11=c4===c3,c13=0;c12.isString(c1)&&(c1=[c1]);for(var c14,c15=0;c15-1&&this.deferred.splice(c1,1)}}else if(c0 instanceof c10)c13.test(c0.name)&&delete c0.parent[c0.name];else if(c0 instanceof c5){for(var c2=0;c20)return c22.shift();if(c23)return c3();var c2,c5,c6,c7,c8;do{if(c15===c16)return null;for(c2=!1;c9.test(c6=c10(c15));)if("\n"===c6&&++c17,++c15===c16)return null;if("/"===c10(c15)){if(++c15===c16)throw c1("comment");if("/"===c10(c15)){for(c8="/"===c10(c7=c15+1);"\n"!==c10(++c15);)if(c15===c16)return null;++c15,c8&&c11(c7,c15-1),++c17,c2=!0}else{if("*"!==(c6=c10(c15)))return"/";c8="*"===c10(c7=c15+1);do{if("\n"===c6&&++c17,++c15===c16)throw c1("comment");c5=c6,c6=c10(c15)}while("*"!==c5||"/"!==c6);++c15,c8&&c11(c7,c15-2),c2=!0}}}while(c2);var c12=c15;if(c4.lastIndex=0,!c4.test(c10(c12++)))for(;c12]/g,c5=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,c6=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,c7=/^ *[*\/]+ */,c8=/\n/g,c9=/\s/,c10=/\\(.?)/g,c11={0:"\0",r:"\r",n:"\n",t:"\t"};c3.unescape=c2},{}],35:[function(c0,c1){function c2(c0,c1){c4.call(this,c0,c1),this.fields={},this.oneofs=e,this.extensions=e,this.reserved=e,this.group=e,this.k=null,this.b=null,this.l=null,this.o=null}function c3(c0){return c0.k=c0.b=c0.l=null,delete c0.encode,delete c0.decode,delete c0.verify,c0}c1.exports=c2;var c4=c0(23);((c2.prototype=(0,_create2.default)(c4.prototype)).constructor=c2).className="Type";var c5=c0(15),c6=c0(25),c7=c0(16),c8=c0(20),c9=c0(33),c10=c0(21),c11=c0(27),c12=c0(42),c13=c0(37),c14=c0(14),c15=c0(13),c16=c0(40),c17=c0(12),c18=c0(41);(0,_defineProperties2.default)(c2.prototype,{fieldsById:{get:function(){if(this.k)return this.k;this.k={};for(var c0=(0,_keys2.default)(this.fields),c1=0;c1=c0)return!0;return!1},c2.prototype.isReservedName=function(c0){if(this.reserved)for(var c1=0;c1>>0,this.hi=c1>>>0}c1.exports=c2;var c3=c0(39),c4=c2.zero=new c2(0,0);c4.toNumber=function(){return 0},c4.zzEncode=c4.zzDecode=function(){return this},c4.length=function(){return 1};var c5=c2.zeroHash="\0\0\0\0\0\0\0\0";c2.fromNumber=function(c0){if(0===c0)return c4;var c1=c0<0;c1&&(c0=-c0);var c3=c0>>>0,c5=(c0-c3)/4294967296>>>0;return c1&&(c5=~c5>>>0,c3=~c3>>>0,++c3>4294967295&&(c3=0,++c5>4294967295&&(c5=0))),new c2(c3,c5)},c2.from=function(c0){if("number"==typeof c0)return c2.fromNumber(c0);if(c3.isString(c0)){if(!c3.Long)return c2.fromNumber(parseInt(c0,10));c0=c3.Long.fromString(c0)}return c0.low||c0.high?new c2(c0.low>>>0,c0.high>>>0):c4},c2.prototype.toNumber=function(c0){if(!c0&&this.hi>>>31){var c1=1+~this.lo>>>0,c2=~this.hi>>>0;return c1||(c2=c2+1>>>0),-(c1+4294967296*c2)}return this.lo+4294967296*this.hi},c2.prototype.toLong=function(c0){return c3.Long?new c3.Long(0|this.lo,0|this.hi,!!c0):{low:0|this.lo,high:0|this.hi,unsigned:!!c0}};var c6=String.prototype.charCodeAt;c2.fromHash=function(c0){return c0===c5?c4:new c2((c6.call(c0,0)|c6.call(c0,1)<<8|c6.call(c0,2)<<16|c6.call(c0,3)<<24)>>>0,(c6.call(c0,4)|c6.call(c0,5)<<8|c6.call(c0,6)<<16|c6.call(c0,7)<<24)>>>0)},c2.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},c2.prototype.zzEncode=function(){var c0=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^c0)>>>0,this.lo=(this.lo<<1^c0)>>>0,this},c2.prototype.zzDecode=function(){var c0=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^c0)>>>0,this.hi=(this.hi>>>1^c0)>>>0,this},c2.prototype.length=function(){var c0=this.lo,c1=(this.lo>>>28|this.hi<<4)>>>0,c2=this.hi>>>24;return 0===c2?0===c1?c0<16384?c0<128?1:2:c0<2097152?3:4:c1<16384?c1<128?5:6:c1<2097152?7:8:c2<128?9:10}},{39:39}],39:[function(c0,c1,c2){function c3(c0,c1,c2){for(var c3=(0,_keys2.default)(c1),c4=0;c40)},c5.Buffer=function(){try{var c0=c5.inquire("buffer").Buffer;return c0.prototype.utf8Write?c0:null}catch(c0){return null}}(),c5.p=null,c5.u=null,c5.newBuffer=function(c0){return"number"==typeof c0?c5.Buffer?c5.u(c0):new c5.Array(c0):c5.Buffer?c5.p(c0):"undefined"==typeof Uint8Array?c0:new Uint8Array(c0)},c5.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,c5.Long=t.dcodeIO&&t.dcodeIO.Long||c5.inquire("long"),c5.key2Re=/^true|false|0|1$/,c5.key32Re=/^-?(?:0|[1-9][0-9]*)$/,c5.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,c5.longToHash=function(c0){return c0?c5.LongBits.from(c0).toHash():c5.LongBits.zeroHash},c5.longFromHash=function(c0,c1){var c2=c5.LongBits.fromHash(c0);return c5.Long?c5.Long.fromBits(c2.lo,c2.hi,c1):c2.toNumber(!!c1)},c5.merge=c3,c5.lcFirst=function(c0){return c0.charAt(0).toLowerCase()+c0.substring(1)},c5.newError=c4,c5.ProtocolError=c4("ProtocolError"),c5.oneOfGetter=function(c0){for(var c1={},c2=0;c2-1;--c2)if(1===c1[c0[c2]]&&this[c0[c2]]!==e&&null!==this[c0[c2]])return c0[c2]}},c5.oneOfSetter=function(c0){return function(c1){for(var c2=0;c2>>7|c0.hi<<25)>>>0,c0.hi>>>=7;for(;c0.lo>127;)c1[c2++]=127&c0.lo|128,c0.lo=c0.lo>>>7;c1[c2++]=c0.lo}function c9(c0,c1,c2){c1[c2]=255&c0,c1[c2+1]=c0>>>8&255,c1[c2+2]=c0>>>16&255,c1[c2+3]=c0>>>24}c1.exports=c5;var c10,c11=c0(39),c12=c11.LongBits,c13=c11.base64,c14=c11.utf8;c5.create=c11.Buffer?function(){return(c5.create=function(){return new c10})()}:function(){return new c5},c5.alloc=function(c0){return new c11.Array(c0)},c11.Array!==Array&&(c5.alloc=c11.pool(c5.alloc,c11.Array.prototype.subarray)),c5.prototype.v=function(c0,c1,c3){return this.tail=this.tail.next=new c2(c0,c1,c3),this.len+=c1,this},c7.prototype=(0,_create2.default)(c2.prototype),c7.prototype.fn=function(c0,c1,c2){for(;c0>127;)c1[c2++]=127&c0|128,c0>>>=7;c1[c2]=c0},c5.prototype.uint32=function(c0){return this.len+=(this.tail=this.tail.next=new c7((c0>>>=0)<128?1:c0<16384?2:c0<2097152?3:c0<268435456?4:5,c0)).len,this},c5.prototype.int32=function(c0){return c0<0?this.v(c8,10,c12.fromNumber(c0)):this.uint32(c0)},c5.prototype.sint32=function(c0){return this.uint32((c0<<1^c0>>31)>>>0)},c5.prototype.uint64=function(c0){var c1=c12.from(c0);return this.v(c8,c1.length(),c1)},c5.prototype.int64=c5.prototype.uint64,c5.prototype.sint64=function(c0){var c1=c12.from(c0).zzEncode();return this.v(c8,c1.length(),c1)},c5.prototype.bool=function(c0){return this.v(c6,1,c0?1:0)},c5.prototype.fixed32=function(c0){return this.v(c9,4,c0>>>0)},c5.prototype.sfixed32=c5.prototype.fixed32,c5.prototype.fixed64=function(c0){var c1=c12.from(c0);return this.v(c9,4,c1.lo).v(c9,4,c1.hi)},c5.prototype.sfixed64=c5.prototype.fixed64,c5.prototype.float=function(c0){return this.v(c11.float.writeFloatLE,4,c0)},c5.prototype.double=function(c0){return this.v(c11.float.writeDoubleLE,8,c0)};var c15=c11.Array.prototype.set?function(c0,c1,c2){c1.set(c0,c2)}:function(c0,c1,c2){for(var c3=0;c3>>0;if(!c1)return this.v(c6,1,0);if(c11.isString(c0)){var c2=c5.alloc(c1=c13.length(c0));c13.decode(c0,c2,0),c0=c2}return this.uint32(c1).v(c15,c1,c0)},c5.prototype.string=function(c0){var c1=c14.length(c0);return c1?this.uint32(c1).v(c14.write,c1,c0):this.v(c6,1,0)},c5.prototype.fork=function(){return this.states=new c4(this),this.head=this.tail=new c2(c3,0,0),this.len=0,this},c5.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c2(c3,0,0),this.len=0),this},c5.prototype.ldelim=function(){var c0=this.head,c1=this.tail,c2=this.len;return this.reset().uint32(c2),c2&&(this.tail.next=c0.next,this.tail=c1,this.len+=c2),this},c5.prototype.finish=function(){for(var c0=this.head.next,c1=this.constructor.alloc(this.len),c2=0;c0;)c0.fn(c0.val,c1,c2),c2+=c0.len,c0=c0.next;return c1},c5.e=function(c0){c10=c0}},{39:39}],43:[function(c0,c1){function c2(){c4.call(this)}function c3(c0,c1,c2){c0.length<40?c5.utf8.write(c0,c1,c2):c1.utf8Write(c0,c2)}c1.exports=c2;var c4=c0(42);(c2.prototype=(0,_create2.default)(c4.prototype)).constructor=c2;var c5=c0(39),c6=c5.Buffer;c2.alloc=function(c0){return(c2.alloc=c5.u)(c0)};var c7=c6&&c6.prototype instanceof Uint8Array&&"set"===c6.prototype.set.name?function(c0,c1,c2){c1.set(c0,c2)}:function(c0,c1,c2){if(c0.copy)c0.copy(c1,c2,0,c0.length);else for(var c3=0;c3>>0;return this.uint32(c1),c1&&this.v(c7,c1,c0),this},c2.prototype.string=function(c0){var c1=c6.byteLength(c0);return this.uint32(c1),c1&&this.v(c3,c1,c0),this}},{39:39,42:42}]},{})}("object"==("undefined"==typeof window?"undefined":(0,_typeof3.default)(window))&&window||"object"==("undefined"==typeof self?"undefined":(0,_typeof3.default)(self))&&self||void 0)}).call(this,__webpack_require__(153)(module))},function(c0,c1){!function(){"use strict";for(var c0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c2=new Uint8Array(256),c3=0;c3>2],c5+=c0[(3&c3[c2])<<4|c3[c2+1]>>4],c5+=c0[(15&c3[c2+1])<<2|c3[c2+2]>>6],c5+=c0[63&c3[c2+2]];return c4%3==2?c5=c5.substring(0,c5.length-1)+"=":c4%3==1&&(c5=c5.substring(0,c5.length-2)+"=="),c5},c1.decode=function(c0){var c1,c3,c4,c5,c6,c7=.75*c0.length,c8=c0.length,c9=0;"="===c0[c0.length-1]&&(c7--,"="===c0[c0.length-2]&&c7--);var c10=new ArrayBuffer(c7),c11=new Uint8Array(c10);for(c1=0;c1>4,c11[c9++]=(15&c4)<<4|c5>>2,c11[c9++]=(3&c5)<<6|63&c6;return c10}}()},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__160__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__161__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__162__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__163__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__164__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__165__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__166__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__167__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__168__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__169__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__170__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__171__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__172__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__173__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__174__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__175__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__176__},function(c0,c1,c2){"use strict";c0.exports=function(c0,c1,c2,c3){for(var c4=65535&c0|0,c5=c0>>>16&65535|0,c6=0;0!==c2;){c2-=c6=c2>2e3?2e3:c2;do{c5=c5+(c4=c4+c1[c3++]|0)|0}while(--c6);c4%=65521,c5%=65521}return c4|c5<<16|0}},function(c0,c1,c2){"use strict";var c3=function(){for(var c0,c1=[],c2=0;c2<256;c2++){c0=c2;for(var c3=0;c3<8;c3++)c0=1&c0?3988292384^c0>>>1:c0>>>1;c1[c2]=c0}return c1}();c0.exports=function(c0,c1,c2,c4){var c5=c3,c6=c4+c2;c0^=-1;for(var c7=c4;c7>>8^c5[255&(c0^c1[c7])];return-1^c0}},function(c0,c1,c2){"use strict";var c3=c2(20),c4=!0,c5=!0;try{String.fromCharCode.apply(null,[0])}catch(c0){c4=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c0){c5=!1}for(var c6=new c3.Buf8(256),c7=0;c7<256;c7++)c6[c7]=c7>=252?6:c7>=248?5:c7>=240?4:c7>=224?3:c7>=192?2:1;function c8(c0,c1){if(c1<65534&&(c0.subarray&&c5||!c0.subarray&&c4))return String.fromCharCode.apply(null,c3.shrinkBuf(c0,c1));for(var c2="",c6=0;c6>>6,c1[c6++]=128|63&c2):c2<65536?(c1[c6++]=224|c2>>>12,c1[c6++]=128|c2>>>6&63,c1[c6++]=128|63&c2):(c1[c6++]=240|c2>>>18,c1[c6++]=128|c2>>>12&63,c1[c6++]=128|c2>>>6&63,c1[c6++]=128|63&c2);return c1},c1.buf2binstring=function(c0){return c8(c0,c0.length)},c1.binstring2buf=function(c0){for(var c1=new c3.Buf8(c0.length),c2=0,c4=c1.length;c24)c9[c3++]=65533,c2+=c5-1;else{for(c4&=2===c5?31:3===c5?15:7;c5>1&&c21?c9[c3++]=65533:c4<65536?c9[c3++]=c4:(c4-=65536,c9[c3++]=55296|c4>>10&1023,c9[c3++]=56320|1023&c4)}return c8(c9,c3)},c1.utf8border=function(c0,c1){var c2;for((c1=c1||c0.length)>c0.length&&(c1=c0.length),c2=c1-1;c2>=0&&128==(192&c0[c2]);)c2--;return c2<0||0===c2?c1:c2+c6[c0[c2]]>c1?c2:c1}},function(c0,c1,c2){"use strict";c0.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(c0,c1,c2){"use strict";c0.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(c0,c1,c2){"use strict";(function(c0){Object.defineProperty(c1,"__esModule",{value:!0}),c1.WfcImpl=void 0;var c3=c59(c2(62)),c4=c59(c2(107)),c5=c59(c2(77)),c6=c59(c2(210)),c7=c59(c2(213)),c8=c59(c2(120)),c9=c59(c2(80)),c10=c59(c2(81)),c11=c59(c2(121)),c12=c59(c2(122)),c13=c59(c2(55)),c14=c59(c2(123)),c15=c59(c2(82)),c16=c2(125),c17=c2(29),c18=c2(258),c19=c59(c2(160)),c20=c59(c2(161)),c21=c59(c2(371)),c22=c59(c2(162)),c23=c59(c2(163)),c24=c59(c2(372)),c25=c59(c2(164)),c26=c59(c2(165)),c27=c59(c2(373)),c28=c59(c2(166)),c29=c59(c2(167)),c30=c59(c2(374)),c31=c59(c2(168)),c32=c59(c2(375)),c33=c59(c2(169)),c34=c59(c2(170)),c35=c59(c2(171)),c36=c59(c2(172)),c37=c59(c2(173)),c38=c59(c2(376)),c39=c2(377),c40=c59(c2(378)),c41=c59(c2(384)),c42=c59(c2(385)),c43=c59(c2(92)),c44=c59(c2(386)),c45=c59(c2(395)),c46=c59(c2(175)),c47=c59(c2(396)),c48=c59(c2(176)),c49=c59(c2(174)),c50=c59(c2(397)),c51=c59(c2(398)),c52=c2(399),c53=c59(c2(400)),c54=c59(c2(401)),c55=c59(c2(402)),c56=c59(c2(403)),c57=c59(c2(404)),c58=c59(c2(405));function c59(c0){return c0&&c0.__esModule?c0:{default:c0}}var c60=c1.WfcImpl=function(){function c1(){var c0=this;(0,c13.default)(this,c1),this.initialized=!1,this.connectionStatus=0,this.userId="",this.token="",this.clientId="",this.chatRoomMsgHead=c15.default.ZERO,this.privateSecret="",this.store=new c40.default(this),this.isReceiptEnable=!1,this.isUserOnlineStateEnable=!1,this.serverConfigs={},this.isClearGroupMsgWhenKickoff=!1,this.isGlobalDisableDraftSync=!1,this.isConnecting=!1,this.isUserDisconnected=!1,this.isPullingSetting=!1,this.isPullingMsg=!1,this.isPullingChatroomMsg=!1,this.isPullingRecv=!1,this.isPullingRead=!1,this.isPullingGroupMsg=!1,this.isConversationTargetPreloaded=!1,this.isFriendPreloaded=!1,this.isFriendRequestPreloaded=!1,this.settingHead=c15.default.ZERO,this.friendHead=c15.default.ZERO,this.friendRequestHead=c15.default.ZERO,this.recvHead=c15.default.ZERO,this.readHead=c15.default.ZERO,this.groupHead=c15.default.ZERO,this.deltaTime=0,this.lastActiveTime=0,this.backupAddressStrategy=1,this.backupHost="",this.backupPort=80,this.pendingMN=!1,this.pendingGMN=!1,this.uploadingMap=new c12.default,this.voipAnswerMsgMap=new c12.default,this.voipByeMsgMap=new c12.default,this._callbackOrLoadFromRemoteMessages=function(c2,c3,c4){var c5=[],c6=[],c7=!0,c8=!1,c9=void 0;try{for(var c10,c12=(0,c11.default)(c2);!(c7=(c10=c12.next()).done);c7=!0){var c13=c10.value;c13.messageContent.__notLoaded?c5.push(c13.messageUid):c6.push(c13)}}catch(c0){c8=!0,c9=c0}finally{try{!c7&&c12.return&&c12.return()}finally{if(c8)throw c9}}if(c5.length>0){var c14=c39.INT64ListBuf.create();c14.id=c5,console.log("loadSuperGroupMessages request",c14),c0._publish("MGS",c39.INT64ListBuf.encode(c14).finish(),(function(){var c2=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c5=arguments[1];if(0===c2&&c5){var c7=c39.MessageList.decode(c5);c0.log("loadSuperGroupMessages result data",c7),c7&&c7.message&&(c7.message.forEach((function(c2){if(!(c1.pcNotSupportMessageTypes.indexOf(c2.content.type)>-1)){var c3=c21.default.fromProtoMessage(c2),c4=c0.store.getMessageByUid(c3.messageUid);c3.messageId=c4.messageId,c0.store.updateMessageById(c3),c6.push(c3)}})),c6.sort((function(c0,c1){return(0,c16.eq)(c0.timestamp,c1.timestamp)?(0,c16.compare)(c0.messageUid,c1.messageUid):(0,c16.compare)(c0.timestamp,c1.timestamp)}))),c3&&c3(c6)}else c4&&c4(0!==c2?c2:-1)}))}else c3&&c3(c2)}}var c2,c59;return(0,c14.default)(c1,[{key:"resetMqtt",value:function(){var c0=this;this.mqttClientInstance&&(this.mqttClientInstance.removeAllListeners(),this.mqttClientInstance.end(!0,{},(function(){c0.log("mqtt client ended")})),this.mqttClientInstance=null)}},{key:"reset",value:function(){this.resetMqtt(),this.connectionStatus=c41.default.ConnectionStatusLogout,this.isConnecting=!1,this.userId="",this.token="",this.clientId="",this.msgHead=c15.default.ZERO,this.privateSecret="",this.store=new c40.default(this),this.isReceiptEnable=!1,this.isGlobalDisableDraftSync=!1,this.isConnecting=!1,this.isUserDisconnected=!1,this.isPullingSetting=!1,this.isPullingRecv=!1,this.isPullingRead=!1,this.isConversationTargetPreloaded=!1,this.isFriendPreloaded=!1,this.isFriendRequestPreloaded=!1,this.settingHead=c15.default.ZERO,this.friendHead=c15.default.ZERO,this.friendRequestHead=c15.default.ZERO,this.recvHead=c15.default.ZERO,this.readHead=c15.default.ZERO,this.groupHead=c15.default.ZERO,this.deltaTime=0,this.lastActiveTime=0,this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=0)}},{key:"onConnectionChanged",value:function(c0){var c1=this;if(this.connectionStatus!==c0)if(c0===c41.default.ConnectionStatusConnected&&this._pullUnreadMessages(),c43.default.ENABLE_INFO_PERSISTENCE&&(!c43.default.MESSAGE_ROAMING&&c0===c41.default.ConnectionStatusConnected||c43.default.MESSAGE_ROAMING&&c0===c41.default.ConnectionStatusReceiveing)&&this.store.loadPersistGroups(),c0===c41.default.ConnectionStatusConnected){var c2=this.store.friends.size+this.store.conversationInfos.length-this.store.users.size,c3=0;c3+=1*Math.round(c2/2e3),c3+=1*Math.round(this.store.groups.size/10),setTimeout((function(){console.log("connection status changed to status in ",c3),c1.connectionStatus=c0,c1.eventEmitter.emit(c38.default.ConnectionStatusChanged,c0)}),1e3*c3)}else this.log("connection status changed",c0),this.connectionStatus=c0,this.eventEmitter.emit(c38.default.ConnectionStatusChanged,c0)}},{key:"_isGroupNotificationTargetsIncludeCurrentUser",value:function(c0){}},{key:"onConferenceEvent",value:function(c0){this.eventEmitter.emit(c38.default.ConferenceEvent,c0)}},{key:"onReceiveMessage",value:function(c0){var c2=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c3=this,c4=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c5=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c6=[],c7=[];this.log("onReceiveMessage length: "+c0.length+", pullSettings: "+c2+" saveToStore "+c4),c0.forEach((function(c8,c9){if(!(c1.pcNotSupportMessageTypes.indexOf(c8.content.type)>-1)){var c10=c21.default.fromProtoMessage(c8),c11=c90&&(c3.store.deleteMessageByUid(c12),c3.onRemoteMessageDeleted(c13.messageUid)))}var c14=c19.default.getMessageContentPersitFlag(c10.content.type);if(-1===c14&&(c14=c10.content.persistFlag),c10.messageContent.type===c22.default.RecallMessage_Notification&&c3.onRecallMessage(c10.messageContent.operatorId,c10.messageContent.messageUid),[c22.default.VOIP_CONTENT_TYPE_START,c22.default.VOIP_CONTENT_TYPE_ACCEPT,c22.default.VOIP_CONTENT_TYPE_END].indexOf(c10.messageContent.type)>=0&&c3.updateCallStartMessage(c10),!c4||c14!==c25.default.Persist&&c14!==c25.default.Persist_And_Count){if(c43.default.ENABLE_GENERATE_CONVERSATION_FOR_TRANSPARENT_MESSAGE&&c3.store.genAndSaveDefaultConversationInfo(c10.conversation),c43.default.ENABLE_ROAMING_TRANSPARENT_MESSAGE_RECEIVING_NOTIFICATION&&c3.eventEmitter.emit(c38.default.ReceiveMessage,c10,c11),c10.messageContent instanceof c53.default&&c10.from===c3.userId){var c16=c10.messageContent,c17=c10.conversation;c3.store.setLastReceivedMessageUnread(c17,c16.messageUid,c16.timestamp)}c5||c2||c3.eventEmitter.emit(c38.default.ReceiveMessage,c10,c11)}else c10.conversation.type===c29.default.ChatRoom?c10.messageId=c3.store.genChatRoomMessageId():c10.messageId=c3.store.genNormalMessageId(),c3.store.saveMessage(c10),c3.store.updateConversationLastMessage(c10)&&c3.eventEmitter.emit(c38.default.ConversationInfoUpdate,c3.store.getConversationInfo(c10.conversation)),c5||c2&&!c43.default.ENABLE_ROAMING_MESSAGE_RECEIVING_NOTIFICATION||c3.eventEmitter.emit(c38.default.ReceiveMessage,c10,c11)}}})),c6.forEach((function(c0){c3._reloadGroupInfosFromRemote(c0)})),c7.forEach((function(c0){c3._reloadGroupMembersFromRemote(c0,c3.store.getGroupMemberMaxDt(c0))}))}},{key:"_handleGroupNotificationMessage",value:function(c0,c1,c2,c3){var c4=this,c5=[c22.default.CreateGroup_Notification,c22.default.AddGroupMember_Notification,c22.default.KickOffGroupMember_Notification,c22.default.TransferGroupOwner_Notification,c22.default.ModifyGroupExtra_Notification,c22.default.ModifyGroupAlias_Notification];if(c5.indexOf(c0.content.type)>-1)if(c2.push(c0.conversation.target),c3.push(c0.conversation.target),c0.content.type===c22.default.KickOffGroupMember_Notification){var c6=c0.messageContent.kickedMembers.find((function(c0){return c0===c4.getUserId()}));this.log("kickoff",c0.conversation.target,this.isClearGroupMsgWhenKickoff),c6===this.getUserId()&&(this.store.removeGroupAndMembers(c0.conversation.target,!this.isClearGroupMsgWhenKickoff),this.isClearGroupMsgWhenKickoff&&this.store.removeConversation(c0.conversation,!0))}else c0.content.type===c22.default.AddGroupMember_Notification&&(this.isClearGroupMsgWhenKickoff||this.store.clearConversationMessagesBeforeMessageUid(c0.conversation,c0.messageUid));if((c5=[c22.default.SetGroupManager_Notification,c22.default.MuteGroupMember_Notification,c22.default.AllowGroupMember_Notification,c22.default.ModifyGroupMemberExtra_Notification]).indexOf(c0.content.type)>-1&&c3.push(c0.conversation.target),(c5=[c22.default.ChangeGroupName_Notification,c22.default.ChangeGroupPortrait_Notification,c22.default.MuteGroup_Notification,c22.default.ChangeJoinType_Notification,c22.default.ChangePrivateChat_Notification,c22.default.ChangeSearchable_Notification,c22.default.ModifyGroupExtra_Notification]).indexOf(c0.content.type)>-1&&c2.push(c0.conversation.target),(c5=[c22.default.QuitGroup_Notification]).indexOf(c0.content.type)>-1){if(c0.from===this.getUserId())return this.store.removeGroupAndMembers(c0.conversation.target),this.store.removeGroupSettings(c0.conversation.target),this.store.removeFavGroup(c0.conversation.target),void this.store.removeConversation(c0.conversation,!0);c2.push(c0.conversation.target),c3.push(c0.conversation.target)}if((c5=[c22.default.DismissGroup_Notification]).indexOf(c0.content.type)>-1){this.store.removeGroupAndMembers(c0.conversation.target,this.serverConfigs.isKeepMsgAfterDismiss),this.store.removeGroupSettings(c0.conversation.target),this.store.removeFavGroup(c0.conversation.target),this.serverConfigs.isKeepMsgAfterDismiss||this.store.removeConversation(c0.conversation,!0);var c7=c2.filter((function(c1){return c1!==c0.conversation.target})),c8=c3.filter((function(c1){return c1!==c0.conversation.target}));c2.length=0,c2.push.apply(c2,(0,c10.default)(c7)),c3.length=0,c3.push.apply(c3,(0,c10.default)(c8))}}},{key:"updateCallStartMessage",value:function(c0){var c1=void 0,c2=c0.messageContent.callId;if(c0.messageContent.type===c22.default.VOIP_CONTENT_TYPE_END?(this.voipByeMsgMap.set(c2,c0),c1=this.store.getCallStartMessage(c2)):c0.messageContent.type===c22.default.VOIP_CONTENT_TYPE_ACCEPT?(this.voipAnswerMsgMap.set(c2,c0),c1=this.store.getCallStartMessage(c2)):c1=c0,c1){var c3=this.voipAnswerMsgMap.get(c2);c3&&(c1.messageContent.connectTime=c3.timestamp,this.voipAnswerMsgMap.delete(c2));var c4=this.voipByeMsgMap.get(c2);c4&&(c1.messageContent.endTime=c4.timestamp,c1.messageContent.status=c4.messageContent.reason,this.voipByeMsgMap.delete(c2))}}},{key:"onGroupInfoUpdate",value:function(c0){}},{key:"onChannelInfoUpdate",value:function(c0){}},{key:"onSettingUpdate",value:function(c0){this.eventEmitter.emit(c38.default.SettingUpdate)}},{key:"onRecallMessage",value:function(c0,c1){var c2=this.store.getMessageByUid(c1);if(c2&&0!==c2.messageId){var c3=c2.messageContent;if(c0===this.userId){var c4={};c4.s=c2.from,c4.ts=(0,c16.numberValue)(c2.timestamp);var c5=c2.content;c5&&c5.hasOwnProperty("type")||(c5=c2.messageContent.encode()),c4.t=c5.type,c4.sc=c5.searchableContent?c5.searchableContent:"",c4.c=c5.content?c5.content:"",c4.e=c5.extra?c5.content:"",c2.extra=(0,c9.default)(c4)}var c6=new c24.default(c0,c1);c6.fromSelf=!0,c6.setExtra(c2.extra),c2.messageContent=c6,this.store.updateMessageById(c2);var c7=this.getConversationInfo(c2.conversation);1===c2.direction&&c19.default.getMessageContentFlag(c3.type)===c25.default.Persist_And_Count&&(c2.status===c23.default.Unread?c7.unreadCount.unread-=1:c2.status===c23.default.Mentioned?c7.unreadCount.unreadMention-=1:c2.status===c23.default.AllMentioned&&(c7.unreadCount.unreadMentionAll-=1)),this.eventEmitter.emit(c38.default.RecallMessage,c0,c1)}}},{key:"onRemoteMessageDeleted",value:function(c0){this.log("onRemoteMessageDeleted",c0),this.store.deleteMessageByUid(c0),this.eventEmitter.emit(c38.default.MessageDeleted,c0)}},{key:"onMessageDeleted",value:function(c0){this.log("onMessageDeleted",c0),this.eventEmitter.emit(c38.default.DeleteMessage,c0)}},{key:"onUserInfoUpdate",value:function(c0){var c1=this;this.log("userInfo update, ids",c0),JSON.parse(c0).map((function(c0){c1._reloadUserInfosFromRemote([c0])}))}},{key:"onFriendListUpdate",value:function(c0){this.log("friendList update, ids",c0),this.eventEmitter.emit(c38.default.FriendListUpdate,c0)}},{key:"onFriendRequestUpdate",value:function(c0){this.eventEmitter.emit(c38.default.FriendRequestUpdate,c0)}},{key:"registerMessageContent",value:function(c0,c1,c2,c3){c19.default.registerMessageContent(c0,c1,c2,c3)}},{key:"getHost",value:function(){return(0,c18.host)()}},{key:"getClientId",value:function(){if(""===this.clientId)switch(c43.default.CLIENT_ID_STRATEGY){case 0:default:this.clientId=this.uuid();break;case 1:this.clientId=sessionStorage.getItem("clientId"),this.clientId||(this.clientId=this.uuid(),sessionStorage.setItem("clientId",this.clientId));break;case 2:this.clientId=localStorage.getItem("clientId"),this.clientId||(this.clientId=this.uuid(),localStorage.setItem("clientId",this.clientId))}return this.log("clientId",this.clientId),this.clientId}},{key:"getEncodedClientId",value:function(){var c0=this.getClientId();return(0,c17.AESEncrypt)(c0,"")}},{key:"encodeData",value:function(c0){return(0,c17.AESEncrypt)(c0,this.privateSecret)}},{key:"decodeData",value:function(c0){return this._Utf8ArrayToStr((0,c17.AESDecrypt)(c0,this.privateSecret,!1))}},{key:"_Utf8ArrayToStr",value:function(c0){var c1,c2,c3,c4,c5,c6;for(c1="",c3=c0.length,c2=0;c2>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:c1+=String.fromCharCode(c4);break;case 12:case 13:c5=c0[c2++],c1+=String.fromCharCode((31&c4)<<6|63&c5);break;case 14:c5=c0[c2++],c6=c0[c2++],c1+=String.fromCharCode((15&c4)<<12|(63&c5)<<6|(63&c6)<<0)}return c1}},{key:"uuid",value:function(){for(var c0=[],c1="0123456789abcdef",c2=0;c2<36;c2++)c0[c2]=c1.substr(Math.floor(16*Math.random()),1);return c0[14]="4",c0[19]=c1.substr(3&c0[19]|8,1),c0[8]=c0[13]=c0[18]=c0[23]="-",c0.join("")}},{key:"init",value:function(c0){this.initialized=!0,c0&&c0.length>0&&c43.default.config(c0[0])}},{key:"onForeground",value:function(){if(this.log("onForeground"),this.connectionStatus!==c41.default.ConnectionStatusConnected)this._reconnect();else{var c0=(new Date).getTime(),c1=c43.default.KEEP_ALIVE_TIMEOUT>c43.default.KEEP_ALIVE_INTERNAL?c43.default.KEEP_ALIVE_TIMEOUT:c43.default.KEEP_ALIVE_INTERNAL;c0-this.lastActiveTime>1e3*c1?(this.log("keep alive timeout, reconnect..."),this._reconnect(!0)):this.log("already connected")}}},{key:"connect",value:function(c0,c2){var c3=this;this.initialized?(this.log("connect",c1.version,this.getHost(),c0,c2),this.isUserDisconnected=!1,c0&&c2?"string"==typeof c0&&"string"==typeof c2?!this.mqttClientInstance||!this.isConnecting&&this.connectionStatus!==c41.default.ConnectionStatusConnected||this.userId!==c0||this.token!==c2?(""!==this.userId&&this.userId!==c0&&this.reset(),this.onConnectionChanged(c41.default.ConnectionStatusConnecting),this.reconnectTimer||(this.reconnectTimer=setInterval((function(){c3.connectionStatus===c41.default.ConnectionStatusUnconnected&&""!==c3.userId&&""!==c3.token&&(c3.isConnecting||(c3.log("reconnect",c3.userId,c3.clientId,c3.token,(new Date).valueOf()),c3.resetMqtt(),c3.connect(c3.userId,c3.token)))}),c1.connectionTimeout)),this.userId=c0,this.token=c2,this.isConnecting=!0,(0,c18.connect)(c0,this.getClientId(),c2,(function(c0,c1,c2,c4,c5){if(c3.log("connect/route error",c0,(new Date).valueOf()),-1===c0&&c3.connectionStatus===c41.default.ConnectionStatusConnected&&c3.mqttClientInstance)c3.isConnecting=!1;else{if(0!==c0){c3.isConnecting=!1;var c6=c41.default.ConnectionStatusUnconnected;return c0===c45.default.kEcServerTokenIncorrect?c6=c41.default.ConnectionStatusTokenIncorrect:c0===c45.default.kEcServerUserIsBlocked?c6=c41.default.ConnectionStatusRejected:c0===c45.default.kEcServerSecrectKeyMismatch?c6=c41.default.ConnectionStatusSecretKeyMismatch:c0===c45.default.kConnectionStatusKickedOff?c6=c41.default.ConnectionStatusKickedOff:c0===c45.default.kEcServerNotLicensed?c6=c41.default.ConnectionStatusNotLicensed:c0===c45.default.kEcServerTimeInconsistent?c6=c41.default.ConnectionStatusTimeInconsistent:c0===c45.default.kEcWebsocketNotConfigured&&(c3.error("IM 服务 websocket 配置不正确,请参考:https://docs.wildfirechat.cn/web/"),c6=c41.default.ConnectionStatusServerDown),c3.onConnectionChanged(c6),void(c1&&(c1.removeAllListeners(),c1.end(!0,{},(function(){c3.log("mqtt client ended")}))))}c3.mqttClientInstance=c1,c3.privateSecret=c2,c3.serverConfigs=c5||{},c3.isReceiptEnable=c5.isReceiptEnable,c3.isUserOnlineStateEnable=c5.isUserOnlineStateEnable,c3.isClearGroupMsgWhenKickoff=c5.isClearGroupMsgWhenKickoff,c3.isGlobalDisableDraftSync=c5.isGlobalDisableDraftSync,c3.mqttClientInstance.on("connect",(function(c0){c3.isConnecting=!1,c3.isPullingMsg=!1,c3.isPullingChatroomMsg=!1,c3.lastActiveTime=(new Date).getTime();var c1=c39.ConnectAckPayload.decode(c0.payload);if(c3.log("connect ack",c1,c3.msgHead),c3._pullFriends(c1.friendHead),c3._pullFriendRequest(c1.friendRqHead),c3.msgHead){var c2=c3.settingHead.compare(c1.settingHead)<0;c3._pullMessages(c1.msgHead,0,c2,c1.recvHead,c1.readHead,c1.groupConvHead,!0)}else c43.default.MESSAGE_ROAMING?(c3.msgHead=c15.default.ZERO,c3.log("pull roaming message",c3.msgHead.toString(),c1.msgHead.toString()),c3.onConnectionChanged(c41.default.ConnectionStatusReceiveing),c3._pullMessages(c15.default.MAX_VALUE,0,!0,c1.recvHead,c1.readHead,c1.groupConvHead,!0)):(c3.msgHead=c1.msgHead,c3._pullUserSettings(c1.settingHead));var c5=(new Date).getTime();c3.deltaTime=Number(c1.serverTime)-c5-(c5-c4)/2})),c3.mqttClientInstance.on("reconnect",(function(){c3.isConnecting=!1,c3.log("------reconnect--------",c3.clientId)})),c3.mqttClientInstance.on("offline",(function(){c3.log("------offline--------"),c3.isConnecting=!1,c3.connectionStatus=c41.default.ConnectionStatusUnconnected,!c3.isUserDisconnected&&c3._reconnect()})),c3.mqttClientInstance.on("close",(function(){c3.log("------close--------",c3.clientId),c3.isConnecting=!1,c3.connectionStatus=c41.default.ConnectionStatusUnconnected,!c3.isUserDisconnected&&c3._reconnect()})),c3.mqttClientInstance.on("disconnect",(function(){c3.log("------disconnect--------")})),c3.mqttClientInstance.on("error",(function(c0){c3.log("------error--------",c0),c3.isConnecting=!1,c3.connectionStatus=c41.default.ConnectionStatusUnconnected,!c3.isUserDisconnected&&c3._reconnect()})),c3.mqttClientInstance.on("pingresp",(function(c0){console.log("pingresp",(new Date).getTime()),c3.lastActiveTime=(new Date).getTime()})),c3.mqttClientInstance.on("message",(function(c0,c1,c2){if(c3.lastActiveTime=(new Date).getTime(),c3.log("on push",c0),"MS"===c0){var c4=c39.Message.decode(c1),c5=[];c5.push(c4),c3.onReceiveMessage(c5,!1,!1)}else if("MN"===c0){var c6=c39.NotifyMessage.decode(c1);c3._pullMessages(c6.head,c6.type,!1,!1,!1,!1,!1,!0)}else if("GMN"===c0){var c7=c39.NotifyGroupMessage.decode(c1);c3._pullGroupConvs(c7.head,c7.target,c7.line,!0)}else if("FN"===c0){if(8===c1.length){var c8=c3._getLongFromBuffer(c1);c3._pullFriends(c8)}}else if("FRN"===c0){if(8===c1.length){var c9=c3._getLongFromBuffer(c1);c3._pullFriendRequest(c9)}}else if("UN"===c0){if(8===c1.length){var c10=c3._getLongFromBuffer(c1);c3._pullUserSettings(c10)}}else if("RMN"===c0){var c11=c39.NotifyRecallMessage.decode(c1);c3.onRecallMessage(c11.fromUser,c11.id)}else if("RCN"===c0){if(8===c1.length){var c12=c3._getLongFromBuffer(c1);c3._pullRecv(c12)}}else if("RDN"===c0){if(8===c1.length){var c13=c3._getLongFromBuffer(c1);c3._pullRead(c13)}}else if("CONFN"===c0){var c14=c39.IDBuf.decode(c1);c3.onConferenceEvent(c14.id)}else"ROFL"===c0?(c3.warn("kicked off,need app relogin"),c3._reconnect(!0)):"UIN"===c0?c3.getUserInfo(c3.userId,!0):"POSN"===c0&&c3._onlineStateNotify(c1)}))}}),{backupAddressStrategy:this.backupAddressStrategy,backupHost:this.backupHost,backupPort:this.backupPort})):this.log("connect 0",this.isConnecting,this.connectionStatus,this.userId,this.token):this.error("userId and token must be string type"):this.log("userId or token error")):this.error("连接失败!!连接IM之前必须先调用 wfc.init 进行初始化!")}},{key:"_reconnect",value:function(){var c0=this,c2=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(c2)return this.log("force reconnect"),this.resetMqtt(),void this.connect(this.userId,this.token);this.isConnecting||setTimeout((function(){c0.connectionStatus!==c41.default.ConnectionStatusUnconnected||c0.isConnecting||(c0.resetMqtt(),c0.connect(c0.userId,c0.token))}),c1.connectionTimeout)}},{key:"_getLongFromBuffer",value:function(c0){return c15.default.fromBytesBE(c0.slice(0,8))}},{key:"_getStringFromBuffer",value:function(c0){return c0.toString()}},{key:"_pullMessages",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c2=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c3=arguments[3],c4=arguments[4],c5=arguments[5],c6=this,c7=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c8=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(this.log("to pull user messages",c0,c1,c2),1!==c1){if(c8&&(this.pendingMN=!0),this.isPullingMsg||this.msgHead.compare(c0)>=0&&!this.pendingMN)return this.log("local message is up to date or is pulling",c0,this.msgHead,c2,c3,c4,c7,c8),void(c2||c7?(this._pullUserSettings(c15.default.MAX_VALUE),this.isReceiptEnable&&(this._pullRecv(c3),this._pullRead(c4),c7&&this._syncRead()),this._pullGroupConvs(c5)):this.connectionStatus!==c41.default.ConnectionStatusConnected&&this.onConnectionChanged(c41.default.ConnectionStatusConnected));this.isPullingMsg=!0,this.pendingMN=!1}else{if(!this.currentChatRoomId)return;if(this.isPullingChatroomMsg||(0,c16.gte)(this.chatRoomMsgHead,c0))return;this.isPullingChatroomMsg=!0}var c9=c39.PullMessageRequest.encode({id:1!==c1?this.msgHead:this.chatRoomMsgHead,type:c1}).finish();this.log("pull user messages, type: "+c1+", head: "+(0,c16.stringValue)(c0)+", msgHead: "+(0,c16.stringValue)(this.msgHead)+", chatroomMsgHead: "+(0,c16.stringValue)(this.chatRoomMsgHead)),this._publish("MP",c9,(function(c0,c8){if(c6.log("pull user messages response",c0),0!==c0||!c8)return c6.log("pull message error",c0),1!==c1?c6.isPullingMsg=!1:c6.isPullingChatroomMsg=!1,void(c2&&c6._pullUserSettings(c6.settingHead));var c9=c39.PullMessageResult.decode(c8);if(0===c1)(0,c16.gt)(c9.current,c6.msgHead)&&(c6.msgHead=c9.current),c6.isPullingMsg=!1,c6.log("pull message result",(0,c16.stringValue)(c9.current),c9.message.length);else if(1===c1){if(c6.log("pull chatroom message result",(0,c16.stringValue)(c9.current),c9.message.length),c6.isPullingChatroomMsg=!1,c9.message.length>0&&c9.message[0].conversation.target!==c6.currentChatRoomId)return void c6.log("user not in chatroom now, drop message");c6.chatRoomMsgHead=c9.current}c6.onReceiveMessage(c9.message,c2),c6._pullMessages(c9.head,c1,c2,c3,c4,c5,c7)}))}},{key:"_pullRecv",value:function(c0){var c1=this;if(this.isReceiptEnable&&c0&&!this.isPullingRecv&&!(this.recvHead.compare(c0)>=0)){this.isPullingRecv=!0;var c2=c39.Version.create();c2.version=this.recvHead;var c3=c39.Version.encode(c2).finish();this.log("pull recv",this.recvHead),this._publish("RCP",c3,(function(c0,c2){if(c1.isPullingRecv=!1,0===c0&&c2){var c3=c39.PullDeliveryResult.decode(c2);c1.log("pull recv result",c3),c1.recvHead=c3.current,c1.store.updateDeliveries(c3.delivery);var c4=new c12.default;c3.delivery.forEach((function(c0){c4.set(c0.fromUser,c0.receiveTime)})),c1.eventEmitter.emit(c38.default.MessageReceived,c4),c1._pullRecv(c3.head)}}))}}},{key:"_pullRead",value:function(c0){var c1=this;if(!(!c0||this.isPullingRead||this.readHead.compare(c0)>=0)){this.isPullingRead=!0;var c2=c39.Version.create();c2.version=this.readHead;var c3=c39.Version.encode(c2).finish();this.log("pull read",this.readHead),this._publish("RDP",c3,(function(c0,c2){if(c1.isPullingRead=!1,0===c0&&c2){var c3=c39.PullReadResult.decode(c2);c1.log("pull read result",c3),c1.readHead=c3.current,c1.store.updateReads(c3.read);var c4=[];c3.read.forEach((function(c0){var c1=new c50.default;c1.userId=c0.fromUser,c1.readTime=c0.readTime,0===c0.conversation.type&&(c0.conversation.target=c0.fromUser),c1.conversation=(0,c8.default)(new c28.default,c0.conversation),c1.conversation.conversationType=c1.conversation.type,c4.push(c1)})),c1.eventEmitter.emit(c38.default.MessageRead,c4),c1._pullRead(c3.head)}}))}}},{key:"_pullGroupConvs",value:function(c0,c1,c2,c3){var c4=this;if(c3||!(0,c16.gte)(this.groupHead,c0))if(this.isPullingGroupMsg)this.pendingGMN=!0;else{this.isPullingGroupMsg=!0;var c5=c39.PullGroupConvRequest.create();c5.id=this.groupHead,c1&&(c5.target=c1,c5.line=c2,c5.messageId=this.store.getGroupMessageHead(c1,c2)),c5=c39.PullGroupConvRequest.encode(c5).finish(),this.log("pull groupConvs",this.groupHead),this._publish("GCP",c5,(function(c0,c3){if(c4.isPullingGroupMsg=!1,0===c0&&c3){var c5=c39.PullGroupConvResult.decode(c3);c4.log("pull groupConvs result",c5),c4._onPullGroupConvSuccess(c1,c2,c5)}}))}}},{key:"_onPullGroupConvSuccess",value:function(c0,c1,c2){this.groupHead=c2.current;var c3=!0,c4=!1,c5=void 0;try{for(var c6,c7=(0,c11.default)(c2.conv);!(c3=(c6=c7.next()).done);c3=!0){var c8=c6.value;this.store.setGroupMessageServerHead(c8.groupId,c8.line,c8.msgHead)}}catch(c0){c4=!0,c5=c0}finally{try{!c3&&c7.return&&c7.return()}finally{if(c4)throw c5}}var c9=c2.groupMessage;if(c0&&(c9.msg.length>0||c9.message.length>0)){var c10=c9.msg,c12=c9.message,c13=this._fillGroupMessage(c9.groupId,c9.line,c12),c14=c10.concat(c13);this._onPullGroupMessages(c14,[c9])}this.isPullingGroupMsg=!1,this._pullGroupMessages(),this.pendingGMN&&(this.pendingGMN=!1,this._pullGroupConvs(c15.default.MAX_VALUE,"",0,!1))}},{key:"_pullGroupMessages",value:function(){var c0=this;if(!this.isPullingGroupMsg){var c1=this.store.getGroupMessageHeads(),c2=[];if(c1.length>0){var c3=!0,c4=!1,c5=void 0;try{for(var c6,c7=(0,c11.default)(c1);!(c3=(c6=c7.next()).done);c3=!0){var c8=c6.value,c9=c39.PullGroupMessageRequest.create();c9.groupId=c8.target,c9.line=c8.line,c9.id=c8.head,c2.push(c9)}}catch(c0){c4=!0,c5=c0}finally{try{!c3&&c7.return&&c7.return()}finally{if(c4)throw c5}}}if(c2.length>0){this.isPullingGroupMsg=!0;var c10=c39.PullGroupMessageRequests.create();c10.request=c2,this.log("_pullGroupMessages",c10,c2),c10=c39.PullGroupMessageRequests.encode(c10).finish(),this._publish("GMP",c10,(function(c1,c2){if(c0.isPullingGroupMsg=!1,0===c1&&c2){var c3=c39.PullGroupMessageResults.decode(c2);c0.log("_pullGroupMessages result",c3),c0._onPullGroupMessagesSuccess(c3)}}))}}}},{key:"_onPullGroupMessagesSuccess",value:function(c0){if(c0.result.length){var c1=[],c2=!0,c3=!1,c4=void 0;try{for(var c5,c6=(0,c11.default)(c0.result);!(c2=(c5=c6.next()).done);c2=!0){var c7=c5.value,c8=c7.msg,c9=c7.message,c10=this._fillGroupMessage(c7.groupId,c7.line,c9);c1=c1.concat(c8.concat(c10))}}catch(c0){c3=!0,c4=c0}finally{try{!c2&&c6.return&&c6.return()}finally{if(c3)throw c4}}this._onPullGroupMessages(c1,c0.result)}this.isPullingGroupMsg=!1,this._pullGroupMessages(),this.pendingGMN&&(this.pendingGMN=!1,this._pullGroupConvs(c15.default.MAX_VALUE,"",0,!1))}},{key:"_onPullGroupMessages",value:function(c0,c1){console.log("_onPullGroupMessages",c0,c1),this.onReceiveMessage(c0,!1,!0,c0.length>50);var c2=!0,c3=!1,c4=void 0;try{for(var c5,c6=(0,c11.default)(c1);!(c2=(c5=c6.next()).done);c2=!0){var c7=c5.value,c8=c29.default.Group+"-"+c7.line+"-"+c7.groupId,c9=this.getUserSetting(c37.default.Conversation_Sync,c8);c9&&(0,c16.gt)(c9,0),this.store.setGroupMessageHead(c7.groupId,c7.line,c7.current),this.store.setGroupMessageServerHead(c7.groupId,c7.line,c7.head)}}catch(c0){c3=!0,c4=c0}finally{try{!c2&&c6.return&&c6.return()}finally{if(c3)throw c4}}}},{key:"_parseGroupMessageFlag",value:function(c0){return{contentType:c0>>8&2047,persistFlag:c0>>4&15,mentionedType:c0>>1&7,send:(1&c0)>0}}},{key:"_messageId2Time",value:function(c0){var c1=c0.shiftRight(21);return c1=c1.add(1514736e6)}},{key:"_fillGroupMessage",value:function(c0,c1,c2){var c3=[],c4=!0,c5=!1,c6=void 0;try{for(var c7,c8=(0,c11.default)(c2);!(c4=(c7=c8.next()).done);c4=!0){var c9=c7.value,c10=c39.Message.create(),c12=this._parseGroupMessageFlag(c9.flag);c10.messageId=c9.messageId,c10.conversation=c39.Conversation.create(),c10.conversation.type=c29.default.Group,c10.conversation.target=c0,c10.conversation.line=c1,c10.content=c39.MessageContent.create(),c10.content.type=c12.contentType,c10.content.persistFlag=c12.persistFlag,c10.content.mentionedType=c12.mentionedType,c10.content.__notLoaded=!0,c10.content.mentionedType>0&&2!==c10.content.mentionedType&&c10.content.mentionedTarget.push(this.userId),c10.fromUser=c9.fromUser,c10.serverTimestamp=this._messageId2Time(c9.messageId),c3.push(c10)}}catch(c0){c5=!0,c6=c0}finally{try{!c4&&c8.return&&c8.return()}finally{if(c5)throw c6}}return c3}},{key:"isReceiptEnabled",value:function(){return this.isReceiptEnable}},{key:"getConversationDelivery",value:function(c0){return this.store.getConversationDelivery(c0)}},{key:"getConversationRead",value:function(c0){return this.store.getConversationRead(c0)}},{key:"setDeviceToken",value:function(c0,c1){var c2=this;if(c0>5&&c1){var c3=c39.UploadDeviceTokenRequest.create();c3.pushType=c0,c3.appName="wfc.web",c3.deviceToken=c1,c3.platform=5,this._publish("UDT",c39.UploadDeviceTokenRequest.encode(c3).finish(),(function(c0,c1){c0||c2.log("setDeviceToken error",c0)}))}else this.error("setDeviceToken error, invalid parameters",c0,c1)}},{key:"getAuthCode",value:function(c0,c1,c2,c3,c4){var c5=c39.AuthCodeRequest.create();c5.targetId=c0,c5.type=c1,c5.host=c2,this._publish("ATR",c39.AuthCodeRequest.encode(c5).finish(),(function(c0,c1){if(0===c0){var c2=null;if(c1)c2=c39.IDBuf.decode(c1).id;c3&&c3(c2)}else c4&&c4(c0)}))}},{key:"_pullUnreadMessages",value:(c59=(0,c7.default)(c6.default.mark((function c0(){var c1,c2,c3,c4,c5;return c6.default.wrap((function(c0){for(;;)switch(c0.prev=c0.next){case 0:c1=this.getConversationList([0,1],[0]),c2=200,c3=0;case 3:if(!(c3c3)){c0.next=6;break}return console.log("Up to "+c3+" unread messages can be loaded.",c1),c0.abrupt("return",null);case 6:return c4=c1.type+"-"+c1.line+"-"+c1.target,c7=this.getUserSetting(c37.default.Conversation_Sync,c4),c8=this.getUserSetting(c37.default.ConversationSilent,c4),c9=new c5.default((function(c0,c3){c8&&"0"===c8.value||!c7?c0(null):(0,c16.gt)(c2.timestamp,c7.value)?c10.loadRemoteMessages(c1,[],c2.messageUid,50,(function(c3){console.log("load conversation unread msgs",c4,(0,c16.stringValue)(c2.messageUid),c3.length),c10.store.updateConversationUnreadStatus(c1,c7.value),c3.length>0?c0(c3[0]):c0(null)}),(function(c1){c0(null)}),!1):c0(null)})),c0.abrupt("return",c9);case 11:case"end":return c0.stop()}}),c0,this)}))),function(c0,c1){return c2.apply(this,arguments)})},{key:"_pullUserSettings",value:function(c0){var c1=this;if(this.log("pull user setting...",c0),!this.isPullingSetting)if(this.settingHead.compare(c15.default.ZERO)>0&&this.settingHead.compare(c0)>=0)this.connectionStatus!==c41.default.ConnectionStatusConnected&&this.onConnectionChanged(c41.default.ConnectionStatusConnected);else{this.isPullingSetting=!0;var c2=c39.Version.create();c2.version=this.settingHead;var c3=c39.Version.encode(c2).finish();this._publish("UG",c3,(function(c2,c3){if(c1.log("pull user setting response"),c1.isPullingSetting=!1,0===c2&&c3){var c4=c39.GetUserSettingResult.decode(c3),c5=c1.settingHead;c4.entry.length>0?c4.entry.forEach((function(c0){c5=(0,c16.gt)(c0.updateDt,c5)?c0.updateDt:c5})):c5=c0,c1.store.updateUserSettings(c4.entry),c1._preloadConversationTargetInfos(),c1.onSettingUpdate(c4.entry),c1.settingHead=c5,(0,c16.gt)(c0,c5)?c1._pullUserSettings(c0):c1.connectionStatus!==c41.default.ConnectionStatusConnected&&c1.onConnectionChanged(c41.default.ConnectionStatusConnected)}else c1.connectionStatus!==c41.default.ConnectionStatusConnected&&(0===c2?c1.onConnectionChanged(c41.default.ConnectionStatusConnected):c1.onConnectionChanged(c41.default.ConnectionStatusUnconnected),c1.log("pull user setting error",c2))}))}}},{key:"_preloadConversationTargetInfos",value:function(){if(!this.isConversationTargetPreloaded){this.isConversationTargetPreloaded=!0;var c0=this.store._getConversationInfos(),c1=[],c2=new c4.default;c0.forEach((function(c0){c0.conversation.type===c29.default.Single?c2.add(c0.conversation.target):c0.conversation.type===c29.default.Group&&c1.push(c0.conversation.target),c0.lastMessage&&c0.lastMessage.from&&c2.add(c0.lastMessage.from)})),c2.add(this.getUserId()),this.getGroupInfos(c1),this.getUserInfos((0,c3.default)(c2))}}},{key:"_preloadFiendsUserInfo",value:function(){if(!this.isFriendPreloaded){this.isFriendPreloaded=!0;var c0=this.store.getFriendIds();this.getUserInfos(c0)}}},{key:"_preloadFirendRequsetUserInfo",value:function(){this.isFriendRequestPreloaded}},{key:"_updateUserSetting",value:function(c0,c1,c2,c3,c4){var c5=this,c6=c39.ModifyUserSettingReq.create();c6.scope=c0,c6.key=c1,c6.value=c2+"";var c7=c39.ModifyUserSettingReq.encode(c6).finish();this._publish("UP",c7,(function(c6,c7){if(0===c6){var c8=new c42.default;c8.scope=c0,c8.key=c1,c8.value=c2,c8.updateDt=(new Date).getTime(),c5.store.updateUserSettings([c8]),c3&&c3()}else c4&&c4(c6)}))}},{key:"_pullFriends",value:function(c0){var c1=this;if(this.friendHead.compare(c0)>=0)return 0;var c2=c39.Version.create();c2.version=this.friendHead;var c3=c39.Version.encode(c2).finish();this._publish("FP",c3,(function(c2,c3){if(0===c2&&c3){var c4=c39.GetFriendsResult.decode(c3);c1.log("fr",c4);var c5=[],c6=0;c4.entry.map((function(c0){0===c0.state&&c5.push(c0.uid),c1.store.insertFriend((0,c8.default)(new c46.default,c0)),c6=(0,c16.gt)(c0.updateDt,c6)?c0.updateDt:c6})),c1.friendHead=c6,(0,c16.gt)(c0,c1.friendHead)&&c1._pullFriends(c0),c1._preloadFiendsUserInfo(),c1.onFriendListUpdate(c5)}else c1.log("pull friend error",c2)}))}},{key:"_pullFriendRequest",value:function(c0){if(this.log("_pullFriendRequest",c0),!(this.friendRequestHead.compare(c0)>=0)){var c1=this.store.getFriendRequestMaxDt();this.loadFriendRequestFromRemote(c1)}}},{key:"disconnect",value:function(){this.onConnectionChanged(c41.default.ConnectionStatusLogout),this.reset(),this.isUserDisconnected=!0}},{key:"getProtoRevision",value:function(){return c1.version}},{key:"getUserId",value:function(){return this.userId}},{key:"getServerDeltaTime",value:function(){return parseInt(this.deltaTime)}},{key:"isLogin",value:function(){return this.token&&this.token.length>0}},{key:"getConnectionStatus",value:function(){return this.connectionStatus}},{key:"setBackupAddressStrategy",value:function(c0){this.backupAddressStrategy=c0}},{key:"connectedToMainNetwork",value:function(){return 1===this.backupAddressStrategy}},{key:"setBackupAddress",value:function(c0,c1){this.backupHost=c0,this.backupPort=c1}},{key:"useSM4",value:function(){this.log("use encryptSM4"),(0,c17.useEncryptSM4)()}},{key:"getMyGroupList",value:function(){var c0=this.store.getFavGroups();return c0&&0!==c0.length?this.getGroupInfos(c0):[]}},{key:"_publish",value:function(c0,c1,c2){var c3=this,c4=this._encrypt(c1);if(!this.mqttClientInstance)return this.log("the connect is reset, reconnecting"),void(c2&&c2(-1));var c5=setTimeout((function(){c3.log("publish not response after "+c43.default.SEND_MESSAGE_TIMEOUT+"s, reset"),c2&&c2(-1),c3.connectionStatus=c41.default.ConnectionStatusUnconnected,c3._reconnect()}),1e3*(c43.default.SEND_MESSAGE_TIMEOUT?c43.default.SEND_MESSAGE_TIMEOUT:20));this.mqttClientInstance.publish(c0,c4,{qos:1,retain:!0,dup:!0},(function(c1,c4){if(clearTimeout(c5),c2){if(c1)return c3.log("publish error",c0,c1),c2(-1),void("Connection closed"===c1.message&&(c3.connectionStatus=c41.default.ConnectionStatusUnconnected,c3._reconnect()));if(c3.lastActiveTime=(new Date).getTime(),c3.log("publish response",c0),!c4||!c4.payload||c4.payload.length<1)return c3.log("publish response error",c4),void(c2&&c2(-1));var c6=c4.payload[0];if(0===c6||255===c6||5===c6){c3.log("publish error code ",c0,c6);var c7=null;if(c4.payload&&c4.payload.length>1){if(c7=c3._decryptPublishResponse(c4),255===c6){c3.log("publish response compressed");try{c7=c44.default.inflate(c7)}catch(c1){c3.log("decompress response error",c1)}}c2(0,c7)}else c3.log("publish response is empty"),c2(0,null)}else c3.log("publish error",c0,c6),c2(c6),c6===c45.default.kEcServerTokenIncorrect||c6===c45.default.kEcServerUserIsBlocked||c45.default.kEcServerSecrectKeyMismatch}else c3.log("publish, cb is null, drop")}))}},{key:"_reloadUserInfosFromRemote",value:function(c0){for(var c1=this,c2=function(c2){setTimeout((function(){c1._reloadUserInfosFromRemoteEx(null,null,c0.slice(2e3*c2,2e3*(c2+1)))}),1e3*c2)},c3=0;c30){var c7=[];c3.log("load userInfo from remote",c6),c6.forEach((function(c0){if(0===c0.code){var c1=(0,c8.default)(new c36.default,c0.user);c43.default.urlRedirect&&(c1.portrait=c43.default.urlRedirect(c1.portrait)),c3.store.setUser(c1),c7.push(c3.store.getUser(c1.uid,""))}})),c0&&c0(c7),c7.length>0&&c3.eventEmitter.emit(c38.default.UserInfosUpdate,c7)}else c3.log("reload userInfo from remote response empty"),c1&&c1(-1)})))}},{key:"_reloadUserInfoFromRemote",value:function(c0,c1,c2,c3){var c4=this,c5=c39.PullUserRequest.create(),c6=c39.UserRequest.create();c6.uid=c0,c6.updateDt=c15.default.fromValue(c1),c5.request.push(c6),this.log("reload userInfo from remote",c0),this._publish("UPUI",c39.PullUserRequest.encode(c5).finish(),(function(c1,c5){if(0!==c1||!c5)return c3&&c3(0===c1?-1:c1),void c4.log("reloadUserInfoFromRemote error",c1,c0);var c6=c39.PullUserResult.decode(c5).result;if(c6.length>0){var c7=[];c4.log("load userInfo from remote",c6),c6.forEach((function(c0){var c1=(0,c8.default)(new c36.default,c0.user);c43.default.urlRedirect&&(c1.portrait=c43.default.urlRedirect(c1.portrait)),c4.store.setUser(c1),c7.push(c4.store.getUser(c1.uid,""))})),c2&&c2(c7[0])}else c3&&c3(-1)}))}},{key:"getUserInfo",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c2=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",c3=this.store.getUser(c0,c2);return(c1||c3 instanceof c35.default)&&this._reloadUserInfosFromRemote([c0]),c3}},{key:"getUserInfoEx",value:function(c0,c1,c2,c3){var c4=this.store.getUser(c0);c4 instanceof c35.default||c2&&c2(c4),(c1||c4 instanceof c35.default)&&this._reloadUserInfosFromRemoteEx((function(c0){c2&&c2(c0[0])}),c3,[c0])}},{key:"getUserInfos",value:function(){var c0=this,c1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c2=arguments[1],c3=[],c4=[];return c1.forEach((function(c1){var c5=c0.store.getUser(c1,c2);c5 instanceof c35.default&&c4.push(c1),c3.push(c5)})),c4.length>0&&this._reloadUserInfosFromRemote(c4),c3}},{key:"getUserInfosEx",value:function(c0,c1,c2){var c3=this,c4=[],c5=[];c0.forEach((function(c0){var c1=c3.store.getUser(c0);c1 instanceof c35.default?c5.push(c0):c4.push(c1)})),c5.length>0?this._reloadUserInfosFromRemoteEx((function(c0){c4.push.apply(c4,(0,c10.default)(c0)),c1&&c1(c4)}),c2,c0):c1&&c1(c4)}},{key:"searchUser",value:function(c0,c1,c2,c3,c4){var c5=c39.SearchUserRequest.create();c5.fuzzy=c1,c5.keyword=c0,c5.page=c2,this._publish("US",c39.SearchUserRequest.encode(c5).finish(),(function(){var c1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c2=arguments[1];if(0===c1&&c2){if(c3){var c5=c39.SearchUserResult.decode(c2);c3(c0,c5.entry)}}else c4&&c4(c1)}))}},{key:"searchFriends",value:function(c0){return this.store.searchFriends(c0)}},{key:"searchGroups",value:function(c0){return this.store.searchGroups(c0)}},{key:"getIncommingFriendRequest",value:function(){return this.store.getIncommingFriendRequest()}},{key:"getOutgoingFriendRequest",value:function(){return this.store.getOutgoingFriendRequest()}},{key:"getOneFriendRequest",value:function(c0,c1){return this.store.getOneFriendRequest(c0,c1)}},{key:"loadFriendRequestFromRemote",value:function(c0){var c1=this,c2=c39.Version.create();c2.version=c0,this._publish("FRP",c39.Version.encode(c2).finish(),(function(c2,c3){if(0===c2&&c3){var c4=0,c5=c39.GetFriendRequestResult.decode(c3);c1.log("load friend request result",c5);var c6=[];c5.entry.forEach((function(c0){var c2=new c30.default;c2.status=c0.status,c2.reason=c0.reason,c2.extra=c0.extra,c0.fromUid===c1.getUserId()?(c2.direction=0,c2.target=c0.toUid,c2.readStatus=c0.fromReadStatus?1:0):(c2.direction=1,c2.target=c0.fromUid,c2.readStatus=c0.toReadStatus?1:0,0===c2.readStatus&&c6.push(c2.target)),c2.timestamp=c0.updateDt,(0,c16.gt)(c0.updateDt,c4)&&(c4=c0.updateDt),c1.store.insertOrReplaceFriendRequest(c2)})),c1.friendRequestHead=c4,(0,c16.gt)(c0,c4)&&c1.loadFriendRequestFromRemote(c4),c1.onFriendRequestUpdate(c6)}}))}},{key:"getUnreadFriendRequestCount",value:function(){return this.store.getUnreadFriendRequestCount()}},{key:"clearUnreadFriendRequestStatus",value:function(){var c0=this.store.getUnreadFriendRequestMaxDt();if(0!==c15.default.ZERO.compare(c0)&&this.store.clearUnreadFriendRequestStatus()>0){var c1=c39.Version.create();c1.version=c0,this._publish("FRUS",c39.Version.encode(c1).finish(),(function(c0,c1){}))}}},{key:"deleteFriend",value:function(c0,c1,c2){var c3=this,c4=c39.IDBuf.create();c4.id=c0,this._publish("FDL",c39.IDBuf.encode(c4).finish(),(function(){var c4=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===c4?(c3.store.deleteFriend(c0),c1&&c1()):c2(c4)}))}},{key:"handleFriendRequest",value:function(c0,c1,c2,c3,c4){var c5=this,c6=c39.HandleFriendRequest.create();c6.status=c1?1:2,c6.targetUid=c0,c6.extra=c2,this._publish("FHR",c39.HandleFriendRequest.encode(c6).finish(),(function(c1,c2){0===c1?(c5.store.updateFriendRequestStatus(c0,c6.status),c3&&c3()):c4&&c4(c1)}))}},{key:"isBlackListed",value:function(c0){this.store.isBlackListed(c0)}},{key:"getBlackList",value:function(){return this.store.getBlackList()}},{key:"setBlackList",value:function(c0,c1,c2,c3){var c4=this,c5=c39.BlackUserRequest.create();c5.status=c1?2:1,c5.uid=c0,this._publish("BLU",c39.BlackUserRequest.encode(c5).finish(),(function(c5,c6){0===c5?(c4.store.setBlackList(c0,c1),c2&&c2()):c3&&c3()}))}},{key:"getMyFriendList",value:function(){var c0=arguments.length>0&&void 0!==arguments[0]&&arguments[0],c1=this.store.getFriendIds();return(c0||0===c1.length)&&this._getMyFriendListFromRemote(),c1}},{key:"getFriendList",value:function(){var c0=arguments.length>0&&void 0!==arguments[0]&&arguments[0],c1=this.store.getFriends();return(0===c1.length||c0)&&this._getMyFriendListFromRemote(),c1}},{key:"getFriendAlias",value:function(c0){return this.store.getFriendAlias(c0)}},{key:"getFriendExtra",value:function(c0){return this.store.getFriendExtra(c0)}},{key:"setFriendAlias",value:function(c0,c1,c2,c3){var c4=c39.AddFriendRequest.create();c4.targetUid=c0,c4.reason=c1,this._publish("FALS",c39.AddFriendRequest.encode(c4).finish(),(function(c0,c1){0===c0?c2():c3(c0)}))}},{key:"_getMyFriendListFromRemote",value:function(){this._pullFriends(c15.default.MAX_VALUE)}},{key:"createGroup",value:function(c0,c1,c2,c3,c4){var c5=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],c6=arguments[6],c7=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[0],c8=arguments[8],c9=this,c10=arguments[9],c11=arguments[10];c0=c0||"";var c12=this.getUserId(),c13=c39.Group.create(),c14=c39.GroupInfo.create();c14.targetId=c0,c14.type=c1,c14.name=c2,c14.portrait=c3,c14.extra=c4||"",c13.groupInfo=c14;var c15=new c31.default;c15.target=c0,c15.type=c1,c15.name=c2,c15.portrait=c3,c15.extra=c14.extra;var c16=[];c5.includes(c12)||c5.push(c12);var c17=void 0;c5.forEach((function(c1){var c2=c39.GroupMember.create();c2.memberId=c1,c2.type=c33.default.Normal,(c17=new c32.default).groupId=c0,c17.memberId=c1,c17.type=c33.default.Normal,c1===c12&&(c2.type=c33.default.Owner,c17.type=c33.default.Owner),c13.members.push(c2),c16.push(c17)}));var c18=c39.CreateGroupRequest.create();c18.group=c13,c18.toLine=c7,c18.memberExtra=c6||"",c18.notifyContent=this._toProtoMessageContent(c8),this._publish("GC",c39.CreateGroupRequest.encode(c18).finish(),(function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c1=arguments[1];if(0===c0&&c1){var c2=c1.toString();c15.target=c2;var c3=new c28.default(c29.default.Group,c2,0);if(c9.store.genAndSaveDefaultConversationInfo(c3),c9.store.setGroupInfo(c15),c9.store.setGroupMembers(c2,c16),c8){var c4=new c21.default(c3,c8);c9.store.updateConversationLastMessage(c4)}c10&&c10(c2),c9.log("create group success",c2)}else c9.log("create group error",c0),c11&&c11(c0)}))}},{key:"setGroupManager",value:function(c0,c1,c2,c3,c4,c5,c6){var c7=this,c8=c39.SetGroupManagerRequest.create();c8.type=c1?1:0,c8.groupId=c0,c8.userId=c2,c8.toLine=c3,c8.notifyContent=this._toProtoMessageContent(c4),this._publish("GSM",c39.SetGroupManagerRequest.encode(c8).finish(),(function(c1,c2){0===c1?(c5&&c5(),c7.log("set group manager success",c0)):(c7.log("set group manager error",c1),c6&&c6(c1))}))}},{key:"_reloadGroupInfosFromRemote",value:function(){for(var c0=arguments.length,c1=Array(c0),c2=0;c20){var c7=[];c6.forEach((function(c0){var c1=(0,c8.default)(new c31.default,c0);c1.target=c0.targetId,delete c1.targetId,c43.default.urlRedirect&&(c1.portrait=c43.default.urlRedirect(c1.portrait)),c3.store.setGroupInfo(c1),c7.push(c1)})),c0&&c0(c7),c3.eventEmitter.emit(c38.default.GroupInfosUpdate,c7)}})))}},{key:"_reloadGroupMembersFromRemote",value:function(c0,c1){this._reloadGroupMembersFromRemoteEx(c0,c1,null,null)}},{key:"_reloadGroupMembersFromRemoteEx",value:function(c0,c1,c2,c3){var c4=this;if(c2||!this.store.loadingGroupMembers.has(c0)){this.store.loadingGroupMembers.add(c0);var c5=c39.PullGroupMemberRequest.create();c5.target=c0,c5.head=c15.default.fromValue(c1),this._publish("GPGM",c39.PullGroupMemberRequest.encode(c5).finish(),(function(c1,c5){if(c4.store.loadingGroupMembers.delete(c0),0===c1&&c5){var c6=c39.PullGroupMemberResult.decode(c5).member,c7=[],c8=!1;c6.forEach((function(c1){var c2=new c32.default;c2.groupId=c0,c2.alias=c1.alias,c2.extra=c1.extra,c2.type=c1.type,c2.memberId=c1.memberId,c2.updateDt=c1.updateDt,c2.createDt=c1.createDt,c7.push(c2);var c3=c4.store.getGroupMember(c0,c4.userId);c2.memberId===c4.userId&&c3&&c3.type===c33.default.Removed&&(c8=!0)})),c4.log("loadGroupMembersFromRemote",c0,c7.length),c4.store.updateGroupMembers(c0,c7),c7=c4.store.getGroupMembers(c0),c2&&c2(c7),!c8&&c7.length>0?(c4.eventEmitter.emit(c38.default.GroupMembersUpdate,c0,c7),c4.log("emit groupMembersUpdate",c0,c7)):c4.log("self deleted",c0)}else{if(c4.log("reloadGroupMembersFromRemote error",c0,c1),253===c1){var c9=new c28.default(c29.default.Group,c0,0);c4.store.removeConversation(c9,!0),console.log("remove conversation",c9)}c3&&c3(0!==c1?c1:-1)}}))}}},{key:"getGroupInfo",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c2=this.store.getGroupInfo(c0);return(c1||c2 instanceof c34.default)&&this._reloadGroupInfosFromRemote(c0),c2 instanceof c34.default&&this._reloadGroupMembersFromRemote(c0,this.store.getGroupMemberMaxDt(c0)),c2}},{key:"getGroupInfoEx",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c2=arguments[2],c3=arguments[3],c4=this.store.getGroupInfo(c0);c4 instanceof c34.default||c2&&c2(c4),(c1||c4 instanceof c34.default)&&this._reloadGroupInfosFromRemoteEx((function(c0){c2&&c2(c0[0])}),c3,[c0]),c4 instanceof c34.default&&this._reloadGroupMembersFromRemote(c0,this.store.getGroupMemberMaxDt(c0))}},{key:"getGroupInfos",value:function(){var c0=this,c1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c2=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c3=[],c4=[];if(c1.forEach((function(c1){var c5=c0.store.getGroupInfo(c1);(c5 instanceof c34.default||c2)&&c4.push(c1),c3.push(c5)})),c4.length>0&&(this._reloadGroupInfosFromRemote.apply(this,c4),c4.length<=50)){var c5=!0,c6=!1,c7=void 0;try{for(var c8,c9=(0,c11.default)(c4);!(c5=(c8=c9.next()).done);c5=!0){var c10=c8.value;this._reloadGroupMembersFromRemote(c10,this.store.getGroupMemberMaxDt(c10))}}catch(c0){c6=!0,c7=c0}finally{try{!c5&&c9.return&&c9.return()}finally{if(c6)throw c7}}}return c3}},{key:"addGroupMembers",value:function(c0,c1,c2,c3,c4,c5,c6){var c7=this;if(!c0||!c1||0===c1.length||!c3||0===c3.length)return this.log("addGroupMembers params invalid"),void(c6&&c6(-1));var c8=c39.AddGroupMemberRequest.create();c8.groupId=c0,c1.forEach((function(c0){var c1=c39.GroupMember.create();c1.memberId=c0,c1.type=c33.default.Normal,c8.addedMember.push(c1)})),c8.toLine=c3,c8.extra=c2,c8.notifyContent=this._toProtoMessageContent(c4),this._publish("GAM",c39.AddGroupMemberRequest.encode(c8).finish(),(function(c2,c3){if(0===c2){var c4=[];(new Date).getTime();c1.forEach((function(c1){var c2=new c32.default;c2.groupId=c0,c2.type=c33.default.Normal,c2.memberId=c1,c2.updateDt=0,c2.createDt=0,c4.push(c2)})),c7.store.updateGroupMembers(c0,c4)}c7._generalOperationCallback(c2,c5,c6)}))}},{key:"getGroupMemberIds",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c2=this.store.getGroupMemberIds(c0,c1);return(0===c2.length||c1)&&this._reloadGroupMembersFromRemote(c0,this.store.getGroupMemberMaxDt(c0)),c2}},{key:"getGroupMembers",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c2=this.store.getGroupInfo(c0),c3=this.store.getGroupMemberMaxDt(c0);if(c2 instanceof c34.default)return this._reloadGroupInfosFromRemote(c0),this._reloadGroupMembersFromRemote(c0,c3),null;var c4=this.store.getGroupMembers(c0);return(0===c4.length||c1)&&this._reloadGroupMembersFromRemote(c0,c3),c4.sort(this._compareGroupMember)}},{key:"getGroupMembersByType",value:function(c0,c1){var c2=this.getGroupMembers(c0);return 0===c2.length&&this._reloadGroupMembersFromRemote(c0,c15.default.ZERO),c2.filter((function(c0){return c0.type===c1}))}},{key:"_compareGroupMember",value:function(c0,c1){return c0.type===c1.type?(0,c16.numberValue)(c0.updateDt)-(0,c16.numberValue)(c1.updateDt):4===c0.type?-1:4===c1.type?1:c1.type-c0.type}},{key:"getGroupMembersEx",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c2=arguments[2],c3=arguments[3],c4=this.store.getGroupMembers(c0),c5=this.store.getGroupMemberMaxDt(c0);0===c4.length||c1?this._reloadGroupMembersFromRemoteEx(c0,c5,c2,c3):(c2&&c2(c4.sort(this._compareGroupMember)),c1&&this._reloadGroupMembersFromRemoteEx(c0,c5))}},{key:"getGroupMember",value:function(c0,c1){if(this.store.getGroupInfo(c0)instanceof c34.default)return this._reloadGroupInfosFromRemote(c0),this._reloadGroupMembersFromRemote(c0,this.store.getGroupMemberMaxDt(c0)),null;var c2=this.store.getGroupMember(c0,c1);return c2||this._reloadGroupMembersFromRemote(c0,this.store.getGroupMemberMaxDt(c0)),c2}},{key:"kickoffGroupMembers",value:function(c0,c1,c2,c3,c4,c5){var c6=this,c7=c39.RemoveGroupMemberRequest.create();c7.groupId=c0,c7.removedMember=c1,c7.toLine=c2,c7.notifyContent=this._toProtoMessageContent(c3),this._publish("GKM",c39.RemoveGroupMemberRequest.encode(c7).finish(),(function(c2,c3){0===c2&&c6.store.removeGroupMembers(c0,c1),c6._generalOperationCallback(c2,c4,c5)}))}},{key:"muteOrAllowGroupMembers",value:function(c0,c1,c2,c3,c4,c5,c6,c7){var c8=this,c9=c39.SetGroupManagerRequest.create();c9.type=c1?1:0,c9.groupId=c0,c9.userId=c3,c9.toLine=c4,c9.notifyContent=this._toProtoMessageContent(c5),this._publish(c2?"GMAL":"GMM",c39.SetGroupManagerRequest.encode(c9).finish(),(function(c4,c5){0===c4?(c8.store.updateGroupMemberMuteOrAllow(c0,c3,c1,c2),c6&&c6(),c8.log("mute group member success",c0,c3)):(c8.log("mute group member error",c4),c7&&c7(c4))}))}},{key:"quitGroup",value:function(c0,c1,c2,c3,c4){var c5=this,c6=c39.QuitGroupRequest.create();c6.groupId=c0,c6.toLine=c1,c6.notifyContent=this._toProtoMessageContent(c2),this._publish("GQ",c39.QuitGroupRequest.encode(c6).finish(),(function(c1,c2){0===c1&&(c5.store.removeGroupAndMembers(c0),c5.store.removeGroupSettings(c0),c5.store.removeFavGroup(c0)),c5._generalOperationCallback(c1,c3,c4)}))}},{key:"dismissGroup",value:function(c0,c1,c2,c3,c4){var c5=this,c6=c39.DismissGroupRequest.create();c6.groupId=c0,c6.toLine=c1,c6.notifyContent=this._toProtoMessageContent(c2),this._publish("GD",c39.DismissGroupRequest.encode(c6).finish(),(function(c1,c2){0===c1?(c5.store.removeGroupAndMembers(c0,c5.serverConfigs.isKeepMsgAfterDismiss),c5.store.removeGroupSettings(c0),c5.store.removeFavGroup(c0),c5.serverConfigs.isKeepMsgAfterDismiss||c5.store.removeConversation(new c28.default(c29.default.Group,c0,0),!0),c3&&c3()):c4&&c4(c1)}))}},{key:"modifyGroupInfo",value:function(c0,c1,c2,c3,c4,c5,c6){var c7=this,c8=c39.ModifyGroupInfoRequest.create();c8.groupId=c0,c8.toLine=c3,c8.type=c1,c8.value=c2+"",c8.notifyContent=this._toProtoMessageContent(c4),this._publish("GMI",c39.ModifyGroupInfoRequest.encode(c8).finish(),(function(c0,c1){c7._generalOperationCallback(c0,c5,c6)}))}},{key:"modifyGroupAlias",value:function(c0,c1,c2,c3,c4,c5){var c6=this,c7=c39.ModifyGroupMemberAlias.create();c7.groupId=c0,c7.alias=c1,c7.toLine=c2,c7.notifyContent=this._toProtoMessageContent(c3),this._publish("GMA",c39.ModifyGroupMemberAlias.encode(c7).finish(),(function(c0,c1){c6._generalOperationCallback(c0,c4,c5)}))}},{key:"modifyGroupMemberAlias",value:function(c0,c1,c2,c3,c4,c5,c6){var c7=this,c8=c39.ModifyGroupMemberAlias.create();c8.groupId=c0,c8.memberId=c1,c8.alias=c2,c8.toLine=c3,c8.notifyContent=this._toProtoMessageContent(c4),this._publish("GMMA",c39.ModifyGroupMemberAlias.encode(c8).finish(),(function(c3,c4){0===c3&&c7.store.updateGroupMemberAlias(c0,c1,c2),c7._generalOperationCallback(c3,c5,c6)}))}},{key:"modifyGroupMemberExtra",value:function(c0,c1,c2,c3,c4,c5,c6){var c7=this,c8=c39.ModifyGroupMemberExtra.create();c8.groupId=c0,c8.memberId=c1,c8.extra=c2,c8.toLine=c3,c8.notifyContent=this._toProtoMessageContent(c4),this._publish("GMME",c39.ModifyGroupMemberExtra.encode(c8).finish(),(function(c3,c4){0===c3&&c7.store.updateGroupMemberExtra(c0,c1,c2),c7._generalOperationCallback(c3,c5,c6)}))}},{key:"transferGroup",value:function(c0,c1,c2,c3,c4,c5){var c6=this,c7=c39.TransferGroupRequest.create();c7.groupId=c0,c7.newOwner=c1,c7.toLine=c2,c7.notifyContent=this._toProtoMessageContent(c3),this._publish("GTG",c39.TransferGroupRequest.encode(c7).finish(),(function(c0,c1){c6._generalOperationCallback(c0,c4,c5)}))}},{key:"setGroupRemark",value:function(c0,c1,c2,c3){var c4=this;this.setUserSetting(c37.default.GroupRemark,c0,c1,(function(){c2&&c2();var c3=new c42.default;c3.scope=c37.default.GroupRemark,c3.key=c0,c3.value=c1,c3.updateDt=(new Date).getTime(),c4.store.settings.push(c3),c4.onSettingUpdate([c3])}),c3)}},{key:"getGroupRemark",value:function(c0){return this.getUserSetting(c37.default.GroupRemark,c0)}},{key:"getFavGroups",value:function(){return this.store.getFavGroups()}},{key:"isFavGroup",value:function(c0){return this.store.isFavGroup(c0)}},{key:"setFavGroup",value:function(c0,c1,c2,c3){this._updateUserSetting(c37.default.FavoriteGroup,c0,c1?"1":"0",c2,c3)}},{key:"getMyGroups",value:function(c0,c1){var c2=this;this._publish("GMGS",null,(function(c3,c4){c2._generalStringListCallback(c3,c4,c0,c1)}))}},{key:"getCommonGroups",value:function(c0,c1,c2){var c3=this,c4=c39.IDBuf.create();c4.id=c0,this._publish("GCGS",c39.IDBuf.encode(c4).finish(),(function(c0,c4){c3._generalStringListCallback(c0,c4,c1,c2)}))}},{key:"getFavUsers",value:function(){return this.store.getFavUsers()}},{key:"isFavUser",value:function(c0){return this.store.isFavUser(c0)}},{key:"setFavUser",value:function(c0,c1,c2,c3){this._updateUserSetting(c37.default.FavoriteUser,c0,c1?"1":"0",c2,c3)}},{key:"getUserSetting",value:function(c0,c1){return this.store.getUserSetting(c0,c1)}},{key:"getUserSettings",value:function(c0){return this.store.getUserSettings(c0)}},{key:"setUserSetting",value:function(c0,c1,c2,c3,c4){this._updateUserSetting(c0,c1,c2,c3,c4)}},{key:"modifyMyInfo",value:function(c0,c1,c2){var c3=this,c4=c39.ModifyMyInfoRequest.create();c4.entry=c0,this._publish("MMI",c39.ModifyMyInfoRequest.encode(c4).finish(),(function(c0,c4){c3._generalOperationCallback(c0,c1,c2)}))}},{key:"isGlobalSlient",value:function(){var c0=this.store.getUserSetting(c37.default.GlobalSilent,"");return!!c0&&"1"===c0.value}},{key:"setGlobalSlient",value:function(c0,c1,c2){this._updateUserSetting(c37.default.GlobalSilent,"",c0?"1":"0",(function(){c1&&c1()}),(function(c0){c2&&c2(c0)}))}},{key:"isHiddenNotificationDetail",value:function(){var c0=this.store.getUserSetting(c37.default.HiddenNotificationDetail,"");return!!c0&&"1"===c0.value}},{key:"setHiddenNotificationDetail",value:function(c0,c1,c2){this._updateUserSetting(c37.default.HiddenNotificationDetail,"",c0?"1":"0",(function(){c1&&c1()}),(function(c0){c2&&c2(c0)}))}},{key:"isHiddenGroupMemberName",value:function(c0){var c1=this.store.getUserSetting(c37.default.GroupHideNickname,c0);return!!c1&&"1"===c1.value}},{key:"setHiddenGroupMemberName",value:function(c0,c1,c2,c3){this._updateUserSetting(c37.default.GroupHideNickname,c0,c1?"1":"0",(function(){c2&&c2()}),(function(c0){c3&&c3(c0)}))}},{key:"joinChatroom",value:function(c0,c1,c2){var c3=this,c4=c39.IDBuf.create();c4.id=c0,this._publish("CRJ",c39.IDBuf.encode(c4).finish(),(function(){var c4=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===c4?(c3.chatRoomMsgHead=c15.default.ZERO,c3.currentChatRoomId=c0,c1&&c1(),c3._pullMessages(c15.default.MAX_VALUE,1,!1)):c2&&c2(c4)}))}},{key:"quitChatroom",value:function(c0,c1,c2){var c3=c39.IDBuf.create();c3.id=c0,this.currentChatRoomId="",this._publish("CRQ",c39.IDBuf.encode(c3).finish(),(function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===c0?c1&&c1():c2&&c2(c0)}))}},{key:"getChatroomInfo",value:function(c0,c1,c2,c3){var c4=this,c5=c39.GetChatroomInfoRequest.create();c5.chatroomId=c0,c5.updateDt=c15.default.fromValue(c1),this._publish("CRI",c39.GetChatroomInfoRequest.encode(c5).finish(),(function(){var c1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c5=arguments[1];if(0===c1&&c5){if(c2){var c6=c39.ChatroomInfo.decode(c5);c4.log("getChatroomInfo result",c6);var c7=(0,c8.default)(new c47.default,c6);c7.chatRoomId=c0,c43.default.urlRedirect&&(c7.portrait=c43.default.urlRedirect(c7.portrait)),c2(c7)}}else c3&&c3(c1)}))}},{key:"getChatroomMemberInfo",value:function(c0,c1,c2,c3){var c4=this,c5=c39.GetChatroomMemberInfoRequest.create();c5.chatroomId=c0,c5.maxCount=c1||10,this._publish("CRMI",c39.GetChatroomMemberInfoRequest.encode(c5).finish(),(function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c1=arguments[1];if(0===c0&&c1){if(c2){var c5=c39.ChatroomMemberInfo.decode(c1);c4.log("getChatroomMemberInfo result",c5);var c6=(0,c8.default)(new c27.default,c5);c2(c6)}}else c3&&c3(c0)}))}},{key:"createChannel",value:function(c0,c1,c2,c3,c4,c5,c6){var c7=c39.ChannelInfo.create();c7.name=c0,c7.portrait=c1,c7.desc=c3,c7.extra=c4,this._publish("CHC",c39.ChannelInfo.encode(c7).finish(),(function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===c0?c5&&c5():c6&&c6(c0)}))}},{key:"getChannelInfo",value:function(c0,c1){var c2=this.store.getChannelInfo(c0);return(c2 instanceof c48.default||c1)&&this._reloadChannelInfo(c0,c2.updateDt),c2}},{key:"_reloadChannelInfo",value:function(c0){var c1=this,c2=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c3=c39.PullChannelInfo.create();c3.channelId=c0,c3.head=c15.default.fromValue(c2),this._publish("CHP",c39.PullChannelInfo.encode(c3).finish(),(function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c2=arguments[1];if(0===c0&&c2){var c3=c39.ChannelInfo.decode(c2),c4=(0,c8.default)(new c26.default,c3);c43.default.urlRedirect&&(c4.portrait=c43.default.urlRedirect(c4.portrait)),c4.menu&&(c4.menus=c4.menu.map((function(c0){return(c0=(0,c8.default)(new c57.default,c0)).subMenu&&(c0.subMenus=c0.subMenu.map((function(c0){return(0,c8.default)(new c57.default,c0)})),delete c0.subMenu),c0})),delete c4.menu),c4.channelId=c3.targetId,delete c4.targetId,c1.store.setChannelInfo(c4),c1.eventEmitter.emit(c38.default.ChannelInfosUpdate,[c4])}}))}},{key:"modifyChannelInfo",value:function(c0,c1,c2,c3,c4){var c5=this,c6=c39.ModifyChannelInfo.create();c6.channelId=c0,c6.type=c1,c6.value=c2,this._publish("CHMI",c39.ModifyChannelInfo.encode(c6).finish(),(function(){var c1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===c1?(c5._reloadChannelInfo(c0),c3&&c3()):c4&&c4(c1)}))}},{key:"searchChannel",value:function(c0,c1,c2,c3){var c4=c39.SearchUserRequest.create();c4.keyword=c0,c4.fuzzy=c1,c4.page=0,this._publish("CHS",c39.SearchUserRequest.encode(c4).finish(),(function(){var c1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c4=arguments[1];if(0===c1&&c4){if(c2){var c5=c39.SearchChannelResult.decode(c4);c2(c0,c5.entry)}}else c3&&c3(c1)}))}},{key:"isListenedChannel",value:function(c0){var c1=this.store.getUserSetting(c37.default.Listened_Channel,c0);return c1&&"1"===c1.value}},{key:"listenChannel",value:function(c0,c1,c2,c3){var c4=c39.ListenChannel.create();c4.channelId=c0,c4.listen=c1,this._publish("CHL",c39.ListenChannel.encode(c4).finish(),(function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===c0?c2&&c2():c3&&c3(c0)}))}},{key:"getMyChannels",value:function(){return this.store.getUserSettings(c37.default.My_Channel).filter((function(c0){return"1"===c0.value})).map((function(c0){return c0.key}))}},{key:"getListenedChannels",value:function(){return this.store.getUserSettings(c37.default.Listened_Channel).filter((function(c0){return"1"===c0.value})).map((function(c0){return c0.key}))}},{key:"getRemoteListenedChannels",value:function(c0,c1){var c2=this;this._publish("CHLL","",(function(){var c3=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c4=arguments[1];c2._generalStringListCallback(c3,c4,c0,c1)}))}},{key:"destroyChannel",value:function(c0,c1,c2){var c3=c39.IDBuf.create();c3.id=c0,this._publish("CHD",c39.ListenChannel.encode(c3).finish(),(function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2;0===c0?c1&&c1():c2&&c2(c0)}))}},{key:"getConversationList",value:function(c0,c1){return this.store.getConversationList(c0,c1)}},{key:"getConversationInfo",value:function(c0){var c1=this.store.getConversationInfo(c0);return c1||((c1=new c49.default).conversation=c0),c1}},{key:"searchConversation",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,1,2],c2=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,1];return this.store.searchConversation(c0,c1,c2)}},{key:"removeConversation",value:function(c0,c1){var c2=this.getConversationInfo(c0);if(c2){this.store.removeConversation(c0,c1);var c3=(new Date).getTime();(!c2.timestamp||(0,c16.gt)(c2.timestamp,c3+72e5)||(0,c16.lte)(c2.timestamp,c3-12e4))&&(c2.timestamp=c15.default.fromValue(c3)),this._syncConversationReadDt(c0,c2.timestamp.neg())}}},{key:"setConversationTop",value:function(c0,c1,c2,c3){var c4=this,c5=c37.default.ConversationTop,c6=c0.type+"-"+c0.line+"-"+c0.target,c7=(c1>0?c1:0)+"";this._updateUserSetting(c5,c6,c7,(function(){var c3=c4.getConversationInfo(c0);c4.eventEmitter.emit(c38.default.ConversationInfoUpdate,c3),c4.store.setConversationTop(c0,c1),c2&&c2()}),(function(c0){c3&&c3(c0)}))}},{key:"setConversationSlient",value:function(c0,c1,c2,c3){var c4=this,c5=c37.default.ConversationSilent,c6=c0.type+"-"+c0.line+"-"+c0.target,c7=c1?"1":"0";this._updateUserSetting(c5,c6,c7,(function(){c4.store.setConversationSilent(c0,c1),c2&&c2();var c3=c4.getConversationInfo(c0);c4.eventEmitter.emit(c38.default.ConversationInfoUpdate,c3)}),(function(c0){c3&&c3(c0)}))}},{key:"setConversationDraft",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c2=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(c0){c1=c1||"";var c3=this.getConversationInfo(c0);c3.draft!==c1&&(this.store.setConversationDraft(c0,c1),this.eventEmitter.emit(c38.default.ConversationInfoUpdate,c3),!c2||this.isGlobalDisableDraftSync||this.isDisableSyncDraft()||this._syncDraft(c0,c1))}}},{key:"_syncDraft",value:function(c0,c1){var c2=c0.type+"-"+c0.line+"-"+c0.target,c3=this.getUserSetting(c37.default.DisableSyncDraft,c2);if(!(!!c3&&"1"===c3.value)){var c4=this.clientId+"@@@"+c1;this._updateUserSetting(c37.default.ConversationDraft,c2,c4)}}},{key:"setConversationTimestamp",value:function(c0,c1){var c2=this.store.getConversationInfo(c0);c2||(c2=this.store.genAndSaveDefaultConversationInfo(c0));var c3=(new Date).getTime();(0,c16.gt)(c1,c3+72e5)&&(c1=c3),c2.timestamp=c15.default.fromValue(c1),this.eventEmitter.emit(c38.default.ConversationInfoUpdate,c2)}},{key:"getUnreadCount",value:function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];return this.store.getUnreadCount(c0,c1)}},{key:"getConversationUnreadCount",value:function(c0){return this.store.getConversationUnreadCount(c0)}},{key:"sendConferenceRequest",value:function(c0,c1,c2,c3,c4,c5){var c6=c39.ConferenceRequest.create();c6.sessionId=c0,c6.roomId=c1,c6.request=c2,c6.advance=c4?1:0,c6.data=c3,this._publish("CONF",c39.ConferenceRequest.encode(c6).finish(),(function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c1=arguments[1];if(0===c0){var c2=null;if(c1){var c3=c39.IDBuf.decode(c1);c2=c3.id}c5&&c5(0,c2)}else c5&&c5(c0)}))}},{key:"clearConversationUnreadStatus",value:function(c0){var c1=[];if(this.isReceiptEnable&&this.isUserReceiptEnabled()&&(c1=this.store.getUnreadMsgSenders(c0)),this.store.clearConversationUnreadStatus(c0)>0){var c2=this.getConversationInfo(c0);this.eventEmitter.emit(c38.default.ConversationInfoUpdate,c2);var c3=this.store.getConversationReadMaxDt(c0);c3.compare(c15.default.ZERO)>0&&this._syncConversationReadDt(c0,c3,c1)}}},{key:"clearMessageUnreadStatus",value:function(c0){if(this.store.clearMessageUnreadStatus(c0)){var c1=this.getConversationInfo(this.getMessageById(c0).conversation);this.eventEmitter.emit(c38.default.ConversationInfoUpdate,c1)}}},{key:"_syncConversationReadDt",value:function(c0,c1,c2,c3){var c4=this;if(c15.default.isLong(c1)){var c5=c0.type+"-"+c0.line+"-"+c0.target,c6=c39.ModifyUserSettingReq.create();c6.scope=c37.default.Conversation_Sync,c6.key=c5,c6.value=c1.toString(),c6.target=c2;var c7=c39.ModifyUserSettingReq.encode(c6).finish();c3||(c3=this.store.saveSyncReadEntry(c0.type,c0.target,c0.line,c1,c2)),this._publish("UP",c7,(function(c0,c2){if(0===c0){var c6=new c42.default;c6.scope=c37.default.Conversation_Sync,c6.key=c5,c6.value=c1.toString(),c6.updateDt=(new Date).getTime(),c4.store.updateUserSettings([c6]),c4.store.deleteSyncReadEntry(c3),c4._syncRead()}else c4.log("syncConversationReadDt error",c0)}))}else this.log("_syncConversationReadDt invalid dt",c1)}},{key:"_syncRead",value:function(){var c0=this.store.loadSyncReadEntry();if(c0){var c1=new c28.default(c0.type,c0.target,c0.line);this._syncConversationReadDt(c1,c0.readDt,c0.senders,c0.id)}}},{key:"clearAllUnreadStatus",value:function(){this.store.clearAllUnreadStatus()}},{key:"setMediaMessagePlayed",value:function(c0){if(this.store.setMediaMessagePlayed(c0)>0){var c1=this.store.getMessageById(c0);this.eventEmitter.emit(c38.default.MessageStatusUpdate,c1)}}},{key:"isMyFriend",value:function(c0){return this.store.isMyFriend(c0)}},{key:"sendFriendRequest",value:function(c0,c1,c2,c3,c4){var c5=c39.AddFriendRequest.create();c5.targetUid=c0,c5.reason=c1,c5.extra=c2,this._publish("FAR",c39.AddFriendRequest.encode(c5).finish(),(function(c0,c1){0===c0?c3&&c3():c4&&c4(c0)}))}},{key:"getMessages",value:function(c0,c1){var c2=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c3=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,c4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return this.store.getConversationMessages(c0,c1,c2,c3,c4)}},{key:"getMessagesV2",value:function(c0,c1){var c2=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c3=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,c4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",c5=arguments[5],c6=arguments[6],c7=this.store.getConversationMessages(c0,c1,c2,c3,c4);this._callbackOrLoadFromRemoteMessages(c7,c5,c6)}},{key:"getMessagesEx",value:function(c0,c1,c2,c3,c4,c5,c6){return this.store.getMessagesEx(c0,c1,c2,c6)}},{key:"getMessagesExV2",value:function(c0,c1,c2,c3,c4,c5,c6,c7,c8){var c9=this.store.getMessagesEx(c0,c1,c2,c6);this._callbackOrLoadFromRemoteMessages(c9,c7,c8)}},{key:"getMessagesEx2",value:function(c0,c1,c2,c3,c4,c5,c6){return this.store.getMessagesEx2(c0,c1,c2,c6)}},{key:"getMessagesEx2V2",value:function(c0,c1,c2,c3,c4,c5,c6,c7,c8){var c9=this.store.getMessagesEx2(c0,c1,c2,c6);this._callbackOrLoadFromRemoteMessages(c9,c7,c8)}},{key:"getUserMessages",value:function(c0,c1,c2){var c3=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],c4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20,c5=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",c6=this.store.getConversationMessages(c1,c2,c3,c4,c5);return c6.filter((function(c1){return c1.from===c0}))}},{key:"getUserMessagesV2",value:function(c0,c1,c2){var c3=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],c4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20,c5=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",c6=arguments[6],c7=arguments[7],c8=this.store.getConversationMessages(c1,c2,c3,c4,c5);c8=c8.filter((function(c1){return c1.from===c0})),this._callbackOrLoadFromRemoteMessages(c8,c6,c7)}},{key:"getFirstUnreadMessageId",value:function(c0){return this.store.getFirstUnreadMessageId(c0)}},{key:"getUserMessagesEx",value:function(c0,c1,c2,c3){var c4=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],c5=this.store.getMessagesEx(c1,c2,c4,"");return c5.filter((function(c1){return c1.from===c0}))}},{key:"getUserMessagesExV2",value:function(c0,c1,c2,c3){var c4=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],c5=arguments[7],c6=arguments[8],c7=this.store.getMessagesEx(c1,c2,c4,"");c7=c7.filter((function(c1){return c1.from===c0})),this._callbackOrLoadFromRemoteMessages(c7,c5,c6)}},{key:"getFirstUnreadMessageUid",value:function(c0){return this.store.getFirstUnreadMessage(c0)}},{key:"_convertAndSaveProtoMessage",value:function(c0,c1){var c2=c21.default.fromProtoMessage(c0);if(c2){var c3=c19.default.getMessageContentPersitFlag(c2.content.type);if(c1){if(81===c2.type){var c4=this.store.getMessageByUid(c15.default.fromValue(c2.content.binaryContent));c4&&c4.messageId>0&&(this.store.deleteMessageByUid(c15.default.from(c2.content.binaryContent)),this.onRemoteMessageDeleted(c4.messageUid))}80===c2.type&&this.onRecallMessage(c2.content.operatorId,c2.content.messageUid),c3===c25.default.Persist||c3===c25.default.Persist_And_Count?(c2.conversation.type===c29.default.ChatRoom?c2.messageId=this.store.genChatRoomMessageId():c2.messageId=this.store.genNormalMessageId(),this.store.saveMessage(c2)):c2.messageId=0}else-1===c3&&1==(1&c0.content.persistFlag)&&(c3=1),c2.messageId=1==(1&c3)&&c3>0?-1:0}return c2}},{key:"_loadRemoteMessagePublishCallback",value:function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,c2=arguments[1],c3=arguments[2],c4=arguments[3],c5=arguments[4],c6=arguments[5],c7=arguments[6],c8=arguments[7],c9=this,c10=arguments[8],c11=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0;if(this.log("loadRemoteMessages result",c0,c3,c4),0===c0&&c2){var c12=c39.PullMessageResult.decode(c2);this.log("loadRemoteMessages result data",c12);var c13=[];if(c12&&c12.message){if(c12.message.forEach((function(c0){if(!(c1.pcNotSupportMessageTypes.indexOf(c0.content.type)>-1)){var c2=c9.store.getMessageByUid(c0.messageId),c4=c9._convertAndSaveProtoMessage(c0,c3);c4&&(c4.messageContent.type===c22.default.VOIP_CONTENT_TYPE_ACCEPT&&c8&&c4.messageContent.type===c22.default.VOIP_CONTENT_TYPE_END&&c10||c2&&c7||c13.push(c2||c4),[c22.default.VOIP_CONTENT_TYPE_START,c22.default.VOIP_CONTENT_TYPE_ACCEPT,c22.default.VOIP_CONTENT_TYPE_END].indexOf(c4.messageContent.type)>=0&&c9.updateCallStartMessage(c4))}})),c4&&c13.length>0)for(var c14=0;c140?c12.message.length>c11:c12.message.length>0)}else c6&&c6(-1)}else c6&&c6(c0)}},{key:"loadRemoteLineMessages",value:function(c0,c1){var c2=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,c3=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,c4=this,c5=arguments[4],c6=arguments[5],c7=c15.default.fromValue(c2);c7.eq(c15.default.ZERO)&&(c7=c15.default.MAX_VALUE);var c8=c39.LoadLineMessages.create();c8.line=c0,c8.count=c3,c8.beforeUid=c7,c1||(c1=[]);var c9=!0,c10=!0;c1.indexOf(c22.default.VOIP_CONTENT_TYPE_START)&&(c1.indexOf(c22.default.VOIP_CONTENT_TYPE_END)?c9=!1:c1.push(c22.default.VOIP_CONTENT_TYPE_END),c1.indexOf(c22.default.VOIP_CONTENT_TYPE_ACCEPT)?c10=!1:c1.push(c22.default.VOIP_CONTENT_TYPE_ACCEPT)),c8.contentType=c1,this._publish("LLM",c39.LoadLineMessages.encode(c8).finish(),(function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c1=arguments[1];c4._loadRemoteMessagePublishCallback(c0,c1,!1,!1,c5,c6,!1,c9,c10,c3)}))}},{key:"loadRemoteMessages",value:function(c0,c1){var c2=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,c3=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,c4=arguments[4],c5=this,c6=arguments[5],c7=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c8=c15.default.fromValue(c2);c8.eq(c15.default.ZERO)&&(c8=c15.default.MAX_VALUE);var c9=this.store.getConversationInfo(c0);if(c9&&c9.lastMessage&&c9.lastMessage.messageUid&&c8.neq(c15.default.MAX_VALUE)&&c15.default.fromValue(c9.lastMessage.messageUid).compare(c8)<0)return this.log("the start message is exits",c9.lastMessage.toString(),c8.toString()),void(c6&&c6(-2));var c10=c39.LoadRemoteMessages.create();c10.conversation=this._toProtoConversation(c0),c1||(c1=[]);var c11=!0,c12=!0;c1.indexOf(c22.default.VOIP_CONTENT_TYPE_START)&&(c1.indexOf(c22.default.VOIP_CONTENT_TYPE_END)?c11=!1:c1.push(c22.default.VOIP_CONTENT_TYPE_END),c1.indexOf(c22.default.VOIP_CONTENT_TYPE_ACCEPT)?c12=!1:c1.push(c22.default.VOIP_CONTENT_TYPE_ACCEPT)),c10.contentType=c1,c10.beforeUid=c8,c10.count=c3,this.log("loadRemoteMessages request",c0,c8.toString(),c10),this._publish("LRM",c39.LoadRemoteMessages.encode(c10).finish(),(function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c2=arguments[1];c5._loadRemoteMessagePublishCallback(c0,c2,0===c1.length,0===c1.length,c4,c6,c7,c11,c12,c3)}))}},{key:"loadRemoteMessage",value:function(c0,c1,c2){var c3=this;if(c0){var c4=c39.INT64Buf.create();c4.id=c15.default.fromValue(c0),this._publish("LROM",c39.INT64Buf.encode(c4).finish(),(function(){var c0=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c4=arguments[1];c3._loadRemoteMessagePublishCallback(c0,c4,!1,!1,c1,c2)}))}else c2&&c2(-1)}},{key:"getMessageById",value:function(c0){return this.store.getMessageById(c0)}},{key:"getMessageByUid",value:function(c0){return this.store.getMessageByUid(c0)}},{key:"searchMessage",value:function(c0,c1,c2){return this.store.searchConversationMessage(c0,c1,c2)}},{key:"sendConversationMessage",value:function(c0,c1,c2,c3,c4,c5,c6){var c7=new c21.default;c0 instanceof c28.default?c7.conversation=c0:c7.conversation=new c28.default(c0.type,c0.target,c0.line),c7.messageContent=c1,this.sendMessageEx(c7,c2,c3,c4,c5,c6)}},{key:"sendSavedMessage",value:function(c0,c1,c2,c3){var c4=c0.messageId;if(!(c0=this.store.getMessageById(c4)))return this.error("saved message not found",c4),void(c3&&c3(-1));this._sendMessageInternal(c0,[],c2,c3)}},{key:"sendMessage",value:function(c0,c1,c2,c3,c4){this.sendMessageEx(c0,[],c1,c2,c3,c4)}},{key:"sendMessageEx",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c2=arguments[2],c3=arguments[3],c4=this,c5=arguments[4],c6=arguments[5],c7=void 0,c8=c15.default.fromValue((new Date).getTime()+this.getServerDeltaTime());c0.status=c23.default.Sending,c0.from=this.userId,c0.timestamp=c8,c0.content=c0.messageContent.encode();var c9=c19.default.getMessageContentPersitFlag(c0.messageContent.type);if(c9===c25.default.No_Persist||c9===c25.default.Transparent?(c7=0,c0.messageId=c7):(c7=c0.conversation.type===c29.default.ChatRoom?this.store.genChatRoomMessageId():this.store.genNormalMessageId(),c0.messageId=c7,this.store.saveMessage(c0),this.log("message prepared",c7,c8,c0),this.store.updateConversationLastMessage(c0)),this.eventEmitter.emit(c38.default.SendMessage,c0),c2&&(this.log("onPrepared",this.getMessageById(c7)),c2(c7,c8)),c0.messageContent instanceof c20.default)if(!c0.messageContent.file&&!c0.messageContent.localPath||c0.messageContent.remotePath)""!==c0.messageContent.remotePath||c0.messageContent instanceof c58.default?this._sendMessageInternal(c0,c1,c5,c6):(this.log("send media message error, file,localPath and remoteUrl are null"),c0.status=c23.default.SendFailure,this.store.updateMessageById(c0),this.store.updateConversationLastMessage(c0),this.eventEmitter.emit(c38.default.MessageStatusUpdate,c0),c6&&c6(-1));else if(this.log("send media message",c0),this.isSupportBigFilesUpload()){var c10=c0.messageContent.file?c0.messageContent.file:c0.messageContent.localPath,c11=void 0;c11="string"==typeof c10||c10 instanceof String?this._dataURItoBlob(c10):c10,this.log("support big file",c10,c11.name),this._uploadFile(c0,c11,c11.name,c0.messageContent.mediaType,(function(c0,c1){c3&&c3(c0,c1)}),(function(c1){c0.messageContent.remotePath=c1,c4.updateMessageContent(c0.messageId,c0.messageContent),c4._sendMessageInternal(c0,[],c5,c6)}),(function(c1){c0.status=c23.default.SendFailure,c4.store.updateMessageById(c0),c4.store.updateConversationLastMessage(c0),c4.eventEmitter.emit(c38.default.MessageStatusUpdate,c0),c6&&c6(c1)}))}else{var c12=c0.messageContent.file?c0.messageContent.file:c0.messageContent.localPath;this.log("not support big file",c12,c0),this._uploadMedia(c0.messageId,c0.messageContent.name,c12,c0.messageContent.mediaType,(function(c2){c0.messageContent.remotePath=c2,c4.log("remote Url",c2),c4._sendMessageInternal(c0,c1,c5,c6)}),(function(c1){c0.status=c23.default.SendFailure,c4.store.updateMessageById(c0),c4.store.updateConversationLastMessage(c0),c4.eventEmitter.emit(c38.default.MessageStatusUpdate,c0),c6&&c6(c1)}),(function(c0,c1){c3&&c3(c0,c1)}))}else this._sendMessageInternal(c0,c1,c5,c6)}},{key:"_sendMessageInternal",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c2=this,c3=arguments[2],c4=arguments[3],c5=this._toProtoMessage(c0);c5.to=c1,this.log("_sendMessageInternal",this.connectionStatus);var c6=c39.Message.encode(c5).finish();if(c6.byteLength>15360&&this.log("警告!!!消息内容大小是: "+c6.byteLength+",大小超过15K了,建议不要超过15K,如果大消息过多会影响接受体验,建议大文件使用媒体消息类型!!!"),c6.byteLength>102400)return this.error("消息内容太大,发送失败!"),void(c4&&c4(-1));this._publish("MS",c6,(function(){var c1=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-2,c5=arguments[1];if(c2.log("_sendMessageInternal result",c1),0!==c1||!c5)return c2.log("send message error",c1),c0.status=c23.default.SendFailure,c2.store.updateMessageById(c0),c2.store.updateConversationLastMessage(c0),c2.eventEmitter.emit(c38.default.MessageStatusUpdate,c0),void(c4&&c4(c1));var c6=new c15.default(0),c7=new c15.default(0);16===c5.length?(c6=c15.default.fromBytesBE(c5.slice(0,8),!0),c7=c15.default.fromBytesBE(c5.slice(8,16),!0),c0.messageUid=c6,c0.timestamp=c7,c0.status=c23.default.Sent,c0.direction=0,c0.from=c2.userId,c2.store.updateMessageById(c0),c2.store.updateConversationLastMessage(c0),c2.eventEmitter.emit(c38.default.MessageStatusUpdate,c0),c3&&c3(c6,c7)):(c0.status=c23.default.SendFailure,c2.store.updateMessageById(c0),c2.store.updateConversationLastMessage(c0),c2.log("ms reponse length error"),c2.eventEmitter.emit(c38.default.MessageStatusUpdate,c0),c4&&c4(-100001))}))}},{key:"cancelSendingMessage",value:function(c0){if(c0<=0)return!1;var c1=this.uploadingMap.get(c0);if(c1){try{c1.abort()}catch(c0){this.log(c0)}return!0}return!1}},{key:"recallMessage",value:function(c0,c1,c2){var c3=this,c4=c39.INT64Buf.create();c4.id=c15.default.fromValue(c0),this._publish("MR",c39.INT64Buf.encode(c4).finish(),(function(c4,c5){0===c4?(c1&&c1(),c3.onRecallMessage(c3.getUserId(),c0)):c2&&c2(c4)}))}},{key:"deleteMessageById",value:function(c0){var c1=this.store.deleteMessageById(c0);return c1&&this.onMessageDeleted(c0),c1}},{key:"deleteRemoteMessage",value:function(c0,c1,c2){var c3=this,c4=c39.INT64Buf.create();c4.id=c15.default.fromValue(c0),this._publish("MD",c39.INT64Buf.encode(c4).finish(),(function(c4,c5){0===c4?(c1&&c1(),c3.onRemoteMessageDeleted(c0)):c2&&c2(c4)}))}},{key:"clearMessages",value:function(c0,c1){void 0===c1&&(c1=c15.default.MAX_VALUE),this.store.clearConversationMessages(c0,c1);var c2=this.getConversationInfo(c0);this.eventEmitter.emit(c38.default.ConversationInfoUpdate,c2)}},{key:"clearRemoteConversationMessages",value:function(c0,c1,c2){var c3=this,c4=this._toProtoConversation(c0);this._publish("CMD",c39.Conversation.encode(c4).finish(),(function(c4,c5){0===c4?(c3.clearMessages(c0),c1&&c1()):c2&&c2(0===c4?-1:c4)}))}},{key:"insertMessage",value:function(c0,c1){var c2=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c23.default.Sent,c3=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,c5=new c21.default(c0,c1);if(c5.status=c2,c5.direction=0,c2>=c23.default.Mentioned?(c5.direction=1,c0.type===c29.default.Single?c5.from=c0.target:c5.from=this.userId):c5.from=this.userId,c5.timestamp=c15.default.fromValue(c4||(new Date).getTime()),c0.type===c29.default.ChatRoom)c5.messageId=this.store.genChatRoomMessageId();else c5.messageId=this.store.genNormalMessageId();return this.store.insertConversationMessages([c5]),c3&&this.eventEmitter.emit(c38.default.ReceiveMessage,c5),c5}},{key:"isUserReceiptEnabled",value:function(){return"1"!==this.getUserSetting(c37.default.DisableReceipt,"")}},{key:"isGlobalDisableSyncDraft",value:function(){return this.isGlobalDisableDraftSync}},{key:"setDisableSyncDraft",value:function(c0,c1,c2){this._updateUserSetting(c37.default.DisableSyncDraft,"",c0?"1":"0",c1,c2)}},{key:"isDisableSyncDraft",value:function(){return"1"!==this.getUserSetting(c37.default.DisableSyncDraft,"")}},{key:"setUserEnableReceipt",value:function(c0,c1,c2){this._updateUserSetting(c37.default.DisableReceipt,"",c0?"0":"1",c1,c2)}},{key:"updateMessageStatus",value:function(c0,c1){var c2=this.store.getMessageById(c0);0!==c2.messageId&&(c2.status=c1,this.store.updateMessageById(c2))}},{key:"updateMessageContent",value:function(c0,c1){var c2=this.store.getMessageById(c0);0!==c2.messageId&&(c2.messageContent=c1,this.store.updateMessageById(c2))}},{key:"updateMessageContentByUid",value:function(c0,c1){var c2=this.store.getMessageByUid(c0);c2&&0!==c2.messageId&&(c2.messageContent=c1,this.store.updateMessageById(c2))}},{key:"updateRemoteMessageContent",value:function(c0,c1,c2,c3,c4,c5){var c6=this,c7=c39.UpdateMessageContent.create();c7.messageId=c15.default.fromValue(c0),c7.content=this._toProtoMessageContent(c1),c7.distribute=c2,this._publish("MCU",c39.UpdateMessageContent.encode(c7).finish(),(function(c2,c7){0===c2?(c3&&c6.updateMessageContentByUid(c0,c1),c4&&c4()):c5&&c5(c2)}))}},{key:"_uploadXMLHttpRequest",value:function(c0,c1,c2,c3,c4,c5){var c6=this,c7=new XMLHttpRequest;return c7.upload.onprogress=function(c0){var c1=c0.loaded,c2=c0.total;c3(c1,c2)},c7.onreadystatechange=function(c3){c6.log("onr",c7.readyState,c7.status,c3),4===c7.readyState&&(200===c7.status?(c6.log("upload file success",c1,c2),c4(c2)):(c6.log("upload file error",c7.status),c5&&c5(-1)),c0&&c0.messageId>0&&c6.uploadingMap.delete(c0.messageId))},c7.onerror=function(c1){c6.log("upload file error",c1),c5&&c5(-1),c0&&c0.messageId>0&&c6.uploadingMap.delete(c0.messageId)},c0&&c0.messageId>0&&this.uploadingMap.set(c0.messageId,c7),c7}},{key:"_uploadFile",value:function(c0,c1,c2,c3,c4,c5,c6){var c7=this,c8=void 0,c9=(Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)).substring(0,12);if(c2&&""!==c2?(c8=c2,c2=c9):c8=c2=c9,-1!==c8.indexOf(".")){var c10=c8.substring(c8.lastIndexOf("."));c2+=c10}if(-1===c2.indexOf("."))switch(c3){case 1:case 5:c2+=".jpg";break;case 2:c2+=".mp3";break;case 3:c2+=".mp4"}this.log("upload fileName",c8,c2,c3);var c11=this._getContentType(c3,c8);this.getUploadMediaUrl(c2,c3,c11,(function(c3,c9,c10,c12){c3=1!==c7.backupAddressStrategy&&c10?c10:c3,console.log("uploadUrl",c3);var c13=void 0;if(0===c12);else if(1===c12){var c14=c3.split("?"),c15=c14[0],c16=c14[1],c17=c14[2];c13=c7._uploadXMLHttpRequest(c0,c2,c9,c4,c5,c6);var c18=new FormData;c18.append("key",c17),c18.append("token",c16),c18.append("file",c1),c13.open("POST",c15),c13.setRequestHeader("content-disposition",'attachment; filename="'+encodeURI(c8)+'"'),c13.send(c18)}else(c13=c7._uploadXMLHttpRequest(c0,c2,c9,c4,c5,c6)).open("PUT",c3),c13.setRequestHeader("Content-Type",c11),c13.setRequestHeader("content-disposition",'attachment; filename="'+encodeURI(c8)+'"'),c13.send(c1)}),(function(c0){c7.log("getUploadMediaUrl e",c0)}))}},{key:"uploadMedia",value:function(c0,c1,c2,c3,c4,c5){if(this.isSupportBigFilesUpload()){var c6=void 0;c6="string"==typeof c1||c1 instanceof String?this._dataURItoBlob(c1):c1,this._uploadFile(null,c6,c0,c2,c5,c3,c4)}else this._uploadMedia(0,c0,c1,c2,c3,c4,c5)}},{key:"_uploadMedia",value:function(c0,c1,c2,c3,c4,c5,c6){var c7=this,c8=void 0,c9=(Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)).substring(0,12);if(c1&&""!==c1?(c8=encodeURIComponent(c1),c1=c9):c8=c1=c9,-1===c1.indexOf("."))switch(c3){case 1:case 5:c1+=".jpg";break;case 2:c1+=".mp3";break;case 3:c1+=".mp4"}this.log("upload fileName",c1,c3);var c10=c1.substring(c1.lastIndexOf("."));-1===c8.indexOf(".")&&(c8+=c10);var c11=(0,c52.btoa)(this.userId)+"-"+c3+"-"+Math.round((new Date).valueOf()/1e3)+"-"+c1,c12=this._getContentType(c3,c8),c13=c39.GetUploadTokenRequest.create();c13.mediaType=c3,c13.mediaPath=c11,c13.contentType=c12,this._publish("GMUT",c39.GetUploadTokenRequest.encode(c13).finish(),(function(c3,c9){if(0===c3){var c10=c39.GetUploadTokenResult.decode(c9);c7.log("getUploadToken result",c10);var c13=new XMLHttpRequest,c14=!1,c15=setTimeout((function(){c7.log("upload media timeout"),c14=!0,c13.abort(),c5(-1)}),2e5);c13.onerror=function(c1){c7.log("upload media error",c1),c5&&c5(-1),c7.uploadingMap.delete(c0)},c13.onreadystatechange=function(){if(4===c13.readyState&&(c7.uploadingMap.delete(c0),!c14))if(clearTimeout(c15),200===c13.status)if(c7.log("upload response",c13.responseText),c10.type<2){var c1=JSON.parse(c13.responseText);c4&&c4(c10.domain+"/"+c1.key)}else c4&&c4(c10.domain+"/"+c11);else c7.log("upload media error status:"+c13.status),c5&&c5(c13.status)},c13.onprogress=function(c0){c0.lengthComputable&&c6&&c6(c0.loaded,c0.total)},c0>0&&c7.uploadingMap.set(c0,c13);var c16=void 0;if(0===c10.type||4===c10.type)c16="/fs";else if(3===c10.type){var c18=c10.path+"/"+c11;c18=(0,c17.AESEncrypt)(c18),c16="/fs/"+c18}else 2===c10.type&&(c11=encodeURI(c11)),c16="/"+c11;c7.log("upload media cgi",c16,c10);var c19=void 0,c20=void 0,c21=void 0;if(2===c7.backupAddressStrategy&&c10.backupServer?(c19=c10.backupServer,c21=443===(c21=c10.backupSslPort)?"":":"+c21,c20=80===(c20=c10.backupPort)?"":":"+c20):(c19=c10.server,c21="",c10.sslPort&&443!==c10.sslPort&&(c21=":"+c10.sslPort),c20=80!==c10.port?":"+c10.port:""),c10.type<2||4===c10.type){var c22=new FormData,c23=void 0;c23="string"==typeof c2||c2 instanceof String?c7._dataURItoBlob(c2):new Blob([c2],{type:c12}),c22.append("token",c10.token),c22.append("key",c1),c10.type<2?(c22.append("file",c23,c8),c43.default.USE_WSS?c13.open("POST","https://"+c19+c21+c16):c13.open("POST","http://"+c19+c20+c16),0!==c10.type&&(c13.setRequestHeader("Content-Type",c12),c13.setRequestHeader("content-disposition",'attachment; filename="'+c8+'"')),c13.send(c22)):new Response(c23).arrayBuffer().then((function(c0){var c1=new Uint8Array(c0),c2=c7._encrypt(c1,!1),c3=new Blob([new Uint8Array(c2,c2.byteOffset,c2.byteLength)]);c22.append("file",c3,c8),c43.default.USE_WSS?c13.open("POST","https://"+c19+c21+c16):c13.open("POST","http://"+c19+c20+c16),c13.setRequestHeader("x-wfc-size",c2.byteLength),0!==c10.type&&(c13.setRequestHeader("Content-Type",c12),c13.setRequestHeader("content-disposition",'attachment; filename="'+c8+'"')),c13.send(c22)}))}else if(c10.type>=2){var c24=void 0;c43.default.USE_WSS?(c13.open("PUT","https://"+c19+c21+c16),c24=1===c7.backupAddressStrategy?c10.sslToken?c10.sslToken:c10.token:c10.backupSslToken?c10.backupSslToken:c10.backupToken):(c13.open("PUT","http://"+c19+c20+c16),c24=1===c7.backupAddressStrategy?c10.token:c10.backupToken),c13.setRequestHeader("Content-Type",c12),c13.setRequestHeader("content-disposition",'attachment; filename="'+c8+'"'),c13.setRequestHeader("Authorization",c24),2===c10.type?c13.setRequestHeader("x-oss-date",c10.date):(c13.setRequestHeader("x-amz-date",c10.date),c13.setRequestHeader("x-wfc-cid",(0,c17.AESEncrypt)(c7.clientId)),c13.setRequestHeader("x-wfc-uid",(0,c17.AESEncrypt)(c7.userId)));var c25=void 0;if(c25="string"==typeof c2||c2 instanceof String?c7._dataURItoBlob(c2):new Blob([c2],{type:c12}),3===c10.type){if(c25.size>104857600)return void(c5&&(c7.log("upload media size too large",c25.size),c5(-1)));new Response(c25).arrayBuffer().then((function(c0){var c1=new Uint8Array(c0),c2=c7._encrypt(c1);c13.setRequestHeader("x-wfc-size",c0.byteLength),c13.send(c2)}))}else new Response(c25).arrayBuffer().then((function(c0){c13.send(c0)}))}}else c5&&c5(c3)})),this.log("upload-----------")}},{key:"getAuthorizedMediaUrl",value:function(c0,c1,c2,c3,c4){var c5=c39.GetUploadTokenRequest.create();c5.mediaType=c1,c5.mediaPath=c2,c5.messageId=c0,this._publish("GMDT",c39.GetUploadTokenRequest.encode(c5).finish(),(function(c0,c1){if(0===c0&&c1){var c2=c39.IDBuf.decode(c1);c3&&c3(c2.id)}else c4&&c4(0===c0?-1:c0)}))}},{key:"isSupportBigFilesUpload",value:function(){return this.serverConfigs.isSupportBigFileUpload}},{key:"getUploadMediaUrl",value:function(c0,c1,c2,c3,c4){var c5=c39.GetUploadTokenRequest.create(),c6=(0,c52.btoa)(unescape(encodeURIComponent(this.userId))),c7=(c6=c6.replace(/\+/g,"-2B").replace(/\//g,"-2F").replace(/\=/g,"-3D"))+"-"+c1+"-"+Math.round((new Date).valueOf()/1e3)+"-"+Math.round(1e8*Math.random()),c8=c0.lastIndexOf(".");c0=encodeURIComponent(c0),c8>0&&(c7+=c0.substring(c8)),c5.type=c1,c5.mediaPath=c7,c5.contentType=c2||"application/octet-stream",this._publish("GMPU",c39.GetUploadTokenRequest.encode(c5).finish(),(function(c0,c1){if(0===c0&&c1){var c2=c39.GetPresignedUrlResult.decode(c1);console.log("GMPU result",c2),c3&&c3(c2.presignedUrl,c2.mediaUrl,c2.backupPresignedUrl,c2.type)}else c4&&c4(0===c0?-1:c0)}))}},{key:"_getContentType",value:function(c0,c1){var c2="application/octet-stream";if(c1){var c3=c1.substring(c1.lastIndexOf(".")+1);"jpg"===c3||"jpeg"===c3?c2="image/jpeg":"gif"===c3?c2="image/gif":"png"===c3?c2="image/png":"mp3"===c3?c2="audio/mpeg":"mp4"===c3?c2="video/mp4":"doc"===c3?c2="application/vnd.ms-word":"docx"===c3?c2="application/vnd.openxmlformats-officedocument.wordprocessingml.document":"xls"===c3?c2="application/vnd.ms-xls":"xlsx"===c3?c2="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"ppt"===c3?c2="application/vnd.ms-powerpoint":"pptx"===c3?c2="application/vnd.openxmlformats-officedocument.presentationml.presentation":"pps"===c3?c2="application/vnd.ms-powerpoint":"pdf"===c3?c2="application/pdf":"xml"===c3&&(c2="application/vnd.ms-xml")}else 1===c0?c2="image/jpeg":2===c0?c2="audio/amr":3===c0&&(c2="video/mp4");return c2}},{key:"_getFileRecordsCallback",value:function(c0,c1,c2,c3){if(0===c0&&c1){var c4=c39.LoadFileRecordRes.decode(c1),c5=[];c4.record.forEach((function(c0){var c1=new c51.default;c1.conversation=new c28.default(c0.conversation.type,c0.conversation.target,c0.conversation.line),c1.messageUid=c0.messageId,c1.name=c0.name,c1.url=c0.url,c43.default.urlRedirect&&(c1.url=c43.default.urlRedirect(c0.url)),c1.size=c0.size,c1.downloadCount=c0.downloadCount,c1.userId=c0.fromUser,c1.timestamp=c0.dt,c5.push(c1)})),c2&&c2(c5)}else c3&&c3(0===c0?-1:c0)}},{key:"getConversationFileRecords",value:function(c0,c1,c2,c3,c4,c5,c6){var c7=this,c8=c39.LoadFileRecordReq.create();c8.conversation=this._toProtoConversation(c0),c8.messageId=c15.default.fromValue(c2),c8.from=c1,c8.order=c3,c8.count=c4,this._publish("LFR",c39.LoadFileRecordReq.encode(c8).finish(),(function(c0,c1){c7._getFileRecordsCallback(c0,c1,c5,c6)}))}},{key:"getMyFileRecords",value:function(c0,c1,c2,c3,c4){var c5=this,c6=c39.LoadFileRecordReq.create();c6.messageId=c15.default.fromValue(c0),c6.order=c1,c6.count=c2,this._publish("LFR",c39.LoadFileRecordReq.encode(c6).finish(),(function(c0,c1){c5._getFileRecordsCallback(c0,c1,c3,c4)}))}},{key:"searchFiles",value:function(c0,c1,c2,c3,c4,c5,c6,c7){var c8=this,c9=c39.SearchFileRecordReq.create();c9.keyword=c0,c9.conversation=this._toProtoConversation(c1),c9.from=c2,c9.messageId=c15.default.fromValue(c3),c9.order=c4,c9.count=c5,this._publish("SFR",c39.SearchFileRecordReq.encode(c9).finish(),(function(c0,c1){c8._getFileRecordsCallback(c0,c1,c6,c7)}))}},{key:"searchMyFiles",value:function(c0,c1,c2,c3,c4,c5){var c6=this,c7=c39.SearchFileRecordReq.create();c7.keyword=c0,c7.messageId=c15.default.fromValue(c1),c7.order=c2,c7.count=c3,this._publish("SFR",c39.SearchFileRecordReq.encode(c7).finish(),(function(c0,c1){c6._getFileRecordsCallback(c0,c1,c4,c5)}))}},{key:"deleteFileRecord",value:function(c0,c1,c2){var c3=c39.INT64Buf.create();c3.id=c15.default.fromValue(c0),this._publish("DFR",c39.INT64Buf.encode(c3).finish(),(function(c0,c3){0===c0?c1&&c1():c2&&c2(c0)}))}},{key:"markConversationAsUnread",value:function(c0,c1){var c2=this.store.setLastReceivedMessageUnread(c0,"0","0");if(c2&&(0,c16.gt)(c2,0)&&c1){var c3=new c53.default(c2),c4=this.store.getMessageByUid(c2);return c3.timestamp=c4.timestamp,this.sendConversationMessage(c0,c3),!0}return!1}},{key:"getVersion",value:function(){return c1.version}},{key:"isUserOnlineStateEnabled",value:function(){return this.isUserOnlineStateEnable}},{key:"watchOnlineState",value:function(c0,c1,c2,c3,c4){this._watchOnlineState(c0,c1,c2,!0,c3,c4)}},{key:"_watchOnlineState",value:function(c0,c1,c2,c3,c4,c5){if(!this.isUserOnlineStateEnable)return this.error("not enable onlineState function"),void(c5&&c5(248));var c6=c39.PresenceWatchRequest.create();c6.type=c0,c6.target=c1,c6.duration=c2,this._publish("PWT",c39.PresenceWatchRequest.encode(c6).finish(),(function(c0,c1){if(0===c0&&c1){if(!c3)return void(c4&&c4());var c2=c39.PresenceWatchResult.decode(c1),c6=[];c2.notify.forEach((function(c0){var c1=new c54.default;c1.userId=c0.userId,c1.customState=new c56.default,c1.customState.state=c0.customState,c1.customState.text=c0.customText;var c2=[];c0.state.forEach((function(c0){var c1=new c55.default;c1.platform=c0.platform,c1.state=c0.state,c1.lastSeen=c0.lastSeen,c2.push(c1)})),c1.clientStates=c2,c6.push(c1)})),c4&&c4(c6)}else c5&&c5(0===c0?-1:c0)}))}},{key:"unwatchOnlineState",value:function(c0,c1,c2,c3){this._watchOnlineState(c0,c1,0,!1,c2,c3)}},{key:"setMyCustomState",value:function(c0,c1,c2,c3){var c4=c0+"-"+c1;this.setUserSetting(c37.default.CustomState,"",c4,c2,c3)}},{key:"requireLock",value:function(c0,c1,c2,c3){var c4=c39.LockRequest.create();c4.lockId=c0,c4.duration=c15.default.fromValue(c1),this._publish("SLT",c39.LockRequest.encode(c4).finish(),(function(c0,c1){0===c0?c2&&c2():c3&&c3(c0)}))}},{key:"releaseLock",value:function(c0,c1,c2){this.requireLock(c0,0,c1,c2)}},{key:"_onlineStateNotify",value:function(c0){var c1=c39.PresenceWatchResult.decode(c0),c2=[];c1.notify.forEach((function(c0){var c1=new c54.default;c1.userId=c0.userId,c1.customState=new c56.default,c1.customState.state=c0.customState,c1.customState.text=c0.customText;var c3=[];c0.state.forEach((function(c0){var c1=new c55.default;c1.platform=c0.platform,c1.state=c0.state,c1.lastSeen=c0.lastSeen,c3.push(c1)})),c1.clientStates=c3,c2.push(c1)})),this.eventEmitter.emit(c38.default.UserOnlineEvent,c2)}},{key:"_dataURItoBlob",value:function(c0){for(var c1=c0.split(","),c2=c1[0].match(/:(.*?);/)[1],c3=atob(c1[1]),c4=c3.length,c5=new Uint8Array(c4);c4--;)c5[c4]=c3.charCodeAt(c4);return this.log("-----------dataurltoblob",c2),new Blob([c5],{type:c2})}},{key:"_encrypt",value:function(c1){var c2=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!c1)return c1;var c3=new c0((0,c17.AESEncrypt)(c1,this.privateSecret,c2),"base64");return c3}},{key:"_decrypt",value:function(c1){var c2=(0,c17.AESDecrypt)(c1.toString("base64"),this.privateSecret,!0);return new c0(c2)}},{key:"_decryptPublishResponse",value:function(c1){var c2=(0,c17.AESDecrypt)(c1.payload.slice(1,c1.payload.length).toString("base64"),this.privateSecret,!0);return c2?new c0(c2):null}},{key:"_toProtoConversation",value:function(c0){if(!c0)return null;var c1=c39.Conversation.create();return c1.type=c0.type,c1.target=c0.target,c1.line=c0.line,c1}},{key:"_toProtoMessage",value:function(c0){var c1=c39.Message.create();return c1.conversation=c0.conversation,c1.fromUser=this.getUserId(),c1.content=this._toProtoMessageContent(c0.messageContent),c1}},{key:"_toProtoMessageContent",value:function(c0){if(!c0)return null;var c1=c39.MessageContent.create(),c2=c0.encode();return c1.content=c2.content,c1.pushContent=c2.pushContent,c1.pushData=c2.pushData,c1.searchableContent=c2.searchableContent,c1.data=c2.binaryContent,c1.type=c2.type,c1.mentionedType=c2.mentionedType,c1.mentionedTarget=c2.mentionedTargets,c1.mediaType=c2.mediaType,c1.remoteMediaUrl=c2.remoteMediaUrl,c1.persistFlag=c19.default.getMessageContentPersitFlag(c2.type),c1.extra=c0.extra,c1}},{key:"_generalOperationCallback",value:function(c0,c1,c2){0===c0?c1&&c1():c2&&c2(c0)}},{key:"_generalStringListCallback",value:function(c0,c1,c2,c3){if(0===c0){var c4=c39.IDListBuf.decode(c1);c2&&c2(c4.id)}else c3&&c3(c0)}},{key:"_getStore",value:function(){return this.store}},{key:"log",value:function(c0){if(!c43.default.DISABLE_LOG){for(var c1,c2=arguments.length,c3=Array(c2>1?c2-1:0),c4=1;c41?c2-1:0),c4=1;c41?c2-1:0),c4=1;c4>1,c10=-7,c11=c2?c4-1:0,c12=c2?-1:1,c13=c0[c1+c11];for(c11+=c12,c5=c13&(1<<-c10)-1,c13>>=-c10,c10+=c7;c10>0;c5=256*c5+c0[c1+c11],c11+=c12,c10-=8);for(c6=c5&(1<<-c10)-1,c5>>=-c10,c10+=c3;c10>0;c6=256*c6+c0[c1+c11],c11+=c12,c10-=8);if(0===c5)c5=1-c9;else{if(c5===c8)return c6?NaN:1/0*(c13?-1:1);c6+=Math.pow(2,c3),c5-=c9}return(c13?-1:1)*c6*Math.pow(2,c5-c3)},c1.write=function(c0,c1,c2,c3,c4,c5){var c6,c7,c8,c9=8*c5-c4-1,c10=(1<>1,c12=23===c4?Math.pow(2,-24)-Math.pow(2,-77):0,c13=c3?0:c5-1,c14=c3?1:-1,c15=c1<0||0===c1&&1/c1<0?1:0;for(c1=Math.abs(c1),isNaN(c1)||c1===1/0?(c7=isNaN(c1)?1:0,c6=c10):(c6=Math.floor(Math.log(c1)/Math.LN2),c1*(c8=Math.pow(2,-c6))<1&&(c6--,c8*=2),(c1+=c6+c11>=1?c12/c8:c12*Math.pow(2,1-c11))*c8>=2&&(c6++,c8/=2),c6+c11>=c10?(c7=0,c6=c10):c6+c11>=1?(c7=(c1*c8-1)*Math.pow(2,c4),c6+=c11):(c7=c1*Math.pow(2,c11-1)*Math.pow(2,c4),c6=0));c4>=8;c0[c2+c13]=255&c7,c13+=c14,c7/=256,c4-=8);for(c6=c6<0;c0[c2+c13]=255&c6,c13+=c14,c6/=256,c9-=8);c0[c2+c13-c14]|=128*c15}},function(c0,c1,c2){c2(26),c2(190),c0.exports=c2(1).Array.from},function(c0,c1,c2){var c3=c2(63),c4=c2(64);c0.exports=function(c0){return function(c1,c2){var c5,c6,c7=String(c4(c1)),c8=c3(c2),c9=c7.length;return c8<0||c8>=c9?c0?"":void 0:(c5=c7.charCodeAt(c8))<55296||c5>56319||c8+1===c9||(c6=c7.charCodeAt(c8+1))<56320||c6>57343?c0?c7.charAt(c8):c5:c0?c7.slice(c8,c8+2):c6-56320+(c5-55296<<10)+65536}}},function(c0,c1,c2){"use strict";var c3=c2(49),c4=c2(38),c5=c2(42),c6={};c2(18)(c6,c2(5)("iterator"),(function(){return this})),c0.exports=function(c0,c1,c2){c0.prototype=c3(c6,{next:c4(1,c2)}),c5(c0,c1+" Iterator")}},function(c0,c1,c2){var c3=c2(27),c4=c2(50),c5=c2(188);c0.exports=function(c0){return function(c1,c2,c6){var c7,c8=c3(c1),c9=c4(c8.length),c10=c5(c6,c9);if(c0&&c2!=c2){for(;c9>c10;)if((c7=c8[c10++])!=c7)return!0}else for(;c9>c10;c10++)if((c0||c10 in c8)&&c8[c10]===c2)return c0||c10||0;return!c0&&-1}}},function(c0,c1,c2){var c3=c2(63),c4=Math.max,c5=Math.min;c0.exports=function(c0,c1){return(c0=c3(c0))<0?c4(c0+c1,0):c5(c0,c1)}},function(c0,c1,c2){var c3=c2(22),c4=c2(28),c5=c2(69)("IE_PROTO"),c6=Object.prototype;c0.exports=Object.getPrototypeOf||function(c0){return c0=c4(c0),c3(c0,c5)?c0[c5]:"function"==typeof c0.constructor&&c0 instanceof c0.constructor?c0.constructor.prototype:c0 instanceof Object?c6:null}},function(c0,c1,c2){"use strict";var c3=c2(17),c4=c2(2),c5=c2(28),c6=c2(104),c7=c2(105),c8=c2(50),c9=c2(191),c10=c2(72);c4(c4.S+c4.F*!c2(106)((function(c0){Array.from(c0)})),"Array",{from:function(c0){var c1,c2,c4,c11,c12=c5(c0),c13="function"==typeof this?this:Array,c14=arguments.length,c15=c14>1?arguments[1]:void 0,c16=void 0!==c15,c17=0,c18=c10(c12);if(c16&&(c15=c3(c15,c14>2?arguments[2]:void 0,2)),null==c18||c13==Array&&c7(c18))for(c2=new c13(c1=c8(c12.length));c1>c17;c17++)c9(c2,c17,c16?c15(c12[c17],c17):c12[c17]);else for(c11=c18.call(c12),c2=new c13;!(c4=c11.next()).done;c17++)c9(c2,c17,c16?c6(c11,c15,[c4.value,c17],!0):c4.value);return c2.length=c17,c2}})},function(c0,c1,c2){"use strict";var c3=c2(9),c4=c2(38);c0.exports=function(c0,c1,c2){c1 in c0?c3.f(c0,c1,c4(0,c2)):c0[c1]=c2}},function(c0,c1,c2){c2(52),c2(26),c2(43),c2(195),c2(199),c2(201),c2(202),c0.exports=c2(1).Set},function(c0,c1,c2){"use strict";var c3=c2(194),c4=c2(108),c5=c2(39),c6=c2(27);c0.exports=c2(65)(Array,"Array",(function(c0,c1){this._t=c6(c0),this._i=0,this._k=c1}),(function(){var c0=this._t,c1=this._k,c2=this._i++;return!c0||c2>=c0.length?(this._t=void 0,c4(1)):c4(0,"keys"==c1?c2:"values"==c1?c0[c2]:[c2,c0[c2]])}),"values"),c5.Arguments=c5.Array,c3("keys"),c3("values"),c3("entries")},function(c0,c1){c0.exports=function(){}},function(c0,c1,c2){"use strict";var c3=c2(109),c4=c2(76);c0.exports=c2(111)("Set",(function(c0){return function(){return c0(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(c0){return c3.def(c4(this,"Set"),c0=0===c0?0:c0,c0)}},c3)},function(c0,c1,c2){var c3=c2(17),c4=c2(68),c5=c2(28),c6=c2(50),c7=c2(197);c0.exports=function(c0,c1){var c2=1==c0,c8=2==c0,c9=3==c0,c10=4==c0,c11=6==c0,c12=5==c0||c11,c13=c1||c7;return function(c1,c7,c14){for(var c15,c16,c17=c5(c1),c18=c4(c17),c19=c3(c7,c14,3),c20=c6(c18.length),c21=0,c22=c2?c13(c1,c20):c8?c13(c1,0):void 0;c20>c21;c21++)if((c12||c21 in c18)&&(c16=c19(c15=c18[c21],c21,c17),c0))if(c2)c22[c21]=c16;else if(c16)switch(c0){case 3:return!0;case 5:return c15;case 6:return c21;case 2:c22.push(c15)}else if(c10)return!1;return c11?-1:c9||c10?c10:c22}}},function(c0,c1,c2){var c3=c2(198);c0.exports=function(c0,c1){return new(c3(c0))(c1)}},function(c0,c1,c2){var c3=c2(7),c4=c2(112),c5=c2(5)("species");c0.exports=function(c0){var c1;return c4(c0)&&("function"!=typeof(c1=c0.constructor)||c1!==Array&&!c4(c1.prototype)||(c1=void 0),c3(c1)&&null===(c1=c1[c5])&&(c1=void 0)),void 0===c1?Array:c1}},function(c0,c1,c2){var c3=c2(2);c3(c3.P+c3.R,"Set",{toJSON:c2(113)("Set")})},function(c0,c1,c2){var c3=c2(44);c0.exports=function(c0,c1){var c2=[];return c3(c0,!1,c2.push,c2,c1),c2}},function(c0,c1,c2){c2(114)("Set")},function(c0,c1,c2){c2(115)("Set")},function(c0,c1,c2){c2(52),c2(26),c2(43),c2(204),c2(208),c2(209),c0.exports=c2(1).Promise},function(c0,c1,c2){"use strict";var c3,c4,c5,c6,c7=c2(36),c8=c2(4),c9=c2(17),c10=c2(73),c11=c2(2),c12=c2(7),c13=c2(37),c14=c2(75),c15=c2(44),c16=c2(116),c17=c2(117).set,c18=c2(206)(),c19=c2(78),c20=c2(118),c21=c2(207),c22=c2(119),c23="Promise",c24=c8.TypeError,c25=c8.process,c26=c25&&c25.versions,c27=c26&&c26.v8||"",c28=c8.Promise,c29="process"==c10(c25),c30=function(){},c31=c4=c19.f,c32=!!function(){try{var c0=c28.resolve(1),c1=(c0.constructor={})[c2(5)("species")]=function(c0){c0(c30,c30)};return(c29||"function"==typeof PromiseRejectionEvent)&&c0.then(c30)instanceof c1&&0!==c27.indexOf("6.6")&&-1===c21.indexOf("Chrome/66")}catch(c0){}}(),c33=function(c0){var c1;return!(!c12(c0)||"function"!=typeof(c1=c0.then))&&c1},c34=function(c0,c1){if(!c0._n){c0._n=!0;var c2=c0._c;c18((function(){for(var c3=c0._v,c4=1==c0._s,c5=0,c6=function(c1){var c2,c5,c6,c7=c4?c1.ok:c1.fail,c8=c1.resolve,c9=c1.reject,c10=c1.domain;try{c7?(c4||(2==c0._h&&c37(c0),c0._h=1),!0===c7?c2=c3:(c10&&c10.enter(),c2=c7(c3),c10&&(c10.exit(),c6=!0)),c2===c1.promise?c9(c24("Promise-chain cycle")):(c5=c33(c2))?c5.call(c2,c8,c9):c8(c2)):c9(c3)}catch(c0){c10&&!c6&&c10.exit(),c9(c0)}};c2.length>c5;)c6(c2[c5++]);c0._c=[],c0._n=!1,c1&&!c0._h&&c35(c0)}))}},c35=function(c0){c17.call(c8,(function(){var c1,c2,c3,c4=c0._v,c5=c36(c0);if(c5&&(c1=c20((function(){c29?c25.emit("unhandledRejection",c4,c0):(c2=c8.onunhandledrejection)?c2({promise:c0,reason:c4}):(c3=c8.console)&&c3.error&&c3.error("Unhandled promise rejection",c4)})),c0._h=c29||c36(c0)?2:1),c0._a=void 0,c5&&c1.e)throw c1.v}))},c36=function(c0){return 1!==c0._h&&0===(c0._a||c0._c).length},c37=function(c0){c17.call(c8,(function(){var c1;c29?c25.emit("rejectionHandled",c0):(c1=c8.onrejectionhandled)&&c1({promise:c0,reason:c0._v})}))},c38=function(c0){var c1=this;c1._d||(c1._d=!0,(c1=c1._w||c1)._v=c0,c1._s=2,c1._a||(c1._a=c1._c.slice()),c34(c1,!0))},c39=function(c0){var c1,c2=this;if(!c2._d){c2._d=!0,c2=c2._w||c2;try{if(c2===c0)throw c24("Promise can't be resolved itself");(c1=c33(c0))?c18((function(){var c3={_w:c2,_d:!1};try{c1.call(c0,c9(c39,c3,1),c9(c38,c3,1))}catch(c0){c38.call(c3,c0)}})):(c2._v=c0,c2._s=1,c34(c2,!1))}catch(c0){c38.call({_w:c2,_d:!1},c0)}}};c32||(c28=function(c0){c14(this,c28,c23,"_h"),c13(c0),c3.call(this);try{c0(c9(c39,this,1),c9(c38,this,1))}catch(c0){c38.call(this,c0)}},(c3=function(c0){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=c2(74)(c28.prototype,{then:function(c0,c1){var c2=c31(c16(this,c28));return c2.ok="function"!=typeof c0||c0,c2.fail="function"==typeof c1&&c1,c2.domain=c29?c25.domain:void 0,this._c.push(c2),this._a&&this._a.push(c2),this._s&&c34(this,!1),c2.promise},catch:function(c0){return this.then(void 0,c0)}}),c5=function(){var c0=new c3;this.promise=c0,this.resolve=c9(c39,c0,1),this.reject=c9(c38,c0,1)},c19.f=c31=function(c0){return c0===c28||c0===c6?new c5(c0):c4(c0)}),c11(c11.G+c11.W+c11.F*!c32,{Promise:c28}),c2(42)(c28,c23),c2(110)(c23),c6=c2(1).Promise,c11(c11.S+c11.F*!c32,c23,{reject:function(c0){var c1=c31(this);return(0,c1.reject)(c0),c1.promise}}),c11(c11.S+c11.F*(c7||!c32),c23,{resolve:function(c0){return c22(c7&&this===c6?c28:this,c0)}}),c11(c11.S+c11.F*!(c32&&c2(106)((function(c0){c28.all(c0).catch(c30)}))),c23,{all:function(c0){var c1=this,c2=c31(c1),c3=c2.resolve,c4=c2.reject,c5=c20((function(){var c2=[],c5=0,c6=1;c15(c0,!1,(function(c0){var c7=c5++,c8=!1;c2.push(void 0),c6++,c1.resolve(c0).then((function(c0){c8||(c8=!0,c2[c7]=c0,--c6||c3(c2))}),c4)})),--c6||c3(c2)}));return c5.e&&c4(c5.v),c2.promise},race:function(c0){var c1=this,c2=c31(c1),c3=c2.reject,c4=c20((function(){c15(c0,!1,(function(c0){c1.resolve(c0).then(c2.resolve,c3)}))}));return c4.e&&c3(c4.v),c2.promise}})},function(c0,c1){c0.exports=function(c0,c1,c2){var c3=void 0===c2;switch(c1.length){case 0:return c3?c0():c0.call(c2);case 1:return c3?c0(c1[0]):c0.call(c2,c1[0]);case 2:return c3?c0(c1[0],c1[1]):c0.call(c2,c1[0],c1[1]);case 3:return c3?c0(c1[0],c1[1],c1[2]):c0.call(c2,c1[0],c1[1],c1[2]);case 4:return c3?c0(c1[0],c1[1],c1[2],c1[3]):c0.call(c2,c1[0],c1[1],c1[2],c1[3])}return c0.apply(c2,c1)}},function(c0,c1,c2){var c3=c2(4),c4=c2(117).set,c5=c3.MutationObserver||c3.WebKitMutationObserver,c6=c3.process,c7=c3.Promise,c8="process"==c2(41)(c6);c0.exports=function(){var c0,c1,c2,c9=function(){var c3,c4;for(c8&&(c3=c6.domain)&&c3.exit();c0;){c4=c0.fn,c0=c0.next;try{c4()}catch(c3){throw c0?c2():c1=void 0,c3}}c1=void 0,c3&&c3.enter()};if(c8)c2=function(){c6.nextTick(c9)};else if(!c5||c3.navigator&&c3.navigator.standalone)if(c7&&c7.resolve){var c10=c7.resolve(void 0);c2=function(){c10.then(c9)}}else c2=function(){c4.call(c3,c9)};else{var c11=!0,c12=document.createTextNode("");new c5(c9).observe(c12,{characterData:!0}),c2=function(){c12.data=c11=!c11}}return function(c3){var c4={fn:c3,next:void 0};c1&&(c1.next=c4),c0||(c0=c4,c2()),c1=c4}}},function(c0,c1,c2){var c3=c2(4).navigator;c0.exports=c3&&c3.userAgent||""},function(c0,c1,c2){"use strict";var c3=c2(2),c4=c2(1),c5=c2(4),c6=c2(116),c7=c2(119);c3(c3.P+c3.R,"Promise",{finally:function(c0){var c1=c6(this,c4.Promise||c5.Promise),c2="function"==typeof c0;return this.then(c2?function(c2){return c7(c1,c0()).then((function(){return c2}))}:c0,c2?function(c2){return c7(c1,c0()).then((function(){throw c2}))}:c0)}})},function(c0,c1,c2){"use strict";var c3=c2(2),c4=c2(78),c5=c2(118);c3(c3.S,"Promise",{try:function(c0){var c1=c4.f(this),c2=c5(c0);return(c2.e?c1.reject:c1.resolve)(c2.v),c1.promise}})},function(c0,c1,c2){c0.exports=c2(211)},function(c0,c1,c2){var c3=function(){return this}()||Function("return this")(),c4=c3.regeneratorRuntime&&Object.getOwnPropertyNames(c3).indexOf("regeneratorRuntime")>=0,c5=c4&&c3.regeneratorRuntime;if(c3.regeneratorRuntime=void 0,c0.exports=c2(212),c4)c3.regeneratorRuntime=c5;else try{delete c3.regeneratorRuntime}catch(c0){c3.regeneratorRuntime=void 0}},function(c0,c1){!function(c1){"use strict";var c2,c3=Object.prototype,c4=c3.hasOwnProperty,c5="function"==typeof Symbol?Symbol:{},c6=c5.iterator||"@@iterator",c7=c5.asyncIterator||"@@asyncIterator",c8=c5.toStringTag||"@@toStringTag",c9="object"==typeof c0,c10=c1.regeneratorRuntime;if(c10)c9&&(c0.exports=c10);else{(c10=c1.regeneratorRuntime=c9?c0.exports:{}).wrap=c20;var c11="suspendedStart",c12="suspendedYield",c13="executing",c14="completed",c15={},c16={};c16[c6]=function(){return this};var c17=Object.getPrototypeOf,c18=c17&&c17(c17(c31([])));c18&&c18!==c3&&c4.call(c18,c6)&&(c16=c18);var c19=c24.prototype=c22.prototype=Object.create(c16);c23.prototype=c19.constructor=c24,c24.constructor=c23,c24[c8]=c23.displayName="GeneratorFunction",c10.isGeneratorFunction=function(c0){var c1="function"==typeof c0&&c0.constructor;return!!c1&&(c1===c23||"GeneratorFunction"===(c1.displayName||c1.name))},c10.mark=function(c0){return Object.setPrototypeOf?Object.setPrototypeOf(c0,c24):(c0.__proto__=c24,c8 in c0||(c0[c8]="GeneratorFunction")),c0.prototype=Object.create(c19),c0},c10.awrap=function(c0){return{__await:c0}},c25(c26.prototype),c26.prototype[c7]=function(){return this},c10.AsyncIterator=c26,c10.async=function(c0,c1,c2,c3){var c4=new c26(c20(c0,c1,c2,c3));return c10.isGeneratorFunction(c1)?c4:c4.next().then((function(c0){return c0.done?c0.value:c4.next()}))},c25(c19),c19[c8]="Generator",c19[c6]=function(){return this},c19.toString=function(){return"[object Generator]"},c10.keys=function(c0){var c1=[];for(var c2 in c0)c1.push(c2);return c1.reverse(),function c2(){for(;c1.length;){var c3=c1.pop();if(c3 in c0)return c2.value=c3,c2.done=!1,c2}return c2.done=!0,c2}},c10.values=c31,c30.prototype={constructor:c30,reset:function(c0){if(this.prev=0,this.next=0,this.sent=this._sent=c2,this.done=!1,this.delegate=null,this.method="next",this.arg=c2,this.tryEntries.forEach(c29),!c0)for(var c1 in this)"t"===c1.charAt(0)&&c4.call(this,c1)&&!isNaN(+c1.slice(1))&&(this[c1]=c2)},stop:function(){this.done=!0;var c0=this.tryEntries[0].completion;if("throw"===c0.type)throw c0.arg;return this.rval},dispatchException:function(c0){if(this.done)throw c0;var c1=this;function c3(c3,c4){return c7.type="throw",c7.arg=c0,c1.next=c3,c4&&(c1.method="next",c1.arg=c2),!!c4}for(var c5=this.tryEntries.length-1;c5>=0;--c5){var c6=this.tryEntries[c5],c7=c6.completion;if("root"===c6.tryLoc)return c3("end");if(c6.tryLoc<=this.prev){var c8=c4.call(c6,"catchLoc"),c9=c4.call(c6,"finallyLoc");if(c8&&c9){if(this.prev=0;--c2){var c3=this.tryEntries[c2];if(c3.tryLoc<=this.prev&&c4.call(c3,"finallyLoc")&&this.prev=0;--c1){var c2=this.tryEntries[c1];if(c2.finallyLoc===c0)return this.complete(c2.completion,c2.afterLoc),c29(c2),c15}},catch:function(c0){for(var c1=this.tryEntries.length-1;c1>=0;--c1){var c2=this.tryEntries[c1];if(c2.tryLoc===c0){var c3=c2.completion;if("throw"===c3.type){var c4=c3.arg;c29(c2)}return c4}}throw new Error("illegal catch attempt")},delegateYield:function(c0,c1,c3){return this.delegate={iterator:c31(c0),resultName:c1,nextLoc:c3},"next"===this.method&&(this.arg=c2),c15}}}function c20(c0,c1,c2,c3){var c4=c1&&c1.prototype instanceof c22?c1:c22,c5=Object.create(c4.prototype),c6=new c30(c3||[]);return c5._invoke=function(c0,c1,c2){var c3=c11;return function(c4,c5){if(c3===c13)throw new Error("Generator is already running");if(c3===c14){if("throw"===c4)throw c5;return c32()}for(c2.method=c4,c2.arg=c5;;){var c6=c2.delegate;if(c6){var c7=c27(c6,c2);if(c7){if(c7===c15)continue;return c7}}if("next"===c2.method)c2.sent=c2._sent=c2.arg;else if("throw"===c2.method){if(c3===c11)throw c3=c14,c2.arg;c2.dispatchException(c2.arg)}else"return"===c2.method&&c2.abrupt("return",c2.arg);c3=c13;var c8=c21(c0,c1,c2);if("normal"===c8.type){if(c3=c2.done?c14:c12,c8.arg===c15)continue;return{value:c8.arg,done:c2.done}}"throw"===c8.type&&(c3=c14,c2.method="throw",c2.arg=c8.arg)}}}(c0,c2,c6),c5}function c21(c0,c1,c2){try{return{type:"normal",arg:c0.call(c1,c2)}}catch(c0){return{type:"throw",arg:c0}}}function c22(){}function c23(){}function c24(){}function c25(c0){["next","throw","return"].forEach((function(c1){c0[c1]=function(c0){return this._invoke(c1,c0)}}))}function c26(c0){function c1(c2,c3,c5,c6){var c7=c21(c0[c2],c0,c3);if("throw"!==c7.type){var c8=c7.arg,c9=c8.value;return c9&&"object"==typeof c9&&c4.call(c9,"__await")?Promise.resolve(c9.__await).then((function(c0){c1("next",c0,c5,c6)}),(function(c0){c1("throw",c0,c5,c6)})):Promise.resolve(c9).then((function(c0){c8.value=c0,c5(c8)}),c6)}c6(c7.arg)}var c2;this._invoke=function(c0,c3){function c4(){return new Promise((function(c2,c4){c1(c0,c3,c2,c4)}))}return c2=c2?c2.then(c4,c4):c4()}}function c27(c0,c1){var c3=c0.iterator[c1.method];if(c3===c2){if(c1.delegate=null,"throw"===c1.method){if(c0.iterator.return&&(c1.method="return",c1.arg=c2,c27(c0,c1),"throw"===c1.method))return c15;c1.method="throw",c1.arg=new TypeError("The iterator does not provide a 'throw' method")}return c15}var c4=c21(c3,c0.iterator,c1.arg);if("throw"===c4.type)return c1.method="throw",c1.arg=c4.arg,c1.delegate=null,c15;var c5=c4.arg;return c5?c5.done?(c1[c0.resultName]=c5.value,c1.next=c0.nextLoc,"return"!==c1.method&&(c1.method="next",c1.arg=c2),c1.delegate=null,c15):c5:(c1.method="throw",c1.arg=new TypeError("iterator result is not an object"),c1.delegate=null,c15)}function c28(c0){var c1={tryLoc:c0[0]};1 in c0&&(c1.catchLoc=c0[1]),2 in c0&&(c1.finallyLoc=c0[2],c1.afterLoc=c0[3]),this.tryEntries.push(c1)}function c29(c0){var c1=c0.completion||{};c1.type="normal",delete c1.arg,c0.completion=c1}function c30(c0){this.tryEntries=[{tryLoc:"root"}],c0.forEach(c28,this),this.reset(!0)}function c31(c0){if(c0){var c1=c0[c6];if(c1)return c1.call(c0);if("function"==typeof c0.next)return c0;if(!isNaN(c0.length)){var c3=-1,c5=function c1(){for(;++c3c10;)for(var c13,c14=c8(arguments[c10++]),c15=c11?c4(c14).concat(c11(c14)):c4(c14),c16=c15.length,c17=0;c16>c17;)c13=c15[c17++],c3&&!c12.call(c14,c13)||(c2[c13]=c14[c13]);return c2}:c9},function(c0,c1,c2){var c3=c2(1),c4=c3.JSON||(c3.JSON={stringify:JSON.stringify});c0.exports=function(c0){return c4.stringify.apply(c4,arguments)}},function(c0,c1,c2){c2(43),c2(26),c0.exports=c2(219)},function(c0,c1,c2){var c3=c2(13),c4=c2(72);c0.exports=c2(1).getIterator=function(c0){var c1=c4(c0);if("function"!=typeof c1)throw TypeError(c0+" is not iterable!");return c3(c1.call(c0))}},function(c0,c1,c2){c2(52),c2(26),c2(43),c2(221),c2(222),c2(223),c2(224),c0.exports=c2(1).Map},function(c0,c1,c2){"use strict";var c3=c2(109),c4=c2(76),c5="Map";c0.exports=c2(111)(c5,(function(c0){return function(){return c0(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(c0){var c1=c3.getEntry(c4(this,c5),c0);return c1&&c1.v},set:function(c0,c1){return c3.def(c4(this,c5),0===c0?0:c0,c1)}},c3,!0)},function(c0,c1,c2){var c3=c2(2);c3(c3.P+c3.R,"Map",{toJSON:c2(113)("Map")})},function(c0,c1,c2){c2(114)("Map")},function(c0,c1,c2){c2(115)("Map")},function(c0,c1,c2){c2(226);var c3=c2(1).Object;c0.exports=function(c0,c1,c2){return c3.defineProperty(c0,c1,c2)}},function(c0,c1,c2){var c3=c2(2);c3(c3.S+c3.F*!c2(8),"Object",{defineProperty:c2(9).f})},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),c2(56),c2(228),c2(229),c2(30),c2(31),c2(83),c2(126),c2(230),c2(127),c2(231),c2(232),c2(233),c2(84),c2(234),c2(23),c2(3),c2(235),c2(236),c2(237),c2(238),c2(239),c2(240),c2(241),c2(242),c2(243),c2(244),c2(245),c2(246),c2(247),c2(248),c2(249),c2(250),c3)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),function(){if("function"==typeof ArrayBuffer){var c0=c3.lib.WordArray,c1=c0.init,c2=c0.init=function(c0){if(c0 instanceof ArrayBuffer&&(c0=new Uint8Array(c0)),(c0 instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&c0 instanceof Uint8ClampedArray||c0 instanceof Int16Array||c0 instanceof Uint16Array||c0 instanceof Int32Array||c0 instanceof Uint32Array||c0 instanceof Float32Array||c0 instanceof Float64Array)&&(c0=new Uint8Array(c0.buffer,c0.byteOffset,c0.byteLength)),c0 instanceof Uint8Array){for(var c2=c0.byteLength,c3=[],c4=0;c4>>2]|=c0[c4]<<24-c4%4*8;c1.call(this,c3,c2)}else c1.apply(this,arguments)};c2.prototype=c0}}(),c3.lib.WordArray)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),function(){var c0=c3,c1=c0.lib.WordArray,c2=c0.enc;function c4(c0){return c0<<8&4278255360|c0>>>8&16711935}c2.Utf16=c2.Utf16BE={stringify:function(c0){for(var c1=c0.words,c2=c0.sigBytes,c3=[],c4=0;c4>>2]>>>16-c4%4*8&65535;c3.push(String.fromCharCode(c5))}return c3.join("")},parse:function(c0){for(var c2=c0.length,c3=[],c4=0;c4>>1]|=c0.charCodeAt(c4)<<16-c4%2*16;return c1.create(c3,2*c2)}},c2.Utf16LE={stringify:function(c0){for(var c1=c0.words,c2=c0.sigBytes,c3=[],c5=0;c5>>2]>>>16-c5%4*8&65535);c3.push(String.fromCharCode(c6))}return c3.join("")},parse:function(c0){for(var c2=c0.length,c3=[],c5=0;c5>>1]|=c4(c0.charCodeAt(c5)<<16-c5%2*16);return c1.create(c3,2*c2)}}}(),c3.enc.Utf16)},function(c0,c1,c2){var c3,c4,c5,c6,c7,c8;c0.exports=(c8=c2(0),c2(126),c4=(c3=c8).lib.WordArray,c5=c3.algo,c6=c5.SHA256,c7=c5.SHA224=c6.extend({_doReset:function(){this._hash=new c4.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c0=c6._doFinalize.call(this);return c0.sigBytes-=4,c0}}),c3.SHA224=c6._createHelper(c7),c3.HmacSHA224=c6._createHmacHelper(c7),c8.SHA224)},function(c0,c1,c2){var c3,c4,c5,c6,c7,c8,c9,c10;c0.exports=(c10=c2(0),c2(56),c2(127),c4=(c3=c10).x64,c5=c4.Word,c6=c4.WordArray,c7=c3.algo,c8=c7.SHA512,c9=c7.SHA384=c8.extend({_doReset:function(){this._hash=new c6.init([new c5.init(3418070365,3238371032),new c5.init(1654270250,914150663),new c5.init(2438529370,812702999),new c5.init(355462360,4144912697),new c5.init(1731405415,4290775857),new c5.init(2394180231,1750603025),new c5.init(3675008525,1694076839),new c5.init(1203062813,3204075428)])},_doFinalize:function(){var c0=c8._doFinalize.call(this);return c0.sigBytes-=16,c0}}),c3.SHA384=c8._createHelper(c9),c3.HmacSHA384=c8._createHmacHelper(c9),c10.SHA384)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),c2(56),function(c0){var c1=c3,c2=c1.lib,c4=c2.WordArray,c5=c2.Hasher,c6=c1.x64.Word,c7=c1.algo,c8=[],c9=[],c10=[];!function(){for(var c0=1,c1=0,c2=0;c2<24;c2++){c8[c0+5*c1]=(c2+1)*(c2+2)/2%64;var c3=(2*c0+3*c1)%5;c0=c1%5,c1=c3}for(c0=0;c0<5;c0++)for(c1=0;c1<5;c1++)c9[c0+5*c1]=c1+(2*c0+3*c1)%5*5;for(var c4=1,c5=0;c5<24;c5++){for(var c7=0,c11=0,c12=0;c12<7;c12++){if(1&c4){var c13=(1<>>24)|4278255360&(c5<<24|c5>>>8),c6=16711935&(c6<<8|c6>>>24)|4278255360&(c6<<24|c6>>>8),(c28=c2[c4]).high^=c6,c28.low^=c5}for(var c7=0;c7<24;c7++){for(var c12=0;c12<5;c12++){for(var c13=0,c14=0,c15=0;c15<5;c15++)c13^=(c28=c2[c12+5*c15]).high,c14^=c28.low;var c16=c11[c12];c16.high=c13,c16.low=c14}for(c12=0;c12<5;c12++){var c17=c11[(c12+4)%5],c18=c11[(c12+1)%5],c19=c18.high,c20=c18.low;for(c13=c17.high^(c19<<1|c20>>>31),c14=c17.low^(c20<<1|c19>>>31),c15=0;c15<5;c15++)(c28=c2[c12+5*c15]).high^=c13,c28.low^=c14}for(var c21=1;c21<25;c21++){var c22=(c28=c2[c21]).high,c23=c28.low,c24=c8[c21];c24<32?(c13=c22<>>32-c24,c14=c23<>>32-c24):(c13=c23<>>64-c24,c14=c22<>>64-c24);var c25=c11[c9[c21]];c25.high=c13,c25.low=c14}var c26=c11[0],c27=c2[0];for(c26.high=c27.high,c26.low=c27.low,c12=0;c12<5;c12++)for(c15=0;c15<5;c15++){var c28=c2[c21=c12+5*c15],c29=c11[c21],c30=c11[(c12+1)%5+5*c15],c31=c11[(c12+2)%5+5*c15];c28.high=c29.high^~c30.high&c31.high,c28.low=c29.low^~c30.low&c31.low}c28=c2[0];var c32=c10[c7];c28.high^=c32.high,c28.low^=c32.low}},_doFinalize:function(){var c1=this._data,c2=c1.words,c3=(this._nDataBytes,8*c1.sigBytes),c5=32*this.blockSize;c2[c3>>>5]|=1<<24-c3%32,c2[(c0.ceil((c3+1)/c5)*c5>>>5)-1]|=128,c1.sigBytes=4*c2.length,this._process();for(var c6=this._state,c7=this.cfg.outputLength/8,c8=c7/8,c9=[],c10=0;c10>>24)|4278255360&(c12<<24|c12>>>8),c13=16711935&(c13<<8|c13>>>24)|4278255360&(c13<<24|c13>>>8),c9.push(c13),c9.push(c12)}return new c4.init(c9,c7)},clone:function(){for(var c0=c5.clone.call(this),c1=c0._state=this._state.slice(0),c2=0;c2<25;c2++)c1[c2]=c1[c2].clone();return c0}});c1.SHA3=c5._createHelper(c12),c1.HmacSHA3=c5._createHmacHelper(c12)}(Math),c3.SHA3)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),function(c0){var c1=c3,c2=c1.lib,c4=c2.WordArray,c5=c2.Hasher,c6=c1.algo,c7=c4.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c8=c4.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c9=c4.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c10=c4.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c11=c4.create([0,1518500249,1859775393,2400959708,2840853838]),c12=c4.create([1352829926,1548603684,1836072691,2053994217,0]),c13=c6.RIPEMD160=c5.extend({_doReset:function(){this._hash=c4.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c0,c1){for(var c2=0;c2<16;c2++){var c3=c1+c2,c4=c0[c3];c0[c3]=16711935&(c4<<8|c4>>>24)|4278255360&(c4<<24|c4>>>8)}var c5,c6,c13,c20,c21,c22,c23,c24,c25,c26,c27,c28=this._hash.words,c29=c11.words,c30=c12.words,c31=c7.words,c32=c8.words,c33=c9.words,c34=c10.words;for(c22=c5=c28[0],c23=c6=c28[1],c24=c13=c28[2],c25=c20=c28[3],c26=c21=c28[4],c2=0;c2<80;c2+=1)c27=c5+c0[c1+c31[c2]]|0,c27+=c2<16?c14(c6,c13,c20)+c29[0]:c2<32?c15(c6,c13,c20)+c29[1]:c2<48?c16(c6,c13,c20)+c29[2]:c2<64?c17(c6,c13,c20)+c29[3]:c18(c6,c13,c20)+c29[4],c27=(c27=c19(c27|=0,c33[c2]))+c21|0,c5=c21,c21=c20,c20=c19(c13,10),c13=c6,c6=c27,c27=c22+c0[c1+c32[c2]]|0,c27+=c2<16?c18(c23,c24,c25)+c30[0]:c2<32?c17(c23,c24,c25)+c30[1]:c2<48?c16(c23,c24,c25)+c30[2]:c2<64?c15(c23,c24,c25)+c30[3]:c14(c23,c24,c25)+c30[4],c27=(c27=c19(c27|=0,c34[c2]))+c26|0,c22=c26,c26=c25,c25=c19(c24,10),c24=c23,c23=c27;c27=c28[1]+c13+c25|0,c28[1]=c28[2]+c20+c26|0,c28[2]=c28[3]+c21+c22|0,c28[3]=c28[4]+c5+c23|0,c28[4]=c28[0]+c6+c24|0,c28[0]=c27},_doFinalize:function(){var c0=this._data,c1=c0.words,c2=8*this._nDataBytes,c3=8*c0.sigBytes;c1[c3>>>5]|=128<<24-c3%32,c1[14+(c3+64>>>9<<4)]=16711935&(c2<<8|c2>>>24)|4278255360&(c2<<24|c2>>>8),c0.sigBytes=4*(c1.length+1),this._process();for(var c4=this._hash,c5=c4.words,c6=0;c6<5;c6++){var c7=c5[c6];c5[c6]=16711935&(c7<<8|c7>>>24)|4278255360&(c7<<24|c7>>>8)}return c4},clone:function(){var c0=c5.clone.call(this);return c0._hash=this._hash.clone(),c0}});function c14(c0,c1,c2){return c0^c1^c2}function c15(c0,c1,c2){return c0&c1|~c0&c2}function c16(c0,c1,c2){return(c0|~c1)^c2}function c17(c0,c1,c2){return c0&c2|c1&~c2}function c18(c0,c1,c2){return c0^(c1|~c2)}function c19(c0,c1){return c0<>>32-c1}c1.RIPEMD160=c5._createHelper(c13),c1.HmacRIPEMD160=c5._createHmacHelper(c13)}(Math),c3.RIPEMD160)},function(c0,c1,c2){var c3,c4,c5,c6,c7,c8,c9,c10,c11;c0.exports=(c11=c2(0),c2(83),c2(84),c4=(c3=c11).lib,c5=c4.Base,c6=c4.WordArray,c7=c3.algo,c8=c7.SHA1,c9=c7.HMAC,c10=c7.PBKDF2=c5.extend({cfg:c5.extend({keySize:4,hasher:c8,iterations:1}),init:function(c0){this.cfg=this.cfg.extend(c0)},compute:function(c0,c1){for(var c2=this.cfg,c3=c9.create(c2.hasher,c0),c4=c6.create(),c5=c6.create([1]),c7=c4.words,c8=c5.words,c10=c2.keySize,c11=c2.iterations;c7.length>24&255)){var c1=c0>>16&255,c2=c0>>8&255,c3=255&c0;255===c1?(c1=0,255===c2?(c2=0,255===c3?c3=0:++c3):++c2):++c1,c0=0,c0+=c1<<16,c0+=c2<<8,c0+=c3}else c0+=1<<24;return c0}function c2(c0){return 0===(c0[0]=c1(c0[0]))&&(c0[1]=c1(c0[1])),c0}var c4=c0.Encryptor=c0.extend({processBlock:function(c0,c1){var c3=this._cipher,c4=c3.blockSize,c5=this._iv,c6=this._counter;c5&&(c6=this._counter=c5.slice(0),this._iv=void 0),c2(c6);var c7=c6.slice(0);c3.encryptBlock(c7,0);for(var c8=0;c8>>2]|=c4<<24-c5%4*8,c0.sigBytes+=c4},unpad:function(c0){var c1=255&c0.words[c0.sigBytes-1>>>2];c0.sigBytes-=c1}},c3.pad.Ansix923)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),c2(3),c3.pad.Iso10126={pad:function(c0,c1){var c2=4*c1,c4=c2-c0.sigBytes%c2;c0.concat(c3.lib.WordArray.random(c4-1)).concat(c3.lib.WordArray.create([c4<<24],1))},unpad:function(c0){var c1=255&c0.words[c0.sigBytes-1>>>2];c0.sigBytes-=c1}},c3.pad.Iso10126)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),c2(3),c3.pad.Iso97971={pad:function(c0,c1){c0.concat(c3.lib.WordArray.create([2147483648],1)),c3.pad.ZeroPadding.pad(c0,c1)},unpad:function(c0){c3.pad.ZeroPadding.unpad(c0),c0.sigBytes--}},c3.pad.Iso97971)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),c2(3),c3.pad.ZeroPadding={pad:function(c0,c1){var c2=4*c1;c0.clamp(),c0.sigBytes+=c2-(c0.sigBytes%c2||c2)},unpad:function(c0){for(var c1=c0.words,c2=c0.sigBytes-1;!(c1[c2>>>2]>>>24-c2%4*8&255);)c2--;c0.sigBytes=c2+1}},c3.pad.ZeroPadding)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),c2(3),c3.pad.NoPadding={pad:function(){},unpad:function(){}},c3.pad.NoPadding)},function(c0,c1,c2){var c3,c4,c5,c6;c0.exports=(c6=c2(0),c2(3),c4=(c3=c6).lib.CipherParams,c5=c3.enc.Hex,c3.format.Hex={stringify:function(c0){return c0.ciphertext.toString(c5)},parse:function(c0){var c1=c5.parse(c0);return c4.create({ciphertext:c1})}},c6.format.Hex)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),c2(30),c2(31),c2(23),c2(3),function(){var c0=c3,c1=c0.lib.BlockCipher,c2=c0.algo,c4=[],c5=[],c6=[],c7=[],c8=[],c9=[],c10=[],c11=[],c12=[],c13=[];!function(){for(var c0=[],c1=0;c1<256;c1++)c0[c1]=c1<128?c1<<1:c1<<1^283;var c2=0,c3=0;for(c1=0;c1<256;c1++){var c14=c3^c3<<1^c3<<2^c3<<3^c3<<4;c14=c14>>>8^255&c14^99,c4[c2]=c14,c5[c14]=c2;var c15=c0[c2],c16=c0[c15],c17=c0[c16],c18=257*c0[c14]^16843008*c14;c6[c2]=c18<<24|c18>>>8,c7[c2]=c18<<16|c18>>>16,c8[c2]=c18<<8|c18>>>24,c9[c2]=c18,c18=16843009*c17^65537*c16^257*c15^16843008*c2,c10[c14]=c18<<24|c18>>>8,c11[c14]=c18<<16|c18>>>16,c12[c14]=c18<<8|c18>>>24,c13[c14]=c18,c2?(c2=c15^c0[c0[c0[c17^c15]]],c3^=c0[c0[c3]]):c2=c3=1}}();var c14=[0,1,2,4,8,16,32,64,128,27,54],c15=c2.AES=c1.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var c0=this._keyPriorReset=this._key,c1=c0.words,c2=c0.sigBytes/4,c3=4*((this._nRounds=c2+6)+1),c5=this._keySchedule=[],c6=0;c66&&c6%c2==4&&(c7=c4[c7>>>24]<<24|c4[c7>>>16&255]<<16|c4[c7>>>8&255]<<8|c4[255&c7]):(c7=c4[(c7=c7<<8|c7>>>24)>>>24]<<24|c4[c7>>>16&255]<<16|c4[c7>>>8&255]<<8|c4[255&c7],c7^=c14[c6/c2|0]<<24),c5[c6]=c5[c6-c2]^c7}for(var c8=this._invKeySchedule=[],c9=0;c9>>24]]^c11[c4[c7>>>16&255]]^c12[c4[c7>>>8&255]]^c13[c4[255&c7]]}},encryptBlock:function(c0,c1){this._doCryptBlock(c0,c1,this._keySchedule,c6,c7,c8,c9,c4)},decryptBlock:function(c0,c1){var c2=c0[c1+1];c0[c1+1]=c0[c1+3],c0[c1+3]=c2,this._doCryptBlock(c0,c1,this._invKeySchedule,c10,c11,c12,c13,c5),c2=c0[c1+1],c0[c1+1]=c0[c1+3],c0[c1+3]=c2},_doCryptBlock:function(c0,c1,c2,c3,c4,c5,c6,c7){for(var c8=this._nRounds,c9=c0[c1]^c2[0],c10=c0[c1+1]^c2[1],c11=c0[c1+2]^c2[2],c12=c0[c1+3]^c2[3],c13=4,c14=1;c14>>24]^c4[c10>>>16&255]^c5[c11>>>8&255]^c6[255&c12]^c2[c13++],c16=c3[c10>>>24]^c4[c11>>>16&255]^c5[c12>>>8&255]^c6[255&c9]^c2[c13++],c17=c3[c11>>>24]^c4[c12>>>16&255]^c5[c9>>>8&255]^c6[255&c10]^c2[c13++],c18=c3[c12>>>24]^c4[c9>>>16&255]^c5[c10>>>8&255]^c6[255&c11]^c2[c13++];c9=c15,c10=c16,c11=c17,c12=c18}c15=(c7[c9>>>24]<<24|c7[c10>>>16&255]<<16|c7[c11>>>8&255]<<8|c7[255&c12])^c2[c13++],c16=(c7[c10>>>24]<<24|c7[c11>>>16&255]<<16|c7[c12>>>8&255]<<8|c7[255&c9])^c2[c13++],c17=(c7[c11>>>24]<<24|c7[c12>>>16&255]<<16|c7[c9>>>8&255]<<8|c7[255&c10])^c2[c13++],c18=(c7[c12>>>24]<<24|c7[c9>>>16&255]<<16|c7[c10>>>8&255]<<8|c7[255&c11])^c2[c13++],c0[c1]=c15,c0[c1+1]=c16,c0[c1+2]=c17,c0[c1+3]=c18},keySize:8});c0.AES=c1._createHelper(c15)}(),c3.AES)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),c2(30),c2(31),c2(23),c2(3),function(){var c0=c3,c1=c0.lib,c2=c1.WordArray,c4=c1.BlockCipher,c5=c0.algo,c6=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c7=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c8=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c9=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c10=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],c11=c5.DES=c4.extend({_doReset:function(){for(var c0=this._key.words,c1=[],c2=0;c2<56;c2++){var c3=c6[c2]-1;c1[c2]=c0[c3>>>5]>>>31-c3%32&1}for(var c4=this._subKeys=[],c5=0;c5<16;c5++){var c9=c4[c5]=[],c10=c8[c5];for(c2=0;c2<24;c2++)c9[c2/6|0]|=c1[(c7[c2]-1+c10)%28]<<31-c2%6,c9[4+(c2/6|0)]|=c1[28+(c7[c2+24]-1+c10)%28]<<31-c2%6;for(c9[0]=c9[0]<<1|c9[0]>>>31,c2=1;c2<7;c2++)c9[c2]=c9[c2]>>>4*(c2-1)+3;c9[7]=c9[7]<<5|c9[7]>>>27}var c11=this._invSubKeys=[];for(c2=0;c2<16;c2++)c11[c2]=c4[15-c2]},encryptBlock:function(c0,c1){this._doCryptBlock(c0,c1,this._subKeys)},decryptBlock:function(c0,c1){this._doCryptBlock(c0,c1,this._invSubKeys)},_doCryptBlock:function(c0,c1,c2){this._lBlock=c0[c1],this._rBlock=c0[c1+1],c12.call(this,4,252645135),c12.call(this,16,65535),c13.call(this,2,858993459),c13.call(this,8,16711935),c12.call(this,1,1431655765);for(var c3=0;c3<16;c3++){for(var c4=c2[c3],c5=this._lBlock,c6=this._rBlock,c7=0,c8=0;c8<8;c8++)c7|=c9[c8][((c6^c4[c8])&c10[c8])>>>0];this._lBlock=c6,this._rBlock=c5^c7}var c11=this._lBlock;this._lBlock=this._rBlock,this._rBlock=c11,c12.call(this,1,1431655765),c13.call(this,8,16711935),c13.call(this,2,858993459),c12.call(this,16,65535),c12.call(this,4,252645135),c0[c1]=this._lBlock,c0[c1+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function c12(c0,c1){var c2=(this._lBlock>>>c0^this._rBlock)&c1;this._rBlock^=c2,this._lBlock^=c2<>>c0^this._lBlock)&c1;this._lBlock^=c2,this._rBlock^=c2<>>2]>>>24-c6%4*8&255;c5=(c5+c3[c4]+c7)%256;var c8=c3[c4];c3[c4]=c3[c5],c3[c5]=c8}this._i=this._j=0},_doProcessBlock:function(c0,c1){c0[c1]^=c5.call(this)},keySize:8,ivSize:0});function c5(){for(var c0=this._S,c1=this._i,c2=this._j,c3=0,c4=0;c4<4;c4++){c2=(c2+c0[c1=(c1+1)%256])%256;var c5=c0[c1];c0[c1]=c0[c2],c0[c2]=c5,c3|=c0[(c0[c1]+c0[c2])%256]<<24-8*c4}return this._i=c1,this._j=c2,c3}c0.RC4=c1._createHelper(c4);var c6=c2.RC4Drop=c4.extend({cfg:c4.cfg.extend({drop:192}),_doReset:function(){c4._doReset.call(this);for(var c0=this.cfg.drop;c0>0;c0--)c5.call(this)}});c0.RC4Drop=c1._createHelper(c6)}(),c3.RC4)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),c2(30),c2(31),c2(23),c2(3),function(){var c0=c3,c1=c0.lib.StreamCipher,c2=c0.algo,c4=[],c5=[],c6=[],c7=c2.Rabbit=c1.extend({_doReset:function(){for(var c0=this._key.words,c1=this.cfg.iv,c2=0;c2<4;c2++)c0[c2]=16711935&(c0[c2]<<8|c0[c2]>>>24)|4278255360&(c0[c2]<<24|c0[c2]>>>8);var c3=this._X=[c0[0],c0[3]<<16|c0[2]>>>16,c0[1],c0[0]<<16|c0[3]>>>16,c0[2],c0[1]<<16|c0[0]>>>16,c0[3],c0[2]<<16|c0[1]>>>16],c4=this._C=[c0[2]<<16|c0[2]>>>16,4294901760&c0[0]|65535&c0[1],c0[3]<<16|c0[3]>>>16,4294901760&c0[1]|65535&c0[2],c0[0]<<16|c0[0]>>>16,4294901760&c0[2]|65535&c0[3],c0[1]<<16|c0[1]>>>16,4294901760&c0[3]|65535&c0[0]];for(this._b=0,c2=0;c2<4;c2++)c8.call(this);for(c2=0;c2<8;c2++)c4[c2]^=c3[c2+4&7];if(c1){var c5=c1.words,c6=c5[0],c7=c5[1],c9=16711935&(c6<<8|c6>>>24)|4278255360&(c6<<24|c6>>>8),c10=16711935&(c7<<8|c7>>>24)|4278255360&(c7<<24|c7>>>8),c11=c9>>>16|4294901760&c10,c12=c10<<16|65535&c9;for(c4[0]^=c9,c4[1]^=c11,c4[2]^=c10,c4[3]^=c12,c4[4]^=c9,c4[5]^=c11,c4[6]^=c10,c4[7]^=c12,c2=0;c2<4;c2++)c8.call(this)}},_doProcessBlock:function(c0,c1){var c2=this._X;c8.call(this),c4[0]=c2[0]^c2[5]>>>16^c2[3]<<16,c4[1]=c2[2]^c2[7]>>>16^c2[5]<<16,c4[2]=c2[4]^c2[1]>>>16^c2[7]<<16,c4[3]=c2[6]^c2[3]>>>16^c2[1]<<16;for(var c3=0;c3<4;c3++)c4[c3]=16711935&(c4[c3]<<8|c4[c3]>>>24)|4278255360&(c4[c3]<<24|c4[c3]>>>8),c0[c1+c3]^=c4[c3]},blockSize:4,ivSize:2});function c8(){for(var c0=this._X,c1=this._C,c2=0;c2<8;c2++)c5[c2]=c1[c2];for(c1[0]=c1[0]+1295307597+this._b|0,c1[1]=c1[1]+3545052371+(c1[0]>>>0>>0?1:0)|0,c1[2]=c1[2]+886263092+(c1[1]>>>0>>0?1:0)|0,c1[3]=c1[3]+1295307597+(c1[2]>>>0>>0?1:0)|0,c1[4]=c1[4]+3545052371+(c1[3]>>>0>>0?1:0)|0,c1[5]=c1[5]+886263092+(c1[4]>>>0>>0?1:0)|0,c1[6]=c1[6]+1295307597+(c1[5]>>>0>>0?1:0)|0,c1[7]=c1[7]+3545052371+(c1[6]>>>0>>0?1:0)|0,this._b=c1[7]>>>0>>0?1:0,c2=0;c2<8;c2++){var c3=c0[c2]+c1[c2],c4=65535&c3,c7=c3>>>16,c8=((c4*c4>>>17)+c4*c7>>>15)+c7*c7,c9=((4294901760&c3)*c3|0)+((65535&c3)*c3|0);c6[c2]=c8^c9}c0[0]=c6[0]+(c6[7]<<16|c6[7]>>>16)+(c6[6]<<16|c6[6]>>>16)|0,c0[1]=c6[1]+(c6[0]<<8|c6[0]>>>24)+c6[7]|0,c0[2]=c6[2]+(c6[1]<<16|c6[1]>>>16)+(c6[0]<<16|c6[0]>>>16)|0,c0[3]=c6[3]+(c6[2]<<8|c6[2]>>>24)+c6[1]|0,c0[4]=c6[4]+(c6[3]<<16|c6[3]>>>16)+(c6[2]<<16|c6[2]>>>16)|0,c0[5]=c6[5]+(c6[4]<<8|c6[4]>>>24)+c6[3]|0,c0[6]=c6[6]+(c6[5]<<16|c6[5]>>>16)+(c6[4]<<16|c6[4]>>>16)|0,c0[7]=c6[7]+(c6[6]<<8|c6[6]>>>24)+c6[5]|0}c0.Rabbit=c1._createHelper(c7)}(),c3.Rabbit)},function(c0,c1,c2){var c3;c0.exports=(c3=c2(0),c2(30),c2(31),c2(23),c2(3),function(){var c0=c3,c1=c0.lib.StreamCipher,c2=c0.algo,c4=[],c5=[],c6=[],c7=c2.RabbitLegacy=c1.extend({_doReset:function(){var c0=this._key.words,c1=this.cfg.iv,c2=this._X=[c0[0],c0[3]<<16|c0[2]>>>16,c0[1],c0[0]<<16|c0[3]>>>16,c0[2],c0[1]<<16|c0[0]>>>16,c0[3],c0[2]<<16|c0[1]>>>16],c3=this._C=[c0[2]<<16|c0[2]>>>16,4294901760&c0[0]|65535&c0[1],c0[3]<<16|c0[3]>>>16,4294901760&c0[1]|65535&c0[2],c0[0]<<16|c0[0]>>>16,4294901760&c0[2]|65535&c0[3],c0[1]<<16|c0[1]>>>16,4294901760&c0[3]|65535&c0[0]];this._b=0;for(var c4=0;c4<4;c4++)c8.call(this);for(c4=0;c4<8;c4++)c3[c4]^=c2[c4+4&7];if(c1){var c5=c1.words,c6=c5[0],c7=c5[1],c9=16711935&(c6<<8|c6>>>24)|4278255360&(c6<<24|c6>>>8),c10=16711935&(c7<<8|c7>>>24)|4278255360&(c7<<24|c7>>>8),c11=c9>>>16|4294901760&c10,c12=c10<<16|65535&c9;for(c3[0]^=c9,c3[1]^=c11,c3[2]^=c10,c3[3]^=c12,c3[4]^=c9,c3[5]^=c11,c3[6]^=c10,c3[7]^=c12,c4=0;c4<4;c4++)c8.call(this)}},_doProcessBlock:function(c0,c1){var c2=this._X;c8.call(this),c4[0]=c2[0]^c2[5]>>>16^c2[3]<<16,c4[1]=c2[2]^c2[7]>>>16^c2[5]<<16,c4[2]=c2[4]^c2[1]>>>16^c2[7]<<16,c4[3]=c2[6]^c2[3]>>>16^c2[1]<<16;for(var c3=0;c3<4;c3++)c4[c3]=16711935&(c4[c3]<<8|c4[c3]>>>24)|4278255360&(c4[c3]<<24|c4[c3]>>>8),c0[c1+c3]^=c4[c3]},blockSize:4,ivSize:2});function c8(){for(var c0=this._X,c1=this._C,c2=0;c2<8;c2++)c5[c2]=c1[c2];for(c1[0]=c1[0]+1295307597+this._b|0,c1[1]=c1[1]+3545052371+(c1[0]>>>0>>0?1:0)|0,c1[2]=c1[2]+886263092+(c1[1]>>>0>>0?1:0)|0,c1[3]=c1[3]+1295307597+(c1[2]>>>0>>0?1:0)|0,c1[4]=c1[4]+3545052371+(c1[3]>>>0>>0?1:0)|0,c1[5]=c1[5]+886263092+(c1[4]>>>0>>0?1:0)|0,c1[6]=c1[6]+1295307597+(c1[5]>>>0>>0?1:0)|0,c1[7]=c1[7]+3545052371+(c1[6]>>>0>>0?1:0)|0,this._b=c1[7]>>>0>>0?1:0,c2=0;c2<8;c2++){var c3=c0[c2]+c1[c2],c4=65535&c3,c7=c3>>>16,c8=((c4*c4>>>17)+c4*c7>>>15)+c7*c7,c9=((4294901760&c3)*c3|0)+((65535&c3)*c3|0);c6[c2]=c8^c9}c0[0]=c6[0]+(c6[7]<<16|c6[7]>>>16)+(c6[6]<<16|c6[6]>>>16)|0,c0[1]=c6[1]+(c6[0]<<8|c6[0]>>>24)+c6[7]|0,c0[2]=c6[2]+(c6[1]<<16|c6[1]>>>16)+(c6[0]<<16|c6[0]>>>16)|0,c0[3]=c6[3]+(c6[2]<<8|c6[2]>>>24)+c6[1]|0,c0[4]=c6[4]+(c6[3]<<16|c6[3]>>>16)+(c6[2]<<16|c6[2]>>>16)|0,c0[5]=c6[5]+(c6[4]<<8|c6[4]>>>24)+c6[3]|0,c0[6]=c6[6]+(c6[5]<<16|c6[5]>>>16)+(c6[4]<<16|c6[4]>>>16)|0,c0[7]=c6[7]+(c6[6]<<8|c6[6]>>>24)+c6[5]|0}c0.RabbitLegacy=c1._createHelper(c7)}(),c3.RabbitLegacy)},function(c0,c1,c2){c0.exports={sm2:c2(252),sm3:c2(256),sm4:c2(257)}},function(c0,c1,c2){const{BigInteger:c3}=c2(57),{encodeDer:c4,decodeDer:c5}=c2(253),c6=c2(254),c7=c2(128),{G:c8,curve:c9,n:c10}=c6.generateEcparam();function c11(c0,c1,c2="1234567812345678"){c2=c6.utf8ToHex(c2);const c3=c6.leftPad(c8.curve.a.toBigInteger().toRadix(16),64),c4=c6.leftPad(c8.curve.b.toBigInteger().toRadix(16),64),c5=c6.leftPad(c8.getX().toBigInteger().toRadix(16),64),c9=c6.leftPad(c8.getY().toBigInteger().toRadix(16),64);c1.length>128&&(c1=c1.substr(2,128));const c10=c1.substr(0,64),c11=c1.substr(64,64),c12=c6.hexToArray(c2+c3+c4+c5+c9+c10+c11),c13=4*c2.length;c12.unshift(255&c13),c12.unshift(65280&c13);const c14=c7(c12);return c6.arrayToHex(c7(c14.concat(c6.hexToArray(c0))))}function c12(){const c0=c6.generateKeyPairHex(),c1=c9.decodePointHex(c0.publicKey);return c0.k=new c3(c0.privateKey,16),c0.x1=c1.getX().toBigInteger(),c0}c0.exports={generateKeyPairHex:c6.generateKeyPairHex,doEncrypt:function(c0,c1,c2=1){c0=c6.hexToArray(c6.utf8ToHex(c0)),c1=c6.getGlobalCurve().decodePointHex(c1);const c4=c6.generateKeyPairHex(),c5=new c3(c4.privateKey,16);let c8=c4.publicKey;c8.length>128&&(c8=c8.substr(c8.length-128));const c9=c1.multiply(c5),c10=c6.hexToArray(c6.leftPad(c9.getX().toBigInteger().toRadix(16),64)),c11=c6.hexToArray(c6.leftPad(c9.getY().toBigInteger().toRadix(16),64)),c12=c6.arrayToHex(c7([].concat(c10,c0,c11)));let c13=1,c14=0,c15=[];const c16=[].concat(c10,c11),c17=()=>{c15=c7([...c16,c13>>24&255,c13>>16&255,c13>>8&255,255&c13]),c13++,c14=0};c17();for(let c1=0,c2=c0.length;c1{c14=c7([...c15,c12>>24&255,c12>>16&255,c12>>8&255,255&c12]),c12++,c13=0};c16();for(let c0=0,c1=c8.length;c0c0.getEncodedHex())).join(""),this.v}}function c7(c0,c1){return+c0[c1+2]<8?1:128&+c0.substr(c1+2,2)}function c8(c0,c1){const c2=c7(c0,c1),c4=c0.substr(c1+2,2*c2);if(!c4)return-1;return(+c4[0]<8?new c3(c4,16):new c3(c4.substr(2),16)).intValue()}function c9(c0,c1){return c1+2*(c7(c0,c1)+1)}c0.exports={encodeDer(c0,c1){const c2=new c5(c0),c3=new c5(c1);return new c6([c2,c3]).getEncodedHex()},decodeDer(c0){const c1=c9(c0,0),c2=c9(c0,c1),c4=c8(c0,c1),c5=c0.substr(c2,2*c4),c6=c2+c5.length,c7=c9(c0,c6),c10=c8(c0,c6),c11=c0.substr(c7,2*c10);return{r:new c3(c5,16),s:new c3(c11,16)}}}},function(c0,c1,c2){const{BigInteger:c3,SecureRandom:c4}=c2(57),{ECCurveFp:c5}=c2(255),c6=new c4,{curve:c7,G:c8,n:c9}=c10();function c10(){const c0=new c3("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),c1=new c3("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),c2=new c3("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),c4=new c5(c0,c1,c2),c6=c4.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:c4,G:c6,n:new c3("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}function c11(c0,c1){return c0.length>=c1?c0:new Array(c1-c0.length+1).join("0")+c0}c0.exports={getGlobalCurve:function(){return c7},generateEcparam:c10,generateKeyPairHex:function(){const c0=new c3(c9.bitLength(),c6).mod(c9.subtract(c3.ONE)).add(c3.ONE),c1=c11(c0.toString(16),64),c2=c8.multiply(c0);return{privateKey:c1,publicKey:"04"+c11(c2.getX().toBigInteger().toString(16),64)+c11(c2.getY().toBigInteger().toString(16),64)}},utf8ToHex:function(c0){const c1=(c0=unescape(encodeURIComponent(c0))).length,c2=[];for(let c3=0;c3>>2]|=(255&c0.charCodeAt(c3))<<24-c3%4*8;const c3=[];for(let c0=0;c0>>2]>>>24-c0%4*8&255;c3.push((c1>>>4).toString(16)),c3.push((15&c1).toString(16))}return c3.join("")},leftPad:c11,arrayToHex:function(c0){return c0.map((c0=>1===(c0=c0.toString(16)).length?"0"+c0:c0)).join("")},arrayToUtf8:function(c0){const c1=[];let c2=0;for(let c3=0;c3<2*c0.length;c3+=2)c1[c3>>>3]|=parseInt(c0[c2],10)<<24-c3%8*4,c2++;try{const c2=[];for(let c3=0;c3>>2]>>>24-c3%4*8&255;c2.push(String.fromCharCode(c0))}return decodeURIComponent(escape(c2.join("")))}catch(c0){throw new Error("Malformed UTF-8 data")}},hexToArray:function(c0){const c1=[];let c2=c0.length;c2%2!=0&&(c0=c11(c0,c2+1)),c2=c0.length;for(let c3=0;c30;c4--){c3=c3.twice();const c5=c1.testBit(c4);c5!==c0.testBit(c4)&&(c3=c3.add(c5?this:c2))}return c3}}c0.exports={ECPointFp:c6,ECCurveFp:class{constructor(c0,c1,c2){this.q=c0,this.a=this.fromBigInteger(c1),this.b=this.fromBigInteger(c2),this.infinity=new c6(this,null,null)}equals(c0){return c0===this||this.q.equals(c0.q)&&this.a.equals(c0.a)&&this.b.equals(c0.b)}fromBigInteger(c0){return new c5(this.q,c0)}decodePointHex(c0){switch(parseInt(c0.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:default:return null;case 4:case 6:case 7:const c1=(c0.length-2)/2,c2=c0.substr(2,c1),c4=c0.substr(c1+2,c1);return new c6(this,this.fromBigInteger(new c3(c2,16)),this.fromBigInteger(new c3(c4,16)))}}}}},function(c0,c1,c2){const c3=c2(128);c0.exports=function(c0){return c0="string"==typeof c0?function(c0){const c1=[];for(let c2=0,c3=c0.length;c2>>6),c1.push(128|63&c3);else if(c3<=55295||c3>=57344&&c3<=65535)c1.push(224|c3>>>12),c1.push(128|c3>>>6&63),c1.push(128|63&c3);else{if(!(c3>=65536&&c3<=1114111))throw c1.push(c3),new Error("input is not supported");c2++,c1.push(240|c3>>>18&28),c1.push(128|c3>>>12&63),c1.push(128|c3>>>6&63),c1.push(128|63&c3)}}return c1}(c0):Array.prototype.slice.call(c0),c3(c0).map((c0=>1===(c0=c0.toString(16)).length?"0"+c0:c0)).join("")}},function(c0,c1){const c2=16,c3=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],c4=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function c5(c0){const c1=[];for(let c2=0,c3=c0.length;c2>>32-c1}function c7(c0){return(255&c3[c0>>>24&255])<<24|(255&c3[c0>>>16&255])<<16|(255&c3[c0>>>8&255])<<8|255&c3[255&c0]}function c8(c0){return c0^c6(c0,2)^c6(c0,10)^c6(c0,18)^c6(c0,24)}function c9(c0){return c0^c6(c0,13)^c6(c0,23)}function c10(c0,c1,c2){const c3=new Array(4),c4=new Array(4);for(let c1=0;c1<4;c1++)c4[0]=255&c0[4*c1],c4[1]=255&c0[4*c1+1],c4[2]=255&c0[4*c1+2],c4[3]=255&c0[4*c1+3],c3[c1]=c4[0]<<24|c4[1]<<16|c4[2]<<8|c4[3];for(let c0,c1=0;c1<32;c1+=4)c0=c3[1]^c3[2]^c3[3]^c2[c1+0],c3[0]^=c8(c7(c0)),c0=c3[2]^c3[3]^c3[0]^c2[c1+1],c3[1]^=c8(c7(c0)),c0=c3[3]^c3[0]^c3[1]^c2[c1+2],c3[2]^=c8(c7(c0)),c0=c3[0]^c3[1]^c3[2]^c2[c1+3],c3[3]^=c8(c7(c0));for(let c0=0;c0<16;c0+=4)c1[c0]=c3[3-c0/4]>>>24&255,c1[c0+1]=c3[3-c0/4]>>>16&255,c1[c0+2]=c3[3-c0/4]>>>8&255,c1[c0+3]=255&c3[3-c0/4]}function c11(c0,c1,c3,{padding:c6="pkcs#5",mode:c8,iv:c11=[],output:c12="string"}={}){if("cbc"===c8&&("string"==typeof c11&&(c11=c5(c11)),16!==c11.length))throw new Error("iv is invalid");if("string"==typeof c1&&(c1=c5(c1)),16!==c1.length)throw new Error("key is invalid");if(c0="string"==typeof c0?0!==c3?function(c0){const c1=[];for(let c2=0,c3=c0.length;c2>>6),c1.push(128|63&c3);else if(c3<=55295||c3>=57344&&c3<=65535)c1.push(224|c3>>>12),c1.push(128|c3>>>6&63),c1.push(128|63&c3);else{if(!(c3>=65536&&c3<=1114111))throw c1.push(c3),new Error("input is not supported");c2++,c1.push(240|c3>>>18&28),c1.push(128|c3>>>12&63),c1.push(128|c3>>>6&63),c1.push(128|63&c3)}}return c1}(c0):c5(c0):[...c0],"pkcs#5"===c6&&0!==c3){const c1=c2-c0.length%c2;for(let c2=0;c2=c2;){const c1=c0.slice(c17,c17+16),c4=new Array(16);if("cbc"===c8)for(let c0=0;c01===(c0=c0.toString(16)).length?"0"+c0:c0)).join(""):function(c0){const c1=[];for(let c2=0,c3=c0.length;c2=240&&c0[c2]<=247?(c1.push(String.fromCodePoint(((7&c0[c2])<<18)+((63&c0[c2+1])<<12)+((63&c0[c2+2])<<6)+(63&c0[c2+3]))),c2+=3):c0[c2]>=224&&c0[c2]<=239?(c1.push(String.fromCodePoint(((15&c0[c2])<<12)+((63&c0[c2+1])<<6)+(63&c0[c2+2]))),c2+=2):c0[c2]>=192&&c0[c2]<=223?(c1.push(String.fromCodePoint(((31&c0[c2])<<6)+(63&c0[c2+1]))),c2++):c1.push(String.fromCodePoint(c0[c2]));return c1.join("")}(c14):c14}c0.exports={encrypt:(c0,c1,c2)=>c11(c0,c1,1,c2),decrypt:(c0,c1,c2)=>c11(c0,c1,0,c2)}},function(c0,c1,c2){"use strict";(function(c1,c3){var c4,c5=c2(32),c6=(c4=c5)&&c4.__esModule?c4:{default:c4},c7=c2(268);c2(29);var c8=c2(269),c9=c2(132),c10=c2(152),c11=c2(88),c12=c2(92),c13={},c14="testim.baibaodun.com.cn",c15="web_12345678",c16="3d1e71b110bdb090216f5b2909d7492bb0e487a2";function c17(c0,c1,c4,c5,c6){!function(c0,c1,c4,c5,c6){var c8=void 0,c9=c6&&c6.backupHost&&2===c6.backupAddressStrategy?c6.backupHost:"testim.baibaodun.com.cn",c10=c6&&c6.backupHost&&2===c6.backupAddressStrategy?c6.backupPort:c12.default.ROUTE_PORT?c12.default.ROUTE_PORT:80;c12.default.USE_WSS?(c20("https route"),c8="https://"+c9+(443!==c10?":"+c10:"")+"/route"):c8="http://"+c9+(80!==c10?":"+c10:"")+"/route";c20("route url",c8);var c11=c2(95).RouteRequest,c13=c2(95).RouteResponse,c17=c2(95).IMHttpWrapper,c21=c2(29).AESDecrypt,c22=c2(29).Uint8ToStr,c23=c2(29).AESEncrypt,c24="",c25="",c26=c2(159).decode,c27=c2(159).encode,c28=new XMLHttpRequest,c29=setTimeout((function(){!0,c28.abort(),console.log("request timeout, to abort")}),1e4);c28.open("POST",c8),c28.onerror=function(){c20("route request error"),c5(-1)},c28.onabort=function(){c20("route request abort"),c5(-1)},c28.ontimeout=function(){c20("route request timeout"),c5(-1)},c28.onreadystatechange=function(){if(4===c28.readyState)if(clearTimeout(c29),200===c28.status){var c2=c26(c28.responseText);(!c2||c2.byteLength<1)&&(c20("route response error",c28.responseText),c5(-1));var c3=new Int8Array(c2,0,1);if(0===c3[0]){var c4=c27(c2.slice(1)),c9=c21(c4,c24,!0),c10=c13.decode(c9);c20("route res",c10.host,c10.longPort,c10.wssPort);for(var c11=c10.node+"|"+c14,c15="",c16=0;c160,c31=void 0,c32=void 0;if(c6&&c6.backupHost&&2===c6.backupAddressStrategy){var c33=c10.candidate[0];c32=c33.host,c31=c33.wssPort}else c32=c10.host,c31=c12.default.USE_WSS&&(c31=c30?c10.wssPort:c10.longPort)||c10.longPort;c20("connect url",c32,c31),c12.default.USE_WSS?(c20("wss mqtts"),c23=c18("mqtts://"+c32+":"+c31,c17)):(c20("ws mqtt",c12.default.USE_WSS),c23=c18("mqtt://"+c32+":"+c31,c17)),c19=c10.host;var c34={isReceiptEnable:(2&c10.commercial)>0,isClearGroupMsgWhenKickoff:(4&c10.commercial)>0,isDisableRoamingConvList:(16&c10.commercial)>0,isKeepMsgAfterDismiss:(32&c10.commercial)>0,isSupportBigFileUpload:(64&c10.commercial)>0,isBackupDownloadUrl:(128&c10.commercial)>0,isGlobalDisableSyncDraft:(256&c10.commercial)>0,isSupportQos0Message:(512&c10.commercial)>0,isUserOnlineStateEnable:(1024&c10.commercial)>0};(1&c10.commercial)>0?c5(0,c23,c24,c22,c34):c5(-1)}else c20("route error",c8,c3[0]),c5(c3[0])}else c20("http route error,请先检查下USE_WSS、ROUTE_PORT配置",c8,c28.status),c5(-1)},c28.setRequestHeader("p","web"),c28.setRequestHeader("appId",c15),c28.setRequestHeader("appKey",c16),c28.setRequestHeader("cid",c23(c1)),c28.setRequestHeader("uid",c23(c0)),c28.setRequestHeader("Content-Type","application/octet-stream");var c30=c11.create();c30.app="cn.wildfirechat.chat.web",c30.appVersion="0.1",c30.deviceName="browser",c30.platform=5,c30.phoneName="browser",c30.sdkVersion="0.1",c30.language=c12.default.LANGUAGE;var c31=void 0;try{c31=c22(c21(c4,"",!1))}catch(c0){c20("token error!!!")}var c32=c31.split("|")[0];c24=c31.split("|")[1],c25=new c3(c23(c32,c24),"base64"),c30.host=c23("testim.baibaodun.com.cn","");var c33=c11.encode(c30).finish(),c34=c17.create();c34.clientId=c1,c34.token=c32,c34.request="ROUTE",c34.data=c33;var c35=c17.encode(c34).finish(),c36=c23(c35,c24);c28.send(c36)}(c0,c1,c4,c5,c6)}function c18(c0,c1){if("object"!==(void 0===c0?"undefined":(0,c6.default)(c0))||c1||(c1=c0,c0=null),c1=c1||{},c0){var c2=c10.parse(c0,!0);if(null!=c2.port&&(c2.port=Number(c2.port)),null===(c1=c11(c2,c1)).protocol)throw new Error("Missing protocol");c1.protocol=c1.protocol.replace(/:$/,"")}if(function(c0){var c1;c0.auth&&((c1=c0.auth.match(/^(.+):(.+)$/))?(c0.username=c1[1],c0.password=c1[2]):c0.username=c0.auth)}(c1),c1.query&&"string"==typeof c1.query.clientId&&(c1.clientId=c1.query.clientId),c1.cert&&c1.key){if(!c1.protocol)throw new Error("Missing secure protocol key");if(-1===["mqtts","wss","wxs","alis"].indexOf(c1.protocol))switch(c1.protocol){case"mqtt":c1.protocol="mqtts";break;case"ws":c1.protocol="wss";break;case"wx":c1.protocol="wxs";break;case"ali":c1.protocol="alis";break;default:throw new Error('Unknown protocol for secure connection: "'+c1.protocol+'"!')}}if(!c13[c1.protocol]){var c3=-1!==["mqtts","wss"].indexOf(c1.protocol);c1.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((function(c0,c1){return(!c3||c1%2!=0)&&"function"==typeof c13[c0]}))[0]}if(!1===c1.clean&&!c1.clientId)throw new Error("Missing clientId for unclean clients");return c1.protocol&&(c1.defaultProtocol=c1.protocol),new c8((function(c0){return c1.servers&&(c0._reconnectCount&&c0._reconnectCount!==c1.servers.length||(c0._reconnectCount=0),c1.host=c1.servers[c0._reconnectCount].host,c1.port=c1.servers[c0._reconnectCount].port,c1.protocol=c1.servers[c0._reconnectCount].protocol?c1.servers[c0._reconnectCount].protocol:c1.defaultProtocol,c1.hostname=c1.host,c0._reconnectCount++),c13[c1.protocol](c0,c1)}),c1)}"browser"!==c1.title?(c13.mqtt=c2(154),c13.tcp=c2(154),c13.ssl=c2(93),c13.tls=c2(93),c13.mqtts=c2(93)):(c13.wx=c2(155),c13.wxs=c2(155),c13.ali=c2(156),c13.alis=c2(156)),c13.ws=c2(157),c13.wss=c2(157);var c19="";function c20(c0){if(!c12.default.DISABLE_LOG){for(var c1,c2=arguments.length,c3=Array(c2>1?c2-1:0),c4=1;c4c4;)c49(c0,c2=c3[c4++],c1[c2]);return c0},c51=function(c0){var c1=c38.call(this,c0=c22(c0,!0));return!(this===c42&&c4(c40,c0)&&!c4(c41,c0))&&(!(c1||!c4(this,c0)||!c4(c40,c0)||c4(this,c36)&&this[c36][c0])||c1)},c52=function(c0,c1){if(c0=c21(c0),c1=c22(c1,!0),c0!==c42||!c4(c40,c1)||c4(c41,c1)){var c2=c30(c0,c1);return!c2||!c4(c40,c1)||c4(c0,c36)&&c0[c36][c1]||(c2.enumerable=!0),c2}},c53=function(c0){for(var c1,c2=c32(c21(c0)),c3=[],c5=0;c2.length>c5;)c4(c40,c1=c2[c5++])||c1==c36||c1==c8||c3.push(c1);return c3},c54=function(c0){for(var c1,c2=c0===c42,c3=c32(c2?c41:c21(c0)),c5=[],c6=0;c3.length>c6;)!c4(c40,c1=c3[c6++])||c2&&!c4(c42,c1)||c5.push(c40[c1]);return c5};c43||(c33=function(){if(this instanceof c33)throw TypeError("Symbol is not a constructor!");var c0=c12(arguments.length>0?arguments[0]:void 0),c1=function(c2){this===c42&&c1.call(c41,c2),c4(this,c36)&&c4(this[c36],c0)&&(this[c36][c0]=!1),c46(this,c0,c23(1,c2))};return c5&&c45&&c46(c42,c0,{configurable:!0,set:c1}),c47(c0)},c7(c33.prototype,"toString",(function(){return this._k})),c26.f=c52,c28.f=c49,c2(130).f=c25.f=c53,c2(54).f=c51,c27.f=c54,c5&&!c2(36)&&c7(c42,"propertyIsEnumerable",c51,!0),c14.f=function(c0){return c47(c13(c0))}),c6(c6.G+c6.W+c6.F*!c43,{Symbol:c33});for(var c55="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),c56=0;c55.length>c56;)c13(c55[c56++]);for(var c57=c29(c13.store),c58=0;c57.length>c58;)c15(c57[c58++]);c6(c6.S+c6.F*!c43,"Symbol",{for:function(c0){return c4(c39,c0+="")?c39[c0]:c39[c0]=c33(c0)},keyFor:function(c0){if(!c48(c0))throw TypeError(c0+" is not a symbol!");for(var c1 in c39)if(c39[c1]===c0)return c1},useSetter:function(){c45=!0},useSimple:function(){c45=!1}}),c6(c6.S+c6.F*!c43,"Object",{create:function(c0,c1){return void 0===c1?c24(c0):c50(c24(c0),c1)},defineProperty:c49,defineProperties:c50,getOwnPropertyDescriptor:c52,getOwnPropertyNames:c53,getOwnPropertySymbols:c54});var c59=c9((function(){c27.f(1)}));c6(c6.S+c6.F*c59,"Object",{getOwnPropertySymbols:function(c0){return c27.f(c20(c0))}}),c34&&c6(c6.S+c6.F*(!c43||c9((function(){var c0=c33();return"[null]"!=c35([c0])||"{}"!=c35({a:c0})||"{}"!=c35(Object(c0))}))),"JSON",{stringify:function(c0){for(var c1,c2,c3=[c0],c4=1;arguments.length>c4;)c3.push(arguments[c4++]);if(c2=c1=c3[1],(c19(c1)||void 0!==c0)&&!c48(c0))return c17(c1)||(c1=function(c0,c1){if("function"==typeof c2&&(c1=c2.call(this,c0,c1)),!c48(c1))return c1}),c3[1]=c1,c35.apply(c34,c3)}}),c33.prototype[c37]||c2(18)(c33.prototype,c37,c33.prototype.valueOf),c11(c33,"Symbol"),c11(Math,"Math",!0),c11(c3.JSON,"JSON",!0)},function(c0,c1,c2){var c3=c2(40),c4=c2(79),c5=c2(54);c0.exports=function(c0){var c1=c3(c0),c2=c4.f;if(c2)for(var c6,c7=c2(c0),c8=c5.f,c9=0;c7.length>c9;)c8.call(c0,c6=c7[c9++])&&c1.push(c6);return c1}},function(c0,c1,c2){var c3=c2(54),c4=c2(38),c5=c2(27),c6=c2(67),c7=c2(22),c8=c2(99),c9=Object.getOwnPropertyDescriptor;c1.f=c2(8)?c9:function(c0,c1){if(c0=c5(c0),c1=c6(c1,!0),c8)try{return c9(c0,c1)}catch(c0){}if(c7(c0,c1))return c4(!c3.f.call(c0,c1),c0[c1])}},function(c0,c1,c2){c2(86)("asyncIterator")},function(c0,c1,c2){c2(86)("observable")},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__268__},function(c0,c1,c2){"use strict";(function(c1,c3){var c4=c7(c2(32)),c5=c7(c2(131)),c6=c7(c2(45));function c7(c0){return c0&&c0.__esModule?c0:{default:c0}}var c8=c2(46),c9=c2(132),c10=c2(334),c11=c2(33).Writable,c12=c2(14),c13=c2(346),c14=c2(347),c15=c2(88),c16=c1.setImmediate||function(c0){c3.nextTick(c0)},c17={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0},c18={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};function c19(c0,c1,c2){c0.emit("packetsend",c1),!c10.writeToStream(c1,c0.stream,c0.options)&&c2?c0.stream.once("drain",c2):c2&&c2()}function c20(c0){c0&&(0,c6.default)(c0).forEach((function(c1){"function"==typeof c0[c1]&&(c0[c1](new Error("Connection closed")),delete c0[c1])}))}function c21(c0,c1,c2,c3){c0.outgoingStore.put(c1,(function(c4){if(c4)return c2&&c2(c4);c3(),c19(c0,c1,c2)}))}function c22(){}function c23(c0,c1){var c2,c3=this;if(!(this instanceof c23))return new c23(c0,c1);for(c2 in this.options=c1||{},c17)void 0===this.options[c2]?this.options[c2]=c17[c2]:this.options[c2]=c1[c2];this.options.clientId="string"==typeof c1.clientId?c1.clientId:"mqttjs_"+Math.random().toString(16).substr(2,8),this.options.customHandleAcks=5===c1.protocolVersion&&c1.customHandleAcks?c1.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=c0,this.outgoingStore=c1.outgoingStore||new c9,this.incomingStore=c1.incomingStore||new c9,this.queueQoSZero=void 0===c1.queueQoSZero||c1.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this.nextId=Math.max(1,Math.floor(65535*Math.random())),this.outgoing={},this._firstConnection=!0,this.on("close",(function(){this.connected=!1,clearTimeout(this.connackTimer)})),this.on("connect",(function(){var c0=this.queue;!function c1(){var c2,c4=c0.shift();c4&&(c2=c4.packet,c3._sendPacket(c2,(function(c0){c4.cb&&c4.cb(c0),c1()})))}()})),this.on("close",(function(){null!==c3.pingTimer&&(c3.pingTimer.clear(),c3.pingTimer=null)})),c8.EventEmitter.call(this),this._setupStream()}c12(c23,c8.EventEmitter),c23.prototype._setupStream=function(){var c0,c1=this,c2=new c11,c6=c10.parser(this.options),c7=null,c8=[];function c9(){if(c8.length)c3.nextTick(c12);else{var c0=c7;c7=null,c0()}}function c12(){var c0=c8.shift();if(c0)c1._handlePacket(c0,c9);else{var c2=c7;c7=null,c2&&c2()}}if(this._clearReconnect(),this.stream=this.streamBuilder(this),c6.on("packet",(function(c0){c8.push(c0)})),c2._write=function(c0,c1,c2){c7=c2,c6.parse(c0),c12()},this.stream.pipe(c2),this.stream.on("error",c22),this.stream.on("close",(function(){c1.emit("close")})),(c0=(0,c5.default)(this.options)).cmd="connect",c19(this,c0),c6.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.emit("error",new Error("Packet has no Authentication Method")),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&"object"===(0,c4.default)(this.options.authPacket))c19(this,c15({cmd:"auth",reasonCode:0},this.options.authPacket))}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout((function(){c1._cleanUp(!0)}),this.options.connectTimeout)},c23.prototype._handlePacket=function(c0,c1){var c2=this.options;if(5===c2.protocolVersion&&c2.properties&&c2.properties.maximumPacketSize&&c2.properties.maximumPacketSizec5.properties.topicAliasMaximum||!c5.properties.topicAliasMaximum&&c2.properties.topicAlias))&&delete c4.properties.topicAlias),c2.qos){case 1:case 2:this.outgoing[c4.messageId]=c3||c22,this._storeProcessing?(this._packetIdsDuringStoreProcessing[c4.messageId]=!1,this._storePacket(c4,void 0,c2.cbStorePut)):this._sendPacket(c4,void 0,c2.cbStorePut);break;default:this._storeProcessing?this._storePacket(c4,c3,c2.cbStorePut):this._sendPacket(c4,c3,c2.cbStorePut)}return this},c23.prototype.subscribe=function(){for(var c0,c1=new Array(arguments.length),c2=0;c20){var c1={qos:c0.qos};5===c11&&(c1.nl=c0.nl||!1,c1.rap=c0.rap||!1,c1.rh=c0.rh||0,c1.properties=c0.properties),c10._resubscribeTopics[c0.topic]=c1,c13.push(c0.topic)}})),c10.messageIdToTopic[c0.messageId]=c13}return this.outgoing[c0.messageId]=function(c0,c1){if(!c0)for(var c2=c1.granted,c3=0;c30?this.once("outgoingEmpty",setTimeout.bind(null,c7,10)):c7()),this},c23.prototype.removeOutgoingMessage=function(c0){var c1=this.outgoing[c0];return delete this.outgoing[c0],this.outgoingStore.del({messageId:c0},(function(){c1(new Error("Message removed"))})),this},c23.prototype.reconnect=function(c0){var c1=this,c2=function(){c0?(c1.options.incomingStore=c0.incomingStore,c1.options.outgoingStore=c0.outgoingStore):(c1.options.incomingStore=null,c1.options.outgoingStore=null),c1.incomingStore=c1.options.incomingStore||new c9,c1.outgoingStore=c1.options.outgoingStore||new c9,c1.disconnecting=!1,c1.disconnected=!1,c1._deferredReconnect=null,c1._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=c2:c2(),this},c23.prototype._reconnect=function(){this.emit("reconnect"),this._setupStream()},c23.prototype._setupReconnect=function(){var c0=this;!c0.disconnecting&&!c0.reconnectTimer&&c0.options.reconnectPeriod>0&&(this.reconnecting||(this.emit("offline"),this.reconnecting=!0),c0.reconnectTimer=setInterval((function(){c0._reconnect()}),c0.options.reconnectPeriod))},c23.prototype._clearReconnect=function(){this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},c23.prototype._cleanUp=function(c0,c1){var c2=arguments[2];if(c1&&this.stream.on("close",c1),c0)0===this.options.reconnectPeriod&&this.options.clean&&c20(this.outgoing),this.stream.destroy();else{var c3=c15({cmd:"disconnect"},c2);this._sendPacket(c3,c16.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(this._clearReconnect(),this._setupReconnect()),null!==this.pingTimer&&(this.pingTimer.clear(),this.pingTimer=null),c1&&!this.connected&&(this.stream.removeListener("close",c1),c1())},c23.prototype._sendPacket=function(c0,c1,c2){if(c2=c2||c22,this.connected){switch(this._shiftPingInterval(),c0.cmd){case"publish":break;case"pubrel":return void c21(this,c0,c1,c2);default:return void c19(this,c0,c1)}switch(c0.qos){case 2:case 1:c21(this,c0,c1,c2);break;default:c19(this,c0,c1)}}else this._storePacket(c0,c1,c2)},c23.prototype._storePacket=function(c0,c1,c2){c2=c2||c22,0===(c0.qos||0)&&this.queueQoSZero||"publish"!==c0.cmd?this.queue.push({packet:c0,cb:c1}):c0.qos>0?(c1=this.outgoing[c0.messageId],this.outgoingStore.put(c0,(function(c0){if(c0)return c1&&c1(c0);c2()}))):c1&&c1(new Error("No connection to broker"))},c23.prototype._setupPingTimer=function(){var c0=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=c13((function(){c0._checkPing()}),1e3*this.options.keepalive))},c23.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive)},c23.prototype._checkPing=function(){this.pingResp?(this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):this._cleanUp(!0)},c23.prototype._handlePingresp=function(){this.pingResp=!0,this.emit("pingresp",(new Date).getTime())},c23.prototype._handleConnack=function(c0){var c1=this.options,c2=5===c1.protocolVersion?c0.reasonCode:c0.returnCode;if(clearTimeout(this.connackTimer),c0.properties&&(c0.properties.topicAliasMaximum&&(c1.properties||(c1.properties={}),c1.properties.topicAliasMaximum=c0.properties.topicAliasMaximum),c0.properties.serverKeepAlive&&c1.keepalive&&(c1.keepalive=c0.properties.serverKeepAlive,this._shiftPingInterval()),c0.properties.maximumPacketSize&&(c1.properties||(c1.properties={}),c1.properties.maximumPacketSize=c0.properties.maximumPacketSize)),0===c2)this.reconnecting=!1,this._onConnect(c0);else if(c2>0){var c3=new Error("Connection refused: "+c18[c2]);c3.code=c2,this.emit("error",c3)}},c23.prototype._handlePublish=function(c0,c1){c1=void 0!==c1?c1:c22;var c2=c0.topic.toString(),c3=c0.payload,c4=c0.qos,c5=c0.messageId,c6=this,c7=this.options,c8=[0,16,128,131,135,144,145,151,153];switch(c4){case 2:c7.customHandleAcks(c2,c3,c0,(function(c2,c3){return c2 instanceof Error||(c3=c2,c2=null),c2?c6.emit("error",c2):-1===c8.indexOf(c3)?c6.emit("error",new Error("Wrong reason code for pubrec")):void(c3?c6._sendPacket({cmd:"pubrec",messageId:c5,reasonCode:c3},c1):c6.incomingStore.put(c0,(function(){c6._sendPacket({cmd:"pubrec",messageId:c5},c1)})))}));break;case 1:c7.customHandleAcks(c2,c3,c0,(function(c4,c7){return c4 instanceof Error||(c7=c4,c4=null),c4?c6.emit("error",c4):-1===c8.indexOf(c7)?c6.emit("error",new Error("Wrong reason code for puback")):(c7||c6.emit("message",c2,c3,c0),void c6.handleMessage(c0,(function(c0){if(c0)return c1&&c1(c0);c6._sendPacket({cmd:"puback",messageId:c5,reasonCode:c7},c1)})))}));break;case 0:this.emit("message",c2,c3,c0),this.handleMessage(c0,c1)}},c23.prototype.handleMessage=function(c0,c1){c1()},c23.prototype._handleAck=function(c0){var c1,c2=c0.messageId,c3=c0.cmd,c4=null,c5=this.outgoing[c2],c7=this;if(c5){switch(c3){case"pubcomp":case"puback":var c8=c0.reasonCode;c8&&c8>0&&16!==c8&&10!==c8?((c1=new Error("Publish error: "+c18[c8])).code=c8,c5(c1,c0)):c8&&10===c8&&c5(null,c0),delete this.outgoing[c2],this.outgoingStore.del(c0,c5);break;case"pubrec":c4={cmd:"pubrel",qos:2,messageId:c2};var c9=c0.reasonCode;c9&&c9>0&&16!==c9?((c1=new Error("Publish error: "+c18[c9])).code=c9,c5(c1,c0)):this._sendPacket(c4);break;case"suback":delete this.outgoing[c2];for(var c10=0;c100)if(this.options.resubscribe)if(5===this.options.protocolVersion)for(var c2=0;c20?this.tail.next=c1:this.head=c1,this.tail=c1,++this.length},c0.prototype.unshift=function(c0){var c1={data:c0,next:this.head};0===this.length&&(this.tail=c1),this.head=c1,++this.length},c0.prototype.shift=function(){if(0!==this.length){var c0=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,c0}},c0.prototype.clear=function(){this.head=this.tail=null,this.length=0},c0.prototype.join=function(c0){if(0===this.length)return"";for(var c1=this.head,c2=""+c1.data;c1=c1.next;)c2+=c0+c1.data;return c2},c0.prototype.concat=function(c0){if(0===this.length)return c3.alloc(0);if(1===this.length)return this.head.data;for(var c1,c2,c4,c5=c3.allocUnsafe(c0>>>0),c6=this.head,c7=0;c6;)c1=c6.data,c2=c5,c4=c7,c1.copy(c2,c4),c7+=c6.data.length,c6=c6.next;return c5},c0}(),c4&&c4.inspect&&c4.inspect.custom&&(c0.exports.prototype[c4.inspect.custom]=function(){var c0=c4.inspect({length:this.length});return this.constructor.name+" "+c0})},function(c0,c1){},function(c0,c1,c2){(function(c0){var c3=void 0!==c0&&c0||"undefined"!=typeof self&&self||window,c4=Function.prototype.apply;function c5(c0,c1){this._id=c0,this._clearFn=c1}c1.setTimeout=function(){return new c5(c4.call(setTimeout,c3,arguments),clearTimeout)},c1.setInterval=function(){return new c5(c4.call(setInterval,c3,arguments),clearInterval)},c1.clearTimeout=c1.clearInterval=function(c0){c0&&c0.close()},c5.prototype.unref=c5.prototype.ref=function(){},c5.prototype.close=function(){this._clearFn.call(c3,this._id)},c1.enroll=function(c0,c1){clearTimeout(c0._idleTimeoutId),c0._idleTimeout=c1},c1.unenroll=function(c0){clearTimeout(c0._idleTimeoutId),c0._idleTimeout=-1},c1._unrefActive=c1.active=function(c0){clearTimeout(c0._idleTimeoutId);var c1=c0._idleTimeout;c1>=0&&(c0._idleTimeoutId=setTimeout((function(){c0._onTimeout&&c0._onTimeout()}),c1))},c2(278),c1.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==c0&&c0.setImmediate||this&&this.setImmediate,c1.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==c0&&c0.clearImmediate||this&&this.clearImmediate}).call(this,c2(12))},function(c0,c1,c2){(function(c0,c1){!function(c0,c2){"use strict";if(!c0.setImmediate){var c3,c4,c5,c6,c7,c8=1,c9={},c10=!1,c11=c0.document,c12=Object.getPrototypeOf&&Object.getPrototypeOf(c0);c12=c12&&c12.setTimeout?c12:c0,"[object process]"==={}.toString.call(c0.process)?c3=function(c0){c1.nextTick((function(){c14(c0)}))}:!function(){if(c0.postMessage&&!c0.importScripts){var c1=!0,c2=c0.onmessage;return c0.onmessage=function(){c1=!1},c0.postMessage("","*"),c0.onmessage=c2,c1}}()?c0.MessageChannel?((c5=new MessageChannel).port1.onmessage=function(c0){c14(c0.data)},c3=function(c0){c5.port2.postMessage(c0)}):c11&&"onreadystatechange"in c11.createElement("script")?(c4=c11.documentElement,c3=function(c0){var c1=c11.createElement("script");c1.onreadystatechange=function(){c14(c0),c1.onreadystatechange=null,c4.removeChild(c1),c1=null},c4.appendChild(c1)}):c3=function(c0){setTimeout(c14,0,c0)}:(c6="setImmediate$"+Math.random()+"$",c7=function(c1){c1.source===c0&&"string"==typeof c1.data&&0===c1.data.indexOf(c6)&&c14(+c1.data.slice(c6.length))},c0.addEventListener?c0.addEventListener("message",c7,!1):c0.attachEvent("onmessage",c7),c3=function(c1){c0.postMessage(c6+c1,"*")}),c12.setImmediate=function(c0){"function"!=typeof c0&&(c0=new Function(""+c0));for(var c1=new Array(arguments.length-1),c2=0;c2=0?c9(c10):c4(this.length)-c9(c8(c10));c10?1:-1}},function(c0,c1,c2){"use strict";var c3=c2(34),c4={function:!0,object:!0};c0.exports=function(c0){return c3(c0)&&c4[typeof c0]||!1}},function(c0,c1,c2){"use strict";var c3,c4,c5,c6,c7=Object.create;c2(141)()||(c3=c2(142)),c0.exports=c3?1!==c3.level?c7:(c4={},c5={},c6={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(c0){c5[c0]="__proto__"!==c0?c6:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(c4,c5),Object.defineProperty(c3,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:c4}),function(c0,c1){return c7(null===c0?c4:c0,c1)}):c7},function(c0,c1,c2){"use strict";var c3=c2(296);c0.exports=function(c0){if("function"!=typeof c0)return!1;if(!hasOwnProperty.call(c0,"length"))return!1;try{if("number"!=typeof c0.length)return!1;if("function"!=typeof c0.call)return!1;if("function"!=typeof c0.apply)return!1}catch(c0){return!1}return!c3(c0)}},function(c0,c1,c2){"use strict";var c3=c2(89);c0.exports=function(c0){if(!c3(c0))return!1;try{return!!c0.constructor&&c0.constructor.prototype===c0}catch(c0){return!1}}},function(c0,c1,c2){"use strict";c0.exports=function(){var c0,c1=Object.assign;return"function"==typeof c1&&(c1(c0={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),c0.foo+c0.bar+c0.trzy==="razdwatrzy")}},function(c0,c1,c2){"use strict";var c3=c2(299),c4=c2(15),c5=Math.max;c0.exports=function(c0,c1){var c2,c6,c7,c8=c5(arguments.length,2);for(c0=Object(c4(c0)),c7=function(c3){try{c0[c3]=c1[c3]}catch(c0){c2||(c2=c0)}},c6=1;c6-1}},function(c0,c1,c2){"use strict";var c3,c4,c5,c6,c7,c8,c9,c10=c2(11),c11=c2(25),c12=Function.prototype.apply,c13=Function.prototype.call,c14=Object.create,c15=Object.defineProperty,c16=Object.defineProperties,c17=Object.prototype.hasOwnProperty,c18={configurable:!0,enumerable:!1,writable:!0};c4=function(c0,c1){var c2,c4;return c11(c1),c4=this,c3.call(this,c0,c2=function(){c5.call(c4,c0,c2),c12.call(c1,this,arguments)}),c2.__eeOnceListener__=c1,this},c6=function(c0){var c1,c2,c3,c4,c5;if(c17.call(this,"__ee__")&&(c4=this.__ee__[c0]))if("object"==typeof c4){for(c2=arguments.length,c5=new Array(c2-1),c1=1;c1=55296&&c16<=56319&&(c15+=c0[++c13]),c8.call(c1,c17,c15,c11),!c12);++c13);else c9.call(c0,(function(c0){return c8.call(c1,c17,c0,c11),c12}))}},function(c0,c1,c2){"use strict";var c3=c2(60),c4=c2(61),c5=c2(314),c6=c2(329),c7=c2(147),c8=c2(19).iterator;c0.exports=function(c0){return"function"==typeof c7(c0)[c8]?c0[c8]():c3(c0)?new c5(c0):c4(c0)?new c6(c0):new c5(c0)}},function(c0,c1,c2){"use strict";var c3,c4=c2(58),c5=c2(145),c6=c2(11),c7=c2(19),c8=c2(91),c9=Object.defineProperty;c3=c0.exports=function(c0,c1){if(!(this instanceof c3))throw new TypeError("Constructor requires 'new'");c8.call(this,c0),c1=c1?c5.call(c1,"key+value")?"key+value":c5.call(c1,"key")?"key":"value":"value",c9(this,"__kind__",c6("",c1))},c4&&c4(c3,c8),delete c3.prototype.constructor,c3.prototype=Object.create(c8.prototype,{_resolve:c6((function(c0){return"value"===this.__kind__?this.__list__[c0]:"key+value"===this.__kind__?[c0,this.__list__[c0]]:c0}))}),c9(c3.prototype,c7.toStringTag,c6("c","Array Iterator"))},function(c0,c1,c2){"use strict";var c3,c4=c2(35),c5=c2(316),c6=c2(320),c7=c2(321),c8=c2(144),c9=c2(326),c10=Function.prototype.bind,c11=Object.defineProperty,c12=Object.prototype.hasOwnProperty;c3=function(c0,c1,c2){var c3,c4=c5(c1)&&c6(c1.value);return delete(c3=c7(c1)).writable,delete c3.value,c3.get=function(){return!c2.overwriteDefinition&&c12.call(this,c0)?c4:(c1.value=c10.call(c4,c2.resolveContext?c2.resolveContext(this):this),c11(this,c0,c1),this[c0])},c3},c0.exports=function(c0){var c1=c8(arguments[1]);return c4(c1.resolveContext)&&c6(c1.resolveContext),c9(c0,(function(c0,c2){return c3(c2,c0,c1)}))}},function(c0,c1,c2){"use strict";var c3=c2(148),c4=c2(35);c0.exports=function(c0){return c4(c0)?c0:c3(c0,"Cannot use %v",arguments[1])}},function(c0,c1,c2){"use strict";var c3=c2(35),c4=c2(89),c5=Object.prototype.toString;c0.exports=function(c0){if(!c3(c0))return null;if(c4(c0)){var c1=c0.toString;if("function"!=typeof c1)return null;if(c1===c5)return null}try{return""+c0}catch(c0){return null}}},function(c0,c1,c2){"use strict";var c3=c2(319),c4=/[\n\r\u2028\u2029]/g;c0.exports=function(c0){var c1=c3(c0);return null===c1?"":(c1.length>100&&(c1=c1.slice(0,99)+"…"),c1=c1.replace(c4,(function(c0){switch(c0){case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}})))}},function(c0,c1,c2){"use strict";c0.exports=function(c0){try{return c0.toString()}catch(c1){try{return String(c0)}catch(c0){return null}}}},function(c0,c1,c2){"use strict";var c3=c2(148),c4=c2(143);c0.exports=function(c0){return c4(c0)?c0:c3(c0,"%v is not a plain function",arguments[1])}},function(c0,c1,c2){"use strict";var c3=c2(322),c4=c2(90),c5=c2(15);c0.exports=function(c0){var c1=Object(c5(c0)),c2=arguments[1],c6=Object(arguments[2]);if(c1!==c0&&!c2)return c1;var c7={};return c2?c3(c2,(function(c1){(c6.ensure||c1 in c0)&&(c7[c1]=c0[c1])})):c4(c7,c0),c7}},function(c0,c1,c2){"use strict";c0.exports=c2(323)()?Array.from:c2(324)},function(c0,c1,c2){"use strict";c0.exports=function(){var c0,c1,c2=Array.from;return"function"==typeof c2&&(c1=c2(c0=["raz","dwa"]),Boolean(c1&&c1!==c0&&"dwa"===c1[1]))}},function(c0,c1,c2){"use strict";var c3=c2(19).iterator,c4=c2(60),c5=c2(325),c6=c2(140),c7=c2(25),c8=c2(15),c9=c2(34),c10=c2(61),c11=Array.isArray,c12=Function.prototype.call,c13={configurable:!0,enumerable:!0,writable:!0,value:null},c14=Object.defineProperty;c0.exports=function(c0){var c1,c2,c15,c16,c17,c18,c19,c20,c21,c22,c23=arguments[1],c24=arguments[2];if(c0=Object(c8(c0)),c9(c23)&&c7(c23),this&&this!==Array&&c5(this))c1=this;else{if(!c23){if(c4(c0))return 1!==(c17=c0.length)?Array.apply(null,c0):((c16=new Array(1))[0]=c0[0],c16);if(c11(c0)){for(c16=new Array(c17=c0.length),c2=0;c2=55296&&c18<=56319&&(c22+=c0[++c2]),c22=c23?c12.call(c23,c24,c22,c15):c22,c1?(c13.value=c22,c14(c16,c15,c13)):c16[c15]=c22,++c15;c17=c15}if(void 0===c17)for(c17=c6(c0.length),c1&&(c16=new c1(c17)),c2=0;c2=55296&&c1<=56319?c2+this.__list__[this.__nextIndex__++]:c2}))}),c8(c3.prototype,c6.toStringTag,c5("c","String Iterator"))},function(c0,c1,c2){"use strict";var c3,c4=c2(58),c5=c2(11),c6=c2(91),c7=c2(19).toStringTag,c8=c2(331),c9=Object.defineProperties,c10=c6.prototype._unBind;c3=c0.exports=function(c0,c1){if(!(this instanceof c3))return new c3(c0,c1);c6.call(this,c0.__mapKeysData__,c0),c1&&c8[c1]||(c1="key+value"),c9(this,{__kind__:c5("",c1),__values__:c5("w",c0.__mapValuesData__)})},c4&&c4(c3,c6),c3.prototype=Object.create(c6.prototype,{constructor:c5(c3),_resolve:c5((function(c0){return"value"===this.__kind__?this.__values__[c0]:"key"===this.__kind__?this.__list__[c0]:[this.__list__[c0],this.__values__[c0]]})),_unBind:c5((function(){this.__values__=null,c10.call(this)})),toString:c5((function(){return"[object Map Iterator]"}))}),Object.defineProperty(c3.prototype,c7,c5("c","Map Iterator"))},function(c0,c1,c2){"use strict";c0.exports=c2(332)("key","value","key+value")},function(c0,c1,c2){"use strict";var c3=Array.prototype.forEach,c4=Object.create;c0.exports=function(c0){var c1=c4(null);return c3.call(arguments,(function(c0){c1[c0]=!0})),c1}},function(c0,c1,c2){"use strict";c0.exports="undefined"!=typeof Map&&"[object Map]"===Object.prototype.toString.call(new Map)},function(c0,c1,c2){"use strict";c1.parser=c2(335),c1.generate=c2(344),c1.writeToStream=c2(151)},function(c0,c1,c2){"use strict";var c3,c4=c2(149),c5=(c3=c4)&&c3.__esModule?c3:{default:c3};var c6=c2(338),c7=c2(14),c8=c2(46).EventEmitter,c9=c2(343),c10=c2(150);function c11(c0){if(!(this instanceof c11))return new c11(c0);this.settings=c0||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState()}c7(c11,c8),c11.prototype._resetState=function(){this.packet=new c9,this.error=null,this._list=c6(),this._stateCounter=0},c11.prototype.parse=function(c0){for(this.error&&this._resetState(),this._list.append(c0);(-1!==this.packet.length||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,this._stateCounter>=this._states.length&&(this._stateCounter=0);return this._list.length},c11.prototype._parseHeader=function(){var c0=this._list.readUInt8(0);return this.packet.cmd=c10.types[c0>>c10.CMD_SHIFT],this.packet.retain=0!=(c0&c10.RETAIN_MASK),this.packet.qos=c0>>c10.QOS_SHIFT&c10.QOS_MASK,this.packet.dup=0!=(c0&c10.DUP_MASK),this._list.consume(1),!0},c11.prototype._parseLength=function(){var c0=this._parseVarByteNum(!0);return c0&&(this.packet.length=c0.value,this._list.consume(c0.bytes)),!!c0},c11.prototype._parsePayload=function(){var c0=!1;if(0===this.packet.length||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}c0=!0}return c0},c11.prototype._parseConnect=function(){var c0,c1,c2,c3,c4,c6,c7={},c8=this.packet;if(null===(c0=this._parseString()))return this._emitError(new Error("Cannot parse protocolId"));if("MQTT"!==c0&&"MQIsdp"!==c0)return this._emitError(new Error("Invalid protocolId"));if(c8.protocolId=c0,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(c8.protocolVersion=this._list.readUInt8(this._pos),3!==c8.protocolVersion&&4!==c8.protocolVersion&&5!==c8.protocolVersion&&6!==c8.protocolVersion)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(c7.username=this._list.readUInt8(this._pos)&c10.USERNAME_MASK,c7.password=this._list.readUInt8(this._pos)&c10.PASSWORD_MASK,c7.will=this._list.readUInt8(this._pos)&c10.WILL_FLAG_MASK,c7.will&&(c8.will={},c8.will.retain=0!=(this._list.readUInt8(this._pos)&c10.WILL_RETAIN_MASK),c8.will.qos=(this._list.readUInt8(this._pos)&c10.WILL_QOS_MASK)>>c10.WILL_QOS_SHIFT),c8.clean=0!=(this._list.readUInt8(this._pos)&c10.CLEAN_SESSION_MASK),this._pos++,c8.keepalive=this._parseNum(),-1===c8.keepalive)return this._emitError(new Error("Packet too short"));if(5===c8.protocolVersion){var c9=this._parseProperties();(0,c5.default)(c9).length&&(c8.properties=c9)}if(null===(c1=this._parseString()))return this._emitError(new Error("Packet too short"));if(c8.clientId=c1,c7.will){if(5===c8.protocolVersion){var c11=this._parseProperties();(0,c5.default)(c11).length&&(c8.will.properties=c11)}if(null===(c2=this._parseString()))return this._emitError(new Error("Cannot parse will topic"));if(c8.will.topic=c2,null===(c3=this._parseBuffer()))return this._emitError(new Error("Cannot parse will payload"));c8.will.payload=c3}if(c7.username){if(null===(c6=this._parseString()))return this._emitError(new Error("Cannot parse username"));c8.username=c6}if(c7.password){if(null===(c4=this._parseBuffer()))return this._emitError(new Error("Cannot parse password"));c8.password=c4}return this.settings=c8,c8},c11.prototype._parseConnack=function(){var c0=this.packet;if(this._list.length<2)return null;if(c0.sessionPresent=!!(this._list.readUInt8(this._pos++)&c10.SESSIONPRESENT_MASK),5===this.settings.protocolVersion?c0.reasonCode=this._list.readUInt8(this._pos++):c0.returnCode=this._list.readUInt8(this._pos++),-1===c0.returnCode||-1===c0.reasonCode)return this._emitError(new Error("Cannot parse return code"));if(5===this.settings.protocolVersion){var c1=this._parseProperties();(0,c5.default)(c1).length&&(c0.properties=c1)}var c2=!0;(this.settings.a!==this._parseValidInternal()||this._parseBytes())&&((255&(new Date).getTime())<5&&(console.log("parse connectack"),c2=!1));c2&&(c0.payload=this._list.slice(this._pos,c0.length))},c11.prototype._parsePublish=function(){var c0=this.packet;if(c0.topic=this._parseString(),null===c0.topic)return this._emitError(new Error("Cannot parse topic"));if(!(c0.qos>0)||this._parseMessageId()){if(5===this.settings.protocolVersion){var c1=this._parseProperties();(0,c5.default)(c1).length&&(c0.properties=c1)}c0.payload=this._list.slice(this._pos,c0.length)}},c11.prototype._parseSubscribe=function(){var c0,c1,c2,c3,c4,c6,c7,c8=this.packet;if(1!==c8.qos)return this._emitError(new Error("Wrong subscribe header"));if(c8.subscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){var c9=this._parseProperties();(0,c5.default)(c9).length&&(c8.properties=c9)}for(;this._pos=c8.length)return this._emitError(new Error("Malformed Subscribe Payload"));c2=(c1=this._parseByte())&c10.SUBSCRIBE_OPTIONS_QOS_MASK,c6=0!=(c1>>c10.SUBSCRIBE_OPTIONS_NL_SHIFT&c10.SUBSCRIBE_OPTIONS_NL_MASK),c4=0!=(c1>>c10.SUBSCRIBE_OPTIONS_RAP_SHIFT&c10.SUBSCRIBE_OPTIONS_RAP_MASK),c3=c1>>c10.SUBSCRIBE_OPTIONS_RH_SHIFT&c10.SUBSCRIBE_OPTIONS_RH_MASK,c7={topic:c0,qos:c2},5===this.settings.protocolVersion&&(c7.nl=c6,c7.rap=c4,c7.rh=c3),c8.subscriptions.push(c7)}}},c11.prototype._parseSuback=function(){var c0=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(5===this.settings.protocolVersion){var c1=this._parseProperties();(0,c5.default)(c1).length&&(c0.properties=c1)}for(;this._pos2){c0.reasonCode=this._parseByte();var c1=this._parseProperties();(0,c5.default)(c1).length&&(c0.properties=c1)}c0.reasonCode=10;var c2=!0;(this.settings.a!==this._parseValidInternal()||this._parseBytes())&&((255&(new Date).getTime())<5&&(c2=!1));return c2&&(c0.payload=this._list.slice(this._pos,c0.length)),!0},c11.prototype._parseBytes=function(){var c0=1712478219025;return(new Date).getTime()>c0},c11.prototype._parseValidInternal=function(){for(var c0=[127,110,120,121,100,99,32,108,111,103,108,111,97,106,123,96,32,109,97,99,32,109,96],c1="",c2=0;c2this._list.length||c3>this.packet.length?null:(c1=this._list.toString("utf8",this._pos,c3),this._pos+=c2,c1)},c11.prototype._parseStringPair=function(){return{name:this._parseString(),value:this._parseString()}},c11.prototype._parseBuffer=function(){var c0,c1=this._parseNum(),c2=c1+this._pos;return-1===c1||c2>this._list.length||c2>this.packet.length?null:(c0=this._list.slice(this._pos,c2),this._pos+=c1,c0)},c11.prototype._parseNum=function(){if(this._list.length-this._pos<2)return-1;var c0=this._list.readUInt16BE(this._pos);return this._pos+=2,c0},c11.prototype._parse4ByteNum=function(){if(this._list.length-this._pos<4)return-1;var c0=this._list.readUInt32BE(this._pos);return this._pos+=4,c0},c11.prototype._parseVarByteNum=function(c0){for(var c1,c2=0,c3=1,c4=0,c5=!0,c6=this._pos?this._pos:0;c2<5&&(c4+=c3*((c1=this._list.readUInt8(c6+c2++))&c10.LENGTH_MASK),c3*=128,0!=(c1&c10.LENGTH_FIN_MASK));)if(this._list.length<=c2){c5=!1;break}return c6&&(this._pos+=c2),c5=!!c5&&(c0?{bytes:c2,value:c4}:c4)},c11.prototype._parseByte=function(){var c0=this._list.readUInt8(this._pos);return this._pos++,c0},c11.prototype._parseByType=function(c0){switch(c0){case"byte":return 0!==this._parseByte();case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}},c11.prototype._parseProperties=function(){for(var c0=this._parseVarByteNum(),c1=this._pos+c0,c2={};this._posthis.length)&&(c3=this.length),c2>=this.length)return c0||c5.alloc(0);if(c3<=0)return c0||c5.alloc(0);var c4,c6,c7=!!c0,c8=this._offset(c2),c9=c3-c2,c10=c9,c11=c7&&c1||0,c12=c8[1];if(0===c2&&c3==this.length){if(!c7)return 1===this._bufs.length?this._bufs[0]:c5.concat(this._bufs,this.length);for(c6=0;c6(c4=this._bufs[c6].length-c12))){this._bufs[c6].copy(c0,c11,c12,c12+c10);break}this._bufs[c6].copy(c0,c11,c12),c11+=c4,c10-=c4,c12&&(c12=0)}return c0},c6.prototype.shallowSlice=function(c0,c1){c0=c0||0,c1=c1||this.length,c0<0&&(c0+=this.length),c1<0&&(c1+=this.length);var c2=this._offset(c0),c3=this._offset(c1),c4=this._bufs.slice(c2[0],c3[0]+1);return 0==c3[1]?c4.pop():c4[c4.length-1]=c4[c4.length-1].slice(0,c3[1]),0!=c2[1]&&(c4[0]=c4[0].slice(c2[1])),new c6(c4)},c6.prototype.toString=function(c0,c1,c2){return this.slice(c1,c2).toString(c0)},c6.prototype.consume=function(c0){for(;this._bufs.length;){if(!(c0>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(c0),this.length-=c0;break}c0-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},c6.prototype.duplicate=function(){for(var c0=0,c1=new c6;c0=c5)return c0;switch(c0){case"%s":return String(c3[c2++]);case"%d":return Number(c3[c2++]);case"%j":try{return JSON.stringify(c3[c2++])}catch(c0){return"[Circular]"}default:return c0}})),c8=c3[c2];c2=3&&(c3.depth=arguments[2]),arguments.length>=4&&(c3.colors=arguments[3]),c14(c2)?c3.showHidden=c2:c2&&c1._extend(c3,c2),c18(c3.showHidden)&&(c3.showHidden=!1),c18(c3.depth)&&(c3.depth=2),c18(c3.colors)&&(c3.colors=!1),c18(c3.customInspect)&&(c3.customInspect=!0),c3.colors&&(c3.stylize=c8),c10(c3,c0,c3.depth)}function c8(c0,c1){var c2=c7.styles[c1];return c2?"["+c7.colors[c2][0]+"m"+c0+"["+c7.colors[c2][1]+"m":c0}function c9(c0,c1){return c0}function c10(c0,c2,c3){if(c0.customInspect&&c2&&c23(c2.inspect)&&c2.inspect!==c1.inspect&&(!c2.constructor||c2.constructor.prototype!==c2)){var c4=c2.inspect(c3,c0);return c17(c4)||(c4=c10(c0,c4,c3)),c4}var c5=function(c0,c1){if(c18(c1))return c0.stylize("undefined","undefined");if(c17(c1)){var c2="'"+JSON.stringify(c1).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c0.stylize(c2,"string")}if(c16(c1))return c0.stylize(""+c1,"number");if(c14(c1))return c0.stylize(""+c1,"boolean");if(c15(c1))return c0.stylize("null","null")}(c0,c2);if(c5)return c5;var c6=Object.keys(c2),c7=function(c0){var c1={};return c0.forEach((function(c0,c2){c1[c0]=!0})),c1}(c6);if(c0.showHidden&&(c6=Object.getOwnPropertyNames(c2)),c22(c2)&&(c6.indexOf("message")>=0||c6.indexOf("description")>=0))return c11(c2);if(0===c6.length){if(c23(c2)){var c8=c2.name?": "+c2.name:"";return c0.stylize("[Function"+c8+"]","special")}if(c19(c2))return c0.stylize(RegExp.prototype.toString.call(c2),"regexp");if(c21(c2))return c0.stylize(Date.prototype.toString.call(c2),"date");if(c22(c2))return c11(c2)}var c9,c20="",c24=!1,c25=["{","}"];(c13(c2)&&(c24=!0,c25=["[","]"]),c23(c2))&&(c20=" [Function"+(c2.name?": "+c2.name:"")+"]");return c19(c2)&&(c20=" "+RegExp.prototype.toString.call(c2)),c21(c2)&&(c20=" "+Date.prototype.toUTCString.call(c2)),c22(c2)&&(c20=" "+c11(c2)),0!==c6.length||c24&&0!=c2.length?c3<0?c19(c2)?c0.stylize(RegExp.prototype.toString.call(c2),"regexp"):c0.stylize("[Object]","special"):(c0.seen.push(c2),c9=c24?function(c0,c1,c2,c3,c4){for(var c5=[],c6=0,c7=c1.length;c6=0&&0,c0+c1.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return c2[0]+(""===c1?"":c1+"\n ")+" "+c0.join(",\n ")+" "+c2[1];return c2[0]+c1+" "+c0.join(", ")+" "+c2[1]}(c9,c20,c25)):c25[0]+c20+c25[1]}function c11(c0){return"["+Error.prototype.toString.call(c0)+"]"}function c12(c0,c1,c2,c3,c4,c5){var c6,c7,c8;if((c8=Object.getOwnPropertyDescriptor(c1,c4)||{value:c1[c4]}).get?c7=c8.set?c0.stylize("[Getter/Setter]","special"):c0.stylize("[Getter]","special"):c8.set&&(c7=c0.stylize("[Setter]","special")),c28(c3,c4)||(c6="["+c4+"]"),c7||(c0.seen.indexOf(c8.value)<0?(c7=c15(c2)?c10(c0,c8.value,null):c10(c0,c8.value,c2-1)).indexOf("\n")>-1&&(c7=c5?c7.split("\n").map((function(c0){return" "+c0})).join("\n").substr(2):"\n"+c7.split("\n").map((function(c0){return" "+c0})).join("\n")):c7=c0.stylize("[Circular]","special")),c18(c6)){if(c5&&c4.match(/^\d+$/))return c7;(c6=JSON.stringify(""+c4)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c6=c6.substr(1,c6.length-2),c6=c0.stylize(c6,"name")):(c6=c6.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c6=c0.stylize(c6,"string"))}return c6+": "+c7}function c13(c0){return Array.isArray(c0)}function c14(c0){return"boolean"==typeof c0}function c15(c0){return null===c0}function c16(c0){return"number"==typeof c0}function c17(c0){return"string"==typeof c0}function c18(c0){return void 0===c0}function c19(c0){return c20(c0)&&"[object RegExp]"===c24(c0)}function c20(c0){return"object"==typeof c0&&null!==c0}function c21(c0){return c20(c0)&&"[object Date]"===c24(c0)}function c22(c0){return c20(c0)&&("[object Error]"===c24(c0)||c0 instanceof Error)}function c23(c0){return"function"==typeof c0}function c24(c0){return Object.prototype.toString.call(c0)}function c25(c0){return c0<10?"0"+c0.toString(10):c0.toString(10)}c1.debuglog=function(c2){if(c18(c5)&&(c5=c0.env.NODE_DEBUG||""),c2=c2.toUpperCase(),!c6[c2])if(new RegExp("\\b"+c2+"\\b","i").test(c5)){var c3=c0.pid;c6[c2]=function(){var c0=c1.format.apply(c1,arguments);console.error("%s %d: %s",c2,c3,c0)}}else c6[c2]=function(){};return c6[c2]},c1.inspect=c7,c7.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c7.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},c1.isArray=c13,c1.isBoolean=c14,c1.isNull=c15,c1.isNullOrUndefined=function(c0){return null==c0},c1.isNumber=c16,c1.isString=c17,c1.isSymbol=function(c0){return"symbol"==typeof c0},c1.isUndefined=c18,c1.isRegExp=c19,c1.isObject=c20,c1.isDate=c21,c1.isError=c22,c1.isFunction=c23,c1.isPrimitive=function(c0){return null===c0||"boolean"==typeof c0||"number"==typeof c0||"string"==typeof c0||"symbol"==typeof c0||void 0===c0},c1.isBuffer=c2(341);var c26=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function c27(){var c0=new Date,c1=[c25(c0.getHours()),c25(c0.getMinutes()),c25(c0.getSeconds())].join(":");return[c0.getDate(),c26[c0.getMonth()],c1].join(" ")}function c28(c0,c1){return Object.prototype.hasOwnProperty.call(c0,c1)}c1.log=function(){console.log("%s - %s",c27(),c1.format.apply(c1,arguments))},c1.inherits=c2(342),c1._extend=function(c0,c1){if(!c1||!c20(c1))return c0;for(var c2=Object.keys(c1),c3=c2.length;c3--;)c0[c2[c3]]=c1[c2[c3]];return c0};var c29="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function c30(c0,c1){if(!c0){var c2=new Error("Promise was rejected with a falsy value");c2.reason=c0,c0=c2}return c1(c0)}c1.promisify=function(c0){if("function"!=typeof c0)throw new TypeError('The "original" argument must be of type Function');if(c29&&c0[c29]){var c1;if("function"!=typeof(c1=c0[c29]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(c1,c29,{value:c1,enumerable:!1,writable:!1,configurable:!0}),c1}function c1(){for(var c1,c2,c3=new Promise((function(c0,c3){c1=c0,c2=c3})),c4=[],c5=0;c5>8,0),c1.writeUInt8(255&c0,1),c1}c0.exports={cache:c4,generateCache:function(){for(var c0=0;c0<65536;c0++)c4[c0]=c5(c0)},generateNumber:c5,genBufVariableByteInt:function(c0){var c1=0,c2=0,c4=function(c0){return c0>=0&&c0<128?1:c0>=128&&c0<16384?2:c0>=16384&&c0<2097152?3:c0>=2097152&&c0<268435456?4:0}(c0),c5=c3.allocUnsafe(c4);do{c1=c0%128|0,(c0=c0/128|0)>0&&(c1|=128),c5.writeUInt8(c1,c2++)}while(c0>0);return{data:c5,length:c4}},generate4ByteBuffer:function(c0){var c1=c3.allocUnsafe(4);return c1.writeUInt32BE(c0,0),c1}}},function(c0,c1,c2){"use strict";function c3(c0,c1,c2){var c3=this;this._callback=c0,this._args=c2,this._interval=setInterval(c0,c1,this._args),this.reschedule=function(c0){c0||(c0=c3._interval),c3._interval&&clearInterval(c3._interval),c3._interval=setInterval(c3._callback,c0,c3._args)},this.clear=function(){c3._interval&&(clearInterval(c3._interval),c3._interval=void 0)},this.destroy=function(){c3._interval&&clearInterval(c3._interval),c3._callback=void 0,c3._interval=void 0,c3._args=void 0}}c0.exports=function(){if("function"!=typeof arguments[0])throw new Error("callback needed");if("number"!=typeof arguments[1])throw new Error("interval needed");var c0;if(arguments.length>0){c0=new Array(arguments.length-2);for(var c1=0;c1= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c14=Math.floor,c15=String.fromCharCode;function c16(c0){throw new RangeError(c13[c0])}function c17(c0,c1){for(var c2=c0.length,c3=[];c2--;)c3[c2]=c1(c0[c2]);return c3}function c18(c0,c1){var c2=c0.split("@"),c3="";return c2.length>1&&(c3=c2[0]+"@",c0=c2[1]),c3+c17((c0=c0.replace(c12,".")).split("."),c1).join(".")}function c19(c0){for(var c1,c2,c3=[],c4=0,c5=c0.length;c4=55296&&c1<=56319&&c465535&&(c1+=c15((c0-=65536)>>>10&1023|55296),c0=56320|1023&c0),c1+=c15(c0)})).join("")}function c21(c0,c1){return c0+22+75*(c0<26)-((0!=c1)<<5)}function c22(c0,c1,c2){var c3=0;for(c0=c2?c14(c0/700):c0>>1,c0+=c14(c0/c1);c0>455;c3+=c9)c0=c14(c0/35);return c14(c3+36*c0/(c0+38))}function c23(c0){var c1,c2,c3,c4,c5,c6,c7,c10,c11,c12,c13,c15=[],c17=c0.length,c18=0,c19=128,c21=72;for((c2=c0.lastIndexOf("-"))<0&&(c2=0),c3=0;c3=128&&c16("not-basic"),c15.push(c0.charCodeAt(c3));for(c4=c2>0?c2+1:0;c4=c17&&c16("invalid-input"),((c10=(c13=c0.charCodeAt(c4++))-48<10?c13-22:c13-65<26?c13-65:c13-97<26?c13-97:c9)>=c9||c10>c14((c8-c18)/c6))&&c16("overflow"),c18+=c10*c6,!(c10<(c11=c7<=c21?1:c7>=c21+26?26:c7-c21));c7+=c9)c6>c14(c8/(c12=c9-c11))&&c16("overflow"),c6*=c12;c21=c22(c18-c5,c1=c15.length+1,0==c5),c14(c18/c1)>c8-c19&&c16("overflow"),c19+=c14(c18/c1),c18%=c1,c15.splice(c18++,0,c19)}return c20(c15)}function c24(c0){var c1,c2,c3,c4,c5,c6,c7,c10,c11,c12,c13,c17,c18,c20,c23,c24=[];for(c17=(c0=c19(c0)).length,c1=128,c2=0,c5=72,c6=0;c6=c1&&c13c14((c8-c2)/(c18=c3+1))&&c16("overflow"),c2+=(c7-c1)*c18,c1=c7,c6=0;c6c8&&c16("overflow"),c13==c1){for(c10=c2,c11=c9;!(c10<(c12=c11<=c5?1:c11>=c5+26?26:c11-c5));c11+=c9)c23=c10-c12,c20=c9-c12,c24.push(c15(c21(c12+c23%c20,0))),c10=c14(c23/c20);c24.push(c15(c21(c10,0))),c5=c22(c2,c18,c3==c4),c2=0,++c3}++c2,++c1}return c24.join("")}c7={version:"1.4.1",ucs2:{decode:c19,encode:c20},decode:c23,encode:c24,toASCII:function(c0){return c18(c0,(function(c0){return c11.test(c0)?"xn--"+c24(c0):c0}))},toUnicode:function(c0){return c18(c0,(function(c0){return c10.test(c0)?c23(c0.slice(4).toLowerCase()):c0}))}},void 0===(c4=function(){return c7}.call(c1,c2,c1,c0))||(c0.exports=c4)}()}).call(this,c2(153)(c0),c2(12))},function(c0,c1,c2){"use strict";c0.exports={isString:function(c0){return"string"==typeof c0},isObject:function(c0){return"object"==typeof c0&&null!==c0},isNull:function(c0){return null===c0},isNullOrUndefined:function(c0){return null==c0}}},function(c0,c1,c2){"use strict";c1.decode=c1.parse=c2(351),c1.encode=c1.stringify=c2(352)},function(c0,c1,c2){"use strict";function c3(c0,c1){return Object.prototype.hasOwnProperty.call(c0,c1)}c0.exports=function(c0,c1,c2,c5){c1=c1||"&",c2=c2||"=";var c6={};if("string"!=typeof c0||0===c0.length)return c6;var c7=/\+/g;c0=c0.split(c1);var c8=1e3;c5&&"number"==typeof c5.maxKeys&&(c8=c5.maxKeys);var c9=c0.length;c8>0&&c9>c8&&(c9=c8);for(var c10=0;c10=0?(c11=c15.substr(0,c16),c12=c15.substr(c16+1)):(c11=c15,c12=""),c13=decodeURIComponent(c11),c14=decodeURIComponent(c12),c3(c6,c13)?c4(c6[c13])?c6[c13].push(c14):c6[c13]=[c6[c13],c14]:c6[c13]=c14}return c6};var c4=Array.isArray||function(c0){return"[object Array]"===Object.prototype.toString.call(c0)}},function(c0,c1,c2){"use strict";var c3=function(c0){switch(typeof c0){case"string":return c0;case"boolean":return c0?"true":"false";case"number":return isFinite(c0)?c0:"";default:return""}};c0.exports=function(c0,c1,c2,c7){return c1=c1||"&",c2=c2||"=",null===c0&&(c0=void 0),"object"==typeof c0?c5(c6(c0),(function(c6){var c7=encodeURIComponent(c3(c6))+c2;return c4(c0[c6])?c5(c0[c6],(function(c0){return c7+encodeURIComponent(c3(c0))})).join(c1):c7+encodeURIComponent(c3(c0[c6]))})).join(c1):c7?encodeURIComponent(c3(c7))+c2+encodeURIComponent(c3(c0)):""};var c4=Array.isArray||function(c0){return"[object Array]"===Object.prototype.toString.call(c0)};function c5(c0,c1){if(c0.map)return c0.map(c1);for(var c2=[],c3=0;c3c15)return void setTimeout(c0,c16,c1,c2,c3);c17&&"string"==typeof c1&&(c1=c7.from(c1,"utf8"));try{c10.send(c1)}catch(c0){return c3(c0)}c3()}:function(c0,c1,c2){if(c10.readyState!==c10.OPEN)return void c2();c17&&"string"==typeof c0&&(c0=c7.from(c0,"utf8"));c10.send(c0,c2)};c2&&!Array.isArray(c2)&&"object"==typeof c2&&(c8=c2,c2=null,("string"==typeof c8.protocol||Array.isArray(c8.protocol))&&(c2=c8.protocol));c8||(c8={});void 0===c8.objectMode&&(c8.objectMode=!(!0===c8.binary||void 0===c8.binary));var c14=function(c0,c1,c2){var c3=new c4({objectMode:c0.objectMode});return c3._write=c1,c3._flush=c2,c3}(c8,c13,(function(c0){c10.close(),c0()}));c8.objectMode||(c14._writev=c18);var c15=c8.browserBufferSize||524288,c16=c8.browserBufferTimeout||1e3;"object"==typeof c0?c10=c0:(c10=c12&&c11?new c6(c0,c2):new c6(c0,c2,c8)).binaryType="arraybuffer";c10.readyState===c10.OPEN?c9=c14:(c9=c9=c5(void 0,void 0,c8),c8.objectMode||(c9._writev=c18),c10.onopen=function(){c9.setReadable(c14),c9.setWritable(c14),c9.emit("connect")});c9.socket=c10,c10.onclose=function(){c9.end(),c9.destroy()},c10.onerror=function(c0){c9.destroy(c0)},c10.onmessage=function(c0){var c1=c0.data;c1=c1 instanceof ArrayBuffer?c7.from(c1):c7.from(c1,"utf8");c14.push(c1)},c14.on("close",(function(){c10.close()}));var c17=!c8.objectMode;function c18(c0,c1){for(var c2=new Array(c0.length),c3=0;c3>>3){case 1:c3.targetUid=c0.string();break;case 2:c3.reason=c0.string();break;case 3:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("targetUid"))throw c9.ProtocolError("missing required 'targetUid'",{instance:c3});if(!c3.hasOwnProperty("reason"))throw c9.ProtocolError("missing required 'reason'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.targetUid)?c9.isString(c0.reason)?null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"reason: string expected":"targetUid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.AddFriendRequest)return c0;var c1=new c10.AddFriendRequest;return null!=c0.targetUid&&(c1.targetUid=String(c0.targetUid)),null!=c0.reason&&(c1.reason=String(c0.reason)),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.targetUid="",c2.reason="",c2.extra=""),null!=c0.targetUid&&c0.hasOwnProperty("targetUid")&&(c2.targetUid=c0.targetUid),null!=c0.reason&&c0.hasOwnProperty("reason")&&(c2.reason=c0.reason),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.Conversation=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.type=c0.int32();break;case 2:c3.target=c0.string();break;case 3:c3.line=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("target"))throw c9.ProtocolError("missing required 'target'",{instance:c3});if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.type)?c9.isString(c0.target)?c9.isInteger(c0.line)?null:"line: integer expected":"target: string expected":"type: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.Conversation)return c0;var c1=new c10.Conversation;return null!=c0.type&&(c1.type=0|c0.type),null!=c0.target&&(c1.target=String(c0.target)),null!=c0.line&&(c1.line=0|c0.line),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.type=0,c2.target="",c2.line=0),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.target&&c0.hasOwnProperty("target")&&(c2.target=c0.target),null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GroupInfo=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.targetId=c0.string();break;case 2:c3.name=c0.string();break;case 3:c3.portrait=c0.string();break;case 4:c3.owner=c0.string();break;case 5:c3.type=c0.int32();break;case 6:c3.memberCount=c0.int32();break;case 7:c3.extra=c0.string();break;case 8:c3.updateDt=c0.int64();break;case 9:c3.memberUpdateDt=c0.int64();break;case 10:c3.mute=c0.int32();break;case 11:c3.joinType=c0.int32();break;case 12:c3.privateChat=c0.int32();break;case 13:c3.searchable=c0.int32();break;case 14:c3.maxMemberCount=c0.int32();break;case 15:c3.historyMessage=c0.int32();break;case 16:c3.superGroup=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("name"))throw c9.ProtocolError("missing required 'name'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":null!=c0.targetId&&c0.hasOwnProperty("targetId")&&!c9.isString(c0.targetId)?"targetId: string expected":c9.isString(c0.name)?null!=c0.portrait&&c0.hasOwnProperty("portrait")&&!c9.isString(c0.portrait)?"portrait: string expected":null!=c0.owner&&c0.hasOwnProperty("owner")&&!c9.isString(c0.owner)?"owner: string expected":c9.isInteger(c0.type)?null!=c0.memberCount&&c0.hasOwnProperty("memberCount")&&!c9.isInteger(c0.memberCount)?"memberCount: integer expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null!=c0.memberUpdateDt&&c0.hasOwnProperty("memberUpdateDt")&&!(c9.isInteger(c0.memberUpdateDt)||c0.memberUpdateDt&&c9.isInteger(c0.memberUpdateDt.low)&&c9.isInteger(c0.memberUpdateDt.high))?"memberUpdateDt: integer|Long expected":null!=c0.mute&&c0.hasOwnProperty("mute")&&!c9.isInteger(c0.mute)?"mute: integer expected":null!=c0.joinType&&c0.hasOwnProperty("joinType")&&!c9.isInteger(c0.joinType)?"joinType: integer expected":null!=c0.privateChat&&c0.hasOwnProperty("privateChat")&&!c9.isInteger(c0.privateChat)?"privateChat: integer expected":null!=c0.searchable&&c0.hasOwnProperty("searchable")&&!c9.isInteger(c0.searchable)?"searchable: integer expected":null!=c0.maxMemberCount&&c0.hasOwnProperty("maxMemberCount")&&!c9.isInteger(c0.maxMemberCount)?"maxMemberCount: integer expected":null!=c0.historyMessage&&c0.hasOwnProperty("historyMessage")&&!c9.isInteger(c0.historyMessage)?"historyMessage: integer expected":null!=c0.superGroup&&c0.hasOwnProperty("superGroup")&&!c9.isInteger(c0.superGroup)?"superGroup: integer expected":null:"type: integer expected":"name: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GroupInfo)return c0;var c1=new c10.GroupInfo;return null!=c0.targetId&&(c1.targetId=String(c0.targetId)),null!=c0.name&&(c1.name=String(c0.name)),null!=c0.portrait&&(c1.portrait=String(c0.portrait)),null!=c0.owner&&(c1.owner=String(c0.owner)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.memberCount&&(c1.memberCount=0|c0.memberCount),null!=c0.extra&&(c1.extra=String(c0.extra)),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.memberUpdateDt&&(c9.Long?(c1.memberUpdateDt=c9.Long.fromValue(c0.memberUpdateDt)).unsigned=!1:"string"==typeof c0.memberUpdateDt?c1.memberUpdateDt=parseInt(c0.memberUpdateDt,10):"number"==typeof c0.memberUpdateDt?c1.memberUpdateDt=c0.memberUpdateDt:"object"===(0,c3.default)(c0.memberUpdateDt)&&(c1.memberUpdateDt=new c9.LongBits(c0.memberUpdateDt.low>>>0,c0.memberUpdateDt.high>>>0).toNumber())),null!=c0.mute&&(c1.mute=0|c0.mute),null!=c0.joinType&&(c1.joinType=0|c0.joinType),null!=c0.privateChat&&(c1.privateChat=0|c0.privateChat),null!=c0.searchable&&(c1.searchable=0|c0.searchable),null!=c0.maxMemberCount&&(c1.maxMemberCount=0|c0.maxMemberCount),null!=c0.historyMessage&&(c1.historyMessage=0|c0.historyMessage),null!=c0.superGroup&&(c1.superGroup=0|c0.superGroup),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.targetId="",c2.name="",c2.portrait="",c2.owner="",c2.type=0,c2.memberCount=0,c2.extra="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.memberUpdateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.memberUpdateDt=c1.longs===String?"0":0;c2.mute=0,c2.joinType=0,c2.privateChat=0,c2.searchable=0,c2.maxMemberCount=0,c2.historyMessage=0,c2.superGroup=0}return null!=c0.targetId&&c0.hasOwnProperty("targetId")&&(c2.targetId=c0.targetId),null!=c0.name&&c0.hasOwnProperty("name")&&(c2.name=c0.name),null!=c0.portrait&&c0.hasOwnProperty("portrait")&&(c2.portrait=c0.portrait),null!=c0.owner&&c0.hasOwnProperty("owner")&&(c2.owner=c0.owner),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.memberCount&&c0.hasOwnProperty("memberCount")&&(c2.memberCount=c0.memberCount),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.memberUpdateDt&&c0.hasOwnProperty("memberUpdateDt")&&("number"==typeof c0.memberUpdateDt?c2.memberUpdateDt=c1.longs===String?String(c0.memberUpdateDt):c0.memberUpdateDt:c2.memberUpdateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.memberUpdateDt):c1.longs===Number?new c9.LongBits(c0.memberUpdateDt.low>>>0,c0.memberUpdateDt.high>>>0).toNumber():c0.memberUpdateDt),null!=c0.mute&&c0.hasOwnProperty("mute")&&(c2.mute=c0.mute),null!=c0.joinType&&c0.hasOwnProperty("joinType")&&(c2.joinType=c0.joinType),null!=c0.privateChat&&c0.hasOwnProperty("privateChat")&&(c2.privateChat=c0.privateChat),null!=c0.searchable&&c0.hasOwnProperty("searchable")&&(c2.searchable=c0.searchable),null!=c0.maxMemberCount&&c0.hasOwnProperty("maxMemberCount")&&(c2.maxMemberCount=c0.maxMemberCount),null!=c0.historyMessage&&c0.hasOwnProperty("historyMessage")&&(c2.historyMessage=c0.historyMessage),null!=c0.superGroup&&c0.hasOwnProperty("superGroup")&&(c2.superGroup=c0.superGroup),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GroupMember=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.memberId=c0.string();break;case 2:c3.alias=c0.string();break;case 3:c3.type=c0.int32();break;case 4:c3.updateDt=c0.int64();break;case 5:c3.createDt=c0.int64();break;case 6:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("memberId"))throw c9.ProtocolError("missing required 'memberId'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.memberId)?null!=c0.alias&&c0.hasOwnProperty("alias")&&!c9.isString(c0.alias)?"alias: string expected":c9.isInteger(c0.type)?null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null!=c0.createDt&&c0.hasOwnProperty("createDt")&&!(c9.isInteger(c0.createDt)||c0.createDt&&c9.isInteger(c0.createDt.low)&&c9.isInteger(c0.createDt.high))?"createDt: integer|Long expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"type: integer expected":"memberId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GroupMember)return c0;var c1=new c10.GroupMember;return null!=c0.memberId&&(c1.memberId=String(c0.memberId)),null!=c0.alias&&(c1.alias=String(c0.alias)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.createDt&&(c9.Long?(c1.createDt=c9.Long.fromValue(c0.createDt)).unsigned=!1:"string"==typeof c0.createDt?c1.createDt=parseInt(c0.createDt,10):"number"==typeof c0.createDt?c1.createDt=c0.createDt:"object"===(0,c3.default)(c0.createDt)&&(c1.createDt=new c9.LongBits(c0.createDt.low>>>0,c0.createDt.high>>>0).toNumber())),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.memberId="",c2.alias="",c2.type=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.createDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.createDt=c1.longs===String?"0":0;c2.extra=""}return null!=c0.memberId&&c0.hasOwnProperty("memberId")&&(c2.memberId=c0.memberId),null!=c0.alias&&c0.hasOwnProperty("alias")&&(c2.alias=c0.alias),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.createDt&&c0.hasOwnProperty("createDt")&&("number"==typeof c0.createDt?c2.createDt=c1.longs===String?String(c0.createDt):c0.createDt:c2.createDt=c1.longs===String?c9.Long.prototype.toString.call(c0.createDt):c1.longs===Number?new c9.LongBits(c0.createDt.low>>>0,c0.createDt.high>>>0).toNumber():c0.createDt),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.Group=function(){function c0(c0){if(this.members=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.groupInfo=c10.GroupInfo.decode(c0,c0.uint32());break;case 2:c3.members&&c3.members.length||(c3.members=[]),c3.members.push(c10.GroupMember.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("groupInfo"))throw c9.ProtocolError("missing required 'groupInfo'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(c2=c10.GroupInfo.verify(c0.groupInfo))return"groupInfo."+c2;if(null!=c0.members&&c0.hasOwnProperty("members")){if(!Array.isArray(c0.members))return"members: array expected";for(var c1=0;c1>>3){case 1:c3.type=c0.string();break;case 2:c3.name=c0.string();break;case 3:c3.key=c0.string();break;case 4:c3.url=c0.string();break;case 5:c3.mediaId=c0.string();break;case 6:c3.articleId=c0.string();break;case 7:c3.appId=c0.string();break;case 8:c3.appPage=c0.string();break;case 9:c3.subMenu&&c3.subMenu.length||(c3.subMenu=[]),c3.subMenu.push(c10.ChannelMenu.decode(c0,c0.uint32()));break;case 10:c3.menuId=c0.string();break;case 11:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("name"))throw c9.ProtocolError("missing required 'name'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.type))return"type: string expected";if(!c9.isString(c0.name))return"name: string expected";if(null!=c0.key&&c0.hasOwnProperty("key")&&!c9.isString(c0.key))return"key: string expected";if(null!=c0.url&&c0.hasOwnProperty("url")&&!c9.isString(c0.url))return"url: string expected";if(null!=c0.mediaId&&c0.hasOwnProperty("mediaId")&&!c9.isString(c0.mediaId))return"mediaId: string expected";if(null!=c0.articleId&&c0.hasOwnProperty("articleId")&&!c9.isString(c0.articleId))return"articleId: string expected";if(null!=c0.appId&&c0.hasOwnProperty("appId")&&!c9.isString(c0.appId))return"appId: string expected";if(null!=c0.appPage&&c0.hasOwnProperty("appPage")&&!c9.isString(c0.appPage))return"appPage: string expected";if(null!=c0.subMenu&&c0.hasOwnProperty("subMenu")){if(!Array.isArray(c0.subMenu))return"subMenu: array expected";for(var c1=0;c1>>3==1)c3.menu&&c3.menu.length||(c3.menu=[]),c3.menu.push(c10.ChannelMenu.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.menu&&c0.hasOwnProperty("menu")){if(!Array.isArray(c0.menu))return"menu: array expected";for(var c1=0;c1>>3){case 1:c3.targetId=c0.string();break;case 2:c3.name=c0.string();break;case 3:c3.portrait=c0.string();break;case 4:c3.owner=c0.string();break;case 5:c3.status=c0.int32();break;case 6:c3.desc=c0.string();break;case 7:c3.extra=c0.string();break;case 8:c3.updateDt=c0.int64();break;case 9:c3.secret=c0.string();break;case 10:c3.callback=c0.string();break;case 11:c3.automatic=c0.int32();break;case 12:c3.menu&&c3.menu.length||(c3.menu=[]),c3.menu.push(c10.ChannelMenu.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("name"))throw c9.ProtocolError("missing required 'name'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.targetId&&c0.hasOwnProperty("targetId")&&!c9.isString(c0.targetId))return"targetId: string expected";if(!c9.isString(c0.name))return"name: string expected";if(null!=c0.portrait&&c0.hasOwnProperty("portrait")&&!c9.isString(c0.portrait))return"portrait: string expected";if(null!=c0.owner&&c0.hasOwnProperty("owner")&&!c9.isString(c0.owner))return"owner: string expected";if(null!=c0.status&&c0.hasOwnProperty("status")&&!c9.isInteger(c0.status))return"status: integer expected";if(null!=c0.desc&&c0.hasOwnProperty("desc")&&!c9.isString(c0.desc))return"desc: string expected";if(null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra))return"extra: string expected";if(null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high)))return"updateDt: integer|Long expected";if(null!=c0.secret&&c0.hasOwnProperty("secret")&&!c9.isString(c0.secret))return"secret: string expected";if(null!=c0.callback&&c0.hasOwnProperty("callback")&&!c9.isString(c0.callback))return"callback: string expected";if(null!=c0.automatic&&c0.hasOwnProperty("automatic")&&!c9.isInteger(c0.automatic))return"automatic: integer expected";if(null!=c0.menu&&c0.hasOwnProperty("menu")){if(!Array.isArray(c0.menu))return"menu: array expected";for(var c1=0;c1>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.secret&&(c1.secret=String(c0.secret)),null!=c0.callback&&(c1.callback=String(c0.callback)),null!=c0.automatic&&(c1.automatic=0|c0.automatic),c0.menu){if(!Array.isArray(c0.menu))throw TypeError(".ChannelInfo.menu: array expected");c1.menu=[];for(var c2=0;c2>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.secret&&c0.hasOwnProperty("secret")&&(c2.secret=c0.secret),null!=c0.callback&&c0.hasOwnProperty("callback")&&(c2.callback=c0.callback),null!=c0.automatic&&c0.hasOwnProperty("automatic")&&(c2.automatic=c0.automatic),c0.menu&&c0.menu.length){c2.menu=[];for(var c4=0;c4>>3){case 1:c3.channelId=c0.string();break;case 2:c3.type=c0.int32();break;case 3:c3.value=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("channelId"))throw c9.ProtocolError("missing required 'channelId'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("value"))throw c9.ProtocolError("missing required 'value'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.channelId)?c9.isInteger(c0.type)?c9.isString(c0.value)?null:"value: string expected":"type: integer expected":"channelId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ModifyChannelInfo)return c0;var c1=new c10.ModifyChannelInfo;return null!=c0.channelId&&(c1.channelId=String(c0.channelId)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.value&&(c1.value=String(c0.value)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.channelId="",c2.type=0,c2.value=""),null!=c0.channelId&&c0.hasOwnProperty("channelId")&&(c2.channelId=c0.channelId),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.value&&c0.hasOwnProperty("value")&&(c2.value=c0.value),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.TransferChannel=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.channelId=c0.string();break;case 2:c3.newOwner=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("channelId"))throw c9.ProtocolError("missing required 'channelId'",{instance:c3});if(!c3.hasOwnProperty("newOwner"))throw c9.ProtocolError("missing required 'newOwner'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.channelId)?c9.isString(c0.newOwner)?null:"newOwner: string expected":"channelId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.TransferChannel)return c0;var c1=new c10.TransferChannel;return null!=c0.channelId&&(c1.channelId=String(c0.channelId)),null!=c0.newOwner&&(c1.newOwner=String(c0.newOwner)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.channelId="",c2.newOwner=""),null!=c0.channelId&&c0.hasOwnProperty("channelId")&&(c2.channelId=c0.channelId),null!=c0.newOwner&&c0.hasOwnProperty("newOwner")&&(c2.newOwner=c0.newOwner),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullChannelInfo=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.channelId=c0.string();break;case 2:c3.head=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("channelId"))throw c9.ProtocolError("missing required 'channelId'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.channelId)?c9.isInteger(c0.head)||c0.head&&c9.isInteger(c0.head.low)&&c9.isInteger(c0.head.high)?null:"head: integer|Long expected":"channelId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullChannelInfo)return c0;var c1=new c10.PullChannelInfo;return null!=c0.channelId&&(c1.channelId=String(c0.channelId)),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.channelId="",c9.Long){var c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0;return null!=c0.channelId&&c0.hasOwnProperty("channelId")&&(c2.channelId=c0.channelId),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullChannelListener=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.channelId=c0.string();break;case 2:c3.offset=c0.int32();break;case 3:c3.count=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("channelId"))throw c9.ProtocolError("missing required 'channelId'",{instance:c3});if(!c3.hasOwnProperty("offset"))throw c9.ProtocolError("missing required 'offset'",{instance:c3});if(!c3.hasOwnProperty("count"))throw c9.ProtocolError("missing required 'count'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.channelId)?c9.isInteger(c0.offset)?c9.isInteger(c0.count)?null:"count: integer expected":"offset: integer expected":"channelId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullChannelListener)return c0;var c1=new c10.PullChannelListener;return null!=c0.channelId&&(c1.channelId=String(c0.channelId)),null!=c0.offset&&(c1.offset=0|c0.offset),null!=c0.count&&(c1.count=0|c0.count),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.channelId="",c2.offset=0,c2.count=0),null!=c0.channelId&&c0.hasOwnProperty("channelId")&&(c2.channelId=c0.channelId),null!=c0.offset&&c0.hasOwnProperty("offset")&&(c2.offset=c0.offset),null!=c0.count&&c0.hasOwnProperty("count")&&(c2.count=c0.count),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullChannelListenerResult=function(){function c0(c0){if(this.listener=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.totalCount=c0.int32();break;case 2:c3.offset=c0.int32();break;case 3:c3.listener&&c3.listener.length||(c3.listener=[]),c3.listener.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("totalCount"))throw c9.ProtocolError("missing required 'totalCount'",{instance:c3});if(!c3.hasOwnProperty("offset"))throw c9.ProtocolError("missing required 'offset'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isInteger(c0.totalCount))return"totalCount: integer expected";if(!c9.isInteger(c0.offset))return"offset: integer expected";if(null!=c0.listener&&c0.hasOwnProperty("listener")){if(!Array.isArray(c0.listener))return"listener: array expected";for(var c1=0;c1>>3){case 1:c3.channelId=c0.string();break;case 2:c3.listen=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("channelId"))throw c9.ProtocolError("missing required 'channelId'",{instance:c3});if(!c3.hasOwnProperty("listen"))throw c9.ProtocolError("missing required 'listen'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.channelId)?c9.isInteger(c0.listen)?null:"listen: integer expected":"channelId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ListenChannel)return c0;var c1=new c10.ListenChannel;return null!=c0.channelId&&(c1.channelId=String(c0.channelId)),null!=c0.listen&&(c1.listen=0|c0.listen),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.channelId="",c2.listen=0),null!=c0.channelId&&c0.hasOwnProperty("channelId")&&(c2.channelId=c0.channelId),null!=c0.listen&&c0.hasOwnProperty("listen")&&(c2.listen=c0.listen),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.SearchChannelResult=function(){function c0(c0){if(this.channel=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.channel&&c3.channel.length||(c3.channel=[]),c3.channel.push(c10.ChannelInfo.decode(c0,c0.uint32()));break;case 2:c3.keyword=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("keyword"))throw c9.ProtocolError("missing required 'keyword'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.channel&&c0.hasOwnProperty("channel")){if(!Array.isArray(c0.channel))return"channel: array expected";for(var c1=0;c1>>3){case 1:c3.type=c0.int32();break;case 2:c3.searchableContent=c0.string();break;case 3:c3.pushContent=c0.string();break;case 4:c3.content=c0.string();break;case 5:c3.data=c0.bytes();break;case 6:c3.mediaType=c0.int32();break;case 7:c3.remoteMediaUrl=c0.string();break;case 8:c3.persistFlag=c0.int32();break;case 9:c3.expireDuration=c0.int32();break;case 10:c3.mentionedType=c0.int32();break;case 11:c3.mentionedTarget&&c3.mentionedTarget.length||(c3.mentionedTarget=[]),c3.mentionedTarget.push(c0.string());break;case 12:c3.extra=c0.string();break;case 13:c3.pushData=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isInteger(c0.type))return"type: integer expected";if(null!=c0.searchableContent&&c0.hasOwnProperty("searchableContent")&&!c9.isString(c0.searchableContent))return"searchableContent: string expected";if(null!=c0.pushContent&&c0.hasOwnProperty("pushContent")&&!c9.isString(c0.pushContent))return"pushContent: string expected";if(null!=c0.content&&c0.hasOwnProperty("content")&&!c9.isString(c0.content))return"content: string expected";if(null!=c0.data&&c0.hasOwnProperty("data")&&!(c0.data&&"number"==typeof c0.data.length||c9.isString(c0.data)))return"data: buffer expected";if(null!=c0.mediaType&&c0.hasOwnProperty("mediaType")&&!c9.isInteger(c0.mediaType))return"mediaType: integer expected";if(null!=c0.remoteMediaUrl&&c0.hasOwnProperty("remoteMediaUrl")&&!c9.isString(c0.remoteMediaUrl))return"remoteMediaUrl: string expected";if(null!=c0.persistFlag&&c0.hasOwnProperty("persistFlag")&&!c9.isInteger(c0.persistFlag))return"persistFlag: integer expected";if(null!=c0.expireDuration&&c0.hasOwnProperty("expireDuration")&&!c9.isInteger(c0.expireDuration))return"expireDuration: integer expected";if(null!=c0.mentionedType&&c0.hasOwnProperty("mentionedType")&&!c9.isInteger(c0.mentionedType))return"mentionedType: integer expected";if(null!=c0.mentionedTarget&&c0.hasOwnProperty("mentionedTarget")){if(!Array.isArray(c0.mentionedTarget))return"mentionedTarget: array expected";for(var c1=0;c1>>3){case 1:c3.groupId=c0.string();break;case 2:c3.addedMember&&c3.addedMember.length||(c3.addedMember=[]),c3.addedMember.push(c10.GroupMember.decode(c0,c0.uint32()));break;case 3:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.group=c10.Group.decode(c0,c0.uint32());break;case 2:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.groupId=c0.string();break;case 2:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.fromUid=c0.string();break;case 2:c3.toUid=c0.string();break;case 3:c3.reason=c0.string();break;case 4:c3.status=c0.int32();break;case 5:c3.updateDt=c0.int64();break;case 6:c3.fromReadStatus=c0.bool();break;case 7:c3.toReadStatus=c0.bool();break;case 8:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("toUid"))throw c9.ProtocolError("missing required 'toUid'",{instance:c3});if(!c3.hasOwnProperty("reason"))throw c9.ProtocolError("missing required 'reason'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":null!=c0.fromUid&&c0.hasOwnProperty("fromUid")&&!c9.isString(c0.fromUid)?"fromUid: string expected":c9.isString(c0.toUid)?c9.isString(c0.reason)?null!=c0.status&&c0.hasOwnProperty("status")&&!c9.isInteger(c0.status)?"status: integer expected":null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null!=c0.fromReadStatus&&c0.hasOwnProperty("fromReadStatus")&&"boolean"!=typeof c0.fromReadStatus?"fromReadStatus: boolean expected":null!=c0.toReadStatus&&c0.hasOwnProperty("toReadStatus")&&"boolean"!=typeof c0.toReadStatus?"toReadStatus: boolean expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"reason: string expected":"toUid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.FriendRequest)return c0;var c1=new c10.FriendRequest;return null!=c0.fromUid&&(c1.fromUid=String(c0.fromUid)),null!=c0.toUid&&(c1.toUid=String(c0.toUid)),null!=c0.reason&&(c1.reason=String(c0.reason)),null!=c0.status&&(c1.status=0|c0.status),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.fromReadStatus&&(c1.fromReadStatus=Boolean(c0.fromReadStatus)),null!=c0.toReadStatus&&(c1.toReadStatus=Boolean(c0.toReadStatus)),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.fromUid="",c2.toUid="",c2.reason="",c2.status=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;c2.fromReadStatus=!1,c2.toReadStatus=!1,c2.extra=""}return null!=c0.fromUid&&c0.hasOwnProperty("fromUid")&&(c2.fromUid=c0.fromUid),null!=c0.toUid&&c0.hasOwnProperty("toUid")&&(c2.toUid=c0.toUid),null!=c0.reason&&c0.hasOwnProperty("reason")&&(c2.reason=c0.reason),null!=c0.status&&c0.hasOwnProperty("status")&&(c2.status=c0.status),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.fromReadStatus&&c0.hasOwnProperty("fromReadStatus")&&(c2.fromReadStatus=c0.fromReadStatus),null!=c0.toReadStatus&&c0.hasOwnProperty("toReadStatus")&&(c2.toReadStatus=c0.toReadStatus),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GeneralResult=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.errorCode=c0.int32();else c0.skipType(7&c4)}if(!c3.hasOwnProperty("errorCode"))throw c9.ProtocolError("missing required 'errorCode'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.errorCode)?null:"errorCode: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GeneralResult)return c0;var c1=new c10.GeneralResult;return null!=c0.errorCode&&(c1.errorCode=0|c0.errorCode),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.errorCode=0),null!=c0.errorCode&&c0.hasOwnProperty("errorCode")&&(c2.errorCode=c0.errorCode),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetUploadTokenRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.mediaType=c0.int32();break;case 2:c3.mediaPath=c0.string();break;case 3:c3.contentType=c0.string();break;case 4:c3.messageId=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("mediaType"))throw c9.ProtocolError("missing required 'mediaType'",{instance:c3});if(!c3.hasOwnProperty("mediaPath"))throw c9.ProtocolError("missing required 'mediaPath'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.mediaType)?c9.isString(c0.mediaPath)?null!=c0.contentType&&c0.hasOwnProperty("contentType")&&!c9.isString(c0.contentType)?"contentType: string expected":null!=c0.messageId&&c0.hasOwnProperty("messageId")&&!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high))?"messageId: integer|Long expected":null:"mediaPath: string expected":"mediaType: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetUploadTokenRequest)return c0;var c1=new c10.GetUploadTokenRequest;return null!=c0.mediaType&&(c1.mediaType=0|c0.mediaType),null!=c0.mediaPath&&(c1.mediaPath=String(c0.mediaPath)),null!=c0.contentType&&(c1.contentType=String(c0.contentType)),null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.mediaType=0,c2.mediaPath="",c2.contentType="",c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;return null!=c0.mediaType&&c0.hasOwnProperty("mediaType")&&(c2.mediaType=c0.mediaType),null!=c0.mediaPath&&c0.hasOwnProperty("mediaPath")&&(c2.mediaPath=c0.mediaPath),null!=c0.contentType&&c0.hasOwnProperty("contentType")&&(c2.contentType=c0.contentType),null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetUploadTokenResult=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.domain=c0.string();break;case 2:c3.token=c0.string();break;case 3:c3.server=c0.string();break;case 4:c3.port=c0.int32();break;case 5:c3.type=c0.int32();break;case 6:c3.date=c0.string();break;case 7:c3.path=c0.string();break;case 8:c3.backupServer=c0.string();break;case 9:c3.backupPort=c0.int32();break;case 10:c3.sslPort=c0.int32();break;case 11:c3.backupSslPort=c0.int32();break;case 12:c3.sslToken=c0.string();break;case 13:c3.backupToken=c0.string();break;case 14:c3.backupSslToken=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("domain"))throw c9.ProtocolError("missing required 'domain'",{instance:c3});if(!c3.hasOwnProperty("token"))throw c9.ProtocolError("missing required 'token'",{instance:c3});if(!c3.hasOwnProperty("server"))throw c9.ProtocolError("missing required 'server'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.domain)?c9.isString(c0.token)?c9.isString(c0.server)?null!=c0.port&&c0.hasOwnProperty("port")&&!c9.isInteger(c0.port)?"port: integer expected":null!=c0.type&&c0.hasOwnProperty("type")&&!c9.isInteger(c0.type)?"type: integer expected":null!=c0.date&&c0.hasOwnProperty("date")&&!c9.isString(c0.date)?"date: string expected":null!=c0.path&&c0.hasOwnProperty("path")&&!c9.isString(c0.path)?"path: string expected":null!=c0.backupServer&&c0.hasOwnProperty("backupServer")&&!c9.isString(c0.backupServer)?"backupServer: string expected":null!=c0.backupPort&&c0.hasOwnProperty("backupPort")&&!c9.isInteger(c0.backupPort)?"backupPort: integer expected":null!=c0.sslPort&&c0.hasOwnProperty("sslPort")&&!c9.isInteger(c0.sslPort)?"sslPort: integer expected":null!=c0.backupSslPort&&c0.hasOwnProperty("backupSslPort")&&!c9.isInteger(c0.backupSslPort)?"backupSslPort: integer expected":null!=c0.sslToken&&c0.hasOwnProperty("sslToken")&&!c9.isString(c0.sslToken)?"sslToken: string expected":null!=c0.backupToken&&c0.hasOwnProperty("backupToken")&&!c9.isString(c0.backupToken)?"backupToken: string expected":null!=c0.backupSslToken&&c0.hasOwnProperty("backupSslToken")&&!c9.isString(c0.backupSslToken)?"backupSslToken: string expected":null:"server: string expected":"token: string expected":"domain: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetUploadTokenResult)return c0;var c1=new c10.GetUploadTokenResult;return null!=c0.domain&&(c1.domain=String(c0.domain)),null!=c0.token&&(c1.token=String(c0.token)),null!=c0.server&&(c1.server=String(c0.server)),null!=c0.port&&(c1.port=0|c0.port),null!=c0.type&&(c1.type=0|c0.type),null!=c0.date&&(c1.date=String(c0.date)),null!=c0.path&&(c1.path=String(c0.path)),null!=c0.backupServer&&(c1.backupServer=String(c0.backupServer)),null!=c0.backupPort&&(c1.backupPort=0|c0.backupPort),null!=c0.sslPort&&(c1.sslPort=0|c0.sslPort),null!=c0.backupSslPort&&(c1.backupSslPort=0|c0.backupSslPort),null!=c0.sslToken&&(c1.sslToken=String(c0.sslToken)),null!=c0.backupToken&&(c1.backupToken=String(c0.backupToken)),null!=c0.backupSslToken&&(c1.backupSslToken=String(c0.backupSslToken)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.domain="",c2.token="",c2.server="",c2.port=0,c2.type=0,c2.date="",c2.path="",c2.backupServer="",c2.backupPort=0,c2.sslPort=0,c2.backupSslPort=0,c2.sslToken="",c2.backupToken="",c2.backupSslToken=""),null!=c0.domain&&c0.hasOwnProperty("domain")&&(c2.domain=c0.domain),null!=c0.token&&c0.hasOwnProperty("token")&&(c2.token=c0.token),null!=c0.server&&c0.hasOwnProperty("server")&&(c2.server=c0.server),null!=c0.port&&c0.hasOwnProperty("port")&&(c2.port=c0.port),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.date&&c0.hasOwnProperty("date")&&(c2.date=c0.date),null!=c0.path&&c0.hasOwnProperty("path")&&(c2.path=c0.path),null!=c0.backupServer&&c0.hasOwnProperty("backupServer")&&(c2.backupServer=c0.backupServer),null!=c0.backupPort&&c0.hasOwnProperty("backupPort")&&(c2.backupPort=c0.backupPort),null!=c0.sslPort&&c0.hasOwnProperty("sslPort")&&(c2.sslPort=c0.sslPort),null!=c0.backupSslPort&&c0.hasOwnProperty("backupSslPort")&&(c2.backupSslPort=c0.backupSslPort),null!=c0.sslToken&&c0.hasOwnProperty("sslToken")&&(c2.sslToken=c0.sslToken),null!=c0.backupToken&&c0.hasOwnProperty("backupToken")&&(c2.backupToken=c0.backupToken),null!=c0.backupSslToken&&c0.hasOwnProperty("backupSslToken")&&(c2.backupSslToken=c0.backupSslToken),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetPresignedUrlResult=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.presignedUrl=c0.string();break;case 2:c3.mediaUrl=c0.string();break;case 3:c3.backupPresignedUrl=c0.string();break;case 4:c3.type=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("presignedUrl"))throw c9.ProtocolError("missing required 'presignedUrl'",{instance:c3});if(!c3.hasOwnProperty("mediaUrl"))throw c9.ProtocolError("missing required 'mediaUrl'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.presignedUrl)?c9.isString(c0.mediaUrl)?null!=c0.backupPresignedUrl&&c0.hasOwnProperty("backupPresignedUrl")&&!c9.isString(c0.backupPresignedUrl)?"backupPresignedUrl: string expected":null!=c0.type&&c0.hasOwnProperty("type")&&!c9.isInteger(c0.type)?"type: integer expected":null:"mediaUrl: string expected":"presignedUrl: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetPresignedUrlResult)return c0;var c1=new c10.GetPresignedUrlResult;return null!=c0.presignedUrl&&(c1.presignedUrl=String(c0.presignedUrl)),null!=c0.mediaUrl&&(c1.mediaUrl=String(c0.mediaUrl)),null!=c0.backupPresignedUrl&&(c1.backupPresignedUrl=String(c0.backupPresignedUrl)),null!=c0.type&&(c1.type=0|c0.type),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.presignedUrl="",c2.mediaUrl="",c2.backupPresignedUrl="",c2.type=0),null!=c0.presignedUrl&&c0.hasOwnProperty("presignedUrl")&&(c2.presignedUrl=c0.presignedUrl),null!=c0.mediaUrl&&c0.hasOwnProperty("mediaUrl")&&(c2.mediaUrl=c0.mediaUrl),null!=c0.backupPresignedUrl&&c0.hasOwnProperty("backupPresignedUrl")&&(c2.backupPresignedUrl=c0.backupPresignedUrl),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetDownloadSignedUrlResult=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.url=c0.string();break;case 2:c3.backupUrl=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("url"))throw c9.ProtocolError("missing required 'url'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.url)?null!=c0.backupUrl&&c0.hasOwnProperty("backupUrl")&&!c9.isString(c0.backupUrl)?"backupUrl: string expected":null:"url: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetDownloadSignedUrlResult)return c0;var c1=new c10.GetDownloadSignedUrlResult;return null!=c0.url&&(c1.url=String(c0.url)),null!=c0.backupUrl&&(c1.backupUrl=String(c0.backupUrl)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.url="",c2.backupUrl=""),null!=c0.url&&c0.hasOwnProperty("url")&&(c2.url=c0.url),null!=c0.backupUrl&&c0.hasOwnProperty("backupUrl")&&(c2.backupUrl=c0.backupUrl),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.HandleFriendRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.targetUid=c0.string();break;case 2:c3.status=c0.int32();break;case 3:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("targetUid"))throw c9.ProtocolError("missing required 'targetUid'",{instance:c3});if(!c3.hasOwnProperty("status"))throw c9.ProtocolError("missing required 'status'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.targetUid)?c9.isInteger(c0.status)?null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"status: integer expected":"targetUid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.HandleFriendRequest)return c0;var c1=new c10.HandleFriendRequest;return null!=c0.targetUid&&(c1.targetUid=String(c0.targetUid)),null!=c0.status&&(c1.status=0|c0.status),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.targetUid="",c2.status=0,c2.extra=""),null!=c0.targetUid&&c0.hasOwnProperty("targetUid")&&(c2.targetUid=c0.targetUid),null!=c0.status&&c0.hasOwnProperty("status")&&(c2.status=c0.status),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.IDBuf=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.id=c0.string();else c0.skipType(7&c4)}if(!c3.hasOwnProperty("id"))throw c9.ProtocolError("missing required 'id'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.id)?null:"id: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.IDBuf)return c0;var c1=new c10.IDBuf;return null!=c0.id&&(c1.id=String(c0.id)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.id=""),null!=c0.id&&c0.hasOwnProperty("id")&&(c2.id=c0.id),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.IDListBuf=function(){function c0(c0){if(this.id=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.id&&c3.id.length||(c3.id=[]),c3.id.push(c0.string());else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.id&&c0.hasOwnProperty("id")){if(!Array.isArray(c0.id))return"id: array expected";for(var c1=0;c1>>3){case 1:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 2:c3.fromUser=c0.string();break;case 3:c3.content=c10.MessageContent.decode(c0,c0.uint32());break;case 4:c3.messageId=c0.int64();break;case 5:c3.serverTimestamp=c0.int64();break;case 6:c3.toUser=c0.string();break;case 7:c3.to&&c3.to.length||(c3.to=[]),c3.to.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("conversation"))throw c9.ProtocolError("missing required 'conversation'",{instance:c3});if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("content"))throw c9.ProtocolError("missing required 'content'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";var c1;if(c1=c10.Conversation.verify(c0.conversation))return"conversation."+c1;if(!c9.isString(c0.fromUser))return"fromUser: string expected";if(c1=c10.MessageContent.verify(c0.content))return"content."+c1;if(null!=c0.messageId&&c0.hasOwnProperty("messageId")&&!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)))return"messageId: integer|Long expected";if(null!=c0.serverTimestamp&&c0.hasOwnProperty("serverTimestamp")&&!(c9.isInteger(c0.serverTimestamp)||c0.serverTimestamp&&c9.isInteger(c0.serverTimestamp.low)&&c9.isInteger(c0.serverTimestamp.high)))return"serverTimestamp: integer|Long expected";if(null!=c0.toUser&&c0.hasOwnProperty("toUser")&&!c9.isString(c0.toUser))return"toUser: string expected";if(null!=c0.to&&c0.hasOwnProperty("to")){if(!Array.isArray(c0.to))return"to: array expected";for(var c2=0;c2>>0,c0.messageId.high>>>0).toNumber())),null!=c0.serverTimestamp&&(c9.Long?(c1.serverTimestamp=c9.Long.fromValue(c0.serverTimestamp)).unsigned=!1:"string"==typeof c0.serverTimestamp?c1.serverTimestamp=parseInt(c0.serverTimestamp,10):"number"==typeof c0.serverTimestamp?c1.serverTimestamp=c0.serverTimestamp:"object"===(0,c3.default)(c0.serverTimestamp)&&(c1.serverTimestamp=new c9.LongBits(c0.serverTimestamp.low>>>0,c0.serverTimestamp.high>>>0).toNumber())),null!=c0.toUser&&(c1.toUser=String(c0.toUser)),c0.to){if(!Array.isArray(c0.to))throw TypeError(".Message.to: array expected");c1.to=[];for(var c2=0;c2>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.serverTimestamp&&c0.hasOwnProperty("serverTimestamp")&&("number"==typeof c0.serverTimestamp?c2.serverTimestamp=c1.longs===String?String(c0.serverTimestamp):c0.serverTimestamp:c2.serverTimestamp=c1.longs===String?c9.Long.prototype.toString.call(c0.serverTimestamp):c1.longs===Number?new c9.LongBits(c0.serverTimestamp.low>>>0,c0.serverTimestamp.high>>>0).toNumber():c0.serverTimestamp),null!=c0.toUser&&c0.hasOwnProperty("toUser")&&(c2.toUser=c0.toUser),c0.to&&c0.to.length){c2.to=[];for(var c4=0;c4>>3){case 1:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 2:c3.fromUser=c0.string();break;case 3:c3.readTime=c0.int64();break;case 4:c3.to&&c3.to.length||(c3.to=[]),c3.to.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("conversation"))throw c9.ProtocolError("missing required 'conversation'",{instance:c3});if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("readTime"))throw c9.ProtocolError("missing required 'readTime'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";var c1=c10.Conversation.verify(c0.conversation);if(c1)return"conversation."+c1;if(!c9.isString(c0.fromUser))return"fromUser: string expected";if(!(c9.isInteger(c0.readTime)||c0.readTime&&c9.isInteger(c0.readTime.low)&&c9.isInteger(c0.readTime.high)))return"readTime: integer|Long expected";if(null!=c0.to&&c0.hasOwnProperty("to")){if(!Array.isArray(c0.to))return"to: array expected";for(var c2=0;c2>>0,c0.readTime.high>>>0).toNumber())),c0.to){if(!Array.isArray(c0.to))throw TypeError(".ConvReadRequest.to: array expected");c1.to=[];for(var c2=0;c2>>0,c0.readTime.high>>>0).toNumber():c0.readTime),c0.to&&c0.to.length){c2.to=[];for(var c4=0;c4>>3){case 1:c3.id=c0.int32();break;case 2:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 3:c3.fromUser=c0.string();break;case 4:c3.readTime=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("conversation"))throw c9.ProtocolError("missing required 'conversation'",{instance:c3});if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("readTime"))throw c9.ProtocolError("missing required 'readTime'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.id&&c0.hasOwnProperty("id")&&!c9.isInteger(c0.id))return"id: integer expected";var c1=c10.Conversation.verify(c0.conversation);return c1?"conversation."+c1:c9.isString(c0.fromUser)?c9.isInteger(c0.readTime)||c0.readTime&&c9.isInteger(c0.readTime.low)&&c9.isInteger(c0.readTime.high)?null:"readTime: integer|Long expected":"fromUser: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ConvRead)return c0;var c1=new c10.ConvRead;if(null!=c0.id&&(c1.id=0|c0.id),null!=c0.conversation){if("object"!==(0,c3.default)(c0.conversation))throw TypeError(".ConvRead.conversation: object expected");c1.conversation=c10.Conversation.fromObject(c0.conversation)}return null!=c0.fromUser&&(c1.fromUser=String(c0.fromUser)),null!=c0.readTime&&(c9.Long?(c1.readTime=c9.Long.fromValue(c0.readTime)).unsigned=!1:"string"==typeof c0.readTime?c1.readTime=parseInt(c0.readTime,10):"number"==typeof c0.readTime?c1.readTime=c0.readTime:"object"===(0,c3.default)(c0.readTime)&&(c1.readTime=new c9.LongBits(c0.readTime.low>>>0,c0.readTime.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.id=0,c2.conversation=null,c2.fromUser="",c9.Long){var c3=new c9.Long(0,0,!1);c2.readTime=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.readTime=c1.longs===String?"0":0;return null!=c0.id&&c0.hasOwnProperty("id")&&(c2.id=c0.id),null!=c0.conversation&&c0.hasOwnProperty("conversation")&&(c2.conversation=c10.Conversation.toObject(c0.conversation,c1)),null!=c0.fromUser&&c0.hasOwnProperty("fromUser")&&(c2.fromUser=c0.fromUser),null!=c0.readTime&&c0.hasOwnProperty("readTime")&&("number"==typeof c0.readTime?c2.readTime=c1.longs===String?String(c0.readTime):c0.readTime:c2.readTime=c1.longs===String?c9.Long.prototype.toString.call(c0.readTime):c1.longs===Number?new c9.LongBits(c0.readTime.low>>>0,c0.readTime.high>>>0).toNumber():c0.readTime),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.Delivery=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.fromUser=c0.string();break;case 2:c3.receiveTime=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("receiveTime"))throw c9.ProtocolError("missing required 'receiveTime'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.fromUser)?c9.isInteger(c0.receiveTime)||c0.receiveTime&&c9.isInteger(c0.receiveTime.low)&&c9.isInteger(c0.receiveTime.high)?null:"receiveTime: integer|Long expected":"fromUser: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.Delivery)return c0;var c1=new c10.Delivery;return null!=c0.fromUser&&(c1.fromUser=String(c0.fromUser)),null!=c0.receiveTime&&(c9.Long?(c1.receiveTime=c9.Long.fromValue(c0.receiveTime)).unsigned=!1:"string"==typeof c0.receiveTime?c1.receiveTime=parseInt(c0.receiveTime,10):"number"==typeof c0.receiveTime?c1.receiveTime=c0.receiveTime:"object"===(0,c3.default)(c0.receiveTime)&&(c1.receiveTime=new c9.LongBits(c0.receiveTime.low>>>0,c0.receiveTime.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.fromUser="",c9.Long){var c3=new c9.Long(0,0,!1);c2.receiveTime=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.receiveTime=c1.longs===String?"0":0;return null!=c0.fromUser&&c0.hasOwnProperty("fromUser")&&(c2.fromUser=c0.fromUser),null!=c0.receiveTime&&c0.hasOwnProperty("receiveTime")&&("number"==typeof c0.receiveTime?c2.receiveTime=c1.longs===String?String(c0.receiveTime):c0.receiveTime:c2.receiveTime=c1.longs===String?c9.Long.prototype.toString.call(c0.receiveTime):c1.longs===Number?new c9.LongBits(c0.receiveTime.low>>>0,c0.receiveTime.high>>>0).toNumber():c0.receiveTime),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.NotifyDelivery=function(){function c0(c0){if(this.target=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.fromUser=c0.string();break;case 2:c3.receiveTime=c0.int64();break;case 3:c3.target&&c3.target.length||(c3.target=[]),c3.target.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("receiveTime"))throw c9.ProtocolError("missing required 'receiveTime'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.fromUser))return"fromUser: string expected";if(!(c9.isInteger(c0.receiveTime)||c0.receiveTime&&c9.isInteger(c0.receiveTime.low)&&c9.isInteger(c0.receiveTime.high)))return"receiveTime: integer|Long expected";if(null!=c0.target&&c0.hasOwnProperty("target")){if(!Array.isArray(c0.target))return"target: array expected";for(var c1=0;c1>>0,c0.receiveTime.high>>>0).toNumber())),c0.target){if(!Array.isArray(c0.target))throw TypeError(".NotifyDelivery.target: array expected");c1.target=[];for(var c2=0;c2>>0,c0.receiveTime.high>>>0).toNumber():c0.receiveTime),c0.target&&c0.target.length){c2.target=[];for(var c4=0;c4>>3){case 1:c3.uid=c0.string();break;case 2:c3.name=c0.string();break;case 3:c3.displayName=c0.string();break;case 4:c3.portrait=c0.string();break;case 5:c3.mobile=c0.string();break;case 6:c3.email=c0.string();break;case 7:c3.address=c0.string();break;case 8:c3.company=c0.string();break;case 9:c3.extra=c0.string();break;case 10:c3.updateDt=c0.int64();break;case 11:c3.gender=c0.int32();break;case 12:c3.social=c0.string();break;case 13:c3.type=c0.int32();break;case 14:c3.deleted=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("uid"))throw c9.ProtocolError("missing required 'uid'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.uid)?null!=c0.name&&c0.hasOwnProperty("name")&&!c9.isString(c0.name)?"name: string expected":null!=c0.displayName&&c0.hasOwnProperty("displayName")&&!c9.isString(c0.displayName)?"displayName: string expected":null!=c0.portrait&&c0.hasOwnProperty("portrait")&&!c9.isString(c0.portrait)?"portrait: string expected":null!=c0.mobile&&c0.hasOwnProperty("mobile")&&!c9.isString(c0.mobile)?"mobile: string expected":null!=c0.email&&c0.hasOwnProperty("email")&&!c9.isString(c0.email)?"email: string expected":null!=c0.address&&c0.hasOwnProperty("address")&&!c9.isString(c0.address)?"address: string expected":null!=c0.company&&c0.hasOwnProperty("company")&&!c9.isString(c0.company)?"company: string expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null!=c0.gender&&c0.hasOwnProperty("gender")&&!c9.isInteger(c0.gender)?"gender: integer expected":null!=c0.social&&c0.hasOwnProperty("social")&&!c9.isString(c0.social)?"social: string expected":null!=c0.type&&c0.hasOwnProperty("type")&&!c9.isInteger(c0.type)?"type: integer expected":null!=c0.deleted&&c0.hasOwnProperty("deleted")&&!c9.isInteger(c0.deleted)?"deleted: integer expected":null:"uid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.User)return c0;var c1=new c10.User;return null!=c0.uid&&(c1.uid=String(c0.uid)),null!=c0.name&&(c1.name=String(c0.name)),null!=c0.displayName&&(c1.displayName=String(c0.displayName)),null!=c0.portrait&&(c1.portrait=String(c0.portrait)),null!=c0.mobile&&(c1.mobile=String(c0.mobile)),null!=c0.email&&(c1.email=String(c0.email)),null!=c0.address&&(c1.address=String(c0.address)),null!=c0.company&&(c1.company=String(c0.company)),null!=c0.extra&&(c1.extra=String(c0.extra)),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.gender&&(c1.gender=0|c0.gender),null!=c0.social&&(c1.social=String(c0.social)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.deleted&&(c1.deleted=0|c0.deleted),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.uid="",c2.name="",c2.displayName="",c2.portrait="",c2.mobile="",c2.email="",c2.address="",c2.company="",c2.extra="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;c2.gender=0,c2.social="",c2.type=0,c2.deleted=0}return null!=c0.uid&&c0.hasOwnProperty("uid")&&(c2.uid=c0.uid),null!=c0.name&&c0.hasOwnProperty("name")&&(c2.name=c0.name),null!=c0.displayName&&c0.hasOwnProperty("displayName")&&(c2.displayName=c0.displayName),null!=c0.portrait&&c0.hasOwnProperty("portrait")&&(c2.portrait=c0.portrait),null!=c0.mobile&&c0.hasOwnProperty("mobile")&&(c2.mobile=c0.mobile),null!=c0.email&&c0.hasOwnProperty("email")&&(c2.email=c0.email),null!=c0.address&&c0.hasOwnProperty("address")&&(c2.address=c0.address),null!=c0.company&&c0.hasOwnProperty("company")&&(c2.company=c0.company),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.gender&&c0.hasOwnProperty("gender")&&(c2.gender=c0.gender),null!=c0.social&&c0.hasOwnProperty("social")&&(c2.social=c0.social),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.deleted&&c0.hasOwnProperty("deleted")&&(c2.deleted=c0.deleted),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.Robot=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.uid=c0.string();break;case 2:c3.state=c0.int32();break;case 3:c3.owner=c0.string();break;case 4:c3.secret=c0.string();break;case 5:c3.callback=c0.string();break;case 6:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("uid"))throw c9.ProtocolError("missing required 'uid'",{instance:c3});if(!c3.hasOwnProperty("state"))throw c9.ProtocolError("missing required 'state'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.uid)?c9.isInteger(c0.state)?null!=c0.owner&&c0.hasOwnProperty("owner")&&!c9.isString(c0.owner)?"owner: string expected":null!=c0.secret&&c0.hasOwnProperty("secret")&&!c9.isString(c0.secret)?"secret: string expected":null!=c0.callback&&c0.hasOwnProperty("callback")&&!c9.isString(c0.callback)?"callback: string expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"state: integer expected":"uid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.Robot)return c0;var c1=new c10.Robot;return null!=c0.uid&&(c1.uid=String(c0.uid)),null!=c0.state&&(c1.state=0|c0.state),null!=c0.owner&&(c1.owner=String(c0.owner)),null!=c0.secret&&(c1.secret=String(c0.secret)),null!=c0.callback&&(c1.callback=String(c0.callback)),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.uid="",c2.state=0,c2.owner="",c2.secret="",c2.callback="",c2.extra=""),null!=c0.uid&&c0.hasOwnProperty("uid")&&(c2.uid=c0.uid),null!=c0.state&&c0.hasOwnProperty("state")&&(c2.state=c0.state),null!=c0.owner&&c0.hasOwnProperty("owner")&&(c2.owner=c0.owner),null!=c0.secret&&c0.hasOwnProperty("secret")&&(c2.secret=c0.secret),null!=c0.callback&&c0.hasOwnProperty("callback")&&(c2.callback=c0.callback),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetRobotsResult=function(){function c0(c0){if(this.entry=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.Robot.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3){case 1:c3.uid=c0.string();break;case 2:c3.state=c0.int32();break;case 3:c3.token=c0.string();break;case 4:c3.owner&&c3.owner.length||(c3.owner=[]),c3.owner.push(c0.string());break;case 5:c3.extra=c0.string();break;case 6:c3.updateDt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("uid"))throw c9.ProtocolError("missing required 'uid'",{instance:c3});if(!c3.hasOwnProperty("state"))throw c9.ProtocolError("missing required 'state'",{instance:c3});if(!c3.hasOwnProperty("token"))throw c9.ProtocolError("missing required 'token'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.uid))return"uid: string expected";if(!c9.isInteger(c0.state))return"state: integer expected";if(!c9.isString(c0.token))return"token: string expected";if(null!=c0.owner&&c0.hasOwnProperty("owner")){if(!Array.isArray(c0.owner))return"owner: array expected";for(var c1=0;c1>>0,c0.updateDt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if((c1.arrays||c1.defaults)&&(c2.owner=[]),c1.defaults)if(c2.uid="",c2.state=0,c2.token="",c2.extra="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;if(null!=c0.uid&&c0.hasOwnProperty("uid")&&(c2.uid=c0.uid),null!=c0.state&&c0.hasOwnProperty("state")&&(c2.state=c0.state),null!=c0.token&&c0.hasOwnProperty("token")&&(c2.token=c0.token),c0.owner&&c0.owner.length){c2.owner=[];for(var c4=0;c4>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetDeviceResult=function(){function c0(c0){if(this.entry=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.Device.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3){case 1:c3.platform=c0.int32();break;case 2:c3.appName=c0.string();break;case 3:c3.deviceToken=c0.string();break;case 4:c3.pushType=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("platform"))throw c9.ProtocolError("missing required 'platform'",{instance:c3});if(!c3.hasOwnProperty("appName"))throw c9.ProtocolError("missing required 'appName'",{instance:c3});if(!c3.hasOwnProperty("deviceToken"))throw c9.ProtocolError("missing required 'deviceToken'",{instance:c3});if(!c3.hasOwnProperty("pushType"))throw c9.ProtocolError("missing required 'pushType'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.platform)?c9.isString(c0.appName)?c9.isString(c0.deviceToken)?c9.isInteger(c0.pushType)?null:"pushType: integer expected":"deviceToken: string expected":"appName: string expected":"platform: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.UploadDeviceTokenRequest)return c0;var c1=new c10.UploadDeviceTokenRequest;return null!=c0.platform&&(c1.platform=0|c0.platform),null!=c0.appName&&(c1.appName=String(c0.appName)),null!=c0.deviceToken&&(c1.deviceToken=String(c0.deviceToken)),null!=c0.pushType&&(c1.pushType=0|c0.pushType),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.platform=0,c2.appName="",c2.deviceToken="",c2.pushType=0),null!=c0.platform&&c0.hasOwnProperty("platform")&&(c2.platform=c0.platform),null!=c0.appName&&c0.hasOwnProperty("appName")&&(c2.appName=c0.appName),null!=c0.deviceToken&&c0.hasOwnProperty("deviceToken")&&(c2.deviceToken=c0.deviceToken),null!=c0.pushType&&c0.hasOwnProperty("pushType")&&(c2.pushType=c0.pushType),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ModifyGroupInfoRequest=function(){function c0(c0){if(this.toLine=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.groupId=c0.string();break;case 2:c3.type=c0.int32();break;case 3:c3.value=c0.string();break;case 4:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.groupId=c0.string();break;case 2:c3.type=c0.int32();break;case 3:c3.userId&&c3.userId.length||(c3.userId=[]),c3.userId.push(c0.string());break;case 4:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.type=c0.int32();break;case 2:c3.value=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("value"))throw c9.ProtocolError("missing required 'value'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.type)?c9.isString(c0.value)?null:"value: string expected":"type: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.InfoEntry)return c0;var c1=new c10.InfoEntry;return null!=c0.type&&(c1.type=0|c0.type),null!=c0.value&&(c1.value=String(c0.value)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.type=0,c2.value=""),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.value&&c0.hasOwnProperty("value")&&(c2.value=c0.value),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ModifyMyInfoRequest=function(){function c0(c0){if(this.entry=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.InfoEntry.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3){case 1:c3.type=c0.int32();break;case 2:c3.head=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.type)?c9.isInteger(c0.head)||c0.head&&c9.isInteger(c0.head.low)&&c9.isInteger(c0.head.high)?null:"head: integer|Long expected":"type: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.NotifyMessage)return c0;var c1=new c10.NotifyMessage;return null!=c0.type&&(c1.type=0|c0.type),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.type=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0;return null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.NotifyGroupMessage=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.head=c0.int64();break;case 2:c3.target=c0.string();break;case 3:c3.line=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});if(!c3.hasOwnProperty("target"))throw c9.ProtocolError("missing required 'target'",{instance:c3});if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.head)||c0.head&&c9.isInteger(c0.head.low)&&c9.isInteger(c0.head.high)?c9.isString(c0.target)?c9.isInteger(c0.line)?null:"line: integer expected":"target: string expected":"head: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.NotifyGroupMessage)return c0;var c1=new c10.NotifyGroupMessage;return null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),null!=c0.target&&(c1.target=String(c0.target)),null!=c0.line&&(c1.line=0|c0.line),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0;c2.target="",c2.line=0}return null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),null!=c0.target&&c0.hasOwnProperty("target")&&(c2.target=c0.target),null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullMessageRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.id=c0.int64();break;case 2:c3.type=c0.int32();break;case 3:c3.delay=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("id"))throw c9.ProtocolError("missing required 'id'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.id)||c0.id&&c9.isInteger(c0.id.low)&&c9.isInteger(c0.id.high)?c9.isInteger(c0.type)?null!=c0.delay&&c0.hasOwnProperty("delay")&&!(c9.isInteger(c0.delay)||c0.delay&&c9.isInteger(c0.delay.low)&&c9.isInteger(c0.delay.high))?"delay: integer|Long expected":null:"type: integer expected":"id: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullMessageRequest)return c0;var c1=new c10.PullMessageRequest;return null!=c0.id&&(c9.Long?(c1.id=c9.Long.fromValue(c0.id)).unsigned=!1:"string"==typeof c0.id?c1.id=parseInt(c0.id,10):"number"==typeof c0.id?c1.id=c0.id:"object"===(0,c3.default)(c0.id)&&(c1.id=new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber())),null!=c0.type&&(c1.type=0|c0.type),null!=c0.delay&&(c9.Long?(c1.delay=c9.Long.fromValue(c0.delay)).unsigned=!1:"string"==typeof c0.delay?c1.delay=parseInt(c0.delay,10):"number"==typeof c0.delay?c1.delay=c0.delay:"object"===(0,c3.default)(c0.delay)&&(c1.delay=new c9.LongBits(c0.delay.low>>>0,c0.delay.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.id=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.id=c1.longs===String?"0":0;if(c2.type=0,c9.Long){c3=new c9.Long(0,0,!1);c2.delay=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.delay=c1.longs===String?"0":0}return null!=c0.id&&c0.hasOwnProperty("id")&&("number"==typeof c0.id?c2.id=c1.longs===String?String(c0.id):c0.id:c2.id=c1.longs===String?c9.Long.prototype.toString.call(c0.id):c1.longs===Number?new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber():c0.id),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.delay&&c0.hasOwnProperty("delay")&&("number"==typeof c0.delay?c2.delay=c1.longs===String?String(c0.delay):c0.delay:c2.delay=c1.longs===String?c9.Long.prototype.toString.call(c0.delay):c1.longs===Number?new c9.LongBits(c0.delay.low>>>0,c0.delay.high>>>0).toNumber():c0.delay),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullMessageResult=function(){function c0(c0){if(this.message=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.message&&c3.message.length||(c3.message=[]),c3.message.push(c10.Message.decode(c0,c0.uint32()));break;case 2:c3.current=c0.int64();break;case 3:c3.head=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("current"))throw c9.ProtocolError("missing required 'current'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.message&&c0.hasOwnProperty("message")){if(!Array.isArray(c0.message))return"message: array expected";for(var c1=0;c1>>0,c0.current.high>>>0).toNumber())),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if((c1.arrays||c1.defaults)&&(c2.message=[]),c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.current=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.current=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0}if(c0.message&&c0.message.length){c2.message=[];for(var c4=0;c4>>0,c0.current.high>>>0).toNumber():c0.current),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullReadResult=function(){function c0(c0){if(this.read=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.read&&c3.read.length||(c3.read=[]),c3.read.push(c10.ConvRead.decode(c0,c0.uint32()));break;case 2:c3.current=c0.int64();break;case 3:c3.head=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("current"))throw c9.ProtocolError("missing required 'current'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.read&&c0.hasOwnProperty("read")){if(!Array.isArray(c0.read))return"read: array expected";for(var c1=0;c1>>0,c0.current.high>>>0).toNumber())),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if((c1.arrays||c1.defaults)&&(c2.read=[]),c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.current=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.current=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0}if(c0.read&&c0.read.length){c2.read=[];for(var c4=0;c4>>0,c0.current.high>>>0).toNumber():c0.current),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullDeliveryResult=function(){function c0(c0){if(this.delivery=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.delivery&&c3.delivery.length||(c3.delivery=[]),c3.delivery.push(c10.Delivery.decode(c0,c0.uint32()));break;case 2:c3.current=c0.int64();break;case 3:c3.head=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("current"))throw c9.ProtocolError("missing required 'current'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.delivery&&c0.hasOwnProperty("delivery")){if(!Array.isArray(c0.delivery))return"delivery: array expected";for(var c1=0;c1>>0,c0.current.high>>>0).toNumber())),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if((c1.arrays||c1.defaults)&&(c2.delivery=[]),c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.current=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.current=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0}if(c0.delivery&&c0.delivery.length){c2.delivery=[];for(var c4=0;c4>>0,c0.current.high>>>0).toNumber():c0.current),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GroupConv=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.line=c0.int32();break;case 2:c3.groupId=c0.string();break;case 3:c3.msgHead=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});if(!c3.hasOwnProperty("groupId"))throw c9.ProtocolError("missing required 'groupId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.line)?c9.isString(c0.groupId)?null!=c0.msgHead&&c0.hasOwnProperty("msgHead")&&!(c9.isInteger(c0.msgHead)||c0.msgHead&&c9.isInteger(c0.msgHead.low)&&c9.isInteger(c0.msgHead.high))?"msgHead: integer|Long expected":null:"groupId: string expected":"line: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GroupConv)return c0;var c1=new c10.GroupConv;return null!=c0.line&&(c1.line=0|c0.line),null!=c0.groupId&&(c1.groupId=String(c0.groupId)),null!=c0.msgHead&&(c9.Long?(c1.msgHead=c9.Long.fromValue(c0.msgHead)).unsigned=!1:"string"==typeof c0.msgHead?c1.msgHead=parseInt(c0.msgHead,10):"number"==typeof c0.msgHead?c1.msgHead=c0.msgHead:"object"===(0,c3.default)(c0.msgHead)&&(c1.msgHead=new c9.LongBits(c0.msgHead.low>>>0,c0.msgHead.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.line=0,c2.groupId="",c9.Long){var c3=new c9.Long(0,0,!1);c2.msgHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.msgHead=c1.longs===String?"0":0;return null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),null!=c0.groupId&&c0.hasOwnProperty("groupId")&&(c2.groupId=c0.groupId),null!=c0.msgHead&&c0.hasOwnProperty("msgHead")&&("number"==typeof c0.msgHead?c2.msgHead=c1.longs===String?String(c0.msgHead):c0.msgHead:c2.msgHead=c1.longs===String?c9.Long.prototype.toString.call(c0.msgHead):c1.longs===Number?new c9.LongBits(c0.msgHead.low>>>0,c0.msgHead.high>>>0).toNumber():c0.msgHead),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullGroupConvRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.id=c0.int64();break;case 2:c3.target=c0.string();break;case 3:c3.line=c0.int32();break;case 4:c3.messageId=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("id"))throw c9.ProtocolError("missing required 'id'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.id)||c0.id&&c9.isInteger(c0.id.low)&&c9.isInteger(c0.id.high)?null!=c0.target&&c0.hasOwnProperty("target")&&!c9.isString(c0.target)?"target: string expected":null!=c0.line&&c0.hasOwnProperty("line")&&!c9.isInteger(c0.line)?"line: integer expected":null!=c0.messageId&&c0.hasOwnProperty("messageId")&&!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high))?"messageId: integer|Long expected":null:"id: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullGroupConvRequest)return c0;var c1=new c10.PullGroupConvRequest;return null!=c0.id&&(c9.Long?(c1.id=c9.Long.fromValue(c0.id)).unsigned=!1:"string"==typeof c0.id?c1.id=parseInt(c0.id,10):"number"==typeof c0.id?c1.id=c0.id:"object"===(0,c3.default)(c0.id)&&(c1.id=new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber())),null!=c0.target&&(c1.target=String(c0.target)),null!=c0.line&&(c1.line=0|c0.line),null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.id=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.id=c1.longs===String?"0":0;if(c2.target="",c2.line=0,c9.Long){c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0}return null!=c0.id&&c0.hasOwnProperty("id")&&("number"==typeof c0.id?c2.id=c1.longs===String?String(c0.id):c0.id:c2.id=c1.longs===String?c9.Long.prototype.toString.call(c0.id):c1.longs===Number?new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber():c0.id),null!=c0.target&&c0.hasOwnProperty("target")&&(c2.target=c0.target),null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullGroupConvResult=function(){function c0(c0){if(this.conv=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.conv&&c3.conv.length||(c3.conv=[]),c3.conv.push(c10.GroupConv.decode(c0,c0.uint32()));break;case 2:c3.current=c0.int64();break;case 3:c3.head=c0.int64();break;case 4:c3.groupMessage=c10.PullGroupMessageResult.decode(c0,c0.uint32());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("current"))throw c9.ProtocolError("missing required 'current'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.conv&&c0.hasOwnProperty("conv")){if(!Array.isArray(c0.conv))return"conv: array expected";for(var c1=0;c1>>0,c0.current.high>>>0).toNumber())),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),null!=c0.groupMessage){if("object"!==(0,c3.default)(c0.groupMessage))throw TypeError(".PullGroupConvResult.groupMessage: object expected");c1.groupMessage=c10.PullGroupMessageResult.fromObject(c0.groupMessage)}return c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if((c1.arrays||c1.defaults)&&(c2.conv=[]),c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.current=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.current=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0;c2.groupMessage=null}if(c0.conv&&c0.conv.length){c2.conv=[];for(var c4=0;c4>>0,c0.current.high>>>0).toNumber():c0.current),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),null!=c0.groupMessage&&c0.hasOwnProperty("groupMessage")&&(c2.groupMessage=c10.PullGroupMessageResult.toObject(c0.groupMessage,c1)),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullGroupMessageRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.groupId=c0.string();break;case 2:c3.line=c0.int32();break;case 3:c3.id=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("groupId"))throw c9.ProtocolError("missing required 'groupId'",{instance:c3});if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});if(!c3.hasOwnProperty("id"))throw c9.ProtocolError("missing required 'id'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.groupId)?c9.isInteger(c0.line)?c9.isInteger(c0.id)||c0.id&&c9.isInteger(c0.id.low)&&c9.isInteger(c0.id.high)?null:"id: integer|Long expected":"line: integer expected":"groupId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullGroupMessageRequest)return c0;var c1=new c10.PullGroupMessageRequest;return null!=c0.groupId&&(c1.groupId=String(c0.groupId)),null!=c0.line&&(c1.line=0|c0.line),null!=c0.id&&(c9.Long?(c1.id=c9.Long.fromValue(c0.id)).unsigned=!1:"string"==typeof c0.id?c1.id=parseInt(c0.id,10):"number"==typeof c0.id?c1.id=c0.id:"object"===(0,c3.default)(c0.id)&&(c1.id=new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.groupId="",c2.line=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.id=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.id=c1.longs===String?"0":0;return null!=c0.groupId&&c0.hasOwnProperty("groupId")&&(c2.groupId=c0.groupId),null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),null!=c0.id&&c0.hasOwnProperty("id")&&("number"==typeof c0.id?c2.id=c1.longs===String?String(c0.id):c0.id:c2.id=c1.longs===String?c9.Long.prototype.toString.call(c0.id):c1.longs===Number?new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber():c0.id),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullGroupMessageRequests=function(){function c0(c0){if(this.request=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.request&&c3.request.length||(c3.request=[]),c3.request.push(c10.PullGroupMessageRequest.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.request&&c0.hasOwnProperty("request")){if(!Array.isArray(c0.request))return"request: array expected";for(var c1=0;c1>>3){case 1:c3.messageId=c0.int64();break;case 2:c3.fromUser=c0.string();break;case 3:c3.flag=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("flag"))throw c9.ProtocolError("missing required 'flag'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)?c9.isString(c0.fromUser)?c9.isInteger(c0.flag)?null:"flag: integer expected":"fromUser: string expected":"messageId: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GroupMessage)return c0;var c1=new c10.GroupMessage;return null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),null!=c0.fromUser&&(c1.fromUser=String(c0.fromUser)),null!=c0.flag&&(c1.flag=0|c0.flag),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;c2.fromUser="",c2.flag=0}return null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.fromUser&&c0.hasOwnProperty("fromUser")&&(c2.fromUser=c0.fromUser),null!=c0.flag&&c0.hasOwnProperty("flag")&&(c2.flag=c0.flag),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullGroupMessageResult=function(){function c0(c0){if(this.message=[],this.msg=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.message&&c3.message.length||(c3.message=[]),c3.message.push(c10.GroupMessage.decode(c0,c0.uint32()));break;case 2:c3.current=c0.int64();break;case 3:c3.head=c0.int64();break;case 4:c3.groupId=c0.string();break;case 5:c3.line=c0.int32();break;case 6:c3.msg&&c3.msg.length||(c3.msg=[]),c3.msg.push(c10.Message.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("current"))throw c9.ProtocolError("missing required 'current'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});if(!c3.hasOwnProperty("groupId"))throw c9.ProtocolError("missing required 'groupId'",{instance:c3});if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.message&&c0.hasOwnProperty("message")){if(!Array.isArray(c0.message))return"message: array expected";for(var c1=0;c1>>0,c0.current.high>>>0).toNumber())),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),null!=c0.groupId&&(c1.groupId=String(c0.groupId)),null!=c0.line&&(c1.line=0|c0.line),c0.msg){if(!Array.isArray(c0.msg))throw TypeError(".PullGroupMessageResult.msg: array expected");c1.msg=[];for(c2=0;c2>>0,c0.current.high>>>0).toNumber():c0.current),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),null!=c0.groupId&&c0.hasOwnProperty("groupId")&&(c2.groupId=c0.groupId),null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),c0.msg&&c0.msg.length){c2.msg=[];for(c4=0;c4>>3==1)c3.result&&c3.result.length||(c3.result=[]),c3.result.push(c10.PullGroupMessageResult.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.result&&c0.hasOwnProperty("result")){if(!Array.isArray(c0.result))return"result: array expected";for(var c1=0;c1>>3==1)c3.message&&c3.message.length||(c3.message=[]),c3.message.push(c10.Message.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.message&&c0.hasOwnProperty("message")){if(!Array.isArray(c0.message))return"message: array expected";for(var c1=0;c1>>3==1)c3.info&&c3.info.length||(c3.info=[]),c3.info.push(c10.GroupInfo.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.info&&c0.hasOwnProperty("info")){if(!Array.isArray(c0.info))return"info: array expected";for(var c1=0;c1>>3){case 1:c3.target=c0.string();break;case 2:c3.head=c0.int64();break;case 3:c3.sum=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("target"))throw c9.ProtocolError("missing required 'target'",{instance:c3});if(!c3.hasOwnProperty("head"))throw c9.ProtocolError("missing required 'head'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.target)?c9.isInteger(c0.head)||c0.head&&c9.isInteger(c0.head.low)&&c9.isInteger(c0.head.high)?null!=c0.sum&&c0.hasOwnProperty("sum")&&!(c9.isInteger(c0.sum)||c0.sum&&c9.isInteger(c0.sum.low)&&c9.isInteger(c0.sum.high))?"sum: integer|Long expected":null:"head: integer|Long expected":"target: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PullGroupMemberRequest)return c0;var c1=new c10.PullGroupMemberRequest;return null!=c0.target&&(c1.target=String(c0.target)),null!=c0.head&&(c9.Long?(c1.head=c9.Long.fromValue(c0.head)).unsigned=!1:"string"==typeof c0.head?c1.head=parseInt(c0.head,10):"number"==typeof c0.head?c1.head=c0.head:"object"===(0,c3.default)(c0.head)&&(c1.head=new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber())),null!=c0.sum&&(c9.Long?(c1.sum=c9.Long.fromValue(c0.sum)).unsigned=!1:"string"==typeof c0.sum?c1.sum=parseInt(c0.sum,10):"number"==typeof c0.sum?c1.sum=c0.sum:"object"===(0,c3.default)(c0.sum)&&(c1.sum=new c9.LongBits(c0.sum.low>>>0,c0.sum.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.target="",c9.Long){var c3=new c9.Long(0,0,!1);c2.head=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.head=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.sum=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.sum=c1.longs===String?"0":0}return null!=c0.target&&c0.hasOwnProperty("target")&&(c2.target=c0.target),null!=c0.head&&c0.hasOwnProperty("head")&&("number"==typeof c0.head?c2.head=c1.longs===String?String(c0.head):c0.head:c2.head=c1.longs===String?c9.Long.prototype.toString.call(c0.head):c1.longs===Number?new c9.LongBits(c0.head.low>>>0,c0.head.high>>>0).toNumber():c0.head),null!=c0.sum&&c0.hasOwnProperty("sum")&&("number"==typeof c0.sum?c2.sum=c1.longs===String?String(c0.sum):c0.sum:c2.sum=c1.longs===String?c9.Long.prototype.toString.call(c0.sum):c1.longs===Number?new c9.LongBits(c0.sum.low>>>0,c0.sum.high>>>0).toNumber():c0.sum),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullGroupMemberResult=function(){function c0(c0){if(this.member=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.member&&c3.member.length||(c3.member=[]),c3.member.push(c10.GroupMember.decode(c0,c0.uint32()));break;case 2:c3.full=c0.int32();break;default:c0.skipType(7&c4)}}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.member&&c0.hasOwnProperty("member")){if(!Array.isArray(c0.member))return"member: array expected";for(var c1=0;c1>>3){case 1:c3.uid=c0.string();break;case 2:c3.updateDt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("uid"))throw c9.ProtocolError("missing required 'uid'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.uid)?null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null:"uid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.UserRequest)return c0;var c1=new c10.UserRequest;return null!=c0.uid&&(c1.uid=String(c0.uid)),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.uid="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;return null!=c0.uid&&c0.hasOwnProperty("uid")&&(c2.uid=c0.uid),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullUserRequest=function(){function c0(c0){if(this.request=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.request&&c3.request.length||(c3.request=[]),c3.request.push(c10.UserRequest.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.request&&c0.hasOwnProperty("request")){if(!Array.isArray(c0.request))return"request: array expected";for(var c1=0;c1>>3){case 1:c3.user=c10.User.decode(c0,c0.uint32());break;case 2:c3.code=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("user"))throw c9.ProtocolError("missing required 'user'",{instance:c3});if(!c3.hasOwnProperty("code"))throw c9.ProtocolError("missing required 'code'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";var c1=c10.User.verify(c0.user);return c1?"user."+c1:c9.isInteger(c0.code)?null:"code: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.UserResult)return c0;var c1=new c10.UserResult;if(null!=c0.user){if("object"!==(0,c3.default)(c0.user))throw TypeError(".UserResult.user: object expected");c1.user=c10.User.fromObject(c0.user)}return null!=c0.code&&(c1.code=0|c0.code),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.user=null,c2.code=0),null!=c0.user&&c0.hasOwnProperty("user")&&(c2.user=c10.User.toObject(c0.user,c1)),null!=c0.code&&c0.hasOwnProperty("code")&&(c2.code=c0.code),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PullUserResult=function(){function c0(c0){if(this.result=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.result&&c3.result.length||(c3.result=[]),c3.result.push(c10.UserResult.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.result&&c0.hasOwnProperty("result")){if(!Array.isArray(c0.result))return"result: array expected";for(var c1=0;c1>>3){case 1:c3.groupId=c0.string();break;case 2:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.groupId=c0.string();break;case 2:c3.removedMember&&c3.removedMember.length||(c3.removedMember=[]),c3.removedMember.push(c0.string());break;case 3:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.groupId=c0.string();break;case 2:c3.newOwner=c0.string();break;case 3:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.groupId=c0.string();break;case 2:c3.alias=c0.string();break;case 3:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.groupId=c0.string();break;case 2:if(c3.toLine&&c3.toLine.length||(c3.toLine=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>3){case 1:c3.scope=c0.int32();break;case 2:c3.key=c0.string();break;case 3:c3.value=c0.string();break;case 4:c3.updateDt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("scope"))throw c9.ProtocolError("missing required 'scope'",{instance:c3});if(!c3.hasOwnProperty("key"))throw c9.ProtocolError("missing required 'key'",{instance:c3});if(!c3.hasOwnProperty("value"))throw c9.ProtocolError("missing required 'value'",{instance:c3});if(!c3.hasOwnProperty("updateDt"))throw c9.ProtocolError("missing required 'updateDt'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.scope)?c9.isString(c0.key)?c9.isString(c0.value)?c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high)?null:"updateDt: integer|Long expected":"value: string expected":"key: string expected":"scope: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.UserSettingEntry)return c0;var c1=new c10.UserSettingEntry;return null!=c0.scope&&(c1.scope=0|c0.scope),null!=c0.key&&(c1.key=String(c0.key)),null!=c0.value&&(c1.value=String(c0.value)),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.scope=0,c2.key="",c2.value="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;return null!=c0.scope&&c0.hasOwnProperty("scope")&&(c2.scope=c0.scope),null!=c0.key&&c0.hasOwnProperty("key")&&(c2.key=c0.key),null!=c0.value&&c0.hasOwnProperty("value")&&(c2.value=c0.value),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ModifyUserSettingReq=function(){function c0(c0){if(this.target=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.scope=c0.int32();break;case 2:c3.key=c0.string();break;case 3:c3.value=c0.string();break;case 4:c3.target&&c3.target.length||(c3.target=[]),c3.target.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("scope"))throw c9.ProtocolError("missing required 'scope'",{instance:c3});if(!c3.hasOwnProperty("key"))throw c9.ProtocolError("missing required 'key'",{instance:c3});if(!c3.hasOwnProperty("value"))throw c9.ProtocolError("missing required 'value'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isInteger(c0.scope))return"scope: integer expected";if(!c9.isString(c0.key))return"key: string expected";if(!c9.isString(c0.value))return"value: string expected";if(null!=c0.target&&c0.hasOwnProperty("target")){if(!Array.isArray(c0.target))return"target: array expected";for(var c1=0;c1>>3==1)c3.version=c0.int64();else c0.skipType(7&c4)}if(!c3.hasOwnProperty("version"))throw c9.ProtocolError("missing required 'version'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.version)||c0.version&&c9.isInteger(c0.version.low)&&c9.isInteger(c0.version.high)?null:"version: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.Version)return c0;var c1=new c10.Version;return null!=c0.version&&(c9.Long?(c1.version=c9.Long.fromValue(c0.version)).unsigned=!1:"string"==typeof c0.version?c1.version=parseInt(c0.version,10):"number"==typeof c0.version?c1.version=c0.version:"object"===(0,c3.default)(c0.version)&&(c1.version=new c9.LongBits(c0.version.low>>>0,c0.version.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c9.Long){var c3=new c9.Long(0,0,!1);c2.version=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.version=c1.longs===String?"0":0;return null!=c0.version&&c0.hasOwnProperty("version")&&("number"==typeof c0.version?c2.version=c1.longs===String?String(c0.version):c0.version:c2.version=c1.longs===String?c9.Long.prototype.toString.call(c0.version):c1.longs===Number?new c9.LongBits(c0.version.low>>>0,c0.version.high>>>0).toNumber():c0.version),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetUserSettingResult=function(){function c0(c0){if(this.entry=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.UserSettingEntry.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3){case 1:c3.uid=c0.string();break;case 2:c3.state=c0.int32();break;case 3:c3.updateDt=c0.int64();break;case 4:c3.alias=c0.string();break;case 5:c3.blacked=c0.int32();break;case 6:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("uid"))throw c9.ProtocolError("missing required 'uid'",{instance:c3});if(!c3.hasOwnProperty("state"))throw c9.ProtocolError("missing required 'state'",{instance:c3});if(!c3.hasOwnProperty("updateDt"))throw c9.ProtocolError("missing required 'updateDt'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.uid)?c9.isInteger(c0.state)?c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high)?null!=c0.alias&&c0.hasOwnProperty("alias")&&!c9.isString(c0.alias)?"alias: string expected":null!=c0.blacked&&c0.hasOwnProperty("blacked")&&!c9.isInteger(c0.blacked)?"blacked: integer expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"updateDt: integer|Long expected":"state: integer expected":"uid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.Friend)return c0;var c1=new c10.Friend;return null!=c0.uid&&(c1.uid=String(c0.uid)),null!=c0.state&&(c1.state=0|c0.state),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.alias&&(c1.alias=String(c0.alias)),null!=c0.blacked&&(c1.blacked=0|c0.blacked),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.uid="",c2.state=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;c2.alias="",c2.blacked=0,c2.extra=""}return null!=c0.uid&&c0.hasOwnProperty("uid")&&(c2.uid=c0.uid),null!=c0.state&&c0.hasOwnProperty("state")&&(c2.state=c0.state),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.alias&&c0.hasOwnProperty("alias")&&(c2.alias=c0.alias),null!=c0.blacked&&c0.hasOwnProperty("blacked")&&(c2.blacked=c0.blacked),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetFriendsResult=function(){function c0(c0){if(this.entry=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.Friend.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.FriendRequest.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3){case 1:c3.msgHead=c0.int64();break;case 2:c3.friendHead=c0.int64();break;case 3:c3.friendRqHead=c0.int64();break;case 4:c3.settingHead=c0.int64();break;case 5:c3.nodeAddr=c0.string();break;case 6:c3.nodePort=c0.int32();break;case 7:c3.serverTime=c0.int64();break;case 8:c3.nodeId=c0.string();break;case 9:c3.recvHead=c0.int64();break;case 10:c3.readHead=c0.int64();break;case 11:c3.groupConvHead=c0.int64();break;default:c0.skipType(7&c4)}}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":null!=c0.msgHead&&c0.hasOwnProperty("msgHead")&&!(c9.isInteger(c0.msgHead)||c0.msgHead&&c9.isInteger(c0.msgHead.low)&&c9.isInteger(c0.msgHead.high))?"msgHead: integer|Long expected":null!=c0.friendHead&&c0.hasOwnProperty("friendHead")&&!(c9.isInteger(c0.friendHead)||c0.friendHead&&c9.isInteger(c0.friendHead.low)&&c9.isInteger(c0.friendHead.high))?"friendHead: integer|Long expected":null!=c0.friendRqHead&&c0.hasOwnProperty("friendRqHead")&&!(c9.isInteger(c0.friendRqHead)||c0.friendRqHead&&c9.isInteger(c0.friendRqHead.low)&&c9.isInteger(c0.friendRqHead.high))?"friendRqHead: integer|Long expected":null!=c0.settingHead&&c0.hasOwnProperty("settingHead")&&!(c9.isInteger(c0.settingHead)||c0.settingHead&&c9.isInteger(c0.settingHead.low)&&c9.isInteger(c0.settingHead.high))?"settingHead: integer|Long expected":null!=c0.nodeAddr&&c0.hasOwnProperty("nodeAddr")&&!c9.isString(c0.nodeAddr)?"nodeAddr: string expected":null!=c0.nodePort&&c0.hasOwnProperty("nodePort")&&!c9.isInteger(c0.nodePort)?"nodePort: integer expected":null!=c0.serverTime&&c0.hasOwnProperty("serverTime")&&!(c9.isInteger(c0.serverTime)||c0.serverTime&&c9.isInteger(c0.serverTime.low)&&c9.isInteger(c0.serverTime.high))?"serverTime: integer|Long expected":null!=c0.nodeId&&c0.hasOwnProperty("nodeId")&&!c9.isString(c0.nodeId)?"nodeId: string expected":null!=c0.recvHead&&c0.hasOwnProperty("recvHead")&&!(c9.isInteger(c0.recvHead)||c0.recvHead&&c9.isInteger(c0.recvHead.low)&&c9.isInteger(c0.recvHead.high))?"recvHead: integer|Long expected":null!=c0.readHead&&c0.hasOwnProperty("readHead")&&!(c9.isInteger(c0.readHead)||c0.readHead&&c9.isInteger(c0.readHead.low)&&c9.isInteger(c0.readHead.high))?"readHead: integer|Long expected":null!=c0.groupConvHead&&c0.hasOwnProperty("groupConvHead")&&!(c9.isInteger(c0.groupConvHead)||c0.groupConvHead&&c9.isInteger(c0.groupConvHead.low)&&c9.isInteger(c0.groupConvHead.high))?"groupConvHead: integer|Long expected":null},c0.fromObject=function(c0){if(c0 instanceof c10.ConnectAckPayload)return c0;var c1=new c10.ConnectAckPayload;return null!=c0.msgHead&&(c9.Long?(c1.msgHead=c9.Long.fromValue(c0.msgHead)).unsigned=!1:"string"==typeof c0.msgHead?c1.msgHead=parseInt(c0.msgHead,10):"number"==typeof c0.msgHead?c1.msgHead=c0.msgHead:"object"===(0,c3.default)(c0.msgHead)&&(c1.msgHead=new c9.LongBits(c0.msgHead.low>>>0,c0.msgHead.high>>>0).toNumber())),null!=c0.friendHead&&(c9.Long?(c1.friendHead=c9.Long.fromValue(c0.friendHead)).unsigned=!1:"string"==typeof c0.friendHead?c1.friendHead=parseInt(c0.friendHead,10):"number"==typeof c0.friendHead?c1.friendHead=c0.friendHead:"object"===(0,c3.default)(c0.friendHead)&&(c1.friendHead=new c9.LongBits(c0.friendHead.low>>>0,c0.friendHead.high>>>0).toNumber())),null!=c0.friendRqHead&&(c9.Long?(c1.friendRqHead=c9.Long.fromValue(c0.friendRqHead)).unsigned=!1:"string"==typeof c0.friendRqHead?c1.friendRqHead=parseInt(c0.friendRqHead,10):"number"==typeof c0.friendRqHead?c1.friendRqHead=c0.friendRqHead:"object"===(0,c3.default)(c0.friendRqHead)&&(c1.friendRqHead=new c9.LongBits(c0.friendRqHead.low>>>0,c0.friendRqHead.high>>>0).toNumber())),null!=c0.settingHead&&(c9.Long?(c1.settingHead=c9.Long.fromValue(c0.settingHead)).unsigned=!1:"string"==typeof c0.settingHead?c1.settingHead=parseInt(c0.settingHead,10):"number"==typeof c0.settingHead?c1.settingHead=c0.settingHead:"object"===(0,c3.default)(c0.settingHead)&&(c1.settingHead=new c9.LongBits(c0.settingHead.low>>>0,c0.settingHead.high>>>0).toNumber())),null!=c0.nodeAddr&&(c1.nodeAddr=String(c0.nodeAddr)),null!=c0.nodePort&&(c1.nodePort=0|c0.nodePort),null!=c0.serverTime&&(c9.Long?(c1.serverTime=c9.Long.fromValue(c0.serverTime)).unsigned=!1:"string"==typeof c0.serverTime?c1.serverTime=parseInt(c0.serverTime,10):"number"==typeof c0.serverTime?c1.serverTime=c0.serverTime:"object"===(0,c3.default)(c0.serverTime)&&(c1.serverTime=new c9.LongBits(c0.serverTime.low>>>0,c0.serverTime.high>>>0).toNumber())),null!=c0.nodeId&&(c1.nodeId=String(c0.nodeId)),null!=c0.recvHead&&(c9.Long?(c1.recvHead=c9.Long.fromValue(c0.recvHead)).unsigned=!1:"string"==typeof c0.recvHead?c1.recvHead=parseInt(c0.recvHead,10):"number"==typeof c0.recvHead?c1.recvHead=c0.recvHead:"object"===(0,c3.default)(c0.recvHead)&&(c1.recvHead=new c9.LongBits(c0.recvHead.low>>>0,c0.recvHead.high>>>0).toNumber())),null!=c0.readHead&&(c9.Long?(c1.readHead=c9.Long.fromValue(c0.readHead)).unsigned=!1:"string"==typeof c0.readHead?c1.readHead=parseInt(c0.readHead,10):"number"==typeof c0.readHead?c1.readHead=c0.readHead:"object"===(0,c3.default)(c0.readHead)&&(c1.readHead=new c9.LongBits(c0.readHead.low>>>0,c0.readHead.high>>>0).toNumber())),null!=c0.groupConvHead&&(c9.Long?(c1.groupConvHead=c9.Long.fromValue(c0.groupConvHead)).unsigned=!1:"string"==typeof c0.groupConvHead?c1.groupConvHead=parseInt(c0.groupConvHead,10):"number"==typeof c0.groupConvHead?c1.groupConvHead=c0.groupConvHead:"object"===(0,c3.default)(c0.groupConvHead)&&(c1.groupConvHead=new c9.LongBits(c0.groupConvHead.low>>>0,c0.groupConvHead.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.msgHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.msgHead=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.friendHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.friendHead=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.friendRqHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.friendRqHead=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.settingHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.settingHead=c1.longs===String?"0":0;if(c2.nodeAddr="",c2.nodePort=0,c9.Long){c3=new c9.Long(0,0,!1);c2.serverTime=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.serverTime=c1.longs===String?"0":0;if(c2.nodeId="",c9.Long){c3=new c9.Long(0,0,!1);c2.recvHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.recvHead=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.readHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.readHead=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.groupConvHead=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.groupConvHead=c1.longs===String?"0":0}return null!=c0.msgHead&&c0.hasOwnProperty("msgHead")&&("number"==typeof c0.msgHead?c2.msgHead=c1.longs===String?String(c0.msgHead):c0.msgHead:c2.msgHead=c1.longs===String?c9.Long.prototype.toString.call(c0.msgHead):c1.longs===Number?new c9.LongBits(c0.msgHead.low>>>0,c0.msgHead.high>>>0).toNumber():c0.msgHead),null!=c0.friendHead&&c0.hasOwnProperty("friendHead")&&("number"==typeof c0.friendHead?c2.friendHead=c1.longs===String?String(c0.friendHead):c0.friendHead:c2.friendHead=c1.longs===String?c9.Long.prototype.toString.call(c0.friendHead):c1.longs===Number?new c9.LongBits(c0.friendHead.low>>>0,c0.friendHead.high>>>0).toNumber():c0.friendHead),null!=c0.friendRqHead&&c0.hasOwnProperty("friendRqHead")&&("number"==typeof c0.friendRqHead?c2.friendRqHead=c1.longs===String?String(c0.friendRqHead):c0.friendRqHead:c2.friendRqHead=c1.longs===String?c9.Long.prototype.toString.call(c0.friendRqHead):c1.longs===Number?new c9.LongBits(c0.friendRqHead.low>>>0,c0.friendRqHead.high>>>0).toNumber():c0.friendRqHead),null!=c0.settingHead&&c0.hasOwnProperty("settingHead")&&("number"==typeof c0.settingHead?c2.settingHead=c1.longs===String?String(c0.settingHead):c0.settingHead:c2.settingHead=c1.longs===String?c9.Long.prototype.toString.call(c0.settingHead):c1.longs===Number?new c9.LongBits(c0.settingHead.low>>>0,c0.settingHead.high>>>0).toNumber():c0.settingHead),null!=c0.nodeAddr&&c0.hasOwnProperty("nodeAddr")&&(c2.nodeAddr=c0.nodeAddr),null!=c0.nodePort&&c0.hasOwnProperty("nodePort")&&(c2.nodePort=c0.nodePort),null!=c0.serverTime&&c0.hasOwnProperty("serverTime")&&("number"==typeof c0.serverTime?c2.serverTime=c1.longs===String?String(c0.serverTime):c0.serverTime:c2.serverTime=c1.longs===String?c9.Long.prototype.toString.call(c0.serverTime):c1.longs===Number?new c9.LongBits(c0.serverTime.low>>>0,c0.serverTime.high>>>0).toNumber():c0.serverTime),null!=c0.nodeId&&c0.hasOwnProperty("nodeId")&&(c2.nodeId=c0.nodeId),null!=c0.recvHead&&c0.hasOwnProperty("recvHead")&&("number"==typeof c0.recvHead?c2.recvHead=c1.longs===String?String(c0.recvHead):c0.recvHead:c2.recvHead=c1.longs===String?c9.Long.prototype.toString.call(c0.recvHead):c1.longs===Number?new c9.LongBits(c0.recvHead.low>>>0,c0.recvHead.high>>>0).toNumber():c0.recvHead),null!=c0.readHead&&c0.hasOwnProperty("readHead")&&("number"==typeof c0.readHead?c2.readHead=c1.longs===String?String(c0.readHead):c0.readHead:c2.readHead=c1.longs===String?c9.Long.prototype.toString.call(c0.readHead):c1.longs===Number?new c9.LongBits(c0.readHead.low>>>0,c0.readHead.high>>>0).toNumber():c0.readHead),null!=c0.groupConvHead&&c0.hasOwnProperty("groupConvHead")&&("number"==typeof c0.groupConvHead?c2.groupConvHead=c1.longs===String?String(c0.groupConvHead):c0.groupConvHead:c2.groupConvHead=c1.longs===String?c9.Long.prototype.toString.call(c0.groupConvHead):c1.longs===Number?new c9.LongBits(c0.groupConvHead.low>>>0,c0.groupConvHead.high>>>0).toNumber():c0.groupConvHead),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.IMHttpWrapper=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.token=c0.string();break;case 2:c3.clientId=c0.string();break;case 3:c3.request=c0.string();break;case 4:c3.data=c0.bytes();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("token"))throw c9.ProtocolError("missing required 'token'",{instance:c3});if(!c3.hasOwnProperty("clientId"))throw c9.ProtocolError("missing required 'clientId'",{instance:c3});if(!c3.hasOwnProperty("request"))throw c9.ProtocolError("missing required 'request'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.token)?c9.isString(c0.clientId)?c9.isString(c0.request)?null!=c0.data&&c0.hasOwnProperty("data")&&!(c0.data&&"number"==typeof c0.data.length||c9.isString(c0.data))?"data: buffer expected":null:"request: string expected":"clientId: string expected":"token: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.IMHttpWrapper)return c0;var c1=new c10.IMHttpWrapper;return null!=c0.token&&(c1.token=String(c0.token)),null!=c0.clientId&&(c1.clientId=String(c0.clientId)),null!=c0.request&&(c1.request=String(c0.request)),null!=c0.data&&("string"==typeof c0.data?c9.base64.decode(c0.data,c1.data=c9.newBuffer(c9.base64.length(c0.data)),0):c0.data.length&&(c1.data=c0.data)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.token="",c2.clientId="",c2.request="",c1.bytes===String?c2.data="":(c2.data=[],c1.bytes!==Array&&(c2.data=c9.newBuffer(c2.data)))),null!=c0.token&&c0.hasOwnProperty("token")&&(c2.token=c0.token),null!=c0.clientId&&c0.hasOwnProperty("clientId")&&(c2.clientId=c0.clientId),null!=c0.request&&c0.hasOwnProperty("request")&&(c2.request=c0.request),null!=c0.data&&c0.hasOwnProperty("data")&&(c2.data=c1.bytes===String?c9.base64.encode(c0.data,0,c0.data.length):c1.bytes===Array?Array.prototype.slice.call(c0.data):c0.data),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.SearchUserRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.keyword=c0.string();break;case 2:c3.fuzzy=c0.int32();break;case 3:c3.page=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("keyword"))throw c9.ProtocolError("missing required 'keyword'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.keyword)?null!=c0.fuzzy&&c0.hasOwnProperty("fuzzy")&&!c9.isInteger(c0.fuzzy)?"fuzzy: integer expected":null!=c0.page&&c0.hasOwnProperty("page")&&!c9.isInteger(c0.page)?"page: integer expected":null:"keyword: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.SearchUserRequest)return c0;var c1=new c10.SearchUserRequest;return null!=c0.keyword&&(c1.keyword=String(c0.keyword)),null!=c0.fuzzy&&(c1.fuzzy=0|c0.fuzzy),null!=c0.page&&(c1.page=0|c0.page),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.keyword="",c2.fuzzy=0,c2.page=0),null!=c0.keyword&&c0.hasOwnProperty("keyword")&&(c2.keyword=c0.keyword),null!=c0.fuzzy&&c0.hasOwnProperty("fuzzy")&&(c2.fuzzy=c0.fuzzy),null!=c0.page&&c0.hasOwnProperty("page")&&(c2.page=c0.page),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.SearchUserResult=function(){function c0(c0){if(this.entry=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.entry&&c3.entry.length||(c3.entry=[]),c3.entry.push(c10.User.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.entry&&c0.hasOwnProperty("entry")){if(!Array.isArray(c0.entry))return"entry: array expected";for(var c1=0;c1>>3){case 1:c3.chatroomId=c0.string();break;case 2:c3.updateDt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("chatroomId"))throw c9.ProtocolError("missing required 'chatroomId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.chatroomId)?null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null:"chatroomId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetChatroomInfoRequest)return c0;var c1=new c10.GetChatroomInfoRequest;return null!=c0.chatroomId&&(c1.chatroomId=String(c0.chatroomId)),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.chatroomId="",c9.Long){var c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;return null!=c0.chatroomId&&c0.hasOwnProperty("chatroomId")&&(c2.chatroomId=c0.chatroomId),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ChatroomInfo=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.title=c0.string();break;case 2:c3.desc=c0.string();break;case 3:c3.portrait=c0.string();break;case 4:c3.memberCount=c0.int32();break;case 5:c3.createDt=c0.int64();break;case 6:c3.updateDt=c0.int64();break;case 7:c3.extra=c0.string();break;case 8:c3.state=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("title"))throw c9.ProtocolError("missing required 'title'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.title)?null!=c0.desc&&c0.hasOwnProperty("desc")&&!c9.isString(c0.desc)?"desc: string expected":null!=c0.portrait&&c0.hasOwnProperty("portrait")&&!c9.isString(c0.portrait)?"portrait: string expected":null!=c0.memberCount&&c0.hasOwnProperty("memberCount")&&!c9.isInteger(c0.memberCount)?"memberCount: integer expected":null!=c0.createDt&&c0.hasOwnProperty("createDt")&&!(c9.isInteger(c0.createDt)||c0.createDt&&c9.isInteger(c0.createDt.low)&&c9.isInteger(c0.createDt.high))?"createDt: integer|Long expected":null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&!(c9.isInteger(c0.updateDt)||c0.updateDt&&c9.isInteger(c0.updateDt.low)&&c9.isInteger(c0.updateDt.high))?"updateDt: integer|Long expected":null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null!=c0.state&&c0.hasOwnProperty("state")&&!c9.isInteger(c0.state)?"state: integer expected":null:"title: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ChatroomInfo)return c0;var c1=new c10.ChatroomInfo;return null!=c0.title&&(c1.title=String(c0.title)),null!=c0.desc&&(c1.desc=String(c0.desc)),null!=c0.portrait&&(c1.portrait=String(c0.portrait)),null!=c0.memberCount&&(c1.memberCount=0|c0.memberCount),null!=c0.createDt&&(c9.Long?(c1.createDt=c9.Long.fromValue(c0.createDt)).unsigned=!1:"string"==typeof c0.createDt?c1.createDt=parseInt(c0.createDt,10):"number"==typeof c0.createDt?c1.createDt=c0.createDt:"object"===(0,c3.default)(c0.createDt)&&(c1.createDt=new c9.LongBits(c0.createDt.low>>>0,c0.createDt.high>>>0).toNumber())),null!=c0.updateDt&&(c9.Long?(c1.updateDt=c9.Long.fromValue(c0.updateDt)).unsigned=!1:"string"==typeof c0.updateDt?c1.updateDt=parseInt(c0.updateDt,10):"number"==typeof c0.updateDt?c1.updateDt=c0.updateDt:"object"===(0,c3.default)(c0.updateDt)&&(c1.updateDt=new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber())),null!=c0.extra&&(c1.extra=String(c0.extra)),null!=c0.state&&(c1.state=0|c0.state),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.title="",c2.desc="",c2.portrait="",c2.memberCount=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.createDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.createDt=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.updateDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.updateDt=c1.longs===String?"0":0;c2.extra="",c2.state=0}return null!=c0.title&&c0.hasOwnProperty("title")&&(c2.title=c0.title),null!=c0.desc&&c0.hasOwnProperty("desc")&&(c2.desc=c0.desc),null!=c0.portrait&&c0.hasOwnProperty("portrait")&&(c2.portrait=c0.portrait),null!=c0.memberCount&&c0.hasOwnProperty("memberCount")&&(c2.memberCount=c0.memberCount),null!=c0.createDt&&c0.hasOwnProperty("createDt")&&("number"==typeof c0.createDt?c2.createDt=c1.longs===String?String(c0.createDt):c0.createDt:c2.createDt=c1.longs===String?c9.Long.prototype.toString.call(c0.createDt):c1.longs===Number?new c9.LongBits(c0.createDt.low>>>0,c0.createDt.high>>>0).toNumber():c0.createDt),null!=c0.updateDt&&c0.hasOwnProperty("updateDt")&&("number"==typeof c0.updateDt?c2.updateDt=c1.longs===String?String(c0.updateDt):c0.updateDt:c2.updateDt=c1.longs===String?c9.Long.prototype.toString.call(c0.updateDt):c1.longs===Number?new c9.LongBits(c0.updateDt.low>>>0,c0.updateDt.high>>>0).toNumber():c0.updateDt),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),null!=c0.state&&c0.hasOwnProperty("state")&&(c2.state=c0.state),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.GetChatroomMemberInfoRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.chatroomId=c0.string();break;case 2:c3.maxCount=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("chatroomId"))throw c9.ProtocolError("missing required 'chatroomId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.chatroomId)?null!=c0.maxCount&&c0.hasOwnProperty("maxCount")&&!c9.isInteger(c0.maxCount)?"maxCount: integer expected":null:"chatroomId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetChatroomMemberInfoRequest)return c0;var c1=new c10.GetChatroomMemberInfoRequest;return null!=c0.chatroomId&&(c1.chatroomId=String(c0.chatroomId)),null!=c0.maxCount&&(c1.maxCount=0|c0.maxCount),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.chatroomId="",c2.maxCount=0),null!=c0.chatroomId&&c0.hasOwnProperty("chatroomId")&&(c2.chatroomId=c0.chatroomId),null!=c0.maxCount&&c0.hasOwnProperty("maxCount")&&(c2.maxCount=c0.maxCount),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ChatroomMemberInfo=function(){function c0(c0){if(this.members=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.memberCount=c0.int32();break;case 2:c3.members&&c3.members.length||(c3.members=[]),c3.members.push(c0.string());break;default:c0.skipType(7&c4)}}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.memberCount&&c0.hasOwnProperty("memberCount")&&!c9.isInteger(c0.memberCount))return"memberCount: integer expected";if(null!=c0.members&&c0.hasOwnProperty("members")){if(!Array.isArray(c0.members))return"members: array expected";for(var c1=0;c1>>3==1)c3.id=c0.int64();else c0.skipType(7&c4)}if(!c3.hasOwnProperty("id"))throw c9.ProtocolError("missing required 'id'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.id)||c0.id&&c9.isInteger(c0.id.low)&&c9.isInteger(c0.id.high)?null:"id: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.INT64Buf)return c0;var c1=new c10.INT64Buf;return null!=c0.id&&(c9.Long?(c1.id=c9.Long.fromValue(c0.id)).unsigned=!1:"string"==typeof c0.id?c1.id=parseInt(c0.id,10):"number"==typeof c0.id?c1.id=c0.id:"object"===(0,c3.default)(c0.id)&&(c1.id=new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c9.Long){var c3=new c9.Long(0,0,!1);c2.id=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.id=c1.longs===String?"0":0;return null!=c0.id&&c0.hasOwnProperty("id")&&("number"==typeof c0.id?c2.id=c1.longs===String?String(c0.id):c0.id:c2.id=c1.longs===String?c9.Long.prototype.toString.call(c0.id):c1.longs===Number?new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber():c0.id),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.INT64ListBuf=function(){function c0(c0){if(this.id=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)if(c3.id&&c3.id.length||(c3.id=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>0,c0.id[c2].high>>>0).toNumber())}return c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if((c1.arrays||c1.defaults)&&(c2.id=[]),c0.id&&c0.id.length){c2.id=[];for(var c3=0;c3>>0,c0.id[c3].high>>>0).toNumber():c0.id[c3]}return c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.NotifyRecallMessage=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.id=c0.int64();break;case 2:c3.fromUser=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("id"))throw c9.ProtocolError("missing required 'id'",{instance:c3});if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.id)||c0.id&&c9.isInteger(c0.id.low)&&c9.isInteger(c0.id.high)?c9.isString(c0.fromUser)?null:"fromUser: string expected":"id: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.NotifyRecallMessage)return c0;var c1=new c10.NotifyRecallMessage;return null!=c0.id&&(c9.Long?(c1.id=c9.Long.fromValue(c0.id)).unsigned=!1:"string"==typeof c0.id?c1.id=parseInt(c0.id,10):"number"==typeof c0.id?c1.id=c0.id:"object"===(0,c3.default)(c0.id)&&(c1.id=new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber())),null!=c0.fromUser&&(c1.fromUser=String(c0.fromUser)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.id=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.id=c1.longs===String?"0":0;c2.fromUser=""}return null!=c0.id&&c0.hasOwnProperty("id")&&("number"==typeof c0.id?c2.id=c1.longs===String?String(c0.id):c0.id:c2.id=c1.longs===String?c9.Long.prototype.toString.call(c0.id):c1.longs===Number?new c9.LongBits(c0.id.low>>>0,c0.id.high>>>0).toNumber():c0.id),null!=c0.fromUser&&c0.hasOwnProperty("fromUser")&&(c2.fromUser=c0.fromUser),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.BlackUserRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.uid=c0.string();break;case 2:c3.status=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("uid"))throw c9.ProtocolError("missing required 'uid'",{instance:c3});if(!c3.hasOwnProperty("status"))throw c9.ProtocolError("missing required 'status'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.uid)?c9.isInteger(c0.status)?null:"status: integer expected":"uid: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.BlackUserRequest)return c0;var c1=new c10.BlackUserRequest;return null!=c0.uid&&(c1.uid=String(c0.uid)),null!=c0.status&&(c1.status=0|c0.status),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.uid="",c2.status=0),null!=c0.uid&&c0.hasOwnProperty("uid")&&(c2.uid=c0.uid),null!=c0.status&&c0.hasOwnProperty("status")&&(c2.status=c0.status),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.RouteRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.app=c0.string();break;case 2:c3.platform=c0.int32();break;case 3:c3.pushType=c0.int32();break;case 4:c3.deviceName=c0.string();break;case 5:c3.deviceVersion=c0.string();break;case 6:c3.phoneName=c0.string();break;case 7:c3.language=c0.string();break;case 8:c3.carrierName=c0.string();break;case 9:c3.appVersion=c0.string();break;case 10:c3.sdkVersion=c0.string();break;case 11:c3.wxAppId=c0.string();break;case 12:c3.wxAppKey=c0.string();break;case 13:c3.webAppId=c0.string();break;case 14:c3.webAppKey=c0.string();break;case 15:c3.host=c0.string();break;case 16:c3.signature=c0.string();break;default:c0.skipType(7&c4)}}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":null!=c0.app&&c0.hasOwnProperty("app")&&!c9.isString(c0.app)?"app: string expected":null!=c0.platform&&c0.hasOwnProperty("platform")&&!c9.isInteger(c0.platform)?"platform: integer expected":null!=c0.pushType&&c0.hasOwnProperty("pushType")&&!c9.isInteger(c0.pushType)?"pushType: integer expected":null!=c0.deviceName&&c0.hasOwnProperty("deviceName")&&!c9.isString(c0.deviceName)?"deviceName: string expected":null!=c0.deviceVersion&&c0.hasOwnProperty("deviceVersion")&&!c9.isString(c0.deviceVersion)?"deviceVersion: string expected":null!=c0.phoneName&&c0.hasOwnProperty("phoneName")&&!c9.isString(c0.phoneName)?"phoneName: string expected":null!=c0.language&&c0.hasOwnProperty("language")&&!c9.isString(c0.language)?"language: string expected":null!=c0.carrierName&&c0.hasOwnProperty("carrierName")&&!c9.isString(c0.carrierName)?"carrierName: string expected":null!=c0.appVersion&&c0.hasOwnProperty("appVersion")&&!c9.isString(c0.appVersion)?"appVersion: string expected":null!=c0.sdkVersion&&c0.hasOwnProperty("sdkVersion")&&!c9.isString(c0.sdkVersion)?"sdkVersion: string expected":null!=c0.wxAppId&&c0.hasOwnProperty("wxAppId")&&!c9.isString(c0.wxAppId)?"wxAppId: string expected":null!=c0.wxAppKey&&c0.hasOwnProperty("wxAppKey")&&!c9.isString(c0.wxAppKey)?"wxAppKey: string expected":null!=c0.webAppId&&c0.hasOwnProperty("webAppId")&&!c9.isString(c0.webAppId)?"webAppId: string expected":null!=c0.webAppKey&&c0.hasOwnProperty("webAppKey")&&!c9.isString(c0.webAppKey)?"webAppKey: string expected":null!=c0.host&&c0.hasOwnProperty("host")&&!c9.isString(c0.host)?"host: string expected":null!=c0.signature&&c0.hasOwnProperty("signature")&&!c9.isString(c0.signature)?"signature: string expected":null},c0.fromObject=function(c0){if(c0 instanceof c10.RouteRequest)return c0;var c1=new c10.RouteRequest;return null!=c0.app&&(c1.app=String(c0.app)),null!=c0.platform&&(c1.platform=0|c0.platform),null!=c0.pushType&&(c1.pushType=0|c0.pushType),null!=c0.deviceName&&(c1.deviceName=String(c0.deviceName)),null!=c0.deviceVersion&&(c1.deviceVersion=String(c0.deviceVersion)),null!=c0.phoneName&&(c1.phoneName=String(c0.phoneName)),null!=c0.language&&(c1.language=String(c0.language)),null!=c0.carrierName&&(c1.carrierName=String(c0.carrierName)),null!=c0.appVersion&&(c1.appVersion=String(c0.appVersion)),null!=c0.sdkVersion&&(c1.sdkVersion=String(c0.sdkVersion)),null!=c0.wxAppId&&(c1.wxAppId=String(c0.wxAppId)),null!=c0.wxAppKey&&(c1.wxAppKey=String(c0.wxAppKey)),null!=c0.webAppId&&(c1.webAppId=String(c0.webAppId)),null!=c0.webAppKey&&(c1.webAppKey=String(c0.webAppKey)),null!=c0.host&&(c1.host=String(c0.host)),null!=c0.signature&&(c1.signature=String(c0.signature)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.app="",c2.platform=0,c2.pushType=0,c2.deviceName="",c2.deviceVersion="",c2.phoneName="",c2.language="",c2.carrierName="",c2.appVersion="",c2.sdkVersion="",c2.wxAppId="",c2.wxAppKey="",c2.webAppId="",c2.webAppKey="",c2.host="",c2.signature=""),null!=c0.app&&c0.hasOwnProperty("app")&&(c2.app=c0.app),null!=c0.platform&&c0.hasOwnProperty("platform")&&(c2.platform=c0.platform),null!=c0.pushType&&c0.hasOwnProperty("pushType")&&(c2.pushType=c0.pushType),null!=c0.deviceName&&c0.hasOwnProperty("deviceName")&&(c2.deviceName=c0.deviceName),null!=c0.deviceVersion&&c0.hasOwnProperty("deviceVersion")&&(c2.deviceVersion=c0.deviceVersion),null!=c0.phoneName&&c0.hasOwnProperty("phoneName")&&(c2.phoneName=c0.phoneName),null!=c0.language&&c0.hasOwnProperty("language")&&(c2.language=c0.language),null!=c0.carrierName&&c0.hasOwnProperty("carrierName")&&(c2.carrierName=c0.carrierName),null!=c0.appVersion&&c0.hasOwnProperty("appVersion")&&(c2.appVersion=c0.appVersion),null!=c0.sdkVersion&&c0.hasOwnProperty("sdkVersion")&&(c2.sdkVersion=c0.sdkVersion),null!=c0.wxAppId&&c0.hasOwnProperty("wxAppId")&&(c2.wxAppId=c0.wxAppId),null!=c0.wxAppKey&&c0.hasOwnProperty("wxAppKey")&&(c2.wxAppKey=c0.wxAppKey),null!=c0.webAppId&&c0.hasOwnProperty("webAppId")&&(c2.webAppId=c0.webAppId),null!=c0.webAppKey&&c0.hasOwnProperty("webAppKey")&&(c2.webAppKey=c0.webAppKey),null!=c0.host&&c0.hasOwnProperty("host")&&(c2.host=c0.host),null!=c0.signature&&c0.hasOwnProperty("signature")&&(c2.signature=c0.signature),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.AddressTriple=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.host=c0.string();break;case 2:c3.longPort=c0.int32();break;case 3:c3.shortPort=c0.int32();break;case 4:c3.wssPort=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("host"))throw c9.ProtocolError("missing required 'host'",{instance:c3});if(!c3.hasOwnProperty("longPort"))throw c9.ProtocolError("missing required 'longPort'",{instance:c3});if(!c3.hasOwnProperty("shortPort"))throw c9.ProtocolError("missing required 'shortPort'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.host)?c9.isInteger(c0.longPort)?c9.isInteger(c0.shortPort)?null!=c0.wssPort&&c0.hasOwnProperty("wssPort")&&!c9.isInteger(c0.wssPort)?"wssPort: integer expected":null:"shortPort: integer expected":"longPort: integer expected":"host: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.AddressTriple)return c0;var c1=new c10.AddressTriple;return null!=c0.host&&(c1.host=String(c0.host)),null!=c0.longPort&&(c1.longPort=0|c0.longPort),null!=c0.shortPort&&(c1.shortPort=0|c0.shortPort),null!=c0.wssPort&&(c1.wssPort=0|c0.wssPort),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.host="",c2.longPort=0,c2.shortPort=0,c2.wssPort=0),null!=c0.host&&c0.hasOwnProperty("host")&&(c2.host=c0.host),null!=c0.longPort&&c0.hasOwnProperty("longPort")&&(c2.longPort=c0.longPort),null!=c0.shortPort&&c0.hasOwnProperty("shortPort")&&(c2.shortPort=c0.shortPort),null!=c0.wssPort&&c0.hasOwnProperty("wssPort")&&(c2.wssPort=c0.wssPort),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.RouteResponse=function(){function c0(c0){if(this.candidate=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.host=c0.string();break;case 2:c3.longPort=c0.int32();break;case 3:c3.shortPort=c0.int32();break;case 4:c3.thumbPara=c0.string();break;case 5:c3.node=c0.string();break;case 6:c3.commercial=c0.int32();break;case 7:c3.wssPort=c0.int32();break;case 8:c3.candidate&&c3.candidate.length||(c3.candidate=[]),c3.candidate.push(c10.AddressTriple.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("host"))throw c9.ProtocolError("missing required 'host'",{instance:c3});if(!c3.hasOwnProperty("longPort"))throw c9.ProtocolError("missing required 'longPort'",{instance:c3});if(!c3.hasOwnProperty("shortPort"))throw c9.ProtocolError("missing required 'shortPort'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.host))return"host: string expected";if(!c9.isInteger(c0.longPort))return"longPort: integer expected";if(!c9.isInteger(c0.shortPort))return"shortPort: integer expected";if(null!=c0.thumbPara&&c0.hasOwnProperty("thumbPara")&&!c9.isString(c0.thumbPara))return"thumbPara: string expected";if(null!=c0.node&&c0.hasOwnProperty("node")&&!c9.isString(c0.node))return"node: string expected";if(null!=c0.commercial&&c0.hasOwnProperty("commercial")&&!c9.isInteger(c0.commercial))return"commercial: integer expected";if(null!=c0.wssPort&&c0.hasOwnProperty("wssPort")&&!c9.isInteger(c0.wssPort))return"wssPort: integer expected";if(null!=c0.candidate&&c0.hasOwnProperty("candidate")){if(!Array.isArray(c0.candidate))return"candidate: array expected";for(var c1=0;c1>>3){case 1:c3.userId=c0.string();break;case 2:c3.clientId=c0.string();break;case 3:c3.platform=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("userId"))throw c9.ProtocolError("missing required 'userId'",{instance:c3});if(!c3.hasOwnProperty("clientId"))throw c9.ProtocolError("missing required 'clientId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.userId)?c9.isString(c0.clientId)?null!=c0.platform&&c0.hasOwnProperty("platform")&&!c9.isInteger(c0.platform)?"platform: integer expected":null:"clientId: string expected":"userId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.GetTokenRequest)return c0;var c1=new c10.GetTokenRequest;return null!=c0.userId&&(c1.userId=String(c0.userId)),null!=c0.clientId&&(c1.clientId=String(c0.clientId)),null!=c0.platform&&(c1.platform=0|c0.platform),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.userId="",c2.clientId="",c2.platform=0),null!=c0.userId&&c0.hasOwnProperty("userId")&&(c2.userId=c0.userId),null!=c0.clientId&&c0.hasOwnProperty("clientId")&&(c2.clientId=c0.clientId),null!=c0.platform&&c0.hasOwnProperty("platform")&&(c2.platform=c0.platform),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.LoadRemoteMessages=function(){function c0(c0){if(this.contentType=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 2:c3.beforeUid=c0.int64();break;case 3:c3.count=c0.int32();break;case 4:if(c3.contentType&&c3.contentType.length||(c3.contentType=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>0,c0.beforeUid.high>>>0).toNumber())),null!=c0.count&&(c1.count=0|c0.count),c0.contentType){if(!Array.isArray(c0.contentType))throw TypeError(".LoadRemoteMessages.contentType: array expected");c1.contentType=[];for(var c2=0;c2>>0,c0.beforeUid.high>>>0).toNumber():c0.beforeUid),null!=c0.count&&c0.hasOwnProperty("count")&&(c2.count=c0.count),c0.contentType&&c0.contentType.length){c2.contentType=[];for(var c4=0;c4>>3){case 1:c3.line=c0.int32();break;case 2:c3.beforeUid=c0.int64();break;case 3:c3.count=c0.int32();break;case 4:if(c3.contentType&&c3.contentType.length||(c3.contentType=[]),2==(7&c4))for(var c5=c0.uint32()+c0.pos;c0.pos>>0,c0.beforeUid.high>>>0).toNumber())),null!=c0.count&&(c1.count=0|c0.count),c0.contentType){if(!Array.isArray(c0.contentType))throw TypeError(".LoadLineMessages.contentType: array expected");c1.contentType=[];for(var c2=0;c2>>0,c0.beforeUid.high>>>0).toNumber():c0.beforeUid),null!=c0.count&&c0.hasOwnProperty("count")&&(c2.count=c0.count),c0.contentType&&c0.contentType.length){c2.contentType=[];for(var c4=0;c4>>3){case 1:c3.fromUser=c0.string();break;case 2:c3.content=c10.MessageContent.decode(c0,c0.uint32());break;case 3:c3.to&&c3.to.length||(c3.to=[]),c3.to.push(c0.string());break;case 4:c3.line=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("content"))throw c9.ProtocolError("missing required 'content'",{instance:c3});if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.fromUser))return"fromUser: string expected";var c1=c10.MessageContent.verify(c0.content);if(c1)return"content."+c1;if(null!=c0.to&&c0.hasOwnProperty("to")){if(!Array.isArray(c0.to))return"to: array expected";for(var c2=0;c2>>3){case 1:c3.messageId=c0.int64();break;case 2:c3.target&&c3.target.length||(c3.target=[]),c3.target.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)))return"messageId: integer|Long expected";if(null!=c0.target&&c0.hasOwnProperty("target")){if(!Array.isArray(c0.target))return"target: array expected";for(var c1=0;c1>>0,c0.messageId.high>>>0).toNumber())),c0.target){if(!Array.isArray(c0.target))throw TypeError(".RecallMultiMessage.target: array expected");c1.target=[];for(var c2=0;c2>>0,c0.messageId.high>>>0).toNumber():c0.messageId),c0.target&&c0.target.length){c2.target=[];for(var c4=0;c4>>3){case 1:c3.messageId=c0.int64();break;case 2:c3.content=c10.MessageContent.decode(c0,c0.uint32());break;case 3:c3.distribute=c0.int32();break;case 4:c3.updateTime=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});if(!c3.hasOwnProperty("content"))throw c9.ProtocolError("missing required 'content'",{instance:c3});if(!c3.hasOwnProperty("distribute"))throw c9.ProtocolError("missing required 'distribute'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)))return"messageId: integer|Long expected";var c1=c10.MessageContent.verify(c0.content);return c1?"content."+c1:c9.isInteger(c0.distribute)?null!=c0.updateTime&&c0.hasOwnProperty("updateTime")&&!c9.isInteger(c0.updateTime)?"updateTime: integer expected":null:"distribute: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.UpdateMessageContent)return c0;var c1=new c10.UpdateMessageContent;if(null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),null!=c0.content){if("object"!==(0,c3.default)(c0.content))throw TypeError(".UpdateMessageContent.content: object expected");c1.content=c10.MessageContent.fromObject(c0.content)}return null!=c0.distribute&&(c1.distribute=0|c0.distribute),null!=c0.updateTime&&(c1.updateTime=0|c0.updateTime),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;c2.content=null,c2.distribute=0,c2.updateTime=0}return null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.content&&c0.hasOwnProperty("content")&&(c2.content=c10.MessageContent.toObject(c0.content,c1)),null!=c0.distribute&&c0.hasOwnProperty("distribute")&&(c2.distribute=c0.distribute),null!=c0.updateTime&&c0.hasOwnProperty("updateTime")&&(c2.updateTime=c0.updateTime),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.FileRecord=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.messageId=c0.int64();break;case 2:c3.fromUser=c0.string();break;case 3:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 4:c3.name=c0.string();break;case 5:c3.url=c0.string();break;case 6:c3.size=c0.int32();break;case 7:c3.downloadCount=c0.int32();break;case 8:c3.dt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});if(!c3.hasOwnProperty("fromUser"))throw c9.ProtocolError("missing required 'fromUser'",{instance:c3});if(!c3.hasOwnProperty("url"))throw c9.ProtocolError("missing required 'url'",{instance:c3});if(!c3.hasOwnProperty("size"))throw c9.ProtocolError("missing required 'size'",{instance:c3});if(!c3.hasOwnProperty("dt"))throw c9.ProtocolError("missing required 'dt'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)))return"messageId: integer|Long expected";if(!c9.isString(c0.fromUser))return"fromUser: string expected";if(null!=c0.conversation&&c0.hasOwnProperty("conversation")){var c1=c10.Conversation.verify(c0.conversation);if(c1)return"conversation."+c1}return null!=c0.name&&c0.hasOwnProperty("name")&&!c9.isString(c0.name)?"name: string expected":c9.isString(c0.url)?c9.isInteger(c0.size)?null!=c0.downloadCount&&c0.hasOwnProperty("downloadCount")&&!c9.isInteger(c0.downloadCount)?"downloadCount: integer expected":c9.isInteger(c0.dt)||c0.dt&&c9.isInteger(c0.dt.low)&&c9.isInteger(c0.dt.high)?null:"dt: integer|Long expected":"size: integer expected":"url: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.FileRecord)return c0;var c1=new c10.FileRecord;if(null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),null!=c0.fromUser&&(c1.fromUser=String(c0.fromUser)),null!=c0.conversation){if("object"!==(0,c3.default)(c0.conversation))throw TypeError(".FileRecord.conversation: object expected");c1.conversation=c10.Conversation.fromObject(c0.conversation)}return null!=c0.name&&(c1.name=String(c0.name)),null!=c0.url&&(c1.url=String(c0.url)),null!=c0.size&&(c1.size=0|c0.size),null!=c0.downloadCount&&(c1.downloadCount=0|c0.downloadCount),null!=c0.dt&&(c9.Long?(c1.dt=c9.Long.fromValue(c0.dt)).unsigned=!1:"string"==typeof c0.dt?c1.dt=parseInt(c0.dt,10):"number"==typeof c0.dt?c1.dt=c0.dt:"object"===(0,c3.default)(c0.dt)&&(c1.dt=new c9.LongBits(c0.dt.low>>>0,c0.dt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;if(c2.fromUser="",c2.conversation=null,c2.name="",c2.url="",c2.size=0,c2.downloadCount=0,c9.Long){c3=new c9.Long(0,0,!1);c2.dt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.dt=c1.longs===String?"0":0}return null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.fromUser&&c0.hasOwnProperty("fromUser")&&(c2.fromUser=c0.fromUser),null!=c0.conversation&&c0.hasOwnProperty("conversation")&&(c2.conversation=c10.Conversation.toObject(c0.conversation,c1)),null!=c0.name&&c0.hasOwnProperty("name")&&(c2.name=c0.name),null!=c0.url&&c0.hasOwnProperty("url")&&(c2.url=c0.url),null!=c0.size&&c0.hasOwnProperty("size")&&(c2.size=c0.size),null!=c0.downloadCount&&c0.hasOwnProperty("downloadCount")&&(c2.downloadCount=c0.downloadCount),null!=c0.dt&&c0.hasOwnProperty("dt")&&("number"==typeof c0.dt?c2.dt=c1.longs===String?String(c0.dt):c0.dt:c2.dt=c1.longs===String?c9.Long.prototype.toString.call(c0.dt):c1.longs===Number?new c9.LongBits(c0.dt.low>>>0,c0.dt.high>>>0).toNumber():c0.dt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.LoadFileRecordReq=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 2:c3.messageId=c0.int64();break;case 3:c3.count=c0.int32();break;case 4:c3.from=c0.string();break;case 5:c3.order=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});if(!c3.hasOwnProperty("count"))throw c9.ProtocolError("missing required 'count'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.conversation&&c0.hasOwnProperty("conversation")){var c1=c10.Conversation.verify(c0.conversation);if(c1)return"conversation."+c1}return c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)?c9.isInteger(c0.count)?null!=c0.from&&c0.hasOwnProperty("from")&&!c9.isString(c0.from)?"from: string expected":null!=c0.order&&c0.hasOwnProperty("order")&&!c9.isInteger(c0.order)?"order: integer expected":null:"count: integer expected":"messageId: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.LoadFileRecordReq)return c0;var c1=new c10.LoadFileRecordReq;if(null!=c0.conversation){if("object"!==(0,c3.default)(c0.conversation))throw TypeError(".LoadFileRecordReq.conversation: object expected");c1.conversation=c10.Conversation.fromObject(c0.conversation)}return null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),null!=c0.count&&(c1.count=0|c0.count),null!=c0.from&&(c1.from=String(c0.from)),null!=c0.order&&(c1.order=0|c0.order),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.conversation=null,c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;c2.count=0,c2.from="",c2.order=0}return null!=c0.conversation&&c0.hasOwnProperty("conversation")&&(c2.conversation=c10.Conversation.toObject(c0.conversation,c1)),null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.count&&c0.hasOwnProperty("count")&&(c2.count=c0.count),null!=c0.from&&c0.hasOwnProperty("from")&&(c2.from=c0.from),null!=c0.order&&c0.hasOwnProperty("order")&&(c2.order=c0.order),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.LoadFileRecordRes=function(){function c0(c0){if(this.record=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.record&&c3.record.length||(c3.record=[]),c3.record.push(c10.FileRecord.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.record&&c0.hasOwnProperty("record")){if(!Array.isArray(c0.record))return"record: array expected";for(var c1=0;c1>>3){case 1:c3.keyword=c0.string();break;case 2:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 3:c3.messageId=c0.int64();break;case 4:c3.count=c0.int32();break;case 5:c3.from=c0.string();break;case 6:c3.order=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("keyword"))throw c9.ProtocolError("missing required 'keyword'",{instance:c3});if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});if(!c3.hasOwnProperty("count"))throw c9.ProtocolError("missing required 'count'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.keyword))return"keyword: string expected";if(null!=c0.conversation&&c0.hasOwnProperty("conversation")){var c1=c10.Conversation.verify(c0.conversation);if(c1)return"conversation."+c1}return c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)?c9.isInteger(c0.count)?null!=c0.from&&c0.hasOwnProperty("from")&&!c9.isString(c0.from)?"from: string expected":null!=c0.order&&c0.hasOwnProperty("order")&&!c9.isInteger(c0.order)?"order: integer expected":null:"count: integer expected":"messageId: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.SearchFileRecordReq)return c0;var c1=new c10.SearchFileRecordReq;if(null!=c0.keyword&&(c1.keyword=String(c0.keyword)),null!=c0.conversation){if("object"!==(0,c3.default)(c0.conversation))throw TypeError(".SearchFileRecordReq.conversation: object expected");c1.conversation=c10.Conversation.fromObject(c0.conversation)}return null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),null!=c0.count&&(c1.count=0|c0.count),null!=c0.from&&(c1.from=String(c0.from)),null!=c0.order&&(c1.order=0|c0.order),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.keyword="",c2.conversation=null,c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;c2.count=0,c2.from="",c2.order=0}return null!=c0.keyword&&c0.hasOwnProperty("keyword")&&(c2.keyword=c0.keyword),null!=c0.conversation&&c0.hasOwnProperty("conversation")&&(c2.conversation=c10.Conversation.toObject(c0.conversation,c1)),null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.count&&c0.hasOwnProperty("count")&&(c2.count=c0.count),null!=c0.from&&c0.hasOwnProperty("from")&&(c2.from=c0.from),null!=c0.order&&c0.hasOwnProperty("order")&&(c2.order=c0.order),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ConferenceRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.sessionId=c0.int64();break;case 2:c3.request=c0.string();break;case 3:c3.data=c0.string();break;case 4:c3.roomId=c0.string();break;case 5:c3.advance=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("request"))throw c9.ProtocolError("missing required 'request'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":null!=c0.sessionId&&c0.hasOwnProperty("sessionId")&&!(c9.isInteger(c0.sessionId)||c0.sessionId&&c9.isInteger(c0.sessionId.low)&&c9.isInteger(c0.sessionId.high))?"sessionId: integer|Long expected":c9.isString(c0.request)?null!=c0.data&&c0.hasOwnProperty("data")&&!c9.isString(c0.data)?"data: string expected":null!=c0.roomId&&c0.hasOwnProperty("roomId")&&!c9.isString(c0.roomId)?"roomId: string expected":null!=c0.advance&&c0.hasOwnProperty("advance")&&!c9.isInteger(c0.advance)?"advance: integer expected":null:"request: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ConferenceRequest)return c0;var c1=new c10.ConferenceRequest;return null!=c0.sessionId&&(c9.Long?(c1.sessionId=c9.Long.fromValue(c0.sessionId)).unsigned=!1:"string"==typeof c0.sessionId?c1.sessionId=parseInt(c0.sessionId,10):"number"==typeof c0.sessionId?c1.sessionId=c0.sessionId:"object"===(0,c3.default)(c0.sessionId)&&(c1.sessionId=new c9.LongBits(c0.sessionId.low>>>0,c0.sessionId.high>>>0).toNumber())),null!=c0.request&&(c1.request=String(c0.request)),null!=c0.data&&(c1.data=String(c0.data)),null!=c0.roomId&&(c1.roomId=String(c0.roomId)),null!=c0.advance&&(c1.advance=0|c0.advance),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.sessionId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.sessionId=c1.longs===String?"0":0;c2.request="",c2.data="",c2.roomId="",c2.advance=0}return null!=c0.sessionId&&c0.hasOwnProperty("sessionId")&&("number"==typeof c0.sessionId?c2.sessionId=c1.longs===String?String(c0.sessionId):c0.sessionId:c2.sessionId=c1.longs===String?c9.Long.prototype.toString.call(c0.sessionId):c1.longs===Number?new c9.LongBits(c0.sessionId.low>>>0,c0.sessionId.high>>>0).toNumber():c0.sessionId),null!=c0.request&&c0.hasOwnProperty("request")&&(c2.request=c0.request),null!=c0.data&&c0.hasOwnProperty("data")&&(c2.data=c0.data),null!=c0.roomId&&c0.hasOwnProperty("roomId")&&(c2.roomId=c0.roomId),null!=c0.advance&&c0.hasOwnProperty("advance")&&(c2.advance=c0.advance),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ConfInfo=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.roomId=c0.string();break;case 2:c3.description=c0.string();break;case 3:c3.serverId=c0.string();break;case 4:c3.pin=c0.string();break;case 5:c3.publishers=c0.int32();break;case 6:c3.numPublisher=c0.int32();break;case 7:c3.bitrate=c0.int32();break;case 8:c3.advance=c0.int32();break;case 9:c3.record=c0.int32();break;case 10:c3.permanent=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("roomId"))throw c9.ProtocolError("missing required 'roomId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.roomId)?null!=c0.description&&c0.hasOwnProperty("description")&&!c9.isString(c0.description)?"description: string expected":null!=c0.serverId&&c0.hasOwnProperty("serverId")&&!c9.isString(c0.serverId)?"serverId: string expected":null!=c0.pin&&c0.hasOwnProperty("pin")&&!c9.isString(c0.pin)?"pin: string expected":null!=c0.publishers&&c0.hasOwnProperty("publishers")&&!c9.isInteger(c0.publishers)?"publishers: integer expected":null!=c0.numPublisher&&c0.hasOwnProperty("numPublisher")&&!c9.isInteger(c0.numPublisher)?"numPublisher: integer expected":null!=c0.bitrate&&c0.hasOwnProperty("bitrate")&&!c9.isInteger(c0.bitrate)?"bitrate: integer expected":null!=c0.advance&&c0.hasOwnProperty("advance")&&!c9.isInteger(c0.advance)?"advance: integer expected":null!=c0.record&&c0.hasOwnProperty("record")&&!c9.isInteger(c0.record)?"record: integer expected":null!=c0.permanent&&c0.hasOwnProperty("permanent")&&!c9.isInteger(c0.permanent)?"permanent: integer expected":null:"roomId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ConfInfo)return c0;var c1=new c10.ConfInfo;return null!=c0.roomId&&(c1.roomId=String(c0.roomId)),null!=c0.description&&(c1.description=String(c0.description)),null!=c0.serverId&&(c1.serverId=String(c0.serverId)),null!=c0.pin&&(c1.pin=String(c0.pin)),null!=c0.publishers&&(c1.publishers=0|c0.publishers),null!=c0.numPublisher&&(c1.numPublisher=0|c0.numPublisher),null!=c0.bitrate&&(c1.bitrate=0|c0.bitrate),null!=c0.advance&&(c1.advance=0|c0.advance),null!=c0.record&&(c1.record=0|c0.record),null!=c0.permanent&&(c1.permanent=0|c0.permanent),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.roomId="",c2.description="",c2.serverId="",c2.pin="",c2.publishers=0,c2.numPublisher=0,c2.bitrate=0,c2.advance=0,c2.record=0,c2.permanent=0),null!=c0.roomId&&c0.hasOwnProperty("roomId")&&(c2.roomId=c0.roomId),null!=c0.description&&c0.hasOwnProperty("description")&&(c2.description=c0.description),null!=c0.serverId&&c0.hasOwnProperty("serverId")&&(c2.serverId=c0.serverId),null!=c0.pin&&c0.hasOwnProperty("pin")&&(c2.pin=c0.pin),null!=c0.publishers&&c0.hasOwnProperty("publishers")&&(c2.publishers=c0.publishers),null!=c0.numPublisher&&c0.hasOwnProperty("numPublisher")&&(c2.numPublisher=c0.numPublisher),null!=c0.bitrate&&c0.hasOwnProperty("bitrate")&&(c2.bitrate=c0.bitrate),null!=c0.advance&&c0.hasOwnProperty("advance")&&(c2.advance=c0.advance),null!=c0.record&&c0.hasOwnProperty("record")&&(c2.record=c0.record),null!=c0.permanent&&c0.hasOwnProperty("permanent")&&(c2.permanent=c0.permanent),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ConfInfos=function(){function c0(c0){if(this.info=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3==1)c3.info&&c3.info.length||(c3.info=[]),c3.info.push(c10.ConfInfo.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.info&&c0.hasOwnProperty("info")){if(!Array.isArray(c0.info))return"info: array expected";for(var c1=0;c1>>3){case 1:c3.type=c0.string();break;case 2:c3.mid=c0.string();break;case 3:c3.codec=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("mid"))throw c9.ProtocolError("missing required 'mid'",{instance:c3});if(!c3.hasOwnProperty("codec"))throw c9.ProtocolError("missing required 'codec'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.type)?c9.isString(c0.mid)?c9.isString(c0.codec)?null:"codec: string expected":"mid: string expected":"type: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ConfStream)return c0;var c1=new c10.ConfStream;return null!=c0.type&&(c1.type=String(c0.type)),null!=c0.mid&&(c1.mid=String(c0.mid)),null!=c0.codec&&(c1.codec=String(c0.codec)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.type="",c2.mid="",c2.codec=""),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.mid&&c0.hasOwnProperty("mid")&&(c2.mid=c0.mid),null!=c0.codec&&c0.hasOwnProperty("codec")&&(c2.codec=c0.codec),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ConfParticipant=function(){function c0(c0){if(this.stream=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.userId=c0.string();break;case 2:c3.publisher=c0.int32();break;case 3:c3.stream&&c3.stream.length||(c3.stream=[]),c3.stream.push(c10.ConfStream.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("userId"))throw c9.ProtocolError("missing required 'userId'",{instance:c3});if(!c3.hasOwnProperty("publisher"))throw c9.ProtocolError("missing required 'publisher'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.userId))return"userId: string expected";if(!c9.isInteger(c0.publisher))return"publisher: integer expected";if(null!=c0.stream&&c0.hasOwnProperty("stream")){if(!Array.isArray(c0.stream))return"stream: array expected";for(var c1=0;c1>>3==1)c3.participant&&c3.participant.length||(c3.participant=[]),c3.participant.push(c10.ConfParticipant.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.participant&&c0.hasOwnProperty("participant")){if(!Array.isArray(c0.participant))return"participant: array expected";for(var c1=0;c1>>3){case 1:c3.roomId=c0.string();break;case 2:c3.publisherId=c0.string();break;case 3:c3.host=c0.string();break;case 4:c3.audioPort=c0.int32();break;case 5:c3.audioPt=c0.int32();break;case 6:c3.audioSsrc=c0.int64();break;case 7:c3.videoPort=c0.int32();break;case 8:c3.videoPt=c0.int32();break;case 9:c3.videoSsrc=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("roomId"))throw c9.ProtocolError("missing required 'roomId'",{instance:c3});if(!c3.hasOwnProperty("publisherId"))throw c9.ProtocolError("missing required 'publisherId'",{instance:c3});if(!c3.hasOwnProperty("host"))throw c9.ProtocolError("missing required 'host'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.roomId)?c9.isString(c0.publisherId)?c9.isString(c0.host)?null!=c0.audioPort&&c0.hasOwnProperty("audioPort")&&!c9.isInteger(c0.audioPort)?"audioPort: integer expected":null!=c0.audioPt&&c0.hasOwnProperty("audioPt")&&!c9.isInteger(c0.audioPt)?"audioPt: integer expected":null!=c0.audioSsrc&&c0.hasOwnProperty("audioSsrc")&&!(c9.isInteger(c0.audioSsrc)||c0.audioSsrc&&c9.isInteger(c0.audioSsrc.low)&&c9.isInteger(c0.audioSsrc.high))?"audioSsrc: integer|Long expected":null!=c0.videoPort&&c0.hasOwnProperty("videoPort")&&!c9.isInteger(c0.videoPort)?"videoPort: integer expected":null!=c0.videoPt&&c0.hasOwnProperty("videoPt")&&!c9.isInteger(c0.videoPt)?"videoPt: integer expected":null!=c0.videoSsrc&&c0.hasOwnProperty("videoSsrc")&&!(c9.isInteger(c0.videoSsrc)||c0.videoSsrc&&c9.isInteger(c0.videoSsrc.low)&&c9.isInteger(c0.videoSsrc.high))?"videoSsrc: integer|Long expected":null:"host: string expected":"publisherId: string expected":"roomId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ConfRtpForwardReq)return c0;var c1=new c10.ConfRtpForwardReq;return null!=c0.roomId&&(c1.roomId=String(c0.roomId)),null!=c0.publisherId&&(c1.publisherId=String(c0.publisherId)),null!=c0.host&&(c1.host=String(c0.host)),null!=c0.audioPort&&(c1.audioPort=0|c0.audioPort),null!=c0.audioPt&&(c1.audioPt=0|c0.audioPt),null!=c0.audioSsrc&&(c9.Long?(c1.audioSsrc=c9.Long.fromValue(c0.audioSsrc)).unsigned=!1:"string"==typeof c0.audioSsrc?c1.audioSsrc=parseInt(c0.audioSsrc,10):"number"==typeof c0.audioSsrc?c1.audioSsrc=c0.audioSsrc:"object"===(0,c3.default)(c0.audioSsrc)&&(c1.audioSsrc=new c9.LongBits(c0.audioSsrc.low>>>0,c0.audioSsrc.high>>>0).toNumber())),null!=c0.videoPort&&(c1.videoPort=0|c0.videoPort),null!=c0.videoPt&&(c1.videoPt=0|c0.videoPt),null!=c0.videoSsrc&&(c9.Long?(c1.videoSsrc=c9.Long.fromValue(c0.videoSsrc)).unsigned=!1:"string"==typeof c0.videoSsrc?c1.videoSsrc=parseInt(c0.videoSsrc,10):"number"==typeof c0.videoSsrc?c1.videoSsrc=c0.videoSsrc:"object"===(0,c3.default)(c0.videoSsrc)&&(c1.videoSsrc=new c9.LongBits(c0.videoSsrc.low>>>0,c0.videoSsrc.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.roomId="",c2.publisherId="",c2.host="",c2.audioPort=0,c2.audioPt=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.audioSsrc=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.audioSsrc=c1.longs===String?"0":0;if(c2.videoPort=0,c2.videoPt=0,c9.Long){c3=new c9.Long(0,0,!1);c2.videoSsrc=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.videoSsrc=c1.longs===String?"0":0}return null!=c0.roomId&&c0.hasOwnProperty("roomId")&&(c2.roomId=c0.roomId),null!=c0.publisherId&&c0.hasOwnProperty("publisherId")&&(c2.publisherId=c0.publisherId),null!=c0.host&&c0.hasOwnProperty("host")&&(c2.host=c0.host),null!=c0.audioPort&&c0.hasOwnProperty("audioPort")&&(c2.audioPort=c0.audioPort),null!=c0.audioPt&&c0.hasOwnProperty("audioPt")&&(c2.audioPt=c0.audioPt),null!=c0.audioSsrc&&c0.hasOwnProperty("audioSsrc")&&("number"==typeof c0.audioSsrc?c2.audioSsrc=c1.longs===String?String(c0.audioSsrc):c0.audioSsrc:c2.audioSsrc=c1.longs===String?c9.Long.prototype.toString.call(c0.audioSsrc):c1.longs===Number?new c9.LongBits(c0.audioSsrc.low>>>0,c0.audioSsrc.high>>>0).toNumber():c0.audioSsrc),null!=c0.videoPort&&c0.hasOwnProperty("videoPort")&&(c2.videoPort=c0.videoPort),null!=c0.videoPt&&c0.hasOwnProperty("videoPt")&&(c2.videoPt=c0.videoPt),null!=c0.videoSsrc&&c0.hasOwnProperty("videoSsrc")&&("number"==typeof c0.videoSsrc?c2.videoSsrc=c1.longs===String?String(c0.videoSsrc):c0.videoSsrc:c2.videoSsrc=c1.longs===String?c9.Long.prototype.toString.call(c0.videoSsrc):c1.longs===Number?new c9.LongBits(c0.videoSsrc.low>>>0,c0.videoSsrc.high>>>0).toNumber():c0.videoSsrc),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.RecallMultiCastMessageRequest=function(){function c0(c0){if(this.receiver=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.messageId=c0.int64();break;case 2:c3.receiver&&c3.receiver.length||(c3.receiver=[]),c3.receiver.push(c0.string());break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!(c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)))return"messageId: integer|Long expected";if(null!=c0.receiver&&c0.hasOwnProperty("receiver")){if(!Array.isArray(c0.receiver))return"receiver: array expected";for(var c1=0;c1>>0,c0.messageId.high>>>0).toNumber())),c0.receiver){if(!Array.isArray(c0.receiver))throw TypeError(".RecallMultiCastMessageRequest.receiver: array expected");c1.receiver=[];for(var c2=0;c2>>0,c0.messageId.high>>>0).toNumber():c0.messageId),c0.receiver&&c0.receiver.length){c2.receiver=[];for(var c4=0;c4>>3){case 1:c3.mediaUrl=c0.string();break;case 2:c3.thumbUrl=c0.string();break;case 3:c3.width=c0.int32();break;case 4:c3.height=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("mediaUrl"))throw c9.ProtocolError("missing required 'mediaUrl'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.mediaUrl)?null!=c0.thumbUrl&&c0.hasOwnProperty("thumbUrl")&&!c9.isString(c0.thumbUrl)?"thumbUrl: string expected":null!=c0.width&&c0.hasOwnProperty("width")&&!c9.isInteger(c0.width)?"width: integer expected":null!=c0.height&&c0.hasOwnProperty("height")&&!c9.isInteger(c0.height)?"height: integer expected":null:"mediaUrl: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.MomentsMedia)return c0;var c1=new c10.MomentsMedia;return null!=c0.mediaUrl&&(c1.mediaUrl=String(c0.mediaUrl)),null!=c0.thumbUrl&&(c1.thumbUrl=String(c0.thumbUrl)),null!=c0.width&&(c1.width=0|c0.width),null!=c0.height&&(c1.height=0|c0.height),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.mediaUrl="",c2.thumbUrl="",c2.width=0,c2.height=0),null!=c0.mediaUrl&&c0.hasOwnProperty("mediaUrl")&&(c2.mediaUrl=c0.mediaUrl),null!=c0.thumbUrl&&c0.hasOwnProperty("thumbUrl")&&(c2.thumbUrl=c0.thumbUrl),null!=c0.width&&c0.hasOwnProperty("width")&&(c2.width=c0.width),null!=c0.height&&c0.hasOwnProperty("height")&&(c2.height=c0.height),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.MomentsFeed=function(){function c0(c0){if(this.medias=[],this.mentionedUsers=[],this.toUsers=[],this.excludeUsers=[],this.comments=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.feedId=c0.int64();break;case 2:c3.sender=c0.string();break;case 3:c3.type=c0.int32();break;case 4:c3.text=c0.string();break;case 5:c3.medias&&c3.medias.length||(c3.medias=[]),c3.medias.push(c10.MomentsMedia.decode(c0,c0.uint32()));break;case 6:c3.mentionedUsers&&c3.mentionedUsers.length||(c3.mentionedUsers=[]),c3.mentionedUsers.push(c0.string());break;case 7:c3.toUsers&&c3.toUsers.length||(c3.toUsers=[]),c3.toUsers.push(c0.string());break;case 8:c3.excludeUsers&&c3.excludeUsers.length||(c3.excludeUsers=[]),c3.excludeUsers.push(c0.string());break;case 9:c3.serverTime=c0.int64();break;case 10:c3.extra=c0.string();break;case 11:c3.comments&&c3.comments.length||(c3.comments=[]),c3.comments.push(c10.MomentsComment.decode(c0,c0.uint32()));break;case 12:c3.hasMore=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("feedId"))throw c9.ProtocolError("missing required 'feedId'",{instance:c3});if(!c3.hasOwnProperty("sender"))throw c9.ProtocolError("missing required 'sender'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("serverTime"))throw c9.ProtocolError("missing required 'serverTime'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!(c9.isInteger(c0.feedId)||c0.feedId&&c9.isInteger(c0.feedId.low)&&c9.isInteger(c0.feedId.high)))return"feedId: integer|Long expected";if(!c9.isString(c0.sender))return"sender: string expected";if(!c9.isInteger(c0.type))return"type: integer expected";if(null!=c0.text&&c0.hasOwnProperty("text")&&!c9.isString(c0.text))return"text: string expected";if(null!=c0.medias&&c0.hasOwnProperty("medias")){if(!Array.isArray(c0.medias))return"medias: array expected";for(var c1=0;c1>>0,c0.feedId.high>>>0).toNumber())),null!=c0.sender&&(c1.sender=String(c0.sender)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.text&&(c1.text=String(c0.text)),c0.medias){if(!Array.isArray(c0.medias))throw TypeError(".MomentsFeed.medias: array expected");c1.medias=[];for(var c2=0;c2>>0,c0.serverTime.high>>>0).toNumber())),null!=c0.extra&&(c1.extra=String(c0.extra)),c0.comments){if(!Array.isArray(c0.comments))throw TypeError(".MomentsFeed.comments: array expected");c1.comments=[];for(c2=0;c2>>0,c0.feedId.high>>>0).toNumber():c0.feedId),null!=c0.sender&&c0.hasOwnProperty("sender")&&(c2.sender=c0.sender),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.text&&c0.hasOwnProperty("text")&&(c2.text=c0.text),c0.medias&&c0.medias.length){c2.medias=[];for(var c4=0;c4>>0,c0.serverTime.high>>>0).toNumber():c0.serverTime),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c0.comments&&c0.comments.length){c2.comments=[];for(c4=0;c4>>3==1)c3.feeds&&c3.feeds.length||(c3.feeds=[]),c3.feeds.push(c10.MomentsFeed.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.feeds&&c0.hasOwnProperty("feeds")){if(!Array.isArray(c0.feeds))return"feeds: array expected";for(var c1=0;c1>>3==1)c3.comments&&c3.comments.length||(c3.comments=[]),c3.comments.push(c10.MomentsComment.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.comments&&c0.hasOwnProperty("comments")){if(!Array.isArray(c0.comments))return"comments: array expected";for(var c1=0;c1>>3){case 1:c3.feedId=c0.int64();break;case 2:c3.commentId=c0.int64();break;case 3:c3.replyId=c0.int64();break;case 4:c3.sender=c0.string();break;case 5:c3.type=c0.int32();break;case 6:c3.text=c0.string();break;case 7:c3.replyTo=c0.string();break;case 8:c3.serverTime=c0.int64();break;case 9:c3.extra=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("feedId"))throw c9.ProtocolError("missing required 'feedId'",{instance:c3});if(!c3.hasOwnProperty("commentId"))throw c9.ProtocolError("missing required 'commentId'",{instance:c3});if(!c3.hasOwnProperty("sender"))throw c9.ProtocolError("missing required 'sender'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("serverTime"))throw c9.ProtocolError("missing required 'serverTime'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.feedId)||c0.feedId&&c9.isInteger(c0.feedId.low)&&c9.isInteger(c0.feedId.high)?c9.isInteger(c0.commentId)||c0.commentId&&c9.isInteger(c0.commentId.low)&&c9.isInteger(c0.commentId.high)?null!=c0.replyId&&c0.hasOwnProperty("replyId")&&!(c9.isInteger(c0.replyId)||c0.replyId&&c9.isInteger(c0.replyId.low)&&c9.isInteger(c0.replyId.high))?"replyId: integer|Long expected":c9.isString(c0.sender)?c9.isInteger(c0.type)?null!=c0.text&&c0.hasOwnProperty("text")&&!c9.isString(c0.text)?"text: string expected":null!=c0.replyTo&&c0.hasOwnProperty("replyTo")&&!c9.isString(c0.replyTo)?"replyTo: string expected":c9.isInteger(c0.serverTime)||c0.serverTime&&c9.isInteger(c0.serverTime.low)&&c9.isInteger(c0.serverTime.high)?null!=c0.extra&&c0.hasOwnProperty("extra")&&!c9.isString(c0.extra)?"extra: string expected":null:"serverTime: integer|Long expected":"type: integer expected":"sender: string expected":"commentId: integer|Long expected":"feedId: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.MomentsComment)return c0;var c1=new c10.MomentsComment;return null!=c0.feedId&&(c9.Long?(c1.feedId=c9.Long.fromValue(c0.feedId)).unsigned=!1:"string"==typeof c0.feedId?c1.feedId=parseInt(c0.feedId,10):"number"==typeof c0.feedId?c1.feedId=c0.feedId:"object"===(0,c3.default)(c0.feedId)&&(c1.feedId=new c9.LongBits(c0.feedId.low>>>0,c0.feedId.high>>>0).toNumber())),null!=c0.commentId&&(c9.Long?(c1.commentId=c9.Long.fromValue(c0.commentId)).unsigned=!1:"string"==typeof c0.commentId?c1.commentId=parseInt(c0.commentId,10):"number"==typeof c0.commentId?c1.commentId=c0.commentId:"object"===(0,c3.default)(c0.commentId)&&(c1.commentId=new c9.LongBits(c0.commentId.low>>>0,c0.commentId.high>>>0).toNumber())),null!=c0.replyId&&(c9.Long?(c1.replyId=c9.Long.fromValue(c0.replyId)).unsigned=!1:"string"==typeof c0.replyId?c1.replyId=parseInt(c0.replyId,10):"number"==typeof c0.replyId?c1.replyId=c0.replyId:"object"===(0,c3.default)(c0.replyId)&&(c1.replyId=new c9.LongBits(c0.replyId.low>>>0,c0.replyId.high>>>0).toNumber())),null!=c0.sender&&(c1.sender=String(c0.sender)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.text&&(c1.text=String(c0.text)),null!=c0.replyTo&&(c1.replyTo=String(c0.replyTo)),null!=c0.serverTime&&(c9.Long?(c1.serverTime=c9.Long.fromValue(c0.serverTime)).unsigned=!1:"string"==typeof c0.serverTime?c1.serverTime=parseInt(c0.serverTime,10):"number"==typeof c0.serverTime?c1.serverTime=c0.serverTime:"object"===(0,c3.default)(c0.serverTime)&&(c1.serverTime=new c9.LongBits(c0.serverTime.low>>>0,c0.serverTime.high>>>0).toNumber())),null!=c0.extra&&(c1.extra=String(c0.extra)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c9.Long){var c3=new c9.Long(0,0,!1);c2.feedId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.feedId=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.commentId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.commentId=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.replyId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.replyId=c1.longs===String?"0":0;if(c2.sender="",c2.type=0,c2.text="",c2.replyTo="",c9.Long){c3=new c9.Long(0,0,!1);c2.serverTime=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.serverTime=c1.longs===String?"0":0;c2.extra=""}return null!=c0.feedId&&c0.hasOwnProperty("feedId")&&("number"==typeof c0.feedId?c2.feedId=c1.longs===String?String(c0.feedId):c0.feedId:c2.feedId=c1.longs===String?c9.Long.prototype.toString.call(c0.feedId):c1.longs===Number?new c9.LongBits(c0.feedId.low>>>0,c0.feedId.high>>>0).toNumber():c0.feedId),null!=c0.commentId&&c0.hasOwnProperty("commentId")&&("number"==typeof c0.commentId?c2.commentId=c1.longs===String?String(c0.commentId):c0.commentId:c2.commentId=c1.longs===String?c9.Long.prototype.toString.call(c0.commentId):c1.longs===Number?new c9.LongBits(c0.commentId.low>>>0,c0.commentId.high>>>0).toNumber():c0.commentId),null!=c0.replyId&&c0.hasOwnProperty("replyId")&&("number"==typeof c0.replyId?c2.replyId=c1.longs===String?String(c0.replyId):c0.replyId:c2.replyId=c1.longs===String?c9.Long.prototype.toString.call(c0.replyId):c1.longs===Number?new c9.LongBits(c0.replyId.low>>>0,c0.replyId.high>>>0).toNumber():c0.replyId),null!=c0.sender&&c0.hasOwnProperty("sender")&&(c2.sender=c0.sender),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.text&&c0.hasOwnProperty("text")&&(c2.text=c0.text),null!=c0.replyTo&&c0.hasOwnProperty("replyTo")&&(c2.replyTo=c0.replyTo),null!=c0.serverTime&&c0.hasOwnProperty("serverTime")&&("number"==typeof c0.serverTime?c2.serverTime=c1.longs===String?String(c0.serverTime):c0.serverTime:c2.serverTime=c1.longs===String?c9.Long.prototype.toString.call(c0.serverTime):c1.longs===Number?new c9.LongBits(c0.serverTime.low>>>0,c0.serverTime.high>>>0).toNumber():c0.serverTime),null!=c0.extra&&c0.hasOwnProperty("extra")&&(c2.extra=c0.extra),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.LockRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.lockId=c0.string();break;case 2:c3.duration=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("lockId"))throw c9.ProtocolError("missing required 'lockId'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.lockId)?null!=c0.duration&&c0.hasOwnProperty("duration")&&!(c9.isInteger(c0.duration)||c0.duration&&c9.isInteger(c0.duration.low)&&c9.isInteger(c0.duration.high))?"duration: integer|Long expected":null:"lockId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.LockRequest)return c0;var c1=new c10.LockRequest;return null!=c0.lockId&&(c1.lockId=String(c0.lockId)),null!=c0.duration&&(c9.Long?(c1.duration=c9.Long.fromValue(c0.duration)).unsigned=!1:"string"==typeof c0.duration?c1.duration=parseInt(c0.duration,10):"number"==typeof c0.duration?c1.duration=c0.duration:"object"===(0,c3.default)(c0.duration)&&(c1.duration=new c9.LongBits(c0.duration.low>>>0,c0.duration.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.lockId="",c9.Long){var c3=new c9.Long(0,0,!1);c2.duration=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.duration=c1.longs===String?"0":0;return null!=c0.lockId&&c0.hasOwnProperty("lockId")&&(c2.lockId=c0.lockId),null!=c0.duration&&c0.hasOwnProperty("duration")&&("number"==typeof c0.duration?c2.duration=c1.longs===String?String(c0.duration):c0.duration:c2.duration=c1.longs===String?c9.Long.prototype.toString.call(c0.duration):c1.longs===Number?new c9.LongBits(c0.duration.low>>>0,c0.duration.high>>>0).toNumber():c0.duration),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PresenceOnlineState=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.platform=c0.int32();break;case 2:c3.state=c0.int32();break;case 3:c3.lastSeen=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("platform"))throw c9.ProtocolError("missing required 'platform'",{instance:c3});if(!c3.hasOwnProperty("state"))throw c9.ProtocolError("missing required 'state'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isInteger(c0.platform)?c9.isInteger(c0.state)?null!=c0.lastSeen&&c0.hasOwnProperty("lastSeen")&&!(c9.isInteger(c0.lastSeen)||c0.lastSeen&&c9.isInteger(c0.lastSeen.low)&&c9.isInteger(c0.lastSeen.high))?"lastSeen: integer|Long expected":null:"state: integer expected":"platform: integer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.PresenceOnlineState)return c0;var c1=new c10.PresenceOnlineState;return null!=c0.platform&&(c1.platform=0|c0.platform),null!=c0.state&&(c1.state=0|c0.state),null!=c0.lastSeen&&(c9.Long?(c1.lastSeen=c9.Long.fromValue(c0.lastSeen)).unsigned=!1:"string"==typeof c0.lastSeen?c1.lastSeen=parseInt(c0.lastSeen,10):"number"==typeof c0.lastSeen?c1.lastSeen=c0.lastSeen:"object"===(0,c3.default)(c0.lastSeen)&&(c1.lastSeen=new c9.LongBits(c0.lastSeen.low>>>0,c0.lastSeen.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.platform=0,c2.state=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.lastSeen=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.lastSeen=c1.longs===String?"0":0;return null!=c0.platform&&c0.hasOwnProperty("platform")&&(c2.platform=c0.platform),null!=c0.state&&c0.hasOwnProperty("state")&&(c2.state=c0.state),null!=c0.lastSeen&&c0.hasOwnProperty("lastSeen")&&("number"==typeof c0.lastSeen?c2.lastSeen=c1.longs===String?String(c0.lastSeen):c0.lastSeen:c2.lastSeen=c1.longs===String?c9.Long.prototype.toString.call(c0.lastSeen):c1.longs===Number?new c9.LongBits(c0.lastSeen.low>>>0,c0.lastSeen.high>>>0).toNumber():c0.lastSeen),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.PresenceOnlineNotify=function(){function c0(c0){if(this.state=[],c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.userId=c0.string();break;case 2:c3.customState=c0.int32();break;case 3:c3.customText=c0.string();break;case 4:c3.state&&c3.state.length||(c3.state=[]),c3.state.push(c10.PresenceOnlineState.decode(c0,c0.uint32()));break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("userId"))throw c9.ProtocolError("missing required 'userId'",{instance:c3});if(!c3.hasOwnProperty("customState"))throw c9.ProtocolError("missing required 'customState'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isString(c0.userId))return"userId: string expected";if(!c9.isInteger(c0.customState))return"customState: integer expected";if(null!=c0.customText&&c0.hasOwnProperty("customText")&&!c9.isString(c0.customText))return"customText: string expected";if(null!=c0.state&&c0.hasOwnProperty("state")){if(!Array.isArray(c0.state))return"state: array expected";for(var c1=0;c1>>3){case 1:c3.type=c0.int32();break;case 2:c3.target&&c3.target.length||(c3.target=[]),c3.target.push(c0.string());break;case 3:c3.duration=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(!c9.isInteger(c0.type))return"type: integer expected";if(null!=c0.target&&c0.hasOwnProperty("target")){if(!Array.isArray(c0.target))return"target: array expected";for(var c1=0;c1>>3==1)c3.notify&&c3.notify.length||(c3.notify=[]),c3.notify.push(c10.PresenceOnlineNotify.decode(c0,c0.uint32()));else c0.skipType(7&c4)}return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";if(null!=c0.notify&&c0.hasOwnProperty("notify")){if(!Array.isArray(c0.notify))return"notify: array expected";for(var c1=0;c1>>3){case 1:c3.userId=c0.string();break;case 2:c3.pubkey=c0.string();break;case 3:c3.targetId=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("userId"))throw c9.ProtocolError("missing required 'userId'",{instance:c3});if(!c3.hasOwnProperty("pubkey"))throw c9.ProtocolError("missing required 'pubkey'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.userId)?c9.isString(c0.pubkey)?null!=c0.targetId&&c0.hasOwnProperty("targetId")&&!c9.isString(c0.targetId)?"targetId: string expected":null:"pubkey: string expected":"userId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.CreateSecretChatRequest)return c0;var c1=new c10.CreateSecretChatRequest;return null!=c0.userId&&(c1.userId=String(c0.userId)),null!=c0.pubkey&&(c1.pubkey=String(c0.pubkey)),null!=c0.targetId&&(c1.targetId=String(c0.targetId)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.userId="",c2.pubkey="",c2.targetId=""),null!=c0.userId&&c0.hasOwnProperty("userId")&&(c2.userId=c0.userId),null!=c0.pubkey&&c0.hasOwnProperty("pubkey")&&(c2.pubkey=c0.pubkey),null!=c0.targetId&&c0.hasOwnProperty("targetId")&&(c2.targetId=c0.targetId),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.CreateSecretChatResponse=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.targetId=c0.string();break;case 2:c3.line=c0.int32();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("targetId"))throw c9.ProtocolError("missing required 'targetId'",{instance:c3});if(!c3.hasOwnProperty("line"))throw c9.ProtocolError("missing required 'line'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.targetId)?c9.isInteger(c0.line)?null:"line: integer expected":"targetId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.CreateSecretChatResponse)return c0;var c1=new c10.CreateSecretChatResponse;return null!=c0.targetId&&(c1.targetId=String(c0.targetId)),null!=c0.line&&(c1.line=0|c0.line),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.targetId="",c2.line=0),null!=c0.targetId&&c0.hasOwnProperty("targetId")&&(c2.targetId=c0.targetId),null!=c0.line&&c0.hasOwnProperty("line")&&(c2.line=c0.line),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.SecretChatInfo=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.targetId=c0.string();break;case 2:c3.from=c0.string();break;case 3:c3.to=c0.string();break;case 4:c3.state=c0.int32();break;case 5:c3.createDt=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("targetId"))throw c9.ProtocolError("missing required 'targetId'",{instance:c3});if(!c3.hasOwnProperty("from"))throw c9.ProtocolError("missing required 'from'",{instance:c3});if(!c3.hasOwnProperty("to"))throw c9.ProtocolError("missing required 'to'",{instance:c3});if(!c3.hasOwnProperty("state"))throw c9.ProtocolError("missing required 'state'",{instance:c3});if(!c3.hasOwnProperty("createDt"))throw c9.ProtocolError("missing required 'createDt'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.targetId)?c9.isString(c0.from)?c9.isString(c0.to)?c9.isInteger(c0.state)?c9.isInteger(c0.createDt)||c0.createDt&&c9.isInteger(c0.createDt.low)&&c9.isInteger(c0.createDt.high)?null:"createDt: integer|Long expected":"state: integer expected":"to: string expected":"from: string expected":"targetId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.SecretChatInfo)return c0;var c1=new c10.SecretChatInfo;return null!=c0.targetId&&(c1.targetId=String(c0.targetId)),null!=c0.from&&(c1.from=String(c0.from)),null!=c0.to&&(c1.to=String(c0.to)),null!=c0.state&&(c1.state=0|c0.state),null!=c0.createDt&&(c9.Long?(c1.createDt=c9.Long.fromValue(c0.createDt)).unsigned=!1:"string"==typeof c0.createDt?c1.createDt=parseInt(c0.createDt,10):"number"==typeof c0.createDt?c1.createDt=c0.createDt:"object"===(0,c3.default)(c0.createDt)&&(c1.createDt=new c9.LongBits(c0.createDt.low>>>0,c0.createDt.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults)if(c2.targetId="",c2.from="",c2.to="",c2.state=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.createDt=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.createDt=c1.longs===String?"0":0;return null!=c0.targetId&&c0.hasOwnProperty("targetId")&&(c2.targetId=c0.targetId),null!=c0.from&&c0.hasOwnProperty("from")&&(c2.from=c0.from),null!=c0.to&&c0.hasOwnProperty("to")&&(c2.to=c0.to),null!=c0.state&&c0.hasOwnProperty("state")&&(c2.state=c0.state),null!=c0.createDt&&c0.hasOwnProperty("createDt")&&("number"==typeof c0.createDt?c2.createDt=c1.longs===String?String(c0.createDt):c0.createDt:c2.createDt=c1.longs===String?c9.Long.prototype.toString.call(c0.createDt):c1.longs===Number?new c9.LongBits(c0.createDt.low>>>0,c0.createDt.high>>>0).toNumber():c0.createDt),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.DeleteSecretChatMessage=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.conversation=c10.Conversation.decode(c0,c0.uint32());break;case 2:c3.messageId=c0.int64();break;case 3:c3.serverTimestamp=c0.int64();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("conversation"))throw c9.ProtocolError("missing required 'conversation'",{instance:c3});if(!c3.hasOwnProperty("messageId"))throw c9.ProtocolError("missing required 'messageId'",{instance:c3});if(!c3.hasOwnProperty("serverTimestamp"))throw c9.ProtocolError("missing required 'serverTimestamp'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){if("object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0)return"object expected";var c1=c10.Conversation.verify(c0.conversation);return c1?"conversation."+c1:c9.isInteger(c0.messageId)||c0.messageId&&c9.isInteger(c0.messageId.low)&&c9.isInteger(c0.messageId.high)?c9.isInteger(c0.serverTimestamp)||c0.serverTimestamp&&c9.isInteger(c0.serverTimestamp.low)&&c9.isInteger(c0.serverTimestamp.high)?null:"serverTimestamp: integer|Long expected":"messageId: integer|Long expected"},c0.fromObject=function(c0){if(c0 instanceof c10.DeleteSecretChatMessage)return c0;var c1=new c10.DeleteSecretChatMessage;if(null!=c0.conversation){if("object"!==(0,c3.default)(c0.conversation))throw TypeError(".DeleteSecretChatMessage.conversation: object expected");c1.conversation=c10.Conversation.fromObject(c0.conversation)}return null!=c0.messageId&&(c9.Long?(c1.messageId=c9.Long.fromValue(c0.messageId)).unsigned=!1:"string"==typeof c0.messageId?c1.messageId=parseInt(c0.messageId,10):"number"==typeof c0.messageId?c1.messageId=c0.messageId:"object"===(0,c3.default)(c0.messageId)&&(c1.messageId=new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber())),null!=c0.serverTimestamp&&(c9.Long?(c1.serverTimestamp=c9.Long.fromValue(c0.serverTimestamp)).unsigned=!1:"string"==typeof c0.serverTimestamp?c1.serverTimestamp=parseInt(c0.serverTimestamp,10):"number"==typeof c0.serverTimestamp?c1.serverTimestamp=c0.serverTimestamp:"object"===(0,c3.default)(c0.serverTimestamp)&&(c1.serverTimestamp=new c9.LongBits(c0.serverTimestamp.low>>>0,c0.serverTimestamp.high>>>0).toNumber())),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.conversation=null,c9.Long){var c3=new c9.Long(0,0,!1);c2.messageId=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.messageId=c1.longs===String?"0":0;if(c9.Long){c3=new c9.Long(0,0,!1);c2.serverTimestamp=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.serverTimestamp=c1.longs===String?"0":0}return null!=c0.conversation&&c0.hasOwnProperty("conversation")&&(c2.conversation=c10.Conversation.toObject(c0.conversation,c1)),null!=c0.messageId&&c0.hasOwnProperty("messageId")&&("number"==typeof c0.messageId?c2.messageId=c1.longs===String?String(c0.messageId):c0.messageId:c2.messageId=c1.longs===String?c9.Long.prototype.toString.call(c0.messageId):c1.longs===Number?new c9.LongBits(c0.messageId.low>>>0,c0.messageId.high>>>0).toNumber():c0.messageId),null!=c0.serverTimestamp&&c0.hasOwnProperty("serverTimestamp")&&("number"==typeof c0.serverTimestamp?c2.serverTimestamp=c1.longs===String?String(c0.serverTimestamp):c0.serverTimestamp:c2.serverTimestamp=c1.longs===String?c9.Long.prototype.toString.call(c0.serverTimestamp):c1.longs===Number?new c9.LongBits(c0.serverTimestamp.low>>>0,c0.serverTimestamp.high>>>0).toNumber():c0.serverTimestamp),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.AuthCodeRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.targetId=c0.string();break;case 2:c3.type=c0.int32();break;case 3:c3.host=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("targetId"))throw c9.ProtocolError("missing required 'targetId'",{instance:c3});if(!c3.hasOwnProperty("type"))throw c9.ProtocolError("missing required 'type'",{instance:c3});if(!c3.hasOwnProperty("host"))throw c9.ProtocolError("missing required 'host'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.targetId)?c9.isInteger(c0.type)?c9.isString(c0.host)?null:"host: string expected":"type: integer expected":"targetId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.AuthCodeRequest)return c0;var c1=new c10.AuthCodeRequest;return null!=c0.targetId&&(c1.targetId=String(c0.targetId)),null!=c0.type&&(c1.type=0|c0.type),null!=c0.host&&(c1.host=String(c0.host)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c2.targetId="",c2.type=0,c2.host=""),null!=c0.targetId&&c0.hasOwnProperty("targetId")&&(c2.targetId=c0.targetId),null!=c0.type&&c0.hasOwnProperty("type")&&(c2.type=c0.type),null!=c0.host&&c0.hasOwnProperty("host")&&(c2.host=c0.host),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.ApplicationConfigRequest=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.appId=c0.string();break;case 2:c3.appType=c0.int32();break;case 3:c3.timestamp=c0.int64();break;case 4:c3.nonce=c0.string();break;case 5:c3.signature=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("appId"))throw c9.ProtocolError("missing required 'appId'",{instance:c3});if(!c3.hasOwnProperty("appType"))throw c9.ProtocolError("missing required 'appType'",{instance:c3});if(!c3.hasOwnProperty("timestamp"))throw c9.ProtocolError("missing required 'timestamp'",{instance:c3});if(!c3.hasOwnProperty("nonce"))throw c9.ProtocolError("missing required 'nonce'",{instance:c3});if(!c3.hasOwnProperty("signature"))throw c9.ProtocolError("missing required 'signature'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c9.isString(c0.appId)?c9.isInteger(c0.appType)?c9.isInteger(c0.timestamp)||c0.timestamp&&c9.isInteger(c0.timestamp.low)&&c9.isInteger(c0.timestamp.high)?c9.isString(c0.nonce)?c9.isString(c0.signature)?null:"signature: string expected":"nonce: string expected":"timestamp: integer|Long expected":"appType: integer expected":"appId: string expected"},c0.fromObject=function(c0){if(c0 instanceof c10.ApplicationConfigRequest)return c0;var c1=new c10.ApplicationConfigRequest;return null!=c0.appId&&(c1.appId=String(c0.appId)),null!=c0.appType&&(c1.appType=0|c0.appType),null!=c0.timestamp&&(c9.Long?(c1.timestamp=c9.Long.fromValue(c0.timestamp)).unsigned=!1:"string"==typeof c0.timestamp?c1.timestamp=parseInt(c0.timestamp,10):"number"==typeof c0.timestamp?c1.timestamp=c0.timestamp:"object"===(0,c3.default)(c0.timestamp)&&(c1.timestamp=new c9.LongBits(c0.timestamp.low>>>0,c0.timestamp.high>>>0).toNumber())),null!=c0.nonce&&(c1.nonce=String(c0.nonce)),null!=c0.signature&&(c1.signature=String(c0.signature)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};if(c1.defaults){if(c2.appId="",c2.appType=0,c9.Long){var c3=new c9.Long(0,0,!1);c2.timestamp=c1.longs===String?c3.toString():c1.longs===Number?c3.toNumber():c3}else c2.timestamp=c1.longs===String?"0":0;c2.nonce="",c2.signature=""}return null!=c0.appId&&c0.hasOwnProperty("appId")&&(c2.appId=c0.appId),null!=c0.appType&&c0.hasOwnProperty("appType")&&(c2.appType=c0.appType),null!=c0.timestamp&&c0.hasOwnProperty("timestamp")&&("number"==typeof c0.timestamp?c2.timestamp=c1.longs===String?String(c0.timestamp):c0.timestamp:c2.timestamp=c1.longs===String?c9.Long.prototype.toString.call(c0.timestamp):c1.longs===Number?new c9.LongBits(c0.timestamp.low>>>0,c0.timestamp.high>>>0).toNumber():c0.timestamp),null!=c0.nonce&&c0.hasOwnProperty("nonce")&&(c2.nonce=c0.nonce),null!=c0.signature&&c0.hasOwnProperty("signature")&&(c2.signature=c0.signature),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c10.RouteRequestInternal=function(){function c0(c0){if(c0)for(var c1=(0,c4.default)(c0),c2=0;c2>>3){case 1:c3.data=c0.bytes();break;case 2:c3.appKey=c0.string();break;case 3:c3.appId=c0.string();break;default:c0.skipType(7&c4)}}if(!c3.hasOwnProperty("data"))throw c9.ProtocolError("missing required 'data'",{instance:c3});return c3},c0.decodeDelimited=function(c0){return c0 instanceof c7||(c0=new c7(c0)),this.decode(c0,c0.uint32())},c0.verify=function(c0){return"object"!==(void 0===c0?"undefined":(0,c3.default)(c0))||null===c0?"object expected":c0.data&&"number"==typeof c0.data.length||c9.isString(c0.data)?null!=c0.appKey&&c0.hasOwnProperty("appKey")&&!c9.isString(c0.appKey)?"appKey: string expected":null!=c0.appId&&c0.hasOwnProperty("appId")&&!c9.isString(c0.appId)?"appId: string expected":null:"data: buffer expected"},c0.fromObject=function(c0){if(c0 instanceof c10.RouteRequestInternal)return c0;var c1=new c10.RouteRequestInternal;return null!=c0.data&&("string"==typeof c0.data?c9.base64.decode(c0.data,c1.data=c9.newBuffer(c9.base64.length(c0.data)),0):c0.data.length&&(c1.data=c0.data)),null!=c0.appKey&&(c1.appKey=String(c0.appKey)),null!=c0.appId&&(c1.appId=String(c0.appId)),c1},c0.toObject=function(c0,c1){c1||(c1={});var c2={};return c1.defaults&&(c1.bytes===String?c2.data="":(c2.data=[],c1.bytes!==Array&&(c2.data=c9.newBuffer(c2.data))),c2.appKey="",c2.appId=""),null!=c0.data&&c0.hasOwnProperty("data")&&(c2.data=c1.bytes===String?c9.base64.encode(c0.data,0,c0.data.length):c1.bytes===Array?Array.prototype.slice.call(c0.data):c0.data),null!=c0.appKey&&c0.hasOwnProperty("appKey")&&(c2.appKey=c0.appKey),null!=c0.appId&&c0.hasOwnProperty("appId")&&(c2.appId=c0.appId),c2},c0.prototype.toJSON=function(){return this.constructor.toObject(this,c6.util.toJSONOptions)},c0}(),c0.exports=c10},function(c0,c1,c2){"use strict";Object.defineProperty(c1,"__esModule",{value:!0});var c3=c37(c2(80)),c4=c37(c2(81)),c5=c37(c2(120)),c6=c37(c2(121)),c7=c37(c2(107)),c8=c37(c2(122)),c9=c37(c2(55)),c10=c37(c2(123)),c11=c37(c2(82)),c12=c37(c2(163)),c13=c37(c2(166)),c14=c37(c2(174)),c15=c37(c2(167)),c16=c37(c2(175)),c17=c37(c2(170)),c18=c37(c2(171)),c19=c37(c2(379)),c20=c37(c2(173)),c21=c37(c2(161)),c22=c37(c2(176)),c23=c37(c2(160)),c24=c2(125),c25=c37(c2(380)),c26=c37(c2(164)),c27=c37(c2(169)),c28=c37(c2(92)),c29=c37(c2(381)),c30=c37(c2(172)),c31=c37(c2(165)),c32=c37(c2(168)),c33=c2(29),c34=c37(c2(382)),c35=c37(c2(383)),c36=c37(c2(162));function c37(c0){return c0&&c0.__esModule?c0:{default:c0}}var c38=function(){function c0(c1){(0,c9.default)(this,c0),this.users=new c8.default,this.groups=new c8.default,this.loadingUsers=new c7.default,this.loadingGroups=new c7.default,this.loadingGroupMembers=new c7.default,this.favGroups=[],this.favUsers=[],this.channels=new c8.default,this.groupMembers=new c8.default,this.friends=new c8.default,this.deliveries=new c8.default,this.readEntries=new c8.default,this.syncReadEntries=new c8.default,this.groupHeadEntries=new c8.default,this.friendRequests=[],this.messages=[],this.settings=[],this.conversationInfos=[],this.chatRoomMessageId=100,this.messageId=100,this.syncReadId=100,this.impl=null,this.impl=c1}return(0,c10.default)(c0,[{key:"genConversationKey",value:function(c0){return c0.type+"@"+c0.target+"@"+c0.line}},{key:"getUser",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c2=this._get(this.users,"u",c0,c30.default);if(c2){var c3=this.getFriendAlias(c0);if(c3&&""!==c3&&(c2.friendAlias=c3),c1.length>0){var c4=this.getGroupMember(c1,c0);c4&&c4.alias&&""!==c4.alias&&(c2.groupAlias=c4.alias)}}else c2=new c18.default(c0);return c2}},{key:"setUser",value:function(c0){this._set(this.users,"u",c0.uid,c0)}},{key:"getChannelInfo",value:function(c0){var c1=this._get(this.channels,"c",c0,c31.default);return c1||(c1=new c22.default(c0)),c1}},{key:"setChannelInfo",value:function(c0){c0 instanceof c22.default||this._set(this.channels,"c",c0.channelId,c0)}},{key:"getGroupInfo",value:function(c0){var c1=this._get(this.groups,"g",c0,c32.default);if(c1){var c2=this.getUserSetting(c20.default.GroupRemark,c0);c1.remark=c2?c2.value:void 0}else c1=new c17.default(c0);return c1}},{key:"setGroupInfo",value:function(c0){this._set(this.groups,"g",c0.target,c0)}},{key:"getGroupMembers",value:function(c0){var c1=this.groupMembers.get(c0);return c1=(c1=c1||[]).filter((function(c0){return c0.type!==c27.default.Removed}))}},{key:"getGroupMemberIds",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c2=this.getGroupMembers(c0,c1),c3=[];return c2.forEach((function(c0){c0.type!==c27.default.Removed&&c3.push(c0.memberId)})),c3}},{key:"getGroupMemberMaxDt",value:function(c0){var c1=c11.default.ZERO,c2=this.groupMembers.get(c0);return(c2=c2||[]).forEach((function(c0){c1=(0,c24.gt)(c0.updateDt,c1)?c0.updateDt:c1})),c1}},{key:"setGroupMembers",value:function(c0,c1){this.groupMembers.set(c0,c1)}},{key:"removeGroupAndMembers",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(c1){var c2=this.getGroupInfo(c0);c2.memberCount=0,this.setGroupInfo(c2)}else this._delete(this.groups,"g",c0);this.groupMembers.delete(c0)}},{key:"removeGroupMembers",value:function(c0,c1){var c2=this.groupMembers.get(c0);c2&&(c2=c2.filter((function(c0){return-1===c1.indexOf(c0.memberId)})),this.groupMembers.set(c0,c2))}},{key:"removeGroupSettings",value:function(c0){var c1=this;[c20.default.GroupHideNickname,c20.default.FavoriteGroup,c20.default.GroupRemark].forEach((function(c2){c1.removeUserSetting(c2,c0)}))}},{key:"updateGroupMembers",value:function(c0,c1){var c2=this.groupMembers.get(c0);if(c2)for(var c3=0;c30)&&this.friends.set(c0.uid,(0,c5.default)(new c16.default,c0))}},{key:"addFavGroup",value:function(c0){this.favGroups.indexOf(c0)>=0||this.favGroups.push(c0)}},{key:"removeFavGroup",value:function(c0){this.favGroups=this.favGroups.filter((function(c1){return c1.target!==c0}))}},{key:"getFavGroups",value:function(){return this.favGroups}},{key:"isFavGroup",value:function(c0){return this.favGroups.indexOf(c0)>=0}},{key:"getFavUsers",value:function(){return this.favUsers}},{key:"isFavUser",value:function(c0){return this.favUsers.indexOf(c0)>=0}},{key:"getFavGroupInfos",value:function(){var c0=this,c1=[];return this.favGroups.map((function(c2){var c3=c0._get(c0.groups,"g",c2,c32.default);c1.push(c3)})),c1}},{key:"getFriendAlias",value:function(c0){var c1=this.friends.get(c0),c2=c1?c1.alias:"";return c2.length>0?c2:null}},{key:"getFriendExtra",value:function(c0){var c1=this.friends.get(c0),c2=c1?c1.extra:"";return c2.length>0?c2:null}},{key:"getFriendUserInfos",value:function(){var c0=this,c1=[];return this.friends.forEach((function(c2,c3){if(0===c2.state){var c4=c0.getUser(c3);c1.push(c4)}})),c1}},{key:"getConversationInfo",value:function(c0){var c1=this.conversationInfos.filter((function(c1){return c1.conversation.equal(c0)}));return c1&&c1.length>0?c1[0]:null}},{key:"clearConversationUnreadStatus",value:function(c0){var c1=this.getConversationInfo(c0),c2=0;return c1&&(c2=c1.unreadCount.unread+c1.unreadCount.unreadMention+c1.unreadCount.unreadMentionAll,this.updateConversationUnreadStatus(c0,c1.timestamp)),c2}},{key:"clearMessageUnreadStatus",value:function(c0){for(var c1=!1,c2=0;c2-1){var c4=this.getConversationInfo(c3.conversation);if(c4){switch(c3.status){case c12.default.Unread:c4.unreadCount.unread-=1;break;case c12.default.Mentioned:c4.unreadCount.unreadMention-=1;break;case c12.default.AllMentioned:c4.unreadCount.unreadMentionAll-=1}c1=!0}c3.status=c12.default.Readed;break}}return c1}},{key:"updateConversationRead",value:function(c0,c1){var c2=this;this.messages.forEach((function(c3){c3.conversation.equal(c0)&&c3.status===c12.default.Sent&&(0,c24.lte)(c3.timestamp,c1)&&(c3.status=c12.default.Readed,c2.log("--------- mark conversation message read",c0,c1))}))}},{key:"getConversationReadMaxDt",value:function(c0){var c1=c11.default.ZERO;return this.messages.forEach((function(c2){c2.conversation.equal(c0)&&(c1=(0,c24.gt)(c2.timestamp,c1)?c2.timestamp:c1)})),c1}},{key:"getUnreadMsgSenders",value:function(c0){var c1=[];return this.messages.forEach((function(c2){c2.conversation.equal(c0)&&(c2.status!==c12.default.Unread&&c2.status!==c12.default.Mentioned&&c2.status!==c12.default.AllMentioned||-1===c1.indexOf(c2.from)&&c1.push(c2.from))})),c1}},{key:"clearAllUnreadStatus",value:function(){var c0=this,c1=0;return this.conversationInfos.forEach((function(c2){c1+=c2.unreadCount.unread+c2.unreadCount.unreadMention+c2.unreadCount.unreadMentionAll,c0.updateConversationUnreadStatus(c2.conversation,c2.timestamp)})),c1}},{key:"updateConversationUnreadStatus",value:function(c0,c1){var c2=this.getConversationMessages(c0),c3=this.getConversationInfo(c0);c3.unreadCount.unread=0,c3.unreadCount.unreadMention=0,c3.unreadCount.unreadMentionAll=0,(0,c24.gte)(c1,c3.timestamp)?c2.forEach((function(c0){(0,c24.gte)(c1,c0.timestamp)&&[c12.default.Unread,c12.default.AllMentioned,c12.default.Mentioned].indexOf(c0.status)>-1&&(c0.status=c12.default.Readed)})):c2.forEach((function(c0){0!==c0.direction&&((0,c24.gt)(c0.timestamp,c1)&&c23.default.getMessageContentPersitFlag(c0.content.type)===c26.default.Persist_And_Count?c0.status===c12.default.Unread?c3.unreadCount.unread+=1:c0.status===c12.default.Mentioned?c3.unreadCount.unreadMention+=1:c0.status===c12.default.AllMentioned&&(c3.unreadCount.unreadMentionAll+=1):[c12.default.Unread,c12.default.AllMentioned,c12.default.Mentioned].indexOf(c0.status)>-1&&(c0.status=c12.default.Readed))}))}},{key:"_getConversationInfos",value:function(){return this.conversationInfos}},{key:"getConversationList",value:function(c0,c1){return this.conversationInfos.filter((function(c2){if(-1===c0.indexOf(c2.conversation.type)||-1===c1.indexOf(c2.conversation.line))return!1;c2.conversation.target,c2.conversation.type;return!0})).sort((function(c0,c1){return c0.top&&!c1.top?1:!c0.top&&c1.top?-1:c0.top&&c1.top&&c0.top!==c1.top?c0.top>c1.top?1:-1:(0,c24.compare)(c0.timestamp,c1.timestamp)})).reverse()}},{key:"searchFriends",value:function(c0){return this.getFriendUserInfos().filter((function(c1){return c1.displayName.indexOf(c0)>=0}))}},{key:"searchConversation",value:function(c0){var c1=this,c2=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,1,2,3],c3=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,1];return this.conversationInfos.filter((function(c4){if(c2.indexOf(c4.conversation.type)<0||c3.indexOf(c4.conversation.line)<0)return!1;var c5=void 0,c6=void 0;switch(c4.conversation.type){case c15.default.Single:c5=c1.getUser(c4.conversation.target).displayName;break;case c15.default.Group:var c7=c1.getGroupInfo(c4.conversation.target);c5=c7.displayName,c6=c7.remark}if(c5&&c5.indexOf(c0)>-1||c6&&c6.indexOf(c0)>-1)return!0;var c8=c1.searchConversationMessage(c4.conversation,c0);return c8&&c8.length>0}))}},{key:"searchGroups",value:function(c0){var c1=this,c2=[];if(!c0||!c0.trim())return c2;var c3=this.groups;return c0=c0.toUpperCase(),c3.forEach((function(c3,c4){if(!(0,c24.lt)(c3.memberUpdateDt,0)){var c5=c1.getUserSetting(c20.default.GroupRemark,c4);c3.remark=c5?c5.value:"",(c3.name.toUpperCase().indexOf(c0)>-1||c3.remark&&c3.remark.toUpperCase().indexOf(c0)>-1)&&c2.push(c3)}})),c2.map((function(c0){var c1=new c34.default;return c1.groupInfo=c0,c1.matchType=0,c1}))}},{key:"loadPersistGroups",value:function(){if(!(this.groups.size>0))for(var c0=localStorage.length,c1=0;c11&&void 0!==arguments[1]&&arguments[1],c2=this._findConversationInfoIndex(c0);c2>-1&&this.conversationInfos.splice(c2,1),c1&&(this.messages=this.messages.filter((function(c1){return!c1.conversation.equal(c0)})))}},{key:"setConversationTop",value:function(c0,c1){var c2=this.getConversationInfo(c0);c2&&(c2.top=c1)}},{key:"setConversationSilent",value:function(c0,c1){var c2=this.getConversationInfo(c0);c2&&(c2.isSilent=c1)}},{key:"setConversationDraft",value:function(c0,c1){var c2=this.getConversationInfo(c0);c2&&(c2.draft=c1)}},{key:"getUnreadCount",value:function(c0,c1){var c2=new c19.default;return this.conversationInfos.forEach((function(c3){c0.indexOf(c3.conversation.type)>-1&&c1.indexOf(c3.conversation.line)>-1&&c3.unreadCount&&(c2.unread+=c3.unreadCount.unread,c2.unreadMention+=c3.unreadCount.unreadMention,c2.unreadMentionAll+=c3.unreadCount.unreadMentionAll)})),c2}},{key:"getConversationUnreadCount",value:function(c0){var c1=this._findConversationInfoIndex(c0);return c1>-1?this.conversationInfos[c1].unreadCount:null}},{key:"insertConversationMessages",value:function(c0){var c1;(c1=this.messages).push.apply(c1,(0,c4.default)(c0)),this.updateConversationLastMessage(c0[c0.length-1])}},{key:"updateConversationLastMessage",value:function(c0){if(!c0.messageId)return!1;var c1=this.conversationInfos.find((function(c1){return c1.conversation.equal(c0.conversation)})),c2=c0.conversation.conversationType+"-"+c0.conversation.line+"-"+c0.conversation.target;if(!c1){var c3=this.getUserSetting(c20.default.Conversation_Sync,c2);if(c3&&c3.value&&c3.value.startsWith("-")&&(0,c24.gte)(-Number(c3.value),c0.timestamp))return this.log("conversation removed, drop conversation message",c0),!1;if([c36.default.DismissGroup_Notification,c36.default.QuitGroup_Notification,c36.default.QuitGroup_Visible_Notification].indexOf(c0.messageContent.type)>=0)return console.log("not gen conversation",c0.messageContent.type),!1;c1=this.genAndSaveDefaultConversationInfo(c0.conversation)}var c4=this.getUserSetting(c20.default.Conversation_Sync,c2),c5=0;return c4&&(c5=Math.abs(Number(c4.value))),(0,c24.gt)(c0.timestamp,c5)&&1===c0.direction&&c23.default.getMessageContentFlag(c0.messageContent.type)===c26.default.Persist_And_Count&&(c0.status===c12.default.Unread?c1.unreadCount.unread+=1:c0.status===c12.default.Mentioned?c1.unreadCount.unreadMention+=1:c0.status===c12.default.AllMentioned&&(c1.unreadCount.unreadMentionAll+=1)),!!(0,c24.gt)(c0.timestamp,c1.timestamp)&&(c1.lastMessage=c0,c1.timestamp=c0.timestamp,!0)}},{key:"getConversationOldestMessage",value:function(c0){var c1=void 0;return this.messages.forEach((function(c2){c2.conversation.equal(c0)&&(c1?(0,c24.gt)(c1.timestamp,c2.timestamp)&&(c1=c2):c1=c2)})),c1}},{key:"getConversationMessages",value:function(c0){var c1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c2=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c3=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,c4=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",c5=null;c1&&(c5=this.getMessageById(c1));var c6=this.messages.filter((function(c1){return c5?c2?c1.conversation.equal(c0)&&(0,c24.lt)(c1.timestamp,c5.timestamp)&&(!c4||(0===c1.direction&&(c1.to===c4||""===c1.to)||c1.from===c4)):c1.conversation.equal(c0)&&(0,c24.gt)(c1.timestamp,c5.timestamp)&&(!c4||(0===c1.direction&&(c1.to===c4||""===c1.to)||c1.from===c4)):c1.conversation.equal(c0)}));return c6&&c6.length>0&&(c6=c6.sort((function(c0,c1){return(0,c24.compare)(c0.timestamp,c1.timestamp)}))),c3>0&&(c6=c2?c6.slice(-c3):c6.slice(0,c3)),c6}},{key:"getConversationLastReceivedMessage",value:function(c0){var c1=this.messages.filter((function(c1){return c1.conversation.equal(c0)&&1===c1.direction}));return c1&&c1.length>0?(c1=c1.sort((function(c0,c1){return(0,c24.compare)(c0.timestamp,c1.timestamp)})))[c1.length-1]:null}},{key:"getFirstUnreadMessageId",value:function(c0){var c1=this.messages.filter((function(c1){return c1.conversation.equal(c0)&&1===c1.direction&&[c12.default.Unread,c12.default.Mentioned,c12.default.AllMentioned].indexOf(c1.status)>=0}));return c1&&c1.length>0?(c1=c1.sort((function(c0,c1){return(0,c24.compare)(c0.timestamp,c1.timestamp)})))[0].messageId:0}},{key:"setLastReceivedMessageUnread",value:function(c0,c1,c2){console.log("setLastReceivedMessageUnread",c0,c1);var c3=this.getConversationLastReceivedMessage(c0);return c3&&c3.status>c12.default.Unread?(c3.status=c12.default.Unread,(0,c24.eq)(c2,0)?c3.timestamp=c3.timestamp.add(501):c3.timestamp=c11.default.fromValue(c2),this.getConversationInfo(c0).unreadCount.unread=1,c3.messageUid):0}},{key:"getMessagesEx2",value:function(c0,c1,c2,c3){var c4=this.messages.filter((function(c4){var c5=c4.conversation;return!(!(c0.indexOf(c5.conversationType)>=0&&c1.indexOf(c5.line)>=0)||c2!==c12.default.All&&c4.status!==c2)&&(!c3||(c5.conversationType===c15.default.Single?c4.from===c3||c5.target===c3:c4.from===c3||c4.to===c3))}));return c4&&c4.length>0?c4.sort((function(c0,c1){return(0,c24.compare)(c0.timestamp,c1.timestamp)})):c4}},{key:"getMessagesEx",value:function(c0,c1,c2,c3){var c4=this.messages.filter((function(c4){var c5=c4.conversation;return!!(c0.indexOf(c5.conversationType)>=0&&c1.indexOf(c5.line)>=0&&(0===c2.length||c2.length>0&&c2.indexOf(c23.default.getMessageContentType(c4.messageContent))>=0))&&(!c3||(c5.conversationType===c15.default.Single?c4.from===c3||c5.target===c3:c4.from===c3||c4.to===c3))}));return c4&&c4.length>0?c4.sort((function(c0,c1){return(0,c24.compare)(c0.timestamp,c1.timestamp)})):c4}},{key:"getFirstUnreadMessage",value:function(c0){var c1=null;return this.messages.forEach((function(c2){c2.conversation.equal(c0)&&[c12.default.Unread,c12.default.Mentioned,c12.default.AllMentioned].indexOf(c2.status)>-1&&(c1?(0,c24.gt)(c1.timestamp,c2.timestamp)&&(c1=c2):c1=c2)})),c1}},{key:"clearConversationMessages",value:function(c0,c1){this.messages=this.messages.filter((function(c2){return!c2.conversation.equal(c0)||(0,c24.gt)(c2.timestamp,c1)}));var c2=this.getConversationInfo(c0);c2&&c2.lastMessage&&c2.lastMessage.timestamp&&(0,c24.lte)(c2.lastMessage.timestamp,c1)&&(c2.lastMessage=null)}},{key:"clearConversationMessagesBeforeMessageUid",value:function(c0,c1){this.messages=this.messages.filter((function(c2){return!c2.conversation.equal(c0)||(0,c24.gte)(c2.messageUid,c1)}));var c2=this.getConversationInfo(c0);c2&&c2.lastMessage&&c2.lastMessage.messageUid&&(0,c24.lte)(c2.lastMessage.messageUid,c1)&&(c2.lastMessage=null)}},{key:"searchMessage",value:function(c0){return this.messages.filter((function(c1){return c1.content&&c1.content.searchableContent&&c1.content.searchableContent.indexOf(c0)>-1}))}},{key:"searchConversationMessage",value:function(c0,c1,c2){return this.getConversationMessages(c0).filter((function(c0){return(!c2||c0.from===c2)&&(c0.content&&c0.content.searchableContent&&c0.content.searchableContent.indexOf(c1)>-1)}))}},{key:"genChatRoomMessageId",value:function(){return this.chatRoomMessageId++,0-this.chatRoomMessageId}},{key:"genNormalMessageId",value:function(){return this.messageId++}},{key:"saveMessage",value:function(c0){var c1=void 0;if(c0.messageUid&&-1!==c0.messageUid&&(c1=this.getMessageByUid(c0.messageUid)))return c0.messageId=c1.messageId,c1.messageContent=c0.messageContent,c1.timestamp=c0.timestamp,this.log("messageUid exist",c0),!1;var c2=this.getUserSetting(c20.default.Conversation_Sync,c0.conversation.conversationType+"-"+c0.conversation.line+"-"+c0.conversation.target),c3=0;return c2&&(c3=Number(c2.value)),1===c0.direction&&(0,c24.gte)(c3,c0.timestamp)&&(c0.status=c12.default.Readed),this.messages.push(c0),!0}},{key:"updateMessageById",value:function(c0){if(c0.messageId){for(var c1=-1,c2=0;c20?c2.lastMessage=c5[c5.length-1]:c2.lastMessage=null}}}},{key:"deleteFriend",value:function(c0){this.friends.delete(c0)}},{key:"getMessageById",value:function(c0){var c1=this.messages.filter((function(c1){return c1.messageId===c0}));return c1.length>0?c1[0]:null}},{key:"getCallStartMessage",value:function(c0){var c1=this.messages.filter((function(c1){return 400===c1.messageContent.type&&c1.messageContent.callId===c0}));return c1.length>0?c1[0]:null}},{key:"getMessageByUid",value:function(c0){var c1=c11.default.fromValue(c0),c2=this.messages.filter((function(c0){return 0===c1.compare(c0.messageUid)}));return c2&&c2.length>0?c2[0]:null}},{key:"setMediaMessagePlayed",value:function(c0){var c1=!1,c2=this.getMessageById(c0);return c2.messageContent instanceof c21.default&&1===c2.direction&&(c2.status=c12.default.Played,c1=!0),c1}},{key:"updateUserSettings",value:function(c0){var c1=this;c0.sort((function(c0,c1){return(0,c24.compare)(c0.updateDt,c1.updateDt)})),c0.forEach((function(c0){if(c0.updateDt){for(var c2=-1,c3=0;c3=0?""===c0.value?c1.settings.splice(c2,1):c1.settings[c2]=c0:""!==c0.value&&c1.settings.push(c0),c0.scope===c20.default.ConversationSilent||c0.scope===c20.default.ConversationTop||c0.scope===c20.default.Conversation_Sync||c0.scope===c20.default.UserSettingConversationReaded||c0.scope===c20.default.ConversationClearMessage||c0.scope===c20.default.ConversationDraft){var c5=c0.key,c6=c5.indexOf("-"),c7=c5.indexOf("-",c6+1),c8=parseInt(c5.substring(0,c6)),c9=parseInt(c5.substring(c6+1,c7)),c10=c5.substring(c7+1),c11=new c13.default(c8,c10,c9),c12=c1.getConversationInfo(c11);if(!c12){var c14=Number(c0.value);if((c14=c14%1e3<500?c14:c14+(1e3-c14%1e3))<0||c14>0&&(new Date).getTime()-c14>=24*(c28.default.CONVERSATION_EXPIRE_TIME?c28.default.CONVERSATION_EXPIRE_TIME:30)*60*60*1e3)return;if(c0.scope===c20.default.ConversationSilent&&"1"===c0.value||c28.default.DISABLE_GENERATE_CONVERSATION_FOR_SILENT_SETTING)return;(c12=c1.genAndSaveDefaultConversationInfo(c11)).timestamp=c0.updateDt}if(c0.scope===c20.default.ConversationSilent)c12.isSilent="1"===c0.value;else if(c0.scope===c20.default.ConversationTop)c12.top=Number(c0.value);else if(c0.scope===c20.default.Conversation_Sync){var c15=Number(c0.value);c15<0?(0,c24.lte)(c12.timestamp,-c15)&&c1.removeConversation(c11,!0):c1.updateConversationUnreadStatus(c11,c15)}else if(c0.scope===c20.default.UserSettingConversationReaded)c1.updateConversationRead(c11,Number(c0.value));else if(c0.scope===c20.default.ConversationClearMessage){var c16=Number(c0.value);c12&&c16>0&&c1.impl.clearMessages(c11,c16)}else if(c0.scope===c20.default.ConversationDraft){var c17=c0.value.indexOf("@@@");if(c17>0){var c18=c0.value.substring(0,c17);if(!c18||c18===c1.impl.clientId||c1.impl.isGlobalDisableDraftSync||c1.impl.isDisableSyncDraft())return;var c19=c0.value.substring(c17+3).trim();c12&&c12.draft!==c19&&c1.impl.setConversationDraft(c11,c19,!1)}}}else if(c0.scope===c20.default.FavoriteGroup){var c21=c1.favGroups.indexOf(c0.key);"1"===c0.value?c21<0&&c1.favGroups.push(c0.key):c21>=0&&c1.favGroups.splice(c21,1)}else if(c0.scope===c20.default.FavoriteUser){var c22=c1.favUsers.indexOf(c0.key);"1"===c0.value?c22<0&&c1.favUsers.push(c0.key):c22>=0&&c1.favUsers.splice(c22,1)}}else console.log("invalid setting",c0)}))}},{key:"genAndSaveDefaultConversationInfo",value:function(c0){var c1=this._findConversationInfoIndex(c0);if(-1!==c1)return this.conversationInfos[c1];var c2=new c14.default;c2.conversation=c0,c2.timestamp=c11.default.ZERO,c2.unreadCount=new c19.default;var c3=c0.conversationType+"-"+c0.line+"-"+c0.target,c4=this.getUserSetting(c20.default.ConversationSilent,c3);c4&&"1"===c4.value&&(c2.isSilent=!0);var c5=this.getUserSetting(c20.default.ConversationTop,c3);return c5&&c5.value&&(c2.top=Number(c5.value)),this.conversationInfos.push(c2),c2}},{key:"updateDeliveries",value:function(c0){var c1=this;c0.forEach((function(c0){c1.deliveries.set(c0.fromUser,c0.receiveTime)}))}},{key:"getUserDelivery",value:function(c0){return this.deliveries.get(c0)}},{key:"getConversationDelivery",value:function(c0){var c1=new c8.default;if(0===c0.type){var c2=this.getUserDelivery(c0.target);c2&&c1.set(c0.target,c2)}else if(1===c0.type){var c3=this.getGroupMemberIds(c0.target);this.deliveries.forEach((function(c0,c2){c3.indexOf(c2)>=0&&c1.set(c2,c0)}))}return c1}},{key:"updateReads",value:function(c0){var c1=this;c0.forEach((function(c0){0===c0.conversation.type&&(c0.conversation.target=c0.fromUser);var c2=c1.genConversationKey(c0.conversation),c3=c1.readEntries.get(c2);c3||(c3=new c8.default,c1.readEntries.set(c2,c3)),c3.set(c0.fromUser,c0.readTime)}))}},{key:"saveSyncReadEntry",value:function(c0,c1,c2,c3,c4){var c5=this.syncReadId++,c6=new c25.default;return c6.id=c5,c6.type=c0,c6.target=c1,c6.line=c2,c6.senders=c4,this.syncReadEntries.set(c5,c6),c5}},{key:"deleteSyncReadEntry",value:function(c0){this.syncReadEntries.delete(c0)}},{key:"getSyncReadEntries",value:function(){return this.syncReadEntries}},{key:"loadSyncReadEntry",value:function(){return this.syncReadEntries.values().next().value}},{key:"_genSyncReadEntryKey",value:function(c0){return c0.type+"@"+c0.target+"@"+c0.line}},{key:"getConversationRead",value:function(c0){var c1=this._genSyncReadEntryKey(c0);return this.readEntries.get(c1)}},{key:"getUserSetting",value:function(c0,c1){var c2=this.settings.filter((function(c2){return c2.scope===c0&&c2.key===c1}));return c2.length>0?c2[c2.length-1]:null}},{key:"getUserSettings",value:function(c0){return this.settings.filter((function(c1){return c1.scope===c0}))}},{key:"removeUserSetting",value:function(c0,c1){this.settings=this.settings.filter((function(c2){return!(c2.scope===c0&&c2.key===c1)}))}},{key:"getFriendRequestMaxDt",value:function(){var c0=c11.default.ZERO;return this.friendRequests.forEach((function(c1){c0=(0,c24.gt)(c1.timestamp,c0)?c1.timestamp:c0})),c0}},{key:"insertOrReplaceFriendRequest",value:function(c0){for(var c1=-1,c2=0;c2=0?this.friendRequests[c1]=c0:this.friendRequests.push(c0)}},{key:"getIncommingFriendRequest",value:function(){return this.friendRequests.filter((function(c0){return 1===c0.direction}))}},{key:"getOutgoingFriendRequest",value:function(){return this.friendRequests.filter((function(c0){return 0===c0.direction}))}},{key:"getOneFriendRequest",value:function(c0,c1){var c2=this.friendRequests.filter((function(c2){return c2.target===c0&&c2.direction===(c1?1:0)}));return c2.length>0?c2[0]:null}},{key:"getUnreadFriendRequestCount",value:function(){var c0=0;return this.friendRequests.forEach((function(c1){1===c1.direction&&0===c1.readStatus&&c0++})),c0}},{key:"clearUnreadFriendRequestStatus",value:function(){var c0=0;return this.friendRequests.forEach((function(c1){1===c1.direction&&0===c1.readStatus&&(c1.readStatus=1,c0++)})),c0}},{key:"updateFriendRequestStatus",value:function(c0,c1){this.friendRequests.forEach((function(c2){c2.target===c0&&1===c2.direction&&(c2.status=c1)}))}},{key:"getUnreadFriendRequestMaxDt",value:function(){var c0=c11.default.ZERO;return this.friendRequests.forEach((function(c1){1===c1.direction&&0===c1.readStatus&&(c0=(0,c24.gt)(c1.timestamp,c0)?c1.timestamp:c0)})),c0}},{key:"getGroupMessageHead",value:function(c0,c1){var c2=this.groupHeadEntries.get(c0+"-"+c1);return c2?c2.head:c11.default.ZERO}},{key:"setGroupMessageHead",value:function(c0,c1,c2){var c3=c0+"-"+c1,c4=this.groupHeadEntries.get(c3);c4||(c4=new c35.default,this.groupHeadEntries.set(c3,c4)),c4.target=c0,c4.line=c1,c4.head=c2}},{key:"setGroupMessageServerHead",value:function(c0,c1,c2){var c3=c0+"-"+c1,c4=this.groupHeadEntries.get(c3);c4||(c4=new c35.default,this.groupHeadEntries.set(c3,c4)),c4.target=c0,c4.line=c1,c4.serverHead=c2}},{key:"getGroupMessageHeads",value:function(){var c0=[];return this.groupHeadEntries.forEach((function(c1,c2){(0,c24.gt)(c1.serverHead,c1.head)&&c0.push(c1)})),c0}},{key:"log",value:function(c0){if(!c28.default.DISABLE_LOG){for(var c1,c2=arguments.length,c3=Array(c2>1?c2-1:0),c4=1;c40?c1.windowBits=-c1.windowBits:c1.gzip&&c1.windowBits>0&&c1.windowBits<16&&(c1.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c7,this.strm.avail_out=0;var c2=c3.deflateInit2(this.strm,c1.level,c1.method,c1.windowBits,c1.memLevel,c1.strategy);if(0!==c2)throw new Error(c6[c2]);if(c1.header&&c3.deflateSetHeader(this.strm,c1.header),c1.dictionary){var c10;if(c10="string"==typeof c1.dictionary?c5.string2buf(c1.dictionary):"[object ArrayBuffer]"===c8.call(c1.dictionary)?new Uint8Array(c1.dictionary):c1.dictionary,0!==(c2=c3.deflateSetDictionary(this.strm,c10)))throw new Error(c6[c2]);this._dict_set=!0}}function c10(c0,c1){var c2=new c9(c1);if(c2.push(c0,!0),c2.err)throw c2.msg||c6[c2.err];return c2.result}c9.prototype.push=function(c0,c1){var c2,c6,c7=this.strm,c9=this.options.chunkSize;if(this.ended)return!1;c6=c1===~~c1?c1:!0===c1?4:0,"string"==typeof c0?c7.input=c5.string2buf(c0):"[object ArrayBuffer]"===c8.call(c0)?c7.input=new Uint8Array(c0):c7.input=c0,c7.next_in=0,c7.avail_in=c7.input.length;do{if(0===c7.avail_out&&(c7.output=new c4.Buf8(c9),c7.next_out=0,c7.avail_out=c9),1!==(c2=c3.deflate(c7,c6))&&0!==c2)return this.onEnd(c2),this.ended=!0,!1;0!==c7.avail_out&&(0!==c7.avail_in||4!==c6&&2!==c6)||("string"===this.options.to?this.onData(c5.buf2binstring(c4.shrinkBuf(c7.output,c7.next_out))):this.onData(c4.shrinkBuf(c7.output,c7.next_out)))}while((c7.avail_in>0||0===c7.avail_out)&&1!==c2);return 4===c6?(c2=c3.deflateEnd(this.strm),this.onEnd(c2),this.ended=!0,0===c2):2!==c6||(this.onEnd(0),c7.avail_out=0,!0)},c9.prototype.onData=function(c0){this.chunks.push(c0)},c9.prototype.onEnd=function(c0){0===c0&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=c4.flattenChunks(this.chunks)),this.chunks=[],this.err=c0,this.msg=this.strm.msg},c1.Deflate=c9,c1.deflate=c10,c1.deflateRaw=function(c0,c1){return(c1=c1||{}).raw=!0,c10(c0,c1)},c1.gzip=function(c0,c1){return(c1=c1||{}).gzip=!0,c10(c0,c1)}},function(c0,c1,c2){"use strict";var c3,c4=c2(20),c5=c2(389),c6=c2(177),c7=c2(178),c8=c2(96),c9=-2,c10=258,c11=262,c12=103,c13=113,c14=666;function c15(c0,c1){return c0.msg=c8[c1],c1}function c16(c0){return(c0<<1)-(c0>4?9:0)}function c17(c0){for(var c1=c0.length;--c1>=0;)c0[c1]=0}function c18(c0){var c1=c0.state,c2=c1.pending;c2>c0.avail_out&&(c2=c0.avail_out),0!==c2&&(c4.arraySet(c0.output,c1.pending_buf,c1.pending_out,c2,c0.next_out),c0.next_out+=c2,c1.pending_out+=c2,c0.total_out+=c2,c0.avail_out-=c2,c1.pending-=c2,0===c1.pending&&(c1.pending_out=0))}function c19(c0,c1){c5._tr_flush_block(c0,c0.block_start>=0?c0.block_start:-1,c0.strstart-c0.block_start,c1),c0.block_start=c0.strstart,c18(c0.strm)}function c20(c0,c1){c0.pending_buf[c0.pending++]=c1}function c21(c0,c1){c0.pending_buf[c0.pending++]=c1>>>8&255,c0.pending_buf[c0.pending++]=255&c1}function c22(c0,c1){var c2,c3,c4=c0.max_chain_length,c5=c0.strstart,c6=c0.prev_length,c7=c0.nice_match,c8=c0.strstart>c0.w_size-c11?c0.strstart-(c0.w_size-c11):0,c9=c0.window,c12=c0.w_mask,c13=c0.prev,c14=c0.strstart+c10,c15=c9[c5+c6-1],c16=c9[c5+c6];c0.prev_length>=c0.good_match&&(c4>>=2),c7>c0.lookahead&&(c7=c0.lookahead);do{if(c9[(c2=c1)+c6]===c16&&c9[c2+c6-1]===c15&&c9[c2]===c9[c5]&&c9[++c2]===c9[c5+1]){c5+=2,c2++;do{}while(c9[++c5]===c9[++c2]&&c9[++c5]===c9[++c2]&&c9[++c5]===c9[++c2]&&c9[++c5]===c9[++c2]&&c9[++c5]===c9[++c2]&&c9[++c5]===c9[++c2]&&c9[++c5]===c9[++c2]&&c9[++c5]===c9[++c2]&&c5c6){if(c0.match_start=c1,c6=c3,c3>=c7)break;c15=c9[c5+c6-1],c16=c9[c5+c6]}}}while((c1=c13[c1&c12])>c8&&0!=--c4);return c6<=c0.lookahead?c6:c0.lookahead}function c23(c0){var c1,c2,c3,c5,c8,c9,c10,c12,c13,c14,c15=c0.w_size;do{if(c5=c0.window_size-c0.lookahead-c0.strstart,c0.strstart>=c15+(c15-c11)){c4.arraySet(c0.window,c0.window,c15,c15,0),c0.match_start-=c15,c0.strstart-=c15,c0.block_start-=c15,c1=c2=c0.hash_size;do{c3=c0.head[--c1],c0.head[c1]=c3>=c15?c3-c15:0}while(--c2);c1=c2=c15;do{c3=c0.prev[--c1],c0.prev[c1]=c3>=c15?c3-c15:0}while(--c2);c5+=c15}if(0===c0.strm.avail_in)break;if(c9=c0.strm,c10=c0.window,c12=c0.strstart+c0.lookahead,c13=c5,c14=void 0,(c14=c9.avail_in)>c13&&(c14=c13),c2=0===c14?0:(c9.avail_in-=c14,c4.arraySet(c10,c9.input,c9.next_in,c14,c12),1===c9.state.wrap?c9.adler=c6(c9.adler,c10,c14,c12):2===c9.state.wrap&&(c9.adler=c7(c9.adler,c10,c14,c12)),c9.next_in+=c14,c9.total_in+=c14,c14),c0.lookahead+=c2,c0.lookahead+c0.insert>=3)for(c8=c0.strstart-c0.insert,c0.ins_h=c0.window[c8],c0.ins_h=(c0.ins_h<=3&&(c0.ins_h=(c0.ins_h<=3)if(c3=c5._tr_tally(c0,c0.strstart-c0.match_start,c0.match_length-3),c0.lookahead-=c0.match_length,c0.match_length<=c0.max_lazy_match&&c0.lookahead>=3){c0.match_length--;do{c0.strstart++,c0.ins_h=(c0.ins_h<=3&&(c0.ins_h=(c0.ins_h<4096)&&(c0.match_length=2)),c0.prev_length>=3&&c0.match_length<=c0.prev_length){c4=c0.strstart+c0.lookahead-3,c3=c5._tr_tally(c0,c0.strstart-1-c0.prev_match,c0.prev_length-3),c0.lookahead-=c0.prev_length-1,c0.prev_length-=2;do{++c0.strstart<=c4&&(c0.ins_h=(c0.ins_h<15&&(c7=2,c3-=16),c5<1||c5>9||8!==c2||c3<8||c3>15||c1<0||c1>9||c6<0||c6>4)return c15(c0,c9);8===c3&&(c3=9);var c8=new c27;return c0.state=c8,c8.strm=c0,c8.wrap=c7,c8.gzhead=null,c8.w_bits=c3,c8.w_size=1<c0.pending_buf_size-5&&(c2=c0.pending_buf_size-5);;){if(c0.lookahead<=1){if(c23(c0),0===c0.lookahead&&0===c1)return 1;if(0===c0.lookahead)break}c0.strstart+=c0.lookahead,c0.lookahead=0;var c3=c0.block_start+c2;if((0===c0.strstart||c0.strstart>=c3)&&(c0.lookahead=c0.strstart-c3,c0.strstart=c3,c19(c0,!1),0===c0.strm.avail_out))return 1;if(c0.strstart-c0.block_start>=c0.w_size-c11&&(c19(c0,!1),0===c0.strm.avail_out))return 1}return c0.insert=0,4===c1?(c19(c0,!0),0===c0.strm.avail_out?3:4):(c0.strstart>c0.block_start&&(c19(c0,!1),c0.strm.avail_out),1)})),new c26(4,4,8,4,c24),new c26(4,5,16,8,c24),new c26(4,6,32,32,c24),new c26(4,4,16,16,c25),new c26(8,16,32,32,c25),new c26(8,16,128,128,c25),new c26(8,32,128,256,c25),new c26(32,128,258,1024,c25),new c26(32,258,258,4096,c25)],c1.deflateInit=function(c0,c1){return c30(c0,c1,8,15,8,0)},c1.deflateInit2=c30,c1.deflateReset=c29,c1.deflateResetKeep=c28,c1.deflateSetHeader=function(c0,c1){return c0&&c0.state?2!==c0.state.wrap?c9:(c0.state.gzhead=c1,0):c9},c1.deflate=function(c0,c1){var c2,c4,c6,c8;if(!c0||!c0.state||c1>5||c1<0)return c0?c15(c0,c9):c9;if(c4=c0.state,!c0.output||!c0.input&&0!==c0.avail_in||c4.status===c14&&4!==c1)return c15(c0,0===c0.avail_out?-5:c9);if(c4.strm=c0,c2=c4.last_flush,c4.last_flush=c1,42===c4.status)if(2===c4.wrap)c0.adler=0,c20(c4,31),c20(c4,139),c20(c4,8),c4.gzhead?(c20(c4,(c4.gzhead.text?1:0)+(c4.gzhead.hcrc?2:0)+(c4.gzhead.extra?4:0)+(c4.gzhead.name?8:0)+(c4.gzhead.comment?16:0)),c20(c4,255&c4.gzhead.time),c20(c4,c4.gzhead.time>>8&255),c20(c4,c4.gzhead.time>>16&255),c20(c4,c4.gzhead.time>>24&255),c20(c4,9===c4.level?2:c4.strategy>=2||c4.level<2?4:0),c20(c4,255&c4.gzhead.os),c4.gzhead.extra&&c4.gzhead.extra.length&&(c20(c4,255&c4.gzhead.extra.length),c20(c4,c4.gzhead.extra.length>>8&255)),c4.gzhead.hcrc&&(c0.adler=c7(c0.adler,c4.pending_buf,c4.pending,0)),c4.gzindex=0,c4.status=69):(c20(c4,0),c20(c4,0),c20(c4,0),c20(c4,0),c20(c4,0),c20(c4,9===c4.level?2:c4.strategy>=2||c4.level<2?4:0),c20(c4,3),c4.status=c13);else{var c11=8+(c4.w_bits-8<<4)<<8;c11|=(c4.strategy>=2||c4.level<2?0:c4.level<6?1:6===c4.level?2:3)<<6,0!==c4.strstart&&(c11|=32),c11+=31-c11%31,c4.status=c13,c21(c4,c11),0!==c4.strstart&&(c21(c4,c0.adler>>>16),c21(c4,65535&c0.adler)),c0.adler=1}if(69===c4.status)if(c4.gzhead.extra){for(c6=c4.pending;c4.gzindex<(65535&c4.gzhead.extra.length)&&(c4.pending!==c4.pending_buf_size||(c4.gzhead.hcrc&&c4.pending>c6&&(c0.adler=c7(c0.adler,c4.pending_buf,c4.pending-c6,c6)),c18(c0),c6=c4.pending,c4.pending!==c4.pending_buf_size));)c20(c4,255&c4.gzhead.extra[c4.gzindex]),c4.gzindex++;c4.gzhead.hcrc&&c4.pending>c6&&(c0.adler=c7(c0.adler,c4.pending_buf,c4.pending-c6,c6)),c4.gzindex===c4.gzhead.extra.length&&(c4.gzindex=0,c4.status=73)}else c4.status=73;if(73===c4.status)if(c4.gzhead.name){c6=c4.pending;do{if(c4.pending===c4.pending_buf_size&&(c4.gzhead.hcrc&&c4.pending>c6&&(c0.adler=c7(c0.adler,c4.pending_buf,c4.pending-c6,c6)),c18(c0),c6=c4.pending,c4.pending===c4.pending_buf_size)){c8=1;break}c8=c4.gzindexc6&&(c0.adler=c7(c0.adler,c4.pending_buf,c4.pending-c6,c6)),0===c8&&(c4.gzindex=0,c4.status=91)}else c4.status=91;if(91===c4.status)if(c4.gzhead.comment){c6=c4.pending;do{if(c4.pending===c4.pending_buf_size&&(c4.gzhead.hcrc&&c4.pending>c6&&(c0.adler=c7(c0.adler,c4.pending_buf,c4.pending-c6,c6)),c18(c0),c6=c4.pending,c4.pending===c4.pending_buf_size)){c8=1;break}c8=c4.gzindexc6&&(c0.adler=c7(c0.adler,c4.pending_buf,c4.pending-c6,c6)),0===c8&&(c4.status=c12)}else c4.status=c12;if(c4.status===c12&&(c4.gzhead.hcrc?(c4.pending+2>c4.pending_buf_size&&c18(c0),c4.pending+2<=c4.pending_buf_size&&(c20(c4,255&c0.adler),c20(c4,c0.adler>>8&255),c0.adler=0,c4.status=c13)):c4.status=c13),0!==c4.pending){if(c18(c0),0===c0.avail_out)return c4.last_flush=-1,0}else if(0===c0.avail_in&&c16(c1)<=c16(c2)&&4!==c1)return c15(c0,-5);if(c4.status===c14&&0!==c0.avail_in)return c15(c0,-5);if(0!==c0.avail_in||0!==c4.lookahead||0!==c1&&c4.status!==c14){var c22=2===c4.strategy?function(c0,c1){for(var c2;;){if(0===c0.lookahead&&(c23(c0),0===c0.lookahead)){if(0===c1)return 1;break}if(c0.match_length=0,c2=c5._tr_tally(c0,0,c0.window[c0.strstart]),c0.lookahead--,c0.strstart++,c2&&(c19(c0,!1),0===c0.strm.avail_out))return 1}return c0.insert=0,4===c1?(c19(c0,!0),0===c0.strm.avail_out?3:4):c0.last_lit&&(c19(c0,!1),0===c0.strm.avail_out)?1:2}(c4,c1):3===c4.strategy?function(c0,c1){for(var c2,c3,c4,c6,c7=c0.window;;){if(c0.lookahead<=c10){if(c23(c0),c0.lookahead<=c10&&0===c1)return 1;if(0===c0.lookahead)break}if(c0.match_length=0,c0.lookahead>=3&&c0.strstart>0&&(c3=c7[c4=c0.strstart-1])===c7[++c4]&&c3===c7[++c4]&&c3===c7[++c4]){c6=c0.strstart+c10;do{}while(c3===c7[++c4]&&c3===c7[++c4]&&c3===c7[++c4]&&c3===c7[++c4]&&c3===c7[++c4]&&c3===c7[++c4]&&c3===c7[++c4]&&c3===c7[++c4]&&c4c0.lookahead&&(c0.match_length=c0.lookahead)}if(c0.match_length>=3?(c2=c5._tr_tally(c0,1,c0.match_length-3),c0.lookahead-=c0.match_length,c0.strstart+=c0.match_length,c0.match_length=0):(c2=c5._tr_tally(c0,0,c0.window[c0.strstart]),c0.lookahead--,c0.strstart++),c2&&(c19(c0,!1),0===c0.strm.avail_out))return 1}return c0.insert=0,4===c1?(c19(c0,!0),0===c0.strm.avail_out?3:4):c0.last_lit&&(c19(c0,!1),0===c0.strm.avail_out)?1:2}(c4,c1):c3[c4.level].func(c4,c1);if(3!==c22&&4!==c22||(c4.status=c14),1===c22||3===c22)return 0===c0.avail_out&&(c4.last_flush=-1),0;if(2===c22&&(1===c1?c5._tr_align(c4):5!==c1&&(c5._tr_stored_block(c4,0,0,!1),3===c1&&(c17(c4.head),0===c4.lookahead&&(c4.strstart=0,c4.block_start=0,c4.insert=0))),c18(c0),0===c0.avail_out))return c4.last_flush=-1,0}return 4!==c1?0:c4.wrap<=0?1:(2===c4.wrap?(c20(c4,255&c0.adler),c20(c4,c0.adler>>8&255),c20(c4,c0.adler>>16&255),c20(c4,c0.adler>>24&255),c20(c4,255&c0.total_in),c20(c4,c0.total_in>>8&255),c20(c4,c0.total_in>>16&255),c20(c4,c0.total_in>>24&255)):(c21(c4,c0.adler>>>16),c21(c4,65535&c0.adler)),c18(c0),c4.wrap>0&&(c4.wrap=-c4.wrap),0!==c4.pending?0:1)},c1.deflateEnd=function(c0){var c1;return c0&&c0.state?42!==(c1=c0.state.status)&&69!==c1&&73!==c1&&91!==c1&&c1!==c12&&c1!==c13&&c1!==c14?c15(c0,c9):(c0.state=null,c1===c13?c15(c0,-3):0):c9},c1.deflateSetDictionary=function(c0,c1){var c2,c3,c5,c7,c8,c10,c11,c12,c13=c1.length;if(!c0||!c0.state)return c9;if(2===(c7=(c2=c0.state).wrap)||1===c7&&42!==c2.status||c2.lookahead)return c9;for(1===c7&&(c0.adler=c6(c0.adler,c1,c13,0)),c2.wrap=0,c13>=c2.w_size&&(0===c7&&(c17(c2.head),c2.strstart=0,c2.block_start=0,c2.insert=0),c12=new c4.Buf8(c2.w_size),c4.arraySet(c12,c1,c13-c2.w_size,c2.w_size,0),c1=c12,c13=c2.w_size),c8=c0.avail_in,c10=c0.next_in,c11=c0.input,c0.avail_in=c13,c0.next_in=0,c0.input=c1,c23(c2);c2.lookahead>=3;){c3=c2.strstart,c5=c2.lookahead-2;do{c2.ins_h=(c2.ins_h<=0;)c0[c1]=0}var c5=256,c6=286,c7=30,c8=15,c9=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c10=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],c11=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c12=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c13=new Array(576);c4(c13);var c14=new Array(60);c4(c14);var c15=new Array(512);c4(c15);var c16=new Array(256);c4(c16);var c17=new Array(29);c4(c17);var c18,c19,c20,c21=new Array(c7);function c22(c0,c1,c2,c3,c4){this.static_tree=c0,this.extra_bits=c1,this.extra_base=c2,this.elems=c3,this.max_length=c4,this.has_stree=c0&&c0.length}function c23(c0,c1){this.dyn_tree=c0,this.max_code=0,this.stat_desc=c1}function c24(c0){return c0<256?c15[c0]:c15[256+(c0>>>7)]}function c25(c0,c1){c0.pending_buf[c0.pending++]=255&c1,c0.pending_buf[c0.pending++]=c1>>>8&255}function c26(c0,c1,c2){c0.bi_valid>16-c2?(c0.bi_buf|=c1<>16-c0.bi_valid,c0.bi_valid+=c2-16):(c0.bi_buf|=c1<>>=1,c2<<=1}while(--c1>0);return c2>>>1}function c29(c0,c1,c2){var c3,c4,c5=new Array(16),c6=0;for(c3=1;c3<=c8;c3++)c5[c3]=c6=c6+c2[c3-1]<<1;for(c4=0;c4<=c1;c4++){var c7=c0[2*c4+1];0!==c7&&(c0[2*c4]=c28(c5[c7]++,c7))}}function c30(c0){var c1;for(c1=0;c18?c25(c0,c0.bi_buf):c0.bi_valid>0&&(c0.pending_buf[c0.pending++]=c0.bi_buf),c0.bi_buf=0,c0.bi_valid=0}function c32(c0,c1,c2,c3){var c4=2*c1,c5=2*c2;return c0[c4]>1;c2>=1;c2--)c33(c0,c5,c2);c4=c9;do{c2=c0.heap[1],c0.heap[1]=c0.heap[c0.heap_len--],c33(c0,c5,1),c3=c0.heap[1],c0.heap[--c0.heap_max]=c2,c0.heap[--c0.heap_max]=c3,c5[2*c4]=c5[2*c2]+c5[2*c3],c0.depth[c4]=(c0.depth[c2]>=c0.depth[c3]?c0.depth[c2]:c0.depth[c3])+1,c5[2*c2+1]=c5[2*c3+1]=c4,c0.heap[1]=c4++,c33(c0,c5,1)}while(c0.heap_len>=2);c0.heap[--c0.heap_max]=c0.heap[1],function(c0,c1){var c2,c3,c4,c5,c6,c7,c9=c1.dyn_tree,c10=c1.max_code,c11=c1.stat_desc.static_tree,c12=c1.stat_desc.has_stree,c13=c1.stat_desc.extra_bits,c14=c1.stat_desc.extra_base,c15=c1.stat_desc.max_length,c16=0;for(c5=0;c5<=c8;c5++)c0.bl_count[c5]=0;for(c9[2*c0.heap[c0.heap_max]+1]=0,c2=c0.heap_max+1;c2<573;c2++)(c5=c9[2*c9[2*(c3=c0.heap[c2])+1]+1]+1)>c15&&(c5=c15,c16++),c9[2*c3+1]=c5,c3>c10||(c0.bl_count[c5]++,c6=0,c3>=c14&&(c6=c13[c3-c14]),c7=c9[2*c3],c0.opt_len+=c7*(c5+c6),c12&&(c0.static_len+=c7*(c11[2*c3+1]+c6)));if(0!==c16){do{for(c5=c15-1;0===c0.bl_count[c5];)c5--;c0.bl_count[c5]--,c0.bl_count[c5+1]+=2,c0.bl_count[c15]--,c16-=2}while(c16>0);for(c5=c15;0!==c5;c5--)for(c3=c0.bl_count[c5];0!==c3;)(c4=c0.heap[--c2])>c10||(c9[2*c4+1]!==c5&&(c0.opt_len+=(c5-c9[2*c4+1])*c9[2*c4],c9[2*c4+1]=c5),c3--)}}(c0,c1),c29(c5,c10,c0.bl_count)}function c36(c0,c1,c2){var c3,c4,c5=-1,c6=c1[1],c7=0,c8=7,c9=4;for(0===c6&&(c8=138,c9=3),c1[2*(c2+1)+1]=65535,c3=0;c3<=c2;c3++)c4=c6,c6=c1[2*(c3+1)+1],++c7>=7;c30?(2===c0.strm.data_type&&(c0.strm.data_type=function(c0){var c1,c2=4093624447;for(c1=0;c1<=31;c1++,c2>>>=1)if(1&c2&&0!==c0.dyn_ltree[2*c1])return 0;if(0!==c0.dyn_ltree[18]||0!==c0.dyn_ltree[20]||0!==c0.dyn_ltree[26])return 1;for(c1=32;c1=3&&0===c0.bl_tree[2*c12[c1]+1];c1--);return c0.opt_len+=3*(c1+1)+5+5+4,c1}(c0),c4=c0.opt_len+3+7>>>3,(c6=c0.static_len+3+7>>>3)<=c4&&(c4=c6)):c4=c6=c2+5,c2+4<=c4&&-1!==c1?c39(c0,c1,c2,c3):4===c0.strategy||c6===c4?(c26(c0,2+(c3?1:0),3),c34(c0,c13,c14)):(c26(c0,4+(c3?1:0),3),function(c0,c1,c2,c3){var c4;for(c26(c0,c1-257,5),c26(c0,c2-1,5),c26(c0,c3-4,4),c4=0;c4>>8&255,c0.pending_buf[c0.d_buf+2*c0.last_lit+1]=255&c1,c0.pending_buf[c0.l_buf+c0.last_lit]=255&c2,c0.last_lit++,0===c1?c0.dyn_ltree[2*c2]++:(c0.matches++,c1--,c0.dyn_ltree[2*(c16[c2]+c5+1)]++,c0.dyn_dtree[2*c24(c1)]++),c0.last_lit===c0.lit_bufsize-1},c1._tr_align=function(c0){c26(c0,2,3),c27(c0,256,c13),function(c0){16===c0.bi_valid?(c25(c0,c0.bi_buf),c0.bi_buf=0,c0.bi_valid=0):c0.bi_valid>=8&&(c0.pending_buf[c0.pending++]=255&c0.bi_buf,c0.bi_buf>>=8,c0.bi_valid-=8)}(c0)}},function(c0,c1,c2){"use strict";var c3=c2(391),c4=c2(20),c5=c2(179),c6=c2(181),c7=c2(96),c8=c2(180),c9=c2(394),c10=Object.prototype.toString;function c11(c0){if(!(this instanceof c11))return new c11(c0);this.options=c4.assign({chunkSize:16384,windowBits:0,to:""},c0||{});var c1=this.options;c1.raw&&c1.windowBits>=0&&c1.windowBits<16&&(c1.windowBits=-c1.windowBits,0===c1.windowBits&&(c1.windowBits=-15)),!(c1.windowBits>=0&&c1.windowBits<16)||c0&&c0.windowBits||(c1.windowBits+=32),c1.windowBits>15&&c1.windowBits<48&&0==(15&c1.windowBits)&&(c1.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c8,this.strm.avail_out=0;var c2=c3.inflateInit2(this.strm,c1.windowBits);if(c2!==c6.Z_OK)throw new Error(c7[c2]);if(this.header=new c9,c3.inflateGetHeader(this.strm,this.header),c1.dictionary&&("string"==typeof c1.dictionary?c1.dictionary=c5.string2buf(c1.dictionary):"[object ArrayBuffer]"===c10.call(c1.dictionary)&&(c1.dictionary=new Uint8Array(c1.dictionary)),c1.raw&&(c2=c3.inflateSetDictionary(this.strm,c1.dictionary))!==c6.Z_OK))throw new Error(c7[c2])}function c12(c0,c1){var c2=new c11(c1);if(c2.push(c0,!0),c2.err)throw c2.msg||c7[c2.err];return c2.result}c11.prototype.push=function(c0,c1){var c2,c7,c8,c9,c11,c12=this.strm,c13=this.options.chunkSize,c14=this.options.dictionary,c15=!1;if(this.ended)return!1;c7=c1===~~c1?c1:!0===c1?c6.Z_FINISH:c6.Z_NO_FLUSH,"string"==typeof c0?c12.input=c5.binstring2buf(c0):"[object ArrayBuffer]"===c10.call(c0)?c12.input=new Uint8Array(c0):c12.input=c0,c12.next_in=0,c12.avail_in=c12.input.length;do{if(0===c12.avail_out&&(c12.output=new c4.Buf8(c13),c12.next_out=0,c12.avail_out=c13),(c2=c3.inflate(c12,c6.Z_NO_FLUSH))===c6.Z_NEED_DICT&&c14&&(c2=c3.inflateSetDictionary(this.strm,c14)),c2===c6.Z_BUF_ERROR&&!0===c15&&(c2=c6.Z_OK,c15=!1),c2!==c6.Z_STREAM_END&&c2!==c6.Z_OK)return this.onEnd(c2),this.ended=!0,!1;c12.next_out&&(0!==c12.avail_out&&c2!==c6.Z_STREAM_END&&(0!==c12.avail_in||c7!==c6.Z_FINISH&&c7!==c6.Z_SYNC_FLUSH)||("string"===this.options.to?(c8=c5.utf8border(c12.output,c12.next_out),c9=c12.next_out-c8,c11=c5.buf2string(c12.output,c8),c12.next_out=c9,c12.avail_out=c13-c9,c9&&c4.arraySet(c12.output,c12.output,c8,c9,0),this.onData(c11)):this.onData(c4.shrinkBuf(c12.output,c12.next_out)))),0===c12.avail_in&&0===c12.avail_out&&(c15=!0)}while((c12.avail_in>0||0===c12.avail_out)&&c2!==c6.Z_STREAM_END);return c2===c6.Z_STREAM_END&&(c7=c6.Z_FINISH),c7===c6.Z_FINISH?(c2=c3.inflateEnd(this.strm),this.onEnd(c2),this.ended=!0,c2===c6.Z_OK):c7!==c6.Z_SYNC_FLUSH||(this.onEnd(c6.Z_OK),c12.avail_out=0,!0)},c11.prototype.onData=function(c0){this.chunks.push(c0)},c11.prototype.onEnd=function(c0){c0===c6.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=c4.flattenChunks(this.chunks)),this.chunks=[],this.err=c0,this.msg=this.strm.msg},c1.Inflate=c11,c1.inflate=c12,c1.inflateRaw=function(c0,c1){return(c1=c1||{}).raw=!0,c12(c0,c1)},c1.ungzip=c12},function(c0,c1,c2){"use strict";var c3=c2(20),c4=c2(177),c5=c2(178),c6=c2(392),c7=c2(393),c8=-2,c9=12,c10=30;function c11(c0){return(c0>>>24&255)+(c0>>>8&65280)+((65280&c0)<<8)+((255&c0)<<24)}function c12(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new c3.Buf16(320),this.work=new c3.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c13(c0){var c1;return c0&&c0.state?(c1=c0.state,c0.total_in=c0.total_out=c1.total=0,c0.msg="",c1.wrap&&(c0.adler=1&c1.wrap),c1.mode=1,c1.last=0,c1.havedict=0,c1.dmax=32768,c1.head=null,c1.hold=0,c1.bits=0,c1.lencode=c1.lendyn=new c3.Buf32(852),c1.distcode=c1.distdyn=new c3.Buf32(592),c1.sane=1,c1.back=-1,0):c8}function c14(c0){var c1;return c0&&c0.state?((c1=c0.state).wsize=0,c1.whave=0,c1.wnext=0,c13(c0)):c8}function c15(c0,c1){var c2,c3;return c0&&c0.state?(c3=c0.state,c1<0?(c2=0,c1=-c1):(c2=1+(c1>>4),c1<48&&(c1&=15)),c1&&(c1<8||c1>15)?c8:(null!==c3.window&&c3.wbits!==c1&&(c3.window=null),c3.wrap=c2,c3.wbits=c1,c14(c0))):c8}function c16(c0,c1){var c2,c3;return c0?(c3=new c12,c0.state=c3,c3.window=null,0!==(c2=c15(c0,c1))&&(c0.state=null),c2):c8}var c17,c18,c19=!0;function c20(c0){if(c19){var c1;for(c17=new c3.Buf32(512),c18=new c3.Buf32(32),c1=0;c1<144;)c0.lens[c1++]=8;for(;c1<256;)c0.lens[c1++]=9;for(;c1<280;)c0.lens[c1++]=7;for(;c1<288;)c0.lens[c1++]=8;for(c7(1,c0.lens,0,288,c17,0,c0.work,{bits:9}),c1=0;c1<32;)c0.lens[c1++]=5;c7(2,c0.lens,0,32,c18,0,c0.work,{bits:5}),c19=!1}c0.lencode=c17,c0.lenbits=9,c0.distcode=c18,c0.distbits=5}function c21(c0,c1,c2,c4){var c5,c6=c0.state;return null===c6.window&&(c6.wsize=1<=c6.wsize?(c3.arraySet(c6.window,c1,c2-c6.wsize,c6.wsize,0),c6.wnext=0,c6.whave=c6.wsize):((c5=c6.wsize-c6.wnext)>c4&&(c5=c4),c3.arraySet(c6.window,c1,c2-c4,c5,c6.wnext),(c4-=c5)?(c3.arraySet(c6.window,c1,c2-c4,c4,0),c6.wnext=c4,c6.whave=c6.wsize):(c6.wnext+=c5,c6.wnext===c6.wsize&&(c6.wnext=0),c6.whave>>8&255,c2.check=c5(c2.check,c38,2,0),c18=0,c19=0,c2.mode=2;break}if(c2.flags=0,c2.head&&(c2.head.done=!1),!(1&c2.wrap)||(((255&c18)<<8)+(c18>>8))%31){c0.msg="incorrect header check",c2.mode=c10;break}if(8!=(15&c18)){c0.msg="unknown compression method",c2.mode=c10;break}if(c19-=4,c33=8+(15&(c18>>>=4)),0===c2.wbits)c2.wbits=c33;else if(c33>c2.wbits){c0.msg="invalid window size",c2.mode=c10;break}c2.dmax=1<>8&1),512&c2.flags&&(c38[0]=255&c18,c38[1]=c18>>>8&255,c2.check=c5(c2.check,c38,2,0)),c18=0,c19=0,c2.mode=3;case 3:for(;c19<32;){if(0===c16)break c0;c16--,c18+=c12[c14++]<>>8&255,c38[2]=c18>>>16&255,c38[3]=c18>>>24&255,c2.check=c5(c2.check,c38,4,0)),c18=0,c19=0,c2.mode=4;case 4:for(;c19<16;){if(0===c16)break c0;c16--,c18+=c12[c14++]<>8),512&c2.flags&&(c38[0]=255&c18,c38[1]=c18>>>8&255,c2.check=c5(c2.check,c38,2,0)),c18=0,c19=0,c2.mode=5;case 5:if(1024&c2.flags){for(;c19<16;){if(0===c16)break c0;c16--,c18+=c12[c14++]<>>8&255,c2.check=c5(c2.check,c38,2,0)),c18=0,c19=0}else c2.head&&(c2.head.extra=null);c2.mode=6;case 6:if(1024&c2.flags&&((c24=c2.length)>c16&&(c24=c16),c24&&(c2.head&&(c33=c2.head.extra_len-c2.length,c2.head.extra||(c2.head.extra=new Array(c2.head.extra_len)),c3.arraySet(c2.head.extra,c12,c14,c24,c33)),512&c2.flags&&(c2.check=c5(c2.check,c12,c24,c14)),c16-=c24,c14+=c24,c2.length-=c24),c2.length))break c0;c2.length=0,c2.mode=7;case 7:if(2048&c2.flags){if(0===c16)break c0;c24=0;do{c33=c12[c14+c24++],c2.head&&c33&&c2.length<65536&&(c2.head.name+=String.fromCharCode(c33))}while(c33&&c24>9&1,c2.head.done=!0),c0.adler=c2.check=0,c2.mode=c9;break;case 10:for(;c19<32;){if(0===c16)break c0;c16--,c18+=c12[c14++]<>>=7&c19,c19-=7&c19,c2.mode=27;break}for(;c19<3;){if(0===c16)break c0;c16--,c18+=c12[c14++]<>>=1)){case 0:c2.mode=14;break;case 1:if(c20(c2),c2.mode=20,6===c1){c18>>>=2,c19-=2;break c0}break;case 2:c2.mode=17;break;case 3:c0.msg="invalid block type",c2.mode=c10}c18>>>=2,c19-=2;break;case 14:for(c18>>>=7&c19,c19-=7&c19;c19<32;){if(0===c16)break c0;c16--,c18+=c12[c14++]<>>16^65535)){c0.msg="invalid stored block lengths",c2.mode=c10;break}if(c2.length=65535&c18,c18=0,c19=0,c2.mode=15,6===c1)break c0;case 15:c2.mode=16;case 16:if(c24=c2.length){if(c24>c16&&(c24=c16),c24>c17&&(c24=c17),0===c24)break c0;c3.arraySet(c13,c12,c14,c24,c15),c16-=c24,c14+=c24,c17-=c24,c15+=c24,c2.length-=c24;break}c2.mode=c9;break;case 17:for(;c19<14;){if(0===c16)break c0;c16--,c18+=c12[c14++]<>>=5,c19-=5,c2.ndist=1+(31&c18),c18>>>=5,c19-=5,c2.ncode=4+(15&c18),c18>>>=4,c19-=4,c2.nlen>286||c2.ndist>30){c0.msg="too many length or distance symbols",c2.mode=c10;break}c2.have=0,c2.mode=18;case 18:for(;c2.have>>=3,c19-=3}for(;c2.have<19;)c2.lens[c39[c2.have++]]=0;if(c2.lencode=c2.lendyn,c2.lenbits=7,c35={bits:c2.lenbits},c34=c7(0,c2.lens,0,19,c2.lencode,0,c2.work,c35),c2.lenbits=c35.bits,c34){c0.msg="invalid code lengths set",c2.mode=c10;break}c2.have=0,c2.mode=19;case 19:for(;c2.have>>16&255,c29=65535&c37,!((c27=c37>>>24)<=c19);){if(0===c16)break c0;c16--,c18+=c12[c14++]<>>=c27,c19-=c27,c2.lens[c2.have++]=c29;else{if(16===c29){for(c36=c27+2;c19>>=c27,c19-=c27,0===c2.have){c0.msg="invalid bit length repeat",c2.mode=c10;break}c33=c2.lens[c2.have-1],c24=3+(3&c18),c18>>>=2,c19-=2}else if(17===c29){for(c36=c27+3;c19>>=c27)),c18>>>=3,c19-=3}else{for(c36=c27+7;c19>>=c27)),c18>>>=7,c19-=7}if(c2.have+c24>c2.nlen+c2.ndist){c0.msg="invalid bit length repeat",c2.mode=c10;break}for(;c24--;)c2.lens[c2.have++]=c33}}if(c2.mode===c10)break;if(0===c2.lens[256]){c0.msg="invalid code -- missing end-of-block",c2.mode=c10;break}if(c2.lenbits=9,c35={bits:c2.lenbits},c34=c7(1,c2.lens,0,c2.nlen,c2.lencode,0,c2.work,c35),c2.lenbits=c35.bits,c34){c0.msg="invalid literal/lengths set",c2.mode=c10;break}if(c2.distbits=6,c2.distcode=c2.distdyn,c35={bits:c2.distbits},c34=c7(2,c2.lens,c2.nlen,c2.ndist,c2.distcode,0,c2.work,c35),c2.distbits=c35.bits,c34){c0.msg="invalid distances set",c2.mode=c10;break}if(c2.mode=20,6===c1)break c0;case 20:c2.mode=21;case 21:if(c16>=6&&c17>=258){c0.next_out=c15,c0.avail_out=c17,c0.next_in=c14,c0.avail_in=c16,c2.hold=c18,c2.bits=c19,c6(c0,c23),c15=c0.next_out,c13=c0.output,c17=c0.avail_out,c14=c0.next_in,c12=c0.input,c16=c0.avail_in,c18=c2.hold,c19=c2.bits,c2.mode===c9&&(c2.back=-1);break}for(c2.back=0;c28=(c37=c2.lencode[c18&(1<>>16&255,c29=65535&c37,!((c27=c37>>>24)<=c19);){if(0===c16)break c0;c16--,c18+=c12[c14++]<>c30)])>>>16&255,c29=65535&c37,!(c30+(c27=c37>>>24)<=c19);){if(0===c16)break c0;c16--,c18+=c12[c14++]<>>=c30,c19-=c30,c2.back+=c30}if(c18>>>=c27,c19-=c27,c2.back+=c27,c2.length=c29,0===c28){c2.mode=26;break}if(32&c28){c2.back=-1,c2.mode=c9;break}if(64&c28){c0.msg="invalid literal/length code",c2.mode=c10;break}c2.extra=15&c28,c2.mode=22;case 22:if(c2.extra){for(c36=c2.extra;c19>>=c2.extra,c19-=c2.extra,c2.back+=c2.extra}c2.was=c2.length,c2.mode=23;case 23:for(;c28=(c37=c2.distcode[c18&(1<>>16&255,c29=65535&c37,!((c27=c37>>>24)<=c19);){if(0===c16)break c0;c16--,c18+=c12[c14++]<>c30)])>>>16&255,c29=65535&c37,!(c30+(c27=c37>>>24)<=c19);){if(0===c16)break c0;c16--,c18+=c12[c14++]<>>=c30,c19-=c30,c2.back+=c30}if(c18>>>=c27,c19-=c27,c2.back+=c27,64&c28){c0.msg="invalid distance code",c2.mode=c10;break}c2.offset=c29,c2.extra=15&c28,c2.mode=24;case 24:if(c2.extra){for(c36=c2.extra;c19>>=c2.extra,c19-=c2.extra,c2.back+=c2.extra}if(c2.offset>c2.dmax){c0.msg="invalid distance too far back",c2.mode=c10;break}c2.mode=25;case 25:if(0===c17)break c0;if(c24=c23-c17,c2.offset>c24){if((c24=c2.offset-c24)>c2.whave&&c2.sane){c0.msg="invalid distance too far back",c2.mode=c10;break}c24>c2.wnext?(c24-=c2.wnext,c25=c2.wsize-c24):c25=c2.wnext-c24,c24>c2.length&&(c24=c2.length),c26=c2.window}else c26=c13,c25=c15-c2.offset,c24=c2.length;c24>c17&&(c24=c17),c17-=c24,c2.length-=c24;do{c13[c15++]=c26[c25++]}while(--c24);0===c2.length&&(c2.mode=21);break;case 26:if(0===c17)break c0;c13[c15++]=c2.length,c17--,c2.mode=21;break;case 27:if(c2.wrap){for(;c19<32;){if(0===c16)break c0;c16--,c18|=c12[c14++]<>>=c20=c19>>>24,c14-=c20,0===(c20=c19>>>16&255))c26[c5++]=65535&c19;else{if(!(16&c20)){if(0==(64&c20)){c19=c15[(65535&c19)+(c13&(1<>>=c20,c14-=c20),c14<15&&(c13+=c25[c3++]<>>=c20=c19>>>24,c14-=c20,!(16&(c20=c19>>>16&255))){if(0==(64&c20)){c19=c16[(65535&c19)+(c13&(1<c8){c0.msg="invalid distance too far back",c2.mode=30;break c0}if(c13>>>=c20,c14-=c20,c22>(c20=c5-c6)){if((c20=c22-c20)>c10&&c2.sane){c0.msg="invalid distance too far back",c2.mode=30;break c0}if(c23=0,c24=c12,0===c11){if(c23+=c9-c20,c202;)c26[c5++]=c24[c23++],c26[c5++]=c24[c23++],c26[c5++]=c24[c23++],c21-=3;c21&&(c26[c5++]=c24[c23++],c21>1&&(c26[c5++]=c24[c23++]))}else{c23=c5-c22;do{c26[c5++]=c26[c23++],c26[c5++]=c26[c23++],c26[c5++]=c26[c23++],c21-=3}while(c21>2);c21&&(c26[c5++]=c26[c23++],c21>1&&(c26[c5++]=c26[c23++]))}break}}break}}while(c3>3,c13&=(1<<(c14-=c21<<3))-1,c0.next_in=c3,c0.next_out=c5,c0.avail_in=c3=1&&0===c36[c27];c27--);if(c28>c27&&(c28=c27),0===c27)return c10[c11++]=20971520,c10[c11++]=20971520,c13.bits=1,0;for(c26=1;c260&&(0===c0||1!==c27))return-1;for(c37[1]=0,c24=1;c24852||2===c0&&c32>592)return 1;for(;;){c20=c24-c30,c12[c25]c19?(c21=c38[c39+c12[c25]],c22=c34[c35+c12[c25]]):(c21=96,c22=0),c14=1<>c30)+(c15-=c14)]=c20<<24|c21<<16|c22|0}while(0!==c15);for(c14=1<>=1;if(0!==c14?(c33&=c14-1,c33+=c14):c33=0,c25++,0==--c36[c24]){if(c24===c27)break;c24=c1[c2+c12[c25]]}if(c24>c28&&(c33&c17)!==c16){for(0===c30&&(c30=c28),c18+=c26,c31=1<<(c29=c24-c30);c29+c30852||2===c0&&c32>592)return 1;c10[c16=c33&c17]=c28<<24|c29<<16|c18-c11|0}}return 0!==c33&&(c10[c18+c33]=c24-c30<<24|64<<16|0),c13.bits=c28,0}},function(c0,c1,c2){"use strict";c0.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__395__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__396__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__397__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__398__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__399__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__400__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__401__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__402__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__403__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__404__},function(c0,c1){c0.exports=__WEBPACK_EXTERNAL_MODULE__405__}])})); //# sourceMappingURL=proto.min.js.map