From 9464caf0237793aac13d12a4a9cf89f4c8c71ecd Mon Sep 17 00:00:00 2001 From: zhangxiaochang Date: Sat, 11 May 2024 09:39:29 +0800 Subject: [PATCH] update: meeting_4.5.0-web --- SampleCode/H5/NEMeetingKit_h5_v4.5.0.js | 196 ++++++++++++++++++++++++ SampleCode/H5/index.html | 4 +- SampleCode/Web/NEMeetingKit_v4.5.0.js | 18 +++ SampleCode/Web/index.html | 2 +- 4 files changed, 217 insertions(+), 3 deletions(-) create mode 100644 SampleCode/H5/NEMeetingKit_h5_v4.5.0.js create mode 100644 SampleCode/Web/NEMeetingKit_v4.5.0.js diff --git a/SampleCode/H5/NEMeetingKit_h5_v4.5.0.js b/SampleCode/H5/NEMeetingKit_h5_v4.5.0.js new file mode 100644 index 0000000..9fcd264 --- /dev/null +++ b/SampleCode/H5/NEMeetingKit_h5_v4.5.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$a=function(){return __assign$a=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$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"==typeof SuppressedError&&SuppressedError;var commonjsGlobal$1="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;o=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()}(loglevel$1);var e$4=loglevel$1.exports;function n$4(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function t$3(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]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 o(e,t){for(var n=0,r=t.length,i=e.length;n=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 P(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=(D=/^\S+@\S+$/,function(e,t,n){D.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 H,z,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=(H={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=H[t.type]||0),t}),F.sizeText=(z=["B","KB","MB","GB","TB","PB","EB","ZB","BB"],function(e){var t,n=0;do{t=(e=Math.floor(100*e)/100)+z[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"!==k(e))return n;var r,i=e,o=O(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,T=e.global,w=e.stat,_=e.proto,C=T?r:w?r[x]:(r[x]||{}).prototype,E=T?l:l[x]||d(l,x,{})[x],M=E.prototype;for(h in t)i=!(n=c(T?h:x+(w?".":"#")+h,e.forced))&&C&&p(C,h),v=E[h],i&&(y=e.dontCallGetSet?(S=s(C,h))&&S.value:C[h]),g=i&&y?y:t[h],i&&typeof v==typeof g||(b=e.bind&&i?u(g,r):e.wrap&&i?m(g):_&&a(g)?o(g):g,(e.sham||g&&g.sham||v&&v.sham)&&d(b,"sham",!0),d(E,h,b),_&&(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 T(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)?T(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 T(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,T,w=n&&n.that,_=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),M=!(!n||!n.INTERRUPTED),A=r(t,w),R=function(e){return g&&p(g,"normal",e),new f(!0,e)},k=function(e){return _?(o(e),M?A(e[0],e[1],R):A(e[0],e[1])):M?A(e,R):A(e)};if(C)g=e.iterator;else if(E)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=k(e[y]))&&l(h,S))return S;return new f(!1)}g=u(e,v)}for(x=C?e.next:g.next;!(T=i(x,g)).done;){try{S=k(T.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){D(t,(function(t,n){e[t]=n}))}var U,B=(U=0,function(){return""+U++});function H(e){return T(e)&&0===o(e).call(e,"{")&&a(e).call(e,"}")===e.length-1}function z(e,t,n){if(!e)return"";var r=[];return D(e,(function(e,t){C(t)||(E(t)?t=t.getTime():_(t)?t=t.join(","):P(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 q(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:T,isNumber:w,isInt:function(e){return w(e)&&e%1==0},isBoolean:function(e){return"boolean"===x(e)},isArray:_,isFunction:C,isDate:E,isRegExp:function(e){return"regexp"===x(e)},isError:function(e){return"error"===x(e)},isnull:M,notnull:A,undef:R,notundef:k,exist:I,notexist:O,isObject:P,isEmpty:function(e){return O(e)||(T(e)||_(e))&&0===e.length},remove:function(e){e.parentNode&&e.parentNode.removeChild(e)},dataset:function(e,t,n){if(!I(n))return e.getAttribute("data-"+t);e.setAttribute("data-"+t,n)},addEventListener:N,on:j,removeEventListener:L,off:$,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"),C(e.onload)&&j(t,"load",(function n(r){t.src&&(e.multi||$(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:D,mixin:F,uniqueID:B,isJSON:H,parseJSON:function e(t){try{H(t)&&(t=JSON.parse(t)),P(t)&&D(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:z,genUrlSep:function(e){return o(e).call(e,"?")<0?"?":"&"},object2query:function(e){return z(e,"&",!0)},url2origin:W,isFileInput:q,getKeys:function(e,t){var n=l(e);return t&&u(n).call(n,(function(t,n){var r=q(e[t]);return r===q(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"==K?"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",K="Windows Phone "+(/\+$/.test(S)?S:S+".x"),U.unshift("desktop mode")):/\bWPDesktop\b/i.test(n)?(W="IE Mobile",K="Windows Phone 8.x",U.unshift("desktop mode"),z||(z=(/\brv:([\d.]+)/.exec(n)||0)[1])):"IE"!=W&&"Trident"==V&&(S=/\brv:([\d.]+)/.exec(n))&&(W&&U.push("identifying as "+W+(z?" "+z:"")),W="IE",z=S[1]),H){if(w="global",_=null!=(T=l)?s(T[w]):"number",/^(?:boolean|number|string|undefined)$/.test(_)||"object"==_&&!T[w])h(S=l.runtime)==A?(W="Adobe AIR",K=S.flash.system.Capabilities.os):h(S=l.phantom)==I?(W="PhantomJS",z=(S=S.version||null)&&S.major+"."+S.minor+"."+S.patch):"number"==typeof L.documentMode&&(S=/\bTrident\/(\d+)/i.exec(n))?(z=[z,L.documentMode],(S=+S[1]+4)!=z[1]&&(U.push("IE "+z[1]+" mode"),V&&(V[1]=""),z[1]=S),z="IE"==W?String(z[1].toFixed(1)):z[0]):"number"==typeof L.documentMode&&/^(?:Chrome|Firefox)\b/.test(W)&&(U.push("masking as "+W+" "+z),W="IE",z="11.0",V=["Trident"],K="Windows");else if(O&&(F=(S=O.lang.System).getProperty("os.arch"),K=K||S.getProperty("os.name")+" "+S.getProperty("os.version")),P){try{z=l.require("ringo/engine").version.join("."),W="RingoJS"}catch(e){(S=l.system)&&S.global.system==l.system&&(W="Narwhal",K||(K=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",z=S.versions.electron):"string"==typeof S.versions.nw&&(U.push("Chromium "+z,"Node "+S.versions.node),W="NW.js",z=S.versions.nw)),W||(W="Node.js",F=S.arch,K=S.platform,z=(z=/[\d.]+/.exec(S.version))?z[0]:null));K=K&&m(K)}if(z&&(S=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(z)||/(?:alpha|beta)(?: ?\d)?/i.exec(n+";"+(H&&p.appMinorVersion))||/\bMinefield\b/i.test(n)&&"a")&&(B=/b/i.test(S)?"beta":"alpha",z=z.replace(RegExp(S+"\\+?$"),"")+("beta"==B?j:N)+(/\d+\+?/.exec(S)||"")),"Fennec"==W||"Firefox"==W&&/\b(?:Android|Firefox OS)\b/.test(K))W="Firefox Mobile";else if("Maxthon"==W&&z)z=z.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(q))"Xbox 360"==q&&(K=null),"Xbox 360"==q&&/\bIEMobile\b/.test(n)&&U.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(W)&&(!W||q||/Browser|Mobi/.test(W))||"Windows CE"!=K&&!/Mobi/i.test(n))if("IE"==W&&H)try{null===l.external&&U.unshift("platform preview")}catch(e){U.unshift("embedded")}else(/\bBlackBerry\b/.test(q)||/\bBB10\b/.test(n))&&(S=(RegExp(q.replace(/ +/g," *")+"/([.\\d]+)","i").exec(n)||0)[1]||z)?(K=((S=[S,/BB10/.test(n)])[1]?(q=null,G="BlackBerry"):"Device Software")+" "+S[0],z=null):this!=f&&"Wii"!=q&&(H&&$||/Opera/.test(W)&&/\b(?:MSIE|Firefox)\b/i.test(n)||"Firefox"==W&&/\bOS X (?:\d+\.){2,}/.test(K)||"IE"==W&&(K&&!/^Win/.test(K)&&z>5.5||/\bWindows XP\b/.test(K)&&z>8||8==z&&!/\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"==K&&(K=null),S="identify"+S):(S="mask"+S,W=D?m(D.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(S)&&(K=null),H||(z=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(C=S[1]).call(C,-1)?(W="WebKit Nightly",B="alpha",z=r(E=S[1]).call(E,0,-1)):z!=S[1]&&z!=(S[2]=(/\bSafari\/([\d.]+\+?)/i.exec(n)||0)[1])||(z=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"]),H&&(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&&(!z||a(z)>45)&&(z=S));"Opera"==W&&(S=/\bzbov|zvav$/.exec(K))?(W+=" ",U.unshift("desktop mode"),"zvav"==S?(W+="Mini",z=null):W+="Mobile",K=K.replace(RegExp(" *"+S+"$"),"")):"Safari"==W&&/\bChrome\b/.exec(V&&V[1])&&(U.unshift("desktop mode"),W="Chrome Mobile",z=null,/\bOS X\b/.test(K)?(G="Apple",K="iOS 4.3+"):K=null),z&&0==i(z).call(z,S=/[\d.]+$/.exec(K))&&i(n).call(n,"/"+S+"-")>-1&&(K=y(K.replace(S,""))),V&&!/\b(?:Avant|Nook)\b/.test(W)&&(/Browser|Lunascape|Maxthon/.test(W)||"Safari"!=W&&/^iOS/.test(K)&&/\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("; ")+")"]),G&&q&&i(q).call(q,G)<0&&U.push("on "+G),q&&U.push((/^on /.test(U[U.length-1])?"":"on ")+q),K&&(S=/ ([\d.+]+)$/.exec(K),x=S&&"/"==K.charAt(K.length-S[0].length-1),K={architecture:32,family:S&&!x?K.replace(S[0],""):K,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)?(K&&(K.architecture=64,K.family=K.family.replace(RegExp(" *"+S),"")),W&&(/\bWOW64\b/i.test(n)||H&&/\w(?:86|32)$/.test(p.cpuClass||p.platform)&&!/\bWin64; x64\b/i.test(n))&&U.unshift("32-bit")):K&&/^OS X/.test(K.family)&&"Chrome"==W&&o(z)>=39&&(K.architecture=64),n||(n=null);var X={};return X.description=n,X.layout=V&&V[0],X.manufacturer=G,X.name=W,X.prerelease=B,X.product=q,X.ua=n,X.version=W&&z,X.os=K||{architecture:null,family:null,version:null,toString:function(){return"null"}},X.parse=t,X.toString=function(){return this.description||""},X.version&&U.unshift(z),X.name&&U.unshift(W),K&&W&&(K!=String(K).split(" ")[0]||K!=W.split(" ")[0]&&!q)&&U.push(q?"("+K+")":"on "+K),U.length&&(X.description=U.join(" ")),X}()}();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),T=r(h,g),w=s(x),_=0,C=v||c,E=t?C(f,w):n||p?C(f,0):void 0;w>_;_++)if((m||_ in x)&&(b=T(y=x[_],_,S),e))if(t)E[_]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return _;case 2:l(E,y)}else switch(e){case 4:return!1;case 7:l(E,y)}return d?-1:i||u?u:E}};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(E.prototype,S.prototype),E.prototype.getScene=function(){return T[this.scene]},E.getType=S.getType,E.setFlow=S.setFlow,E.reverse=function(e){var t,n=T[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:E.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},E.setExtra=function(e,t){e.target=E.getMsgTarget(e,t),e.sessionId=e.scene+"-"+e.target,S.setFlow(e,t)},E.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},E.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]}))},E.sortMsgs=function(e){return e=l(e).call(e,0),h.sortObjArray(e,{sortPath:"time"}),e},E.getLastMsg=function(e){return(e=E.sortMsgs(e))[e.length-1]},E.getLastNotIgnoredMsg=function(e){for(var t=null,n=(e=E.sortMsgs(e)).length-1;n>=0;n--)if(!(t=e[n]).ignore)return t;return null},E.getMaxTimetag=function(e){return E.getLastMsg(e).time},E.validScenes=w,E.validTypes=C,E.sceneMap=x,E.sceneReverseMap=T,e.exports=E},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 T={};x.getInstance=function(e){e=_(e),m.verifyOptions(e,"account","api::Base.getInstance");var t=this.genInstanceName(e),n=T[t];return n?x.updateInstance(n,e):n=T[t]=new this(e),n},x.updateInstance=function(e,t){e.setOptions(t),e.connect()};var w=x.fn=x.prototype=i(new p),_=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};w.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},w.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=T[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,T[n]=this,this},w.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})),T&&(T[u]=null,clearTimeout(i)),m&&(m.__destroyed=!0),e.done instanceof Function&&e.done(t)}})}},w.setOptions=function(e){var t=S(e);t=y(t,this),this.protocol.setOptions(t)},w.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})},w.processCallback=function(e,t){C(e,t)},w.processCallbackPromise=function(e,t){return new d((function(n,r){C(e,t,!0,n,r)}))};var C=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)};w.processPs=function(e){m.notexist(e.ps)&&(e.ps=""),m.verifyArrayMax("ps",e.ps,5e3)},w.processCustom=function(e){m.notexist(e.custom)&&(e.custom="")},w.sendCmd=function(){this.protocol.sendCmd.apply(this.protocol,arguments)},w.sendCmdWithResp=function(e,t,n){this.sendCmd(e,t,(function(e,t,r){m.isFunction(n)&&(e?n(e,t):n(null,r))}))},w.cbAndSendCmd=function(e,t){var n=this.processCallbackPromise(t);return this.sendCmd(e,t),n},w.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 T)T[e].destroy();T={}},w.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,T=(S.V2NIMLoginStatus,n(107)),w=T.ReporterHook,_=T.EMSyncType,C=n(647),E=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 w(this,this.options.reporterHookConfig),this.reporterHookLinkKeep=new C(this),this.promiseAbortManager=new E,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,T;t.logger.warn(u(x=u(T="protocol::onMessage: ".concat(y,".")).call(T,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" + - \ No newline at end of file + diff --git a/SampleCode/Web/NEMeetingKit_v4.5.0.js b/SampleCode/Web/NEMeetingKit_v4.5.0.js new file mode 100644 index 0000000..182d851 --- /dev/null +++ b/SampleCode/Web/NEMeetingKit_v4.5.0.js @@ -0,0 +1,18 @@ +!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)}function __rest$1F(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=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(i!==d&&(a=f(i.getLevel())),c.call(d),i===d)for(var e in o)o[e].rebuild()},a=f(i?i.getLevel():"WARN");var h=m();null!=h&&(l=f(h)),c.call(d)}(i=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=o[e];return t||(t=o[e]=new d(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},e.exports?e.exports=n():t.log=n()}(loglevel$1);var e$7=loglevel$1.exports;function n$6(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function t$6(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function o$2(e,t){for(var n=0,r=t.length,o=e.length;n=e.length?{done:!0}:{done:!1,value:e[r++]}},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 i,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,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw i}}}}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 j(e)},F.verifyParamPresent=function(e,t,n,r){n=n||"";var o=!1;switch(F.typeOf(t)){case"undefined":case"null":o=!0;break;case"string":""===t&&(o=!0);break;case"StrStrMap":case"object":s(t).length||(o=!0);break;case"array":t.length?c(t).call(t,(function(e){if(F.notexist(e))return o=!0,!0})):o=!0}o&&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 o=F.typeOf(t).toLowerCase();F.isArray(n)||(n=[n]),n=m(n).call(n,(function(e){return e.toLowerCase()}));var a=!0;switch(-1===i(n).call(n,o)&&(a=!1),o){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===i(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=(D=/^\S+@\S+$/,function(e,t,n){D.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,i){if(e=e||{},t&&(F.isString(t)&&(t=t.split(U)),F.isArray(t))){"boolean"!=typeof n&&(i=n||null,n=!0,r="");var a=n?F.verifyParamPresent:F.verifyParamAbsent;o(t).call(t,(function(t){a.call(F,t,e[t],r,i)}))}return e},F.verifyParamAtLeastPresentOne=function(e,t,n){t&&(F.isString(t)&&(t=t.split(U)),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(U)),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,i){F.undef(n)&&(n=!0),U.test(t)&&(t=t.split(U)),F.isArray(t)?o(t).call(t,(function(t){F.verifyBooleanWithDefault(e,t,n,r,i)})):void 0===e[t]?e[t]=n:F.isBoolean(e[t])||F.onParamInvalidType(t,"boolean",r,i)},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){U.test(t)&&(t=t.split(U)),F.isArray(t)?o(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 o([]).call(e,(function(e){var o,l;if(s)c.push(e);else if(n=a(o=e.name).call(o,g(l=e.name).call(l,".")+1),(r=e.type.split("/"))[0]&&r[1]){var u;(r[0].toLowerCase()===t||-1!==i(u=F.validFileExts[t]).call(u,n))&&c.push(e)}})),c};var H,z,V=F.supportFormData=F.notundef(B.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=(H={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=H[t.type]||0),t}),F.sizeText=(z=["B","KB","MB","GB","TB","PB","EB","ZB","BB"],function(e){var t,n=0;do{t=(e=Math.floor(100*e)/100)+z[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 o,i,a=null,s=0;n||(n={});var c=function(){s=!1===n.leading?0:(new Date).getTime(),a=null,e.apply(o,i),a||(o=i=null)};return function(){var l=(new Date).getTime();s||!1!==n.leading||(s=l);var u=t-(l-s);return o=this,i=arguments,u<=0||u>t?(clearTimeout(a),a=null,s=l,e.apply(o,i),a||(o=i=null)):a||!1===n.trailing?a&&r&&r.apply(o,i):(a=v(c,u),r&&r.apply(o,i)),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,o=e,i=$(t.replace(/\[(\d+)\]/g,".$1").split("."));try{for(i.s();!(r=i.n()).done;){var a=r.value;if(void 0===(o=Object(o)[a]))return n}}catch(e){i.e(e)}finally{i.f()}return o},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 i={};return o(t).call(t,(function(e){i[e]=!0})),m(n=y(r=s(e)).call(r,(function(e){return!i[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,o=n.min,i=n.max,a=n.required,s=e[t];return!((!1!==a||void 0!==s)&&(!d(s)||"number"==typeof i&&s.length>i||"number"==typeof o&&s.length=e&&(d=x.race(a))}return d.then((function(){return s()}))}().then((function(){return x.all(o)}))},F.getIdArray=function(e){if(!e||"string"!=typeof e)throw new Error("id type error");var t=i(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),o=n(79),i=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,i){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,i)}return o(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,o,f,h,g,v,y,b,S,x=e.target,C=e.global,T=e.stat,w=e.proto,_=C?r:T?r[x]:(r[x]||{}).prototype,E=C?l:l[x]||d(l,x,{})[x],R=E.prototype;for(h in t)o=!(n=c(C?h:x+(T?".":"#")+h,e.forced))&&_&&p(_,h),v=E[h],o&&(y=e.dontCallGetSet?(S=s(_,h))&&S.value:_[h]),g=o&&y?y:t[h],o&&typeof v==typeof g||(b=e.bind&&o?u(g,r):e.wrap&&o?m(g):w&&a(g)?i(g):g,(e.sham||g&&g.sham||v&&v.sham)&&d(b,"sham",!0),d(E,h,b),w&&(p(l,f=x+"Prototype")||d(l,f,{}),d(l[f],h,g),e.real&&R&&(n||!R[h])&&d(R,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),o=n(6),i=!1;try{"function"==typeof localStorage.setItem&&"function"==typeof localStorage.getItem&&(localStorage.setItem("nim_localstorage_exist_test","1"),i="1"===localStorage.getItem("nim_localstorage_exist_test"),localStorage.removeItem("nim_localstorage_exist_test"))}catch(e){i=!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:i?{cdnDomain:localStorage.getItem("nim_cdn_domain")||"",objectPrefix:localStorage.getItem("nim_object_prefix")||""}:{},hasLocalStorage:i,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 o=t||(a.isWeixinApp?a.wxDefaultLinkUrl:n);if(!o)return!1;var i=e?"https":"http",s=e?"443":"80",c=o;return-1===r(o).call(o,"http")&&(c=i+"://"+c),-1===r(o).call(o,":")&&(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,i,s,c,l,u=e.bucket,d=e.expireSec,p=+new Date,m=d?"&survivalTime=".concat(d):"";if(n)return o(s=o(c=o(l="https://".concat(n,"/")).call(l,t,"?createTime=")).call(c,p)).call(s,m);var f=o(r=o(i="".concat(a.replaceUrl,"?createTime=")).call(i,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),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.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),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}: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),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(e,t,n){var r=n(14),o=n(111),i=n(30),a=n(130),s=n(97),c=n(209),l=o("wks"),u=r.Symbol,d=u&&u.for,p=c?u:u&&u.withoutSetter||a;e.exports=function(e){if(!i(l,e)||!s&&"string"!=typeof l[e]){var t="Symbol."+e;s&&i(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),o=n(365);function i(t){return e.exports=i="function"==typeof r&&"symbol"==typeof o?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,i(t)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(13),o=n(30),i=n(136),a=n(39).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){e.exports=n(454)},function(e,t,n){var r=n(51),o=n(60),i=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 C(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)?C(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 i,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,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function C(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"===i(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];o(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"!==i(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),o=Object;e.exports=function(e){return o(r(e))}},function(e,t,n){e.exports=n(249)},function(e,t,n){var r=n(127),o=n(110);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(0),o={init:function(){o.deviceId=r.guid()}};o.init(),o.clientTypeMap={1:"Android",2:"iOS",4:"PC",8:"WindowsPhone",16:"Web",32:"Server",64:"Mac"},o.db={open:function(){}},o.rnfs=null,e.exports=o},function(e,t,n){var r=n(322);e.exports=function(e){return r(e.length)}},function(e,t,n){var r=n(34),o=n(20),i=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,C,T=n&&n.that,w=!(!n||!n.AS_ENTRIES),_=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),R=!(!n||!n.INTERRUPTED),M=r(t,T),k=function(e){return g&&p(g,"normal",e),new f(!0,e)},I=function(e){return w?(i(e),R?M(e[0],e[1],k):M(e[0],e[1])):R?M(e,k):M(e)};if(_)g=e.iterator;else if(E)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.next:g.next;!(C=o(x,g)).done;){try{S=I(C.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),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,n){var r=n(140),o=n(250);e.exports=function(e,t,n){return(t=o(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),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},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 o(e,t,n,o,i,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(o,i)}e.exports=function(e){return function(){var t=this,n=arguments;return new r((function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,c,"next",e)}function c(e){o(a,r,i,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),o=n(39),i=n(80);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){(function(t){var r=n(15),o=n(24),i=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 o=r(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?p(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?v(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},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 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){D(t,(function(t,n){e[t]=n}))}var B,U=(B=0,function(){return""+B++});function H(e){return C(e)&&0===i(e).call(e,"{")&&a(e).call(e,"}")===e.length-1}function z(e,t,n){if(!e)return"";var r=[];return D(e,(function(e,t){_(t)||(E(t)?t=t.getTime():w(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:C,isNumber:T,isInt:function(e){return T(e)&&e%1==0},isBoolean:function(e){return"boolean"===x(e)},isArray:w,isFunction:_,isDate:E,isRegExp:function(e){return"regexp"===x(e)},isError:function(e){return"error"===x(e)},isnull:R,notnull:M,undef:k,notundef:I,exist:A,notexist:$,isObject:O,isEmpty:function(e){return $(e)||(C(e)||w(e))&&0===e.length},remove:function(e){e.parentNode&&e.parentNode.removeChild(e)},dataset:function(e,t,n){if(!A(n))return e.getAttribute("data-"+t);e.setAttribute("data-"+t,n)},addEventListener:P,on:N,removeEventListener:j,off:L,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.onload)&&N(t,"load",(function n(r){t.src&&(e.multi||L(t,"load",n),e.onload(r))})),(e.parent||document.body).appendChild(t);var n=e.src||"about:blank";return o((function(){t.src=n}),0),t}},html2node:function(e){if("undefined"!=typeof document){var t=document.createElement("div");t.innerHTML=e;var n,r,o=[];if(t.children)for(n=0,r=t.children.length;n1?t:o[0]}},forOwn:D,mixin:F,uniqueID:U,isJSON:H,parseJSON:function e(t){try{H(t)&&(t=JSON.parse(t)),O(t)&&D(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:z,genUrlSep:function(e){return i(e).call(e,"?")<0?"?":"&"},object2query:function(e){return z(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,o=e,i=g(t.replace(/\[(\d+)\]/g,".$1").split("."));try{for(i.s();!(n=i.n()).done;){var a=n.value;if(void 0===(o=Object(o)[a]))return r}}catch(e){i.e(e)}finally{i.f()}return o},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),o=n(718),i=r("Map");e.exports={Map:i,set:o("set",2),get:o("get",1),has:o("has",1),remove:o("delete",1),proto:i.prototype}},function(e,t,n){(function(t){var r=n(15),o=n(7),i=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,o=e?e.length:0;if("number"==typeof o&&o>-1&&o<=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"==K?"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",K="Windows Phone "+(/\+$/.test(S)?S:S+".x"),B.unshift("desktop mode")):/\bWPDesktop\b/i.test(n)?(W="IE Mobile",K="Windows Phone 8.x",B.unshift("desktop mode"),z||(z=(/\brv:([\d.]+)/.exec(n)||0)[1])):"IE"!=W&&"Trident"==V&&(S=/\brv:([\d.]+)/.exec(n))&&(W&&B.push("identifying as "+W+(z?" "+z:"")),W="IE",z=S[1]),H){if(T="global",w=null!=(C=l)?s(C[T]):"number",/^(?:boolean|number|string|undefined)$/.test(w)||"object"==w&&!C[T])h(S=l.runtime)==M?(W="Adobe AIR",K=S.flash.system.Capabilities.os):h(S=l.phantom)==A?(W="PhantomJS",z=(S=S.version||null)&&S.major+"."+S.minor+"."+S.patch):"number"==typeof j.documentMode&&(S=/\bTrident\/(\d+)/i.exec(n))?(z=[z,j.documentMode],(S=+S[1]+4)!=z[1]&&(B.push("IE "+z[1]+" mode"),V&&(V[1]=""),z[1]=S),z="IE"==W?String(z[1].toFixed(1)):z[0]):"number"==typeof j.documentMode&&/^(?:Chrome|Firefox)\b/.test(W)&&(B.push("masking as "+W+" "+z),W="IE",z="11.0",V=["Trident"],K="Windows");else if($&&(F=(S=$.lang.System).getProperty("os.arch"),K=K||S.getProperty("os.name")+" "+S.getProperty("os.version")),O){try{z=l.require("ringo/engine").version.join("."),W="RingoJS"}catch(e){(S=l.system)&&S.global.system==l.system&&(W="Narwhal",K||(K=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?(B.push("Node "+S.versions.node),W="Electron",z=S.versions.electron):"string"==typeof S.versions.nw&&(B.push("Chromium "+z,"Node "+S.versions.node),W="NW.js",z=S.versions.nw)),W||(W="Node.js",F=S.arch,K=S.platform,z=(z=/[\d.]+/.exec(S.version))?z[0]:null));K=K&&m(K)}if(z&&(S=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(z)||/(?:alpha|beta)(?: ?\d)?/i.exec(n+";"+(H&&p.appMinorVersion))||/\bMinefield\b/i.test(n)&&"a")&&(U=/b/i.test(S)?"beta":"alpha",z=z.replace(RegExp(S+"\\+?$"),"")+("beta"==U?N:P)+(/\d+\+?/.exec(S)||"")),"Fennec"==W||"Firefox"==W&&/\b(?:Android|Firefox OS)\b/.test(K))W="Firefox Mobile";else if("Maxthon"==W&&z)z=z.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(G))"Xbox 360"==G&&(K=null),"Xbox 360"==G&&/\bIEMobile\b/.test(n)&&B.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(W)&&(!W||G||/Browser|Mobi/.test(W))||"Windows CE"!=K&&!/Mobi/i.test(n))if("IE"==W&&H)try{null===l.external&&B.unshift("platform preview")}catch(e){B.unshift("embedded")}else(/\bBlackBerry\b/.test(G)||/\bBB10\b/.test(n))&&(S=(RegExp(G.replace(/ +/g," *")+"/([.\\d]+)","i").exec(n)||0)[1]||z)?(K=((S=[S,/BB10/.test(n)])[1]?(G=null,q="BlackBerry"):"Device Software")+" "+S[0],z=null):this!=f&&"Wii"!=G&&(H&&L||/Opera/.test(W)&&/\b(?:MSIE|Firefox)\b/i.test(n)||"Firefox"==W&&/\bOS X (?:\d+\.){2,}/.test(K)||"IE"==W&&(K&&!/^Win/.test(K)&&z>5.5||/\bWindows XP\b/.test(K)&&z>8||8==z&&!/\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"==K&&(K=null),S="identify"+S):(S="mask"+S,W=D?m(D.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(S)&&(K=null),H||(z=null)),V=["Presto"],B.push(S));else W+=" Mobile";(S=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(n)||0)[1])&&(S=[i(S.replace(/\.(\d)$/,".0$1")),S],"Safari"==W&&"+"==r(_=S[1]).call(_,-1)?(W="WebKit Nightly",U="alpha",z=r(E=S[1]).call(E,0,-1)):z!=S[1]&&z!=(S[2]=(/\bSafari\/([\d.]+\+?)/i.exec(n)||0)[1])||(z=null),S[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(n)||0)[1],537.36==S[0]&&537.36==S[2]&&i(S[1])>=28&&"WebKit"==V&&(V=["Blink"]),H&&(R||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&&(!z||a(z)>45)&&(z=S));"Opera"==W&&(S=/\bzbov|zvav$/.exec(K))?(W+=" ",B.unshift("desktop mode"),"zvav"==S?(W+="Mini",z=null):W+="Mobile",K=K.replace(RegExp(" *"+S+"$"),"")):"Safari"==W&&/\bChrome\b/.exec(V&&V[1])&&(B.unshift("desktop mode"),W="Chrome Mobile",z=null,/\bOS X\b/.test(K)?(q="Apple",K="iOS 4.3+"):K=null),z&&0==o(z).call(z,S=/[\d.]+$/.exec(K))&&o(n).call(n,"/"+S+"-")>-1&&(K=y(K.replace(S,""))),V&&!/\b(?:Avant|Nook)\b/.test(W)&&(/Browser|Lunascape|Maxthon/.test(W)||"Safari"!=W&&/^iOS/.test(K)&&/\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])&&B.push(S),B.length&&(B=["("+B.join("; ")+")"]),q&&G&&o(G).call(G,q)<0&&B.push("on "+q),G&&B.push((/^on /.test(B[B.length-1])?"":"on ")+G),K&&(S=/ ([\d.+]+)$/.exec(K),x=S&&"/"==K.charAt(K.length-S[0].length-1),K={architecture:32,family:S&&!x?K.replace(S[0],""):K,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)?(K&&(K.architecture=64,K.family=K.family.replace(RegExp(" *"+S),"")),W&&(/\bWOW64\b/i.test(n)||H&&/\w(?:86|32)$/.test(p.cpuClass||p.platform)&&!/\bWin64; x64\b/i.test(n))&&B.unshift("32-bit")):K&&/^OS X/.test(K.family)&&"Chrome"==W&&i(z)>=39&&(K.architecture=64),n||(n=null);var Y={};return Y.description=n,Y.layout=V&&V[0],Y.manufacturer=q,Y.name=W,Y.prerelease=U,Y.product=G,Y.ua=n,Y.version=W&&z,Y.os=K||{architecture:null,family:null,version:null,toString:function(){return"null"}},Y.parse=t,Y.toString=function(){return this.description||""},Y.version&&B.unshift(z),Y.name&&B.unshift(W),K&&W&&(K!=String(K).split(" ")[0]||K!=W.split(" ")[0]&&!G)&&B.push(G?"("+K+")":"on "+K),B.length&&(Y.description=B.join(" ")),Y}()}();e.exports=c}).call(this,n(73))},function(e,t,n){var r=n(12),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},function(e,t,n){var r=n(33);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(165),o=n(17),i=n(65),a=n(21)("toStringTag"),s=Object,c="Arguments"==i(function(){return arguments}());e.exports=r?i: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?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},function(e,t,n){var r=n(61);e.exports=function(e,t,n,o){return o&&o.enumerable?e[t]=n:r(e,t,n),e}},function(e,t,n){n(86);var r=n(356),o=n(14),i=n(67),a=n(61),s=n(103),c=n(21)("toStringTag");for(var l in r){var u=o[l],d=u&&u.prototype;d&&i(d)!==c&&a(d,c,l),s[l]=s.Array}},function(e,t,n){var r=n(31),o=TypeError,i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw o("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(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),o=n(12),i=n(127),a=n(42),s=n(46),c=n(164),l=o([].push),u=function(e){var t=1==e,n=2==e,o=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=i(S),C=r(h,g),T=s(x),w=0,_=v||c,E=t?_(f,T):n||p?_(f,0):void 0;T>w;w++)if((m||w in x)&&(b=C(y=x[w],w,S),e))if(t)E[w]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return w;case 2:l(E,y)}else switch(e){case 4:return!1;case 7:l(E,y)}return d?-1:o||u?u:E}};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),o=n(4),i=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=i(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 o=n.accounts;v(o)&&h.verifyParamType("apns.accounts",o,"array","msg::Message"),this.apnsAccounts=o?i(o):"#%@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=i(e.antiSpamContent):this.antiSpamContent=""+e.antiSpamContent),v(e.antiSpamBusinessId)&&("object"===r(e.antiSpamBusinessId)?this.antiSpamBusinessId=i(e.antiSpamBusinessId):this.antiSpamBusinessId=""+e.antiSpamBusinessId),v(e.yidunAntiCheating)&&(this.yidunAntiCheating=e.yidunAntiCheating),v(e.yidunAntiSpamExt)&&(this.yidunAntiSpamExt=e.yidunAntiSpamExt)}h.merge(E.prototype,S.prototype),E.prototype.getScene=function(){return C[this.scene]},E.getType=S.getType,E.setFlow=S.setFlow,E.reverse=function(e){var t,n=C[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:E.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 o=["replyMsgFromAccount","replyMsgToAccount","replyMsgTime","replyMsgIdServer","replyMsgIdClient","threadMsgFromAccount","threadMsgToAccount","threadMsgTime","threadMsgIdServer","threadMsgIdClient"];s(o).call(o,(function(n){t[n]=e[n]})),t.replyMsgTime=+t.replyMsgTime,t.threadMsgTime=+t.threadMsgTime}return t},E.setExtra=function(e,t){e.target=E.getMsgTarget(e,t),e.sessionId=e.scene+"-"+e.target,S.setFlow(e,t)},E.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},E.deduplication=function(e){var t,n,r={},i=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,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 i,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,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,s=r[a.idClient];s&&s.time>a.time||(r[a.idClient]=a)}}catch(e){i.e(e)}finally{i.f()}return c(t=o(r)).call(t,(function(e){return r[e]}))},E.sortMsgs=function(e){return e=l(e).call(e,0),h.sortObjArray(e,{sortPath:"time"}),e},E.getLastMsg=function(e){return(e=E.sortMsgs(e))[e.length-1]},E.getLastNotIgnoredMsg=function(e){for(var t=null,n=(e=E.sortMsgs(e)).length-1;n>=0;n--)if(!(t=e[n]).ignore)return t;return null},E.getMaxTimetag=function(e){return E.getLastMsg(e).time},E.validScenes=T,E.validTypes=_,E.sceneMap=x,E.sceneReverseMap=C,e.exports=E},function(e,t,n){var r=n(22),o=n(18),i=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 C={};x.getInstance=function(e){e=w(e),m.verifyOptions(e,"account","api::Base.getInstance");var t=this.genInstanceName(e),n=C[t];return n?x.updateInstance(n,e):n=C[t]=new this(e),n},x.updateInstance=function(e,t){e.setOptions(t),e.connect()};var T=x.fn=x.prototype=o(new p),w=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=[],i(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=C[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 o=this.protocol=new e.Protocol(e);return o.name="Protocol-"+n,o.account=t,o.api=this,o.message=this.message=new e.Message({account:t}),this.reporter=o.reporter,this.statusProtector=o.statusProtector,this.reporterHook=o.reporterHook,this.abtInfo={},("boolean"==typeof m.get(e,"privateConf.isABTestEnable")?e.privateConf.isABTestEnable:g.privateConf.isABTestEnable)&&this.abTestConfigRequset(),this.name=n,C[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 o;n.__beginDestroy=!0,e=e||{};var i,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&&(o=this.protocol.connectTimer),this.protocol&&this.protocol.resetPush&&this.protocol.resetPush(),this.eventNames&&"function"==typeof this.eventNames&&a(i=this.eventNames()).call(i,(function(e){delete t._events[e]})),this.disconnect({done:function(t){var i,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(i=s(n.options)).call(i,(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})),C&&(C[u]=null,clearTimeout(o)),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,t)},T.processCallbackPromise=function(e,t){return new d((function(n,r){_(e,t,!0,n,r)}))};var _=function(e,t,n,r,o){var i="api::processCallback";n&&(i="api::processCallbackPromise"),m.verifyCallback(e,"done",i),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?o({message:"生成接口回调错误",callFunc:i,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(o,i){n.sendCmd(e,t,(function(e,t,n){if(e)"function"==typeof r&&r(e),i(e);else{var a=m.merge({},t,n);"function"==typeof r&&r(void 0),o(a)}}))}))},x.use=function(e,t){e&&e.install&&m.isFunction(e.install)&&e.install(this,t)},x.rmAllInstances=function(){for(var e in C)C[e].destroy();C={}},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),o=n(32),i=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,C=(S.V2NIMLoginStatus,n(107)),T=C.ReporterHook,w=C.EMSyncType,_=n(647),E=n(648),R=n(649);function M(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),o(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 k=M.fn=M.prototype;k.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 _(this),this.promiseAbortManager=new E,this.imsocket=new R(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()}))},k.reset=function(){v(this.options.thumbnailToStatic)&&(this.options.thumbnailToStatic=!0),this.resetConnect()},k.setOptions=function(e){var t=this.options,n=i(t),r=i(e),o=["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(o).call(o,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()},k.sendCmd=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=this;o.heartbeat();var a,s=e,c=(e=o.parser.createCmd(e,n)).SER;n=n||{},o.cmdContentMap[c]=n,n.single&&(delete n.single,1===(a=i(n)).length&&(o.cmdContentMap[c]=n[a[0]])),n.__exceptionInfo={target:u(t="".concat(e.SID,"-")).call(t,e.CID),context:c,startTime:o.reporterHook.getSafeClock()},n.NOTSTORE&&(a=n.NOTSTORE.split(" "),d(a).call(a,(function(e){delete n[e]})),delete n.NOTSTORE),(r=r||n.callback)&&(o.cmdCallbackMap[c]=r),o.executeCmdTask({cmdName:s,cmd:p(e)})},k.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")})))},k.isFrequencyControlled=function(e){var t=this.frequencyControlMap&&this.frequencyControlMap[e];if(t){if(m()0){var m=a(l).call(l,(function(e){return o(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,C;t.logger.warn(u(x=u(C="protocol::onMessage: ".concat(y,".")).call(C,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)}))},k.onMiscError=function(e,t,n){t&&this.notifyError(e,t,n)},k.onCustomError=function(e,t){var n=b.customError(e,t),r=t.message||"未知错误";this.onMiscError(r,n)},k.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))},k.emitAPI=function(e){var t=e.type,n=e.obj;this.api.emit(t,n)},e.exports=M,n(669),n(685),n(686),n(687),n(688),n(689)},function(e,t,n){var r=n(109),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,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,o=n(36),i=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" +