text: (this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"00b8":function(t,e,i){"use strict";i.r(e);var a=i("dde2");for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);var r,o,s,l,c=i("f0c5"),u=Object(c["a"])(a["default"],r,o,!1,null,null,null,!1,s,l);e["default"]=u.exports},"01f0":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{showHeader:!0,afterHeaderOpacity:1,headerPosition:"fixed",headerTop:null,statusTop:null,nVueTitle:null,user:{username:"\u6e38\u5ba21002",face:"/static/img/face.jpg",signature:"\u70b9\u51fb\u6635\u79f0\u8df3\u8f6c\u767b\u5f55/\u6ce8\u518c\u9875",integral:0,balance:99,envelope:0},orderList:[{text:"\u7b14\u8bb0\u672c",icon:"fukuan"},{text:"\u6bcf\u5929\u8bb0",icon:"fahuo"},{text:"\u5f85\u6536\u8d27",icon:"shouhuo"},{text:"\u5f85\u8bc4\u4ef7",icon:"pingjia"},{text:"\u9000\u6362\u8d27",icon:"tuihuo"}],mytoolbarList:[{url:"../../user/keep/keep",text:"\u6211\u7684\u6536\u85cf",img:"/static/img/user/point.png"},{url:"../../user/coupon/coupon",text:"\u6211\u7684\u597d\u53cb",img:"/static/img/user/quan.png"},{url:"",text:"\u793c\u5305",img:"/static/img/user/renw.png"},{url:"",text:"\u9886\u7ea2\u5305",img:"/static/img/user/momey.png"},{url:"../../user/address/address",text:"\u6536\u8d27\u5730\u5740",img:"/static/img/user/addr.png"},{url:"",text:"\u8d26\u6237\u5b89\u5168",img:"/static/img/user/security.png"},{url:"",text:"\u94f6\u884c\u5361",img:"/static/img/user/bank.png"},{url:"",text:"\u62bd\u5956",img:"/static/img/user/choujiang.png"}]}},onLoad:function(){t("log","0000"," at pages/tabBar/my/my.vue:155")},methods:{}};e.default=i}).call(this,i("0de9")["default"])},"0a5a":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(i("a34a")),n=r(i("11ae"));function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return h(t)||u(t,e)||l(t,e)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,e){if(t){if("string"===typeof t)return c(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}function u(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var i=[],a=!0,n=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(a=(o=s.next()).done);a=!0)if(i.push(o.value),e&&i.length===e)break}catch(l){n=!0,r=l}finally{try{a||null==s["return"]||s["return"]()}finally{if(n)throw r}}return i}}function h(t){if(Array.isArray(t))return t}function d(t,e,i,a,n,r,o){try{var s=t[r](o),l=s.value}catch(c){return void i(c)}s.done?e(l):Promise.resolve(l).then(a,n)}function f(t){return function(){var e=this,i=arguments;return new Promise((function(a,n){var r=t.apply(e,i);function o(t){d(r,a,n,o,s,"next",t)}function s(t){d(r,a,n,o,s,"throw",t)}o(void 0)}))}}var p={BASEURI:"http://pl55d74.nat.ipyingshe.com/",ESURI:"http://localhost:8081/api/",es:{searchList:"search"},login:{submitLocaltion:"single/home/submitLocaltion",login:"wx/auth/login",appletLogin_by_weixin:"applet/login_by_weixin",currentUser:"api-uaa/oauth/member/userinfo",simpleReg:"api-uaa/oauth/user/reg/token",updatePassword:"notAuth/home/updatePassword",loginByCode:"notAuth/home/loginByCode",reg:"notAuth/home/reg",sendCodes:"notAuth/home/sms/codes"},task:{taskList:"/wx/task/index",taskDetail:"/wx/task/index",createTask:"/wx/task/add",deleteTask:"/wx/task/delete",updateTask:"/wx/task/update"},apiCall:function(e,i,n,r){var s=this;return f(a.default.mark((function l(){var c,u,h,d,f,p,g,x,v,y,_;return a.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(r||uni.showLoading({title:"\u8bf7\u7a0d\u5019",mask:!0}),c=s.BASEURI+i,h=uni.getStorageSync("userToken"),h&&(d=uni.getStorageSync("userInfo"),d&&d.id&&(f=d.id,f&&(n.memberId=f,u=h.token_type+" "+h.access_token))),t("log",h," at common/api.js:60"),"api-uaa/oauth/user/ums/token"!=i){a.next=19;break}return a.next=8,uni.request({url:c,data:n,method:e,header:{client_id:"app",client_secret:"app",storeid:1,Authorization:u||""}});case 8:return p=a.sent,g=o(p,2),g[0],x=g[1],r||uni.hideLoading(),t("log",x," at common/api.js:79"),"User token expired!"==x.data.message&&(uni.showToast({title:"\u8bf7\u5148\u767b\u5f55",icon:"none"}),uni.navigateTo({url:"/pages/public/login"})),"\u8bf7\u5148\u767b\u5f55"==x.data.message&&(uni.showToast({title:"\u8bf7\u5148\u767b\u5f55",icon:"none"}),uni.navigateTo({url:"/pages/public/login"})),a.abrupt("return",x.data);case 19:return a.next=21,uni.request({url:c,data:n,method:e,header:{client_id:"app",client_secret:"app",storeid:1,Authorization:u||""}});case 21:return v=a.sent,y=o(v,2),y[0],_=y[1],r||uni.hideLoading(),t("log",c," at common/api.js:118"),t("log",_," at common/api.js:119"),401==_.data.resp_code&&(uni.showToast({title:"\u8bf7\u5148\u767b\u5f55",icon:"none"}),uni.navigateTo({url:"/pages/public/login"})),"\u8bf7\u5148\u767b\u5f55"==_.data.message&&(uni.showToast({title:"\u8bf7\u5148\u767b\u5f55",icon:"none"}),uni.navigateTo({url:"/pages/public/login"})),a.abrupt("return",_.data);case 31:case"end":return a.stop()}}),l)})))()},apiEsCall:function(e,i,r,s){var l=this;return f(a.default.mark((function c(){var u,h,d,f,p,g;return a.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return s||uni.showLoading({title:"\u8bf7\u7a0d\u5019",mask:!0}),u=l.ESURI+i,h="".concat(n.default.state.userInfo.tokenHead).concat(n.default.state.userInfo.token),a.next=5,uni.request({url:u,data:r,method:e,header:{Authorization:h||""}});case 5:return d=a.sent,f=o(d,2),p=f[0],g=f[1],t("log",p," at common/api.js:173"),s||uni.hideLoading(),a.abrupt("return",g.data);case 12:case"end":return a.stop()}}),c)})))()}};e.default=p}).call(this,i("0de9")["default"])},"0bf1":function(t,e,i){"use strict";i.r(e);var a=i("8ee7"),n=i("6591");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=l.exports},"0cc9":function(t,e,i){"undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(i){return e.resolve(t()).then((function(){return i}))}),(function(i){return e.resolve(t()).then((function(){throw i}))}))}),uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/tabBar/index/index",(function(){return Vue.extend(i("c4b7").default)})),__definePage("pages/public/login/login",(function(){return Vue.extend(i("5ab8").default)})),__definePage("pages/study/study",(function(){return Vue.extend(i("c777").default)})),__definePage("pages/tabBar/my/my",(function(){return Vue.extend(i("1735").default)})),__definePage("pages/tabBar/workbench/workbench",(function(){return Vue.extend(i("2687").default)})),__definePage("pages/tabBar/dataArea/dataArea",(function(){return Vue.extend(i("6b16").default)})),__definePage("pages/tabBar/workbench/workForm/workForm",(function(){return Vue.extend(i("675f").default)}))},"0d2d":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",[t._t("default",null,{_i:1})],2)},r=[]},"0de9":function(t,e,i){"use strict";function a(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function n(){return"string"===typeof __channelId__&&__channelId__}function r(t,e){switch(a(e)){case"Function":return"function() { [native code] }";default:return e}}function o(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];console[t].apply(console,i)}function s(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var o=e.shift();if(n())return e.push(e.pop().replace("at ","uni-app:///")),console[o].apply(console,e);var s=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,r)+"---END:JSON---"}catch(n){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var i=a(t).toUpperCase();t="NUMBER"===i||"BOOLEAN"===i?"---BEGIN:"+i+"---"+t+"---END:"+i+"---":String(t)}return t})),l="";if(s.length>1){var c=s.pop();l=s.join("---COMMA---"),0===c.indexOf(" at ")?l+=c:l+="---COMMA---"+c}else l=s[0];console[o](l)}i.r(e),i.d(e,"log",(function(){return o})),i.d(e,"default",(function(){return s}))},"11ae":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(i("a34a")),n=o(i("8bbf")),r=o(i("2f62"));function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e,i,a,n,r,o){try{var s=t[r](o),l=s.value}catch(c){return void i(c)}s.done?e(l):Promise.resolve(l).then(a,n)}function l(t){return function(){var e=this,i=arguments;return new Promise((function(a,n){var r=t.apply(e,i);function o(t){s(r,a,n,o,l,"next",t)}function l(t){s(r,a,n,o,l,"throw",t)}o(void 0)}))}}n.default.use(r.default);var c=new r.default.Store({state:{hasLogin:!1,userName:"",loginProvider:"",openid:null},mutations:{login:function(t,e){t.hasLogin=!0,t.loginProvider=e},logout:function(t){t.hasLogin=!1,t.openid=null},setOpenid:function(t,e){t.openid=e}},getters:{currentColor:function(t){return t.colorList[t.colorIndex]}},actions:{getUserOpenId:function(){var e=l(a.default.mark((function e(i){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=i.commit,r=i.state,e.next=3,new Promise((function(e,i){r.openid?e(r.openid):setTimeout((function(){var i="123456789";t("log","uni.request mock openid["+i+"]"," at store/index.js:48"),n("setOpenid",i),e(i)}),1e3)}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));function i(t){return e.apply(this,arguments)}return i}()}}),u=c;e.default=u}).call(this,i("0de9")["default"])},"129f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{}},provide:function(){return{swipeaction:this}},created:function(){this.children=[]},methods:{closeOther:function(t){this.openItem&&this.openItem!==t&&(this.openItem.button.show="none"),this.openItem=t}}};e.default=a},"144e":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{showHeader:!0,afterHeaderOpacity:1,headerPosition:"fixed",headerTop:null,statusTop:null,nVueTitle:null,city:"\u7231\u60c5",currentSwiper:0,swiperList:[{id:1,src:"url1",img:"/static/img/sexy1.png"},{id:2,src:"url2",img:"/static/img/sexy2.png"},{id:3,src:"url3",img:"/static/img/sexy3.png"},{id:4,src:"url3",img:"/static/img/sexy4.png"}],categoryList:[{id:1,name:"\u8d4f\u56fe",img:"/static/img/category/1.png"},{id:2,name:"\u770b\u4e66",img:"/static/img/category/2.png"},{id:3,name:"\u97f3\u4e50",img:"/static/img/category/3.png"},{id:4,name:"\u6e38\u620f",img:"/static/img/category/4.png"},{id:5,name:"\u770b\u5267",img:"/static/img/category/5.png"},{id:6,name:"\u8f6f\u4ef6",img:"/static/img/category/6.png"},{id:7,name:"\u89c6\u9891",img:"/static/img/category/7.png"},{id:8,name:"\u82f1\u8bed",img:"/static/img/category/8.png"},{id:9,name:"\u6f2b\u753b",img:"/static/img/category/5.png"},{id:10,name:"\u65b0\u95fb",img:"/static/img/category/6.png"},{id:11,name:"\u8d4f\u82b1",img:"/static/img/category/7.png"},{id:12,name:"\u70ed\u70b9",img:"/static/img/category/8.png"}],Promotion:[],productList:[{goods_id:0,img:"/static/img/goods/p1.jpg",name:"\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0",price:"\uffe5168",slogan:"1235\u4eba\u4ed8\u6b3e"},{goods_id:1,img:"/static/img/goods/p2.jpg",name:"\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0",price:"\uffe5168",slogan:"1235\u4eba\u4ed8\u6b3e"},{goods_id:2,img:"/static/img/goods/p3.jpg",name:"\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0",price:"\uffe5168",slogan:"1235\u4eba\u4ed8\u6b3e"},{goods_id:3,img:"/static/img/goods/p4.jpg",name:"\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0",price:"\uffe5168",slogan:"1235\u4eba\u4ed8\u6b3e"},{goods_id:4,img:"/static/img/goods/p5.jpg",name:"\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0",price:"\uffe5168",slogan:"1235\u4eba\u4ed8\u6b3e"},{goods_id:5,img:"/static/img/goods/p6.jpg",name:"\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0",price:"\uffe5168",slogan:"1235\u4eba\u4ed8\u6b3e"},{goods_id:6,img:"/static/img/goods/p7.jpg",name:"\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0",price:"\uffe5168",slogan:"1235\u4eba\u4ed8\u6b3e"},{goods_id:7,img:"/static/img/goods/p8.jpg",name:"\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0",price:"\uffe5168",slogan:"1235\u4eba\u4ed8\u6b3e"},{goods_id:8,img:"/static/img/goods/p9.jpg",name:"\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0",price:"\uffe5168",slogan:"1235\u4eba\u4ed8\u6b3e"},{goods_id:9,img:"/static/img/goods/p10.jpg",name:"\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0",price:"\uffe5168",slogan:"1235\u4eba\u4ed8\u6b3e"}],loadingText:"\u6b63\u5728\u52a0\u8f7d..."}},onPageScroll:function(t){this.headerPosition=t.scrollTop>=0?"fixed":"absolute",this.headerTop=t.scrollTop>=0?null:0,this.statusTop=t.scrollTop>=0?null:-this.statusHeight+"px"},onPullDownRefresh:function(){setTimeout((function(){uni.stopPullDownRefresh()}),1e3)},onReachBottom:function(){uni.showToast({title:"\u89e6\u53d1\u4e0a\u62c9\u52a0\u8f7d"});var t=this.productList.length;if(t>=40)return this.loadingText="\u5230\u5e95\u4e86",!1;for(var e=this.productList[t-1].goods_id,i=1;i<=10;i++){var a=e+i,n={goods_id:a,img:"/static/img/goods/p"+(a%10==0?10:a%10)+".jpg",name:"\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0\u5546\u54c1\u540d\u79f0",price:"\uffe5168",slogan:"1235\u4eba\u4ed8\u6b3e"};this.productList.push(n)}},onLoad:function(){var t=this;this.nVueTitle=uni.getSubNVueById("homeTitleNvue"),this.nVueTitle.onMessage((function(e){var i=e.data.type;"focus"==i&&t.toSearch()})),this.showHeader=!1,this.statusHeight=plus.navigator.getStatusbarHeight(),this.Timer(),this.loadPromotion()},methods:{loadPromotion:function(){for(var t=new Date,e=t.getFullYear(),i=t.getMonth()+1,a=t.getDate(),n=e+"/"+i+"/"+a+" 23:59:59",r=[{title:"\u6574\u70b9\u79d2\u6740",ad:"\u6574\u5929\u79d2\u6740\u4e13\u533a",img:"/static/img/s1.jpg",countdown:!1},{title:"\u9650\u65f6\u62a2\u8d2d",ad:"\u6bcf\u592923\u70b9\u4e0a\u7ebf",img:"/static/img/s2.jpg",countdown:n}],o=0;o<r.length;o++){var s=r[o];if(s.countdown){var l="00",c="00",u="00",h=new Date,d=new Date(n);if(!(h>=d)){var f=parseInt((d.getTime()-h.getTime())/1e3);l=parseInt(f/3600),c=parseInt(f%3600/60),u=f%60,l=l<10?"0"+l:l,c=c<10?"0"+c:c,u=u<10?"0"+u:u}r[o].countdown={h:l,m:c,s:u}}}this.Promotion=r},Timer:function(){var t=this;setInterval((function(){if(t.Promotion.length>0)for(var e=0;e<t.Promotion.length;e++){var i=t.Promotion[e];i.countdown&&(0==i.countdown.h&&0==i.countdown.m&&0==i.countdown.s||(i.countdown.s>0?(i.countdown.s--,i.countdown.s=i.countdown.s<10?"0"+i.countdown.s:i.countdown.s):i.countdown.m>0?(i.countdown.m--,i.countdown.m=i.countdown.m<10?"0"+i.countdown.m:i.countdown.m,i.countdown.s=59):i.countdown.h>0&&(i.countdown.h--,i.countdown.h=i.countdown.h<10?"0"+i.countdown.h:i.countdown.h,i.countdown.m=59,i.countdown.s=59),t.Promotion[e].countdown=i.countdown))}}),1e3)},toMsg:function(){uni.navigateTo({url:"../../msg/msg"})},toSearch:function(){uni.showToast({title:"\u5efa\u8bae\u8df3\u8f6c\u5230\u65b0\u9875\u9762\u505a\u641c\u7d22\u529f\u80fd"})},toSwiper:function(t){uni.showToast({title:t.src,icon:"none"})},toCategory:function(t){uni.setStorageSync("catName",t.name),uni.navigateTo({url:"../../goods/goods-list/goods-list?cid="+t.id+"&name="+t.name})},toPromotion:function(t){uni.showToast({title:t.title,icon:"none"})},toGoods:function(t){uni.showToast({title:"\u5546\u54c1"+t.goods_id,icon:"none"}),uni.navigateTo({url:"../../goods/goods"})},swiperChange:function(t){this.currentSwiper=t.detail.current}}};e.default=a},1735:function(t,e,i){"use strict";i.r(e);var a=i("63f5"),n=i("6957");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=l.exports},"18b6":function(t,e,i){"use strict";var a=function(t){(t.options.wxs||(t.options.wxs={}))["swipe"]=function(t){var e=10;function i(t,e,i,a){var n=a.getState(),r=JSON.parse(t);r&&r.data&&0!==r.data.length&&(n.leftWidth=r.data[0].width,n.rightWidth=r.data[1].width,n.threshold=a.getDataset().threshold,r.show&&"none"!==r.show?c(r.show,a,i):(n.left&&c("none",a,i),h(a)))}function a(t,e){var i=t.instance,a=i.getDataset().disabled,n=i.getState();a=("string"===typeof a?JSON.parse(a):a)||!1,a||(i.requestAnimationFrame((function(){i.removeClass("ani"),e.callMethod("closeSwipe")})),n.x=n.left||0,d(t,e))}function n(t,e){var i=t.instance,a=i.getDataset().disabled,n=i.getState();a=("string"===typeof a?JSON.parse(a):a)||!1,a||(f(t),"horizontal"===n.direction&&(t.preventDefault&&t.preventDefault(),o(n.x+n.deltaX,i,e)))}function r(t,e){var i=t.instance,a=i.getDataset().disabled,n=i.getState();a=("string"===typeof a?JSON.parse(a):a)||!1,a||l(n.left,i,e)}function o(t,e,i){t=t||0;var a=e.getState(),n=a.leftWidth,r=a.rightWidth;a.left=s(t,-r,n),e.requestAnimationFrame((function(){e.setStyle({transform:"translateX("+a.left+"px)","-webkit-transform":"translateX("+a.left+"px)"})}))}function s(t,e,i){return Math.min(Math.max(t,e),i)}function l(t,e,i){var a=e.getState(),n=a.threshold,r=(a.position,a.isopen||"none"),o=a.leftWidth,s=a.rightWidth;0!==a.deltaX?c("none"===r&&s>0&&-t>n||"none"!==r&&s>0&&s+t<n?"right":"none"===r&&o>0&&t>n||"none"!==r&&o>0&&o-t<n?"left":"none",e,i):c("none",e,i)}function c(t,e,i){var a=e.getState(),n=(a.position,a.leftWidth),r=a.rightWidth,s="";switch(a.isopen=a.isopen?a.isopen:"none",t){case"left":s=n;break;case"right":s=-r;break;default:s=0}a.isopen!==t&&(a.throttle=!0,i.callMethod("change",{open:t})),a.isopen=t,e.requestAnimationFrame((function(){e.addClass("ani"),o(s,e,i)}))}function u(t,i){return t>i&&t>e?"horizontal":i>t&&i>e?"vertical":""}function h(t){var e=t.getState();e.direction="",e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0}function d(t){var e=t.instance,i=e.getState();h(e);var a=t.touches[0];i.startX=a.clientX,i.startY=a.clientY}function f(t){var e=t.instance,i=e.getState(),a=t.touches[0];i.deltaX=a.clientX-i.startX,i.deltaY=a.clientY-i.startY,i.offsetX=Math.abs(i.deltaX),i.offsetY=Math.abs(i.deltaY),i.direction=i.direction||u(i.offsetX,i.offsetY)}return t.exports={sizeReady:i,touchstart:a,touchmove:n,touchend:r},t.exports}({exports:{}})};e["a"]=a},"192f":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","qiun-columns"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","qiun-charts"),attrs:{_i:1}},[i("canvas",{staticClass:t._$s(2,"sc","charts"),attrs:{id:"canvasGauge",_i:2}})]),i("view",{staticClass:t._$s(3,"sc","header"),style:t._$s(3,"s",{position:t.headerPosition,top:t.headerTop}),attrs:{_i:3}},[i("view",{staticClass:t._$s(4,"sc","balance-info"),attrs:{_i:4}},[i("view",{staticClass:t._$s(5,"sc","left"),attrs:{_i:5}},[i("view",{staticClass:t._$s(6,"sc","box"),attrs:{_i:6}},[i("view",{staticClass:t._$s(7,"sc","num"),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.user.integral)))]),i("view",{staticClass:t._$s(8,"sc","text"),attrs:{_i:8}})]),i("view",{staticClass:t._$s(9,"sc","box"),attrs:{_i:9}},[i("view",{staticClass:t._$s(10,"sc","num"),attrs:{_i:10}},[t._v(t._$s(10,"t0-0",t._s(t.user.envelope)))]),i("view",{staticClass:t._$s(11,"sc","text"),attrs:{_i:11}})]),i("view",{staticClass:t._$s(12,"sc","box"),attrs:{_i:12}},[i("view",{staticClass:t._$s(13,"sc","num"),attrs:{_i:13}},[t._v(t._$s(13,"t0-0",t._s(t.user.balance)))]),i("view",{staticClass:t._$s(14,"sc","text"),attrs:{_i:14}})])])])]),i("view",{staticClass:t._$s(15,"sc","content"),attrs:{_i:15}},[i("view",{staticClass:t._$s(16,"sc","list"),attrs:{_i:16}},[i("view",{staticClass:t._$s(17,"sc","row"),attrs:{_i:17}},[i("view",{staticClass:t._$s(18,"sc","title"),attrs:{_i:18}}),i("view",{staticClass:t._$s(19,"sc","right"),attrs:{_i:19}},[i("view",{staticClass:t._$s(20,"sc","tis"),attrs:{_i:20}},[i("image",{attrs:{_i:21}})]),i("view",{staticClass:t._$s(22,"sc","icon xiangyou"),attrs:{_i:22}})])]),i("view",{staticClass:t._$s(23,"sc","row"),attrs:{_i:23}},[i("view",{staticClass:t._$s(24,"sc","title"),attrs:{_i:24}}),i("view",{staticClass:t._$s(25,"sc","right"),attrs:{_i:25}},[i("view",{staticClass:t._$s(26,"sc","tis"),attrs:{_i:26}}),i("view",{staticClass:t._$s(27,"sc","icon xiangyou"),attrs:{_i:27}})])]),i("view",{staticClass:t._$s(28,"sc","row"),attrs:{_i:28}},[i("view",{staticClass:t._$s(29,"sc","title"),attrs:{_i:29}}),i("view",{staticClass:t._$s(30,"sc","right"),attrs:{_i:30}},[i("view",{staticClass:t._$s(31,"sc","tis"),attrs:{_i:31}}),i("view",{staticClass:t._$s(32,"sc","icon xiangyou"),attrs:{_i:32}})])]),i("view",{staticClass:t._$s(33,"sc","row"),attrs:{_i:33}},[i("view",{staticClass:t._$s(34,"sc","title"),attrs:{_i:34}}),i("view",{staticClass:t._$s(35,"sc","right"),attrs:{_i:35}},[i("view",{staticClass:t._$s(36,"sc","tis"),attrs:{_i:36}}),i("view",{staticClass:t._$s(37,"sc","icon xiangyou"),attrs:{_i:37}})])]),i("view",{staticClass:t._$s(38,"sc","row"),attrs:{_i:38}},[i("view",{staticClass:t._$s(39,"sc","title"),attrs:{_i:39}}),i("view",{staticClass:t._$s(40,"sc","right"),attrs:{_i:40}},[i("view",{staticClass:t._$s(41,"sc","tis"),attrs:{_i:41}}),i("view",{staticClass:t._$s(42,"sc","icon xiangyou"),attrs:{_i:42}})])])]),i("view",{staticClass:t._$s(43,"sc","list"),attrs:{_i:43}},[i("view",{staticClass:t._$s(44,"sc","row"),attrs:{_i:44}},[i("view",{staticClass:t._$s(45,"sc","title"),attrs:{_i:45}}),i("view",{staticClass:t._$s(46,"sc","right"),attrs:{_i:46}},[i("view",{staticClass:t._$s(47,"sc","tis"),attrs:{_i:47}}),i("view",{staticClass:t._$s(48,"sc","icon xiangyou"),attrs:{_i:48}})])]),i("view",{staticClass:t._$s(49,"sc","row"),attrs:{_i:49}},[i("view",{staticClass:t._$s(50,"sc","title"),attrs:{_i:50}}),i("view",{staticClass:t._$s(51,"sc","right"),attrs:{_i:51}},[i("view",{staticClass:t._$s(52,"sc","tis"),attrs:{_i:52}}),i("view",{staticClass:t._$s(53,"sc","icon xiangyou"),attrs:{_i:53}})])]),i("view",{staticClass:t._$s(54,"sc","row"),attrs:{_i:54}},[i("view",{staticClass:t._$s(55,"sc","title"),attrs:{_i:55}}),i("view",{staticClass:t._$s(56,"sc","right"),attrs:{_i:56}},[i("view",{staticClass:t._$s(57,"sc","tis"),attrs:{_i:57}}),i("view",{staticClass:t._$s(58,"sc","icon xiangyou"),attrs:{_i:58}})])])]),i("view",{staticClass:t._$s(59,"sc","list"),attrs:{_i:59}},[i("view",{staticClass:t._$s(60,"sc","row"),attrs:{_i:60}},[i("view",{staticClass:t._$s(61,"sc","title"),attrs:{_i:61}}),i("view",{staticClass:t._$s(62,"sc","right"),attrs:{_i:62}},[i("view",{staticClass:t._$s(63,"sc","tis"),attrs:{_i:63}}),i("view",{staticClass:t._$s(64,"sc","icon xiangyou"),attrs:{_i:64}})])]),i("view",{staticClass:t._$s(65,"sc","row"),attrs:{_i:65}},[i("view",{staticClass:t._$s(66,"sc","title"),attrs:{_i:66}}),i("view",{staticClass:t._$s(67,"sc","right"),attrs:{_i:67}},[i("view",{staticClass:t._$s(68,"sc","tis"),attrs:{_i:68}}),i("view",{staticClass:t._$s(69,"sc","icon xiangyou"),attrs:{_i:69}})])]),i("view",{staticClass:t._$s(70,"sc","row"),attrs:{_i:70}},[i("view",{staticClass:t._$s(71,"sc","title"),attrs:{_i:71}}),i("view",{staticClass:t._$s(72,"sc","right"),attrs:{_i:72}},[i("view",{staticClass:t._$s(73,"sc","tis"),attrs:{_i:73}}),i("view",{staticClass:t._$s(74,"sc","icon xiangyou"),attrs:{_i:74}})])]),i("view",{staticClass:t._$s(75,"sc","row"),attrs:{_i:75}},[i("view",{staticClass:t._$s(76,"sc","title"),attrs:{_i:76}}),i("view",{staticClass:t._$s(77,"sc","right"),attrs:{_i:77}},[i("view",{staticClass:t._$s(78,"sc","tis"),attrs:{_i:78}}),i("view",{staticClass:t._$s(79,"sc","icon xiangyou"),attrs:{_i:79}})])])])])])},r=[]},"1bb4":function(t,e,i){"use strict";i.r(e);var a=i("0d2d"),n=i("a375");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=l.exports},"1e01":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"uniList","mp-weixin":{options:{multipleSlots:!1}},props:{enableBackToTop:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},border:{type:Boolean,default:!0}},created:function(){this.firstChildAppend=!1},methods:{loadMore:function(t){this.$emit("scrolltolower")}}};e.default=a},2104:function(t,e,i){"use strict";i.r(e);var a=i("3465"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"226d":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={onLaunch:function(){t("log","App Launch"," at App.vue:4")},onShow:function(){t("log","App Show"," at App.vue:7")},onHide:function(){t("log","App Hide"," at App.vue:10")}};e.default=i}).call(this,i("0de9")["default"])},"23ba":function(t,e,i){"use strict";i.r(e);var a=i("b3f8"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},2687:function(t,e,i){"use strict";i.r(e);var a=i("b002"),n=i("efca");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=l.exports},"2f62":function(t,e,i){"use strict";i.r(e),function(t){
  /*!
   * vuex v3.4.0
   * (c) 2020 Evan You
   * @license MIT
   */
  function a(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:a});else{var i=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[a].concat(t.init):a,i.call(this,t)}}function a(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}i.d(e,"Store",(function(){return x})),i.d(e,"createNamespacedHelpers",(function(){return O})),i.d(e,"install",(function(){return L})),i.d(e,"mapActions",(function(){return R})),i.d(e,"mapGetters",(function(){return D})),i.d(e,"mapMutations",(function(){return F})),i.d(e,"mapState",(function(){return M}));var n="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},r=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){r.emit("vuex:action",t,e)}),{prepend:!0}))}function s(t,e){Object.keys(t).forEach((function(i){return e(t[i],i)}))}function l(t){return null!==t&&"object"===typeof t}function c(t){return t&&"function"===typeof t.then}function u(t,e){return function(){return t(e)}}var h=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=("function"===typeof i?i():i)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(t,e){this._children[t]=e},h.prototype.removeChild=function(t){delete this._children[t]},h.prototype.getChild=function(t){return this._children[t]},h.prototype.hasChild=function(t){return t in this._children},h.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},h.prototype.forEachChild=function(t){s(this._children,t)},h.prototype.forEachGetter=function(t){this._rawModule.getters&&s(this._rawModule.getters,t)},h.prototype.forEachAction=function(t){this._rawModule.actions&&s(this._rawModule.actions,t)},h.prototype.forEachMutation=function(t){this._rawModule.mutations&&s(this._rawModule.mutations,t)},Object.defineProperties(h.prototype,d);var f=function(t){this.register([],t,!1)};function p(t,e,i){if(e.update(i),i.modules)for(var a in i.modules){if(!e.getChild(a))return void 0;p(t.concat(a),e.getChild(a),i.modules[a])}}f.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},f.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,i){return e=e.getChild(i),t+(e.namespaced?i+"/":"")}),"")},f.prototype.update=function(t){p([],this.root,t)},f.prototype.register=function(t,e,i){var a=this;void 0===i&&(i=!0);var n=new h(e,i);if(0===t.length)this.root=n;else{var r=this.get(t.slice(0,-1));r.addChild(t[t.length-1],n)}e.modules&&s(e.modules,(function(e,n){a.register(t.concat(n),e,i)}))},f.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1];e.getChild(i).runtime&&e.removeChild(i)},f.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1];return e.hasChild(i)};var g;var x=function(t){var e=this;void 0===t&&(t={}),!g&&"undefined"!==typeof window&&window.Vue&&L(window.Vue);var i=t.plugins;void 0===i&&(i=[]);var a=t.strict;void 0===a&&(a=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var n=this,r=this,s=r.dispatch,l=r.commit;this.dispatch=function(t,e){return s.call(n,t,e)},this.commit=function(t,e,i){return l.call(n,t,e,i)},this.strict=a;var c=this._modules.root.state;w(this,c,[],this._modules.root),m(this,c),i.forEach((function(t){return t(e)}));var u=void 0!==t.devtools?t.devtools:g.config.devtools;u&&o(this)},v={state:{configurable:!0}};function y(t,e,i){return e.indexOf(t)<0&&(i&&i.prepend?e.unshift(t):e.push(t)),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function _(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var i=t.state;w(t,i,[],t._modules.root,!0),m(t,i,e)}function m(t,e,i){var a=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var n=t._wrappedGetters,r={};s(n,(function(e,i){r[i]=u(e,t),Object.defineProperty(t.getters,i,{get:function(){return t._vm[i]},enumerable:!0})}));var o=g.config.silent;g.config.silent=!0,t._vm=new g({data:{$$state:e},computed:r}),g.config.silent=o,t.strict&&P(t),a&&(i&&t._withCommit((function(){a._data.$$state=null})),g.nextTick((function(){return a.$destroy()})))}function w(t,e,i,a,n){var r=!i.length,o=t._modules.getNamespace(i);if(a.namespaced&&(t._modulesNamespaceMap[o],t._modulesNamespaceMap[o]=a),!r&&!n){var s=k(e,i.slice(0,-1)),l=i[i.length-1];t._withCommit((function(){g.set(s,l,a.state)}))}var c=a.context=b(t,o,i);a.forEachMutation((function(e,i){var a=o+i;T(t,a,e,c)})),a.forEachAction((function(e,i){var a=e.root?i:o+i,n=e.handler||e;C(t,a,n,c)})),a.forEachGetter((function(e,i){var a=o+i;A(t,a,e,c)})),a.forEachChild((function(a,r){w(t,e,i.concat(r),a,n)}))}function b(t,e,i){var a=""===e,n={dispatch:a?t.dispatch:function(i,a,n){var r=$(i,a,n),o=r.payload,s=r.options,l=r.type;return s&&s.root||(l=e+l),t.dispatch(l,o)},commit:a?t.commit:function(i,a,n){var r=$(i,a,n),o=r.payload,s=r.options,l=r.type;s&&s.root||(l=e+l),t.commit(l,o,s)}};return Object.defineProperties(n,{getters:{get:a?function(){return t.getters}:function(){return S(t,e)}},state:{get:function(){return k(t.state,i)}}}),n}function S(t,e){if(!t._makeLocalGettersCache[e]){var i={},a=e.length;Object.keys(t.getters).forEach((function(n){if(n.slice(0,a)===e){var r=n.slice(a);Object.defineProperty(i,r,{get:function(){return t.getters[n]},enumerable:!0})}})),t._makeLocalGettersCache[e]=i}return t._makeLocalGettersCache[e]}function T(t,e,i,a){var n=t._mutations[e]||(t._mutations[e]=[]);n.push((function(e){i.call(t,a.state,e)}))}function C(t,e,i,a){var n=t._actions[e]||(t._actions[e]=[]);n.push((function(e){var n=i.call(t,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:t.getters,rootState:t.state},e);return c(n)||(n=Promise.resolve(n)),t._devtoolHook?n.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):n}))}function A(t,e,i,a){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return i(a.state,a.getters,t.state,t.getters)})}function P(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function k(t,e){return e.reduce((function(t,e){return t[e]}),t)}function $(t,e,i){return l(t)&&t.type&&(i=e,e=t,t=t.type),{type:t,payload:e,options:i}}function L(t){g&&t===g||(g=t,a(g))}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(t){0},x.prototype.commit=function(t,e,i){var a=this,n=$(t,e,i),r=n.type,o=n.payload,s=(n.options,{type:r,payload:o}),l=this._mutations[r];l&&(this._withCommit((function(){l.forEach((function(t){t(o)}))})),this._subscribers.slice().forEach((function(t){return t(s,a.state)})))},x.prototype.dispatch=function(t,e){var i=this,a=$(t,e),n=a.type,r=a.payload,o={type:n,payload:r},s=this._actions[n];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(o,i.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(t){return t(r)}))):s[0](r);return new Promise((function(t,e){l.then((function(e){try{i._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(o,i.state)}))}catch(c){0}t(e)}),(function(t){try{i._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(o,i.state,t)}))}catch(c){0}e(t)}))}))}},x.prototype.subscribe=function(t,e){return y(t,this._subscribers,e)},x.prototype.subscribeAction=function(t,e){var i="function"===typeof t?{before:t}:t;return y(i,this._actionSubscribers,e)},x.prototype.watch=function(t,e,i){var a=this;return this._watcherVM.$watch((function(){return t(a.state,a.getters)}),e,i)},x.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},x.prototype.registerModule=function(t,e,i){void 0===i&&(i={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),w(this,this.state,t,this._modules.get(t),i.preserveState),m(this,this.state)},x.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var i=k(e.state,t.slice(0,-1));g.delete(i,t[t.length-1])})),_(this)},x.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},x.prototype.hotUpdate=function(t){this._modules.update(t),_(this,!0)},x.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(x.prototype,v);var M=z((function(t,e){var i={};return I(e).forEach((function(e){var a=e.key,n=e.val;i[a]=function(){var e=this.$store.state,i=this.$store.getters;if(t){var a=j(this.$store,"mapState",t);if(!a)return;e=a.context.state,i=a.context.getters}return"function"===typeof n?n.call(this,e,i):e[n]},i[a].vuex=!0})),i})),F=z((function(t,e){var i={};return I(e).forEach((function(e){var a=e.key,n=e.val;i[a]=function(){var e=[],i=arguments.length;while(i--)e[i]=arguments[i];var a=this.$store.commit;if(t){var r=j(this.$store,"mapMutations",t);if(!r)return;a=r.context.commit}return"function"===typeof n?n.apply(this,[a].concat(e)):a.apply(this.$store,[n].concat(e))}})),i})),D=z((function(t,e){var i={};return I(e).forEach((function(e){var a=e.key,n=e.val;n=t+n,i[a]=function(){if(!t||j(this.$store,"mapGetters",t))return this.$store.getters[n]},i[a].vuex=!0})),i})),R=z((function(t,e){var i={};return I(e).forEach((function(e){var a=e.key,n=e.val;i[a]=function(){var e=[],i=arguments.length;while(i--)e[i]=arguments[i];var a=this.$store.dispatch;if(t){var r=j(this.$store,"mapActions",t);if(!r)return;a=r.context.dispatch}return"function"===typeof n?n.apply(this,[a].concat(e)):a.apply(this.$store,[n].concat(e))}})),i})),O=function(t){return{mapState:M.bind(null,t),mapGetters:D.bind(null,t),mapMutations:F.bind(null,t),mapActions:R.bind(null,t)}};function I(t){return E(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function E(t){return Array.isArray(t)||l(t)}function z(t){return function(e,i){return"string"!==typeof e?(i=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,i)}}function j(t,e,i){var a=t._modulesNamespaceMap[i];return a}var W={Store:x,install:L,version:"3.4.0",mapState:M,mapMutations:F,mapGetters:D,mapActions:R,createNamespacedHelpers:O};e["default"]=W}.call(this,i("c8ba"))},3465:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"UniSection",props:{type:{type:String,default:""},title:{type:String,default:""},subTitle:{type:String,default:""}},data:function(){return{}},watch:{title:function(t){uni.report&&""!==t&&uni.report("title",t)}},methods:{onClick:function(){this.$emit("click")}}};e.default=a},"3ba7":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{position:[],button:{},btn:"[]"}},watch:{button:{handler:function(t){this.btn=JSON.stringify(t)},deep:!0},show:function(t){this.autoClose||(this.button?this.button.show=t:this.init())},leftOptions:function(){this.init()},rightOptions:function(){this.init()}},created:function(){void 0!==this.swipeaction.children&&this.swipeaction.children.push(this)},mounted:function(){this.init()},beforeDestroy:function(){var t=this;this.swipeaction.children.forEach((function(e,i){e===t&&t.swipeaction.children.splice(i,1)}))},methods:{init:function(){var t=this;clearTimeout(this.swipetimer),this.swipetimer=setTimeout((function(){t.getButtonSize()}),50)},closeSwipe:function(t){this.autoClose&&this.swipeaction.closeOther(this)},change:function(t){this.$emit("change",t.open);var e=this.button.show;e!==t.open&&(this.button.show=t.open)},appTouchStart:function(t){var e=t.changedTouches[0].clientX;this.clientX=e,this.timestamp=(new Date).getTime()},appTouchEnd:function(t,e,i,a){var n=t.changedTouches[0].clientX,r=Math.abs(this.clientX-n),o=(new Date).getTime()-this.timestamp;r<40&&o<300&&this.$emit("click",{content:i,index:e,position:a})},getButtonSize:function(){var t=this,e=uni.createSelectorQuery().in(this);e.selectAll(".uni-swipe_button-group").boundingClientRect((function(e){var i="none";i=t.autoClose?"none":t.show,t.button={data:e,show:i}})).exec()}}};e.default=a},"3f09":function(t,e,i){(function(e){t.exports={error:"",isJSON:function(t){if("string"==typeof t)try{var i=JSON.parse(t);return!("object"!=typeof i||!i)}catch(a){return e("log","error\uff1a"+t+"!!!"+a," at common/checker.js:13"),!1}},isNumber:function(t){var e=/^-?[1-9][0-9]?.?[0-9]*$/;return e.test(t)}}}).call(this,i("0de9")["default"])},"41a4":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("0a5a"));function n(t){return t&&t.__esModule?t:{default:t}}function r(t){var e=new Date,i=e.getFullYear(),a=e.getMonth()+1,n=e.getDate();return"start"===t?i-=60:"end"===t&&(i+=2),a=a>9?a:"0"+a,n=n>9?n:"0"+n,"".concat(i,"-").concat(a,"-").concat(n)}var o={data:function(){return{Task:{tsskName:"",specifications:"",finishTime:r({format:!0}),price:"12",area:"",default:!1},startDate:r("start"),endDate:r("end"),date:r({format:!0})}},onLoad:function(t){var e="\u65b0\u589e\u4efb\u52a1";"edit"===t.type&&(e="\u7f16\u8f91\u4efb\u52a1",this.addressData=JSON.parse(t.data)),"detail"===t.type&&(e="\u67e5\u770b\u4efb\u52a1"),this.manageType=t.type,uni.setNavigationBarTitle({title:e})},mounted:function(){this.findList()},methods:{findList:function(){var e={tsskName:this.Task.tsskName,specifications:this.Task.specifications,price:this.Task.price,userId:"7"},i=a.default.apiCall("post",a.default.task.createTask,e);t("log",i.data,"0000000"," at pages/tabBar/workbench/workForm/workForm.vue:110")},switchChange:function(t){this.addressData.default=t.detail},bindDateChange:function(t){this.Task.finishTime=t.detail.value},chooseLocation:function(){var t=this;uni.chooseLocation({success:function(e){t.addressData.addressName=e.name,t.addressData.address=e.name}})},confirm:function(){var t=this.Task;t.tsskName?t.specifications?(this.findList(),setTimeout((function(){uni.navigateBack()}),800)):this.$api.msg("\u4efb\u52a1\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a"):this.$api.msg("\u4efb\u52a1\u540d\u4e0d\u80fd\u4e3a\u7a7a")}}};e.default=o}).call(this,i("0de9")["default"])},4878:function(t,e,i){"use strict";i.r(e);var a=i("e32f"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"49f9":function(t,e,i){"use strict";i.r(e);var a=i("f6f8"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"50d0":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view")},r=[]},"5ab8":function(t,e,i){"use strict";i.r(e);var a=i("9303"),n=i("49f9");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=l.exports},"5f92":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","row b-b"),attrs:{_i:1}},[i("text",{staticClass:t._$s(2,"sc","tit"),attrs:{_i:2}}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.Task.tsskName,expression:"Task.tsskName"}],staticClass:t._$s(3,"sc","input"),attrs:{_i:3},domProps:{value:t._$s(3,"v-model",t.Task.tsskName)},on:{input:function(e){e.target.composing||t.$set(t.Task,"tsskName",e.target.value)}}})]),i("view",{staticClass:t._$s(4,"sc","row b-b"),attrs:{_i:4}},[i("text",{staticClass:t._$s(5,"sc","tit"),attrs:{_i:5}}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.Task.specifications,expression:"Task.specifications"}],staticClass:t._$s(6,"sc","input"),attrs:{_i:6},domProps:{value:t._$s(6,"v-model",t.Task.specifications)},on:{input:function(e){e.target.composing||t.$set(t.Task,"specifications",e.target.value)}}})]),i("view",{staticClass:t._$s(7,"sc","row b-b"),attrs:{_i:7}},[i("text",{staticClass:t._$s(8,"sc","tit"),attrs:{_i:8}}),i("view",{staticClass:t._$s(9,"sc","uni-list-cell-db"),attrs:{_i:9}},[i("picker",{attrs:{value:t._$s(10,"a-value",t.Task.finishTime),start:t._$s(10,"a-start",t.startDate),end:t._$s(10,"a-end",t.endDate),_i:10},on:{change:t.bindDateChange}},[i("view",{staticClass:t._$s(11,"sc","uni-input"),attrs:{_i:11}},[t._v(t._$s(11,"t0-0",t._s(t.Task.finishTime)))])])])]),i("view",{staticClass:t._$s(12,"sc","row b-b"),attrs:{_i:12}},[i("text",{staticClass:t._$s(13,"sc","tit"),attrs:{_i:13}}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.Task.price,expression:"Task.price"}],staticClass:t._$s(14,"sc","input"),attrs:{_i:14},domProps:{value:t._$s(14,"v-model",t.Task.price)},on:{input:function(e){e.target.composing||t.$set(t.Task,"price",e.target.value)}}})]),i("view",{staticClass:t._$s(15,"sc","row b-b"),attrs:{_i:15}},[i("text",{staticClass:t._$s(16,"sc","tit"),attrs:{_i:16}}),i("text",{staticClass:t._$s(17,"sc","input"),attrs:{_i:17},on:{click:t.chooseLocation}},[t._v(t._$s(17,"t0-0",t._s(t.Task.addressName)))]),i("text",{staticClass:t._$s(18,"sc","yticon icon-shouhuodizhi"),attrs:{_i:18}})]),i("view",{staticClass:t._$s(19,"sc","row b-b"),attrs:{_i:19}},[i("text",{staticClass:t._$s(20,"sc","tit"),attrs:{_i:20}}),i("view",[i("checkbox-group",[i("label",[i("checkbox",{})])])])]),i("view",{staticClass:t._$s(25,"sc","row default-row"),attrs:{_i:25}},[i("text",{staticClass:t._$s(26,"sc","tit"),attrs:{_i:26}}),i("switch",{attrs:{checked:t._$s(27,"a-checked",t.Task.defaule),_i:27},on:{change:t.switchChange}})]),i("button",{staticClass:t._$s(28,"sc","add-btn"),attrs:{_i:28},on:{click:t.confirm}})])},r=[]},"63f5":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",[t._$s(1,"i",t.showHeader)?i("view",{staticClass:t._$s(1,"sc","status"),style:t._$s(1,"s",{position:t.headerPosition,top:t.statusTop}),attrs:{_i:1}}):t._e(),t._$s(2,"i",t.showHeader)?i("view",{staticClass:t._$s(2,"sc","header"),style:t._$s(2,"s",{position:t.headerPosition,top:t.headerTop}),attrs:{_i:2}},[i("view",{staticClass:t._$s(3,"sc","addr"),attrs:{_i:3}}),i("view",{staticClass:t._$s(4,"sc","input-box"),attrs:{_i:4}}),i("view",{staticClass:t._$s(5,"sc","icon-btn"),attrs:{_i:5}},[i("view",{staticClass:t._$s(6,"sc","icon tongzhi"),attrs:{_i:6},on:{click:t.toMsg}}),i("view",{staticClass:t._$s(7,"sc","icon setting"),attrs:{_i:7},on:{click:t.toSetting}})])]):t._e(),t._$s(8,"i",t.showHeader)?i("view",{staticClass:t._$s(8,"sc","place"),attrs:{_i:8}}):t._e(),i("view",{staticClass:t._$s(9,"sc","user"),attrs:{_i:9}},[i("view",{staticClass:t._$s(10,"sc","left"),attrs:{_i:10}},[i("image",{attrs:{src:t._$s(11,"a-src",t.user.face),_i:11},on:{click:t.toSetting}})]),i("view",{staticClass:t._$s(12,"sc","right"),attrs:{_i:12}},[i("view",{staticClass:t._$s(13,"sc","username"),attrs:{_i:13},on:{click:t.toLogin}},[t._v(t._$s(13,"t0-0",t._s(t.user.username)))]),i("view",{staticClass:t._$s(14,"sc","signature"),attrs:{_i:14},on:{click:t.toSetting}},[t._v(t._$s(14,"t0-0",t._s(t.user.signature)))])]),i("view",{staticClass:t._$s(15,"sc","erweima"),attrs:{_i:15},on:{click:t.toMyQR}},[i("view",{staticClass:t._$s(16,"sc","icon qr"),attrs:{_i:16}})])]),i("view",{staticClass:t._$s(17,"sc","VIP"),attrs:{_i:17}},[i("view",{staticClass:t._$s(18,"sc","img"),attrs:{_i:18}},[i("image",{attrs:{_i:19}})]),i("view",{staticClass:t._$s(20,"sc","title"),attrs:{_i:20}}),i("view",{staticClass:t._$s(21,"sc","tis"),attrs:{_i:21}})]),i("view",{staticClass:t._$s(22,"sc","order"),attrs:{_i:22}},[i("view",{staticClass:t._$s(23,"sc","list"),attrs:{_i:23}},t._l(t._$s(24,"f",{forItems:t.orderList}),(function(e,a,n,r){return i("view",{key:t._$s(24,"f",{forIndex:n,key:a}),staticClass:t._$s("24-"+r,"sc","box"),attrs:{_i:"24-"+r},on:{click:function(e){return t.toOrderList(a)}}},[i("view",{staticClass:t._$s("25-"+r,"sc","img"),attrs:{_i:"25-"+r}},[i("view",{staticClass:t._$s("26-"+r,"sc","icon"),class:t._$s("26-"+r,"c",e.icon),attrs:{_i:"26-"+r}})]),i("view",{staticClass:t._$s("27-"+r,"sc","text"),attrs:{_i:"27-"+r}},[t._v(t._$s("27-"+r,"t0-0",t._s(e.text)))])])})),0),i("view",{staticClass:t._$s(28,"sc","balance-info"),attrs:{_i:28}},[i("view",{staticClass:t._$s(29,"sc","left"),attrs:{_i:29}},[i("view",{staticClass:t._$s(30,"sc","box"),attrs:{_i:30}},[i("view",{staticClass:t._$s(31,"sc","num"),attrs:{_i:31}},[t._v(t._$s(31,"t0-0",t._s(t.user.integral)))]),i("view",{staticClass:t._$s(32,"sc","text"),attrs:{_i:32}})]),i("view",{staticClass:t._$s(33,"sc","box"),attrs:{_i:33}},[i("view",{staticClass:t._$s(34,"sc","num"),attrs:{_i:34}},[t._v(t._$s(34,"t0-0",t._s(t.user.envelope)))]),i("view",{staticClass:t._$s(35,"sc","text"),attrs:{_i:35}})]),i("view",{staticClass:t._$s(36,"sc","box"),attrs:{_i:36}},[i("view",{staticClass:t._$s(37,"sc","num"),attrs:{_i:37}},[t._v(t._$s(37,"t0-0",t._s(t.user.balance)))]),i("view",{staticClass:t._$s(38,"sc","text"),attrs:{_i:38}})])]),i("view",{staticClass:t._$s(39,"sc","right"),attrs:{_i:39}},[i("view",{staticClass:t._$s(40,"sc","box"),attrs:{_i:40},on:{click:t.toDeposit}},[i("view",{staticClass:t._$s(41,"sc","img"),attrs:{_i:41}},[i("view",{staticClass:t._$s(42,"sc","icon chongzhi"),attrs:{_i:42}})]),i("view",{staticClass:t._$s(43,"sc","text"),attrs:{_i:43}})])])])]),i("view",{staticClass:t._$s(44,"sc","toolbar"),attrs:{_i:44}},[i("view",{staticClass:t._$s(45,"sc","title"),attrs:{_i:45}}),i("view",{staticClass:t._$s(46,"sc","list"),attrs:{_i:46}},t._l(t._$s(47,"f",{forItems:t.mytoolbarList}),(function(e,a,n,r){return i("view",{key:t._$s(47,"f",{forIndex:n,key:a}),staticClass:t._$s("47-"+r,"sc","box"),attrs:{_i:"47-"+r},on:{click:function(i){return t.toPage(e.url)}}},[i("view",{staticClass:t._$s("48-"+r,"sc","img"),attrs:{_i:"48-"+r}},[i("image",{attrs:{src:t._$s("49-"+r,"a-src",e.img),_i:"49-"+r}})]),i("view",{staticClass:t._$s("50-"+r,"sc","text"),attrs:{_i:"50-"+r}},[t._v(t._$s("50-"+r,"t0-0",t._s(e.text)))])])})),0)]),i("view",{staticClass:t._$s(51,"sc","place-bottom"),attrs:{_i:51}})])},r=[]},6591:function(t,e,i){"use strict";i.r(e);var a=i("1e01"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"675f":function(t,e,i){"use strict";i.r(e);var a=i("5f92"),n=i("b0a3");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=l.exports},6957:function(t,e,i){"use strict";i.r(e);var a=i("01f0"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"6b16":function(t,e,i){"use strict";i.r(e);var a=i("192f"),n=i("23ba");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=l.exports},"6b42":function(t,e,i){"use strict";i.r(e);var a=i("f08e"),n=i("ee81");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o,s=i("f0c5"),l=i("18b6"),c=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"53a22c46",null,!1,a["a"],o);"function"===typeof l["a"]&&Object(l["a"])(c),e["default"]=c.exports},"8bbf":function(t,e){t.exports=Vue},"8d3d":function(t,e,i){"use strict";i("0cc9");var a=r(i("8bbf")),n=r(i("00b8"));function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){l(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function l(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}a.default.config.productionTip=!1,n.default.mpType="app";var c=new a.default(s({},n.default));c.$mount()},"8ee7":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","uni-list uni-border-top-bottom"),attrs:{_i:0}},[t._$s(1,"i",t.border)?i("view",{staticClass:t._$s(1,"sc","uni-list--border-top"),attrs:{_i:1}}):t._e(),t._t("default",null,{_i:2}),t._$s(3,"i",t.border)?i("view",{staticClass:t._$s(3,"sc","uni-list--border-bottom"),attrs:{_i:3}}):t._e()],2)},r=[]},9303:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",[i("view",[i("view",{staticClass:t._$s(2,"sc","logo"),attrs:{_i:2}},[i("image",{staticClass:t._$s(3,"sc","img"),attrs:{_i:3}})]),i("view",{staticClass:t._$s(4,"sc","form"),attrs:{_i:4}},[i("view",{staticClass:t._$s(5,"sc","text-box"),attrs:{_i:5}},[i("text",[t._v(t._$s(6,"t0-0",t._s(t.text)))])]),i("view",{staticClass:t._$s(7,"sc","username"),attrs:{_i:7}},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.phoneNumber,expression:"phoneNumber"}],attrs:{_i:8},domProps:{value:t._$s(8,"v-model",t.phoneNumber)},on:{input:function(e){e.target.composing||(t.phoneNumber=e.target.value)}}})]),i("view",{staticClass:t._$s(9,"sc","password"),attrs:{_i:9}},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.passwd,expression:"passwd"}],attrs:{_i:10},domProps:{value:t._$s(10,"v-model",t.passwd)},on:{input:function(e){e.target.composing||(t.passwd=e.target.value)}}})]),i("view",{staticClass:t._$s(11,"sc","btn"),attrs:{_i:11},on:{click:t.doLogin}}),i("view",{staticClass:t._$s(12,"sc","res"),attrs:{_i:12}},[i("view",{attrs:{_i:13},on:{click:function(e){return t.toPage("register")}}}),i("view",{attrs:{_i:14},on:{click:function(e){return t.toPage("resetpasswd")}}})])])])])},r=[]},"96cf":function(t,e){!function(e){"use strict";var i,a=Object.prototype,n=a.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag",c="object"===typeof t,u=e.regeneratorRuntime;if(u)c&&(t.exports=u);else{u=e.regeneratorRuntime=c?t.exports:{},u.wrap=m;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",g={},x={};x[o]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(F([])));y&&y!==a&&n.call(y,o)&&(x=y);var _=T.prototype=b.prototype=Object.create(x);S.prototype=_.constructor=T,T.constructor=S,T[l]=S.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,T):(t.__proto__=T,l in t||(t[l]="GeneratorFunction")),t.prototype=Object.create(_),t},u.awrap=function(t){return{__await:t}},C(A.prototype),A.prototype[s]=function(){return this},u.AsyncIterator=A,u.async=function(t,e,i,a){var n=new A(m(t,e,i,a));return u.isGeneratorFunction(e)?n:n.next().then((function(t){return t.done?t.value:n.next()}))},C(_),_[l]="Generator",_[o]=function(){return this},_.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){while(e.length){var a=e.pop();if(a in t)return i.value=a,i.done=!1,i}return i.done=!0,i}},u.values=F,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=i)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(a,n){return s.type="throw",s.arg=t,e.next=a,n&&(e.method="next",e.arg=i),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),L(i),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var a=i.completion;if("throw"===a.type){var n=a.arg;L(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,a){return this.delegate={iterator:F(t),resultName:e,nextLoc:a},"next"===this.method&&(this.arg=i),g}}}function m(t,e,i,a){var n=e&&e.prototype instanceof b?e:b,r=Object.create(n.prototype),o=new M(a||[]);return r._invoke=P(t,i,o),r}function w(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(a){return{type:"throw",arg:a}}}function b(){}function S(){}function T(){}function C(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function A(t){function e(i,a,r,o){var s=w(t[i],t,a);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"===typeof c&&n.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,r,o)}),(function(t){e("throw",t,r,o)})):Promise.resolve(c).then((function(t){l.value=t,r(l)}),(function(t){return e("throw",t,r,o)}))}o(s.arg)}var i;function a(t,a){function n(){return new Promise((function(i,n){e(t,a,i,n)}))}return i=i?i.then(n,n):n()}this._invoke=a}function P(t,e,i){var a=h;return function(n,r){if(a===f)throw new Error("Generator is already running");if(a===p){if("throw"===n)throw r;return D()}i.method=n,i.arg=r;while(1){var o=i.delegate;if(o){var s=k(o,i);if(s){if(s===g)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===h)throw a=p,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=f;var l=w(t,e,i);if("normal"===l.type){if(a=i.done?p:d,l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(a=p,i.method="throw",i.arg=l.arg)}}}function k(t,e){var a=t.iterator[e.method];if(a===i){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=i,k(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var n=w(a,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,g;var r=n.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=i),e.delegate=null,g):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function $(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function F(t){if(t){var e=t[o];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var a=-1,r=function e(){while(++a<t.length)if(n.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=i,e.done=!0,e};return r.next=r}}return{next:D}}function D(){return{value:i,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},"9f91":function(t,e,i){"use strict";i.r(e);var a=i("e339"),n=i("2104");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"6fcc8382",null,!1,a["a"],o);e["default"]=l.exports},a34a:function(t,e,i){t.exports=i("bbdd")},a375:function(t,e,i){"use strict";i.r(e);var a=i("129f"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},a473:function(t,e,i){"use strict";i.r(e);var a=i("c20e"),n=i("4878");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"34344b98",null,!1,a["a"],o);e["default"]=l.exports},a7f0:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{}},methods:{}};e.default=a},a8f0:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",[t._$s(1,"i",t.showHeader)?i("view",{staticClass:t._$s(1,"sc","status"),style:t._$s(1,"s",{position:t.headerPosition,top:t.statusTop,opacity:t.afterHeaderOpacity}),attrs:{_i:1}}):t._e(),t._$s(2,"i",t.showHeader)?i("view",{staticClass:t._$s(2,"sc","header"),style:t._$s(2,"s",{position:t.headerPosition,top:t.headerTop,opacity:t.afterHeaderOpacity}),attrs:{_i:2}},[i("view",{staticClass:t._$s(3,"sc","addr"),attrs:{_i:3}},[i("view",{staticClass:t._$s(4,"sc","icon location"),attrs:{_i:4}}),t._v(t._$s(3,"t1-0",t._s(t.city)))]),i("view",{staticClass:t._$s(5,"sc","input-box"),attrs:{_i:5}},[i("input",{attrs:{_i:6},on:{click:function(e){return t.toSearch()}}}),i("view",{staticClass:t._$s(7,"sc","icon search"),attrs:{_i:7}})]),i("view",{staticClass:t._$s(8,"sc","icon-btn"),attrs:{_i:8}},[i("view",{staticClass:t._$s(9,"sc","icon tongzhi"),attrs:{_i:9},on:{click:t.toMsg}})])]):t._e(),t._$s(10,"i",t.showHeader)?i("view",{staticClass:t._$s(10,"sc","place"),attrs:{_i:10}}):t._e(),i("view",{staticClass:t._$s(11,"sc","swiper"),attrs:{_i:11}},[i("view",{staticClass:t._$s(12,"sc","swiper-box"),attrs:{_i:12}},[i("swiper",{attrs:{_i:13},on:{change:t.swiperChange}},t._l(t._$s(14,"f",{forItems:t.swiperList}),(function(e,a,n,r){return i("swiper-item",{key:t._$s(14,"f",{forIndex:n,key:e.id})},[i("image",{attrs:{src:t._$s("15-"+r,"a-src",e.img),_i:"15-"+r},on:{click:function(i){return t.toSwiper(e)}}})])})),0),i("view",{staticClass:t._$s(16,"sc","indicator"),attrs:{_i:16}},t._l(t._$s(17,"f",{forItems:t.swiperList}),(function(e,a,n,r){return i("view",{key:t._$s(17,"f",{forIndex:n,key:a}),staticClass:t._$s("17-"+r,"sc","dots"),class:t._$s("17-"+r,"c",[t.currentSwiper>=a?"on":""]),attrs:{_i:"17-"+r}})})),0)])]),i("view",{staticClass:t._$s(18,"sc","category-list"),attrs:{_i:18}},t._l(t._$s(19,"f",{forItems:t.categoryList}),(function(e,a,n,r){return i("view",{key:t._$s(19,"f",{forIndex:n,key:a}),staticClass:t._$s("19-"+r,"sc","category"),attrs:{_i:"19-"+r},on:{click:function(i){return t.toCategory(e)}}},[i("view",{staticClass:t._$s("20-"+r,"sc","img"),attrs:{_i:"20-"+r}},[i("image",{attrs:{src:t._$s("21-"+r,"a-src",e.img),_i:"21-"+r}})]),i("view",{staticClass:t._$s("22-"+r,"sc","text"),attrs:{_i:"22-"+r}},[t._v(t._$s("22-"+r,"t0-0",t._s(e.name)))])])})),0)])},r=[]},ad75:function(t,e,i){"use strict";i.r(e);var a=i("144e"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},b002:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var a={uniSection:i("9f91").default,uniSwipeAction:i("1bb4").default,uniSwipeActionItem:i("6b42").default,uniList:i("0bf1").default,uniListChat:i("a473").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",[t._$s(1,"i",t.showHeader)?i("view",{staticClass:t._$s(1,"sc","status"),style:t._$s(1,"s",{position:t.headerPosition,top:t.statusTop,opacity:t.afterHeaderOpacity}),attrs:{_i:1}}):t._e(),t._$s(2,"i",t.showHeader)?i("view",{staticClass:t._$s(2,"sc","header"),style:t._$s(2,"s",{position:t.headerPosition,top:t.headerTop,opacity:t.afterHeaderOpacity}),attrs:{_i:2}},[i("view",{staticClass:t._$s(3,"sc","addr"),attrs:{_i:3}},[i("view",{staticClass:t._$s(4,"sc","icon location"),attrs:{_i:4}}),t._v(t._$s(3,"t1-0",t._s(t.city)))]),i("view",{staticClass:t._$s(5,"sc","input-box"),attrs:{_i:5}},[i("input",{attrs:{_i:6},on:{click:function(e){return t.toSearch()}}}),i("view",{staticClass:t._$s(7,"sc","icon search"),attrs:{_i:7}})]),i("view",{staticClass:t._$s(8,"sc","icon-btn"),attrs:{_i:8}},[i("view",{staticClass:t._$s(9,"sc","icon tongzhi"),attrs:{_i:9},on:{click:t.toMsg}})])]):t._e(),i("uni-section",{staticClass:t._$s(10,"sc","title-work"),attrs:{title:"\u4eca\u65e5\u4efb\u52a1",type:"line",_i:10},on:{click:t.findList}}),i("uni-swipe-action",{attrs:{_i:11}},t._l(t._$s(12,"f",{forItems:t.dataList}),(function(e,a,n,r){return i("uni-swipe-action-item",{key:t._$s(12,"f",{forIndex:n,key:e.id}),attrs:{"right-options":t.options,_i:"12-"+r},on:{change:function(e){return t.swipeChange(e,a)},click:function(e){return t.swipeClick(e,a)}}},[i("view",{staticClass:t._$s("13-"+r,"sc","uni-list-full"),attrs:{_i:"13-"+r}},[i("uni-list",{attrs:{_i:"14-"+r}},[i("uni-list-chat",{attrs:{title:e.tsskName,avatar:e.picUrl,note:e.specifications,time:e.finishTime,clickable:!0,"badge-text":e.taskSn,_i:"15-"+r},on:{click:function(i){return t.textClick(e.tsskName,e)}}})],1)],1)])})),1)],1)},r=[]},b0a3:function(t,e,i){"use strict";i.r(e);var a=i("41a4"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},b3f8:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,n=r(i("c680"));i("3f09");function r(t){return t&&t.__esModule?t:{default:t}}var o=null,s={data:function(){return{headerTop:"274px",headerPosition:"inherit",cWidth:"",cHeight:"",pixelRatio:1,textarea:"",gaugeWidth:15,type:"default",orderbyList:[{text:"\u9500\u91cf",selected:!0,orderbyicon:!1,orderby:0},{text:"\u4ef7\u683c",selected:!1,orderbyicon:["sheng","jiang"],orderby:0},{text:"\u597d\u8bc4",selected:!1,orderbyicon:!1,orderby:0}],user:{username:"\u6e38\u5ba21002",face:"/static/img/face.jpg",signature:"\u70b9\u51fb\u6635\u79f0\u8df3\u8f6c\u767b\u5f55/\u6ce8\u518c\u9875",integral:0,balance:99,envelope:0}}},onLoad:function(){a=this,this.cWidth=uni.upx2px(750),this.cHeight=uni.upx2px(500),this.getServerData()},methods:{getServerData:function(){var t={categories:[{_endAngle_:1.05,_startAngle_:.75,color:"#1890ff",value:.2},{_endAngle_:1.9500000000000002,_startAngle_:1.05,color:"#2fc25b",value:.8},{_endAngle_:.25,_startAngle_:1.9500000000000002,color:"#f04864",value:1}],series:[{_endAngle_:1.74,_oldAngle_:.75,_proportion_:.808236255,color:"#0055ff",data:.7,index:0,legendShape:"circle",name:"\u5b8c\u6210\u7387",pointShape:"circle",show:!0,type:"gauge"}]};a.showGauge("canvasGauge",t)},showGauge:function(e,i){o=new n.default({$this:a,canvasId:e,type:"gauge",fontSize:11,legend:{show:!1},title:{name:Math.round(100*i.series[0].data)+"%",color:"#666666",fontSize:25*a.pixelRatio,offsetY:50*a.pixelRatio},subtitle:{name:i.series[0].name,color:"#666666",fontSize:15*a.pixelRatio,offsetY:-50*a.pixelRatio},extra:{gauge:{type:"default",width:a.gaugeWidth*a.pixelRatio,startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,splitLine:{fixRadius:0,splitNumber:10,width:a.gaugeWidth*a.pixelRatio,color:"#FFFFFF",childNumber:5,childWidth:.4*a.gaugeWidth*a.pixelRatio},pointer:{width:.8*a.gaugeWidth*a.pixelRatio,color:"auto"}}},background:"#FFFFFF",pixelRatio:a.pixelRatio,categories:i.categories,series:i.series,animation:!0,width:a.cWidth*a.pixelRatio,height:a.cHeight*a.pixelRatio,dataLabel:!0}),this.type="progress",t("log",this.type," at pages/tabBar/dataArea/dataArea.vue:261"),o.opts.extra.gauge.type=this.type,o.opts.title.fontSize=35*a.pixelRatio,o.opts.title.offsetY=0,o.opts.subtitle.offsetY=0,o.updateData({})},select:function(e){t("log",e," at pages/tabBar/dataArea/dataArea.vue:286")},changeData:function(){}}};e.default=s}).call(this,i("0de9")["default"])},bbdd:function(t,e,i){var a=function(){return this||"object"===typeof self&&self}()||Function("return this")(),n=a.regeneratorRuntime&&Object.getOwnPropertyNames(a).indexOf("regeneratorRuntime")>=0,r=n&&a.regeneratorRuntime;if(a.regeneratorRuntime=void 0,t.exports=i("96cf"),n)a.regeneratorRuntime=r;else try{delete a.regeneratorRuntime}catch(o){a.regeneratorRuntime=void 0}},bc1a:function(t,e,i){"use strict";i.r(e);var a=i("a7f0"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},c20e:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","uni-list-chat"),attrs:{"hover-class":t._$s(0,"a-hover-class",t.clickable||t.link?"uni-list-chat--hover":""),_i:0},on:{click:function(e){return e.stopPropagation(),t.onClick(e)}}},[i("view",{class:t._$s(1,"c",{"uni-list--border":t.border,"uni-list-chat--first":t.isFirstChild}),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","uni-list-chat__container"),attrs:{_i:2}},[i("view",{staticClass:t._$s(3,"sc","uni-list-chat__header-warp"),attrs:{_i:3}},[t._$s(4,"i",t.avatarCircle||0===t.avatarList.length)?i("view",{staticClass:t._$s(4,"sc","uni-list-chat__header"),class:t._$s(4,"c",{"header--circle":t.avatarCircle}),attrs:{_i:4}},[i("image",{staticClass:t._$s(5,"sc","uni-list-chat__header-image"),attrs:{src:t._$s(5,"a-src",t.avatar),_i:5}})]):i("view",{staticClass:t._$s(6,"sc","uni-list-chat__header"),attrs:{_i:6}},t._l(t._$s(7,"f",{forItems:t.avatarList}),(function(e,a,n,r){return i("view",{key:t._$s(7,"f",{forIndex:n,key:a}),staticClass:t._$s("7-"+r,"sc","uni-list-chat__header-box"),class:t._$s("7-"+r,"c",t.computedAvatar),style:t._$s("7-"+r,"s",{width:t.imageWidth+"px",height:t.imageWidth+"px"}),attrs:{_i:"7-"+r}},[i("image",{staticClass:t._$s("8-"+r,"sc","uni-list-chat__header-image"),style:t._$s("8-"+r,"s",{width:t.imageWidth+"px",height:t.imageWidth+"px"}),attrs:{src:t._$s("8-"+r,"a-src",e.url),_i:"8-"+r}})])})),0)]),t._$s(9,"i",t.badgeText&&"left"===t.badgePositon)?i("view",{staticClass:t._$s(9,"sc","uni-list-chat__badge uni-list-chat__badge-pos"),class:t._$s(9,"c",[t.isSingle]),attrs:{_i:9}},[i("text",{staticClass:t._$s(10,"sc","uni-list-chat__badge-text"),attrs:{_i:10}},[t._v(t._$s(10,"t0-0",t._s("dot"===t.badgeText?"":t.badgeText)))])]):t._e(),i("view",{staticClass:t._$s(11,"sc","uni-list-chat__content"),attrs:{_i:11}},[i("view",{staticClass:t._$s(12,"sc","uni-list-chat__content-main"),attrs:{_i:12}},[i("text",{staticClass:t._$s(13,"sc","uni-list-chat__content-title uni-ellipsis"),attrs:{_i:13}},[t._v(t._$s(13,"t0-0",t._s(t.title)))]),i("text",{staticClass:t._$s(14,"sc","uni-list-chat__content-note uni-ellipsis"),attrs:{_i:14}},[t._v(t._$s(14,"t0-0",t._s(t.note)))])]),i("view",{staticClass:t._$s(15,"sc","uni-list-chat__content-extra"),attrs:{_i:15}},[t._t("default",[i("text",{staticClass:t._$s(17,"sc","uni-list-chat__content-extra-text"),attrs:{_i:17}},[t._v(t._$s(17,"t0-0",t._s(t.time)))]),t._$s(18,"i",t.badgeText&&"right"===t.badgePositon)?i("view",{staticClass:t._$s(18,"sc","uni-list-chat__badge"),class:t._$s(18,"c",[t.isSingle,"right"===t.badgePositon?"uni-list-chat--right":""]),attrs:{_i:18}},[i("text",{staticClass:t._$s(19,"sc","uni-list-chat__badge-text"),attrs:{_i:19}},[t._v(t._$s(19,"t0-0",t._s("dot"===t.badgeText?"":t.badgeText)))])]):t._e()],{_i:16})],2)])])])},r=[]},c4b7:function(t,e,i){"use strict";i.r(e);var a=i("a8f0"),n=i("ad75");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=l.exports},c680:function(t,e,i){"use strict";(function(e){var i={yAxisWidth:15,yAxisSplit:5,xAxisHeight:15,xAxisLineHeight:15,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,fontSize:13,dataPointShape:["circle","circle","circle","circle"],colors:["#1890ff","#2fc25b","#facc14","#f04864","#8543e0","#90ed7d"],pieChartLinePadding:15,pieChartTextPadding:5,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarLabelTextMargin:15,gaugeLabelTextMargin:15},a=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];if(null==t)throw new TypeError("Cannot convert undefined or null to object");if(!i||i.length<=0)return t;function n(t,e){for(var i in e)t[i]=t[i]&&"[object Object]"===t[i].toString()?n(t[i],e[i]):t[i]=e[i];return t}return i.forEach((function(e){t=n(t,e)})),t},n={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return t%1!==0},approximatelyEqual:function(t,e){return Math.abs(t-e)<1e-10},isSameSign:function(t,e){return Math.abs(t)===t&&Math.abs(e)===e||Math.abs(t)!==t&&Math.abs(e)!==e},isSameXCoordinateArea:function(t,e){return this.isSameSign(t.x,e.x)},isCollision:function(t,e){t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height,e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height;var i=e.start.x>t.end.x||e.end.x<t.start.x||e.end.y>t.start.y||e.start.y<t.end.y;return!i}};function r(t,e){var i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,a=t.replace(i,(function(t,e,i,a){return e+e+i+i+a+a})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a),r=parseInt(n[1],16),o=parseInt(n[2],16),s=parseInt(n[3],16);return"rgba("+r+","+o+","+s+","+e+")"}function o(t,e,i){if(isNaN(t))throw new Error("[uCharts] unvalid series data!");i=i||10,e=e||"upper";var a=1;while(i<1)i*=10,a*=10;t="upper"===e?Math.ceil(t*a):Math.floor(t*a);while(t%i!==0)"upper"===e?t++:t--;return t/a}function s(t,e,i,a){for(var n=[],r=0;r<t.length;r++){for(var o={data:[],name:e[r],color:i[r]},s=0,l=a.length;s<l;s++)if(s<t[r])o.data.push(null);else{for(var c=0,u=0;u<t[r];u++)c+=a[s-u][1];o.data.push(+(c/t[r]).toFixed(3))}n.push(o)}return n}function l(t,e,i,a,n){var r=n.width-n.area[1]-n.area[3],o=i.eachSpacing*(n.chartData.xAxisData.xAxisPoints.length-1),s=e;return e>=0?(s=0,t.event.trigger("scrollLeft")):Math.abs(e)>=o-r&&(s=r-o,t.event.trigger("scrollRight")),s}function c(t,e,i){function a(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=a(t),e=a(e),i=a(i),e>i&&(i+=2*Math.PI,t<e&&(t+=2*Math.PI)),t>=e&&t<=i}function u(t,e,i){var a=t,n=i-e,r=a+(i-n-a)/Math.sqrt(2);r*=-1;var o=(i-n)*(Math.sqrt(2)-1)-(i-n-a)/Math.sqrt(2);return{transX:r,transY:o}}function h(t,e){function i(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var n=.2,r=.2,o=null,s=null,l=null,c=null;if(e<1?(o=t[0].x+(t[1].x-t[0].x)*n,s=t[0].y+(t[1].y-t[0].y)*n):(o=t[e].x+(t[e+1].x-t[e-1].x)*n,s=t[e].y+(t[e+1].y-t[e-1].y)*n),e>t.length-3){var u=t.length-1;l=t[u].x-(t[u].x-t[u-1].x)*r,c=t[u].y-(t[u].y-t[u-1].y)*r}else l=t[e+1].x-(t[e+2].x-t[e].x)*r,c=t[e+1].y-(t[e+2].y-t[e].y)*r;return i(t,e+1)&&(c=t[e+1].y),i(t,e)&&(s=t[e].y),a(t,e+1)&&(l=t[e+1].x),a(t,e)&&(o=t[e].x),(s>=Math.max(t[e].y,t[e+1].y)||s<=Math.min(t[e].y,t[e+1].y))&&(s=t[e].y),(c>=Math.max(t[e].y,t[e+1].y)||c<=Math.min(t[e].y,t[e+1].y))&&(c=t[e+1].y),(o>=Math.max(t[e].x,t[e+1].x)||o<=Math.min(t[e].x,t[e+1].x))&&(o=t[e].x),(l>=Math.max(t[e].x,t[e+1].x)||l<=Math.min(t[e].x,t[e+1].x))&&(l=t[e+1].x),{ctrA:{x:o,y:s},ctrB:{x:l,y:c}}}function d(t,e,i){return{x:i.x+t,y:i.y-e}}function f(t,e){if(e)while(n.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function p(t,e,i){var a=0;return t.map((function(t){if(t.color||(t.color=i.colors[a],a=(a+1)%i.colors.length),t.index||(t.index=0),t.type||(t.type=e.type),"undefined"==typeof t.show&&(t.show=!0),t.type||(t.type=e.type),t.pointShape||(t.pointShape="circle"),!t.legendShape)switch(t.type){case"line":t.legendShape="line";break;case"column":t.legendShape="rect";break;case"area":t.legendShape="triangle";break;default:t.legendShape="circle"}return t}))}function g(t,e){var i=0,a=e-t;return i=a>=1e4?1e3:a>=1e3?100:a>=100?10:a>=10?5:a>=1?1:a>=.1?.1:a>=.01?.01:a>=.001?.001:a>=1e-4?1e-4:a>=1e-5?1e-5:1e-6,{minRange:o(t,"lower",i),maxRange:o(e,"upper",i)}}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.fontSize;t=String(t);t=t.split("");for(var a=0,n=0;n<t.length;n++){var r=t[n];/[a-zA-Z]/.test(r)?a+=7:/[0-9]/.test(r)?a+=5.5:/\./.test(r)?a+=2.7:/-/.test(r)?a+=3.25:/[\u4e00-\u9fa5]/.test(r)?a+=10:/\(|\)/.test(r)?a+=3.73:/\s/.test(r)?a+=2.5:/%/.test(r)?a+=8:a+=10}return a*e/10}function v(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function y(t,e){for(var i=new Array(e),a=0;a<i.length;a++)i[a]=0;for(var n=0;n<t.length;n++)for(a=0;a<i.length;a++)i[a]+=t[n].data[a];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(i)}),[])}function _(t,e,i){var a,n;return t.clientX?e.rotate?(n=e.height-t.clientX*e.pixelRatio,a=(t.pageY-i.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):(a=t.clientX*e.pixelRatio,n=(t.pageY-i.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):e.rotate?(n=e.height-t.x*e.pixelRatio,a=t.y*e.pixelRatio):(a=t.x*e.pixelRatio,n=t.y*e.pixelRatio),{x:a,y:n}}function m(t,e){for(var i=[],a=0;a<t.length;a++){var n=t[a];if(null!==n.data[e]&&"undefined"!==typeof n.data[e]&&n.show){var r={};r.color=n.color,r.type=n.type,r.style=n.style,r.pointShape=n.pointShape,r.disableLegend=n.disableLegend,r.name=n.name,r.show=n.show,r.data=n.format?n.format(n.data[e]):n.data[e],i.push(r)}}return i}function w(t){var e=t.map((function(t){return x(t)}));return Math.max.apply(null,e)}function b(t){for(var e=2*Math.PI/t,i=[],a=0;a<t;a++)i.push(e*a);return i.map((function(t){return-1*t+Math.PI/2}))}function S(t,e,i,a){for(var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=t.map((function(t){var e=[];return e=a||t.data,{text:n.format?n.format(t,e[i]):t.name+": "+t.data,color:t.color}})),o=[],s={x:0,y:0},l=0;l<e.length;l++){var c=e[l];"undefined"!==typeof c[i]&&null!==c[i]&&o.push(c[i])}for(var u=0;u<o.length;u++){var h=o[u];s.x=Math.round(h.x),s.y+=h.y}return s.y/=o.length,{textList:r,offset:s}}function T(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=t.map((function(t){return{text:n.format?n.format(t,a[i]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));r=r.filter((function(t){if(!0!==t.disableLegend)return t}));for(var o=[],s={x:0,y:0},l=0;l<e.length;l++){var c=e[l];"undefined"!==typeof c[i]&&null!==c[i]&&o.push(c[i])}for(var u=0;u<o.length;u++){var h=o[u];s.x=Math.round(h.x),s.y+=h.y}return s.y/=o.length,{textList:r,offset:s}}function C(t,e,i,a,n,r){var o=r.color.upFill,s=r.color.downFill,l=[o,o,s,o],c=[],u={text:n[a],color:null};c.push(u),e.map((function(e){0==a?e.data[1]-e.data[0]<0?l[1]=s:l[1]=o:(e.data[0]<t[a-1][1]&&(l[0]=s),e.data[1]<e.data[0]&&(l[1]=s),e.data[2]>t[a-1][1]&&(l[2]=o),e.data[3]<t[a-1][1]&&(l[3]=s));var i={text:"\u5f00\u76d8\uff1a"+e.data[0],color:l[0]},n={text:"\u6536\u76d8\uff1a"+e.data[1],color:l[1]},r={text:"\u6700\u4f4e\uff1a"+e.data[2],color:l[2]},u={text:"\u6700\u9ad8\uff1a"+e.data[3],color:l[3]};c.push(i,n,r,u)}));for(var h=[],d={x:0,y:0},f=0;f<i.length;f++){var p=i[f];"undefined"!==typeof p[a]&&null!==p[a]&&h.push(p[a])}return d.x=Math.round(h[0][0].x),{textList:c,offset:d}}function A(t){for(var e=[],i=0;i<t.length;i++)1==t[i].show&&e.push(t[i]);return e}function P(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=-1,o=i.chartData.eachSpacing/2,s=[];if(e.length>0){for(var l=1;l<i.chartData.xAxisPoints.length;l++)s.push(i.chartData.xAxisPoints[l]-o);"line"!=i.type&&"area"!=i.type||"justify"!=i.xAxis.boundaryGap||(o=i.chartData.eachSpacing/2),i.categories||(o=0),L(t,i,a)&&s.forEach((function(e,i){t.x+n+o>e&&(r=i)}))}return r}function k(t,e,i){var a=-1;if($(t,e.area)){for(var n=e.points,r=-1,o=0,s=n.length;o<s;o++)for(var l=n[o],c=0;c<l.length;c++){r+=1;var u=l[c]["area"];if(t.x>u[0]&&t.x<u[2]&&t.y>u[1]&&t.y<u[3]){a=r;break}}return a}return a}function $(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}function L(t,e,i){return t.x<=e.width-e.area[1]+10&&t.x>=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function M(t,e,i){var a=2*Math.PI/i,n=-1;if(I(t,e.center,e.radius)){var r=function(t){return t<0&&(t+=2*Math.PI),t>2*Math.PI&&(t-=2*Math.PI),t},o=Math.atan2(e.center.y-t.y,t.x-e.center.x);o*=-1,o<0&&(o+=2*Math.PI);var s=e.angleList.map((function(t){return t=r(-1*t),t}));s.forEach((function(t,e){var i=r(t-a/2),s=r(t+a/2);s<i&&(s+=2*Math.PI),(o>=i&&o<=s||o+2*Math.PI>=i&&o+2*Math.PI<=s)&&(n=e)}))}return n}function F(t,e){for(var i=-1,a=0,n=e.series.length;a<n;a++){var r=e.series[a];if(t.x>r.funnelArea[0]&&t.x<r.funnelArea[2]&&t.y>r.funnelArea[1]&&t.y<r.funnelArea[3]){i=a;break}}return i}function D(t,e){for(var i=-1,a=0,n=e.length;a<n;a++){var r=e[a];if(t.x>r.area[0]&&t.x<r.area[2]&&t.y>r.area[1]&&t.y<r.area[3]){i=a;break}}return i}function R(t,e){for(var i=-1,a=e.chartData.mapData,n=e.series,r=zt(t.y,t.x,a.bounds,a.scale,a.xoffset,a.yoffset),o=[r.x,r.y],s=0,l=n.length;s<l;s++){var c=n[s].geometry.coordinates;if(Wt(o,c)){i=s;break}}return i}function O(t,e){var i=-1;if(I(t,e.center,e.radius)){var a=Math.atan2(e.center.y-t.y,t.x-e.center.x);a=-a;for(var n=0,r=e.series.length;n<r;n++){var o=e.series[n];if(c(a,o._start_,o._start_+2*o._proportion_*Math.PI)){i=n;break}}}return i}function I(t,e,i){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(i,2)}function E(t){var e=[],i=[];return t.forEach((function(t,a){null!==t?i.push(t):(i.length&&e.push(i),i=[])})),i.length&&e.push(i),e}function z(t,e,i,a){var n={area:{start:{x:0,y:0},end:{x:0,y:0},width:0,height:0,wholeWidth:0,wholeHeight:0},points:[],widthArr:[],heightArr:[]};if(!1===e.legend.show)return a.legendData=n,n;var r=e.legend.padding,o=e.legend.margin,s=e.legend.fontSize,l=15*e.pixelRatio,c=5*e.pixelRatio,u=Math.max(e.legend.lineHeight*e.pixelRatio,s);if("top"==e.legend.position||"bottom"==e.legend.position){for(var h=[],d=0,f=[],p=[],g=0;g<t.length;g++){var v=t[g],y=l+c+x(v.name||"undefined",s)+e.legend.itemGap;d+y>e.width-e.padding[1]-e.padding[3]?(h.push(p),f.push(d-e.legend.itemGap),d=y,p=[v]):(d+=y,p.push(v))}if(p.length){h.push(p),f.push(d-e.legend.itemGap),n.widthArr=f;var _=Math.max.apply(null,f);switch(e.legend.float){case"left":n.area.start.x=e.padding[3],n.area.end.x=e.padding[3]+2*r;break;case"right":n.area.start.x=e.width-e.padding[1]-_-2*r,n.area.end.x=e.width-e.padding[1];break;default:n.area.start.x=(e.width-_)/2-r,n.area.end.x=(e.width+_)/2+r}n.area.width=_+2*r,n.area.wholeWidth=_+2*r,n.area.height=h.length*u+2*r,n.area.wholeHeight=h.length*u+2*r+2*o,n.points=h}}else{var m=t.length,w=e.height-e.padding[0]-e.padding[2]-2*o-2*r,b=Math.min(Math.floor(w/u),m);switch(n.area.height=b*u+2*r,n.area.wholeHeight=b*u+2*r,e.legend.float){case"top":n.area.start.y=e.padding[0]+o,n.area.end.y=e.padding[0]+o+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-o-n.area.height,n.area.end.y=e.height-e.padding[2]-o;break;default:n.area.start.y=(e.height-n.area.height)/2,n.area.end.y=(e.height+n.area.height)/2}for(var S=m%b===0?m/b:Math.floor(m/b+1),T=[],C=0;C<S;C++){var A=t.slice(C*b,C*b+b);T.push(A)}if(n.points=T,T.length){for(var P=0;P<T.length;P++){for(var k=T[P],$=0,L=0;L<k.length;L++){var M=l+c+x(k[L].name||"undefined",s)+e.legend.itemGap;M>$&&($=M)}n.widthArr.push($),n.heightArr.push(k.length*u+2*r)}for(var F=0,D=0;D<n.widthArr.length;D++)F+=n.widthArr[D];n.area.width=F-e.legend.itemGap+2*r,n.area.wholeWidth=n.area.width+r}}switch(e.legend.position){case"top":n.area.start.y=e.padding[0]+o,n.area.end.y=e.padding[0]+o+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-n.area.height-o,n.area.end.y=e.height-e.padding[2]-o;break;case"left":n.area.start.x=e.padding[3],n.area.end.x=e.padding[3]+n.area.width;break;case"right":n.area.start.x=e.width-e.padding[1]-n.area.width,n.area.end.x=e.width-e.padding[1];break}return a.legendData=n,n}function j(t,e,i,a){var n={angle:0,xAxisHeight:i.xAxisHeight},r=t.map((function(t){return x(t,e.xAxis.fontSize||i.fontSize)})),o=Math.max.apply(this,r);return 1==e.xAxis.rotateLabel&&o+2*i.xAxisTextPadding>a&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*i.xAxisTextPadding+o*Math.sin(n.angle)),n}function W(t,e,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,n=v(t),r=[];n=n.filter((function(t){return"object"===typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),n.map((function(t){"object"===typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){r.push(t)})):r.push(t[0]):r.push(t.value):r.push(t)}));var o=0,s=0;if(r.length>0&&(o=Math.min.apply(this,r),s=Math.max.apply(this,r)),a>-1?("number"===typeof e.xAxis.data[a].min&&(o=Math.min(e.xAxis.data[a].min,o)),"number"===typeof e.xAxis.data[a].max&&(s=Math.max(e.xAxis.data[a].max,s))):("number"===typeof e.xAxis.min&&(o=Math.min(e.xAxis.min,o)),"number"===typeof e.xAxis.max&&(s=Math.max(e.xAxis.max,s))),o===s){var l=s||10;s+=l}for(var c=o,u=s,h=[],d=(u-c)/e.xAxis.splitNumber,f=0;f<=e.xAxis.splitNumber;f++)h.push(c+d*f);return h}function N(t,e,i){var a={angle:0,xAxisHeight:i.xAxisHeight};a.ranges=W(t,e,i),a.rangesFormat=a.ranges.map((function(t){return t=e.xAxis.format?e.xAxis.format(t):n.toFixed(t,2),t}));var r=a.ranges.map((function(t){return t=n.toFixed(t,2),t=e.xAxis.format?e.xAxis.format(Number(t)):t,t}));a=Object.assign(a,Z(r,e,i));var o=a.eachSpacing,s=r.map((function(t){return x(t)})),l=Math.max.apply(this,s);return l+2*i.xAxisTextPadding>o&&(a.angle=45*Math.PI/180,a.xAxisHeight=2*i.xAxisTextPadding+l*Math.sin(a.angle)),!0===e.xAxis.disabled&&(a.xAxisHeight=0),a}function B(t,e,i,a,n){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=n.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,v(a))),l=[],c=function(n){var o=a[n],c={};c.color=o.color,c.legendShape=o.legendShape,c.pointShape=o.pointShape,c.data=[],o.data.forEach((function(a,n){var o={};o.angle=t[n],o.proportion=a/s,o.position=d(i*o.proportion*r*Math.cos(o.angle),i*o.proportion*r*Math.sin(o.angle),e),c.data.push(o)})),l.push(c)},u=0;u<a.length;u++)c(u);return l}function H(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=0,n=0,r=0;r<t.length;r++){var o=t[r];o.data=null===o.data?0:o.data,a+=o.data}for(var s=0;s<t.length;s++){var l=t[s];l.data=null===l.data?0:l.data,l._proportion_=0===a?1/t.length*i:l.data/a*i,l._radius_=e}for(var c=0;c<t.length;c++){var u=t[c];u._start_=n,n+=2*u._proportion_*Math.PI}return t}function G(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var a=0;a<t.length;a++)t[a].radius=t[a].data/t[0].data*e*i,t[a]._proportion_=t[a].data/t[0].data;return t.reverse()}function X(t,e,i,a){for(var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=0,o=0,s=[],l=0;l<t.length;l++){var c=t[l];c.data=null===c.data?0:c.data,r+=c.data,s.push(c.data)}for(var u=Math.min.apply(null,s),h=Math.max.apply(null,s),d=a-i,f=0;f<t.length;f++){var p=t[f];p.data=null===p.data?0:p.data,0===r||"area"==e?(p._proportion_=p.data/r*n,p._rose_proportion_=1/t.length*n):(p._proportion_=p.data/r*n,p._rose_proportion_=p.data/r*n),p._radius_=i+d*((p.data-u)/(h-u))}for(var g=0;g<t.length;g++){var x=t[g];x._start_=o,o+=2*x._rose_proportion_*Math.PI}return t}function Y(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==i&&(i=.999999);for(var a=0;a<t.length;a++){var n=t[a];n.data=null===n.data?0:n.data;var r=void 0;r="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,n._proportion_=r*n.data*i+e.startAngle,n._proportion_>=2&&(n._proportion_=n._proportion_%2)}return t}function V(t,e,i){for(var a=e-i+1,n=e,r=0;r<t.length;r++)t[r].value=null===t[r].value?0:t[r].value,t[r]._startAngle_=n,t[r]._endAngle_=a*t[r].value+e,t[r]._endAngle_>=2&&(t[r]._endAngle_=t[r]._endAngle_%2),n=t[r]._endAngle_;return t}function q(t,e,i){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=0;n<t.length;n++){var r=t[n];if(r.data=null===r.data?0:r.data,"auto"==i.pointer.color){for(var o=0;o<e.length;o++)if(r.data<=e[o].value){r.color=e[o].color;break}}else r.color=i.pointer.color;var s=i.startAngle-i.endAngle+1;r._endAngle_=s*r.data+i.startAngle,r._oldAngle_=i.oldAngle,i.oldAngle<i.endAngle&&(r._oldAngle_+=2),r.data>=i.oldData?r._proportion_=(r._endAngle_-r._oldAngle_)*a+i.oldAngle:r._proportion_=r._oldAngle_-(r._oldAngle_-r._endAngle_)*a,r._proportion_>=2&&(r._proportion_=r._proportion_%2)}return t}function U(t){t=H(t);for(var e=0,i=0;i<t.length;i++){var a=t[i],r=a.format?a.format(+a._proportion_.toFixed(2)):n.toFixed(100*a._proportion_)+"%";e=Math.max(e,x(r))}return e}function J(t,e,i,a,n,r){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/i),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width)),t.width<=0&&(t.width=1),t.x+=(a+.5-i/2)*t.width,t)}))}function K(t,e,i,a,n,r,o){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/2),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width)),a>0&&(t.width-=2*o),t)}))}function Q(t,e,i,a,n,r,o){return t.map((function(t,i){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/2),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width)),t)}))}function Z(t,e,i){var a=e.width-e.area[1]-e.area[3],n=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&n>1&&"justify"==e.xAxis.boundaryGap&&(n-=1);var r=a/n,o=[],s=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){o.push(s+e*r)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?o.push(s+t.length*r):o.push(l)),{xAxisPoints:o,startX:s,endX:l,eachSpacing:r}}function tt(t,e,i,a,n,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=r.height-r.area[0]-r.area[2];return t.forEach((function(t,o){if(null===t)l.push(null);else{var u=[];t.forEach((function(t,l){var h={};h.x=a[o]+Math.round(n/2);var d=t.value||t,f=c*(d-e)/(i-e);f*=s,h.y=r.height-Math.round(f)-r.area[2],u.push(h)})),l.push(u)}})),l}function et(t,e,i,a,n,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=r.type&&"area"!=r.type||(l=r.xAxis.boundaryGap);var c=[],u=r.height-r.area[0]-r.area[2],h=r.width-r.area[1]-r.area[3];return t.forEach((function(t,o){if(null===t)c.push(null);else{var d={};d.color=t.color,d.x=a[o];var f,p,g,x=t;if("object"===typeof t&&null!==t)if(t.constructor.toString().indexOf("Array")>-1)f=[].concat(r.chartData.xAxisData.ranges),p=f.shift(),g=f.pop(),x=t[1],d.x=r.area[3]+h*(t[0]-p)/(g-p);else x=t.value;"center"==l&&(d.x+=Math.round(n/2));var v=u*(x-e)/(i-e);v*=s,d.y=r.height-Math.round(v)-r.area[2],c.push(d)}})),c}function it(t,e,i,a,n,r,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,u=[],h=r.height-r.area[0]-r.area[2];return t.forEach((function(t,o){if(null===t)u.push(null);else{var d={};if(d.color=t.color,d.x=a[o]+Math.round(n/2),s>0){for(var f=0,p=0;p<=s;p++)f+=l[p].data[o];var g=f-t,x=h*(f-e)/(i-e),v=h*(g-e)/(i-e)}else f=t,x=h*(f-e)/(i-e),v=0;var y=v;x*=c,y*=c,d.y=r.height-Math.round(x)-r.area[2],d.y0=r.height-Math.round(y)-r.area[2],u.push(d)}})),u}function at(t,e,i,a){var n,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;n="stack"==a?y(t,e.categories.length):v(t);var o=[];n=n.filter((function(t){return"object"===typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),n.map((function(t){"object"===typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){o.push(t)})):o.push(t[1]):o.push(t.value):o.push(t)}));var s=0,l=0;if(o.length>0&&(s=Math.min.apply(this,o),l=Math.max.apply(this,o)),r>-1?("number"===typeof e.yAxis.data[r].min&&(s=Math.min(e.yAxis.data[r].min,s)),"number"===typeof e.yAxis.data[r].max&&(l=Math.max(e.yAxis.data[r].max,l))):("number"===typeof e.yAxis.min&&(s=Math.min(e.yAxis.min,s)),"number"===typeof e.yAxis.max&&(l=Math.max(e.yAxis.max,l))),s===l){var c=l||10;l+=c}for(var u=g(s,l),h=u.minRange,d=u.maxRange,f=[],p=(d-h)/e.yAxis.splitNumber,x=0;x<=e.yAxis.splitNumber;x++)f.push(h+p*x);return f.reverse()}function nt(t,e,i){var r=a({},{type:""},e.extra.column),o=e.yAxis.data.length,s=new Array(o);if(o>0){for(var l=0;l<o;l++){s[l]=[];for(var c=0;c<t.length;c++)t[c].index==l&&s[l].push(t[c])}for(var u=new Array(o),h=new Array(o),d=new Array(o),f=function(t){var a=e.yAxis.data[t];1==e.yAxis.disabled&&(a.disabled=!0),u[t]=at(s[t],e,i,r.type,t);var o=a.fontSize||i.fontSize;d[t]={position:a.position?a.position:"left",width:0},h[t]=u[t].map((function(e){return e=n.toFixed(e,6),e=a.format?a.format(Number(e)):e,d[t].width=Math.max(d[t].width,x(e,o)+5),e}));var l=a.calibration?4*e.pixelRatio:0;d[t].width+=l+3*e.pixelRatio,!0===a.disabled&&(d[t].width=0)},p=0;p<o;p++)f(p)}else{u=new Array(1),h=new Array(1),d=new Array(1);u[0]=at(t,e,i,r.type),d[0]={position:"left",width:0};var g=e.yAxis.fontSize||i.fontSize;h[0]=u[0].map((function(t){return t=n.toFixed(t,6),t=e.yAxis.format?e.yAxis.format(Number(t)):t,d[0].width=Math.max(d[0].width,x(t,g)+5),t})),d[0].width+=3*e.pixelRatio,!0===e.yAxis.disabled?(d[0]={position:"left",width:0},e.yAxis.data[0]={disabled:!0}):e.yAxis.data[0]={disabled:!1,position:"left",max:e.yAxis.max,min:e.yAxis.min,format:e.yAxis.format}}return{rangesFormat:h,ranges:u,yAxisWidth:d}}function rt(t,e,i,a,n){for(var r=[].concat(i.chartData.yAxisData.ranges),o=i.height-i.area[0]-i.area[2],s=i.area[0],l=[],c=0;c<r.length;c++){var u=r[c].shift(),h=r[c].pop(),d=u-(u-h)*(t-s)/o;d=i.yAxis.data[c].format?i.yAxis.data[c].format(Number(d)):d.toFixed(0),l.push(String(d))}return l}function ot(t,e){for(var i,a,n=e.height-e.area[0]-e.area[2],r=0;r<t.length;r++){t[r].yAxisIndex=t[r].yAxisIndex?t[r].yAxisIndex:0;var o=[].concat(e.chartData.yAxisData.ranges[t[r].yAxisIndex]);i=o.pop(),a=o.shift();var s=n*(t[r].value-i)/(a-i);t[r].y=e.height-Math.round(s)-e.area[2]}return t}function st(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function lt(t,e,i,a,n){a.beginPath(),"hollow"==n.dataPointShapeType?(a.setStrokeStyle(e),a.setFillStyle(n.background),a.setLineWidth(2*n.pixelRatio)):(a.setStrokeStyle("#ffffff"),a.setFillStyle(e),a.setLineWidth(1*n.pixelRatio)),"diamond"===i?t.forEach((function(t,e){null!==t&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y),a.lineTo(t.x,t.y+4.5),a.lineTo(t.x+4.5,t.y),a.lineTo(t.x,t.y-4.5))})):"circle"===i?t.forEach((function(t,e){null!==t&&(a.moveTo(t.x+2.5*n.pixelRatio,t.y),a.arc(t.x,t.y,3*n.pixelRatio,0,2*Math.PI,!1))})):"rect"===i?t.forEach((function(t,e){null!==t&&(a.moveTo(t.x-3.5,t.y-3.5),a.rect(t.x-3.5,t.y-3.5,7,7))})):"triangle"===i&&t.forEach((function(t,e){null!==t&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y+4.5),a.lineTo(t.x+4.5,t.y+4.5),a.lineTo(t.x,t.y-4.5))})),a.closePath(),a.fill(),a.stroke()}function ct(t,e,i,a){var n=t.title.fontSize||e.titleFontSize,r=t.subtitle.fontSize||e.subtitleFontSize,o=t.title.name||"",s=t.subtitle.name||"",l=t.title.color||e.titleColor,c=t.subtitle.color||e.subtitleColor,u=o?n:0,h=s?r:0,d=5;if(s){var f=x(s,r),p=a.x-f/2+(t.subtitle.offsetX||0),g=a.y+r/2+(t.subtitle.offsetY||0);o&&(g+=(u+d)/2),i.beginPath(),i.setFontSize(r),i.setFillStyle(c),i.fillText(s,p,g),i.closePath(),i.stroke()}if(o){var v=x(o,n),y=a.x-v/2+(t.title.offsetX||0),_=a.y+n/2+(t.title.offsetY||0);s&&(_-=(h+d)/2),i.beginPath(),i.setFontSize(n),i.setFillStyle(l),i.fillText(o,y,_),i.closePath(),i.stroke()}}function ut(t,e,i,a){var n=e.data;t.forEach((function(t,r){if(null!==t){a.beginPath(),a.setFontSize(e.textSize||i.fontSize),a.setFillStyle(e.textColor||"#666666");var o=n[r];"object"===typeof n[r]&&null!==n[r]&&(o=n[r].constructor==Array?n[r][1]:n[r].value);var s=e.format?e.format(o):o;a.fillText(String(s),t.x-x(s,e.textSize||i.fontSize)/2,t.y-4),a.closePath(),a.stroke()}}))}function ht(t,e,i,a,n,r){e-=t.width/2+n.gaugeLabelTextMargin;for(var o=t.startAngle-t.endAngle+1,s=o/t.splitLine.splitNumber,l=t.endNumber-t.startNumber,c=l/t.splitLine.splitNumber,u=t.startAngle,h=t.startNumber,d=0;d<t.splitLine.splitNumber+1;d++){var f={x:e*Math.cos(u*Math.PI),y:e*Math.sin(u*Math.PI)},p=t.labelFormat?t.labelFormat(h):h;f.x+=i.x-x(p)/2,f.y+=i.y;var g=f.x,v=f.y;r.beginPath(),r.setFontSize(n.fontSize),r.setFillStyle(t.labelColor||"#666666"),r.fillText(p,g,v+n.fontSize/2),r.closePath(),r.stroke(),u+=s,u>=2&&(u%=2),h+=c}}function dt(t,e,i,a,r,o){var s=a.extra.radar||{};e+=r.radarLabelTextMargin,t.forEach((function(t,l){var c={x:e*Math.cos(t),y:e*Math.sin(t)},u=d(c.x,c.y,i),h=u.x,f=u.y;n.approximatelyEqual(c.x,0)?h-=x(a.categories[l]||"")/2:c.x<0&&(h-=x(a.categories[l]||"")),o.beginPath(),o.setFontSize(r.fontSize),o.setFillStyle(s.labelColor||"#666666"),o.fillText(a.categories[l]||"",h,f+r.fontSize/2),o.closePath(),o.stroke()}))}function ft(t,e,i,a,r,o){for(var s=i.pieChartLinePadding,l=[],c=null,u=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):n.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var i=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2),a=t.color,r=t._radius_;return{arc:i,text:e,color:a,radius:r,textColor:t.textColor,textSize:t.textSize}})),h=0;h<u.length;h++){var p=u[h],g=Math.cos(p.arc)*(p.radius+s),v=Math.sin(p.arc)*(p.radius+s),y=Math.cos(p.arc)*p.radius,_=Math.sin(p.arc)*p.radius,m=g>=0?g+i.pieChartTextPadding:g-i.pieChartTextPadding,w=v,b=x(p.text,p.textSize||i.fontSize),S=w;c&&n.isSameXCoordinateArea(c.start,{x:m})&&(S=m>0?Math.min(w,c.start.y):g<0||w>0?Math.max(w,c.start.y):Math.min(w,c.start.y)),m<0&&(m-=b);var T={lineStart:{x:y,y:_},lineEnd:{x:g,y:v},start:{x:m,y:S},width:b,height:i.fontSize,text:p.text,color:p.color,textColor:p.textColor,textSize:p.textSize};c=f(T,c),l.push(c)}for(var C=0;C<l.length;C++){var A=l[C],P=d(A.lineStart.x,A.lineStart.y,o),k=d(A.lineEnd.x,A.lineEnd.y,o),$=d(A.start.x,A.start.y,o);a.setLineWidth(1*e.pixelRatio),a.setFontSize(i.fontSize),a.beginPath(),a.setStrokeStyle(A.color),a.setFillStyle(A.color),a.moveTo(P.x,P.y);var L=A.start.x<0?$.x+A.width:$.x,M=A.start.x<0?$.x-5:$.x+5;a.quadraticCurveTo(k.x,k.y,L,$.y),a.moveTo(P.x,P.y),a.stroke(),a.closePath(),a.beginPath(),a.moveTo($.x+A.width,$.y),a.arc(L,$.y,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(A.textSize||i.fontSize),a.setFillStyle(A.textColor||"#666666"),a.fillText(A.text,M,$.y+3),a.closePath(),a.stroke(),a.closePath()}}function pt(t,e,i,a){var n=e.extra.tooltip||{};n.gridType=void 0==n.gridType?"solid":n.gridType,n.dashLength=void 0==n.dashLength?4:n.dashLength;var o=e.area[0],s=e.height-e.area[2];if("dash"==n.gridType&&a.setLineDash([n.dashLength,n.dashLength]),a.setStrokeStyle(n.gridColor||"#cccccc"),a.setLineWidth(1*e.pixelRatio),a.beginPath(),a.moveTo(t,o),a.lineTo(t,s),a.stroke(),a.setLineDash([]),n.xAxisLabel){var l=e.categories[e.tooltip.index];a.setFontSize(i.fontSize);var c=x(l,i.fontSize),u=t-.5*c,h=s;a.beginPath(),a.setFillStyle(r(n.labelBgColor||i.toolTipBackground,n.labelBgOpacity||i.toolTipOpacity)),a.setStrokeStyle(n.labelBgColor||i.toolTipBackground),a.setLineWidth(1*e.pixelRatio),a.rect(u-i.toolTipPadding,h,c+2*i.toolTipPadding,i.fontSize+2*i.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(n.labelFontColor||i.fontColor),a.fillText(String(l),u,h+i.toolTipPadding+i.fontSize),a.closePath(),a.stroke()}}function gt(t,e,i){for(var n=a({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),o=t.area[3],s=t.width-t.area[1],l=ot(n.data,t),c=0;c<l.length;c++){var u=a({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},l[c]);if("dash"==n.type&&i.setLineDash([n.dashLength,n.dashLength]),i.setStrokeStyle(u.lineColor),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.moveTo(o,u.y),i.lineTo(s,u.y),i.stroke(),i.setLineDash([]),u.showLabel){var h=t.yAxis.format?t.yAxis.format(Number(u.value)):u.value;i.setFontSize(e.fontSize);var d=x(h,e.fontSize),f=t.padding[3]+e.yAxisTitleWidth-e.toolTipPadding,p=Math.max(t.area[3],d+2*e.toolTipPadding),g=p-f,v=f+(g-d)/2,y=u.y;i.setFillStyle(r(u.labelBgColor,u.labelBgOpacity)),i.setStrokeStyle(u.labelBgColor),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.rect(f,y-.5*e.fontSize-e.toolTipPadding,g,e.fontSize+2*e.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(e.fontSize),i.setFillStyle(u.labelFontColor),i.fillText(String(h),v,y+.5*e.fontSize),i.stroke()}}}function xt(t,e,i,n,o){var s=a({},{gridType:"solid",dashLength:4},t.extra.tooltip),l=t.area[3],c=t.width-t.area[1];if("dash"==s.gridType&&i.setLineDash([s.dashLength,s.dashLength]),i.setStrokeStyle(s.gridColor||"#cccccc"),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.moveTo(l,t.tooltip.offset.y),i.lineTo(c,t.tooltip.offset.y),i.stroke(),i.setLineDash([]),s.yAxisLabel)for(var u=rt(t.tooltip.offset.y,t.series,t,e,n),h=t.chartData.yAxisData.yAxisWidth,d=t.area[3],f=t.width-t.area[1],p=0;p<u.length;p++){i.setFontSize(e.fontSize);var g=x(u[p],e.fontSize),v=void 0,y=void 0,_=void 0;"left"==h[p].position?(v=d-h[p].width,y=Math.max(v,v+g+2*e.toolTipPadding)):(v=f,y=Math.max(v+h[p].width,v+g+2*e.toolTipPadding)),_=y-v;var m=v+(_-g)/2,w=t.tooltip.offset.y;i.beginPath(),i.setFillStyle(r(s.labelBgColor||e.toolTipBackground,s.labelBgOpacity||e.toolTipOpacity)),i.setStrokeStyle(s.labelBgColor||e.toolTipBackground),i.setLineWidth(1*t.pixelRatio),i.rect(v,w-.5*e.fontSize-e.toolTipPadding,_,e.fontSize+2*e.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(e.fontSize),i.setFillStyle(s.labelFontColor||e.fontColor),i.fillText(u[p],m,w+.5*e.fontSize),i.closePath(),i.stroke(),"left"==h[p].position?d-=h[p].width+t.yAxis.padding:f+=h[p].width+t.yAxis.padding}}function vt(t,e,i,n,o){var s=a({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.tooltip),l=e.area[0],c=e.height-e.area[2];n.beginPath(),n.setFillStyle(r(s.activeBgColor,s.activeBgOpacity)),n.rect(t-o/2,l,o,c-l),n.closePath(),n.fill()}function yt(t,e,i,n,o,s,l){var c=a({},{showBox:!0,bgColor:"#000000",bgOpacity:.7,fontColor:"#FFFFFF"},i.extra.tooltip),u=4*i.pixelRatio,h=5*i.pixelRatio,d=8*i.pixelRatio,f=!1;"line"!=i.type&&"area"!=i.type&&"candle"!=i.type&&"mix"!=i.type||pt(i.tooltip.offset.x,i,n,o),e=a({x:0,y:0},e),e.y-=8*i.pixelRatio;var p=t.map((function(t){return x(t.text,n.fontSize)})),g=u+h+4*n.toolTipPadding+Math.max.apply(null,p),v=2*n.toolTipPadding+t.length*n.toolTipLineHeight;0!=c.showBox&&(e.x-Math.abs(i._scrollDistance_)+d+g>i.width&&(f=!0),v+e.y>i.height&&(e.y=i.height-v),o.beginPath(),o.setFillStyle(r(c.bgColor||n.toolTipBackground,c.bgOpacity||n.toolTipOpacity)),f?(o.moveTo(e.x,e.y+10*i.pixelRatio),o.lineTo(e.x-d,e.y+10*i.pixelRatio-5*i.pixelRatio),o.lineTo(e.x-d,e.y),o.lineTo(e.x-d-Math.round(g),e.y),o.lineTo(e.x-d-Math.round(g),e.y+v),o.lineTo(e.x-d,e.y+v),o.lineTo(e.x-d,e.y+10*i.pixelRatio+5*i.pixelRatio),o.lineTo(e.x,e.y+10*i.pixelRatio)):(o.moveTo(e.x,e.y+10*i.pixelRatio),o.lineTo(e.x+d,e.y+10*i.pixelRatio-5*i.pixelRatio),o.lineTo(e.x+d,e.y),o.lineTo(e.x+d+Math.round(g),e.y),o.lineTo(e.x+d+Math.round(g),e.y+v),o.lineTo(e.x+d,e.y+v),o.lineTo(e.x+d,e.y+10*i.pixelRatio+5*i.pixelRatio),o.lineTo(e.x,e.y+10*i.pixelRatio)),o.closePath(),o.fill(),t.forEach((function(t,i){if(null!==t.color){o.beginPath(),o.setFillStyle(t.color);var a=e.x+d+2*n.toolTipPadding,r=e.y+(n.toolTipLineHeight-n.fontSize)/2+n.toolTipLineHeight*i+n.toolTipPadding+1;f&&(a=e.x-g-d+2*n.toolTipPadding),o.fillRect(a,r,u,n.fontSize),o.closePath()}})),t.forEach((function(t,i){var a=e.x+d+2*n.toolTipPadding+u+h;f&&(a=e.x-g-d+2*n.toolTipPadding+ +u+h);var r=e.y+(n.toolTipLineHeight-n.fontSize)/2+n.toolTipLineHeight*i+n.toolTipPadding;o.beginPath(),o.setFontSize(n.fontSize),o.setFillStyle(c.fontColor),o.fillText(t.text,a,r+n.fontSize),o.closePath(),o.stroke()})))}function _t(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,c=a({},{type:"group",width:l/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),u=[];n.save();var h=-2,d=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),h=Math.floor(-e._scrollDistance_/l)-2,d=h+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===r&&vt(e.tooltip.offset.x,e,i,n,l),t.forEach((function(a,o){var f,p,g;f=[].concat(e.chartData.yAxisData.ranges[a.index]),p=f.pop(),g=f.shift();var x=a.data;switch(c.type){case"group":var v=et(x,p,g,s,l,e,i,r),y=it(x,p,g,s,l,e,i,o,t,r);u.push(y),v=J(v,l,t.length,o,i,e);for(var _=0;_<v.length;_++){var m=v[_];if(null!==m&&_>h&&_<d){n.beginPath(),n.setStrokeStyle(m.color||a.color),n.setLineWidth(1),n.setFillStyle(m.color||a.color);var w=m.x-m.width/2,b=e.height-m.y-e.area[2];n.moveTo(w,m.y),n.lineTo(w+m.width-2,m.y),n.lineTo(w+m.width-2,e.height-e.area[2]),n.lineTo(w,e.height-e.area[2]),n.lineTo(w,m.y),n.closePath(),n.stroke(),n.fill()}}break;case"stack":v=it(x,p,g,s,l,e,i,o,t,r);u.push(v),v=Q(v,l,t.length,o,i,e,t);for(var S=0;S<v.length;S++){var T=v[S];if(null!==T&&S>h&&S<d){n.beginPath(),n.setFillStyle(T.color||a.color);w=T.x-T.width/2+1,b=e.height-T.y-e.area[2];var C=e.height-T.y0-e.area[2];o>0&&(b-=C),n.moveTo(w,T.y),n.fillRect(w,T.y,T.width-2,b),n.closePath(),n.fill()}}break;case"meter":v=et(x,p,g,s,l,e,i,r);if(u.push(v),v=K(v,l,t.length,o,i,e,c.meter.border),0==o)for(var A=0;A<v.length;A++){var P=v[A];if(null!==P&&A>h&&A<d){n.beginPath(),n.setFillStyle(c.meter.fillColor);w=P.x-P.width/2,b=e.height-P.y-e.area[2];n.moveTo(w,P.y),n.fillRect(w,P.y,P.width,b),n.closePath(),n.fill(),c.meter.border>0&&(n.beginPath(),n.setStrokeStyle(a.color),n.setLineWidth(c.meter.border*e.pixelRatio),n.moveTo(w+.5*c.meter.border,P.y+b),n.lineTo(w+.5*c.meter.border,P.y+.5*c.meter.border),n.lineTo(w+P.width-.5*c.meter.border,P.y+.5*c.meter.border),n.lineTo(w+P.width-.5*c.meter.border,P.y+b),n.stroke())}}else for(var k=0;k<v.length;k++){var $=v[k];if(null!==$&&k>h&&k<d){n.beginPath(),n.setFillStyle($.color||a.color);w=$.x-$.width/2,b=e.height-$.y-e.area[2];n.moveTo(w,$.y),n.fillRect(w,$.y,$.width,b),n.closePath(),n.fill()}}break}})),!1!==e.dataLabel&&1===r&&t.forEach((function(a,o){var u,h,d;u=[].concat(e.chartData.yAxisData.ranges[a.index]),h=u.pop(),d=u.shift();var f=a.data;switch(c.type){case"group":var p=et(f,h,d,s,l,e,i,r);p=J(p,l,t.length,o,i,e),ut(p,a,i,n);break;case"stack":p=it(f,h,d,s,l,e,i,o,t,r);ut(p,a,i,n);break;case"meter":p=et(f,h,d,s,l,e,i,r);ut(p,a,i,n);break}})),n.restore(),{xAxisPoints:s,calPoints:u,eachSpacing:l}}function mt(t,e,i,n,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=a({},{color:{},average:{}},i.extra.candle);s.color=a({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=a({},{show:!1,name:[],day:[],color:n.colors},s.average),i.extra.candle=s;var l=i.chartData.xAxisData,c=l.xAxisPoints,u=l.eachSpacing,d=[];r.save();var f=-2,p=c.length+2,g=0,x=i.width+u;return i._scrollDistance_&&0!==i._scrollDistance_&&!0===i.enableScroll&&(r.translate(i._scrollDistance_,0),f=Math.floor(-i._scrollDistance_/u)-2,p=f+i.xAxis.itemCount+4,g=-i._scrollDistance_-u+i.area[3],x=g+(i.xAxis.itemCount+4)*u),(s.average.show||e)&&e.forEach((function(t,e){var a,s,l;a=[].concat(i.chartData.yAxisData.ranges[t.index]),s=a.pop(),l=a.shift();for(var d=t.data,f=et(d,s,l,c,u,i,n,o),p=E(f),v=0;v<p.length;v++){var y=p[v];if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(1),1===y.length)r.moveTo(y[0].x,y[0].y),r.arc(y[0].x,y[0].y,1,0,2*Math.PI);else{r.moveTo(y[0].x,y[0].y);for(var _=0,m=0;m<y.length;m++){var w=y[m];if(0==_&&w.x>g&&(r.moveTo(w.x,w.y),_=1),m>0&&w.x>g&&w.x<x){var b=h(y,m-1);r.bezierCurveTo(b.ctrA.x,b.ctrA.y,b.ctrB.x,b.ctrB.y,w.x,w.y)}}r.moveTo(y[0].x,y[0].y)}r.closePath(),r.stroke()}})),t.forEach((function(t,e){var a,l,h;a=[].concat(i.chartData.yAxisData.ranges[t.index]),l=a.pop(),h=a.shift();var g=t.data,x=tt(g,l,h,c,u,i,n,o);d.push(x);for(var v=E(x),y=0;y<v[0].length;y++)if(y>f&&y<p){var _=v[0][y];r.beginPath(),g[y][1]-g[y][0]>0?(r.setStrokeStyle(s.color.upLine),r.setFillStyle(s.color.upFill),r.setLineWidth(1*i.pixelRatio),r.moveTo(_[3].x,_[3].y),r.lineTo(_[1].x,_[1].y),r.lineTo(_[1].x-u/4,_[1].y),r.lineTo(_[0].x-u/4,_[0].y),r.lineTo(_[0].x,_[0].y),r.lineTo(_[2].x,_[2].y),r.lineTo(_[0].x,_[0].y),r.lineTo(_[0].x+u/4,_[0].y),r.lineTo(_[1].x+u/4,_[1].y),r.lineTo(_[1].x,_[1].y),r.moveTo(_[3].x,_[3].y)):(r.setStrokeStyle(s.color.downLine),r.setFillStyle(s.color.downFill),r.setLineWidth(1*i.pixelRatio),r.moveTo(_[3].x,_[3].y),r.lineTo(_[0].x,_[0].y),r.lineTo(_[0].x-u/4,_[0].y),r.lineTo(_[1].x-u/4,_[1].y),r.lineTo(_[1].x,_[1].y),r.lineTo(_[2].x,_[2].y),r.lineTo(_[1].x,_[1].y),r.lineTo(_[1].x+u/4,_[1].y),r.lineTo(_[0].x+u/4,_[0].y),r.lineTo(_[0].x,_[0].y),r.moveTo(_[3].x,_[3].y)),r.closePath(),r.fill(),r.stroke()}})),r.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:u}}function wt(t,e,i,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=a({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),l=e.chartData.xAxisData,c=l.xAxisPoints,u=l.eachSpacing,d=e.height-e.area[2],f=[];n.save();var p=0,g=e.width+u;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),p=-e._scrollDistance_-u+e.area[3],g=p+(e.xAxis.itemCount+4)*u),t.forEach((function(t,a){var l,x,v;l=[].concat(e.chartData.yAxisData.ranges[t.index]),x=l.pop(),v=l.shift();var y=t.data,_=et(y,x,v,c,u,e,i,o);f.push(_);for(var m=E(_),w=0;w<m.length;w++){var b=m[w];if(n.beginPath(),n.setStrokeStyle(r(t.color,s.opacity)),s.gradient){var S=n.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);S.addColorStop("0",r(t.color,s.opacity)),S.addColorStop("1.0",r("#FFFFFF",.1)),n.setFillStyle(S)}else n.setFillStyle(r(t.color,s.opacity));if(n.setLineWidth(s.width*e.pixelRatio),b.length>1){var T=b[0],C=b[b.length-1];n.moveTo(T.x,T.y);var A=0;if("curve"===s.type)for(var P=0;P<b.length;P++){var k=b[P];if(0==A&&k.x>p&&(n.moveTo(k.x,k.y),A=1),P>0&&k.x>p&&k.x<g){var $=h(b,P-1);n.bezierCurveTo($.ctrA.x,$.ctrA.y,$.ctrB.x,$.ctrB.y,k.x,k.y)}}else for(var L=0;L<b.length;L++){var M=b[L];0==A&&M.x>p&&(n.moveTo(M.x,M.y),A=1),L>0&&M.x>p&&M.x<g&&n.lineTo(M.x,M.y)}n.lineTo(C.x,d),n.lineTo(T.x,d),n.lineTo(T.x,T.y)}else{var F=b[0];n.moveTo(F.x-u/2,F.y),n.lineTo(F.x+u/2,F.y),n.lineTo(F.x+u/2,d),n.lineTo(F.x-u/2,d),n.moveTo(F.x-u/2,F.y)}if(n.closePath(),n.fill(),s.addLine){if("dash"==t.lineType){var D=t.dashLength?t.dashLength:8;D*=e.pixelRatio,n.setLineDash([D,D])}if(n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(s.width*e.pixelRatio),1===b.length)n.moveTo(b[0].x,b[0].y),n.arc(b[0].x,b[0].y,1,0,2*Math.PI);else{n.moveTo(b[0].x,b[0].y);var R=0;if("curve"===s.type)for(var O=0;O<b.length;O++){var I=b[O];if(0==R&&I.x>p&&(n.moveTo(I.x,I.y),R=1),O>0&&I.x>p&&I.x<g){var z=h(b,O-1);n.bezierCurveTo(z.ctrA.x,z.ctrA.y,z.ctrB.x,z.ctrB.y,I.x,I.y)}}else for(var j=0;j<b.length;j++){var W=b[j];0==R&&W.x>p&&(n.moveTo(W.x,W.y),R=1),j>0&&W.x>p&&W.x<g&&n.lineTo(W.x,W.y)}n.moveTo(b[0].x,b[0].y)}n.stroke(),n.setLineDash([])}}!1!==e.dataPointShape&&lt(_,t.color,t.pointShape,n,e)})),!1!==e.dataLabel&&1===o&&t.forEach((function(t,a){var r,s,l;r=[].concat(e.chartData.yAxisData.ranges[t.index]),s=r.pop(),l=r.shift();var h=t.data,d=et(h,s,l,c,u,e,i,o);ut(d,t,i,n)})),n.restore(),{xAxisPoints:c,calPoints:f,eachSpacing:u}}function bt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=a({},{type:"straight",width:2},e.extra.line);o.width*=e.pixelRatio;var s=e.chartData.xAxisData,l=s.xAxisPoints,c=s.eachSpacing,u=[];n.save();var d=0,f=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),d=-e._scrollDistance_-c+e.area[3],f=d+(e.xAxis.itemCount+4)*c),t.forEach((function(t,a){var s,p,g;s=[].concat(e.chartData.yAxisData.ranges[t.index]),p=s.pop(),g=s.shift();var x=t.data,v=et(x,p,g,l,c,e,i,r);u.push(v);var y=E(v);if("dash"==t.lineType){var _=t.dashLength?t.dashLength:8;_*=e.pixelRatio,n.setLineDash([_,_])}n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(o.width),y.forEach((function(t,e){if(1===t.length)n.moveTo(t[0].x,t[0].y),n.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{n.moveTo(t[0].x,t[0].y);var i=0;if("curve"===o.type)for(var a=0;a<t.length;a++){var r=t[a];if(0==i&&r.x>d&&(n.moveTo(r.x,r.y),i=1),a>0&&r.x>d&&r.x<f){var s=h(t,a-1);n.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,r.x,r.y)}}else for(var l=0;l<t.length;l++){var c=t[l];0==i&&c.x>d&&(n.moveTo(c.x,c.y),i=1),l>0&&c.x>d&&c.x<f&&n.lineTo(c.x,c.y)}n.moveTo(t[0].x,t[0].y)}})),n.stroke(),n.setLineDash([]),!1!==e.dataPointShape&&lt(v,t.color,t.pointShape,n,e)})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,a){var o,s,u;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),u=o.shift();var h=t.data,d=et(h,s,u,l,c,e,i,r);ut(d,t,i,n)})),n.restore(),{xAxisPoints:l,calPoints:u,eachSpacing:c}}function St(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,c=e.height-e.area[2],u=[],d=0,f=0;t.forEach((function(t,e){"column"==t.type&&(f+=1)})),a.save();var p=-2,g=s.length+2,x=0,v=e.width+l;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),p=Math.floor(-e._scrollDistance_/l)-2,g=p+e.xAxis.itemCount+4,x=-e._scrollDistance_-l+e.area[3],v=x+(e.xAxis.itemCount+4)*l),t.forEach((function(t,o){var y,_,m;y=[].concat(e.chartData.yAxisData.ranges[t.index]),_=y.pop(),m=y.shift();var w=t.data,b=et(w,_,m,s,l,e,i,n);if(u.push(b),"column"==t.type){b=J(b,l,f,d,i,e);for(var S=0;S<b.length;S++){var T=b[S];if(null!==T&&S>p&&S<g){a.beginPath(),a.setStrokeStyle(T.color||t.color),a.setLineWidth(1),a.setFillStyle(T.color||t.color);var C=T.x-T.width/2;e.height,T.y,e.area[2];a.moveTo(C,T.y),a.moveTo(C,T.y),a.lineTo(C+T.width-2,T.y),a.lineTo(C+T.width-2,e.height-e.area[2]),a.lineTo(C,e.height-e.area[2]),a.lineTo(C,T.y),a.closePath(),a.stroke(),a.fill(),a.closePath(),a.fill()}}d+=1}if("area"==t.type)for(var A=E(b),P=0;P<A.length;P++){var k=A[P];if(a.beginPath(),a.setStrokeStyle(t.color),a.setFillStyle(r(t.color,.2)),a.setLineWidth(2*e.pixelRatio),k.length>1){var $=k[0],L=k[k.length-1];a.moveTo($.x,$.y);var M=0;if("curve"===t.style)for(var F=0;F<k.length;F++){var D=k[F];if(0==M&&D.x>x&&(a.moveTo(D.x,D.y),M=1),F>0&&D.x>x&&D.x<v){var R=h(k,F-1);a.bezierCurveTo(R.ctrA.x,R.ctrA.y,R.ctrB.x,R.ctrB.y,D.x,D.y)}}else for(var O=0;O<k.length;O++){var I=k[O];0==M&&I.x>x&&(a.moveTo(I.x,I.y),M=1),O>0&&I.x>x&&I.x<v&&a.lineTo(I.x,I.y)}a.lineTo(L.x,c),a.lineTo($.x,c),a.lineTo($.x,$.y)}else{var z=k[0];a.moveTo(z.x-l/2,z.y),a.lineTo(z.x+l/2,z.y),a.lineTo(z.x+l/2,c),a.lineTo(z.x-l/2,c),a.moveTo(z.x-l/2,z.y)}a.closePath(),a.fill()}if("line"==t.type){var j=E(b);j.forEach((function(i,n){if("dash"==t.lineType){var r=t.dashLength?t.dashLength:8;r*=e.pixelRatio,a.setLineDash([r,r])}if(a.beginPath(),a.setStrokeStyle(t.color),a.setLineWidth(2*e.pixelRatio),1===i.length)a.moveTo(i[0].x,i[0].y),a.arc(i[0].x,i[0].y,1,0,2*Math.PI);else{a.moveTo(i[0].x,i[0].y);var o=0;if("curve"==t.style)for(var s=0;s<i.length;s++){var l=i[s];if(0==o&&l.x>x&&(a.moveTo(l.x,l.y),o=1),s>0&&l.x>x&&l.x<v){var c=h(i,s-1);a.bezierCurveTo(c.ctrA.x,c.ctrA.y,c.ctrB.x,c.ctrB.y,l.x,l.y)}}else for(var u=0;u<i.length;u++){var d=i[u];0==o&&d.x>x&&(a.moveTo(d.x,d.y),o=1),u>0&&d.x>x&&d.x<v&&a.lineTo(d.x,d.y)}a.moveTo(i[0].x,i[0].y)}a.stroke(),a.setLineDash([])}))}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&&lt(b,t.color,t.pointShape,a,e)})),!1!==e.dataLabel&&1===n){d=0;t.forEach((function(t,r){var o,c,u;o=[].concat(e.chartData.yAxisData.ranges[t.index]),c=o.pop(),u=o.shift();var h=t.data,p=et(h,c,u,s,l,e,i,n);"column"!==t.type?ut(p,t,i,a):(p=J(p,l,f,d,i,e),ut(p,t,i,a),d+=1)}))}return a.restore(),{xAxisPoints:s,calPoints:u,eachSpacing:l}}function Tt(t,e,i,a,n,r){var o=t.extra.tooltip||{};o.horizentalLine&&t.tooltip&&1===a&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&xt(t,e,i,n,r),i.save(),t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&i.translate(t._scrollDistance_,0),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===a&&yt(t.tooltip.textList,t.tooltip.offset,t,e,i,n,r),i.restore()}function Ct(t,e,i,a){var n=e.chartData.xAxisData,r=n.xAxisPoints,o=n.startX,s=n.endX,l=n.eachSpacing,c="center";"line"!=e.type&&"area"!=e.type||(c=e.xAxis.boundaryGap);var h=e.height-e.area[2],d=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var f=e.height-e.area[2]+i.xAxisHeight,p=s-o,g=l*(r.length-1),v=p*p/g,y=0;e._scrollDistance_&&(y=-e._scrollDistance_*p/g),a.beginPath(),a.setLineCap("round"),a.setLineWidth(6*e.pixelRatio),a.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),a.moveTo(o,f),a.lineTo(s,f),a.stroke(),a.closePath(),a.beginPath(),a.setLineCap("round"),a.setLineWidth(6*e.pixelRatio),a.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),a.moveTo(o+y,f),a.lineTo(o+y+v,f),a.stroke(),a.closePath(),a.setLineCap("butt")}if(a.save(),e._scrollDistance_&&0!==e._scrollDistance_&&a.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(a.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),a.setLineCap("butt"),a.setLineWidth(1*e.pixelRatio),r.forEach((function(t,i){i>0&&(a.beginPath(),a.moveTo(t-l/2,h),a.lineTo(t-l/2,h+3*e.pixelRatio),a.closePath(),a.stroke())}))),!0!==e.xAxis.disableGrid&&(a.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),a.setLineCap("butt"),a.setLineWidth(1*e.pixelRatio),"dash"==e.xAxis.gridType&&a.setLineDash([e.xAxis.dashLength,e.xAxis.dashLength]),e.xAxis.gridEval=e.xAxis.gridEval||1,r.forEach((function(t,i){i%e.xAxis.gridEval==0&&(a.beginPath(),a.moveTo(t,h),a.lineTo(t,d),a.stroke())})),a.setLineDash([])),!0!==e.xAxis.disabled){var _=t.length;e.xAxis.labelCount&&(_=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,_-=1);for(var m=Math.ceil(t.length/_),w=[],b=t.length,S=0;S<b;S++)S%m!==0?w.push(""):w.push(t[S]);w[b-1]=t[b-1];var T=e.xAxis.fontSize||i.fontSize;0===i._xAxisTextAngle_?w.forEach((function(t,n){var o=-x(String(t),T)/2;"center"==c&&(o+=l/2);var s=0;e.xAxis.scrollShow&&(s=6*e.pixelRatio),a.beginPath(),a.setFontSize(T),a.setFillStyle(e.xAxis.fontColor||"#666666"),a.fillText(String(t),r[n]+o,h+T+(i.xAxisHeight-s-T)/2),a.closePath(),a.stroke()})):w.forEach((function(t,n){a.save(),a.beginPath(),a.setFontSize(T),a.setFillStyle(e.xAxis.fontColor||"#666666");var o=x(String(t),T),s=-o;"center"==c&&(s+=l/2);var d=u(r[n]+l/2,h+T/2+5,e.height),f=d.transX,p=d.transY;a.rotate(-1*i._xAxisTextAngle_),a.translate(f,p),a.fillText(String(t),r[n]+s,h+T+5),a.closePath(),a.stroke(),a.restore()}))}a.restore(),e.xAxis.axisLine&&(a.beginPath(),a.setStrokeStyle(e.xAxis.axisLineColor),a.setLineWidth(1*e.pixelRatio),a.moveTo(o,e.height-e.area[2]),a.lineTo(s,e.height-e.area[2]),a.stroke())}function At(t,e,i,a){if(!0!==e.yAxis.disableGrid){for(var n=e.height-e.area[0]-e.area[2],r=n/e.yAxis.splitNumber,o=e.area[3],s=e.chartData.xAxisData.xAxisPoints,l=e.chartData.xAxisData.eachSpacing,c=l*(s.length-1),u=o+c,h=[],d=0;d<e.yAxis.splitNumber+1;d++)h.push(e.height-e.area[2]-r*d);a.save(),e._scrollDistance_&&0!==e._scrollDistance_&&a.translate(e._scrollDistance_,0),"dash"==e.yAxis.gridType&&a.setLineDash([e.yAxis.dashLength,e.yAxis.dashLength]),a.setStrokeStyle(e.yAxis.gridColor),a.setLineWidth(1*e.pixelRatio),h.forEach((function(t,e){a.beginPath(),a.moveTo(o,t),a.lineTo(u,t),a.stroke()})),a.setLineDash([]),a.restore()}}function Pt(t,e,i,a){if(!0!==e.yAxis.disabled){var n=e.height-e.area[0]-e.area[2],r=n/e.yAxis.splitNumber,o=e.area[3],s=e.width-e.area[1],l=e.height-e.area[2],c=l+i.xAxisHeight;e.xAxis.scrollShow&&(c-=3*e.pixelRatio),e.xAxis.rotateLabel&&(c=e.height-e.area[2]+3),a.beginPath(),a.setFillStyle(e.background||"#ffffff"),e._scrollDistance_<0&&a.fillRect(0,0,o,c),1==e.enableScroll&&a.fillRect(s,0,e.width,c),a.closePath(),a.stroke();for(var u=[],h=0;h<=e.yAxis.splitNumber;h++)u.push(e.area[0]+r*h);for(var d=e.area[3],f=e.width-e.area[1],p=function(t){var n=e.yAxis.data[t];if(!0!==n.disabled){var r=e.chartData.yAxisData.rangesFormat[t],o=n.fontSize||i.fontSize,s=e.chartData.yAxisData.yAxisWidth[t];if(r.forEach((function(t,i){var r=u[i]?u[i]:l;a.beginPath(),a.setFontSize(o),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(n.axisLineColor||"#cccccc"),a.setFillStyle(n.fontColor||"#666666"),"left"==s.position?(a.fillText(String(t),d-s.width,r+o/2),1==n.calibration&&(a.moveTo(d,r),a.lineTo(d-3*e.pixelRatio,r))):(a.fillText(String(t),f+4*e.pixelRatio,r+o/2),1==n.calibration&&(a.moveTo(f,r),a.lineTo(f+3*e.pixelRatio,r))),a.closePath(),a.stroke()})),!1!==n.axisLine&&(a.beginPath(),a.setStrokeStyle(n.axisLineColor||"#cccccc"),a.setLineWidth(1*e.pixelRatio),"left"==s.position?(a.moveTo(d,e.height-e.area[2]),a.lineTo(d,e.area[0])):(a.moveTo(f,e.height-e.area[2]),a.lineTo(f,e.area[0])),a.stroke()),e.yAxis.showTitle){var c=n.titleFontSize||i.fontSize,h=n.title;a.beginPath(),a.setFontSize(c),a.setFillStyle(n.titleFontColor||"#666666"),"left"==s.position?a.fillText(h,d-x(h,c)/2,e.area[0]-10*e.pixelRatio):a.fillText(h,f-x(h,c)/2,e.area[0]-10*e.pixelRatio),a.closePath(),a.stroke()}"left"==s.position?d-=s.width+e.yAxis.padding:f+=s.width+e.yAxis.padding}},g=0;g<e.yAxis.data.length;g++)p(g)}}function kt(t,e,i,a,n){if(!1!==e.legend.show){var r=n.legendData,o=r.points,s=r.area,l=e.legend.padding,c=e.legend.fontSize,u=15*e.pixelRatio,h=5*e.pixelRatio,d=e.legend.itemGap,f=Math.max(e.legend.lineHeight*e.pixelRatio,c);a.beginPath(),a.setLineWidth(e.legend.borderWidth),a.setStrokeStyle(e.legend.borderColor),a.setFillStyle(e.legend.backgroundColor),a.moveTo(s.start.x,s.start.y),a.rect(s.start.x,s.start.y,s.width,s.height),a.closePath(),a.fill(),a.stroke(),o.forEach((function(t,n){var o=0,p=0;o=r.widthArr[n],p=r.heightArr[n];var g=0,v=0;"top"==e.legend.position||"bottom"==e.legend.position?(g=s.start.x+(s.width-o)/2,v=s.start.y+l+n*f):(o=0==n?0:r.widthArr[n-1],g=s.start.x+l+o,v=s.start.y+l+(s.height-p)/2),a.setFontSize(i.fontSize);for(var y=0;y<t.length;y++){var _=t[y];switch(_.area=[0,0,0,0],_.area[0]=g,_.area[1]=v,_.area[3]=v+f,a.beginPath(),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(_.show?_.color:e.legend.hiddenColor),a.setFillStyle(_.show?_.color:e.legend.hiddenColor),_.legendShape){case"line":a.moveTo(g,v+.5*f-2*e.pixelRatio),a.fillRect(g,v+.5*f-2*e.pixelRatio,15*e.pixelRatio,4*e.pixelRatio);break;case"triangle":a.moveTo(g+7.5*e.pixelRatio,v+.5*f-5*e.pixelRatio),a.lineTo(g+2.5*e.pixelRatio,v+.5*f+5*e.pixelRatio),a.lineTo(g+12.5*e.pixelRatio,v+.5*f+5*e.pixelRatio),a.lineTo(g+7.5*e.pixelRatio,v+.5*f-5*e.pixelRatio);break;case"diamond":a.moveTo(g+7.5*e.pixelRatio,v+.5*f-5*e.pixelRatio),a.lineTo(g+2.5*e.pixelRatio,v+.5*f),a.lineTo(g+7.5*e.pixelRatio,v+.5*f+5*e.pixelRatio),a.lineTo(g+12.5*e.pixelRatio,v+.5*f),a.lineTo(g+7.5*e.pixelRatio,v+.5*f-5*e.pixelRatio);break;case"circle":a.moveTo(g+7.5*e.pixelRatio,v+.5*f),a.arc(g+7.5*e.pixelRatio,v+.5*f,5*e.pixelRatio,0,2*Math.PI);break;case"rect":a.moveTo(g,v+.5*f-5*e.pixelRatio),a.fillRect(g,v+.5*f-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio);break;default:a.moveTo(g,v+.5*f-5*e.pixelRatio),a.fillRect(g,v+.5*f-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio)}a.closePath(),a.fill(),a.stroke(),g+=u+h;var m=.5*f+.5*c-2;a.beginPath(),a.setFontSize(c),a.setFillStyle(_.show?e.legend.fontColor:e.legend.hiddenColor),a.fillText(_.name,g,v+m),a.closePath(),a.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(g+=x(_.name,c)+d,_.area[2]=g):(_.area[2]=g+x(_.name,c)+d,g-=u+h,v+=f)}}))}}function $t(t,e,i,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=a({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==i.pieChartLinePadding&&(i.pieChartLinePadding=s.activeRadius);var c=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding);t=H(t,c,o);var u=s.activeRadius;if(t=t.map((function(t){return t._start_+=s.offsetAngle*Math.PI/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(n.beginPath(),n.setFillStyle(r(t.color,e.extra.pie.activeOpacity||.5)),n.moveTo(l.x,l.y),n.arc(l.x,l.y,t._radius_+u,t._start_,t._start_+2*t._proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(s.borderWidth*e.pixelRatio),n.lineJoin="round",n.setStrokeStyle(s.borderColor),n.setFillStyle(t.color),n.moveTo(l.x,l.y),n.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),n.closePath(),n.fill(),1==s.border&&n.stroke()})),"ring"===e.type){var h=.6*c;"number"===typeof e.extra.pie.ringWidth&&e.extra.pie.ringWidth>0&&(h=Math.max(0,c-e.extra.pie.ringWidth)),n.beginPath(),n.setFillStyle(e.background||"#ffffff"),n.moveTo(l.x,l.y),n.arc(l.x,l.y,h,0,2*Math.PI),n.closePath(),n.fill()}if(!1!==e.dataLabel&&1===o){for(var d=!1,f=0,p=t.length;f<p;f++)if(t[f].data>0){d=!0;break}d&&ft(t,e,i,n,c,l)}return 1===o&&"ring"===e.type&&ct(e,i,n,l),{center:l,radius:c,series:t}}function Lt(t,e,i,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=a({},{type:"area",activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.rose);0==i.pieChartLinePadding&&(i.pieChartLinePadding=s.activeRadius);var l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},c=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding),u=s.minRadius||.5*c;t=X(t,s.type,u,c,o);var h=s.activeRadius;if(t=t.map((function(t){return t._start_+=(s.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(n.beginPath(),n.setFillStyle(r(t.color,s.activeOpacity||.5)),n.moveTo(l.x,l.y),n.arc(l.x,l.y,h+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(s.borderWidth*e.pixelRatio),n.lineJoin="round",n.setStrokeStyle(s.borderColor),n.setFillStyle(t.color),n.moveTo(l.x,l.y),n.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),n.closePath(),n.fill(),1==s.border&&n.stroke()})),!1!==e.dataLabel&&1===o){for(var d=!1,f=0,p=t.length;f<p;f++)if(t[f].data>0){d=!0;break}d&&ft(t,e,i,n,c,l)}return{center:l,radius:c,series:t}}function Mt(t,e,i,n){var r,o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=a({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=Y(t,l,s),r=l.center?l.center:{x:e.width/2,y:e.height/2},l.radius?o=l.radius:(o=Math.min(r.x,r.y),o-=5*e.pixelRatio,o-=l.width/2);for(var c=0;c<t.length;c++){var u=t[c];n.setLineWidth(l.width),n.setStrokeStyle(l.backgroundColor||"#E9E9E9"),n.setLineCap("round"),n.beginPath(),"default"==l.type?n.arc(r.x,r.y,o-(l.width+l.gap)*c,l.startAngle*Math.PI,l.endAngle*Math.PI,!1):n.arc(r.x,r.y,o-(l.width+l.gap)*c,0,2*Math.PI,!1),n.stroke(),n.setLineWidth(l.width),n.setStrokeStyle(u.color),n.setLineCap("round"),n.beginPath(),n.arc(r.x,r.y,o-(l.width+l.gap)*c,l.startAngle*Math.PI,u._proportion_*Math.PI,!1),n.stroke()}return ct(e,i,n,r),{center:r,radius:o,series:t}}function Ft(t,e,i,n,o){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,l=a({},{type:"default",startAngle:.75,endAngle:.25,width:15,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},i.extra.gauge);void 0==l.oldAngle&&(l.oldAngle=l.startAngle),void 0==l.oldData&&(l.oldData=0),t=V(t,l.startAngle,l.endAngle);var c={x:i.width/2,y:i.height/2},u=Math.min(c.x,c.y);u-=5*i.pixelRatio,u-=l.width/2;var h=u-l.width,d=0;if("progress"==l.type){var f=u-3*l.width;o.beginPath();var p=o.createLinearGradient(c.x,c.y-f,c.x,c.y+f);p.addColorStop("0",r(e[0].color,.3)),p.addColorStop("1.0",r("#FFFFFF",.1)),o.setFillStyle(p),o.arc(c.x,c.y,f,0,2*Math.PI,!1),o.fill(),o.setLineWidth(l.width),o.setStrokeStyle(r(e[0].color,.3)),o.setLineCap("round"),o.beginPath(),o.arc(c.x,c.y,h,l.startAngle*Math.PI,l.endAngle*Math.PI,!1),o.stroke(),d=l.startAngle-l.endAngle+1;l.splitLine.splitNumber;var g=d/l.splitLine.splitNumber/l.splitLine.childNumber,x=-u-.5*l.width-l.splitLine.fixRadius,v=-u-l.width-l.splitLine.fixRadius+l.splitLine.width;o.save(),o.translate(c.x,c.y),o.rotate((l.startAngle-1)*Math.PI);for(var y=l.splitLine.splitNumber*l.splitLine.childNumber+1,_=e[0].data*s,m=0;m<y;m++)o.beginPath(),_>m/y?o.setStrokeStyle(r(e[0].color,1)):o.setStrokeStyle(r(e[0].color,.3)),o.setLineWidth(3*i.pixelRatio),o.moveTo(x,0),o.lineTo(v,0),o.stroke(),o.rotate(g*Math.PI);o.restore(),e=Y(e,l,s),o.setLineWidth(l.width),o.setStrokeStyle(e[0].color),o.setLineCap("round"),o.beginPath(),o.arc(c.x,c.y,h,l.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),o.stroke();var w=u-2.5*l.width;o.save(),o.translate(c.x,c.y),o.rotate((e[0]._proportion_-1)*Math.PI),o.beginPath(),o.setLineWidth(l.width/3);var b=o.createLinearGradient(0,.6*-w,0,.6*w);b.addColorStop("0",r("#FFFFFF",0)),b.addColorStop("0.5",r(e[0].color,1)),b.addColorStop("1.0",r("#FFFFFF",0)),o.setStrokeStyle(b),o.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),o.stroke(),o.beginPath(),o.setLineWidth(1),o.setStrokeStyle(e[0].color),o.setFillStyle(e[0].color),o.moveTo(-w-l.width/3/2,-4),o.lineTo(-w-l.width/3/2-4,0),o.lineTo(-w-l.width/3/2,4),o.lineTo(-w-l.width/3/2,-4),o.stroke(),o.fill(),o.restore()}else{o.setLineWidth(l.width),o.setLineCap("butt");for(var S=0;S<t.length;S++){var T=t[S];o.beginPath(),o.setStrokeStyle(T.color),o.arc(c.x,c.y,u,T._startAngle_*Math.PI,T._endAngle_*Math.PI,!1),o.stroke()}o.save(),d=l.startAngle-l.endAngle+1;var C=d/l.splitLine.splitNumber,A=d/l.splitLine.splitNumber/l.splitLine.childNumber,P=-u-.5*l.width-l.splitLine.fixRadius,k=-u-.5*l.width-l.splitLine.fixRadius+l.splitLine.width,$=-u-.5*l.width-l.splitLine.fixRadius+l.splitLine.childWidth;o.translate(c.x,c.y),o.rotate((l.startAngle-1)*Math.PI);for(var L=0;L<l.splitLine.splitNumber+1;L++)o.beginPath(),o.setStrokeStyle(l.splitLine.color),o.setLineWidth(2*i.pixelRatio),o.moveTo(P,0),o.lineTo(k,0),o.stroke(),o.rotate(C*Math.PI);o.restore(),o.save(),o.translate(c.x,c.y),o.rotate((l.startAngle-1)*Math.PI);for(var M=0;M<l.splitLine.splitNumber*l.splitLine.childNumber+1;M++)o.beginPath(),o.setStrokeStyle(l.splitLine.color),o.setLineWidth(1*i.pixelRatio),o.moveTo(P,0),o.lineTo($,0),o.stroke(),o.rotate(A*Math.PI);o.restore(),e=q(e,t,l,s);for(var F=0;F<e.length;F++){var D=e[F];o.save(),o.translate(c.x,c.y),o.rotate((D._proportion_-1)*Math.PI),o.beginPath(),o.setFillStyle(D.color),o.moveTo(l.pointer.width,0),o.lineTo(0,-l.pointer.width/2),o.lineTo(-h,0),o.lineTo(0,l.pointer.width/2),o.lineTo(l.pointer.width,0),o.closePath(),o.fill(),o.beginPath(),o.setFillStyle("#FFFFFF"),o.arc(0,0,l.pointer.width/6,0,2*Math.PI,!1),o.fill(),o.restore()}!1!==i.dataLabel&&ht(l,u,c,i,n,o)}return ct(i,n,o,c),1===s&&"gauge"===i.type&&(i.extra.gauge.oldAngle=e[0]._proportion_,i.extra.gauge.oldData=e[0].data),{center:c,radius:u,innerRadius:h,categories:t,totalAngle:d}}function Dt(t,e,i,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=a({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),l=b(e.categories.length),c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},u=Math.min(c.x-(w(e.categories)+i.radarLabelTextMargin),c.y-i.radarLabelTextMargin);u-=e.padding[1],n.beginPath(),n.setLineWidth(1*e.pixelRatio),n.setStrokeStyle(s.gridColor),l.forEach((function(t){var e=d(u*Math.cos(t),u*Math.sin(t),c);n.moveTo(c.x,c.y),n.lineTo(e.x,e.y)})),n.stroke(),n.closePath();for(var h=function(t){var i={};n.beginPath(),n.setLineWidth(1*e.pixelRatio),n.setStrokeStyle(s.gridColor),l.forEach((function(e,a){var r=d(u/s.gridCount*t*Math.cos(e),u/s.gridCount*t*Math.sin(e),c);0===a?(i=r,n.moveTo(r.x,r.y)):n.lineTo(r.x,r.y)})),n.lineTo(i.x,i.y),n.stroke(),n.closePath()},f=1;f<=s.gridCount;f++)h(f);var p=B(l,c,u,t,e,o);return p.forEach((function(t,i){if(n.beginPath(),n.setFillStyle(r(t.color,s.opacity)),t.data.forEach((function(t,e){0===e?n.moveTo(t.position.x,t.position.y):n.lineTo(t.position.x,t.position.y)})),n.closePath(),n.fill(),!1!==e.dataPointShape){var a=t.data.map((function(t){return t.position}));lt(a,t.color,t.pointShape,n,e)}})),dt(l,u,c,e,i,n),{center:c,radius:u,angleList:l}}function Rt(t,e,i){i=0==i?1:i;for(var a=[],n=0;n<i;n++)a[n]=Math.random();return Math.floor(a.reduce((function(t,e){return t+e}))/i*(e-t))+t}function Ot(t,e,i,a){for(var n=!1,r=0;r<e.length;r++)if(e[r].area){if(!(t[3]<e[r].area[1]||t[0]>e[r].area[2]||t[1]>e[r].area[3]||t[2]<e[r].area[0])){n=!0;break}if(t[0]<0||t[1]<0||t[2]>i||t[3]>a){n=!0;break}n=!1}return n}function It(t){var e,i={};i.xMin=180,i.xMax=0,i.yMin=90,i.yMax=0;for(var a=0;a<t.length;a++)for(var n=t[a].geometry.coordinates,r=0;r<n.length;r++){e=n[r],1==e.length&&(e=e[0]);for(var o=0;o<e.length;o++){var s=e[o][0],l=e[o][1],c={x:s,y:l};i.xMin=i.xMin<c.x?i.xMin:c.x,i.xMax=i.xMax>c.x?i.xMax:c.x,i.yMin=i.yMin<c.y?i.yMin:c.y,i.yMax=i.yMax>c.y?i.yMax:c.y}}return i}function Et(t,e,i,a,n,r){return{x:(e-i.xMin)*a+n,y:(i.yMax-t)*a+r}}function zt(t,e,i,a,n,r){return{x:(e-n)/a+i.xMin,y:i.yMax-(t-r)/a}}function jt(t,e,i){if(e[1]==i[1])return!1;if(e[1]>t[1]&&i[1]>t[1])return!1;if(e[1]<t[1]&&i[1]<t[1])return!1;if(e[1]==t[1]&&i[1]>t[1])return!1;if(i[1]==t[1]&&e[1]>t[1])return!1;if(e[0]<t[0]&&i[1]<t[1])return!1;var a=i[0]-(i[0]-e[0])*(i[1]-t[1])/(i[1]-e[1]);return!(a<t[0])}function Wt(t,e){for(var i=0,a=0;a<e.length;a++){var n=e[a][0];1==e.length&&(n=e[a][0]);for(var r=0;r<n.length-1;r++){var o=n[r],s=n[r+1];jt(t,o,s)&&(i+=1)}}return i%2==1}function Nt(t,e,i,n){var o,s,l=a({},{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),c=t,u=It(c),h=e.width/Math.abs(u.xMax-u.xMin),d=e.height/Math.abs(u.yMax-u.yMin),f=h<d?h:d,p=e.width/2-Math.abs(u.xMax-u.xMin)/2*f,g=e.height/2-Math.abs(u.yMax-u.yMin)/2*f;n.beginPath(),n.clearRect(0,0,e.width,e.height),n.setFillStyle(e.background||"#FFFFFF"),n.rect(0,0,e.width,e.height),n.fill();for(var v=0;v<c.length;v++){n.beginPath(),n.setLineWidth(l.borderWidth*e.pixelRatio),n.setStrokeStyle(l.borderColor),n.setFillStyle(r(t[v].color,l.fillOpacity)),e.tooltip&&e.tooltip.index==v&&(n.setStrokeStyle(l.activeBorderColor),n.setFillStyle(r(l.activeFillColor,l.activeFillOpacity)));for(var y=c[v].geometry.coordinates,_=0;_<y.length;_++){o=y[_],1==o.length&&(o=o[0]);for(var m=0;m<o.length;m++)s=Et(o[m][1],o[m][0],u,f,p,g),0===m?(n.beginPath(),n.moveTo(s.x,s.y)):n.lineTo(s.x,s.y);n.fill(),1==l.border&&n.stroke()}if(1==e.dataLabel){var w=c[v].properties.centroid;if(w){s=Et(w[1],w[0],u,f,p,g);var b=c[v].textSize||i.fontSize,S=c[v].properties.name;n.beginPath(),n.setFontSize(b),n.setFillStyle(c[v].textColor||"#666666"),n.fillText(S,s.x-x(S,b)/2,s.y+b/2),n.closePath(),n.stroke()}}}e.chartData.mapData={bounds:u,scale:f,xoffset:p,yoffset:g},Tt(e,i,n,1),n.draw()}function Bt(t,e){var i=t.series.sort((function(t,e){return parseInt(e.textSize)-parseInt(t.textSize)}));switch(e){case"normal":for(var a=0;a<i.length;a++){var n=i[a].name,r=i[a].textSize,o=x(n,r),s=void 0,l=void 0,c=void 0,u=0;while(1){u++,s=Rt(-t.width/2,t.width/2,5)-o/2,l=Rt(-t.height/2,t.height/2,5)+r/2,c=[s-5+t.width/2,l-5-r+t.height/2,s+o+5+t.width/2,l+5+t.height/2];var h=Ot(c,i,t.width,t.height);if(!h)break;if(1e3==u){c=[-100,-100,-100,-100];break}}i[a].area=c}break;case"vertical":for(var d=function(){return Math.random()>.7},f=0;f<i.length;f++){var p=i[f].name,g=i[f].textSize,v=x(p,g),y=d(),_=void 0,m=void 0,w=void 0,b=void 0,S=0;while(1){S++;var T=void 0;if(y?(_=Rt(-t.width/2,t.width/2,5)-v/2,m=Rt(-t.height/2,t.height/2,5)+g/2,w=[m-5-v+t.width/2,-_-5+t.height/2,m+5+t.width/2,-_+g+5+t.height/2],b=[t.width-(t.width/2-t.height/2)-(-_+g+5+t.height/2)-5,t.height/2-t.width/2+(m-5-v+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-_+g+5+t.height/2)+g,t.height/2-t.width/2+(m-5-v+t.width/2)+v+5],T=Ot(b,i,t.height,t.width)):(_=Rt(-t.width/2,t.width/2,5)-v/2,m=Rt(-t.height/2,t.height/2,5)+g/2,w=[_-5+t.width/2,m-5-g+t.height/2,_+v+5+t.width/2,m+5+t.height/2],T=Ot(w,i,t.width,t.height)),!T)break;if(1e3==S){w=[-1e3,-1e3,-1e3,-1e3];break}}y?(i[f].area=b,i[f].areav=w):i[f].area=w,i[f].rotate=y}break}return i}function Ht(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;a({},{type:"normal",autoColors:!0},e.extra.word);n.beginPath(),n.setFillStyle(e.background||"#FFFFFF"),n.rect(0,0,e.width,e.height),n.fill(),n.save();var o=e.chartData.wordCloudData;n.translate(e.width/2,e.height/2);for(var s=0;s<o.length;s++){n.save(),o[s].rotate&&n.rotate(90*Math.PI/180);var l=o[s].name,c=o[s].textSize,u=x(l,c);n.beginPath(),n.setStrokeStyle(o[s].color),n.setFillStyle(o[s].color),n.setFontSize(c),o[s].rotate?o[s].areav[0]>0&&(e.tooltip&&e.tooltip.index==s?n.strokeText(l,(o[s].areav[0]+5-e.width/2)*r-u*(1-r)/2,(o[s].areav[1]+5+c-e.height/2)*r):n.fillText(l,(o[s].areav[0]+5-e.width/2)*r-u*(1-r)/2,(o[s].areav[1]+5+c-e.height/2)*r)):o[s].area[0]>0&&(e.tooltip&&e.tooltip.index==s?n.strokeText(l,(o[s].area[0]+5-e.width/2)*r-u*(1-r)/2,(o[s].area[1]+5+c-e.height/2)*r):n.fillText(l,(o[s].area[0]+5-e.width/2)*r-u*(1-r)/2,(o[s].area[1]+5+c-e.height/2)*r)),n.stroke(),n.restore()}n.restore()}function Gt(t,e,i,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=a({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),l=(e.height-e.area[0]-e.area[2])/t.length,c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},u=s.activeWidth,h=Math.min((e.width-e.area[1]-e.area[3])/2-u,(e.height-e.area[0]-e.area[2])/2-u);t=G(t,h,o),n.save(),n.translate(c.x,c.y);for(var d=0;d<t.length;d++)0==d?(e.tooltip&&e.tooltip.index==d&&(n.beginPath(),n.setFillStyle(r(t[d].color,s.activeOpacity)),n.moveTo(-u,0),n.lineTo(-t[d].radius-u,-l),n.lineTo(t[d].radius+u,-l),n.lineTo(u,0),n.lineTo(-u,0),n.closePath(),n.fill()),t[d].funnelArea=[c.x-t[d].radius,c.y-l,c.x+t[d].radius,c.y],n.beginPath(),n.setLineWidth(s.borderWidth*e.pixelRatio),n.setStrokeStyle(s.borderColor),n.setFillStyle(r(t[d].color,s.fillOpacity)),n.moveTo(0,0),n.lineTo(-t[d].radius,-l),n.lineTo(t[d].radius,-l),n.lineTo(0,0),n.closePath(),n.fill(),1==s.border&&n.stroke()):(e.tooltip&&e.tooltip.index==d&&(n.beginPath(),n.setFillStyle(r(t[d].color,s.activeOpacity)),n.moveTo(0,0),n.lineTo(-t[d-1].radius-u,0),n.lineTo(-t[d].radius-u,-l),n.lineTo(t[d].radius+u,-l),n.lineTo(t[d-1].radius+u,0),n.lineTo(0,0),n.closePath(),n.fill()),t[d].funnelArea=[c.x-t[d].radius,c.y-l*(d+1),c.x+t[d].radius,c.y-l*d],n.beginPath(),n.setLineWidth(s.borderWidth*e.pixelRatio),n.setStrokeStyle(s.borderColor),n.setFillStyle(r(t[d].color,s.fillOpacity)),n.moveTo(0,0),n.lineTo(-t[d-1].radius,0),n.lineTo(-t[d].radius,-l),n.lineTo(t[d].radius,-l),n.lineTo(t[d-1].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==s.border&&n.stroke()),n.translate(0,-l);return n.restore(),!1!==e.dataLabel&&1===o&&Xt(t,e,n,l,s.labelAlign,u,c),{center:c,radius:h,series:t}}function Xt(t,e,i,a,r,o,s){for(var l=0;l<t.length;l++){var c=t[l],u=void 0,h=void 0,d=void 0,f=void 0,p=c.format?c.format(+c._proportion_.toFixed(2)):n.toFixed(100*c._proportion_)+"%";"right"==r?(u=0==l?(c.funnelArea[2]+s.x)/2:(c.funnelArea[2]+t[l-1].funnelArea[2])/2,h=u+2*o,d=c.funnelArea[1]+a/2,f=c.textSize||e.fontSize,i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(c.color),i.setFillStyle(c.color),i.beginPath(),i.moveTo(u,d),i.lineTo(h,d),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(h,d),i.arc(h,d,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(f),i.setFillStyle(c.textColor||"#666666"),i.fillText(p,h+5,d+f/2-2),i.closePath(),i.stroke(),i.closePath()):(u=0==l?(c.funnelArea[0]+s.x)/2:(c.funnelArea[0]+t[l-1].funnelArea[0])/2,h=u-2*o,d=c.funnelArea[1]+a/2,f=c.textSize||e.fontSize,i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(c.color),i.setFillStyle(c.color),i.beginPath(),i.moveTo(u,d),i.lineTo(h,d),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(h,d),i.arc(h,d,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(f),i.setFillStyle(c.textColor||"#666666"),i.fillText(p,h-5-x(p),d+f/2-2),i.closePath(),i.stroke(),i.closePath())}}function Yt(t,e){e.draw()}var Vt={easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},linear:function(t){return t}};function qt(t){this.isStop=!1,t.duration="undefined"===typeof t.duration?1e3:t.duration,t.timing=t.timing||"linear";var e=17;function i(){return"undefined"!==typeof setTimeout?function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(t){t(null)}}var a=i(),n=null,r=function(i){if(null===i||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===n&&(n=i),i-n<t.duration){var o=(i-n)/t.duration,s=Vt[t.timing];o=s(o),t.onProcess&&t.onProcess(o),a(r,e)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};r=r.bind(this),a(r,e)}function Ut(t,e,i,n){var r=this,o=e.series,l=e.categories;o=p(o,e,i);var c=e.animation?e.duration:0;r.animationInstance&&r.animationInstance.stop();var u=null;if("candle"==t){var h=a({},e.extra.candle.average);h.show?(u=s(h.day,h.name,h.color,o[0].data),u=p(u,e,i),e.seriesMA=u):u=e.seriesMA?e.seriesMA=p(e.seriesMA,e,i):o}else u=o;e._series_=o=A(o),e.area=new Array(4);for(var d=0;d<4;d++)e.area[d]=e.padding[d];var f=z(u,e,i,e.chartData),g=f.area.wholeHeight,x=f.area.wholeWidth;switch(e.legend.position){case"top":e.area[0]+=g;break;case"bottom":e.area[2]+=g;break;case"left":e.area[3]+=x;break;case"right":e.area[1]+=x;break}var v={},y=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type){if(v=nt(o,e,i),y=v.yAxisWidth,e.yAxis.showTitle){for(var _=0,m=0;m<e.yAxis.data.length;m++)_=Math.max(_,e.yAxis.data[m].titleFontSize?e.yAxis.data[m].titleFontSize:i.fontSize);e.area[0]+=(_+6)*e.pixelRatio}for(var w=0,b=0,S=0;S<y.length;S++)"left"==y[S].position?(e.area[3]+=b>0?y[S].width+e.yAxis.padding:y[S].width,b+=1):(e.area[1]+=w>0?y[S].width+e.yAxis.padding:y[S].width,w+=1)}else i.yAxisWidth=y;if(e.chartData.yAxisData=v,e.categories&&e.categories.length){e.chartData.xAxisData=Z(e.categories,e,i);var T=j(e.categories,e,i,e.chartData.xAxisData.eachSpacing),C=T.xAxisHeight,P=T.angle;i.xAxisHeight=C,i._xAxisTextAngle_=P,e.area[2]+=C,e.chartData.categoriesData=T}else if("line"===e.type||"area"===e.type||"points"===e.type){e.chartData.xAxisData=N(o,e,i),l=e.chartData.xAxisData.rangesFormat;var k=j(l,e,i,e.chartData.xAxisData.eachSpacing),$=k.xAxisHeight,L=k.angle;i.xAxisHeight=$,i._xAxisTextAngle_=L,e.area[2]+=$,e.chartData.categoriesData=k}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var M=0,F=e.chartData.xAxisData.xAxisPoints,D=e.chartData.xAxisData.startX,R=e.chartData.xAxisData.endX,O=e.chartData.xAxisData.eachSpacing,I=O*(F.length-1),E=R-D;M=E-I,r.scrollOption={currentOffset:M,startTouchX:M,distance:0,lastMoveTime:0},e._scrollDistance_=M}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(i._pieTextMaxLength_=!1===e.dataLabel?0:U(u)),t){case"word":var W=a({},{type:"normal",autoColors:!0},e.extra.word);1!=e.updateData&&void 0!=e.updateData||(e.chartData.wordCloudData=Bt(e,W.type)),this.animationInstance=new qt({timing:"easeInOut",duration:c,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&st(n,e),Ht(o,e,i,n,t),Yt(e,n)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"map":n.clearRect(0,0,e.width,e.height),Nt(o,e,i,n);break;case"funnel":this.animationInstance=new qt({timing:"easeInOut",duration:c,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&st(n,e),e.chartData.funnelData=Gt(o,e,i,n,t),kt(e.series,e,i,n,e.chartData),Tt(e,i,n,t),Yt(e,n)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"line":this.animationInstance=new qt({timing:"easeIn",duration:c,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&st(n,e),At(l,e,i,n),Ct(l,e,i,n);var a=bt(o,e,i,n,t),r=a.xAxisPoints,s=a.calPoints,c=a.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Pt(o,e,i,n),!1!==e.enableMarkLine&&1===t&&gt(e,i,n),kt(e.series,e,i,n,e.chartData),Tt(e,i,n,t,c,r),Yt(e,n)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"mix":this.animationInstance=new qt({timing:"easeIn",duration:c,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&st(n,e),At(l,e,i,n),Ct(l,e,i,n);var a=St(o,e,i,n,t),r=a.xAxisPoints,s=a.calPoints,c=a.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Pt(o,e,i,n),!1!==e.enableMarkLine&&1===t&&gt(e,i,n),kt(e.series,e,i,n,e.chartData),Tt(e,i,n,t,c,r),Yt(e,n)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"column":this.animationInstance=new qt({timing:"easeIn",duration:c,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&st(n,e),At(l,e,i,n),Ct(l,e,i,n);var a=_t(o,e,i,n,t),r=a.xAxisPoints,s=a.calPoints,c=a.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Pt(o,e,i,n),!1!==e.enableMarkLine&&1===t&&gt(e,i,n),kt(e.series,e,i,n,e.chartData),Tt(e,i,n,t,c,r),Yt(e,n)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"area":this.animationInstance=new qt({timing:"easeIn",duration:c,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&st(n,e),At(l,e,i,n),Ct(l,e,i,n);var a=wt(o,e,i,n,t),r=a.xAxisPoints,s=a.calPoints,c=a.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Pt(o,e,i,n),!1!==e.enableMarkLine&&1===t&&gt(e,i,n),kt(e.series,e,i,n,e.chartData),Tt(e,i,n,t,c,r),Yt(e,n)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new qt({timing:"easeInOut",duration:c,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&st(n,e),e.chartData.pieData=$t(o,e,i,n,t),kt(e.series,e,i,n,e.chartData),Tt(e,i,n,t),Yt(e,n)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new qt({timing:"easeInOut",duration:c,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&st(n,e),e.chartData.pieData=Lt(o,e,i,n,t),kt(e.series,e,i,n,e.chartData),Tt(e,i,n,t),Yt(e,n)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new qt({timing:"easeInOut",duration:c,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&st(n,e),e.chartData.radarData=Dt(o,e,i,n,t),kt(e.series,e,i,n,e.chartData),Tt(e,i,n,t),Yt(e,n)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new qt({timing:"easeInOut",duration:c,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&st(n,e),e.chartData.arcbarData=Mt(o,e,i,n,t),Yt(e,n)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new qt({timing:"easeInOut",duration:c,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&st(n,e),e.chartData.gaugeData=Ft(l,o,e,i,n,t),Yt(e,n)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break;case"candle":this.animationInstance=new qt({timing:"easeIn",duration:c,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&st(n,e),At(l,e,i,n),Ct(l,e,i,n);var a=mt(o,u,e,i,n,t),r=a.xAxisPoints,s=a.calPoints,c=a.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Pt(o,e,i,n),!1!==e.enableMarkLine&&1===t&&gt(e,i,n),kt(u||e.series,e,i,n,e.chartData),Tt(e,i,n,t,c,r),Yt(e,n)},onAnimationFinish:function(){r.event.trigger("renderComplete")}});break}}function Jt(){this.events={}}qt.prototype.stop=function(){this.isStop=!0},Jt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},Jt.prototype.trigger=function(){for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];var n=i[0],r=i.slice(1);this.events[n]&&this.events[n].forEach((function(t){try{t.apply(null,r)}catch(i){e("error",i," at js_sdk/u-charts/u-charts/u-charts.js:5112")}}))};var Kt=function(t){t.pixelRatio=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize*t.pixelRatio:13*t.pixelRatio,t.title=a({},t.title),t.subtitle=a({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=a({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,splitNumber:5,gridType:"solid",dashLength:4*t.pixelRatio,gridColor:"#cccccc",padding:10,fontColor:"#666666"},t.yAxis),t.yAxis.dashLength*=t.pixelRatio,t.yAxis.padding*=t.pixelRatio,t.xAxis=a({},{rotateLabel:!1,type:"calibration",gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc"},t.xAxis),t.xAxis.dashLength*=t.pixelRatio,t.legend=a({},{show:!0,position:"bottom",float:"center",backgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(0,0,0,0)",borderWidth:0,padding:5,margin:5,itemGap:10,fontSize:t.fontSize,lineHeight:t.fontSize,fontColor:"#333333",format:{},hiddenColor:"#CECECE"},t.legend),t.legend.borderWidth=t.legend.borderWidth*t.pixelRatio,t.legend.itemGap=t.legend.itemGap*t.pixelRatio,t.legend.padding=t.legend.padding*t.pixelRatio,t.legend.margin=t.legend.margin*t.pixelRatio,t.extra=a({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate,t.canvas2d=!!t.canvas2d;var e=JSON.parse(JSON.stringify(i));if(e.colors=t.colors?t.colors:e.colors,e.yAxisTitleWidth=!0!==t.yAxis.disabled&&t.yAxis.title?e.yAxisTitleWidth:0,"pie"!=t.type&&"ring"!=t.type||(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.pie.labelWidth*t.pixelRatio||e.pieChartLinePadding*t.pixelRatio),"rose"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.rose.labelWidth*t.pixelRatio||e.pieChartLinePadding*t.pixelRatio),e.pieChartTextPadding=!1===t.dataLabel?0:e.pieChartTextPadding*t.pixelRatio,e.yAxisSplit=t.yAxis.splitNumber?t.yAxis.splitNumber:i.yAxisSplit,e.rotate=t.rotate,t.rotate){var n=t.width,r=t.height;t.width=r,t.height=n}t.padding=t.padding?t.padding:e.padding;for(var o=0;o<4;o++)t.padding[o]*=t.pixelRatio;e.yAxisWidth=i.yAxisWidth*t.pixelRatio,e.xAxisHeight=i.xAxisHeight*t.pixelRatio,t.enableScroll&&t.xAxis.scrollShow&&(e.xAxisHeight+=6*t.pixelRatio),e.xAxisLineHeight=i.xAxisLineHeight*t.pixelRatio,e.fontSize=t.fontSize,e.titleFontSize=i.titleFontSize*t.pixelRatio,e.subtitleFontSize=i.subtitleFontSize*t.pixelRatio,e.toolTipPadding=i.toolTipPadding*t.pixelRatio,e.toolTipLineHeight=i.toolTipLineHeight*t.pixelRatio,e.columePadding=i.columePadding*t.pixelRatio,t.$this=t.$this?t.$this:this,this.context=t.context?t.context:uni.createCanvasContext(t.canvasId,t.$this),t.canvas2d&&(this.context.setStrokeStyle=function(t){return this.strokeStyle=t},this.context.setLineWidth=function(t){return this.lineWidth=t},this.context.setLineCap=function(t){return this.lineCap=t},this.context.setFontSize=function(t){return this.font=t+"px sans-serif"},this.context.setFillStyle=function(t){return this.fillStyle=t},this.context.draw=function(){}),t.chartData={},this.event=new Jt,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,Ut.call(this,t.type,t,e,this.context)};Kt.prototype.updateData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=a({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var i=nt(this.opts.series,this.opts,this.config),n=i.yAxisWidth;this.config.yAxisWidth=n;var r=0,o=Z(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,l=o.startX,c=o.endX,u=o.eachSpacing,h=u*(s.length-1),d=c-l;r=d-h,this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r;break}Ut.call(this,this.opts.type,this.opts,this.config,this.context)},Kt.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var i=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=t.itemCount;var a=nt(this.opts.series,this.opts,this.config),n=a.yAxisWidth;this.config.yAxisWidth=n;var r=0,o=Z(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,l=o.startX,c=o.endX,u=o.eachSpacing,h=u*i,d=c-l,f=d-u*(s.length-1);r=d/2-h,r>0&&(r=0),r<f&&(r=f),this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r,Ut.call(this,this.opts.type,this.opts,this.config,this.context)}else e("log","\u8bf7\u542f\u7528\u6eda\u52a8\u6761\u540e\u4f7f\u7528\uff01"," at js_sdk/u-charts/u-charts/u-charts.js:5296")},Kt.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},Kt.prototype.addEventListener=function(t,e){this.event.addEventListener(t,e)},Kt.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=_(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type?O({x:i.x,y:i.y},this.opts.chartData.pieData):"radar"===this.opts.type?M({x:i.x,y:i.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?F({x:i.x,y:i.y},this.opts.chartData.funnelData):"map"===this.opts.type?R({x:i.x,y:i.y},this.opts):"word"===this.opts.type?D({x:i.x,y:i.y},this.opts.chartData.wordCloudData):P({x:i.x,y:i.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},Kt.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=_(e,this.opts,t);return k({x:i.x,y:i.y},this.opts.chartData.legendData)}return-1},Kt.prototype.touchLegend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;if(i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],i){_(i,this.opts,t);var a=this.getLegendDataIndex(t);a>=0&&(this.opts.series[a].show=!this.opts.series[a].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,Ut.call(this,this.opts.type,this.opts,this.config,this.context))}},Kt.prototype.showToolTip=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;n=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],n||e("log","touchError"," at js_sdk/u-charts/u-charts/u-charts.js:5433");var r=_(n,this.opts,t),o=this.scrollOption.currentOffset,s=a({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var l=void 0==i.index?this.getCurrentDataIndex(t):i.index;if(l>-1){var c=m(this.opts.series,l);if(0!==c.length){var u=S(c,this.opts.chartData.calPoints,l,this.opts.categories,i),h=u.textList,d=u.offset;d.y=r.y,s.tooltip={textList:i.textList?i.textList:h,offset:d,option:i,index:l}}}Ut.call(this,s.type,s,this.config,this.context)}if("mix"===this.opts.type){l=void 0==i.index?this.getCurrentDataIndex(t):i.index;if(l>-1){o=this.scrollOption.currentOffset,s=a({},this.opts,{_scrollDistance_:o,animation:!1}),c=m(this.opts.series,l);if(0!==c.length){var f=T(c,this.opts.chartData.calPoints,l,this.opts.categories,i);h=f.textList,d=f.offset;d.y=r.y,s.tooltip={textList:i.textList?i.textList:h,offset:d,option:i,index:l}}}Ut.call(this,s.type,s,this.config,this.context)}if("candle"===this.opts.type){l=void 0==i.index?this.getCurrentDataIndex(t):i.index;if(l>-1){o=this.scrollOption.currentOffset,s=a({},this.opts,{_scrollDistance_:o,animation:!1}),c=m(this.opts.series,l);if(0!==c.length){u=C(this.opts.series[0].data,c,this.opts.chartData.calPoints,l,this.opts.categories,this.opts.extra.candle,i),h=u.textList,d=u.offset;d.y=r.y,s.tooltip={textList:i.textList?i.textList:h,offset:d,option:i,index:l}}}Ut.call(this,s.type,s,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){l=void 0==i.index?this.getCurrentDataIndex(t):i.index;if(l>-1){o=this.scrollOption.currentOffset,s=a({},this.opts,{_scrollDistance_:o,animation:!1}),c=this.opts._series_[l],h=[{text:i.format?i.format(c):c.name+": "+c.data,color:c.color}],d={x:r.x,y:r.y};s.tooltip={textList:i.textList?i.textList:h,offset:d,option:i,index:l}}Ut.call(this,s.type,s,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){l=void 0==i.index?this.getCurrentDataIndex(t):i.index;if(l>-1){o=this.scrollOption.currentOffset,s=a({},this.opts,{_scrollDistance_:o,animation:!1}),c=this.opts._series_[l],h=[{text:i.format?i.format(c):c.properties.name,color:c.color}],d={x:r.x,y:r.y};s.tooltip={textList:i.textList?i.textList:h,offset:d,option:i,index:l}}s.updateData=!1,Ut.call(this,s.type,s,this.config,this.context)}if("radar"===this.opts.type){l=void 0==i.index?this.getCurrentDataIndex(t):i.index;if(l>-1){o=this.scrollOption.currentOffset,s=a({},this.opts,{_scrollDistance_:o,animation:!1}),c=m(this.opts.series,l);if(0!==c.length){h=c.map((function(t){return{text:i.format?i.format(t):t.name+": "+t.data,color:t.color}})),d={x:r.x,y:r.y};s.tooltip={textList:i.textList?i.textList:h,offset:d,option:i,index:l}}}Ut.call(this,s.type,s,this.config,this.context)}},Kt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=a({},this.opts,{_scrollDistance_:t,animation:!1});Ut.call(this,this.opts.type,e,this.config,this.context)},Kt.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var i=_(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=i.x)},Kt.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.extra.touchMoveLimit||20,i=Date.now(),n=i-this.scrollOption.lastMoveTime;if(!(n<Math.floor(1e3/e))){this.scrollOption.lastMoveTime=i;var r=null;if(r=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],r&&!0===this.opts.enableScroll){var o,s=_(r,this.opts,t);o=s.x-this.scrollOption.startTouchX;var c=this.scrollOption.currentOffset,u=l(this,c+o,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=o=u-c;var h=a({},this.opts,{_scrollDistance_:c+o,animation:!1});return Ut.call(this,h.type,h,this.config,this.context),c+o}}},Kt.prototype.scrollEnd=function(t){if(!0===this.opts.enableScroll){var e=this.scrollOption,i=e.currentOffset,a=e.distance;this.scrollOption.currentOffset=i+a,this.scrollOption.distance=0}},"object"===typeof t.exports&&(t.exports=Kt)}).call(this,i("0de9")["default"])},c777:function(t,e,i){"use strict";i.r(e);var a=i("50d0"),n=i("bc1a");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=l.exports},c8ba:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(a){"object"===typeof window&&(i=window)}t.exports=i},d103:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("3ba7"));function n(t){return t&&t.__esModule?t:{default:t}}var r={mixins:[a.default],props:{show:{type:String,default:"none"},disabled:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},threshold:{type:Number,default:20},leftOptions:{type:Array,default:function(){return[]}},rightOptions:{type:Array,default:function(){return[]}}},inject:["swipeaction"]};e.default=r},dde2:function(t,e,i){"use strict";i.r(e);var a=i("226d"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},e32f:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=45,a={name:"UniListChat",props:{title:{type:String,default:""},note:{type:String,default:""},clickable:{type:Boolean,default:!1},link:{type:[Boolean,String],default:!1},to:{type:String,default:""},badgeText:{type:[String,Number],default:""},badgePositon:{type:String,default:"right"},time:{type:String,default:""},avatarCircle:{type:Boolean,default:!1},avatar:{type:String,default:""},avatarList:{type:Array,default:function(){return[]}}},computed:{isSingle:function(){if("dot"===this.badgeText)return"uni-badge--dot";var t=this.badgeText.toString();return t.length>1?"uni-badge--complex":"uni-badge--single"},computedAvatar:function(){return this.avatarList.length>4?(this.imageWidth=.31*i,"avatarItem--3"):this.avatarList.length>1?(this.imageWidth=.47*i,"avatarItem--2"):(this.imageWidth=i,"avatarItem--1")}},data:function(){return{isFirstChild:!1,border:!0,imageWidth:50}},mounted:function(){this.list=this.getForm(),this.list&&(this.list.firstChildAppend||(this.list.firstChildAppend=!0,this.isFirstChild=!0),this.border=this.list.border)},methods:{getForm:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniList",e=this.$parent,i=e.$options.name;while(i!==t){if(e=e.$parent,!e)return!1;i=e.$options.name}return e},onClick:function(){""===this.to?(this.clickable||this.link)&&this.$emit("click",{data:{}}):this.openPage()},openPage:function(){-1!==["navigateTo","redirectTo","reLaunch","switchTab"].indexOf(this.link)?this.pageApi(this.link):this.pageApi("navigateTo")},pageApi:function(e){var i=this;uni[e]({url:this.to,success:function(t){i.$emit("click",{data:t})},fail:function(e){i.$emit("click",{data:e}),t("error",e.errMsg," at components/uni-list-chat/uni-list-chat.vue:211")}})}}};e.default=a}).call(this,i("0de9")["default"])},e339:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","uni-section"),attrs:{_i:0}},[t._$s(1,"i",t.type)?i("view",{staticClass:t._$s(1,"sc","uni-section__head"),attrs:{_i:1}},[i("view",{staticClass:t._$s(2,"sc","uni-section__head-tag"),class:t._$s(2,"c",t.type),attrs:{_i:2}})]):t._e(),i("view",{staticClass:t._$s(3,"sc","uni-section__content"),attrs:{_i:3}},[i("text",{staticClass:t._$s(4,"sc","uni-section__content-title"),class:t._$s(4,"c",{distraction:!t.subTitle}),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.title)))]),t._$s(5,"i",t.subTitle)?i("text",{staticClass:t._$s(5,"sc","uni-section__content-sub"),attrs:{_i:5}},[t._v(t._$s(5,"t0-0",t._s(t.subTitle)))]):t._e()]),t._t("default",null,{_i:6})],2)},r=[]},ee81:function(t,e,i){"use strict";i.r(e);var a=i("d103"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},efca:function(t,e,i){"use strict";i.r(e);var a=i("fc35"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},f08e:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","uni-swipe"),attrs:{_i:0}},[i("view",{wxsProps:{"change:prop":"btn"},staticClass:t._$s(1,"sc","uni-swipe_box"),attrs:{"data-threshold":t._$s(1,"a-data-threshold",t.threshold),"data-disabled":t._$s(1,"a-data-disabled",t.disabled),prop:t._$s(1,"change:btn",t.btn),_i:1},on:{}},[i("view",{staticClass:t._$s(2,"sc","uni-swipe_button-group button-group--left"),attrs:{_i:2}},[t._t("left",t._l(t._$s(4,"f",{forItems:t.leftOptions}),(function(e,a,n,r){return i("view",{key:t._$s(4,"f",{forIndex:n,key:a}),staticClass:t._$s("4-"+r,"sc","uni-swipe_button button-hock"),style:t._$s("4-"+r,"s",{backgroundColor:e.style&&e.style.backgroundColor?e.style.backgroundColor:"#C7C6CD",fontSize:e.style&&e.style.fontSize?e.style.fontSize:"16px"}),attrs:{"data-button":t._$s("4-"+r,"a-data-button",t.btn),_i:"4-"+r},on:{touchstart:t.appTouchStart,touchend:function(i){return t.appTouchEnd(i,a,e,"left")}}},[i("text",{staticClass:t._$s("5-"+r,"sc","uni-swipe_button-text"),style:t._$s("5-"+r,"s",{color:e.style&&e.style.color?e.style.color:"#FFFFFF"}),attrs:{_i:"5-"+r}},[t._v(t._$s("5-"+r,"t0-0",t._s(e.text)))])])})),{_i:3})],2),t._t("default",null,{_i:6}),i("view",{staticClass:t._$s(7,"sc","uni-swipe_button-group button-group--right"),attrs:{_i:7}},[t._t("right",t._l(t._$s(9,"f",{forItems:t.rightOptions}),(function(e,a,n,r){return i("view",{key:t._$s(9,"f",{forIndex:n,key:a}),staticClass:t._$s("9-"+r,"sc","uni-swipe_button button-hock"),style:t._$s("9-"+r,"s",{backgroundColor:e.style&&e.style.backgroundColor?e.style.backgroundColor:"#C7C6CD",fontSize:e.style&&e.style.fontSize?e.style.fontSize:"16px"}),attrs:{"data-button":t._$s("9-"+r,"a-data-button",t.btn),_i:"9-"+r},on:{touchstart:t.appTouchStart,touchend:function(i){return t.appTouchEnd(i,a,e,"right")}}},[i("text",{staticClass:t._$s("10-"+r,"sc","uni-swipe_button-text"),style:t._$s("10-"+r,"s",{color:e.style&&e.style.color?e.style.color:"#FFFFFF"}),attrs:{_i:"10-"+r}},[t._v(t._$s("10-"+r,"t0-0",t._s(e.text)))])])})),{_i:8})],2)],2)])},r=[]},f0c5:function(t,e,i){"use strict";function a(t,e,i,a,n,r,o,s,l,c){var u,h="function"===typeof t?t.options:t;if(l){h.components||(h.components={});var d=Object.prototype.hasOwnProperty;for(var f in l)d.call(l,f)&&!d.call(h.components,f)&&(h.components[f]=l[f])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(h.mixins||(h.mixins=[])).push(c)),e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),a&&(h.functional=!0),r&&(h._scopeId="data-v-"+r),o?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},h._ssrRegister=u):n&&(u=s?function(){n.call(this,this.$root.$options.shadowRoot)}:n),u)if(h.functional){h._injectStyles=u;var p=h.render;h.render=function(t,e){return u.call(e),p(t,e)}}else{var g=h.beforeCreate;h.beforeCreate=g?[].concat(g,u):[u]}return{exports:t,options:h}}i.d(e,"a",(function(){return a}))},f6f8:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(i("a34a")),n=r(i("0a5a"));r(i("11ae"));function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,i,a,n,r,o){try{var s=t[r](o),l=s.value}catch(c){return void i(c)}s.done?e(l):Promise.resolve(l).then(a,n)}function s(t){return function(){var e=this,i=arguments;return new Promise((function(a,n){var r=t.apply(e,i);function s(t){o(r,a,n,s,l,"next",t)}function l(t){o(r,a,n,s,l,"throw",t)}s(void 0)}))}}var l={data:function(){return{src:"https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/shuijiao.jpg",text:"hello",username:"123456",password:"user123",logining:!1}},methods:{toPage:function(t){uni.hideKeyboard(),uni.navigateTo({url:t})},doLogin:function(){var e=this;return s(a.default.mark((function i(){var r,o;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e.logining=!0,r={username:e.username,password:e.password},i.next=4,n.default.apiCall("post",n.default.login.login,r);case 4:o=i.sent,e.logining=!1,t("log",o,"223"," at pages/public/login/login.vue:55"),uni.navigateTo({url:"pages/tabBar/index/index"}),o&&(uni.showToast({title:"\u767b\u5f55\u6210\u529f",icon:"success"}),uni.setStorageSync("userToken",o.token),uni.setStorageSync("userInfo",o.data.userInfo));case 9:case"end":return i.stop()}}),i)})))()}}};e.default=l}).call(this,i("0de9")["default"])},fc35:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(i("a34a")),n=r(i("0a5a"));r(i("11ae"));function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,i,a,n,r,o){try{var s=t[r](o),l=s.value}catch(c){return void i(c)}s.done?e(l):Promise.resolve(l).then(a,n)}function s(t){return function(){var e=this,i=arguments;return new Promise((function(a,n){var r=t.apply(e,i);function s(t){o(r,a,n,s,l,"next",t)}function l(t){o(r,a,n,s,l,"throw",t)}s(void 0)}))}}var l={data:function(){return{city:"\u8fdc\u65b9",showHeader:!0,afterHeaderOpacity:1,headerPosition:"fixed",headerTop:null,statusTop:null,nVueTitle:null,options:[{text:"\u4fee\u6539"},{text:"\u5b8c\u6210",style:{backgroundColor:"rgb(254,156,1)"}},{text:"\u5220\u9664",style:{backgroundColor:"rgb(255,58,49)"}}],options2:[{text:"\u53d6\u6d88",style:{backgroundColor:"#007aff"}},{text:"\u786e\u8ba4",style:{backgroundColor:"#dd524d"}}],swipeList:[],dataList:[]}},onReady:function(){this.findList()},methods:{onPullDownRefresh:function(){setTimeout((function(){uni.stopPullDownRefresh(),uni.navigateTo({url:"/pages/tabBar/workbench"})}),1e3)},toMsg:function(){t("log","scan"," at pages/tabBar/workbench/workbench.vue:107"),uni.navigateTo({url:"/pages/tabBar/workbench/workForm/workForm"})},onNavigationBarButtonTap:function(e){var i=e.index;0===i&&(t("log","scan"," at pages/tabBar/workbench/workbench.vue:116"),uni.navigateTo({url:"/pages/tabBar/workbench/workForm/workForm"}))},findList:function(){var e=this;return s(a.default.mark((function i(){var r,o;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return r={username:e.username,password:e.password},i.next=3,n.default.apiCall("post",n.default.task.taskList,r);case 3:o=i.sent,e.dataList=o.data.list,t("log",o.data,"0000000"," at pages/tabBar/workbench/workbench.vue:141");case 7:case"end":return i.stop()}}),i)})))()},swipeChange:function(e,i){t("log","\u8fd4\u56de\uff1a",e," at pages/tabBar/workbench/workbench.vue:147"),t("log","\u5f53\u524d\u7d22\u5f15\uff1a",i," at pages/tabBar/workbench/workbench.vue:148")},textClick:function(e,i){t("log","\u8fd4\u56de\uff1a",e," at pages/tabBar/workbench/workbench.vue:151"),t("log","\u5f53\u524d\u7d22\u5f15\uff1a",i," at pages/tabBar/workbench/workbench.vue:152")},swipeClick:function(e,i){var a=this;t("log","click"," at pages/tabBar/workbench/workbench.vue:155");var n=e.content;"\u5220\u9664"===n.text?uni.showModal({title:"\u63d0\u793a",content:"\u662f\u5426\u5220\u9664",success:function(e){e.confirm?a.swipeList.splice(i,1):e.cancel&&t("log","\u7528\u6237\u70b9\u51fb\u53d6\u6d88"," at pages/tabBar/workbench/workbench.vue:167")}}):"\u6dfb\u52a0"===n.text?this.swipeList.length<10?(this.swipeList.push({id:(new Date).getTime(),options:[{text:"\u7f6e\u9876"},{text:"\u6807\u8bb0\u4e3a\u5df2\u8bfb",style:{backgroundColor:"rgb(254,156,1)"}},{text:"\u5220\u9664",style:{backgroundColor:"rgb(255,58,49)"}}],content:"\u65b0\u589e"+(new Date).getTime()}),uni.showToast({title:"\u6dfb\u52a0\u4e86\u4e00\u6761\u6570\u636e",icon:"none"})):uni.showToast({title:"\u6700\u591a\u6dfb\u52a0\u5341\u6761\u6570\u636e",icon:"none"}):uni.showToast({title:"\u70b9\u51fb\u4e86".concat(e.content.text,"\u6309\u94ae"),icon:"none"})}}};e.default=l}).call(this,i("0de9")["default"])}},[["8d3d","app-config"]]]);