1 line
124 KiB
JavaScript
1 line
124 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-myHealth-myHealth"],{"0cc1":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */@font-face{font-family:iconfont;src:url(/static/ttf/iconfont.eot?t=1564651597095);\n /* IE9 */src:url(/static/ttf/iconfont.eot?t=1564651597095#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,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") format("woff2"),url(/static/ttf/iconfont.woff?t=1564651597095) format("woff"),url(/static/ttf/iconfont.ttf?t=1564651597095) format("truetype"),url(/static/ttf/iconfont.svg?t=1564651597095#iconfont) format("svg")\n /* iOS 4.1- */}.iconfont[data-v-e77e32d0]{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-chongzhijiaofei[data-v-e77e32d0]:before{content:"\\e619"}.icon-dingwei[data-v-e77e32d0]:before{content:"\\e650"}.icon-chongzhi[data-v-e77e32d0]:before{content:"\\e653"}.icon-2xuanzhong[data-v-e77e32d0]:before{content:"\\e605"}.icon-ziguanjilu[data-v-e77e32d0]:before{content:"\\e68f"}.icon-zuo[data-v-e77e32d0]:before{content:"\\e64b"}.icon-xuanzhong[data-v-e77e32d0]:before{content:"\\e626"}.icon-you1[data-v-e77e32d0]:before{content:"\\e61d"}.icon-up[data-v-e77e32d0]:before{content:"\\e600"}.icon-icon_kefu[data-v-e77e32d0]:before{content:"\\e632"}.icon-xiugai[data-v-e77e32d0]:before{content:"\\e64e"}.icon-liebiao[data-v-e77e32d0]:before{content:"\\e601"}.icon-sousuo1[data-v-e77e32d0]:before{content:"\\e678"}.icon-you[data-v-e77e32d0]:before{content:"\\e608"}.icon-gerenxinxi[data-v-e77e32d0]:before{content:"\\e62a"}.icon-yingyeshijian[data-v-e77e32d0]:before{content:"\\e640"}.icon-list[data-v-e77e32d0]:before{content:"\\e602"}.icon-kefu[data-v-e77e32d0]:before{content:"\\e611"}.icon-shouye[data-v-e77e32d0]:before{content:"\\e603"}.icon-zuo1[data-v-e77e32d0]:before{content:"\\e606"}.icon-weixin[data-v-e77e32d0]:before{content:"\\e620"}.icon-shoucang[data-v-e77e32d0]:before{content:"\\e604"}.icon-SVG_daifukuan-miaobian[data-v-e77e32d0]:before{content:"\\e618"}.icon-daishouhuo[data-v-e77e32d0]:before{content:"\\e6ab"}.icon-xia[data-v-e77e32d0]:before{content:"\\e607"}.icon-zuo11[data-v-e77e32d0]:before{content:"\\e6b8"}.icon-shoucang1[data-v-e77e32d0]:before{content:"\\e625"}.icon-shoucang2[data-v-e77e32d0]:before{content:"\\e612"}.icon-jilu[data-v-e77e32d0]:before{content:"\\e654"}.icon-shouhou[data-v-e77e32d0]:before{content:"\\e67d"}.icon-qiandao[data-v-e77e32d0]:before{content:"\\e73a"}.icon-sousuo[data-v-e77e32d0]:before{content:"\\e749"}.icon-star[data-v-e77e32d0]:before{content:"\\e609"}.icon-xiangzuo[data-v-e77e32d0]:before{content:"\\e71a"}.icon-order[data-v-e77e32d0]:before{content:"\\e60b"}.icon-guanbi[data-v-e77e32d0]:before{content:"\\e60a"}.icon-shezhi[data-v-e77e32d0]:before{content:"\\e60c"}.icon-zu[data-v-e77e32d0]:before{content:"\\e60d"}.icon-dianhua[data-v-e77e32d0]:before{content:"\\e6a3"}.occupied[data-v-e77e32d0]{height:%?120?%}.footer-btn[data-v-e77e32d0]{position:fixed;bottom:0;left:0;width:100%;z-index:10}.footer-btn .btn[data-v-e77e32d0]{margin:%?20?% %?30?%;background:linear-gradient(90deg,#ffc200,#ff9000);\n /*设置按钮为渐变颜色*/font-size:%?28?%;color:#fff;text-align:center;line-height:%?80?%;border-radius:%?6?%}.footer-btn .btn-blue[data-v-e77e32d0]{margin:%?20?% %?30?%;background:linear-gradient(90deg,#59deff,#3e83ea);\n /*设置按钮为渐变颜色*/font-size:%?28?%;color:#fff;text-align:center;line-height:%?80?%;border-radius:%?6?%}.footer-btn-two[data-v-e77e32d0]{overflow:hidden}.footer-btn-two .btn[data-v-e77e32d0]{float:left;width:50%;margin:0;border-radius:%?0?%}.footer-btn-two .btn-col[data-v-e77e32d0]{background:#ccc}.footer-btn-two .btn-col1[data-v-e77e32d0]{background:#00c277}.common-shade[data-v-e77e32d0]{position:fixed;top:0;left:0;width:100%;height:100vh;background:rgba(0,0,0,.7);z-index:99}.bg-ccc[data-v-e77e32d0]{background:#ccc!important}.bRed[data-v-e77e32d0]{color:red}.fs30[data-v-e77e32d0]{font-size:%?30?%}.searchv[data-v-e77e32d0]{margin-top:%?0?%;padding:%?20?% 0}.search[data-v-e77e32d0]{margin-top:%?20?%;display:inline-block;background-color:#00c277;color:#fff;margin-left:2vh;font-size:2vh;border-radius:1vh;padding:1vh 2vh 1vh 2vh}.timecenter[data-v-e77e32d0]{font-size:%?26?%;margin-left:%?10?%;margin-right:%?10?%}.time[data-v-e77e32d0]{margin-top:%?10?%;font-size:%?28?%;display:inline-block;border:1px solid #c2c2c2}.time2[data-v-e77e32d0]{font-size:%?28?%;display:inline-block}.visitcon[data-v-e77e32d0]{display:inline-block;text-align:center;font-size:14px}.visitconContent[data-v-e77e32d0]{\n /* text-decoration:underline; */display:inline-block;text-align:center;font-size:14px}.w55[data-v-e77e32d0]{width:55%}.w50[data-v-e77e32d0]{width:50%}.w40[data-v-e77e32d0]{width:40%}.w25[data-v-e77e32d0]{width:25%}.w10[data-v-e77e32d0]{width:10%}.w15[data-v-e77e32d0]{width:15%}.w20[data-v-e77e32d0]{width:20%}.w30[data-v-e77e32d0]{width:30%}.w35[data-v-e77e32d0]{width:35%}.w45[data-v-e77e32d0]{width:45%}.container[data-v-e77e32d0]{position:relative;overflow:hidden;background:#f8f8f8;min-height:100vh}.container .banner-box[data-v-e77e32d0]{width:100%;height:%?240?%;position:absolute;top:0;left:0}.container .banner-box uni-image[data-v-e77e32d0]{width:100%;height:100%}.container .main[data-v-e77e32d0]{margin:%?172?% %?40?% 0;position:relative;z-index:10\n /*样式的width和height一定要与定义的cWidth和cHeight相对应*/}.container .main .tab-box[data-v-e77e32d0]{overflow:hidden;border-radius:%?10?% %?10?% 0 0;background:rgba(132,149,167,.8);height:%?70?%}.container .main .tab-box .tab-item[data-v-e77e32d0]{float:left;height:%?70?%;width:50%;font-size:%?30?%;color:#e5f6ff;text-align:center;line-height:%?70?%}.container .main .tab-box .active_tab[data-v-e77e32d0]{background:#fff;color:#333;border-radius:%?10?% %?10?% 0 0;font-weight:700}.container .main .form-box[data-v-e77e32d0]{padding:%?20?% %?30?% %?0?%;margin-bottom:%?20?%;background:#fff}.container .main .form-box .form-item[data-v-e77e32d0]{overflow:hidden;border-bottom:1px solid #eee;padding:%?30?% 0}.container .main .form-box .form-item .label[data-v-e77e32d0]{float:left;width:%?150?%;font-size:%?28?%;color:#333;font-weight:700;line-height:%?50?%}.container .main .form-box .form-item .ipt-box[data-v-e77e32d0]{margin-left:%?160?%}.container .main .form-box .form-item .ipt-box uni-input[data-v-e77e32d0]{width:100%;height:%?50?%;line-height:%?50?%;font-size:%?26?%;color:#666}.container .main .form-box .form-item .ipt-box .pic[data-v-e77e32d0]{width:%?60?%;height:%?60?%;line-height:%?80?%}.container .main .form-box .form-item .select .arrow[data-v-e77e32d0]{float:right;width:%?16?%;height:%?29?%;margin-top:%?10?%}.container .main .form-box .form-item .select uni-input[data-v-e77e32d0]{width:70%}.container .main .form-box .form-item .jian[data-v-e77e32d0]{width:%?50?%;height:%?50?%;margin-left:%?280?%}.container .main .form-box .form-item .select .arrow[data-v-e77e32d0]{float:right;width:%?16?%;height:%?29?%;margin-top:%?10?%}.container .main .form-box .form-item .select .picker[data-v-e77e32d0]{height:%?50?%;line-height:%?50?%;font-size:%?26?%;color:#666}.container .main .form-box .sure-btn[data-v-e77e32d0]{width:100%;height:%?80?%;font-size:%?28?%;color:#fff;text-align:center;line-height:%?80?%;border-radius:%?8?%;background:#06c;background:linear-gradient(90deg,#ffc200,#ff9000);\n /*设置按钮为渐变颜色*/margin-top:%?50?%}.container .main .list-box .list-item[data-v-e77e32d0]{background:#fff;margin-bottom:%?10?%}.container .main .list-box .list-item .title[data-v-e77e32d0]{border-bottom:1px solid #eee;padding:%?20?% %?10?%;overflow:hidden;line-height:%?40?%}.container .main .list-box .list-item .title .line[data-v-e77e32d0]{display:inline-block;width:%?10?%;height:%?32?%;background:#00c277;margin-top:%?4?%}.container .main .list-box .list-item .title .text[data-v-e77e32d0]{display:inline-block;font-size:%?28?%;color:#444;font-weight:700;margin-left:%?10?%;vertical-align:top}.container .main .list-box .list-item .title .status[data-v-e77e32d0]{font-size:%?26?%;color:#00c277;float:right}.container .main .list-box .list-item .title .status1[data-v-e77e32d0]{font-size:%?26?%;color:#5063c3;float:right}.container .main .list-box .list-item .title .status2[data-v-e77e32d0]{font-size:%?26?%;color:red;float:right}.container .main .list-box .list-item .content[data-v-e77e32d0]{padding:%?10?% %?20?%}.container .main .list-box .list-item .content .info-item[data-v-e77e32d0]{overflow:hidden;padding-bottom:%?10?%}.container .main .list-box .list-item .content .info-item .fl-text[data-v-e77e32d0]{float:left;font-size:%?26?%;color:#444;font-weight:700;line-height:%?40?%}.container .main .list-box .list-item .content .info-item .fr-text[data-v-e77e32d0]{float:right;font-size:%?26?%;color:#666;line-height:%?40?%}.container .main .list-box .comment-btn[data-v-e77e32d0]{float:right;font-size:%?24?%;border-radius:%?10?%;color:#fff;line-height:%?50?%;text-align:center;min-width:%?140?%;background-color:#00c277}.container .main .qiun-charts[data-v-e77e32d0]{width:%?670?%;height:%?500?%;background-color:#fff}.container .main .charts[data-v-e77e32d0]{width:%?670?%;height:%?500?%;background-color:#fff}',""]),t.exports=e},"34f3":function(t,e,i){var a=i("0cc1");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("a90cfb22",a,!0,{sourceMap:!1,shadowMode:!1})},"5c42":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"container"},[i("v-uni-view",{staticClass:"banner-box"},[i("v-uni-image",{attrs:{src:"/static/imgs/myHealthBanner.png",mode:""}}),4==t.currentTabIndex?i("v-uni-image",{attrs:{src:"/static/imgs/visitor.png",mode:""}}):t._e()],1),i("v-uni-view",{staticClass:"main"},[i("v-uni-view",{staticClass:"tab-box"},[i("v-uni-view",{staticClass:"tab-item",class:0==t.currentTabIndex?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.currentTabIndex=0}}},[t._v("信息填报")]),i("v-uni-view",{staticClass:"tab-item",class:1==t.currentTabIndex?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.currentTabIndex=1}}},[t._v("历史记录")])],1),0==t.currentTabIndex?i("v-uni-view",{staticStyle:{"padding-left":"26upx","background-color":"#fff",height:"auto"}},[i("v-uni-view",{staticClass:"form-item searchv",staticStyle:{"padding-bottom":"10upx","padding-top":"20upx"}},[i("span",{staticStyle:{color:"#FF0000"}},[t._v("*")]),i("v-uni-text",{staticClass:"label fs30"},[t._v("时间")]),i("datetime-Picker",{staticClass:"time2",staticStyle:{position:"relative",float:"right",right:"26upx"},attrs:{mode:"time",value:t.commitTime,maxDate:t.defaultMaxDate,minDate:t.defaultMinDate,minTime:t.minTime,maxTime:t.maxTime},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindMsgDateChange.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticStyle:{"background-color":"#f2f2f2",height:"1upx"}}),i("v-uni-view",{staticClass:"form-item searchv",staticStyle:{"padding-bottom":"10upx"}},[i("span",{staticStyle:{color:"#FF0000"}},[t._v("*")]),i("v-uni-text",{staticClass:"label fs30",staticStyle:{display:"inline-block"}},[t._v("体温")]),i("v-uni-picker",{staticStyle:{"margin-top":"10upx","align-items":"center","font-size":"30upx",display:"flex",position:"relative",float:"right",right:"26upx"},attrs:{value:t.twindex,range:t.twlist,"range-key":"twindex"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeDepartment1.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"uni-input"},[t._v(t._s(t.twlist[t.twindex]))])],1)],1),i("v-uni-view",{staticStyle:{"background-color":"#f2f2f2",height:"1upx"}}),i("v-uni-view",{staticClass:"form-item searchv",staticStyle:{"padding-bottom":"10upx",display:"flow-root"}},[i("span",{staticStyle:{color:"#FF0000"}},[t._v("*")]),i("v-uni-text",{staticClass:"label fs30",staticStyle:{display:"inline-block"}},[t._v("位置")]),i("v-uni-text",{staticStyle:{float:"right",right:"26upx",width:"450upx",height:"auto","font-size":"30upx",position:"relative","text-align":"right"}},[t._v(t._s(t.locationDetail))])],1),i("v-uni-view",{staticStyle:{"background-color":"#f2f2f2",height:"1upx"}}),i("v-uni-view",{staticClass:"form-item searchv",staticStyle:{"padding-top":"10upx","padding-bottom":"10upx"}},[i("span",{staticStyle:{color:"#FF0000"}},[t._v("*")]),i("v-uni-text",{staticClass:"label fs30"},[t._v("是否咳嗽")]),i("v-uni-view",{staticClass:"uni-list"},[i("v-uni-radio-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.coughradioChange.apply(void 0,arguments)}}},[i("v-uni-label",{staticClass:"uni-list-cell uni-list-cell-pd"},[i("v-uni-view",{staticStyle:{display:"inline-block","padding-top":"10upx"}},[i("v-uni-radio",{staticStyle:{transform:"scale(0.8)"},attrs:{value:"1"}})],1),i("v-uni-view",{staticClass:"fs30",staticStyle:{display:"inline-block"}},[t._v("是")])],1),i("v-uni-view"),i("v-uni-label",{staticClass:"uni-list-cell uni-list-cell-pd"},[i("v-uni-view",{staticStyle:{display:"inline-block","padding-top":"10upx"}},[i("v-uni-radio",{staticStyle:{transform:"scale(0.8)"},attrs:{value:"0",checked:"true"}})],1),i("v-uni-view",{staticClass:"fs30",staticStyle:{display:"inline-block"}},[t._v("否")])],1)],1)],1)],1),i("v-uni-view",{staticStyle:{"background-color":"#f2f2f2",height:"1upx"}}),i("v-uni-view",{staticClass:"form-item searchv"},[i("span",{staticStyle:{color:"#FF0000"}},[t._v("*")]),i("v-uni-text",{staticClass:"label fs30"},[t._v("是否浑身无力")]),i("v-uni-view",{staticClass:"uni-list"},[i("v-uni-radio-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.weakradioChange.apply(void 0,arguments)}}},[i("v-uni-label",{staticClass:"uni-list-cell uni-list-cell-pd"},[i("v-uni-view",{staticStyle:{display:"inline-block","padding-top":"10upx"}},[i("v-uni-radio",{staticStyle:{transform:"scale(0.8)"},attrs:{value:"1"}})],1),i("v-uni-view",{staticClass:"fs30",staticStyle:{display:"inline-block"}},[t._v("是")])],1),i("v-uni-view"),i("v-uni-label",{staticClass:"uni-list-cell uni-list-cell-pd"},[i("v-uni-view",{staticStyle:{display:"inline-block","padding-top":"10upx"}},[i("v-uni-radio",{staticStyle:{transform:"scale(0.8)"},attrs:{value:"0",checked:"true"}})],1),i("v-uni-view",{staticClass:"fs30",staticStyle:{display:"inline-block"}},[t._v("否")])],1)],1)],1)],1),i("v-uni-view",{staticStyle:{"background-color":"#f2f2f2",height:"1upx"}}),i("v-uni-view",{staticClass:"form-item searchv"},[i("span",{staticStyle:{color:"#FF0000"}},[t._v("*")]),i("v-uni-text",{staticClass:"label fs30"},[t._v("是否呼吸困难")]),i("v-uni-view",{staticClass:"uni-list"},[i("v-uni-radio-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.breatheradioChange.apply(void 0,arguments)}}},[i("v-uni-label",{staticClass:"uni-list-cell uni-list-cell-pd"},[i("v-uni-view",{staticStyle:{display:"inline-block","padding-top":"10upx"}},[i("v-uni-radio",{staticStyle:{transform:"scale(0.8)"},attrs:{value:"1"}})],1),i("v-uni-view",{staticClass:"fs30",staticStyle:{display:"inline-block"}},[t._v("是")])],1),i("v-uni-view"),i("v-uni-label",{staticClass:"uni-list-cell uni-list-cell-pd"},[i("v-uni-view",{staticStyle:{display:"inline-block","padding-top":"10upx"}},[i("v-uni-radio",{staticStyle:{transform:"scale(0.8)"},attrs:{value:"0",checked:"true"}})],1),i("v-uni-view",{staticClass:"fs30",staticStyle:{display:"inline-block"}},[t._v("否")])],1)],1)],1)],1),i("v-uni-view",{staticStyle:{"background-color":"#f2f2f2",height:"1upx"}}),i("v-uni-view",{staticClass:"form-item searchv",staticStyle:{"padding-top":"10upx","padding-bottom":"10upx"}},[i("v-uni-text",{staticClass:"label fs30",staticStyle:{"margin-bottom":"10upx"}},[t._v("其它不适情况说明")]),i("v-uni-view",{staticStyle:{height:"10upx"}}),i("v-uni-textarea",{staticStyle:{border:"1px solid #f2f2f2",padding:"20upx","font-size":"30upx"},attrs:{"placeholder-style":"color:#d2d2d2",placeholder:"如有其它不适情况请填写",rows:"5",value:t.discomfortExplain,maxlength:"500"}})],1),i("v-uni-view",{staticStyle:{"background-color":"#f2f2f2",height:"1upx"}}),i("v-uni-view",{staticClass:"form-item searchv"},[i("span",{staticStyle:{color:"#FF0000"}},[t._v("*")]),i("v-uni-text",{staticClass:"label fs30"},[t._v("本日是否接触过疫区人员")]),i("v-uni-view",{staticClass:"uni-list"},[i("v-uni-radio-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.epidemicradioChange.apply(void 0,arguments)}}},[i("v-uni-label",{staticClass:"uni-list-cell uni-list-cell-pd"},[i("v-uni-view",{staticStyle:{display:"inline-block","padding-top":"10upx"}},[i("v-uni-radio",{staticStyle:{transform:"scale(0.8)"},attrs:{value:"1"}})],1),i("v-uni-view",{staticClass:"fs30",staticStyle:{display:"inline-block"}},[t._v("是")])],1),i("v-uni-view"),i("v-uni-label",{staticClass:"uni-list-cell uni-list-cell-pd"},[i("v-uni-view",{staticStyle:{display:"inline-block","padding-top":"10upx"}},[i("v-uni-radio",{staticStyle:{transform:"scale(0.8)"},attrs:{value:"0",checked:"true"}})],1),i("v-uni-view",{staticClass:"fs30",staticStyle:{display:"inline-block"}},[t._v("否")])],1)],1)],1)],1),i("v-uni-view",{staticStyle:{"background-color":"#f2f2f2",height:"1upx"}}),i("v-uni-view",{staticClass:"form-item searchv"},[i("span",{staticStyle:{color:"#FF0000"}},[t._v("*")]),i("v-uni-text",{staticClass:"label fs30 "},[t._v("近14天是否从海外归国或接触相关人员")]),i("v-uni-view",{staticClass:"uni-list"},[i("v-uni-radio-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.overseasMsgDateChange.apply(void 0,arguments)}}},[i("v-uni-label",{staticClass:"uni-list-cell uni-list-cell-pd"},[i("v-uni-view",{staticStyle:{display:"inline-block","padding-top":"10upx"}},[i("v-uni-radio",{staticStyle:{transform:"scale(0.8)"},attrs:{value:"1"}})],1),i("v-uni-view",{staticClass:"fs30",staticStyle:{display:"inline-block"}},[t._v("是")])],1),i("v-uni-view"),i("v-uni-label",{staticClass:"uni-list-cell uni-list-cell-pd"},[i("v-uni-view",{staticStyle:{display:"inline-block","padding-top":"10upx"}},[i("v-uni-radio",{staticStyle:{transform:"scale(0.8)"},attrs:{value:"0",checked:"true"}})],1),i("v-uni-view",{staticClass:"fs30",staticStyle:{display:"inline-block"}},[t._v("否")])],1)],1)],1)],1),i("v-uni-view",{staticClass:"occupied"}),i("v-uni-view",{staticClass:"footer-btn footer-btn-color",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit()}}},[i("v-uni-view",{staticClass:"btn"},[t._v("提交")])],1)],1):1==t.currentTabIndex?i("v-uni-view",{staticClass:"reservation-box",staticStyle:{"background-color":"#fff"}},[i("v-uni-view",{staticClass:"qiun-columns"},[i("v-uni-view",{staticClass:"qiun-bg-white qiun-title-bar qiun-common-mt"},[i("v-uni-view",{staticClass:"qiun-title-dot-light",staticStyle:{"font-size":"30upx",margin:"20upx 0 20upx 0"}},[t._v("体温变化")])],1),i("v-uni-view",{staticClass:"qiun-charts"},[i("v-uni-canvas",{staticClass:"charts",attrs:{"canvas-id":"canvasLineA",id:"canvasLineA"},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchLineA.apply(void 0,arguments)}}})],1)],1),t.visitTj.length>0?i("v-uni-view",{staticClass:"list-box"},[i("v-uni-view",{staticClass:"form-item",staticStyle:{width:"100%",padding:"20upx 10upx"}},[i("v-uni-view",{staticClass:"visitcon w20"},[t._v("姓名")]),i("v-uni-view",{staticClass:"visitcon w35"},[t._v("日期")]),i("v-uni-view",{staticClass:"visitcon w10"},[t._v("咳嗽")]),i("v-uni-view",{staticClass:"visitcon w15"},[t._v("体温")]),i("v-uni-view",{staticClass:"visitcon w20"},[t._v("数据来源")])],1),t._l(t.visitTj,(function(e,a){return i("v-uni-view",{key:a,staticClass:"form-item",staticStyle:{padding:"20upx 10upx","border-top":"1px solid #d2d2d2","align-items":"center",display:"flex"}},[i("v-uni-view",{staticClass:"visitcon w20"},[t._v(t._s(e.userName))]),i("v-uni-view",{staticClass:"visitconContent w35"},[t._v(t._s(e.time))]),i("v-uni-view",{staticClass:"visitconContent w10",class:["是"===e.cough?"bRed":""]},[t._v(t._s(e.cough))]),i("v-uni-view",{staticClass:"visitconContent w15",class:[e.temperature>=t.tmpV?"bRed":""]},[t._v(t._s(e.temperature))]),i("v-uni-view",{staticClass:"visitconContent w20"},[t._v(t._s(e.source))])],1)}))],2):t._e()],1):t._e()],1)],1)],1)},o=[]},"737a":function(t,e,i){"use strict";i.r(e);var a=i("db88"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},a51c:function(t,e,i){"use strict";var a=i("34f3"),n=i.n(a);n.a},db88:function(t,e,i){"use strict";(function(t){var a=i("4ea4");i("99af"),i("ac1f"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o=a(i("2909")),r=i("fb8c"),s=i("d24f"),l=a(i("474f")),c=a(i("28ef")),h=a(i("bb31")),d=(a(i("3403")),a(i("e3a8"))),u=(new Date).getTime(),p=null,f={data:function(){return{commitTime:(0,r.formatDate)(u,"mTime"),minTime:"00:00",defaultMinDate:u,defaultMaxDate:u,maxTime:"24:00",visitStateIndex:0,visitlist:[],twlist:["35.0","35.1","35.2","35.3","35.4","35.5","35.5","35.6","35.7","35.8","35.9","36.0","36.1","36.2","36.3","36.4","36.5","36.6","36.7","36.8","36.9","37.0","37.1","37.2","37.3","37.4","37.5","37.6","37.7","37.8","37.9","38.0","38.1","38.2","38.3","38.4","38.5","38.6","38.7","38.8","38.9","38.0","39.1","39.2","39.3","39.4","39.5","39.6","39.7","39.8","39.9","40.0"],twindex:11,visitTj:[],insideList:[],userId:(0,r.getStorage)("userInfo").id,insideDepIndex:0,visitState:["全部","已授权","未授权"],page:1,pageSize:10,loadingType:0,insideloadingType:0,currentTabIndex:0,selectedDate:this.getTime(),chooseDateIndex:0,times:[],chooseTimeIndex:null,deptList:["请选择"],RersonIndex:0,tmpV:37.6,cWidth:"",cHeight:"",pixelRatio:1,longitude:"",latitude:"",cough:0,weak:0,breathe:0,epidemic:0,overseas:0,discomfortExplain:"",location:"",locationDetail:"获取中..."}},components:{loadMore:l.default,contentNone:c.default,datetimePicker:h.default},created:function(){},onReady:function(){},onLoad:function(e){var i=this;if(t.log("---start get location---"),r.devEnv)this.locationDetail="安徽省合肥市蜀山区";else{var a=window.location.href.split("#")[0],o={method:s.wechatJsSdk2,data:{url:a}};(0,r.callbackRequest)(o).then((function(e){if(1==e.data.returnCode){var a=e.data.returnData;i.init(a),setTimeout((function(){i.getLocation()}),400)}t.log("---end get location---")}))}t.log("--"+this.userId),this.currentTabIndex=e.currentTabIndex||0,0==this.currentTabIndex&&this.initData(),n=this,this.cWidth=uni.upx2px(670),this.cHeight=uni.upx2px(500)},watch:{currentTabIndex:function(t,e){1==t?(this.page=1,this.loadingType=0,this.insideloadingType=0,this.getHealthyList()):this.initData()}},methods:{init:function(e){var i=this;this.$wx.config({debug:!1,appId:e.appId,timestamp:e.timestamp,nonceStr:e.noncestr,signature:e.signature,jsApiList:["openLocation","getLocation"]}),this.$wx.ready((function(){t.log("验证通过"),i.$wx.checkJsApi({jsApiList:["openLocation","getLocation"],success:function(e){t.log(e)},fail:function(e){t.log(e)}})})),this.$wx.error((function(e){t.log("验证失败")}))},getLocation:function(){var e=this;e.$wx.getLocation({type:"wgs84",success:function(i){t.log(i),e.longitude=i.longitude,e.latitude=i.latitude,e.getLocationBuildingByLngLat(i.longitude,i.latitude)},fail:function(){}})},getLocationBuildingByLngLat:function(e,i){var a=this,n=e,o=i,s="e1d3e8821fe4a57acded684fad753c10",l="https://restapi.amap.com/v3/geocode/regeo?output=JSON&location=".concat(n,",").concat(o,"&key=").concat(s,"&radius=1000&extensions=all"),c={};(0,r.callbackRequestNoTip)(l,c,"GET").then((function(e){if(t.log(e),e.data&&"1"==e.data.status&&e.data.regeocode){var i=e.data.regeocode;t.log(i.formatted_address),a.locationDetail=i.formatted_address,a.location=i.addressComponent.province,t.log(a.location),i.addressComponent.city&&(t.log(i.addressComponent.city),a.location+=i.addressComponent.city),t.log(a.location)}}))},getServerData:function(){var t={categories:["03-04","03-05","03-06","03-09","03-10","03-11","03-12"],series:[{name:"体温",data:[36.5,36.3,36.2,36.4,36.2,36.3,36.4],color:"green"}]};n.showLineA("canvasLineA",t)},changeDepartment1:function(t){this.twindex=t.detail.value},showLineA:function(t,e){p=new d.default({$this:n,canvasId:t,type:"line",fontSize:12,legend:{show:!0},dataLabel:!1,dataPointShape:!0,background:"#FFFFFF",pixelRatio:n.pixelRatio,categories:e.categories,series:e.series,animation:!0,xAxis:{type:"grid",gridColor:"#CCCCCC",gridType:"dash",dashLength:2,gridEval:1,labelCount:5},yAxis:{gridType:"dash",gridColor:"#CCCCCC",dashLength:8,splitNumber:3,min:35,max:38,format:function(t){return t.toFixed(0)+"℃"}},width:n.cWidth*n.pixelRatio,height:n.cHeight*n.pixelRatio,extra:{line:{type:"straight"}},title:{fontSize:10}})},touchLineA:function(t){p.showToolTip(t,{format:function(t,e){return e+" "+t.name+":"+t.data}})},submit:function(){var e=this;if("获取中..."!=e.locationDetail){var i={method:s.saveMyHealthy,data:{userId:e.userId,longitude:e.longitude,latitude:e.latitude,commitTime:e.commitTime,temperature:e.twlist[e.twindex],cough:e.cough,weak:e.weak,breathe:e.breathe,epidemic:e.epidemic,overseas:e.overseas,discomfortExplain:e.discomfortExplain,location:e.location,locationDetail:e.locationDetail}};t.log("--"+this.userId),(0,r.callbackRequest)(i).then((function(t){1==t.data.returnCode&&((0,r.alertTip)(t.data.returnMsg),setTimeout((function(t){e.currentTabIndex=1}),2e3))}))}else(0,r.alertTip)("如未允许微信获取位置信息,请退出页面,重新授权!")},open:function(){t.log(1111111),this.$refs.calendar.open()},searchYjList:function(){t.log(this.seachStartdate+"--------"+this.seachEnddate);var e=new Date(this.seachStartdate),i=new Date(this.seachEnddate);e>i&&(0,r.alertTip)("开始时间需大于结束时间!")},searchContent:function(e,i){if(this.page=1,t.log(e+"--------"+i+"==-===="+this.visitTj[e].name),this.currentTabIndex=1,this.visitStateIndex=i,"合计"==this.visitTj[e].name)this.RersonIndex=0;else for(var a=0;this.deptList.length;a++)if(this.deptList[a]==this.visitTj[e].name){this.RersonIndex=a;break}this.seachListStartdate=this.seachStartdate,this.seachListEnddate=this.seachEnddate,this.getVisitMsgList(this.deptList[this.RersonIndex],i)},searchInsideMsgList:function(t,e){if(this.insidepage=1,this.currentTabIndex=2,this.insideloadingType=0,"合计"==this.visitTj[t].name)this.insideDepIndex=0;else for(var i=0;this.deptList.length;i++)if(this.deptList[i]==this.visitTj[t].name){this.insideDepIndex=i;break}this.seachInsideListStartdate=this.seachStartdate,this.seachInsideListEnddate=this.seachEnddate,this.getInsideMsgList(this.deptList[this.insideDepIndex])},bindDateChange:function(t){this.seachStartdate=t.target.value},seachEnddateChange:function(t){this.seachEnddate=t.target.value},searchVisitList:function(){this.page=1,this.loadingType=0,t.log(this.seachStartdate+"--------"+this.seachEnddate),"全部"==this.visitState[this.visitStateIndex]?this.visitStateIndex=0:"已授权"==this.visitState[this.visitStateIndex]?this.visitStateIndex=1:"未授权"==this.visitState[this.visitStateIndex]&&(this.visitStateIndex=2);var e=new Date(this.seachListStartdate),i=new Date(this.seachListEnddate);e>i?(0,r.alertTip)("开始时间需大于结束时间!"):this.getVisitMsgList(this.deptList[this.RersonIndex],this.visitStateIndex)},getVisitMsgList:function(t,e){var i=this,a={method:s.greenVisitorStatisticsDetailed,data:{page:this.page,startDate:this.seachListStartdate,endDate:this.seachListEnddate,dep:t,userId:this.userId,type:e}};(0,r.callbackRequest)(a).then((function(t){1==t.data.returnCode&&(1==i.page?i.visitlist=t.data.returnData:t.data.returnData.length>0?(i.visitlist=[].concat((0,o.default)(i.visitlist),(0,o.default)(t.data.returnData)),i.loadingType=0):i.loadingType=2)}))},getHealthyList:function(){var e=this,i={method:s.getHealthyList,data:{userId:this.userId}};(0,r.callbackRequest)(i).then((function(i){if(1==i.data.returnCode){t.log(i.data.returnData),e.visitTj=i.data.returnData.list,e.tmpV=i.data.returnData.tmpV;var a=i.data.returnData.categoriesmap;t.log("LineA====="+a),n.showLineA("canvasLineA",a)}}))},coughradioChange:function(t){this.cough=t.target.value},weakradioChange:function(t){this.weak=t.target.value},breatheradioChange:function(t){this.breathe=t.target.value},epidemicradioChange:function(t){this.epidemic=t.target.value},overseasMsgDateChange:function(t){this.overseas=t.target.value},bindMsgDateChange:function(t){this.seachListStartdate=t.target.value},searchInsideList:function(){this.insideloadingType=0,this.insidepage=1,this.currentTabIndex=2;var t=new Date(this.seachInsideListStartdate),e=new Date(this.seachInsideListEnddate);t>e?(0,r.alertTip)("开始时间需大于结束时间!"):this.getInsideMsgList(this.deptList[this.insideDepIndex])},getInsideMsgList:function(t){var e=this,i={method:s.greenGetInsideList,data:{page:this.insidepage,startDate:this.seachInsideListStartdate,endDate:this.seachInsideListEnddate,userId:this.userId,dep:t}};(0,r.callbackRequest)(i).then((function(t){1==t.data.returnCode&&(1==e.insidepage?e.insideList=t.data.returnData:t.data.returnData.length>0?(e.insideList=[].concat((0,o.default)(e.insideList),(0,o.default)(t.data.returnData)),e.insideloadingType=0):e.insideloadingType=2)}))},seachInsideStartdateChange:function(t){this.seachInsideListStartdate=t.target.value},seachInsideEnddateChange:function(t){this.seachInsideListEnddate=t.target.value},getTime:function(){var t=new Date,e=t.getFullYear(),i=t.getMonth()+1,a=t.getDate(),n=t.getHours(),o=t.getMinutes();t.getSeconds();return e+"-"+i+"-"+a+" "+n+":"+o},getDay:function(){var t=new Date,e=t.getFullYear(),i=t.getMonth()+1;i<10&&(i="0"+i);var a=t.getDate();return e+"-"+i+"-"+a},initData:function(){},getRerson:function(){var t=this,e={method:s.greenVisitorStatistics,data:{userId:this.userId,startDate:this.seachStartdate,endDate:this.seachEnddate}};(0,r.callbackRequest)(e).then((function(e){1==e.data.returnCode&&(t.visitTj=e.data.returnData.visitlist,e.data.returnData.depList.length>0&&(t.deptList=e.data.returnData.depList))}))},toDetail:function(t){uni.navigateTo({url:t})},switchTab:function(t){this.chooseDateIndex=t,this.initData()},changeDepartment:function(t){this.departmentIndex=t.detail.value},changeRerson:function(t){this.RersonIndex=t.detail.value},changeInsideRerson:function(t){this.insideDepIndex=t.detail.value},visitState2:function(t){this.visitStateIndex=t.detail.value}}};e.default=f}).call(this,i("5a52")["default"])},e3a8:function(t,e,i){"use strict";(function(e){i("99af"),i("cb29"),i("4de4"),i("4160"),i("d81d"),i("13d5"),i("26e9"),i("fb6a"),i("4e82"),i("a9e3"),i("d3b7"),i("e25e"),i("ac1f"),i("25f0"),i("5319"),i("1276"),i("159b");var a={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},n=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];if(null==t)throw new TypeError("Cannot convert undefined or null to object");if(!i||i.length<=0)return t;function n(t,e){for(var i in e)t[i]=t[i]&&"[object Object]"===t[i].toString()?n(t[i],e[i]):t[i]=e[i];return t}return i.forEach((function(e){t=n(t,e)})),t},o={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return t%1!==0},approximatelyEqual:function(t,e){return Math.abs(t-e)<1e-10},isSameSign:function(t,e){return Math.abs(t)===t&&Math.abs(e)===e||Math.abs(t)!==t&&Math.abs(e)!==e},isSameXCoordinateArea:function(t,e){return this.isSameSign(t.x,e.x)},isCollision:function(t,e){t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height,e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height;var i=e.start.x>t.end.x||e.end.x<t.start.x||e.end.y>t.start.y||e.start.y<t.end.y;return!i}};function r(t,e){var i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,a=t.replace(i,(function(t,e,i,a){return e+e+i+i+a+a})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a),o=parseInt(n[1],16),r=parseInt(n[2],16),s=parseInt(n[3],16);return"rgba("+o+","+r+","+s+","+e+")"}function s(t,e,i){if(isNaN(t))throw new Error("[uCharts] unvalid series data!");i=i||10,e=e||"upper";var a=1;while(i<1)i*=10,a*=10;t="upper"===e?Math.ceil(t*a):Math.floor(t*a);while(t%i!==0)"upper"===e?t++:t--;return t/a}function l(t,e,i,a){for(var n=[],o=0;o<t.length;o++){for(var r={data:[],name:e[o],color:i[o]},s=0,l=a.length;s<l;s++)if(s<t[o])r.data.push(null);else{for(var c=0,h=0;h<t[o];h++)c+=a[s-h][1];r.data.push(+(c/t[o]).toFixed(3))}n.push(r)}return n}function c(t,e,i,a,n){var o=n.width-n.area[1]-n.area[3],r=i.eachSpacing*(n.chartData.xAxisData.xAxisPoints.length-1),s=e;return e>=0?(s=0,t.event.trigger("scrollLeft")):Math.abs(e)>=r-o&&(s=o-r,t.event.trigger("scrollRight")),s}function h(t,e,i){function a(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=a(t),e=a(e),i=a(i),e>i&&(i+=2*Math.PI,t<e&&(t+=2*Math.PI)),t>=e&&t<=i}function d(t,e,i){var a=t,n=i-e,o=a+(i-n-a)/Math.sqrt(2);o*=-1;var r=(i-n)*(Math.sqrt(2)-1)-(i-n-a)/Math.sqrt(2);return{transX:o,transY:r}}function u(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,n=.2,o=null,r=null,s=null,l=null;if(e<1?(o=t[0].x+(t[1].x-t[0].x)*a,r=t[0].y+(t[1].y-t[0].y)*a):(o=t[e].x+(t[e+1].x-t[e-1].x)*a,r=t[e].y+(t[e+1].y-t[e-1].y)*a),e>t.length-3){var c=t.length-1;s=t[c].x-(t[c].x-t[c-1].x)*n,l=t[c].y-(t[c].y-t[c-1].y)*n}else s=t[e+1].x-(t[e+2].x-t[e].x)*n,l=t[e+1].y-(t[e+2].y-t[e].y)*n;return i(t,e+1)&&(l=t[e+1].y),i(t,e)&&(r=t[e].y),(r>=Math.max(t[e].y,t[e+1].y)||r<=Math.min(t[e].y,t[e+1].y))&&(r=t[e].y),(l>=Math.max(t[e].y,t[e+1].y)||l<=Math.min(t[e].y,t[e+1].y))&&(l=t[e+1].y),{ctrA:{x:o,y:r},ctrB:{x:s,y:l}}}function p(t,e,i){return{x:i.x+t,y:i.y-e}}function f(t,e){if(e)while(o.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function x(t,e,i){var a=0;return t.map((function(t){if(t.color||(t.color=i.colors[a],a=(a+1)%i.colors.length),t.index||(t.index=0),t.type||(t.type=e.type),"undefined"==typeof t.show&&(t.show=!0),t.type||(t.type=e.type),t.pointShape||(t.pointShape="circle"),!t.legendShape)switch(t.type){case"line":t.legendShape="line";break;case"column":t.legendShape="rect";break;case"area":t.legendShape="triangle";break;default:t.legendShape="circle"}return t}))}function g(t,e){var i=0,a=e-t;return i=a>=1e4?1e3:a>=1e3?100:a>=100?10:a>=10?5:a>=1?1:a>=.1?.1:a>=.01?.01:a>=.001?.001:a>=1e-4?1e-4:a>=1e-5?1e-5:1e-6,{minRange:s(t,"lower",i),maxRange:s(e,"upper",i)}}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.fontSize;t=String(t);t=t.split("");for(var i=0,n=0;n<t.length;n++){var o=t[n];/[a-zA-Z]/.test(o)?i+=7:/[0-9]/.test(o)?i+=5.5:/\./.test(o)?i+=2.7:/-/.test(o)?i+=3.25:/[\u4e00-\u9fa5]/.test(o)?i+=10:/\(|\)/.test(o)?i+=3.73:/\s/.test(o)?i+=2.5:/%/.test(o)?i+=8:i+=10}return i*e/10}function y(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function m(t,e){for(var i=new Array(e),a=0;a<i.length;a++)i[a]=0;for(var n=0;n<t.length;n++)for(a=0;a<i.length;a++)i[a]+=t[n].data[a];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(i)}),[])}function b(t,e,i){var a,n;return t.clientX?e.rotate?(n=e.height-t.clientX*e.pixelRatio,a=(t.pageY-i.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):(a=t.clientX*e.pixelRatio,n=(t.pageY-i.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):e.rotate?(n=e.height-t.x*e.pixelRatio,a=t.y*e.pixelRatio):(a=t.x*e.pixelRatio,n=t.y*e.pixelRatio),{x:a,y:n}}function S(t,e){for(var i=[],a=0;a<t.length;a++){var n=t[a];if(null!==n.data[e]&&"undefined"!==typeof n.data[e]&&n.show){var o={};o.color=n.color,o.type=n.type,o.style=n.style,o.pointShape=n.pointShape,o.disableLegend=n.disableLegend,o.name=n.name,o.show=n.show,o.data=n.format?n.format(n.data[e]):n.data[e],i.push(o)}}return i}function w(t){var e=t.map((function(t){return v(t)}));return Math.max.apply(null,e)}function A(t){for(var e=2*Math.PI/t,i=[],a=0;a<t;a++)i.push(e*a);return i.map((function(t){return-1*t+Math.PI/2}))}function T(t,e,i,a){for(var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.map((function(t){var e=[];return e=a||t.data,{text:n.format?n.format(t,e[i]):t.name+": "+t.data,color:t.color}})),r=[],s={x:0,y:0},l=0;l<e.length;l++){var c=e[l];"undefined"!==typeof c[i]&&null!==c[i]&&r.push(c[i])}for(var h=0;h<r.length;h++){var d=r[h];s.x=Math.round(d.x),s.y+=d.y}return s.y/=r.length,{textList:o,offset:s}}function P(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.map((function(t){return{text:n.format?n.format(t,a[i]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));o=o.filter((function(t){if(!0!==t.disableLegend)return t}));for(var r=[],s={x:0,y:0},l=0;l<e.length;l++){var c=e[l];"undefined"!==typeof c[i]&&null!==c[i]&&r.push(c[i])}for(var h=0;h<r.length;h++){var d=r[h];s.x=Math.round(d.x),s.y+=d.y}return s.y/=r.length,{textList:o,offset:s}}function C(t,e,i,a,n,o){var r=o.color.upFill,s=o.color.downFill,l=[r,r,s,r],c=[],h={text:n[a],color:null};c.push(h),e.map((function(e){0==a&&e.data[1]-e.data[0]<0?l[1]=s:(e.data[0]<t[a-1][1]&&(l[0]=s),e.data[1]<e.data[0]&&(l[1]=s),e.data[2]>t[a-1][1]&&(l[2]=r),e.data[3]<t[a-1][1]&&(l[3]=s));var i={text:"开盘:"+e.data[0],color:l[0]},n={text:"收盘:"+e.data[1],color:l[1]},o={text:"最低:"+e.data[2],color:l[2]},h={text:"最高:"+e.data[3],color:l[3]};c.push(i,n,o,h)}));for(var d=[],u={x:0,y:0},p=0;p<i.length;p++){var f=i[p];"undefined"!==typeof f[a]&&null!==f[a]&&d.push(f[a])}return u.x=Math.round(d[0][0].x),{textList:c,offset:u}}function k(t){for(var e=[],i=0;i<t.length;i++)1==t[i].show&&e.push(t[i]);return e}function D(t,e,i,a){for(var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=-1,r=0,s=[],l=0;l<e[0].length;l++)s.push(e[0][l].x);return"line"!=i.type&&"area"!=i.type||"justify"!=i.xAxis.boundaryGap||(r=i.chartData.eachSpacing/2),i.categories||(r=0),F(t,i,a)&&s.forEach((function(e,i){t.x+n+r>e&&(o=i)})),o}function L(t,e,i){var a=-1;if(M(t,e.area)){for(var n=e.points,o=-1,r=0,s=n.length;r<s;r++)for(var l=n[r],c=0;c<l.length;c++){o+=1;var h=l[c]["area"];if(t.x>h[0]&&t.x<h[2]&&t.y>h[1]&&t.y<h[3]){a=o;break}}return a}return a}function M(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}function F(t,e,i){return t.x<=e.width-e.area[1]+10&&t.x>=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function _(t,e,i){var a=2*Math.PI/i,n=-1;if(W(t,e.center,e.radius)){var o=function(t){return t<0&&(t+=2*Math.PI),t>2*Math.PI&&(t-=2*Math.PI),t},r=Math.atan2(e.center.y-t.y,t.x-e.center.x);r*=-1,r<0&&(r+=2*Math.PI);var s=e.angleList.map((function(t){return t=o(-1*t),t}));s.forEach((function(t,e){var i=o(t-a/2),s=o(t+a/2);s<i&&(s+=2*Math.PI),(r>=i&&r<=s||r+2*Math.PI>=i&&r+2*Math.PI<=s)&&(n=e)}))}return n}function R(t,e){for(var i=-1,a=0,n=e.series.length;a<n;a++){var o=e.series[a];if(t.x>o.funnelArea[0]&&t.x<o.funnelArea[2]&&t.y>o.funnelArea[1]&&t.y<o.funnelArea[3]){i=a;break}}return i}function I(t,e){for(var i=-1,a=0,n=e.length;a<n;a++){var o=e[a];if(t.x>o.area[0]&&t.x<o.area[2]&&t.y>o.area[1]&&t.y<o.area[3]){i=a;break}}return i}function z(t,e){for(var i=-1,a=e.chartData.mapData,n=e.series,o=Ot(t.y,t.x,a.bounds,a.scale,a.xoffset,a.yoffset),r=[o.x,o.y],s=0,l=n.length;s<l;s++){var c=n[s].geometry.coordinates;if(qt(r,c)){i=s;break}}return i}function E(t,e){var i=-1;if(W(t,e.center,e.radius)){var a=Math.atan2(e.center.y-t.y,t.x-e.center.x);a=-a;for(var n=0,o=e.series.length;n<o;n++){var r=e.series[n];if(h(a,r._start_,r._start_+2*r._proportion_*Math.PI)){i=n;break}}}return i}function W(t,e,i){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(i,2)}function N(t){var e=[],i=[];return t.forEach((function(t,a){null!==t?i.push(t):(i.length&&e.push(i),i=[])})),i.length&&e.push(i),e}function O(t,e,i,a){var n={area:{start:{x:0,y:0},end:{x:0,y:0},width:0,height:0,wholeWidth:0,wholeHeight:0},points:[],widthArr:[],heightArr:[]};if(!1===e.legend.show)return a.legendData=n,n;var o=e.legend.padding,r=e.legend.margin,s=e.legend.fontSize,l=15*e.pixelRatio,c=5*e.pixelRatio,h=Math.max(e.legend.lineHeight*e.pixelRatio,s);if("top"==e.legend.position||"bottom"==e.legend.position){for(var d=[],u=0,p=[],f=[],x=0;x<t.length;x++){var g=t[x],y=l+c+v(g.name||"undefined",s)+e.legend.itemGap;u+y>e.width-e.padding[1]-e.padding[3]?(d.push(f),p.push(u-e.legend.itemGap),u=y,f=[g]):(u+=y,f.push(g))}if(f.length){d.push(f),p.push(u-e.legend.itemGap),n.widthArr=p;var m=Math.max.apply(null,p);switch(e.legend.float){case"left":n.area.start.x=e.padding[3],n.area.end.x=e.padding[3]+2*o;break;case"right":n.area.start.x=e.width-e.padding[1]-m-2*o,n.area.end.x=e.width-e.padding[1];break;default:n.area.start.x=(e.width-m)/2-o,n.area.end.x=(e.width+m)/2+o}n.area.width=m+2*o,n.area.wholeWidth=m+2*o,n.area.height=d.length*h+2*o,n.area.wholeHeight=d.length*h+2*o+2*r,n.points=d}}else{var b=t.length,S=e.height-e.padding[0]-e.padding[2]-2*r-2*o,w=Math.min(Math.floor(S/h),b);switch(n.area.height=w*h+2*o,n.area.wholeHeight=w*h+2*o,e.legend.float){case"top":n.area.start.y=e.padding[0]+r,n.area.end.y=e.padding[0]+r+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-r-n.area.height,n.area.end.y=e.height-e.padding[2]-r;break;default:n.area.start.y=(e.height-n.area.height)/2,n.area.end.y=(e.height+n.area.height)/2}for(var A=b%w===0?b/w:Math.floor(b/w+1),T=[],P=0;P<A;P++){var C=t.slice(P*w,P*w+w);T.push(C)}if(n.points=T,T.length){for(var k=0;k<T.length;k++){for(var D=T[k],L=0,M=0;M<D.length;M++){var F=l+c+v(D[M].name||"undefined",s)+e.legend.itemGap;F>L&&(L=F)}n.widthArr.push(L),n.heightArr.push(D.length*h+2*o)}for(var _=0,R=0;R<n.widthArr.length;R++)_+=n.widthArr[R];n.area.width=_-e.legend.itemGap+2*o,n.area.wholeWidth=n.area.width+o}}switch(e.legend.position){case"top":n.area.start.y=e.padding[0]+r,n.area.end.y=e.padding[0]+r+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-n.area.height-r,n.area.end.y=e.height-e.padding[2]-r;break;case"left":n.area.start.x=e.padding[3],n.area.end.x=e.padding[3]+n.area.width;break;case"right":n.area.start.x=e.width-e.padding[1]-n.area.width,n.area.end.x=e.width-e.padding[1];break}return a.legendData=n,n}function B(t,e,i,a){var n={angle:0,xAxisHeight:i.xAxisHeight},o=t.map((function(t){return v(t,e.xAxis.fontSize||i.fontSize)})),r=Math.max.apply(this,o);return 1==e.xAxis.rotateLabel&&r+2*i.xAxisTextPadding>a&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*i.xAxisTextPadding+r*Math.sin(n.angle)),n}function q(t,e,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,n=y(t),o=[];n=n.filter((function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),n.map((function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map((function(t){o.push(t)})):o.push(t[0]):o.push(t.value):o.push(t)}));var r=0,s=0;if(o.length>0&&(r=Math.min.apply(this,o),s=Math.max.apply(this,o)),a>-1?("number"===typeof e.xAxis.data[a].min&&(r=Math.min(e.xAxis.data[a].min,r)),"number"===typeof e.xAxis.data[a].max&&(s=Math.max(e.xAxis.data[a].max,s))):("number"===typeof e.xAxis.min&&(r=Math.min(e.xAxis.min,r)),"number"===typeof e.xAxis.max&&(s=Math.max(e.xAxis.max,s))),r===s){var l=s||10;s+=l}for(var c=g(r,s),h=c.minRange,d=c.maxRange,u=[],p=(d-h)/e.xAxis.splitNumber,f=0;f<=e.xAxis.splitNumber;f++)u.push(h+p*f);return u}function H(t,e,i){var a={angle:0,xAxisHeight:i.xAxisHeight};a.ranges=q(t,e,i),a.rangesFormat=a.ranges.map((function(t){return t=e.xAxis.format?e.xAxis.format(t):o.toFixed(t,2),t}));var n=a.ranges.map((function(t){return t=o.toFixed(t,2),t=e.xAxis.format?e.xAxis.format(Number(t)):t,t}));a=Object.assign(a,tt(n,e,i));var r=a.eachSpacing,s=n.map((function(t){return v(t)})),l=Math.max.apply(this,s);return l+2*i.xAxisTextPadding>r&&(a.angle=45*Math.PI/180,a.xAxisHeight=2*i.xAxisTextPadding+l*Math.sin(a.angle)),!0===e.xAxis.disabled&&(a.xAxisHeight=0),a}function G(t,e,i,a,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,r=n.extra.radar||{};r.max=r.max||0;for(var s=Math.max(r.max,Math.max.apply(null,y(a))),l=[],c=function(n){var r=a[n],c={};c.color=r.color,c.legendShape=r.legendShape,c.pointShape=r.pointShape,c.data=[],r.data.forEach((function(a,n){var r={};r.angle=t[n],r.proportion=a/s,r.position=p(i*r.proportion*o*Math.cos(r.angle),i*r.proportion*o*Math.sin(r.angle),e),c.data.push(r)})),l.push(c)},h=0;h<a.length;h++)c(h);return l}function Q(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=0,n=0,o=0;o<t.length;o++){var r=t[o];r.data=null===r.data?0:r.data,a+=r.data}for(var s=0;s<t.length;s++){var l=t[s];l.data=null===l.data?0:l.data,l._proportion_=0===a?1/t.length*i:l.data/a*i,l._radius_=e}for(var c=0;c<t.length;c++){var h=t[c];h._start_=n,n+=2*h._proportion_*Math.PI}return t}function K(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var a=0;a<t.length;a++)t[a].radius=t[a].data/t[0].data*e*i,t[a]._proportion_=t[a].data/t[0].data;return t.reverse()}function j(t,e,i,a){for(var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=0,r=0,s=[],l=0;l<t.length;l++){var c=t[l];c.data=null===c.data?0:c.data,o+=c.data,s.push(c.data)}for(var h=Math.min.apply(null,s),d=Math.max.apply(null,s),u=a-i,p=0;p<t.length;p++){var f=t[p];f.data=null===f.data?0:f.data,0===o||"area"==e?(f._proportion_=f.data/o*n,f._rose_proportion_=1/t.length*n):(f._proportion_=f.data/o*n,f._rose_proportion_=f.data/o*n),f._radius_=i+u*((f.data-h)/(d-h))}for(var x=0;x<t.length;x++){var g=t[x];g._start_=r,r+=2*g._rose_proportion_*Math.PI}return t}function U(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==i&&(i=.999999);for(var a=0;a<t.length;a++){var n=t[a];n.data=null===n.data?0:n.data;var o=void 0;o="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,n._proportion_=o*n.data*i+e.startAngle,n._proportion_>=2&&(n._proportion_=n._proportion_%2)}return t}function V(t,e,i){for(var a=e-i+1,n=e,o=0;o<t.length;o++)t[o].value=null===t[o].value?0:t[o].value,t[o]._startAngle_=n,t[o]._endAngle_=a*t[o].value+e,t[o]._endAngle_>=2&&(t[o]._endAngle_=t[o]._endAngle_%2),n=t[o]._endAngle_;return t}function X(t,e,i){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=0;n<t.length;n++){var o=t[n];if(o.data=null===o.data?0:o.data,"auto"==i.pointer.color){for(var r=0;r<e.length;r++)if(o.data<=e[r].value){o.color=e[r].color;break}}else o.color=i.pointer.color;var s=i.startAngle-i.endAngle+1;o._endAngle_=s*o.data+i.startAngle,o._oldAngle_=i.oldAngle,i.oldAngle<i.endAngle&&(o._oldAngle_+=2),o.data>=i.oldData?o._proportion_=(o._endAngle_-o._oldAngle_)*a+i.oldAngle:o._proportion_=o._oldAngle_-(o._oldAngle_-o._endAngle_)*a,o._proportion_>=2&&(o._proportion_=o._proportion_%2)}return t}function J(t){t=Q(t);for(var e=0,i=0;i<t.length;i++){var a=t[i],n=a.format?a.format(+a._proportion_.toFixed(2)):o.toFixed(100*a._proportion_)+"%";e=Math.max(e,v(n))}return e}function Y(t,e,i,a,n,o){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/i),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width)),t.width<=0&&(t.width=1),t.x+=(a+.5-i/2)*t.width,t)}))}function Z(t,e,i,a,n,o,r){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/2),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width)),a>0&&(t.width-=2*r),t)}))}function $(t,e,i,a,n,o,r){return t.map((function(t,i){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/2),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width)),t)}))}function tt(t,e,i){var a=e.width-e.area[1]-e.area[3],n=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&n>1&&"justify"==e.xAxis.boundaryGap&&(n-=1);var o=a/n,r=[],s=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){r.push(s+e*o)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?r.push(s+t.length*o):r.push(l)),{xAxisPoints:r,startX:s,endX:l,eachSpacing:o}}function et(t,e,i,a,n,o,r){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=o.height-o.area[0]-o.area[2];return t.forEach((function(t,r){if(null===t)l.push(null);else{var h=[];t.forEach((function(t,l){var d={};d.x=a[r]+Math.round(n/2);var u=t.value||t,p=c*(u-e)/(i-e);p*=s,d.y=o.height-Math.round(p)-o.area[2],h.push(d)})),l.push(h)}})),l}function it(t,e,i,a,n,o,r){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=o.type&&"area"!=o.type||(l=o.xAxis.boundaryGap);var c=[],h=o.height-o.area[0]-o.area[2],d=o.width-o.area[1]-o.area[3];return t.forEach((function(t,r){if(null===t)c.push(null);else{var u={};u.color=t.color,u.x=a[r];var p,f,x,g=t;if("object"===typeof t&&null!==t)if(t.constructor==Array)p=[].concat(o.chartData.xAxisData.ranges),f=p.shift(),x=p.pop(),g=t[1],u.x=o.area[3]+d*(t[0]-f)/(x-f);else g=t.value;"center"==l&&(u.x+=Math.round(n/2));var v=h*(g-e)/(i-e);v*=s,u.y=o.height-Math.round(v)-o.area[2],c.push(u)}})),c}function at(t,e,i,a,n,o,r,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,h=[],d=o.height-o.area[0]-o.area[2];return t.forEach((function(t,r){if(null===t)h.push(null);else{var u={};if(u.color=t.color,u.x=a[r]+Math.round(n/2),s>0){for(var p=0,f=0;f<=s;f++)p+=l[f].data[r];var x=p-t,g=d*(p-e)/(i-e),v=d*(x-e)/(i-e)}else p=t,g=d*(p-e)/(i-e),v=0;var y=v;g*=c,y*=c,u.y=o.height-Math.round(g)-o.area[2],u.y0=o.height-Math.round(y)-o.area[2],h.push(u)}})),h}function nt(t,e,i,a){var n,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;n="stack"==a?m(t,e.categories.length):y(t);var r=[];n=n.filter((function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),n.map((function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map((function(t){r.push(t)})):r.push(t[1]):r.push(t.value):r.push(t)}));var s=0,l=0;if(r.length>0&&(s=Math.min.apply(this,r),l=Math.max.apply(this,r)),o>-1?("number"===typeof e.yAxis.data[o].min&&(s=Math.min(e.yAxis.data[o].min,s)),"number"===typeof e.yAxis.data[o].max&&(l=Math.max(e.yAxis.data[o].max,l))):("number"===typeof e.yAxis.min&&(s=Math.min(e.yAxis.min,s)),"number"===typeof e.yAxis.max&&(l=Math.max(e.yAxis.max,l))),s===l){var c=l||10;l+=c}for(var h=g(s,l),d=h.minRange,u=h.maxRange,p=[],f=(u-d)/e.yAxis.splitNumber,x=0;x<=e.yAxis.splitNumber;x++)p.push(d+f*x);return p.reverse()}function ot(t,e,i){var a=n({},{type:""},e.extra.column),r=e.yAxis.data.length,s=new Array(r);if(r>0){for(var l=0;l<r;l++){s[l]=[];for(var c=0;c<t.length;c++)t[c].index==l&&s[l].push(t[c])}for(var h=new Array(r),d=new Array(r),u=new Array(r),p=function(t){var n=e.yAxis.data[t];1==e.yAxis.disabled&&(n.disabled=!0),h[t]=nt(s[t],e,i,a.type,t);var r=n.fontSize||i.fontSize;u[t]={position:n.position?n.position:"left",width:0},d[t]=h[t].map((function(e){return e=o.toFixed(e,6),e=n.format?n.format(Number(e)):e,u[t].width=Math.max(u[t].width,v(e,r)+5),e}));var l=n.calibration?4*e.pixelRatio:0;u[t].width+=l+3*e.pixelRatio,!0===n.disabled&&(u[t].width=0)},f=0;f<r;f++)p(f)}else{h=new Array(1),d=new Array(1),u=new Array(1);h[0]=nt(t,e,i,a.type),u[0]={position:"left",width:0};var x=e.yAxis.fontSize||i.fontSize;d[0]=h[0].map((function(t){return t=o.toFixed(t,6),t=e.yAxis.format?e.yAxis.format(Number(t)):t,u[0].width=Math.max(u[0].width,v(t,x)+5),t})),u[0].width+=3*e.pixelRatio,!0===e.yAxis.disabled?(u[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:d,ranges:h,yAxisWidth:u}}function rt(t,e,i,a,n){for(var o=[].concat(i.chartData.yAxisData.ranges),r=i.height-i.area[0]-i.area[2],s=i.area[0],l=[],c=0;c<o.length;c++){var h=o[c].shift(),d=o[c].pop(),u=h-(h-d)*(t-s)/r;u=i.yAxis.data[c].format?i.yAxis.data[c].format(Number(u)):u.toFixed(0),l.push(String(u))}return l}function st(t,e){for(var i,a,n=e.height-e.area[0]-e.area[2],o=0;o<t.length;o++){t[o].yAxisIndex=t[o].yAxisIndex?t[o].yAxisIndex:0;var r=[].concat(e.chartData.yAxisData.ranges[t[o].yAxisIndex]);i=r.pop(),a=r.shift();var s=n*(t[o].value-i)/(a-i);t[o].y=e.height-Math.round(s)-e.area[2]}return t}function lt(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function ct(t,e,i,a,n){a.beginPath(),"hollow"==n.dataPointShapeType?(a.setStrokeStyle(e),a.setFillStyle(n.background),a.setLineWidth(2*n.pixelRatio)):(a.setStrokeStyle("#ffffff"),a.setFillStyle(e),a.setLineWidth(1*n.pixelRatio)),"diamond"===i?t.forEach((function(t,e){null!==t&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y),a.lineTo(t.x,t.y+4.5),a.lineTo(t.x+4.5,t.y),a.lineTo(t.x,t.y-4.5))})):"circle"===i?t.forEach((function(t,e){null!==t&&(a.moveTo(t.x+2.5*n.pixelRatio,t.y),a.arc(t.x,t.y,3*n.pixelRatio,0,2*Math.PI,!1))})):"rect"===i?t.forEach((function(t,e){null!==t&&(a.moveTo(t.x-3.5,t.y-3.5),a.rect(t.x-3.5,t.y-3.5,7,7))})):"triangle"===i&&t.forEach((function(t,e){null!==t&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y+4.5),a.lineTo(t.x+4.5,t.y+4.5),a.lineTo(t.x,t.y-4.5))})),a.closePath(),a.fill(),a.stroke()}function ht(t,e,i,a){var n=t.title.fontSize||e.titleFontSize,o=t.subtitle.fontSize||e.subtitleFontSize,r=t.title.name||"",s=t.subtitle.name||"",l=t.title.color||e.titleColor,c=t.subtitle.color||e.subtitleColor,h=r?n:0,d=s?o:0,u=5;if(s){var p=v(s,o),f=a.x-p/2+(t.subtitle.offsetX||0),x=a.y+o/2+(t.subtitle.offsetY||0);r&&(x+=(h+u)/2),i.beginPath(),i.setFontSize(o),i.setFillStyle(c),i.fillText(s,f,x),i.closePath(),i.stroke()}if(r){var g=v(r,n),y=a.x-g/2+(t.title.offsetX||0),m=a.y+n/2+(t.title.offsetY||0);s&&(m-=(d+u)/2),i.beginPath(),i.setFontSize(n),i.setFillStyle(l),i.fillText(r,y,m),i.closePath(),i.stroke()}}function dt(t,e,i,a){var n=e.data;t.forEach((function(t,o){if(null!==t){a.beginPath(),a.setFontSize(e.textSize||i.fontSize),a.setFillStyle(e.textColor||"#666666");var r=n[o];"object"===typeof n[o]&&null!==n[o]&&(r=n[o].constructor==Array?n[o][1]:n[o].value);var s=e.format?e.format(r):r;a.fillText(String(s),t.x-v(s,e.textSize||i.fontSize)/2,t.y-4),a.closePath(),a.stroke()}}))}function ut(t,e,i,a,n,o){e-=t.width/2+n.gaugeLabelTextMargin;for(var r=t.startAngle-t.endAngle+1,s=r/t.splitLine.splitNumber,l=t.endNumber-t.startNumber,c=l/t.splitLine.splitNumber,h=t.startAngle,d=t.startNumber,u=0;u<t.splitLine.splitNumber+1;u++){var p={x:e*Math.cos(h*Math.PI),y:e*Math.sin(h*Math.PI)},f=t.labelFormat?t.labelFormat(d):d;p.x+=i.x-v(f)/2,p.y+=i.y;var x=p.x,g=p.y;o.beginPath(),o.setFontSize(n.fontSize),o.setFillStyle(t.labelColor||"#666666"),o.fillText(f,x,g+n.fontSize/2),o.closePath(),o.stroke(),h+=s,h>=2&&(h%=2),d+=c}}function pt(t,e,i,a,n,r){var s=a.extra.radar||{};e+=n.radarLabelTextMargin,t.forEach((function(t,l){var c={x:e*Math.cos(t),y:e*Math.sin(t)},h=p(c.x,c.y,i),d=h.x,u=h.y;o.approximatelyEqual(c.x,0)?d-=v(a.categories[l]||"")/2:c.x<0&&(d-=v(a.categories[l]||"")),r.beginPath(),r.setFontSize(n.fontSize),r.setFillStyle(s.labelColor||"#666666"),r.fillText(a.categories[l]||"",d,u+n.fontSize/2),r.closePath(),r.stroke()}))}function ft(t,e,i,a,n,r){for(var s=i.pieChartLinePadding,l=[],c=null,h=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):o.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var i=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2),a=t.color,n=t._radius_;return{arc:i,text:e,color:a,radius:n,textColor:t.textColor,textSize:t.textSize}})),d=0;d<h.length;d++){var u=h[d],x=Math.cos(u.arc)*(u.radius+s),g=Math.sin(u.arc)*(u.radius+s),y=Math.cos(u.arc)*u.radius,m=Math.sin(u.arc)*u.radius,b=x>=0?x+i.pieChartTextPadding:x-i.pieChartTextPadding,S=g,w=v(u.text,u.textSize||i.fontSize),A=S;c&&o.isSameXCoordinateArea(c.start,{x:b})&&(A=b>0?Math.min(S,c.start.y):x<0||S>0?Math.max(S,c.start.y):Math.min(S,c.start.y)),b<0&&(b-=w);var T={lineStart:{x:y,y:m},lineEnd:{x:x,y:g},start:{x:b,y:A},width:w,height:i.fontSize,text:u.text,color:u.color,textColor:u.textColor,textSize:u.textSize};c=f(T,c),l.push(c)}for(var P=0;P<l.length;P++){var C=l[P],k=p(C.lineStart.x,C.lineStart.y,r),D=p(C.lineEnd.x,C.lineEnd.y,r),L=p(C.start.x,C.start.y,r);a.setLineWidth(1*e.pixelRatio),a.setFontSize(i.fontSize),a.beginPath(),a.setStrokeStyle(C.color),a.setFillStyle(C.color),a.moveTo(k.x,k.y);var M=C.start.x<0?L.x+C.width:L.x,F=C.start.x<0?L.x-5:L.x+5;a.quadraticCurveTo(D.x,D.y,M,L.y),a.moveTo(k.x,k.y),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(L.x+C.width,L.y),a.arc(M,L.y,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(C.textSize||i.fontSize),a.setFillStyle(C.textColor||"#666666"),a.fillText(C.text,F,L.y+3),a.closePath(),a.stroke(),a.closePath()}}function xt(t,e,i,a){var n=e.extra.tooltip||{};n.gridType=void 0==n.gridType?"solid":n.gridType,n.dashLength=void 0==n.dashLength?4:n.dashLength;var o=e.area[0],s=e.height-e.area[2];if("dash"==n.gridType&&a.setLineDash([n.dashLength,n.dashLength]),a.setStrokeStyle(n.gridColor||"#cccccc"),a.setLineWidth(1*e.pixelRatio),a.beginPath(),a.moveTo(t,o),a.lineTo(t,s),a.stroke(),a.setLineDash([]),n.xAxisLabel){var l=e.categories[e.tooltip.index];a.setFontSize(i.fontSize);var c=v(l,i.fontSize),h=t-.5*c,d=s;a.beginPath(),a.setFillStyle(r(n.labelBgColor||i.toolTipBackground,n.labelBgOpacity||i.toolTipOpacity)),a.setStrokeStyle(n.labelBgColor||i.toolTipBackground),a.setLineWidth(1*e.pixelRatio),a.rect(h-i.toolTipPadding,d,c+2*i.toolTipPadding,i.fontSize+2*i.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(n.labelFontColor||i.fontColor),a.fillText(String(l),h,d+i.toolTipPadding+i.fontSize),a.closePath(),a.stroke()}}function gt(t,e,i){for(var a=n({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),o=t.area[3],s=t.width-t.area[1],l=st(a.data,t),c=0;c<l.length;c++){var h=n({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},l[c]);if("dash"==a.type&&i.setLineDash([a.dashLength,a.dashLength]),i.setStrokeStyle(h.lineColor),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.moveTo(o,h.y),i.lineTo(s,h.y),i.stroke(),i.setLineDash([]),h.showLabel){var d=t.yAxis.format?t.yAxis.format(Number(h.value)):h.value;i.setFontSize(e.fontSize);var u=v(d,e.fontSize),p=t.padding[3]+e.yAxisTitleWidth-e.toolTipPadding,f=Math.max(t.area[3],u+2*e.toolTipPadding),x=f-p,g=p+(x-u)/2,y=h.y;i.setFillStyle(r(h.labelBgColor,h.labelBgOpacity)),i.setStrokeStyle(h.labelBgColor),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.rect(p,y-.5*e.fontSize-e.toolTipPadding,x,e.fontSize+2*e.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(e.fontSize),i.setFillStyle(h.labelFontColor),i.fillText(String(d),g,y+.5*e.fontSize),i.stroke()}}}function vt(t,e,i,a,o){var s=n({},{gridType:"solid",dashLength:4},t.extra.tooltip),l=t.area[3],c=t.width-t.area[1];if("dash"==s.gridType&&i.setLineDash([s.dashLength,s.dashLength]),i.setStrokeStyle(s.gridColor||"#cccccc"),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.moveTo(l,t.tooltip.offset.y),i.lineTo(c,t.tooltip.offset.y),i.stroke(),i.setLineDash([]),s.yAxisLabel)for(var h=rt(t.tooltip.offset.y,t.series,t,e,a),d=t.chartData.yAxisData.yAxisWidth,u=t.area[3],p=t.width-t.area[1],f=0;f<h.length;f++){i.setFontSize(e.fontSize);var x=v(h[f],e.fontSize),g=void 0,y=void 0,m=void 0;"left"==d[f].position?(g=u-d[f].width,y=Math.max(g,g+x+2*e.toolTipPadding)):(g=p,y=Math.max(g+d[f].width,g+x+2*e.toolTipPadding)),m=y-g;var b=g+(m-x)/2,S=t.tooltip.offset.y;i.beginPath(),i.setFillStyle(r(s.labelBgColor||e.toolTipBackground,s.labelBgOpacity||e.toolTipOpacity)),i.setStrokeStyle(s.labelBgColor||e.toolTipBackground),i.setLineWidth(1*t.pixelRatio),i.rect(g,S-.5*e.fontSize-e.toolTipPadding,m,e.fontSize+2*e.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(e.fontSize),i.setFillStyle(s.labelFontColor||e.fontColor),i.fillText(h[f],b,S+.5*e.fontSize),i.closePath(),i.stroke(),"left"==d[f].position?u-=d[f].width+t.yAxis.padding:p+=d[f].width+t.yAxis.padding}}function yt(t,e,i,a,o){var s=n({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.tooltip),l=e.area[0],c=e.height-e.area[2];a.beginPath(),a.setFillStyle(r(s.activeBgColor,s.activeBgOpacity)),a.rect(t-o/2,l,o,c-l),a.closePath(),a.fill()}function mt(t,e,i,a,o,s,l){var c=n({},{showBox:!0,bgColor:"#000000",bgOpacity:.7,fontColor:"#FFFFFF"},i.extra.tooltip),h=4*i.pixelRatio,d=5*i.pixelRatio,u=8*i.pixelRatio,p=!1;"line"!=i.type&&"area"!=i.type&&"candle"!=i.type&&"mix"!=i.type||xt(i.tooltip.offset.x,i,a,o),e=n({x:0,y:0},e),e.y-=8*i.pixelRatio;var f=t.map((function(t){return v(t.text,a.fontSize)})),x=h+d+4*a.toolTipPadding+Math.max.apply(null,f),g=2*a.toolTipPadding+t.length*a.toolTipLineHeight;0!=c.showBox&&(e.x-Math.abs(i._scrollDistance_)+u+x>i.width&&(p=!0),g+e.y>i.height&&(e.y=i.height-g),o.beginPath(),o.setFillStyle(r(c.bgColor||a.toolTipBackground,c.bgOpacity||a.toolTipOpacity)),p?(o.moveTo(e.x,e.y+10*i.pixelRatio),o.lineTo(e.x-u,e.y+10*i.pixelRatio-5*i.pixelRatio),o.lineTo(e.x-u,e.y),o.lineTo(e.x-u-Math.round(x),e.y),o.lineTo(e.x-u-Math.round(x),e.y+g),o.lineTo(e.x-u,e.y+g),o.lineTo(e.x-u,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+u,e.y+10*i.pixelRatio-5*i.pixelRatio),o.lineTo(e.x+u,e.y),o.lineTo(e.x+u+Math.round(x),e.y),o.lineTo(e.x+u+Math.round(x),e.y+g),o.lineTo(e.x+u,e.y+g),o.lineTo(e.x+u,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 n=e.x+u+2*a.toolTipPadding,r=e.y+(a.toolTipLineHeight-a.fontSize)/2+a.toolTipLineHeight*i+a.toolTipPadding+1;p&&(n=e.x-x-u+2*a.toolTipPadding),o.fillRect(n,r,h,a.fontSize),o.closePath()}})),t.forEach((function(t,i){var n=e.x+u+2*a.toolTipPadding+h+d;p&&(n=e.x-x-u+2*a.toolTipPadding+ +h+d);var r=e.y+(a.toolTipLineHeight-a.fontSize)/2+a.toolTipLineHeight*i+a.toolTipPadding;o.beginPath(),o.setFontSize(a.fontSize),o.setFillStyle(c.fontColor),o.fillText(t.text,n,r+a.fontSize),o.closePath(),o.stroke()})))}function bt(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,s=r.xAxisPoints,l=r.eachSpacing,c=n({},{type:"group",width:l/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),h=[];a.save();var d=-2,u=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),d=Math.floor(-e._scrollDistance_/l)-2,u=d+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===o&&yt(e.tooltip.offset.x,e,i,a,l),t.forEach((function(n,r){var p,f,x;p=[].concat(e.chartData.yAxisData.ranges[n.index]),f=p.pop(),x=p.shift();var g=n.data;switch(c.type){case"group":var v=it(g,f,x,s,l,e,i,o),y=at(g,f,x,s,l,e,i,r,t,o);h.push(y),v=Y(v,l,t.length,r,i,e);for(var m=0;m<v.length;m++){var b=v[m];if(null!==b&&m>d&&m<u){a.beginPath(),a.setStrokeStyle(b.color||n.color),a.setLineWidth(1),a.setFillStyle(b.color||n.color);var S=b.x-b.width/2,w=e.height-b.y-e.area[2];a.moveTo(S-1,b.y),a.lineTo(S+b.width-2,b.y),a.lineTo(S+b.width-2,e.height-e.area[2]),a.lineTo(S,e.height-e.area[2]),a.lineTo(S,b.y),a.closePath(),a.stroke(),a.fill()}}break;case"stack":v=at(g,f,x,s,l,e,i,r,t,o);h.push(v),v=$(v,l,t.length,r,i,e,t);for(var A=0;A<v.length;A++){var T=v[A];if(null!==T&&A>d&&A<u){a.beginPath(),a.setFillStyle(T.color||n.color);S=T.x-T.width/2+1,w=e.height-T.y-e.area[2];var P=e.height-T.y0-e.area[2];r>0&&(w-=P),a.moveTo(S,T.y),a.fillRect(S,T.y,T.width-2,w),a.closePath(),a.fill()}}break;case"meter":v=it(g,f,x,s,l,e,i,o);if(h.push(v),v=Z(v,l,t.length,r,i,e,c.meter.border),0==r)for(var C=0;C<v.length;C++){var k=v[C];if(null!==k&&C>d&&C<u){a.beginPath(),a.setFillStyle(c.meter.fillColor);S=k.x-k.width/2,w=e.height-k.y-e.area[2];a.moveTo(S,k.y),a.fillRect(S,k.y,k.width,w),a.closePath(),a.fill(),c.meter.border>0&&(a.beginPath(),a.setStrokeStyle(n.color),a.setLineWidth(c.meter.border*e.pixelRatio),a.moveTo(S+.5*c.meter.border,k.y+w),a.lineTo(S+.5*c.meter.border,k.y+.5*c.meter.border),a.lineTo(S+k.width-.5*c.meter.border,k.y+.5*c.meter.border),a.lineTo(S+k.width-.5*c.meter.border,k.y+w),a.stroke())}}else for(var D=0;D<v.length;D++){var L=v[D];if(null!==L&&D>d&&D<u){a.beginPath(),a.setFillStyle(L.color||n.color);S=L.x-L.width/2,w=e.height-L.y-e.area[2];a.moveTo(S,L.y),a.fillRect(S,L.y,L.width,w),a.closePath(),a.fill()}}break}})),!1!==e.dataLabel&&1===o&&t.forEach((function(n,r){var h,d,u;h=[].concat(e.chartData.yAxisData.ranges[n.index]),d=h.pop(),u=h.shift();var p=n.data;switch(c.type){case"group":var f=it(p,d,u,s,l,e,i,o);f=Y(f,l,t.length,r,i,e),dt(f,n,i,a);break;case"stack":f=at(p,d,u,s,l,e,i,r,t,o);dt(f,n,i,a);break;case"meter":f=it(p,d,u,s,l,e,i,o);dt(f,n,i,a);break}})),a.restore(),{xAxisPoints:s,calPoints:h,eachSpacing:l}}function St(t,e,i,a,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=n({},{color:{},average:{}},i.extra.candle);s.color=n({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=n({},{show:!1,name:[],day:[],color:a.colors},s.average),i.extra.candle=s;var l=i.chartData.xAxisData,c=l.xAxisPoints,h=l.eachSpacing,d=[];o.save();var p=-2,f=c.length+2,x=0,g=i.width+h;return i._scrollDistance_&&0!==i._scrollDistance_&&!0===i.enableScroll&&(o.translate(i._scrollDistance_,0),p=Math.floor(-i._scrollDistance_/h)-2,f=p+i.xAxis.itemCount+4,x=-i._scrollDistance_-h+i.area[3],g=x+(i.xAxis.itemCount+4)*h),s.average.show&&e.forEach((function(t,e){var n,s,l;n=[].concat(i.chartData.yAxisData.ranges[t.index]),s=n.pop(),l=n.shift();for(var d=t.data,p=it(d,s,l,c,h,i,a,r),f=N(p),v=0;v<f.length;v++){var y=f[v];if(o.beginPath(),o.setStrokeStyle(t.color),o.setLineWidth(1),1===y.length)o.moveTo(y[0].x,y[0].y),o.arc(y[0].x,y[0].y,1,0,2*Math.PI);else{o.moveTo(y[0].x,y[0].y);for(var m=0,b=0;b<y.length;b++){var S=y[b];if(0==m&&S.x>x&&(o.moveTo(S.x,S.y),m=1),b>0&&S.x>x&&S.x<g){var w=u(y,b-1);o.bezierCurveTo(w.ctrA.x,w.ctrA.y,w.ctrB.x,w.ctrB.y,S.x,S.y)}}o.moveTo(y[0].x,y[0].y)}o.closePath(),o.stroke()}})),t.forEach((function(t,e){var n,l,u;n=[].concat(i.chartData.yAxisData.ranges[t.index]),l=n.pop(),u=n.shift();var x=t.data,g=et(x,l,u,c,h,i,a,r);d.push(g);for(var v=N(g),y=0;y<v[0].length;y++)if(y>p&&y<f){var m=v[0][y];o.beginPath(),x[y][1]-x[y][0]>0?(o.setStrokeStyle(s.color.upLine),o.setFillStyle(s.color.upFill),o.setLineWidth(1*i.pixelRatio),o.moveTo(m[3].x,m[3].y),o.lineTo(m[1].x,m[1].y),o.lineTo(m[1].x-h/4,m[1].y),o.lineTo(m[0].x-h/4,m[0].y),o.lineTo(m[0].x,m[0].y),o.lineTo(m[2].x,m[2].y),o.lineTo(m[0].x,m[0].y),o.lineTo(m[0].x+h/4,m[0].y),o.lineTo(m[1].x+h/4,m[1].y),o.lineTo(m[1].x,m[1].y),o.moveTo(m[3].x,m[3].y)):(o.setStrokeStyle(s.color.downLine),o.setFillStyle(s.color.downFill),o.setLineWidth(1*i.pixelRatio),o.moveTo(m[3].x,m[3].y),o.lineTo(m[0].x,m[0].y),o.lineTo(m[0].x-h/4,m[0].y),o.lineTo(m[1].x-h/4,m[1].y),o.lineTo(m[1].x,m[1].y),o.lineTo(m[2].x,m[2].y),o.lineTo(m[1].x,m[1].y),o.lineTo(m[1].x+h/4,m[1].y),o.lineTo(m[0].x+h/4,m[0].y),o.lineTo(m[0].x,m[0].y),o.moveTo(m[3].x,m[3].y)),o.closePath(),o.fill(),o.stroke()}})),o.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:h}}function wt(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),l=e.chartData.xAxisData,c=l.xAxisPoints,h=l.eachSpacing,d=e.height-e.area[2],p=[];a.save();var f=0,x=e.width+h;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),f=-e._scrollDistance_-h+e.area[3],x=f+(e.xAxis.itemCount+4)*h),t.forEach((function(t,n){var l,g,v;l=[].concat(e.chartData.yAxisData.ranges[t.index]),g=l.pop(),v=l.shift();var y=t.data,m=it(y,g,v,c,h,e,i,o);p.push(m);for(var b=N(m),S=0;S<b.length;S++){var w=b[S];if(a.beginPath(),a.setStrokeStyle(r(t.color,s.opacity)),s.gradient){var A=a.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);A.addColorStop("0",r(t.color,s.opacity)),A.addColorStop("1.0",r("#FFFFFF",.1)),a.setFillStyle(A)}else a.setFillStyle(r(t.color,s.opacity));if(a.setLineWidth(s.width*e.pixelRatio),w.length>1){var T=w[0],P=w[w.length-1];a.moveTo(T.x,T.y);var C=0;if("curve"===s.type)for(var k=0;k<w.length;k++){var D=w[k];if(0==C&&D.x>f&&(a.moveTo(D.x,D.y),C=1),k>0&&D.x>f&&D.x<x){var L=u(w,k-1);a.bezierCurveTo(L.ctrA.x,L.ctrA.y,L.ctrB.x,L.ctrB.y,D.x,D.y)}}else for(var M=0;M<w.length;M++){var F=w[M];0==C&&F.x>f&&(a.moveTo(F.x,F.y),C=1),M>0&&F.x>f&&F.x<x&&a.lineTo(F.x,F.y)}a.lineTo(P.x,d),a.lineTo(T.x,d),a.lineTo(T.x,T.y)}else{var _=w[0];a.moveTo(_.x-h/2,_.y),a.lineTo(_.x+h/2,_.y),a.lineTo(_.x+h/2,d),a.lineTo(_.x-h/2,d),a.moveTo(_.x-h/2,_.y)}if(a.closePath(),a.fill(),s.addLine){if("dash"==t.lineType){var R=t.dashLength?t.dashLength:8;R*=e.pixelRatio,a.setLineDash([R,R])}if(a.beginPath(),a.setStrokeStyle(t.color),a.setLineWidth(s.width*e.pixelRatio),1===w.length)a.moveTo(w[0].x,w[0].y),a.arc(w[0].x,w[0].y,1,0,2*Math.PI);else{a.moveTo(w[0].x,w[0].y);var I=0;if("curve"===s.type)for(var z=0;z<w.length;z++){var E=w[z];if(0==I&&E.x>f&&(a.moveTo(E.x,E.y),I=1),z>0&&E.x>f&&E.x<x){var W=u(w,z-1);a.bezierCurveTo(W.ctrA.x,W.ctrA.y,W.ctrB.x,W.ctrB.y,E.x,E.y)}}else for(var O=0;O<w.length;O++){var B=w[O];0==I&&B.x>f&&(a.moveTo(B.x,B.y),I=1),O>0&&B.x>f&&B.x<x&&a.lineTo(B.x,B.y)}a.moveTo(w[0].x,w[0].y)}a.stroke(),a.setLineDash([])}}!1!==e.dataPointShape&&ct(m,t.color,t.pointShape,a,e)})),!1!==e.dataLabel&&1===o&&t.forEach((function(t,n){var r,s,l;r=[].concat(e.chartData.yAxisData.ranges[t.index]),s=r.pop(),l=r.shift();var d=t.data,u=it(d,s,l,c,h,e,i,o);dt(u,t,i,a)})),a.restore(),{xAxisPoints:c,calPoints:p,eachSpacing:h}}function At(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=n({},{type:"straight",width:2},e.extra.line);r.width*=e.pixelRatio;var s=e.chartData.xAxisData,l=s.xAxisPoints,c=s.eachSpacing,h=[];a.save();var d=0,p=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),d=-e._scrollDistance_-c+e.area[3],p=d+(e.xAxis.itemCount+4)*c),t.forEach((function(t,n){var s,f,x;s=[].concat(e.chartData.yAxisData.ranges[t.index]),f=s.pop(),x=s.shift();var g=t.data,v=it(g,f,x,l,c,e,i,o);h.push(v);var y=N(v);if("dash"==t.lineType){var m=t.dashLength?t.dashLength:8;m*=e.pixelRatio,a.setLineDash([m,m])}a.beginPath(),a.setStrokeStyle(t.color),a.setLineWidth(r.width),y.forEach((function(t,e){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 i=0;if("curve"===r.type)for(var n=0;n<t.length;n++){var o=t[n];if(0==i&&o.x>d&&(a.moveTo(o.x,o.y),i=1),n>0&&o.x>d&&o.x<p){var s=u(t,n-1);a.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,o.x,o.y)}}else for(var l=0;l<t.length;l++){var c=t[l];0==i&&c.x>d&&(a.moveTo(c.x,c.y),i=1),l>0&&c.x>d&&c.x<p&&a.lineTo(c.x,c.y)}a.moveTo(t[0].x,t[0].y)}})),a.stroke(),a.setLineDash([]),!1!==e.dataPointShape&&ct(v,t.color,t.pointShape,a,e)})),!1!==e.dataLabel&&1===o&&t.forEach((function(t,n){var r,s,h;r=[].concat(e.chartData.yAxisData.ranges[t.index]),s=r.pop(),h=r.shift();var d=t.data,u=it(d,s,h,l,c,e,i,o);dt(u,t,i,a)})),a.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:c}}function Tt(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,c=e.height-e.area[2],h=[],d=0,p=0;t.forEach((function(t,e){"column"==t.type&&(p+=1)})),a.save();var f=-2,x=s.length+2,g=0,v=e.width+l;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),f=Math.floor(-e._scrollDistance_/l)-2,x=f+e.xAxis.itemCount+4,g=-e._scrollDistance_-l+e.area[3],v=g+(e.xAxis.itemCount+4)*l),t.forEach((function(t,o){var y,m,b;y=[].concat(e.chartData.yAxisData.ranges[t.index]),m=y.pop(),b=y.shift();var S=t.data,w=it(S,m,b,s,l,e,i,n);if(h.push(w),"column"==t.type){w=Y(w,l,p,d,i,e);for(var A=0;A<w.length;A++){var T=w[A];if(null!==T&&A>f&&A<x){a.beginPath(),a.setStrokeStyle(T.color||t.color),a.setLineWidth(1),a.setFillStyle(T.color||t.color);var P=T.x-T.width/2;e.height,T.y,e.area[2];a.moveTo(P,T.y),a.moveTo(P-1,T.y),a.lineTo(P+T.width-2,T.y),a.lineTo(P+T.width-2,e.height-e.area[2]),a.lineTo(P,e.height-e.area[2]),a.lineTo(P,T.y),a.closePath(),a.stroke(),a.fill(),a.closePath(),a.fill()}}d+=1}if("area"==t.type)for(var C=N(w),k=0;k<C.length;k++){var D=C[k];if(a.beginPath(),a.setStrokeStyle(t.color),a.setFillStyle(r(t.color,.2)),a.setLineWidth(2*e.pixelRatio),D.length>1){var L=D[0],M=D[D.length-1];a.moveTo(L.x,L.y);var F=0;if("curve"===t.style)for(var _=0;_<D.length;_++){var R=D[_];if(0==F&&R.x>g&&(a.moveTo(R.x,R.y),F=1),_>0&&R.x>g&&R.x<v){var I=u(D,_-1);a.bezierCurveTo(I.ctrA.x,I.ctrA.y,I.ctrB.x,I.ctrB.y,R.x,R.y)}}else for(var z=0;z<D.length;z++){var E=D[z];0==F&&E.x>g&&(a.moveTo(E.x,E.y),F=1),z>0&&E.x>g&&E.x<v&&a.lineTo(E.x,E.y)}a.lineTo(M.x,c),a.lineTo(L.x,c),a.lineTo(L.x,L.y)}else{var W=D[0];a.moveTo(W.x-l/2,W.y),a.lineTo(W.x+l/2,W.y),a.lineTo(W.x+l/2,c),a.lineTo(W.x-l/2,c),a.moveTo(W.x-l/2,W.y)}a.closePath(),a.fill()}if("line"==t.type){var O=N(w);O.forEach((function(i,n){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 s=0;s<i.length;s++){var l=i[s];if(0==r&&l.x>g&&(a.moveTo(l.x,l.y),r=1),s>0&&l.x>g&&l.x<v){var c=u(i,s-1);a.bezierCurveTo(c.ctrA.x,c.ctrA.y,c.ctrB.x,c.ctrB.y,l.x,l.y)}}else for(var h=0;h<i.length;h++){var d=i[h];0==r&&d.x>g&&(a.moveTo(d.x,d.y),r=1),h>0&&d.x>g&&d.x<v&&a.lineTo(d.x,d.y)}a.moveTo(i[0].x,i[0].y)}a.stroke(),a.setLineDash([])}))}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&&ct(w,t.color,t.pointShape,a,e)})),!1!==e.dataLabel&&1===n){d=0;t.forEach((function(t,o){var r,c,h;r=[].concat(e.chartData.yAxisData.ranges[t.index]),c=r.pop(),h=r.shift();var u=t.data,f=it(u,c,h,s,l,e,i,n);"column"!==t.type?dt(f,t,i,a):(f=Y(f,l,p,d,i,e),dt(f,t,i,a),d+=1)}))}return a.restore(),{xAxisPoints:s,calPoints:h,eachSpacing:l}}function Pt(t,e,i,a,n,o){var r=t.extra.tooltip||{};r.horizentalLine&&t.tooltip&&1===a&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&vt(t,e,i,n,o),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&&mt(t.tooltip.textList,t.tooltip.offset,t,e,i,n,o),i.restore()}function Ct(t,e,i,a){var n=e.chartData.xAxisData,o=n.xAxisPoints,r=n.startX,s=n.endX,l=n.eachSpacing,c="center";"line"!=e.type&&"area"!=e.type||(c=e.xAxis.boundaryGap);var h=e.height-e.area[2],u=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var p=e.height-e.area[2]+i.xAxisHeight,f=s-r,x=l*(o.length-1),g=f*f/x,y=0;e._scrollDistance_&&(y=-e._scrollDistance_*f/x),a.beginPath(),a.setLineCap("round"),a.setLineWidth(6*e.pixelRatio),a.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),a.moveTo(r,p),a.lineTo(s,p),a.stroke(),a.closePath(),a.beginPath(),a.setLineCap("round"),a.setLineWidth(6*e.pixelRatio),a.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),a.moveTo(r+y,p),a.lineTo(r+y+g,p),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),o.forEach((function(t,i){i>0&&(a.beginPath(),a.moveTo(t-l/2,h),a.lineTo(t-l/2,h+3*e.pixelRatio),a.closePath(),a.stroke())}))),!0!==e.xAxis.disableGrid&&(a.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),a.setLineCap("butt"),a.setLineWidth(1*e.pixelRatio),"dash"==e.xAxis.gridType&&a.setLineDash([e.xAxis.dashLength,e.xAxis.dashLength]),e.xAxis.gridEval=e.xAxis.gridEval||1,o.forEach((function(t,i){i%e.xAxis.gridEval==0&&(a.beginPath(),a.moveTo(t,h),a.lineTo(t,u),a.stroke())})),a.setLineDash([])),!0!==e.xAxis.disabled){var m=t.length;e.xAxis.labelCount&&(m=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,m-=1);for(var b=Math.ceil(t.length/m),S=[],w=t.length,A=0;A<w;A++)A%b!==0?S.push(""):S.push(t[A]);S[w-1]=t[w-1];var T=e.xAxis.fontSize||i.fontSize;0===i._xAxisTextAngle_?S.forEach((function(t,n){var r=-v(String(t),T)/2;"center"==c&&(r+=l/2);var s=0;e.xAxis.scrollShow&&(s=6*e.pixelRatio),a.beginPath(),a.setFontSize(T),a.setFillStyle(e.xAxis.fontColor||"#666666"),a.fillText(String(t),o[n]+r,h+T+(i.xAxisHeight-s-T)/2),a.closePath(),a.stroke()})):S.forEach((function(t,n){a.save(),a.beginPath(),a.setFontSize(T),a.setFillStyle(e.xAxis.fontColor||"#666666");var r=v(String(t),T),s=-r;"center"==c&&(s+=l/2);var u=d(o[n]+l/2,h+T/2+5,e.height),p=u.transX,f=u.transY;a.rotate(-1*i._xAxisTextAngle_),a.translate(p,f),a.fillText(String(t),o[n]+s,h+T+5),a.closePath(),a.stroke(),a.restore()}))}a.restore(),e.xAxis.axisLine&&(a.beginPath(),a.setStrokeStyle(e.xAxis.axisLineColor),a.setLineWidth(1*e.pixelRatio),a.moveTo(r,e.height-e.area[2]),a.lineTo(s,e.height-e.area[2]),a.stroke())}function kt(t,e,i,a){if(!0!==e.yAxis.disableGrid){for(var n=e.height-e.area[0]-e.area[2],o=n/e.yAxis.splitNumber,r=e.area[3],s=e.chartData.xAxisData.xAxisPoints,l=e.chartData.xAxisData.eachSpacing,c=l*(s.length-1),h=r+c,d=[],u=0;u<e.yAxis.splitNumber+1;u++)d.push(e.height-e.area[2]-o*u);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),d.forEach((function(t,e){a.beginPath(),a.moveTo(r,t),a.lineTo(h,t),a.stroke()})),a.setLineDash([]),a.restore()}}function Dt(t,e,i,a){if(!0!==e.yAxis.disabled){var n=e.height-e.area[0]-e.area[2],o=n/e.yAxis.splitNumber,r=e.area[3],s=e.width-e.area[1],l=e.height-e.area[2],c=l+i.xAxisHeight;e.xAxis.scrollShow&&(c-=3*e.pixelRatio),e.xAxis.rotateLabel&&(c=e.height-e.area[2]+3),a.beginPath(),a.setFillStyle(e.background||"#ffffff"),e._scrollDistance_<0&&a.fillRect(0,0,r,c),1==e.enableScroll&&a.fillRect(s,0,e.width,c),a.closePath(),a.stroke();for(var h=[],d=0;d<=e.yAxis.splitNumber;d++)h.push(e.area[0]+o*d);for(var u=e.area[3],p=e.width-e.area[1],f=function(t){var n=e.yAxis.data[t];if(!0!==n.disabled){var o=e.chartData.yAxisData.rangesFormat[t],r=n.fontSize||i.fontSize,s=e.chartData.yAxisData.yAxisWidth[t];if(o.forEach((function(t,i){var o=h[i]?h[i]:l;a.beginPath(),a.setFontSize(r),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(n.axisLineColor||"#cccccc"),a.setFillStyle(n.fontColor||"#666666"),"left"==s.position?(a.fillText(String(t),u-s.width,o+r/2),1==n.calibration&&(a.moveTo(u,o),a.lineTo(u-3*e.pixelRatio,o))):(a.fillText(String(t),p+4*e.pixelRatio,o+r/2),1==n.calibration&&(a.moveTo(p,o),a.lineTo(p+3*e.pixelRatio,o))),a.closePath(),a.stroke()})),!1!==n.axisLine&&(a.beginPath(),a.setStrokeStyle(n.axisLineColor||"#cccccc"),a.setLineWidth(1*e.pixelRatio),"left"==s.position?(a.moveTo(u,e.height-e.area[2]),a.lineTo(u,e.area[0])):(a.moveTo(p,e.height-e.area[2]),a.lineTo(p,e.area[0])),a.stroke()),e.yAxis.showTitle){var c=n.titleFontSize||i.fontSize,d=n.title;a.beginPath(),a.setFontSize(c),a.setFillStyle(n.titleFontColor||"#666666"),"left"==s.position?a.fillText(d,u-v(d,c)/2,e.area[0]-10*e.pixelRatio):a.fillText(d,p-v(d,c)/2,e.area[0]-10*e.pixelRatio),a.closePath(),a.stroke()}"left"==s.position?u-=s.width+e.yAxis.padding:p+=s.width+e.yAxis.padding}},x=0;x<e.yAxis.data.length;x++)f(x)}}function Lt(t,e,i,a,n){if(!1!==e.legend.show){var o=n.legendData,r=o.points,s=o.area,l=e.legend.padding,c=e.legend.fontSize,h=15*e.pixelRatio,d=5*e.pixelRatio,u=e.legend.itemGap,p=Math.max(e.legend.lineHeight*e.pixelRatio,c);a.beginPath(),a.setLineWidth(e.legend.borderWidth),a.setStrokeStyle(e.legend.borderColor),a.setFillStyle(e.legend.backgroundColor),a.moveTo(s.start.x,s.start.y),a.rect(s.start.x,s.start.y,s.width,s.height),a.closePath(),a.fill(),a.stroke(),r.forEach((function(t,n){var r=0,f=0;r=o.widthArr[n],f=o.heightArr[n];var x=0,g=0;"top"==e.legend.position||"bottom"==e.legend.position?(x=s.start.x+(s.width-r)/2,g=s.start.y+l+n*p):(r=0==n?0:o.widthArr[n-1],x=s.start.x+l+r,g=s.start.y+l+(s.height-f)/2),a.setFontSize(i.fontSize);for(var y=0;y<t.length;y++){var m=t[y];switch(m.area=[0,0,0,0],m.area[0]=x,m.area[1]=g,m.area[3]=g+p,a.beginPath(),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(m.show?m.color:e.legend.hiddenColor),a.setFillStyle(m.show?m.color:e.legend.hiddenColor),m.legendShape){case"line":a.moveTo(x,g+.5*p-2*e.pixelRatio),a.fillRect(x,g+.5*p-2*e.pixelRatio,15*e.pixelRatio,4*e.pixelRatio);break;case"triangle":a.moveTo(x+7.5*e.pixelRatio,g+.5*p-5*e.pixelRatio),a.lineTo(x+2.5*e.pixelRatio,g+.5*p+5*e.pixelRatio),a.lineTo(x+12.5*e.pixelRatio,g+.5*p+5*e.pixelRatio),a.lineTo(x+7.5*e.pixelRatio,g+.5*p-5*e.pixelRatio);break;case"diamond":a.moveTo(x+7.5*e.pixelRatio,g+.5*p-5*e.pixelRatio),a.lineTo(x+2.5*e.pixelRatio,g+.5*p),a.lineTo(x+7.5*e.pixelRatio,g+.5*p+5*e.pixelRatio),a.lineTo(x+12.5*e.pixelRatio,g+.5*p),a.lineTo(x+7.5*e.pixelRatio,g+.5*p-5*e.pixelRatio);break;case"circle":a.moveTo(x+7.5*e.pixelRatio,g+.5*p),a.arc(x+7.5*e.pixelRatio,g+.5*p,5*e.pixelRatio,0,2*Math.PI);break;case"rect":a.moveTo(x,g+.5*p-5*e.pixelRatio),a.fillRect(x,g+.5*p-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio);break;default:a.moveTo(x,g+.5*p-5*e.pixelRatio),a.fillRect(x,g+.5*p-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio)}a.closePath(),a.fill(),a.stroke(),x+=h+d;var b=.5*p+.5*c-2;a.beginPath(),a.setFontSize(c),a.setFillStyle(m.show?e.legend.fontColor:e.legend.hiddenColor),a.fillText(m.name,x,g+b),a.closePath(),a.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(x+=v(m.name,c)+u,m.area[2]=x):(m.area[2]=x+v(m.name,c)+u,x-=h+d,g+=p)}}))}}function Mt(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==i.pieChartLinePadding&&(i.pieChartLinePadding=s.activeRadius);var c=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding);t=Q(t,c,o);var h=s.activeRadius;if(t=t.map((function(t){return t._start_+=s.offsetAngle*Math.PI/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(a.beginPath(),a.setFillStyle(r(t.color,e.extra.pie.activeOpacity||.5)),a.moveTo(l.x,l.y),a.arc(l.x,l.y,t._radius_+h,t._start_,t._start_+2*t._proportion_*Math.PI),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(l.x,l.y),a.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),a.closePath(),a.fill(),1==s.border&&a.stroke()})),"ring"===e.type){var d=.6*c;"number"===typeof e.extra.pie.ringWidth&&e.extra.pie.ringWidth>0&&(d=Math.max(0,c-e.extra.pie.ringWidth)),a.beginPath(),a.setFillStyle(e.background||"#ffffff"),a.moveTo(l.x,l.y),a.arc(l.x,l.y,d,0,2*Math.PI),a.closePath(),a.fill()}if(!1!==e.dataLabel&&1===o){for(var u=!1,p=0,f=t.length;p<f;p++)if(t[p].data>0){u=!0;break}u&&ft(t,e,i,a,c,l)}return 1===o&&"ring"===e.type&&ht(e,i,a,l),{center:l,radius:c,series:t}}function Ft(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{type:"area",activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.rose);0==i.pieChartLinePadding&&(i.pieChartLinePadding=s.activeRadius);var l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},c=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding),h=s.minRadius||.5*c;t=j(t,s.type,h,c,o);var d=s.activeRadius;if(t=t.map((function(t){return t._start_+=(s.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(a.beginPath(),a.setFillStyle(r(t.color,s.activeOpacity||.5)),a.moveTo(l.x,l.y),a.arc(l.x,l.y,d+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),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(l.x,l.y),a.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),a.closePath(),a.fill(),1==s.border&&a.stroke()})),!1!==e.dataLabel&&1===o){for(var u=!1,p=0,f=t.length;p<f;p++)if(t[p].data>0){u=!0;break}u&&ft(t,e,i,a,c,l)}return{center:l,radius:c,series:t}}function _t(t,e,i,a){var o,r,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=n({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=U(t,l,s),o=l.center?l.center:{x:e.width/2,y:e.height/2},l.radius?r=l.radius:(r=Math.min(o.x,o.y),r-=5*e.pixelRatio,r-=l.width/2);for(var c=0;c<t.length;c++){var h=t[c];a.setLineWidth(l.width),a.setStrokeStyle(l.backgroundColor||"#E9E9E9"),a.setLineCap("round"),a.beginPath(),"default"==l.type?a.arc(o.x,o.y,r-(l.width+l.gap)*c,l.startAngle*Math.PI,l.endAngle*Math.PI,!1):a.arc(o.x,o.y,r-(l.width+l.gap)*c,0,2*Math.PI,!1),a.stroke(),a.setLineWidth(l.width),a.setStrokeStyle(h.color),a.setLineCap("round"),a.beginPath(),a.arc(o.x,o.y,r-(l.width+l.gap)*c,l.startAngle*Math.PI,h._proportion_*Math.PI,!1),a.stroke()}return ht(e,i,a,o),{center:o,radius:r,series:t}}function Rt(t,e,i,a,o){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,l=n({},{type:"default",startAngle:.75,endAngle:.25,width:15,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},i.extra.gauge);void 0==l.oldAngle&&(l.oldAngle=l.startAngle),void 0==l.oldData&&(l.oldData=0),t=V(t,l.startAngle,l.endAngle);var c={x:i.width/2,y:i.height/2},h=Math.min(c.x,c.y);h-=5*i.pixelRatio,h-=l.width/2;var d=h-l.width,u=0;if("progress"==l.type){var p=h-3*l.width;o.beginPath();var f=o.createLinearGradient(c.x,c.y-p,c.x,c.y+p);f.addColorStop("0",r(e[0].color,.3)),f.addColorStop("1.0",r("#FFFFFF",.1)),o.setFillStyle(f),o.arc(c.x,c.y,p,0,2*Math.PI,!1),o.fill(),o.setLineWidth(l.width),o.setStrokeStyle(r(e[0].color,.3)),o.setLineCap("round"),o.beginPath(),o.arc(c.x,c.y,d,l.startAngle*Math.PI,l.endAngle*Math.PI,!1),o.stroke(),u=l.startAngle-l.endAngle+1;l.splitLine.splitNumber;var x=u/l.splitLine.splitNumber/l.splitLine.childNumber,g=-h-.5*l.width-l.splitLine.fixRadius,v=-h-l.width-l.splitLine.fixRadius+l.splitLine.width;o.save(),o.translate(c.x,c.y),o.rotate((l.startAngle-1)*Math.PI);for(var y=l.splitLine.splitNumber*l.splitLine.childNumber+1,m=e[0].data*s,b=0;b<y;b++)o.beginPath(),m>b/y?o.setStrokeStyle(r(e[0].color,1)):o.setStrokeStyle(r(e[0].color,.3)),o.setLineWidth(3*i.pixelRatio),o.moveTo(g,0),o.lineTo(v,0),o.stroke(),o.rotate(x*Math.PI);o.restore(),e=U(e,l,s),o.setLineWidth(l.width),o.setStrokeStyle(e[0].color),o.setLineCap("round"),o.beginPath(),o.arc(c.x,c.y,d,l.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),o.stroke();var S=h-2.5*l.width;o.save(),o.translate(c.x,c.y),o.rotate((e[0]._proportion_-1)*Math.PI),o.beginPath(),o.setLineWidth(l.width/3);var w=o.createLinearGradient(0,.6*-S,0,.6*S);w.addColorStop("0",r("#FFFFFF",0)),w.addColorStop("0.5",r(e[0].color,1)),w.addColorStop("1.0",r("#FFFFFF",0)),o.setStrokeStyle(w),o.arc(0,0,S,.85*Math.PI,1.15*Math.PI,!1),o.stroke(),o.beginPath(),o.setLineWidth(1),o.setStrokeStyle(e[0].color),o.setFillStyle(e[0].color),o.moveTo(-S-l.width/3/2,-4),o.lineTo(-S-l.width/3/2-4,0),o.lineTo(-S-l.width/3/2,4),o.lineTo(-S-l.width/3/2,-4),o.stroke(),o.fill(),o.restore()}else{o.setLineWidth(l.width),o.setLineCap("butt");for(var A=0;A<t.length;A++){var T=t[A];o.beginPath(),o.setStrokeStyle(T.color),o.arc(c.x,c.y,h,T._startAngle_*Math.PI,T._endAngle_*Math.PI,!1),o.stroke()}o.save(),u=l.startAngle-l.endAngle+1;var P=u/l.splitLine.splitNumber,C=u/l.splitLine.splitNumber/l.splitLine.childNumber,k=-h-.5*l.width-l.splitLine.fixRadius,D=-h-.5*l.width-l.splitLine.fixRadius+l.splitLine.width,L=-h-.5*l.width-l.splitLine.fixRadius+l.splitLine.childWidth;o.translate(c.x,c.y),o.rotate((l.startAngle-1)*Math.PI);for(var M=0;M<l.splitLine.splitNumber+1;M++)o.beginPath(),o.setStrokeStyle(l.splitLine.color),o.setLineWidth(2*i.pixelRatio),o.moveTo(k,0),o.lineTo(D,0),o.stroke(),o.rotate(P*Math.PI);o.restore(),o.save(),o.translate(c.x,c.y),o.rotate((l.startAngle-1)*Math.PI);for(var F=0;F<l.splitLine.splitNumber*l.splitLine.childNumber+1;F++)o.beginPath(),o.setStrokeStyle(l.splitLine.color),o.setLineWidth(1*i.pixelRatio),o.moveTo(k,0),o.lineTo(L,0),o.stroke(),o.rotate(C*Math.PI);o.restore(),e=X(e,t,l,s);for(var _=0;_<e.length;_++){var R=e[_];o.save(),o.translate(c.x,c.y),o.rotate((R._proportion_-1)*Math.PI),o.beginPath(),o.setFillStyle(R.color),o.moveTo(l.pointer.width,0),o.lineTo(0,-l.pointer.width/2),o.lineTo(-d,0),o.lineTo(0,l.pointer.width/2),o.lineTo(l.pointer.width,0),o.closePath(),o.fill(),o.beginPath(),o.setFillStyle("#FFFFFF"),o.arc(0,0,l.pointer.width/6,0,2*Math.PI,!1),o.fill(),o.restore()}!1!==i.dataLabel&&ut(l,h,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:h,innerRadius:d,categories:t,totalAngle:u}}function It(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),l=A(e.categories.length),c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},h=Math.min(c.x-(w(e.categories)+i.radarLabelTextMargin),c.y-i.radarLabelTextMargin);h-=e.padding[1],a.beginPath(),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(s.gridColor),l.forEach((function(t){var e=p(h*Math.cos(t),h*Math.sin(t),c);a.moveTo(c.x,c.y),a.lineTo(e.x,e.y)})),a.stroke(),a.closePath();for(var d=function(t){var i={};a.beginPath(),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(s.gridColor),l.forEach((function(e,n){var o=p(h/s.gridCount*t*Math.cos(e),h/s.gridCount*t*Math.sin(e),c);0===n?(i=o,a.moveTo(o.x,o.y)):a.lineTo(o.x,o.y)})),a.lineTo(i.x,i.y),a.stroke(),a.closePath()},u=1;u<=s.gridCount;u++)d(u);var f=G(l,c,h,t,e,o);return f.forEach((function(t,i){if(a.beginPath(),a.setFillStyle(r(t.color,s.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 n=t.data.map((function(t){return t.position}));ct(n,t.color,t.pointShape,a,e)}})),pt(l,h,c,e,i,a),{center:c,radius:h,angleList:l}}function zt(t,e,i){i=0==i?1:i;for(var a=[],n=0;n<i;n++)a[n]=Math.random();return Math.floor(a.reduce((function(t,e){return t+e}))/i*(e-t))+t}function Et(t,e,i,a){for(var n=!1,o=0;o<e.length;o++)if(e[o].area){if(!(t[3]<e[o].area[1]||t[0]>e[o].area[2]||t[1]>e[o].area[3]||t[2]<e[o].area[0])){n=!0;break}if(t[0]<0||t[1]<0||t[2]>i||t[3]>a){n=!0;break}n=!1}return n}function Wt(t){var e,i={};i.xMin=180,i.xMax=0,i.yMin=90,i.yMax=0;for(var a=0;a<t.length;a++)for(var n=t[a].geometry.coordinates,o=0;o<n.length;o++){e=n[o],1==e.length&&(e=e[0]);for(var r=0;r<e.length;r++){var s=e[r][0],l=e[r][1],c={x:s,y:l};i.xMin=i.xMin<c.x?i.xMin:c.x,i.xMax=i.xMax>c.x?i.xMax:c.x,i.yMin=i.yMin<c.y?i.yMin:c.y,i.yMax=i.yMax>c.y?i.yMax:c.y}}return i}function Nt(t,e,i,a,n,o){return{x:(e-i.xMin)*a+n,y:(i.yMax-t)*a+o}}function Ot(t,e,i,a,n,o){return{x:(e-n)/a+i.xMin,y:i.yMax-(t-o)/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 qt(t,e){for(var i=0,a=0;a<e.length;a++){var n=e[a][0];1==e.length&&(n=e[a][0]);for(var o=0;o<n.length-1;o++){var r=n[o],s=n[o+1];Bt(t,r,s)&&(i+=1)}}return i%2==1}function Ht(t,e,i,a){var o,s,l=n({},{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),c=t,h=Wt(c),d=e.width/Math.abs(h.xMax-h.xMin),u=e.height/Math.abs(h.yMax-h.yMin),p=d<u?d:u,f=e.width/2-Math.abs(h.xMax-h.xMin)/2*p,x=e.height/2-Math.abs(h.yMax-h.yMin)/2*p;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 g=0;g<c.length;g++){a.beginPath(),a.setLineWidth(l.borderWidth*e.pixelRatio),a.setStrokeStyle(l.borderColor),a.setFillStyle(r(t[g].color,l.fillOpacity)),e.tooltip&&e.tooltip.index==g&&(a.setStrokeStyle(l.activeBorderColor),a.setFillStyle(r(l.activeFillColor,l.activeFillOpacity)));for(var y=c[g].geometry.coordinates,m=0;m<y.length;m++){o=y[m],1==o.length&&(o=o[0]);for(var b=0;b<o.length;b++)s=Nt(o[b][1],o[b][0],h,p,f,x),0===b?(a.beginPath(),a.moveTo(s.x,s.y)):a.lineTo(s.x,s.y);a.fill(),1==l.border&&a.stroke()}if(1==e.dataLabel){var S=c[g].properties.centroid;if(S){s=Nt(S[1],S[0],h,p,f,x);var w=c[g].textSize||i.fontSize,A=c[g].properties.name;a.beginPath(),a.setFontSize(w),a.setFillStyle(c[g].textColor||"#666666"),a.fillText(A,s.x-v(A,w)/2,s.y+w/2),a.closePath(),a.stroke()}}}e.chartData.mapData={bounds:h,scale:p,xoffset:f,yoffset:x},Pt(e,i,a,1),a.draw()}function Gt(t,e){var i=t.series.sort((function(t,e){return parseInt(e.textSize)-parseInt(t.textSize)}));switch(e){case"normal":for(var a=0;a<i.length;a++){var n=i[a].name,o=i[a].textSize,r=v(n,o),s=void 0,l=void 0,c=void 0,h=0;while(1){h++,s=zt(-t.width/2,t.width/2,5)-r/2,l=zt(-t.height/2,t.height/2,5)+o/2,c=[s-5+t.width/2,l-5-o+t.height/2,s+r+5+t.width/2,l+5+t.height/2];var d=Et(c,i,t.width,t.height);if(!d)break;if(1e3==h){c=[-100,-100,-100,-100];break}}i[a].area=c}break;case"vertical":for(var u=function(){return Math.random()>.7},p=0;p<i.length;p++){var f=i[p].name,x=i[p].textSize,g=v(f,x),y=u(),m=void 0,b=void 0,S=void 0,w=void 0,A=0;while(1){A++;var T=void 0;if(y?(m=zt(-t.width/2,t.width/2,5)-g/2,b=zt(-t.height/2,t.height/2,5)+x/2,S=[b-5-g+t.width/2,-m-5+t.height/2,b+5+t.width/2,-m+x+5+t.height/2],w=[t.width-(t.width/2-t.height/2)-(-m+x+5+t.height/2)-5,t.height/2-t.width/2+(b-5-g+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-m+x+5+t.height/2)+x,t.height/2-t.width/2+(b-5-g+t.width/2)+g+5],T=Et(w,i,t.height,t.width)):(m=zt(-t.width/2,t.width/2,5)-g/2,b=zt(-t.height/2,t.height/2,5)+x/2,S=[m-5+t.width/2,b-5-x+t.height/2,m+g+5+t.width/2,b+5+t.height/2],T=Et(S,i,t.width,t.height)),!T)break;if(1e3==A){S=[-1e3,-1e3,-1e3,-1e3];break}}y?(i[p].area=w,i[p].areav=S):i[p].area=S,i[p].rotate=y}break}return i}function Qt(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;n({},{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 r=e.chartData.wordCloudData;a.translate(e.width/2,e.height/2);for(var s=0;s<r.length;s++){a.save(),r[s].rotate&&a.rotate(90*Math.PI/180);var l=r[s].name,c=r[s].textSize,h=v(l,c);a.beginPath(),a.setStrokeStyle(r[s].color),a.setFillStyle(r[s].color),a.setFontSize(c),r[s].rotate?r[s].areav[0]>0&&(e.tooltip&&e.tooltip.index==s?a.strokeText(l,(r[s].areav[0]+5-e.width/2)*o-h*(1-o)/2,(r[s].areav[1]+5+c-e.height/2)*o):a.fillText(l,(r[s].areav[0]+5-e.width/2)*o-h*(1-o)/2,(r[s].areav[1]+5+c-e.height/2)*o)):r[s].area[0]>0&&(e.tooltip&&e.tooltip.index==s?a.strokeText(l,(r[s].area[0]+5-e.width/2)*o-h*(1-o)/2,(r[s].area[1]+5+c-e.height/2)*o):a.fillText(l,(r[s].area[0]+5-e.width/2)*o-h*(1-o)/2,(r[s].area[1]+5+c-e.height/2)*o)),a.stroke(),a.restore()}a.restore()}function Kt(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),l=(e.height-e.area[0]-e.area[2])/t.length,c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},h=s.activeWidth,d=Math.min((e.width-e.area[1]-e.area[3])/2-h,(e.height-e.area[0]-e.area[2])/2-h);t=K(t,d,o),a.save(),a.translate(c.x,c.y);for(var u=0;u<t.length;u++)0==u?(e.tooltip&&e.tooltip.index==u&&(a.beginPath(),a.setFillStyle(r(t[u].color,s.activeOpacity)),a.moveTo(-h,0),a.lineTo(-t[u].radius-h,-l),a.lineTo(t[u].radius+h,-l),a.lineTo(h,0),a.lineTo(-h,0),a.closePath(),a.fill()),t[u].funnelArea=[c.x-t[u].radius,c.y-l,c.x+t[u].radius,c.y],a.beginPath(),a.setLineWidth(s.borderWidth*e.pixelRatio),a.setStrokeStyle(s.borderColor),a.setFillStyle(r(t[u].color,s.fillOpacity)),a.moveTo(0,0),a.lineTo(-t[u].radius,-l),a.lineTo(t[u].radius,-l),a.lineTo(0,0),a.closePath(),a.fill(),1==s.border&&a.stroke()):(e.tooltip&&e.tooltip.index==u&&(a.beginPath(),a.setFillStyle(r(t[u].color,s.activeOpacity)),a.moveTo(0,0),a.lineTo(-t[u-1].radius-h,0),a.lineTo(-t[u].radius-h,-l),a.lineTo(t[u].radius+h,-l),a.lineTo(t[u-1].radius+h,0),a.lineTo(0,0),a.closePath(),a.fill()),t[u].funnelArea=[c.x-t[u].radius,c.y-l*(u+1),c.x+t[u].radius,c.y-l*u],a.beginPath(),a.setLineWidth(s.borderWidth*e.pixelRatio),a.setStrokeStyle(s.borderColor),a.setFillStyle(r(t[u].color,s.fillOpacity)),a.moveTo(0,0),a.lineTo(-t[u-1].radius,0),a.lineTo(-t[u].radius,-l),a.lineTo(t[u].radius,-l),a.lineTo(t[u-1].radius,0),a.lineTo(0,0),a.closePath(),a.fill(),1==s.border&&a.stroke()),a.translate(0,-l);return a.restore(),!1!==e.dataLabel&&1===o&&jt(t,e,a,l,s.labelAlign,h,c),{center:c,radius:d,series:t}}function jt(t,e,i,a,n,r,s){for(var l=0;l<t.length;l++){var c=t[l],h=void 0,d=void 0,u=void 0,p=void 0,f=c.format?c.format(+c._proportion_.toFixed(2)):o.toFixed(100*c._proportion_)+"%";"right"==n?(h=0==l?(c.funnelArea[2]+s.x)/2:(c.funnelArea[2]+t[l-1].funnelArea[2])/2,d=h+2*r,u=c.funnelArea[1]+a/2,p=c.textSize||e.fontSize,i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(c.color),i.setFillStyle(c.color),i.beginPath(),i.moveTo(h,u),i.lineTo(d,u),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(d,u),i.arc(d,u,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(p),i.setFillStyle(c.textColor||"#666666"),i.fillText(f,d+5,u+p/2-2),i.closePath(),i.stroke(),i.closePath()):(h=0==l?(c.funnelArea[0]+s.x)/2:(c.funnelArea[0]+t[l-1].funnelArea[0])/2,d=h-2*r,u=c.funnelArea[1]+a/2,p=c.textSize||e.fontSize,i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(c.color),i.setFillStyle(c.color),i.beginPath(),i.moveTo(h,u),i.lineTo(d,u),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(d,u),i.arc(d,u,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(p),i.setFillStyle(c.textColor||"#666666"),i.fillText(f,d-5-v(f),u+p/2-2),i.closePath(),i.stroke(),i.closePath())}}function Ut(t,e){e.draw()}var Vt={easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},linear:function(t){return t}};function Xt(t){this.isStop=!1,t.duration="undefined"===typeof t.duration?1e3:t.duration,t.timing=t.timing||"linear";var e=17;function i(){return"undefined"!==typeof setTimeout?function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(t){t(null)}}var a=i(),n=null,o=function(i){if(null===i||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===n&&(n=i),i-n<t.duration){var r=(i-n)/t.duration,s=Vt[t.timing];r=s(r),t.onProcess&&t.onProcess(r),a(o,e)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};o=o.bind(this),a(o,e)}function Jt(t,e,i,a){var o=this,r=e.series,s=e.categories;r=x(r,e,i);var c=e.animation?e.duration:0;o.animationInstance&&o.animationInstance.stop();var h=null;if("candle"==t){var d=n({},e.extra.candle.average);d.show?(h=l(d.day,d.name,d.color,r[0].data),h=x(h,e,i),e.seriesMA=h):h=e.seriesMA?e.seriesMA=x(e.seriesMA,e,i):r}else h=r;e._series_=r=k(r),e.area=new Array(4);for(var u=0;u<4;u++)e.area[u]=e.padding[u];var p=O(h,e,i,e.chartData),f=p.area.wholeHeight,g=p.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;break}var v={},y=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type){if(v=ot(r,e,i),y=v.yAxisWidth,e.yAxis.showTitle){for(var m=0,b=0;b<e.yAxis.data.length;b++)m=Math.max(m,e.yAxis.data[b].titleFontSize?e.yAxis.data[b].titleFontSize:i.fontSize);e.area[0]+=(m+6)*e.pixelRatio}for(var S=0,w=0,A=0;A<y.length;A++)"left"==y[A].position?(e.area[3]+=w>0?y[A].width+e.yAxis.padding:y[A].width,w+=1):(e.area[1]+=S>0?y[A].width+e.yAxis.padding:y[A].width,S+=1)}else i.yAxisWidth=y;if(e.chartData.yAxisData=v,e.categories&&e.categories.length){e.chartData.xAxisData=tt(e.categories,e,i);var T=B(e.categories,e,i,e.chartData.xAxisData.eachSpacing),P=T.xAxisHeight,C=T.angle;i.xAxisHeight=P,i._xAxisTextAngle_=C,e.area[2]+=P,e.chartData.categoriesData=T}else if("line"===e.type||"area"===e.type||"points"===e.type){e.chartData.xAxisData=H(r,e,i),s=e.chartData.xAxisData.rangesFormat;var D=B(s,e,i,e.chartData.xAxisData.eachSpacing),L=D.xAxisHeight,M=D.angle;i.xAxisHeight=L,i._xAxisTextAngle_=M,e.area[2]+=L,e.chartData.categoriesData=D}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var F=0,_=e.chartData.xAxisData.xAxisPoints,R=e.chartData.xAxisData.startX,I=e.chartData.xAxisData.endX,z=e.chartData.xAxisData.eachSpacing,E=z*(_.length-1),W=I-R;F=W-E,o.scrollOption={currentOffset:F,startTouchX:F,distance:0,lastMoveTime:0},e._scrollDistance_=F}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(i._pieTextMaxLength_=!1===e.dataLabel?0:J(h)),t){case"word":var N=n({},{type:"normal",autoColors:!0},e.extra.word);1!=e.updateData&&void 0!=e.updateData||(e.chartData.wordCloudData=Gt(e,N.type)),this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),Qt(r,e,i,a,t),Ut(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"map":a.clearRect(0,0,e.width,e.height),Ht(r,e,i,a);break;case"funnel":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),e.chartData.funnelData=Kt(r,e,i,a,t),Lt(e.series,e,i,a,e.chartData),Pt(e,i,a,t),Ut(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"line":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),kt(s,e,i,a),Ct(s,e,i,a);var n=At(r,e,i,a,t),o=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Dt(r,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Lt(e.series,e,i,a,e.chartData),Pt(e,i,a,t,c,o),Ut(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"mix":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),kt(s,e,i,a),Ct(s,e,i,a);var n=Tt(r,e,i,a,t),o=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Dt(r,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Lt(e.series,e,i,a,e.chartData),Pt(e,i,a,t,c,o),Ut(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"column":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),kt(s,e,i,a),Ct(s,e,i,a);var n=bt(r,e,i,a,t),o=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Dt(r,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Lt(e.series,e,i,a,e.chartData),Pt(e,i,a,t,c,o),Ut(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"area":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),kt(s,e,i,a),Ct(s,e,i,a);var n=wt(r,e,i,a,t),o=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Dt(r,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Lt(e.series,e,i,a,e.chartData),Pt(e,i,a,t,c,o),Ut(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),e.chartData.pieData=Mt(r,e,i,a,t),Lt(e.series,e,i,a,e.chartData),Pt(e,i,a,t),Ut(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),e.chartData.pieData=Ft(r,e,i,a,t),Lt(e.series,e,i,a,e.chartData),Pt(e,i,a,t),Ut(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),e.chartData.radarData=It(r,e,i,a,t),Lt(e.series,e,i,a,e.chartData),Pt(e,i,a,t),Ut(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),e.chartData.arcbarData=_t(r,e,i,a,t),Ut(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),e.chartData.gaugeData=Rt(s,r,e,i,a,t),Ut(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"candle":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),kt(s,e,i,a),Ct(s,e,i,a);var n=St(r,h,e,i,a,t),o=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Dt(r,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Lt(h||e.series,e,i,a,e.chartData),Pt(e,i,a,t,c,o),Ut(e,a)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break}}function Yt(){this.events={}}Xt.prototype.stop=function(){this.isStop=!0},Yt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},Yt.prototype.trigger=function(){for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];var n=i[0],o=i.slice(1);this.events[n]&&this.events[n].forEach((function(t){try{t.apply(null,o)}catch(i){e.error(i)}}))};var Zt=function(t){t.pixelRatio=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize*t.pixelRatio:13*t.pixelRatio,t.title=n({},t.title),t.subtitle=n({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=n({},{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=n({},{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=n({},{show:!0,position:"bottom",float:"center",backgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(0,0,0,0)",borderWidth:0,padding:5,margin:5,itemGap:10,fontSize:t.fontSize,lineHeight:t.fontSize,fontColor:"#333333",format:{},hiddenColor:"#CECECE"},t.legend),t.legend.borderWidth=t.legend.borderWidth*t.pixelRatio,t.legend.itemGap=t.legend.itemGap*t.pixelRatio,t.legend.padding=t.legend.padding*t.pixelRatio,t.legend.margin=t.legend.margin*t.pixelRatio,t.extra=n({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate;var e=JSON.parse(JSON.stringify(a));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:a.yAxisSplit,e.rotate=t.rotate,t.rotate){var i=t.width,o=t.height;t.width=o,t.height=i}t.padding=t.padding?t.padding:e.padding;for(var r=0;r<4;r++)t.padding[r]*=t.pixelRatio;e.yAxisWidth=a.yAxisWidth*t.pixelRatio,e.xAxisHeight=a.xAxisHeight*t.pixelRatio,t.enableScroll&&t.xAxis.scrollShow&&(e.xAxisHeight+=6*t.pixelRatio),e.xAxisLineHeight=a.xAxisLineHeight*t.pixelRatio,e.fontSize=t.fontSize,e.titleFontSize=a.titleFontSize*t.pixelRatio,e.subtitleFontSize=a.subtitleFontSize*t.pixelRatio,e.toolTipPadding=a.toolTipPadding*t.pixelRatio,e.toolTipLineHeight=a.toolTipLineHeight*t.pixelRatio,e.columePadding=a.columePadding*t.pixelRatio,t.$this=t.$this?t.$this:this,this.context=uni.createCanvasContext(t.canvasId,t.$this),t.chartData={},this.event=new Yt,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,Jt.call(this,t.type,t,e,this.context)};Zt.prototype.updateData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=n({},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,r=tt(this.opts.categories,this.opts,this.config),s=r.xAxisPoints,l=r.startX,c=r.endX,h=r.eachSpacing,d=h*(s.length-1),u=c-l;o=u-d,this.scrollOption={currentOffset:o,startTouchX:o,distance:0,lastMoveTime:0},this.opts._scrollDistance_=o;break}Jt.call(this,this.opts.type,this.opts,this.config,this.context)},Zt.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var i=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=t.itemCount;var a=ot(this.opts.series,this.opts,this.config),n=a.yAxisWidth;this.config.yAxisWidth=n;var o=0,r=tt(this.opts.categories,this.opts,this.config),s=r.xAxisPoints,l=r.startX,c=r.endX,h=r.eachSpacing,d=h*i,u=c-l,p=u-h*(s.length-1);o=u/2-d,o>0&&(o=0),o<p&&(o=p),this.scrollOption={currentOffset:o,startTouchX:o,distance:0,lastMoveTime:0},this.opts._scrollDistance_=o,Jt.call(this,this.opts.type,this.opts,this.config,this.context)}else e.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?E({x:i.x,y:i.y},this.opts.chartData.pieData):"radar"===this.opts.type?_({x:i.x,y:i.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?R({x:i.x,y:i.y},this.opts.chartData.funnelData):"map"===this.opts.type?z({x:i.x,y:i.y},this.opts):"word"===this.opts.type?I({x:i.x,y:i.y},this.opts.chartData.wordCloudData):D({x:i.x,y:i.y},this.opts.chartData.calPoints,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 L({x:i.x,y:i.y},this.opts.chartData.legendData)}return-1},Zt.prototype.touchLegend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;if(i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],i){b(i,this.opts,t);var a=this.getLegendDataIndex(t);a>=0&&(this.opts.series[a].show=!this.opts.series[a].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,Jt.call(this,this.opts.type,this.opts,this.config,this.context))}},Zt.prototype.showToolTip=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null;a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a||e.log("touchError");var o=b(a,this.opts,t),r=this.scrollOption.currentOffset,s=n({},this.opts,{_scrollDistance_:r,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var l=this.getCurrentDataIndex(t);if(l>-1){var c=S(this.opts.series,l);if(0!==c.length){var h=T(c,this.opts.chartData.calPoints,l,this.opts.categories,i),d=h.textList,u=h.offset;u.y=o.y,s.tooltip={textList:d,offset:u,option:i,index:l}}}Jt.call(this,s.type,s,this.config,this.context)}if("mix"===this.opts.type){l=this.getCurrentDataIndex(t);if(l>-1){r=this.scrollOption.currentOffset,s=n({},this.opts,{_scrollDistance_:r,animation:!1}),c=S(this.opts.series,l);if(0!==c.length){var p=P(c,this.opts.chartData.calPoints,l,this.opts.categories,i);d=p.textList,u=p.offset;u.y=o.y,s.tooltip={textList:d,offset:u,option:i,index:l}}}Jt.call(this,s.type,s,this.config,this.context)}if("candle"===this.opts.type){l=this.getCurrentDataIndex(t);if(l>-1){r=this.scrollOption.currentOffset,s=n({},this.opts,{_scrollDistance_:r,animation:!1}),c=S(this.opts.series,l);if(0!==c.length){h=C(this.opts.series[0].data,c,this.opts.chartData.calPoints,l,this.opts.categories,this.opts.extra.candle,i),d=h.textList,u=h.offset;u.y=o.y,s.tooltip={textList:d,offset:u,option:i,index:l}}}Jt.call(this,s.type,s,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){l=this.getCurrentDataIndex(t);if(l>-1){r=this.scrollOption.currentOffset,s=n({},this.opts,{_scrollDistance_:r,animation:!1}),c=this.opts._series_[l],d=[{text:i.format?i.format(c):c.name+": "+c.data,color:c.color}],u={x:o.x,y:o.y};s.tooltip={textList:d,offset:u,option:i,index:l}}Jt.call(this,s.type,s,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){l=this.getCurrentDataIndex(t);if(l>-1){r=this.scrollOption.currentOffset,s=n({},this.opts,{_scrollDistance_:r,animation:!1}),c=this.opts._series_[l],d=[{text:i.format?i.format(c):c.properties.name,color:c.color}],u={x:o.x,y:o.y};s.tooltip={textList:d,offset:u,option:i,index:l}}s.updateData=!1,Jt.call(this,s.type,s,this.config,this.context)}if("radar"===this.opts.type){l=this.getCurrentDataIndex(t);if(l>-1){r=this.scrollOption.currentOffset,s=n({},this.opts,{_scrollDistance_:r,animation:!1}),c=S(this.opts.series,l);if(0!==c.length){d=c.map((function(t){return{text:i.format?i.format(t):t.name+": "+t.data,color:t.color}})),u={x:o.x,y:o.y};s.tooltip={textList:d,offset:u,option:i,index:l}}}Jt.call(this,s.type,s,this.config,this.context)}},Zt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=n({},this.opts,{_scrollDistance_:t,animation:!1});Jt.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 r,s=b(o,this.opts,t);r=s.x-this.scrollOption.startTouchX;var l=this.scrollOption.currentOffset,h=c(this,l+r,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=r=h-l;var d=n({},this.opts,{_scrollDistance_:l+r,animation:!1});return Jt.call(this,d.type,d,this.config,this.context),l+r}}},Zt.prototype.scrollEnd=function(t){if(!0===this.opts.enableScroll){var e=this.scrollOption,i=e.currentOffset,a=e.distance;this.scrollOption.currentOffset=i+a,this.scrollOption.distance=0}},"object"===typeof t.exports&&(t.exports=Zt)}).call(this,i("5a52")["default"])},e8c0:function(t,e,i){"use strict";i.r(e);var a=i("5c42"),n=i("737a");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("a51c");var r,s=i("f0c5"),l=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"e77e32d0",null,!1,a["a"],r);e["default"]=l.exports}}]); |