1 line
125 KiB
JavaScript
1 line
125 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-myHealth-myHealth"],{"06c5":function(t,e,i){"use strict";i("a630"),i("fb6a"),i("d3b7"),i("25f0"),i("3ca3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var a=o(i("6b75"));function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(t){if("string"===typeof t)return(0,a.default)(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?(0,a.default)(t,e):void 0}}},2909:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var a=s(i("6005")),o=s(i("db90")),n=s(i("06c5")),r=s(i("3427"));function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(0,a.default)(t)||(0,o.default)(t)||(0,n.default)(t)||(0,r.default)()}},3427:function(t,e,i){"use strict";function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=a},5106: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},"5c42":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var o=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)},n=[]},6005:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var a=o(i("6b75"));function o(t){return t&&t.__esModule?t:{default:t}}function n(t){if(Array.isArray(t))return(0,a.default)(t)}},"6b75":function(t,e,i){"use strict";function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,a=new Array(e);i<e;i++)a[i]=t[i];return a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=a},"717b":function(t,e,i){var a=i("5106");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("c261a2f8",a,!0,{sourceMap:!1,shadowMode:!1})},"737a":function(t,e,i){"use strict";i.r(e);var a=i("db88"),o=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},a51c:function(t,e,i){"use strict";var a=i("717b"),o=i.n(a);o.a},db88:function(t,e,i){"use strict";var a=i("4ea4");i("99af"),i("ac1f"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,n=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(t){var e=this;if(console.log("---start get location---"),r.devEnv)this.locationDetail="安徽省合肥市蜀山区";else{var i=window.location.href.split("#")[0],a={method:s.wechatJsSdk2,data:{url:i}};(0,r.callbackRequest)(a).then((function(t){if(1==t.data.returnCode){var i=t.data.returnData;e.init(i),setTimeout((function(){e.getLocation()}),400)}console.log("---end get location---")}))}console.log("--"+this.userId),this.currentTabIndex=t.currentTabIndex||0,0==this.currentTabIndex&&this.initData(),o=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(t){var e=this;this.$wx.config({debug:!1,appId:t.appId,timestamp:t.timestamp,nonceStr:t.noncestr,signature:t.signature,jsApiList:["openLocation","getLocation"]}),this.$wx.ready((function(){console.log("验证通过"),e.$wx.checkJsApi({jsApiList:["openLocation","getLocation"],success:function(t){console.log(t)},fail:function(t){console.log(t)}})})),this.$wx.error((function(t){console.log("验证失败")}))},getLocation:function(){var t=this;t.$wx.getLocation({type:"wgs84",success:function(e){console.log(e),t.longitude=e.longitude,t.latitude=e.latitude,t.getLocationBuildingByLngLat(e.longitude,e.latitude)},fail:function(){}})},getLocationBuildingByLngLat:function(t,e){var i=this,a=t,o=e,n="e1d3e8821fe4a57acded684fad753c10",s="https://restapi.amap.com/v3/geocode/regeo?output=JSON&location=".concat(a,",").concat(o,"&key=").concat(n,"&radius=1000&extensions=all"),l={};(0,r.callbackRequestNoTip)(s,l,"GET").then((function(t){if(console.log(t),t.data&&"1"==t.data.status&&t.data.regeocode){var e=t.data.regeocode;console.log(e.formatted_address),i.locationDetail=e.formatted_address,i.location=e.addressComponent.province,console.log(i.location),e.addressComponent.city&&(console.log(e.addressComponent.city),i.location+=e.addressComponent.city),console.log(i.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"}]};o.showLineA("canvasLineA",t)},changeDepartment1:function(t){this.twindex=t.detail.value},showLineA:function(t,e){p=new d.default({$this:o,canvasId:t,type:"line",fontSize:12,legend:{show:!0},dataLabel:!1,dataPointShape:!0,background:"#FFFFFF",pixelRatio:o.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:o.cWidth*o.pixelRatio,height:o.cHeight*o.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 t=this;if("获取中..."!=t.locationDetail){var e={method:s.saveMyHealthy,data:{userId:t.userId,longitude:t.longitude,latitude:t.latitude,commitTime:t.commitTime,temperature:t.twlist[t.twindex],cough:t.cough,weak:t.weak,breathe:t.breathe,epidemic:t.epidemic,overseas:t.overseas,discomfortExplain:t.discomfortExplain,location:t.location,locationDetail:t.locationDetail}};console.log("--"+this.userId),(0,r.callbackRequest)(e).then((function(e){1==e.data.returnCode&&((0,r.alertTip)(e.data.returnMsg),setTimeout((function(e){t.currentTabIndex=1}),2e3))}))}else(0,r.alertTip)("如未允许微信获取位置信息,请退出页面,重新授权!")},open:function(){console.log(1111111),this.$refs.calendar.open()},searchYjList:function(){console.log(this.seachStartdate+"--------"+this.seachEnddate);var t=new Date(this.seachStartdate),e=new Date(this.seachEnddate);t>e&&(0,r.alertTip)("开始时间需大于结束时间!")},searchContent:function(t,e){if(this.page=1,console.log(t+"--------"+e+"==-===="+this.visitTj[t].name),this.currentTabIndex=1,this.visitStateIndex=e,"合计"==this.visitTj[t].name)this.RersonIndex=0;else for(var i=0;this.deptList.length;i++)if(this.deptList[i]==this.visitTj[t].name){this.RersonIndex=i;break}this.seachListStartdate=this.seachStartdate,this.seachListEnddate=this.seachEnddate,this.getVisitMsgList(this.deptList[this.RersonIndex],e)},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,console.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 t=new Date(this.seachListStartdate),e=new Date(this.seachListEnddate);t>e?(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,n.default)(i.visitlist),(0,n.default)(t.data.returnData)),i.loadingType=0):i.loadingType=2)}))},getHealthyList:function(){var t=this,e={method:s.getHealthyList,data:{userId:this.userId}};(0,r.callbackRequest)(e).then((function(e){if(1==e.data.returnCode){console.log(e.data.returnData),t.visitTj=e.data.returnData.list,t.tmpV=e.data.returnData.tmpV;var i=e.data.returnData.categoriesmap;console.log("LineA====="+i),o.showLineA("canvasLineA",i)}}))},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,n.default)(e.insideList),(0,n.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(),o=t.getHours(),n=t.getMinutes();t.getSeconds();return e+"-"+i+"-"+a+" "+o+":"+n},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},db90:function(t,e,i){"use strict";function a(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}i("a4d3"),i("e01a"),i("d28b"),i("a630"),i("d3b7"),i("3ca3"),i("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=a},e3a8:function(t,e,i){"use strict";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},o=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 o(t,e){for(var i in e)t[i]=t[i]&&"[object Object]"===t[i].toString()?o(t[i],e[i]):t[i]=e[i];return t}return i.forEach((function(e){t=o(t,e)})),t},n={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return 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})),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a),n=parseInt(o[1],16),r=parseInt(o[2],16),s=parseInt(o[3],16);return"rgba("+n+","+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 o=[],n=0;n<t.length;n++){for(var r={data:[],name:e[n],color:i[n]},s=0,l=a.length;s<l;s++)if(s<t[n])r.data.push(null);else{for(var c=0,h=0;h<t[n];h++)c+=a[s-h][1];r.data.push(+(c/t[n]).toFixed(3))}o.push(r)}return o}function c(t,e,i,a,o){var n=o.width-o.area[1]-o.area[3],r=i.eachSpacing*(o.chartData.xAxisData.xAxisPoints.length-1),s=e;return e>=0?(s=0,t.event.trigger("scrollLeft")):Math.abs(e)>=r-n&&(s=n-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,o=i-e,n=a+(i-o-a)/Math.sqrt(2);n*=-1;var r=(i-o)*(Math.sqrt(2)-1)-(i-o-a)/Math.sqrt(2);return{transX:n,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,o=.2,n=null,r=null,s=null,l=null;if(e<1?(n=t[0].x+(t[1].x-t[0].x)*a,r=t[0].y+(t[1].y-t[0].y)*a):(n=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)*o,l=t[c].y-(t[c].y-t[c-1].y)*o}else s=t[e+1].x-(t[e+2].x-t[e].x)*o,l=t[e+1].y-(t[e+2].y-t[e].y)*o;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:n,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(n.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function 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,o=0;o<t.length;o++){var n=t[o];/[a-zA-Z]/.test(n)?i+=7:/[0-9]/.test(n)?i+=5.5:/\./.test(n)?i+=2.7:/-/.test(n)?i+=3.25:/[\u4e00-\u9fa5]/.test(n)?i+=10:/\(|\)/.test(n)?i+=3.73:/\s/.test(n)?i+=2.5:/%/.test(n)?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 o=0;o<t.length;o++)for(a=0;a<i.length;a++)i[a]+=t[o].data[a];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(i)}),[])}function b(t,e,i){var a,o;return t.clientX?e.rotate?(o=e.height-t.clientX*e.pixelRatio,a=(t.pageY-i.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):(a=t.clientX*e.pixelRatio,o=(t.pageY-i.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):e.rotate?(o=e.height-t.x*e.pixelRatio,a=t.y*e.pixelRatio):(a=t.x*e.pixelRatio,o=t.y*e.pixelRatio),{x:a,y:o}}function S(t,e){for(var i=[],a=0;a<t.length;a++){var o=t[a];if(null!==o.data[e]&&"undefined"!==typeof o.data[e]&&o.show){var n={};n.color=o.color,n.type=o.type,n.style=o.style,n.pointShape=o.pointShape,n.disableLegend=o.disableLegend,n.name=o.name,n.show=o.show,n.data=o.format?o.format(o.data[e]):o.data[e],i.push(n)}}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 o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},n=t.map((function(t){var e=[];return e=a||t.data,{text:o.format?o.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:n,offset:s}}function P(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},n=t.map((function(t){return{text:o.format?o.format(t,a[i]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));n=n.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:n,offset:s}}function C(t,e,i,a,o,n){var r=n.color.upFill,s=n.color.downFill,l=[r,r,s,r],c=[],h={text:o[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]},o={text:"收盘:"+e.data[1],color:l[1]},n={text:"最低:"+e.data[2],color:l[2]},h={text:"最高:"+e.data[3],color:l[3]};c.push(i,o,n,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 o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n=-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+o+r>e&&(n=i)})),n}function M(t,e,i){var a=-1;if(L(t,e.area)){for(var o=e.points,n=-1,r=0,s=o.length;r<s;r++)for(var l=o[r],c=0;c<l.length;c++){n+=1;var h=l[c]["area"];if(t.x>h[0]&&t.x<h[2]&&t.y>h[1]&&t.y<h[3]){a=n;break}}return a}return a}function L(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,o=-1;if(W(t,e.center,e.radius)){var n=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=n(-1*t),t}));s.forEach((function(t,e){var i=n(t-a/2),s=n(t+a/2);s<i&&(s+=2*Math.PI),(r>=i&&r<=s||r+2*Math.PI>=i&&r+2*Math.PI<=s)&&(o=e)}))}return o}function R(t,e){for(var i=-1,a=0,o=e.series.length;a<o;a++){var n=e.series[a];if(t.x>n.funnelArea[0]&&t.x<n.funnelArea[2]&&t.y>n.funnelArea[1]&&t.y<n.funnelArea[3]){i=a;break}}return i}function I(t,e){for(var i=-1,a=0,o=e.length;a<o;a++){var n=e[a];if(t.x>n.area[0]&&t.x<n.area[2]&&t.y>n.area[1]&&t.y<n.area[3]){i=a;break}}return i}function z(t,e){for(var i=-1,a=e.chartData.mapData,o=e.series,n=Nt(t.y,t.x,a.bounds,a.scale,a.xoffset,a.yoffset),r=[n.x,n.y],s=0,l=o.length;s<l;s++){var c=o[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 o=0,n=e.series.length;o<n;o++){var r=e.series[o];if(h(a,r._start_,r._start_+2*r._proportion_*Math.PI)){i=o;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 O(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 N(t,e,i,a){var o={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=o,o;var n=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),o.widthArr=p;var m=Math.max.apply(null,p);switch(e.legend.float){case"left":o.area.start.x=e.padding[3],o.area.end.x=e.padding[3]+2*n;break;case"right":o.area.start.x=e.width-e.padding[1]-m-2*n,o.area.end.x=e.width-e.padding[1];break;default:o.area.start.x=(e.width-m)/2-n,o.area.end.x=(e.width+m)/2+n}o.area.width=m+2*n,o.area.wholeWidth=m+2*n,o.area.height=d.length*h+2*n,o.area.wholeHeight=d.length*h+2*n+2*r,o.points=d}}else{var b=t.length,S=e.height-e.padding[0]-e.padding[2]-2*r-2*n,w=Math.min(Math.floor(S/h),b);switch(o.area.height=w*h+2*n,o.area.wholeHeight=w*h+2*n,e.legend.float){case"top":o.area.start.y=e.padding[0]+r,o.area.end.y=e.padding[0]+r+o.area.height;break;case"bottom":o.area.start.y=e.height-e.padding[2]-r-o.area.height,o.area.end.y=e.height-e.padding[2]-r;break;default:o.area.start.y=(e.height-o.area.height)/2,o.area.end.y=(e.height+o.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(o.points=T,T.length){for(var k=0;k<T.length;k++){for(var D=T[k],M=0,L=0;L<D.length;L++){var F=l+c+v(D[L].name||"undefined",s)+e.legend.itemGap;F>M&&(M=F)}o.widthArr.push(M),o.heightArr.push(D.length*h+2*n)}for(var _=0,R=0;R<o.widthArr.length;R++)_+=o.widthArr[R];o.area.width=_-e.legend.itemGap+2*n,o.area.wholeWidth=o.area.width+n}}switch(e.legend.position){case"top":o.area.start.y=e.padding[0]+r,o.area.end.y=e.padding[0]+r+o.area.height;break;case"bottom":o.area.start.y=e.height-e.padding[2]-o.area.height-r,o.area.end.y=e.height-e.padding[2]-r;break;case"left":o.area.start.x=e.padding[3],o.area.end.x=e.padding[3]+o.area.width;break;case"right":o.area.start.x=e.width-e.padding[1]-o.area.width,o.area.end.x=e.width-e.padding[1];break}return a.legendData=o,o}function B(t,e,i,a){var o={angle:0,xAxisHeight:i.xAxisHeight},n=t.map((function(t){return v(t,e.xAxis.fontSize||i.fontSize)})),r=Math.max.apply(this,n);return 1==e.xAxis.rotateLabel&&r+2*i.xAxisTextPadding>a&&(o.angle=45*Math.PI/180,o.xAxisHeight=2*i.xAxisTextPadding+r*Math.sin(o.angle)),o}function q(t,e,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=y(t),n=[];o=o.filter((function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),o.map((function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map((function(t){n.push(t)})):n.push(t[0]):n.push(t.value):n.push(t)}));var r=0,s=0;if(n.length>0&&(r=Math.min.apply(this,n),s=Math.max.apply(this,n)),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):n.toFixed(t,2),t}));var o=a.ranges.map((function(t){return t=n.toFixed(t,2),t=e.xAxis.format?e.xAxis.format(Number(t)):t,t}));a=Object.assign(a,tt(o,e,i));var r=a.eachSpacing,s=o.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,o){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,r=o.extra.radar||{};r.max=r.max||0;for(var s=Math.max(r.max,Math.max.apply(null,y(a))),l=[],c=function(o){var r=a[o],c={};c.color=r.color,c.legendShape=r.legendShape,c.pointShape=r.pointShape,c.data=[],r.data.forEach((function(a,o){var r={};r.angle=t[o],r.proportion=a/s,r.position=p(i*r.proportion*n*Math.cos(r.angle),i*r.proportion*n*Math.sin(r.angle),e),c.data.push(r)})),l.push(c)},h=0;h<a.length;h++)c(h);return l}function j(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=0,o=0,n=0;n<t.length;n++){var r=t[n];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_=o,o+=2*h._proportion_*Math.PI}return t}function Q(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 K(t,e,i,a){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=0,r=0,s=[],l=0;l<t.length;l++){var c=t[l];c.data=null===c.data?0:c.data,n+=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===n||"area"==e?(f._proportion_=f.data/n*o,f._rose_proportion_=1/t.length*o):(f._proportion_=f.data/n*o,f._rose_proportion_=f.data/n*o),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 o=t[a];o.data=null===o.data?0:o.data;var n=void 0;n="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,o._proportion_=n*o.data*i+e.startAngle,o._proportion_>=2&&(o._proportion_=o._proportion_%2)}return t}function V(t,e,i){for(var a=e-i+1,o=e,n=0;n<t.length;n++)t[n].value=null===t[n].value?0:t[n].value,t[n]._startAngle_=o,t[n]._endAngle_=a*t[n].value+e,t[n]._endAngle_>=2&&(t[n]._endAngle_=t[n]._endAngle_%2),o=t[n]._endAngle_;return t}function X(t,e,i){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=0;o<t.length;o++){var n=t[o];if(n.data=null===n.data?0:n.data,"auto"==i.pointer.color){for(var r=0;r<e.length;r++)if(n.data<=e[r].value){n.color=e[r].color;break}}else n.color=i.pointer.color;var s=i.startAngle-i.endAngle+1;n._endAngle_=s*n.data+i.startAngle,n._oldAngle_=i.oldAngle,i.oldAngle<i.endAngle&&(n._oldAngle_+=2),n.data>=i.oldData?n._proportion_=(n._endAngle_-n._oldAngle_)*a+i.oldAngle:n._proportion_=n._oldAngle_-(n._oldAngle_-n._endAngle_)*a,n._proportion_>=2&&(n._proportion_=n._proportion_%2)}return t}function J(t){t=j(t);for(var e=0,i=0;i<t.length;i++){var a=t[i],o=a.format?a.format(+a._proportion_.toFixed(2)):n.toFixed(100*a._proportion_)+"%";e=Math.max(e,v(o))}return e}function Y(t,e,i,a,o,n){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/i),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width)),t.width<=0&&(t.width=1),t.x+=(a+.5-i/2)*t.width,t)}))}function Z(t,e,i,a,o,n,r){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/2),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width)),a>0&&(t.width-=2*r),t)}))}function $(t,e,i,a,o,n,r){return t.map((function(t,i){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/2),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width)),t)}))}function tt(t,e,i){var a=e.width-e.area[1]-e.area[3],o=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&o>1&&"justify"==e.xAxis.boundaryGap&&(o-=1);var n=a/o,r=[],s=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){r.push(s+e*n)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?r.push(s+t.length*n):r.push(l)),{xAxisPoints:r,startX:s,endX:l,eachSpacing:n}}function et(t,e,i,a,o,n,r){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=n.height-n.area[0]-n.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(o/2);var u=t.value||t,p=c*(u-e)/(i-e);p*=s,d.y=n.height-Math.round(p)-n.area[2],h.push(d)})),l.push(h)}})),l}function it(t,e,i,a,o,n,r){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=n.type&&"area"!=n.type||(l=n.xAxis.boundaryGap);var c=[],h=n.height-n.area[0]-n.area[2],d=n.width-n.area[1]-n.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(n.chartData.xAxisData.ranges),f=p.shift(),x=p.pop(),g=t[1],u.x=n.area[3]+d*(t[0]-f)/(x-f);else g=t.value;"center"==l&&(u.x+=Math.round(o/2));var v=h*(g-e)/(i-e);v*=s,u.y=n.height-Math.round(v)-n.area[2],c.push(u)}})),c}function at(t,e,i,a,o,n,r,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,h=[],d=n.height-n.area[0]-n.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(o/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=n.height-Math.round(g)-n.area[2],u.y0=n.height-Math.round(y)-n.area[2],h.push(u)}})),h}function ot(t,e,i,a){var o,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;o="stack"==a?m(t,e.categories.length):y(t);var r=[];o=o.filter((function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),o.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)),n>-1?("number"===typeof e.yAxis.data[n].min&&(s=Math.min(e.yAxis.data[n].min,s)),"number"===typeof e.yAxis.data[n].max&&(l=Math.max(e.yAxis.data[n].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 nt(t,e,i){var a=o({},{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 o=e.yAxis.data[t];1==e.yAxis.disabled&&(o.disabled=!0),h[t]=ot(s[t],e,i,a.type,t);var r=o.fontSize||i.fontSize;u[t]={position:o.position?o.position:"left",width:0},d[t]=h[t].map((function(e){return e=n.toFixed(e,6),e=o.format?o.format(Number(e)):e,u[t].width=Math.max(u[t].width,v(e,r)+5),e}));var l=o.calibration?4*e.pixelRatio:0;u[t].width+=l+3*e.pixelRatio,!0===o.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]=ot(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=n.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,o){for(var n=[].concat(i.chartData.yAxisData.ranges),r=i.height-i.area[0]-i.area[2],s=i.area[0],l=[],c=0;c<n.length;c++){var h=n[c].shift(),d=n[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,o=e.height-e.area[0]-e.area[2],n=0;n<t.length;n++){t[n].yAxisIndex=t[n].yAxisIndex?t[n].yAxisIndex:0;var r=[].concat(e.chartData.yAxisData.ranges[t[n].yAxisIndex]);i=r.pop(),a=r.shift();var s=o*(t[n].value-i)/(a-i);t[n].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,o){a.beginPath(),"hollow"==o.dataPointShapeType?(a.setStrokeStyle(e),a.setFillStyle(o.background),a.setLineWidth(2*o.pixelRatio)):(a.setStrokeStyle("#ffffff"),a.setFillStyle(e),a.setLineWidth(1*o.pixelRatio)),"diamond"===i?t.forEach((function(t,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*o.pixelRatio,t.y),a.arc(t.x,t.y,3*o.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 o=t.title.fontSize||e.titleFontSize,n=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?o:0,d=s?n:0,u=5;if(s){var p=v(s,n),f=a.x-p/2+(t.subtitle.offsetX||0),x=a.y+n/2+(t.subtitle.offsetY||0);r&&(x+=(h+u)/2),i.beginPath(),i.setFontSize(n),i.setFillStyle(c),i.fillText(s,f,x),i.closePath(),i.stroke()}if(r){var g=v(r,o),y=a.x-g/2+(t.title.offsetX||0),m=a.y+o/2+(t.title.offsetY||0);s&&(m-=(d+u)/2),i.beginPath(),i.setFontSize(o),i.setFillStyle(l),i.fillText(r,y,m),i.closePath(),i.stroke()}}function dt(t,e,i,a){var o=e.data;t.forEach((function(t,n){if(null!==t){a.beginPath(),a.setFontSize(e.textSize||i.fontSize),a.setFillStyle(e.textColor||"#666666");var r=o[n];"object"===typeof o[n]&&null!==o[n]&&(r=o[n].constructor==Array?o[n][1]:o[n].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,o,n){e-=t.width/2+o.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;n.beginPath(),n.setFontSize(o.fontSize),n.setFillStyle(t.labelColor||"#666666"),n.fillText(f,x,g+o.fontSize/2),n.closePath(),n.stroke(),h+=s,h>=2&&(h%=2),d+=c}}function pt(t,e,i,a,o,r){var s=a.extra.radar||{};e+=o.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;n.approximatelyEqual(c.x,0)?d-=v(a.categories[l]||"")/2:c.x<0&&(d-=v(a.categories[l]||"")),r.beginPath(),r.setFontSize(o.fontSize),r.setFillStyle(s.labelColor||"#666666"),r.fillText(a.categories[l]||"",d,u+o.fontSize/2),r.closePath(),r.stroke()}))}function ft(t,e,i,a,o,r){for(var s=i.pieChartLinePadding,l=[],c=null,h=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):n.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var i=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2),a=t.color,o=t._radius_;return{arc:i,text:e,color:a,radius:o,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&&n.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),M=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 L=C.start.x<0?M.x+C.width:M.x,F=C.start.x<0?M.x-5:M.x+5;a.quadraticCurveTo(D.x,D.y,L,M.y),a.moveTo(k.x,k.y),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(M.x+C.width,M.y),a.arc(L,M.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,M.y+3),a.closePath(),a.stroke(),a.closePath()}}function xt(t,e,i,a){var o=e.extra.tooltip||{};o.gridType=void 0==o.gridType?"solid":o.gridType,o.dashLength=void 0==o.dashLength?4:o.dashLength;var n=e.area[0],s=e.height-e.area[2];if("dash"==o.gridType&&a.setLineDash([o.dashLength,o.dashLength]),a.setStrokeStyle(o.gridColor||"#cccccc"),a.setLineWidth(1*e.pixelRatio),a.beginPath(),a.moveTo(t,n),a.lineTo(t,s),a.stroke(),a.setLineDash([]),o.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(o.labelBgColor||i.toolTipBackground,o.labelBgOpacity||i.toolTipOpacity)),a.setStrokeStyle(o.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(o.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=o({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),n=t.area[3],s=t.width-t.area[1],l=st(a.data,t),c=0;c<l.length;c++){var h=o({},{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(n,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,n){var s=o({},{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,n){var s=o({},{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-n/2,l,n,c-l),a.closePath(),a.fill()}function mt(t,e,i,a,n,s,l){var c=o({},{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,n),e=o({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),n.beginPath(),n.setFillStyle(r(c.bgColor||a.toolTipBackground,c.bgOpacity||a.toolTipOpacity)),p?(n.moveTo(e.x,e.y+10*i.pixelRatio),n.lineTo(e.x-u,e.y+10*i.pixelRatio-5*i.pixelRatio),n.lineTo(e.x-u,e.y),n.lineTo(e.x-u-Math.round(x),e.y),n.lineTo(e.x-u-Math.round(x),e.y+g),n.lineTo(e.x-u,e.y+g),n.lineTo(e.x-u,e.y+10*i.pixelRatio+5*i.pixelRatio),n.lineTo(e.x,e.y+10*i.pixelRatio)):(n.moveTo(e.x,e.y+10*i.pixelRatio),n.lineTo(e.x+u,e.y+10*i.pixelRatio-5*i.pixelRatio),n.lineTo(e.x+u,e.y),n.lineTo(e.x+u+Math.round(x),e.y),n.lineTo(e.x+u+Math.round(x),e.y+g),n.lineTo(e.x+u,e.y+g),n.lineTo(e.x+u,e.y+10*i.pixelRatio+5*i.pixelRatio),n.lineTo(e.x,e.y+10*i.pixelRatio)),n.closePath(),n.fill(),t.forEach((function(t,i){if(null!==t.color){n.beginPath(),n.setFillStyle(t.color);var o=e.x+u+2*a.toolTipPadding,r=e.y+(a.toolTipLineHeight-a.fontSize)/2+a.toolTipLineHeight*i+a.toolTipPadding+1;p&&(o=e.x-x-u+2*a.toolTipPadding),n.fillRect(o,r,h,a.fontSize),n.closePath()}})),t.forEach((function(t,i){var o=e.x+u+2*a.toolTipPadding+h+d;p&&(o=e.x-x-u+2*a.toolTipPadding+ +h+d);var r=e.y+(a.toolTipLineHeight-a.fontSize)/2+a.toolTipLineHeight*i+a.toolTipPadding;n.beginPath(),n.setFontSize(a.fontSize),n.setFillStyle(c.fontColor),n.fillText(t.text,o,r+a.fontSize),n.closePath(),n.stroke()})))}function bt(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,s=r.xAxisPoints,l=r.eachSpacing,c=o({},{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===n&&yt(e.tooltip.offset.x,e,i,a,l),t.forEach((function(o,r){var p,f,x;p=[].concat(e.chartData.yAxisData.ranges[o.index]),f=p.pop(),x=p.shift();var g=o.data;switch(c.type){case"group":var v=it(g,f,x,s,l,e,i,n),y=at(g,f,x,s,l,e,i,r,t,n);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||o.color),a.setLineWidth(1),a.setFillStyle(b.color||o.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,n);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||o.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,n);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(o.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 M=v[D];if(null!==M&&D>d&&D<u){a.beginPath(),a.setFillStyle(M.color||o.color);S=M.x-M.width/2,w=e.height-M.y-e.area[2];a.moveTo(S,M.y),a.fillRect(S,M.y,M.width,w),a.closePath(),a.fill()}}break}})),!1!==e.dataLabel&&1===n&&t.forEach((function(o,r){var h,d,u;h=[].concat(e.chartData.yAxisData.ranges[o.index]),d=h.pop(),u=h.shift();var p=o.data;switch(c.type){case"group":var f=it(p,d,u,s,l,e,i,n);f=Y(f,l,t.length,r,i,e),dt(f,o,i,a);break;case"stack":f=at(p,d,u,s,l,e,i,r,t,n);dt(f,o,i,a);break;case"meter":f=it(p,d,u,s,l,e,i,n);dt(f,o,i,a);break}})),a.restore(),{xAxisPoints:s,calPoints:h,eachSpacing:l}}function St(t,e,i,a,n){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=o({},{color:{},average:{}},i.extra.candle);s.color=o({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=o({},{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=[];n.save();var p=-2,f=c.length+2,x=0,g=i.width+h;return i._scrollDistance_&&0!==i._scrollDistance_&&!0===i.enableScroll&&(n.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 o,s,l;o=[].concat(i.chartData.yAxisData.ranges[t.index]),s=o.pop(),l=o.shift();for(var d=t.data,p=it(d,s,l,c,h,i,a,r),f=O(p),v=0;v<f.length;v++){var y=f[v];if(n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(1),1===y.length)n.moveTo(y[0].x,y[0].y),n.arc(y[0].x,y[0].y,1,0,2*Math.PI);else{n.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&&(n.moveTo(S.x,S.y),m=1),b>0&&S.x>x&&S.x<g){var w=u(y,b-1);n.bezierCurveTo(w.ctrA.x,w.ctrA.y,w.ctrB.x,w.ctrB.y,S.x,S.y)}}n.moveTo(y[0].x,y[0].y)}n.closePath(),n.stroke()}})),t.forEach((function(t,e){var o,l,u;o=[].concat(i.chartData.yAxisData.ranges[t.index]),l=o.pop(),u=o.shift();var x=t.data,g=et(x,l,u,c,h,i,a,r);d.push(g);for(var v=O(g),y=0;y<v[0].length;y++)if(y>p&&y<f){var m=v[0][y];n.beginPath(),x[y][1]-x[y][0]>0?(n.setStrokeStyle(s.color.upLine),n.setFillStyle(s.color.upFill),n.setLineWidth(1*i.pixelRatio),n.moveTo(m[3].x,m[3].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[1].x-h/4,m[1].y),n.lineTo(m[0].x-h/4,m[0].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[2].x,m[2].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[0].x+h/4,m[0].y),n.lineTo(m[1].x+h/4,m[1].y),n.lineTo(m[1].x,m[1].y),n.moveTo(m[3].x,m[3].y)):(n.setStrokeStyle(s.color.downLine),n.setFillStyle(s.color.downFill),n.setLineWidth(1*i.pixelRatio),n.moveTo(m[3].x,m[3].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[0].x-h/4,m[0].y),n.lineTo(m[1].x-h/4,m[1].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[2].x,m[2].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[1].x+h/4,m[1].y),n.lineTo(m[0].x+h/4,m[0].y),n.lineTo(m[0].x,m[0].y),n.moveTo(m[3].x,m[3].y)),n.closePath(),n.fill(),n.stroke()}})),n.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:h}}function wt(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=o({},{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,o){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,n);p.push(m);for(var b=O(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 M=u(w,k-1);a.bezierCurveTo(M.ctrA.x,M.ctrA.y,M.ctrB.x,M.ctrB.y,D.x,D.y)}}else for(var L=0;L<w.length;L++){var F=w[L];0==C&&F.x>f&&(a.moveTo(F.x,F.y),C=1),L>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 N=0;N<w.length;N++){var B=w[N];0==I&&B.x>f&&(a.moveTo(B.x,B.y),I=1),N>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===n&&t.forEach((function(t,o){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,n);dt(u,t,i,a)})),a.restore(),{xAxisPoints:c,calPoints:p,eachSpacing:h}}function At(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{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,o){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,n);h.push(v);var y=O(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 o=0;o<t.length;o++){var n=t[o];if(0==i&&n.x>d&&(a.moveTo(n.x,n.y),i=1),o>0&&n.x>d&&n.x<p){var s=u(t,o-1);a.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,n.x,n.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===n&&t.forEach((function(t,o){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,n);dt(u,t,i,a)})),a.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:c}}function Tt(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=e.chartData.xAxisData,s=n.xAxisPoints,l=n.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,n){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,o);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=O(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 M=D[0],L=D[D.length-1];a.moveTo(M.x,M.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(L.x,c),a.lineTo(M.x,c),a.lineTo(M.x,M.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 N=O(w);N.forEach((function(i,o){if("dash"==t.lineType){var n=t.dashLength?t.dashLength:8;n*=e.pixelRatio,a.setLineDash([n,n])}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===o){d=0;t.forEach((function(t,n){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,o);"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,o,n){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,o,n),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,o,n),i.restore()}function Ct(t,e,i,a){var o=e.chartData.xAxisData,n=o.xAxisPoints,r=o.startX,s=o.endX,l=o.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*(n.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),n.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,n.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,o){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),n[o]+r,h+T+(i.xAxisHeight-s-T)/2),a.closePath(),a.stroke()})):S.forEach((function(t,o){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(n[o]+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),n[o]+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 o=e.height-e.area[0]-e.area[2],n=o/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]-n*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 o=e.height-e.area[0]-e.area[2],n=o/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]+n*d);for(var u=e.area[3],p=e.width-e.area[1],f=function(t){var o=e.yAxis.data[t];if(!0!==o.disabled){var n=e.chartData.yAxisData.rangesFormat[t],r=o.fontSize||i.fontSize,s=e.chartData.yAxisData.yAxisWidth[t];if(n.forEach((function(t,i){var n=h[i]?h[i]:l;a.beginPath(),a.setFontSize(r),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(o.axisLineColor||"#cccccc"),a.setFillStyle(o.fontColor||"#666666"),"left"==s.position?(a.fillText(String(t),u-s.width,n+r/2),1==o.calibration&&(a.moveTo(u,n),a.lineTo(u-3*e.pixelRatio,n))):(a.fillText(String(t),p+4*e.pixelRatio,n+r/2),1==o.calibration&&(a.moveTo(p,n),a.lineTo(p+3*e.pixelRatio,n))),a.closePath(),a.stroke()})),!1!==o.axisLine&&(a.beginPath(),a.setStrokeStyle(o.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=o.titleFontSize||i.fontSize,d=o.title;a.beginPath(),a.setFontSize(c),a.setFillStyle(o.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 Mt(t,e,i,a,o){if(!1!==e.legend.show){var n=o.legendData,r=n.points,s=n.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,o){var r=0,f=0;r=n.widthArr[o],f=n.heightArr[o];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+o*p):(r=0==o?0:n.widthArr[o-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 Lt(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=o({},{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=j(t,c,n);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===n){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===n&&"ring"===e.type&&ht(e,i,a,l),{center:l,radius:c,series:t}}function Ft(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=o({},{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=K(t,s.type,h,c,n);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===n){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 n,r,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=o({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=U(t,l,s),n=l.center?l.center:{x:e.width/2,y:e.height/2},l.radius?r=l.radius:(r=Math.min(n.x,n.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(n.x,n.y,r-(l.width+l.gap)*c,l.startAngle*Math.PI,l.endAngle*Math.PI,!1):a.arc(n.x,n.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(n.x,n.y,r-(l.width+l.gap)*c,l.startAngle*Math.PI,h._proportion_*Math.PI,!1),a.stroke()}return ht(e,i,a,n),{center:n,radius:r,series:t}}function Rt(t,e,i,a,n){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,l=o({},{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;n.beginPath();var f=n.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)),n.setFillStyle(f),n.arc(c.x,c.y,p,0,2*Math.PI,!1),n.fill(),n.setLineWidth(l.width),n.setStrokeStyle(r(e[0].color,.3)),n.setLineCap("round"),n.beginPath(),n.arc(c.x,c.y,d,l.startAngle*Math.PI,l.endAngle*Math.PI,!1),n.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;n.save(),n.translate(c.x,c.y),n.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++)n.beginPath(),m>b/y?n.setStrokeStyle(r(e[0].color,1)):n.setStrokeStyle(r(e[0].color,.3)),n.setLineWidth(3*i.pixelRatio),n.moveTo(g,0),n.lineTo(v,0),n.stroke(),n.rotate(x*Math.PI);n.restore(),e=U(e,l,s),n.setLineWidth(l.width),n.setStrokeStyle(e[0].color),n.setLineCap("round"),n.beginPath(),n.arc(c.x,c.y,d,l.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),n.stroke();var S=h-2.5*l.width;n.save(),n.translate(c.x,c.y),n.rotate((e[0]._proportion_-1)*Math.PI),n.beginPath(),n.setLineWidth(l.width/3);var w=n.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)),n.setStrokeStyle(w),n.arc(0,0,S,.85*Math.PI,1.15*Math.PI,!1),n.stroke(),n.beginPath(),n.setLineWidth(1),n.setStrokeStyle(e[0].color),n.setFillStyle(e[0].color),n.moveTo(-S-l.width/3/2,-4),n.lineTo(-S-l.width/3/2-4,0),n.lineTo(-S-l.width/3/2,4),n.lineTo(-S-l.width/3/2,-4),n.stroke(),n.fill(),n.restore()}else{n.setLineWidth(l.width),n.setLineCap("butt");for(var A=0;A<t.length;A++){var T=t[A];n.beginPath(),n.setStrokeStyle(T.color),n.arc(c.x,c.y,h,T._startAngle_*Math.PI,T._endAngle_*Math.PI,!1),n.stroke()}n.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,M=-h-.5*l.width-l.splitLine.fixRadius+l.splitLine.childWidth;n.translate(c.x,c.y),n.rotate((l.startAngle-1)*Math.PI);for(var L=0;L<l.splitLine.splitNumber+1;L++)n.beginPath(),n.setStrokeStyle(l.splitLine.color),n.setLineWidth(2*i.pixelRatio),n.moveTo(k,0),n.lineTo(D,0),n.stroke(),n.rotate(P*Math.PI);n.restore(),n.save(),n.translate(c.x,c.y),n.rotate((l.startAngle-1)*Math.PI);for(var F=0;F<l.splitLine.splitNumber*l.splitLine.childNumber+1;F++)n.beginPath(),n.setStrokeStyle(l.splitLine.color),n.setLineWidth(1*i.pixelRatio),n.moveTo(k,0),n.lineTo(M,0),n.stroke(),n.rotate(C*Math.PI);n.restore(),e=X(e,t,l,s);for(var _=0;_<e.length;_++){var R=e[_];n.save(),n.translate(c.x,c.y),n.rotate((R._proportion_-1)*Math.PI),n.beginPath(),n.setFillStyle(R.color),n.moveTo(l.pointer.width,0),n.lineTo(0,-l.pointer.width/2),n.lineTo(-d,0),n.lineTo(0,l.pointer.width/2),n.lineTo(l.pointer.width,0),n.closePath(),n.fill(),n.beginPath(),n.setFillStyle("#FFFFFF"),n.arc(0,0,l.pointer.width/6,0,2*Math.PI,!1),n.fill(),n.restore()}!1!==i.dataLabel&&ut(l,h,c,i,a,n)}return ht(i,a,n,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 n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=o({},{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,o){var n=p(h/s.gridCount*t*Math.cos(e),h/s.gridCount*t*Math.sin(e),c);0===o?(i=n,a.moveTo(n.x,n.y)):a.lineTo(n.x,n.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,n);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 o=t.data.map((function(t){return t.position}));ct(o,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=[],o=0;o<i;o++)a[o]=Math.random();return Math.floor(a.reduce((function(t,e){return t+e}))/i*(e-t))+t}function Et(t,e,i,a){for(var o=!1,n=0;n<e.length;n++)if(e[n].area){if(!(t[3]<e[n].area[1]||t[0]>e[n].area[2]||t[1]>e[n].area[3]||t[2]<e[n].area[0])){o=!0;break}if(t[0]<0||t[1]<0||t[2]>i||t[3]>a){o=!0;break}o=!1}return o}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 o=t[a].geometry.coordinates,n=0;n<o.length;n++){e=o[n],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 Ot(t,e,i,a,o,n){return{x:(e-i.xMin)*a+o,y:(i.yMax-t)*a+n}}function Nt(t,e,i,a,o,n){return{x:(e-o)/a+i.xMin,y:i.yMax-(t-n)/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 o=e[a][0];1==e.length&&(o=e[a][0]);for(var n=0;n<o.length-1;n++){var r=o[n],s=o[n+1];Bt(t,r,s)&&(i+=1)}}return i%2==1}function Ht(t,e,i,a){var n,s,l=o({},{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++){n=y[m],1==n.length&&(n=n[0]);for(var b=0;b<n.length;b++)s=Ot(n[b][1],n[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=Ot(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 o=i[a].name,n=i[a].textSize,r=v(o,n),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)+n/2,c=[s-5+t.width/2,l-5-n+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 jt(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;o({},{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)*n-h*(1-n)/2,(r[s].areav[1]+5+c-e.height/2)*n):a.fillText(l,(r[s].areav[0]+5-e.width/2)*n-h*(1-n)/2,(r[s].areav[1]+5+c-e.height/2)*n)):r[s].area[0]>0&&(e.tooltip&&e.tooltip.index==s?a.strokeText(l,(r[s].area[0]+5-e.width/2)*n-h*(1-n)/2,(r[s].area[1]+5+c-e.height/2)*n):a.fillText(l,(r[s].area[0]+5-e.width/2)*n-h*(1-n)/2,(r[s].area[1]+5+c-e.height/2)*n)),a.stroke(),a.restore()}a.restore()}function Qt(t,e,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=o({},{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=Q(t,d,n),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===n&&Kt(t,e,a,l,s.labelAlign,h,c),{center:c,radius:d,series:t}}function Kt(t,e,i,a,o,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)):n.toFixed(100*c._proportion_)+"%";"right"==o?(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(),o=null,n=function(i){if(null===i||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===o&&(o=i),i-o<t.duration){var r=(i-o)/t.duration,s=Vt[t.timing];r=s(r),t.onProcess&&t.onProcess(r),a(n,e)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};n=n.bind(this),a(n,e)}function Jt(t,e,i,a){var n=this,r=e.series,s=e.categories;r=x(r,e,i);var c=e.animation?e.duration:0;n.animationInstance&&n.animationInstance.stop();var h=null;if("candle"==t){var d=o({},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=N(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=nt(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),M=D.xAxisHeight,L=D.angle;i.xAxisHeight=M,i._xAxisTextAngle_=L,e.area[2]+=M,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,n.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 O=o({},{type:"normal",autoColors:!0},e.extra.word);1!=e.updateData&&void 0!=e.updateData||(e.chartData.wordCloudData=Gt(e,O.type)),this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&<(a,e),jt(r,e,i,a,t),Ut(e,a)},onAnimationFinish:function(){n.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=Qt(r,e,i,a,t),Mt(e.series,e,i,a,e.chartData),Pt(e,i,a,t),Ut(e,a)},onAnimationFinish:function(){n.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 o=At(r,e,i,a,t),n=o.xAxisPoints,l=o.calPoints,c=o.eachSpacing;e.chartData.xAxisPoints=n,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Dt(r,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Mt(e.series,e,i,a,e.chartData),Pt(e,i,a,t,c,n),Ut(e,a)},onAnimationFinish:function(){n.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 o=Tt(r,e,i,a,t),n=o.xAxisPoints,l=o.calPoints,c=o.eachSpacing;e.chartData.xAxisPoints=n,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Dt(r,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Mt(e.series,e,i,a,e.chartData),Pt(e,i,a,t,c,n),Ut(e,a)},onAnimationFinish:function(){n.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 o=bt(r,e,i,a,t),n=o.xAxisPoints,l=o.calPoints,c=o.eachSpacing;e.chartData.xAxisPoints=n,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Dt(r,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Mt(e.series,e,i,a,e.chartData),Pt(e,i,a,t,c,n),Ut(e,a)},onAnimationFinish:function(){n.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 o=wt(r,e,i,a,t),n=o.xAxisPoints,l=o.calPoints,c=o.eachSpacing;e.chartData.xAxisPoints=n,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Dt(r,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Mt(e.series,e,i,a,e.chartData),Pt(e,i,a,t,c,n),Ut(e,a)},onAnimationFinish:function(){n.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=Lt(r,e,i,a,t),Mt(e.series,e,i,a,e.chartData),Pt(e,i,a,t),Ut(e,a)},onAnimationFinish:function(){n.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),Mt(e.series,e,i,a,e.chartData),Pt(e,i,a,t),Ut(e,a)},onAnimationFinish:function(){n.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),Mt(e.series,e,i,a,e.chartData),Pt(e,i,a,t),Ut(e,a)},onAnimationFinish:function(){n.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(){n.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(){n.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 o=St(r,h,e,i,a,t),n=o.xAxisPoints,l=o.calPoints,c=o.eachSpacing;e.chartData.xAxisPoints=n,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Dt(r,e,i,a),!1!==e.enableMarkLine&&1===t&>(e,i,a),Mt(h||e.series,e,i,a,e.chartData),Pt(e,i,a,t,c,n),Ut(e,a)},onAnimationFinish:function(){n.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,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var a=e[0],o=e.slice(1);this.events[a]&&this.events[a].forEach((function(t){try{t.apply(null,o)}catch(e){console.error(e)}}))};var Zt=function(t){t.pixelRatio=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize*t.pixelRatio:13*t.pixelRatio,t.title=o({},t.title),t.subtitle=o({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=o({},{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=o({},{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=o({},{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=o({},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,n=t.height;t.width=n,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=o({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var i=nt(this.opts.series,this.opts,this.config),a=i.yAxisWidth;this.config.yAxisWidth=a;var n=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;n=u-d,this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n;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 e=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 i=nt(this.opts.series,this.opts,this.config),a=i.yAxisWidth;this.config.yAxisWidth=a;var o=0,n=tt(this.opts.categories,this.opts,this.config),r=n.xAxisPoints,s=n.startX,l=n.endX,c=n.eachSpacing,h=c*e,d=l-s,u=d-c*(r.length-1);o=d/2-h,o>0&&(o=0),o<u&&(o=u),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 console.log("请启用滚动条后使用!")},Zt.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},Zt.prototype.addEventListener=function(t,e){this.event.addEventListener(t,e)},Zt.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=b(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type?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 M({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 e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],i||console.log("touchError");var a=b(i,this.opts,t),n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var s=this.getCurrentDataIndex(t);if(s>-1){var l=S(this.opts.series,s);if(0!==l.length){var c=T(l,this.opts.chartData.calPoints,s,this.opts.categories,e),h=c.textList,d=c.offset;d.y=a.y,r.tooltip={textList:h,offset:d,option:e,index:s}}}Jt.call(this,r.type,r,this.config,this.context)}if("mix"===this.opts.type){s=this.getCurrentDataIndex(t);if(s>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),l=S(this.opts.series,s);if(0!==l.length){var u=P(l,this.opts.chartData.calPoints,s,this.opts.categories,e);h=u.textList,d=u.offset;d.y=a.y,r.tooltip={textList:h,offset:d,option:e,index:s}}}Jt.call(this,r.type,r,this.config,this.context)}if("candle"===this.opts.type){s=this.getCurrentDataIndex(t);if(s>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),l=S(this.opts.series,s);if(0!==l.length){c=C(this.opts.series[0].data,l,this.opts.chartData.calPoints,s,this.opts.categories,this.opts.extra.candle,e),h=c.textList,d=c.offset;d.y=a.y,r.tooltip={textList:h,offset:d,option:e,index:s}}}Jt.call(this,r.type,r,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){s=this.getCurrentDataIndex(t);if(s>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),l=this.opts._series_[s],h=[{text:e.format?e.format(l):l.name+": "+l.data,color:l.color}],d={x:a.x,y:a.y};r.tooltip={textList:h,offset:d,option:e,index:s}}Jt.call(this,r.type,r,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){s=this.getCurrentDataIndex(t);if(s>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),l=this.opts._series_[s],h=[{text:e.format?e.format(l):l.properties.name,color:l.color}],d={x:a.x,y:a.y};r.tooltip={textList:h,offset:d,option:e,index:s}}r.updateData=!1,Jt.call(this,r.type,r,this.config,this.context)}if("radar"===this.opts.type){s=this.getCurrentDataIndex(t);if(s>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),l=S(this.opts.series,s);if(0!==l.length){h=l.map((function(t){return{text:e.format?e.format(t):t.name+": "+t.data,color:t.color}})),d={x:a.x,y:a.y};r.tooltip={textList:h,offset:d,option:e,index:s}}}Jt.call(this,r.type,r,this.config,this.context)}},Zt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=o({},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 n=null;if(n=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],n&&!0===this.opts.enableScroll){var r,s=b(n,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=o({},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)},e8c0:function(t,e,i){"use strict";i.r(e);var a=i("5c42"),o=i("737a");for(var n in o)"default"!==n&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("a51c");var r,s=i("f0c5"),l=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"e77e32d0",null,!1,a["a"],r);e["default"]=l.exports}}]); |