diff --git a/SampleCode/H5/NEMeetingKit_h5_v4.6.0.js b/SampleCode/H5/NEMeetingKit_h5_v4.6.0.js new file mode 100644 index 0000000..848186a --- /dev/null +++ b/SampleCode/H5/NEMeetingKit_h5_v4.6.0.js @@ -0,0 +1,196 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).NEMeetingKit=t()}(this,(function(){"use strict";function _mergeNamespaces(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var __assign$b=function(){return __assign$b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read$4(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var commonjsGlobal$2="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},getOwnPropertySymbols$1=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}var objectAssign=shouldUseNative()?Object.assign:function(e,t){for(var n,r,i=toObject(e),o=1;o0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function endsWith(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n}function toArray$9(e){if(!e)return null;var t=e.length;if(isUndefined$1(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var isTypedArray=(TypedArray="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return TypedArray&&e instanceof TypedArray}),TypedArray,utils$w={isArray:isArray$1,isArrayBuffer:isArrayBuffer$1,isBuffer:isBuffer$1,isFormData:isFormData$1,isArrayBufferView:isArrayBufferView$1,isString:isString$2,isNumber:isNumber$1,isObject:isObject$7,isPlainObject:isPlainObject$1,isUndefined:isUndefined$1,isDate:isDate$1,isFile:isFile$1,isBlob:isBlob$1,isFunction:isFunction$2,isStream:isStream$1,isURLSearchParams:isURLSearchParams$1,isStandardBrowserEnv:isStandardBrowserEnv$1,forEach:forEach$1,merge:merge$6,extend:extend$4,trim:trim$4,stripBOM:stripBOM$1,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray$9,isTypedArray:isTypedArray,isFileList:isFileList},utils$v=utils$w;function encode$1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$5=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(utils$v.isURLSearchParams(t))r=t.toString();else{var i=[];utils$v.forEach(t,(function(e,t){null!=e&&(utils$v.isArray(e)?t+="[]":e=[e],utils$v.forEach(e,(function(e){utils$v.isDate(e)?e=e.toISOString():utils$v.isObject(e)&&(e=JSON.stringify(e)),i.push(encode$1(t)+"="+encode$1(e))})))})),r=i.join("&")}if(r){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},utils$u=utils$w;function InterceptorManager$3(){this.handlers=[]}InterceptorManager$3.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},InterceptorManager$3.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager$3.prototype.forEach=function(e){utils$u.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var InterceptorManager_1$1=InterceptorManager$3,utils$t=utils$w,normalizeHeaderName$3=function(e,t){utils$t.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},utils$s=utils$w;function AxiosError$5(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}utils$s.inherits(AxiosError$5,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var prototype=AxiosError$5.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){descriptors[e]={value:e}})),Object.defineProperties(AxiosError$5,descriptors),Object.defineProperty(prototype,"isAxiosError",{value:!0}),AxiosError$5.from=function(e,t,n,r,i,o){var a=Object.create(prototype);return utils$s.toFlatObject(e,a,(function(e){return e!==Error.prototype})),AxiosError$5.call(a,e.message,t,n,r,i),a.name=e.name,o&&Object.assign(a,o),a};var AxiosError_1=AxiosError$5,transitional={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},utils$r=utils$w;function toFormData$1(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":utils$r.isDate(e)?e.toISOString():utils$r.isArrayBuffer(e)||utils$r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,o){if(utils$r.isPlainObject(i)||utils$r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+o);n.push(i),utils$r.forEach(i,(function(n,i){if(!utils$r.isUndefined(n)){var a,s=o?o+"."+i:i;if(n&&!o&&"object"==typeof n)if(utils$r.endsWith(i,"{}"))n=JSON.stringify(n);else if(utils$r.endsWith(i,"[]")&&(a=utils$r.toArray(n)))return void a.forEach((function(e){!utils$r.isUndefined(e)&&t.append(s,r(e))}));e(n,s)}})),n.pop()}else t.append(o,r(i))}(e),t}var toFormData_1=toFormData$1,AxiosError$4=AxiosError_1,settle$3=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new AxiosError$4("Request failed with status code "+n.status,[AxiosError$4.ERR_BAD_REQUEST,AxiosError$4.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)},utils$q=utils$w,cookies$3=utils$q.isStandardBrowserEnv()?{write:function(e,t,n,r,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),utils$q.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),utils$q.isString(r)&&a.push("path="+r),utils$q.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},isAbsoluteURL$3=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},combineURLs$3=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},isAbsoluteURL$2=isAbsoluteURL$3,combineURLs$2=combineURLs$3,buildFullPath$4=function(e,t){return e&&!isAbsoluteURL$2(t)?combineURLs$2(e,t):t},utils$p=utils$w,ignoreDuplicateOf$1=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],parseHeaders$3=function(e){var t,n,r,i={};return e?(utils$p.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=utils$p.trim(e.substr(0,r)).toLowerCase(),n=utils$p.trim(e.substr(r+1)),t){if(i[t]&&ignoreDuplicateOf$1.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i},utils$o=utils$w,isURLSameOrigin$3=utils$o.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=utils$o.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},AxiosError$3=AxiosError_1,utils$n=utils$w;function CanceledError$3(e){AxiosError$3.call(this,null==e?"canceled":e,AxiosError$3.ERR_CANCELED),this.name="CanceledError"}utils$n.inherits(CanceledError$3,AxiosError$3,{__CANCEL__:!0});var CanceledError_1=CanceledError$3,parseProtocol$1=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""},utils$m=utils$w,settle$2=settle$3,cookies$2=cookies$3,buildURL$4=buildURL$5,buildFullPath$3=buildFullPath$4,parseHeaders$2=parseHeaders$3,isURLSameOrigin$2=isURLSameOrigin$3,transitionalDefaults$1=transitional,AxiosError$2=AxiosError_1,CanceledError$2=CanceledError_1,parseProtocol=parseProtocol$1,xhr$1=function(e){return new Promise((function(t,n){var r,i=e.data,o=e.headers,a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}utils$m.isFormData(i)&&utils$m.isStandardBrowserEnv()&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(l+":"+u)}var d=buildFullPath$3(e.baseURL,e.url);function p(){if(c){var r="getAllResponseHeaders"in c?parseHeaders$2(c.getAllResponseHeaders()):null,i={data:a&&"text"!==a&&"json"!==a?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c};settle$2((function(e){t(e),s()}),(function(e){n(e),s()}),i),c=null}}if(c.open(e.method.toUpperCase(),buildURL$4(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(p)},c.onabort=function(){c&&(n(new AxiosError$2("Request aborted",AxiosError$2.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new AxiosError$2("Network Error",AxiosError$2.ERR_NETWORK,e,c,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||transitionalDefaults$1;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new AxiosError$2(t,r.clarifyTimeoutError?AxiosError$2.ETIMEDOUT:AxiosError$2.ECONNABORTED,e,c)),c=null},utils$m.isStandardBrowserEnv()){var m=(e.withCredentials||isURLSameOrigin$2(d))&&e.xsrfCookieName?cookies$2.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m)}"setRequestHeader"in c&&utils$m.forEach(o,(function(e,t){void 0===i&&"content-type"===t.toLowerCase()?delete o[t]:c.setRequestHeader(t,e)})),utils$m.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&"json"!==a&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){c&&(n(!e||e&&e.type?new CanceledError$2:e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),i||(i=null);var f=parseProtocol(d);f&&-1===["http","https","file"].indexOf(f)?n(new AxiosError$2("Unsupported protocol "+f+":",AxiosError$2.ERR_BAD_REQUEST,e)):c.send(i)}))},_null=null,utils$l=utils$w,normalizeHeaderName$2=normalizeHeaderName$3,AxiosError$1=AxiosError_1,transitionalDefaults=transitional,toFormData=toFormData_1,DEFAULT_CONTENT_TYPE$1={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset$1(e,t){!utils$l.isUndefined(e)&&utils$l.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function getDefaultAdapter$1(){var e;return("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=xhr$1),e}function stringifySafely$1(e,t,n){if(utils$l.isString(e))try{return(t||JSON.parse)(e),utils$l.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}var defaults$9={transitional:transitionalDefaults,adapter:getDefaultAdapter$1(),transformRequest:[function(e,t){if(normalizeHeaderName$2(t,"Accept"),normalizeHeaderName$2(t,"Content-Type"),utils$l.isFormData(e)||utils$l.isArrayBuffer(e)||utils$l.isBuffer(e)||utils$l.isStream(e)||utils$l.isFile(e)||utils$l.isBlob(e))return e;if(utils$l.isArrayBufferView(e))return e.buffer;if(utils$l.isURLSearchParams(e))return setContentTypeIfUnset$1(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=utils$l.isObject(e),i=t&&t["Content-Type"];if((n=utils$l.isFileList(e))||r&&"multipart/form-data"===i){var o=this.env&&this.env.FormData;return toFormData(n?{"files[]":e}:e,o&&new o)}return r||"application/json"===i?(setContentTypeIfUnset$1(t,"application/json"),stringifySafely$1(e)):e}],transformResponse:[function(e){var t=this.transitional||defaults$9.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&utils$l.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw AxiosError$1.from(e,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$l.forEach(["delete","get","head"],(function(e){defaults$9.headers[e]={}})),utils$l.forEach(["post","put","patch"],(function(e){defaults$9.headers[e]=utils$l.merge(DEFAULT_CONTENT_TYPE$1)}));var defaults_1$1=defaults$9,utils$k=utils$w,defaults$8=defaults_1$1,transformData$3=function(e,t,n){var r=this||defaults$8;return utils$k.forEach(n,(function(n){e=n.call(r,e,t)})),e},isCancel$3=function(e){return!(!e||!e.__CANCEL__)},utils$j=utils$w,transformData$2=transformData$3,isCancel$2=isCancel$3,defaults$7=defaults_1$1,CanceledError$1=CanceledError_1;function throwIfCancellationRequested$1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError$1}var dispatchRequest$3=function(e){return throwIfCancellationRequested$1(e),e.headers=e.headers||{},e.data=transformData$2.call(e,e.data,e.headers,e.transformRequest),e.headers=utils$j.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),utils$j.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||defaults$7.adapter)(e).then((function(t){return throwIfCancellationRequested$1(e),t.data=transformData$2.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return isCancel$2(t)||(throwIfCancellationRequested$1(e),t&&t.response&&(t.response.data=transformData$2.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},utils$i=utils$w,mergeConfig$7=function(e,t){t=t||{};var n={};function r(e,t){return utils$i.isPlainObject(e)&&utils$i.isPlainObject(t)?utils$i.merge(e,t):utils$i.isPlainObject(t)?utils$i.merge({},t):utils$i.isArray(t)?t.slice():t}function i(n){return utils$i.isUndefined(t[n])?utils$i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function o(e){if(!utils$i.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return utils$i.isUndefined(t[n])?utils$i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function s(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return utils$i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,r=t(e);utils$i.isUndefined(r)&&t!==s||(n[e]=r)})),n},data={version:"0.27.2"},VERSION=data.version,AxiosError=AxiosError_1,validators$4={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){validators$4[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var deprecatedWarnings$1={};function assertOptions$1(e,t,n){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],c=void 0===s||a(s,o,e);if(!0!==c)throw new AxiosError("option "+o+" must be "+c,AxiosError.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new AxiosError("Unknown option "+o,AxiosError.ERR_BAD_OPTION)}}validators$4.transitional=function(e,t,n){function r(e,t){return"[Axios v"+VERSION+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new AxiosError(r(i," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!deprecatedWarnings$1[i]&&(deprecatedWarnings$1[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var validator$3={assertOptions:assertOptions$1,validators:validators$4},utils$h=utils$w,buildURL$3=buildURL$5,InterceptorManager$2=InterceptorManager_1$1,dispatchRequest$2=dispatchRequest$3,mergeConfig$6=mergeConfig$7,buildFullPath$2=buildFullPath$4,validator$2=validator$3,validators$3=validator$2.validators;function Axios$3(e){this.defaults=e,this.interceptors={request:new InterceptorManager$2,response:new InterceptorManager$2}}Axios$3.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=mergeConfig$6(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&validator$2.assertOptions(n,{silentJSONParsing:validators$3.transitional(validators$3.boolean),forcedJSONParsing:validators$3.transitional(validators$3.boolean),clarifyTimeoutError:validators$3.transitional(validators$3.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!i){var s=[dispatchRequest$2,void 0];for(Array.prototype.unshift.apply(s,r),s=s.concat(a),o=Promise.resolve(t);s.length;)o=o.then(s.shift(),s.shift());return o}for(var c=t;r.length;){var l=r.shift(),u=r.shift();try{c=l(c)}catch(e){u(e);break}}try{o=dispatchRequest$2(c)}catch(e){return Promise.reject(e)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},Axios$3.prototype.getUri=function(e){e=mergeConfig$6(this.defaults,e);var t=buildFullPath$2(e.baseURL,e.url);return buildURL$3(t,e.params,e.paramsSerializer)},utils$h.forEach(["delete","get","head","options"],(function(e){Axios$3.prototype[e]=function(t,n){return this.request(mergeConfig$6(n||{},{method:e,url:t,data:(n||{}).data}))}})),utils$h.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(mergeConfig$6(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Axios$3.prototype[e]=t(),Axios$3.prototype[e+"Form"]=t(!0)}));var Axios_1$1=Axios$3,CanceledError=CanceledError_1;function CancelToken$1(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read$3(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function __spreadArray$3(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i=0&&t<=d.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),d.name=e,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=n||u,d.getLevel=function(){return null!=l?l:null!=s?s:a},d.setLevel=function(e,n){return l=f(e),!1!==n&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+n+";"}catch(e){}}}(l),c.call(d)},d.setDefaultLevel=function(e){s=f(e),m()||d.setLevel(e,!1)},d.resetLevel=function(){l=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),c.call(d)},d.enableAll=function(e){d.setLevel(d.levels.TRACE,e)},d.disableAll=function(e){d.setLevel(d.levels.SILENT,e)},d.rebuild=function(){if(o!==d&&(a=f(o.getLevel())),c.call(d),o===d)for(var e in i)i[e].rebuild()},a=f(o?o.getLevel():"WARN");var h=m();null!=h&&(l=f(h)),c.call(d)}(o=new d).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new d(e,o.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=p),o},o.getLoggers=function(){return i},o.default=o,o},e.exports?e.exports=n():t.log=n()})),log$1=loglevel$2;function createLoggerDecorator(e,t){return function(n,r,i){var o=i.value;i.value=function(){for(var n=[],i=0;i0&&(this.data.steps=r)},t}(EventStep$1),frequencyControl=function(e,t){var n,r=[],i=0;return function(){for(var o=this,a=[],s=0;st?d():(clearTimeout(n),n=setTimeout((function(){d()}),t))}))}};function getBrowserInfo$1(){var e="Unknown",t="";try{var n=navigator.userAgent;if(-1!==n.indexOf("Chrome")){e="Chrome";var r=n.indexOf("Chrome")+7,i=n.indexOf(" ",r);t=n.substring(r,i)}else if(-1!==n.indexOf("Firefox")){e="Firefox";r=n.indexOf("Firefox")+8;t=n.substring(r)}else if(-1!==n.indexOf("Safari")){e="Safari";r=n.indexOf("Version")+8,i=n.indexOf(" ",r);t=n.substring(r,i)}else if(-1!==n.indexOf("Edg")){e="Edge";r=n.indexOf("Edg")+4;t=n.substring(r)}else if(-1!==n.indexOf("MSIE")){e="Internet Explorer";r=n.indexOf("MSIE")+5,i=n.indexOf(";",r);t=n.substring(r,i)}}catch(e){console.error("getBrowserInfo error:",e)}return{name:e,version:t}}var url$2="https://statistic.live.126.net/statics/report/common/form",HEADER_VALUE_SDK_TYPE$1="NEXKitStatistics",HEADER_VALUE_REPORTER_VERSION$1="1.0.0",HEADER_VALUE_CONTENT_TYPE$1="application/json;charset=utf-8",EVENT_REPORT_INTERVAL$1=5e3,MAX_EVENT_CACHE_SIZE$1=100,LOW_PRIORITY_RETRY$1=0,NORMAL_PRIORITY_RETRY$1=2,HIGH_PRIORITY_RETRY$1=5,MAX_RETRY_COUNT$1=3,XKitReporter$2=function(){function e(e){this._eventsCache=[],this._noReport=!1,this._configMap=new Map,this._retryCount=0;var t=getBrowserInfo$1(),n=window.__XKitReporter__,r="";try{r=navigator.userAgent}catch(e){console.log("navigator is not defined")}this.common={imVersion:e.imVersion,nertcVersion:e.nertcVersion,platform:"Web",osVer:t.version,userAgent:r,manufacturer:"",model:t.name,packageId:(null==n?void 0:n.packageId)||"",appVer:(null==n?void 0:n.appVer)||"",appName:(null==n?void 0:n.appName)||"",deviceId:e.deviceId},this._logger=logDebug$1$1({level:"debug",appName:"XKitReporter",version:"2.0.0"})}return e.prototype.getConfig=function(e){return __awaiter$4(this,void 0,void 0,(function(){var t=this;return __generator$3(this,(function(n){return[2,axios$3({method:"GET",url:"https://yiyong.netease.im/report_conf",headers:{platform:"web",appKey:e}}).then((function(n){t._configMap.set(e,n.data)})).catch((function(){t._retryCount+=1,t._retryCount>MAX_RETRY_COUNT$1?t._retryCount=0:t.getConfig(e)}))]}))}))},e.prototype.setNoReport=function(e){this._noReport=e},e.prototype.reportEvent=function(e,t){this._noReport||(this._eventsCache.length>=MAX_EVENT_CACHE_SIZE$1?this._evictEvent(e):this._eventsCache.push(e),this._scheduleReportEventsTask(null==t?void 0:t.immediate))},e.prototype._evictEvent=function(e){var t=this._eventsCache.findIndex((function(t){return t.priority0&&(null===(i=null==n?void 0:n.blacklist)||void 0===i?void 0:i.includes(t.component)))return e;if((null===(o=null==n?void 0:n.whitelist)||void 0===o?void 0:o.length)>0&&!(null===(a=null==n?void 0:n.whitelist)||void 0===a?void 0:a.includes(t.component)))return e;var s=t.eventId;return e[s]||(e[s]=[]),e[s].push(__assign$a(__assign$a({},t.data),{appKey:t.appKey,component:t.component,version:t.version,framework:t.framework})),e}),{}),i=this._determineMaxRetry(t),o=0,a={common:this.common,event:r},(s=function(){request$3({method:"POST",url:url$2,headers:{appkey:e,sdktype:HEADER_VALUE_SDK_TYPE$1,ver:HEADER_VALUE_REPORTER_VERSION$1,"Content-Type":HEADER_VALUE_CONTENT_TYPE$1},data:a}).catch((function(){o<=i?setTimeout(s,2e3*o):c._logger.debug("Failed to report events to server after ".concat(o," retries."),a),o++}))})(),[2]):[2]}))}))},e.setAppInfo=function(e){window.__XKitReporter__={packageId:null==e?void 0:e.packageId,appName:null==e?void 0:e.appName,appVer:null==e?void 0:e.appVer}},e.getInstance=function(t){if(!t){if(!this.instance)throw new Error("XKitReporter not initialized");return this.instance}return this.instance||(this.instance=new e(t)),this.instance},e}(),XKitReporter$1$1=XKitReporter$2,NIM_Web_NIM={exports:{}};(function(module,exports){!function(e,t){module.exports=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=914)}([function(e,t,n){var r=n(51),i=n(2),o=n(7),a=n(15),s=n(4),c=n(121),l=n(71),u=n(122),d=n(32),p=n(6),m=n(9),f=n(8),h=n(123),g=n(141),v=n(24),y=n(16),b=n(462),S=n(466),x=n(3),w=n(88),T=n(89),C=n(72),E=n(52),_=n(53),M=n(54),A=n(55),R=n(43),I=n(22);function k(e,t){var n=s(e);if(E){var r=E(e);t&&(r=y(r).call(r,(function(t){return _(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e,t){var n=void 0!==T&&C(e)||e["@@iterator"];if(!n){if(d(e)||(n=function(e,t){var n;if(e){if("string"==typeof e)return O(e,t);var r=a(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?w(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)t[e.shift()]=!0;for(var r in t)!0===t[r]&&n.push(r);return n}return e},F.onError=function(e){throw new L(e)},F.verifyParamPresent=function(e,t,n,r){n=n||"";var i=!1;switch(F.typeOf(t)){case"undefined":case"null":i=!0;break;case"string":""===t&&(i=!0);break;case"StrStrMap":case"object":s(t).length||(i=!0);break;case"array":t.length?c(t).call(t,(function(e){if(F.notexist(e))return i=!0,!0})):i=!0}i&&F.onParamAbsent(n+e,r)},F.onParamAbsent=function(e,t){F.onParamError("缺少参数 ".concat(e,", 请确保参数不是 空字符串、空对象、空数组、null或undefined, 或数组的内容不是 null/undefined"),t)},F.verifyParamAbsent=function(e,t,n,r){n=n||"",void 0!==t&&F.onParamPresent(n+e,r)},F.onParamPresent=function(e,t){F.onParamError("多余的参数 ".concat(e),t)},F.verifyParamType=function(e,t,n,r){var i=F.typeOf(t).toLowerCase();F.isArray(n)||(n=[n]),n=m(n).call(n,(function(e){return e.toLowerCase()}));var a=!0;switch(-1===o(n).call(n,i)&&(a=!1),i){case"number":isNaN(t)&&(a=!1);break;case"string":"numeric or numeric string"===n.join("")&&(a=!!/^[0-9]+$/.test(t))}a||F.onParamInvalidType(e,n,"",r)},F.onParamInvalidType=function(e,t,n,r){n=n||"",t=F.isArray(t)?(t=m(t).call(t,(function(e){return'"'+e+'"'}))).join(", "):'"'+t+'"',F.onParamError('参数"'+n+e+'"类型错误, 合法的类型包括: ['+t+"]",r)},F.verifyParamValid=function(e,t,n,r){F.isArray(n)||(n=[n]),-1===o(n).call(n,t)&&F.onParamInvalidValue(e,n,r)},F.onParamInvalidValue=function(e,t,n){var r;F.isArray(t)||(t=[t]),t=m(t).call(t,(function(e){return'"'+e+'"'})),F.isArray(t)&&(t=t.join(", ")),F.onParamError(p(r="参数 ".concat(e,"值错误, 合法的值包括: [")).call(r,f(t),"]"),n)},F.verifyParamMin=function(e,t,n,r){tn&&F.onParamError("参数"+e+"的值不能大于"+n,r)},F.verifyArrayMax=function(e,t,n,r){t.length>n&&F.onParamError("参数"+e+"的长度不能大于"+n,r)},F.verifyEmail=($=/^\S+@\S+$/,function(e,t,n){$.test(t)||F.onParamError("参数"+e+"邮箱格式错误, 合法格式必须包含@符号, @符号前后至少要各有一个字符",n)}),F.verifyTel=function(){var e=/^[+\-()\d]+$/;return function(t,n,r){e.test(n)||F.onParamError("参数"+t+"电话号码格式错误, 合法字符包括+、-、英文括号和数字",r)}}(),F.verifyBirth=function(){var e=/^(\d{4})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/;return function(t,n,r){e.test(n)||F.onParamError("参数"+t+'生日格式错误, 合法为"yyyy-MM-dd"',r)}}(),F.onParamError=function(e,t){F.onError({message:e,callFunc:t})},F.verifyOptions=function(e,t,n,r,o){if(e=e||{},t&&(F.isString(t)&&(t=t.split(B)),F.isArray(t))){"boolean"!=typeof n&&(o=n||null,n=!0,r="");var a=n?F.verifyParamPresent:F.verifyParamAbsent;i(t).call(t,(function(t){a.call(F,t,e[t],r,o)}))}return e},F.verifyParamAtLeastPresentOne=function(e,t,n){t&&(F.isString(t)&&(t=t.split(B)),F.isArray(t)&&(c(t).call(t,(function(t){return F.exist(e[t])}))||F.onParamError("以下参数["+t.join(", ")+"]至少需要传入一个",n)))},F.verifyParamPresentJustOne=function(e,t,n){t&&(F.isString(t)&&(t=t.split(B)),F.isArray(t)&&1!==h(t).call(t,(function(t,n){return F.exist(e[n])&&t++,t}),0)&&F.onParamError("以下参数["+t.join(", ")+"]必须且只能传入一个",n))},F.verifyBooleanWithDefault=function(e,t,n,r,o){F.undef(n)&&(n=!0),B.test(t)&&(t=t.split(B)),F.isArray(t)?i(t).call(t,(function(t){F.verifyBooleanWithDefault(e,t,n,r,o)})):void 0===e[t]?e[t]=n:F.isBoolean(e[t])||F.onParamInvalidType(t,"boolean",r,o)},F.verifyFileInput=function(e,t){var n;return F.verifyParamPresent("fileInput",e,"",t),F.isString(e)&&((e="undefined"==typeof document?void 0:document.getElementById(e))||F.onParamError("找不到要上传的文件对应的input, 请检查fileInput id ".concat(e),t)),e.tagName&&"input"===e.tagName.toLowerCase()&&"file"===e.type.toLowerCase()||F.onParamError(p(n="请提供正确的 fileInput, 必须为 file 类型的 input 节点 tagname:".concat(e.tagName,", filetype:")).call(n,e.type),t),e},F.verifyFileType=function(e,t){F.verifyParamValid("type",e,F.validFileTypes,t)},F.verifyCallback=function(e,t,n){B.test(t)&&(t=t.split(B)),F.isArray(t)?i(t).call(t,(function(t){F.verifyCallback(e,t,n)})):e[t]?F.isFunction(e[t])||F.onParamInvalidType(t,"function","",n):e[t]=F.emptyFunc},F.verifyFileUploadCallback=function(e,t){F.verifyCallback(e,"uploadprogress uploaddone uploaderror uploadcancel",t)},F.validFileTypes=["image","audio","video","file"],F.validFileExts={image:["bmp","gif","jpg","jpeg","jng","png","webp"],audio:["mp3","wav","aac","wma","wmv","amr","mp2","flac","vorbis","ac3"],video:["mp4","rm","rmvb","wmv","avi","mpg","mpeg","mov"]},F.filterFiles=function(e,t){var n,r,s="file"===(t=t.toLowerCase()),c=[];return i([]).call(e,(function(e){var i,l;if(s)c.push(e);else if(n=a(i=e.name).call(i,g(l=e.name).call(l,".")+1),(r=e.type.split("/"))[0]&&r[1]){var u;(r[0].toLowerCase()===t||-1!==o(u=F.validFileExts[t]).call(u,n))&&c.push(e)}})),c};var z,H,V=F.supportFormData=F.notundef(U.FormData);F.getFileName=function(e){return e=F.verifyFileInput(e),V?e.files[0].name:a(t=e.value).call(t,g(n=e.value).call(n,"\\")+1);var t,n},F.getFileInfo=(z={ppt:1,pptx:2,pdf:3,doc:6,docx:7},function(e){var t={};if(!(e=F.verifyFileInput(e)).files)return t;var n=e.files[0];return V&&(t.name=n.name,t.size=n.size,t.type=n.name.match(/\.(\w+)$/),t.type=t.type&&t.type[1].toLowerCase(),t.transcodeType=z[t.type]||0),t}),F.sizeText=(H=["B","KB","MB","GB","TB","PB","EB","ZB","BB"],function(e){var t,n=0;do{t=(e=Math.floor(100*e)/100)+H[n],e/=1024,n++}while(e>1);return t}),F.promises2cmds=function(e){return m(e).call(e,(function(e){return e.cmd}))},F.objs2accounts=function(e){return m(e).call(e,(function(e){return e.account}))},F.teams2ids=function(e){return m(e).call(e,(function(e){return e.teamId}))},F.objs2ids=function(e){return m(e).call(e,(function(e){return e.id}))},F.getMaxUpdateTime=function(e){var t=m(e).call(e,(function(e){return+e.updateTime}));return Math.max.apply(Math,t)},F.genCheckUniqueFunc=function(e){return e=e||"id",function(t){this.uniqueSet=this.uniqueSet||{},this.uniqueSet[e]=this.uniqueSet[e]||{};var n=this.uniqueSet[e],r=t[e];return!n[r]&&(n[r]=!0,!0)}},F.fillPropertyWithDefault=function(e,t,n){return!!F.undef(e[t])&&(e[t]=n,!0)},F.throttle=function(e,t,n,r){var i,o,a=null,s=0;n||(n={});var c=function(){s=!1===n.leading?0:(new Date).getTime(),a=null,e.apply(i,o),a||(i=o=null)};return function(){var l=(new Date).getTime();s||!1!==n.leading||(s=l);var u=t-(l-s);return i=this,o=arguments,u<=0||u>t?(clearTimeout(a),a=null,s=l,e.apply(i,o),a||(i=o=null)):a||!1===n.trailing?a&&r&&r.apply(i,o):(a=v(c,u),r&&r.apply(i,o)),a}},F.get=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("object"!==I(e))return n;var r,i=e,o=P(t.replace(/\[(\d+)\]/g,".$1").split("."));try{for(o.s();!(r=o.n()).done;){var a=r.value;if(void 0===(i=Object(i)[a]))return n}}catch(e){o.e(e)}finally{o.f()}return i},F.pickAsString=function(e,t){var n;return e?m(n=y(t).call(t,(function(t){return void 0!==e[t]}))).call(n,(function(t){var n;return p(n="".concat(t,"=")).call(n,e[t])})).join(","):""},F.omitAsString=function(e,t){var n,r;if(!e)return"";var o={};return i(t).call(t,(function(e){o[e]=!0})),m(n=y(r=s(e)).call(r,(function(e){return!o[e]}))).call(n,(function(t){var n;return p(n="".concat(t,"=")).call(n,e[t])})).join(",")};var W={session:function(e){var t=function(e){for(var t=1;t-1},array:function(e,t,n){var r=n.itemType,i=n.min,o=n.max,a=n.required,s=e[t];return!((!1!==a||void 0!==s)&&(!d(s)||"number"==typeof o&&s.length>o||"number"==typeof i&&s.length=e&&(d=x.race(a))}return d.then((function(){return s()}))}().then((function(){return x.all(i)}))},F.getIdArray=function(e){if(!e||"string"!=typeof e)throw new Error("id type error");var t=o(e).call(e,"-");if(t<0||t===e.length-1)throw new Error("id format error");return[a(e).call(e,0,t),a(e).call(e,t+1)]},e.exports=F},function(e,t,n){var r=n(14),i=n(79),o=n(159),a=n(17),s=n(95).f,c=n(211),l=n(13),u=n(34),d=n(61),p=n(30),m=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return i(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,i,f,h,g,v,y,b,S,x=e.target,w=e.global,T=e.stat,C=e.proto,E=w?r:T?r[x]:(r[x]||{}).prototype,_=w?l:l[x]||d(l,x,{})[x],M=_.prototype;for(h in t)i=!(n=c(w?h:x+(T?".":"#")+h,e.forced))&&E&&p(E,h),v=_[h],i&&(y=e.dontCallGetSet?(S=s(E,h))&&S.value:E[h]),g=i&&y?y:t[h],i&&typeof v==typeof g||(b=e.bind&&i?u(g,r):e.wrap&&i?m(g):C&&a(g)?o(g):g,(e.sham||g&&g.sham||v&&v.sham)&&d(b,"sham",!0),d(_,h,b),C&&(p(l,f=x+"Prototype")||d(l,f,{}),d(l[f],h,g),e.real&&M&&(n||!M[h])&&d(M,h,g)))}},function(e,t,n){e.exports=n(230)},function(e,t,n){e.exports=n(232)},function(e,t,n){e.exports=n(231)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){e.exports=n(323)},function(e,t,n){e.exports=n(207)},function(e,t,n){e.exports=n(384)},function(e,t,n){e.exports=n(440)},function(e,t,n){e.exports=n(276)},function(e,t,n){var r=n(7),i=n(6),o=!1;try{"function"==typeof localStorage.setItem&&"function"==typeof localStorage.getItem&&(localStorage.setItem("nim_localstorage_exist_test","1"),o="1"===localStorage.getItem("nim_localstorage_exist_test"),localStorage.removeItem("nim_localstorage_exist_test"))}catch(e){o=!1}var a={nodeEnv:"production",info:{hash:"98d1c9786af772ff439f12534089825e2c3c6776",shortHash:"98d1c978",version:"9.14.4",sdkVersion:"91404",sdkHumanVersion:"9.14.4",protocolVersion:1},lbsUrl:"https://lbs.netease.im/lbs/webconf.jsp",needToXHR:!0,connectTimeout:1e4,xhrTimeout:8e3,reconnectionDelay:1600,reconnectionDelayMax:8e3,reconnectionJitter:.01,reconnectiontimer:null,heartbeatInterval:3e4,cmdTimeout:8e3,hbCmdTimeout:5e3,isWeixinApp:!1,isNodejs:!1,isRN:!1,ipVersion:0,PUSHTOKEN:"",PUSHCONFIG:{},CLIENTTYPE:16,PushPermissionAsked:!1,iosPushConfig:null,androidPushConfig:null,optionDefaultLinkUrl:"",defaultLinkUrl:"weblink.netease.im",ipv6DefaultLinkUrl:"weblink.netease.im",optionIpv6DefaultLinkUrl:"",wxDefaultLinkUrl:"wlnimsc0.netease.im",serverNosConfig:o?{cdnDomain:localStorage.getItem("nim_cdn_domain")||"",objectPrefix:localStorage.getItem("nim_object_prefix")||""}:{},hasLocalStorage:o,privateConf:{isABTestEnable:!0,isDataReportEnable:!0,isMixStoreEnable:!0,reportConfigUrl:"https://statistic.live.126.net/dispatcher/req",reportUrl:"https://statistic.live.126.net/statics/report/common/form"},getDefaultLinkUrl:function(e){var t,n;1===a.ipVersion?(t=a.optionIpv6DefaultLinkUrl,n=a.ipv6DefaultLinkUrl):(t=a.optionDefaultLinkUrl,n=a.defaultLinkUrl);var i=t||(a.isWeixinApp?a.wxDefaultLinkUrl:n);if(!i)return!1;var o=e?"https":"http",s=e?"443":"80",c=i;return-1===r(i).call(i,"http")&&(c=o+"://"+c),-1===r(i).call(i,":")&&(c=c+":"+s),c},ipProbeAddr:{ipv4:"https://check-ipv4.netease.im/test/",ipv6:"https://check-ipv6.netease.im/test/"},formatSocketUrl:function(e){var t=e.url,n=e.secure?"https":"http";return-1===r(t).call(t,"http")?n+"://"+t:t},uploadUrl:"https://nos.netease.com",chunkUploadUrl:"https://wanproxy-web.127.net",commonMaxSize:104857600,chunkSize:4194304,chunkMaxSize:4194304e4,replaceUrl:"https://{bucket}-nosdn.netease.im/{object}",downloadHost:"nos.netease.com",downloadHostList:["nos.netease.com"],downloadUrl:"https://{bucket}-nosdn.netease.im/{object}",nosCdnEnable:!0,httpsEnabled:!1,threshold:0,nosLbsUrls:[],edgeList:["https://wanproxy-web.127.net","https://nosup-hz1.127.net"],genUploadUrl:function(e){return a.uploadUrl+"/"+e},genChunkUploadUrl:function(e){return a.chunkUploadUrl?a.chunkUploadUrl+"/"+e.bucket+"/"+e.objectName:""},genDownloadUrl:function(e,t,n){var r,o,s,c,l,u=e.bucket,d=e.expireSec,p=+new Date,m=d?"&survivalTime=".concat(d):"";if(n)return i(s=i(c=i(l="https://".concat(n,"/")).call(l,t,"?createTime=")).call(c,p)).call(s,m);var f=i(r=i(o="".concat(a.replaceUrl,"?createTime=")).call(o,p)).call(r,m);return(f=a.genNosProtocolUrl(f)).replace("{bucket}",u).replace("{object}",t)},genFileUrl:function(e){var t=e.bucket,n=e.objectName;return a.genNosProtocolUrl(a.replaceUrl).replace("{bucket}",t).replace("{object}",n)},genNosProtocolUrl:function(e){return/^http/.test(e)?a.httpsEnabled&&0!==r(e).call(e,"https://")&&(e=e.replace("http","https")):e=a.httpsEnabled?"https://".concat(e):"http://".concat(e),e},hostEnv:"BROWSER"};e.exports=a},function(e,t,n){var r=n(109),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},function(e,t){e.exports={}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(73))},function(e,t,n){e.exports=n(251)},function(e,t,n){e.exports=n(458)},function(e,t,n){var r=n(208),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},function(e,t,n){e.exports=n(216)},function(e,t,n){var r=n(12);e.exports=r({}.isPrototypeOf)},function(e,t,n){var r=n(109),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(e,t,n){var r=n(14),i=n(111),o=n(30),a=n(130),s=n(97),c=n(209),l=i("wks"),u=r.Symbol,d=u&&u.for,p=c?u:u&&u.withoutSetter||a;e.exports=function(e){if(!o(l,e)||!s&&"string"!=typeof l[e]){var t="Symbol."+e;s&&o(u,e)?l[e]=u[e]:l[e]=c&&d?d(t):p(t)}return l[e]}},function(e,t,n){var r=n(155),i=n(365);function o(t){return e.exports=o="function"==typeof r&&"symbol"==typeof i?function(e){return typeof e}:function(e){return e&&"function"==typeof r&&e.constructor===r&&e!==r.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(13),i=n(30),o=n(136),a=n(39).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){e.exports=n(454)},function(e,t,n){var r=n(51),i=n(60),o=n(6),a=n(24),s=n(8),c=n(32),l=n(4),u=n(52),d=n(16),p=n(53),m=n(2),f=n(54),h=n(55),g=n(43),v=n(15),y=n(88),b=n(89),S=n(72);function x(e,t){var n=void 0!==b&&S(e)||e["@@iterator"];if(!n){if(c(e)||(n=function(e,t){var n;if(e){if("string"==typeof e)return w(e,t);var r=v(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?y(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?r-1:0),s=1;s2&&void 0!==arguments[2]?arguments[2]:{},r=this;r.message=e||n.message||"","object"===o(t)?(r.event=t,r.code="Other_Error"):void 0!==t&&(r.code=t),r.timetag=+new Date,void 0!==n&&(r.event=n),r.event&&(r.callFunc=r.event.callFunc||null,delete r.event.callFunc)}a.prototype=r(Error.prototype),a.prototype.name="NIMError";var s={201:"客户端版本不对, 需升级sdk",302:"用户名或密码错误, 请检查appKey和token是否有效, account和token是否匹配",403:"非法操作或没有权限",404:"对象(用户/群/聊天室)不存在",405:"参数长度过长",408:"客户端请求超时",414:"参数错误",415:"服务不可用/没有聊天室服务器可分配",416:"频率控制",417:"重复操作",422:"帐号被禁用",500:"服务器内部错误",501:"数据库操作失败",503:"服务器繁忙",508:"删除有效期过了",509:"已失效",7101:"被拉黑",700:"批量操作部分失败",801:"群人数达到上限",802:"没有权限",803:"群不存在或未发生变化",804:"用户不在群里面",805:"群类型不匹配",806:"创建群数量达到限制",807:"群成员状态不对",809:"已经在群里",811:"强推列表中帐号数量超限",812:"群被禁言",813:"因群数量限制,部分拉人成功",814:"禁止使用群组消息已读服务",815:"群管理员人数上限",816:"批量操作部分失败",997:"协议已失效",998:"解包错误",999:"打包错误",9102:"通道失效",9103:"已经在其他端接听/拒绝过这通电话",11001:"对方离线, 通话不可送达",13002:"聊天室状态异常",13003:"在黑名单中",13004:"在禁言名单中",13006:"聊天室处于整体禁言状态,只有管理员能发言",Connect_Failed:"无法建立连接, 请确保能 ping/telnet 到云信服务器; 如果是IE8/9, 请确保项目部署在 HTTPS 环境下",Error_Internet_Disconnected:"网断了",Error_Connection_is_not_Established:"连接未建立",Error_Connection_Socket_State_not_Match:"socket状态不对",Error_Timeout:"超时",Param_Error:"参数错误",No_File_Selected:"请选择文件",Wrong_File_Type:"文件类型错误",File_Too_Large:"文件过大",Cross_Origin_Iframe:"不能获取跨域Iframe的内容",Not_Support:"不支持",NO_DB:"无数据库",DB:"数据库错误",Still_In_Team:"还在群里",Session_Exist:"会话已存在",Session_Not_Exist:"会话不存在",Error_Unknown:"未知错误",Operation_Canceled:"操作取消",Sync_Error:"同步数据失败"},c=[200,406,808,810];i(c).call(c,(function(e){s[e]=null})),a.genError=function(e){var t=s[e];return void 0===t&&(t="操作失败"),null===t?null:new a(t,e)},a.multiInstance=function(e){return new a("不允许初始化多个实例","Not_Allow_Multi_Instance",e)},a.newNetworkError=function(e){var t="Error_Internet_Disconnected";return new a(s[t],t,e)},a.newConnectError=function(e){var t="Connect_Failed";return new a(s[t]||null,t,e)},a.newConnectionError=function(e){var t="Error_Connection_is_not_Established";return new a(s[t],t,e)},a.newSocketStateError=function(e){var t="Error_Connection_Socket_State_not_Match";return new a(s[t],t,e)},a.newTimeoutError=function(e){var t="Error_Timeout";return new a(s[t],t,e)},a.newFrequencyControlError=function(e){var t=new a(s[416],416,e);return t.from="local",t},a.newParamError=function(e,t){return new a(e||s.Param_Error,"Param_Error",t)},a.newNoFileError=function(e,t){var n="No_File_Selected";return new a(e||s[n],n,t)},a.newWrongFileTypeError=function(e,t){var n="Wrong_File_Type";return new a(e||s[n],n,t)},a.newFileTooLargeError=function(e,t){var n="File_Too_Large";return new a(e||s[n],n,t)},a.newCORSIframeError=function(e){var t="Cross_Origin_Iframe";return new a(s[t],t,e)},a.newSupportError=function(e,t,n){return new a("不支持"+e,"Not_Support_"+t,n)},a.newSupportDBError=function(e){return a.newSupportError("数据库","DB",e)},a.noDBError=function(e){return new a(s.NO_DB,"NO_DB",e)},a.newDBError=function(e){return new a(s.DB,"DB",e)},a.newUnknownError=function(e){var t="Error_Unknown";return new a(s[t],t,e)},a.stillInTeamError=function(e){var t="Still_In_Team";return new a(s[t],t,e)},a.sessionExist=function(e){var t="Session_Exist";return new a(s[t],t,e)},a.sessionNotExist=function(e){var t="Session_Not_Exist";return new a(s[t],t,e)},a.cancel=function(e){var t="Operation_Canceled";return new a(s[t],t,e)},a.syncError=function(e){return new a(s.Sync_Error,"Sync_Error",e)},a.customError=function(e,t){e=e||"Other_Error";var n="";return(t=t||{}).message||(n=s[e]||e),"object"!==o(e)?new a(n,e,t):new a(n,"Other_Error",void 0===t?e:t)},e.exports=a},function(e,t,n){var r=n(110),i=Object;e.exports=function(e){return i(r(e))}},function(e,t,n){e.exports=n(249)},function(e,t,n){var r=n(127),i=n(110);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(0),i={init:function(){i.deviceId=r.guid()}};i.init(),i.clientTypeMap={1:"Android",2:"iOS",4:"PC",8:"WindowsPhone",16:"Web",32:"Server",64:"Mac"},i.db={open:function(){}},i.rnfs=null,e.exports=i},function(e,t,n){var r=n(322);e.exports=function(e){return r(e.length)}},function(e,t,n){var r=n(34),i=n(20),o=n(36),a=n(81),s=n(235),c=n(46),l=n(19),u=n(236),d=n(139),p=n(237),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},h=f.prototype;e.exports=function(e,t,n){var g,v,y,b,S,x,w,T=n&&n.that,C=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),_=!(!n||!n.IS_ITERATOR),M=!(!n||!n.INTERRUPTED),A=r(t,T),R=function(e){return g&&p(g,"normal",e),new f(!0,e)},I=function(e){return C?(o(e),M?A(e[0],e[1],R):A(e[0],e[1])):M?A(e,R):A(e)};if(E)g=e.iterator;else if(_)g=e;else{if(!(v=d(e)))throw m(a(e)+" is not iterable");if(s(v)){for(y=0,b=c(e);b>y;y++)if((S=I(e[y]))&&l(h,S))return S;return new f(!1)}g=u(e,v)}for(x=E?e.next:g.next;!(w=i(x,g)).done;){try{S=I(w.value)}catch(e){p(g,"throw",e)}if("object"==typeof S&&S&&l(h,S))return S}return new f(!1)}},function(e,t,n){e.exports=n(563)},function(e,t){e.exports=!0},function(e,t,n){var r=n(67),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},function(e,t,n){var r=n(140),i=n(250);e.exports=function(e,t,n){return(t=i(t))in e?r(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){e.exports=n(255)},function(e,t,n){e.exports=n(481)},function(e,t,n){e.exports=n(484)},function(e,t,n){e.exports=n(487)},function(e,t,n){var r=n(258),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){var r=n(650)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r=n(288);function i(e,t,n,i,o,a,s){try{var c=e[a](s),l=c.value}catch(e){return void n(e)}c.done?t(l):r.resolve(l).then(i,o)}e.exports=function(e){return function(){var t=this,n=arguments;return new r((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(721);e.exports=function(e,t,n){return n?r(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)}},function(e,t,n){e.exports=n(585)},function(e,t,n){var r=n(27),i=n(39),o=n(80);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){(function(t){var r=n(15),i=n(24),o=n(7),a=n(141),s=n(2),c=n(8),l=n(4),u=n(122),d=n(3),p=n(88),m=n(89),f=n(72),h=n(32);function g(e,t){var n=void 0!==m&&f(e)||e["@@iterator"];if(!n){if(h(e)||(n=function(e,t){var n;if(e){if("string"==typeof e)return v(e,t);var i=r(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?p(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?v(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2?arguments[2]:void 0;for(var r in e)e.hasOwnProperty(r)&&t.call(n,r,e[r])}function F(e,t){$(t,(function(t,n){e[t]=n}))}var U,B=(U=0,function(){return""+U++});function z(e){return w(e)&&0===o(e).call(e,"{")&&a(e).call(e,"}")===e.length-1}function H(e,t,n){if(!e)return"";var r=[];return $(e,(function(e,t){E(t)||(_(t)?t=t.getTime():C(t)?t=t.join(","):O(t)&&(t=c(t)),n&&(t=encodeURIComponent(t)),r.push(encodeURIComponent(e)+"="+t))})),r.join(t||",")}var V,W=(V=/^([\w]+?:\/\/.*?(?=\/|$))/i,function(e){return V.test(e||"")?RegExp.$1.toLowerCase():""});function G(e){var t=b();return e.tagName&&"INPUT"===e.tagName.toUpperCase()||t.Blob&&e instanceof t.Blob}e.exports={o:{},emptyObj:{},f:function(){},emptyFunc:function(){},regBlank:/\s+/gi,regWhiteSpace:/\s+/gi,getGlobal:b,getClass:S,typeOf:x,isString:w,isNumber:T,isInt:function(e){return T(e)&&e%1==0},isBoolean:function(e){return"boolean"===x(e)},isArray:C,isFunction:E,isDate:_,isRegExp:function(e){return"regexp"===x(e)},isError:function(e){return"error"===x(e)},isnull:M,notnull:A,undef:R,notundef:I,exist:k,notexist:P,isObject:O,isEmpty:function(e){return P(e)||(w(e)||C(e))&&0===e.length},remove:function(e){e.parentNode&&e.parentNode.removeChild(e)},dataset:function(e,t,n){if(!k(n))return e.getAttribute("data-"+t);e.setAttribute("data-"+t,n)},addEventListener:N,on:j,removeEventListener:L,off:D,target:function(e){return e.target||e.srcElement},createIframe:function(e){if("undefined"!=typeof document){var t;if((e=e||{}).name)try{(t=document.createElement('')).frameBorder=0}catch(n){(t=document.createElement("iframe")).name=e.name}else t=document.createElement("iframe");e.visible||(t.style.display="none"),E(e.onload)&&j(t,"load",(function n(r){t.src&&(e.multi||D(t,"load",n),e.onload(r))})),(e.parent||document.body).appendChild(t);var n=e.src||"about:blank";return i((function(){t.src=n}),0),t}},html2node:function(e){if("undefined"!=typeof document){var t=document.createElement("div");t.innerHTML=e;var n,r,i=[];if(t.children)for(n=0,r=t.children.length;n1?t:i[0]}},forOwn:$,mixin:F,uniqueID:B,isJSON:z,parseJSON:function e(t){try{z(t)&&(t=JSON.parse(t)),O(t)&&$(t,(function(n,r){switch(x(r)){case"string":case"object":t[n]=e(r)}}))}catch(e){}return t},simpleClone:function(e){return y(e)},merge:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:",",n={};return s(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(t)).call(e,(function(e){var t=e.split("="),r=t.shift();r&&(n[decodeURIComponent(r)]=decodeURIComponent(t.join("=")))})),n},object2string:H,genUrlSep:function(e){return o(e).call(e,"?")<0?"?":"&"},object2query:function(e){return H(e,"&",!0)},url2origin:W,isFileInput:G,getKeys:function(e,t){var n=l(e);return t&&u(n).call(n,(function(t,n){var r=G(e[t]);return r===G(e[n])?0:r?1:-1})),n},_get:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=e,o=g(t.replace(/\[(\d+)\]/g,".$1").split("."));try{for(o.s();!(n=o.n()).done;){var a=n.value;if(void 0===(i=Object(i)[a]))return r}}catch(e){o.e(e)}finally{o.f()}return i},getPromiseWithAbort:function(e){var t={},n=new d((function(e,n){t.abort=n}));return t.promise=d.race([e,n]),t}}}).call(this,n(73))},function(e,t,n){var r=n(33),i=n(718),o=r("Map");e.exports={Map:o,set:i("set",2),get:i("get",1),has:i("has",1),remove:i("delete",1),proto:o.prototype}},function(e,t,n){(function(t){var r=n(15),i=n(7),o=n(303),a=n(48),s=n(22),c=function(){var e="object"===(void 0===t?"undefined":s(t))?t:window,n=Math.pow(2,53)-1,c=/\bOpera/,l=Object.prototype,u=l.hasOwnProperty,d=l.toString;function p(e){return(e=String(e)).charAt(0).toUpperCase()+r(e).call(e,1)}function m(e){return e=y(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:p(e)}function f(e,t){for(var n in e)u.call(e,n)&&t(e[n],n,e)}function h(e){var t;return null==e?p(e):r(t=d.call(e)).call(t,8,-1)}function g(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function v(e,t){var r=null;return function(e,t){var r=-1,i=e?e.length:0;if("number"==typeof i&&i>-1&&i<=n)for(;++r3?"WebKit":/\bOpera\b/.test(W)&&(/\bOPR\b/.test(n)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(n)&&!/^(?:Trident|EdgeHTML)$/.test(V)&&"WebKit"||!V&&/\bMSIE\b/i.test(n)&&("Mac OS"==X?"Tasman":"Trident")||"WebKit"==V&&/\bPlayStation\b(?! Vita\b)/i.test(W)&&"NetFront")&&(V=[S]),"IE"==W&&(S=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(n)||0)[1])?(W+=" Mobile",X="Windows Phone "+(/\+$/.test(S)?S:S+".x"),U.unshift("desktop mode")):/\bWPDesktop\b/i.test(n)?(W="IE Mobile",X="Windows Phone 8.x",U.unshift("desktop mode"),H||(H=(/\brv:([\d.]+)/.exec(n)||0)[1])):"IE"!=W&&"Trident"==V&&(S=/\brv:([\d.]+)/.exec(n))&&(W&&U.push("identifying as "+W+(H?" "+H:"")),W="IE",H=S[1]),z){if(T="global",C=null!=(w=l)?s(w[T]):"number",/^(?:boolean|number|string|undefined)$/.test(C)||"object"==C&&!w[T])h(S=l.runtime)==A?(W="Adobe AIR",X=S.flash.system.Capabilities.os):h(S=l.phantom)==k?(W="PhantomJS",H=(S=S.version||null)&&S.major+"."+S.minor+"."+S.patch):"number"==typeof L.documentMode&&(S=/\bTrident\/(\d+)/i.exec(n))?(H=[H,L.documentMode],(S=+S[1]+4)!=H[1]&&(U.push("IE "+H[1]+" mode"),V&&(V[1]=""),H[1]=S),H="IE"==W?String(H[1].toFixed(1)):H[0]):"number"==typeof L.documentMode&&/^(?:Chrome|Firefox)\b/.test(W)&&(U.push("masking as "+W+" "+H),W="IE",H="11.0",V=["Trident"],X="Windows");else if(P&&(F=(S=P.lang.System).getProperty("os.arch"),X=X||S.getProperty("os.name")+" "+S.getProperty("os.version")),O){try{H=l.require("ringo/engine").version.join("."),W="RingoJS"}catch(e){(S=l.system)&&S.global.system==l.system&&(W="Narwhal",X||(X=S[0].os||null))}W||(W="Rhino")}else"object"===s(l.process)&&!l.process.browser&&(S=l.process)&&("object"===s(S.versions)&&("string"==typeof S.versions.electron?(U.push("Node "+S.versions.node),W="Electron",H=S.versions.electron):"string"==typeof S.versions.nw&&(U.push("Chromium "+H,"Node "+S.versions.node),W="NW.js",H=S.versions.nw)),W||(W="Node.js",F=S.arch,X=S.platform,H=(H=/[\d.]+/.exec(S.version))?H[0]:null));X=X&&m(X)}if(H&&(S=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(H)||/(?:alpha|beta)(?: ?\d)?/i.exec(n+";"+(z&&p.appMinorVersion))||/\bMinefield\b/i.test(n)&&"a")&&(B=/b/i.test(S)?"beta":"alpha",H=H.replace(RegExp(S+"\\+?$"),"")+("beta"==B?j:N)+(/\d+\+?/.exec(S)||"")),"Fennec"==W||"Firefox"==W&&/\b(?:Android|Firefox OS)\b/.test(X))W="Firefox Mobile";else if("Maxthon"==W&&H)H=H.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(G))"Xbox 360"==G&&(X=null),"Xbox 360"==G&&/\bIEMobile\b/.test(n)&&U.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(W)&&(!W||G||/Browser|Mobi/.test(W))||"Windows CE"!=X&&!/Mobi/i.test(n))if("IE"==W&&z)try{null===l.external&&U.unshift("platform preview")}catch(e){U.unshift("embedded")}else(/\bBlackBerry\b/.test(G)||/\bBB10\b/.test(n))&&(S=(RegExp(G.replace(/ +/g," *")+"/([.\\d]+)","i").exec(n)||0)[1]||H)?(X=((S=[S,/BB10/.test(n)])[1]?(G=null,q="BlackBerry"):"Device Software")+" "+S[0],H=null):this!=f&&"Wii"!=G&&(z&&D||/Opera/.test(W)&&/\b(?:MSIE|Firefox)\b/i.test(n)||"Firefox"==W&&/\bOS X (?:\d+\.){2,}/.test(X)||"IE"==W&&(X&&!/^Win/.test(X)&&H>5.5||/\bWindows XP\b/.test(X)&&H>8||8==H&&!/\bTrident\b/.test(n)))&&!c.test(S=t.call(f,n.replace(c,"")+";"))&&S.name&&(S="ing as "+S.name+((S=S.version)?" "+S:""),c.test(W)?(/\bIE\b/.test(S)&&"Mac OS"==X&&(X=null),S="identify"+S):(S="mask"+S,W=$?m($.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(S)&&(X=null),z||(H=null)),V=["Presto"],U.push(S));else W+=" Mobile";(S=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(n)||0)[1])&&(S=[o(S.replace(/\.(\d)$/,".0$1")),S],"Safari"==W&&"+"==r(E=S[1]).call(E,-1)?(W="WebKit Nightly",B="alpha",H=r(_=S[1]).call(_,0,-1)):H!=S[1]&&H!=(S[2]=(/\bSafari\/([\d.]+\+?)/i.exec(n)||0)[1])||(H=null),S[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(n)||0)[1],537.36==S[0]&&537.36==S[2]&&o(S[1])>=28&&"WebKit"==V&&(V=["Blink"]),z&&(M||S[1])?(V&&(V[1]="like Chrome"),S=S[1]||((S=S[0])<530?1:S<532?2:S<532.05?3:S<533?4:S<534.03?5:S<534.07?6:S<534.1?7:S<534.13?8:S<534.16?9:S<534.24?10:S<534.3?11:S<535.01?12:S<535.02?"13+":S<535.07?15:S<535.11?16:S<535.19?17:S<536.05?18:S<536.1?19:S<537.01?20:S<537.11?"21+":S<537.13?23:S<537.18?24:S<537.24?25:S<537.36?26:"Blink"!=V?"27":"28")):(V&&(V[1]="like Safari"),S=(S=S[0])<400?1:S<500?2:S<526?3:S<533?4:S<534?"4+":S<535?5:S<537?6:S<538?7:S<601?8:"8"),V&&(V[1]+=" "+(S+="number"==typeof S?".x":/[.+]/.test(S)?"":"+")),"Safari"==W&&(!H||a(H)>45)&&(H=S));"Opera"==W&&(S=/\bzbov|zvav$/.exec(X))?(W+=" ",U.unshift("desktop mode"),"zvav"==S?(W+="Mini",H=null):W+="Mobile",X=X.replace(RegExp(" *"+S+"$"),"")):"Safari"==W&&/\bChrome\b/.exec(V&&V[1])&&(U.unshift("desktop mode"),W="Chrome Mobile",H=null,/\bOS X\b/.test(X)?(q="Apple",X="iOS 4.3+"):X=null),H&&0==i(H).call(H,S=/[\d.]+$/.exec(X))&&i(n).call(n,"/"+S+"-")>-1&&(X=y(X.replace(S,""))),V&&!/\b(?:Avant|Nook)\b/.test(W)&&(/Browser|Lunascape|Maxthon/.test(W)||"Safari"!=W&&/^iOS/.test(X)&&/\bSafari\b/.test(V[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(W)&&V[1])&&(S=V[V.length-1])&&U.push(S),U.length&&(U=["("+U.join("; ")+")"]),q&&G&&i(G).call(G,q)<0&&U.push("on "+q),G&&U.push((/^on /.test(U[U.length-1])?"":"on ")+G),X&&(S=/ ([\d.+]+)$/.exec(X),x=S&&"/"==X.charAt(X.length-S[0].length-1),X={architecture:32,family:S&&!x?X.replace(S[0],""):X,version:S?S[1]:null,toString:function(){var e=this.version;return this.family+(e&&!x?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(S=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(F))&&!/\bi686\b/i.test(F)?(X&&(X.architecture=64,X.family=X.family.replace(RegExp(" *"+S),"")),W&&(/\bWOW64\b/i.test(n)||z&&/\w(?:86|32)$/.test(p.cpuClass||p.platform)&&!/\bWin64; x64\b/i.test(n))&&U.unshift("32-bit")):X&&/^OS X/.test(X.family)&&"Chrome"==W&&o(H)>=39&&(X.architecture=64),n||(n=null);var Y={};return Y.description=n,Y.layout=V&&V[0],Y.manufacturer=q,Y.name=W,Y.prerelease=B,Y.product=G,Y.ua=n,Y.version=W&&H,Y.os=X||{architecture:null,family:null,version:null,toString:function(){return"null"}},Y.parse=t,Y.toString=function(){return this.description||""},Y.version&&U.unshift(H),Y.name&&U.unshift(W),X&&W&&(X!=String(X).split(" ")[0]||X!=W.split(" ")[0]&&!G)&&U.push(G?"("+X+")":"on "+X),U.length&&(Y.description=U.join(" ")),Y}()}();e.exports=c}).call(this,n(73))},function(e,t,n){var r=n(12),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},function(e,t,n){var r=n(33);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(165),i=n(17),o=n(65),a=n(21)("toStringTag"),s=Object,c="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:c?o(t):"Object"==(r=o(t))&&i(t.callee)?"Arguments":r}},function(e,t,n){var r=n(61);e.exports=function(e,t,n,i){return i&&i.enumerable?e[t]=n:r(e,t,n),e}},function(e,t,n){n(86);var r=n(356),i=n(14),o=n(67),a=n(61),s=n(103),c=n(21)("toStringTag");for(var l in r){var u=i[l],d=u&&u.prototype;d&&o(d)!==c&&a(d,c,l),s[l]=s.Array}},function(e,t,n){var r=n(31),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){e.exports=n(427)},function(e,t,n){e.exports=n(475)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(34),i=n(12),o=n(127),a=n(42),s=n(46),c=n(164),l=i([].push),u=function(e){var t=1==e,n=2==e,i=3==e,u=4==e,d=6==e,p=7==e,m=5==e||d;return function(f,h,g,v){for(var y,b,S=a(f),x=o(S),w=r(h,g),T=s(x),C=0,E=v||c,_=t?E(f,T):n||p?E(f,0):void 0;T>C;C++)if((m||C in x)&&(b=w(y=x[C],C,S),e))if(t)_[C]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return C;case 2:l(_,y)}else switch(e){case 4:return!1;case 7:l(_,y)}return d?-1:i||u?u:_}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},function(e,t,n){var r=n(771);r.fn=r.prototype,e.exports=r,n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781),n(782),n(783)},function(e,t,n){var r=n(22),i=n(4),o=n(8),a=n(16),s=n(2),c=n(9),l=n(15),u=n(88),d=n(89),p=n(72),m=n(32);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?this.subType=+e.subType:h.onParamError("subType只能是大于0的整数","msg::Message"));var t=e.replyMsg;t&&t.idServer&&t.from&&t.to&&t.time&&(this.replyMsgFromAccount=t.from,this.replyMsgToAccount=t.to,this.replyMsgTime=t.time,this.replyMsgIdServer=t.idServer,this.replyMsgIdClient=t.idClient,t.threadMsgFromAccount&&t.threadMsgIdServer&&t.threadMsgTime&&t.threadMsgToAccount?(this.threadMsgFromAccount=t.threadMsgFromAccount,this.threadMsgToAccount=t.threadMsgToAccount,this.threadMsgTime=t.threadMsgTime,this.threadMsgIdServer=t.threadMsgIdServer,this.threadMsgIdClient=t.threadMsgIdClient):(this.threadMsgFromAccount=t.from,this.threadMsgToAccount=t.to,this.threadMsgTime=t.time,this.threadMsgIdServer=t.idServer,this.threadMsgIdClient=t.idClient)),v(e.text)&&(this.body=""+e.text),v(e.custom)&&("object"===r(e.custom)?this.custom=o(e.custom):this.custom=""+e.custom),v(e.body)&&(this.body=""+e.body),v(e.pushContent)&&(this.pushContent=""+e.pushContent),v(e.pushPayload)&&(this.pushPayload=""+e.pushPayload);var n=e.apns;if(v(n)&&"team"===e.scene){var i=n.accounts;v(i)&&h.verifyParamType("apns.accounts",i,"array","msg::Message"),this.apnsAccounts=i?o(i):"#%@all@%#",this.apnsContent=n.content||e.pushContent||"",h.verifyBooleanWithDefault(n,"forcePush",!0,"options.apns","msg::Message"),this.apnsForcePush=n.forcePush?1:0}var a=e.robotInfo;v(a)&&("team"===e.scene&&h.verifyOptions(e.robotInfo,"account","msg::Message::robotInfo scene === team"),a.function&&(this.robotInfoFunction=a.function),a.topic&&(this.robotInfoTopic=a.topic),a.customContent&&(this.robotInfoCustomContent=a.customContent),a.account&&(this.robotInfoAccount=a.account)),v(e.isHistoryable)&&(this.isHistoryable=e.isHistoryable?1:0),v(e.isRoamingable)&&(this.isRoamingable=e.isRoamingable?1:0),v(e.isSyncable)&&(this.isSyncable=e.isSyncable?1:0),v(e.cc)&&(this.cc=e.cc?1:0),v(e.env)&&(this.env=e.env),v(e.isPushable)&&(this.isPushable=e.isPushable?1:0),v(e.isOfflinable)&&(this.isOfflinable=e.isOfflinable?1:0),v(e.isUnreadable)&&(this.isUnreadable=e.isUnreadable?1:0),v(e.needPushNick)&&(this.needPushNick=e.needPushNick?1:0),v(e.needMsgReceipt)&&(this.needMsgReceipt=e.needMsgReceipt?1:0),v(e.yidunEnable)&&(this.yidunEnable=e.yidunEnable?1:0),this.needUpdateSession=!1===e.needUpdateSession?0:1,v(e.antiSpamUsingYidun)&&(this.antiSpamUsingYidun=e.antiSpamUsingYidun?1:0),v(e.clientAntiSpam)&&(this.clientAntiSpam=e.clientAntiSpam?1:0),v(e.antiSpamContent)&&("object"===r(e.antiSpamContent)?this.antiSpamContent=o(e.antiSpamContent):this.antiSpamContent=""+e.antiSpamContent),v(e.antiSpamBusinessId)&&("object"===r(e.antiSpamBusinessId)?this.antiSpamBusinessId=o(e.antiSpamBusinessId):this.antiSpamBusinessId=""+e.antiSpamBusinessId),v(e.yidunAntiCheating)&&(this.yidunAntiCheating=e.yidunAntiCheating),v(e.yidunAntiSpamExt)&&(this.yidunAntiSpamExt=e.yidunAntiSpamExt)}h.merge(_.prototype,S.prototype),_.prototype.getScene=function(){return w[this.scene]},_.getType=S.getType,_.setFlow=S.setFlow,_.reverse=function(e){var t,n=w[e.scene];if(t="1"===e.delete?{delete:!0,scene:n||e.scene,from:e.from,time:+e.time,to:""+e.to}:{scene:n||e.scene,from:e.from,fromNick:e.fromNick,fromClientType:b.reverseType(e.fromClientType),fromDeviceId:e.fromDeviceId,to:""+e.to,time:+e.time,type:_.getType(e),text:y(e.body)?e.body:e.text||"",isHistoryable:g(e.isHistoryable)||1==+e.isHistoryable,isRoamingable:g(e.isRoamingable)||1==+e.isRoamingable,isSyncable:g(e.isSyncable)||1==+e.isSyncable,cc:g(e.cc)||1==+e.cc,isPushable:g(e.isPushable)||1==+e.isPushable,isOfflinable:g(e.isOfflinable)||1==+e.isOfflinable,isUnreadable:g(e.isUnreadable)||1==+e.isUnreadable,isReplyMsg:g(e.isReplyMsg)||1==+e.isReplyMsg,needPushNick:g(e.needPushNick)||1==+e.needPushNick,needMsgReceipt:1==+e.needMsgReceipt,isLocal:!1},e.isInBlackList&&(t.isInBlackList=1==+e.isInBlackList,t.isInBlackList&&(e.status="fail")),v(e.isMuted)&&(t.isMuted=1==+e.isMuted),v(e.resend)&&(t.resend=1==+e.resend),v(e.idClient)&&(t.idClient=e.idClient),v(e.idServer)&&(t.idServer=""+e.idServer),v(e.userUpdateTime)&&(t.userUpdateTime=+e.userUpdateTime),v(e.custom)&&(t.custom=e.custom),v(e.callbackExt)&&(t.callbackExt=e.callbackExt),v(e.subType)&&(t.subType=+e.subType),v(e.pushContent)&&(t.pushContent=e.pushContent),v(e.pushPayload)&&(t.pushPayload=e.pushPayload),v(e.tempTeamMemberCount)&&(t.tempTeamMemberCount=+e.tempTeamMemberCount),v(e.yidunAntiSpamRes)&&(t.yidunAntiSpamRes=e.yidunAntiSpamRes),v(e.apnsAccounts)){if(t.apns={},"#%@all@%#"!==e.apnsAccounts){var r=e.apnsAccounts;try{t.apns.accounts=JSON.parse(r)}catch(e){t.apns.accounts=[]}}t.apns.content=e.apnsContent||"",t.apns.forcePush=1==+e.apnsForcePush}if(v(e.robotInfoFunction)&&(t.robotInfo=t.robotInfo||{},e.robotInfoFunction&&(t.robotInfo.function=e.robotInfoFunction)),v(e.robotInfoCustomContent)&&(t.robotInfo=t.robotInfo||{},e.robotInfoCustomContent&&(t.robotInfo.customContent=e.robotInfoCustomContent)),v(e.robotInfoTopic)&&(t.robotInfo=t.robotInfo||{},e.robotInfoTopic&&(t.robotInfo.topic=e.robotInfoTopic)),v(e.robotInfoAccount)&&(t.robotInfo=t.robotInfo||{},e.robotInfoAccount&&(t.robotInfo.account=e.robotInfoAccount)),v(e.needUpdateSession)&&(t.needUpdateSession=1==+e.needUpdateSession),t.status=e.status||"success",v(a(e))&&(t.filter=a(e)),e.replyMsgIdServer&&e.threadMsgIdServer){var i=["replyMsgFromAccount","replyMsgToAccount","replyMsgTime","replyMsgIdServer","replyMsgIdClient","threadMsgFromAccount","threadMsgToAccount","threadMsgTime","threadMsgIdServer","threadMsgIdClient"];s(i).call(i,(function(n){t[n]=e[n]})),t.replyMsgTime=+t.replyMsgTime,t.threadMsgTime=+t.threadMsgTime}return t},_.setExtra=function(e,t){e.target=_.getMsgTarget(e,t),e.sessionId=e.scene+"-"+e.target,S.setFlow(e,t)},_.getMsgTarget=function(e,t){return"p2p"===e.scene?e.to===t?e.from:e.to:"team"===e.scene||"superTeam"===e.scene?e.to:void 0},_.deduplication=function(e){var t,n,r={},o=function(e,t){var n=void 0!==d&&p(e)||e["@@iterator"];if(!n){if(m(e)||(n=function(e,t){var n;if(e){if("string"==typeof e)return f(e,t);var r=l(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=r[a.idClient];s&&s.time>a.time||(r[a.idClient]=a)}}catch(e){o.e(e)}finally{o.f()}return c(t=i(r)).call(t,(function(e){return r[e]}))},_.sortMsgs=function(e){return e=l(e).call(e,0),h.sortObjArray(e,{sortPath:"time"}),e},_.getLastMsg=function(e){return(e=_.sortMsgs(e))[e.length-1]},_.getLastNotIgnoredMsg=function(e){for(var t=null,n=(e=_.sortMsgs(e)).length-1;n>=0;n--)if(!(t=e[n]).ignore)return t;return null},_.getMaxTimetag=function(e){return _.getLastMsg(e).time},_.validScenes=T,_.validTypes=E,_.sceneMap=x,_.sceneReverseMap=w,e.exports=_},function(e,t,n){var r=n(22),i=n(18),o=n(32),a=n(2),s=n(378),c=n(7),l=n(4),u=n(8),d=n(3),p=n(173),m=n(0),f=m.notundef,h=n(558),g=n(11),v=(n(186),n(45)),y=n(584).wrapSafeCallback,b=n(25).reportAPI,S=n(156);function x(){}var w={};x.getInstance=function(e){e=C(e),m.verifyOptions(e,"account","api::Base.getInstance");var t=this.genInstanceName(e),n=w[t];return n?x.updateInstance(n,e):n=w[t]=new this(e),n},x.updateInstance=function(e,t){e.setOptions(t),e.connect()};var T=x.fn=x.prototype=i(new p),C=function(e){return e.nosSurvivalTime?(m.verifyParamType("nosSurvivalTime",e.nosSurvivalTime,"number","api::Base.getInstance"),m.verifyParamMin("nosSurvivalTime",e.nosSurvivalTime,86400,"api::Base.getInstance")):e.nosSurvivalTime=1/0,e};T.updatePrivateConf=function(e){if(b({instance:this,className:"ApiBaseFn",funcName:"updatePrivateConf",hasCallback:!1}),e&&"object"===r(e.privateConf)){var t=e.privateConf;"string"==typeof t.lbs_web&&(e.lbsUrl=t.lbs_web),"boolean"==typeof t.link_ssl_web&&(e.secure=t.link_ssl_web),"boolean"==typeof t.https_enabled&&(e.httpsEnabled=t.https_enabled),e.uploadUrl=t.nos_uploader_web?t.nos_uploader_web:null,e.chunkUploadUrl=t.nos_uploader_web?t.nos_uploader_web:null,e.replaceUrl=t.nos_downloader?t.nos_downloader:null,e.downloadUrl=t.nos_accelerate?t.nos_accelerate:null,e.downloadHost=t.nos_accelerate_host?t.nos_accelerate_host:null,e.downloadHostList=t.nos_accelerate_host_list||[],e.downloadHost&&e.downloadHostList.push(e.downloadHost),e.nosCdnEnable=!1!==t.nos_cdn_enable,e.ntServerAddress=t.nt_server||null,e.kibanaServer=t.kibana_server,e.statisticServer=t.statistic_server,e.reportGlobalServer=t.report_global_server,e.ipVersion=t.ip_protocol_version||e.ipVersion,e.defaultLink=t.link_web||e.defaultLink,e.ipv6DefaultLink=t.link_ipv6_web||e.ipv6DefaultLink,"string"==typeof t.nos_lbs?e.nosLbsUrls=[t.nos_lbs]:e.nosLbsUrls=[],o(t.nos_edge_list)&&(e.edgeList=t.nos_edge_list)}return null===e.ntServerAddress||""===e.ntServerAddress?g.ntServerAddress=null:g.ntServerAddress=e.ntServerAddress,g.uploadUrl=e.uploadUrl||g.uploadUrl,g.chunkUploadUrl=e.chunkUploadUrl||g.chunkUploadUrl,g.downloadUrl=e.downloadUrl||g.downloadUrl,g.downloadHost=e.downloadHost||g.downloadHost,g.downloadHostList=e.downloadHostList&&e.downloadHostList.length>0?e.downloadHostList:g.downloadHostList,g.nosCdnEnable=!1!==e.nosCdnEnable,g.replaceUrl=e.replaceUrl||g.replaceUrl,g.httpsEnabled=e.httpsEnabled||g.httpsEnabled,e.probe_ipv4_url&&(g.ipProbeAddr.ipv4=e.probe_ipv4_url),e.probe_ipv6_url&&(g.ipProbeAddr.ipv6=e.probe_ipv6_url),e},T.init=function(e){m.verifyOptions(e,"account","api::Base.init"),e=this.updatePrivateConf(e),m.verifyBooleanWithDefault(e,"exifOrientation",!0,"","api::Base.init"),e.lbsBackup=void 0===e.lbsBackup||e.lbsBackup;var t=this.account=e.account=e.account+"",n=e.constructor.genInstanceName(e),r=w[n];if(e._disableSingleton&&(r=null),r)return x.updateInstance(r,e),r;this.logger=e.logger=new h({debug:e.debug,logFunc:e.logFunc,prefix:this.subType,dbLog:!1!==e.dbLog,account:e.account,expire:e.expire,logLevel:e.logLevel}),this.options=y(e,this),e.api=this;var i=this.protocol=new e.Protocol(e);return i.name="Protocol-"+n,i.account=t,i.api=this,i.message=this.message=new e.Message({account:t}),this.reporter=i.reporter,this.statusProtector=i.statusProtector,this.reporterHook=i.reporterHook,this.abtInfo={},("boolean"==typeof m.get(e,"privateConf.isABTestEnable")?e.privateConf.isABTestEnable:g.privateConf.isABTestEnable)&&this.abTestConfigRequset(),this.name=n,w[n]=this,this},T.destroy=function(e){var t=this;(e=e||{}).done=b({instance:this,className:"ApiBaseFn",funcName:"destroy",done:e.done});var n=this;if(!n.__beginDestroy){var i;n.__beginDestroy=!0,e=e||{};var o,u=this.name;if(this.logger.warn("destroy::start"),!u)return this.logger&&this.logger.warn&&this.logger.warn("destroy::no instanceName"),void(n.__beginDestroy=void 0);this.protocol&&(i=this.protocol.connectTimer),this.protocol&&this.protocol.resetPush&&this.protocol.resetPush(),this.eventNames&&"function"==typeof this.eventNames&&a(o=this.eventNames()).call(o,(function(e){delete t._events[e]})),this.disconnect({done:function(t){var o,d,p;n.logger.warn("ApiBase::destroy: instance destroyed ...\n\n"),n.__beginDestroy=void 0,n.reporter.destroy(),n.statusProtector.destroy(),n.reporterHook.destroy(),a(o=s(n.options)).call(o,(function(e){0===c(e).call(e,"on")&&(n.options[e]=function(){},n.protocol.options[e]=function(){},n.protocol.api.options[e]=function(){})})),n.logger.destroy(),"object"===r(n.protocol.sessionSet)&&a(d=l(n.protocol.sessionSet)).call(d,(function(e){n.protocol.sessionSet[e].unreadMsgs=[],n.protocol.sessionSet[e]=void 0})),n.protocol.syncResult={},n.db&&n.db.close();var m=n.protocol;a(p=s(n)).call(p,(function(e){n[e]=void 0})),w&&(w[u]=null,clearTimeout(i)),m&&(m.__destroyed=!0),e.done instanceof Function&&e.done(t)}})}},T.setOptions=function(e){var t=S(e);t=y(t,this),this.protocol.setOptions(t)},T.abTestConfigRequset=function(){var e=this,t=e.options.abTestUrl||"https://abt-online.netease.im/v1/api/abt/client/getExperimentInfo",n={projectKey:"im1_sdk_abtest_web",appKey:e.options.appKey,osType:"Web",sdkVersion:e.info.version,deviceId:v.deviceId},r=u({clientInfo:n});this.protocol.adaptersRequest(t,{method:"POST",timeout:5e3,headers:{"Content-Type":"application/json"},data:r,onload:function(t){var n=JSON.parse(t);e.abtInfo=n.data.abtInfo||{},e.logger&&e.logger.info("abTestConfigRequset::success",e.abtInfo)},onerror:function(){e.logger&&e.logger.info("abTestConfigRequset::fail")}},{exception_service:7})},T.processCallback=function(e,t){E(e,t)},T.processCallbackPromise=function(e,t){return new d((function(n,r){E(e,t,!0,n,r)}))};var E=function(e,t,n,r,i){var o="api::processCallback";n&&(o="api::processCallbackPromise"),m.verifyCallback(e,"done",o),e.callback=function(a,s,c){var l=e.callback.options;if(s=s||l,t&&(s=l),m.isFunction(e.cbaop)){var u=e.cbaop(a,s);f(u)&&(s=u)}var d=e.done;m.isObject(s)&&(delete s.done,delete s.cb,delete s.callback),n?a?i({message:"生成接口回调错误",callFunc:o,event:a}):r(s):d(a,s,c)},e.callback.options=m.copy(e)};T.processPs=function(e){m.notexist(e.ps)&&(e.ps=""),m.verifyArrayMax("ps",e.ps,5e3)},T.processCustom=function(e){m.notexist(e.custom)&&(e.custom="")},T.sendCmd=function(){this.protocol.sendCmd.apply(this.protocol,arguments)},T.sendCmdWithResp=function(e,t,n){this.sendCmd(e,t,(function(e,t,r){m.isFunction(n)&&(e?n(e,t):n(null,r))}))},T.cbAndSendCmd=function(e,t){var n=this.processCallbackPromise(t);return this.sendCmd(e,t),n},T.sendCmdUsePromise=function(e,t){var n=this,r=b({instance:this,className:"ApiBaseFn",funcName:e,hasCallback:!0});return new d((function(i,o){n.sendCmd(e,t,(function(e,t,n){if(e)"function"==typeof r&&r(e),o(e);else{var a=m.merge({},t,n);"function"==typeof r&&r(void 0),i(a)}}))}))},x.use=function(e,t){e&&e.install&&m.isFunction(e.install)&&e.install(this,t)},x.rmAllInstances=function(){for(var e in w)w[e].destroy();w={}},T.logout=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.callback=b({instance:this,className:"ApiBaseFn",funcName:"logout",done:e.callback}),e=e||{},this.protocol.shouldReconnect=!1,this.protocol.doLogout=!0,this.processCallback(e),this.sendCmd("logout",e,e.callback),this.protocol.statusProtector.emit("auth/loginLifeCycleLogout")},e.exports=x,n(588),n(589),n(631),n(632),n(642),n(646)},function(e,t,n){var r=n(90),i=n(32),o=n(4),a=n(16),s=n(158),c=n(7),l=n(71),u=n(6),d=n(2),p=n(8),m=n(60),f=n(24),h=n(26),g=n(0),v=g.undef,y=n(11),b=n(41),S=n(157),x=S.StatusProtector,w=(S.V2NIMLoginStatus,n(107)),T=w.ReporterHook,C=w.EMSyncType,E=n(647),_=n(648),M=n(649);function A(e){g.undef(e.secure)&&(e.secure=!0),this.options=e,this.keepNosSafeUrl=this.options.keepNosSafeUrl||!1;var t=e.defaultLink||e.defaultLinkUrl;g.notundef(t)&&g.isString(t)&&(y.optionDefaultLinkUrl=r(t).call(t)),g.notundef(e.ipv6DefaultLink)&&g.isString(e.ipv6DefaultLink)&&(y.optionIpv6DefaultLinkUrl=e.ipv6DefaultLink),"number"==typeof e.heartbeatInterval&&(y.heartbeatInterval=e.heartbeatInterval),i(e.nosLbsUrls)&&(y.nosLbsUrls=e.nosLbsUrls);var n=this.options.socketConcurrent;n="number"==typeof n&&n>=1&&n<=3?n:1,this.options.socketConcurrent=n,void 0!==this.options.rollbackDelMsgUnread&&"boolean"==typeof this.options.rollbackDelMsgUnread||(this.options.rollbackDelMsgUnread=!0),this.init(),this.connect()}var R=A.fn=A.prototype;R.init=function(){var e=this;this.logger=this.options.logger,this.getNosOriginUrlReqNum=0,this.checkNosReqNum=0,this.timerMap={},this.cmdCallbackMap={},this.cmdContentMap={},this.initConnect(),this.reset(),this.statusProtector=new x(this),this.reporterHook=new T(this,this.options.reporterHookConfig),this.reporterHookLinkKeep=new E(this),this.promiseAbortManager=new _,this.imsocket=new M(this,{socketConcurrent:this.options.socketConcurrent}),this.statusProtector.on("auth/loginLifeCycleLogout",(function(){e.promiseAbortManager.clear()})),this.statusProtector.on("auth/loginLifeCycleLoginSucc",(function(){e.reporterHook.reset(),e.reporterHook.setOriginTimetick()}))},R.reset=function(){v(this.options.thumbnailToStatic)&&(this.options.thumbnailToStatic=!0),this.resetConnect()},R.setOptions=function(e){var t=this.options,n=o(t),r=o(e),i=["onconnect","onerror","onwillreconnect","ondisconnect","onloginportschange","onmyinfo","onblacklist","onmutelist","onfriends","onusers","onrobots","onteams","onSuperTeams","onsessions","onSessionsWithMoreRoaming","onStickTopSessions","onroamingmsgs","onofflinemsgs","onofflinefiltermsgs","onroamingsysmsgs","onofflinesysmsgs","onofflinefiltersysmsgs","onofflinecustomsysmsgs","onofflinefiltercustomsysmsgs","onbroadcastmsg","onbroadcastmsgs","onsysmsgunread","onsyncdone","onteammembers","onsyncteammembersdone","onsyncsuperteammembersdone","onmsg","onsysmsg","oncustomsysmsg","onupdatemyinfo","onupdateuser","onSyncUpdateServerSession","onUpdateSuperTeamMember","onMySuperTeamMembers","onCreateSuperTeam","onUpdateSuperTeam","onAddSuperTeamMembers","onRemoveSuperTeamMembers","onUpdateSuperTeamManagers","onDismissSuperTeam","onTransferSuperTeam","onUpdateSuperTeamMembersMute","onupdateteammember","onMyTeamMembers","onMsgReceipts","onCreateTeam","onUpdateTeam","onAddTeamMembers","onRemoveTeamMembers","onUpdateTeamManagers","onDismissTeam","onTransferTeam","onUpdateTeamMembersMute","onTeamMsgReceipt","onupdatesession","onQuickComment","onDeleteQuickComment","onPinMsgChange","onupdatesysmsgunread","onupdatesysmsg","onsynccreateteam","onsyncsupercreateteam","onsyncmarkinblacklist","onsyncmarkinmutelist","onsyncfriendaction","shouldIgnoreNotification","shouldIgnoreMsg","onDeleteMsgSelf","shouldCountNotifyUnread","onPushNotificationMultiportConfig","onPushNotificationMultiportConfigUpdate","onpushevents"],u=a(r).call(r,(function(e){return s(i).call(i,e)})),d=c(n).call(n,"account");g.verifyCallback(e,u,"protocol::IMProtocol"),this.logger.info("setOptions::",g.omitAsString(e,["appKey","token","loginExt","customTag"])),-1!==d&&l(n).call(n,d,1),e=g.filterObj(e,n),this.options=g.merge(t,e),this.reset()},R.sendCmd=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=this;i.heartbeat();var a,s=e,c=(e=i.parser.createCmd(e,n)).SER;n=n||{},i.cmdContentMap[c]=n,n.single&&(delete n.single,1===(a=o(n)).length&&(i.cmdContentMap[c]=n[a[0]])),n.__exceptionInfo={target:u(t="".concat(e.SID,"-")).call(t,e.CID),context:c,startTime:i.reporterHook.getSafeClock()},n.NOTSTORE&&(a=n.NOTSTORE.split(" "),d(a).call(a,(function(e){delete n[e]})),delete n.NOTSTORE),(r=r||n.callback)&&(i.cmdCallbackMap[c]=r),i.executeCmdTask({cmdName:s,cmd:p(e)})},R.executeCmdTask=function(e){var t=e.cmdName,n=e.cmd,r=(n=JSON.parse(n)).SER;this.isFrequencyControlled(t)?(this.logger.warn("protocol::executeCmdTask: ".concat(t," hit freq control")),this.markCallbackInvalid(r,b.newFrequencyControlError({callFunc:"protocol::executeCmdTask",message:"".concat(t," hit freq control")}))):this.hasLogin?("heartbeat"!==t&&(this.logger.debugEnable?this.logger.debug("protocol::sendCmd: ".concat(e.cmd)):this.logger.info("protocol::sendCmd: ".concat(t))),this.doSendCmd(n)):"login"===t&&this.isConnected()?(this.logger.debugEnable?this.logger.debug("protocol::sendCmd: ".concat(e.cmd)):this.logger.info("protocol::sendCmd: ".concat(t)),this.doSendCmd(n)):(this.logger.warn("protocol::executeCmdTask: ".concat(t," not connected or login")),this.markCallbackInvalid(r,b.newSocketStateError({callFunc:"protocol::executeCmdTask",message:"".concat(t," not connected or not login")})))},R.isFrequencyControlled=function(e){var t=this.frequencyControlMap&&this.frequencyControlMap[e];if(t){if(m()0){var m=a(l).call(l,(function(e){return i(e)})),v=g.get(m,"0.length");d="number"==typeof v?v:1}t.reporterHook.emit("reporter/syncItem",c,d)}e.frequencyControlDuration&&(t.logger.error("protocol::onMessage: server freq control ".concat(p(e.cmd))),t.frequencyControlMap=t.frequencyControlMap||{},t.frequencyControlMap[e.cmd]={from:+new Date,duration:e.frequencyControlDuration}),e.obj=t.getPacketObj(e),e.obj&&e.obj.__exceptionInfo&&delete e.obj.__exceptionInfo,"heartbeat"!==e.cmd&&(t.logger.debugEnable?t.logger.debug("protocol::recvCmd: ".concat(e.rawStr)):t.logger.log("protocol::recvCmd: ".concat(e.cmd)));var y="process"+g.capFirstLetter(e.service);if(t[y])if("syncDone"===e.cmd){if(t.cmdCallbackMap[e.raw.ser]&&t.cmdCallbackMap[e.raw.ser].isImSyncDataCb){var b;t.cmdCallbackMap[e.raw.ser].isImSyncDataCb=!1;var S=h(b=function(e,t){this.checkNosReqNum++,this.getNosOriginUrlReqNum<=0||this.checkNosReqNum>=20?this[e](t):f(S,300)}).call(b,t,y,e);f((function(){S.call(t,y,e)}),10)}}else{"syncTeamMembersDone"!==e.cmd&&"syncSuperTeamMembersDone"!==e.cmd||t.cmdCallbackMap[e.raw.ser]&&t.cmdCallbackMap[e.raw.ser].isImSyncDataCb&&(t.cmdCallbackMap[e.raw.ser].isImSyncDataCb=!1);try{t[y](e)}catch(n){var x,w;t.logger.warn(u(x=u(w="protocol::onMessage: ".concat(y,".")).call(w,e.cmd," excute failed ")).call(x,e.obj?"":", maybe the packet timed out",": "),n.message)}}else t.logger.warn("protocol::onMessage: ".concat(y," not found"));t.callPacketAckCallback(e)}))},R.onMiscError=function(e,t,n){t&&this.notifyError(e,t,n)},R.onCustomError=function(e,t){var n=b.customError(e,t),r=t.message||"未知错误";this.onMiscError(r,n)},R.notifyError=function(e,t,n){var r;this.isConnected()&&(this.logger.error(u(r="".concat(e||""," ")).call(r,this.name),t,n),this.options.onerror(t,n))},R.emitAPI=function(e){var t=e.type,n=e.obj;this.api.emit(t,n)},e.exports=A,n(669),n(685),n(686),n(687),n(688),n(689)},function(e,t,n){var r=n(109),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(e){return"Object"}}},function(e,t,n){var r=n(5);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},function(e,t,n){var r=n(65);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r,i=n(36),o=n(166),a=n(167),s=n(114),c=n(218),l=n(162),u=n(133)("IE_PROTO"),d=function(){},p=function(e){return" + +