text: !function(e){function t(t){for(var o,s,i=t[0],c=t[1],u=t[2],g=0,v=[];g<i.length;g++)s=i[g],Object.prototype.hasOwnProperty.call(n,s)&&n[s]&&v.push(n[s][0]),n[s]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(e[o]=c[o]);for(l&&l(t);v.length;)v.shift()();return a.push.apply(a,u||[]),r()}function r(){for(var e,t=0;t<a.length;t++){for(var r=a[t],o=!0,i=1;i<r.length;i++){var c=r[i];0!==n[c]&&(o=!1)}o&&(a.splice(t--,1),e=s(s.s=r[0]))}return e}var o={},n={21:0},a=[];function s(t){if(o[t])return o[t].exports;var r=o[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=e,s.c=o,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)s.d(r,o,function(t){return e[t]}.bind(null,o));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="./";var i=window.webpackJsonp=window.webpackJsonp||[],c=i.push.bind(i);i.push=t,i=i.slice();for(var u=0;u<i.length;u++)t(i[u]);var l=c;a.push([1126,0]),r()}({1064:function(e,t,r){},1126:function(e,t,r){"use strict";r.r(t);var o=r(11),n=r.n(o),a=r(8),s=r.n(a),i=r(9),c=r.n(i),u=r(12),l=r.n(u),g=r(13),v=r.n(g),p=r(14),d=r.n(p),f=(r(1064),r(0)),y=r.n(f),h=r(26),m=r.n(h),w=r(1140),C=r(6),b=r(7),T=r(5);function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var E=function(e){function t(e){var r;return s()(this,t),(r=l()(this,v()(t).call(this,e))).initState={name:"",email:"",emailCode:"",phone:"",password:""},r.state=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(r,!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({registerType:0,emailCodeLoading:!1,timeCount:0},r.initState),r.sendAble=!0,r.registerAble=!0,r}return d()(t,e),c()(t,[{key:"componentDidMount",value:function(){var e=T.a.parseQs().type;this.setState({registerType:1*e})}},{key:"render",value:function(){var e=this,t=this.state,r=t.name,o=t.email,n=t.emailCode,a=t.phone,s=t.password,i=t.timeCount,c=t.registerType,u=1===c?"设置「管理员账号」":"申请注册「成员账号」",l=1===c?"为方便管理成员和项目，请先初始化管理员账号":"注册完成后，由管理员进入「注册管理」页面，激活此账号，即可完成注册。";return y.a.createElement("div",{className:"register-container"},y.a.createElement("header",null,y.a.createElement("span",{className:"home-icon",onClick:function(){window.location.href="./home.html"}},y.a.createElement("img",{style:{width:"100%"},src:"/webfunny/logos/logo.png"}))),y.a.createElement("section",{className:"signup-content"},y.a.createElement("h1",null,u),y.a.createElement("h3",null,l),y.a.createElement("div",{className:"register account tab-pane fade in active",id:"signupByPhone"},y.a.createElement("div",{style:{display:1===c?"none":"block"},className:"input-set"},y.a.createElement("span",{className:"input-title"},"用户名",y.a.createElement("small",{className:"des-color"},"（展示）")),y.a.createElement("input",{name:"name",type:"text",placeholder:"请输入用户名","data-growing-track":"true",value:1===c?"管理员":r,onChange:function(t){e.setState({name:t.target.value})}}),y.a.createElement("span",{id:"emessage-name",className:"emessage"})),y.a.createElement("div",{className:"input-set phone"},y.a.createElement("span",{className:"input-title"},"邮箱 ",y.a.createElement("small",{className:"des-color"},"（",1===c?"重要！邮箱用于授权其它账号注册":"登录名、接收警报","）")),y.a.createElement("input",{type:"email",placeholder:"请输入邮箱","data-growing-track":"true",maxLength:50,value:o,onChange:function(t){e.setState({email:t.target.value})}}),y.a.createElement("span",{id:"emessage-mobile",className:"emessage"})),1===c?null:y.a.createElement("div",{className:"input-set phone-verif"},y.a.createElement("span",{className:"input-title"},"邮箱验证码",y.a.createElement("small",{className:"des-color"},"（想自定义邮箱系统？",y.a.createElement("a",{href:"http://www.webfunny.cn/des.html#changeConfig-email-proxy",target:"_blank"},"前往设置"),"）")),y.a.createElement("input",{name:"verifyCode",placeholder:"请输入邮箱验证码",style:{width:165},value:n,onChange:function(t){e.setState({emailCode:t.target.value})}}),y.a.createElement("button",{id:"captcha","data-button-clicked":"true",className:i>0?"captcha captcha-phone captcha-disable":"captcha captcha-phone",type:"button",onClick:this.getEmailCode.bind(this)},i>0?"重新发送(".concat(i,"s)"):"获取验证码"),y.a.createElement("span",{id:"emessage-verifyCode",className:"emessage"})),y.a.createElement("div",{className:"input-set phone"},y.a.createElement("span",{className:"input-title"},"手机号 ",y.a.createElement("small",{className:"des-color"},"（用于钉钉、微信警报）")),y.a.createElement("input",{type:"email",placeholder:"请输入手机号","data-growing-track":"true",maxLength:11,value:a,onChange:function(t){e.setState({phone:t.target.value})}}),y.a.createElement("span",{id:"emessage-mobile",className:"emessage"})),y.a.createElement("div",{className:"input-set phone"},y.a.createElement("span",{className:"input-title"},"登录密码"),y.a.createElement("input",{placeholder:"请输入密码","data-growing-track":"true",maxLength:30,value:s,onChange:function(t){e.setState({password:t.target.value})}}),y.a.createElement("span",{id:"emessage-pwd",className:"emessage"})),y.a.createElement("button",{className:"active login-btn",onClick:1===c?this.registerForAdmin.bind(this):this.register.bind(this)},"开启前端监控"),y.a.createElement("span",{className:"form-other"},"已有账号？去 ",y.a.createElement("a",{className:"login-a",href:"./login.html"},"登录")))))}},{key:"getEmailCode",value:function(){var e=this,t=this.state.email;if(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t)){if(this.sendAble){this.sendAble=!1;var r,o,n=120;r={email:t},o=function(t){if(1===t)w.a.error("验证码发送太频繁"),e.sendAble=!0;else{w.a.success("验证码已经发送，请注意查收");var r=setInterval((function(){0===n&&(clearInterval(r),e.sendAble=!0),e.setState({timeCount:n}),n--}),1e3)}e.setState({emailCodeLoading:!1})},C.a.postWithoutToken(b.a.sendRegisterEmail,r).then((function(e){o(e.data)})).catch((function(e){console.error(e)}))}}else w.a.error("请输入正确的邮箱地址！")}},{key:"register",value:function(){var e=this;if(this.registerAble){var t=this.state,r=t.name,o=t.email,n=t.emailCode,a=t.phone,s=t.password;if(r)if(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(o))if(n)if(s){if(/^[0-9]{11}$/.test(a)){this.registerAble=!1;var i,c,u=T.a.b64EncodeUnicode(s.split("").reverse().join(""));i={name:r,email:o,phone:a,emailCode:n,password:u,type:"customer"},c=function(t){0===t.data?(w.a.success("注册成功，即将跳转到登录页。",3),setTimeout((function(){window.location.href="./login.html?userEmail="+o+"&password="+s}),5e3)):(w.a.error(y.a.createElement("span",null,t.msg),5),e.registerAble=!0)},C.a.getWithoutToken(b.a.register,i).then((function(e){c(e)})).catch((function(e){console.error(e)}))}else w.a.error("请输入正确的手机号！")}else w.a.error("请输入密码！");else w.a.error("请输入邮箱验证码！");else w.a.error("请输入正确的邮箱地址！");else w.a.error("请输入用户名！")}}},{key:"registerForAdmin",value:function(){var e=this;if(this.registerAble){var t=this.state,r=t.email,o=t.emailCode,n=t.phone,a=t.password;if(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(r))if(a){if(/^[0-9]{11}$/.test(n)){this.registerAble=!1;var s,i,c=T.a.b64EncodeUnicode(a.split("").reverse().join(""));s={name:"管理员",email:r,emailCode:o,phone:n,password:c,userType:"admin"},i=function(t){0===t.data?(w.a.success("管理员账号设置成功。即将跳转到登录页",3),setTimeout((function(){window.location.href="./login.html?userEmail="+r+"&password="+a}),3e3)):(w.a.error(t.msg),e.registerAble=!0)},C.a.postWithoutToken(b.a.registerForAdmin,s).then((function(e){i(e)})).catch((function(e){console.error(e)}))}else w.a.error("请输入正确的手机号！")}else w.a.error("请输入密码！");else w.a.error("请输入正确的邮箱地址！")}}},{key:"goLogin",value:function(){fetch("http://localhost:3000/api/v1/user/list",(function(){}))}}]),t}(f.Component);m.a.render(y.a.createElement(E,null),document.getElementById("app"))},33:function(e,t){var r={local:{apiServerUrl:"http://localhost:8011",nodeApiServerUrl:"http://47.105.132.73:8011",uri:"//localhost",wsApiServerUrl:("http:"===window.location.protocol?"ws://":"wss://")+"localhost:8011"},dev:{apiServerUrl:"https://www.webfunny.cn",nodeApiServerUrl:"https://www.webfunny.cn",assetsUrl:"https://local.webfunny.cn",uri:"https://local.webfunny.cn:9100"},backup:{apiServerUrl:"http://www.webfunny.cn",nodeApiServerUrl:"http://www.webfunny.cn",assetsUrl:"",uri:""},qa:{apiServerUrl:"https://www.webfunny.cn",assetsUrl:"https://www.webfunny.cn",nodeApiServerUrl:"https://www.webfunny.cn",uri:"https://www.webfunny.cn"},publish:{apiServerUrl:"default_api_server_url",nodeApiServerUrl:"default_api_server_url",assetsUrl:"default_assets_url",uri:"default_assets_url",wsApiServerUrl:("http:"===window.location.protocol?"ws:":"wss:")+"default_api_server_url"},demo:{apiServerUrl:"http://101.132.96.139:8011",assetsUrl:"http://101.132.96.139:8011",nodeApiServerUrl:"http://101.132.96.139:8011",uri:"http://101.132.96.139:8011",wsApiServerUrl:("http:"===window.location.protocol?"ws://":"wss://")+"101.132.96.139:8015"},prod:{apiServerUrl:"http://www.webfunny.cn",assetsUrl:"http://www.webfunny.cn",nodeApiServerUrl:"http://www.webfunny.cn",uri:"http://www.webfunny.cn",wsApiServerUrl:("http:"===window.location.protocol?"ws://":"wss://")+"www.webfunny.cn"}};e.exports={getApiHost:function(){return r.publish.apiServerUrl},getNodeApiHost:function(){return r.publish.nodeApiServerUrl},getAssetsUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publish",t=arguments.length>1?arguments[1]:void 0,o=r[e].assetsUrl||"",n="local"===e?"/webfunny/":t;return o+n},getUri:function(){return r.publish.uri},getWsApiHost:function(){return r.publish.wsApiServerUrl}}},5:function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o=r(37),n=r.n(o),a=r(8),s=r.n(a),i=r(9),c=r.n(i),u=r(11),l=r.n(u),g=function(){function e(){s()(this,e)}return c()(e,null,[{key:"isArray",value:function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{key:"isObject",value:function(e){return"[object Object]"===Object.prototype.toString.call(e)}},{key:"randomNumber",value:function(e,t){return Math.floor(Math.random()*(t-e+1)+e)}},{key:"b64EncodeUnicode",value:function(e){var t=encodeURIComponent(e);return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))}},{key:"b64DecodeUnicodeForHttpLog",value:function(e){try{return decodeURIComponent(decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(t){return e}}},{key:"b64DecodeUnicode",value:function(e){try{return decodeURIComponent(decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(t){return e}}},{key:"b64DecodeUnicodeWithSpace",value:function(e){if(!e)return"";var t="";try{return t=e.replace(/ /g,"+"),decodeURIComponent(decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(e){return t}}},{key:"b64DecodeUnicodeBehavior",value:function(e){if(!e)return"";var t=e.replace(/ /g,"+");try{return decodeURIComponent(decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(t){return e}}},{key:"qs",value:function(t,r){var o=[];return function t(r,a){var s=function(n){if(!r.hasOwnProperty(n))return{v:void 0};var s=r[n];e.isArray(s)?s.forEach((function(e){o.push(encodeURIComponent((a?a+".":"")+n+"[]")+"="+encodeURIComponent(e||""))})):e.isObject(s)?t(s,a?a+"."+n:n):o.push(encodeURIComponent((a?a+".":"")+n)+"="+encodeURIComponent(s||""))};for(var i in r){var c=s(i);if("object"===n()(c))return c.v}}(t,""),r&&!t._&&o.push("_="+encodeURIComponent(BUILD_NO)),o.length?"?"+o.join("&"):""}},{key:"parseQs",value:function(){var e=window.location.search,t=e.indexOf("?"),r={};return-1===t?r:(e.substr(t+1).split("&").forEach((function(e){var t=e.split("="),o=decodeURIComponent(t[0]),n=decodeURIComponent(t[1]||""),a=0,s=o.split("."),i=s.length;o=s[i-1];var c=r;if(i>1)for(;a<i-1;a++)c[s[a]]&&CommonTool.isObject(c[s[a]])||(c[s[a]]={}),c=c[s[a]];"[]"!==o.substr(-2)?c[o]=n:c[o=o.substr(0,o.length-2)]?c[o].push(n):c[o]=[n]})),r)}},{key:"quickSort",value:function(t){if(t.length<=1)return t;for(var r=Math.floor(t.length/2),o=t.splice(r,1)[0],n=[],a=[],s=0;s<t.length;s++)t[s]<=o?n.push(t[s]):a.push(t[s]);return e.quickSort(n).concat([o],e.quickSort(a))}},{key:"showLoading",value:function(){}},{key:"get24HoursArray",value:function(){for(var e=(new Date).getTime(),t=[],r=0;r<24;r++){var o=new Date(e-60*r*60*1e3).Format("MM-dd hh");t.push(o)}return t}},{key:"getHoursArrayByTimeSize",value:function(t){if(0===t){for(var r=(new Date).getTime()-t*e.DAY_TIME,o=[],n=0;n<=24;n++){var a=r-n*e.HOUR_TIME,s=new Date(a).Format("MM-dd hh");o.push(s)}return o}for(var i=(new Date).getTime()-t*e.DAY_TIME,c=new Date(i).Format("MM-dd"),u=[],l=0;l<24;l++){var g=c+" "+(l<10?"0"+l:l);u.push(g)}return u.reverse()}},{key:"getSevenDaysAgoHoursArrayByTimeSize",value:function(t){if(0===t){for(var r=(new Date).getTime()-(7+t)*e.DAY_TIME,o=[],n=0;n<=24;n++){var a=r-n*e.HOUR_TIME,s=new Date(a).Format("MM-dd hh");o.push(s)}return o}for(var i=(new Date).getTime()-(7+t)*e.DAY_TIME,c=new Date(i).Format("MM-dd"),u=[],l=0;l<24;l++){var g=c+" "+(l<10?"0"+l:l);u.push(g)}return u.reverse()}},{key:"getSevenDaysAgo24HoursArray",value:function(){for(var e=(new Date).getTime()-6048e5,t=[],r=0;r<24;r++){var o=new Date(e-60*r*60*1e3).Format("MM-dd hh");t.push(o)}return t}},{key:"analysisInfoData",value:function(e,t){for(var r=[],o=[],n=0,a=0;a<t.length-1;a++){for(var s=!1,i=0;i<e.length;i++)if(e[i].hour===t[a]){var c=t[a],u=e[i].count;r.push(c),o.push(u),n+=parseInt(e[i].count,10),s=!0;break}!1===s&&(r.push(t[a]),o.push(0))}return{infoTotalCount:n,dateArray:r,infoArray:o,usefulArray:e.filter((function(e){return e.count>0}))}}},{key:"loadJs",value:function(e,t){var r=document.createElement("script");r.async=1,r.onload="function"==typeof t?t:function(){},r.src=e;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(r,o)}},{key:"deepCopy",value:function(e){if(e instanceof Array){for(var t=[],r=0;r<e.length;++r)t[r]=this.deepCopy(e[r]);return t}if(e instanceof Object){var o={};for(var n in e)o[n]=this.deepCopy(e[n]);return o}return e}},{key:"addDays",value:function(e){var t="",r=new Date,o=new Date(r.getTime()+24*e*60*60*1e3),n=o.getFullYear(),a=o.getMonth()+1,s=o.getDate();return t=n+"-",t=a>=10?t+a+"-":t+"0"+a+"-",s>=10?t+=s:t=t+"0"+s,t}},{key:"toFixed",value:function(e,t){var r=e,o=Math.pow(10,t);if(r<0)return r=Math.abs(r),-(parseInt(r*o+.5,10)/o);var n=parseInt(r*o+.5,10)/o,a=n,s=n+"";if(-1!==s.indexOf(".")){var i=s.split(".")[0],c=s.split(".")[1];c.length>t&&(c=c.substring(0,2)),a=i+"."+c}return 1*a}},{key:"getCookie",value:function(e){var t,r=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return document.cookie.match(r)?(t=document.cookie.match(r),unescape(t[2])):""}},{key:"setCookie",value:function(e,t,r){var o=new Date;o.setTime(o.getTime()+r);var n=window.location.hostname;document.cookie=e+"="+t+";Path=/;domain="+n+";expires="+o.toGMTString()}},{key:"removeDuplicateForString",value:function(e){var t=e.split(""),r=new Set(t);return Array.from(r).join("")}},{key:"quickSortForObject",value:function(t,r,o,n){if(!(o>n)){for(var a=t[o][r],s=t[o],i=o,c=n;i!==c;){for(;t[c][r]>=a&&c>i;)c--;for(;t[i][r]<=a&&c>i;)i++;if(c>i){var u=t[i];t[i]=t[c],t[c]=u}}t[o]=t[i],t[i]=s,e.quickSortForObject(t,r,o,i-1),e.quickSortForObject(t,r,i+1,n)}}},{key:"handleTimeScope",value:function(e){return Math.floor(((new Date).getTime()-new Date(e+" 00:00:00").getTime())/864e5)}},{key:"ajax",value:function(e,t,r,o,n){try{var a=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");a.open(e,t,!0),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onreadystatechange=function(){if(4===a.readyState){var e={};try{e=a.responseText?JSON.parse(a.responseText):{}}catch(t){console.error(a.responseText),e={}}"function"==typeof o&&o(e)}else"function"==typeof n&&n()},a.onerror=function(){"function"==typeof n&&n()};var s=JSON.stringify(r||{});a.send("data="+s)}catch(e){console.warn(e)}}},{key:"handleTreeData",value:function(t){var r=[];for(var o in t){var a={};if(a.title=o,a.key=o,"object"===n()(t[o]))a.children=e.handleTreeData(t[o]);else if("string"==typeof t[o])a.children=[{title:'"'.concat(t[o],'"'),key:'"'.concat(t[o],'"')}];else if("number"==typeof t[o])a.children=[{title:t[o],key:t[o]}];else if("boolean"==typeof t[o]){var s={};switch(t[o]){case!0:s.title="true",s.key="true";break;case!1:s.title="false",s.key="false"}a.children=[s]}r.push(a)}return r}},{key:"encodeURIFunc",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href,t={},r=e.indexOf("?"),o=e.substr(r+1);if(-1!==r){var n=o.split("&"),a=!0,s=!1,i=void 0;try{for(var c,u=n[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var l=c.value,g=l.split("=");t[g[0]]=g[1]}}catch(e){s=!0,i=e}finally{try{a||null==u.return||u.return()}finally{if(s)throw i}}}return t}},{key:"formatTime",value:function(e,t){var r=new Date(e),o=function(e){return(e<10?"0":"")+e};return t.replace(/yyyy|MM|M|dd|d|HH|mm|ss/g,(function(e){switch(e){case"yyyy":return o(r.getFullYear());case"MM":return o(r.getMonth()+1);case"M":return r.getMonth()+1;case"mm":return o(r.getMinutes());case"dd":return o(r.getDate());case"d":return r.getDate();case"HH":return o(r.getHours());case"ss":return o(r.getSeconds());default:return""}}))}}]),e}();l()(g,"DAY_TIME",864e5),l()(g,"HOUR_TIME",36e5),l()(g,"handleTime",(function(e,t){var r=1*e,o="";return r<=0?{value:r,unit:""}:("time"===t?(o=r<1e3?"ms":"s",r=r>1e3?g.toFixed(r/1e3,2):g.toFixed(r,2)):"count"===t?r>1e3?(o="千",r=g.toFixed(r/1e3,2)):r>1e4&&(o="万",r=g.toFixed(r/1e4,2)):"percent"===t&&(o="%"),{value:r,unit:o})}))},6:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return g}));var o=r(11),n=r.n(o),a=r(8),s=r.n(a),i=r(9),c=r.n(i),u=r(5);r(217),r(62);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var g=function(){function t(){s()(this,t)}return c()(t,null,[{key:"get",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isHandleResult:!0,isShowLoading:!0},n="GET";r.webMonitorId||(r.webMonitorId=window.localStorage.chooseWebMonitorId);var a=e+u.a.qs(r),s=Object.assign({},{method:n},this.getHeaders());return t.handleFetchData(a,s,o)}},{key:"getWithoutToken",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isHandleResult:!0,isShowLoading:!0},n="GET";r.webMonitorId||(r.webMonitorId=window.localStorage.chooseWebMonitorId);var a=e+u.a.qs(r),s=Object.assign({},{method:n});return t.handleFetchData(a,s,o)}},{key:"post",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isHandleResult:!0,isShowLoading:!0},n="POST";r.webMonitorId||(r.webMonitorId=window.localStorage.chooseWebMonitorId);var a=JSON.stringify(r),s=Object.assign({},{method:n,body:a},this.getHeaders());return t.handleFetchData(e,s,o)}},{key:"postWithoutToken",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isHandleResult:!0,isShowLoading:!0},n="POST";r.webMonitorId||(r.webMonitorId=window.localStorage.chooseWebMonitorId);var a=JSON.stringify(r),s=Object.assign({},{method:n,body:a});return t.handleFetchData(e,s,o)}},{key:"put",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isHandleResult:!0,isShowLoading:!0},n="PUT";r.webMonitorId=window.localStorage.chooseWebMonitorId;var a=JSON.stringify(r),s=Object.assign({},{method:n,body:a},this.getHeaders());return t.handleFetchData(e,s,o)}},{key:"handleFetchData",value:function(e,r,o){var a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(r,!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r);a.body&&a.body.length>1024&&(a.body=a.body.substr(0,1024)+"...");var s=o.isShowLoading;if(s&&t.showLoading(),o.isFetched=!1,o.isAbort=!1,o.hasOwnProperty("customHead")){var i=o.customHead;r.headers=Object.assign({},r.headers,i)}var c=new Promise((function(n,a){fetch(e,r).then((function(e){o.isAbort||(s&&t.hideLoading(),o.isFetched=!0,e.json().then((function(r){if(401!==r.code)if(e.ok)n(t.handleResult(r,o));else{var s="当前服务繁忙，请稍后再试";404===e.status&&(s="您访问的内容走丢了…"),console.error(s),a(t.handleResult({fetchStatus:"error",netStatus:e.status},o))}else{var i=window.location.href;window.location.href="./login.html?target="+encodeURIComponent(i)}})).catch((function(r){var n=r.name+" "+r.message;a(t.handleResult({fetchStatus:"error",error:n,netStatus:e.status},o))})))})).catch((function(e){var r=e.name+" "+e.message;o.isAbort||(s&&t.hideLoading(),o.isFetched=!0,!0===o.isHandleResult&&console.error("网络开小差了，稍后再试吧",2),a(t.handleResult({fetchStatus:"error",error:r},o)))}))}));return Promise.race([c,t.fetchTimeout(o)])}},{key:"handleResult",value:function(e,t){if(e.status&&!0===t.isHandleResult){var r=e.msg||e.message||"服务器开小差了，稍后再试吧";console.error("".concat(r,"（").concat(e.status,"）"),2)}return e}},{key:"fetchTimeout",value:function(e){var r=e.isShowLoading;return new Promise((function(o,n){setTimeout((function(){e.isFetched||(e.isAbort=!0,r&&t.hideLoading(),console.error("网络开小差了，稍后再试吧",2),n({fetchStatus:"timeout"}))}),e.timeout||3e5)}))}},{key:"getHeaders",value:function(){var e={"access-token":localStorage.webfunny_authorization||""};return Object.assign({},{},{headers:e})}},{key:"showLoading",value:function(){}},{key:"hideLoading",value:function(){}},{key:"wsGet",value:function(e,t,r,o,n,a){if(window.WebSocket=window.WebSocket||window.MozWebSocket,window.WebSocket){var s=new WebSocket(e);s.onmessage=function(e){r&&r(e)},s.onopen=function(r){console.log(e+" 连接成功"),o&&o(r),t&&t(s)},s.onclose=function(t){n&&n(t),s.close(),s=null,console.log(e+" 断开连接")},s.onerror=function(e){console.log(e),a&&a(e)}}else console.error("错误: 浏览器不支持websocket")}},{key:"ajax",value:function(t,r,o,n,a){var s={url:r,type:t,data:JSON.stringify(o),Accept:"*/*",contentType:"application/json;charset=utf-8",dataType:"json",traditional:!0,timeout:1e4,success:function(e,t,r){if(e.code){var o=e.msg||"服务器开小差了，稍后再试吧";return a&&"function"==typeof a&&a(o),void console.error(o)}try{n(e,r)}catch(e){console.error(e)}},error:function(e,t){var r,o="服务繁忙，稍后再试吧";switch(e.status){case 404:o="您访问的内容走丢了…";break;default:switch(t){case"timeout":o="网络开小差了，稍后再试吧";break;case"abort":o="服务繁忙，休息一下再说吧";break;case"error":o="当前服务繁忙，请稍后再试";break;default:o=(r=e.responseText?JSON.parse(e.responseText):{}).msg||(r.error||{}).message||"服务繁忙，稍后再试吧"}}a&&"function"==typeof a&&a(o),console.error(o)}};e.ajax(s)}},{key:"getApiDataFromCache",value:function(e){return"caches"in window?(console.log(window.caches),caches.match(e).then((function(e){return console.log(3,e),e?e.json():null}))):Promise.resolve()}}]),t}()}).call(this,r(18))},62:function(e,t){if(String.prototype.format||(String.prototype.format=function(){var e=this,t=Array.prototype.slice.call(arguments);return e.replace(/(\{(\d+)\})/g,(function(e,r,o){return void 0===t[o]?e:t[o]}))}),!String.prototype.trim){var r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;String.prototype.trim=function(){return this.replace(r,"")}}Date.prototype.Format||(Date.prototype.Format=function(e){var t=e,r={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var o in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?r[o]:("00"+r[o]).substr((""+r[o]).length)));return t}),Number.prototype.toFixed=function(e){var t=Math.pow(10,e),r=this*t+.5;return(r=parseInt(r,10)/t)+""}},7:function(e,t,r){"use strict";var o=r(11),n=r.n(o),a=r(33),s=r.n(a);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var c=s.a.getApiHost(),u=s.a.getWsApiHost(),l={fixData:c+"/server/fixData",login:c+"/server/login",refreshValidateCode:c+"/server/refreshValidateCode",getValidateCode:c+"/server/getValidateCode",getUserList:c+"/server/getUserList",getAllUserInfoForSimple:c+"/server/getAllUserInfoForSimple",getUserListByAdmin:c+"/server/getUserListByAdmin",activeRegisterMember:c+"/server/activeRegisterMember",deleteRegisterMember:c+"/server/deleteRegisterMember",forGetPwd:c+"/server/forGetPwd",pushInfo:c+"/server/pushInfo",updateInfo:c+"/server/updateInfo",jsList:"//www.webfunny.cn/webfunny/manifest.json",sendRegisterEmail:c+"/server/sendRegisterEmail",register:c+"/server/register",resetPwd:c+"/server/resetPwd",registerCheck:c+"/server/registerCheck",registerForAdmin:c+"/server/registerForAdmin",userList:c+"/server/user/list",projectList:c+"/server/project/list",projectDetail:c+"/server/project/detail",updateStartList:c+"/server/project/updateStartList",updateMonitorCode:c+"/server/project/updateMonitorCode",allProjectList:c+"/server/project/list/all",getProjectDetailList:c+"/server/project/detailList",getProjectInfoInRealTime:c+"/server/project/getProjectInfoInRealTime",getProjectInfoListInRealTime:c+"/server/project/getProjectInfoListInRealTime",openProject:c+"/server/openProject",getTodayFlowDataByTenMin:c+"/server/getTodayFlowDataByTenMin",getTodayFlowData:c+"/server/getTodayFlowData",getErrorInfo:c+"/server/getErrorInfo",getWarningMsg:c+"/server/getWarningMsg",getWarningList:c+"/server/getWarningList",getJsErrorCountByDay:c+"/server/getJavascriptErrorInfoListByDay",getConsoleErrorCountByDay:c+"/server/getConsoleErrorInfoListByDay",getJavascriptErrorCountListByHour:c+"/server/getJavascriptErrorCountListByHour",getJsErrorCountByHour:c+"/server/getJsErrorCountByHour",getJsConsoleErrorCountByHour:c+"/server/getJavascriptConsoleErrorInfoListByHour",getJsErrorSort:c+"/server/getJavascriptErrorSort",getJsErrorSortInfo:c+"/server/getJavascriptErrorSortInfo",getConsoleErrorSort:c+"/server/getConsoleErrorSort",getJavascriptErrorCountByOs:c+"/server/getJavascriptErrorCountByOs",getJavascriptErrorCountByType:c+"/server/getJavascriptErrorCountByType",getJavascriptErrorListByMsg:c+"/server/getJavascriptErrorListByMsg",getJavascriptErrorAboutInfo:c+"/server/getJavascriptErrorAboutInfo",getJavascriptErrorDetail:function(e){return c+"/server/javascriptErrorInfo/"+e},getJavascriptErrorStackCode:c+"/server/getJavascriptErrorStackCode",getJavascriptErrorStackCodeForSource:c+"/server/getJavascriptErrorStackCodeForSource",getJavascriptErrorStackCodeForUrl:c+"/server/getJavascriptErrorStackCodeForUrl",getJavascriptErrorListByPage:c+"/server/getJavascriptErrorListByPage",setIgnoreJavascriptError:c+"/server/ignoreError",ignoreErrorByApplication:c+"/server/ignoreErrorByApplication",searchUserBehaviors:c+"/server/searchCustomerBehaviors",searchCustomerInfo:c+"/server/searchCustomerInfo",searchUserBehaviorsForExample:"http://47.105.132.73:8011/server/searchUserBehaviorsForExample",searchCustomerInfoForExample:"http://47.105.132.73:8011/server/searchCustomerInfoForExample",getScreenShotInfoListByPage:c+"/server/getScreenShotInfoListByPage",getCustomerCountByTime:c+"/server/getCustomerCountByTime",getPageLoadTimeByDate:c+"/server/getPageLoadTimeByDate",getResourceLoadInfoListByDay:c+"/server/getResourceLoadInfoListByDay",getResourceErrorCountByDay:c+"/server/getResourceErrorCountByDay",getResourceErrorCountByHour:c+"/server/getResourceErrorCountByHour",getHttpErrorCountByHour:c+"/server/getHttpErrorCountByHour",getPageLoadTimeForAll:c+"/server/getPageLoadTimeForAll",getAvgLoadTimeForAllByHour:c+"/server/getAvgLoadTimeForAllByHour",getPageLoadTimeByType:c+"/server/getPageLoadTimeByType",getPageLoadTimeListByUrl:c+"/server/getPageLoadTimeListByUrl",getPageLoadTimePercent:c+"/server/getPageLoadTimePercent",getHttpLoadTimeForAll:c+"/server/getHttpLoadTimeForAll",getHttpLoadTimePercent:c+"/server/getHttpLoadTimePercent",getHttpLoadTimeListByUrl:c+"/server/getHttpLoadTimeListByUrl",getHttpErrorCountByDay:c+"/server/getHttpErrorCountByDay",getHttpErrorListByDay:c+"/server/getHttpErrorListByDay",getHttpErrorListByUrl:c+"/server/getHttpErrorListByUrl",getHttpCountForLoadTimeGroupByDay:c+"/server/getHttpCountForLoadTimeGroupByDay",getHttpUrlCountListByHour:c+"/server/getHttpUrlCountListByHour",getHttpUrlCountForHourByMinutes:c+"/server/getHttpUrlCountForHourByMinutes",getPageCountForLoadTimeGroupByDay:c+"/server/getPageCountForLoadTimeGroupByDay",getPageCountForLoadTimeByDay:c+"/server/getPageCountForLoadTimeByDay",getHttpUrlListForLoadTime:c+"/server/getHttpUrlListForLoadTime",getPageUrlListForLoadTime:c+"/server/getPageUrlListForLoadTime",getHttpUrlUserCount:c+"/server/getHttpUrlUserCount",getDifferentKindAvgLoadTimeListByHour:c+"/server/getDifferentKindAvgLoadTimeListByHour",getDifferentKindAvgLoadTimeByHourForPageUrl:c+"/server/getDifferentKindAvgLoadTimeByHourForPageUrl",getPageUrlUserCount:c+"/server/getPageUrlUserCount",getPagesByHttpUrl:c+"/server/getPagesByHttpUrl",getPageUrlCountListByHour:c+"/server/getPageUrlCountListByHour",getPageUrlCountForHourByMinutes:c+"/server/getPageUrlCountForHourByMinutes",getPvCountByHour:c+"/server/getPvCountByHour",getNewCustomerCountByHour:c+"/server/getNewCustomerCountByHour",getCusLeavePercentByHour:c+"/server/getCusLeavePercentByHour",getInstallCountByHour:c+"/server/getInstallCountByHour",uvCountForMonth:c+"/server/uvCountForMonth",getUvCountByHour:c+"/server/getUvCountByHour",getAliveCusInRealTime:c+"/server/getAliveCusInRealTime",getConcurrencyByMinuteInHour:c+"/server/getConcurrencyByMinuteInHour",getUserCountByHour:c+"/server/getUserCountByHour",getVersionCountOrderByCount:c+"/server/getVersionCountOrderByCount",getCityCountOrderByCount:c+"/server/getCityCountOrderByCount",getCityCountOrderByCountTop20:c+"/server/getCityCountOrderByCountTop20",getDeviceCountOrderByCount:c+"/server/getDeviceCountOrderByCount",getDeviceSizeCountOrderByCount:c+"/server/getDeviceSizeCountOrderByCount",getOsCountOrderByCount:c+"/server/getOsCountOrderByCount",getProvinceCountBySeconds:c+"/server/getProvinceCountBySeconds",getLocationDataForMap:c+"/server/getLocationDataForMap",getTagsPercent:c+"/server/getTagsPercent",getPvCountBySecond:c+"/server/getPvUvCountBySecond",getPvCountByMinute:c+"/server/getPvCountByMinute",getHttpCountByMinute:c+"/server/getHttpCountByMinute",getJavascriptErrorCountByMinute:c+"/server/getJavascriptErrorCountByMinute",getPvListByPage:c+"/server/getPvListByPage",getPvListTotalCountByTime:c+"/server/getPvListTotalCountByTime",getSevenDaysLeftCount:c+"/server/getSevenDaysLeftCount",getYesterdayLeftPercent:c+"/server/getYesterdayLeftPercent",getStayTimeForEveryDay:c+"/server/getStayTimeForEveryDay",getVideosEvent:c+"/server/getVideosEvent",createConfig:c+"/server/createConfig",changeLogServerStatus:c+"/server/changeLogServerStatus",changeMonitorStatus:c+"/server/changeMonitorStatus",changeLogServerStatusByWebMonitorId:c+"/server/changeLogServerStatusByWebMonitorId",changeWaitCounts:c+"/server/changeWaitCounts",changeSaveDays:c+"/server/changeSaveDays",saveMysqlConfigs:c+"/server/saveMysqlConfigsForNew",getLogServerStatus:c+"/server/getLogServerStatusForNew",getStopWebMonitorIdList:c+"/server/getStopWebMonitorIdList",getTeamList:c+"/server/getTeamList",addTeamMember:c+"/server/addTeamMember",getAllTeamList:c+"/server/getAllTeamList",createNewTeam:c+"/server/createNewTeam",deleteTeam:c+"/server/deleteTeam",moveProToTeam:c+"/server/moveProToTeam",updateTeamProjects:c+"/server/updateTeamProjects",createNewProject:c+"/server/createNewProject",checkProjectCount:c+"/server/checkProjectCount",getUserTags:c+"/server/getUserTags",saveUserTags:c+"/server/saveUserTags",getProjectConfig:c+"/server/getProjectConfig",saveProjectConfig:c+"/server/saveProjectConfig",deleteProject:c+"/server/deleteProject",sendEmailCode:"//www.webfunny.cn/server/sendEmailCode",getPurchaseCodeDetail:"//www.webfunny.cn/server/getPurchaseCodeDetail",connectUser:c+"/server/connectUser",disconnectUser:c+"/server/disconnectUser",connectUserRecord:c+"/server/connectUserRecord",getDebugInfos:c+"/server/getDebugInfos",getHistoryDebugInfos:c+"/server/getHistoryDebugInfos",getDebugInfosForPage:c+"/server/getDebugInfosForPage",getDebugInfoForLocalInfo:c+"/server/getDebugInfoForLocalInfo",clearLocalInfo:c+"/server/clearLocalInfo",getDebugInfoForVideo:c+"/server/getDebugInfoForVideo",createLocationPointGroup:c+"/server/createLocationPointGroup",getGroupNameList:c+"/server/getGroupNameList",getLocationPointGroupList:c+"/server/getLocationPointGroupList",deleteLocationPointGroup:c+"/server/deleteLocationPointGroup",createLocationPointType:c+"/server/createLocationPointType",getLocationPointTypeList:c+"/server/getLocationPointTypeList",deleteLocationPointType:c+"/server/deleteLocationPointType",locationPointCountForMonth:c+"/server/locationPointCountForMonth",createFunnelType:c+"/server/createFunnelType",getFunnelList:c+"/server/getFunnelList",deleteFunnel:c+"/server/deleteFunnel",getLocationPointForDay:c+"/server/getLocationPointForDay",getFunnelLeftCountForDay:c+"/server/getFunnelLeftCountForDay",getCheckTime:c+"/server/getCheckTime",changeCheckTime:c+"/server/changeCheckTime",getJsErrorConfig:c+"/server/getJsErrorConfig",changeJsErrorConfig:c+"/server/changeJsErrorConfig",getConsoleErrorConfig:c+"/server/getConsoleErrorConfig",changeConsoleErrorConfig:c+"/server/changeConsoleErrorConfig",getHttpErrorConfig:c+"/server/getHttpErrorConfig",changeHttpErrorConfig:c+"/server/changeHttpErrorConfig",getResourceErrorConfig:c+"/server/getResourceErrorConfig",changeResourceErrorConfig:c+"/server/changeResourceErrorConfig",createNewAlarmRule:c+"/server/createNewAlarmRule",getAllAlarmRule:c+"/server/getAllAlarmRule",saveAlarmInfo:c+"/server/saveAlarmInfo",deleteAlarmRule:c+"/server/deleteAlarmRule",getPvUvInRealTimeByMinute:c+"/server/getPvUvInRealTimeByMinute",getHttpInfoInRealTimeByMinute:c+"/server/getHttpInfoInRealTimeByMinute",getErrorInfoInRealTimeByMinute:c+"/server/getErrorInfoInRealTimeByMinute",getInitErrorInfoInRealTimeByTimeSize:c+"/server/getInitErrorInfoInRealTimeByTimeSize",mysqlStatus:c+"/server/mysqlStatus",getSysInfo:c+"/server/getSysInfo",getAllTableList:c+"/server/getAllTableList",createPurchaseCode:c+"/server/createPurchaseCode",checkTableCreateCommand:c+"/server/checkTableCreateCommand",testBehaviors:c+"/server/testBehaviors",upLog:c+"/server/upLog",getMessageByType:c+"/server/getMessageByType",readMessage:c+"/server/readMessage",readAll:c+"/server/readAll"},g={wsGetProvinceCountBySeconds:u+"/socket/wsGetProvinceCountBySeconds",wsGetDebugInfo:u+"/socket/wsGetDebugInfo"};t.a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(r,!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},l,{},{},{},g)}});