vaneditor
Version:
``` 移动端ui框架统一用uView,css扩展语言用scss,全局数据管理vuex,统一样式主体风格颜色定义/src/uni.scss ```
1 lines • 107 kB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-service-weather"],{"0ae6":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAFpOLgnAAAAAXNSR0IArs4c6QAAB9lJREFUaAW9WWtoHFUUvnd2Z7ZpG7UV+7BS26it1CribhqtrbZpu/EV8U99QKt/BAVFRUTxl2JFRRAF/aGgIgoiIgiilN3NmqhNbE3WH2LVKn1aK8ZHjU2T7MzuXL8zyZ3Mzt6ZzGySDiT33nO+87hzzz33zF3GPE85n/7UMxzvlnNp4SWa+fSfNOaS6AWkOkoOXYOqnATIVhSvWUbgUEkHDBsnqSO+3HgetV4TNHYeJVEyI7WOI2Yh86CwxatSgqbAVbo5Z8PjEvn0sBBsnldC9megVdmWat1XJwnw/hF4/7IcA2AaHaWUHFNbIxSmXa4eCWn0L+5TY4mEVda8VkINmLn06VCAiinE0/FcLxfSl6sUuTSzmL7KHSg6CPUjRE5Knt5k/Eh9/+SN7IDG8h1zeTa/gvg1b8sPJgA93rflTszMZ+4bZ9f/9ypK0kBLJK6zq9XX66G1FMK6LpXzmU+YEJ21kMmRdMt1KZUduHWSXdszdH6ppLgCRDA0do5kyJZzXuTtAwfk2G1lUpAE0b3JfeVmvvVKhEub5Clb8dWGBSpGjUs1gLK1tGbc6IBe7ZRx1qhyKSe62tbIftTWXW8pYBYz60RF7DNaFs3hl+wuS3q50Ho7s8UzyMmrIWQiej/WmfEQ7+gbdDG59AnO+HyjY+AsSaO2zoiXiVUtIpm2e2lBfeNcNo9nSiMqfqAR735QCapoiMEPsFvv8vOUkYL9f9wPjDIWQtypwiWdFFbc7WwZvnXfDwTigi8RrOYgVskqaeKXG1O0lqKQPpvx5DImoE2FJIBps39VvDAaBYT/0CG88nXxbaUhw2jWwxTW8TjLqwwEGkFU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AAwJU5AXb+3ivx/H8FN5C+GaC6VRm8AvM21AN+WgkrqL2CWucAUD9X4kNwJYLgfPMCzdtEPVfkIgZPgSuZurgig5WMoFj7AgL5YgwAOaNOrdMA01jBgBZxRQSe+rloDlUgEP52WYT6T4VACACDVjRTwZ3gSqCPUHMVQSQWi9OsDrwb3A9+FOgqivgYzCN37FL4sOcFr+Ur2S6k2Io/Tq9VBeKFT1cHZ/LKpZ+RrBO83SGbCYJx8VJh2pAUz2Wdw4yXy4ps/10Wzp8VVwBE/dvXeXhNsNJMnHU/1esz3+QXe8UuDSIQsqog1vn6lmuX+dZqPS7nDw2J9aogPB9bDr4c9KtxXm3mQAp14lcUz2vPn3jtuRlv9HbkVbwZ9z8Iq2GioQw4MwAAAABJRU5ErkJggg=="},4912:function(t,e,i){"use strict";var a=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("55dd"),i("28a5"),i("ac6a"),i("96cf");var o,r=a(i("3b8d")),n=a(i("b6ed")),l=a(i("1427")),s=(a(i("09c2")),{data:function(){return{cWidth:"",cHeight:"",pixelRatio:1,today:{city:"",weather:"",temp:""},loading:!1,maxArray:[],minArray:[],maxWeather:0,minWeather:0,weatherList:[]}},components:{search:l.default},onLoad:function(){o=this,this.cWidth=uni.upx2px(750),this.cHeight=uni.upx2px(400),this.init()},methods:{getToday:function(){return this.$ajax({url:"/weChat/cms/weather/getSkWeatherAndTodayWeather?cityName=".concat(this.$store.state.cityName,"&appid=").concat(this.$store.state.weatherConfig.appid,"&sign=").concat(this.$store.state.weatherConfig.sign)})},getFuture:function(){return this.$ajax({url:"/weChat/cms/weather/getFutureWeather?cityName=".concat(this.$store.state.cityName,"&appid=").concat(this.$store.state.weatherConfig.appid,"&sign=").concat(this.$store.state.weatherConfig.sign)})},getWeatherImg:function(t){return/雨/.test(t)?i("4320"):/晴/.test(t)?i("0ae6"):/雪/.test(t)?i("98b2"):"浮尘,扬沙,沙尘暴,强沙尘暴".indexOf(t)>-1?i("583c"):i("4ee4")},init:function(){var t=(0,r.default)(regeneratorRuntime.mark((function t(){var e,i,a=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=!0,t.next=3,this.getFuture();case 3:return e=t.sent,t.next=6,this.getToday();case 6:i=t.sent,this.loading=!1,i.data&&i.data.todayWeather&&(i.data.todayWeather.temp=i.data.skWeather.temp,this.today=i.data.todayWeather),e.data.forEach((function(t){var e={week:t.week,weather:t.weather,time:t.date.substr(5,5)};a.minArray.push(t.temperature.split("℃")[0]),a.maxArray.push(t.temperature.split("℃")[1].split("~")[1]),a.weatherList.push(e)})),this.maxWeather=parseInt(this.maxArray.sort()[6])+5,this.minWeather=parseInt(this.minArray.sort()[0])-5,this.getServerData();case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getServerData:function(){var t={categories:[],series:[]};t.categories=["2012","2013","2014","2015","2016","2017"],t.series=[{name:"成交量A",color:"#25AAF8",textColor:"#FFF",data:this.maxArray,format:function(t){return t+"°C"}},{name:"成交量B",color:"#FEDB18",textColor:"#FFF",data:this.minArray,format:function(t){return t+"°C"}}],o.showLineA("canvasLineA",t)},showLineA:function(t,e){new n.default({$this:o,canvasId:t,type:"line",fontSize:13,legend:{show:!1},dataLabel:!0,dataPointShape:!0,dataPointShapeType:"hollow",background:"#FFFFFF",pixelRatio:o.pixelRatio,categories:e.categories,series:e.series,animation:!0,xAxis:{disabled:!0,disableGrid:!0,type:"category",gridColor:"#CCCCCC",axisLine:!1},yAxis:{disabled:!0,disableGrid:!0,gridType:"dash",gridColor:"#CCCCCC",dashLength:8,splitNumber:10,min:this.minWeather,max:this.maxWeather,format:function(t){return t.toFixed(0)+"元"}},width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio,extra:{line:{type:"curve"}}})},touchLineA:function(t){},nameInput:function(t){this.$store.commit("changeCityName",t.detail.value)},search:function(){this.weatherList=[],this.minArray=[],this.maxArray=[],this.init()}}});e.default=s},"4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lyQTeBHz9IeSFXMY/yhRgTP04vhvoB+d/wG3gwhCD6QjnP88RW5vKjkSs/5ZQ3o/gmrK5teIY4CmN5EhbSG+hXMI/Cegs4X/XQTz7M3TH73IK63vkMfAIWOC6Ogl/mUt/Qjox+q+FTkT67JsFdNfPA+OBJ52aFpPzrjd0lNOE/QEQtbUdBJcOfbMcObQH+6MgeFz5zd7pZm+koD7bD7MiOnwERBOTMFxpjDp0DBOb/R8GnP8BO4Qp4xO9NY0AAAAASUVORK5CYII="},"6c7b":function(t,e,i){var a=i("5ca1");a(a.P,"Array",{fill:i("36bd")}),i("9c6c")("fill")},7057:function(t,e,i){"use strict";var a=i("b8b7"),o=i.n(a);o.a},"79cc":function(t,e,i){"use strict";i.r(e);var a=i("4912"),o=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=o.a},"930b":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("div",{staticClass:"weather"},[t.loading?i("uni-load-more",{attrs:{status:"loading"}}):t._e(),i("v-uni-view",{staticClass:"searchBox"},[i("v-uni-view",{staticClass:"form"},[i("v-uni-input",{staticClass:"input",attrs:{type:"search",value:t.$store.state.cityName,"confirm-type":"search",placeholder:"搜索","placeholder-style":"color:#FFF"},on:{input:function(e){e=t.$handleEvent(e),t.nameInput(e)},confirm:function(e){e=t.$handleEvent(e),t.search(e)}}}),i("v-uni-view",{staticClass:"searchIcon",on:{click:function(e){e=t.$handleEvent(e),t.search(e)}}},[i("v-uni-icon",{staticClass:"icon",attrs:{type:"search",size:14,color:"#FFF"}})],1)],1)],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.today.city,expression:"today.city"}],staticClass:"temp"},[i("p",{staticClass:"address"},[t._v(t._s(t.today.city))]),i("p",{staticClass:"weatherPhenomenon"},[t._v(t._s(t.today.weather))]),i("p",{staticClass:"number"},[t._v(t._s(t.today.temp))]),i("p",{staticClass:"summary"},[i("span",[t._v(t._s(t.today.week)+" 今天")]),i("span",[t._v("紫外线强度:"+t._s(t.today.uv_index)+" 出行指数:"+t._s(t.today.travel_index))])])]),i("div",{directives:[{name:"show",rawName:"v-show",value:/雨/.test(t.today.weather),expression:"/雨/.test(today.weather)"}],staticClass:"rain"}),i("div",{directives:[{name:"show",rawName:"v-show",value:"少云,多云,阴,雾,霾".indexOf(t.today.weather)>-1,expression:"'少云,多云,阴,雾,霾'.indexOf(today.weather)>-1"}],staticClass:"cloudyImg"},[i("v-uni-image",{staticClass:"nmoveCloudy",attrs:{src:"http://lishiots.oss-cn-hangzhou.aliyuncs.com/webstatic/nMoveCloudy.png",mode:"aspectFill"}}),i("v-uni-image",{staticClass:"moveCloudy",attrs:{src:"http://lishiots.oss-cn-hangzhou.aliyuncs.com/webstatic/moveCloudy.png",mode:"aspectFill"}})],1),i("div",{directives:[{name:"show",rawName:"v-show",value:/晴/.test(t.today.weather),expression:"/晴/.test(today.weather)"}],staticClass:"sunlight"},[i("v-uni-image",{staticClass:"sunlight",attrs:{src:"http://lishiots.oss-cn-hangzhou.aliyuncs.com/webstatic/sunlight.png",mode:"aspectFill"}}),i("v-uni-image",{staticClass:"sunImg",attrs:{src:"http://lishiots.oss-cn-hangzhou.aliyuncs.com/webstatic/line.png",mode:"aspectFill"}})],1),i("ul",{staticClass:"day"},t._l(t.weatherList,(function(e,a){return a>0?i("li",{key:a},[i("p",[t._v(t._s(e.week))]),i("p",{directives:[{name:"show",rawName:"v-show",value:e.time,expression:"item.time"}]},[t._v(t._s(e.time))]),i("p",{directives:[{name:"show",rawName:"v-show",value:e.weather,expression:"item.weather"}]},[t._v(t._s(e.weather))]),i("v-uni-image",{staticClass:"icon",attrs:{src:t.getWeatherImg(e.weather),mode:"aspectFit"}})],1):t._e()})),0),i("v-uni-canvas",{staticClass:"charts",attrs:{"canvas-id":"canvasLineA",id:"canvasLineA"},on:{touchstart:function(e){e=t.$handleEvent(e),t.touchLineA(e)}}}),i("v-uni-image",{staticClass:"weatherImg",attrs:{src:"http://lishiots.oss-cn-hangzhou.aliyuncs.com/webstatic/background.png",mode:"aspectFill"}})],1)])},o=[];i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return o}))},"98b2":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAwCAYAAAEdl6h3AAAAAXNSR0IArs4c6QAAB2RJREFUaAXFmXmoVVUUxp3KIcPSQrNCzcoRcUrJCqIJrDTDUJPSIirLLLX8wyz9JwgKwgxLaDBRK4giwpyieKkllWmFqWmk2aQV2ezs6/ftu9d56wzvvvtePlrwvbX2t4a9zz777LPPfU2alJNqRH7TSawnsHcnDjN8QFORIpoi0e6MHihbjmFgO9gbCP8HsqNvBxsyGVUL7NawV4FptUbK0YzIXTEiRKpMM0bUNZLdaXfAvjW2a5QikaliZNR4SmXfgvvKHHaRCjIb34zg58/Flo3dUiQyFdwow/l6qKsfRCK3l1QItGH8CadZe00+BY9TdmjEMtibQTtXdTdtzVdecITKeU8BQ/D6AjpNERTmEi1ZnPbGFo655sA+qkjkOnHoieZLLgwyuUOKtADZyHj9CRw6TJ8P8DZ+rZrQzR3OoXndAUzudb6nzU40Ud/EyJEJaUZ0/IweK1t85FpFfV7UyZjVPuwLeFtOtbXsdbdOAKVMsWk5xOrTAqsKNEZz82MnYlxZreiyAXU5ydcar7hIswoKhqVCXIil9svqABntc2mna0G0BacpSBoUjgr6iHzINb5gzNsDv9947GuDjTEAePnJgkzjLJwKeNsOLH+5crRvLUFvtALoT8HWGKVRnu58iQm/WDEQB8CTiaNJk+GRd1SBSdBABWZkZUFomiJBC/TENFtqwS9yBRdEe23Uuppwb7K58N0SjsY94A9gsipxYkDm5hhukAVH/Sr63JCHMcU5+0b7YV9UNnyusMXEnHHoddE+Yr6gIWfLkSJpQNnNlFtyqo+hPUuk58raxE5SAtIFJCPG/hFUXqhcL9S55LgV8x1RdBNo67njYmu0yIRKi6U3jkxWqVb1PE/D6WmV5N8FLrCFs3X3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tUlX4RdAdu1rWzLxtjitxadA+0r7abQ4BjEBFG1rWmKjGq3j+hRmIBeA90Gl8jaBfevTRy6WAstib1pfK8EDoD/IHcngtBYfAn8BL9tohGMwumgNj4Hf5ROw9TUxHeTeonA6d2gyZgI94LpLkkVa5OeDF8F3oFLRrZ8P9A+alMDlBuwD8OvovhAcA5WKLlYbwdm+VrAhW4FZIDuLUNW1n/9jJWLKDjjbIfG6Y1nR7E8Dudm3QQ7GuS6TpVlc7ri12c6K2sTXa8CqQc4Xrp9l2NnZ16dhOORrrXxOzsfgIqAP+ZH61ED0OeJ/oJpBu7HE195L3/pVTs/QOLAbXAk2M9YqdLHgHAZMXi+OqmEJ7Ai2WILTH2GfUhNZbBFT5XJ6FkeVYUmeEwvsR+cXe8zF1xlol6hLNhJQ6wsDXx+gZSiZUmZoDXNRtD3YoepR9CR3A6k1TLs32ANMPsNo07Be44+CDUzWlnYMrAFdWHJdQfh29/XgtoBOcPoVUs+KviPbgQZJ2e/8chUZxA78FX+bEb+N+CHlav5vPm75hWBgYwzgX+T28WvEcMkIAAAAAElFTkSuQmCC"},b4b3:function(t,e,i){"use strict";i.r(e);var a=i("930b"),o=i("79cc");for(var r in o)"default"!==r&&function(t){i.d(e,t,(function(){return o[t]}))}(r);i("7057");var n=i("2877"),l=Object(n["a"])(o["default"],a["a"],a["b"],!1,null,"1fa6f34e",null);e["default"]=l.exports},b6ed:function(t,e,i){"use strict";(function(t){var e=i("4ea4");i("6c7b");var a=e(i("7618"));i("55dd"),i("28a5"),i("a481"),i("ac6a"),i("6b54");var o={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},r=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];function o(t,e){for(var i in e)t[i]=t[i]&&"[object Object]"===t[i].toString()?o(t[i],e[i]):t[i]=e[i];return t}if(null==t)throw new TypeError("Cannot convert undefined or null to object");return!i||0>=i.length?t:(i.forEach((function(e){t=o(t,e)})),t)},n={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return 0!=t%1},approximatelyEqual:function(t,e){return 1e-10>Math.abs(t-e)},isSameSign:function(t,e){var i=Math.abs;return i(t)===t&&i(e)===e||i(t)!==t&&i(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 l(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})),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a),r=parseInt(o[1],16),n=parseInt(o[2],16),l=parseInt(o[3],16);return"rgba("+r+","+n+","+l+","+e+")"}function s(t,e,i){if(isNaN(t))throw new Error("[uCharts] unvalid series data!");i=i||10,e=e||"upper";for(var a=1;1>i;)i*=10,a*=10;for(t="upper"===e?Math.ceil(t*a):Math.floor(t*a);0!=t%i;)"upper"===e?t++:t--;return t/a}function h(t,e,i,a){for(var o,r=[],n=0;n<t.length;n++){o={data:[],name:e[n],color:i[n]};for(var l=0,s=a.length;l<s;l++)if(l<t[n])o.data.push(null);else{for(var h=0,c=0;c<t[n];c++)h+=a[l-c][1];o.data.push(+(h/t[n]).toFixed(3))}r.push(o)}return r}function c(t,e,i,a,o){var r=o.width-o.area[1]-o.area[3],n=i.eachSpacing*(o.chartData.xAxisData.xAxisPoints.length-1),l=e;return 0<=e?(l=0,t.event.trigger("scrollLeft")):Math.abs(e)>=n-r&&(l=r-n,t.event.trigger("scrollRight")),l}function d(t,e,i){function a(t){for(;0>t;)t+=2*o;for(;t>2*o;)t-=2*o;return t}var o=Math.PI;return t=a(t),e=a(e),i=a(i),e>i&&(i+=2*o,t<e&&(t+=2*o)),t>=e&&t<=i}function p(t,e,i){var a=t,o=i-e,r=a+(i-o-a)/1.4142135623730951;return r*=-1,{transX:r,transY:.41421356237309515*(i-o)-(i-o-a)/1.4142135623730951}}function x(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))}var a=.2,o=.2,r=null,n=null,l=null,s=null;if(1>e?(r=t[0].x+(t[1].x-t[0].x)*a,n=t[0].y+(t[1].y-t[0].y)*a):(r=t[e].x+(t[e+1].x-t[e-1].x)*a,n=t[e].y+(t[e+1].y-t[e-1].y)*a),e>t.length-3){var h=t.length-1;l=t[h].x-(t[h].x-t[h-1].x)*o,s=t[h].y-(t[h].y-t[h-1].y)*o}else l=t[e+1].x-(t[e+2].x-t[e].x)*o,s=t[e+1].y-(t[e+2].y-t[e].y)*o;return i(t,e+1)&&(s=t[e+1].y),i(t,e)&&(n=t[e].y),{ctrA:{x:r,y:n},ctrB:{x:l,y:s}}}function f(t,e,i){return{x:i.x+t,y:i.y-e}}function g(t,e){if(e)for(;n.isCollision(t,e);)0<t.start.x?t.start.y--:0>t.start.x?t.start.y++:0<t.start.y?t.start.y++:t.start.y--;return t}function u(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 y(t,e){var i=0,a=e-t;return i=1e4<=a?1e3:1e3<=a?100:100<=a?10:10<=a?5:1<=a?1:.1<=a?.1:.01<=a?.01:.001<=a?.001:1e-4<=a?1e-4:1e-5<=a?1e-5:1e-6,{minRange:s(t,"lower",i),maxRange:s(e,"upper",i)}}function v(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:o.fontSize;t+="";t=t.split("");for(var i,a=0,r=0;r<t.length;r++)i=t[r],a+=/[a-zA-Z]/.test(i)?7:/[0-9]/.test(i)?5.5:/\./.test(i)?2.7:/-/.test(i)?3.25:/[\u4e00-\u9fa5]/.test(i)?10:/\(|\)/.test(i)?3.73:/\s/.test(i)?2.5:/%/.test(i)?8:10;return a*e/10}function m(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function A(t,e){for(var i=Array(e),a=0;a<i.length;a++)i[a]=0;for(var o=0;o<t.length;o++)for(a=0;a<i.length;a++)i[a]+=t[o].data[a];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(i)}),[])}function b(t,e,i){var a,o;return t.clientX?e.rotate?(o=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,o=(t.pageY-i.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):e.rotate?(o=e.height-t.x*e.pixelRatio,a=t.y*e.pixelRatio):(a=t.x*e.pixelRatio,o=t.y*e.pixelRatio),{x:a,y:o}}function w(t,e){for(var i,a=[],o=0;o<t.length;o++)if(i=t[o],null!==i.data[e]&&"undefined"!=typeof i.data[e]&&i.show){var r={};r.color=i.color,r.type=i.type,r.style=i.style,r.pointShape=i.pointShape,r.disableLegend=i.disableLegend,r.name=i.name,r.show=i.show,r.data=i.format?i.format(i.data[e]):i.data[e],a.push(r)}return a}function S(t){var e=t.map((function(t){return v(t)}));return Math.max.apply(null,e)}function T(t){for(var e=Math.PI,i=[],a=0;a<t;a++)i.push(2*e/t*a);return i.map((function(t){return-1*t+e/2}))}function P(t,e,i,a){for(var o,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{},n=t.map((function(t){return{text:r.format?r.format(t,a[i]):t.name+": "+t.data,color:t.color}})),l=[],s={x:0,y:0},h=0;h<e.length;h++)o=e[h],"undefined"!=typeof o[i]&&null!==o[i]&&l.push(o[i]);for(var c,d=0;d<l.length;d++)c=l[d],s.x=Math.round(c.x),s.y+=c.y;return s.y/=l.length,{textList:n,offset:s}}function F(t,e,i,a){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{},r=t.map((function(t){return{text:o.format?o.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 n,l=[],s={x:0,y:0},h=0;h<e.length;h++)n=e[h],"undefined"!=typeof n[i]&&null!==n[i]&&l.push(n[i]);for(var c,d=0;d<l.length;d++)c=l[d],s.x=Math.round(c.x),s.y+=c.y;return s.y/=l.length,{textList:r,offset:s}}function L(t,e,i,a,o,r){!(6<arguments.length&&void 0!==arguments[6])||arguments[6];var n=r.color.upFill,l=r.color.downFill,s=[n,n,l,n],h=[],c={text:o[a],color:null};h.push(c),e.map((function(e){0==a&&0>e.data[1]-e.data[0]?s[1]=l:(e.data[0]<t[a-1][1]&&(s[0]=l),e.data[1]<e.data[0]&&(s[1]=l),e.data[2]>t[a-1][1]&&(s[2]=n),e.data[3]<t[a-1][1]&&(s[3]=l));var i={text:"开盘:"+e.data[0],color:s[0]},o={text:"收盘:"+e.data[1],color:s[1]},r={text:"最低:"+e.data[2],color:s[2]},c={text:"最高:"+e.data[3],color:s[3]};h.push(i,o,r,c)}));for(var d,p=[],x={x:0,y:0},f=0;f<i.length;f++)d=i[f],"undefined"!=typeof d[a]&&null!==d[a]&&p.push(d[a]);return x.x=Math.round(p[0][0].x),{textList:h,offset:x}}function C(t){for(var e=[],i=0;i<t.length;i++)1==t[i].show&&e.push(t[i]);return e}function k(t,e,i,a){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,r=-1,n=0;return("line"==i.type||"area"==i.type)&&"justify"==i.xAxis.boundaryGap&&(n=i.chartData.eachSpacing/2),M(t,i,a)&&e.forEach((function(e,i){t.x+o+n>e&&(r=i)})),r}function D(t,e){var i=-1;if(R(t,e.area)){for(var a,o=e.points,r=-1,n=0,l=o.length;n<l;n++){a=o[n];for(var s=0;s<a.length;s++){r+=1;var h=a[s].area;if(t.x>h[0]&&t.x<h[2]&&t.y>h[1]&&t.y<h[3]){i=r;break}}}return i}return i}function R(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}function M(t,e){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 W(t,e,i){var a=Math.PI,o=2*a/i,r=-1;if(O(t,e.center,e.radius)){var n=function(t){return 0>t&&(t+=2*a),t>2*a&&(t-=2*a),t},l=Math.atan2(e.center.y-t.y,t.x-e.center.x);l*=-1,0>l&&(l+=2*a);var s=e.angleList.map((function(t){return t=n(-1*t),t}));s.forEach((function(t,e){var i=n(t-o/2),s=n(t+o/2);s<i&&(s+=2*a),(l>=i&&l<=s||l+2*a>=i&&l+2*a<=s)&&(r=e)}))}return r}function z(t,e){for(var i,a=-1,o=0,r=e.series.length;o<r;o++)if(i=e.series[o],t.x>i.funnelArea[0]&&t.x<i.funnelArea[2]&&t.y>i.funnelArea[1]&&t.y<i.funnelArea[3]){a=o;break}return a}function _(t,e){for(var i,a=-1,o=0,r=e.length;o<r;o++)if(i=e[o],t.x>i.area[0]&&t.x<i.area[2]&&t.y>i.area[1]&&t.y<i.area[3]){a=o;break}return a}function E(t,e){for(var i,a=-1,o=e.chartData.mapData,r=e.series,n=Ot(t.y,t.x,o.bounds,o.scale,o.xoffset,o.yoffset),l=[n.x,n.y],s=0,h=r.length;s<h;s++)if(i=r[s].geometry.coordinates,Nt(l,i)){a=s;break}return a}function I(t,e){var i=-1;if(O(t,e.center,e.radius)){var a=Math.atan2(e.center.y-t.y,t.x-e.center.x);a=-a;for(var o,r=0,n=e.series.length;r<n;r++)if(o=e.series[r],d(a,o._start_,o._start_+2*o._proportion_*Math.PI)){i=r;break}}return i}function O(t,e,i){var a=Math.pow;return a(t.x-e.x,2)+a(t.y-e.y,2)<=a(i,2)}function B(t){var e=[],i=[];return t.forEach((function(t){null===t?(i.length&&e.push(i),i=[]):i.push(t)})),i.length&&e.push(i),e}function N(t,e,i,a){var o=Math.max,r=Math.floor,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 l=e.legend.padding,s=e.legend.margin,h=e.legend.fontSize,c=15*e.pixelRatio,d=5*e.pixelRatio,p=o(e.legend.lineHeight*e.pixelRatio,h);if("top"==e.legend.position||"bottom"==e.legend.position){for(var x=[],f=0,g=[],u=[],y=0;y<t.length;y++){var m=t[y],A=c+d+v(m.name||"undefined",h)+e.legend.itemGap;f+A>e.width-e.padding[1]-e.padding[3]?(x.push(u),g.push(f-e.legend.itemGap),f=A,u=[m]):(f+=A,u.push(m))}if(u.length){x.push(u),g.push(f-e.legend.itemGap),n.widthArr=g;var b=o.apply(null,g);switch(e.legend.float){case"left":n.area.start.x=e.padding[3],n.area.end.x=e.padding[3]+2*l;break;case"right":n.area.start.x=e.width-e.padding[1]-b-2*l,n.area.end.x=e.width-e.padding[1];break;default:n.area.start.x=(e.width-b)/2-l,n.area.end.x=(e.width+b)/2+l}n.area.width=b+2*l,n.area.wholeWidth=b+2*l,n.area.height=x.length*p+2*l,n.area.wholeHeight=x.length*p+2*l+2*s,n.points=x}}else{var w=t.length,S=e.height-e.padding[0]-e.padding[2]-2*s-2*l,T=Math.min(r(S/p),w);switch(n.area.height=T*p+2*l,n.area.wholeHeight=T*p+2*l,e.legend.float){case"top":n.area.start.y=e.padding[0]+s,n.area.end.y=e.padding[0]+s+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-s-n.area.height,n.area.end.y=e.height-e.padding[2]-s;break;default:n.area.start.y=(e.height-n.area.height)/2,n.area.end.y=(e.height+n.area.height)/2}for(var P,F=0==w%T?w/T:r(w/T+1),L=[],C=0;C<F;C++)P=t.slice(C*T,C*T+T),L.push(P);if(n.points=L,L.length){for(var k=0;k<L.length;k++){for(var D,R=L[k],M=0,W=0;W<R.length;W++)D=c+d+v(R[W].name||"undefined",h)+e.legend.itemGap,D>M&&(M=D);n.widthArr.push(M),n.heightArr.push(R.length*p+2*l)}for(var z=0,_=0;_<n.widthArr.length;_++)z+=n.widthArr[_];n.area.width=z-e.legend.itemGap+2*l,n.area.wholeWidth=n.area.width+l}}switch(e.legend.position){case"top":n.area.start.y=e.padding[0]+s,n.area.end.y=e.padding[0]+s+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-n.area.height-s,n.area.end.y=e.height-e.padding[2]-s;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]}return a.legendData=n,n}function U(t,e,i,a){var o={angle:0,xAxisHeight:i.xAxisHeight},r=t.map((function(t){return v(t)})),n=Math.max.apply(this,r);return 1==e.xAxis.rotateLabel&&n+2*i.xAxisTextPadding>a&&(o.angle=45*Math.PI/180,o.xAxisHeight=2*i.xAxisTextPadding+n*Math.sin(o.angle)),o}function H(t,e,i,a,o){var r=Math.max,n=5<arguments.length&&void 0!==arguments[5]?arguments[5]:1,l=o.extra.radar||{};l.max=l.max||0;for(var s=r(l.max,r.apply(null,m(a))),h=[],c=function(o){var r=a[o],l={};l.color=r.color,l.legendShape=r.legendShape,l.pointShape=r.pointShape,l.data=[],r.data.forEach((function(a,o){var r={};r.angle=t[o],r.proportion=a/s,r.position=f(i*r.proportion*n*Math.cos(r.angle),i*r.proportion*n*Math.sin(r.angle),e),l.data.push(r)})),h.push(l)},d=0;d<a.length;d++)c(d);return h}function X(t,e){for(var i,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,o=0,r=0,n=0;n<t.length;n++)i=t[n],i.data=null===i.data?0:i.data,o+=i.data;for(var l,s=0;s<t.length;s++)l=t[s],l.data=null===l.data?0:l.data,l._proportion_=0===o?1/t.length*a:l.data/o*a,l._radius_=e;for(var h,c=0;c<t.length;c++)h=t[c],h._start_=r,r+=2*h._proportion_*Math.PI;return t}function Q(t,e){var i=2<arguments.length&&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 J(t,e,i,a){for(var o,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,n=0,l=0,s=[],h=0;h<t.length;h++)o=t[h],o.data=null===o.data?0:o.data,n+=o.data,s.push(o.data);for(var c,d=Math.min.apply(null,s),p=Math.max.apply(null,s),x=0;x<t.length;x++)c=t[x],c.data=null===c.data?0:c.data,0===n||"area"==e?(c._proportion_=c.data/n*r,c._rose_proportion_=1/t.length*r):(c._proportion_=c.data/n*r,c._rose_proportion_=c.data/n*r),c._radius_=i+(a-i)*((c.data-d)/(p-d));for(var f,g=0;g<t.length;g++)f=t[g],f._start_=l,l+=2*f._rose_proportion_*Math.PI;return t}function K(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;1==i&&(i=.999999);for(var a,o=0;o<t.length;o++){a=t[o],a.data=null===a.data?0:a.data;var r=void 0;r="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,a._proportion_=r*a.data*i+e.startAngle,2<=a._proportion_&&(a._proportion_%=2)}return t}function Y(t,e,i){for(var a=e,o=0;o<t.length;o++)t[o].value=null===t[o].value?0:t[o].value,t[o]._startAngle_=a,t[o]._endAngle_=(e-i+1)*t[o].value+e,2<=t[o]._endAngle_&&(t[o]._endAngle_%=2),a=t[o]._endAngle_;return t}function j(t,e,i){for(var a,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1,r=0;r<t.length;r++){if(a=t[r],a.data=null===a.data?0:a.data,"auto"==i.pointer.color){for(var n=0;n<e.length;n++)if(a.data<=e[n].value){a.color=e[n].color;break}}else a.color=i.pointer.color;var l=i.startAngle-i.endAngle+1;a._endAngle_=l*a.data+i.startAngle,a._oldAngle_=i.oldAngle,i.oldAngle<i.endAngle&&(a._oldAngle_+=2),a._proportion_=a.data>=i.oldData?(a._endAngle_-a._oldAngle_)*o+i.oldAngle:a._oldAngle_-(a._oldAngle_-a._endAngle_)*o,2<=a._proportion_&&(a._proportion_%=2)}return t}function V(t){t=X(t);for(var e=0,i=0;i<t.length;i++){var a=t[i],o=a.format?a.format(+a._proportion_.toFixed(2)):n.toFixed(100*a._proportion_)+"%";e=Math.max(e,v(o))}return e}function G(t,e,i,a,o,r){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/i),r.extra.column&&r.extra.column.width&&0<+r.extra.column.width&&(t.width=Math.min(t.width,+r.extra.column.width)),0>=t.width&&(t.width=1),t.x+=(a+.5-i/2)*t.width,t)}))}function Z(t,e,i,a,o,r,n){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/2),r.extra.column&&r.extra.column.width&&0<+r.extra.column.width&&(t.width=Math.min(t.width,+r.extra.column.width)),0<a&&(t.width-=2*n),t)}))}function q(t,e,i,a,o,r){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/2),r.extra.column&&r.extra.column.width&&0<+r.extra.column.width&&(t.width=Math.min(t.width,+r.extra.column.width)),t)}))}function $(t,e){var i=e.width-e.area[1]-e.area[3],a=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&1<a&&"justify"==e.xAxis.boundaryGap&&(a-=1);var o=i/a,r=[],n=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){r.push(n+e*o)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?r.push(n+t.length*o):r.push(l)),{xAxisPoints:r,startX:n,endX:l,eachSpacing:o}}function tt(t,e,i,a,o,r){var n=Math.round,l=7<arguments.length&&void 0!==arguments[7]?arguments[7]:1,s=[],h=r.height-r.area[0]-r.area[2];return t.forEach((function(t,c){if(null===t)s.push(null);else{var d=[];t.forEach((function(t){var s={x:a[c]+n(o/2)},p=t.value||t,x=h*(p-e)/(i-e);x*=l,s.y=r.height-n(x)-r.area[2],d.push(s)})),s.push(d)}})),s}function et(t,e,i,o,r,n){var l=Math.round,s=7<arguments.length&&void 0!==arguments[7]?arguments[7]:1,h="center";("line"==n.type||"area"==n.type)&&(h=n.xAxis.boundaryGap);var c=[],d=n.height-n.area[0]-n.area[2];return t.forEach((function(t,p){if(null===t)c.push(null);else{var x={};x.color=t.color,x.x=o[p],"center"==h&&(x.x+=l(r/2));var f=t;"object"==(0,a.default)(t)&&null!=t&&(f=t.value);var g=d*(f-e)/(i-e);g*=s,x.y=n.height-l(g)-n.area[2],c.push(x)}})),c}function it(t,e,i,a,o,r,n,l,s){var h=Math.round,c=9<arguments.length&&void 0!==arguments[9]?arguments[9]:1,d=[],p=r.height-r.area[0]-r.area[2];return t.forEach((function(t,n){if(null===t)d.push(null);else{var x={color:t.color,x:a[n]+h(o/2)};if(0<l){for(var f=0,g=0;g<=l;g++)f+=s[g].data[n];var u=f-t,y=p*(f-e)/(i-e),v=p*(u-e)/(i-e)}else f=t,y=p*(f-e)/(i-e),v=0;var m=v;y*=c,m*=c,x.y=r.height-h(y)-r.area[2],x.y0=r.height-h(m)-r.area[2],d.push(x)}})),d}function at(t,e,i,o){var r,n=Math.min,l=Math.max,s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:-1;r="stack"==o?A(t,e.categories.length):m(t);var h=[];r=r.filter((function(t){return"object"==(0,a.default)(t)&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),r.map((function(t){"object"==(0,a.default)(t)?t.constructor==Array?t.map((function(t){h.push(t)})):h.push(t.value):h.push(t)}));var c=0,d=0;if(0<h.length&&(c=n.apply(this,h),d=l.apply(this,h)),-1<s?("number"==typeof e.yAxis.data[s].min&&(c=n(e.yAxis.data[s].min,c)),"number"==typeof e.yAxis.data[s].max&&(d=l(e.yAxis.data[s].max,d))):("number"==typeof e.yAxis.min&&(c=n(e.yAxis.min,c)),"number"==typeof e.yAxis.max&&(d=l(e.yAxis.max,d))),c===d){var p=d||10;d+=p}for(var x=y(c,d),f=x.minRange,g=x.maxRange,u=[],v=(g-f)/i.yAxisSplit,b=0;b<=i.yAxisSplit;b++)u.push(f+v*b);return u.reverse()}function ot(t,e,i){var a=Math.max,o=r({},{type:""},e.extra.column),l=e.yAxis.data.length,s=Array(l);if(0<l){for(var h=0;h<l;h++){s[h]=[];for(var c=0;c<t.length;c++)t[c].index==h&&s[h].push(t[c])}for(var d,p=Array(l),x=Array(l),f=Array(l),g=function(t,r){r=e.yAxis.data[t],1==e.yAxis.disabled&&(r.disabled=!0),p[t]=at(s[t],e,i,o.type,t);var l=r.fontSize||i.fontSize;f[t]={position:r.position?r.position:"left",width:0},x[t]=p[t].map((function(e){return d=r,e=n.toFixed(e,6),e=r.format?r.format(+e):e,f[t].width=a(f[t].width,v(e,l)+5),e}));var h=r.calibration?4*e.pixelRatio:0;f[t].width+=h+3*e.pixelRatio,!0===r.disabled&&(f[t].width=0),d=r},u=0;u<l;u++)g(u,d)}else{p=[,],x=[,],f=[,];p[0]=at(t,e,i,o.type),f[0]={position:"left",width:0};var y=e.yAxis.fontSize||i.fontSize;x[0]=p[0].map((function(t){return t=n.toFixed(t,6),t=e.yAxis.format?e.yAxis.format(+t):t,f[0].width=a(f[0].width,v(t,y)+5),t})),f[0].width+=3*e.pixelRatio,!0===e.yAxis.disabled?(f[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:x,ranges:p,yAxisWidth:f}}function rt(t,e,i){for(var a=[].concat(i.chartData.yAxisData.ranges),o=i.height-i.area[0]-i.area[2],r=i.area[0],n=[],l=0;l<a.length;l++){var s=a[l].shift(),h=a[l].pop(),c=s-(s-h)*(t-r)/o;c=i.yAxis.data[l].format?i.yAxis.data[l].format(+c):c.toFixed(0),n.push(c+"")}return n}function nt(t,e){for(var i,a,o=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 n=[].concat(e.chartData.yAxisData.ranges[t[r].yAxisIndex]);i=n.pop(),a=n.shift();var l=o*(t[r].value-i)/(a-i);t[r].y=e.height-Math.round(l)-e.area[2]}return t}function lt(t,e){var i=Math.PI;!0===e.rotateLock?!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*i/180),e._rotate_=!0):(t.translate(e.height,0),t.rotate(90*i/180))}function st(t,e,i,a,o){a.beginPath(),"hollow"==o.dataPointShapeType?(a.setStrokeStyle(e),a.setFillStyle(o.background),a.setLineWidth(2*o.pixelRatio)):(a.setStrokeStyle("#ffffff"),a.setFillStyle(e),a.setLineWidth(1*o.pixelRatio)),"diamond"===i?t.forEach((function(t){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){null!==t&&(a.moveTo(t.x+2.5*o.pixelRatio,t.y),a.arc(t.x,t.y,3*o.pixelRatio,0,2*Math.PI,!1))})):"rect"===i?t.forEach((function(t){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){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 ht(t,e,i,a){var o=t.title.fontSize||e.titleFontSize,r=t.subtitle.fontSize||e.subtitleFontSize,n=t.title.name||"",l=t.subtitle.name||"",s=t.title.color||e.titleColor,h=t.subtitle.color||e.subtitleColor,c=n?o:0,d=l?r:0,p=5;if(l){var x=v(l,r),f=a.x-x/2+(t.subtitle.offsetX||0),g=a.y+r/2+(t.subtitle.offsetY||0);n&&(g+=(c+p)/2),i.beginPath(),i.setFontSize(r),i.setFillStyle(h),i.fillText(l,f,g),i.closePath(),i.stroke()}if(n){var u=v(n,o),y=a.x-u/2+(t.title.offsetX||0),m=a.y+o/2+(t.title.offsetY||0);l&&(m-=(d+p)/2),i.beginPath(),i.setFontSize(o),i.setFillStyle(s),i.fillText(n,y,m),i.closePath(),i.stroke()}}function ct(t,e,i,o){var r=e.data;t.forEach((function(t,n){if(null!==t){o.beginPath(),o.setFontSize(e.textSize||i.fontSize),o.setFillStyle(e.textColor||"#666666");var l=r[n];"object"==(0,a.default)(r[n])&&null!==r[n]&&(l=r[n].value);var s=e.format?e.format(l):l;o.fillText(s+"",t.x-v(s,e.textSize||i.fontSize)/2,t.y-4),o.closePath(),o.stroke()}}))}function dt(t,e,i,a,o,r){var n=Math.PI;e-=t.width/2+o.gaugeLabelTextMargin;for(var l=t.startAngle-t.endAngle+1,s=l/t.splitLine.splitNumber,h=t.endNumber-t.startNumber,c=h/t.splitLine.splitNumber,d=t.startAngle,p=t.startNumber,x=0;x<t.splitLine.splitNumber+1;x++){var f={x:e*Math.cos(d*n),y:e*Math.sin(d*n)},g=t.labelFormat?t.labelFormat(p):p;f.x+=i.x-v(g)/2,f.y+=i.y;var u=f.x,y=f.y;r.beginPath(),r.setFontSize(o.fontSize),r.setFillStyle(t.labelColor||"#666666"),r.fillText(g,u,y+o.fontSize/2),r.closePath(),r.stroke(),d+=s,2<=d&&(d%=2),p+=c}}function pt(t,e,i,a,o,r){var l=a.extra.radar||{};e+=o.radarLabelTextMargin,t.forEach((function(t,s){var h={x:e*Math.cos(t),y:e*Math.sin(t)},c=f(h.x,h.y,i),d=c.x,p=c.y;n.approximatelyEqual(h.x,0)?d-=v(a.categories[s]||"")/2:0>h.x&&(d-=v(a.categories[s]||"")),r.beginPath(),r.setFontSize(o.fontSize),r.setFillStyle(l.labelColor||"#666666"),r.fillText(a.categories[s]||"",d,p+o.fontSize/2),r.closePath(),r.stroke()}))}function xt(t,e,i,a,o,r){for(var l=Math.cos,s=Math.sin,h=Math.min,c=Math.max,d=Math.PI,p=i.pieChartLinePadding,x=[],u=null,y=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*d-(t._start_+2*d*t._proportion_/2),a=t.color,o=t._radius_;return{arc:i,text:e,color:a,radius:o,textColor:t.textColor,textSize:t.textSize}})),m=0;m<y.length;m++){var A=y[m],b=l(A.arc)*(A.radius+p),w=s(A.arc)*(A.radius+p),S=l(A.arc)*A.radius,T=s(A.arc)*A.radius,P=0<=b?b+i.pieChartTextPadding:b-i.pieChartTextPadding,F=w,L=v(A.text),C=F;u&&n.isSameXCoordinateArea(u.start,{x:P})&&(C=0<P?h(F,u.start.y):0>b?c(F,u.start.y):0<F?c(F,u.start.y):h(F,u.start.y)),0>P&&(P-=L);var k={lineStart:{x:S,y:T},lineEnd:{x:b,y:w},start:{x:P,y:C},width:L,height:i.fontSize,text:A.text,color:A.color,textColor:A.textColor,textSize:A.textSize};u=g(k,u),x.push(u)}for(var D=0;D<x.length;D++){var R=x[D],M=f(R.lineStart.x,R.lineStart.y,r),W=f(R.lineEnd.x,R.lineEnd.y,r),z=f(R.start.x,R.start.y,r);a.setLineWidth(1*e.pixelRatio),a.setFontSize(i.fontSize),a.beginPath(),a.setStrokeStyle(R.color),a.setFillStyle(R.color),a.moveTo(M.x,M.y);var _=0>R.start.x?z.x+R.width:z.x,E=0>R.start.x?z.x-5:z.x+5;a.quadraticCurveTo(W.x,W.y,_,z.y),a.moveTo(M.x,M.y),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(z.x+R.width,z.y),a.arc(_,z.y,2,0,2*d),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(R.textSize||i.fontSize),a.setFillStyle(R.textColor||"#666666"),a.fillText(R.text,E,z.y+3),a.closePath(),a.stroke(),a.closePath()}}function ft(t,e,i,a){var o=e.extra.tooltip||{};o.gridType=null==o.gridType?"solid":o.gridType,o.dashLength=null==o.dashLength?4:o.dashLength;var r=e.area[0],n=e.height-e.area[2];if("dash"==o.gridType&&a.setLineDash([o.dashLength,o.dashLength]),a.setStrokeStyle(o.gridColor||"#cccccc"),a.setLineWidth(1*e.pixelRatio),a.beginPath(),a.moveTo(t,r),a.lineTo(t,n),a.stroke(),a.setLineDash([]),o.xAxisLabel){var s=e.categories[e.tooltip.index];a.setFontSize(i.fontSize);var h=v(s,i.fontSize),c=t-.5*h,d=n;a.beginPath(),a.setFillStyle(l(o.labelBgColor||i.toolTipBackground,o.labelBgOpacity||i.toolTipOpacity)),a.setStrokeStyle(o.labelBgColor||i.toolTipBackground),a.setLineWidth(1*e.pixelRatio),a.rect(c-i.toolTipPadding,d,h+2*i.toolTipPadding,i.fontSize+2*i.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(o.labelFontColor||i.fontColor),a.fillText(s+"",c,d+i.toolTipPadding+i.fontSize),a.closePath(),a.stroke()}}function gt(t,e,i){for(var a,o=r({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),n=t.area[3],s=t.width-t.area[1],h=nt(o.data,t),c=0;c<h.length;c++)if(a=r({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},h[c]),"dash"==o.type&&i.setLineDash([o.dashLength,o.dashLength]),i.setStrokeStyle(a.lineColor),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.moveTo(n,a.y),i.lineTo(s,a.y),i.stroke(),i.setLineDash([]),a.showLabel){var d=t.yAxis.format?t.yAxis.format(+a.value):a.value;i.setFontSize(e.fontSize);var p=v(d,e.fontSize),x=t.padding[3]+e.yAxisTitleWidth-e.toolTipPadding,f=Math.max(t.area[3],p+2*e.toolTipPadding),g=f-x,u=a.y;i.setFillStyle(l(a.labelBgColor,a.labelBgOpacity)),i.setStrokeStyle(a.labelBgColor),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.rect(x,u-.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(a.labelFontColor),i.fillText(d+"",x+(g-p)/2,u+.5*e.fontSize),i.stroke()}}function ut(t,e,i,a){var o=Math.max,n=r({},{gridType:"solid",dashLength:4},t.extra.tooltip),s=t.area[3],h=t.width-t.area[1];if("dash"==n.gridType&&i.setLineDash([n.dashLength,n.dashLength]),i.setStrokeStyle(n.gridColor||"#cccccc"),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.moveTo(s,t.tooltip.offset.y),i.lineTo(h,t.tooltip.offset.y),i.stroke(),i.setLineDash([]),n.yAxisLabel)for(var c=rt(t.tooltip.offset.y,t.series,t,e,a),d=t.chartData.yAxisData.yAxisWidth,p=t.area[3],x=t.width-t.area[1],f=0;f<c.length;f++){i.setFontSize(e.fontSize);var g=void 0,u=void 0,y=void 0,m=v(c[f],e.fontSize);"left"==d[f].position?(g=p-d[f].width,u=o(g,g+m+2*e.toolTipPadding)):(g=x,u=o(g+d[f].width,g+m+2*e.toolTipPadding)),y=u-g;var A=g+(y-m)/2,b=t.tooltip.offset.y;i.beginPath(),i.setFillStyle(l(n.labelBgColor||e.toolTipBackground,n.labelBgOpacity||e.toolTipOpacity)),i.setStrokeStyle(n.labelBgColor||e.toolTipBackground),i.setLineWidth(1*t.pixelRatio),i.rect(g,b-.5*e.fontSize-e.toolTipPadding,y,e.fontSize+2*e.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(e.fontSize),i.setFillStyle(n.labelFontColor||e.fontColor),i.fillText(c[f],A,b+.5*e.fontSize),i.closePath(),i.stroke(),"left"==d[f].position?p-=d[f].width+t.yAxis.padding:x+=d[f].width+t.yAxis.padding}}function yt(t,e,i,a,o){var n=r({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.tooltip),s=e.area[0],h=e.height-e.area[2];a.beginPath(),a.setFillStyle(l(n.activeBgColor,n.activeBgOpacity)),a.rect(t-o/2,s,o,h-s),a.closePath(),a.fill()}function vt(t,e,i,a,o){var n=Math.round,s=r({},{showBox:!0,bgColor:"#000000",bgOpacity:.7,fontColor:"#FFFFFF"},i.extra.tooltip),h=4*i.pixelRatio,c=5*i.pixelRatio,d=8*i.pixelRatio,p=!1;("line"==i.type||"area"==i.type||"candle"==i.type||"mix"==i.type)&&ft(i.tooltip.offset.x,i,a,o),e=r({x:0,y:0},e),e.y-=8*i.pixelRatio;var x=t.map((function(t){return v(t.text,a.fontSize)})),f=h+c+4*a.toolTipPadding+Math.max.apply(null,x),g=2*a.toolTipPadding+t.length*a.toolTipLineHeight;0==s.showBox||(e.x-Math.abs(i._scrollDistance_)+d+f>i.width&&(p=!0),g+e.y>i.height&&(e.y=i.height-g),o.beginPath(),o.setFillStyle(l(s.bgColor||a.toolTipBackground,s.bgOpacity||a.toolTipOpacity)),p?(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-n(f),e.y),o.lineTo(e.x-d-n(f),e.y+g),o.lineTo(e.x-d,e.y+g),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+n(f),e.y),o.lineTo(e.x+d+n(f),e.y+g),o.lineTo(e.x+d,e.y+g),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 r=e.x+d+2*a.toolTipPadding,n=e.y+(a.toolTipLineHeight-a.fontSize)/2+a.toolTipLineHeight*i+a.toolTipPadding+1;p&&(r=e.x-f-d+2*a.toolTipPadding),o.fillRect(r,n,h,a.fontSize),o.closePath()}})),t.forEach((function(t,i){var r=e.x+d+2*a.toolTipPadding+h+c;p&&(r=e.x-f-d+2*a.toolTipPadding+ +h+c);var n=e.y+(a.toolTipLineHeight-a.fontSize)/2+a.toolTipLineHeight*i+a.toolTipPadding;o.beginPath(),o.setFontSize(a.fontSize),o.setFillStyle(s.fontColor),o.fillText(t.text,r,n+a.fontSize),o.closePath(),o.stroke()})))}function mt(t,e,i,a){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,n=e.chartData.xAxisData,l=n.xAxisPoints,s=n.eachSpacing,h=r({},{type:"group",width:s/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),c=[];a.save();var d=-2,p=l.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),d=Math.floor(-e._scrollDistance_/s)-2,p=d+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===o&&yt(e.tooltip.offset.x,e,i,a,s),t.forEach((function(r,n){var x,f,g;x=[].concat(e.chartData.yAxisData.ranges[r.index]),f=x.pop(),g=x.shift();var u=r.data;switch(h.type){case"group":var y=et(u,f,g,l,s,e,i,o),v=it(u,f,g,l,s,e,i,n,t,o);c.push(v),y=G(y,s,t.length,n,i,e);for(var m,A=0;A<y.length;A++)if(m=y[A],null!==m&&A>d&&A<p){a.beginPath(),a.setStrokeStyle(m.color||r.color),a.setLineWidth(1),a.setFillStyle(m.color||r.color);var b=m.x-m.width/2,w=e.height-m.y-e.area[2];a.moveTo(b-1,m.y),a.lineTo(b+m.width-2,m.y),a.lineTo(b+m.width-2,e.height-e.area[2]),a.lineTo(b,e.height-e.area[2]),a.lineTo(b,m.y),a.closePath(),a.stroke(),a.fill()}break;case"stack":y=it(u,f,g,l,s,e,i,n,t,o);c.push(y),y=q(y,s,t.length,n,i,e,t);for(var S,T=0;T<y.length;T++)if(S=y[T],null!==S&&T>d&&T<p){a.beginPath(),a.setFillStyle(S.color||r.color);b=S.x-S.width/2+1,w=e.height-S.y-e.area[2];var P=e.height-S.y0-e.area[2];0<n&&(w-=P),a.moveTo(b,S.y),a.fillRect(b,S.y,S.width-2,w),a.closePath(),a.fill()}break;case"meter":y=et(u,f,g,l,s,e,i,o);if(c.push(y),y=Z(y,s,t.length,n,i,e,h.meter.border),0==n){for(var F,L=0;L<y.length;L++)if(F=y[L],null!==F&&L>d&&L<p){a.beginPath(),a.setFillStyle(h.meter.fillColor);b=F.x-F.width/2,w=e.height-F.y-e.area[2];a.moveTo(b,F.y),a.fillRect(b,F.y,F.width,w),a.closePath(),a.fill(),0<h.meter.border&&(a.beginPath(),a.setStrokeStyle(r.color),a.setLineWidth(h.meter.border*e.pixelRatio),a.moveTo(b+.5*h.meter.border,F.y+w),a.lineTo(b+.5*h.meter.border,F.y+.5*h.meter.border),a.lineTo(b+F.width-.5*h.meter.border,F.y+.5*h.meter.border),a.lineTo(b+F.width-.5*h.meter.border,F.y+w),a.stroke())}}else for(var C,k=0;k<y.length;k++)if(C=y[k],null!==C&&k>d&&k<p){a.beginPath(),a.setFillStyle(C.color||r.color);b=C.x-C.width/2,w=e.height-C.y-e.area[2];a.moveTo(b,C.y),a.fillRect(b,C.y,C.width,w),a.closePath(),a.fill()}}})),!1!==e.dataLabel&&1===o&&t.forEach((function(r,n){var c,d,p;c=[].concat(e.chartData.yAxisData.ranges[r.index]),d=c.pop(),p=c.shift();var x=r.data;switch(h.type){case"group":var f=et(x,d,p,l,s,e,i,o);f=G(f,s,t.length,n,i,e),ct(f,r,i,a);break;case"stack":f=it(x,d,p,l,s,e,i,n,t,o);ct(f,r,i,a);break;case"meter":f=et(x,d,p,l,s,e,i,o);ct(f,r,i,a)}})),a.restore(),{xAxisPoints:l,calPoints:c,eachSpacing:s}}function At(t,e,i,a,o){var n=5<arguments.length&&void 0!==arguments[5]?arguments[5]:1,l=r({},{color:{},average:{}},i.extra.candle);l.color=r({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},l.color),l.average=r({},{show:!1,name:[],day:[],color:a.colors},l.average),i.extra.candle=l;var s=i.chartData.xAxisData,h=s.xAxisPoints,c=s.eachSpacing,d=[];o.save();var p=-2,f=h.length+2,g=0,u=i.width+c;return i._scrollDistance_&&0!==i._scrollDistance_&&!0===i.enableScroll&&(o.translate(i._scrollDistance_,0),p=Math.floor(-i._scrollDistance_/c)-2,f=p+i.xAxis.itemCount+4,g=-i._scrollDistance_-c+i.area[3],u=g+(i.xAxis.itemCount+4)*c),l.average.show&&e.forEach((function(t){var e,r,l;e=[].concat(i.chartData.yAxisData.ranges[t.index]),r=e.pop(),l=e.shift();for(var s,d=t.data,p=et(d,r,l,h,c,i,a,n),f=B(p),y=0;y<f.length;y++){if(s=f[y],o.beginPath(),o.setStrokeStyle(t.color),o.setLineWidth(1),1===s.length)o.moveTo(s[0].x,s[0].y),o.arc(s[0].x,s[0].y,1,0,2*Math.PI);else{o.moveTo(s[0].x,s[0].y);for(var v,m=0,A=0;A<s.length;A++)if(v=s[A],0==m&&v.x>g&&(o.moveTo(v.x,v.y),m=1),0<A&&v.x>g&&v.x<u){var b=x(s,A-1);o.bezierCurveTo(b.ctrA.x,b.ctrA.y,b.ctrB.x,b.ctrB.y,v.x,v.y)}o.moveTo(s[0].x,s[0].y)}o.closePath(),o.stroke()}})),t.forEach((function(t){var e,r,s;e=[].concat(i.chartData.yAxisData.ranges[t.index]),r=e.pop(),s=e.shift();var x=t.data,g=tt(x,r,s,h,c,i,a,n);d.push(g);for(var u=B(g),y=0;y<u[0].length;y++)if(y>p&&y<f){var v=u[0][y];o.beginPath(),0<x[y][1]-x[y][0]?(o.setStrokeStyle(l.color.upLine),o.setFillStyle(l.color.upFill),o.setLineWidth(1*i.pixelRatio),o.moveTo(v[3].x,v[3].y),o.lineTo(v[1].x,v[1].y),o.lineTo(v[1].x-c/4,v[1].y),o.lineTo(v[0].x-c/4,v[0].y),o.lineTo(v[0].x,v[0].y),o.lineTo(v[2].x,v[2].y),o.lineTo(v[0].x,v[0].y),o.lineTo(v[0].x+c/4,v[0].y),o.lineTo(v[1].x+c/4,v[1].y),o.lineTo(v[1].x,v[1].y),o.moveTo(v[3].x,v[3].y)):(o.setStrokeStyle(l.color.downLine),o.setFillStyle(l.color.downFill),o.setLineWidth(1*i.pixelRatio),o.moveTo(v[3].x,v[3].y),o.lineTo(v[0].x,v[0].y),o.lineTo(v[0].x-c/4,v[0].y),o.lineTo(v[1].x-c/4,v[1].y),o.lineTo(v[1].x,v[1].y),o.lineTo(v[2].x,v[2].y),o.lineTo(v[1].x,v[1].y),o.lineTo(v[1].x+c/4,v[1].y),o.lineTo(v[0].x+c/4,v[0].y),o.lineTo(v[0].x,v[0].y),o.moveTo(v[3].x,v[3].y)),o.closePath(),o.fill(),o.stroke()}})),o.restore(),{xAxisPoints:h,calPoints:d,eachSpacing:c}}function bt(t,e,i,a){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,n=r({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),s=e.chartData.xAxisData,h=s.xAxisPoints,c=s.eachSpacing,d=e.height-e.area[2],p=[];a.save();var f=0,g=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),f=-e._scrollDistance_-c+e.area[3],g=f+(e.xAxis.itemCount+4)*c),t.forEach((function(t){var r,s,u;r=[].concat(e.chartData.yAxisData.ranges[t.index]),s=r.pop(),u=r.shift();var y=t.data,v=et(y,s,u,h,c,e,i,o);p.push(v);for(var m,A=B(v),b=0;b<A.length;b++){if(m=A[b],a.beginPath(),a.setStrokeStyle(l(t.color,n.opacity)),n.gradient){var w=a.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);w.addColorStop("0",l(t.color,n.opacity)),w.addColorStop("1.0",l("#FFFFFF",.1)),a.setFillStyle(w)}else a.setFillStyle(l(t.color,n.opacity));if(a.setLineWidth(n.width*e.pixelRatio),1<m.length){var S=m[0],T=m[m.length-1];a.moveTo(S.x,S.y);var P=0;if("curve"===n.type){for(var F,L=0;L<m.length;L++)if(F=m[L],0==P&&F.x>f&&(a.moveTo(F.x,F.y),P=1),0<L&&F.x>f&&F.x<g){var C=x(m,L-1);a.bezierCurveTo(C.ctrA.x,C.ctrA.y,C.ctrB.x,C.ctrB.y,F.x,F.y)}}else for(var k,D=0;D<m.length;D++)k=m[D],0==P&&k.x>f&&(a.moveTo(k.x,k.y),P=1),0<D&&k.x>f&&k.x<g&&a.lineTo(k.x,k.y);a.lineTo(T.x,d),a.lineTo(S.x,d),a.lineTo(S.x,S.y)}else{var R=m[0];a.moveTo(R.x-c/2,R.y),a.lineTo(R.x+c/2,R.y),a.lineTo(R.x+c/2,d),a.lineTo(R.x-c/2,d),a.moveTo(R.x-c/2,R.y)}if(a.closePath(),a.fill(),n.addLine){if("dash"==t.lineType){var M=t.dashLength?t.dashLength:8;M*=e.pixelRatio,a.setLineDash([M,M])}if(a.beginPath(),a.setStrokeStyle(t.color),a.setLineWidth(n.width*e.pixelRatio),1===m.length)a.moveTo(m[0].x,m[0].y),a.arc(m[0].x,m[0].y,1,0,2*Math.PI);else{a.moveTo(m[0].x,m[0].y);var W=0;if("curve"===n.type){for(var z,_=0;_<m.length;_++)if(z=m[_],0==W&&z.x>f&&(a.moveTo(z.x,z.y),W=1),0<_&&z.x>f&&z.x<g){var E=x(m,_-1);a.bezierCurveTo(E.ctrA.x,E.ctrA.y,E.ctrB.x,E.ctrB.y,z.x,z.y)}}else for(var I,O=0;O<m.length;O++)I=m[O],0==W&&I.x>f&&(a.moveTo(I.x,I.y),W=1),0<O&&I.x>f&&I.x<g&&a.lineTo(I.x,I.y);a.moveTo(m[0].x,m[0].y)}a.stroke(),a.setLineDash([])}}!1!==e.dataPointShape&&st(v,t.color,t.pointShape,a,e)})),!1!==e.dataLabel&&1===o&&t.forEach((function(t){var r,n,l;r=[].concat(e.chartData.yAxisData.ranges[t.index]),n=r.pop(),l=r.shift();var s=t.data,d=et(s,n,l,h,c,e,i,o);ct(d,t,i,a)})),a.restore(),{xAxisPoints:h,calPoints:p,eachSpacing:c}}function wt(t,e,i,a){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,n=r({},{type:"straight",width:2},e.extra.line);n.width*=e.pixelRatio;var l=e.chartData.xAxisData,s=l.xAxisPoints,h=l.eachSpacing,c=[];a.save();var d=0,p=e.width+h;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),d=-e._scrollDistance_-h+e.area[3],p=d+(e.xAxis.itemCount+4)*h),t.forEach((function(t){var r,l,f;r=[].concat(e.chartData.yAxisData.ranges[t.index]),l=r.pop(),f=r.shift();var g=t.data,u=et(g,l,f,s,h,e,i,o);c.push(u);var y=B(u);if("dash"==t.lineType){var v=t.dashLength?t.dashLength:8;v*=e.pixelRatio,a.setLineDash([v,v])}a.beginPath(),a.setStrokeStyle(t.color),a.setLineWidth(n.width),y.forEach((function(t){if(1===t.length)a.moveTo(t[0].x,t[0].y),a.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{a.moveTo(t[0].x,t[0].y);var e=0;if("curve"===n.type){for(var i,o=0;o<t.length;o++)if(i=t[o],0==e&&i.x>d&&(a.moveTo(i.x,i.y),e=1),0<o&&i.x>d&&i.x<p){var r=x(t,o-1);a.bezierCurveTo(r.ctrA.x,r.ctrA.y,r.ctrB.x,r.ctrB.y,i.x,i.y)}}else for(var l,s=0;s<t.length;s++)l=t[s],0==e&&l.x>d&&(a.moveTo(l.x,l.y),e=1),0<s&&l.x>d&&l.x<p&&a.lineTo(l.x,l.y);a.moveTo(t[0].x,t[0].y)}})),a.stroke(),a.setLineDash([]),!1!==e.dataPointShape&&st(u,t.color,t.pointShape,a,e)})),!1!==e.dataLabel&&1===o&&t.forEach((function(t){var r,n,l;r=[].concat(e.chartData.yAxisData.ranges[t.index]),n=r.pop(),l=r.shift();var c=t.data,d=et(c,n,l,s,h,e,i,o);ct(d,t,i,a)})),a.restore(),{xAxisPoints:s,calPoints:c,eachSpacing:h}}function St(t,e,i,a){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,n=r.xAxisPoints,s=r.eachSpacing,h=e.height-e.area[2],c=[],d=0,p=0;t.forEach((function(t){"column"==t.type&&(p+=1)})),a.save();var f=-2,g=n.length+2,u=0,y=e.width+s;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),f=Math.floor(-e._scrollDistance_/s)-2,g=f+e.xAxis.itemCount+4,u=-e._scrollDistance_-s+e.area[3],y=u+(e.xAxis.itemCount+4)*s),t.forEach((function(t){var r,v,m;r=[].concat(e.chartData.yAxisData.ranges[t.index]),v=r.pop(),m=r.shift();var A=t.data,b=et(A,v,m,n,s,e,i,o);if(c.push(b),"column"==t.type){b=G(b,s,p,d,i,e);for(var w,S=0;S<b.length;S++)if(w=b[S],null!==w&&S>f&&S<g){a.beginPath(),a.setStrokeStyle(w.color||t.color),a.setLineWidth(1),a.setFillStyle(w.color||t.color);var T=w.x-w.width/2;e.height,w.y,e.area[2];a.moveTo(T,w.y),a.moveTo(T-1,w.y),a.lineTo(T+w.width-2,w.y),a.lineTo(T+w.width-2,e.height-e.area[2]),a.lineTo(T,e.height-e.area[2]),a.lineTo(T,w.y),a.closePath(),a.stroke(),a.fill(),a.closePath(),a.fill()}d+=1}if("area"==t.type)for(var P,F=B(b),L=0;L<F.length;L++){if(P=F[L],a.beginPath(),a.setStrokeStyle(t.color),a.setFillStyle(l(t.color,.2)),a.setLineWidth(2*e.pixelRatio),1<P.length){var C=P[0],k=P[P.length-1];a.moveTo(C.x,C.y);var D=0;if("curve"===t.style){for(var R,M=0;M<P.length;M++)if(R=P[M],0==D&&R.x>u&&(a.moveTo(R.x,R.y),D=1),0<M&&R.x>u&&R.x<y){var W=x(P,M-1);a.bezierCurveTo(W.ctrA.x,W.ctrA.y,W.ctrB.x,W.ctrB.y,R.x,R.y)}}else for(var z,_=0;_<P.length;_++)z=P[_],0==D&&z.x>u&&(a.moveTo(z.x,z.y),D=1),0<_&&z.x>u&&z.x<y&&a.lineTo(z.x,z.y);a.lineTo(k.x,h),a.lineTo(C.x,h),a.lineTo(C.x,C.y)}else{var E=P[0];a.moveTo(E.x-s/2,E.y),a.lineTo(E.x+s/2,E.y),a.lineTo(E.x+s/2,h),a.lineTo(E.x-s/2,h),a.moveTo(E.x-s/2,E.y)}a.closePath(),a.fill()}if("line"==t.type){var I=B(b);I.forEach((function(i){if("dash"==t.lineType){var o=t.dashLength?t.dashLength:8;o*=e.pixelRatio,a.setLineDash([o,o])}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 r=0;if("curve"==t.style){for(var n,l=0;l<i.length;l++)if(n=i[l],0==r&&n.x>u&&(a.moveTo(n.x,n.y),r=1),0<l&&n.x>u&&n.x<y){var s=x(i,l-1);a.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,n.x,n.y)}}else for(var h,c=0;c<i.length;c++)h=i[c],0==r&&h.x>u&&(a.moveTo(h.x,h.y),r=1),0<c&&h.x>u&&h.x<y&&a.lineTo(h.x,h.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&&st(b,t.color,t.pointShape,a,e)})),!1!==e.dataLabel&&1===o){d=0;t.forEach((function(t){var r,l,h;r=[].concat(e.chartData.yAxisData.ranges[t.index]),l=r.pop(),h=r.shift();var c=t.data,x=et(c,l,h,n,s,e,i,o);"column"===t.type?(x=G(x,s,p,d,i,e),ct(x,t,i,a),d+=1):ct(x,t,i,a)}))}return a.restore(),{xAxisPoints:n,calPoints:c,eachSpacing:s}}function Tt(t,e,i,a,o,r){var n=t.extra.tooltip||{};n.horizentalLine&&t.tooltip&&1===a&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&ut(t,e,i,o,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&&vt(t.tooltip.textList,t.tooltip.offset,t,e,i,o,r),i.restore()}function Pt(t,e,i,a){var o=Math.ceil,r=e.chartData.xAxisData,n=r.xAxisPoints,l=r.startX,s=r.endX,h=r.eachSpacing,c="center";("line"==e.type||"area"==e.type)&&(c=e.xAxis.boundaryGap);var d=e.height-e.area[2],x=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var f=e.height-e.area[2]+i.xAxisHeight,g=s-l,u=h*(n.length-1),y=0;e._scrollDistance_&&(y=-e._scrollDistance_*g/u),a.beginPath(),a.setLineCap("round"),a.setLineWidth(6*e.pixelRatio),a.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),a.moveTo(l,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(l+y,f),a.lineTo(l+y+g*g/u,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),n.forEach((function(t,i){0<i&&(a.beginPath(),a.moveTo(t-h/2,d),a.lineTo(t-h/2,d+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,n.forEach((function(t,i){0==i%e.xAxis.gridEval&&(a.beginPath(),a.moveTo(t,d),a.lineTo(t,x),a.stroke())})),a.setLineDash([])),!0!==e.xAxis.disabled){var m=t.length;e.xAxis.labelCount&&(m=e.xAxis.itemCount?o(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,m-=1);for(var A=o(t.length/m),b=[],w=t.length,S=0;S<w;S++)0==S%A?b.push(t[S]):b.push("");b[w-1]=t[w-1];var T=e.xAxis.fontSize||i.fontSize;0===i._xAxisTextAngle_?b.forEach((function(t,o){var r=-v(t,T)/2;"center"==c&&(r+=h/2);var l=0;e.xAxis.scrollShow&&(l=6*e.pixelRatio),a.beginPath(),a.setFontSize(T),a.setFillStyle(e.xAxis.fontColor||"#666666"),a.fillText(t,n[o]+r,d+T+(i.xAxisHeight-l-T)/2),a.closePath(),a.stroke()})):b.forEach((function(t,o){a.save(),a.beginPath(),a.setFontSize(T),a.setFillStyle(e.xAxis.fontColor||"#666666");var r=v(t),l=-r;"center"==c&&(l+=h/2);var s=p(n[o]+h/2,d+T/2+5,e.height),x=s.transX+15,f=s.transY;a.rotate(-1*i._xAxisTextAngle_),a.translate(x,f),a.fillText(t,n[o]+l,d+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(l,e.height-e.area[2]),a.lineTo(s,e.height-e.area[2]),a.stroke())}function Ft(t,e,i,a){if(!0!==e.yAxis.disableGrid){for(var o=e.height-e.area[0]-e.area[2],r=o/i.yAxisSplit,n=e.area[3],l=e.chartData.xAxisData.xAxisPoints,s=e.chartData.xAxisData.eachSpacing,h=s*(l.length-1),c=[],d=0;d<i.yAxisSplit+1;d++)c.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),c.forEach((function(t){a.beginPath(),a.moveTo(n,t),a.lineTo(n+h,t),a.stroke()})),a.setLineDash([]),a.restore()}}function Lt(t,e,i,a){if(!0!==e.yAxis.disabled){var o=e.height-e.area[0]-e.area[2],r=o/i.yAxisSplit,n=e.area[3],l=e.width-e.area[1],s=e.height-e.area[2],h=s+i.xAxisHeight;e.xAxis.scrollShow&&(h-=3*e.pixelRatio),e.xAxis.rotateLabel&&(h=e.height-e.area[2]+3),a.beginPath(),a.setFillStyle(e.background||"#ffffff"),0>e._scrollDistance_&&a.fillRect(0,0,n,h),1==e.enableScroll&&a.fillRect(l,0,e.width,h),a.closePath(),a.stroke();for(var c=[],d=0;d<=i.yAxisSplit;d++)c.push(e.area[0]+r*d);for(var p,x=e.area[3],f=e.width-e.area[1],g=function(t,o){if(t=e.yAxis.data[o],!0!==t.disabled){var r=e.chartData.yAxisData.rangesFormat[o],n=t.fontSize||i.fontSize,l=e.chartData.yAxisData.yAxisWidth[o];if(r.forEach((function(i,o){var r=c[o]?c[o]:s;a.beginPath(),a.setFontSize(n),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(t.axisLineColor||"#cccccc"),a.setFillStyle(t.fontColor||"#666666"),"left"==l.position?(a.fillText(i+"",x-l.width,r+n/2),1==t.calibration&&(a.moveTo(x,r),a.lineTo(x-3*e.pixelRatio,r))):(a.fillText(i+"",f+4*e.pixelRatio,r+n/2),1==t.calibration&&(a.moveTo(f,r),a.lineTo(f+3*e.pixelRatio,r))),a.closePath(),a.stroke()})),!1!==t.axisLine&&(a.beginPath(),a.setStrokeStyle(t.axisLineColor||"#cccccc"),a.setLineWidth(1*e.pixelRatio),"left"==l.position?(a.moveTo(x,e.height-e.area[2]),a.lineTo(x,e.area[0])):(a.moveTo(f,e.height-e.area[2]),a.lineTo(f,e.area[0])),a.stroke()),e.yAxis.showTitle){var h=t.titleFontSize||i.fontSize,d=t.title;a.beginPath(),a.setFontSize(h),a.setFillStyle(t.titleFontColor||"#666666"),"left"==l.position?a.fillText(d,x-v(d,h)/2,e.area[0]-10*e.pixelRatio):a.fillText(d,f-v(d,h)/2,e.area[0]-10*e.pixelRatio),a.closePath(),a.stroke()}"left"==l.position?x-=l.width+e.yAxis.padding:f+=l.width+e.yAxis.padding}p=t},u=0;u<e.yAxis.data.length;u++)g(p,u)}}function Ct(t,e,i,a,o){if(!1!==e.legend.show){var r=o.legendData,n=r.points,l=r.area,s=e.legend.padding,h=e.legend.fontSize,c=15*e.pixelRatio,d=5*e.pixelRatio,p=e.legend.itemGap,x=Math.max(e.legend.lineHeight*e.pixelRatio,h);a.beginPath(),a.setLineWidth(e.legend.borderWidth),a.setStrokeStyle(e.legend.borderColor),a.setFillStyle(e.legend.backgroundColor),a.moveTo(l.start.x,l.start.y),a.rect(l.start.x,l.start.y,l.width,l.height),a.closePath(),a.fill(),a.stroke(),n.forEach((function(t,o){var n=0,f=0;n=r.widthArr[o],f=r.heightArr[o];var g=0,u=0;"top"==e.legend.position||"bottom"==e.legend.position?(g=l.start.x+(l.width-n)/2,u=l.start.y+s+o*x):(n=0==o?0:r.widthArr[o-1],g=l.start.x+s+n,u=l.start.y+s+(l.height-f)/2),a.setFontSize(i.fontSize);for(var y,m=0;m<t.length;m++){switch(y=t[m],y.area=[0,0,0,0],y.area[0]=g,y.area[1]=u,y.area[3]=u+x,a.beginPath(),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(y.show?y.color:e.legend.hiddenColor),a.setFillStyle(y.show?y.color:e.legend.hiddenColor),y.legendShape){case"line":a.moveTo(g,u+.5*x-2*e.pixelRatio),a.fillRect(g,u+.5*x-2*e.pixelRatio,15*e.pixelRatio,4*e.pixelRatio);break;case"triangle":a.moveTo(g+7.5*e.pixelRatio,u+.5*x-5*e.pixelRatio),a.lineTo(g+2.5*e.pixelRatio,u+.5*x+5*e.pixelRatio),a.lineTo(g+12.5*e.pixelRatio,u+.5*x+5*e.pixelRatio),a.lineTo(g+7.5*e.pixelRatio,u+.5*x-5*e.pixelRatio);break;case"diamond":a.moveTo(g+7.5*e.pixelRatio,u+.5*x-5*e.pixelRatio),a.lineTo(g+2.5*e.pixelRatio,u+.5*x),a.lineTo(g+7.5*e.pixelRatio,u+.5*x+5*e.pixelRatio),a.lineTo(g+12.5*e.pixelRatio,u+.5*x),a.lineTo(g+7.5*e.pixelRatio,u+.5*x-5*e.pixelRatio);break;case"circle":a.moveTo(g+7.5*e.pixelRatio,u+.5*x),a.arc(g+7.5*e.pixelRatio,u+.5*x,5*e.pixelRatio,0,2*Math.PI);break;case"rect":a.moveTo(g,u+.5*x-5*e.pixelRatio),a.fillRect(g,u+.5*x-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio);break;default:a.moveTo(g,u+.5*x-5*e.pixelRatio),a.fillRect(g,u+.5*x-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio)}a.closePath(),a.fill(),a.stroke(),g+=c+d,a.beginPath(),a.setFontSize(h),a.setFillStyle(y.show?e.legend.fontColor:e.legend.hiddenColor),a.fillText(y.name,g,u+(.5*x+.5*h-2)),a.closePath(),a.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(g+=v(y.name,h)+p,y.area[2]=g):(y.area[2]=g+v(y.name,h)+p,g-=c+d,u+=x)}}))}}function kt(t,e,i,a){var o=Math.PI,n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,s=r({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),h={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=X(t,c,n);var d=s.activeRadius;if(t=t.map((function(t){return t._start_+=s.offsetAngle*o/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(a.beginPath(),a.setFillStyle(l(t.color,e.extra.pie.activeOpacity||.5)),a.moveTo(h.x,h.y),a.arc(h.x,h.y,t._radius_+d,t._start_,t._start_+2*t._proportion_*o),a.closePath(),a.fill()),a.beginPath(),a.setLineWidth(s.borderWidth*e.pixelRatio),a.lineJoin="round",a.setStrokeStyle(s.borderColor),a.setFillStyle(t.color),a.moveTo(h.x,h.y),a.arc(h.x,h.y,t._radius_,t._start_,t._start_+2*t._proportion_*o),a.closePath(),a.fill(),1==s.border&&a.stroke()})),"ring"===e.type){var p=.6*c;"number"==typeof e.extra.pie.ringWidth&&0<e.extra.pie.ringWidth&&(p=Math.max(0,c-e.extra.pie.ringWidth)),a.beginPath(),a.setFillStyle(e.background||"#ffffff"),a.moveTo(h.x,h.y),a.arc(h.x,h.y,p,0,2*o),a.closePath(),a.fill()}if(!1!==e.dataLabel&&1===n){for(var x=!1,f=0,g=t.length;f<g;f++)if(0<t[f].data){x=!0;break}x&&xt(t,e,i,a,c,h)}return 1===n&&"ring"===e.type&&ht(e,i,a,h),{center:h,radius:c,series:t}}function Dt(t,e,i,a){var o=Math.PI,n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,s=r({},{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 h={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),d=s.minRadius||.5*c;t=J(t,s.type,d,c,n);var p=s.activeRadius;if(t=t.map((function(t){return t._start_+=(s.offsetAngle||0)*o/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(a.beginPath(),a.setFillStyle(l(t.color,s.activeOpacity||.5)),a.moveTo(h.x,h.y),a.arc(h.x,h.y,p+t._radius_,t._start_,t._start_+2*t._rose_proportion_*o),a.closePath(),a.fill()),a.beginPath(),a.setLineWidth(s.borderWidth*e.pixelRatio),a.lineJoin="round",a.setStrokeStyle(s.borderColor),a.setFillStyle(t.color),a.moveTo(h.x,h.y),a.arc(h.x,h.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*o),a.closePath(),a.fill(),1==s.border&&a.stroke()})),!1!==e.dataLabel&&1===n){for(var x=!1,f=0,g=t.length;f<g;f++)if(0<t[f].data){x=!0;break}x&&xt(t,e,i,a,c,h)}return{center:h,radius:c,series:t}}function Rt(t,e,i,a){var o=Math.PI,n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,l=r({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=K(t,l,n);var s,h=l.center?l.center:{x:e.width/2,y:e.height/2};l.radius?s=l.radius:(s=Math.min(h.x,h.y),s-=5*e.pixelRatio,s-=l.width/2);for(var c,d=0;d<t.length;d++)c=t[d],a.setLineWidth(l.width),a.setStrokeStyle(l.backgroundColor||"#E9E9E9"),a.setLineCap("round"),a.beginPath(),"default"==l.type?a.arc(h.x,h.y,s-(l.width+l.gap)*d,l.startAngle*o,l.endAngle*o,!1):a.arc(h.x,h.y,s-(l.width+l.gap)*d,0,2*o,!1),a.stroke(),a.setLineWidth(l.width),a.setStrokeStyle(c.color),a.setLineCap("round"),a.beginPath(),a.arc(h.x,h.y,s-(l.width+l.gap)*d,l.startAngle*o,c._proportion_*o,!1),a.stroke();return ht(e,i,a,h),{center:h,radius:s,series:t}}function Mt(t,e,i,a,o){var n=Math.PI,s=5<arguments.length&&void 0!==arguments[5]?arguments[5]:1,h=r({},{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);null==h.oldAngle&&(h.oldAngle=h.startAngle),null==h.oldData&&(h.oldData=0),t=Y(t,h.startAngle,h.endAngle);var c={x:i.width/2,y:i.height/2},d=Math.min(c.x,c.y);d-=5*i.pixelRatio,d-=h.width/2;var p=d-h.width,x=0;if("progress"==h.type){var f=d-3*h.width;o.beginPath();var g=o.createLinearGradient(c.x,c.y-f,c.x,c.y+f);g.addColorStop("0",l(e[0].color,.3)),g.addColorStop("1.0",l("#FFFFFF",.1)),o.setFillStyle(g),o.arc(c.x,c.y,f,0,2*n,!1),o.fill(),o.setLineWidth(h.width),o.setStrokeStyle(l(e[0].color,.3)),o.setLineCap("round"),o.beginPath(),o.arc(c.x,c.y,p,h.startAngle*n,h.endAngle*n,!1),o.stroke(),x=h.startAngle-h.endAngle+1;h.splitLine.splitNumber;var u=x/h.splitLine.splitNumber/h.splitLine.childNumber,y=-d-.5*h.width-h.splitLine.fixRadius,v=-d-h.width-h.splitLine.fixRadius+h.splitLine.width;o.save(),o.translate(c.x,c.y),o.rotate((h.startAngle-1)*n);for(var m=h.splitLine.splitNumber*h.splitLine.childNumber+1,A=e[0].data*s,b=0;b<m;b++)o.beginPath(),A>b/m?o.setStrokeStyle(l(e[0].color,1)):o.setStrokeStyle(l(e[0].color,.3)),o.setLineWidth(3*i.pixelRatio),o.moveTo(y,0),o.lineTo(v,0),o.stroke(),o.rotate(u*n);o.restore(),e=K(e,h,s),o.setLineWidth(h.width),o.setStrokeStyle(e[0].color),o.setLineCap("round"),o.beginPath(),o.arc(c.x,c.y,p,h.startAngle*n,e[0]._proportion_*n,!1),o.stroke();var w=d-2.5*h.width;o.save(),o.translate(c.x,c.y),o.rotate((e[0]._proportion_-1)*n),o.beginPath(),o.setLineWidth(h.width/3);var S=o.createLinearGradient(0,.6*-w,0,.6*w);S.addColorStop("0",l("#FFFFFF",0)),S.addColorStop("0.5",l(e[0].color,1)),S.addColorStop("1.0",l("#FFFFFF",0)),o.setStrokeStyle(S),o.arc(0,0,w,.85*n,1.15*n,!1),o.stroke(),o.beginPath(),o.setLineWidth(1),o.setStrokeStyle(e[0].color),o.setFillStyle(e[0].color),o.moveTo(-w-h.width/3/2,-4),o.lineTo(-w-h.width/3/2-4,0),o.lineTo(-w-h.width/3/2,4),o.lineTo(-w-h.width/3/2,-4),o.stroke(),o.fill(),o.restore()}else{o.setLineWidth(h.width),o.setLineCap("butt");for(var T,P=0;P<t.length;P++)T=t[P],o.beginPath(),o.setStrokeStyle(T.color),o.arc(c.x,c.y,d,T._startAngle_*n,T._endAngle_*n,!1),o.stroke();o.save(),x=h.startAngle-h.endAngle+1;var F=x/h.splitLine.splitNumber,L=x/h.splitLine.splitNumber/h.splitLine.childNumber,C=-d-.5*h.width-h.splitLine.fixRadius,k=-d-.5*h.width-h.splitLine.fixRadius+h.splitLine.width,D=-d-.5*h.width-h.splitLine.fixRadius+h.splitLine.childWidth;o.translate(c.x,c.y),o.rotate((h.startAngle-1)*n);for(var R=0;R<h.splitLine.splitNumber+1;R++)o.beginPath(),o.setStrokeStyle(h.splitLine.color),o.setLineWidth(2*i.pixelRatio),o.moveTo(C,0),o.lineTo(k,0),o.stroke(),o.rotate(F*n);o.restore(),o.save(),o.translate(c.x,c.y),o.rotate((h.startAngle-1)*n);for(var M=0;M<h.splitLine.splitNumber*h.splitLine.childNumber+1;M++)o.beginPath(),o.setStrokeStyle(h.splitLine.color),o.setLineWidth(1*i.pixelRatio),o.moveTo(C,0),o.lineTo(D,0),o.stroke(),o.rotate(L*n);o.restore(),e=j(e,t,h,s);for(var W,z=0;z<e.length;z++)W=e[z],o.save(),o.translate(c.x,c.y),o.rotate((W._proportion_-1)*n),o.beginPath(),o.setFillStyle(W.color),o.moveTo(h.pointer.width,0),o.lineTo(0,-h.pointer.width/2),o.lineTo(-p,0),o.lineTo(0,h.pointer.width/2),o.lineTo(h.pointer.width,0),o.closePath(),o.fill(),o.beginPath(),o.setFillStyle("#FFFFFF"),o.arc(0,0,h.pointer.width/6,0,2*n,!1),o.fill(),o.restore();!1!==i.dataLabel&&dt(h,d,c,i,a,o)}return ht(i,a,o,c),1===s&&"gauge"===i.type&&(i.extra.gauge.oldAngle=e[0]._proportion_,i.extra.gauge.oldData=e[0].data),{center:c,radius:d,innerRadius:p,categories:t,totalAngle:x}}function Wt(t,e,i,a){var o=Math.cos,n=Math.sin,s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,h=r({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),c=T(e.categories.length),d={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},p=Math.min(d.x-(S(e.categories)+i.radarLabelTextMargin),d.y-i.radarLabelTextMargin);p-=e.padding[1],a.beginPath(),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(h.gridColor),c.forEach((function(t){var e=f(p*o(t),p*n(t),d);a.moveTo(d.x,d.y),a.lineTo(e.x,e.y)})),a.stroke(),a.closePath();for(var x=function(t){var i={};a.beginPath(),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(h.gridColor),c.forEach((function(e,r){var l=f(p/h.gridCount*t*o(e),p/h.gridCount*t*n(e),d);0===r?(i=l,a.moveTo(l.x,l.y)):a.lineTo(l.x,l.y)})),a.lineTo(i.x,i.y),a.stroke(),a.closePath()},g=1;g<=h.gridCount;g++)x(g);var u=H(c,d,p,t,e,s);return u.forEach((function(t){if(a.beginPath(),a.setFillStyle(l(t.color,h.opacity)),t.data.forEach((function(t,e){0===e?a.moveTo(t.position.x,t.position.y):a.lineTo(t.position.x,t.position.y)})),a.closePath(),a.fill(),!1!==e.dataPointShape){var i=t.data.map((function(t){return t.position}));st(i,t.color,t.pointShape,a,e)}})),pt(c,p,d,e,i,a),{center:d,radius:p,angleList:c}}function zt(t,e,i){i=0==i?1:i;for(var a=[],o=0;o<i;o++)a[o]=Math.random();return Math.floor(a.reduce((function(t,e){return t+e}))/i*(e-t))+t}function _t(t,e,i,a){for(var o=!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])){o=!0;break}if(0>t[0]||0>t[1]||t[2]>i||t[3]>a){o=!0;break}o=!1}return o}function Et(t){for(var e,i,a={xMin:180,xMax:0,yMin:90,yMax:0},o=0;o<t.length;o++){i=t[o].geometry.coordinates;for(var r=0;r<i.length;r++){e=i[r],1==e.length&&(e=e[0]);for(var n=0;n<e.length;n++){var l=e[n][0],s=e[n][1],h={x:l,y:s};a.xMin=a.xMin<h.x?a.xMin:h.x,a.xMax=a.xMax>h.x?a.xMax:h.x,a.yMin=a.yMin<h.y?a.yMin:h.y,a.yMax=a.yMax>h.y?a.yMax:h.y}}}return a}function It(t,e,i,a,o,r){return{x:(e-i.xMin)*a+o,y:(i.yMax-t)*a+r}}function Ot(t,e,i,a,o,r){return{x:(e-o)/a+i.xMin,y:i.yMax-(t-r)/a}}function Bt(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 Nt(t,e){for(var i,a=0,o=0;o<e.length;o++){i=e[o][0],1==e.length&&(i=e[o][0]);for(var r=0;r<i.length-1;r++){var n=i[r],l=i[r+1];Bt(t,n,l)&&(a+=1)}}return!(1!=a%2)}function Ut(t,e,i,a){var o,n,s=Math.abs,h=r({},{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),c=t,d=Et(c),p=e.width/s(d.xMax-d.xMin),x=e.height/s(d.yMax-d.yMin),f=p<x?p:x,g=e.width/2-s(d.xMax-d.xMin)/2*f,u=e.height/2-s(d.yMax-d.yMin)/2*f;a.beginPath(),a.clearRect(0,0,e.width,e.height),a.setFillStyle(e.background||"#FFFFFF"),a.rect(0,0,e.width,e.height),a.fill();for(var y=0;y<c.length;y++){a.beginPath(),a.setLineWidth(h.borderWidth*e.pixelRatio),a.setStrokeStyle(h.borderColor),a.setFillStyle(l(t[y].color,h.fillOpacity)),e.tooltip&&e.tooltip.index==y&&(a.setStrokeStyle(h.activeBorderColor),a.setFillStyle(l(h.activeFillColor,h.activeFillOpacity)));for(var m=c[y].geometry.coordinates,A=0;A<m.length;A++){o=m[A],1==o.length&&(o=o[0]);for(var b=0;b<o.length;b++)n=It(o[b][1],o[b][0],d,f,g,u),0==b?(a.beginPath(),a.moveTo(n.x,n.y)):a.lineTo(n.x,n.y);a.fill(),1==h.border&&a.stroke()}if(1==e.dataLabel){var w=c[y].properties.centroid;if(w){n=It(w[1],w[0],d,f,g,u);var S=c[y].textSize||i.fontSize,T=c[y].properties.name;a.beginPath(),a.setFontSize(S),a.setFillStyle(c[y].textColor||"#666666"),a.fillText(T,n.x-v(T,S)/2,n.y+S/2),a.closePath(),a.stroke()}}}e.chartData.mapData={bounds:d,scale:f,xoffset:g,yoffset:u},Tt(e,i,a,1),a.draw()}function Ht(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++){for(var o=void 0,r=void 0,n=void 0,l=i[a].name,s=i[a].textSize,h=v(l,s),c=0;;){c++,o=zt(-t.width/2,t.width/2,5)-h/2,r=zt(-t.height/2,t.height/2,5)+s/2,n=[o-5+t.width/2,r-5-s+t.height/2,o+h+5+t.width/2,r+5+t.height/2];var d=_t(n,i,t.width,t.height);if(!d)break;if(1e3==c){n=[-100,-100,-100,-100];break}}i[a].area=n}break;case"vertical":for(var p=function(){return!!(.7<Math.random())},x=0;x<i.length;x++){for(var f=void 0,g=void 0,u=void 0,y=void 0,m=i[x].name,A=i[x].textSize,b=v(m,A),w=p(),S=0;;){S++;var T=void 0;if(w?(f=zt(-t.width/2,t.width/2,5)-b/2,g=zt(-t.height/2,t.height/2,5)+A/2,u=[g-5-b+t.width/2,-f-5+t.height/2,g+5+t.width/2,-f+A+5+t.height/2],y=[t.width-(t.width/2-t.height/2)-(-f+A+5+t.height/2)-5,t.height/2-t.width/2+(g-5-b+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-f+A+5+t.height/2)+A,t.height/2-t.width/2+(g-5-b+t.width/2)+b+5],T=_t(y,i,t.height,t.width)):(f=zt(-t.width/2,t.width/2,5)-b/2,g=zt(-t.height/2,t.height/2,5)+A/2,u=[f-5+t.width/2,g-5-A+t.height/2,f+b+5+t.width/2,g+5+t.height/2],T=_t(u,i,t.width,t.height)),!T)break;if(1e3==S){u=[-1e3,-1e3,-1e3,-1e3];break}}w?(i[x].area=y,i[x].areav=u):i[x].area=u,i[x].rotate=w}}return i}function Xt(t,e,i,a){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1;r({},{type:"normal",autoColors:!0},e.extra.word);a.beginPath(),a.setFillStyle(e.background||"#FFFFFF"),a.rect(0,0,e.width,e.height),a.fill(),a.save();var n=e.chartData.wordCloudData;a.translate(e.width/2,e.height/2);for(var l=0;l<n.length;l++){a.save(),n[l].rotate&&a.rotate(90*Math.PI/180);var s=n[l].name,h=n[l].textSize,c=v(s,h);a.beginPath(),a.setStrokeStyle(n[l].color),a.setFillStyle(n[l].color),a.setFontSize(h),n[l].rotate?0<n[l].areav[0]&&(e.tooltip&&e.tooltip.index==l?a.strokeText(s,(n[l].areav[0]+5-e.width/2)*o-c*(1-o)/2,(n[l].areav[1]+5+h-e.height/2)*o):a.fillText(s,(n[l].areav[0]+5-e.width/2)*o-c*(1-o)/2,(n[l].areav[1]+5+h-e.height/2)*o)):0<n[l].area[0]&&(e.tooltip&&e.tooltip.index==l?a.strokeText(s,(n[l].area[0]+5-e.width/2)*o-c*(1-o)/2,(n[l].area[1]+5+h-e.height/2)*o):a.fillText(s,(n[l].area[0]+5-e.width/2)*o-c*(1-o)/2,(n[l].area[1]+5+h-e.height/2)*o)),a.stroke(),a.restore()}a.restore()}function Qt(t,e,i,a){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,n=r({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),s=(e.height-e.area[0]-e.area[2])/t.length,h={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},c=n.activeWidth,d=Math.min((e.width-e.area[1]-e.area[3])/2-c,(e.height-e.area[0]-e.area[2])/2-c);t=Q(t,d,o),a.save(),a.translate(h.x,h.y);for(var p=0;p<t.length;p++)0==p?(e.tooltip&&e.tooltip.index==p&&(a.beginPath(),a.setFillStyle(l(t[p].color,n.activeOpacity)),a.moveTo(-c,0),a.lineTo(-t[p].radius-c,-s),a.lineTo(t[p].radius+c,-s),a.lineTo(c,0),a.lineTo(-c,0),a.closePath(),a.fill()),t[p].funnelArea=[h.x-t[p].radius,h.y-s,h.x+t[p].radius,h.y],a.beginPath(),a.setLineWidth(n.borderWidth*e.pixelRatio),a.setStrokeStyle(n.borderColor),a.setFillStyle(l(t[p].color,n.fillOpacity)),a.moveTo(0,0),a.lineTo(-t[p].radius,-s),a.lineTo(t[p].radius,-s),a.lineTo(0,0),a.closePath(),a.fill(),1==n.border&&a.stroke()):(e.tooltip&&e.tooltip.index==p&&(a.beginPath(),a.setFillStyle(l(t[p].color,n.activeOpacity)),a.moveTo(0,0),a.lineTo(-t[p-1].radius-c,0),a.lineTo(-t[p].radius-c,-s),a.lineTo(t[p].radius+c,-s),a.lineTo(t[p-1].radius+c,0),a.lineTo(0,0),a.closePath(),a.fill()),t[p].funnelArea=[h.x-t[p].radius,h.y-s*(p+1),h.x+t[p].radius,h.y-s*p],a.beginPath(),a.setLineWidth(n.borderWidth*e.pixelRatio),a.setStrokeStyle(n.borderColor),a.setFillStyle(l(t[p].color,n.fillOpacity)),a.moveTo(0,0),a.lineTo(-t[p-1].radius,0),a.lineTo(-t[p].radius,-s),a.lineTo(t[p].radius,-s),a.lineTo(t[p-1].radius,0),a.lineTo(0,0),a.closePath(),a.fill(),1==n.border&&a.stroke()),a.translate(0,-s);return a.restore(),!1!==e.dataLabel&&1===o&&Jt(t,e,a,s,n.labelAlign,c,h),{center:h,radius:d,series:t}}function Jt(t,e,i,a,o,r,l){for(var s=Math.PI,h=0;h<t.length;h++){var c=void 0,d=void 0,p=void 0,x=void 0,f=t[h],g=f.format?f.format(+f._proportion_.toFixed(2)):n.toFixed(100*f._proportion_)+"%";"right"==o?(c=0==h?(f.funnelArea[2]+l.x)/2:(f.funnelArea[2]+t[h-1].funnelArea[2])/2,d=c+2*r,p=f.funnelArea[1]+a/2,x=f.textSize||e.fontSize,i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(f.color),i.setFillStyle(f.color),i.beginPath(),i.moveTo(c,p),i.lineTo(d,p),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(d,p),i.arc(d,p,2,0,2*s),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(x),i.setFillStyle(f.textColor||"#666666"),i.fillText(g,d+5,p+x/2-2),i.closePath(),i.stroke(),i.closePath()):(c=0==h?(f.funnelArea[0]+l.x)/2:(f.funnelArea[0]+t[h-1].funnelArea[0])/2,d=c-2*r,p=f.funnelArea[1]+a/2,x=f.textSize||e.fontSize,i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(f.color),i.setFillStyle(f.color),i.beginPath(),i.moveTo(c,p),i.lineTo(d,p),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(d,p),i.arc(d,p,2,0,2*s),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(x),i.setFillStyle(f.textColor||"#666666"),i.fillText(g,d-5-v(g),p+x/2-2),i.closePath(),i.stroke(),i.closePath())}}function Kt(t,e){e.draw()}var Yt={easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){var e=Math.pow;return 1>(t/=.5)?.5*e(t,3):.5*(e(t-2,3)+2)},linear:function(t){return t}};function jt(t){this.isStop=!1,t.duration="undefined"==typeof t.duration?1e3:t.duration,t.timing=t.timing||"linear";var e=function(){return"undefined"==typeof setTimeout?"undefined"==typeof requestAnimationFrame?function(t){t(null)}:requestAnimationFrame:function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}}(),i=null,a=function(o){if(null===o||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===i&&(i=o),o-i<t.duration){var r=(o-i)/t.duration,n=Yt[t.timing];r=n(r),t.onProcess&&t.onProcess(r),e(a,17)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};a=a.bind(this),e(a,17)}function Vt(t,e,i,a){var o=this,n=e.series,l=e.categories;n=u(n,e,i);var s=e.animation?e.duration:0;this.animationInstance&&this.animationInstance.stop();var c=null;if("candle"==t){var d=r({},e.extra.candle.average);d.show?(c=h(d.day,d.name,d.color,n[0].data),c=u(c,e,i),e.seriesMA=c):c=e.seriesMA?e.seriesMA=u(e.seriesMA,e,i):n}else c=n;e._series_=n=C(n),e.area=[,,,,];for(var p=0;4>p;p++)e.area[p]=e.padding[p];var x=N(c,e,i,e.chartData),f=x.area.wholeHeight,g=x.area.wholeWidth;switch(e.legend.position){case"top":e.area[0]+=f;break;case"bottom":e.area[2]+=f;break;case"left":e.area[3]+=g;break;case"right":e.area[1]+=g}var y={},v=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type){if(y=ot(n,e,i),v=y.yAxisWidth,e.yAxis.showTitle){for(var m=0,A=0;A<e.yAxis.data.length;A++)m=Math.max(m,e.yAxis.data[A].titleFontSize?e.yAxis.data[A].titleFontSize:i.fontSize);e.area[0]+=(m+6)*e.pixelRatio}for(var b=0,w=0,S=0;S<v.length;S++)"left"==v[S].position?(e.area[3]+=0<w?v[S].width+e.yAxis.padding:v[S].width,w+=1):(e.area[1]+=0<b?v[S].width+e.yAxis.padding:v[S].width,b+=1)}else i.yAxisWidth=v;if(e.chartData.yAxisData=y,e.categories&&e.categories.length){e.chartData.xAxisData=$(e.categories,e,i);var T=U(e.categories,e,i,e.chartData.xAxisData.eachSpacing),P=T.xAxisHeight,F=T.angle;i.xAxisHeight=P,i._xAxisTextAngle_=F,e.area[2]+=P,e.chartData.categoriesData=T}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var L=0,k=e.chartData.xAxisData.xAxisPoints,D=e.chartData.xAxisData.startX,R=e.chartData.xAxisData.endX,M=e.chartData.xAxisData.eachSpacing,W=M*(k.length-1);L=R-D-W,o.scrollOption={currentOffset:L,startTouchX:L,distance:0,lastMoveTime:0},e._scrollDistance_=L}switch(("pie"===t||"ring"===t||"rose"===t)&&(i._pieTextMaxLength_=!1===e.dataLabel?0:V(c)),t){case"word":var z=r({},{type:"normal",autoColors:!0},e.extra.word);(1==e.updateData||null==e.updateData)&&(e.chartData.wordCloudData=Ht(e,z.type)),this.animationInstance=new jt({timing:"easeInOut",duration:s,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),Xt(n,e,i,a,t),Kt(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"map":a.clearRect(0,0,e.width,e.height),Ut(n,e,i,a);break;case"funnel":this.animationInstance=new jt({timing:"easeInOut",duration:s,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),e.chartData.funnelData=Qt(n,e,i,a,t),Ct(e.series,e,i,a,e.chartData),Tt(e,i,a,t),Kt(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"line":this.animationInstance=new jt({timing:"easeIn",duration:s,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),Ft(l,e,i,a),Pt(l,e,i,a);var o=wt(n,e,i,a,t),r=o.xAxisPoints,s=o.calPoints,h=o.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=s,e.chartData.eachSpacing=h,Lt(n,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Ct(e.series,e,i,a,e.chartData),Tt(e,i,a,t,h,r),Kt(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"mix":this.animationInstance=new jt({timing:"easeIn",duration:s,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),Ft(l,e,i,a),Pt(l,e,i,a);var o=St(n,e,i,a,t),r=o.xAxisPoints,s=o.calPoints,h=o.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=s,e.chartData.eachSpacing=h,Lt(n,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Ct(e.series,e,i,a,e.chartData),Tt(e,i,a,t,h,r),Kt(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"column":this.animationInstance=new jt({timing:"easeIn",duration:s,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),Ft(l,e,i,a),Pt(l,e,i,a);var o=mt(n,e,i,a,t),r=o.xAxisPoints,s=o.calPoints,h=o.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=s,e.chartData.eachSpacing=h,Lt(n,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Ct(e.series,e,i,a,e.chartData),Tt(e,i,a,t,h,r),Kt(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"area":this.animationInstance=new jt({timing:"easeIn",duration:s,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),Ft(l,e,i,a),Pt(l,e,i,a);var o=bt(n,e,i,a,t),r=o.xAxisPoints,s=o.calPoints,h=o.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=s,e.chartData.eachSpacing=h,Lt(n,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Ct(e.series,e,i,a,e.chartData),Tt(e,i,a,t,h,r),Kt(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new jt({timing:"easeInOut",duration:s,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),e.chartData.pieData=kt(n,e,i,a,t),Ct(e.series,e,i,a,e.chartData),Tt(e,i,a,t),Kt(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new jt({timing:"easeInOut",duration:s,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),e.chartData.pieData=Dt(n,e,i,a,t),Ct(e.series,e,i,a,e.chartData),Tt(e,i,a,t),Kt(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new jt({timing:"easeInOut",duration:s,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),e.chartData.radarData=Wt(n,e,i,a,t),Ct(e.series,e,i,a,e.chartData),Tt(e,i,a,t),Kt(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new jt({timing:"easeInOut",duration:s,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),e.chartData.arcbarData=Rt(n,e,i,a,t),Kt(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new jt({timing:"easeInOut",duration:s,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),e.chartData.gaugeData=Mt(l,n,e,i,a,t),Kt(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"candle":this.animationInstance=new jt({timing:"easeIn",duration:s,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),Ft(l,e,i,a),Pt(l,e,i,a);var o=At(n,c,e,i,a,t),r=o.xAxisPoints,s=o.calPoints,h=o.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=s,e.chartData.eachSpacing=h,Lt(n,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Ct(c||e.series,e,i,a,e.chartData),Tt(e,i,a,t,h,r),Kt(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}})}}function Gt(){this.events={}}jt.prototype.stop=function(){this.isStop=!0},Gt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},Gt.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var a=e[0],o=e.slice(1);!this.events[a]||this.events[a].forEach((function(t){try{t.apply(null,o)}catch(e){console.error(e)}}))};var Zt=function(t){t.pixelRatio=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize*t.pixelRatio:13*t.pixelRatio,t.title=r({},t.title),t.subtitle=r({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=r({},{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=r({},{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=r({},{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.pixelRatio,t.legend.itemGap*=t.pixelRatio,t.legend.padding*=t.pixelRatio,t.legend.margin*=t.pixelRatio,t.extra=r({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate;var e=JSON.parse(JSON.stringify(o));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:o.yAxisSplit,e.rotate=t.rotate,t.rotate){var i=t.width,a=t.height;t.width=a,t.height=i}t.padding=t.padding?t.padding:e.padding;for(var n=0;4>n;n++)t.padding[n]*=t.pixelRatio;e.yAxisWidth=o.yAxisWidth*t.pixelRatio,e.xAxisHeight=o.xAxisHeight*t.pixelRatio,t.enableScroll&&t.xAxis.scrollShow&&(e.xAxisHeight+=6*t.pixelRatio),e.xAxisLineHeight=o.xAxisLineHeight*t.pixelRatio,e.fontSize=t.fontSize,e.titleFontSize=o.titleFontSize*t.pixelRatio,e.subtitleFontSize=o.subtitleFontSize*t.pixelRatio,e.toolTipPadding=o.toolTipPadding*t.pixelRatio,e.toolTipLineHeight=o.toolTipLineHeight*t.pixelRatio,e.columePadding=o.columePadding*t.pixelRatio,t.$this=t.$this?t.$this:this,this.context=uni.createCanvasContext(t.canvasId,t.$this),t.chartData={},this.event=new Gt,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,Vt.call(this,t.type,t,e,this.context)};Zt.prototype.updateData=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.opts=r({},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=ot(this.opts.series,this.opts,this.config),a=i.yAxisWidth;this.config.yAxisWidth=a;var o=0,n=$(this.opts.categories,this.opts,this.config),l=n.xAxisPoints,s=n.startX,h=n.endX,c=n.eachSpacing,d=c*(l.length-1);o=h-s-d,this.scrollOption={currentOffset:o,startTouchX:o,distance:0,lastMoveTime:0},this.opts._scrollDistance_=o}Vt.call(this,this.opts.type,this.opts,this.config,this.context)},Zt.prototype.zoom=function(){var t=Math.round,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var i=t(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+t(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var a=ot(this.opts.series,this.opts,this.config),o=a.yAxisWidth;this.config.yAxisWidth=o;var r=0,n=$(this.opts.categories,this.opts,this.config),l=n.xAxisPoints,s=n.startX,h=n.endX,c=n.eachSpacing,d=h-s,p=d-c*(l.length-1);r=d/2-c*i,0<r&&(r=0),r<p&&(r=p),this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r,Vt.call(this,this.opts.type,this.opts,this.config,this.context)}else console.log("请启用滚动条后使用!")},Zt.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},Zt.prototype.addEventListener=function(t,e){this.event.addEventListener(t,e)},Zt.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=b(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type?I({x:i.x,y:i.y},this.opts.chartData.pieData):"radar"===this.opts.type?W({x:i.x,y:i.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?z({x:i.x,y:i.y},this.opts.chartData.funnelData):"map"===this.opts.type?E({x:i.x,y:i.y},this.opts):"word"===this.opts.type?_({x:i.x,y:i.y},this.opts.chartData.wordCloudData):k({x:i.x,y:i.y},this.opts.chartData.xAxisPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},Zt.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=b(e,this.opts,t);return D({x:i.x,y:i.y},this.opts.chartData.legendData)}return-1},Zt.prototype.touchLegend=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],i){b(i,this.opts,t);var a=this.getLegendDataIndex(t);0<=a&&(this.opts.series[a].show=!this.opts.series[a].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,Vt.call(this,this.opts.type,this.opts,this.config,this.context))}},Zt.prototype.showToolTip=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],i||console.log("touchError");var a=b(i,this.opts,t),o=this.scrollOption.currentOffset,n=r({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var l=this.getCurrentDataIndex(t);if(-1<l){var s=w(this.opts.series,l);if(0!==s.length){var h=P(s,this.opts.chartData.calPoints,l,this.opts.categories,e),c=h.textList,d=h.offset;d.y=a.y,n.tooltip={textList:c,offset:d,option:e,index:l}}}Vt.call(this,n.type,n,this.config,this.context)}if("mix"===this.opts.type){l=this.getCurrentDataIndex(t);if(-1<l){o=this.scrollOption.currentOffset,n=r({},this.opts,{_scrollDistance_:o,animation:!1}),s=w(this.opts.series,l);if(0!==s.length){var p=F(s,this.opts.chartData.calPoints,l,this.opts.categories,e);c=p.textList,d=p.offset;d.y=a.y,n.tooltip={textList:c,offset:d,option:e,index:l}}}Vt.call(this,n.type,n,this.config,this.context)}if("candle"===this.opts.type){l=this.getCurrentDataIndex(t);if(-1<l){o=this.scrollOption.currentOffset,n=r({},this.opts,{_scrollDistance_:o,animation:!1}),s=w(this.opts.series,l);if(0!==s.length){h=L(this.opts.series[0].data,s,this.opts.chartData.calPoints,l,this.opts.categories,this.opts.extra.candle,e),c=h.textList,d=h.offset;d.y=a.y,n.tooltip={textList:c,offset:d,option:e,index:l}}}Vt.call(this,n.type,n,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){l=this.getCurrentDataIndex(t);if(-1<l){o=this.scrollOption.currentOffset,n=r({},this.opts,{_scrollDistance_:o,animation:!1}),s=this.opts._series_[l],c=[{text:e.format?e.format(s):s.name+": "+s.data,color:s.color}],d={x:a.x,y:a.y};n.tooltip={textList:c,offset:d,option:e,index:l}}Vt.call(this,n.type,n,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){l=this.getCurrentDataIndex(t);if(-1<l){o=this.scrollOption.currentOffset,n=r({},this.opts,{_scrollDistance_:o,animation:!1}),s=this.opts._series_[l],c=[{text:e.format?e.format(s):s.properties.name,color:s.color}],d={x:a.x,y:a.y};n.tooltip={textList:c,offset:d,option:e,index:l}}n.updateData=!1,Vt.call(this,n.type,n,this.config,this.context)}if("radar"===this.opts.type){l=this.getCurrentDataIndex(t);if(-1<l){o=this.scrollOption.currentOffset,n=r({},this.opts,{_scrollDistance_:o,animation:!1}),s=w(this.opts.series,l);if(0!==s.length){c=s.map((function(t){return{text:e.format?e.format(t):t.name+": "+t.data,color:t.color}})),d={x:a.x,y:a.y};n.tooltip={textList:c,offset:d,option:e,index:l}}}Vt.call(this,n.type,n,this.config,this.context)}},Zt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=r({},this.opts,{_scrollDistance_:t,animation:!1});Vt.call(this,this.opts.type,e,this.config,this.context)},Zt.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var i=b(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=i.x)},Zt.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.extra.touchMoveLimit||20,i=Date.now(),a=i-this.scrollOption.lastMoveTime;if(!(a<Math.floor(1e3/e))){this.scrollOption.lastMoveTime=i;var o=null;if(o=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],o&&!0===this.opts.enableScroll){var n,l=b(o,this.opts,t);n=l.x-this.scrollOption.startTouchX;var s=this.scrollOption.currentOffset,h=c(this,s+n,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=n=h-s;var d=r({},this.opts,{_scrollDistance_:s+n,animation:!1});return Vt.call(this,d.type,d,this.config,this.context),s+n}}},Zt.prototype.scrollEnd=function(){if(!0===this.opts.enableScroll){var t=this.scrollOption,e=t.currentOffset,i=t.distance;this.scrollOption.currentOffset=e+i,this.scrollOption.distance=0}},"object"==(0,a.default)(t)&&"object"==(0,a.default)(t.exports)&&(t.exports=Zt)}).call(this,i("62e4")(t))},b8b7:function(t,e,i){var a=i("db36");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("45538a37",a,!0,{sourceMap:!1,shadowMode:!1})},db36:function(t,e,i){e=t.exports=i("2350")(!1),e.push([t.i,'/*样式的width和height一定要与定义的cWidth和cHeight相对应*/.searchBox[data-v-1fa6f34e]{width:%?689?%;margin:0 auto;padding:%?20?% 0}.searchBox .form[data-v-1fa6f34e]{position:relative;line-height:%?70?%;height:%?70?%;width:%?689?%;padding:%?10?% %?30?%;box-sizing:border-box;background:hsla(0,0%,100%,.15);border-radius:%?70?%;border:1px solid hsla(0,0%,100%,.28)}.searchBox .form .input[data-v-1fa6f34e]{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);left:%?76?%;width:%?560?%;height:%?48?%;line-height:%?48?%;font-size:%?28?%;color:#fff!important;border:none;outline:none;background:transparent;box-sizing:border-box}.searchBox .form .searchIcon[data-v-1fa6f34e]{padding:%?18?% %?12?% %?18?% %?28?%;position:absolute;left:%?0?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);overflow:hidden}.searchBox .form .searchIcon .icon[data-v-1fa6f34e]{float:left;line-height:1}.qiun-charts[data-v-1fa6f34e]{width:%?730?%;height:%?400?%;position:absolute;left:0;top:%?700?%}.charts[data-v-1fa6f34e]{width:%?730?%;height:%?400?%;position:absolute;left:0;top:%?820?%}.weatherImg[data-v-1fa6f34e]{width:%?750?%;height:100%;position:absolute;left:0;top:0;z-index:-1;background:#2088db}.weather[data-v-1fa6f34e]{min-height:%?1334?%;background-size:100% auto;font-size:14px;color:#fff;width:100%;overflow:hidden}.weather .temp[data-v-1fa6f34e]{padding:%?30?%;text-align:center;overflow:hidden}.weather .temp .address[data-v-1fa6f34e]{font-size:%?46?%;margin:%?20?% 0 %?20?% 0}.weather .temp .number[data-v-1fa6f34e]{font-size:%?200?%;font-weight:100}.weather .temp .weatherPhenomenon[data-v-1fa6f34e]{font-size:%?24?%;margin:%?30?% 0 %?30?% 0}.weather .temp .summary[data-v-1fa6f34e]{margin:15px 0;display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between}.day[data-v-1fa6f34e]{overflow:hidden;display:-webkit-flex;display:flex;min-height:%?472?%;margin-top:%?48?%}.day .icon[data-v-1fa6f34e]{width:%?44?%;height:%?48?%}.day li[data-v-1fa6f34e]{border-top:1px hsla(0,0%,100%,.2) solid;border-right:1px hsla(0,0%,100%,.2) solid;-webkit-flex:1;flex:1;text-align:center;line-height:%?52?%;padding-top:%?40?%;font-size:%?26?%}.day li p[data-v-1fa6f34e]{font-size:%?26?%}.day li[data-v-1fa6f34e]:last-child{border-right:none}.day li img[data-v-1fa6f34e]{width:25px;height:18px}.rain[data-v-1fa6f34e]:before{content:"";height:%?1334?%;position:absolute;left:-50%;top:-20%;right:-50%;bottom:-50%;z-index:1;background:url(http://lishiots.oss-cn-hangzhou.aliyuncs.com/webstatic/rain.png);-webkit-animation:rainWeather-data-v-1fa6f34e 6s linear infinite;animation:rainWeather-data-v-1fa6f34e 6s linear infinite;-webkit-transform:rotate(30deg);transform:rotate(30deg);opacity:.5}.rain .raingImg[data-v-1fa6f34e]{width:%?750?%;height:%?1008?%}@-webkit-keyframes rainWeather-data-v-1fa6f34e{0%{background-position:0 0}to{background-position:0 1024px}}@keyframes rainWeather-data-v-1fa6f34e{0%{background-position:0 0}to{background-position:0 1024px}}.sunlight[data-v-1fa6f34e]{width:%?400?%;height:%?472?%;position:absolute;right:0;top:%?20?%;overflow:hidden}.sunlight .sunlight[data-v-1fa6f34e]{width:%?400?%;height:%?472?%;position:absolute;right:0;top:0}.sunlight .sunImg[data-v-1fa6f34e]{width:%?232?%;height:%?280?%;-webkit-animation:sunline-data-v-1fa6f34e 10s linear infinite;animation:sunline-data-v-1fa6f34e 10s linear infinite;position:absolute;right:%?140?%;left:%?140?%;top:%?100?%;z-index:5}@-webkit-keyframes sunline-data-v-1fa6f34e{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes sunline-data-v-1fa6f34e{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.cloudyImg[data-v-1fa6f34e]{height:%?380?%;width:100%;position:absolute;left:0;top:%?460?%;z-index:1}.cloudyImg .moveCloudy[data-v-1fa6f34e]{width:%?722?%;height:%?204?%;position:absolute;right:0;bottom:0;-webkit-animation:cloudy-data-v-1fa6f34e 10s infinite linear;animation:cloudy-data-v-1fa6f34e 10s infinite linear}.cloudyImg .nmoveCloudy[data-v-1fa6f34e]{width:%?750?%;height:%?380?%}@-webkit-keyframes cloudy-data-v-1fa6f34e{0%{right:%?-750?%}50%{right:0}to{right:%?750?%}}@keyframes cloudy-data-v-1fa6f34e{0%{right:%?-750?%}50%{right:0}to{right:%?750?%}}',""])}}]);