pages-capital-manage-capital-manage.868a3254.js 626 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-capital-manage-capital-manage"],{"011b":function(t,e,i){var n=i("3937");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("0ac38c9e",n,!0,{sourceMap:!1,shadowMode:!1})},"0fc3":function(t,e,i){var n=i("be29");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("4778f5c7",n,!0,{sourceMap:!1,shadowMode:!1})},1204:function(t,e,i){var n=i("e34d");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("3ecc276a",n,!0,{sourceMap:!1,shadowMode:!1})},"143c":function(t,e,i){var n=i("74e8");n("Int32",(function(t){return function(e,i,n){return t(this,e,i,n)}}))},"1de5":function(t,e,i){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"22a0b":function(t,e,i){"use strict";var n=i("0fc3"),r=i.n(n);r.a},"2a85":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";.app-item[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-6ac71468]{margin-top:%?10?%}.app-item uni-input[data-v-6ac71468], .app-item uni-picker[data-v-6ac71468], .app-item uni-textarea[data-v-6ac71468]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-6ac71468]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-6ac71468]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-6ac71468]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-6ac71468]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-6ac71468]{color:#fff;background:#f76454}.small-btn[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-6ac71468]{color:#999;border-color:#999}.login-btn[data-v-6ac71468]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-6ac71468]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-6ac71468]{margin-right:%?20?%}.border-right[data-v-6ac71468]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-6ac71468]{margin-right:%?6?%}.position-center[data-v-6ac71468]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-6ac71468]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-6ac71468]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-6ac71468]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-6ac71468]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-6ac71468]{color:#f76454}.swiper-nav[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-6ac71468]{color:#f76454}.swiper-nav .moveBar[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-6ac71468]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-6ac71468]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-6ac71468]{width:100%;height:100%}.article-header[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-6ac71468]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-6ac71468]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-6ac71468]{color:#f76454}.article-footer[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-6ac71468]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-6ac71468]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-6ac71468]{color:#f76454}\r\n/*主题色及按钮渐变背景*/\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.picker[data-v-6ac71468]{position:fixed;z-index:100;background:rgba(0,0,0,.7);left:0;top:0;width:100%;height:100%;font-size:%?28?%}.picker-btn[data-v-6ac71468]{padding:%?10?% %?20?%;border-radius:%?12?%;color:#666}.picker-btn-active[data-v-6ac71468]{background:rgba(0,0,0,.1)}.picker-display[data-v-6ac71468]{color:#666}.picker-display-text[data-v-6ac71468]{color:#000;margin:0 %?10?%}.picker-display-link[data-v-6ac71468]{display:inline-block}.picker-display-link-active[data-v-6ac71468]{background:rgba(0,0,0,.1)}.picker-time[data-v-6ac71468]{width:%?550?%!important;left:%?100?%!important}.picker-modal[data-v-6ac71468]{background:#fff;position:absolute;top:50%;left:%?60?%;width:%?630?%;-webkit-transform:translateY(-50%);transform:translateY(-50%);box-shadow:0 0 20px 0 rgba(0,0,0,.1);border-radius:%?12?%}.picker-modal-header[data-v-6ac71468]{text-align:center;line-height:%?80?%;font-size:%?32?%}.picker-modal-header-title[data-v-6ac71468]{display:inline-block;width:40%}.picker-modal-header .picker-icon[data-v-6ac71468]{display:inline-block;line-height:%?50?%;width:%?50?%;height:%?50?%;border-radius:%?50?%;text-align:center;margin:%?10?%;background:#fff;font-size:%?36?%}.picker-modal-header .picker-icon-active[data-v-6ac71468]{background:rgba(0,0,0,.1)}.picker-modal-body[data-v-6ac71468]{width:%?630?%!important;height:%?630?%!important;position:relative}.picker-modal-time[data-v-6ac71468]{width:100%;height:%?180?%;text-align:center;line-height:%?60?%}.picker-modal-footer[data-v-6ac71468]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?20?%}.picker-modal-footer-info[data-v-6ac71468]{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}.picker-modal-footer-btn[data-v-6ac71468]{-webkit-flex-shrink:0;flex-shrink:0;display:-webkit-box;display:-webkit-flex;display:flex}.picker-calendar[data-v-6ac71468]{position:absolute;left:0;top:0;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-flex-wrap:wrap;flex-wrap:wrap}.picker-calendar-view[data-v-6ac71468]{position:relative;width:%?90?%;height:%?90?%;text-align:center}.picker-calendar-view-bgbegin[data-v-6ac71468], .picker-calendar-view-bg[data-v-6ac71468], .picker-calendar-view-bgend[data-v-6ac71468], .picker-calendar-view-item[data-v-6ac71468], .picker-calendar-view-dot[data-v-6ac71468], .picker-calendar-view-tips[data-v-6ac71468]{position:absolute;-webkit-transition:.2s;transition:.2s}.picker-calendar-view-bgbegin[data-v-6ac71468], .picker-calendar-view-bg[data-v-6ac71468], .picker-calendar-view-bgend[data-v-6ac71468]{opacity:.15;height:80%}.picker-calendar-view-bg[data-v-6ac71468]{left:0;top:10%;width:100%}.picker-calendar-view-bgbegin[data-v-6ac71468]{border-radius:%?90?% 0 0 %?90?%;top:10%;left:10%;width:90%}.picker-calendar-view-bgend[data-v-6ac71468]{border-radius:0 %?90?% %?90?% 0;top:10%;left:0;width:90%}.picker-calendar-view-item[data-v-6ac71468]{left:5%;top:5%;width:90%;height:90%;border-radius:%?90?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.picker-calendar-view-dot[data-v-6ac71468]{right:10%;top:10%;width:%?12?%;height:%?12?%;border-radius:%?12?%}.picker-calendar-view-tips[data-v-6ac71468]{bottom:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);background:#4e4b46;color:#fff;border-radius:%?12?%;padding:%?10?% %?20?%;font-size:%?24?%;width:-webkit-max-content;width:max-content;margin-bottom:5px;pointer-events:none}.picker-calendar-view-tips[data-v-6ac71468]:after{content:"";position:absolute;top:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:0;height:0;border-style:solid;border-width:5px 5px 0 5px;border-color:#4e4b46 transparent transparent transparent}@font-face{font-family:mxdatepickericon;src:url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAMYAAsAAAAACBgAAALMAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDIgqDRIJiATYCJAMUCwwABCAFhG0HSRvfBsg+QCa3noNAyAQ9w6GDvbwpNp2vloCyn8bD/x+y+/5qDhtj+T4eRVEcbsCoKMFASzCgLdDkmqYDwgxkWQ6YH5L/YnppOlLEjlnter43YRjU7M6vJ3iGADVAgJn5kqjv/wEii23T86UsAQT+04fV+o97VTMx4PPZt4DlorLXwIQiGMA5uhaVrBWqGHfQXcTEiE+PE+g2SUlxWlLVBHwUYFMgrgwSB3wstTKSGzqF1nOyiGeeOtNjV4An/vvxR58PSc3AzrMViyDvPo/7dVEUzn5GROfIWAcU4rLXfMFdhte56y4We9gGNEVIezkBOOaQXUrbTf/hJVkhGpDdCw7dSOEzByMEn3kIic98hMxnAfeFPKWCbjRcA148/HxhCEkaA94eGWFaGolsblpaWz8/Po2WVuNHh1fmBpZHIpqal9fOjizhTteY+RZ9rv02I/pq0W6QVH3pSncBz3m55r9ZIPycHfmenvxe4uyutIgfT5u4bgkDusl9gcF0rnfnz+b2NpSaQWBFeu8GIL1xQj5AH/6FAsEr/50F28e/gA9ny6KjLrxIp0TE+UucmQOl5AFNLXkzZufWamWHYEI39PEP2If97CMdm51N6DSmIekwAVmneXTBr0PVYx+aTgfQbU3p+R4jKHdRurBq0oEw6AKSfm+QDbpGF/w3VOP+oBnMHbqdx409FjP4RRHHkAj5IWgQiBUjHfMTuQ1Icpg5avI4sQVRu8EHdWptM1aKrIjuscfeL+kZwxBTYoElztOQ2UygjRIjEphaZsyWodHgvm9SC8QC/JygEA6DiCDeEMhAQFhhOpvxa/18A0TiYMahIy0L2hYIZWeYH9JR085Al4qts1re5St2/SR6DINBGEVYQCWOETHDMAHZ+pcZIQJGTV4RtMmg8UbhuWL1+VLLA2RFHYC71kiRo0SNpjwQh8pj2EFU3oTNmS1WqgIA") format("woff2")}.picker-icon[data-v-6ac71468]{font-family:mxdatepickericon!important}.picker-icon-you[data-v-6ac71468]:before{content:"\\e63e"}.picker-icon-zuo[data-v-6ac71468]:before{content:"\\e640"}.picker-icon-zuozuo[data-v-6ac71468]:before{content:"\\e641"}.picker-icon-youyou[data-v-6ac71468]:before{content:"\\e642"}',""]),t.exports=e},3811:function(t,e,i){"use strict";i.r(e);var n=i("cd6e"),r=i("44ea");for(var o in r)"default"!==o&&function(t){i.d(e,t,(function(){return r[t]}))}(o);var a=i("6bbc");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("22a0b");var s=i("f0c5");r["default"].__module="echarts";var l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"0b448d68",null,!1,n["a"],r["default"]);e["default"]=l.exports},"38cf":function(t,e,i){var n=i("23e7"),r=i("1148");n({target:"String",proto:!0},{repeat:r})},3937:function(t,e,i){var n=i("24fb"),r=i("1de5"),o=i("f332c");e=n(!1);var a=r(o);e.push([t.i,'@charset "UTF-8";.app-item[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-b7d1a344]{margin-top:%?10?%}.app-item uni-input[data-v-b7d1a344], .app-item uni-picker[data-v-b7d1a344], .app-item uni-textarea[data-v-b7d1a344]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-b7d1a344]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-b7d1a344]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-b7d1a344]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-b7d1a344]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-b7d1a344]{color:#fff;background:#f76454}.small-btn[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-b7d1a344]{color:#999;border-color:#999}.login-btn[data-v-b7d1a344]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-b7d1a344]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-b7d1a344]{margin-right:%?20?%}.border-right[data-v-b7d1a344]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-b7d1a344]{margin-right:%?6?%}.position-center[data-v-b7d1a344]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-b7d1a344]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-b7d1a344]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-b7d1a344]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-b7d1a344]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-b7d1a344]{color:#f76454}.swiper-nav[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-b7d1a344]{color:#f76454}.swiper-nav .moveBar[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-b7d1a344]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-b7d1a344]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-b7d1a344]{width:100%;height:100%}.article-header[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-b7d1a344]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-b7d1a344]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-b7d1a344]{color:#f76454}.article-footer[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-b7d1a344]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-b7d1a344]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-b7d1a344]{color:#f76454}\r\n/*主题色及按钮渐变背景*/\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.capital[data-v-b7d1a344]{width:100%;min-height:100%;background:#f9f9f8}.capital .cap_bg[data-v-b7d1a344]{width:%?712?%;height:%?380?%;margin:%?30?% auto 0;background:url('+a+") no-repeat;background-size:100% 100%;position:relative}.capital .cap_bg .bg_btn[data-v-b7d1a344]{width:%?176?%;height:%?68?%;background:#ffb300;border-radius:%?34?%;text-align:center;line-height:%?68?%;color:#fff;font-size:%?32?%;font-weight:700;letter-spacing:%?2?%}.capital .cap_bg .bg_con[data-v-b7d1a344]{width:%?690?%;margin:0 auto;padding:%?30?% %?30?% 0 %?30?%}.capital .cap_bg .bg_con .money uni-text[data-v-b7d1a344]{color:#fff}.capital .cap_bg .bg_con .title[data-v-b7d1a344]{font-size:%?28?%;color:hsla(0,0%,100%,.8)}.capital .cap_bg .bg_con .bg_up[data-v-b7d1a344]{border-bottom:%?2?% solid #fff;padding-bottom:%?20?%}.capital .cap_bg .bg_con .bg_up .money[data-v-b7d1a344]{margin-top:%?20?%}.capital .cap_bg .bg_con .bg_up .money uni-text[data-v-b7d1a344]:first-child{font-size:%?40?%;margin-right:%?10?%}.capital .cap_bg .bg_con .bg_up .money uni-text[data-v-b7d1a344]:last-child{font-size:%?72?%}.capital .cap_bg .bg_con .bg_center[data-v-b7d1a344]{padding-top:%?30?%}.capital .cap_bg .bg_con .bg_center .money[data-v-b7d1a344]{margin-left:%?20?%}.capital .cap_bg .bg_con .bg_center .money uni-text[data-v-b7d1a344]:first-child{font-size:%?28?%;margin-right:%?10?%}.capital .cap_bg .bg_con .bg_center .money uni-text[data-v-b7d1a344]:last-child{font-size:%?44?%}.capital .cap_bg .bg_hint[data-v-b7d1a344]{width:100%;height:%?88?%;background:#bc0202;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 %?30?%;border-radius:0 0 %?24?% %?24?%;position:absolute;bottom:0;left:0}.capital .cap_bg .bg_hint uni-text[data-v-b7d1a344]{font-size:%?24?%;color:#ffec8e}.capital .cap_con[data-v-b7d1a344]{position:relative;width:100%;min-height:%?214?%;background-color:#fff;margin:%?30?% 0;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.capital .cap_con .out_tab[data-v-b7d1a344]{box-sizing:border-box;padding:0 %?30?%}.capital .cap_con .out_tab .tab_one[data-v-b7d1a344]{width:40%}.capital .cap_con .out_tab .date_picker[data-v-b7d1a344]{height:%?64?%;line-height:%?64?%;background:#f8f8f8;padding:0 %?20?%;border-radius:%?8?%}.capital .cap_con .out_tab .date_picker .iconfont[data-v-b7d1a344]{color:#999;margin-left:%?6?%}.capital .cap_con .tab_two[data-v-b7d1a344]{width:100%;height:%?64?%;background:#fff4f3;margin:%?30?% 0}.capital .cap_con .tab_two .base_color[data-v-b7d1a344]{color:#fb231f;font-weight:700}.capital .cap_con .tab_three[data-v-b7d1a344]{padding:0 %?30?%;margin:%?30?% 0;box-sizing:border-box}.capital .cap_con .tab_three .active_tab[data-v-b7d1a344]{background:-webkit-linear-gradient(355deg,#ff232c,#ff571b);background:linear-gradient(95deg,#ff232c,#ff571b);color:#fff;border:none}.capital .cap_con .tab_three uni-view[data-v-b7d1a344]{width:%?120?%;text-align:center;height:%?60?%;line-height:%?60?%;border-radius:%?32?%;border:%?2?% solid #999;color:#999}.capital .tab_con[data-v-b7d1a344]{width:100%;background:#fff;padding:%?20?% %?30?% %?40?%;box-sizing:border-box;-webkit-box-flex:1;-webkit-flex:1;flex:1}.capital .tab_con .tab_top[data-v-b7d1a344]{border-bottom:2px solid #eee;padding-bottom:%?15?%;margin-bottom:%?30?%}.capital .tab_con .tab_top .gray[data-v-b7d1a344]{margin-bottom:%?15?%}.capital .tab_con .tab_list[data-v-b7d1a344]{margin-bottom:%?30?%}.capital .tab_con .tab_list .fail_reason[data-v-b7d1a344]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start;margin-top:%?15?%}.capital .tab_con .tab_list .record_info > uni-view[data-v-b7d1a344]{margin-top:%?15?%;color:#999}.capital .data_box[data-v-b7d1a344]{width:100%;-webkit-box-flex:1;-webkit-flex:1;flex:1;background:#fff}.capital .data_box .chart-column[data-v-b7d1a344]{background:rgba(255,0,0,.13);position:relative}.capital .data_box .chart-column .chart[data-v-b7d1a344]{width:100%;height:100%}.capital .data_box .all_data[data-v-b7d1a344]{padding:%?20?% 0 0 %?30?%}.capital .data_box .all_data .price[data-v-b7d1a344]{font-size:%?36?%}.capital .data_box .all_data .price uni-text[data-v-b7d1a344]{color:#fb231f}",""]),t.exports=e},"39e4":function(t,e,i){"use strict";i.r(e);var n=i("9a41"),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},"3cc2":function(t,e,i){"use strict";var n=i("4ea4");i("d3b7"),i("acd8"),i("ac1f"),i("25f0"),i("5319"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("5a4b")),o={data:function(){return{chart:null,clickData:null}},mounted:function(){this.init()},methods:{init:function(){var t=this;this.chart=r.default.init(document.getElementById(this.option.id)),this.update(this.option),this.chart.on("click",(function(e){t.clickData=e}))},onClick:function(t,e){this.clickData&&(e.callMethod("onViewClick",{value:this.clickData.data,name:this.clickData.name,seriesName:this.clickData.seriesName}),this.clickData=null)},update:function(t){this.chart&&(t&&t.tooltip&&(t.tooltip.positionStatus&&(t.tooltip.position=this.tooltipPosition()),t.tooltip.formatterStatus&&(t.tooltip.formatter=this.tooltipFormatter(t.tooltip.formatterUnit,t.tooltip.formatFloat2,t.tooltip.formatThousands))),this.chart.setOption(t,t.notMerge))},tooltipPosition:function(){return function(t,e,i,n,r){var o=t[0],a=t[1],s=(r.viewSize[0],r.viewSize[1],r.contentSize[0]),l=r.contentSize[1],u=0,c=0;return o>=s&&(u=o-s-1),a>=l&&(c=a-l-1),[u,c]}},tooltipFormatter:function(t,e,i){var n=this;return function(r){var o="";for(var a in t=t||"",r){0==a&&(o+=r[a].axisValueLabel);var s="--";null!==r[a].data&&(s=r[a].data,e&&(s=n.formatFloat2(s)),i&&(s=n.formatThousands(s))),o+="\n"+r[a].seriesName+":"+s+" "+t}return o}},formatFloat2:function(t){var e=Math.round(100*parseFloat(t))/100,i=e.toString().split(".");return 1===i.length?(e=(isNaN(e)?"0":e.toString())+".00",e):i.length>1?(i[1].length<2&&(e=e.toString()+"0"),e):void 0},formatThousands:function(t){void 0!==t&&null!==t||(t=""),isNaN(t)||(t+="");var e=/\d{1,3}(?=(\d{3})+$)/g,i=t.replace(/^(\d+)((\.\d+)?)$/,(function(t,i,n){return i.replace(e,"$&,")+n}));return i}}};e.default=o},"44ea":function(t,e,i){"use strict";i.r(e);var n=i("3cc2"),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},"45a8":function(t,e,i){"use strict";i.r(e);var n=i("7c3f"),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},"4a9b":function(t,e,i){var n=i("74e8");n("Float64",(function(t){return function(e,i,n){return t(this,e,i,n)}}))},"4cf7":function(t,e,i){"use strict";var n=i("a505"),r=i.n(n);r.a},"4dd4":function(t,e,i){"use strict";var n=i("011b"),r=i.n(n);r.a},"570f":function(t,e,i){"use strict";i.r(e);var n=i("ee61"),r=i("66e9");for(var o in r)"default"!==o&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("4dd4");var a,s=i("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"b7d1a344",null,!1,n["a"],a);e["default"]=l.exports},"5a4b":function(t,e,i){(function(t){i("99af"),i("cb29"),i("4de4"),i("4160"),i("c975"),i("a15b"),i("baa5"),i("d81d"),i("26e9"),i("fb6a"),i("4e82"),i("a434"),i("ace4"),i("a9e3"),i("b680"),i("dca8"),i("7039"),i("b64b"),i("131a"),i("d3b7"),i("acd8"),i("e25e"),i("ac1f"),i("25f0"),i("466d"),i("38cf"),i("5319"),i("1276"),i("498a"),i("cfc3"),i("4a9b"),i("143c"),i("84c3"),i("fb2c"),i("9a8c"),i("a975"),i("735e"),i("c1ac"),i("d139"),i("3a7b"),i("d5d6"),i("82f8"),i("e91f"),i("60bd"),i("5f96"),i("3280"),i("3fcc"),i("ca91"),i("25a1"),i("cd26"),i("3c5d"),i("2954"),i("649e"),i("219c"),i("170b"),i("b39a"),i("72f7"),i("159b"),i("ddb0"),function(t,i){i(e)}(0,(function(e){"use strict";function i(t,e){function i(){this.constructor=t}Fv(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function n(){for(var t=0,e=0,i=arguments.length;i>e;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;i>e;e++)for(var o=arguments[e],a=0,s=o.length;s>a;a++,r++)n[r]=o[a];return n}function r(t,e){var i=e.browser,n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),o&&(i.edge=!0,i.version=o[1],i.newEdge=+o[1].split(".")[0]>18),a&&(i.weChat=!0),e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,e.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),e.domSupported="undefined"!=typeof document}function o(t,e){Jv[t]=e}function a(){return ty++}function s(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];"undefined"!=typeof t&&t.error.apply(t,e)}function l(t){if(null==t||"object"!=typeof t)return t;var e=t,i=Yv.call(t);if("[object Array]"===i){if(!U(t)){e=[];for(var n=0,r=t.length;r>n;n++)e[n]=l(t[n])}}else if(Gv[i]){if(!U(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(n=0,r=t.length;r>n;n++)e[n]=l(t[n])}}}else if(!Wv[i]&&!U(t)&&!O(t))for(var a in e={},t)t.hasOwnProperty(a)&&(e[a]=l(t[a]));return e}function u(t,e,i){if(!D(e)||!D(t))return i?l(e):t;for(var n in e)if(e.hasOwnProperty(n)){var r=t[n],o=e[n];!D(o)||!D(r)||M(o)||M(r)||O(o)||O(r)||P(o)||P(r)||U(o)||U(r)?!i&&n in t||(t[n]=l(e[n])):u(r,o,i)}return t}function c(t,e){for(var i=t[0],n=1,r=t.length;r>n;n++)i=u(i,t[n],e);return i}function h(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function d(t,e,i){for(var n=w(e),r=0;r<n.length;r++){var o=n[r];(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function p(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i}return-1}function f(t,e){function i(){}var n=t.prototype;for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function g(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=n[r];"constructor"!==o&&(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}else d(t,e,i)}function v(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function y(t,e,i){if(t&&e)if(t.forEach&&t.forEach===Xv)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;r>n;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function m(t,e,i){if(!t)return[];if(!e)return H(t);if(t.map&&t.map===$v)return t.map(e,i);for(var n=[],r=0,o=t.length;o>r;r++)n.push(e.call(i,t[r],r,t));return n}function x(t,e,i,n){if(t&&e){for(var r=0,o=t.length;o>r;r++)i=e.call(n,i,t[r],r,t);return i}}function b(t,e,i){if(!t)return[];if(!e)return H(t);if(t.filter&&t.filter===Zv)return t.filter(e,i);for(var n=[],r=0,o=t.length;o>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}function _(t,e,i){if(t&&e)for(var n=0,r=t.length;r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function w(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}function k(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return function(){return t.apply(e,i.concat(qv.call(arguments)))}}function S(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return function(){return t.apply(this,e.concat(qv.call(arguments)))}}function M(t){return Array.isArray?Array.isArray(t):"[object Array]"===Yv.call(t)}function T(t){return"function"==typeof t}function C(t){return"string"==typeof t}function I(t){return"[object String]"===Yv.call(t)}function A(t){return"number"==typeof t}function D(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function P(t){return!!Wv[Yv.call(t)]}function L(t){return!!Gv[Yv.call(t)]}function O(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function z(t){return null!=t.colorStops}function R(t){return null!=t.image}function E(t){return"[object RegExp]"===Yv.call(t)}function B(t){return t!==t}function N(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=t.length;n>i;i++)if(null!=t[i])return t[i]}function F(t,e){return null!=t?t:e}function V(t,e,i){return null!=t?t:null!=e?e:i}function H(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return qv.apply(t,e)}function j(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function W(t,e){if(!t)throw new Error(e)}function G(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function Y(t){t[ny]=!0}function U(t){return t[ny]}function X(t){return new ry(t)}function Z(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];var r=t.length;for(n=0;n<e.length;n++)i[n+r]=e[n];return i}function q(t,e){var i;if(Object.create)i=Object.create(t);else{var n=function(){};n.prototype=t,i=new n}return e&&h(i,e),i}function $(t,e){return t.hasOwnProperty(e)}function K(){}function Q(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function J(t,e){return t[0]=e[0],t[1]=e[1],t}function tt(t){return[t[0],t[1]]}function et(t,e,i){return t[0]=e,t[1]=i,t}function it(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function nt(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function rt(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function ot(t){return Math.sqrt(at(t))}function at(t){return t[0]*t[0]+t[1]*t[1]}function st(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function lt(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function ut(t,e){return t[0]*e[0]+t[1]*e[1]}function ct(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function ht(t,e){var i=ot(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function dt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function pt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function ft(t,e){return t[0]=-e[0],t[1]=-e[1],t}function gt(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function vt(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function yt(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function mt(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}function xt(t,e,i,n,r,o){var a=n+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/fy);return t[i][l]}for(var u=n|1<<i,c=i+1;n&1<<c;)c++;for(var h=0,d=0,p=0;s>d;d++){var f=1<<d;f&r||(h+=(p%2?-1:1)*t[i][d]*xt(t,e-1,c,u,r|f,o),p++)}return o[a]=h,h}function bt(t,e){var i=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},r=xt(i,8,0,0,0,n);if(0!==r){for(var o=[],a=0;8>a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*xt(i,7,0===a?1:0,1<<a,1<<s,n)/r*e[a];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}function _t(t,e,i,n,r){return wt(vy,e,n,r,!0)&&wt(t,i,vy[0],vy[1])}function wt(t,e,i,n,r){if(e.getBoundingClientRect&&jv.domSupported&&!Mt(e)){var o=e[gy]||(e[gy]={}),a=kt(e,o),s=St(a,o,r);if(s)return s(t,i,n),!0}return!1}function kt(t,e){var i=e.markers;if(i)return i;i=e.markers=[];for(var n=["left","right"],r=["top","bottom"],o=0;4>o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",r[u]+":0",n[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}return i}function St(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[n]=i?bt(s,a):bt(a,s))}function Mt(t){return"CANVAS"===t.nodeName.toUpperCase()}function Tt(t,e,i,n){return i=i||{},n||!jv.canvasSupported?Ct(t,e,i):jv.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):Ct(t,e,i),i}function Ct(t,e,i){if(jv.domSupported&&t.getBoundingClientRect){var n=e.clientX,r=e.clientY;if(Mt(t)){var o=t.getBoundingClientRect();return i.zrX=n-o.left,void(i.zrY=r-o.top)}if(wt(xy,t,n,r))return i.zrX=xy[0],void(i.zrY=xy[1])}i.zrX=i.zrY=0}function It(t){return t||window.event}function At(t,e,i){if(e=It(e),null!=e.zrX)return e;var n=e.type,r=n&&n.indexOf("touch")>=0;if(r){var o="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];o&&Tt(t,o,e,i)}else{Tt(t,e,e,i);var a=Dt(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&my.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Dt(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,n=t.deltaY;if(null==i||null==n)return e;var r=Math.abs(0!==n?n:i),o=n>0?-1:0>n?1:i>0?-1:1;return 3*r*o}function Pt(t,e,i,n){yy?t.addEventListener(e,i,n):t.attachEvent("on"+e,i)}function Lt(t,e,i,n){yy?t.removeEventListener(e,i,n):t.detachEvent("on"+e,i)}function Ot(t){return 2===t.which||3===t.which}function zt(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function Rt(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Et(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:Bt}}function Bt(){by(this.event)}function Nt(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,r=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1;n.silent&&(r=!0)}var s=n.__hostTarget;n=s||n.parent}return!r||ky}return!1}function Ft(t,e,i){var n=t.painter;return 0>e||e>n.getWidth()||0>i||i>n.getHeight()}function Vt(){return[1,0,0,1,0,0]}function Ht(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function jt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Wt(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Gt(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function Yt(t,e,i){var n=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=n*c+a*u,t[1]=-n*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function Ut(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t}function Xt(t,e){var i=e[0],n=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=i*a-o*n;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-a*r)*l,t[5]=(o*r-i*s)*l,t):null}function Zt(t){var e=Vt();return jt(e,t),e}function qt(t){return t>Ly||-Ly>t}function $t(t){return t=Math.round(t),0>t?0:t>255?255:t}function Kt(t){return t=Math.round(t),0>t?0:t>360?360:t}function Qt(t){return 0>t?0:t>1?1:t}function Jt(t){var e=t;return $t(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function te(t){var e=t;return Qt(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function ee(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function ie(t,e,i){return t+(e-t)*i}function ne(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function re(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function oe(t,e){Yy&&re(Yy,e),Yy=Gy.put(t,Yy||e.slice())}function ae(t,e){if(t){e=e||[];var i=Gy.get(t);if(i)return re(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in Wy)return re(e,Wy[n]),oe(t,e),e;var r=n.length;if("#"!==n.charAt(0)){var o=n.indexOf("("),a=n.indexOf(")");if(-1!==o&&a+1===r){var s=n.substr(0,o),l=n.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?ne(e,+l[0],+l[1],+l[2],1):ne(e,0,0,0,1);u=te(l.pop());case"rgb":return 3!==l.length?void ne(e,0,0,0,1):(ne(e,Jt(l[0]),Jt(l[1]),Jt(l[2]),u),oe(t,e),e);case"hsla":return 4!==l.length?void ne(e,0,0,0,1):(l[3]=te(l[3]),se(l,e),oe(t,e),e);case"hsl":return 3!==l.length?void ne(e,0,0,0,1):(se(l,e),oe(t,e),e);default:return}}ne(e,0,0,0,1)}else{if(4===r||5===r){var c=parseInt(n.slice(1,4),16);return c>=0&&4095>=c?(ne(e,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===r?parseInt(n.slice(4),16)/15:1),oe(t,e),e):void ne(e,0,0,0,1)}if(7===r||9===r){c=parseInt(n.slice(1,7),16);return c>=0&&16777215>=c?(ne(e,(16711680&c)>>16,(65280&c)>>8,255&c,9===r?parseInt(n.slice(7),16)/255:1),oe(t,e),e):void ne(e,0,0,0,1)}}}}function se(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=te(t[1]),r=te(t[2]),o=.5>=r?r*(n+1):r+n-r*n,a=2*r-o;return e=e||[],ne(e,$t(255*ee(a,o,i+1/3)),$t(255*ee(a,o,i)),$t(255*ee(a,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function le(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(n,r,o),s=Math.max(n,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+a):l/(2-s-a);var c=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;n===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var p=[360*e,i,u];return null!=t[3]&&p.push(t[3]),p}}function ue(t,e){var i=ae(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:i[n]<0&&(i[n]=0);return ge(i,4===i.length?"rgba":"rgb")}}function ce(t){var e=ae(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function he(t,e,i){if(e&&e.length&&t>=0&&1>=t){i=i||[];var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=e[r],s=e[o],l=n-r;return i[0]=$t(ie(a[0],s[0],l)),i[1]=$t(ie(a[1],s[1],l)),i[2]=$t(ie(a[2],s[2],l)),i[3]=Qt(ie(a[3],s[3],l)),i}}function de(t,e,i){if(e&&e.length&&t>=0&&1>=t){var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=ae(e[r]),s=ae(e[o]),l=n-r,u=ge([$t(ie(a[0],s[0],l)),$t(ie(a[1],s[1],l)),$t(ie(a[2],s[2],l)),Qt(ie(a[3],s[3],l))],"rgba");return i?{color:u,leftIndex:r,rightIndex:o,value:n}:u}}function pe(t,e,i,n){var r=ae(t);return t?(r=le(r),null!=e&&(r[0]=Kt(e)),null!=i&&(r[1]=te(i)),null!=n&&(r[2]=te(n)),ge(se(r),"rgba")):void 0}function fe(t,e){var i=ae(t);return i&&null!=e?(i[3]=Qt(e),ge(i,"rgba")):void 0}function ge(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}}function ve(t,e){var i=ae(t);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[3])*e:0}function ye(){var t=Math.round(255*Math.random()),e=Math.round(255*Math.random()),i=Math.round(255*Math.random());return"rgb("+t+","+e+","+i+")"}function me(t,e,i){return(e-t)*i+t}function xe(t,e,i){return i>.5?e:t}function be(t,e,i,n){for(var r=e.length,o=0;r>o;o++)t[o]=me(e[o],i[o],n)}function _e(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=me(e[a][s],i[a][s],n)}}function we(t,e,i,n){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+i[o]*n;return t}function ke(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+i[a][s]*n}return t}function Se(t,e,i){var n=t,r=e;if(n.push&&r.push){var o=n.length,a=r.length;if(o!==a){var s=o>a;if(s)n.length=a;else for(var l=o;a>l;l++)n.push(1===i?r[l]:qy.call(r[l]))}var u=n[0]&&n[0].length;for(l=0;l<n.length;l++)if(1===i)isNaN(n[l])&&(n[l]=r[l]);else for(var c=0;u>c;c++)isNaN(n[l][c])&&(n[l][c]=r[l][c])}}function Me(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;i>n;n++)if(t[n]!==e[n])return!1;return!0}function Te(t,e,i,n,r,o,a){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*r+e}function Ce(t,e,i,n,r,o,a,s){for(var l=e.length,u=0;l>u;u++)t[u]=Te(e[u],i[u],n[u],r[u],o,a,s)}function Ie(t,e,i,n,r,o,a,s){for(var l=e.length,u=e[0].length,c=0;l>c;c++){t[c]||(t[1]=[]);for(var h=0;u>h;h++)t[c][h]=Te(e[c][h],i[c][h],n[c][h],r[c][h],o,a,s)}}function Ae(t){if(v(t)){var e=t.length;if(v(t[0])){for(var i=[],n=0;e>n;n++)i.push(qy.call(t[n]));return i}return qy.call(t)}return t}function De(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function Pe(t){return v(t&&t[0])?2:1}function Le(t,e){return Iy||(Iy=ey().getContext("2d")),Ay!==e&&(Ay=Iy.font=e||cm),Iy.measureText(t)}function Oe(t,e){e=e||cm;var i=um[e];i||(i=um[e]=new jy(500));var n=i.get(t);return null==n&&(n=hm.measureText(t,e).width,i.put(t,n)),n}function ze(t,e,i,n){var r=Oe(t,e),o=Ne(e),a=Ee(0,r,i),s=Be(0,o,n),l=new lm(a,s,r,o);return l}function Re(t,e,i,n){var r=((t||"")+"").split("\n"),o=r.length;if(1===o)return ze(r[0],e,i,n);for(var a=new lm(0,0,0,0),s=0;s<r.length;s++){var l=ze(r[s],e,i,n);0===s?a.copy(l):a.union(l)}return a}function Ee(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Be(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function Ne(t){return Oe("国",t)}function Fe(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Ve(t,e,i){var n=e.position||"inside",r=null!=e.distance?e.distance:5,o=i.height,a=i.width,s=o/2,l=i.x,u=i.y,c="left",h="top";if(n instanceof Array)l+=Fe(n[0],i.width),u+=Fe(n[1],i.height),c=null,h=null;else switch(n){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}function He(t,e,i,n,r){i=i||{};var o=[];Ye(t,"",t,e,i,n,o,r);var a=o.length,s=!1,l=i.done,u=i.aborted,c=function(){s=!0,a--,0>=a&&(s?l&&l():u&&u())},h=function(){a--,0>=a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&i.during&&o[0].during((function(t,e){i.during(e)}));for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),h&&p.aborted(h),p.start(i.easing,i.force)}return o}function je(t,e,i){for(var n=0;i>n;n++)t[n]=e[n]}function We(t){return v(t[0])}function Ge(t,e,i){if(v(e[i]))if(v(t[i])||(t[i]=[]),L(e[i])){var n=e[i].length;t[i].length!==n&&(t[i]=new e[i].constructor(n),je(t[i],e[i],n))}else{var r=e[i],o=t[i],a=r.length;if(We(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?je(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else je(o,r,a);o.length=r.length}else t[i]=e[i]}function Ye(t,e,i,n,r,o,a,s){for(var l=[],u=[],c=w(n),h=r.duration,d=r.delay,f=r.additive,g=r.setToFinal,y=!D(o),m=0;m<c.length;m++){var x=c[m];if(null!=i[x]&&null!=n[x]&&(y||o[x]))if(D(n[x])&&!v(n[x])){if(e){s||(i[x]=n[x],t.updateDuringAnimation(e));continue}Ye(t,x,i[x],n[x],r,o&&o[x],a,s)}else l.push(x),u.push(x);else s||(i[x]=n[x],t.updateDuringAnimation(e),u.push(x))}var b=l.length;if(b>0||r.force&&!a.length){for(var _=t.animators,k=[],S=0;S<_.length;S++)_[S].targetName===e&&k.push(_[S]);if(!f&&k.length)for(S=0;S<k.length;S++){var M=k[S].stopTracks(u);if(M){var T=p(_,k[S]);_.splice(T,1)}}var C=void 0,I=void 0,A=void 0;if(s){I={},g&&(C={});for(S=0;b>S;S++){x=l[S];I[x]=i[x],g?C[x]=n[x]:i[x]=n[x]}}else if(g){A={};for(S=0;b>S;S++){x=l[S];A[x]=Ae(i[x]),Ge(i,n,x)}}var P=new Qy(i,!1,f?k:null);P.targetName=e,r.scope&&(P.scope=r.scope),g&&C&&P.whenWithKeys(0,C,l),A&&P.whenWithKeys(0,A,l),P.whenWithKeys(null==h?500:h,s?I:n,l).delay(d||0),t.addAnimator(P,e),a.push(P)}}function Ue(t){for(var e=0;t>=Mm;)e|=1&t,t>>=1;return t+e}function Xe(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;i>r&&n(t[r],t[r-1])<0;)r++;Ze(t,e,r)}else for(;i>r&&n(t[r],t[r-1])>=0;)r++;return r-e}function Ze(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function qe(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var o,a=t[n],s=e,l=n;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function $e(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])>0){for(s=n-r;s>l&&o(t,e[i+r+l])>0;)a=l,l=1+(l<<1),0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[i+r-l])<=0;)a=l,l=1+(l<<1),0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var c=a+(l-a>>>1);o(t,e[i+c])>0?a=c+1:l=c}return l}function Ke(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])<0){for(s=r+1;s>l&&o(t,e[i+r-l])<0;)a=l,l=1+(l<<1),0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=n-r;s>l&&o(t,e[i+r+l])>=0;)a=l,l=1+(l<<1),0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var c=a+(l-a>>>1);o(t,e[i+c])<0?l=c:a=c+1}return l}function Qe(t,e){function i(t,e){l[h]=t,u[h]=e,h+=1}function n(){for(;h>1;){var t=h-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]<u[t+1]&&t--;else if(u[t]>u[t+1])break;o(t)}}function r(){for(;h>1;){var t=h-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(i){var n=l[i],r=u[i],o=l[i+1],c=u[i+1];u[i]=r+c,i===h-3&&(l[i+1]=l[i+2],u[i+1]=u[i+2]),h--;var d=Ke(t[o],t,n,r,0,e);n+=d,r-=d,0!==r&&(c=$e(t[n+r-1],t,o,c,c-1,e),0!==c&&(c>=r?a(n,r,o,c):s(n,r,o,c)))}function a(i,n,r,o){var a=0;for(a=0;n>a;a++)d[a]=t[i+a];var s=0,l=r,u=i;if(t[u++]=t[l++],0!==--o){if(1===n){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=d[s])}for(var h,p,f,g=c;;){h=0,p=0,f=!1;do{if(e(t[l],d[s])<0){if(t[u++]=t[l++],p++,h=0,0===--o){f=!0;break}}else if(t[u++]=d[s++],h++,p=0,1===--n){f=!0;break}}while(g>(h|p));if(f)break;do{if(h=Ke(t[l],d,s,n,0,e),0!==h){for(a=0;h>a;a++)t[u+a]=d[s+a];if(u+=h,s+=h,n-=h,1>=n){f=!0;break}}if(t[u++]=t[l++],0===--o){f=!0;break}if(p=$e(d[s],t,l,o,0,e),0!==p){for(a=0;p>a;a++)t[u+a]=t[l+a];if(u+=p,l+=p,o-=p,0===o){f=!0;break}}if(t[u++]=d[s++],1===--n){f=!0;break}g--}while(h>=Tm||p>=Tm);if(f)break;0>g&&(g=0),g+=2}if(c=g,1>c&&(c=1),1===n){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=d[s]}else{if(0===n)throw new Error;for(a=0;n>a;a++)t[u+a]=d[s+a]}}else for(a=0;n>a;a++)t[u+a]=d[s+a]}function s(i,n,r,o){var a=0;for(a=0;o>a;a++)d[a]=t[r+a];var s=i+n-1,l=o-1,u=r+o-1,h=0,p=0;if(t[u--]=t[s--],0!==--n){if(1===o){for(u-=n,s-=n,p=u+1,h=s+1,a=n-1;a>=0;a--)t[p+a]=t[h+a];return void(t[u]=d[l])}for(var f=c;;){var g=0,v=0,y=!1;do{if(e(d[l],t[s])<0){if(t[u--]=t[s--],g++,v=0,0===--n){y=!0;break}}else if(t[u--]=d[l--],v++,g=0,1===--o){y=!0;break}}while(f>(g|v));if(y)break;do{if(g=n-Ke(d[l],t,i,n,n-1,e),0!==g){for(u-=g,s-=g,n-=g,p=u+1,h=s+1,a=g-1;a>=0;a--)t[p+a]=t[h+a];if(0===n){y=!0;break}}if(t[u--]=d[l--],1===--o){y=!0;break}if(v=o-$e(t[s],d,0,o,o-1,e),0!==v){for(u-=v,l-=v,o-=v,p=u+1,h=l+1,a=0;v>a;a++)t[p+a]=d[h+a];if(1>=o){y=!0;break}}if(t[u--]=t[s--],0===--n){y=!0;break}f--}while(g>=Tm||v>=Tm);if(y)break;0>f&&(f=0),f+=2}if(c=f,1>c&&(c=1),1===o){for(u-=n,s-=n,p=u+1,h=s+1,a=n-1;a>=0;a--)t[p+a]=t[h+a];t[u]=d[l]}else{if(0===o)throw new Error;for(h=u-(o-1),a=0;o>a;a++)t[h+a]=d[a]}}else for(h=u-(o-1),a=0;o>a;a++)t[h+a]=d[a]}var l,u,c=Tm,h=0,d=[];return l=[],u=[],{mergeRuns:n,forceMergeRuns:r,pushRun:i}}function Je(t,e,i,n){i||(i=0),n||(n=t.length);var r=n-i;if(!(2>r)){var o=0;if(Mm>r)return o=Xe(t,i,n,e),void qe(t,i,n,i+o,e);var a=Qe(t,e),s=Ue(r);do{if(o=Xe(t,i,n,e),s>o){var l=r;l>s&&(l=s),qe(t,i,i+l,i+o,e),o=l}a.pushRun(i,o),a.mergeRuns(),r-=o,i+=o}while(0!==r);a.forceMergeRuns()}}function ti(){Cm||(Cm=!0,t.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ei(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function ii(t){var e=t.pointerType;return"pen"===e||"touch"===e}function ni(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function ri(t){t&&(t.zrByTouch=!0)}function oi(t,e){return At(t.dom,new Em(t,e),!0)}function ai(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}function si(t,e){var i=e.domHandlers;jv.pointerEventsSupported?y(Om.pointer,(function(n){ui(e,n,(function(e){i[n].call(t,e)}))})):(jv.touchEventsSupported&&y(Om.touch,(function(n){ui(e,n,(function(r){i[n].call(t,r),ni(e)}))})),y(Om.mouse,(function(n){ui(e,n,(function(r){r=It(r),e.touching||i[n].call(t,r)}))})))}function li(t,e){function i(i){function n(n){n=It(n),ai(t,n.target)||(n=oi(t,n),e.domHandlers[i].call(t,n))}ui(e,i,n,{capture:!0})}jv.pointerEventsSupported?y(zm.pointer,i):jv.touchEventsSupported||y(zm.mouse,i)}function ui(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,Pt(t.domTarget,e,i,n)}function ci(t){var e=t.mounted;for(var i in e)e.hasOwnProperty(i)&&Lt(t.domTarget,i,e[i],t.listenerOpts[i]);t.mounted={}}function hi(t){delete Gm[t]}function di(t){if(!t)return!1;if("string"==typeof t)return ve(t,1)<fm;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,r=0;n>r;r++)i+=ve(e[r].color,1);return i/=n,fm>i}return!1}function pi(t,e){var i=new Ym(a(),t,e);return Gm[i.id]=i,i}function fi(t){t.dispose()}function gi(){for(var t in Gm)Gm.hasOwnProperty(t)&&Gm[t].dispose();Gm={}}function vi(t){return Gm[t]}function yi(t,e){Wm[t]=e}function mi(t){return t.replace(/^\s+|\s+$/g,"")}function xi(t,e,i,n){var r=e[1]-e[0],o=i[1]-i[0];if(0===r)return 0===o?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*o+i[0]}function bi(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?mi(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function _i(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t}function wi(t){return t.sort((function(t,e){return t-e})),t}function ki(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Si(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return 0>n?-n:0}var r=e.indexOf(".");return 0>r?0:e.length-1-r}function Mi(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Ti(t,e,i){if(!t[e])return 0;var n=x(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return 0;for(var r=Math.pow(10,i),o=m(t,(function(t){return(isNaN(t)?0:t)/n*r*100})),a=100*r,s=m(o,(function(t){return Math.floor(t)})),l=x(s,(function(t,e){return t+e}),0),u=m(o,(function(t,e){return t-s[e]}));a>l;){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,p=u.length;p>d;++d)u[d]>c&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[e]/r}function Ci(t){var e=2*Math.PI;return(t%e+e)%e}function Ii(t){return t>-Zm&&Zm>t}function Ai(t){if(t instanceof Date)return t;if("string"==typeof t){var e=$m.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return new Date(null==t?NaN:Math.round(t))}function Di(t){return Math.pow(10,Pi(t))}function Pi(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Li(t,e){var i,n=Pi(t),r=Math.pow(10,n),o=t/r;return i=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=i*r,n>=-20?+t.toFixed(0>n?-n:0):t}function Oi(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),r=+t[n-1],o=i-n;return o?r+o*(t[n]-r):r}function zi(t){function e(t,i,n){return t.interval[n]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]===(n?-1:1)||!n&&e(t,i,1))}t.sort((function(t,i){return e(t,i,0)?-1:1}));for(var i=-1/0,n=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;2>s;s++)o[s]<=i&&(o[s]=i,a[s]=s?1:1-n),i=o[s],n=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(r,1):r++}return t}function Ri(t){var e=parseFloat(t);return e==t&&(0!==e||"string"!=typeof t||t.indexOf("x")<=0)?e:NaN}function Ei(t){return!isNaN(Ri(t))}function Bi(){return Math.round(9*Math.random())}function Ni(t,e){return 0===e?t:Ni(e,t%e)}function Fi(t,e){return null==t?e:null==e?t:t*e/Ni(t,e)}function Vi(t){throw new Error(t)}function Hi(t){return t instanceof Array?t:null==t?[]:[t]}function ji(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;r>n;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Wi(t){return!D(t)||M(t)||t instanceof Date?t:t.value}function Gi(t){return D(t)&&!(t instanceof Array)}function Yi(t,e,i){var n="normalMerge"===i,r="replaceMerge"===i,o="replaceAll"===i;t=t||[],e=(e||[]).slice();var a=X();y(e,(function(t,i){return D(t)?void 0:void(e[i]=null)}));var s=Ui(t,a,i);return(n||r)&&Xi(s,t,a,e),n&&Zi(s,e),n||r?qi(s,e,r):o&&$i(s,e),Ki(s),s}function Ui(t,e,i){var n=[];if("replaceAll"===i)return n;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),n.push({existing:"replaceMerge"===i||nn(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function Xi(t,e,i,n){y(n,(function(r,o){if(r&&null!=r.id){var a=Ji(r.id),s=i.get(a);if(null!=s){var l=t[s];W(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],n[o]=null}}}))}function Zi(t,e){y(e,(function(i,n){if(i&&null!=i.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==i.id)&&!nn(i)&&!nn(o)&&Qi("name",o,i))return t[r].newOption=i,void(e[n]=null)}}))}function qi(t,e,i){y(e,(function(e){if(e){for(var n,r=0;(n=t[r])&&(n.newOption||nn(n.existing)||n.existing&&null!=e.id&&!Qi("id",e,n.existing));)r++;n?(n.newOption=e,n.brandNew=i):t.push({newOption:e,brandNew:i,existing:null,keyInfo:null}),r++}}))}function $i(t,e){y(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function Ki(t){var e=X();y(t,(function(t){var i=t.existing;i&&e.set(i.id,t)})),y(t,(function(t){var i=t.newOption;W(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})})),y(t,(function(t,i){var n=t.existing,r=t.newOption,o=t.keyInfo;if(D(r)){if(o.name=null!=r.name?Ji(r.name):n?n.name:Km+i,n)o.id=Ji(n.id);else if(null!=r.id)o.id=Ji(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}}))}function Qi(t,e,i){var n=tn(e[t],null),r=tn(i[t],null);return null!=n&&null!=r&&n===r}function Ji(t){return tn(t,"")}function tn(t,e){if(null==t)return e;var i=typeof t;return"string"===i?t:"number"===i||I(t)?t+"":e}function en(t){var e=t.name;return!(!e||!e.indexOf(Km))}function nn(t){return t&&null!=t.id&&0===Ji(t.id).indexOf(Qm)}function rn(t,e,i){y(t,(function(t){var n=t.newOption;D(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=on(e,n,t.existing,i))}))}function on(t,e,i,n){var r=e.type?e.type:i?i.subType:n.determineSubType(t,e);return r}function an(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?M(e.dataIndex)?m(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?M(e.name)?m(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function sn(){var t="__ec_inner_"+tx++;return function(e){return e[t]||(e[t]={})}}function ln(t,e,i){var n;if(C(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var o=X(),a={},s=!1;y(n,(function(t,e){if("dataIndex"!==e&&"dataIndexInside"!==e){var n=e.match(/^(\w+)(Index|Id|Name)$/)||[],r=n[1],l=(n[2]||"").toLowerCase();if(r&&l&&!(i&&i.includeMainTypes&&p(i.includeMainTypes,r)<0)){s=s||!!r;var u=o.get(r)||o.set(r,{});u[l]=t}}else a[e]=t}));var l=i?i.defaultMainType:null;return!s&&l&&o.set(l,{}),o.each((function(e,n){var r=un(t,n,e,{useDefault:l===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});a[n+"Models"]=r.models,a[n+"Model"]=r.models[0]})),a}function un(t,e,i,n){n=n||ex;var r=i.index,o=i.id,a=i.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(W(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(W(n.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function cn(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function hn(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function dn(t){return"auto"===t?jv.domSupported?"html":"richText":t||"html"}function pn(t,e,i,n,r){var o=null==e||"auto"===e;if(null==n)return n;if("number"==typeof n){var a=me(i||0,n,r);return _i(a,o?Math.max(Si(i||0),Si(n)):e)}if("string"==typeof n)return 1>r?i:n;for(var s=[],l=i,u=n,c=Math.max(l?l.length:0,u.length),h=0;c>h;++h){var d=t.getDimensionInfo(h);if("ordinal"===d.type)s[h]=(1>r&&l?l:u)[h];else{var p=l&&l[h]?l[h]:0,f=u[h];a=me(p,f,r);s[h]=_i(a,o?Math.max(Si(p),Si(f)):e)}}return s}function fn(t){var e={main:"",sub:""};if(t){var i=t.split(nx);e.main=i[0]||"",e.sub=i[1]||""}return e}function gn(t){W(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function vn(t){return!(!t||!t[ox])}function yn(t){t.$constructor=t,t.extend=function(t){function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(t.$constructor)t.$constructor.apply(this,arguments);else{if(mn(i)){var a=q(e.prototype,new(i.bind.apply(i,n([void 0],r))));return a}i.apply(this,arguments)}}var i=this;return e[ox]=!0,h(e.prototype,t),e.extend=this.extend,e.superCall=_n,e.superApply=wn,f(e,this),e.superClass=i,e}}function mn(t){return"function"==typeof t&&/^class\s/.test(Function.prototype.toString.call(t))}function xn(t,e){t.extend=e.extend}function bn(t){var e=["__\0is_clz",ax++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function _n(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,i)}function wn(t,e,i){return this.superClass.prototype[e].apply(t,i)}function kn(t){function e(t){var e=i[t.main];return e&&e[rx]||(e=i[t.main]={},e[rx]=!0),e}var i={};t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){gn(n),t.prototype.type=n;var r=fn(n);if(r.sub){if(r.sub!==rx){var o=e(r);o[r.sub]=t}}else i[r.main]=t}return t},t.getClass=function(t,e,n){var r=i[t];if(r&&r[rx]&&(r=e?r[e]:null),n&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var e=fn(t),n=[],r=i[e.main];return r&&r[rx]?y(r,(function(t,e){e!==rx&&n.push(t)})):n.push(r),n},t.hasClass=function(t){var e=fn(t);return!!i[e.main]},t.getAllClassMainTypes=function(){var t=[];return y(i,(function(e,i){t.push(i)})),t},t.hasSubTypes=function(t){var e=fn(t),n=i[e.main];return n&&n[rx]}}function Sn(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(n&&p(n,s)>=0||r&&p(r,s)<0)){var l=i.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function Mn(t){if("string"==typeof t){var e=cx.get(t);return e&&e.image}return t}function Tn(t,e,i,n,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=cx.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?(e=o.image,!In(e)&&o.pending.push(a)):(e=new Image,e.onload=e.onerror=Cn,cx.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Cn(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function In(t){return t&&t.width&&t.height}function An(t,e,i,n,r){if(!e)return"";var o=(t+"").split("\n");r=Dn(e,i,n,r);for(var a=0,s=o.length;s>a;a++)o[a]=Pn(o[a],r);return o.join("\n")}function Dn(t,e,i,n){n=n||{};var r=h({},n);r.font=e,i=F(i,"..."),r.maxIterations=F(n.maxIterations,2);var o=r.minChar=F(n.minChar,0);r.cnCharWidth=Oe("国",e);var a=r.ascCharWidth=Oe("a",e);r.placeholder=F(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var u=Oe(i,e);return u>s&&(i="",u=0),s=t-u,r.ellipsis=i,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function Pn(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var o=Oe(t,n);if(i>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Ln(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=Oe(t,n)}return""===t&&(t=e.placeholder),t}function Ln(t,e,i,n){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?i:n}return o}function On(t,e){null!=t&&(t+="");var i,n=e.overflow,r=e.padding,o=e.font,a="truncate"===n,s=Ne(o),l=F(e.lineHeight,s),u="truncate"===e.lineOverflow,c=e.width;i=null!=c&&"break"===n||"breakAll"===n?t?Nn(t,e.font,c,"breakAll"===n,0).lines:[]:t?t.split("\n"):[];var h=i.length*l,d=F(e.height,h);if(h>d&&u){var p=Math.floor(d/l);i=i.slice(0,p)}var f=d,g=c;if(r&&(f+=r[0]+r[2],null!=g&&(g+=r[1]+r[3])),t&&a&&null!=g)for(var v=Dn(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y<i.length;y++)i[y]=Pn(i[y],v);if(null==c){var m=0;for(y=0;y<i.length;y++)m=Math.max(Oe(i[y],o),m);c=m}return{lines:i,height:d,outerHeight:f,lineHeight:l,calculatedLineHeight:s,contentHeight:h,width:c}}function zn(t,e){function i(t,e,i){t.width=e,t.lineHeight=i,d+=i,p=Math.max(p,e)}var n=new fx;if(null!=t&&(t+=""),!t)return n;for(var r,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},u=hx.lastIndex=0;null!=(r=hx.exec(t));){var c=r.index;c>u&&Rn(n,t.substring(u,c),e,l),Rn(n,r[2],e,l,r[1]),u=hx.lastIndex}u<t.length&&Rn(n,t.substring(u,t.length),e,l);var h=[],d=0,p=0,f=e.padding,g="truncate"===s,v="truncate"===e.lineOverflow;t:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],x=0,b=0,_=0;_<m.tokens.length;_++){var w=m.tokens[_],k=w.styleName&&e.rich[w.styleName]||{},S=w.textPadding=k.padding,M=S?S[1]+S[3]:0,T=w.font=k.font||e.font;w.contentHeight=Ne(T);var C=F(k.height,w.contentHeight);if(w.innerHeight=C,S&&(C+=S[0]+S[2]),w.height=C,w.lineHeight=V(k.lineHeight,e.lineHeight,C),w.align=k&&k.align||e.align,w.verticalAlign=k&&k.verticalAlign||"middle",v&&null!=a&&d+w.lineHeight>a){_>0?(m.tokens=m.tokens.slice(0,_),i(m,b,x),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var I=k.width,A=null==I||"auto"===I;if("string"==typeof I&&"%"===I.charAt(I.length-1))w.percentWidth=I,h.push(w),w.contentWidth=Oe(w.text,T);else{if(A){var D=k.backgroundColor,P=D&&D.image;P&&(P=Mn(P),In(P)&&(w.width=Math.max(w.width,P.width*C/P.height)))}var L=g&&null!=o?o-b:null;null!=L&&L<w.width?!A||M>L?(w.text="",w.width=w.contentWidth=0):(w.text=An(w.text,L-M,T,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=Oe(w.text,T)):w.contentWidth=Oe(w.text,T)}w.width+=M,b+=w.width,k&&(x=Math.max(x,w.lineHeight))}i(m,b,x)}n.outerWidth=n.width=F(o,p),n.outerHeight=n.height=F(a,d),n.contentHeight=d,n.contentWidth=p,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]);for(y=0;y<h.length;y++){w=h[y];var O=w.percentWidth;w.width=parseInt(O,10)/100*n.width}return n}function Rn(t,e,i,n,r){var o,a,s=""===e,l=r&&i.rich[r]||{},u=t.lines,c=l.font||i.font,h=!1;if(n){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=Fn(l.width,n.width)+p;u.length>0&&f+n.accumWidth>n.width&&(o=e.split("\n"),h=!0),n.accumWidth=f}else{var g=Nn(e,c,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new dx;if(m.styleName=r,m.text=y,m.isLineHolder=!y&&!s,m.width="number"==typeof l.width?l.width:a?a[v]:Oe(y,c),v||h)u.push(new px([m]));else{var x=(u[u.length-1]||(u[0]=new px)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=m:(y||!b||s)&&x.push(m)}}}function En(t){var e=t.charCodeAt(0);return e>=33&&255>=e}function Bn(t){return!En(t)||!!gx[t]}function Nn(t,e,i,n,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var d=t.charAt(h);if("\n"!==d){var p=Oe(d,e),f=!n&&!Bn(d);(o.length?c+p>i:r+c+p>i)?c?(s||l)&&(f?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,c+=u,l="",u=0),o.push(s),a.push(c),s=d,c=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(c+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}function Fn(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Vn(t,e,i){return _x.copy(t.getBoundingRect()),t.transform&&_x.applyTransform(t.transform),kx.width=e,kx.height=i,!_x.intersect(kx)}function Hn(t){return t>-Tx&&Tx>t}function jn(t){return t>Tx||-Tx>t}function Wn(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function Gn(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function Yn(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,p=0;if(Hn(c)&&Hn(h))if(Hn(s))o[0]=0;else{var f=-l/s;f>=0&&1>=f&&(o[p++]=f)}else{var g=h*h-4*c*d;if(Hn(g)){var v=h/c,y=(f=-s/a+v,-v/2);f>=0&&1>=f&&(o[p++]=f),y>=0&&1>=y&&(o[p++]=y)}else if(g>0){var m=Mx(g),x=c*s+1.5*a*(-h+m),b=c*s+1.5*a*(-h-m);x=0>x?-Sx(-x,Ax):Sx(x,Ax),b=0>b?-Sx(-b,Ax):Sx(b,Ax);f=(-s-(x+b))/(3*a);f>=0&&1>=f&&(o[p++]=f)}else{var _=(2*c*s-3*a*h)/(2*Mx(c*c*c)),w=Math.acos(_)/3,k=Mx(c),S=Math.cos(w),M=(f=(-s-2*k*S)/(3*a),y=(-s+k*(S+Ix*Math.sin(w)))/(3*a),(-s+k*(S-Ix*Math.sin(w)))/(3*a));f>=0&&1>=f&&(o[p++]=f),y>=0&&1>=y&&(o[p++]=y),M>=0&&1>=M&&(o[p++]=M)}}return p}function Un(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Hn(a)){if(jn(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(Hn(c))r[0]=-o/(2*a);else if(c>0){var h=Mx(c),d=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&1>=u&&(r[l++]=u),d>=0&&1>=d&&(r[l++]=d)}}return l}function Xn(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=n}function Zn(t,e,i,n,r,o,a,s,l,u,c){var h,d,p,f,g,v=.005,y=1/0;Dx[0]=l,Dx[1]=u;for(var m=0;1>m;m+=.05)Px[0]=Wn(t,i,r,a,m),Px[1]=Wn(e,n,o,s,m),f=uy(Dx,Px),y>f&&(h=m,y=f);y=1/0;for(var x=0;32>x&&!(Cx>v);x++)d=h-v,p=h+v,Px[0]=Wn(t,i,r,a,d),Px[1]=Wn(e,n,o,s,d),f=uy(Px,Dx),d>=0&&y>f?(h=d,y=f):(Lx[0]=Wn(t,i,r,a,p),Lx[1]=Wn(e,n,o,s,p),g=uy(Lx,Dx),1>=p&&y>g?(h=p,y=g):v*=.5);return c&&(c[0]=Wn(t,i,r,a,h),c[1]=Wn(e,n,o,s,h)),Mx(y)}function qn(t,e,i,n,r,o,a,s,l){for(var u=t,c=e,h=0,d=1/l,p=1;l>=p;p++){var f=p*d,g=Wn(t,i,r,a,f),v=Wn(e,n,o,s,f),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function $n(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function Kn(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function Qn(t,e,i,n,r){var o=t-2*e+i,a=2*(e-t),s=t-n,l=0;if(Hn(o)){if(jn(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(Hn(c)){u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(c>0){var h=Mx(c),d=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&1>=u&&(r[l++]=u),d>=0&&1>=d&&(r[l++]=d)}}return l}function Jn(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function tr(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}function er(t,e,i,n,r,o,a,s,l){var u,c=.005,h=1/0;Dx[0]=a,Dx[1]=s;for(var d=0;1>d;d+=.05){Px[0]=$n(t,i,r,d),Px[1]=$n(e,n,o,d);var p=uy(Dx,Px);h>p&&(u=d,h=p)}h=1/0;for(var f=0;32>f&&!(Cx>c);f++){var g=u-c,v=u+c;Px[0]=$n(t,i,r,g),Px[1]=$n(e,n,o,g);p=uy(Px,Dx);if(g>=0&&h>p)u=g,h=p;else{Lx[0]=$n(t,i,r,v),Lx[1]=$n(e,n,o,v);var y=uy(Lx,Dx);1>=v&&h>y?(u=v,h=y):c*=.5}}return l&&(l[0]=$n(t,i,r,u),l[1]=$n(e,n,o,u)),Mx(h)}function ir(t,e,i,n,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;a>=h;h++){var d=h*c,p=$n(t,i,r,d),f=$n(e,n,o,d),g=p-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=p,l=f}return u}function nr(t,e,i){if(0!==t.length){for(var n=t[0],r=n[0],o=n[0],a=n[1],s=n[1],l=1;l<t.length;l++)n=t[l],r=Ox(r,n[0]),o=zx(o,n[0]),a=Ox(a,n[1]),s=zx(s,n[1]);e[0]=r,e[1]=a,i[0]=o,i[1]=s}}function rr(t,e,i,n,r,o){r[0]=Ox(t,i),r[1]=Ox(e,n),o[0]=zx(t,i),o[1]=zx(e,n)}function or(t,e,i,n,r,o,a,s,l,u){var c=Un,h=Wn,d=c(t,i,r,a,Hx);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;d>p;p++){var f=h(t,i,r,a,Hx[p]);l[0]=Ox(f,l[0]),u[0]=zx(f,u[0])}d=c(e,n,o,s,jx);for(p=0;d>p;p++){var g=h(e,n,o,s,jx[p]);l[1]=Ox(g,l[1]),u[1]=zx(g,u[1])}l[0]=Ox(t,l[0]),u[0]=zx(t,u[0]),l[0]=Ox(a,l[0]),u[0]=zx(a,u[0]),l[1]=Ox(e,l[1]),u[1]=zx(e,u[1]),l[1]=Ox(s,l[1]),u[1]=zx(s,u[1])}function ar(t,e,i,n,r,o,a,s){var l=Jn,u=$n,c=zx(Ox(l(t,i,r),1),0),h=zx(Ox(l(e,n,o),1),0),d=u(t,i,r,c),p=u(e,n,o,h);a[0]=Ox(t,r,d),a[1]=Ox(e,o,p),s[0]=zx(t,r,d),s[1]=zx(e,o,p)}function sr(t,e,i,n,r,o,a,s,l){var u=yt,c=mt,h=Math.abs(r-o);if(1e-4>h%Bx&&h>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(Nx[0]=Ex(r)*i+t,Nx[1]=Rx(r)*n+e,Fx[0]=Ex(o)*i+t,Fx[1]=Rx(o)*n+e,u(s,Nx,Fx),c(l,Nx,Fx),r%=Bx,0>r&&(r+=Bx),o%=Bx,0>o&&(o+=Bx),r>o&&!a?o+=Bx:o>r&&a&&(r+=Bx),a){var d=o;o=r,r=d}for(var p=0;o>p;p+=Math.PI/2)p>r&&(Vx[0]=Ex(p)*i+t,Vx[1]=Rx(p)*n+e,u(s,Vx,s),c(l,Vx,l))}function lr(t){var e=Math.round(t/ib*1e8)/1e8;return e%2*ib}function ur(t,e){var i=lr(t[0]);0>i&&(i+=nb);var n=i-t[0],r=t[1];r+=n,!e&&r-i>=nb?r=i+nb:e&&i-r>=nb?r=i-nb:!e&&i>r?r=i+(nb-lr(i-r)):e&&r>i&&(r=i-(nb-lr(r-i))),t[0]=i,t[1]=r}function cr(t,e,i,n,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>n+s||e-s>a&&n-s>a||o>t+s&&o>i+s||t-s>o&&i-s>o)return!1;if(t===i)return Math.abs(o-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var c=l*o-a+u,h=c*c/(l*l+1);return s/2*s/2>=h}function hr(t,e,i,n,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>n+h&&c>o+h&&c>s+h||e-h>c&&n-h>c&&o-h>c&&s-h>c||u>t+h&&u>i+h&&u>r+h&&u>a+h||t-h>u&&i-h>u&&r-h>u&&a-h>u)return!1;var d=Zn(t,e,i,n,r,o,a,s,u,c,null);return h/2>=d}function dr(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>n+u&&l>o+u||e-u>l&&n-u>l&&o-u>l||s>t+u&&s>i+u&&s>r+u||t-u>s&&i-u>s&&r-u>s)return!1;var c=er(t,e,i,n,r,o,s,l,null);return u/2>=c}function pr(t){return t%=sb,0>t&&(t+=sb),t}function fr(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>i||i>c+u)return!1;if(Math.abs(n-r)%lb<1e-4)return!0;if(o){var h=n;n=pr(r),r=pr(h)}else n=pr(n),r=pr(r);n>r&&(r+=lb);var d=Math.atan2(l,s);return 0>d&&(d+=lb),d>=n&&r>=d||d+lb>=n&&r>=d+lb}function gr(t,e,i,n,r,o){if(o>e&&o>n||e>o&&n>o)return 0;if(n===e)return 0;var a=(o-e)/(n-e),s=e>n?1:-1;(1===a||0===a)&&(s=e>n?.5:-.5);var l=a*(i-t)+t;return l===r?1/0:l>r?s:0}function vr(t,e){return Math.abs(t-e)<hb}function yr(){var t=pb[0];pb[0]=pb[1],pb[1]=t}function mr(t,e,i,n,r,o,a,s,l,u){if(u>e&&u>n&&u>o&&u>s||e>u&&n>u&&o>u&&s>u)return 0;var c=Yn(e,n,o,s,u,db);if(0===c)return 0;for(var h=0,d=-1,p=void 0,f=void 0,g=0;c>g;g++){var v=db[g],y=0===v||1===v?.5:1,m=Wn(t,i,r,a,v);l>m||(0>d&&(d=Un(e,n,o,s,pb),pb[1]<pb[0]&&d>1&&yr(),p=Wn(e,n,o,s,pb[0]),d>1&&(f=Wn(e,n,o,s,pb[1]))),h+=2===d?v<pb[0]?e>p?y:-y:v<pb[1]?p>f?y:-y:f>s?y:-y:v<pb[0]?e>p?y:-y:p>s?y:-y)}return h}function xr(t,e,i,n,r,o,a,s){if(s>e&&s>n&&s>o||e>s&&n>s&&o>s)return 0;var l=Qn(e,n,o,s,db);if(0===l)return 0;var u=Jn(e,n,o);if(u>=0&&1>=u){for(var c=0,h=$n(e,n,o,u),d=0;l>d;d++){var p=0===db[d]||1===db[d]?.5:1,f=$n(t,i,r,db[d]);a>f||(c+=db[d]<u?e>h?p:-p:h>o?p:-p)}return c}p=0===db[0]||1===db[0]?.5:1,f=$n(t,i,r,db[0]);return a>f?0:e>o?p:-p}function br(t,e,i,n,r,o,a,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);db[0]=-l,db[1]=l;var u=Math.abs(n-r);if(1e-4>u)return 0;if(u>=cb-1e-4){n=0,r=cb;var c=o?1:-1;return a>=db[0]+t&&a<=db[1]+t?c:0}if(n>r){var h=n;n=r,r=h}0>n&&(n+=cb,r+=cb);for(var d=0,p=0;2>p;p++){var f=db[p];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;0>g&&(g=cb+g),(g>=n&&r>=g||g+cb>=n&&r>=g+cb)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function _r(t,e,i,n,r){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,d=0,p=0,f=0;l>f;){var g=s[f++],v=1===f;switch(g===ub.M&&f>1&&(i||(u+=gr(c,h,d,p,n,r))),v&&(c=s[f],h=s[f+1],d=c,p=h),g){case ub.M:d=s[f++],p=s[f++],c=d,h=p;break;case ub.L:if(i){if(cr(c,h,s[f],s[f+1],e,n,r))return!0}else u+=gr(c,h,s[f],s[f+1],n,r)||0;c=s[f++],h=s[f++];break;case ub.C:if(i){if(hr(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,n,r))return!0}else u+=mr(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],n,r)||0;c=s[f++],h=s[f++];break;case ub.Q:if(i){if(dr(c,h,s[f++],s[f++],s[f],s[f+1],e,n,r))return!0}else u+=xr(c,h,s[f++],s[f++],s[f],s[f+1],n,r)||0;c=s[f++],h=s[f++];break;case ub.A:var y=s[f++],m=s[f++],x=s[f++],b=s[f++],_=s[f++],w=s[f++];f+=1;var k=!!(1-s[f++]);o=Math.cos(_)*x+y,a=Math.sin(_)*b+m,v?(d=o,p=a):u+=gr(c,h,o,a,n,r);var S=(n-y)*b/x+y;if(i){if(fr(y,m,b,_,_+w,k,e,S,r))return!0}else u+=br(y,m,b,_,_+w,k,S,r);c=Math.cos(_+w)*x+y,h=Math.sin(_+w)*b+m;break;case ub.R:d=c=s[f++],p=h=s[f++];var M=s[f++],T=s[f++];if(o=d+M,a=p+T,i){if(cr(d,p,o,p,e,n,r)||cr(o,p,o,a,e,n,r)||cr(o,a,d,a,e,n,r)||cr(d,a,d,p,e,n,r))return!0}else u+=gr(o,p,o,a,n,r),u+=gr(d,a,d,p,n,r);break;case ub.Z:if(i){if(cr(c,h,d,p,e,n,r))return!0}else u+=gr(c,h,d,p,n,r);c=d,h=p}}return i||vr(h,p)||(u+=gr(c,h,d,p,n,r)||0),0!==u}function wr(t,e,i){return _r(t,0,!1,e,i)}function kr(t,e,i,n){return _r(t,e,!0,i,n)}function Sr(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function Mr(t,e){var i,n,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;0>u&&(s+=u,u=-u),0>c&&(l+=c,c=-c),"number"==typeof h?i=n=r=o=h:h instanceof Array?1===h.length?i=n=r=o=h[0]:2===h.length?(i=r=h[0],n=o=h[1]):3===h.length?(i=h[0],n=o=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],o=h[3]):i=n=r=o=0,i+n>u&&(a=i+n,i*=u/a,n*=u/a),r+o>u&&(a=r+o,r*=u/a,o*=u/a),n+r>c&&(a=n+r,n*=c/a,r*=c/a),i+o>c&&(a=i+o,i*=c/a,o*=c/a),t.moveTo(s+i,l),t.lineTo(s+u-n,l),0!==n&&t.arc(s+u-n,l+n,n,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+i),0!==i&&t.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}function Tr(t,e,i){if(e){var n=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=n,t.x2=r,t.y1=o,t.y2=a;var s=i&&i.lineWidth;return s?(kb(2*n)===kb(2*r)&&(t.x1=t.x2=Ir(n,s,!0)),kb(2*o)===kb(2*a)&&(t.y1=t.y2=Ir(o,s,!0)),t):t}}function Cr(t,e,i){if(e){var n=e.x,r=e.y,o=e.width,a=e.height;t.x=n,t.y=r,t.width=o,t.height=a;var s=i&&i.lineWidth;return s?(t.x=Ir(n,s,!0),t.y=Ir(r,s,!0),t.width=Math.max(Ir(n+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ir(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Ir(t,e,i){if(!e)return t;var n=kb(2*t);return(n+kb(e))%2===0?n/2:(n+(i?1:-1))/2}function Ar(t){return Dr(t),y(t.rich,Dr),t}function Dr(t){if(t){t.font=Db.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Pb[e]?e:"left";var i=t.verticalAlign;"center"===i&&(i="middle"),t.verticalAlign=null==i||Lb[i]?i:"top";var n=t.padding;n&&(t.padding=j(t.padding))}}function Pr(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Lr(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Or(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function zr(t){var e=t.text;return null!=e&&(e+=""),e}function Rr(t){return!!(t.backgroundColor||t.borderWidth&&t.borderColor)}function Er(t){return null!=t&&"none"!==t}function Br(t){if("string"!=typeof t)return t;var e=qb.get(t);return e||(e=ue(t,-.1),qb.put(t,e)),e}function Nr(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function Fr(t){Nr(t,"emphasis",Fb)}function Vr(t){t.hoverState===Fb&&Nr(t,"normal",Bb)}function Hr(t){Nr(t,"blur",Nb)}function jr(t){t.hoverState===Nb&&Nr(t,"normal",Bb)}function Wr(t){t.selected=!0}function Gr(t){t.selected=!1}function Yr(t,e,i){e(t,i)}function Ur(t,e,i){Yr(t,e,i),t.isGroup&&t.traverse((function(t){Yr(t,e,i)}))}function Xr(t,e){switch(e){case"emphasis":t.hoverState=Fb;break;case"normal":t.hoverState=Bb;break;case"blur":t.hoverState=Nb;break;case"select":t.selected=!0}}function Zr(t,e,i,n){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?n&&n[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(i)<0&&"style"===u.targetName&&u.saveFinalToTarget(o,e)}return o}function qr(t,e,i,n){var r=i&&p(i,"select")>=0,o=!1;if(t instanceof yb){var a=Eb(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Er(s)||Er(l)){n=n||{};var u=n.style||{};!Er(u.fill)&&Er(s)?(o=!0,n=h({},n),u=h({},u),u.fill=Br(s)):!Er(u.stroke)&&Er(l)&&(o||(n=h({},n),u=h({},u)),u.stroke=Br(l)),n.style=u}}if(n&&null==n.z2){o||(n=h({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(null!=c?c:jb)}return n}function $r(t,e,i){if(i&&null==i.z2){i=h({},i);var n=t.z2SelectLift;i.z2=t.z2+(null!=n?n:Wb)}return i}function Kr(t,e,i){var n=p(t.currentStates,e)>=0,r=t.style.opacity,o=n?null:Zr(t,["opacity"],e,{opacity:1});i=i||{};var a=i.style||{};return null==a.opacity&&(i=h({},i),a=h({opacity:n?r:.1*o.opacity},a),i.style=a),i}function Qr(t,e){var i=this.states[t];if(this.style){if("emphasis"===t)return qr(this,t,e,i);if("blur"===t)return Kr(this,t,i);if("select"===t)return $r(this,t,i)}return i}function Jr(t){t.stateProxy=Qr;var e=t.getTextContent(),i=t.getTextGuideLine();e&&(e.stateProxy=Qr),i&&(i.stateProxy=Qr)}function to(t,e){!lo(t,e)&&!t.__highByOuter&&Ur(t,Fr)}function eo(t,e){!lo(t,e)&&!t.__highByOuter&&Ur(t,Vr)}function io(t,e){t.__highByOuter|=1<<(e||0),Ur(t,Fr)}function no(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Ur(t,Vr)}function ro(t){Ur(t,Hr)}function oo(t){Ur(t,jr)}function ao(t){Ur(t,Wr)}function so(t){Ur(t,Gr)}function lo(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function uo(t){var e=t.getModel();e.eachComponent((function(e,i){var n="series"===e?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);n.group.traverse((function(t){jr(t)}))}))}function co(t,e,i,n,r){function o(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&oo(n)}}var a=n.getModel();if(i=i||"coordinateSystem",r){if(null!=t&&e&&"none"!==e){var s=a.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];a.eachSeries((function(t){var r=s===t,a=t.coordinateSystem;a&&a.master&&(a=a.master);var c=a&&l?a===l:r;if(!("series"===i&&!r||"coordinateSystem"===i&&!c||"series"===e&&r)){var h=n.getViewOfSeriesModel(t);if(h.group.traverse((function(t){Hr(t)})),v(e))o(t.getData(),e);else if(D(e))for(var d=w(e),p=0;p<d.length;p++)o(t.getData(d[p]),e[d[p]]);u.push(t)}})),a.eachComponent((function(t,e){if("series"!==t){var i=n.getViewOfComponentModel(e);i&&i.blurSeries&&i.blurSeries(u,a)}}))}}else uo(n)}function ho(t,e,i){if(ko(e)){var n=e.type===Gb,r=t.seriesIndex,o=t.getData(e.dataType),a=an(o,e);a=(M(a)?a[0]:a)||0;var s=o.getItemGraphicEl(a);if(!s)for(var l=o.count(),u=0;!s&&l>u;)s=o.getItemGraphicEl(u++);if(s){var c=Ob(s);co(r,c.focus,c.blurScope,i,n)}else{var h=t.get(["emphasis","focus"]),d=t.get(["emphasis","blurScope"]);null!=h&&co(r,h,d,i,n)}}}function po(t,e){if(wo(e)){var i=e.dataType,n=t.getData(i),r=an(n,e);M(r)||(r=[r]),t[e.type===Zb?"toggleSelect":e.type===Ub?"select":"unselect"](r,i)}}function fo(t){var e=t.getAllData();y(e,(function(e){var i=e.data,n=e.type;i.eachItemGraphicEl((function(e,i){t.isSelected(i,n)?ao(e):so(e)}))}))}function go(t){var e=[];return t.eachSeries((function(t){var i=t.getAllData();y(i,(function(i){var n=(i.data,i.type),r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=n&&(o.dataType=n),e.push(o)}}))})),e}function vo(t,e,i){xo(t,!0),Ur(t,Jr),yo(t,e,i)}function yo(t,e,i){var n=Ob(t);null!=e?(n.focus=e,n.blurScope=i):n.focus&&(n.focus=null)}function mo(t,e,i,n){i=i||"itemStyle";for(var r=0;r<$b.length;r++){var o=$b[r],a=e.getModel([o,i]),s=t.ensureState(o);s.style=n?n(a):a[Kb[i]]()}}function xo(t,e){var i=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!i||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!i)}function bo(t){return!(!t||!t.__highDownDispatcher)}function _o(t){var e=Rb[t];return null==e&&32>=zb&&(e=Rb[t]=zb++),e}function wo(t){var e=t.type;return e===Ub||e===Xb||e===Zb}function ko(t){var e=t.type;return e===Gb||e===Yb}function So(t){var e=Eb(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var i=t.states.select||{};e.selectFill=i.style&&i.style.fill||null,e.selectStroke=i.style&&i.style.stroke||null}function Mo(t,e){var i,n,r,o,a,s,l=t.data,u=t.len(),c=Qb.M,h=Qb.C,d=Qb.L,p=Qb.R,f=Qb.A,g=Qb.Q;for(r=0,o=0;u>r;){switch(i=l[r++],o=r,n=0,i){case c:n=1;break;case d:n=1;break;case h:n=3;break;case g:n=2;break;case f:var v=e[4],y=e[5],m=t_(e[0]*e[0]+e[1]*e[1]),x=t_(e[2]*e[2]+e[3]*e[3]),b=e_(-e[1]/x,e[0]/m);l[r]*=m,l[r++]+=v,l[r]*=x,l[r++]+=y,l[r++]*=m,l[r++]*=x,l[r++]+=b,l[r++]+=b,r+=2,o=r;break;case p:s[0]=l[r++],s[1]=l[r++],vt(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],vt(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;n>a;a++){var _=Jb[a];_[0]=l[r++],_[1]=l[r++],vt(_,_,e),l[o++]=_[0],l[o++]=_[1]}}t.increaseVersion()}function To(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Co(t,e){return(t[0]*e[0]+t[1]*e[1])/(To(t)*To(e))}function Io(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Co(t,e))}function Ao(t,e,i,n,r,o,a,s,l,u,c){var h=l*(o_/180),d=r_(h)*(t-i)/2+n_(h)*(e-n)/2,p=-1*n_(h)*(t-i)/2+r_(h)*(e-n)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=i_(f),s*=i_(f));var g=(r===o?-1:1)*i_((a*a*s*s-a*a*p*p-s*s*d*d)/(a*a*p*p+s*s*d*d))||0,v=g*a*p/s,y=g*-s*d/a,m=(t+i)/2+r_(h)*v-n_(h)*y,x=(e+n)/2+n_(h)*v+r_(h)*y,b=Io([1,0],[(d-v)/a,(p-y)/s]),_=[(d-v)/a,(p-y)/s],w=[(-1*d-v)/a,(-1*p-y)/s],k=Io(_,w);if(Co(_,w)<=-1&&(k=o_),Co(_,w)>=1&&(k=0),0>k){var S=Math.round(k/o_*1e6)/1e6;k=2*o_+S%2*o_}c.addData(u,m,x,a,s,b,k,h,o)}function Do(t){var e=new ab;if(!t)return e;var i,n=0,r=0,o=n,a=r,s=ab.CMD,l=t.match(a_);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,p=c.match(s_)||[],f=p.length,g=0;f>g;g++)p[g]=parseFloat(p[g]);for(var v=0;f>v;){var y=void 0,m=void 0,x=void 0,b=void 0,_=void 0,w=void 0,k=void 0,S=n,M=r,T=void 0,C=void 0;switch(h){case"l":n+=p[v++],r+=p[v++],d=s.L,e.addData(d,n,r);break;case"L":n=p[v++],r=p[v++],d=s.L,e.addData(d,n,r);break;case"m":n+=p[v++],r+=p[v++],d=s.M,e.addData(d,n,r),o=n,a=r,h="l";break;case"M":n=p[v++],r=p[v++],d=s.M,e.addData(d,n,r),o=n,a=r,h="L";break;case"h":n+=p[v++],d=s.L,e.addData(d,n,r);break;case"H":n=p[v++],d=s.L,e.addData(d,n,r);break;case"v":r+=p[v++],d=s.L,e.addData(d,n,r);break;case"V":r=p[v++],d=s.L,e.addData(d,n,r);break;case"C":d=s.C,e.addData(d,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),n=p[v-2],r=p[v-1];break;case"c":d=s.C,e.addData(d,p[v++]+n,p[v++]+r,p[v++]+n,p[v++]+r,p[v++]+n,p[v++]+r),n+=p[v-2],r+=p[v-1];break;case"S":y=n,m=r,T=e.len(),C=e.data,i===s.C&&(y+=n-C[T-4],m+=r-C[T-3]),d=s.C,S=p[v++],M=p[v++],n=p[v++],r=p[v++],e.addData(d,y,m,S,M,n,r);break;case"s":y=n,m=r,T=e.len(),C=e.data,i===s.C&&(y+=n-C[T-4],m+=r-C[T-3]),d=s.C,S=n+p[v++],M=r+p[v++],n+=p[v++],r+=p[v++],e.addData(d,y,m,S,M,n,r);break;case"Q":S=p[v++],M=p[v++],n=p[v++],r=p[v++],d=s.Q,e.addData(d,S,M,n,r);break;case"q":S=p[v++]+n,M=p[v++]+r,n+=p[v++],r+=p[v++],d=s.Q,e.addData(d,S,M,n,r);break;case"T":y=n,m=r,T=e.len(),C=e.data,i===s.Q&&(y+=n-C[T-4],m+=r-C[T-3]),n=p[v++],r=p[v++],d=s.Q,e.addData(d,y,m,n,r);break;case"t":y=n,m=r,T=e.len(),C=e.data,i===s.Q&&(y+=n-C[T-4],m+=r-C[T-3]),n+=p[v++],r+=p[v++],d=s.Q,e.addData(d,y,m,n,r);break;case"A":x=p[v++],b=p[v++],_=p[v++],w=p[v++],k=p[v++],S=n,M=r,n=p[v++],r=p[v++],d=s.A,Ao(S,M,n,r,w,k,x,b,_,d,e);break;case"a":x=p[v++],b=p[v++],_=p[v++],w=p[v++],k=p[v++],S=n,M=r,n+=p[v++],r+=p[v++],d=s.A,Ao(S,M,n,r,w,k,x,b,_,d,e)}}("z"===h||"Z"===h)&&(d=s.Z,e.addData(d),n=o,r=a),i=d}return e.toStatic(),e}function Po(t){return null!=t.setData}function Lo(t,e){var i=Do(t),n=h({},e);return n.buildPath=function(t){if(Po(t)){t.setData(i.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;i.rebuildPath(e,1)}},n.applyTransform=function(t){Mo(i,t),this.dirtyShape()},n}function Oo(t,e){return new l_(Lo(t,e))}function zo(t,e){var n=Lo(t,e),r=function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return i(e,t),e}(l_);return r}function Ro(t,e){for(var i=[],n=t.length,r=0;n>r;r++){var o=t[r];o.path||o.createPathProxy(),o.shapeChanged()&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var a=new yb(e);return a.createPathProxy(),a.buildPath=function(t){if(Po(t)){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function Eo(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,c=a-r,h=s-o,d=h*l-c*u;return k_>d*d?void 0:(d=(c*(e-o)-h*(t-r))/d,[t+d*l,e+d*u])}function Bo(t,e,i,n,r,o,a){var s=t-i,l=e-n,u=(a?o:-o)/b_(s*s+l*l),c=u*l,h=-u*s,d=t+c,p=e+h,f=i+c,g=n+h,v=(d+f)/2,y=(p+g)/2,m=f-d,x=g-p,b=m*m+x*x,_=r-o,w=d*g-f*p,k=(0>x?-1:1)*b_(__(0,_*_*b-w*w)),S=(w*x-m*k)/b,M=(-w*m-x*k)/b,T=(w*x+m*k)/b,C=(-w*m+x*k)/b,I=S-v,A=M-y,D=T-v,P=C-y;return I*I+A*A>D*D+P*P&&(S=T,M=C),{cx:S,cy:M,x01:-c,y01:-h,x11:S*(r/_-1),y11:M*(r/_-1)}}function No(t,e){var i=__(e.r,0),n=__(e.r0||0,0),r=i>0,o=n>0;if(r||o){if(r||(i=n,n=0),n>i){var a=i;i=n,n=a}var s,l=!!e.clockwise,u=e.startAngle,c=e.endAngle;if(u===c)s=0;else{var h=[u,c];ur(h,!l),s=x_(h[0]-h[1])}var d=e.cx,p=e.cy,f=e.cornerRadius||0,g=e.innerCornerRadius||0;if(i>k_)if(s>f_-k_)t.moveTo(d+i*v_(u),p+i*g_(u)),t.arc(d,p,i,u,c,!l),n>k_&&(t.moveTo(d+n*v_(c),p+n*g_(c)),t.arc(d,p,n,c,u,l));else{var v=x_(i-n)/2,y=w_(v,f),m=w_(v,g),x=m,b=y,_=i*v_(u),w=i*g_(u),k=n*v_(c),S=n*g_(c),M=void 0,T=void 0,C=void 0,I=void 0;if((y>k_||m>k_)&&(M=i*v_(c),T=i*g_(c),C=n*v_(u),I=n*g_(u),p_>s)){var A=Eo(_,w,C,I,M,T,k,S);if(A){var D=_-A[0],P=w-A[1],L=M-A[0],O=T-A[1],z=1/g_(y_((D*L+P*O)/(b_(D*D+P*P)*b_(L*L+O*O)))/2),R=b_(A[0]*A[0]+A[1]*A[1]);x=w_(m,(n-R)/(z-1)),b=w_(y,(i-R)/(z+1))}}if(s>k_)if(b>k_){var E=Bo(C,I,_,w,i,b,l),B=Bo(M,T,k,S,i,b,l);t.moveTo(d+E.cx+E.x01,p+E.cy+E.y01),y>b?t.arc(d+E.cx,p+E.cy,b,m_(E.y01,E.x01),m_(B.y01,B.x01),!l):(t.arc(d+E.cx,p+E.cy,b,m_(E.y01,E.x01),m_(E.y11,E.x11),!l),t.arc(d,p,i,m_(E.cy+E.y11,E.cx+E.x11),m_(B.cy+B.y11,B.cx+B.x11),!l),t.arc(d+B.cx,p+B.cy,b,m_(B.y11,B.x11),m_(B.y01,B.x01),!l))}else t.moveTo(d+_,p+w),t.arc(d,p,i,u,c,!l);else t.moveTo(d+_,p+w);if(n>k_&&s>k_)if(x>k_){E=Bo(k,S,M,T,n,-x,l),B=Bo(_,w,C,I,n,-x,l);t.lineTo(d+E.cx+E.x01,p+E.cy+E.y01),m>x?t.arc(d+E.cx,p+E.cy,x,m_(E.y01,E.x01),m_(B.y01,B.x01),!l):(t.arc(d+E.cx,p+E.cy,x,m_(E.y01,E.x01),m_(E.y11,E.x11),!l),t.arc(d,p,n,m_(E.cy+E.y11,E.cx+E.x11),m_(B.cy+B.y11,B.cx+B.x11),l),t.arc(d+B.cx,p+B.cy,x,m_(B.y11,B.x11),m_(B.y01,B.x01),!l))}else t.lineTo(d+k,p+S),t.arc(d,p,n,c,u,l);else t.lineTo(d+k,p+S)}else t.moveTo(d,p);t.closePath()}}function Fo(t,e,i,n,r,o,a){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*r+e}function Vo(t,e){for(var i=t.length,n=[],r=0,o=1;i>o;o++)r+=dt(t[o-1],t[o]);var a=r/2;a=i>a?i:a;for(o=0;a>o;o++){var s=o/(a-1)*(e?i:i-1),l=Math.floor(s),u=s-l,c=void 0,h=t[l%i],d=void 0,p=void 0;e?(c=t[(l-1+i)%i],d=t[(l+1)%i],p=t[(l+2)%i]):(c=t[0===l?l:l-1],d=t[l>i-2?i-1:l+1],p=t[l>i-3?i-1:l+2]);var f=u*u,g=u*f;n.push([Fo(c[0],h[0],d[0],p[0],u,f,g),Fo(c[1],h[1],d[1],p[1],u,f,g)])}return n}function Ho(t,e,i,n){var r,o,a,s,l=[],u=[],c=[],h=[];if(n){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;p>d;d++)yt(a,a,t[d]),mt(s,s,t[d]);yt(a,a,n[0]),mt(s,s,n[1])}for(d=0,p=t.length;p>d;d++){var f=t[d];if(i)r=t[d?d-1:p-1],o=t[(d+1)%p];else{if(0===d||d===p-1){l.push(tt(t[d]));continue}r=t[d-1],o=t[d+1]}rt(u,o,r),ct(u,u,e);var g=dt(f,r),v=dt(f,o),y=g+v;0!==y&&(g/=y,v/=y),ct(c,u,-g),ct(h,u,v);var m=it([],f,c),x=it([],f,h);n&&(mt(m,m,a),yt(m,m,s),mt(x,x,a),yt(x,x,s)),l.push(m),l.push(x)}return i&&l.push(l.shift()),l}function jo(t,e,i){var n=e.smooth,r=e.points;if(r&&r.length>=2){if(n&&"spline"!==n){var o=Ho(r,n,i,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(i?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{"spline"===n&&(r=Vo(r,i)),t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;h>s;s++)t.lineTo(r[s][0],r[s][1])}i&&t.closePath()}}function Wo(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?Gn:Wn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?Gn:Wn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?Kn:$n)(t.x1,t.cpx1,t.x2,e),(i?Kn:$n)(t.y1,t.cpy1,t.y2,e)]}function Go(t){return yb.extend(t)}function Yo(t,e){return tw(t,e)}function Uo(t,e){J_[t]=e}function Xo(t){return J_.hasOwnProperty(t)?J_[t]:void 0}function Zo(t,e,i,n){var r=Oo(t,e);return i&&("center"===n&&(i=$o(i,r.getBoundingRect())),Ko(r,i)),r}function qo(t,e,i){var n=new wb({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle($o(e,r))}}});return n}function $o(t,e){var i,n=e.width/e.height,r=t.height*n;r<=t.width?i=t.height:(r=t.width,i=r/n);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}function Ko(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}}function Qo(t){return Tr(t.shape,t.shape,t.style),t}function Jo(t){return Cr(t.shape,t.shape,t.style),t}function ta(t,e,i,n,r,o,a){var s,l=!1;"function"==typeof r?(a=o,o=r,r=null):D(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u,c="update"===t,h="remove"===t;if(n&&n.ecModel){var d=n.ecModel.getUpdatePayload();u=d&&d.animation}var p=n&&n.isAnimationEnabled();if(h||e.stopAnimation("remove"),p){var f=void 0,g=void 0,v=void 0;u?(f=u.duration||0,g=u.easing||"cubicOut",v=u.delay||0):h?(s=s||{},f=F(s.duration,200),g=F(s.easing,"cubicOut"),v=0):(f=n.getShallow(c?"animationDurationUpdate":"animationDuration"),g=n.getShallow(c?"animationEasingUpdate":"animationEasing"),v=n.getShallow(c?"animationDelayUpdate":"animationDelay")),"function"==typeof v&&(v=v(r,n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null)),"function"==typeof f&&(f=f(r)),f>0?l?e.animateFrom(i,{duration:f,delay:v||0,easing:g,done:o,force:!!o||!!a,scope:t,during:a}):e.animateTo(i,{duration:f,delay:v||0,easing:g,done:o,force:!!o||!!a,setToFinal:!0,scope:t,during:a}):(e.stopAnimation(),!l&&e.attr(i),o&&o())}else e.stopAnimation(),!l&&e.attr(i),a&&a(1),o&&o()}function ea(t,e,i,n,r,o){ta("update",t,e,i,n,r,o)}function ia(t,e,i,n,r,o){ta("init",t,e,i,n,r,o)}function na(t,e,i,n,r,o){aa(t)||ta("remove",t,e,i,n,r,o)}function ra(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),na(t,{style:{opacity:0}},e,i,n)}function oa(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||ra(t,e,i,n)})):ra(t,e,i,n)}function aa(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var i=t.animators[e];if("remove"===i.scope)return!0}return!1}function sa(t,e){for(var i=Ht([]);t&&t!==e;)Wt(i,t.getLocalTransform(),i),t=t.parent;return i}function la(t,e,i){return e&&!v(e)&&(e=By.getLocalTransform(e)),i&&(e=Xt([],e)),vt([],t,e)}function ua(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return o=la(o,e,i),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function ca(t){return!t.isGroup}function ha(t){return null!=t.shape}function da(t,e,i){function n(t){var e={};return t.traverse((function(t){ca(t)&&t.anid&&(e[t.anid]=t)})),e}function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return ha(t)&&(e.shape=h({},t.shape)),e}if(t&&e){var o=n(t);e.traverse((function(t){if(ca(t)&&t.anid){var e=o[t.anid];if(e){var n=r(t);t.attr(r(e)),ea(t,n,i,Ob(t).dataIndex)}}}))}}function pa(t,e){return m(t,(function(t){var i=t[0];i=K_(i,e.x),i=Q_(i,e.x+e.width);var n=t[1];return n=K_(n,e.y),n=Q_(n,e.y+e.height),[i,n]}))}function fa(t,e){var i=K_(t.x,e.x),n=Q_(t.x+t.width,e.x+e.width),r=K_(t.y,e.y),o=Q_(t.y+t.height,e.y+e.height);return n>=i&&o>=r?{x:i,y:r,width:n-i,height:o-r}:void 0}function ga(t,e,i){var n=h({rectHover:!0},e),r=n.style={strokeNoScale:!0};return i=i||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(r.image=t.slice(8),d(r,i),new wb(n)):Zo(t.replace("path://",""),n,i,"center"):void 0}function va(t,e,i,n,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(ya(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function ya(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,c=a-r,h=s-o,d=ma(c,h,l,u);if(xa(d))return!1;var p=t-r,f=e-o,g=ma(p,f,l,u)/d;if(0>g||g>1)return!1;var v=ma(p,f,c,h)/d;return!(0>v||v>1)}function ma(t,e,i,n){return t*n-i*e}function xa(t){return 1e-6>=t&&t>=-1e-6}function ba(t,e){for(var i=0;i<Vb.length;i++){var n=Vb[i],r=e[n],o=t.ensureState(n);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function _a(t,e,i){var n,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(n=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null)),null==n&&(n=T(t.defaultText)?t.defaultText(o,t,i):t.defaultText);for(var l={normal:n},u=0;u<Vb.length;u++){var c=Vb[u],h=e[c];l[c]=F(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,n)}return l}function wa(t,e,i,n){i=i||rw;for(var r=t instanceof Db,o=!1,a=0;a<Hb.length;a++){var s=e[Hb[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){r||(l||(l=new Db,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=_a(i,e),c=e.normal,h=!!c.getShallow("show"),d=Sa(c,n&&n.normal,i,!1,!r);d.text=u.normal,r||t.setTextConfig(Ma(c,i,!1));for(a=0;a<Vb.length;a++){var p=Vb[a];s=e[p];if(s){var f=l.ensureState(p),g=!!F(s.getShallow("show"),h);if(g!==h&&(f.ignore=!g),f.style=Sa(s,n&&n[p],i,!0,!r),f.style.text=u[p],!r){var v=t.ensureState(p);v.textConfig=Ma(s,i,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(d.x=l.style.x),null!=l.style.y&&(d.y=l.style.y),l.ignore=!h,l.useStyle(d),l.dirty(),i.enableTextSetter&&(lw(l).setLabelText=function(t){var n=_a(i,e,t);ba(l,n)})}else l&&(l.ignore=!0);t.dirty()}function ka(t,e){e=e||"label";for(var i={normal:t.getModel(e)},n=0;n<Vb.length;n++){var r=Vb[n];i[r]=t.getModel([r,e])}return i}function Sa(t,e,i,n,r){var o={};return Ta(o,t,i,n,r),e&&h(o,e),o}function Ma(t,e,i){e=e||{};var n,r={},o=t.getShallow("rotate"),a=F(t.getShallow("distance"),i?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(i?null:"inside"),"outside"===n&&(n=e.defaultOutsidePosition||"top"),null!=n&&(r.position=n),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}function Ta(t,e,i,n,r){i=i||rw;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Ca(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Ia(o[u]={},c,s,i,n,r,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("minMargin");null!=d&&(t.margin=d),Ia(t,e,s,i,n,r,!0,!1)}function Ca(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||rw).rich;if(i){e=e||{};for(var n=w(i),r=0;r<n.length;r++){var o=n[r];e[o]=1}}t=t.parentModel}return e}function Ia(t,e,i,n,r,o,a,s){i=!r&&i||rw;var l=n&&n.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=F(e.getShallow("opacity"),i.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===c||"auto"===c)&&(c=l||null),o||(u=u||i.color,c=c||i.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var d=F(e.getShallow("textBorderWidth"),i.textBorderWidth);null!=d&&(t.lineWidth=d);var p=F(e.getShallow("textBorderType"),i.textBorderType);null!=p&&(t.lineDash=p);var f=F(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),r||null!=h||s||(h=n&&n.defaultOpacity),null!=h&&(t.opacity=h),r||o||null==t.fill&&n.inheritColor&&(t.fill=n.inheritColor);for(var g=0;g<ow.length;g++){var v=ow[g],y=F(e.getShallow(v),i[v]);null!=y&&(t[v]=y)}for(g=0;g<aw.length;g++){v=aw[g],y=e.getShallow(v);null!=y&&(t[v]=y)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!n.disableBox){for(g=0;g<sw.length;g++){v=sw[g],y=e.getShallow(v);null!=y&&(t[v]=y)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Aa(t,e){var i=e&&e.getModel("textStyle");return G([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function Da(t,e,i,n){if(t){var r=lw(t);r.prevValue=r.value,r.value=i;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=n,r.statesModels=e)}}function Pa(t,e,i,n,r){function o(n){var o=pn(i,a.precision,l,u,n);a.interpolatedValue=1===n?null:o;var c=_a({labelDataIndex:e,labelFetcher:r,defaultText:s?s(o):o+""},a.statesModels,o);ba(t,c)}var a=lw(t);if(a.valueAnimation){var s=a.defaultInterpolatedText,l=F(a.interpolatedValue,a.prevValue),u=a.value;(null==l?ia:ea)(t,{},n,e,null,o)}}function La(t){return[t||"",xw++].join("_")}function Oa(t){var e={};t.registerSubTypeDefaulter=function(t,i){var n=fn(t);e[n.main]=i},t.determineSubType=function(i,n){var r=n.type;if(!r){var o=fn(i).main;t.hasSubTypes(i)&&e[o]&&(r=e[o](n))}return r}}function za(t,e){function i(t){var i={},o=[];return y(t,(function(a){var s=n(i,a),l=s.originalDeps=e(a),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),y(u,(function(t){p(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);p(e.successor,t)<0&&e.successor.push(a)}))})),{graph:i,noEntryList:o}}function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var i=[];return y(t,(function(t){p(e,t)>=0&&i.push(t)})),i}t.topologicalTravel=function(t,e,n,r){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function a(t){c[t]=!0,o(t)}if(t.length){var s=i(e),l=s.graph,u=s.noEntryList,c={};for(y(t,(function(t){c[t]=!0}));u.length;){var h=u.pop(),d=l[h],p=!!c[h];p&&(n.call(r,h,d.originalDeps.slice()),delete c[h]),y(d.successor,p?a:o)}y(c,(function(){var t="";throw new Error(t)}))}}}function Ra(t,e){return u(u({},t,!0),e,!0)}function Ea(t,e){t=t.toUpperCase(),Tw[t]=new mw(e),Mw[t]=e}function Ba(t){if(C(t)){var e=Mw[t.toUpperCase()]||{};return t===ww||t===kw?l(e):u(l(e),l(Mw[Sw]),!1)}return u(l(t),l(Mw[Sw]),!1)}function Na(t){return Tw[t]}function Fa(){return Tw[Sw]}function Va(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ha(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function ja(t){return t===Ha(t)}function Wa(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ga(t,e,i,n){var r=Ai(t),o=r[Za(i)](),a=r[qa(i)]()+1,s=Math.floor((a-1)/4)+1,l=r[$a(i)](),u=r["get"+(i?"UTC":"")+"Day"](),c=r[Ka(i)](),h=(c-1)%12+1,d=r[Qa(i)](),p=r[Ja(i)](),f=r[ts(i)](),g=n instanceof mw?n:Na(n||Cw)||Fa(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),x=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,Va(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Va(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Va(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Va(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Va(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Va(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Va(f,3)).replace(/{S}/g,f+"")}function Ya(t,e,i,n,r){var o=null;if("string"==typeof i)o=i;else if("function"==typeof i)o=i(t.value,e,{level:t.level});else{var a=h({},Ow);if(t.level>0)for(var s=0;s<Ew.length;++s)a[Ew[s]]="{primary|"+a[Ew[s]]+"}";var l=i?!1===i.inherit?i:d(i,a):a,u=Ua(t.value,r);if(l[u])o=l[u];else if(l.inherit){var c=Bw.indexOf(u);for(s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(M(o)){var p=null==t.level?0:t.level>=0?t.level:o.length+t.level;p=Math.min(p,o.length-1),o=o[p]}}return Ga(new Date(t.value),o,r,n)}function Ua(t,e){var i=Ai(t),n=i[qa(e)]()+1,r=i[$a(e)](),o=i[Ka(e)](),a=i[Qa(e)](),s=i[Ja(e)](),l=i[ts(e)](),u=0===l,c=u&&0===s,h=c&&0===a,d=h&&0===o,p=d&&1===r,f=p&&1===n;return f?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function Xa(t,e,i){var n="number"==typeof t?Ai(t):t;switch(e=e||Ua(t,i)){case"year":return n[Za(i)]();case"half-year":return n[qa(i)]()>=6?1:0;case"quarter":return Math.floor((n[qa(i)]()+1)/4);case"month":return n[qa(i)]();case"day":return n[$a(i)]();case"half-day":return n[Ka(i)]()/24;case"hour":return n[Ka(i)]();case"minute":return n[Qa(i)]();case"second":return n[Ja(i)]();case"millisecond":return n[ts(i)]()}}function Za(t){return t?"getUTCFullYear":"getFullYear"}function qa(t){return t?"getUTCMonth":"getMonth"}function $a(t){return t?"getUTCDate":"getDate"}function Ka(t){return t?"getUTCHours":"getHours"}function Qa(t){return t?"getUTCMinutes":"getMinutes"}function Ja(t){return t?"getUTCSeconds":"getSeconds"}function ts(t){return t?"getUTCSeconds":"getSeconds"}function es(t){return t?"setUTCFullYear":"setFullYear"}function is(t){return t?"setUTCMonth":"setMonth"}function ns(t){return t?"setUTCDate":"setDate"}function rs(t){return t?"setUTCHours":"setHours"}function os(t){return t?"setUTCMinutes":"setMinutes"}function as(t){return t?"setUTCSeconds":"setSeconds"}function ss(t){return t?"setUTCSeconds":"setSeconds"}function ls(t,e,i,n,r,o,a,s){var l=new Db({style:{text:t,font:e,align:i,verticalAlign:n,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function us(t){if(!Ei(t))return C(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function cs(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function hs(t){return null==t?"":(t+"").replace(Fw,(function(t,e){return Vw[e]}))}function ds(t,e,i){function n(t){return t&&G(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="yyyy-MM-dd hh:mm:ss",a="time"===e,s=t instanceof Date;if(a||s){var l=a?Ai(t):t;if(!isNaN(+l))return Ga(l,o,i);if(s)return"-"}if("ordinal"===e)return I(t)?n(t):A(t)&&r(t)?t+"":"-";var u=Ri(t);return r(u)?us(u):I(t)?n(t):"-"}function ps(t,e,i){M(e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Hw[o];t=t.replace(jw(a),jw(a,0))}for(var s=0;n>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(jw(Hw[l],s),i?hs(u):u)}return t}function fs(t,e){var i=C(t)?{color:t,extraCssText:e}:t||{},n=i.color,r=i.type;e=i.extraCssText;var o=i.renderMode||"html";if(!n)return"";if("html"===o)return"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+hs(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+hs(n)+";"+(e||"")+'"></span>';var a=i.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function gs(t,e,i){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=Ai(e),r=i?"UTC":"",o=n["get"+r+"FullYear"](),a=n["get"+r+"Month"]()+1,s=n["get"+r+"Date"](),l=n["get"+r+"Hours"](),u=n["get"+r+"Minutes"](),c=n["get"+r+"Seconds"](),h=n["get"+r+"Milliseconds"]();return t.replace("MM",Va(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",Va(s,2)).replace("d",s).replace("hh",Va(l,2)).replace("h",l).replace("mm",Va(u,2)).replace("m",u).replace("ss",Va(c,2)).replace("s",c).replace("SSS",Va(h,3))}function vs(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ys(t,e){return e=e||"transparent",C(t)?t:D(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function ms(t,e){if("_blank"===e||"blank"===e){var i=window.open();i.opener=null,i.location.href=t}else window.open(t,e)}function xs(t,e,i,n,r){var o=0,a=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);c=o+g,c>n||l.newline?(o=0,c=g,a+=s+i,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(f?-f.y+d.y:0);h=a+v,h>r||l.newline?(o+=s+i,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+i:a=h+i)}))}function bs(t,e,i){i=Nw(i||0);var n=e.width,r=e.height,o=bi(t.left,n),a=bi(t.top,r),s=bi(t.right,n),l=bi(t.bottom,r),u=bi(t.width,n),c=bi(t.height,r),h=i[2]+i[0],d=i[1]+i[3],p=t.aspect;switch(isNaN(u)&&(u=n-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>n/r?u=.8*n:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=n-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=n/2-u/2-i[3];break;case"right":o=n-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-i[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=n-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new lm(o+i[3],a+i[0],u,c);return f.margin=i,f}function _s(t){var e=t.layoutMode||t.constructor.layoutMode;return D(e)?e:e?{type:e}:null}function ws(t,e,i){function n(i,n){var a={},l=0,u={},c=0,h=2;if(Ww(i,(function(e){u[e]=t[e]})),Ww(i,(function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&c++})),s[n])return o(e,i[1])?u[i[2]]=null:o(e,i[2])&&(u[i[1]]=null),u;if(c!==h&&l){if(l>=h)return a;for(var d=0;d<i.length;d++){var p=i[d];if(!r(a,p)&&r(t,p)){a[p]=t[p];break}}return a}return u}function r(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,i){Ww(t,(function(t){e[t]=i[t]}))}var s=i&&i.ignoreSize;!M(s)&&(s=[s,s]);var l=n(Yw[0],0),u=n(Yw[1],1);a(Yw[0],t,l),a(Yw[1],t,u)}function ks(t){return Ss({},t)}function Ss(t,e){return e&&t&&Ww(Gw,(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}function Ms(t){var e=[];return y(Zw.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=m(e,(function(t){return fn(t).main})),"dataset"!==t&&p(e,"dataset")<=0&&e.unshift("dataset"),e}function Ts(t){ck(t).datasetMap=X()}function Cs(t,e,i){function n(t,e,i){for(var n=0;i>n;n++)t.push(e+n)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=Is(e);if(!a||!t)return o;var s,l,u=[],c=[],h=e.ecModel,d=ck(h).datasetMap,p=a.uid+"_"+i.seriesLayoutBy;t=t.slice(),y(t,(function(e,i){var n=D(e)?e:t[i]={name:e};"ordinal"===n.type&&null==s&&(s=i,l=r(n)),o[n.name]=[]}));var f=d.get(p)||d.set(p,{categoryWayDim:l,valueWayDim:0});return y(t,(function(t,e){var i=t.name,a=r(t);if(null==s){var l=f.valueWayDim;n(o[i],l,a),n(c,l,a),f.valueWayDim+=a}else if(s===e)n(o[i],0,a),n(u,0,a);else{l=f.categoryWayDim;n(o[i],l,a),n(c,l,a),f.categoryWayDim+=a}})),u.length&&(o.itemName=u),c.length&&(o.seriesName=c),o}function Is(t){var e=t.get("data",!0);return e?void 0:un(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ex).models[0]}function As(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?un(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ex).models:[]}function Ds(t,e){return Ps(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Ps(t,e,i,n,r,o){function a(t){var e=C(t);return null!=t&&isFinite(t)&&""!==t?e?uk.Might:uk.Not:e&&"-"!==t?uk.Must:void 0}var s,l,u,c=5;if(L(t))return uk.Not;if(n){var h=n[o];D(h)?(l=h.name,u=h.type):C(h)&&(l=h)}if(null!=u)return"ordinal"===u?uk.Must:uk.Not;if(e===ik){var d=t;if(i===lk){for(var p=d[o],f=0;f<(p||[]).length&&c>f;f++)if(null!=(s=a(p[r+f])))return s}else for(f=0;f<d.length&&c>f;f++){var g=d[r+f];if(g&&null!=(s=a(g[o])))return s}}else if(e===nk){var v=t;if(!l)return uk.Not;for(f=0;f<v.length&&c>f;f++){var y=v[f];if(y&&null!=(s=a(y[l])))return s}}else if(e===rk){var m=t;if(!l)return uk.Not;p=m[l];if(!p||L(p))return uk.Not;for(f=0;f<p.length&&c>f;f++)if(null!=(s=a(p[f])))return s}else if(e===ek){var x=t;for(f=0;f<x.length&&c>f;f++){y=x[f];var b=Wi(y);if(!M(b))return uk.Not;if(null!=(s=a(b[o])))return s}}return uk.Not}function Ls(t,e,i){var n=hk.get(e);if(!n)return i;var r=n(t);return r?i.concat(r):i}function Os(t,e){for(var i=t.length,n=0;i>n;n++)if(t[n].length>e)return t[n];return t[i-1]}function zs(t,e,i,n,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&n?Os(n,a):i;if(c=c||i,c&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function Rs(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function Es(t,e){if(e){var i=e.seriesIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}function Bs(t,e){var i=t.color&&!t.colorLayer;y(e,(function(e,n){"colorLayer"===n&&i||Zw.hasClass(n)||("object"==typeof e?t[n]=t[n]?u(t[n],e,!1):l(e):null==t[n]&&(t[n]=e))}))}function Ns(t,e,i){if(M(e)){var n=X();return y(e,(function(t){if(null!=t){var e=tn(t,null);null!=e&&n.set(t,!0)}})),b(i,(function(e){return e&&n.get(e[t])}))}var r=tn(e,null);return b(i,(function(e){return e&&null!=r&&e[t]===r}))}function Fs(t,e){return e.hasOwnProperty("subType")?b(t,(function(t){return t&&t.subType===e.subType})):t}function Vs(t){var e=X();return t&&y(Hi(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}function Hs(t,e,i){function n(t){y(e,(function(e){e(t,i)}))}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,c=t.media,h=!!t.media,d=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((d||h)&&(t.options=t.media=null),o=t),h&&M(c)&&y(c,(function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))})),n(o),y(u,(function(t){return n(t)})),y(a,(function(t){return n(t.option)})),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function js(t,e,i){var n={width:e,height:i,aspectratio:e/i},r=!0;return y(t,(function(t,e){var i=e.match(Tk);if(i&&i[1]&&i[2]){var o=i[1],a=i[2].toLowerCase();Ws(n[a],t,o)||(r=!1)}})),r}function Ws(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function Gs(t,e){return t.join(",")===e.join(",")}function Ys(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=Dk.length;n>i;i++){var r=Dk[i],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?u(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?u(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Us(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,r=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,d(t[e],n)):t[e]=n),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Xs(t){Us(t,"itemStyle"),Us(t,"lineStyle"),Us(t,"areaStyle"),Us(t,"label"),Us(t,"labelLine"),Us(t,"upperLabel"),Us(t,"edgeLabel")}function Zs(t,e){var i=Ak(t)&&t[e],n=Ak(i)&&i.textStyle;if(n)for(var r=0,o=Jm.length;o>r;r++){var a=Jm[r];n.hasOwnProperty(a)&&(i[a]=n[a])}}function qs(t){t&&(Xs(t),Zs(t,"label"),t.emphasis&&Zs(t.emphasis,"label"))}function $s(t){if(Ak(t)){Ys(t),Xs(t),Zs(t,"label"),Zs(t,"upperLabel"),Zs(t,"edgeLabel"),t.emphasis&&(Zs(t.emphasis,"label"),Zs(t.emphasis,"upperLabel"),Zs(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Ys(e),qs(e));var i=t.markLine;i&&(Ys(i),qs(i));var n=t.markArea;n&&qs(n);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!L(o))for(var a=0;a<o.length;a++)qs(o[a]);y(t.categories,(function(t){Xs(t)}))}if(r&&!L(r))for(a=0;a<r.length;a++)qs(r[a]);if(e=t.markPoint,e&&e.data){var s=e.data;for(a=0;a<s.length;a++)qs(s[a])}if(i=t.markLine,i&&i.data){var l=i.data;for(a=0;a<l.length;a++)M(l[a])?(qs(l[a][0]),qs(l[a][1])):qs(l[a])}"gauge"===t.type?(Zs(t,"axisLabel"),Zs(t,"title"),Zs(t,"detail")):"treemap"===t.type?(Us(t.breadcrumb,"itemStyle"),y(t.levels,(function(t){Xs(t)}))):"tree"===t.type&&Xs(t.leaves)}}function Ks(t){return M(t)?t:t?[t]:[]}function Qs(t){return(M(t)?t[0]:t)||{}}function Js(t,e){Ik(Ks(t.series),(function(t){Ak(t)&&$s(t)}));var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ik(i,(function(e){Ik(Ks(t[e]),(function(t){t&&(Zs(t,"axisLabel"),Zs(t.axisPointer,"label"))}))})),Ik(Ks(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Zs(e,"axisLabel"),Zs(e&&e.axisPointer,"label")})),Ik(Ks(t.calendar),(function(t){Us(t,"itemStyle"),Zs(t,"dayLabel"),Zs(t,"monthLabel"),Zs(t,"yearLabel")})),Ik(Ks(t.radar),(function(t){Zs(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),Ik(Ks(t.geo),(function(t){Ak(t)&&(qs(t),Ik(Ks(t.regions),(function(t){qs(t)})))})),Ik(Ks(t.timeline),(function(t){qs(t),Us(t,"label"),Us(t,"itemStyle"),Us(t,"controlStyle",!0);var e=t.data;M(e)&&y(e,(function(t){D(t)&&(Us(t,"label"),Us(t,"itemStyle"))}))})),Ik(Ks(t.toolbox),(function(t){Us(t,"iconStyle"),Ik(t.feature,(function(t){Us(t,"iconStyle")}))})),Zs(Qs(t.axisPointer),"label"),Zs(Qs(t.tooltip).axisPointer,"label")}function tl(t,e){for(var i=e.split(","),n=t,r=0;r<i.length&&(n=n&&n[i[r]],null!=n);r++);return n}function el(t,e,i,n){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[o[s]])&&(a[o[s]]=i)}function il(t){t&&y(Pk,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}function nl(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<Ok.length;i++){var n=Ok[i][1],r=Ok[i][0];null!=e[n]&&(e[r]=e[n])}}function rl(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function ol(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function al(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function sl(t,e){if(t)for(var i=0;i<t.length;i++)e(t[i]),t[i]&&sl(t[i].children,e)}function ll(t,e){Js(t,e),t.series=Hi(t.series),y(t.series,(function(t){if(D(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),rl(t.label);var i=t.data;if(i&&!L(i))for(var n=0;n<i.length;n++)rl(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=tl(t,"pointer.color");null!=r&&el(t,"itemStyle.color",r)}else if("bar"===e){nl(t),nl(t.backgroundStyle),nl(t.emphasis);i=t.data;if(i&&!L(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(nl(i[n]),nl(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),ol(t),sl(t.data,ol)}else"graph"===e||"sankey"===e?al(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&d(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),il(t)}})),t.dataRange&&(t.visualMap=t.dataRange),y(Lk,(function(e){var i=t[e];i&&(M(i)||(i=[i]),y(i,(function(t){il(t)})))}))}function ul(t){var e=X();t.eachSeries((function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}})),e.each(cl)}function cl(t){y(t,(function(e,i){var n=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=a.map(o,(function(o,l,u){var c,h,d=a.get(e.stackedDimension,u);if(isNaN(d))return r;s?h=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var p=NaN,f=i-1;f>=0;f--){var g=t[f];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&v>0||0>=d&&0>v){d+=v,p=v;break}}}return n[0]=d,n[1]=p,n}));a.hostModel.setData(l),e.data=l}))}function hl(t){return t instanceof zk}function dl(t,e,i,n){i=i||vl(t);var r=e.seriesLayoutBy,o=yl(t,i,r,e.sourceHeader,e.dimensions),a=new zk({data:t,sourceFormat:i,seriesLayoutBy:r,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,encodeDefine:gl(n),metaRawOption:l(e)});return a}function pl(t){return new zk({data:t,sourceFormat:L(t)?ok:ek})}function fl(t){return new zk({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:l(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount,encodeDefine:gl(t.encodeDefine)})}function gl(t){return t?X(t):null}function vl(t){var e=ak;if(L(t))e=ok;else if(M(t)){0===t.length&&(e=ik);for(var i=0,n=t.length;n>i;i++){var r=t[i];if(null!=r){if(M(r)){e=ik;break}if(D(r)){e=nk;break}}}}else if(D(t))for(var o in t)if($(t,o)&&v(t[o])){e=rk;break}return e}function yl(t,e,i,n,r){var o,a;if(!t)return{dimensionsDefine:xl(r),startIndex:a,dimensionsDetectedCount:o};if(e===ik){var s=t;"auto"===n||null==n?bl((function(t){null!=t&&"-"!==t&&(C(t)?null==a&&(a=1):a=0)}),i,s,10):a=A(n)?n:n?1:0,r||1!==a||(r=[],bl((function(t,e){r[e]=null!=t?t+"":""}),i,s,1/0)),o=r?r.length:i===lk?s.length:s[0]?s[0].length:null}else if(e===nk)r||(r=ml(t));else if(e===rk)r||(r=[],y(t,(function(t,e){r.push(e)})));else if(e===ek){var l=Wi(t[0]);o=M(l)&&l.length||1}return{startIndex:a,dimensionsDefine:xl(r),dimensionsDetectedCount:o}}function ml(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e){var n=[];return y(e,(function(t,e){n.push(e)})),n}}function xl(t){if(t){var e=X();return m(t,(function(t){t=D(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var n=e.get(i.name);return n?i.name+="-"+n.count++:e.set(i.name,{count:1}),i}))}}function bl(t,e,i,n){if(e===lk)for(var r=0;r<i.length&&n>r;r++)t(i[r]?i[r][0]:null,r);else{var o=i[0]||[];for(r=0;r<o.length&&n>r;r++)t(o[r],r)}}function _l(t,e){var i=Bk[Sl(t,e)];return i}function wl(t,e){var i=Fk[Sl(t,e)];return i}function kl(t){var e=Hk[t];return e}function Sl(t,e){return t===ik?t+"_"+e:t}function Ml(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r,o,a=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(i);return s&&(r=s.name,o=s.index),kl(a)(n,o,r)}}}function Tl(t){var e,i;return D(t)?t.type&&(i=t):e=t,{markupText:e,markupFragment:i}}function Cl(t){return new Gk(t)}function Il(t,e){var i=e&&e.type;if("ordinal"===i){var n=e&&e.ordinalMeta;return n?n.parseAndCollect(t):t}return"time"===i&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+Ai(t)),null==t||""===t?NaN:+t}function Al(t,e){var i=new Zk,n=t.data,r=i.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==sk&&Vi(a);var s=[],l={},u=t.dimensionsDefine;if(u)y(u,(function(t,e){var i=t.name,n={index:e,name:i,displayName:t.displayName};if(s.push(n),null!=i){var r="";$(l,i)&&Vi(r),l[i]=n}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=_l(r,sk);e.__isBuiltIn&&(i.getRawDataItem=function(t){return h(n,o,s,t)},i.getRawData=iy(Dl,null,t)),i.cloneRawData=iy(Pl,null,t);var d=wl(r,sk);i.count=iy(d,null,n,o,s);var p=kl(r);i.retrieveValue=function(t,e){var i=h(n,o,s,t);return f(i,e)};var f=i.retrieveValueFromItem=function(t,e){if(null!=t){var i=s[e];return i?p(t,e,i.name):void 0}};return i.getDimensionInfo=iy(Ll,null,s,l),i.cloneAllDimensionInfo=iy(Ol,null,s),i}function Dl(t){var e=t.sourceFormat;if(!Bl(e)){var i="";Vi(i)}return t.data}function Pl(t){var e=t.sourceFormat,i=t.data;if(!Bl(e)){var n="";Vi(n)}if(e===ik){for(var r=[],o=0,a=i.length;a>o;o++)r.push(i[o].slice());return r}if(e===nk){for(r=[],o=0,a=i.length;a>o;o++)r.push(h({},i[o]));return r}}function Ll(t,e,i){return null!=i?"number"==typeof i||!isNaN(i)&&!$(e,i)?t[i]:$(e,i)?e[i]:void 0:void 0}function Ol(t){return l(t)}function zl(t){t=l(t);var e=t.type,i="";e||Vi(i);var n=e.split(":");2!==n.length&&Vi(i);var r=!1;"echarts"===n[0]&&(e=n[1],r=!0),t.__isBuiltIn=r,qk.set(e,t)}function Rl(t,e,i){var n=Hi(t),r=n.length,o="";r||Vi(o);for(var a=0,s=r;s>a;a++){var l=n[a];e=El(l,e,i,1===r?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function El(t,e){var i="";e.length||Vi(i),D(t)||Vi(i);var n=t.type,r=qk.get(n);r||Vi(i);var o=m(e,(function(t){return Al(t,r)})),a=Hi(r.transform({upstream:o[0],upstreamList:o,config:l(t.config)}));return m(a,(function(t,i){var n="";D(t)||Vi(n),t.data||Vi(n);var r=vl(t.data);Bl(r)||Vi(n);var o,a=e[0];if(a&&0===i&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),o={seriesLayoutBy:sk,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else o={seriesLayoutBy:sk,sourceHeader:0,dimensions:t.dimensions};return dl(t.data,o,null,null)}))}function Bl(t){return t===ik||t===nk}function Nl(t){var e=t.option.transform;e&&Y(t.option.transform)}function Fl(t){return"series"===t.mainType}function Vl(t){throw new Error(t)}function Hl(t,e){var i=t.color||"#6e7079",n=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+hs(n+"")+"px;color:"+hs(i)+";font-weight:"+hs(r+""),valueStyle:"font-size:"+hs(a+"")+"px;color:"+hs(o)+";font-weight:"+hs(s+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function jl(t,e){return e.type=t,e}function Wl(t){return $(tS,t.type)&&tS[t.type]}function Gl(t,e,i,n){var r=[],o=e.blocks||[];W(!o||M(o)),o=o||[];var a=t.orderMode;if(e.sortBlocks&&a){o=o.slice();var s={valueAsc:"asc",valueDesc:"desc"};if($(s,a)){var l=new Xk(s[a],null);o.sort((function(t,e){return l.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===a&&o.reverse()}var u=Ul(e);return y(o,(function(e,i){var o=Wl(e).build(t,e,i>0?u.html:0,n);null!=o&&r.push(o)})),r.length?"richText"===t.renderMode?r.join(u.richText):Xl(r.join(""),i):void 0}function Yl(t,e,i,n,r,o){if(t){var a=Wl(t);a.planLayout(t);var s={useUTC:r,renderMode:i,orderMode:n,markupStyleCreator:e};return a.build(s,t,0,o)}}function Ul(t){var e=t.__gapLevelBetweenSubBlocks;return{html:Qk[e],richText:Jk[e]}}function Xl(t,e){var i='<div style="clear:both"></div>',n="margin: "+e+"px 0 0";return'<div style="'+n+";"+Kk+';">'+t+i+"</div>"}function Zl(t,e,i){var n=e?"margin-left:2px":"";return'<span style="'+i+";"+n+'">'+hs(t)+"</span>"}function ql(t,e,i,n){var r=i?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return'<span style="'+o+";"+n+'">'+m(t,(function(t){return hs(t)})).join("&nbsp;&nbsp;")+"</span>"}function $l(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function Kl(t,e,i,n,r){var o=[r],a=n?10:20;return i&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}function Ql(t,e){var i=t.getData().getItemVisual(e,"style"),n=i[t.visualDrawType];return ys(n)}function Jl(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}function tu(t){var e,i,n,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=M(h),p=Ql(o,a);if(c>1||d&&!c){var f=eu(h,o,a,u,p);e=f.inlineValues,i=f.inlineValueTypes,n=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=Ml(l,a,u[0]),i=g.type}else r=e=d?h[0]:h;var v=en(o),y=v&&o.name||"",m=l.getName(a),x=s?y:m;return jl("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[jl("nameValue",{markerType:"item",markerColor:p,name:x,noName:!G(x),value:e,valueType:i})].concat(n||[])})}function eu(t,e,i,n,r){function o(t,e){var i=a.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(s?c.push(jl("nameValue",{markerType:"subItem",markerColor:r,name:i.displayName,value:t,valueType:i.type})):(l.push(t),u.push(i.type)))}var a=e.getData(),s=x(t,(function(t,e,i){var n=a.getDimensionInfo(i);return t||n&&!1!==n.tooltip&&null!=n.displayName}),!1),l=[],u=[],c=[];return n.length?y(n,(function(t){o(Ml(a,i,t),t)})):y(t,o),{inlineValues:l,inlineValueTypes:u,blocks:c}}function iu(t,e){return t.getName(e)||t.getId(e)}function nu(t){var e=t.name;en(t)||(t.name=ru(t)||e)}function ru(t){var e=t.getRawData(),i=e.mapDimensionsAll("seriesName"),n=[];return y(i,(function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)})),n.join(" ")}function ou(t){return t.model.getRawData().count()}function au(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),su}function su(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function lu(t,e){y(n(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(i){t.wrapMethod(i,S(uu,e))}))}function uu(t,e){var i=cu(t);return i&&i.setOutputEnd((e||this).count()),e}function cu(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}function hu(){var t=sn();return function(e){var i=t(e),n=e.pipelineContext,r=!!i.large,o=!!i.progressiveRender,a=i.large=!(!n||!n.large),s=i.progressiveRender=!(!n||!n.progressiveRender);return!(r===a&&o===s)&&"reset"}}function du(t,e,i){t&&("emphasis"===e?io:no)(t,i)}function pu(t,e,i){var n=an(t,e),r=e&&null!=e.highlightKey?_o(e.highlightKey):null;null!=n?y(Hi(n),(function(e){du(t.getItemGraphicEl(e),i,r)})):t.eachItemGraphicEl((function(t){du(t,i,r)}))}function fu(t){return aS(t.model)}function gu(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&oS(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,i,n,r),uS[l]}function vu(t,e,i){function n(){c=(new Date).getTime(),h=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,c=0,h=null;e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];r=(new Date).getTime(),a=this,s=t;var p=l||e,f=l||i;l=null,o=r-(f?u:c)-p,clearTimeout(h),f?h=setTimeout(n,p):o>=0?n():h=setTimeout(n,-o),u=r};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){l=t},d}function yu(t,e,i,n){var r=t[e];if(r){var o=r[cS]||r,a=r[dS],s=r[hS];if(s!==i||a!==n){if(null==i||!n)return t[e]=o;r=t[e]=vu(o,i,"debounce"===n),r[cS]=o,r[dS]=n,r[hS]=i}return r}}function mu(t,e){var i=t[e];i&&i[cS]&&(t[e]=i[cS])}function xu(e,i){var n=e.visualStyleMapper||fS[i];return n||(t.warn("Unkown style type '"+i+"'."),fS.itemStyle)}function bu(e,i){var n=e.visualDrawType||gS[i];return n||(t.warn("Unkown style type '"+i+"'."),"fill")}function _u(t,e){e=e||{},d(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new Hm,n=new Tb({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(n);var r,o=new Db({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily}}),a=new Tb({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&(r=new F_({shape:{startAngle:-bS/2,endAngle:-bS/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*bS/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*bS/2}).delay(300).start("circularInOut"),i.add(r)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}function wu(t){t.overallReset(t.ecModel,t.api,t.payload)}function ku(t){return t.overallProgress&&Su}function Su(){this.agent.dirty(),this.getDownstream().dirty()}function Mu(){this.agent&&this.agent.dirty()}function Tu(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Cu(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Hi(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?m(e,(function(t,e){return Iu(e)})):wS}function Iu(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.progress(e,n)}}function Au(t){return t.data.count()}function Du(t){lS=null;try{t(kS,SS)}catch(i){}return lS}function Pu(t,e){for(var i in e.prototype)t[i]=K}function Lu(t){if(C(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var i=t;for(9===i.nodeType&&(i=i.firstChild);"svg"!==i.nodeName.toLowerCase()||1!==i.nodeType;)i=i.nextSibling;return i}function Ou(t,e,i){switch(i){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,i)}}function zu(t,e){switch(e){case"color":var i=t.getVisual("style");return i[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Ru(t,e,i,n,r){var o=i.width,a=i.height;switch(t){case"top":n.set(i.x+o/2,i.y-e),r.set(0,-1);break;case"bottom":n.set(i.x+o/2,i.y+a+e),r.set(0,1);break;case"left":n.set(i.x-e,i.y+a/2),r.set(-1,0);break;case"right":n.set(i.x+o+e,i.y+a/2),r.set(1,0)}}function Eu(t,e,i,n,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*i+t,h=s*i+e;if(Math.abs(n-r)%NS<1e-4)return l[0]=c,l[1]=h,u-i;if(o){var d=n;n=pr(r),r=pr(d)}else n=pr(n),r=pr(r);n>r&&(r+=NS);var p=Math.atan2(s,a);if(0>p&&(p+=NS),p>=n&&r>=p||p+NS>=n&&r>=p+NS)return l[0]=c,l[1]=h,u-i;var f=i*Math.cos(n)+t,g=i*Math.sin(n)+e,v=i*Math.cos(r)+t,y=i*Math.sin(r)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(v-a)*(v-a)+(y-s)*(y-s);return x>m?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(x))}function Bu(t,e,i,n,r,o,a,s){var l=r-t,u=o-e,c=i-t,h=n-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=l*c+u*h,f=p/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var g=a[0]=t+f*c,v=a[1]=e+f*h;return Math.sqrt((g-r)*(g-r)+(v-o)*(v-o))}function Nu(t,e,i,n,r,o,a){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n);var s=t+i,l=e+n,u=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}function Fu(t,e,i){var n=Nu(e.x,e.y,e.width,e.height,t.x,t.y,HS);return i.set(HS[0],HS[1]),n}function Vu(t,e,i){for(var n,r,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,p=0;p<c.length;){var f=c[p++];1===p&&(o=c[p],a=c[p+1],s=o,l=a);var g=u;switch(f){case FS.M:s=c[p++],l=c[p++],o=s,a=l;break;case FS.L:g=Bu(o,a,c[p],c[p+1],h,d,HS,!0),o=c[p++],a=c[p++];break;case FS.C:g=Zn(o,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,HS),o=c[p++],a=c[p++];break;case FS.Q:g=er(o,a,c[p++],c[p++],c[p],c[p+1],h,d,HS),o=c[p++],a=c[p++];break;case FS.A:var v=c[p++],y=c[p++],m=c[p++],x=c[p++],b=c[p++],_=c[p++];p+=1;var w=!!(1-c[p++]);n=Math.cos(b)*m+v,r=Math.sin(b)*x+y,1>=p&&(s=n,l=r);var k=(h-v)*x/m+v;g=Eu(v,y,x,b,b+_,w,k,d,HS),o=Math.cos(b+_)*m+v,a=Math.sin(b+_)*x+y;break;case FS.R:s=o=c[p++],l=a=c[p++];var S=c[p++],M=c[p++];g=Nu(s,l,S,M,h,d,HS);break;case FS.Z:g=Bu(o,a,s,l,h,d,HS,!0),o=s,a=l}u>g&&(u=g,i.set(HS[0],HS[1]))}return u}function Hu(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||VS,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=r.anchor,c=t.getComputedTransform(),h=c&&Xt([],c),d=e.get("length2")||0;u&&GS.copy(u);for(var p=0;p<a.length;p++){var f=a[p];Ru(f,0,s,jS,YS),Jy.scaleAndAdd(WS,jS,YS,d),WS.transform(h);var g=t.getBoundingRect(),v=u?u.distance(WS):t instanceof yb?Vu(WS,t.path,GS):Fu(WS,g,GS);l>v&&(l=v,WS.transform(c),GS.transform(c),GS.toArray(o[0]),WS.toArray(o[1]),jS.toArray(o[2]))}ju(o,e.get("minTurnAngle")),i.setShape({points:o})}}}function ju(t,e){if(180>=e&&e>0){e=e/180*Math.PI,jS.fromArray(t[0]),WS.fromArray(t[1]),GS.fromArray(t[2]),Jy.sub(YS,jS,WS),Jy.sub(US,GS,WS);var i=YS.len(),n=US.len();if(!(.001>i||.001>n)){YS.scale(1/i),US.scale(1/n);var r=YS.dot(US),o=Math.cos(e);if(r>o){var a=Bu(WS.x,WS.y,GS.x,GS.y,jS.x,jS.y,XS,!1);ZS.fromArray(XS),ZS.scaleAndAdd(US,a/Math.tan(Math.PI-e));var s=GS.x!==WS.x?(ZS.x-WS.x)/(GS.x-WS.x):(ZS.y-WS.y)/(GS.y-WS.y);if(isNaN(s))return;0>s?Jy.copy(ZS,WS):s>1&&Jy.copy(ZS,GS),ZS.toArray(t[1])}}}}function Wu(t,e,i,n){var r="normal"===i,o=r?t:t.ensureState(i);o.ignore=e;var a=n.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=n.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function Gu(t,e){var i=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),i>0&&n.length>=3){var r=ly(n[0],n[1]),o=ly(n[1],n[2]);if(!r||!o)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var a=Math.min(r,o)*i,s=gt([],n[1],n[0],a/r),l=gt([],n[1],n[2],a/o),u=gt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)t.lineTo(n[c][0],n[c][1])}function Yu(t,e,i){var n=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<Hb.length;l++){var u=Hb[l],c=e[u],h="normal"===u;if(c){var p=c.get("show"),f=h?s:F(r.states[u]&&r.states[u].ignore,s);if(f||!F(p,a)){var g=h?n:n&&n.states.normal;g&&(g.ignore=!0);continue}n||(n=new P_,t.setTextGuideLine(n),h||!s&&a||Wu(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),Wu(n,!1,u,c)}}if(n){d(n.style,i),n.style.fill=null;var v=o.get("showAbove"),y=t.textGuideLineConfig=t.textGuideLineConfig||{};y.showAbove=v||!1,n.buildPath=Gu}}else n&&t.removeTextGuideLine()}function Uu(t,e){e=e||"labelLine";for(var i={normal:t.getModel(e)},n=0;n<Vb.length;n++){var r=Vb[n];i[r]=t.getModel([r,e])}return i}function Xu(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];if(!n.defaultAttr.ignore){var r=n.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Z_(a,o):null;e.push({label:r,labelLine:n.labelLine,rect:u,localRect:a,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return e}function Zu(t,e,i,n,r,o){function a(){_=k.rect[e]-n,w=r-S.rect[e]-S.rect[i]}function s(t,e,i){if(0>t){var n=Math.min(e,-t);if(n>0){l(n*i,0,h);var r=n+t;0>r&&u(-r*i,1)}else u(-t*i,1)}}function l(i,n,r){0!==i&&(f=!0);for(var o=n;r>o;o++){var a=t[o],s=a.rect;s[e]+=i,a.label[e]+=i}}function u(n,r){for(var o=[],a=0,s=1;h>s;s++){var u=t[s-1].rect,c=Math.max(t[s].rect[e]-u[e]-u[i],0);o.push(c),a+=c}if(a){var d=Math.min(Math.abs(n)/a,r);if(n>0)for(s=0;h-1>s;s++){var p=o[s]*d;l(p,0,s+1)}else for(s=h-1;s>0;s--){p=o[s-1]*d;l(-p,s,h)}}}function c(t){var e=0>t?-1:1;t=Math.abs(t);for(var i=Math.ceil(t/(h-1)),n=0;h-1>n;n++)if(e>0?l(i,0,n+1):l(-i,h-n-1,h),t-=i,0>=t)return}var h=t.length;if(!(2>h)){t.sort((function(t,i){return t.rect[e]-i.rect[e]}));for(var d,p=0,f=!1,g=[],v=0,y=0;h>y;y++){var m=t[y],x=m.rect;d=x[e]-p,0>d&&(x[e]-=d,m.label[e]-=d,f=!0);var b=Math.max(-d,0);g.push(b),v+=b,p=x[e]+x[i]}v>0&&o&&l(-v/h,0,h);var _,w,k=t[0],S=t[h-1];return a(),0>_&&u(-_,.8),0>w&&u(w,.8),a(),s(_,w,1),s(w,_,-1),a(),0>_&&c(-_),0>w&&c(w),f}}function qu(t,e,i,n){return Zu(t,"x","width",e,i,n)}function $u(t,e,i,n){return Zu(t,"y","height",e,i,n)}function Ku(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var i=[];t.sort((function(t,e){return e.priority-t.priority}));for(var n=new lm(0,0,0,0),r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,d=!1,p=0;p<i.length;p++){var f=i[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new Z_(f.localRect,f.transform)),h||(h=new Z_(s,l)),h.intersect(f.obb)){d=!0;break}}}d?(e(u),c&&e(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),i.push(o))}}function Qu(t){if(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].slice());return e}}function Ju(t,e){var i=t.label,n=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:i.style.align,verticalAlign:i.style.verticalAlign,labelLinePoints:Qu(n&&n.shape.points)}}function tc(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null!=e[r]&&(t[r]=e[r])}}function ec(t,e,i,n,r){var o=t+e;i.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,n=r.selected,a=0;a<n.length;a++)if(n[a].seriesIndex===e){var s=t.getData(),l=an(s,r.fromActionPayload);i.trigger(o,{type:o,seriesId:t.id,name:s.getName(M(l)?l[0]:l),selected:h({},t.option.selectedMap)})}}))}function ic(t,e,i){t.on("selectchanged",(function(t){var n=i.getModel();t.isFromClick?(ec("map","selectchanged",e,n,t),ec("pie","selectchanged",e,n,t)):"select"===t.fromAction?(ec("map","selected",e,n,t),ec("pie","selected",e,n,t)):"unselect"===t.fromAction&&(ec("map","unselected",e,n,t),ec("pie","unselected",e,n,t))}))}function nc(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}function rc(t,e){if("image"!==this.type){var i=this.style;this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff",i.lineWidth=2):i.fill=t,this.markRedraw()}}function oc(t,e,i,n,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?qo(t.slice(8),new lm(e,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?Zo(t.slice(7),{},new lm(e,i,n,r),a?"center":"cover"):new cM({shape:{symbolType:t,x:e,y:i,width:n,height:r}}),s.__isEmptyBrush=l,s.setColor=rc,o&&s.setColor(o),s}function ac(t,e,i){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,o=o*i.height+i.y,a=a*i.height+i.y),n=isNaN(n)?0:n,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a;var s=t.createLinearGradient(n,o,r,a);return s}function sc(t,e,i){var n=i.width,r=i.height,o=Math.min(n,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*n+i.x,s=s*r+i.y,l*=o);var u=t.createRadialGradient(a,s,0,a,s,l);return u}function lc(t,e,i){for(var n="radial"===e.type?sc(t,e,i):ac(t,e,i),r=e.colorStops,o=0;o<r.length;o++)n.addColorStop(r[o].offset,r[o].color);return n}function uc(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;return!1}function cc(t,e){return t&&"solid"!==t&&e>0?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:A(t)?[t]:M(t)?t:null):null}function hc(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function dc(t){var e=t.fill;return null!=e&&"none"!==e}function pc(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var i=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i}else t.fill()}function fc(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var i=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i}else t.stroke()}function gc(t,e,i){var n=Tn(e.image,e.__image,i);if(In(n)){var r=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix){var o=new DOMMatrix;o.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),o.scaleSelf(e.scaleX||1,e.scaleY||1),o.translateSelf(e.x||0,e.y||0),r.setTransform(o)}return r}}function vc(t,e,i,n){var r=hc(i),o=dc(i),a=i.strokePercent,s=1>a,l=!e.path;e.silent&&!s||!l||e.createPathProxy();var u=e.path||hM;if(!n){var c=i.fill,h=i.stroke,d=o&&!!c.colorStops,p=r&&!!h.colorStops,f=o&&!!c.image,g=r&&!!h.image,v=void 0,y=void 0,x=void 0,b=void 0,_=void 0;(d||p)&&(_=e.getBoundingRect()),d&&(v=e.__dirty?lc(t,c,_):e.__canvasFillGradient,e.__canvasFillGradient=v),p&&(y=e.__dirty?lc(t,h,_):e.__canvasStrokeGradient,e.__canvasStrokeGradient=y),f&&(x=e.__dirty||!e.__canvasFillPattern?gc(t,c,e):e.__canvasFillPattern,e.__canvasFillPattern=x),g&&(b=e.__dirty||!e.__canvasStrokePattern?gc(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=v:f&&(x?t.fillStyle=x:o=!1),p?t.strokeStyle=y:g&&(b?t.strokeStyle=b:r=!1)}var w=i.lineDash&&i.lineWidth>0&&cc(i.lineDash,i.lineWidth),k=i.lineDashOffset,S=!!t.setLineDash,M=e.getGlobalScale();if(u.setScale(M[0],M[1],e.segmentIgnoreThreshold),w){var T=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;T&&1!==T&&(w=m(w,(function(t){return t/T})),k/=T)}var C=!0;(l||e.__dirty&yb.SHAPE_CHANGED_BIT||w&&!S&&r)&&(u.setDPR(t.dpr),s?u.setContext(null):(u.setContext(t),C=!1),u.reset(),w&&!S&&(u.setLineDash(w),u.setLineDashOffset(k)),e.buildPath(u,e.shape,n),u.toStatic(),e.pathUpdated()),C&&u.rebuildPath(t,s?a:1),w&&S&&(t.setLineDash(w),t.lineDashOffset=k),n||(i.strokeFirst?(r&&fc(t,i),o&&pc(t,i)):(o&&pc(t,i),r&&fc(t,i))),w&&S&&t.setLineDash([])}function yc(t,e,i){var n=e.__image=Tn(i.image,e.__image,e,e.onload);if(n&&In(n)){var r=i.x||0,o=i.y||0,a=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=n.width,s=n.height),i.sWidth&&i.sHeight){var u=i.sx||0,c=i.sy||0;t.drawImage(n,u,c,i.sWidth,i.sHeight,r,o,a,s)}else if(i.sx&&i.sy){u=i.sx,c=i.sy;var h=a-u,d=s-c;t.drawImage(n,u,c,h,d,r,o,a,s)}else t.drawImage(n,r,o,a,s)}}function mc(t,e,i){var n=i.text;if(null!=n&&(n+=""),n){t.font=i.font||cm,t.textAlign=i.textAlign,t.textBaseline=i.textBaseline;var r=void 0;if(t.setLineDash){var o=i.lineDash&&i.lineWidth>0&&cc(i.lineDash,i.lineWidth),a=i.lineDashOffset;if(o){var s=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(o=m(o,(function(t){return t/s})),a/=s),t.setLineDash(o),t.lineDashOffset=a,r=!0}}i.strokeFirst?(hc(i)&&t.strokeText(n,i.x,i.y),dc(i)&&t.fillText(n,i.x,i.y)):(dc(i)&&t.fillText(n,i.x,i.y),hc(i)&&t.strokeText(n,i.x,i.y)),r&&t.setLineDash([])}}function xc(t,e,i,n,r){var o=!1;if(!n&&(i=i||{},e===i))return!1;(n||e.opacity!==i.opacity)&&(o||(Tc(t,r),o=!0),t.globalAlpha=null==e.opacity?yx.opacity:e.opacity),(n||e.blend!==i.blend)&&(o||(Tc(t,r),o=!0),t.globalCompositeOperation=e.blend||yx.blend);for(var a=0;a<dM.length;a++){var s=dM[a];(n||e[s]!==i[s])&&(o||(Tc(t,r),o=!0),t[s]=t.dpr*(e[s]||0))}return(n||e.shadowColor!==i.shadowColor)&&(o||(Tc(t,r),o=!0),t.shadowColor=e.shadowColor||yx.shadowColor),o}function bc(t,e,i,n,r){var o=Cc(e,r.inHover),a=n?null:i&&Cc(i,r.inHover)||{};if(o===a)return!1;var s=xc(t,o,a,n,r);if((n||o.fill!==a.fill)&&(s||(Tc(t,r),s=!0),t.fillStyle=o.fill),(n||o.stroke!==a.stroke)&&(s||(Tc(t,r),s=!0),t.strokeStyle=o.stroke),(n||o.opacity!==a.opacity)&&(s||(Tc(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Tc(t,r),s=!0),t.lineWidth=u)}for(var c=0;c<pM.length;c++){var h=pM[c],d=h[0];(n||o[d]!==a[d])&&(s||(Tc(t,r),s=!0),t[d]=o[d]||h[1])}return s}function _c(t,e,i,n,r){return xc(t,Cc(e,r.inHover),i&&Cc(i,r.inHover),n,r)}function wc(t,e){var i=e.transform,n=t.dpr||1;i?t.setTransform(n*i[0],n*i[1],n*i[2],n*i[3],n*i[4],n*i[5]):t.setTransform(n,0,0,n,0,0)}function kc(t,e,i){for(var n=!1,r=0;r<t.length;r++){var o=t[r];n=n||o.isZeroArea(),wc(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}i.allClipped=n}function Sc(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}function Mc(t){var e=dc(t),i=hc(t);return!(t.lineDash||!(+e^+i)||e&&"string"!=typeof t.fill||i&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Tc(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Cc(t,e){return e&&t.__hoverStyle||t.style}function Ic(t,e){Ac(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ac(t,e,i,n){var r=e.transform;if(!e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1))return e.__dirty&=~km.REDARAW_BIT,void(e.__isRendered=!1);var o=e.__clipPaths,a=i.prevElClipPaths,s=!1,l=!1;if((!a||uc(o,a))&&(a&&a.length&&(Tc(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),o&&o.length&&(Tc(t,i),t.save(),kc(o,t,i),s=!0),i.prevElClipPaths=o),i.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=i.prevEl;u||(l=s=!0);var c=e instanceof yb&&e.autoBatch&&Mc(e.style);s||Sc(r,u.transform)?(Tc(t,i),wc(t,e)):c||Tc(t,i);var h=Cc(e,i.inHover);e instanceof yb?(i.lastDrawType!==fM&&(l=!0,i.lastDrawType=fM),bc(t,e,u,l,i),c&&(i.batchFill||i.batchStroke)||t.beginPath(),vc(t,e,h,c),c&&(i.batchFill=h.fill||"",i.batchStroke=h.stroke||"")):e instanceof xb?(i.lastDrawType!==vM&&(l=!0,i.lastDrawType=vM),bc(t,e,u,l,i),mc(t,e,h)):e instanceof wb?(i.lastDrawType!==gM&&(l=!0,i.lastDrawType=gM),_c(t,e,u,l,i),yc(t,e,h)):e instanceof $_&&(i.lastDrawType!==yM&&(l=!0,i.lastDrawType=yM),Dc(t,e,i)),c&&n&&Tc(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),i.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function Dc(t,e,i){var n=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover};for(o=e.getCursor(),a=n.length;a>o;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ac(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=r.length;c>u;u++){l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ac(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function Pc(t,e){function i(t){function e(){for(var t=1,e=0,i=m.length;i>e;++e)t=Fi(t,m[e]);var n=1;for(e=0,i=y.length;i>e;++e)n=Fi(n,y[e].length);t*=n;var r=x*m.length*y.length;return{width:Math.max(1,Math.min(t,s.maxTileWidth)),height:Math.max(1,Math.min(r,s.maxTileHeight))}}function i(){function t(t,e,i,a,l){var u=o?1:n,c=oc(l,t*u,e*u,i*u,a*u,s.color,s.symbolKeepAspect);o?_.appendChild(r.painter.paintOne(c)):Ic(f,c)}f&&(f.clearRect(0,0,b.width,b.height),s.backgroundColor&&(f.fillStyle=s.backgroundColor,f.fillRect(0,0,b.width,b.height)));for(var e=0,i=0;i<v.length;++i)e+=v[i];if(!(0>=e))for(var a=-x,l=0,u=0,c=0;a<w.height;){if(l%2===0){for(var h=u/2%y.length,d=0,p=0,m=0;d<2*w.width;){var k=0;for(i=0;i<g[c].length;++i)k+=g[c][i];if(0>=k)break;if(p%2===0){var S=.5*(1-s.symbolSize),M=d+g[c][p]*S,T=a+v[l]*S,C=g[c][p]*s.symbolSize,I=v[l]*s.symbolSize,A=m/2%y[h].length;t(M,T,C,I,y[h][A])}d+=g[c][p],++m,++p,p===g[c].length&&(p=0)}++c,c===g.length&&(c=0)}a+=v[l],++u,++l,l===v.length&&(l=0)}}for(var a=[n],l=!0,u=0;u<bM.length;++u){var c=s[bM[u]],h=typeof c;if(null!=c&&!M(c)&&"string"!==h&&"number"!==h&&"boolean"!==h){l=!1;break}a.push(c)}var d;if(l){d=a.join(",")+(o?"-svg":"");var p=xM.get(d);p&&(o?t.svgElement=p:t.image=p)}var f,g=Oc(s.dashArrayX),v=zc(s.dashArrayY),y=Lc(s.symbol),m=Rc(g),x=Ec(v),b=!o&&ey(),_=o&&r.painter.createSVGElement("g"),w=e();b&&(b.width=w.width*n,b.height=w.height*n,f=b.getContext("2d")),i(),l&&xM.put(d,b||_),t.image=b,t.svgElement=_,t.svgWidth=w.width,t.svgHeight=w.height}if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),o="svg"===r.painter.type;t.dirty&&mM["delete"](t);var a=mM.get(t);if(a)return a;var s=d(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===s.backgroundColor&&(s.backgroundColor=null);var l={repeat:"repeat"};return i(l),l.rotation=s.rotation,l.scaleX=l.scaleY=o?1:1/n,mM.set(t,l),t.dirty=!1,l}function Lc(t){if(!t||0===t.length)return[["rect"]];if("string"==typeof t)return[[t]];for(var e=!0,i=0;i<t.length;++i)if("string"!=typeof t[i]){e=!1;break}if(e)return Lc([t]);var n=[];for(i=0;i<t.length;++i)n.push("string"==typeof t[i]?[t[i]]:t[i]);return n}function Oc(t){if(!t||0===t.length)return[[0,0]];if("number"==typeof t){var e=Math.ceil(t);return[[e,e]]}for(var i=!0,n=0;n<t.length;++n)if("number"!=typeof t[n]){i=!1;break}if(i)return Oc([t]);var r=[];for(n=0;n<t.length;++n)if("number"==typeof t[n]){e=Math.ceil(t[n]);r.push([e,e])}else{e=m(t[n],(function(t){return Math.ceil(t)}));r.push(e.length%2===1?e.concat(e):e)}return r}function zc(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if("number"==typeof t){var e=Math.ceil(t);return[e,e]}var i=m(t,(function(t){return Math.ceil(t)}));return t.length%2?i.concat(i):i}function Rc(t){return m(t,(function(t){return Ec(t)}))}function Ec(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2===1?2*e:e}function Bc(t,e){t.eachRawSeries((function(i){if(!t.isSeriesFiltered(i)){var n=i.getData();n.hasItemVisual()&&n.each((function(t){var i=n.getItemVisual(t,"decal");if(i){var r=n.ensureUniqueItemVisual(t,"style");r.decal=Pc(i,e)}}));var r=n.getVisual("decal");if(r){var o=n.getVisual("style");o.decal=Pc(r,e)}}}))}function Nc(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.isDisposed()?void 0:Vc(this,t,e)}}function Fc(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return Vc(this,t,e)}}function Vc(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),py.prototype[e].apply(t,i)}function Hc(t,e,i){var n=Yc(t);if(n)return n;var r=new kT(t,e,i);return r.id="ec_"+BT++,RT[r.id]=r,cn(t,FT,r.id),xT(r),wM(DT,(function(t){t(r)})),r}function jc(t){if(M(t)){var e=t;t=null,wM(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+NT++,wM(e,(function(e){e.group=t}))}return ET[t]=!0,t}function Wc(t){ET[t]=!1}function Gc(t){"string"==typeof t?t=RT[t]:t instanceof kT||(t=Yc(t)),t instanceof kT&&!t.isDisposed()&&t.dispose()}function Yc(t){return RT[hn(t,FT)]}function Uc(t){return RT[t]}function Xc(t,e){OT[t]=e}function Zc(t){MM(AT,t)<0&&AT.push(t)}function qc(t,e){nh(IT,t,e,OM)}function $c(t){MM(DT,t)<0&&t&&DT.push(t)}function Kc(t){MM(PT,t)<0&&t&&PT.push(t)}function Qc(t,e,i){"function"==typeof e&&(i=e,e="");var n=SM(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,CT[e]||(_M(qM.test(n)&&qM.test(e)),TT[n]||(TT[n]={action:i,actionInfo:t}),CT[e]=n)}function Jc(t,e){Mk.register(t,e)}function th(t){var e=Mk.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function eh(t,e){nh(LT,t,e,RM,"layout")}function ih(t,e){nh(LT,t,e,NM,"visual")}function nh(t,e,i,n,r){if((kM(e)||SM(e))&&(i=e,e=n),!(MM(HT,i)>=0)){HT.push(i);var o=_S.wrapStageHandler(i,r);o.__prio=e,o.__raw=i,t.push(o)}}function rh(t,e){zT[t]=e}function oh(t){o("createCanvas",t)}function ah(t,e,i){OS.registerMap(t,e,i)}function sh(t){var e=OS.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}}function lh(t){return null==t?0:t.length||1}function uh(t){return t}function ch(t){var e={},i=e.encode={},n=X(),r=[],o=[],a=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};y(t.dimensions,(function(e){var s=t.getDimensionInfo(e),l=s.coordDim;if(l){var u=s.coordDimIndex;hh(i,l)[u]=e,s.isExtraCoord||(n.set(l,1),ph(s.type)&&(r[0]=e),hh(a.encode,l)[u]=s.index),s.defaultTooltip&&o.push(e)}tk.each((function(t,e){var n=hh(i,e),r=s.otherDims[e];null!=r&&!1!==r&&(n[r]=s.name)}))}));var s=[],l={};n.each((function(t,e){var n=i[e];l[e]=n[0],s=s.concat(n)})),e.dataDimsOnCoord=s,e.encodeFirstDimNotExtra=l;var u=i.label;u&&u.length&&(r=u.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=r.slice()),i.defaultedLabel=r,i.defaultedTooltip=o,e}function hh(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function dh(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function ph(t){return!("ordinal"===t||"time"===t)}function fh(t,e,i){function n(t,e,i){null!=tk.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,a.set(e,!0))}hl(e)||(e=pl(e)),i=i||{},t=(t||[]).slice();for(var r=(i.dimsDef||[]).slice(),o=X(),a=X(),s=[],u=gh(e,t,r,i.dimCount),c=0;u>c;c++){var p=r[c],f=r[c]=h({},D(p)?p:{name:p}),g=f.name,v=s[c]=new oC;null!=g&&null==o.get(g)&&(v.name=v.displayName=g,o.set(g,c)),null!=f.type&&(v.type=f.type),null!=f.displayName&&(v.displayName=f.displayName)}var m=i.encodeDef;!m&&i.encodeDefaulter&&(m=i.encodeDefaulter(e,u));var x=X(m);x.each((function(t,e){var i=Hi(t).slice();if(1===i.length&&!C(i[0])&&i[0]<0)x.set(e,!1);else{var r=x.set(e,[]);y(i,(function(t,i){var a=C(t)?o.get(t):t;null!=a&&u>a&&(r[i]=a,n(s[a],e,i))}))}}));var b=0;y(t,(function(t){var e,i,r,o;if(C(t))e=t,o={};else{o=t,e=o.name;var a=o.ordinalMeta;o.ordinalMeta=null,o=l(o),o.ordinalMeta=a,i=o.dimsDef,r=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var u=x.get(e);if(!1!==u){if(u=Hi(u),!u.length)for(var c=0;c<(i&&i.length||1);c++){for(;b<s.length&&null!=s[b].coordDim;)b++;b<s.length&&u.push(b++)}y(u,(function(t,a){var l=s[t];if(n(d(l,o),e,a),null==l.name&&i){var u=i[a];!D(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}r&&d(l.otherDims,r)}))}}));var _=i.generateCoord,w=i.generateCoordCount,k=null!=w;w=_?w||1:0;for(var S=_||"value",M=0;u>M;M++){v=s[M]=s[M]||new oC;var T=v.coordDim;null==T&&(v.coordDim=vh(S,a,k),v.coordDimIndex=0,(!_||0>=w)&&(v.isExtraCoord=!0),w--),null==v.name&&(v.name=vh(v.coordDim,o,!1)),null!=v.type||Ds(e,M)!==uk.Must&&(!v.isExtraCoord||null==v.otherDims.itemName&&null==v.otherDims.seriesName)||(v.type="ordinal")}return s}function gh(t,e,i,n){var r=Math.max(t.dimensionsDetectedCount||1,e.length,i.length,n||0);return y(e,(function(t){var e;D(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}function vh(t,e,i){if(i||null!=e.get(t)){for(var n=0;null!=e.get(t+n);)n++;t+=n}return e.set(t,!0),t}function yh(t,e){return e=e||{},fh(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}function mh(t){var e=t.get("coordinateSystem"),i=new xC(e),n=bC[e];return n?(n(t,i,i.axisMap,i.categoryAxisMap),i):void 0}function xh(t){return"category"===t.get("type")}function bh(t,e,i){i=i||{};var n,r,o,a,s=i.byIndex,l=i.stackedCoordDimension,u=!(!t||!t.get("stack"));if(y(e,(function(t,i){C(t)&&(e[i]=t={name:t}),u&&!t.isExtraCoord&&(s||n||!t.ordinalMeta||(n=t),r||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(r=t))})),!r||s||n||(s=!0),r){o="__\0ecstackresult",a="__\0ecstackedover",n&&(n.createInvertedIndices=!0);var c=r.coordDim,h=r.type,d=0;y(e,(function(t){t.coordDim===c&&d++})),e.push({name:o,coordDim:c,coordDimIndex:d,type:h,isExtraCoord:!0,isCalculationCoord:!0}),d++,e.push({name:a,coordDim:a,coordDimIndex:d,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:r&&r.name,stackedByDimension:n&&n.name,isStackedByIndex:s,stackedOverDimension:a,stackResultDimension:o}}function _h(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function wh(t,e){return _h(t,e)?t.getCalculationInfo("stackResultDimension"):e}function kh(t,e,i){i=i||{},hl(t)||(t=pl(t));var n,r=e.get("coordinateSystem"),o=Mk.get(r),a=mh(e);a&&a.coordSysDims&&(n=m(a.coordSysDims,(function(t){var e={name:t},i=a.axisMap.get(t);if(i){var n=i.get("type");e.type=dh(n)}return e}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]);var s,l,u=i.useEncodeDefaulter,c=yh(t,{coordDimensions:n,generateCoord:i.generateCoord,encodeDefaulter:T(u)?u:u?S(Cs,n,e):null});a&&y(c,(function(t,e){var n=t.coordDim,r=a.categoryAxisMap.get(n);r&&(null==s&&(s=e),t.ordinalMeta=r.getOrdinalMeta(),i.createInvertedIndices&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(l=!0)})),l||null==s||(c[s].otherDims.itemName=0);var h=bh(e,c),d=new mC(c,e);d.setCalculationInfo(h);var p=null!=s&&Sh(t)?function(t,e,i,n){return n===s?i:this.defaultDimValueGetter(t,e,i,n)}:null;return d.hasItemOption=!1,d.initData(t,null,p),d}function Sh(t){if(t.sourceFormat===ek){var e=Mh(t.data||[]);return null!=e&&!M(Wi(e))}}function Mh(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function Th(t){return D(t)&&null!=t.value?t.value:t+""}function Ch(t,e,i,n){var r={},o=t[1]-t[0],a=r.interval=Li(o/e,!0);null!=i&&i>a&&(a=r.interval=i),null!=n&&a>n&&(a=r.interval=n);var s=r.intervalPrecision=Ih(a),l=r.niceTickExtent=[kC(Math.ceil(t[0]/a)*a,s),kC(Math.floor(t[1]/a)*a,s)];return Dh(l,t),r}function Ih(t){return Si(t)+2}function Ah(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function Dh(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Ah(t,0,e),Ah(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Ph(t,e){return t>=e[0]&&t<=e[1]}function Lh(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Oh(t,e){return t*(e[1]-e[0])+e[0]}function zh(t){return t.get("stack")||CC+t.seriesIndex}function Rh(t){return t.dim+t.index}function Eh(t,e){var i=[];return e.eachSeriesByType(t,(function(t){jh(t)&&!Wh(t)&&i.push(t)})),i}function Bh(t){var e={};y(t,(function(t){var i=t.coordinateSystem,n=i.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),o=n.dim+"_"+n.index,a=r.mapDimension(n.dim),s=0,l=r.count();l>s;++s){var u=r.get(a,s);e[o]?e[o].push(u):e[o]=[u]}}));var i={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r){r.sort((function(t,e){return t-e}));for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}i[n]=o}}return i}function Nh(t){var e=Bh(t),i=[];return y(t,(function(t){var n,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)n=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);n=l?u/h*l:u}else{var d=t.getData();n=Math.abs(a[1]-a[0])/d.count()}var p=bi(t.get("barWidth"),n),f=bi(t.get("barMaxWidth"),n),g=bi(t.get("barMinWidth")||1,n),v=t.get("barGap"),y=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:Rh(o),stackId:zh(t)})})),Fh(i)}function Fh(t){var e={};y(t,(function(t){var i=t.axisKey,n=t.bandWidth,r=e[i]||{bandWidth:n,remainedWidth:n,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks;e[i]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var c=t.barGap;null!=c&&(r.gap=c);var h=t.barCategoryGap;null!=h&&(r.categoryGap=h)}));var i={};return y(e,(function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=w(n).length;o=Math.max(35-4*a,15)+"%"}var s=bi(o,r),l=bi(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),y(n,(function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){var n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,u-=n+l*n,c--}else{n=h;e&&n>e&&(n=Math.min(e,u)),i&&i>n&&(n=i),n!==h&&(t.width=n,u-=n+l*n,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,p=0;y(n,(function(t){t.width||(t.width=h),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;y(n,(function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)}))})),i}function Vh(t,e,i){if(t&&e){var n=t[Rh(e)];return null!=n&&null!=i?n[zh(i)]:n}}function Hh(t,e){var i=Eh(t,e),n=Nh(i),r={};y(i,(function(t){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=zh(t),s=n[Rh(o)][a],l=s.offset,u=s.width,c=i.getOtherAxis(o),h=t.get("barMinHeight")||0;r[a]=r[a]||[],e.setLayout({bandWidth:s.bandWidth,offset:l,size:u});for(var d=e.mapDimension(c.dim),p=e.mapDimension(o.dim),f=_h(e,d),g=c.isHorizontal(),v=Gh(o,c,f),y=0,m=e.count();m>y;y++){var x=e.get(d,y),b=e.get(p,y),_=x>=0?"p":"n",w=v;f&&(r[a][b]||(r[a][b]={p:v,n:v}),w=r[a][b][_]);var k=void 0,S=void 0,M=void 0,T=void 0;if(g){var C=i.dataToPoint([x,b]);k=w,S=C[1]+l,M=C[0]-v,T=u,Math.abs(M)<h&&(M=(0>M?-1:1)*h),isNaN(M)||f&&(r[a][b][_]+=M)}else{C=i.dataToPoint([b,x]);k=C[0]+l,S=w,M=u,T=C[1]-v,Math.abs(T)<h&&(T=(0>=T?-1:1)*h),isNaN(T)||f&&(r[a][b][_]+=T)}e.setItemLayout(y,{x:k,y:S,width:M,height:T})}}))}function jh(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Wh(t){return t.pipelineContext&&t.pipelineContext.large}function Gh(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}function Yh(t,e,i,n){var r=Ai(e),o=Ai(i),a=function(t){return Xa(r,t,n)===Xa(o,t,n)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")},p=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return p()}}function Uh(t){return t/=Pw,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Xh(t){var e=30*Pw;return t/=e,t>6?6:t>3?3:t>2?2:1}function Zh(t){return t/=Dw,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function qh(t,e){return t/=e?Aw:Iw,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function $h(t){return Li(t,!0)}function Kh(t,e,i){var n=new Date(t);switch(Ha(e)){case"year":case"month":n[is(i)](0);case"day":n[ns(i)](1);case"hour":n[rs(i)](0);case"minute":n[os(i)](0);case"second":n[as(i)](0),n[ss(i)](0)}return n.getTime()}function Qh(t,e,i,n){function r(t,e,i,r,o,a,s){for(var l=new Date(e),u=e,c=l[r]();i>u&&u<=n[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function o(t,o,a){var s=[],l=!o.length;if(!Yh(Ha(t),n[0],n[1],i)){l&&(o=[{value:Kh(new Date(n[0]),t,i)},{value:n[1]}]);for(var u=0;u<o.length-1;u++){var c=o[u].value,h=o[u+1].value;if(c!==h){var d=void 0,p=void 0,f=void 0,g=!1;switch(t){case"year":d=Math.max(1,Math.round(e/Pw/365)),p=Za(i),f=es(i);break;case"half-year":case"quarter":case"month":d=Xh(e),p=qa(i),f=is(i);break;case"week":case"half-week":case"day":d=Uh(e,31),p=$a(i),f=ns(i),g=!0;break;case"half-day":case"quarter-day":case"hour":d=Zh(e),p=Ka(i),f=rs(i);break;case"minute":d=qh(e,!0),p=Qa(i),f=os(i);break;case"second":d=qh(e,!1),p=Ja(i),f=as(i);break;case"millisecond":d=$h(e),p=ts(i),f=ss(i)}r(d,c,h,p,f,g,s),"year"===t&&a.length>1&&0===u&&a.unshift({value:a[0].value-d})}}for(u=0;u<s.length;u++)a.push(s[u]);return s}}for(var a=1e4,s=Bw,l=0,u=[],c=[],h=0,d=0,p=0;p<s.length&&l++<a;++p){var f=Ha(s[p]);if(ja(s[p])){o(s[p],u[u.length-1]||[],c);var g=s[p+1]?Ha(s[p+1]):null;if(f!==g){if(c.length){d=h,c.sort((function(t,e){return t.value-e.value}));for(var v=[],y=0;y<c.length;++y){var x=c[y].value;(0===y||c[y-1].value!==x)&&(v.push(c[y]),x>=n[0]&&x<=n[1]&&h++)}var _=(n[1]-n[0])/e;if(h>1.5*_&&d>_/1.5)break;if(u.push(v),h>_||t===s[p])break}c=[]}}}var w=b(m(u,(function(t){return b(t,(function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd}))})),(function(t){return t.length>0})),k=[],S=w.length-1;for(p=0;p<w.length;++p)for(var M=w[p],T=0;T<M.length;++T)k.push({value:M[T].value,level:S-p});k.sort((function(t,e){return t.value-e.value}));var C=[];for(p=0;p<k.length;++p)(0===p||k[p].value!==k[p-1].value)&&C.push(k[p]);return C}function Jh(t,e){return BC(t,EC(e))}function td(t,e,i){var n=t.rawExtentInfo;return n||(n=new GC(t,e,i),t.rawExtentInfo=n,n)}function ed(t,e){return null==e?null:B(e)?NaN:t.parse(e)}function id(t,e){var i=t.type,n=td(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var r=n.min,o=n.max,a=e.ecModel;if(a&&"time"===i){var s=Eh("bar",a),l=!1;if(y(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=Nh(s),c=nd(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function nd(t,e,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],a=Vh(n,i.axis);if(void 0===a)return{min:t,max:e};var s=1/0;y(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;y(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/o,d=c/h-c;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function rd(t,e){var i=id(t,e),n=i.extent,r=e.get("splitNumber");t instanceof jC&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)}function od(t,e){if(e=e||t.get("type"))switch(e){case"category":return new SC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new LC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(_C.getClass(e)||TC)}}function ad(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)}function sd(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(i,n){return t.scale.getFormattedLabel(i,n,e)}}(e):"string"==typeof e?function(e){return function(i){var n=t.scale.getLabel(i),r=e.replace("{value}",null!=n?n:"");return r}}(e):"function"==typeof e?function(e){return function(n,r){return null!=i&&(r=n.value-i),e(ld(t,n),r,null!=n.level?{level:n.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function ld(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function ud(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,r,o=i.getExtent();i instanceof SC?r=i.count():(n=i.getTicks(),r=n.length);var a,s=t.getLabelModel(),l=sd(t),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;r>c;c+=u){var h=n?n[c]:{value:o[0]+c},d=l(h,c),p=s.getTextRect(d),f=cd(p,s.get("rotate")||0);a?a.union(f):a=f}return a}}function cd(t,e){var i=e*Math.PI/180,n=t.width,r=t.height,o=n*Math.abs(Math.cos(i))+Math.abs(r*Math.sin(i)),a=n*Math.abs(Math.sin(i))+Math.abs(r*Math.cos(i)),s=new lm(t.x,t.y,o,a);return s}function hd(t){var e=t.get("interval");return null==e?"auto":e}function dd(t){return"category"===t.type&&0===hd(t.getLabelModel())}function pd(t,e){var i={};return y(t.mapDimensionsAll(e),(function(e){i[wh(t,e)]=!0})),w(i)}function fd(t,e,i){e&&y(pd(e,i),(function(i){var n=e.getApproximateExtent(i);n[0]<t[0]&&(t[0]=n[0]),n[1]>t[1]&&(t[1]=n[1])}))}function gd(t){return kh(t.getSource(),t)}function vd(t,e){var i=e;e instanceof mw||(i=new mw(e));var n=od(i);return n.setExtent(t[0],t[1]),rd(n,i),n}function yd(t){g(t,XC)}function md(t,e){return e=e||{},Sa(t,null,null,"normal"!==e.state)}function xd(t){return M(t)?void y(t,(function(t){xd(t)})):void(p($C,t)>=0||($C.push(t),T(t)&&(t={install:t}),t.install(KC)))}function bd(t,e){return Math.abs(t-e)<QC}function _d(t,e,i){var n=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];n+=gr(r[0],r[1],a[0],a[1],e,i),r=a}var s=t[0];return bd(r[0],s[0])&&bd(r[1],s[1])||(n+=gr(r[0],r[1],s[0],s[1],e,i)),0!==n}function wd(t){if(!t.UTF8Encoding)return t;var e=t,i=e.UTF8Scale;null==i&&(i=1024);for(var n=e.features,r=0;r<n.length;r++){var o=n[r],a=o.geometry;if("Polygon"===a.type)for(var s=a.coordinates,l=0;l<s.length;l++)s[l]=kd(s[l],a.encodeOffsets[l],i);else if("MultiPolygon"===a.type)for(s=a.coordinates,l=0;l<s.length;l++)for(var u=s[l],c=0;c<u.length;c++)u[c]=kd(u[c],a.encodeOffsets[l][c],i)}return e.UTF8Encoding=!1,e}function kd(t,e,i){for(var n=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,n.push([s/i,l/i])}return n}function Sd(t,e){return t=wd(t),m(b(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var i=t.properties,n=t.geometry,r=[];if("Polygon"===n.type){var o=n.coordinates;r.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}if("MultiPolygon"===n.type){o=n.coordinates;y(o,(function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}))}var a=new JC(i[e||"name"],r,i.cp);return a.properties=i,a}))}function Md(t){return"category"===t.type?Cd(t):Dd(t)}function Td(t,e){return"category"===t.type?Ad(t,e):{ticks:m(t.scale.getTicks(),(function(t){return t.value}))}}function Cd(t){var e=t.getLabelModel(),i=Id(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function Id(t,e){var i,n,r=Pd(t,"labels"),o=hd(e),a=Ld(r,o);return a||(T(o)?i=Nd(t,o):(n="auto"===o?zd(t):o,i=Bd(t,n)),Od(r,o,{labels:i,labelCategoryInterval:n}))}function Ad(t,e){var i,n,r=Pd(t,"ticks"),o=hd(e),a=Ld(r,o);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(i=[]),T(o))i=Nd(t,o,!0);else if("auto"===o){var s=Id(t,t.getLabelModel());n=s.labelCategoryInterval,i=m(s.labels,(function(t){return t.tickValue}))}else n=o,i=Bd(t,n,!0);return Od(r,o,{ticks:i,tickCategoryInterval:n})}function Dd(t){var e=t.scale.getTicks(),i=sd(t);return{labels:m(e,(function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function Pd(t,e){return oI(t)[e]||(oI(t)[e]=[])}function Ld(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function Od(t,e,i){return t.push({key:e,value:i}),i}function zd(t){var e=oI(t).autoInterval;return null!=e?e:oI(t).autoInterval=t.calculateCategoryInterval()}function Rd(t){var e=Ed(t),i=sd(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),d=0,p=0;l<=o[1];l+=s){var f=0,g=0,v=Re(i({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var y=d/c,m=p/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(y,m))),b=oI(t.model),_=t.getExtent(),w=b.lastAutoInterval,k=b.lastTickCount;return null!=w&&null!=k&&Math.abs(w-x)<=1&&Math.abs(k-a)<=1&&w>x&&b.axisExtent0===_[0]&&b.axisExtent1===_[1]?x=w:(b.lastTickCount=a,b.lastAutoInterval=x,b.axisExtent0=_[0],b.axisExtent1=_[1]),x}function Ed(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Bd(t,e,i){function n(t){var e={value:t};l.push(i?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}var r=sd(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=a[0],h=o.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var d=dd(t),p=s.get("showMinLabel")||d,f=s.get("showMaxLabel")||d;p&&c!==a[0]&&n(a[0]);for(var g=c;g<=a[1];g+=u)n(g);return f&&g-u!==a[1]&&n(a[1]),l}function Nd(t,e,i){var n=t.scale,r=sd(t),o=[];return y(n.getTicks(),(function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&o.push(i?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}function Fd(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}function Vd(t,e,i,n){function r(t,e){return t=_i(t),e=_i(e),d?t>e:e>t}var o=e.length;if(t.onBand&&!i&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickValue-e[0].tickValue,c=(e[o-1].coord-e[0].coord)/u;y(e,(function(t){t.coord-=c/2}));var h=t.scale.getExtent();s=1+h[1]-e[o-1].tickValue,a={coord:e[o-1].coord+c*s},e.push(a)}var d=l[0]>l[1];r(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift()),n&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(n?a.coord=l[1]:e.pop()),n&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function Hd(t){var e=Zw.extend(t);return Zw.registerClass(e),e}function jd(t){var e=rS.extend(t);return rS.registerClass(e),e}function Wd(t){var e=nS.extend(t);return nS.registerClass(e),e}function Gd(t){var e=sS.extend(t);return sS.registerClass(e),e}function Yd(){return!1}function Ud(t,e,i){var n=ey(),r=e.getWidth(),o=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}function Xd(t){return parseInt(t,10)}function Zd(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function qd(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}function $d(t){t.registerPainter("canvas",pI)}function Kd(t){t.registerComponentModel(fI),t.registerComponentView(gI)}function Qd(t){return{seriesType:t,reset:function(t,e,i){var n=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=n.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=i.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(d>1){"lttb"===r&&t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/d));var p=void 0;"string"==typeof r?p=vI[r]:"function"==typeof r&&(p=r),p&&t.setData(n.downSample(n.mapDimension(l.dim),1/d,p,yI))}}}}}function Jd(t,e,i,n,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=i.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new Tb({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g="function"==typeof r?function(t){r(t,h)}:null;ia(h,{shape:{width:l,height:u,x:a,y:s}},i,null,n,g)}return h}function tp(t,e,i){var n=t.getArea(),r=_i(n.r0,1),o=_i(n.r,1),a=new M_({shape:{cx:_i(t.cx,1),cy:_i(t.cy,1),r0:r,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=n.startAngle:a.shape.r=r,ia(a,{shape:{endAngle:n.endAngle,r:o}},i)}return a}function ep(t,e,i,n,r){return t?"polar"===t.type?tp(t,e,i):"cartesian2d"===t.type?Jd(t,e,i,n,r):null:null}function ip(t,e){return t.type===e}function np(t,e){var i=t.mapDimensionsAll("defaultedLabel"),n=i.length;if(1===n){var r=Ml(t,e,i[0]);return null!=r?r+"":null}if(n){for(var o=[],a=0;a<i.length;a++)o.push(Ml(t,e,i[a]));return o.join(" ")}}function rp(t,e){var i=t.mapDimensionsAll("defaultedLabel");if(!M(e))return e+"";for(var n=[],r=0;r<i.length;r++){var o=t.getDimensionInfo(i[r]);o&&n.push(e[o.index])}return n.join(" ")}function op(t,e){var i=t.getArea&&t.getArea();if(ip(t,"cartesian2d")){var n=t.getBaseAxis();if("category"!==n.type||!n.onBand){var r=e.getLayout("bandWidth");n.isHorizontal()?(i.x-=r,i.width+=2*r):(i.y-=r,i.height+=2*r)}}return i}function ap(t,e){var i=t.get("realtimeSort",!0),n=e.getBaseAxis();return i&&"category"===n.type&&"cartesian2d"===e.type?{baseAxis:n,otherAxis:e.getOtherAxis(n)}:void 0}function sp(t,e,i,n,r,o,a,s){var l,u;o?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(a?ea:ia)(i,{shape:l},e,r,null);var c=e?t.baseAxis.model:null;(a?ea:ia)(i,{shape:u},c,r)}function lp(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function up(t,e,i,n,r,o,a,s){var l=e.getItemVisual(i,"style");s||t.setShape("r",n.get(kI)||0),t.useStyle(l);var u=n.getShallow("cursor");if(u&&t.attr("cursor",u),!s){var c=a?r.height>0?"bottom":"top":r.width>0?"left":"right",h=ka(n);wa(t,h,{labelFetcher:o,labelDataIndex:i,defaultText:np(o.getData(),i),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=t.getTextContent();Da(d,h,o.getRawValue(i),(function(t){return rp(e,t)}))}var p=n.getModel(["emphasis"]);vo(t,p.get("focus"),p.get("blurScope")),mo(t,n),lp(r)&&(t.style.fill="none",t.style.stroke="none",y(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function cp(t,e){var i=t.get(wI)||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,r)}function hp(t,e,i){var n=t.getData(),r=[],o=n.getLayout("valueAxisHorizontal")?1:0;r[1-o]=n.getLayout("valueAxisStart");var a=n.getLayout("largeDataIndices"),s=n.getLayout("barWidth"),l=t.getModel("backgroundStyle"),u=t.get("showBackground",!0);if(u){var c=n.getLayout("largeBackgroundPoints"),h=[];h[1-o]=n.getLayout("backgroundStart");var d=new LI({shape:{points:c},incremental:!!i,silent:!0,z2:0});d.__startPoint=h,d.__baseDimIdx=o,d.__largeDataIndices=a,d.__barWidth=s,fp(d,l,n),e.add(d)}var p=new LI({shape:{points:n.getLayout("largePoints")},incremental:!!i});p.__startPoint=r,p.__baseDimIdx=o,p.__largeDataIndices=a,p.__barWidth=s,e.add(p),pp(p,t,n),Ob(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",OI),p.on("mousemove",OI))}function dp(t,e,i){var n=t.__baseDimIdx,r=1-n,o=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];SI[0]=e,SI[1]=i;for(var u=SI[n],c=SI[1-n],h=u-s,d=u+s,p=0,f=o.length/2;f>p;p++){var g=2*p,v=o[g+n],y=o[g+r];if(v>=h&&d>=v&&(y>=l?c>=l&&y>=c:c>=y&&l>=c))return a[p]}return-1}function pp(t,e,i){var n=i.getVisual("style");t.useStyle(h({},n)),t.style.fill=null,t.style.stroke=n.fill,t.style.lineWidth=i.getLayout("barWidth")}function fp(t,e,i){var n=e.get("borderColor")||e.get("color"),r=e.getItemStyle();t.useStyle(r),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}function gp(t,e,i){if(ip(i,"cartesian2d")){var n=e,r=i.getArea();return{x:t?n.x:r.x,y:t?r.y:n.y,width:t?n.width:r.width,height:t?r.height:n.height}}r=i.getArea();var o=e;return{cx:r.cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function vp(t,e,i){var n="polar"===t.type?M_:Tb;return new n({shape:gp(e,i,t),silent:!0,z2:0})}function yp(t){t.registerChartView(CI),t.registerSeriesModel(xI),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,S(Hh,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,DC),t.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Qd("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}function mp(t,e){this.parent.drift(t,e)}function xp(t,e,i,n){return!(!e||isNaN(e[0])||isNaN(e[1])||n.isIgnore&&n.isIgnore(i)||n.clipShape&&!n.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(i,"symbol"))}function bp(t){return null==t||D(t)||(t={isIgnore:t}),t||{}}function _p(t){var e=t.hostModel,i=e.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverScale:i.get("scale"),labelStatesModels:ka(e),cursorStyle:e.get("cursor")}}function wp(t,e,i){var n=t.getBaseAxis(),r=t.getOtherAxis(n),o=kp(r,i),a=n.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=m(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return _h(e,h[0])&&(d=!0,h[0]=p),_h(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function kp(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function Sp(t,e,i,n){var r=NaN;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}function Mp(t){return M(t)?BI?new Float32Array(t):t:new NI(t)}function Tp(t,e){var i=[];return e.diff(t).add((function(t){i.push({cmd:"+",idx:t})})).update((function(t,e){i.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){i.push({cmd:"-",idx:t})})).execute(),i}function Cp(t,e,i,n,r,o,a,s){for(var l=Tp(t,e),u=[],c=[],h=[],d=[],p=[],f=[],g=[],v=wp(r,e,a),y=wp(o,t,s),m=t.getLayout("points")||[],x=e.getLayout("points")||[],b=0;b<l.length;b++){var _=l[b],w=!0,k=void 0,S=void 0;switch(_.cmd){case"=":k=2*_.idx,S=2*_.idx1;var M=m[k],T=m[k+1],C=x[S],I=x[S+1];(isNaN(M)||isNaN(T))&&(M=C,T=I),u.push(M,T),c.push(C,I),h.push(i[k],i[k+1]),d.push(n[S],n[S+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var A=_.idx,D=v.dataDimsForPoint,P=r.dataToPoint([e.get(D[0],A),e.get(D[1],A)]);S=2*A,u.push(P[0],P[1]),c.push(x[S],x[S+1]);var L=Sp(v,r,e,A);h.push(L[0],L[1]),d.push(n[S],n[S+1]),g.push(e.getRawIndex(A));break;case"-":var O=_.idx,z=t.getRawIndex(O),R=y.dataDimsForPoint;if(k=2*O,z!==O){var E=o.dataToPoint([t.get(R[0],O),t.get(R[1],O)]),B=Sp(y,o,t,O);u.push(m[k],m[k+1]),c.push(E[0],E[1]),h.push(i[k],i[k+1]),d.push(B[0],B[1]),g.push(z)}else w=!1}w&&(p.push(_),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var N=u.length,F=Mp(N),V=Mp(N),H=Mp(N),j=Mp(N),W=[];for(b=0;b<f.length;b++){var G=f[b],Y=2*b,U=2*G;F[Y]=u[U],F[Y+1]=u[U+1],V[Y]=c[U],V[Y+1]=c[U+1],H[Y]=h[U],H[Y+1]=h[U+1],j[Y]=d[U],j[Y+1]=d[U+1],W[b]=p[G]}return{current:F,next:V,stackedOnCurrent:H,stackedOnNext:j,status:W}}function Ip(t,e){return isNaN(t)||isNaN(e)}function Ap(t,e,i,n,r,o,a,s,l){for(var u,c,h,d,p,f,g=i,v=0;n>v;v++){var y=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(Ip(y,m)){if(l){g+=o;continue}break}if(g===i)t[o>0?"moveTo":"lineTo"](y,m),h=y,d=m;else{var x=y-u,b=m-c;if(.5>x*x+b*b){g+=o;continue}if(a>0){var _=g+o,w=e[2*_],k=e[2*_+1],S=v+1;if(l)for(;Ip(w,k)&&n>S;)S++,_+=o,w=e[2*_],k=e[2*_+1];var M=.5,T=0,C=0,I=void 0,A=void 0;if(S>=n||Ip(w,k))p=y,f=m;else{T=w-u,C=k-c;var D=y-u,P=w-y,L=m-c,O=k-m,z=void 0,R=void 0;"x"===s?(z=Math.abs(D),R=Math.abs(P),p=y-z*a,f=m,I=y+z*a,A=m):"y"===s?(z=Math.abs(L),R=Math.abs(O),p=y,f=m-z*a,I=y,A=m+z*a):(z=Math.sqrt(D*D+L*L),R=Math.sqrt(P*P+O*O),M=R/(R+z),p=y-T*a*(1-M),f=m-C*a*(1-M),I=y+T*a*M,A=m+C*a*M,I=FI(I,VI(w,y)),A=FI(A,VI(k,m)),I=VI(I,FI(w,y)),A=VI(A,FI(k,m)),T=I-y,C=A-m,p=y-T*z/R,f=m-C*z/R,p=FI(p,VI(u,y)),f=FI(f,VI(c,m)),p=VI(p,FI(u,y)),f=VI(f,FI(c,m)),T=y-p,C=m-f,I=y+T*R/z,A=m+C*R/z)}t.bezierCurveTo(h,d,p,f,y,m),h=I,d=A}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}function Dp(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return!0}}function Pp(t){for(var e=1/0,i=1/0,n=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),r=Math.max(s,r))}return[[e,i],[n,r]]}function Lp(t,e){var i=Pp(t),n=i[0],r=i[1],o=Pp(e),a=o[0],s=o[1];return Math.max(Math.abs(n[0]-a[0]),Math.abs(n[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function Op(t){return"number"==typeof t?t:t?.5:0}function zp(t,e,i){if(!i.valueDim)return[];for(var n=e.count(),r=Mp(2*n),o=0;n>o;o++){var a=Sp(i,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function Rp(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||"radius"===n.dim?0:1,o=[],a=0,s=[],l=[],u=[];a<t.length-2;a+=2)switch(u[0]=t[a+2],u[1]=t[a+3],l[0]=t[a],l[1]=t[a+1],o.push(l[0],l[1]),i){case"end":s[r]=u[r],s[1-r]=l[1-r],o.push(s[0],s[1]);break;case"middle":var c=(l[r]+u[r])/2,h=[];s[r]=h[r]=c,s[1-r]=l[1-r],h[1-r]=u[1-r],o.push(s[0],s[1]),o.push(h[0],h[1]);break;default:s[r]=l[r],s[1-r]=u[1-r],o.push(s[0],s[1])}return o.push(t[a++],t[a++]),o}function Ep(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var n,r,o=i.length-1;o>=0;o--){var a=i[o].dimension,s=t.dimensions[a],l=t.getDimensionInfo(s);if(n=l&&l.coordDim,"x"===n||"y"===n){r=i[o];break}}if(r){var u=e.getAxis(n),c=m(r.stops,(function(t){return{offset:0,coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}})),h=c.length,d=r.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),d.reverse());var p=10,f=c[0].coord-p,g=c[h-1].coord+p,v=g-f;if(.001>v)return"transparent";y(c,(function(t){t.offset=(t.coord-f)/v})),c.push({offset:h?c[h-1].offset:.5,color:d[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:d[0]||"transparent"});var x=new j_(0,0,0,0,c,!0);return x[n]=f,x[n+"2"]=g,x}}}function Bp(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&(!r||!Np(o,e))){var a=e.mapDimension(o.dim),s={};return y(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Np(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*RI.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return!1;return!0}function Fp(t,e){return isNaN(t)||isNaN(e)}function Vp(t){for(var e=t.length/2;e>0&&Fp(t[2*e-2],t[2*e-1]);e--);return e-1}function Hp(t,e){return[t[2*e],t[2*e+1]]}function jp(t,e,i){for(var n,r,o=t.length/2,a="x"===i?0:1,s=0,l=-1,u=0;o>u;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(e>=n&&r>=e||n>=e&&e>=r){l=u;break}s=u,n=r}else n=r;return{range:[s,l],t:(e-n)/(r-n)}}function Wp(t,e,i,n){if(ip(e,"cartesian2d")){var r=n.getModel("endLabel"),o=r.get("show"),a=r.get("valueAnimation"),s=n.getData(),l={lastFrameIndex:0},u=o?function(i,n){t._endLabelOnDuring(i,n,s,l,a,r,e)}:null,c=e.getBaseAxis().isHorizontal(),h=Jd(e,i,n,(function(){var e=t._endLabel;e&&i&&null!=l.originalX&&e.attr({x:l.originalX,y:l.originalY})}),u);if(!n.get("clip",!0)){var d=h.shape,p=Math.max(d.width,d.height);c?(d.y-=p,d.height+=2*p):(d.x-=p,d.width+=2*p)}return u&&u(1,h),h}return tp(e,i,n)}function Gp(t,e){var i=e.getBaseAxis(),n=i.isHorizontal(),r=i.inverse,o=n?r?"right":"left":"center",a=n?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}function Yp(t,e){return{seriesType:t,plan:hu(),reset:function(t){var i=t.getData(),n=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(n){var a=m(n.dimensions,(function(t){return i.mapDimension(t)})).slice(0,2),s=a.length,l=i.getCalculationInfo("stackResultDimension");_h(i,a[0])&&(a[0]=l),_h(i,a[1])&&(a[1]=l);var u=i.getDimensionInfo(a[0]),c=i.getDimensionInfo(a[1]),h=u&&u.index,d=c&&c.index;return s&&{progress:function(t,e){for(var i=t.end-t.start,r=o&&Mp(i*s),a=[],l=[],u=t.start,c=0;u<t.end;u++){var p=void 0;if(1===s){var f=e.getByDimIdx(h,u);p=n.dataToPoint(f,null,l)}else a[0]=e.getByDimIdx(h,u),a[1]=e.getByDimIdx(d,u),p=n.dataToPoint(a,null,l);o?(r[c++]=p[0],r[c++]=p[1]):e.setItemLayout(u,p.slice())}o&&e.setLayout("points",r)}}}}}}function Up(t){t.registerChartView(YI),t.registerSeriesModel(zI),t.registerLayout(Yp("line",!0)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Qd("line"))}function Xp(t,e,n,r){y(tA,(function(o,a){var s=u(u({},JI[a],!0),r,!0),l=function(t){function n(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=t.apply(this,i)||this;return r.type=e+"Axis."+a,r}return i(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var i=_s(this),n=i?ks(t):{},r=e.getTheme();u(t,r.get(a+"Axis")),u(t,this.getDefaultOption()),t.type=Zp(t),i&&ws(t,n,i)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=wC.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+a,n.defaultOption=s,n}(n);t.registerComponentModel(l)})),t.registerSubTypeDefaulter(e+"Axis",Zp)}function Zp(t){return t.type||(t.data?"category":"value")}function qp(t){return"interval"===t.type||"time"===t.type}function $p(t,e,i){i=i||{};var n=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=n.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===u?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[d[l]]:h[0],"x"===u?f[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),N(i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function Kp(t){return"cartesian2d"===t.get("coordinateSystem")}function Qp(t){var e={xAxisModel:null,yAxisModel:null};return y(e,(function(i,n){var r=n.replace(/Model$/,""),o=t.getReferringComponents(r,ex).models[0];e[n]=o})),e}function Jp(t,e){return t.getCoordSysModel()===e}function tf(t,e,i,n){function r(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=i.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=u)ef(a[u])&&(o=a[u]);else for(var c in a)if(a.hasOwnProperty(c)&&ef(a[c])&&!n[r(a[c])]){o=a[c];break}o&&(n[r(o)]=!0)}}function ef(t){return t&&"category"!==t.type&&"time"!==t.type&&ad(t)}function nf(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function rf(t,e,i,n){var r,o,a=Ci(i-t),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Ii(a-aA/2)?(o=l?"bottom":"top",r="center"):Ii(a-1.5*aA)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*aA>a&&a>aA/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function of(t,e,i){if(!dd(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],i=i||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],c=i[1],h=i[i.length-1],d=i[i.length-2];!1===n?(af(o),af(u)):sf(o,a)&&(n?(af(a),af(c)):(af(o),af(u))),!1===r?(af(s),af(h)):sf(l,s)&&(r?(af(l),af(d)):(af(s),af(h)))}}function af(t){t&&(t.ignore=!0)}function sf(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(i&&n){var r=Ht([]);return Yt(r,r,-t.rotation),i.applyTransform(Wt([],r,t.getLocalTransform())),n.applyTransform(Wt([],r,e.getLocalTransform())),i.intersect(n)}}function lf(t){return"middle"===t||"center"===t}function uf(t,e,i,n,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=i,e&&(vt(a,a,e),vt(s,s,e));var c=new z_({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}function cf(t,e,i,n){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),u=r.getTicksCoords(),c=uf(u,e.transform,l,d(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}}function hf(t,e,i,n){var r=i.axis,o=i.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=n*o.get("length"),u=d(s.getLineStyle(),d(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=uf(a[c],e.transform,l,u,"minorticks_"+c),p=0;p<h.length;p++)t.add(h[p])}}function df(t,e,i,n){var r=i.axis,o=N(n.axisLabelShow,i.get(["axisLabel","show"]));if(o&&!r.scale.isBlank()){var a=i.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),u=(N(n.labelRotate,a.get("rotate"))||0)*aA/180,c=sA.innerTextLayout(n.rotation,u,n.labelDirection),h=i.getCategories&&i.getCategories(!0),d=[],p=sA.isLabelSilent(i),f=i.get("triggerEvent");return y(l,(function(o,l){var u="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,g=o.formattedLabel,v=o.rawLabel,y=a;if(h&&h[u]){var m=h[u];D(m)&&m.textStyle&&(y=new mw(m.textStyle,a,i.ecModel))}var x=y.getTextColor()||i.get(["axisLine","lineStyle","color"]),b=r.dataToCoord(u),_=new Db({x:b,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:p,z2:10,style:Sa(y,{text:g,align:y.getShallow("align",!0)||c.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||c.textVerticalAlign,fill:"function"==typeof x?x("category"===r.type?v:"value"===r.type?u+"":u,l):x})});if(_.anid="label_"+u,f){var w=sA.makeAxisEventDataBase(i);w.targetType="axisLabel",w.value=v,Ob(_).eventData=w}e.add(_),_.updateTransform(),d.push(_),t.add(_),_.decomposeTransform()})),d}}function pf(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return ff(i,t,e),i.seriesInvolved&&vf(i,t),i}function ff(t,e,i){var n=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];y(i.getCoordinateSystems(),(function(i){function s(n,s,l){var c=l.model.getModel("axisPointer",r),d=c.get("show");if(d&&("auto"!==d||n||wf(c))){null==s&&(s=c.get("triggerTooltip")),c=n?gf(l,h,r,e,n,s):c;var p=c.get("snap"),f=kf(l.model),g=s||p||"category"===l.type,v=t.axesInfo[f]={key:f,axis:l,coordSys:i,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:p,useHandle:wf(c),seriesModels:[],linkGroup:null};u[f]=v,t.seriesInvolved=t.seriesInvolved||g;var y=yf(o,l);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[f]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}if(i.axisPointerEnabled){var l=kf(i.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=i;var c=i.model,h=c.getModel("tooltip",n);if(y(i.getAxes(),S(s,!1,null)),i.getTooltipAxes&&n&&h.get("show")){var d="axis"===h.get("trigger"),p="cross"===h.get(["axisPointer","type"]),f=i.getTooltipAxes(h.get(["axisPointer","axis"]));(d||p)&&y(f.baseAxes,S(s,!p||"cross",d)),p&&y(f.otherAxes,S(s,"cross",!1))}}}))}function gf(t,e,i,n,r,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};y(s,(function(t){u[t]=l(a.get(t))})),u.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(u.type="line");var c=u.label||(u.label={});if(null==c.show&&(c.show=!1),"cross"===r){var h=a.get(["label","show"]);if(c.show=null==h||h,!o){var p=u.lineStyle=a.get("crossStyle");p&&d(c,p.textStyle)}}return t.model.getModel("axisPointer",new mw(u,i,n))}function vf(t,e){e.eachSeries((function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&y(t.coordSysAxesInfo[kf(i.model)],(function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function yf(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(mf(o[n+"AxisId"],i.id)||mf(o[n+"AxisIndex"],i.componentIndex)||mf(o[n+"AxisName"],i.name))return r}}function mf(t,e){return"all"===t||M(t)&&p(t,e)>=0||t===e}function xf(t){var e=bf(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,o=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=wf(i);null==o&&(r.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function bf(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[kf(t)]}function _f(t){var e=bf(t);return e&&e.axisPointerModel}function wf(t){return!!t.get(["handle","show"])}function kf(t){return t.type+"||"+t.id}function Sf(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=n.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=hA(t).splitAreaColors,p=X(),f=0;if(h)for(var g=0;g<u.length;g++){var v=h.get(u[g].tickValue);if(null!=v){f=(v+(c-1)*g)%c;break}}var y=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=M(s)?s:[s];for(g=1;g<u.length;g++){var x=r.toGlobalCoord(u[g].coord),b=void 0,_=void 0,w=void 0,k=void 0;r.isHorizontal()?(b=y,_=l.y,w=x-b,k=l.height,y=b+w):(b=l.x,_=y,w=l.width,k=x-_,y=_+k);var S=u[g-1].tickValue;null!=S&&p.set(S,f),e.add(new Tb({anid:null!=S?"area_"+S:null,shape:{x:b,y:_,width:w,height:k},style:d({fill:s[f]},m),autoBatch:!0,silent:!0})),f=(f+1)%c}hA(t).splitAreaColors=p}}}function Mf(t){hA(t).splitAreaColors=null}function Tf(t){t.registerComponentView(mA),t.registerComponentModel(UI),t.registerCoordinateSystem("cartesian2d",oA),Xp(t,"x",XI,xA),Xp(t,"y",XI,xA),t.registerComponentView(vA),t.registerComponentView(yA),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function Cf(t){t.registerComponentModel(bA),t.registerComponentView(_A)}function If(t,e){var i=Nw(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),new Tb({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}function Af(t,e,i,n,r,o,a){var s;return"line"!==e&&e.indexOf("empty")<0?(s=i.getItemStyle(),t.style.stroke=n,t.style.decal=o,a||(s.stroke=r)):s=i.getItemStyle(["borderWidth","borderColor"]),t.setStyle(s),t}function Df(t,e,i,n){Of(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Lf(t,e,i,n)}function Pf(t){for(var e,i=t.getZr().storage.getDisplayList(),n=0,r=i.length;r>n&&!(e=i[n].states.emphasis);)n++;return e&&e.hoverLayer}function Lf(t,e,i,n){Pf(i)||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Of(t,e,i,n){Pf(i)||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function zf(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0}))}function Rf(t,e,i){var n,r={},o="toggleSelected"===t;return i.eachComponent("legend",(function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name));var a=i.getData();y(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);r[e]=r.hasOwnProperty(e)?r[e]&&n:n}}))})),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function Ef(t){t.registerAction("legendToggleSelect","legendselectchanged",S(Rf,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",S(Rf,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",S(Rf,"inverseSelect")),t.registerAction("legendSelect","legendselected",S(Rf,"select")),t.registerAction("legendUnSelect","legendunselected",S(Rf,"unSelect"))}function Bf(t){t.registerComponentModel(kA),t.registerComponentView(CA),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,zf),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),Ef(t)}function Nf(t,e,i){var n=t.getOrient(),r=[1,1];r[n.index]=0,ws(e,i,{type:"box",ignoreSize:!!r})}function Ff(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(i)}))}))}function Vf(t){xd(Bf),t.registerComponentModel(IA),t.registerComponentView(LA),Ff(t)}function Hf(t,e,i,n){jf(OA(i).lastProp,n)||(OA(i).lastProp=n,e?ea(i,n,t):(i.stopAnimation(),i.attr(n)))}function jf(t,e){if(D(t)&&D(e)){var i=!0;return y(e,(function(e,n){i=i&&jf(t[n],e)})),!!i}return t===e}function Wf(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Gf(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Yf(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)}))}function Uf(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function Xf(t,e,i,n,r){var o=i.get("value"),a=qf(o,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),s=i.getModel("label"),l=Nw(s.get("padding")||0),u=s.getFont(),c=Re(a,u),h=r.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=r.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),Zf(h,d,p,n);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Sa(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function Zf(t,e,i,n){var r=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,o)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function qf(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:ld(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};y(n,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&s.seriesData.push(r)})),C(a)?o=a.replace("{value}",o):T(a)&&(o=a(s))}return o}function $f(t,e,i){var n=Vt();return Yt(n,n,i.rotation),Gt(n,n,i.position),la([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function Kf(t,e,i,n,r,o){var a=sA.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get(["label","margin"]),Xf(e,n,r,o,{position:$f(n.axis,t,i),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Qf(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function Jf(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function tg(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function eg(t){return"x"===t.dim?0:1}function ig(t,e,i){if(!jv.node){var n=e.getZr();VA(n).records||(VA(n).records={}),ng(n,e);var r=VA(n).records[t]||(VA(n).records[t]={});r.handler=i}}function ng(t,e){function i(i,n){t.on(i,(function(i){var r=sg(e);HA(VA(t).records,(function(t){t&&n(t,i,r.dispatchAction)})),rg(r.pendings,e)}))}VA(t).initialized||(VA(t).initialized=!0,i("click",S(ag,"click")),i("mousemove",S(ag,"mousemove")),i("globalout",og))}function rg(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function og(t,e,i){t.handler("leave",null,i)}function ag(t,e,i,n){e.handler(t,i,n)}function sg(t){var e={showTip:[],hideTip:[]},i=function i(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function lg(t,e){if(!jv.node){var i=e.getZr(),n=(VA(i).records||{})[t];n&&(VA(i).records[t]=null)}}function ug(t,e){var i,n=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=an(o,t);if(null==a||0>a||M(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,d=u.dim,p="x"===h||"radius"===h?1:0,f=o.mapDimension(d),g=[];g[p]=o.get(f,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(g)||[]}else n=l.dataToPoint(o.getValues(m(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),n=[v.x+v.width/2,v.y+v.height/2]}return{point:n,el:s}}function cg(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||iy(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){bg(r)&&(r=ug({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=bg(r),u=o.axesInfo,c=s.axesInfo,h="leave"===n||bg(r),d={},p={},f={list:[],map:{}},g={showPointer:S(pg,p),showTooltip:S(fg,f)};y(s.coordSysMap,(function(t,e){var i=l||t.containPoint(r);y(s.coordSysAxesInfo[e],(function(t){var e=t.axis,n=mg(u,t);if(!h&&i&&(!u||n)){var o=n&&n.value;null!=o||l||(o=e.pointToData(r)),null!=o&&hg(t,o,g,!1,d)}}))}));var v={};return y(c,(function(t,e){var i=t.linkGroup;i&&!p[e]&&y(i.axesInfo,(function(e,n){var r=p[n];if(e!==t&&r){var o=r.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,xg(e),xg(t)))),v[t.key]=o}}))})),y(v,(function(t,e){hg(c[e],t,g,!0,d)})),gg(p,c,d),vg(f,r,t,a),yg(c,a,i),d}}function hg(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void i.showPointer(t,e);var a=dg(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&h(r,s[0]),!n&&t.snap&&o.containData(l)&&null!=l&&(e=l),i.showPointer(t,e,s),i.showTooltip(t,a,l)}}function dg(t,e){var i=e.axis,n=i.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return y(e.seriesModels,(function(e){var l,u,c=e.getData().mapDimensionsAll(n);if(e.getAxisTooltipData){var h=e.getAxisTooltipData(c,t,i);u=h.dataIndices,l=h.nestestValue}else{if(u=e.getData().indicesOfNearest(c[0],t,"category"===i.type?.5:null),!u.length)return;l=e.getData().get(c[0],u[0])}if(null!=l&&isFinite(l)){var d=t-l,p=Math.abs(d);a>=p&&((a>p||d>=0&&0>s)&&(a=p,s=d,r=l,o.length=0),y(u,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}function pg(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function fg(t,e,i,n){var r=i.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=kf(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function gg(t,e,i){var n=i.axesInfo=[];y(e,(function(e,i){var r=e.axisPointerModel.option,o=t[i];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function vg(t,e,i,n){if(!bg(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}function yg(t,e,i){var n=i.getZr(),r="axisPointerLastHighlights",o=WA(n)[r]||{},a=WA(n)[r]={};y(t,(function(t){var e=t.axisPointerModel.option;"show"===e.status&&y(e.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];y(o,(function(t,e){!a[e]&&l.push(t)})),y(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function mg(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function xg(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function bg(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function _g(t){cA.registerAxisPointerClass("CartesianAxisPointer",BA),t.registerComponentModel(FA),t.registerComponentView(jA),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!M(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=pf(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},cg)}function wg(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function kg(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function Sg(t,e,i){if(!C(i)||"inside"===i)return"";e=ys(e);var n=kg(i),r="",o="";p(["left","right"],n)>-1?(r=n+":-6px;top:50%;",o="translateY(-50%) rotate("+("left"===n?-225:-45)+"deg)"):(r=n+":-6px;left:50%;",o="translateX(-50%) rotate("+("top"===n?225:45)+"deg)"),o=m(YA,(function(t){return t+"transform:"+o})).join(";");var a=["position:absolute;width:10px;height:10px;",""+r+o+";","border-bottom: "+e+" solid 1px;","border-right: "+e+" solid 1px;","background-color: "+t+";","box-shadow: 8px 8px 16px -3px #000;"];return'<div style="'+a.join("")+'"></div>'}function Mg(t,e){var i="cubic-bezier(0.23, 1, 0.32, 1)",n="opacity "+t/2+"s "+i+",visibility "+t/2+"s "+i;return e||(n+=",left "+t+"s "+i+",top "+t+"s "+i),m(YA,(function(t){return t+"transition:"+n})).join(";")}function Tg(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),y(["decoration","align"],(function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)})),e.join(";")}function Cg(t,e,i){var n=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=Jl(t,"html"),d=l+"px "+u+"px "+a+"px "+s;return n.push("box-shadow:"+d),e&&r&&n.push(Mg(r,i)),o&&(jv.canvasSupported?n.push("background-Color:"+o):(n.push("background-Color:#"+ce(o)),n.push("filter:alpha(opacity=70)"))),y(["width","color","radius"],(function(e){var i="border-"+e,r=cs(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))})),n.push(Tg(c)),null!=h&&n.push("padding:"+Nw(h).join("px ")+"px"),n.join(";")+";"}function Ig(t,e,i,n,r){var o=e&&e.painter;if(i){var a=o&&o.getViewportRoot();a&&_t(t,a,document.body,n,r)}else{t[0]=n,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Ag(t){return Math.max(0,t)}function Dg(t){var e=Ag(t.shadowBlur||0),i=Ag(t.shadowOffsetX||0),n=Ag(t.shadowOffsetY||0);return{left:Ag(e-i),right:Ag(e+i),top:Ag(e-n),bottom:Ag(e+n)}}function Pg(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Lg(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(i instanceof mw&&(i=i.get("tooltip",!0)),C(i)&&(i={formatter:i}),e=new mw(i,e,e.ecModel))}return e}function Og(t,e){return t.dispatchAction||iy(e.dispatchAction,e)}function zg(t,e,i,n,r,o,a){var s=i.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o+2>n?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function Rg(t,e,i,n,r){var o=i.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,n)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Eg(t,e,i){var n=i[0],r=i[1],o=10,a=5,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+c/2-r/2;break;case"top":s=e.x+u/2-n/2,l=e.y-r-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+c+o;break;case"left":s=e.x-n-o-a,l=e.y+c/2-r/2;break;case"right":s=e.x+u+o+a,l=e.y+c/2-r/2}return[s,l]}function Bg(t){return"center"===t||"middle"===t}function Ng(t){xd(_g),t.registerComponentModel(GA),t.registerComponentView(JA),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))}function Fg(t){ji(t,"label",["show"])}function Vg(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function Hg(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function jg(t,e,i,n,r,o){var a=[],s=_h(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=Zg(e,l,t),c=e.indicesOfNearest(l,u)[0];a[r]=e.get(i,c),a[o]=e.get(l,c);var h=e.get(n,c),d=ki(e.get(n,c));return d=Math.min(d,20),d>=0&&(a[o]=+a[o].toFixed(d)),[a,h]}function Wg(t,e){var i=t.getData(),n=t.coordinateSystem;if(e&&!Hg(e)&&!M(e.coord)&&n){var r=n.dimensions,o=Gg(e,i,n,t);if(e=l(e),e.type&&nD[e.type]&&o.baseAxis&&o.valueAxis){var a=p(r,o.baseAxis.dim),s=p(r,o.valueAxis.dim),u=nD[e.type](i,o.baseDataDim,o.valueDataDim,a,s);e.coord=u[0],e.value=u[1]}else{for(var c=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],h=0;2>h;h++)nD[c[h]]&&(c[h]=Zg(i,i.mapDimension(r[h]),c[h]));e.coord=c}}return e}function Gg(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=i.getAxis(Yg(n,r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function Yg(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var r=0;r<n.length;r++){var o=i.getDimensionInfo(n[r]);if(o.name===e)return o.coordDim}}function Ug(t,e){return!(t&&t.containData&&e.coord&&!Vg(e))||t.containData(e.coord)}function Xg(t,e,i,n){return 2>n?t.coord&&t.coord[n]:t.value}function Zg(t,e,i){if("average"===i){var n=0,r=0;return t.each(e,(function(t){isNaN(t)||(n+=t,r++)})),n/r}return"median"===i?t.getMedian(e):t.getDataExtent(e)["max"===i?1:0]}function qg(t,e,i){var n=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=bi(a.get("x"),i.getWidth()),l=bi(a.get("y"),i.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(n){var u=t.get(n.dimensions[0],r),c=t.get(n.dimensions[1],r);o=n.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}function $g(t,e,i){var n;n=t?m(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return d({name:t},i)})):[{name:"value",type:"float"}];var r=new mC(n,i),o=m(i.get("data"),S(Wg,e));return t&&(o=b(o,S(Ug,t))),r.initData(o,null,t?Xg:function(t){return t.value}),r}function Kg(t){t.registerComponentModel(iD),t.registerComponentView(aD),t.registerPreprocessor((function(t){t.markPoint=t.markPoint||{}}))}function Qg(t,e){if(e=e||t.get("type"))switch(e){case"category":return new SC({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new LC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new TC}}function Jg(t,e){return bs(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function tv(t,e,i,n){var r=n.style,o=ga(t.get(["controlStyle",e]),n||{},new lm(i[0],i[1],i[2],i[3]));return r&&o.setStyle(r),o}function ev(t,e,i,n,r,o){var a=e.get("color");if(r)r.setColor(a),i.add(r),o&&o.onUpdate(r);else{var s=t.get("symbol");r=oc(s,-1,-1,2,2,a),r.setStyle("strokeNoScale",!0),i.add(r),o&&o.onCreate(r)}var l=e.getItemStyle(["color"]);r.setStyle(l),n=u({rectHover:!0,z2:100},n,!0);var c=t.get("symbolSize");c=c instanceof Array?c.slice():[+c,+c],n.scaleX=c[0]/2,n.scaleY=c[1]/2;var h=t.get("symbolOffset");h&&(n.x=n.x||0,n.y=n.y||0,n.x+=bi(h[0],c[0]),n.y+=bi(h[1],c[1]));var d=t.get("symbolRotate");return n.rotation=(d||0)*Math.PI/180||0,r.attr(n),r.updateTransform(),r}function iv(t,e,i,n,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=n.dataToCoord(r.getData().get("value",i));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function nv(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),d({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)}))}function rv(t){var e=t&&t.timeline;M(e)||(e=e?[e]:[]),y(e,(function(t){t&&ov(t)}))}function ov(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),av(t),sv(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});sv(n,"position")||(n.position=t.controlPosition),"none"!==n.position||sv(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}y(t.data||[],(function(t){D(t)&&!M(t)&&(!sv(t,"value")&&sv(t,"name")&&(t.value=t.name),av(t))}))}function av(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},r=n.normal||(n.normal={}),o={normal:1,emphasis:1};y(n,(function(t,e){o[e]||sv(r,e)||(r[e]=t)})),i.label&&!sv(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function sv(t,e){return t.hasOwnProperty(e)}function lv(t){t.registerComponentModel(lD),t.registerComponentView(pD),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),nv(t),t.registerPreprocessor(rv)}function uv(t){var e=t.get("coordinateSystem");return p(gD,e)>=0}function cv(t){return t+"Axis"}function hv(t,e){function i(t){!u.get(t.uid)&&r(t)&&(n(t),a=!0)}function n(t){u.set(t.uid,!0),l.push(t),o(t)}function r(t){var e=!1;return t.eachTargetAxis((function(t,i){var n=s.get(t);n&&n[i]&&(e=!0)})),e}function o(t){t.eachTargetAxis((function(t,e){(s.get(t)||s.set(t,[]))[e]=!0}))}var a,s=X(),l=[],u=X();t.eachComponent({mainType:"dataZoom",query:e},(function(t){u.get(t.uid)||n(t)}));do{a=!1,t.eachComponent("dataZoom",i)}while(a);return l}function dv(t){var e=t.ecModel,i={infoList:[],infoMap:X()};return t.eachTargetAxis((function(t,n){var r=e.getComponent(cv(t),n);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=i.infoMap.get(a);s||(s={model:o,axisModels:[]},i.infoList.push(s),i.infoMap.set(a,s)),s.axisModels.push(r)}}})),i}function pv(t){var e={};return y(["start","end","startValue","endValue","throttle"],(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e}function fv(t,e,i,n,r,o){t=t||0;var a=i[1]-i[0];if(null!=r&&(r=vv(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===n){var s=Math.abs(e[1]-e[0]);s=vv(s,[0,a]),r=o=vv(s,[r,o]),n=0}e[0]=vv(e[0],i),e[1]=vv(e[1],i);var l=gv(e,n);e[n]+=t;var u,c=r||0,h=i.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[n]=vv(e[n],h),u=gv(e,n),null!=r&&(u.sign!==l.sign||u.span<r)&&(e[1-n]=e[n]+l.sign*r),u=gv(e,n),null!=o&&u.span>o&&(e[1-n]=e[n]+u.sign*o),e}function gv(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:0>i?1:e?-1:1}}function vv(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}function yv(t,e){return!!mv(t)[e]}function mv(t){return t[bD]||(t[bD]={})}function xv(t,e,i,n,r){t.pointerChecker&&t.pointerChecker(n,r.originX,r.originY)&&(by(n.event),bv(t,e,i,n,r))}function bv(t,e,i,n,r){r.isAvailableBehavior=iy(_v,null,i,n),t.trigger(e,r)}function _v(t,e,i){var n=i[t];return!t||n&&(!C(n)||e.event[n+"Key"])}function wv(t,e,i){wD(t).coordSysRecordMap.each((function(t){var n=t.dataZoomInfoMap.get(e.uid);n&&(n.getRange=i)}))}function kv(t,e){for(var i=wD(t).coordSysRecordMap,n=i.keys(),r=0;r<n.length;r++){var o=n[r],a=i.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Sv(i,a))}}}function Sv(t,e){if(e){t.removeKey(e.model.uid);var i=e.controller;i&&i.dispose()}}function Mv(t,e){var i={model:e,containsPoint:S(Cv,e),dispatchAction:S(Tv,t),dataZoomInfoMap:null,controller:null},n=i.controller=new _D(t.getZr());return y(["pan","zoom","scrollMove"],(function(t){n.on(t,(function(e){var n=[];i.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,i.model.mainType,i.controller,e);!r.model.get("disabled",!0)&&a&&n.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),n.length&&i.dispatchAction(n)}))})),i}function Tv(t,e){t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Cv(t,e,i,n){return t.coordinateSystem.containPoint([i,n])}function Iv(t){var e,i="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");n[i+a]>n[i+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function Av(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var i=wD(e),n=i.coordSysRecordMap||(i.coordSysRecordMap=X());n.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var i=dv(t);y(i.infoList,(function(i){var r=i.model.uid,o=n.get(r)||n.set(r,Mv(e,i.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=X());a.set(t.uid,{dzReferCoordSysInfo:i,model:t,getRange:null})}))})),n.each((function(t){var e,i=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=Iv(r);i.enable(a.controlType,a.opt),i.setPointerChecker(t.containsPoint),yu(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else Sv(n,t)}))}))}function Dv(t){return function(e,i,n,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,i,n,r);return fv(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}function Pv(t,e,i){var n=[1/0,-1/0];TD(i,(function(t){fd(n,t.getData(),e)}));var r=t.getAxisModel(),o=td(r.axis.scale,r,n).calculate();return[o.min,o.max]}function Lv(t){t.registerAction("dataZoom",(function(t,e){var i=hv(e,t);y(i,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}function Ov(t){DD||(DD=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,AD),Lv(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function zv(t){Ov(t),t.registerComponentModel(mD),t.registerComponentView(kD),Av(t)}function Rv(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function Ev(t){return"vertical"===t?"ns-resize":"ew-resize"}function Bv(t){t.registerComponentModel(PD),t.registerComponentView(jD),Ov(t)}function Nv(){xd(zv),xd(Bv)}var Fv=function(t,e){return(Fv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},Vv=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),Hv=function(){function t(){this.browser=new Vv,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1}return t}(),jv=new Hv;"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(jv.wxa=!0,jv.canvasSupported=!0,jv.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(jv.worker=!0,jv.canvasSupported=!0):"undefined"==typeof navigator?(jv.node=!0,jv.canvasSupported=!0,jv.svgSupported=!0):r(navigator.userAgent,jv);var Wv={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},Gv={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},Yv=Object.prototype.toString,Uv=Array.prototype,Xv=Uv.forEach,Zv=Uv.filter,qv=Uv.slice,$v=Uv.map,Kv=function(){}.constructor,Qv=Kv?Kv.prototype:null,Jv={},ty=2311,ey=function(){return Jv.createCanvas()};Jv.createCanvas=function(){return document.createElement("canvas")};var iy=Qv&&T(Qv.bind)?Qv.call.bind(Qv.bind):k,ny="__ec_primitive__",ry=function(){function t(e){function i(t,e){n?r.set(t,e):r.set(e,t)}this.data={};var n=M(e);this.data={};var r=this;e instanceof t?e.each(i):e&&y(e,i)}return t.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},t.prototype.set=function(t,e){return this.data[t]=e},t.prototype.each=function(t,e){for(var i in this.data)this.data.hasOwnProperty(i)&&t.call(e,this.data[i],i)},t.prototype.keys=function(){return w(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}(),oy=(Object.freeze||Object)({$override:o,guid:a,logError:s,clone:l,merge:u,mergeAll:c,extend:h,defaults:d,createCanvas:ey,indexOf:p,inherits:f,mixin:g,isArrayLike:v,each:y,map:m,reduce:x,filter:b,find:_,keys:w,bind:iy,curry:S,isArray:M,isFunction:T,isString:C,isStringSafe:I,isNumber:A,isObject:D,isBuiltInObject:P,isTypedArray:L,isDom:O,isGradientObject:z,isPatternObject:R,isRegExp:E,eqNaN:B,retrieve:N,retrieve2:F,retrieve3:V,slice:H,normalizeCssArray:j,assert:W,trim:G,setAsPrimitive:Y,isPrimitive:U,HashMap:ry,createHashMap:X,concatArray:Z,createObject:q,hasOwn:$,noop:K}),ay=ot,sy=at,ly=dt,uy=pt,cy=(Object.freeze||Object)({create:Q,copy:J,clone:tt,set:et,add:it,scaleAndAdd:nt,sub:rt,len:ot,length:ay,lenSquare:at,lengthSquare:sy,mul:st,div:lt,dot:ut,scale:ct,normalize:ht,distance:dt,dist:ly,distanceSquare:pt,distSquare:uy,negate:ft,lerp:gt,applyTransform:vt,min:yt,max:mt}),hy=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),dy=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new hy(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this.handler.dispatchToElement(new hy(e,t),"drag",t.event);var a=this.handler.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new hy(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new hy(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new hy(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new hy(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),py=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===i)return this;var s={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,o=i[t].length;o>r;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},t.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=n.length,s=0;a>s;s++){var l=n[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){if(!this._$handlers)return this;var e=this._$handlers[t],i=this._$eventProcessor;if(e)for(var n=arguments,r=n.length,o=n[r-1],a=e.length,s=0;a>s;s++){var l=e[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(r){case 0:l.h.call(o);break;case 1:l.h.call(o,n[0]);break;case 2:l.h.call(o,n[0],n[1]);break;default:l.h.apply(o,n.slice(1,r-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),fy=Math.log(2),gy="___zrEVENTSAVED",vy=[],yy="undefined"!=typeof window&&!!window.addEventListener,my=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xy=[],by=yy?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},_y=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,a=n.length;a>o;o++){var s=n[o],l=Tt(i,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in wy)if(wy.hasOwnProperty(e)){var i=wy[e](this._track,t);if(i)return i}},t}(),wy={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,r=(t[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var o=zt(n)/zt(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Rt(n);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},ky="silent",Sy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return i(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(py),My=function(){function t(t,e){this.x=t,this.y=e}return t}(),Ty=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Cy=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o._hovered=new My(0,0),o.storage=e,o.painter=i,o.painterRoot=r,n=n||new Sy,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new dy(o),o}return i(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(y(Ty,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=Ft(this,e,i),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=n?new My(e,i):this.findHover(e,i),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new My(0,0)},e.prototype.dispatch=function(t,e){var i=this[t];i&&i.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,i){t=t||{};var n=t.target;if(!n||!n.silent){for(var r="on"+e,o=Et(e,t,i);n&&(n[r]&&(o.cancelBubble=!!n[r].call(n,o)),n.trigger(e,o),n=n.__hostTarget?n.__hostTarget:n.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,i){for(var n=this.storage.getDisplayList(),r=new My(t,e),o=n.length-1;o>=0;o--){var a=void 0;if(n[o]!==i&&!n[o].ignore&&(a=Nt(n[o],t,e))&&(!r.topTarget&&(r.topTarget=n[o]),a!==ky)){r.target=n[o];break}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new _y);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r;var o=new My;o.target=n.target,this.dispatchToElement(o,r,n.event)}},e}(py);y(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Cy.prototype[t]=function(e){var i,n,r=e.zrX,o=e.zrY,a=Ft(this,r,o);if("mouseup"===t&&a||(i=this.findHover(r,o),n=i.target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||ly(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}));var Iy,Ay,Dy=(Object.freeze||Object)({create:Vt,identity:Ht,copy:jt,mul:Wt,translate:Gt,rotate:Yt,scale:Ut,invert:Xt,clone:Zt}),Py=Ht,Ly=5e-5,Oy=[],zy=[],Ry=Vt(),Ey=Math.abs,By=function(){function t(){}return t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return qt(this.rotation)||qt(this.x)||qt(this.y)||qt(this.scaleX-1)||qt(this.scaleY-1)},t.prototype.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;return i||e?(n=n||Vt(),i?this.getLocalTransform(n):Py(n),e&&(i?Wt(n,t.transform,n):jt(n,t.transform)),this.transform=n,void this._resolveGlobalScaleRatio(n)):void(n&&Py(n))},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Oy);var i=Oy[0]<0?-1:1,n=Oy[1]<0?-1:1,r=((Oy[0]-i)*e+i)/Oy[0]||0,o=((Oy[1]-n)*e+n)/Oy[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Vt(),Xt(this.invTransform,t)},t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3];qt(e-1)&&(e=Math.sqrt(e)),qt(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),this.rotation=Math.atan2(-t[1]/i,t[0]/e),0>e&&0>i&&(this.rotation+=Math.PI,e=-e,i=-i),this.x=t[4],this.y=t[5],this.scaleX=e,this.scaleY=i}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Wt(zy,t.invTransform,e),e=zy);var i=this.originX,n=this.originY;(i||n)&&(Ry[4]=i,Ry[5]=n,Wt(zy,e,Ry),zy[4]-=i,zy[5]-=n,e=zy),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&vt(i,i,n),i},t.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&vt(i,i,n),i},t.prototype.getLineScale=function(){var t=this.transform;return t&&Ey(t[0]-1)>1e-10&&Ey(t[3]-1)>1e-10?Math.sqrt(Ey(t[0]*t[3]-t[2]*t[1])):1},t.getLocalTransform=function(t,e){e=e||[],Py(e);var i=t.originX||0,n=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.rotation||0,s=t.x,l=t.y;return e[4]-=i,e[5]-=n,e[0]*=r,e[1]*=o,e[2]*=r,e[3]*=o,e[4]*=r,e[5]*=o,a&&Yt(e,e,a),e[4]+=i,e[5]+=n,e[4]+=s,e[5]+=l,e},t.initDefaultProps=function(){var e=t.prototype;e.x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.rotation=0,e.globalScaleRatio=1}(),t}(),Ny={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ny.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*Ny.bounceIn(2*t):.5*Ny.bounceOut(2*t-1)+.5}},Fy=function(){function t(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}return t.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),!this._paused){var i=(t-this._startTime-this._pausedTime)/this._life;0>i&&(i=0),i=Math.min(i,1);var n=this.easing,r="string"==typeof n?Ny[n]:n,o="function"==typeof r?r(i):i;if(this.onframe&&this.onframe(o),1===i){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=e},t.prototype._restart=function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t}(),Vy=function(){function t(t){this.value=t}return t}(),Hy=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Vy(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),jy=function(){function t(t){this._list=new Hy,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var i=this._list,n=this._map,r=null;if(null==n[t]){var o=i.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=i.head;i.remove(s),delete n[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Vy(e),a.key=t,i.insertEntry(a),n[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Wy={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},Gy=new jy(20),Yy=null,Uy=he,Xy=de,Zy=(Object.freeze||Object)({parse:ae,lift:ue,toHex:ce,fastLerp:he,fastMapToColor:Uy,lerp:de,mapToColor:Xy,modifyHSL:pe,modifyAlpha:fe,stringify:ge,lum:ve,random:ye}),qy=Array.prototype.slice,$y=[0,0,0,0],Ky=function(){function t(t){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return!this._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var i=this.keyframes,n=i.length;if(this.interpolable)if(v(e)){var r=Pe(e);if(n>0&&this.arrDim!==r)return void(this.interpolable=!1);if(1===r&&"number"!=typeof e[0]||2===r&&"number"!=typeof e[0][0])return void(this.interpolable=!1);if(n>0){var o=i[n-1];this._isAllValueEqual&&(1===r&&Me(e,o.value)||(this._isAllValueEqual=!1))}this.arrDim=r}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof e){var a=ae(e);a?(e=a,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof e)return void(this.interpolable=!1);if(this._isAllValueEqual&&n>0){o=i[n-1];(this.isValueColor&&!Me(o.value,e)||o.value!==e)&&(this._isAllValueEqual=!1)}}var s={time:t,value:e,percent:0};return this.keyframes.push(s),s},t.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort((function(t,e){return t.time-e.time}));for(var i=this.arrDim,n=e.length,r=e[n-1],o=0;n>o;o++)e[o].percent=e[o].time/this.maxTime,i>0&&o!==n-1&&Se(e[o].value,r.value,i);if(t&&this.needsAnimate()&&t.needsAnimate()&&i===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;var a=e[0].value;for(o=0;n>o;o++)0===i?e[o].additiveValue=this.isValueColor?we([],e[o].value,a,-1):e[o].value-a:1===i?e[o].additiveValue=we([],e[o].value,a,-1):2===i&&(e[o].additiveValue=ke([],e[o].value,a,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n=null!=this._additiveTrack,r=n?"additiveValue":"value",o=this.keyframes,a=this.keyframes.length,s=this.propName,l=this.arrDim,u=this.isValueColor;if(0>e)i=0;else if(e<this._lastFramePercent){var c=Math.min(this._lastFrame+1,a-1);for(i=c;i>=0&&!(o[i].percent<=e);i--);i=Math.min(i,a-2)}else{for(i=this._lastFrame;a>i&&!(o[i].percent>e);i++);i=Math.min(i-1,a-2)}var h=o[i+1],d=o[i];if(d&&h){this._lastFrame=i,this._lastFramePercent=e;var p=h.percent-d.percent;if(0!==p){var f=(e-d.percent)/p,g=n?this._additiveValue:u?$y:t[s];if((l>0||u)&&!g&&(g=this._additiveValue=[]),this.useSpline){var v=o[i][r],y=o[0===i?i:i-1][r],m=o[i>a-2?a-1:i+1][r],x=o[i>a-3?a-1:i+2][r];if(l>0)1===l?Ce(g,y,v,m,x,f,f*f,f*f*f):Ie(g,y,v,m,x,f,f*f,f*f*f);else if(u)Ce(g,y,v,m,x,f,f*f,f*f*f),n||(t[s]=De(g));else{var b=void 0;b=this.interpolable?Te(y,v,m,x,f,f*f,f*f*f):m,n?this._additiveValue=b:t[s]=b}}else if(l>0)1===l?be(g,d[r],h[r],f):_e(g,d[r],h[r],f);else if(u)be(g,d[r],h[r],f),n||(t[s]=De(g));else{b=void 0;b=this.interpolable?me(d[r],h[r],f):xe(d[r],h[r],f),n?this._additiveValue=b:t[s]=b}n&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,i=this.propName,n=this._additiveValue;0===e?this.isValueColor?(ae(t[i],$y),we($y,$y,n,1),t[i]=De($y)):t[i]=t[i]+n:1===e?we(t[i],t[i],n,1):2===e&&ke(t[i],t[i],n,1)},t}(),Qy=function(){function t(t,e,i){return this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?void s("Can' use additive animation on looped animation."):void(this._additiveAnimators=i)}return t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e){return this.whenWithKeys(t,e,w(e))},t.prototype.whenWithKeys=function(t,e,i){for(var n=this._tracks,r=0;r<i.length;r++){var o=i[r],a=n[o];if(!a){a=n[o]=new Ky(o);var s=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes[l.keyframes.length-1];s=u&&u.value,l.isValueColor&&s&&(s=De(s))}else s=this._target[o];if(null==s)continue;0!==t&&a.addKeyframe(0,Ae(s)),this._trackKeys.push(o)}a.addKeyframe(t,Ae(e[o]))}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneList;if(t)for(var e=t.length,i=0;e>i;i++)t[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedList;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var r=i[n].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t,e){if(!(this._started>0)){this._started=1;for(var i=this,n=[],r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes;if(a.prepare(s),a.needsAnimate())n.push(a);else if(!a.interpolable){var u=l[l.length-1];u&&(i._target[a.propName]=u.value)}}if(n.length||e){var c=new Fy({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(t){i._started=2;var e=i._additiveAnimators;if(e){for(var r=!1,o=0;o<e.length;o++)if(e[o]._clip){r=!0;break}r||(i._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(i._target,t);var a=i._onframeList;if(a)for(o=0;o<a.length;o++)a[o](i._target,t)},ondestroy:function(){i._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&"spline"!==t&&(c.easing=t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeList||(this._onframeList=[]),this._onframeList.push(t)),this},t.prototype.done=function(t){return t&&(this._doneList||(this._doneList=[]),this._doneList.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedList||(this._abortedList=[]),this._abortedList.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,r=0;r<t.length;r++){var o=i[t[r]];o&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<n.length;r++)if(!i[n[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var n=e[i],r=this._tracks[n];if(r&&!r.isFinished()){var o=r.keyframes,a=o[o.length-1];if(a){var s=Ae(a.value);r.isValueColor&&(s=De(s)),t[n]=s}}}}},t.prototype.__changeFinalValue=function(t,e){e=e||w(t);for(var i=0;i<e.length;i++){var n=e[i],r=this._tracks[n];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[n]),r.prepare(r.getAdditiveTrack())}}}},t}(),Jy=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,i){t.x=e,t.y=i},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},t.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},t.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},t.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},t.lerp=function(t,e,i,n){var r=1-n;t.x=r*e.x+n*i.x,t.y=r*e.y+n*i.y},t}(),tm=Math.min,em=Math.max,im=new Jy,nm=new Jy,rm=new Jy,om=new Jy,am=new Jy,sm=new Jy,lm=function(){function t(t,e,i,n){0>i&&isFinite(i)&&(t+=i,i=-i),0>n&&isFinite(n)&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return t.prototype.union=function(t){var e=tm(t.x,this.x),i=tm(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?em(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?em(t.y+t.height,this.y+this.height)-i:t.height,this.x=e,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,r=Vt();return Gt(r,r,[-e.x,-e.y]),Ut(r,r,[i,n]),Gt(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,i){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,r=n.x,o=n.x+n.width,a=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(l>o||r>u||c>s||a>h);if(i){var p=1/0,f=0,g=Math.abs(o-l),v=Math.abs(u-r),y=Math.abs(s-c),m=Math.abs(h-a),x=Math.min(g,v),b=Math.min(y,m);l>o||r>u?x>f&&(f=x,v>g?Jy.set(sm,-g,0):Jy.set(sm,v,0)):p>x&&(p=x,v>g?Jy.set(am,g,0):Jy.set(am,-v,0)),c>s||a>h?b>f&&(f=b,m>y?Jy.set(sm,0,-y):Jy.set(sm,0,m)):p>x&&(p=x,m>y?Jy.set(am,0,y):Jy.set(am,0,-m))}return i&&Jy.copy(i,d?am:sm),d},t.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,i,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],o=n[3],a=n[4],s=n[5];return e.x=i.x*r+a,e.y=i.y*o+s,e.width=i.width*r,e.height=i.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}im.x=rm.x=i.x,im.y=om.y=i.y,nm.x=om.x=i.x+i.width,nm.y=rm.y=i.y+i.height,im.transform(n),om.transform(n),nm.transform(n),rm.transform(n),e.x=tm(im.x,nm.x,rm.x,om.x),e.y=tm(im.y,nm.y,rm.y,om.y);var l=em(im.x,nm.x,rm.x,om.x),u=em(im.y,nm.y,rm.y,om.y);e.width=l-e.x,e.height=u-e.y}else e!==i&&t.copy(e,i)},t}(),um={},cm="12px sans-serif",hm={measureText:Le},dm=1;"undefined"!=typeof window&&(dm=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var pm=dm,fm=.4,gm="#333",vm="#ccc",ym="#eee",mm="__zr_normal__",xm=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],bm={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},_m={},wm=new lm(0,0,0,0),km=function(){function e(t){this.id=a(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,r=e.attachedTransform,o=void 0,a=void 0,s=!1;r.parent=n?this:null;var l=!1;if(r.x=e.x,r.y=e.y,r.originX=e.originX,r.originY=e.originY,r.rotation=e.rotation,r.scaleX=e.scaleX,r.scaleY=e.scaleY,null!=i.position){var u=wm;u.copy(i.layoutRect?i.layoutRect:this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(_m,i,u):Ve(_m,i,u),r.x=_m.x,r.y=_m.y,o=_m.align,a=_m.verticalAlign;var c=i.origin;if(c&&null!=i.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=Fe(c[0],u.width),d=Fe(c[1],u.height)),l=!0,r.originX=-r.x+h+(n?0:u.x),r.originY=-r.y+d+(n?0:u.y)}}null!=i.rotation&&(r.rotation=i.rotation);var p=i.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==i.inside?"string"==typeof i.position&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;f&&this.canBeInsideText()?(v=i.insideFill,y=i.insideStroke,(null==v||"auto"===v)&&(v=this.getInsideTextFill()),(null==y||"auto"===y)&&(y=this.getInsideTextStroke(v),m=!0)):(v=i.outsideFill,y=i.outsideStroke,(null==v||"auto"===v)&&(v=this.getOutsideFill()),(null==y||"auto"===y)&&(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",(v!==g.fill||y!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),s&&e.dirtyStyle(),e.markRedraw()}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?vm:gm},e.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&ae(t);e||(e=[255,255,255,1]);for(var i=e[3],n=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*i+(n?0:255)*(1-i);return e[3]=1,ge(e,"rgba")},e.prototype.traverse=function(){},e.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},h(this.extra,e)):this[t]=e},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(D(t))for(var i=t,n=w(i),r=0;r<n.length;r++){var o=n[r];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],r=n.__fromStateTransition;if(!r||r===mm){var o=n.targetName,a=o?e[o]:e;n.saveFinalToTarget(a)}}},e.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,xm)},e.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null==t[r]||r in e||(e[r]=this[r])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},e.prototype.clearStates=function(t){this.useState(mm,!1,t)},e.prototype.useState=function(t,i,n){var r=t===mm,o=this.hasState();if(o||!r){var a=this.currentStates,l=this.stateTransition;if(!(p(a,t)>=0)||!i&&1!==a.length){var u;if(this.stateProxy&&!r&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!r)return void s("State "+t+" not exists.");r||this.saveCurrentToNormalState(u);var c=!(!u||!u.hoverLayer);return c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,i,!n&&!this.__inHover&&l&&l.duration>0,l),this._textContent&&this._textContent.useState(t,i),this._textGuide&&this._textGuide.useState(t,i),r?(this.currentStates=[],this._normalState={}):i?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~e.REDARAW_BIT),u}}},e.prototype.useStates=function(t,i){if(t.length){var n=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;o>s;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&n.push(u)}var c=!(!n[o-1]||!n[o-1].hoverLayer);c&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!i&&!this.__inHover&&d&&d.duration>0,d),this._textContent&&this._textContent.useStates(t),this._textGuide&&this._textGuide.useStates(t),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~e.REDARAW_BIT)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},e.prototype.removeState=function(t){var e=p(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},e.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),r=p(n,t),o=p(n,e)>=0;r>=0?o?n.splice(r,1):n[r]=e:i&&!o&&n.push(e),this.useStates(n)},e.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var r=t[n];h(i,r),r.textConfig&&(e=e||{},h(e,r.textConfig))}return e&&(i.textConfig=e),i},e.prototype._applyStateObj=function(t,e,i,n,r,o){var a=!(e&&n);e&&e.textConfig?(this.textConfig=h({},n?this.textConfig:i.textConfig),h(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig);for(var s={},l=!1,u=0;u<xm.length;u++){var c=xm[u],d=r&&bm[c];e&&null!=e[c]?d?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=i[c]&&(d?(l=!0,s[c]=i[c]):this[c]=i[c])}if(!r)for(u=0;u<this.animators.length;u++){var p=this.animators[u],f=p.targetName;p.__changeFinalValue(f?(e||i)[f]:e||i)}l&&this._transitionState(t,s,o)},e.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.attachedTransform=new By,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),h(this.textConfig,t),this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.attachedTransform=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=e.REDARAW_BIT;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},e.prototype.addSelfToZr=function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)},e.prototype.removeSelfFromZr=function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)},e.prototype.animate=function(t,e){var i=t?this[t]:this;if(i){var n=new Qy(i,e);return this.addAnimator(n,t),n}s('Property "'+t+'" is not existed in element '+this.id)},e.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during((function(){n.updateDuringAnimation(e)})).done((function(){var e=n.animators,i=p(e,t);i>=0&&e.splice(i,1)})),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(){this.markRedraw()},e.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,r=[],o=0;n>o;o++){var a=i[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},e.prototype.animateTo=function(t,e,i){He(this,t,e,i)},e.prototype.animateFrom=function(t,e,i){He(this,t,e,i,!0)},e.prototype._transitionState=function(t,e,i,n){for(var r=He(this,e,i,n),o=0;o<r.length;o++)r[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.REDARAW_BIT=1,e.initDefaultProps=function(){function i(e,i,n){o[e+i+n]||(t.warn("DEPRECATED: '"+e+"' has been deprecated. use '"+i+"', '"+n+"' instead"),o[e+i+n]=!0)}function n(t,e,n,o){function a(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[o]},set:function(e){t[o]=e}})}Object.defineProperty(r,t,{get:function(){if(i(t,n,o),!this[e]){var r=this[e]=[];a(this,r)}return this[e]},set:function(r){i(t,n,o),this[n]=r[0],this[o]=r[1],this[e]=r,a(this,r)}})}var r=e.prototype;r.type="element",r.name="",r.ignore=!1,r.silent=!1,r.isGroup=!1,r.draggable=!1,r.dragging=!1,r.ignoreClip=!1,r.__inHover=!1,r.__dirty=e.REDARAW_BIT;var o={};Object.defineProperty&&(!jv.browser.ie||jv.browser.version>8)&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();g(km,py),g(km,By);var Sm,Mm=32,Tm=7,Cm=!1,Im=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ei}return t.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;r>n;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,jv.canvasSupported&&Je(i,ei)},t.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e=e?e.slice():[];for(var r=n,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=km.REDARAW_BIT),this._updateAndAddDisplayable(l,e,i)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(ti(),u.z=0),isNaN(u.z2)&&(ti(),u.z2=0),isNaN(u.zlevel)&&(ti(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,i);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,i)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;i>e;e++)this.delRoot(t[e]);else{var n=p(this._roots,t);n>=0&&this._roots.splice(n,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();Sm="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Am=Sm,Dm=function(t){function e(e){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i.onframe=e.onframe||function(){},i}return i(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,i=t.next;e?e.next=i:this._clipsHead=i,i?i.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,i=e-this._time,n=this._clipsHead;n;){var r=n.next,o=n.step(e,i);o?(n.ondestroy&&n.ondestroy(),this.removeClip(n),n=r):n=r}this._time=e,t||(this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){function t(){e._running&&(Am(t),!e._paused&&e.update())}var e=this;this._running=!0,Am(t)},e.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._clipsHead;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},e.prototype.isFinished=function(){return null==this._clipsHead},e.prototype.animate=function(t,e){e=e||{},this.start();var i=new Qy(t,e.loop);return this.addAnimator(i),i},e}(py),Pm=300,Lm=jv.domSupported,Om=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=m(t,(function(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:n}}(),zm={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Rm=!1,Em=function(){function t(t,e){this.stopPropagation=K,this.stopImmediatePropagation=K,this.preventDefault=K,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Bm={mousedown:function(t){t=At(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=At(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=At(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=At(this.dom,t);var e=t.toElement||t.relatedTarget;ai(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Rm=!0,t=At(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Rm||(t=At(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=At(this.dom,t),ri(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Bm.mousemove.call(this,t),Bm.mousedown.call(this,t)},touchmove:function(t){t=At(this.dom,t),ri(t),this.handler.processGesture(t,"change"),Bm.mousemove.call(this,t)},touchend:function(t){t=At(this.dom,t),ri(t),this.handler.processGesture(t,"end"),Bm.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Pm&&Bm.click.call(this,t)},pointerdown:function(t){Bm.mousedown.call(this,t)},pointermove:function(t){ii(t)||Bm.mousemove.call(this,t)},pointerup:function(t){Bm.mouseup.call(this,t)},pointerout:function(t){ii(t)||Bm.mouseout.call(this,t)}};y(["click","dblclick","contextmenu"],(function(t){Bm[t]=function(e){e=At(this.dom,e),this.trigger(t,e)}}));var Nm={pointermove:function(t){ii(t)||Nm.mousemove.call(this,t)},pointerup:function(t){Nm.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}},Fm=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),Vm=function(t){function e(e,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new Fm(e,Bm),Lm&&(n._globalHandlerScope=new Fm(document,Nm)),si(n,n._localHandlerScope),n}return i(e,t),e.prototype.dispose=function(){ci(this._localHandlerScope),Lm&&ci(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Lm&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?li(this,e):ci(e)}},e}(py),Hm=function(t){function e(e){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return i(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),t.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];if(t&&t!==this&&t.parent!==this&&t!==n){i[e]=t,n.parent=null;var r=this.__zr;r&&n.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,i=this._children,n=p(i,t);return 0>n||(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i<t.length;i++){var n=t[i];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},e.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],r=t.call(e,n);n.isGroup&&!r&&n.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new lm(0,0,0,0),i=t||this._children,n=[],r=null,o=0;o<i.length;o++){var a=i[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(n);l?(lm.applyTransform(e,s,l),r=r||e.clone(),r.union(e)):(r=r||s.clone(),r.union(s))}}return r||e},e}(km);Hm.prototype.type="group";var jm=!jv.canvasSupported,Wm={},Gm={},Ym=function(){function t(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var r=new Im,o=i.renderer||"canvas";if(jm)throw new Error("IE8 support has been dropped since 5.0");if(Wm[o]||(o=w(Wm)[0]),!Wm[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var a=new Wm[o](e,r,i,t);this.storage=r,this.painter=a;var s=jv.node||jv.worker?null:new Vm(a.getViewportRoot(),a.root);this.handler=new Cy(r,a,s,a.root),this.animation=new Dm({stage:{update:function(){return n._flush(!0)}}}),this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=di(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,i=(new Date).getTime();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=(new Date).getTime();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.addHover=function(){},t.prototype.removeHover=function(){},t.prototype.clearHover=function(){},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.pathToImage=function(t,e){return this.painter.pathToImage?this.painter.pathToImage(t,e):void 0},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Hm&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,hi(this.id)},t}(),Um="5.0.4",Xm=(Object.freeze||Object)({init:pi,dispose:fi,disposeAll:gi,getInstance:vi,registerPainter:yi,version:Um}),Zm=1e-4,qm=9007199254740991,$m=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Km="series\0",Qm="\0_ec_\0",Jm=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],tx=Bi(),ex={useDefault:!0,enableAll:!1,enableNone:!1},ix={useDefault:!1,enableAll:!0,enableNone:!0},nx=".",rx="___EC__COMPONENT__CONTAINER___",ox="___EC__EXTENDED_CLASS___",ax=Math.round(10*Math.random()),sx=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lx=Sn(sx),ux=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return lx(this,t,e)},t}(),cx=new jy(50),hx=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,dx=function(){function t(){}return t}(),px=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),fx=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}(),gx=x(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{}),vx="__zr_style_"+Math.round(10*Math.random()),yx={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},mx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};yx[vx]=!0;var xx=["z","z2","invisible"],bx=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype._init=function(e){for(var i=w(e),n=0;n<i.length;n++){var r=i[n];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,i,n){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&Vn(this,t,e)||r&&!r[0]&&!r[3])return!1;if(i&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(n&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();return n.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,i=this.getBoundingRect(),n=this.style,r=n.shadowBlur||0,o=n.shadowOffsetX||0,a=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new lm(0,0,0,0)),e?lm.applyTransform(t,i,e):t.copy(i),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new lm(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,i){"style"!==e?t.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:h(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(){this.markRedraw(),this.__dirty|=e.STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&e.STYLE_CHANGED_BIT)},e.prototype.styleUpdated=function(){this.__dirty&=~e.STYLE_CHANGED_BIT},e.prototype.createStyle=function(t){return q(yx,t)},e.prototype.useStyle=function(t){t[vx]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[vx]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,xx)},e.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,l=!(i&&r);if(i&&i.style?o?r?s=i.style:(s=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(s,i.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:n.style),this._mergeStyle(s,i.style)):l&&(s=n.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=w(u),h=0;h<c.length;h++){var d=c[h];d in s&&(s[d]=s[d],this.style[d]=u[d])}var p=w(s);for(h=0;h<p.length;h++){d=p[h];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(h=0;h<xx.length;h++){d=xx[h];i&&null!=i[d]?this[d]=i[d]:l&&null!=n[d]&&(this[d]=n[d])}},e.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(t,e){return h(t,e),t},e.prototype.getAnimationStyleProps=function(){return mx},e.STYLE_CHANGED_BIT=2,e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=km.REDARAW_BIT|e.STYLE_CHANGED_BIT}(),e}(km),_x=new lm(0,0,0,0),kx=new lm(0,0,0,0),Sx=Math.pow,Mx=Math.sqrt,Tx=1e-8,Cx=1e-4,Ix=Mx(3),Ax=1/3,Dx=Q(),Px=Q(),Lx=Q(),Ox=Math.min,zx=Math.max,Rx=Math.sin,Ex=Math.cos,Bx=2*Math.PI,Nx=Q(),Fx=Q(),Vx=Q(),Hx=[],jx=[],Wx={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Gx=[],Yx=[],Ux=[],Xx=[],Zx=[],qx=[],$x=Math.min,Kx=Math.max,Qx=Math.cos,Jx=Math.sin,tb=Math.sqrt,eb=Math.abs,ib=Math.PI,nb=2*ib,rb="undefined"!=typeof Float32Array,ob=[],ab=function(){function t(t){this.dpr=1,this._version=0,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=eb(i/pm/t)||0,this._uy=eb(i/pm/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this.addData(Wx.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var i=eb(t-this._xi)>this._ux||eb(e-this._yi)>this._uy||this._len<5;return this.addData(Wx.L,t,e),this._ctx&&i&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},t.prototype.bezierCurveTo=function(t,e,i,n,r,o){return this.addData(Wx.C,t,e,i,n,r,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,i,n,r,o):this._ctx.bezierCurveTo(t,e,i,n,r,o)),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,i,n){return this.addData(Wx.Q,t,e,i,n),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},t.prototype.arc=function(t,e,i,n,r,o){ob[0]=n,ob[1]=r,ur(ob,o),n=ob[0],r=ob[1];var a=r-n;return this.addData(Wx.A,t,e,i,i,n,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=Qx(r)*i+t,this._yi=Jx(r)*i+e,this},t.prototype.arcTo=function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},t.prototype.rect=function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(Wx.R,t,e,i,n),this},t.prototype.closePath=function(){this.addData(Wx.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t.length;i++)e+=t[i];this._dashSum=e,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},t.prototype.setLineDashOffset=function(t){return this._dashOffset=t,this},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!rb||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();rb&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(r=0;e>r;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[n++]=o[a];this._len=n},t.prototype.addData=function(){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var e=0;e<arguments.length;e++)t[this._len++]=arguments[e]}},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype._dashedLineTo=function(t,e){var i,n,r=this._dashSum,o=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,c=t-l,h=e-u,d=tb(c*c+h*h),p=l,f=u,g=o.length;for(c/=d,h/=d,0>s&&(s=r+s),s%=r,p-=s*c,f-=s*h;c>0&&t>=p||0>c&&p>=t||0===c&&(h>0&&e>=f||0>h&&f>=e);)n=this._dashIdx,i=o[n],p+=c*i,f+=h*i,this._dashIdx=(n+1)%g,c>0&&l>p||0>c&&p>l||h>0&&u>f||0>h&&f>u||a[n%2?"moveTo":"lineTo"](c>=0?$x(p,t):Kx(p,t),h>=0?$x(f,e):Kx(f,e));c=p-t,h=f-e,this._dashOffset=-tb(c*c+h*h)},t.prototype._dashedBezierTo=function(t,e,i,n,r,o){var a,s,l,u,c,h=this._ctx,d=this._dashSum,p=this._dashOffset,f=this._lineDash,g=this._xi,v=this._yi,y=0,m=this._dashIdx,x=f.length,b=0;for(0>p&&(p=d+p),p%=d,a=0;1>a;a+=.1)s=Wn(g,t,i,r,a+.1)-Wn(g,t,i,r,a),l=Wn(v,e,n,o,a+.1)-Wn(v,e,n,o,a),y+=tb(s*s+l*l);for(;x>m&&(b+=f[m],!(b>p));m++);for(a=(b-p)/y;1>=a;)u=Wn(g,t,i,r,a),c=Wn(v,e,n,o,a),m%2?h.moveTo(u,c):h.lineTo(u,c),a+=f[m]/y,m=(m+1)%x;m%2!==0&&h.lineTo(r,o),s=r-u,l=o-c,this._dashOffset=-tb(s*s+l*l)},t.prototype._dashedQuadraticTo=function(t,e,i,n){var r=i,o=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,o)},t.prototype.toStatic=function(){if(this._saveData){var t=this.data;t instanceof Array&&(t.length=this._len,rb&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ux[0]=Ux[1]=Zx[0]=Zx[1]=Number.MAX_VALUE,Xx[0]=Xx[1]=qx[0]=qx[1]=-Number.MAX_VALUE;var t,e=this.data,i=0,n=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=e[t],n=e[t+1],r=i,o=n),a){case Wx.M:i=r=e[t++],n=o=e[t++],Zx[0]=r,Zx[1]=o,qx[0]=r,qx[1]=o;break;case Wx.L:rr(i,n,e[t],e[t+1],Zx,qx),i=e[t++],n=e[t++];break;case Wx.C:or(i,n,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Zx,qx),i=e[t++],n=e[t++];break;case Wx.Q:ar(i,n,e[t++],e[t++],e[t],e[t+1],Zx,qx),i=e[t++],n=e[t++];break;case Wx.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(r=Qx(d)*c+l,o=Jx(d)*h+u),sr(l,u,c,h,d,p,f,Zx,qx),i=Qx(p)*c+l,n=Jx(p)*h+u;break;case Wx.R:r=i=e[t++],o=n=e[t++];var g=e[t++],v=e[t++];rr(r,o,r+g,o+v,Zx,qx);break;case Wx.Z:i=r,n=o}yt(Ux,Ux,Zx),mt(Xx,Xx,qx)}return 0===t&&(Ux[0]=Ux[1]=Xx[0]=Xx[1]=0),new lm(Ux[0],Ux[1],Xx[0]-Ux[0],Xx[1]-Ux[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;e>h;){var d=t[h++],p=1===h;p&&(r=t[h],o=t[h+1],a=r,s=o);var f=-1;switch(d){case Wx.M:r=a=t[h++],o=s=t[h++];break;case Wx.L:var g=t[h++],v=t[h++],y=g-r,m=v-o;(eb(y)>i||eb(m)>n||h===e-1)&&(f=Math.sqrt(y*y+m*m),r=g,o=v);break;case Wx.C:var x=t[h++],b=t[h++],_=(g=t[h++],v=t[h++],t[h++]),w=t[h++];f=qn(r,o,x,b,g,v,_,w,10),r=_,o=w;break;case Wx.Q:x=t[h++],b=t[h++],g=t[h++],v=t[h++];f=ir(r,o,x,b,g,v,10),r=g,o=v;break;case Wx.A:var k=t[h++],S=t[h++],M=t[h++],T=t[h++],C=t[h++],I=t[h++],A=I+C;h+=1,t[h++],p&&(a=Qx(C)*M+k,s=Jx(C)*T+S),f=Kx(M,T)*$x(nb,Math.abs(I)),r=Qx(A)*M+k,o=Jx(A)*T+S;break;case Wx.R:a=r=t[h++],s=o=t[h++];var D=t[h++],P=t[h++];f=2*D+2*P;break;case Wx.Z:y=a-r,m=s-o;f=Math.sqrt(y*y+m*m),r=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var i,n,r,o,a,s,l,u,c,h=this.data,d=this._ux,p=this._uy,f=this._len,g=1>e,v=0,y=0;if(!g||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u))t:for(var m=0;f>m;){var x=h[m++],b=1===m;switch(b&&(r=h[m],o=h[m+1],i=r,n=o),x){case Wx.M:i=r=h[m++],n=o=h[m++],t.moveTo(r,o);break;case Wx.L:if(a=h[m++],s=h[m++],eb(a-r)>d||eb(s-o)>p||m===f-1){if(g){var _=l[y++];if(v+_>c){var w=(c-v)/_;t.lineTo(r*(1-w)+a*w,o*(1-w)+s*w);break t}v+=_}t.lineTo(a,s),r=a,o=s}break;case Wx.C:var k=h[m++],S=h[m++],M=h[m++],T=h[m++],C=h[m++],I=h[m++];if(g){_=l[y++];if(v+_>c){w=(c-v)/_;Xn(r,k,M,C,w,Gx),Xn(o,S,T,I,w,Yx),t.bezierCurveTo(Gx[1],Yx[1],Gx[2],Yx[2],Gx[3],Yx[3]);break t}v+=_}t.bezierCurveTo(k,S,M,T,C,I),r=C,o=I;break;case Wx.Q:k=h[m++],S=h[m++],M=h[m++],T=h[m++];if(g){_=l[y++];if(v+_>c){w=(c-v)/_;tr(r,k,M,w,Gx),tr(o,S,T,w,Yx),t.quadraticCurveTo(Gx[1],Yx[1],Gx[2],Yx[2]);break t}v+=_}t.quadraticCurveTo(k,S,M,T),r=M,o=T;break;case Wx.A:var A=h[m++],D=h[m++],P=h[m++],L=h[m++],O=h[m++],z=h[m++],R=h[m++],E=!h[m++],B=P>L?P:L,N=eb(P-L)>.001,F=O+z,V=!1;if(g){_=l[y++];v+_>c&&(F=O+z*(c-v)/_,V=!0),v+=_}if(N&&t.ellipse?t.ellipse(A,D,P,L,R,O,F,E):t.arc(A,D,B,O,F,E),V)break t;b&&(i=Qx(O)*P+A,n=Jx(O)*L+D),r=Qx(F)*P+A,o=Jx(F)*L+D;break;case Wx.R:i=r=h[m],n=o=h[m+1],a=h[m++],s=h[m++];var H=h[m++],j=h[m++];if(g){_=l[y++];if(v+_>c){var W=c-v;t.moveTo(a,s),t.lineTo(a+$x(W,H),s),W-=H,W>0&&t.lineTo(a+H,s+$x(W,j)),W-=j,W>0&&t.lineTo(a+Kx(H-W,0),s+j),W-=H,W>0&&t.lineTo(a,s+Kx(j-W,0));break t}v+=_}t.rect(a,s,H,j);break;case Wx.Z:if(g){_=l[y++];if(v+_>c){w=(c-v)/_;t.lineTo(r*(1-w)+i*w,o*(1-w)+n*w);break t}v+=_}t.closePath(),r=i,o=n}}},t.CMD=Wx,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._needsDash=!1,e._dashOffset=0,e._dashIdx=0,e._dashSum=0,e._ux=0,e._uy=0}(),t}(),sb=2*Math.PI,lb=2*Math.PI,ub=ab.CMD,cb=2*Math.PI,hb=1e-4,db=[-1,-1,-1],pb=[-1,-1],fb=d({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},yx),gb={style:d({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},mx.style)},vb=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],yb=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.update=function(){var i=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){i.buildPath(t,i.shape)}),r.silent=!0;var o=r.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<vb.length;++s)r[vb[s]]=this[vb[s]];r.__dirty|=km.REDARAW_BIT}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var i=w(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var r=0;r<i.length;r++){var o=i[r],a=e[o];"style"===o?this.style?h(this.style,a):this.useStyle(a):"shape"===o?h(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(C(t)){var e=ve(t,0);return e>.5?gm:e>.2?ym:vm}if(t)return vm}return gm},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(C(e)){var i=this.__zr,n=!(!i||!i.isDarkMode()),r=ve(t,0)<fm;if(n===r)return e}},e.prototype.buildPath=function(){},e.prototype.pathUpdated=function(){this.__dirty&=~e.SHAPE_CHANGED_BIT},e.prototype.createPathProxy=function(){this.path=new ab(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var o=this.path;(r||this.__dirty&e.SHAPE_CHANGED_BIT)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){a.copy(t);var s=i.strokeNoScale?this.getLineScale():1,l=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,null==u?4:u)}s>1e-10&&(a.width+=l/s,a.height+=l/s,a.x-=l/s/2,a.y-=l/s/2)}return a}return t},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),kr(o,a/s,t,e)))return!0}if(this.hasFill())return wr(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=e.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,i){"shape"===e?this.setShape(i):t.prototype.attrKV.call(this,e,i)},e.prototype.setShape=function(t,e){var i=this.shape;return i||(i=this.shape={}),"string"==typeof t?i[t]=e:h(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&e.SHAPE_CHANGED_BIT)},e.prototype.createStyle=function(t){return q(fb,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=h({},this.shape))},e.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,l=!(i&&r);if(i&&i.shape?o?r?s=i.shape:(s=h({},n.shape),h(s,i.shape)):(s=h({},r?this.shape:n.shape),h(s,i.shape)):l&&(s=n.shape),s)if(o){this.shape=h({},this.shape);for(var u={},c=w(s),d=0;d<c.length;d++){var p=c[d];"object"==typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return gb},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(i){var n=e.call(this,i)||this;return t.init&&t.init.call(n,i),n}return i(n,e),n.prototype.getDefaultStyle=function(){return l(t.style)},n.prototype.getDefaultShape=function(){return l(t.shape)},n}(e);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},e.SHAPE_CHANGED_BIT=4,e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=km.REDARAW_BIT|bx.STYLE_CHANGED_BIT|e.SHAPE_CHANGED_BIT}(),e}(bx),mb=d({strokeFirst:!0,font:cm,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},fb),xb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return q(mb,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var i=Re(e,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(bx);xb.prototype.type="tspan";var bb=d({x:0,y:0},yx),_b={style:d({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},mx.style)},wb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.createStyle=function(t){return q(bb,t)},e.prototype._getSize=function(t){var e=this.style,i=e[t];if(null!=i)return i;var n=Sr(e.image)?e.image:this.__image;if(!n)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?n[t]:n[t]/n[r]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return _b},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new lm(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(bx);wb.prototype.type="image";var kb=Math.round,Sb=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Mb={},Tb=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getDefaultShape=function(){return new Sb},e.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=Cr(Mb,e,this.style);i=a.x,n=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else i=e.x,n=e.y,r=e.width,o=e.height;e.r?Mr(t,e):t.rect(i,n,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(yb);Tb.prototype.type="rect";var Cb={fill:"#000"},Ib=2,Ab={style:d({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},mx.style)},Db=function(t){function e(e){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Cb,i.attr(e),i}return i(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}var n=this.attachedTransform;if(n){n.updateTransform();var r=n.transform;r?(this.transform=this.transform||[],jt(this.transform,r)):this.transform=null}else t.prototype.update.call(this)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),this.attachedTransform?this.attachedTransform.getComputedTransform():t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,Ar(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new lm(0,0,0,0),e=this._children,i=[],n=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(i);s?(t.copy(a),t.applyTransform(s),n=n||t.clone(),n.union(t)):(n=n||a.clone(),n.union(a))}this._rect=n||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Cb},e.prototype.setTextContent=function(){throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,e){if(!e)return t;var i=e.rich,n=t.rich||i&&{};return h(t,e),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n),t},e.prototype._mergeRich=function(t,e){for(var i=w(e),n=0;n<i.length;n++){var r=i[n];t[r]=t[r]||{},h(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return Ab},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||cm,i=t.padding,n=zr(t),r=On(n,t),o=Rr(t),a=!!t.backgroundColor,s=r.outerHeight,l=r.lines,u=r.lineHeight,c=this._defaultStyle,h=t.x||0,d=t.y||0,p=t.align||c.align||"left",f=t.verticalAlign||c.verticalAlign||"top",g=h,v=Be(d,r.contentHeight,f);if(o||i){var y=r.width;i&&(y+=i[1]+i[3]);var m=Ee(h,y,p),x=Be(d,s,f);o&&this._renderBackground(t,t,m,x,y,s)}v+=u/2,i&&(g=Or(h,p,i),"top"===f?v+=i[0]:"bottom"===f&&(v-=i[2]));for(var b=0,_=!1,w=(Lr("fill"in t?t.fill:(_=!0,c.fill))),k=(Pr("stroke"in t?t.stroke:a||c.autoStroke&&!_?null:(b=Ib,c.stroke))),S=t.textShadowBlur>0,M=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),T=r.calculatedLineHeight,C=0;C<l.length;C++){var I=this._getOrCreateChild(xb),A=I.createStyle();I.useStyle(A),A.text=l[C],A.x=g,A.y=v,p&&(A.textAlign=p),A.textBaseline="middle",A.opacity=t.opacity,A.strokeFirst=!0,S&&(A.shadowBlur=t.textShadowBlur||0,A.shadowColor=t.textShadowColor||"transparent",A.shadowOffsetX=t.textShadowOffsetX||0,A.shadowOffsetY=t.textShadowOffsetY||0),k&&(A.stroke=k,A.lineWidth=t.lineWidth||b,A.lineDash=t.lineDash,A.lineDashOffset=t.lineDashOffset||0),w&&(A.fill=w),A.font=e,v+=u,M&&I.setBoundingRect(new lm(Ee(A.x,t.width,A.textAlign),Be(A.y,T,A.textBaseline),t.width,T))}},e.prototype._updateRichTexts=function(){var t=this.style,e=zr(t),i=zn(e,t),n=i.width,r=i.outerWidth,o=i.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,c=t.align||u.align,h=t.verticalAlign||u.verticalAlign,d=Ee(s,r,c),p=Be(l,o,h),f=d,g=p;a&&(f+=a[3],g+=a[0]);var v=f+n;Rr(t)&&this._renderBackground(t,t,d,p,r,o);for(var y=!!t.backgroundColor,m=0;m<i.lines.length;m++){for(var x=i.lines[m],b=x.tokens,_=b.length,w=x.lineHeight,k=x.width,S=0,M=f,T=v,C=_-1,I=void 0;_>S&&(I=b[S],!I.align||"left"===I.align);)this._placeToken(I,t,w,g,M,"left",y),k-=I.width,M+=I.width,S++;for(;C>=0&&(I=b[C],"right"===I.align);)this._placeToken(I,t,w,g,T,"right",y),k-=I.width,T-=I.width,C--;for(M+=(n-(M-f)-(v-T)-k)/2;C>=S;)I=b[S],this._placeToken(I,t,w,g,M+I.width/2,"center",y),M+=I.width,S++;g+=w}},e.prototype._placeToken=function(t,e,i,n,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=n+i/2;"top"===l?u=n+t.height/2:"bottom"===l&&(u=n+i-t.height/2);var c=!t.isLineHolder&&Rr(s);c&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,d=t.textPadding;d&&(r=Or(r,o,d),u-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(xb),f=p.createStyle();p.useStyle(f);var g=this._defaultStyle,v=!1,y=0,m=Pr("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),x=Pr("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(y=Ib,g.stroke)),b=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,b&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||cm,f.opacity=V(s.opacity,e.opacity,1),x&&(f.lineWidth=V(s.lineWidth,e.lineWidth,y),f.lineDash=F(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=x),m&&(f.fill=m);var _=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new lm(Ee(f.x,_,f.textAlign),Be(f.y,w,f.textBaseline),_,w))},e.prototype._renderBackground=function(t,e,i,n,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=C(l),d=t.borderRadius,p=this;if(h||u&&c){a=this._getOrCreateChild(Tb),a.useStyle(a.createStyle()),a.style.fill=null;var f=a.shape;f.x=i,f.y=n,f.width=r,f.height=o,f.r=d,a.dirtyShape()}if(h){var g=a.style;g.fill=l||null,g.fillOpacity=F(t.fillOpacity,1)}else if(l&&l.image){s=this._getOrCreateChild(wb),s.onload=function(){p.dirtyStyle()};var v=s.style;v.image=l.image,v.x=i,v.y=n,v.width=r,v.height=o}if(u&&c){g=a.style;g.lineWidth=u,g.stroke=c,g.strokeOpacity=F(t.strokeOpacity,1),g.lineDash=t.borderDash,g.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=V(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";if(t.fontSize||t.fontFamily||t.fontWeight){var i="";i="string"!=typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,e=[t.fontStyle,t.fontWeight,i,t.fontFamily||"sans-serif"].join(" ")}return e&&G(e)||t.textFont||t.font},e}(bx),Pb={left:!0,right:1,center:1},Lb={top:1,bottom:1,middle:1},Ob=sn(),zb=1,Rb={},Eb=sn(),Bb=0,Nb=1,Fb=2,Vb=["emphasis","blur","select"],Hb=["normal","emphasis","blur","select"],jb=10,Wb=9,Gb="highlight",Yb="downplay",Ub="select",Xb="unselect",Zb="toggleSelect",qb=new jy(100),$b=["emphasis","blur","select"],Kb={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Qb=ab.CMD,Jb=[[],[],[]],t_=Math.sqrt,e_=Math.atan2,i_=Math.sqrt,n_=Math.sin,r_=Math.cos,o_=Math.PI,a_=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,s_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,l_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.applyTransform=function(){},e}(yb),u_=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),c_=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getDefaultShape=function(){return new u_},e.prototype.buildPath=function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(yb);c_.prototype.type="circle";var h_=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),d_=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getDefaultShape=function(){return new h_},e.prototype.buildPath=function(t,e){var i=.5522848,n=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*i,l=a*i;t.moveTo(n-o,r),t.bezierCurveTo(n-o,r-l,n-s,r-a,n,r-a),t.bezierCurveTo(n+s,r-a,n+o,r-l,n+o,r),t.bezierCurveTo(n+o,r+l,n+s,r+a,n,r+a),t.bezierCurveTo(n-s,r+a,n-o,r+l,n-o,r),t.closePath()},e}(yb);d_.prototype.type="ellipse";var p_=Math.PI,f_=2*p_,g_=Math.sin,v_=Math.cos,y_=Math.acos,m_=Math.atan2,x_=Math.abs,b_=Math.sqrt,__=Math.max,w_=Math.min,k_=1e-4,S_=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0}return t}(),M_=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getDefaultShape=function(){return new S_},e.prototype.buildPath=function(t,e){No(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(yb);M_.prototype.type="sector";var T_=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),C_=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getDefaultShape=function(){return new T_},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)},e}(yb);C_.prototype.type="ring";var I_=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),A_=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getDefaultShape=function(){return new I_},e.prototype.buildPath=function(t,e){jo(t,e,!0)},e}(yb);A_.prototype.type="polygon";var D_=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),P_=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new D_},e.prototype.buildPath=function(t,e){jo(t,e,!1)},e}(yb);P_.prototype.type="polyline";var L_={},O_=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),z_=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new O_},e.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=Tr(L_,e,this.style);i=a.x1,n=a.y1,r=a.x2,o=a.y2}else i=e.x1,n=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(i,n),1>s&&(r=i*(1-s)+r*s,o=n*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(yb);z_.prototype.type="line";var R_=[],E_=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),B_=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new E_},e.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(i,n),null==l||null==u?(1>c&&(tr(i,a,r,c,R_),a=R_[1],r=R_[2],tr(n,s,o,c,R_),s=R_[1],o=R_[2]),t.quadraticCurveTo(a,s,r,o)):(1>c&&(Xn(i,a,l,r,c,R_),a=R_[1],l=R_[2],r=R_[3],Xn(n,s,u,o,c,R_),s=R_[1],u=R_[2],o=R_[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return Wo(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Wo(this.shape,t,!0);return ht(e,e)},e}(yb);B_.prototype.type="bezier-curve";var N_=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),F_=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new N_},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+i,u*r+n),t.arc(i,n,r,o,a,!s)},e}(yb);F_.prototype.type="arc";var V_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return i(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),i=0;i<t.length;i++)e=e||t[i].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),yb.prototype.getBoundingRect.call(this)},e}(yb),H_=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),j_=function(t){function e(e,i,n,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==i?0:i,s.x2=null==n?1:n,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return i(e,t),e}(H_),W_=function(t){function e(e,i,n,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==i?.5:i,a.r=null==n?.5:n,a.type="radial",a.global=o||!1,a}return i(e,t),e}(H_),G_=[0,0],Y_=[0,0],U_=new Jy,X_=new Jy,Z_=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;4>i;i++)this._corners[i]=new Jy;for(i=0;2>i;i++)this._axes[i]=new Jy;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(i[0].set(r,o),i[1].set(a,o),i[2].set(a,s),i[3].set(r,s),e)for(var l=0;4>l;l++)i[l].transform(e);Jy.sub(n[0],i[1],i[0]),Jy.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(l=0;2>l;l++)this._origin[l]=n[l].dot(i[0])},t.prototype.intersect=function(t,e){var i=!0,n=!e;return U_.set(1/0,1/0),X_.set(0,0),!this._intersectCheckOneSide(this,t,U_,X_,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,U_,X_,n,-1)&&(i=!1,n)||n||Jy.copy(e,i?U_:X_),i},t.prototype._intersectCheckOneSide=function(t,e,i,n,r,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,G_),this._getProjMinMaxOnAxis(s,e._corners,Y_),G_[1]<Y_[0]||G_[0]>Y_[1]){if(a=!1,r)return a;var u=Math.abs(Y_[0]-G_[1]),c=Math.abs(G_[0]-Y_[1]);Math.min(u,c)>n.len()&&(c>u?Jy.scale(n,l,-u*o):Jy.scale(n,l,c*o))}else if(i){u=Math.abs(Y_[0]-G_[1]),c=Math.abs(G_[0]-Y_[1]);Math.min(u,c)<i.len()&&(c>u?Jy.scale(i,l,u*o):Jy.scale(i,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],r=this._origin,o=e[0].dot(n)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(n)+r[t];a=Math.min(u,a),s=Math.max(u,s)}i[0]=a,i[1]=s},t}(),q_=[],$_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return i(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new lm(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(q_)),t.union(n)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();if(n.contain(i[0],i[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(t,e))return!0}return!1},e}(bx),K_=Math.max,Q_=Math.min,J_={},tw=zo,ew=Ro,iw=Ir;Uo("circle",c_),Uo("ellipse",d_),Uo("sector",M_),Uo("ring",C_),Uo("polygon",A_),Uo("polyline",P_),Uo("rect",Tb),Uo("line",z_),Uo("bezierCurve",B_),Uo("arc",F_);var nw=(Object.freeze||Object)({extendShape:Go,extendPath:Yo,registerShape:Uo,getShapeClass:Xo,makePath:Zo,makeImage:qo,mergePath:ew,resizePath:Ko,subPixelOptimizeLine:Qo,subPixelOptimizeRect:Jo,subPixelOptimize:iw,updateProps:ea,initProps:ia,removeElement:na,removeElementWithFadeOut:oa,isElementRemoved:aa,getTransform:sa,applyTransform:la,transformDirection:ua,groupTransition:da,clipPointsByRect:pa,clipRectByRect:fa,createIcon:ga,linePolygonIntersect:va,lineLineIntersect:ya,Group:Hm,Image:wb,Text:Db,Circle:c_,Ellipse:d_,Sector:M_,Ring:C_,Polygon:A_,Polyline:P_,Rect:Tb,Line:z_,BezierCurve:B_,Arc:F_,IncrementalDisplayable:$_,CompoundPath:V_,LinearGradient:j_,RadialGradient:W_,BoundingRect:lm,OrientedBoundingRect:Z_,Point:Jy,Path:yb}),rw={},ow=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],aw=["align","lineHeight","width","height","tag","verticalAlign"],sw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],lw=sn(),uw=["textStyle","color"],cw=new Db,hw=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(uw):null)},t.prototype.getFont=function(){return Aa({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){return cw.useStyle({text:t,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),cw.update(),cw.getBoundingRect()},t}(),dw=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],pw=Sn(dw),fw=function(){function t(){}return t.prototype.getLineStyle=function(t){return pw(this,t)},t}(),gw=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],vw=Sn(gw),yw=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return vw(this,t,e)},t}(),mw=function(){function t(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return t.prototype.init=function(){for(var t=[],e=3;e<arguments.length;e++)t[e-3]=arguments[e]},t.prototype.mergeOption=function(t){u(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var i=this.option,n=null==i?i:i[t];if(null==n&&!e){var r=this.parentModel;r&&(n=r.getShallow(t))}return n},t.prototype.getModel=function(e,i){var n=null!=e,r=n?this.parsePath(e):null,o=n?this._doGet(r):this.option;return i=i||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,i,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(l(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!jv.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&(!t[n]||(i=i&&"object"==typeof i?i[t[n]]:null,null!=i));n++);return null==i&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},t}();yn(mw),bn(mw),g(mw,fw),g(mw,yw),g(mw,ux),g(mw,hw);var xw=Math.round(10*Math.random()),bw={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Guage",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},_w={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},ww="ZH",kw="EN",Sw=kw,Mw={},Tw={},Cw=jv.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(ww)>-1?ww:Sw}():Sw;Ea(kw,bw),Ea(ww,_w);var Iw=1e3,Aw=60*Iw,Dw=60*Aw,Pw=24*Dw,Lw=365*Pw,Ow={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{hh}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}"},zw="{yyyy}-{MM}-{dd}",Rw={year:"{yyyy}",month:"{yyyy}-{MM}",day:zw,hour:zw+" "+Ow.hour,minute:zw+" "+Ow.minute,second:zw+" "+Ow.second,millisecond:Ow.none},Ew=["year","month","day","hour","minute","second","millisecond"],Bw=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],Nw=j,Fw=/([&<>"'])/g,Vw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Hw=["a","b","c","d","e","f","g"],jw=function(t,e){return"{"+t+(null==e?"":e)+"}"},Ww=y,Gw=["left","right","top","bottom","width","height"],Yw=[["width","left","right"],["height","top","bottom"]],Uw=xs,Xw=(S(xs,"vertical"),S(xs,"horizontal"),sn()),Zw=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.uid=La("ec_cpt_model"),r}return i(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},e.prototype.mergeDefaultAndTheme=function(t,e){var i=_s(this),n=i?ks(t):{},r=e.getTheme();u(t,r.get(this.mainType)),u(t,this.getDefaultOption()),i&&ws(t,n,i)},e.prototype.mergeOption=function(t){u(this.option,t,!0);var e=_s(this);e&&ws(this.option,t,e)},e.prototype.optionUpdated=function(){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!vn(t))return t.defaultOption;var e=Xw(this);if(!e.defaultOption){for(var i=[],n=t;n;){var r=n.prototype.defaultOption;r&&i.push(r),n=n.superClass}for(var o={},a=i.length-1;a>=0;a--)o=u(o,i[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var i=t+"Index",n=t+"Id";return un(this.ecModel,t,{index:this.get(i,!0),id:this.get(n,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(mw);xn(Zw,mw),kn(Zw),Oa(Zw),za(Zw,Ms);var qw="";"undefined"!=typeof navigator&&(qw=navigator.platform||"");var $w,Kw,Qw="rgba(0, 0, 0, 0.2)",Jw={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Qw,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Qw,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Qw,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Qw,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Qw,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Qw,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qw.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},tk=X(["tooltip","label","itemName","itemId","seriesName"]),ek="original",ik="arrayRows",nk="objectRows",rk="keyedColumns",ok="typedArray",ak="unknown",sk="column",lk="row",uk={Must:1,Might:2,Not:3},ck=sn(),hk=X(),dk=sn(),pk=(sn(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,i){var n=Hi(this.get("color",!0)),r=this.get("colorLayer",!0);return zs(this,dk,n,r,t,e,i)},t.prototype.clearColorPalette=function(){Rs(this,dk)},t}()),fk="\0_ec_inner",gk=1,vk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.init=function(t,e,i,n,r,o){n=n||{},this.option=null,this._theme=new mw(n),this._locale=new mw(r),this._optionManager=o},e.prototype.setOption=function(t,e,i){var n=Vs(e);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Vs(e))},e.prototype._resetOption=function(t,e){var i=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Kw(this,r),i=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=n.getTimelineOption(this);o&&(i=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this);a.length&&y(a,(function(t){i=!0,this._mergeOption(t,e)}),this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){function i(e){var i=Ls(this,e,Hi(t[e])),a=r.get(e),s=a?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",l=Yi(a,i,s);rn(l,e,Zw),n[e]=null,r.set(e,null),o.set(e,0);var u=[],d=[],p=0;y(l,(function(t,i){var n=t.existing,r=t.newOption;if(r){var o=Zw.getClass(e,t.keyInfo.subType,!0);if(n&&n.constructor===o)n.name=t.keyInfo.name,n.mergeOption(r,this),n.optionUpdated(r,!1);else{var a=h({componentIndex:i},t.keyInfo);n=new o(r,this,this,a),h(n,a),t.brandNew&&(n.__requireNewView=!0),n.init(r,this,this),n.optionUpdated(null,!0)}}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(u.push(n.option),d.push(n),p++):(u.push(void 0),d.push(void 0))}),this),n[e]=u,r.set(e,d),o.set(e,p),"series"===e&&$w(this)}var n=this.option,r=this._componentsMap,o=this._componentsCount,a=[],s=X(),c=e&&e.replaceMergeMainTypeMap;Ts(this),y(t,(function(t,e){null!=t&&(Zw.hasClass(e)?e&&(a.push(e),s.set(e,!0)):n[e]=null==n[e]?l(t):u(n[e],t,!0))})),c&&c.each((function(t,e){Zw.hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))})),Zw.topologicalTravel(a,Zw.getAllClassMainTypes(),i,this),this._seriesIndices||$w(this)},e.prototype.getOption=function(){var t=l(this.option);return y(t,(function(e,i){if(Zw.hasClass(i)){for(var n=Hi(e),r=n.length,o=!1,a=r-1;a>=0;a--)n[a]&&!nn(n[a])?o=!0:(n[a]=null,!o&&r--);n.length=r,t[i]=n}})),delete t[fk],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.getLocale=function(t){var e=this.getLocaleModel();return e.get(t)},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var i=this._componentsMap.get(t);if(i){var n=i[e||0];if(n)return n;if(null==e)for(var r=0;r<i.length;r++)if(i[r])return i[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var i,n=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=n?(i=[],y(Hi(n),(function(t){a[t]&&i.push(a[t])}))):i=null!=r?Ns("id",r,a):null!=o?Ns("name",o,a):b(a,(function(t){return!!t})),Fs(i,t)):[]},e.prototype.findComponents=function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return!t||null==t[e]&&null==t[i]&&null==t[n]?null:{mainType:r,index:t[e],id:t[i],name:t[n]}}function i(e){return t.filter?b(e,t.filter):e}var n=t.query,r=t.mainType,o=e(n),a=o?this.queryComponents(o):b(this._componentsMap.get(r),(function(t){return!!t}));return i(Fs(a,t))},e.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(T(t)){var r=e,o=t;n.each((function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&o.call(r,e,n,n.componentIndex)}}))}else for(var a=C(t)?n.get(t):D(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(i,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=tn(t,null);return b(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return b(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return b(this._componentsMap.get("series").slice(),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){y(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)}),this)},e.prototype.eachRawSeries=function(t,e){y(this._componentsMap.get("series"),(function(i){i&&t.call(e,i,i.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,i){y(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)}),this)},e.prototype.eachRawSeriesByType=function(t,e,i){return y(this.getSeriesByType(t),e,i)},e.prototype.isSeriesFiltered=function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){var i=[];y(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)&&i.push(n)}),this),this._seriesIndices=i,this._seriesIndicesMap=X(i)},e.prototype.restoreData=function(t){$w(this);var e=this._componentsMap,i=[];e.each((function(t,e){Zw.hasClass(e)&&i.push(e)})),Zw.topologicalTravel(i,Zw.getAllClassMainTypes(),(function(i){y(e.get(i),(function(e){!e||"series"===i&&Es(e,t)||e.restoreData()}))}))},e.internalField=function(){$w=function(t){var e=t._seriesIndices=[];y(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=X(e)},Kw=function(t,e){t.option={},t.option[fk]=gk,t._componentsMap=X({series:[]}),t._componentsCount=X();var i=e.aria;D(i)&&null==i.enabled&&(i.enabled=!0),Bs(e,t._theme.option),u(e,Jw,!1),t._mergeOption(e,null)}}(),e}(mw);g(vk,pk);var yk,mk,xk,bk,_k,wk=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],kk=function(){function t(t){y(wk,(function(e){this[e]=iy(t[e],t)}),this)}return t}(),Sk={},Mk=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var i=[];y(Sk,(function(n){var r=n.create(t,e);i=i.concat(r||[])})),this._coordinateSystems=i},t.prototype.update=function(t,e){y(this._coordinateSystems,(function(i){i.update&&i.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){Sk[t]=e},t.get=function(t){return Sk[t]},t}(),Tk=/^(min|max)?(.+)$/,Ck=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e){t&&(y(Hi(t.series),(function(t){t&&t.data&&L(t.data)&&Y(t.data)})),y(Hi(t.dataset),(function(t){t&&t.source&&L(t.source)&&Y(t.source)}))),t=l(t);var i=this._optionBackup,n=Hs(t,e,!i);this._newBaseOption=n.baseOption,i?(n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],l(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=l(i[n.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(){var t=this._api.getWidth(),e=this._api.getHeight(),i=this._mediaList,n=this._mediaDefault,r=[],o=[];if(!i.length&&!n)return o;for(var a=0,s=i.length;s>a;a++)js(i[a].query,t,e)&&r.push(a);return!r.length&&n&&(r=[-1]),r.length&&!Gs(r,this._currentMediaIndices)&&(o=m(r,(function(t){return l(-1===t?n.option:i[t].option)}))),this._currentMediaIndices=r,o},t}(),Ik=y,Ak=D,Dk=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],Pk=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Lk=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ok=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],zk=function(){function t(t){this.data=t.data||(t.sourceFormat===rk?{}:[]),this.sourceFormat=t.sourceFormat||ak,this.seriesLayoutBy=t.seriesLayoutBy||sk,this.startIndex=t.startIndex||0,this.dimensionsDefine=t.dimensionsDefine,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.encodeDefine=t.encodeDefine,this.metaRawOption=t.metaRawOption}return t}(),Rk=function(){function t(t,e){var i=hl(t)?t:pl(t);this._source=i;var n=this._data=i.data;i.sourceFormat===ok&&(this._offset=0,this._dimSize=e,this._data=n),_k(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(){},t.prototype.appendData=function(){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){function t(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var e;_k=function(t,e,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=bk[Sl(a,s)];if(h(t,c),a===ok)t.getItem=i,t.count=r,t.fillStorage=n;else{var d=_l(a,s);t.getItem=iy(d,null,e,l,u);var p=wl(a,s);t.count=iy(p,null,e,l,u)}};var i=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,r=n*t,o=0;n>o;o++)e[o]=i[r+o];return e},n=function(t,e,i,n){for(var r=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=i[a],d=0;c>d;d++){var p=r[d*o+a];h[t+d]=p,l>p&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};e={},e[ik+"_"+sk]={pure:!0,appendData:t},e[ik+"_"+lk]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[nk]={pure:!0,appendData:t},e[rk]={pure:!0,appendData:function(t){var e=this._data;y(t,(function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])}))}},e[ek]={appendData:t},e[ok]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},bk=e}(),t}(),Ek=function(t,e,i,n){return t[n]},Bk=(yk={},yk[ik+"_"+sk]=function(t,e,i,n){return t[n+e]},yk[ik+"_"+lk]=function(t,e,i,n){n+=e;for(var r=[],o=t,a=0;a<o.length;a++){var s=o[a];r.push(s?s[n]:null)}return r},yk[nk]=Ek,yk[rk]=function(t,e,i,n){for(var r=[],o=0;o<i.length;o++){var a=i[o].name,s=t[a];r.push(s?s[n]:null)}return r},yk[ek]=Ek,yk),Nk=function(t){return t.length},Fk=(mk={},mk[ik+"_"+sk]=function(t,e){return Math.max(0,t.length-e)},mk[ik+"_"+lk]=function(t,e){var i=t[0];return i?Math.max(0,i.length-e):0},mk[nk]=Nk,mk[rk]=function(t,e,i){var n=i[0].name,r=t[n];return r?r.length:0},mk[ek]=Nk,mk),Vk=function(t,e){return null!=e?t[e]:t},Hk=(xk={},xk[ik]=Vk,xk[nk]=function(t,e,i){return null!=e?t[i]:t},xk[rk]=Vk,xk[ek]=function(t,e){var i=Wi(t);return null!=e&&i instanceof Array?i[e]:i},xk[ok]=Vk,xk),jk=/\{@(.+?)\}/g,Wk=function(){function t(){}return t.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),l=s&&s[i.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=i.userOutput;return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:n,color:l,borderColor:u,dimensionNames:d?d.dimensionNames:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,i,n,r,o){e=e||"normal";var a=this.getData(i),s=this.getDataParams(t,i);if(o&&(s.value=o.interpolatedValue),null!=n&&M(s.value)&&(s.value=s.value[n]),!r){var l=a.getItemModel(t);r=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if("function"==typeof r)return s.status=e,s.dimensionIndex=n,r(s);if("string"==typeof r){var u=ps(r,s);return u.replace(jk,(function(e,i){var n=i.length,r="["===i.charAt(0)&&"]"===i.charAt(n-1)?+i.slice(1,n-1):i,s=Ml(a,t,r);if(o&&M(o.interpolatedValue)){var l=a.getDimensionInfo(r);l&&(s=o.interpolatedValue[l.index])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return Ml(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),Gk=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var i,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(i=this._plan(this.context));var a,s=e(this._modBy),l=this._modDataCount||0,u=e(t&&t.modBy),c=t&&t.modDataCount||0;(s!==u||l!==c)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=u,this._modDataCount=c;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(a||p>d)){var f=this._progress;if(M(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],d,p,u,c);else this._doProgress(f,d,p,u,c)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,i,n,r){Yk.reset(e,i,n,r),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Yk.next},this.context)},t.prototype._doReset=function(t){var e,i;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),M(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Yk=function(){function t(){return i>n?n++:null}function e(){var t=n%a*r+Math.ceil(n/a),e=n>=i?null:o>t?t:n;return n++,e}var i,n,r,o,a,s={reset:function(l,u,c,h){n=l,i=u,r=c,o=h,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),Uk=(X({number:function(t){return parseFloat(t)},time:function(t){return+Ai(t)},trim:function(t){return"string"==typeof t?G(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),Xk=(function(){function t(t,e){if("number"!=typeof e){var i="";Vi(i)}this._opFn=Uk[t],this._rvalFloat=Ri(e)}t.prototype.evaluate=function(t){return"number"==typeof t?this._opFn(t,this._rvalFloat):this._opFn(Ri(t),this._rvalFloat)}}(),function(){function t(t,e){var i="desc"===t;this._resultLT=i?1:-1,null==e&&(e=i?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var i=typeof t,n=typeof e,r="number"===i?t:Ri(t),o="number"===n?e:Ri(e),a=isNaN(r),s=isNaN(o);if(a&&(r=this._incomparable),s&&(o=this._incomparable),a&&s){var l="string"===i,u="string"===n;l&&(r=u?t:0),u&&(o=l?e:0)}return o>r?this._resultLT:r>o?-this._resultLT:0},t}()),Zk=(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ri(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i===this._rvalTypeof||"number"!==i&&"number"!==this._rvalTypeof||(e=Ri(t)===this._rvalFloat)}return this._isEQ?e:!e}}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return Il(t,e)},t}()),qk=X(),$k=function(){function t(t){this._sourceList=[],this._upstreamSignList=[],this._versionSignBase=0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[])},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length;if(Fl(i)){var o=i,a=void 0,s=void 0,l=void 0;if(r){var u=n[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=L(a)?ok:ek,e=[];var c=this._getSourceMetaRawOption(),h=l?l.metaRawOption:null,d=F(c.seriesLayoutBy,h?h.seriesLayoutBy:null),p=F(c.sourceHeader,h?h.sourceHeader:null),f=F(c.dimensions,h?h.dimensions:null);t=[dl(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s,o.get("encode",!0))]}else{var g=i;if(r){var v=this._applyTransform(n);t=v.sourceList,e=v.upstreamSignList}else{var y=g.get("source",!0);t=[dl(y,this._getSourceMetaRawOption(),null,null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(null!=n){var r="";1!==t.length&&Vl(r)}var o,a=[],s=[];return y(t,(function(t){t.prepareSource();var e=t.getSource(n||0),i="";null==n||e||Vl(i),a.push(e),s.push(t._getVersionSign())})),i?o=Rl(i,a,{datasetIndex:e.componentIndex}):null!=n&&(o=[fl(a[0])]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){var t=this._sourceList;if(!t.length)return!0;for(var e=this._getUpstreamSourceManagers(),i=0;i<e.length;i++){var n=e[i];if(n._isDirty()||this._upstreamSignList[i]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){return this._sourceList[t||0]},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Fl(t)){var e=Is(t);return e?[e.getSourceManager()]:[]}return m(As(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;if(Fl(n))t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=n;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),i=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:i}},t}(),Kk="line-height:1",Qk=[0,10,20,30],Jk=["","\n","\n\n","\n\n\n"],tS={section:{planLayout:function(t){var e=t.blocks.length,i=e>1||e>0&&!t.noHeader,n=0;y(t.blocks,(function(t){Wl(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;e>=n&&(n=e+(!i||e&&("section"!==t.type||t.noHeader)?0:1))})),t.__gapLevelBetweenSubBlocks=n},build:function(t,e,i,n){var r=e.noHeader,o=Ul(e),a=Gl(t,e,r?i:o.html,n);if(r)return a;var s=ds(e.header,"ordinal",t.useUTC),l=Hl(n,t.renderMode).nameStyle;return"richText"===t.renderMode?$l(t,s,l)+o.richText+a:Xl('<div style="'+l+";"+Kk+';">'+hs(s)+"</div>"+a,i)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,i,n){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,c=t.useUTC;if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),d=o?"":ds(l,"ordinal",c),p=e.valueType,f=a?[]:M(u)?m(u,(function(t,e){return ds(t,M(p)?p[e]:p,c)})):[ds(u,M(p)?p[0]:p,c)],g=!s||!o,v=!s&&o,y=Hl(n,r),x=y.nameStyle,b=y.valueStyle;return"richText"===r?(s?"":h)+(o?"":$l(t,d,x))+(a?"":Kl(t,f,g,v,b)):Xl((s?"":h)+(o?"":Zl(d,!s,x))+(a?"":ql(f,g,v,b)),i)}}}},eS=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Bi()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,r=fs({color:e,type:t,renderMode:i,markerId:n});return C(r)?r:(this.richTextStyles[n]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};M(e)?y(e,(function(t){return h(i,t)})):h(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},t}(),iS=sn(),nS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return i(e,t),e.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=Cl({count:ou,reset:au}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var n=iS(this).sourceManager=new $k(this);n.prepareSource();var r=this.getInitialData(t,i);lu(r,this),this.dataTask.context.data=r,iS(this).dataBeforeProcessed=r,nu(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var i=_s(this),n=i?ks(t):{},r=this.subType;Zw.hasClass(r)&&(r+="Series"),u(t,e.getTheme().get(this.subType)),u(t,this.getDefaultOption()),ji(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&ws(t,n,i)},e.prototype.mergeOption=function(t,e){t=u(this.option,t,!0),this.fillDataTextStyle(t.data);var i=_s(this);i&&ws(this.option,t,i);var n=iS(this).sourceManager;n.dirty(),n.prepareSource();var r=this.getInitialData(t,e);lu(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,iS(this).dataBeforeProcessed=r,nu(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!L(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&ji(t[i],"label",e)},e.prototype.getInitialData=function(){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=cu(this);if(e){var i=e.context.data;return null==t?i:i.getLinkedData(t)}return iS(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=cu(this);if(e){var i=e.context;i.outputData=t,e!==this.dataTask&&(i.data=t)}iS(this).data=t},e.prototype.getSource=function(){return iS(this).sourceManager.getSource()},e.prototype.getRawData=function(){return iS(this).dataBeforeProcessed},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e){return tu({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){if(jv.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel,r=pk.prototype.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i)for(var n=this.getData(e),r=0;r<t.length;r++){var o=t[r],a=iu(n,o);i[a]=!1,this._selectedDataIndicesMap[a]=-1}},e.prototype.toggleSelect=function(t,e){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],e)?this.unselect(i,e):this.select(i,e)},e.prototype.getSelectedDataIndices=function(){for(var t=this._selectedDataIndicesMap,e=w(t),i=[],n=0;n<e.length;n++){var r=t[e[n]];r>=0&&i.push(r)}return i},e.prototype.isSelected=function(t,e){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(e),r=iu(n,t);return i[r]||!1},e.prototype._innerSelect=function(t,e){var i,n,r=this.option.selectedMode,o=e.length;if(r&&o)if("multiple"===r)for(var a=this.option.selectedMap||(this.option.selectedMap={}),s=0;o>s;s++){var l=e[s],u=iu(t,l);a[u]=!0,this._selectedDataIndicesMap[u]=t.getRawIndex(l)}else if("single"===r||!0===r){var c=e[o-1];u=iu(t,c);this.option.selectedMap=(i={},i[u]=!0,i),this._selectedDataIndicesMap=(n={},n[u]=t.getRawIndex(c),n)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(i){var n=t.getRawDataItem(i);"object"==typeof n&&n.selected&&e.push(i)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Zw.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.useColorPaletteOnData=!1,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Zw);g(nS,Wk),g(nS,pk),xn(nS,Zw);var rS=function(){function t(){this.group=new Hm,this.uid=La("viewComponent")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.blurSeries=function(){},t}();yn(rS),kn(rS);var oS=sn(),aS=hu(),sS=function(){function t(){this.group=new Hm,this.uid=La("viewChart"),this.renderTask=Cl({plan:fu,reset:gu}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,i,n){pu(t.getData(),n,"emphasis")},t.prototype.downplay=function(t,e,i,n){pu(t.getData(),n,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},t.markUpdateMethod=function(t,e){oS(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();yn(sS,["dispose"]),kn(sS);var lS,uS={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},cS="\0__throttleOriginMethod",hS="\0__throttleRate",dS="\0__throttleType",pS=sn(),fS={itemStyle:Sn(gw,!0),lineStyle:Sn(dw,!0)},gS={lineStyle:"stroke",itemStyle:"fill"},vS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=t.getModel(n),o=xu(t,n),a=o(r),s=r.getShallow("decal");s&&(i.setVisual("decal",s),s.dirty=!0);var l=bu(t,n),u=a[l],c=T(u)?u:null;return(!a[l]||c)&&(a[l]=t.getColorFromPalette(t.name,null,e.getSeriesCount()),i.setVisual("colorFromPalette",!0)),i.setVisual("style",a),i.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c?(i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),r=h({},a);r[l]=c(n),e.setItemVisual(i,"style",r)}}):void 0}},yS=new mw,mS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=xu(t,n),o=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(t,e){var i=t.getRawDataItem(e);if(i&&i[n]){yS.option=i[n];var a=r(yS),s=t.ensureUniqueItemVisual(e,"style");h(s,a),yS.option.decal&&(t.setItemVisual(e,"decal",yS.option.decal),yS.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},xS={performRawSeries:!0,overallReset:function(t){var e=X();t.eachSeries((function(t){if(t.useColorPaletteOnData){var i=e.get(t.type);i||(i={},e.set(t.type,i)),pS(t).scope=i}})),t.eachSeries((function(e){if(e.useColorPaletteOnData&&!t.isSeriesFiltered(e)){var i=e.getRawData(),n={},r=e.getData(),o=pS(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=bu(e,a);r.each((function(t){var e=r.getRawIndex(t);n[e]=t})),i.each((function(t){var a=n[t],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=i.getName(t)||t+"",h=i.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},bS=Math.PI,_S=function(){function t(t,e,i,n){this._stageTaskMap=X(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=r?i.step:null,a=n&&n.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),r=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=X();t.eachSeries((function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;y(this._allHandlers,(function(n){var r=t.get(n.uid)||t.set(n.uid,{}),o="";W(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,r,e,i),n.overallReset&&this._createOverallStageTask(n,r,e,i)}),this)},t.prototype.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},t.prototype._performStageTasks=function(t,e,i,n){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}n=n||{};var o=!1,a=this;y(t,(function(t){if(!n.visualType||n.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var c,h=u.agentStubMap;h.each((function(t){r(n,t)&&(t.dirty(),c=!0)})),c&&u.dirty(),a.updatePayload(u,i);var d=a.getPerformArgs(u,n.block);h.each((function(t){t.perform(d)})),u.perform(d)&&(o=!0)}else l&&l.each((function(s){r(n,s)&&s.dirty();var l=a.getPerformArgs(s,n.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,i),s.perform(l)&&(o=!0)}))}})),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,i,n){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||Cl({plan:Tu,reset:Cu,count:Au}));l.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=X(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(r):l?i.eachRawSeriesByType(l,r):u&&u(i,n).each(r)},t.prototype._createOverallStageTask=function(t,e,i,n){function r(t){var e=t.uid,i=l.set(e,s&&s.get(e)||(d=!0,Cl({reset:ku,onDirty:Mu})));i.context={model:t,overallProgress:h},i.agent=a,i.__block=h,o._pipe(t,i)}var o=this,a=e.overallTask=e.overallTask||Cl({reset:wu});a.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=X(),u=t.seriesType,c=t.getTargetSeries,h=!0,d=!1,p="";W(!t.createOnAllSeries,p),u?i.eachRawSeriesByType(u,r):c?c(i,n).each(r):(h=!1,y(i.getSeries(),r)),d&&a.dirty()},t.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return T(t)&&(t={overallReset:t,seriesType:Du(t)}),t.uid=La("stageHandler"),e&&(t.visualType=e),t},t}(),wS=Iu(0),kS={},SS={};Pu(kS,vk),Pu(SS,kk),kS.eachSeriesByType=kS.eachRawSeriesByType=function(t){lS=t},kS.eachComponent=function(t){"series"===t.mainType&&t.subType&&(lS=t.subType)};var MS=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],TS={color:MS,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],MS]},CS="#B9B8CE",IS="#100C2A",AS=function(){return{axisLine:{lineStyle:{color:CS}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},DS=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],PS={darkMode:!0,color:DS,backgroundColor:IS,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:CS}},textStyle:{color:CS},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:CS}},dataZoom:{borderColor:"#71708A",textStyle:{color:CS},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:CS}},timeline:{lineStyle:{color:CS},label:{color:CS},controlStyle:{color:CS,borderColor:CS}},calendar:{itemStyle:{color:IS},dayLabel:{color:CS},monthLabel:{color:CS},yearLabel:{color:CS}},timeAxis:AS(),logAxis:AS(),valueAxis:AS(),categoryAxis:AS(),line:{symbol:"circle"},graph:{color:DS},gauge:{title:{color:CS},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:CS},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};PS.categoryAxis.splitLine.show=!1;var LS=X(),OS={registerMap:function(t,e,i){var n;if(M(e))n=e;else if(e.svg)n=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}];else{var r=e.geoJson||e.geoJSON;r&&!e.features&&(i=e.specialAreas,e=r),n=[{type:"geoJSON",source:e,specialAreas:i}]}return y(n,(function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var i=zS[e];i(t)})),LS.set(t,n)},retrieveMap:function(t){return LS.get(t)}},zS={geoJSON:function(t){var e=t.source;t.geoJSON=C(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=Lu(t.source)}},RS=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},i={},n={};if(C(t)){var r=fn(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};y(t,(function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(i[r]=t,s=!0),s||(n[r]=t)}))}return{cptQuery:e,dataQuery:i,otherQuery:n}},t.prototype.filter=function(t,e){function i(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,o=n.packedEvent,a=n.model,s=n.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return i(l,a,"mainType")&&i(l,a,"subType")&&i(l,a,"index","componentIndex")&&i(l,a,"name")&&i(l,a,"id")&&i(u,o,"name")&&i(u,o,"dataIndex")&&i(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),ES={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function i(e,i){var n=t.getRawValue(i),a=t.getDataParams(i);l&&e.setItemVisual(i,"symbol",r(n,a)),u&&e.setItemVisual(i,"symbolSize",o(n,a)),c&&e.setItemVisual(i,"symbolRotate",s(n,a))}var n=t.getData();if(t.legendSymbol&&n.setVisual("legendSymbol",t.legendSymbol),t.hasSymbolVisual){var r=t.get("symbol"),o=t.get("symbolSize"),a=t.get("symbolKeepAspect"),s=t.get("symbolRotate"),l=T(r),u=T(o),c=T(s),h=l||u||c,d=!l&&r?r:t.defaultSymbol,p=u?null:o,f=c?null:s;if(n.setVisual({legendSymbol:t.legendSymbol||d,symbol:d,symbolSize:p,symbolKeepAspect:a,symbolRotate:f}),!e.isSeriesFiltered(t))return{dataEach:h?i:null}}}},BS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function i(t,e){var i=t.getItemModel(e),n=i.getShallow("symbol",!0),r=i.getShallow("symbolSize",!0),o=i.getShallow("symbolRotate",!0),a=i.getShallow("symbolKeepAspect",!0);null!=n&&t.setItemVisual(e,"symbol",n),null!=r&&t.setItemVisual(e,"symbolSize",r),null!=o&&t.setItemVisual(e,"symbolRotate",o),null!=a&&t.setItemVisual(e,"symbolKeepAspect",a)}if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?i:null}}}},NS=2*Math.PI,FS=ab.CMD,VS=["top","right","bottom","left"],HS=[],jS=new Jy,WS=new Jy,GS=new Jy,YS=new Jy,US=new Jy,XS=[],ZS=new Jy,qS=["align","verticalAlign","width","height","fontSize"],$S=new By,KS=sn(),QS=sn(),JS=["x","y","rotation"],tM=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,i,n,r){var o=n.style,a=n.__hostTarget,s=a.textConfig||{},l=n.getComputedTransform(),u=n.getBoundingRect().plain();lm.applyTransform(u,u,l),l?$S.setLocalTransform(l):($S.x=$S.y=$S.rotation=$S.originX=$S.originY=0,$S.scaleX=$S.scaleY=1);var c,h=n.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();lm.applyTransform(c,c,d)}var p=c&&h.getTextGuideLine();this._labelList.push({label:n,labelLine:p,seriesModel:i,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:p&&p.ignore,x:$S.x,y:$S.y,rotation:$S.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var i=t.__model,n=i.get("labelLayout");(T(n)||w(n).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=Ob(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,i,r,n)}))},t.prototype.updateLayoutConfig=function(t){function e(t,e){return function(){Hu(t,e)}}for(var i=t.getWidth(),n=t.getHeight(),r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u="function"==typeof o.layoutOption?o.layoutOption(Ju(o,s)):o.layoutOption,u=u||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=bi(u.x,i),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=bi(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),h=!1)}var p=KS(a);p.needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation;for(var f=0;f<qS.length;f++){var g=qS[f];a.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex){var y=o.seriesModel.getData(o.dataType);v=y.getItemModel(o.dataIndex)}a.on("drag",e(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),i=t.getHeight(),n=Xu(this._labelList),r=b(n,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=b(n,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));qu(r,0,e),$u(o,0,i);var a=b(n,(function(t){return t.layoutOption.hideOverlap}));Ku(a)},t.prototype.processLabelsOverall=function(){var t=this;y(this._chartViewList,(function(e){var i=e.__model,n=e.ignoreLabelLineUpdate,r=i.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore)return!0;var o=!n,a=e.getTextContent();!o&&a&&(o=KS(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,i),r&&t._animateLabels(e,i)}))}))},t.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=Ob(t),r=n.dataIndex;if(i&&null!=r){var o=e.getData(n.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var c=a.getModel("labelLine");Yu(t,Uu(a),s),Hu(t,c)}},t.prototype._animateLabels=function(t,e){var i=t.getTextContent(),n=t.getTextGuideLine();if(i&&!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!aa(t)){var r=KS(i),o=r.oldLayout,a=Ob(t),s=a.dataIndex,l={x:i.x,y:i.y,rotation:i.rotation},u=e.getData(a.dataType);if(o){i.attr(o);var c=t.prevStates;c&&(p(c,"select")>=0&&i.attr(r.oldLayoutSelect),p(c,"emphasis")>=0&&i.attr(r.oldLayoutEmphasis)),ea(i,l,e,s)}else if(i.attr(l),!lw(i).valueAnimation){var h=F(i.style.opacity,1);i.style.opacity=0,ia(i,{style:{opacity:h}},e,s)}if(r.oldLayout=l,i.states.select){var d=r.oldLayoutSelect={};tc(d,l,JS),tc(d,i.states.select,JS)}if(i.states.emphasis){var f=r.oldLayoutEmphasis={};tc(f,l,JS),tc(f,i.states.emphasis,JS)}Pa(i,s,u,e,e)}if(n&&!n.ignore&&!n.invisible){r=QS(n),o=r.oldLayout;var g={points:n.shape.points};o?(n.attr({shape:o}),ea(n,{shape:g},e)):(n.setShape(g),n.style.strokePercent=0,ia(n,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),eM=Math.round(9*Math.random()),iM=function(){function t(){this._id="__ec_inner_"+eM++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var i=this._guard(t);return"function"==typeof Object.defineProperty?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),nM=yb.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+o),t.closePath()}}),rM=yb.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),oM=yb.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=n-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;t.moveTo(i-c,l+s),t.arc(i,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+c-h*p,l+s+d*p,i,n-f,i,n),t.bezierCurveTo(i,n-f,i-c+h*p,l+s+d*p,i-c,l+s),t.closePath()}}),aM=yb.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,o=e.y,a=n/3*2;t.moveTo(r,o),t.lineTo(r+a,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-a,o+i),t.lineTo(r,o),t.closePath()}}),sM={line:Tb,rect:Tb,roundRect:Tb,square:Tb,circle:c_,diamond:rM,pin:oM,arrow:aM,triangle:nM},lM={line:function(t,e,i,n,r){var o=2;r.x=t,r.y=e+n/2-o/2,r.width=i,r.height=o},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var o=Math.min(i,n);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},uM={};y(sM,(function(t,e){uM[e]=new t}));var cM=yb.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=Ve(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=uM[n];r||(n="rect",r=uM[n]),lM[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}}),hM=new ab(!0),dM=["shadowBlur","shadowOffsetX","shadowOffsetY"],pM=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],fM=1,gM=2,vM=3,yM=4,mM=new iM,xM=new jy(100),bM=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],_M=W,wM=y,kM=T,SM=D,MM=p,TM="undefined"!=typeof window,CM="5.0.2",IM={zrender:"5.0.4"},AM=1,DM=800,PM=900,LM=1e3,OM=2e3,zM=5e3,RM=1e3,EM=1100,BM=2e3,NM=3e3,FM=4e3,VM=4500,HM=4600,jM=5e3,WM=6e3,GM=7e3,YM={PROCESSOR:{FILTER:LM,SERIES_FILTER:DM,STATISTIC:zM},VISUAL:{LAYOUT:RM,PROGRESSIVE_LAYOUT:EM,GLOBAL:BM,CHART:NM,POST_CHART_LAYOUT:HM,COMPONENT:FM,BRUSH:jM,CHART_ITEM:VM,ARIA:WM,DECAL:GM}},UM="__flagInMainProcess",XM="__optionUpdated",ZM="__needsUpdateStatus",qM=/^[a-zA-Z0-9_]+$/,$M="__connectUpdateStatus",KM=0,QM=1,JM=2,tT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(py),eT=tT.prototype;eT.on=Fc("on"),eT.off=Fc("off");var iT,nT,rT,oT,aT,sT,lT,uT,cT,hT,dT,pT,fT,gT,vT,yT,mT,xT,bT,_T,wT,kT=function(e){function n(t,i,n){function r(t,e){return t.__prio-e.__prio}var o=e.call(this,new RS)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],n=n||{},"string"==typeof i&&(i=OT[i]),o._dom=t;var a="canvas",s=!1,u=o._zr=pi(t,{renderer:n.renderer||a,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,useDirtyRect:null==n.useDirtyRect?s:n.useDirtyRect});o._throttledZrFlush=vu(iy(u.flush,u),17),i=l(i),i&&ll(i,!0),o._theme=i,o._locale=Ba(n.locale||Cw),o._coordSysMgr=new Mk;var c=o._api=mT(o);return Je(LT,r),Je(IT,r),o._scheduler=new _S(o,c,IT,LT),o._messageCenter=new tT,o._labelManager=new tM,o._initEvents(),o.resize=iy(o.resize,o),u.animation.on("frame",o._onframe,o),hT(u,o),dT(u,o),Y(o),o}return i(n,e),n.prototype._onframe=function(){if(!this._disposed){wT(this);var t=this._scheduler;if(this[XM]){var e=this[XM].silent;this[UM]=!0,iT(this),oT.update.call(this),this._zr.flush(),this[UM]=!1,this[XM]=!1,uT.call(this,e),cT.call(this,e)}else if(t.unfinished){var i=AM,n=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),sT(this,n),t.performVisualTasks(n),vT(this,this._model,r,"remain"),i-=+new Date-o}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.setOption=function(t,e,i){if(!this._disposed){var n,r,o;if(SM(e)&&(i=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[UM]=!0,!this._model||e){var a=new Ck(this._api),s=this._theme,l=this._model=new vk;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},AT),bT(this,o),i?(this[XM]={silent:n},this[UM]=!1,this.getZr().wakeUp()):(iT(this),oT.update.call(this),this._zr.flush(),this[XM]=!1,this[UM]=!1,uT.call(this,n),cT.call(this,n))}},n.prototype.setTheme=function(){t.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||TM&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){if(jv.canvasSupported){t=h({},t||{}),t.pixelRatio=t.pixelRatio||this.getDevicePixelRatio(),t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},n.prototype.getSvgDataURL=function(){if(jv.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return y(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;wM(e,(function(t){i.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return wM(n,(function(t){t.group.ignore=!1})),o}},n.prototype.getConnectedDataURL=function(t){if(!this._disposed&&jv.canvasSupported){var e="svg"===t.type,i=this.group,n=Math.min,r=Math.max,o=1/0;if(ET[i]){var a=o,s=o,u=-o,c=-o,h=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();y(RT,(function(o){if(o.group===i){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.getRenderedCanvas(l(t)),p=o.getDom().getBoundingClientRect();a=n(p.left,a),s=n(p.top,s),u=r(p.right,u),c=r(p.bottom,c),h.push({dom:d,left:p.left,top:p.top})}})),a*=d,s*=d,u*=d,c*=d;var p=u-a,f=c-s,g=ey(),v=pi(g,{renderer:e?"svg":"canvas"});if(v.resize({width:p,height:f}),e){var m="";return wM(h,(function(t){var e=t.left-a,i=t.top-s;m+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new Tb({shape:{x:0,y:0,width:p,height:f},style:{fill:t.connectedBackgroundColor}})),wM(h,(function(t){var e=new wb({style:{x:t.left*d-a,y:t.top*d-s,image:t.dom}});v.add(e)})),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},n.prototype.convertToPixel=function(t,e){return aT(this,"convertToPixel",t,e)},n.prototype.convertFromPixel=function(t,e){return aT(this,"convertFromPixel",t,e)},n.prototype.containPixel=function(t,e){if(!this._disposed){var i,n=this._model,r=ln(n,t);return y(r,(function(t,n){n.indexOf("Models")>=0&&y(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i=i||!!r.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i=i||o.containPoint(e,t))}}),this)}),this),!!i}},n.prototype.getVisual=function(t,e){var i=this._model,n=ln(i,t,{defaultMainType:"series"}),r=n.seriesModel,o=r.getData(),a=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?o.indexOfRawIndex(n.dataIndex):null;return null!=a?Ou(o,a,e):zu(o,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t=this;wM(MT,(function(e){var i=function(i){var n,r=t.getModel(),o=i.target,a="globalout"===e;if(a?n={}:o&&nc(o,(function(t){var e=Ob(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(n=h({},e.eventData),!0):void 0}),!0),n){var s=n.componentType,l=n.componentIndex;("markLine"===s||"markPoint"===s||"markArea"===s)&&(s="series",l=n.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];n.event=i,n.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},t.trigger(e,n)}};i.zrEventfulCallAtLast=!0,t._zr.on(e,i,t)})),wM(CT,(function(e,i){t._messageCenter.on(i,(function(t){this.trigger(i,t)}),t)})),wM(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),ic(this._messageCenter,this,this._api)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,cn(this.getDom(),FT,"");var t=this._api,e=this._model;wM(this._componentsViews,(function(i){i.dispose(e,t)})),wM(this._chartsViews,(function(i){i.dispose(e,t)})),this._zr.dispose(),delete RT[this.id]}},n.prototype.resize=function(t){if(!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[UM]=!0,i&&iT(this),oT.update.call(this,{type:"resize",animation:{duration:0}}),this[UM]=!1,uT.call(this,n),cT.call(this,n)}}},n.prototype.showLoading=function(t,e){if(!this._disposed&&(SM(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),zT[t])){var i=zT[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},n.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=h({},t);return e.type=CT[t.type],e},n.prototype.dispatchAction=function(t,e){if(!this._disposed&&(SM(e)||(e={silent:!!e}),TT[t.type]&&this._model)){if(this[UM])return void this._pendingActions.push(t);var i=e.silent;lT.call(this,t,i);var n=e.flush;n?this._zr.flush():!1!==n&&jv.browser.weChat&&this._throttledZrFlush(),uT.call(this,i),cT.call(this,i)}},n.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},n.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(e);n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){for(var e=[],i=t.currentStates,n=0;n<i.length;n++){var r=i[n];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Fb&&t.states.emphasis?e.push("emphasis"):t.hoverState===Nb&&t.states.blur&&e.push("blur"),t.useStates(e)}function e(t,e){var i=t._zr,n=i.storage,r=0;n.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!jv.node&&!jv.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.group.traverse((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function n(t,e){var i=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||(t.style.blend=i),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.style.blend=i}))}))}function r(t,e){if(!t.preventAutoZ){var i=t.get("z"),n=t.get("zlevel");e.group.traverse((function(t){if(!t.isGroup){null!=i&&(t.z=i),null!=n&&(t.zlevel=n);var e=t.getTextContent(),r=t.getTextGuideLine();if(e&&(e.z=t.z,e.zlevel=t.zlevel,e.z2=t.z2+2),r){var o=t.textGuideLineConfig&&t.textGuideLineConfig.showAbove;r.z=t.z,r.zlevel=t.zlevel,r.z2=t.z2+(o?1:-1)}}}))}}function o(t,e){e.group.traverse((function(t){if(!aa(t)){var e=t.getTextContent(),i=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function a(e,i){var n=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=n.get("duration"),a=o>0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;i.group.traverse((function(e){if(e.states&&e.states.emphasis){if(aa(e))return;if(e instanceof yb&&So(e),e.__dirty){var i=e.prevStates;i&&e.useStates(i)}if(r){e.stateTransition=a;var n=e.getTextContent(),o=e.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}}))}iT=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),nT(t,!0),nT(t,!1),e.plan()},nT=function(t,e){function i(t){var i=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!i&&a[u];if(!c){var h=fn(t.type),d=e?rS.getClass(h.main,h.sub):sS.getClass(h.sub);c=new d,c.init(n,l),a[u]=c,o.push(c),s.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,l)}for(var n=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;e?n.eachComponent((function(t,e){"series"!==t&&i(e)})):n.eachSeries(i);for(u=0;u<o.length;){var c=o[u];c.__alive?u++:(!e&&c.renderTask.dispose(),s.remove(c.group),c.dispose(n,l),o.splice(u,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},rT=function(t,e,i,n,r){function o(n){n&&n.__alive&&n[e]&&n[e](n.__model,a,t._api,i)}var a=t._model;if(a.setUpdatePayload(i),n){var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};r&&(l.subType=r);var u,c=i.excludeSeriesId;null!=c&&(u=X(),wM(Hi(c),(function(t){var e=tn(t,null);null!=e&&u.set(e,!0)}))),a&&a.eachComponent(l,(function(e){u&&null!=u.get(e.id)||(ko(i)&&!i.notBlur?e instanceof nS&&ho(e,i,t._api):wo(i)&&e instanceof nS&&(po(e,i,t._api),fo(e),_T(t)),o(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId]))}),t)}else wM([].concat(t._componentsViews).concat(t._chartsViews),o)},oT={prepareAndUpdate:function(t){iT(this),oT.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,r=this._coordSysMgr,o=this._scheduler;if(e){e.setUpdatePayload(t),o.restoreData(e,t),o.performSeriesTasks(e),r.create(e,i),o.performDataProcessorTasks(e,t),sT(this,e),r.update(e,i),pT(e),o.performVisualTasks(e,t),fT(this,e,i,t);var a=e.get("backgroundColor")||"transparent",s=e.get("darkMode");if(jv.canvasSupported)n.setBackgroundColor(a),null!=s&&"auto"!==s&&n.setDarkMode(s);else{var l=ae(a);a=ge(l,"rgb"),0===l[3]&&(a="transparent")}yT(e,i)}},updateTransform:function(t){var e=this,i=this._model,n=this._api;if(i){i.setUpdatePayload(t);var r=[];i.eachComponent((function(o,a){if("series"!==o){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,n,t);l&&l.update&&r.push(s)}else r.push(s)}}));var o=X();i.eachSeries((function(r){var a=e._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,i,n,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)})),pT(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:o}),vT(this,i,n,t,o),yT(i,this._api)}},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),sS.markUpdateMethod(t,"updateView"),pT(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),fT(this,this._model,this._api,t),yT(e,this._api))},updateVisual:function(t){var e=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries((function(t){t.getData().clearAllVisual()})),sS.markUpdateMethod(t,"updateVisual"),pT(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent((function(n,r){if("series"!==n){var o=e.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,e._api,t)}})),i.eachSeries((function(n){var r=e._chartsMap[n.__viewId];r.updateVisual(n,i,e._api,t)})),yT(i,this._api))},updateLayout:function(t){oT.update.call(this,t)}},aT=function(t,e,i,n){if(!t._disposed)for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=ln(o,i),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,n)))return r}},sT=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries((function(t){n.updateStreamModes(t,i[t.__viewId])}))},lT=function(t,e){var i=this,n=this.getModel(),r=t.type,o=t.escapeConnect,a=TT[r],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&fn(l[0]);this[UM]=!0;var p=[t],f=!1;t.batch&&(f=!0,p=m(t.batch,(function(e){return e=d(h({},e),t),e.batch=null,e})));var g,v=[],y=wo(t),x=ko(t)||y;if(wM(p,(function(t){g=a.action(t,i._model,i._api),g=g||h({},t),g.type=s.event||g.type,v.push(g),x?(rT(i,u,t,"series"),_T(i)):c&&rT(i,u,t,c.main,c.sub)})),"none"===u||x||c||(this[XM]?(iT(this),oT.update.call(this,t),this[XM]=!1):oT[u].call(this,t)),g=f?{type:s.event||r,escapeConnect:o,batch:v}:v[0],this[UM]=!1,!e){var b=this._messageCenter;if(b.trigger(g.type,g),y){var _={type:"selectchanged",escapeConnect:o,selected:go(n),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};b.trigger(_.type,_)}}},uT=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();lT.call(this,i,t)}},cT=function(t){!t&&this.trigger("updated")},hT=function(t,e){t.on("rendered",(function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[XM]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},dT=function(t,e){t.on("mouseover",(function(t){var i=t.target,n=nc(i,bo);if(n){var r=Ob(n);co(r.seriesIndex,r.focus,r.blurScope,e._api,!0),to(n,t),_T(e)}})).on("mouseout",(function(t){var i=t.target,n=nc(i,bo);if(n){var r=Ob(n);co(r.seriesIndex,r.focus,r.blurScope,e._api,!1),eo(n,t),_T(e)}})).on("click",(function(t){var i=t.target,n=nc(i,(function(t){return null!=Ob(t).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",o=Ob(n);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},pT=function(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))},fT=function(t,e,i,n){gT(t,e,i,n),wM(t._chartsViews,(function(t){t.__alive=!1})),vT(t,e,i,n),wM(t._chartsViews,(function(t){t.__alive||t.remove(e,i)}))},gT=function(t,e,i,n,s){wM(s||t._componentsViews,(function(t){var s=t.__model;o(s,t),t.render(s,e,i,n),r(s,t),a(s,t)}))},vT=function(t,i,s,l,u){var c=t._scheduler,h=t._labelManager;h.clearLabels();var d=!1;i.eachSeries((function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var r=i.renderTask;c.updatePayload(r,l),o(e,i),u&&u.get(e.uid)&&r.dirty(),r.perform(c.getPerformArgs(r))&&(d=!0),e.__transientTransitionOpt=null,i.group.silent=!!e.get("silent"),n(e,i),fo(e),h.addLabelsOfSeries(i)})),c.unfinished=d||c.unfinished,h.updateLayoutConfig(s),h.layout(s),h.processLabelsOverall(),i.eachSeries((function(e){var i=t._chartsMap[e.__viewId];r(e,i),a(e,i)})),e(t,i)},yT=function(t,e){wM(PT,(function(i){i(t,e)}))},_T=function(t){t[ZM]=!0,t.getZr().wakeUp()},wT=function(e){e[ZM]&&(e.getZr().storage.traverse((function(e){aa(e)||t(e)})),e[ZM]=!1)},mT=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}},n.prototype.enterEmphasis=function(e,i){io(e,i),_T(t)},n.prototype.leaveEmphasis=function(e,i){no(e,i),_T(t)},n.prototype.enterBlur=function(e){ro(e),_T(t)},n.prototype.leaveBlur=function(e){oo(e),_T(t)},n.prototype.enterSelect=function(e){ao(e),_T(t)},n.prototype.leaveSelect=function(e){so(e),_T(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(kk))(t)},xT=function(t){function e(t,e){for(var i=0;i<t.length;i++){var n=t[i];n[$M]=e}}wM(CT,(function(i,n){t._messageCenter.on(n,(function(i){if(ET[t.group]&&t[$M]!==KM){if(i&&i.escapeConnect)return;var n=t.makeActionFromEvent(i),r=[];wM(RT,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,KM),wM(r,(function(t){t[$M]!==QM&&t.dispatchAction(n)})),e(r,JM)}}))}))},bT=function(t,e){var i=t._model;y(Hi(e),(function(t){var e,n=t.from,r=t.to;null==r&&Vi(e);var o={includeMainTypes:["series"],enableAll:!1,enableNone:!1},a=n?ln(i,n,o):null,s=ln(i,r,o),l=s.seriesModel;null==l&&(e=""),a&&a.seriesModel!==l&&(e=""),null!=e&&Vi(e),l.__transientTransitionOpt={from:n?n.dimension:null,to:r.dimension,dividingMethod:t.dividingMethod}}))}}(),n}(py),ST=kT.prototype;ST.on=Nc("on"),ST.off=Nc("off"),ST.one=function(t,e,i){function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)}var r=this;this.on.call(this,t,n,i)};var MT=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],TT={},CT={},IT=[],AT=[],DT=[],PT=[],LT=[],OT={},zT={},RT={},ET={},BT=+new Date-0,NT=+new Date-0,FT="_echarts_instance_",VT=Wc,HT=[],jT=zl;ih(BM,vS),ih(VM,mS),ih(VM,xS),ih(BM,ES),ih(VM,BS),ih(GM,Bc),Zc(ll),qc(PM,ul),rh("default",_u),Qc({type:Gb,event:Gb,update:Gb},K),Qc({type:Yb,event:Yb,update:Yb},K),Qc({type:Ub,event:Ub,update:Ub},K),Qc({type:Xb,event:Xb,update:Xb},K),Qc({type:Zb,event:Zb,update:Zb},K),Xc("light",TS),Xc("dark",PS);var WT,GT,YT,UT,XT,ZT,qT,$T,KT,QT,JT,tC,eC,iC,nC={},rC=function(){function t(t,e,i,n,r,o){this._old=t,this._new=e,this._oldKeyGetter=i||uh,this._newKeyGetter=n||uh,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=n[o],s=i[a],l=lh(s);if(l>1){var u=s.shift();1===s.length&&(i[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(i[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,i)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},r=[],o=[];this._initIndexMap(t,i,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=i[s],u=n[s],c=lh(l),h=lh(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),n[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),n[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),n[s]=null;else if(c>1)for(var d=0;c>d;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e[n],o=lh(r);if(o>1)for(var a=0;o>a;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[n]=null}},t.prototype._initIndexMap=function(t,e,i,n){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[n](t[o],o);if(r||(i[o]=a),e){var s=e[a],l=lh(s);0===l?(e[a]=o,r&&i.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),oC=function(){function t(t){this.otherDims={},null!=t&&h(this,t)}return t}(),aC=Math.floor,sC=D,lC=m,uC="undefined",cC=-1,hC="e\0\0",dC={float:typeof Float64Array===uC?Array:Float64Array,int:typeof Int32Array===uC?Array:Int32Array,ordinal:Array,number:Array,time:Array},pC=typeof Uint32Array===uC?Array:Uint32Array,fC=typeof Int32Array===uC?Array:Int32Array,gC=typeof Uint16Array===uC?Array:Uint16Array,vC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx","_nameRepeatCount"],yC=["_extent","_approximateExtent","_rawExtent"],mC=function(){function t(t,e){this.type="list",this._count=0,this._rawCount=0,this._storage={},this._storageArr=[],this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawExtent={},this._extent={},this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!0,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"],this.getRawIndex=XT,t=t||["x","y"];for(var i={},n=[],r={},o=0;o<t.length;o++){var a=t[o],s=C(a)?new oC({name:a}):a instanceof oC?a:new oC(a),l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0);var u=s.otherDims=s.otherDims||{};n.push(l),i[l]=s,s.index=o,s.createInvertedIndices&&(r[l]=[]),0===u.itemName&&(this._nameDimIdx=o,this._nameOrdinalMeta=s.ordinalMeta),0===u.itemId&&(this._idDimIdx=o,this._idOrdinalMeta=s.ordinalMeta)}this.dimensions=n,this._dimensionInfos=i,this.hostModel=e,this._dimensionsSummary=ch(this),this._invertedIndicesMap=r,this.userOutput=this._dimensionsSummary.userOutput}return t.prototype.getDimension=function(t){return("number"==typeof t||!isNaN(t)&&!this._dimensionInfos.hasOwnProperty(t))&&(t=this.dimensions[t]),t},t.prototype.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},t.prototype.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var i=this._dimensionsSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimensionsSummary,i=e.encode[t];return(i||[]).slice()},t.prototype.initData=function(t,e,i){var n=hl(t)||v(t),r=n?new Rk(t,this.dimensions.length):t;this._rawData=r;var o=r.getSource().sourceFormat;this._storage={},this._indices=null,this._dontMakeIdFromName=null!=this._idDimIdx||o===ok||!!r.fillStorage,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},i||(this.hasItemOption=!1),this.defaultDimValueGetter=WT[o],this._dimValueGetter=i=i||this.defaultDimValueGetter,this._dimValueGetterArrayRows=WT.arrayRows,this._rawExtent={},this._initDataFromProvider(0,r.count()),r.pure&&(this.hasItemOption=!1)},t.prototype.getProvider=function(){return this._rawData},t.prototype.appendData=function(t){var e=this._rawData,i=this.count();e.appendData(t);var n=e.count();e.persistent||(n+=i),this._initDataFromProvider(i,n,!0)},t.prototype.appendValues=function(t,e){for(var i=this._storage,n=this.dimensions,r=n.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e?e.length:0),l=0;r>l;l++){var u=n[l];o[u]||(o[u]=tC()),UT(i,this._dimensionInfos[u],s,!0)}for(var c=lC(n,(function(t){return o[t]})),h=this._storageArr=lC(n,(function(t){return i[t]})),d=[],p=a;s>p;p++){for(var f=p-a,g=0;r>g;g++){u=n[g];var v=this._dimValueGetterArrayRows(t[f]||d,u,f,g);h[g][p]=v;var y=c[g];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}e&&(this._nameList[p]=e[f],this._dontMakeIdFromName||KT(this,p))}this._rawCount=this._count=s,this._extent={},GT(this)},t.prototype._initDataFromProvider=function(t,e,i){if(!(t>=e)){for(var n=this._rawData,r=this._storage,o=this.dimensions,a=o.length,s=this._dimensionInfos,l=this._nameList,u=this._idList,c=this._rawExtent,h=n.getSource().sourceFormat,d=h===ek,p=0;a>p;p++){var f=o[p];c[f]||(c[f]=tC()),UT(r,s[f],e,i)}var g=this._storageArr=lC(o,(function(t){return r[t]})),v=lC(o,(function(t){return c[t]}));if(n.fillStorage)n.fillStorage(t,e,g,v);else for(var y=[],m=t;e>m;m++){y=n.getItem(m,y);for(var x=0;a>x;x++){f=o[x];var b=g[x],_=this._dimValueGetter(y,f,m,x);b[m]=_;var w=v[x];_<w[0]&&(w[0]=_),_>w[1]&&(w[1]=_)}if(d&&!n.pure&&y){var k=y.name;null==l[m]&&null!=k&&(l[m]=tn(k,null));var S=y.id;null==u[m]&&null!=S&&(u[m]=tn(S,null))}this._dontMakeIdFromName||KT(this,m)}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent={},GT(this)}},t.prototype.count=function(){return this._count},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var r=0;n>r;r++)t[r]=e[r]}else t=new i(e.buffer,0,n)}else{i=YT(this);t=new i(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.getByDimIdx=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._storageArr[t];return i?i[this.getRawIndex(e)]:NaN},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._storage[t];return i?i[this.getRawIndex(e)]:NaN},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._storage[t];return i?i[e]:NaN},t.prototype.getValues=function(t,e){var i=[];M(t)||(e=t,t=this.dimensions);for(var n=0,r=t.length;r>n;n++)i.push(this.get(t[n],e));return i},t.prototype.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,i=0,n=e.length;n>i;i++)if(isNaN(this.get(e[i],t)))return!1;return!0},t.prototype.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],i=tC();if(!e)return i;var n,r=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(n=this._extent[t])return n.slice();n=i;for(var a=n[0],s=n[1],l=0;r>l;l++){var u=this.getRawIndex(l),c=e[u];a>c&&(a=c),c>s&&(s=c)}return n=[a,s],this._extent[t]=n,n},t.prototype.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){sC(t)?h(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getSum=function(t){var e=this._storage[t],i=0;if(e)for(var n=0,r=this.count();r>n;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(t){var e=[];this.each(t,(function(t){isNaN(t)||e.push(t)}));var i=e.sort((function(t,e){return t-e})),n=this.count();return 0===n?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},t.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i[e];return null==n||isNaN(n)?cC:n},t.prototype.indexOfName=function(t){for(var e=0,i=this.count();i>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,r=this._count-1;r>=n;){var o=(n+r)/2|0;if(e[o]<t)n=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,i){var n=this._storage,r=n[t],o=[];if(!r)return o;null==i&&(i=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();c>u;u++){var h=this.getRawIndex(u),d=e-r[h],p=Math.abs(d);i>=p&&((a>p||p===a&&d>=0&&0>s)&&(a=p,s=d,l=0),d===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i<this.dimensions.length;i++){var n=this.dimensions[i];e.push(this.get(n,t))}return e},t.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return null==i&&null!=this._nameDimIdx&&(i=$T(this,this._nameDimIdx,this._nameOrdinalMeta,e)),null==i&&(i=""),i},t.prototype.getId=function(t){return qT(this,this.getRawIndex(t))},t.prototype.each=function(t,e,i,n){var r=this;if(this._count){"function"==typeof t&&(n=i,i=e,e=t,t=[]);for(var o=i||n||this,a=lC(QT(t),this.getDimension,this),s=a.length,l=lC(a,(function(t){return r._dimensionInfos[t].index})),u=this._storageArr,c=0,h=this.count();h>c;c++){var d=this.getRawIndex(c);switch(s){case 0:e.call(o,c);break;case 1:e.call(o,u[l[0]][d],c);break;case 2:e.call(o,u[l[0]][d],u[l[1]][d],c);break;default:for(var p=0,f=[];s>p;p++)f[p]=u[l[p]][d];f[p]=c,e.apply(o,f)}}}},t.prototype.filterSelf=function(t,e,i,n){var r=this;if(this._count){"function"==typeof t&&(n=i,i=e,e=t,t=[]);for(var o=i||n||this,a=lC(QT(t),this.getDimension,this),s=this.count(),l=YT(this),u=new l(s),c=[],h=a.length,d=0,p=lC(a,(function(t){return r._dimensionInfos[t].index})),f=p[0],g=this._storageArr,v=0;s>v;v++){var y=void 0,m=this.getRawIndex(v);if(0===h)y=e.call(o,v);else if(1===h){var x=g[f][m];y=e.call(o,x,v)}else{for(var b=0;h>b;b++)c[b]=g[p[b]][m];c[b]=v,y=e.apply(o,c)}y&&(u[d++]=m)}return s>d&&(this._indices=u),this._count=d,this._extent={},this.getRawIndex=this._indices?ZT:XT,this}},t.prototype.selectRange=function(t){var e=this,i=this._count;if(i){var n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(r);var o=n.length;if(o){var a=this.count(),s=YT(this),l=new s(a),u=0,c=n[0],h=lC(n,(function(t){return e._dimensionInfos[t].index})),d=t[c][0],p=t[c][1],f=this._storageArr,g=!1;if(!this._indices){var v=0;if(1===o){for(var y=f[h[0]],m=0;i>m;m++){var x=y[m];(x>=d&&p>=x||isNaN(x))&&(l[u++]=v),v++}g=!0}else if(2===o){y=f[h[0]];var b=f[h[1]],_=t[n[1]][0],w=t[n[1]][1];for(m=0;i>m;m++){x=y[m];var k=b[m];(x>=d&&p>=x||isNaN(x))&&(k>=_&&w>=k||isNaN(k))&&(l[u++]=v),v++}g=!0}}if(!g)if(1===o)for(m=0;a>m;m++){var S=this.getRawIndex(m);x=f[h[0]][S];(x>=d&&p>=x||isNaN(x))&&(l[u++]=S)}else for(m=0;a>m;m++){for(var M=!0,T=(S=this.getRawIndex(m),0);o>T;T++){var C=n[T];x=f[h[T]][S];(x<t[C][0]||x>t[C][1])&&(M=!1)}M&&(l[u++]=this.getRawIndex(m))}return a>u&&(this._indices=l),this._count=u,this._extent={},this.getRawIndex=this._indices?ZT:XT,this}}},t.prototype.mapArray=function(t,e,i,n){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),i),r},t.prototype.map=function(t,e,i,n){var r=i||n||this,o=lC(QT(t),this.getDimension,this),a=JT(this,o),s=a._storage;a._indices=this._indices,a.getRawIndex=a._indices?ZT:XT;for(var l=[],u=o.length,c=this.count(),h=[],d=a._rawExtent,p=0;c>p;p++){for(var f=0;u>f;f++)h[f]=this.get(o[f],p);h[u]=p;var g=e&&e.apply(r,h);if(null!=g){"object"!=typeof g&&(l[0]=g,g=l);for(var v=this.getRawIndex(p),y=0;y<g.length;y++){var m=o[y],x=g[y],b=d[m],_=s[m];_&&(_[v]=x),x<b[0]&&(b[0]=x),x>b[1]&&(b[1]=x)}}}return a},t.prototype.downSample=function(t,e,i,n){for(var r=JT(this,[t]),o=r._storage,a=[],s=aC(1/e),l=o[t],u=this.count(),c=r._rawExtent[t],h=new(YT(this))(u),d=0,p=0;u>p;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;s>f;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var v=i(a),y=this.getRawIndex(Math.min(p+n(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[d++]=y}return r._count=d,r._indices=h,r.getRawIndex=ZT,r},t.prototype.lttbDownSample=function(t,e){var i,n,r,o=JT(this,[]),a=o._storage,s=a[t],l=this.count(),u=new(YT(this))(l),c=0,h=aC(1/e),d=this.getRawIndex(0);u[c++]=d;for(var p=1;l-1>p;p+=h){for(var f=Math.min(p+h,l-1),g=Math.min(p+2*h,l),v=(g+f)/2,y=0,m=f;g>m;m++){var x=this.getRawIndex(m),b=s[x];isNaN(b)||(y+=b)}y/=g-f;var _=p,w=Math.min(p+h,l),k=p-1,S=s[d];i=-1,r=_;for(m=_;w>m;m++){x=this.getRawIndex(m),b=s[x];isNaN(b)||(n=Math.abs((k-v)*(b-S)-(k-m)*(y-S)),n>i&&(i=n,r=x))}u[c++]=r,d=r}return u[c++]=this.getRawIndex(l-1),o._count=c,o._indices=u,o.getRawIndex=ZT,o},t.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new mw(i,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new rC(t?t.getIndices():[],this.getIndices(),(function(e){return qT(t,e)}),(function(t){return qT(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},sC(t)?h(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return null==n?this.getVisual(e):n},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var r=n[e];return null==r&&(r=this.getVisual(e),M(r)?r=r.slice():sC(r)&&(r=h({},r)),n[e]=r),r},t.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,sC(e)?h(n,e):n[e]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){if(sC(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?h(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel;if(e){var n=Ob(e);n.dataIndex=t,n.dataType=this.dataType,n.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(eC,e)}this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){y(this._graphicEls,(function(i,n){i&&t&&t.call(e,i,n)}))},t.prototype.cloneShallow=function(e){if(!e){var i=lC(this.dimensions,this.getDimensionInfo,this);e=new t(i,this.hostModel)}if(e._storage=this._storage,e._storageArr=this._storageArr,iC(e,this),this._indices){var n=this._indices.constructor;if(n===Array){var r=this._indices.length;e._indices=new n(r);for(var o=0;r>o;o++)e._indices[o]=this._indices[o]}else e._indices=new n(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?ZT:XT,e},t.prototype.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(H(arguments)))})},t.internalField=function(){function e(t,e,i,n){return Il(t[n],this._dimensionInfos[e])}function i(t){var e=t.constructor;return e===Array?t.slice():new e(t)}WT={arrayRows:e,objectRows:function(t,e){return Il(t[e],this._dimensionInfos[e])},keyedColumns:e,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&Gi(t)&&(this.hasItemOption=!0),Il(r instanceof Array?r[n]:r,this._dimensionInfos[e])},typedArray:function(t,e,i,n){return t[n]}},GT=function(t){var e=t._invertedIndicesMap;y(e,(function(i,n){var r=t._dimensionInfos[n],o=r.ordinalMeta;if(o){i=e[n]=new fC(o.categories.length);for(var a=0;a<i.length;a++)i[a]=cC;for(a=0;a<t._count;a++)i[t.get(n,a)]=a}}))},$T=function(t,e,i,n){var r,o=t._storageArr[e];return o&&(r=o[n],i&&i.categories.length&&(r=i.categories[r])),tn(r,null)},YT=function(t){return t._rawCount>65535?pC:gC},UT=function(t,e,i,n){var r=dC[e.type],o=e.name;if(n){var a=t[o],s=a&&a.length;if(s!==i){for(var l=new r(i),u=0;s>u;u++)l[u]=a[u];t[o]=l}}else t[o]=new r(i)},XT=function(t){return t},ZT=function(t){return t<this._count&&t>=0?this._indices[t]:-1},qT=function(t,e){var i=t._idList[e];return null==i&&null!=t._idDimIdx&&(i=$T(t,t._idDimIdx,t._idOrdinalMeta,e)),null==i&&(i=hC+e),i},QT=function(t){return M(t)||(t=null!=t?[t]:[]),t},JT=function(e,n){var r=e.dimensions,o=new t(lC(r,e.getDimensionInfo,e),e.hostModel);iC(o,e);for(var a=o._storage={},s=e._storage,l=o._storageArr=[],u=0;u<r.length;u++){var c=r[u];s[c]&&(p(n,c)>=0?(a[c]=i(s[c]),o._rawExtent[c]=tC(),o._extent[c]=null):a[c]=s[c],l.push(a[c]))}return o},tC=function(){return[1/0,-1/0]},eC=function(t){var e=Ob(t),i=Ob(this);e.seriesIndex=i.seriesIndex,e.dataIndex=i.dataIndex,e.dataType=i.dataType},iC=function(t,e){y(vC.concat(e.__wrappedMethods||[]),(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t.__wrappedMethods=e.__wrappedMethods,y(yC,(function(i){t[i]=l(e[i])})),t._calculationInfo=h({},e._calculationInfo)},KT=function(t,e){var i=t._nameList,n=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=i[e],s=n[e];if(null==a&&null!=r&&(i[e]=a=$T(t,r,t._nameOrdinalMeta,e)),null==s&&null!=o&&(n[e]=s=$T(t,o,t._idOrdinalMeta,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),n[e]=s}}}(),t}(),xC=function(){function t(t){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=t}return t}(),bC={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis",ex).models[0],o=t.getReferringComponents("yAxis",ex).models[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),xh(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),xh(o)&&(n.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis",ex).models[0];e.coordSysDims=["single"],i.set("single",r),xh(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar",ex).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),xh(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),xh(a)&&(n.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();y(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];i.set(l,s),xh(s)&&(n.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}},_C=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();kn(_C);var wC=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication}return t.createByAxisModel=function(e){var i=e.option,n=i.data,r=n&&m(n,Th);return new t({categories:r,needCollect:!r,deduplication:!1!==i.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),null==e&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},t}(),kC=_i,SC=function(t){function e(e){var i=t.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new wC({})),M(n)&&(n=new wC({categories:m(n,(function(t){return D(t)?t.value:t}))})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return i(e,t),e.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Ph(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Lh(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Oh(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>r;++r){var s=e[r];i[r]=s,n[s]=r}for(var l=0;o>r;++r){for(;null!=n[l];)l++;i.push(l),n[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[e];return null==i?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.niceTicks=function(){},e.prototype.niceExtent=function(){},e.type="ordinal",e}(_C);_C.registerClass(SC);var MC=_i,TC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return i(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ph(t,this._extent)},e.prototype.normalize=function(t){return Lh(t,this._extent)},e.prototype.scale=function(t){return Oh(t,this._extent)},e.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ih(t)},e.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;i[0]<n[0]&&o.push(t?{value:MC(n[0]-e,r)}:{value:i[0]});for(var s=n[0];s<=n[1]&&(o.push({value:s}),s=MC(s+e,r),s!==o[o.length-1].value);)if(o.length>a)return[];var l=o.length?o[o.length-1].value:n[1];return i[1]>l&&o.push(t?{value:MC(l+e,r)}:{value:i[1]}),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=o.value-a.value,c=u/t;t-1>s;){var h=MC(a.value+(s+1)*c);h>n[0]&&h<n[1]&&l.push(h),s++}i.push(l)}return i},e.prototype.getLabel=function(t,e){if(null==t)return"";var i=e&&e.precision;null==i?i=Si(t.value)||0:"auto"===i&&(i=this._intervalPrecision);var n=MC(t.value,i,!0);return us(n)},e.prototype.niceTicks=function(t,e,i){t=t||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){0>r&&(r=-r,n.reverse());var o=Ch(n,t,e,i);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax||(e[1]+=i/2),e[0]-=i/2}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=MC(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=MC(Math.ceil(e[1]/r)*r))},e.type="interval",e}(_C);_C.registerClass(TC);var CC="__ec_stack_",IC=.5,AC="undefined"!=typeof Float32Array?Float32Array:Array,DC={seriesType:"bar",plan:hu(),reset:function(t){if(jh(t)&&Wh(t)){var e=t.getData(),i=t.coordinateSystem,n=i.master.getRect(),r=i.getBaseAxis(),o=i.getOtherAxis(r),a=e.mapDimension(o.dim),s=e.mapDimension(r.dim),l=o.isHorizontal(),u=l?0:1,c=Vh(Nh([t]),r,t).width;return c>IC||(c=IC),{progress:function(t,e){for(var h,d=t.count,p=new AC(2*d),f=new AC(2*d),g=new AC(d),v=[],y=[],m=0,x=0;null!=(h=t.next());)y[u]=e.get(a,h),y[1-u]=e.get(s,h),v=i.dataToPoint(y,null,v),f[m]=l?n.x+n.width:v[0],p[m++]=v[0],f[m]=l?v[1]:n.y+n.height,p[m++]=v[1],g[x++]=h;e.setLayout({largePoints:p,largeDataIndices:g,largeBackgroundPoints:f,barWidth:c,valueAxisStart:Gh(r,o,!1),backgroundStart:l?n.x:n.y,valueAxisHorizontal:l})}}}}},PC=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i},LC=function(t){function e(e){var i=t.call(this,e)||this;return i.type="time",i}return i(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Ga(t.value,Rw[Wa(Ha(this._minLevelUnit))]||Rw.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC"),r=this.getSetting("locale");return Ya(t,e,i,r,n)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,i=[];if(!t)return i;i.push({value:e[0],level:0});var n=this.getSetting("useUTC"),r=Qh(this._minLevelUnit,this._approxInterval,n,e);return i=i.concat(r),i.push({value:e[1],level:0}),i},e.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Pw,e[1]+=Pw),e[1]===-1/0&&1/0===e[0]){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-Pw}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.niceTicks=function(t,e,i){t=t||10;var n=this._extent,r=n[1]-n[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=i&&this._approxInterval>i&&(this._approxInterval=i);var o=OC.length,a=Math.min(PC(OC,this._approxInterval,0,o),o-1);this._interval=OC[a][1],this._minLevelUnit=OC[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return"number"==typeof t?t:+Ai(t)},e.prototype.contain=function(t){return Ph(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Lh(this.parse(t),this._extent)},e.prototype.scale=function(t){return Oh(t,this._extent)},e.type="time",e}(TC),OC=[["second",Iw],["minute",Aw],["hour",Dw],["quarter-day",6*Dw],["half-day",12*Dw],["day",1.2*Pw],["half-week",3.5*Pw],["week",7*Pw],["month",31*Pw],["quarter",95*Pw],["half-year",Lw/2],["year",Lw]];_C.registerClass(LC);var zC=_C.prototype,RC=TC.prototype,EC=Si,BC=_i,NC=Math.floor,FC=Math.ceil,VC=Math.pow,HC=Math.log,jC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new TC,e._interval=0,e}return i(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,n=e.getExtent(),r=RC.getTicks.call(this,t);return m(r,(function(t){var e=t.value,r=_i(VC(this.base,e));return r=e===i[0]&&this._fixMin?Jh(r,n[0]):r,r=e===i[1]&&this._fixMax?Jh(r,n[1]):r,{value:r}}),this)},e.prototype.setExtent=function(t,e){var i=this.base;t=HC(t)/HC(i),e=HC(e)/HC(i),RC.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=zC.getExtent.call(this);e[0]=VC(t,e[0]),e[1]=VC(t,e[1]);var i=this._originalScale,n=i.getExtent();return this._fixMin&&(e[0]=Jh(e[0],n[0])),this._fixMax&&(e[1]=Jh(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=HC(t[0])/HC(e),t[1]=HC(t[1])/HC(e),zC.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.niceTicks=function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var n=Di(i),r=t/i*n;for(.5>=r&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[_i(FC(e[0]/n)*n),_i(NC(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},e.prototype.niceExtent=function(t){RC.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=HC(t)/HC(this.base),Ph(t,this._extent)},e.prototype.normalize=function(t){return t=HC(t)/HC(this.base),Lh(t,this._extent)},e.prototype.scale=function(t){return t=Oh(t,this._extent),VC(this.base,t)},e.type="log",e}(_C),WC=jC.prototype;WC.getMinorTicks=RC.getMinorTicks,WC.getLabel=RC.getLabel,_C.registerClass(jC);var GC=function(){function t(t,e,i){this._prepareParams(t,e,i)}return t.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal="ordinal"===t.type;this._needCrossZero=e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);T(r)?this._modelMinNum=ed(t,r({min:i[0],max:i[1]})):"dataMin"!==r&&(this._modelMinNum=ed(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(T(o)?this._modelMaxNum=ed(t,o({min:i[0],max:i[1]})):"dataMax"!==o&&(this._modelMaxNum=ed(t,o)),n)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=M(a)?a:[a||0,a||0];this._boundaryGapInner="boolean"==typeof s[0]||"boolean"==typeof s[1]?[0,0]:[Fe(s[0],1),Fe(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,r=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?n?0:NaN:e-r[0]*o),null==s&&(s=t?n?n-1:NaN:i+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN),a>s&&(a=NaN,s=NaN);var c=B(a)||B(s)||t&&!n;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[UC[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var i=YC[t];this[i]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),YC={min:"_determinedMin",max:"_determinedMax"},UC={min:"_dataMin",max:"_dataMax"},XC=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),ZC={isDimensionStacked:_h,enableDataStack:bh,getStackedDimension:wh},qC=(Object.freeze||Object)({createList:gd,getLayoutRect:bs,dataStack:ZC,createScale:vd,mixinAxisModelCommonMethods:yd,getECData:Ob,createTextStyle:md,createDimensions:yh,createSymbol:oc,enableHoverEmphasis:vo}),$C=[],KC={registerPreprocessor:Zc,registerProcessor:qc,registerPostInit:$c,registerPostUpdate:Kc,registerAction:Qc,registerCoordinateSystem:Jc,registerLayout:eh,registerVisual:ih,registerTransform:jT,registerLoading:rh,registerMap:ah,PRIORITY:YM,ComponentModel:Zw,ComponentView:rS,SeriesModel:nS,ChartView:sS,registerComponentModel:function(t){Zw.registerClass(t)},registerComponentView:function(t){rS.registerClass(t)},registerSeriesModel:function(t){nS.registerClass(t)},registerChartView:function(t){sS.registerClass(t)},registerSubTypeDefaulter:function(t,e){Zw.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){yi(t,e)}},QC=1e-8,JC=function(){function t(t,e,i){if(this.name=t,this.geometries=e,i)i=[i[0],i[1]];else{var n=this.getBoundingRect();i=[n.x+n.width/2,n.y+n.height/2]}this.center=i}return t.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],n=[-e,-e],r=[],o=[],a=this.geometries,s=0;s<a.length;s++)if("polygon"===a[s].type){var l=a[s].exterior;nr(l,r,o),yt(i,i,r),mt(n,n,o)}return 0===s&&(i[0]=i[1]=n[0]=n[1]=0),this._rect=new lm(i[0],i[1],n[0]-i[0],n[1]-i[1])},t.prototype.contain=function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,r=i.length;r>n;n++)if("polygon"===i[n].type){var o=i[n].exterior,a=i[n].interiors;if(_d(o,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(_d(a[s],t[0],t[1]))continue t;return!0}}return!1},t.prototype.transformTo=function(t,e,i,n){var r=this.getBoundingRect(),o=r.width/r.height;i?n||(n=i/o):i=o*n;for(var a=new lm(t,e,i,n),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var c=l[u].exterior,h=l[u].interiors,d=0;d<c.length;d++)vt(c[d],c[d],s);for(var p=0;p<(h?h.length:0);p++)for(d=0;d<h[p].length;d++)vt(h[p][d],h[p][d],s)}r=this._rect,r.copy(a),this.center=[r.x+r.width/2,r.y+r.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var i=new t(e,this.geometries,this.center);return i._rect=this._rect,i.transformTo=null,i},t}(),tI=(Object.freeze||Object)({linearMap:xi,round:_i,asc:wi,getPrecision:ki,getPrecisionSafe:Si,getPixelPrecision:Mi,getPercentWithPrecision:Ti,MAX_SAFE_INTEGER:qm,remRadian:Ci,isRadianAroundZero:Ii,parseDate:Ai,quantity:Di,quantityExponent:Pi,nice:Li,quantile:Oi,reformIntervals:zi,isNumeric:Ei,numericToNumber:Ri}),eI=(Object.freeze||Object)({parse:Ai,format:Ga}),iI=(Object.freeze||Object)({extendShape:Go,extendPath:Yo,makePath:Zo,makeImage:qo,mergePath:ew,resizePath:Ko,createIcon:ga,updateProps:ea,initProps:ia,getTransform:sa,clipPointsByRect:pa,clipRectByRect:fa,registerShape:Uo,getShapeClass:Xo,Group:Hm,Image:wb,Text:Db,Circle:c_,Ellipse:d_,Sector:M_,Ring:C_,Polygon:A_,Polyline:P_,Rect:Tb,Line:z_,BezierCurve:B_,Arc:F_,IncrementalDisplayable:$_,CompoundPath:V_,LinearGradient:j_,RadialGradient:W_,BoundingRect:lm}),nI=(Object.freeze||Object)({addCommas:us,toCamelCase:cs,normalizeCssArray:Nw,encodeHTML:hs,formatTpl:ps,getTooltipMarker:fs,formatTime:gs,capitalFirst:vs,truncateText:An,getTextRect:ls}),rI=(Object.freeze||Object)({map:m,each:y,indexOf:p,inherits:f,reduce:x,filter:b,bind:iy,curry:S,isArray:M,isString:C,isObject:D,isFunction:T,extend:h,defaults:d,clone:l,merge:u}),oI=sn(),aI=[0,1],sI=function(){function t(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return t.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Mi(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},t.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&(i=i.slice(),Fd(i,n.count())),xi(t,aI,i,e)},t.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),Fd(i,n.count()));var r=xi(t,i,aI,e);return this.scale.scale(r)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=Td(this,e),n=i.ticks,r=m(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return Vd(this,r,o,t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&100>e||(e=5);var i=this.scale.getMinorTicks(e),n=m(i,(function(t){return m(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return n},t.prototype.getViewLabels=function(){return Md(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},t.prototype.calculateCategoryInterval=function(){return Rd(this)},t}(),lI=function(t){function e(e,i,n){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,n=n||pm,"string"==typeof e?r=Ud(e,i,n):D(e)&&(r=e,e=r.id),o.id=e,o.dom=r;var a=r.style;return a&&(r.onselectstart=Yd,a.webkitUserSelect="none",a.userSelect="none",a.webkitTapHighlightColor="rgba(0,0,0,0)",a["-webkit-touch-callout"]="none",a.padding="0",a.margin="0",a.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=i,o.config=null,o.dpr=n,o}return i(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Ud("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,i,n){function r(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new lm(0,0,0,0);e.copy(t),o.push(e)}else{for(var i=!1,n=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new lm(0,0,0,0);h.copy(c),h.union(t),o[u]=h,i=!0;break}if(s){l.copy(t),l.union(c);var d=t.width*t.height,p=c.width*c.height,f=l.width*l.height,g=f-d-p;n>g&&(n=g,r=u)}}if(s&&(o[r].union(t),i=!0),!i){e=new lm(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new lm(0,0,0,0),u=this.__startIndex;u<this.__endIndex;++u){var c=t[u];if(c){var h=c.shouldBePainted(i,n,!0,!0),d=c.__isRendered&&(c.__dirty&km.REDARAW_BIT||!h)?c.getPrevPaintRect():null;d&&r(d);var p=h&&(c.__dirty&km.REDARAW_BIT||!c.__isRendered)?c.getPaintRect():null;p&&r(p)}}for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){c=e[u],h=c.shouldBePainted(i,n,!0,!0);if(c&&(!h||!c.__zr)&&c.__isRendered){d=c.getPrevPaintRect();d&&r(d)}}var f;do{f=!1;for(u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(f=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(f);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!==i&&this.ctxBack.scale(i,i))},e.prototype.clear=function(t,e,i){function n(t,i,n,r){if(o.clearRect(t,i,n,r),e&&"transparent"!==e){var a=void 0;z(e)?(a=e.__canvasGradient||lc(o,e,{x:0,y:0,width:n,height:r}),e.__canvasGradient=a):R(e)&&(a=gc(o,e,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}})),o.save(),o.fillStyle=a||e,o.fillRect(t,i,n,r),o.restore()}l&&(o.save(),o.globalAlpha=u,o.drawImage(d,t,i,n,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.height;e=e||this.clearColor;var l=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr,h=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/c,s/c));var d=this.domBack;!i||l?n(0,0,a,s):i.length&&y(i,(function(t){n(t.x*c,t.y*c,t.width*c,t.height*c)}))},e}(py),uI=1e5,cI=314159,hI=.01,dI=.001,pI=function(){function e(t,e,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=h({},i||{}),this.dpr=i.devicePixelRatio||pm,this._singleCanvas=n,this.root=t;var r=t.style;r&&(r.webkitTapHighlightColor="transparent",r.webkitUserSelect="none",r.userSelect="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(n){var s=t,l=s.width,u=s.height;null!=i.width&&(l=i.width),null!=i.height&&(u=i.height),this.dpr=i.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new lI(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[cI]=c,c.zlevel=cI,o.push(cI),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var d=this._domRoot=qd(this._width,this._height);t.appendChild(d)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},e.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var r=0;r<n.length;r++){var o=n[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var n,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;e>o;o++){var a=t[o];a.__inHover&&(i||(i=this._hoverlayer=this.getLayer(uI)),n||(n=i.ctx,n.save()),Ac(n,a,r,o===e-1))}n&&n.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(uI)},e.prototype.paintOne=function(t,e){Ic(t,e)},e.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,i),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;Am((function(){s._paintList(t,e,i,n)}))}}},e.prototype._compositeManually=function(){var t=this.getLayer(cI).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer((function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)}))},e.prototype._doPaintList=function(e,i,n){for(var r=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&o.push(u)}for(var c=!0,h=!1,d=function(s){var l=o[s],u=l.ctx,d=a&&l.createRepaintRects(e,i,p._width,p._height);u.save();var f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,d);else if(f===l.__startIndex){var m=e[f];m.incremental&&m.notClear&&!n||l.clear(!1,y,d)}-1===f&&(t.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x,b=function(t){var i={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(x=f;x<l.__endIndex;x++){var n=e[x];if(n.__inHover&&(h=!0),r._doPaintEl(n,l,a,t,i,x===l.__endIndex-1),g){var o=Date.now()-v;if(o>15)break}}i.prevElClipPaths&&u.restore()};if(d)if(0===d.length)x=l.__endIndex;else for(var _=p.dpr,w=0;w<d.length;++w){var k=d[w];u.save(),u.beginPath(),u.rect(k.x*_,k.y*_,k.width*_,k.height*_),u.clip(),b(k),u.restore()}else u.save(),b(),u.restore();l.__drawIndex=x,l.__drawIndex<l.__endIndex&&(c=!1)},p=this,f=0;f<o.length;f++)d(f);return jv.wxa&&y(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:c,needsRefreshHover:h}},e.prototype._doPaintEl=function(t,e,i,n,r,o){var a=e.ctx;if(i){var s=t.getPaintRect();(!n||s&&s.intersect(n))&&(Ac(a,t,r,o),t.setPrevPaintRect(s))}else Ac(a,t,r,o)},e.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=cI);var i=this._layers[t];return i||(i=new lI("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?u(i,this._layerConfig[t],!0):this._layerConfig[t-hI]&&u(i,this._layerConfig[t-hI],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},e.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,r=n.length,o=this._domRoot,a=null,l=-1;if(i[t])s("ZLevel "+t+" has been used already");else if(Zd(e)){if(r>0&&t>n[0]){for(l=0;r-1>l&&!(n[l]<t&&n[l+1]>t);l++);a=i[n[l]]}if(n.splice(l+1,0,t),i[t]=e,!e.virtual)if(a){var u=a.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}else s("Layer of zlevel "+t+" is not valid")},e.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n];t.call(e,this._layers[r],r)}},e.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},e.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t){t.__dirty=t.__used=!1})),this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var r,o,a=null,l=0;for(o=0;o<t.length;o++){n=t[o];var u=n.zlevel,c=void 0;r!==u&&(r=u,l=0),n.incremental?(c=this.getLayer(u+dI,this._needsManuallyCompositing),c.incremental=!0,l=1):c=this.getLayer(u+(l>0?hI:0),this._needsManuallyCompositing),c.__builtin__||s("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.__drawIndex=c.incremental?-1:o,e(o),a=c),n.__dirty&km.REDARAW_BIT&&!n.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,y(this._layers,(function(t){t.setUnpainted()}))},e.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?u(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n];if(r===t||r===t+hI){var o=this._layers[r];u(o,i[t],!0)}}}},e.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(p(i,t),1))},e.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||e!==this._height){for(var r in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(cI).resize(t,e)}return this},e.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[cI].dom;var e=new lI("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,r):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;l>s;s++){var u=a[s];Ac(i,u,o,s===l-1)}return e.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype._getSize=function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[n]||Xd(s[i])||Xd(a.style[i]))-(Xd(s[r])||0)-(Xd(s[o])||0)|0},e.prototype.pathToImage=function(t,e){e=e||this.dpr;var i=document.createElement("canvas"),n=i.getContext("2d"),r=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,s=o.shadowOffsetX*e,l=o.shadowOffsetY*e,u=t.hasStroke()?o.lineWidth:0,c=Math.max(u/2,-s+a),d=Math.max(u/2,s+a),p=Math.max(u/2,-l+a),f=Math.max(u/2,l+a),g=r.width+c+d,v=r.height+p+f;i.width=g*e,i.height=v*e,n.scale(e,e),n.clearRect(0,0,g,v),n.dpr=e;var y={x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY,rotation:t.rotation,originX:t.originX,originY:t.originY};t.x=c-r.x,t.y=p-r.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&Ac(n,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var m=new wb({style:{x:0,y:0,image:i}});return h(t,y),m},e}(),fI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return i(e,t),e.prototype.init=function(e,i,n){t.prototype.init.call(this,e,i,n),this._sourceManager=new $k(this),Nl(this)},e.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),Nl(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:sk},e}(Zw),gI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return i(e,t),e.type="dataset",e}(rS);xd([$d,Kd]);var vI={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},yI=function(t){return Math.round(t.length/2)},mI=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.prototype.getInitialData=function(){return kh(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e){var i=e.dataToPoint(e.clampData(t)),n=this.getData(),r=n.getLayout("offset"),o=n.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return i[a]+=r+o/2,i}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(nS);nS.registerClass(mI);var xI=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.prototype.getInitialData=function(){return kh(this.getSource(),this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,i){return i.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Ra(mI.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(mI),bI=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),_I=function(t){function e(e){var i=t.call(this,e)||this;return i.type="sausage",i}return i(e,t),e.prototype.getDefaultShape=function(){return new bI},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=Math.cos(l),d=Math.sin(l),p=Math.cos(u),f=Math.sin(u),g=c?u-l<2*Math.PI:l-u<2*Math.PI;g&&(t.moveTo(h*r+i,d*r+n),t.arc(h*s+i,d*s+n,a,-Math.PI+l,l,!c)),t.arc(i,n,o,l,u,!c),t.moveTo(p*o+i,f*o+n),t.arc(p*s+i,f*s+n,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&(t.arc(i,n,r,u,l,c),t.moveTo(h*r+i,f*r+n)),t.closePath()},e}(yb),wI=["itemStyle","borderWidth"],kI=["itemStyle","borderRadius"],SI=[0,0],MI=Math.max,TI=Math.min,CI=function(t){function e(){var i=t.call(this)||this;return i.type=e.type,i._isFirstFrame=!0,i}return i(e,t),e.prototype.render=function(t,e,i,n){this._model=t,this._removeOnRenderedListener(i),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i,n))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._incrementalRenderLarge(t,e)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,i,n){function r(t){var e=DI[u.type](s,t),i=vp(u,o,e);return i.useStyle(y.getItemStyle()),"cartesian2d"===u.type&&i.setShape("r",m),x[t]=i,i}var o,a=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis();"cartesian2d"===u.type?o=c.isHorizontal():"polar"===u.type&&(o="angle"===c.dim);var h=t.isAnimationEnabled()?t:null,d=ap(t,u);d&&this._enableRealtimeSort(d,s,i);var p=t.get("clip",!0)||d,f=op(u,s);a.removeClipPath();var g=t.get("roundCap",!0),v=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),m=y.get("borderRadius")||0,x=[],b=this._backgroundEls,_=n&&n.isInitSort,w=n&&"changeAxisOrder"===n.type;s.diff(l).add((function(e){var i=s.getItemModel(e),n=DI[u.type](s,e,i);if(v&&r(e),s.hasValue(e)){var l=!1;p&&(l=II[u.type](f,n));var y=AI[u.type](t,s,e,n,o,h,c.model,!1,g);up(y,s,e,i,n,t,o,"polar"===u.type),_?y.attr({shape:n}):d?sp(d,h,y,n,e,o,!1,!1):ia(y,{shape:n},t,e),s.setItemGraphicEl(e,y),a.add(y),y.ignore=l}})).update((function(e,i){var n=s.getItemModel(e),k=DI[u.type](s,e,n);if(v){var S=void 0;0===b.length?S=r(i):(S=b[i],S.useStyle(y.getItemStyle()),"cartesian2d"===u.type&&S.setShape("r",m),x[e]=S);var M=DI[u.type](s,e),T=gp(o,M,u);ea(S,{shape:T},h,e)}var C=l.getItemGraphicEl(i);if(!s.hasValue(e))return a.remove(C),void(C=null);var I=!1;p&&(I=II[u.type](f,k),I&&a.remove(C)),C||(C=AI[u.type](t,s,e,k,o,h,c.model,!!C,g)),w||up(C,s,e,n,k,t,o,"polar"===u.type),_?C.attr({shape:k}):d?sp(d,h,C,k,e,o,!0,w):ea(C,{shape:k},t,e,null),s.setItemGraphicEl(e,C),C.ignore=I,a.add(C)})).remove((function(e){var i=l.getItemGraphicEl(e);i&&oa(i,t,e)})).execute();var k=this._backgroundGroup||(this._backgroundGroup=new Hm);k.removeAll();for(var S=0;S<x.length;++S)k.add(x[S]);a.add(k),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(t){this._clear(),hp(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),hp(e,this.group,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)?ep(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,i){var n=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,i),this._isFirstFrame=!1;else{var o=function(t){var i=e.getItemGraphicEl(t);if(i){var n=i.shape;return Math.abs(r.isHorizontal()?n.height:n.width)||0}return 0};this._onRendered=function(){n._updateSortWithinSameData(e,o,r,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,i){var n=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=i(e);r=null==r?NaN:r,n.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),n.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:m(n,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,i){for(var n=i.scale,r=t.mapDimension(i.dim),o=Number.MAX_VALUE,a=0,s=n.getOrdinalMeta().categories.length;s>a;++a){var l=t.rawIndexOf(r,n.getRawOrdinalNumber(a)),u=0>l?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var i=e.scale,n=i.getExtent(),r=Math.max(0,n[0]),o=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o>=r;++r)if(t.ordinalNumbers[r]!==i.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,i,n){if(this._isOrderChangedWithinSameData(t,e,i)){var r=this._dataSort(t,i,e);this._isOrderDifferentInView(r,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,i){var n=e.baseAxis,r=this._dataSort(t,n,(function(i){return t.get(t.mapDimension(e.otherAxis.dim),i)}));i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:r,animation:{duration:0}})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl((function(e){oa(e,t,Ob(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(sS),II={cartesian2d:function(t,e){var i=e.width<0?-1:1,n=e.height<0?-1:1;0>i&&(e.x+=e.width,e.width=-e.width),0>n&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=MI(e.x,t.x),s=TI(e.x+e.width,r),l=MI(e.y,t.y),u=TI(e.y+e.height,o),c=a>s,h=l>u;return e.x=c&&a>r?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,0>i&&(e.x+=e.width,e.width=-e.width),0>n&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var i=e.r0<=e.r?1:-1;if(0>i){var n=e.r;e.r=e.r0,e.r0=n}var r=TI(e.r,t.r),o=MI(e.r0,t.r0);e.r=r,e.r0=o;var a=0>r-o;if(0>i){n=e.r;e.r=e.r0,e.r0=n}return a}},AI={cartesian2d:function(t,e,i,n,r,o){var a=new Tb({shape:h({},n),z2:1});if(a.__dataIndex=i,a.name="item",o){var s=a.shape,l=r?"height":"width";s[l]=0}return a},polar:function(t,e,i,n,r,o,a,s,l){var u=n.startAngle<n.endAngle,c=!r&&l?_I:M_,h=new c({shape:d({clockwise:u},n),z2:1});if(h.name="item",o){var p=h.shape,f=r?"r":"endAngle",g={};p[f]=r?0:n.startAngle,g[f]=n[f],(s?ea:ia)(h,{shape:g},o)}return h}},DI={cartesian2d:function(t,e,i){var n=t.getItemLayout(e),r=i?cp(i,n):0,o=n.width>0?1:-1,a=n.height>0?1:-1;return{x:n.x+o*r/2,y:n.y+a*r/2,width:n.width-o*r,height:n.height-a*r}},polar:function(t,e){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}},PI=function(){function t(){}return t}(),LI=function(t){function e(e){var i=t.call(this,e)||this;return i.type="largeBar",i}return i(e,t),e.prototype.getDefaultShape=function(){return new PI},e.prototype.buildPath=function(t,e){for(var i=e.points,n=this.__startPoint,r=this.__baseDimIdx,o=0;o<i.length;o+=2)n[r]=i[o+r],t.moveTo(n[0],n[1]),t.lineTo(i[o],i[o+1])},e}(yb),OI=vu((function(t){var e=this,i=dp(e,t.offsetX,t.offsetY);Ob(e).dataIndex=i>=0?i:null}),30,!1);xd(yp);var zI=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i.legendSymbol="line",i}return i(e,t),e.prototype.getInitialData=function(){return kh(this.getSource(),this,{useEncodeDefaulter:!0})},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0},e}(nS),RI=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.updateData(e,i,n,r),o}return i(e,t),e.prototype._createSymbol=function(t,e,i,n,r){this.removeAll();var o=oc(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=mp,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){io(this.childAt(0))},e.prototype.downplay=function(){no(this.childAt(0))},e.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},e.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},e.prototype.updateData=function(t,i,n,r){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,i),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,s,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(d):ea(h,d,a,i)}if(this._updateCommon(t,i,s,n,r),l){h=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ia(h,d,a,i)}}u&&this.childAt(0).stopAnimation("remove"),this._seriesModel=a},e.prototype._updateCommon=function(t,e,i,n,r){function o(e){return T?t.getName(e):np(t,e)}var a,s,l,u,c,d,p,f,g,v=this.childAt(0),y=t.hostModel;if(n&&(a=n.emphasisItemStyle,s=n.blurItemStyle,l=n.selectItemStyle,u=n.focus,c=n.blurScope,d=n.symbolOffset,p=n.labelStatesModels,f=n.hoverScale,g=n.cursorStyle),!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(e),x=m.getModel("emphasis");a=x.getModel("itemStyle").getItemStyle(),l=m.getModel(["select","itemStyle"]).getItemStyle(),s=m.getModel(["blur","itemStyle"]).getItemStyle(),u=x.get("focus"),c=x.get("blurScope"),d=m.getShallow("symbolOffset"),p=ka(m),f=x.getShallow("scale"),g=m.getShallow("cursor")}var b=t.getItemVisual(e,"symbolRotate");v.attr("rotation",(b||0)*Math.PI/180||0),d&&(v.x=bi(d[0],i[0]),v.y=bi(d[1],i[1])),g&&v.attr("cursor",g);var _=t.getItemVisual(e,"style"),w=_.fill;if(v instanceof wb){var k=v.style;v.useStyle(h({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},_))}else v.useStyle(v.__isEmptyBrush?h({},_):_),v.style.decal=null,v.setColor(w,r&&r.symbolInnerColor),v.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=v.z2,v.z2+=S):null!=M&&(v.z2=M,this._z2=null);var T=r&&r.useNameLabel;wa(v,p,{labelFetcher:y,labelDataIndex:e,defaultText:o,inheritColor:w,defaultOpacity:_.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2;var C=v.ensureState("emphasis");if(C.style=a,v.ensureState("select").style=l,v.ensureState("blur").style=s,f){var I=Math.max(1.1,3/this._sizeY);C.scaleX=this._sizeX*I,C.scaleY=this._sizeY*I}this.setSymbolScale(1),vo(this,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e){var i=this.childAt(0),n=this._seriesModel,r=Ob(this).dataIndex,o=e&&e.animation;if(this.silent=i.silent=!0,e&&e.fadeLabel){var a=i.getTextContent();a&&na(a,{style:{opacity:0}},n,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();na(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array?i.slice():[+i,+i]},e}(Hm),EI=function(){function t(t){this.group=new Hm,this._SymbolCtor=t||RI}return t.prototype.updateData=function(t,e){e=bp(e);var i=this.group,n=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=_p(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||i.removeAll(),t.diff(r).add((function(n){var r=u(n);if(xp(t,r,n,e)){var a=new o(t,n,s,l);a.setPosition(r),t.setItemGraphicEl(n,a),i.add(a)}})).update((function(c,h){var d=r.getItemGraphicEl(h),p=u(c);if(xp(t,p,c,e)){if(d){d.updateData(t,c,s,l);var f={x:p[0],y:p[1]};a?d.attr(f):ea(d,f,n)}else d=new o(t,c),d.setPosition(p);i.add(d),t.setItemGraphicEl(c,d)}else i.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){i.remove(e)}))})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.isPersistent=function(){return!0},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,i){var n=t._getSymbolPoint(i);e.setPosition(n),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=_p(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}i=bp(i);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(xp(e,o,r,i)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(n),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a)}}},t.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()},t}(),BI="undefined"!=typeof Float32Array,NI=BI?Float32Array:Array,FI=Math.min,VI=Math.max,HI=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),jI=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-polyline",i}return i(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new HI},e.prototype.buildPath=function(t,e){var i=e.points,n=0,r=i.length/2;if(e.connectNulls){for(;r>0&&Ip(i[2*r-2],i[2*r-1]);r--);for(;r>n&&Ip(i[2*n],i[2*n+1]);n++);}for(;r>n;)n+=Ap(t,i,n,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,r=this.path,o=r.data,a=ab.CMD,s="x"===e,l=[],u=0;u<o.length;){var c=o[u++],h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,v=void 0,y=void 0;switch(c){case a.M:i=o[u++],n=o[u++];break;case a.L:if(h=o[u++],d=o[u++],y=s?(t-i)/(h-i):(t-n)/(d-n),1>=y&&y>=0){var m=s?(d-n)*y+n:(h-i)*y+i;return s?[t,m]:[m,t]}i=h,n=d;break;case a.C:h=o[u++],d=o[u++],p=o[u++],f=o[u++],g=o[u++],v=o[u++];var x=s?Yn(i,h,p,g,t,l):Yn(n,d,f,v,t,l);if(x>0)for(var b=0;x>b;b++){var _=l[b];if(1>=_&&_>=0){m=s?Wn(n,d,f,v,_):Wn(i,h,p,g,_);return s?[t,m]:[m,t]}}i=g,n=v}}},e}(yb),WI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(HI),GI=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-polygon",i}return i(e,t),e.prototype.getDefaultShape=function(){return new WI},e.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Ip(i[2*o-2],i[2*o-1]);o--);for(;o>r&&Ip(i[2*r],i[2*r+1]);r++);}for(;o>r;){var s=Ap(t,i,r,o,o,1,e.smooth,a,e.connectNulls);Ap(t,n,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(yb),YI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.init=function(){var t=new Hm,e=new EI;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,i){var n=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,h=this._coordSys,p=this._symbolDraw,f=this._polyline,g=this._polygon,v=this._lineGroup,y=t.get("animation"),m=!l.isEmpty(),x=l.get("origin"),b=wp(r,a,x),_=m&&zp(r,a,b),w=t.get("showSymbol"),k=w&&!c&&Bp(t,a,r),S=this._data;S&&S.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),S.setItemGraphicEl(e,null))})),w||p.remove(),o.add(v);var M,T=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(M=r.getArea(),null!=M.width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var C=Ep(a,r)||a.getVisual("style")[a.getVisual("drawType")];f&&h.type===r.type&&T===this._step?(m&&!g?g=this._newPolygon(u,_):g&&!m&&(v.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,ys(C)),v.setClipPath(Wp(this,r,!1,t)),w&&p.updateData(a,{isIgnore:k,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Dp(this._stackedOnPoints,_)&&Dp(this._points,u)||(y?this._doUpdateAnimation(a,_,r,i,T,x):(T&&(u=Rp(u,r,T),_&&(_=Rp(_,r,T))),f.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:_})))):(w&&p.updateData(a,{isIgnore:k,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,r,M),T&&(u=Rp(u,r,T),_&&(_=Rp(_,r,T))),f=this._newPolyline(u),m&&(g=this._newPolygon(u,_)),c||this._initOrUpdateEndLabel(t,r,ys(C)),v.setClipPath(Wp(this,r,!0,t)));var I=t.get(["emphasis","focus"]),A=t.get(["emphasis","blurScope"]);if(f.useStyle(d(s.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),mo(f,t,"lineStyle"),f.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var D=f.getState("emphasis").style;D.lineWidth=f.style.lineWidth+1}Ob(f).seriesIndex=t.seriesIndex,vo(f,I,A);var P=Op(t.get("smooth")),L=t.get("smoothMonotone"),O=t.get("connectNulls");if(f.setShape({smooth:P,smoothMonotone:L,connectNulls:O}),g){var z=a.getCalculationInfo("stackedOnSeries"),R=0;g.useStyle(d(l.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),z&&(R=Op(z.get("smooth"))),g.setShape({smooth:P,stackedOnSmooth:R,smoothMonotone:L,connectNulls:O}),mo(g,t,"areaStyle"),Ob(g).seriesIndex=t.seriesIndex,vo(g,I,A)}var E=function(t){n._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=E)})),this._polyline.onHoverStateChange=E,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=T,this._valueOrigin=x},e.prototype.dispose=function(){},e.prototype.highlight=function(t,e,i,n){var r=t.getData(),o=an(r,n);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;s=new RI(r,o),s.x=l,s.y=u,s.setZ(t.get("zlevel"),t.get("z")),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else sS.prototype.highlight.call(this,t,e,i,n)},e.prototype.downplay=function(t,e,i,n){var r=t.getData(),o=an(r,n);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else sS.prototype.downplay.call(this,t,e,i,n)},e.prototype._changePolyState=function(t){var e=this._polygon;Xr(this._polyline,t),e&&Xr(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new jI({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new GI({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,e,i){var n,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");"function"==typeof l&&(l=l(null));var u=s.get("animationDelay")||0,c="function"==typeof u?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(r){var g=i,v=e.pointToCoord(h);n?(d=g.startAngle,p=g.endAngle,f=-v[1]/180*Math.PI):(d=g.r0,p=g.r,f=v[0])}else{var y=i;n?(d=y.x,p=y.x+y.width,f=t.x):(d=y.y+y.height,p=y.y,f=t.y)}var m=p===d?0:(f-d)/(p-d);a&&(m=1-m);var x="function"==typeof u?u(o):l*m+c,b=s.getSymbolPath(),_=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,delay:x}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:x}),b.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,i){var n=t.getModel("endLabel");if(n.get("show")){var r=t.getData(),o=this._polyline,a=this._endLabel;a||(a=this._endLabel=new Db({z2:200}),a.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var s=Vp(r.getLayout("points"));s>=0&&(wa(o,ka(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:s,defaultText:function(t,e,i){return null!=i?rp(r,i):np(r,t)},enableTextSetter:!0},Gp(n,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,i,n,r,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var u=i.getLayout("points"),c=i.hostModel,h=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,x=(g?p:0)*(v?-1:1),b=(g?0:-p)*(v?-1:1),_=g?"x":"y",w=jp(u,m,_),k=w.range,S=k[1]-k[0],M=void 0;if(S>=1){if(S>1&&!h){var T=Hp(u,k[0]);s.attr({x:T[0]+x,y:T[1]+b}),r&&(M=c.getRawValue(k[0]))}else{T=l.getPointOn(m,_);T&&s.attr({x:T[0]+x,y:T[1]+b});var C=c.getRawValue(k[0]),I=c.getRawValue(k[1]);r&&(M=pn(i,d,C,I,w.t))}n.lastFrameIndex=k[0]}else{var A=1===t||n.lastFrameIndex>0?k[0]:0;T=Hp(u,A);r&&(M=c.getRawValue(A)),s.attr({x:T[0]+x,y:T[1]+b})}r&&lw(s).setLabelText(M)}},e.prototype._doUpdateAnimation=function(t,e,i,n,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=Cp(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,o),c=u.current,h=u.stackedOnCurrent,d=u.next,p=u.stackedOnNext;if(r&&(c=Rp(u.current,i,r),h=Rp(u.stackedOnCurrent,i,r),d=Rp(u.next,i,r),p=Rp(u.stackedOnNext,i,r)),Lp(c,d)>3e3||s&&Lp(h,p)>3e3)return a.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:p}));a.shape.__points=u.current,a.shape.points=c;var f={shape:{points:d}};u.current!==c&&(f.shape.__points=u.next),a.stopAnimation(),ea(a,f,l),s&&(s.setShape({points:c,stackedOnPoints:h}),s.stopAnimation(),ea(s,{shape:{stackedOnPoints:p}},l),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points));for(var g=[],v=u.status,y=0;y<v.length;y++){var m=v[y].cmd;if("="===m){var x=t.getItemGraphicEl(v[y].idx1);x&&g.push({el:x,ptIdx:y})}}a.animators&&a.animators.length&&a.animators[0].during((function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<g.length;e++){var i=g[e].el,n=2*g[e].ptIdx;i.x=t[n],i.y=t[n+1],i.markRedraw()}}))},e.prototype.remove=function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl((function(i,n){i.__temp&&(t.remove(i),e.setItemGraphicEl(n,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(sS);xd(Up);var UI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Zw),XI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ex).models[0]},e.type="cartesian2dAxis",e}(Zw);g(XI,XC);var ZI={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},qI=u({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},ZI),$I=u({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},ZI),KI=u({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$I),QI=d({scale:!0,logBase:10},$I),JI={category:qI,value:$I,time:KI,log:QI},tA={value:1,category:1,time:1,log:1},eA=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return m(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),b(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),iA=["x","y"],nA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=iA,e}return i(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(qp(t)&&qp(e)){var i=t.getExtent(),n=e.getExtent(),r=this.dataToPoint([i[0],n[0]]),o=this.dataToPoint([i[1],n[1]]),a=i[1]-i[0],s=n[1]-n[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-i[0]*l,h=r[1]-n[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=Xt([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.dataToPoint=function(t,e,i){i=i||[];var n=t[0],r=t[1];if(this._transform&&null!=n&&isFinite(n)&&null!=r&&isFinite(r))return vt(i,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.toGlobalCoord(o.dataToCoord(n)),i[1]=a.toGlobalCoord(a.dataToCoord(r)),i},e.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),a=i.parse(t[0]),s=n.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){if(e=e||[],this._invTransform)return vt(e,t,this._invTransform);var i=this.getAxis("x"),n=this.getAxis("y");return e[0]=i.coordToData(i.toLocalCoord(t[0])),e[1]=n.coordToData(n.toLocalCoord(t[1])),e},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-i,o=Math.max(e[0],e[1])-n;return new lm(i,n,r,o)},e}(eA),rA=function(t){function e(e,i,n,r,o){var a=t.call(this,e,i,n)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return i(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){return"category"===this.type&&(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},e}(sI),oA=function(){function t(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=iA,this._initCartesian(t,e,i),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),y(i.x,(function(t){rd(t.scale,t.model)})),y(i.y,(function(t){rd(t.scale,t.model)}));var n={};y(i.x,(function(t){tf(i,"y",t,n)})),y(i.y,(function(t){tf(i,"x",t,n)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,i){function n(){y(s,(function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),nf(t,e?a.x:a.y)}))}var r=t.getBoxLayoutParams(),o=!i&&t.get("containLabel"),a=bs(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;n(),o&&(y(s,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=ud(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]);a[i]-=e[i]+n,"top"===t.position?a.y+=e.height+n:"left"===t.position&&(a.x+=e.width+n)}}})),n()),y(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var i=this._axesMap[t];return null!=i?i[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}D(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",ex).models[0],o=t.yAxisModel||n&&n.getReferringComponents("yAxis",ex).models[0],a=t.gridModel,s=this._coordsList;if(n)e=n.coordinateSystem,p(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)i=this.getAxis("x",r.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:i}},t.prototype.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},t.prototype._initCartesian=function(t,e){function i(e){return function(i,n){if(Jp(i,t)){var l=i.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new rA(e,od(i),[0,0],i.get("type"),l),c="category"===u.type;u.onBand=c&&i.get("boundaryGap"),u.inverse=i.get("inverse"),i.axis=u,u.model=i,u.grid=r,u.index=n,r._axesList.push(u),a[e][n]=u,s[e]++}}}var n=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return e.eachComponent("xAxis",i("x"),this),e.eachComponent("yAxis",i("y"),this),s.x&&s.y?(this._axesMap=a,void y(a.x,(function(e,i){y(a.y,(function(r,o){var a="x"+i+"y"+o,s=new nA(a);s.master=n,s.model=t,n._coordsMap[a]=s,n._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))):(this._axesMap={},void(this._axesList=[]))},t.prototype._updateScale=function(t,e){function i(t,e){y(pd(t,e.dim),(function(i){e.scale.unionExtentFromData(t,i)}))}y(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(Kp(t)){var n=Qp(t),r=n.xAxisModel,o=n.yAxisModel;if(!Jp(r,e)||!Jp(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");"list"===s.type&&(i(s,l),i(s,u))}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],i=[];return y(this.getCartesians(),(function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(r);p(e,r)<0&&e.push(r),p(i,o)<0&&i.push(o)})),{baseAxes:e,otherAxes:i}},t.create=function(e,i){var n=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,i);a.name="grid_"+o,a.resize(r,i,!0),r.coordinateSystem=a,n.push(a)})),e.eachSeries((function(t){if(Kp(t)){var e=Qp(t),i=e.xAxisModel,n=e.yAxisModel,r=i.getCoordSysModel(),o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(i.componentIndex,n.componentIndex)}})),n},t.dimensions=iA,t}(),aA=Math.PI,sA=function(){function t(t,e){this.group=new Hm,this.opt=e,this.axisModel=t,d(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new Hm({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return t.prototype.hasBuilder=function(t){return!!lA[t]},t.prototype.add=function(t){lA[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,i){var n,r,o=Ci(e-t);return Ii(o)?(r=i>0?"top":"bottom",n="center"):Ii(o-aA)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&aA>o?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),lA={axisLine:function(t,e,i,n){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=n.transform,s=[o[0],0],l=[o[1],0];a&&(vt(s,s,a),vt(l,l,a));var u=h({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new z_({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",i.add(c);var d=e.get(["axisLine","symbol"]),p=e.get(["axisLine","symbolSize"]),f=e.get(["axisLine","symbolOffset"])||0;if("number"==typeof f&&(f=[f,f]),null!=d){"string"==typeof d&&(d=[d,d]),("string"==typeof p||"number"==typeof p)&&(p=[p,p]);var g=p[0],v=p[1];y([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,n){if("none"!==d[n]&&null!=d[n]){var r=oc(d[n],-g/2,-v/2,g,v,u.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),i.add(r)}}))}}},axisTickLabel:function(t,e,i,n){var r=cf(i,n,e,t),o=df(i,n,e,t);of(e,o,r),hf(i,n,e,t.tickDirection)},axisName:function(t,e,i,n){var r=N(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,d=e.axis.getExtent(),p=d[0]>d[1]?-1:1,f=["start"===s?d[0]-p*c:"end"===s?d[1]+p*c:(d[0]+d[1])/2,lf(s)?t.labelOffset+l*c:0],g=e.get("nameRotate");null!=g&&(g=g*aA/180),lf(s)?o=sA.innerTextLayout(t.rotation,null!=g?g:t.rotation,l):(o=rf(t.rotation,s,g||0,d),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var v=u.getFont(),y=e.get("nameTruncate",!0)||{},m=y.ellipsis,x=N(t.nameTruncateMaxWidth,y.maxWidth,a),b=e.get("tooltip",!0),_=e.mainType,w={componentType:_,name:r,$vars:["name"]};w[_+"Index"]=e.componentIndex;var k=new Db({x:f[0],y:f[1],rotation:o.rotation,silent:sA.isLabelSilent(e),style:Sa(u,{text:r,font:v,overflow:"truncate",width:x,ellipsis:m,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(k.tooltip=b&&b.show?h({content:r,formatter:function(){return r},formatterParams:w},b):null,k.__fullText=r,k.anid="name",e.get("triggerEvent")){var S=sA.makeAxisEventDataBase(e);S.targetType="axisName",S.name=r,Ob(k).eventData=S}n.add(k),k.updateTransform(),i.add(k),k.decomposeTransform()}}},uA={},cA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.prototype.render=function(e,i,n){this.axisPointerClass&&xf(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},e.prototype.updateAxisPointer=function(t,e,i){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},e.prototype.dispose=function(e,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,n){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=_f(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){uA[t]=e},e.getAxisPointerClass=function(t){return t&&uA[t]},e.type="axis",e}(rS),hA=sn(),dA=["axisLine","axisTickLabel","axisName"],pA=["splitArea","splitLine","minorSplitLine"],fA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.axisPointerClass="CartesianAxisPointer",i}return i(e,t),e.prototype.render=function(e,i,n,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Hm,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=$p(a,e),l=new sA(e,h({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),i=0;i<t.length;i++){var n=t[i].getOtherAxis(e.axis).type;if("value"===n||"log"===n)return!0}return!1}},s));y(dA,l.add,l),this._axisGroup.add(l.getGroup()),y(pA,(function(t){e.get([t,"show"])&&gA[t](this,this._axisGroup,e,a)}),this),da(o,this._axisGroup,e),t.prototype.render.call(this,e,i,n,r)}},e.prototype.remove=function(){Mf(this)},e.type="cartesianAxis",e}(cA),gA={splitLine:function(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=M(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=r.isHorizontal(),c=0,h=r.getTicksCoords({tickModel:o}),p=[],f=[],g=a.getLineStyle(),v=0;v<h.length;v++){var y=r.toGlobalCoord(h[v].coord);u?(p[0]=y,p[1]=l.y,f[0]=y,f[1]=l.y+l.height):(p[0]=l.x,p[1]=y,f[0]=l.x+l.width,f[1]=y);var m=c++%s.length,x=h[v].tickValue;e.add(new z_({anid:null!=x?"line_"+h[v].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:f[0],y2:f[1]},style:d({stroke:s[m]},g),silent:!0}))}}},minorSplitLine:function(t,e,i,n){var r=i.axis,o=i.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=r.toGlobalCoord(u[p][f].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g),e.add(new z_({anid:"minor_line_"+u[p][f].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0}))}},splitArea:function(t,e,i,n){Sf(t,e,i,n)}},vA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.type="xAxis",e}(fA),yA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=vA.type,e}return i(e,t),e.type="yAxis",e}(fA),mA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return i(e,t),e.prototype.render=function(t){this.group.removeAll(),t.get("show")&&this.group.add(new Tb({shape:t.coordinateSystem.getRect(),style:d({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(rS),xA={offset:0};xd(Tf);var bA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.layoutMode={type:"box",ignoreSize:!0},i}return i(e,t),e.type="title",e.defaultOption={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Zw),_A=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.prototype.render=function(t,e,i){if(this.group.removeAll(),t.get("show")){var n=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=F(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Db({style:Sa(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Db({style:Sa(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",(function(){ms(d,"_"+t.get("target"))})),p&&h.on("click",(function(){ms(p,"_"+t.get("subtarget"))})),Ob(l).eventData=Ob(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(l),c&&n.add(h);var g=n.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=bs(v,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),n.x=y.x,n.y=y.y,n.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=n.getBoundingRect();var x=y.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var _=new Tb({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});n.add(_)}},e.type="title",e}(rS);xd(Cf);var wA=function(t,e){return"all"===e?{type:"all",title:t.getLocale(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocale(["legend","selector","inverse"])}:void 0},kA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.layoutMode={type:"box",ignoreSize:!0},i}return i(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,i=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),M(e)&&y(e,(function(t,n){C(t)&&(t={type:t}),e[n]=u(t,wA(i,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],i=[];t.eachRawSeries((function(n){var r,o=n.name;if(i.push(o),n.legendVisualProvider){var a=n.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(n)||(i=i.concat(s)),s.length?e=e.concat(s):r=!0}else r=!0;r&&en(n)&&e.push(n.name)})),this._availableNames=i;var n=this.get("data")||e,r=m(n,(function(t){return("string"==typeof t||"number"==typeof t)&&(t={name:t}),new mw(t,this,this.ecModel)}),this);this._data=r},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,i=this.get("selectedMode");if("single"===i){var n=this._data;y(n,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;y(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;y(t,(function(t){var i=t.get("name",!0);e.hasOwnProperty(i)||(e[i]=!0),e[i]=!e[i]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&p(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Zw),SA=S,MA=y,TA=Hm,CA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.newlineDisabled=!1,i}return i(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new TA),this.group.add(this._selectorGroup=new TA),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,i,a,o,s);var l=t.getBoxLayoutParams(),u={width:i.getWidth(),height:i.getHeight()},c=t.get("padding"),h=bs(l,u,c),p=this.layoutInner(t,r,h,n,a,s),f=bs(d({width:p.width,height:p.height},l),u,c);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=If(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,i,n,r,o,a){var s=this.getContentGroup(),l=X(),u=e.get("selectedMode"),c=[];i.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),MA(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new TA;return h.newline=!0,void s.add(h)}var d=i.getSeriesByName(a)[0];if(!l.get(a))if(d){var p=d.getData(),f=p.getVisual("style"),g=f[p.getVisual("drawType")]||f.fill,v=f.stroke,y=f.decal,m=p.getVisual("legendSymbol")||"roundRect",x=p.getVisual("symbol"),b=this._createItem(a,o,r,e,m,x,t,g,v,y,u);b.on("click",SA(Df,a,null,n,c)).on("mouseover",SA(Lf,d.name,null,n,c)).on("mouseout",SA(Of,d.name,null,n,c)),l.set(a,!0)}else i.eachRawSeries((function(i){if(!l.get(a)&&i.legendVisualProvider){var s=i.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),d=s.getItemVisual(h,"style"),p=d.stroke,f=d.decal,g=d.fill,v=ae(d.fill);v&&0===v[3]&&(v[3]=.2,g=ge(v,"rgba"));var y="roundRect",m=this._createItem(a,o,r,e,y,null,t,g,p,f,u);m.on("click",SA(Df,null,a,n,c)).on("mouseover",SA(Lf,null,a,n,c)).on("mouseout",SA(Of,null,a,n,c)),l.set(a,!0)}}),this)}),this),r&&this._createSelector(r,e,n,o,a)},e.prototype._createSelector=function(t,e,i){var n=this.getSelectorGroup();MA(t,(function(t){var r=t.type,o=new Db({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});n.add(o);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);wa(o,{normal:a,emphasis:s},{defaultText:t.title}),vo(o)}))},e.prototype._createItem=function(t,e,i,n,r,o,a,s,l,u,c){var d=n.get("itemWidth"),p=n.get("itemHeight"),f=n.get("inactiveColor"),g=n.get("inactiveBorderColor"),v=n.get("symbolKeepAspect"),y=n.getModel("itemStyle"),m=n.isSelected(t),x=new TA,b=i.getModel("textStyle"),_=i.get("icon"),w=i.getModel("tooltip"),k=w.parentModel;r=_||r;var S=oc(r,0,0,d,p,m?s:f,null==v||v);if(x.add(Af(S,r,y,l,g,u,m)),!_&&o&&(o!==r||"none"===o)){var M=.8*p;"none"===o&&(o="circle");var T=oc(o,(d-M)/2,(p-M)/2,M,M,m?s:f,null==v||v);x.add(Af(T,o,y,l,g,u,m))}var C="left"===a?d+5:-5,I=a,A=n.get("formatter"),D=t;"string"==typeof A&&A?D=A.replace("{name}",null!=t?t:""):"function"==typeof A&&(D=A(t)),x.add(new Db({style:Sa(b,{text:D,x:C,y:p/2,fill:m?b.getTextColor():f,align:I,verticalAlign:"middle"})}));var P=new Tb({shape:x.getBoundingRect(),invisible:!0});if(w.get("show")){var L={componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]};P.tooltip=h({content:t,formatter:k.get("formatter",!0)||function(t){return t.name},formatterParams:L},w.option)}return x.add(P),x.eachChild((function(t){t.silent=!0})),P.silent=!c,this.getContentGroup().add(x),vo(x),x.__legendDataIndex=e,x},e.prototype.layoutInner=function(t,e,i,n,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Uw(t.get("orient"),a,t.get("itemGap"),i.width,i.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Uw("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+d+c[f],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(rS),IA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,i,n){var r=ks(e);t.prototype.init.call(this,e,i,n),Nf(this,e,r)},e.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),Nf(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Ra(kA.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(kA),AA=Hm,DA=["width","height"],PA=["x","y"],LA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.newlineDisabled=!0,i._currentIndex=0,i}return i(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new AA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new AA)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,i,n,r,o,a,s){function l(t,e){var n=t+"DataIndex",o=ga(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:iy(u._pageGo,u,n,i,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=t,c.add(o)}var u=this;t.prototype.renderInner.call(this,e,i,n,r,o,a,s);var c=this._controllerGroup,h=i.get("pageIconSize",!0),d=M(h)?h:[h,h];l("pagePrev",0);var p=i.getModel("pageTextStyle");c.add(new Db({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),l("pageNext",1)},e.prototype.layoutInner=function(t,e,i,n,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,u=DA[s],c=PA[s],h=DA[1-s],d=PA[1-s];r&&Uw("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),f=a.getBoundingRect(),g=[-f.x,-f.y],v=l(i);r&&(v[u]=i[u]-f[u]-p);var y=this._layoutContentAndController(t,n,v,s,u,h,d,c);if(r){if("end"===o)g[s]+=y[u]+p;else{var m=f[u]+p;g[s]-=m,y[c]-=m}y[u]+=f[u]+p,g[1-s]+=y[d]+y[h]/2-f[h]/2,y[h]=Math.max(y[h],f[h]),y[d]=Math.min(y[d],f[d]+g[1-s]),a.x=g[0],a.y=g[1],a.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,i,n,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;Uw(t.get("orient"),l,t.get("itemGap"),n?i.width:null,n?null:i.height),Uw("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[r]>i[r],f=[-h.x,-h.y];e||(f[n]=l[s]);var g=[0,0],v=[-d.x,-d.y],y=F(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var m=t.get("pageButtonPosition",!0);"end"===m?v[n]+=i[r]-d[r]:g[n]+=d[r]+y}v[1-n]+=h[o]/2-d[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var x={x:0,y:0};if(x[r]=p?i[r]:h[r],x[o]=Math.max(h[o],d[o]),x[a]=Math.min(0,d[a]+v[1-n]),u.__rectSize=i[r],p){var b={x:0,y:0};b[r]=Math.max(i[r]-d[r]-y,0),b[o]=x[o],u.setClipPath(new Tb({shape:b})),u.__rectSize=b[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&ea(l,{x:_.contentPosition[0],y:_.contentPosition[1]},p?t:null),this._updatePageInfoView(t,_),x},e.prototype._pageGo=function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var i=this._controllerGroup;y(["pagePrev","pageNext"],(function(n){var r=n+"DataIndex",o=null!=e[r],a=i.childOfName(n);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var n=i.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;n&&r&&n.setStyle("text",C(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){function e(t){if(t){var e=t.getBoundingRect(),i=e[l]+t[l];return{s:i,e:i+e[s],i:t.__legendDataIndex}}}function i(t,e){return t.e>=e&&t.s<=e+o}var n=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=DA[a],l=PA[a],u=this._findTargetItemIndex(n),c=r.children(),h=c[u],d=c.length,p=d?1:0,f={contentPosition:[r.x,r.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return f;var g=e(h);f.contentPosition[a]=-g.s;for(var v=u+1,y=g,m=g,x=null;d>=v;++v)x=e(c[v]),(!x&&m.e>y.s+o||x&&!i(x,y.s))&&(y=m.i>y.i?m:x,y&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=y.i),++f.pageCount)),m=x;for(v=u-1,y=g,m=g,x=null;v>=-1;--v)x=e(c[v]),x&&i(m,x.s)||!(y.i<m.i)||(m=y,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=y.i),++f.pageCount,++f.pageIndex),y=x;return f},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,i,n=this.getContentGroup();return n.eachChild((function(n,r){var o=n.__legendDataIndex;null==i&&null!=o&&(i=r),o===t&&(e=r)})),null!=e?e:i},e.type="legend.scroll",e}(CA);xd(Vf);var OA=sn(),zA=l,RA=iy,EA=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,i,n){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,i);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=S(Hf,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Hm,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),i.getZr().add(a);Yf(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&n.getBandWidth()>a)return!0;if(o){var s=bf(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===i},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var i=e.pointer;if(i){var n=OA(t).pointerEl=new nw[i.type](zA(e.pointer));t.add(n)}},t.prototype.createLabelEl=function(t,e,i,n){if(e.label){var r=OA(t).labelEl=new Db(zA(e.label));t.add(r),Wf(r,n)}},t.prototype.updatePointerEl=function(t,e,i){var n=OA(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,i,n){var r=OA(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{x:e.label.x,y:e.label.y}),Wf(r,n))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,n=this._api.getZr(),r=this._handle,o=i.getModel("handle"),a=i.get("status");if(!o.get("show")||!a||"hide"===a)return r&&n.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=ga(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){by(t.event)},onmousedown:RA(this._onHandleDragMove,this,0,0),drift:RA(this._onHandleDragMove,this),ondragend:RA(this._onHandleDragEnd,this)}),n.add(r)),Yf(r,i,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");M(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,yu(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Hf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Gf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Gf(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Gf(n)),OA(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},t}(),BA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.makeElOption=function(t,e,i,n,r){var o=i.axis,a=o.grid,s=n.get("type"),l=tg(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=Uf(n),h=NA[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=$p(a.model,i);Kf(e,t,d,i,n,r)},e.prototype.getHandleTransform=function(t,e,i){var n=$p(e.axis.grid.model,e,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var r=$f(e.axis,t,n);return{x:r[0],y:r[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,i){var n=i.axis,r=n.grid,o=n.getGlobalExtent(!0),a=tg(r,n).getOtherAxis(n).getGlobalExtent(),s="x"===n.dim?0:1,l=[t.x,t.y];l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var u=(a[1]+a[0])/2,c=[u,u];c[s]=l[s];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:c,tooltipOption:h[s]}},e}(EA),NA={line:function(t,e,i){var n=Qf([e,i[0]],[e,i[1]],eg(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:Jf([e-n/2,i[0]],[n,r],eg(t))}}},FA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.type="axisPointer",e.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Zw),VA=sn(),HA=y,jA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.prototype.render=function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";ig("axisPointer",i,(function(t,e,i){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){lg("axisPointer",e)},e.prototype.dispose=function(t,e){lg("axisPointer",e)},e.type="axisPointer",e}(rS),WA=sn(),GA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Zw),YA=["-ms-","-moz-","-o-","-webkit-",""],UA="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;",XA=function(){function t(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,jv.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;Ig(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,i=r.painter.getViewportRoot();At(i,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,i=e.currentStyle||document.defaultView.getComputedStyle(e),n=e.style;"absolute"!==n.position&&"absolute"!==i.position&&(n.position="relative");var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=this._styleCoord,r=i.offsetHeight/2;e=ys(e),i.style.cssText=UA+Cg(t,!this._firstShow,this._longHide)+";left:"+n[0]+"px;top:"+(n[1]-r)+"px;border-color: "+e+";"+(t.get("extraCssText")||""),i.style.display=i.innerHTML?"block":"none",i.style.pointerEvents=this._enterable?"auto":"none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,n,r){if(null!=t){var o=this.el;if(C(r)&&"item"===i.get("trigger")&&!wg(i)&&(t+=Sg(i.get("backgroundColor"),n,r)),C(t))o.innerHTML=t;else if(t){o.innerHTML="",M(t)||(t=[t]);for(var a=0;a<t.length;a++)O(t[a])&&t[a].parentNode!==o&&o.appendChild(t[a])}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.clientWidth,t.clientHeight]},t.prototype.moveTo=function(t,e){var i=this._styleCoord;if(Ig(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]){var n=this.el.style;n.left=i[0].toFixed(0)+"px",n.top=i[1].toFixed(0)+"px"}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this;this.el.style.visibility="hidden",this.el.style.opacity="0",this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(iy(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t.prototype.getOuterSize=function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(t+=parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),e+=parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:t,height:e}},t}(),ZA=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),Pg(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,i,n){D(t)&&Vi(""),this.el&&this._zr.remove(this.el);var r=i.getModel("textStyle");this.el=new Db({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:i.get("backgroundColor"),borderRadius:i.get("borderRadius"),borderWidth:1,borderColor:n,shadowColor:i.get("shadowColor"),shadowBlur:i.get("shadowBlur"),shadowOffsetX:i.get("shadowOffsetX"),shadowOffsetY:i.get("shadowOffsetY"),textShadowColor:r.get("textShadowColor"),textShadowBlur:r.get("textShadowBlur")||0,textShadowOffsetX:r.get("textShadowOffsetX")||0,textShadowOffsetY:r.get("textShadowOffsetY")||0,fill:i.get(["textStyle","color"]),padding:Jl(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),this._zr.add(this.el);var o=this;this.el.on("mouseover",(function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0})),this.el.on("mouseout",(function(){o._enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=Dg(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},t.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;Pg(n,this._zr,t,e),t=n[0],e=n[1];var r=i.style,o=Ag(r.borderWidth||0),a=Dg(r);i.x=t+o+a.left,i.y=e+o+a.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(iy(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.getOuterSize=function(){var t=this.getSize();return{width:t[0],height:t[1]}},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),qA=iy,$A=y,KA=bi,QA=new Tb({shape:{x:-1,y:-1,width:2,height:2}}),JA=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.prototype.init=function(t,e){if(!jv.node){var i=t.getComponent("tooltip"),n=i.get("renderMode");this._renderMode=dn(n),this._tooltipContent="richText"===this._renderMode?new ZA(e):new XA(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)})}},e.prototype.render=function(t,e,i){if(!jv.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");ig("itemTooltip",this._api,qA((function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,i,n){if(n.from!==this.uid&&!jv.node){var r=Og(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var a=QA;a.x=n.x,a.y=n.y,a.update(),a.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:a},r)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:o,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var s=ug(n,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:n.position,target:s.el},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,i,n){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(Og(n,i))},e.prototype._manuallyAxisShowTip=function(t,e,i,n){var r=n.seriesIndex,o=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=Lg([l.getItemModel(o),s,(s.coordinateSystem||{}).model,t]);if("axis"===u.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}}},e.prototype._tryShow=function(t,e){var i=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,t):i&&nc(i,(function(t){return null!=Ob(t).dataIndex}),!0)?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},e.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=iy(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},e.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,r=[e.offsetX,e.offsetY],o=Lg([e.tooltipOption,n]),a=this._renderMode,s=[],l=jl("section",{blocks:[],noHeader:!0}),u=[],c=new eS;$A(t,(function(t){$A(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value;if(e&&null!=n){var r=qf(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt),o=jl("section",{header:r,noHeader:!G(r),sortBlocks:!0,blocks:[]});l.blocks.push(o),y(t.seriesDataIndices,(function(l){var h=i.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,p=h.getDataParams(d);p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=ld(e.axis,{value:n}),p.axisValueLabel=r,p.marker=c.makeTooltipMarker("item",ys(p.color),a);var f=Tl(h.formatTooltip(d,!0,null));f.markupFragment&&o.blocks.push(f.markupFragment),f.markupText&&u.push(f.markupText),s.push(p)}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),p=Yl(l,c,a,d,i.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,i){var n=nc(e,(function(t){return null!=Ob(t).dataIndex}),!0),r=this._ecModel,o=Ob(n),a=o.seriesIndex,s=r.getSeriesByIndex(a),l=o.dataModel||s,u=o.dataIndex,c=o.dataType,h=l.getData(c),d=this._renderMode,p=Lg([h.getItemModel(u),l,s&&(s.coordinateSystem||{}).model,this._tooltipModel]),f=p.get("trigger");if(null==f||"item"===f){var g=l.getDataParams(u,c),v=new eS;g.marker=v.makeTooltipMarker("item",ys(g.color),d);var y=Tl(l.formatTooltip(u,!1,c)),m=p.get("order"),x=y.markupFragment?Yl(y.markupFragment,v,d,m,r.get("useUTC"),p.get("textStyle")):y.markupText,b="item_"+l.name+"_"+u;this._showOrMove(p,(function(){this._showTooltipContent(p,x,g,b,t.offsetX,t.offsetY,t.position,t.target,v)})),i({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:a,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,i){var n=e.tooltip;if(C(n)){var r=n;n={content:r,formatter:r}}var o=new mw(n,this._tooltipModel,this._ecModel),a=o.get("content"),s=Math.random()+"",l=new eS;this._showOrMove(o,(function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e,l)})),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,i,n,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([r,o],i,t.get("trigger"),t.get("borderColor"));if(c&&C(c)){var p=t.ecModel.get("useUTC"),f=M(i)?i[0]:i,g=f&&f.axisType&&f.axisType.indexOf("time")>=0;h=c,g&&(h=Ga(f.axisValue,h,p)),h=ps(h,i,!0)}else if(T(c)){var v=qA((function(e,n){e===this._ticket&&(u.setContent(n,l,t,d.color,a),this._updatePosition(t,a,r,o,u,i,s))}),this);this._ticket=n,h=c(i,n,v)}u.setContent(h,l,t,d.color,a),u.show(t,d.color),this._updatePosition(t,a,r,o,u,i,s)}},e.prototype._getNearestPoint=function(t,e,i,n){return"axis"===i||M(e)?{color:n||("html"===this._renderMode?"#fff":"none")}:M(e)?void 0:{color:n||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,i,n,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),T(e)&&(e=e([i,n],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),M(e))i=KA(e[0],s),n=KA(e[1],l);else if(D(e)){var p=e;p.width=u[0],p.height=u[1];var f=bs(p,{width:s,height:l});i=f.x,n=f.y,c=null,h=null}else if(C(e)&&a){var g=Eg(e,d,u);i=g[0],n=g[1]}else{g=zg(i,n,r,s,l,c?null:20,h?null:20);i=g[0],n=g[1]}if(c&&(i-=Bg(c)?u[0]/2:"right"===c?u[0]:0),h&&(n-=Bg(h)?u[1]/2:"bottom"===h?u[1]:0),wg(t)){g=Rg(i,n,r,s,l);i=g[0],n=g[1]}r.moveTo(i,n)},e.prototype._updateContentNotChangedOnAxis=function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&$A(e,(function(e,n){var r=e.dataByAxis||[],o=t[n]||{},a=o.dataByAxis||[];i=i&&r.length===a.length,i&&$A(r,(function(t,e){var n=a[e]||{},r=t.seriesDataIndices||[],o=n.seriesDataIndices||[];i=i&&t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&r.length===o.length,i&&$A(r,(function(t,e){var n=o[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}))}))})),this._lastDataByCoordSys=t,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){jv.node||(this._tooltipContent.dispose(),lg("itemTooltip",e))},e.type="tooltip",e}(rS);xd(Ng);var tD=sn(),eD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.createdBySelf=!1,i}return i(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(jv.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,i,n){var r=this.mainType;i||e.eachSeries((function(t){var i=t.get(this.mainType,!0),o=tD(t)[r];return i&&i.data?(o?o._mergeOption(i,e,!0):(n&&Fg(i),y(i.data,(function(t){t instanceof Array?(Fg(t[0]),Fg(t[1])):Fg(t)})),o=this.createMarkerModelFromSeries(i,this,e),h(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),void(tD(t)[r]=o)):void(tD(t)[r]=null)}),this)},e.prototype.formatTooltip=function(t){var e=this.getData(),i=this.getRawValue(t),n=e.getName(t);return jl("section",{header:this.name,blocks:[jl("nameValue",{name:n,value:i,noName:!n,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return tD(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Zw);g(eD,Wk.prototype);var iD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.prototype.createMarkerModelFromSeries=function(t,i,n){return new e(t,i,n)},e.type="markPoint",e.defaultOption={zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(eD),nD={min:S(jg,"min"),max:S(jg,"max"),average:S(jg,"average"),median:S(jg,"median")},rD=sn(),oD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.prototype.init=function(){this.markerGroupMap=X()},e.prototype.render=function(t,e,i){var n=this,r=this.markerGroupMap;r.each((function(t){rD(t).keep=!1})),e.eachSeries((function(t){var r=eD.getMarkerModelFromSeries(t,n.type);r&&n.renderSeries(t,r,e,i)})),r.each((function(t){!rD(t).keep&&n.group.remove(t.group)}))},e.prototype.markKeep=function(t){rD(t).keep=!0},e.prototype.blurSeries=function(t){var e=this;y(t,(function(t){var i=eD.getMarkerModelFromSeries(t,e.type);if(i){var n=i.getData();n.eachItemGraphicEl((function(t){t&&ro(t)}))}}))},e.type="marker",e}(rS),aD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.prototype.updateTransform=function(t,e,i){e.eachSeries((function(t){var e=eD.getMarkerModelFromSeries(t,"markPoint");e&&(qg(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,i,n){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new EI),u=$g(r,t,e);e.setData(u),qg(e.getData(),t,n),u.each((function(t){var i=u.getItemModel(t),n=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate");if(T(n)||T(r)||T(o)){var s=e.getRawValue(t),l=e.getDataParams(t);T(n)&&(n=n(s,l)),T(r)&&(r=r(s,l)),T(o)&&(o=o(s,l))}var c=i.getModel("itemStyle").getItemStyle(),h=zu(a,"color");c.fill||(c.fill=h),u.setItemVisual(t,{symbol:n,symbolSize:r,symbolRotate:o,style:c})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){Ob(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(oD);xd(Kg);var sD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.layoutMode="box",i}return i(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),0>t&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,i=e.data||[],n=e.axisType,r=this._names=[];"category"===n?(t=[],y(i,(function(e,i){var n,o=tn(Wi(e),"");D(e)?(n=l(e),n.value=i):n=i,t.push(n),r.push(o)}))):t=i;var o={category:"ordinal",time:"time",value:"number"}[n]||"number",a=this._data=new mC([{name:"value",type:o}],this);a.initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){return"category"===this.get("axisType")?this._names.slice():void 0},e.type="timeline",e.defaultOption={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Zw),lD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.type="timeline.slider",e.defaultOption=Ra(sD.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(sD);g(lD,Wk.prototype);var uD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.type="timeline",e}(rS),cD=function(t){function e(e,i,n,r){var o=t.call(this,e,i,n)||this;return o.type=r||"value",o}return i(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(sI),hD=Math.PI,dD=sn(),pD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,i){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,i),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(n,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return jl("nameValue",{noName:!0,value:e})},y(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](n,r,a,t)}),this),this._renderAxisLabel(n,o,a,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var i,n=t.get(["label","position"]),r=t.get("orient"),o=Jg(t,e);i=null==n||"auto"===n?"horizontal"===r?o.y+o.height/2<e.getHeight()/2?"-":"+":o.x+o.width/2<e.getWidth()/2?"+":"-":C(n)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][n]:n;var a={horizontal:"center",vertical:i>=0||"+"===i?"left":"right"},s={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},l={horizontal:0,vertical:hD/2},u="vertical"===r?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show",!0),d=h?c.get("itemSize"):0,p=h?c.get("itemGap"):0,f=d+p,g=t.get(["label","rotate"])||0;g=g*hD/180;var v,y,m,x=c.get("position",!0),b=h&&c.get("showPlayBtn",!0),_=h&&c.get("showPrevBtn",!0),w=h&&c.get("showNextBtn",!0),k=0,S=u;"left"===x||"bottom"===x?(b&&(v=[0,0],k+=f),_&&(y=[k,0],k+=f),w&&(m=[S-d,0],S-=f)):(b&&(v=[S-d,0],S-=f),_&&(y=[0,0],k+=f),w&&(m=[S-d,0],S-=f));var M=[k,S];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:u,orient:r,rotation:l[r],labelRotation:g,labelPosOpt:i,labelAlign:t.get(["label","align"])||a[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||s[r],playPosition:v,prevBtnPosition:y,nextBtnPosition:m,axisExtent:M,controlSize:d,controlGap:p}},e.prototype._position=function(t){function e(t){t.originX=c[0][0]-t.x,t.originY=c[1][0]-t.y}function i(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function n(t,e,i,n,r){t[n]+=i[n][r]-e[n][r]}var r=this._mainGroup,o=this._labelGroup,a=t.viewRect;if("vertical"===t.orient){var s=Vt(),l=a.x,u=a.y+a.height;Gt(s,s,[-l,-u]),Yt(s,s,-hD/2),Gt(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var c=i(a),h=i(r.getBoundingRect()),d=i(o.getBoundingRect()),p=[r.x,r.y],f=[o.x,o.y];f[0]=p[0]=c[0][0];var g=t.labelPosOpt;if(null==g||C(g)){var v="+"===g?0:1;n(p,h,c,1,v),n(f,d,c,1,1-v)}else{v=g>=0?0:1;n(p,h,c,1,v),f[1]=p[1]+g}r.setPosition(p),o.setPosition(f),r.rotation=o.rotation=t.rotation,e(r),e(o)},e.prototype._createAxis=function(t,e){var i=e.getData(),n=e.get("axisType"),r=Qg(e,n);r.getTicks=function(){return i.mapArray(["value"],(function(t){return{value:t}}))};var o=i.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new cD("value",r,t.axisExtent,n);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Hm;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,i,n){var r=i.getExtent();if(n.get(["lineStyle","show"])){var o=new z_({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:h({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new z_({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:d({lineCap:"round",lineWidth:o.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,i,n){var r=this,o=n.getData(),a=i.scale.getTicks();this._tickSymbols=[],y(a,(function(t){var a=i.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:iy(r._changeTimeline,r,t.value)},d=ev(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),vo(d);var p=Ob(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=n):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,i,n){var r=this,o=i.getLabelModel();if(o.get("show")){var a=n.getData(),s=i.getViewLabels();this._tickLabels=[],y(s,(function(n){var o=n.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=i.dataToCoord(n.tickValue),d=new Db({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:iy(r._changeTimeline,r,o),silent:!1,style:Sa(l,{text:n.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=Sa(u),d.ensureState("progress").style=Sa(c),e.add(d),vo(d),dD(d).dataIndex=o,r._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,i,n){function r(t,i,r,u){if(t){var c=Fe(F(n.get(["controlStyle",i+"BtnSize"]),o),o),h=[0,-c/2,c,c],d={position:t,origin:[o/2,0],rotation:u?-a:0,rectHover:!0,style:s,onclick:r},p=tv(n,i+"Icon",h,d);p.ensureState("emphasis").style=l,e.add(p),vo(p)}}var o=t.controlSize,a=t.rotation,s=n.getModel("controlStyle").getItemStyle(),l=n.getModel(["emphasis","controlStyle"]).getItemStyle(),u=n.getPlayState(),c=n.get("inverse",!0);r(t.nextBtnPosition,"next",iy(this._changeTimeline,this,c?"-":"+")),r(t.prevBtnPosition,"prev",iy(this._changeTimeline,this,c?"+":"-")),r(t.playPosition,u?"stop":"play",iy(this._handlePlayClick,this,!u),!0)},e.prototype._renderCurrentPointer=function(t,e,i,n){var r=n.getData(),o=n.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=iy(s._handlePointerDrag,s),t.ondragend=iy(s._handlePointerDragend,s),iv(t,s._progressLine,o,i,n,!0)},onUpdate:function(t){iv(t,s._progressLine,o,i,n)}};this._currentPointer=ev(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,r=wi(n.getExtent().slice());i>r[1]&&(i=r[1]),i<r[0]&&(i=r[0]),this._currentPointer.x=i,this._currentPointer.markRedraw(),this._progressLine.shape.x2=i,this._progressLine.dirty();var o=this._findNearestTick(i),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return la(t,e,!0)},e.prototype._findNearestTick=function(t){var e,i=this.model.getData(),n=1/0,r=this._axis;return i.each(["value"],(function(i,o){var a=r.dataToCoord(i),s=Math.abs(a-t);n>s&&(n=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,i=this._tickLabels;if(e)for(var n=0;n<e.length;n++)e&&e[n]&&e[n].toggleState("progress",t>n);if(i)for(n=0;n<i.length;n++)i&&i[n]&&i[n].toggleState("progress",dD(i[n]).dataIndex<=t)},e.type="timeline.slider",e}(uD);xd(lv);var fD=["x","y","radius","angle","single"],gD=["cartesian2d","polar","singleAxis"],vD=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),yD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._autoThrottle=!0,i._noTarget=!0,i._rangePropMode=["percent","percent"],i}return i(e,t),e.prototype.init=function(t,e,i){var n=pv(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var e=pv(t);u(this.option,t,!0),u(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;y([["start","startValue"],["end","endValue"]],(function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=i[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=X(),i=this._fillSpecifiedTargetAxis(e);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return y(fD,(function(i){var n=this.getReferringComponents(cv(i),ix);if(n.specified){e=!0;var r=new vD;y(n.models,(function(t){r.add(t.componentIndex)})),t.set(i,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){function i(e,i){var n=e[0];if(n){var o=new vD;if(o.add(n.componentIndex),t.set(i,o),r=!1,"x"===i||"y"===i){var a=n.getReferringComponents("grid",ex).models[0];a&&y(e,(function(t){n.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",ex).models[0]&&o.add(t.componentIndex)}))}}}var n=this.ecModel,r=!0;if(r){var o="vertical"===e?"y":"x",a=n.findComponents({mainType:o+"Axis"});i(a,o)}if(r){a=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});i(a,"single")}r&&y(fD,(function(e){if(r){var i=n.findComponents({mainType:cv(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new vD;o.add(i[0].componentIndex),t.set(e,o),r=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,i=this.get("rangeMode");y([["start","startValue"],["end","endValue"]],(function(n,r){var o=null!=t[n[0]],a=null!=t[n[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":i?e[r]=i[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,i){null==t&&(t=this.ecModel.getComponent(cv(e),i))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(i,n){y(i.indexList,(function(i){t.call(e,n,i)}))}))},e.prototype.getAxisProxy=function(t,e){var i=this.getAxisModel(t,e);return i?i.__dzAxisProxy:void 0},e.prototype.getAxisModel=function(t,e){var i=this._targetAxisInfoMap.get(t);return i&&i.indexMap[e]?this.ecModel.getComponent(cv(t),e):void 0},e.prototype.setRawRange=function(t){var e=this.option,i=this.settledOption;y([["start","startValue"],["end","endValue"]],(function(n){(null!=t[n[0]]||null!=t[n[1]])&&(e[n[0]]=i[n[0]]=t[n[0]],e[n[1]]=i[n[1]]=t[n[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;y(["start","startValue","end","endValue"],(function(i){e[i]=t[i]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,i=this._targetAxisInfoMap.keys(),n=0;n<i.length;n++)for(var r=i[n],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={zlevel:0,z:4,filterMode:"filter",start:0,end:100},e}(Zw),mD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.type="dataZoom.inside",e.defaultOption=Ra(yD.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(yD),xD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.prototype.render=function(t,e,i){this.dataZoomModel=t,this.ecModel=e,this.api=i},e.type="dataZoom",e}(rS),bD="\0_ec_interaction_mutex";Qc({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){}));var _D=function(t){function e(e){var i=t.call(this)||this;i._zr=e;var n=iy(i._mousedownHandler,i),r=iy(i._mousemoveHandler,i),o=iy(i._mouseupHandler,i),a=iy(i._mousewheelHandler,i),s=iy(i._pinchHandler,i);return i.enable=function(t,i){this.disable(),this._opt=d(l(i)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),(!0===t||"move"===t||"pan"===t)&&(e.on("mousedown",n),e.on("mousemove",r),e.on("mouseup",o)),(!0===t||"scale"===t||"zoom"===t)&&(e.on("mousewheel",a),e.on("pinch",s))},i.disable=function(){e.off("mousedown",n),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},i}return i(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(Ot(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&_v("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!yv(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,r=this._y,o=e-n,a=i-r;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&by(t.event),bv(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:n,oldY:r,newX:e,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Ot(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=_v("zoomOnMouseWheel",t,this._opt),i=_v("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,r=Math.abs(n),o=t.offsetX,a=t.offsetY;if(0!==n&&(e||i)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=n>0?s:1/s;xv(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(i){var u=Math.abs(n),c=(n>0?1:-1)*(u>3?.4:u>1?.15:.05);xv(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!yv(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;xv(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(py),wD=sn(),kD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return i(e,t),e.prototype.render=function(e,i,n){return t.prototype.render.apply(this,arguments),e.noTarget()?void this._clear():(this.range=e.getPercentRange(),void wv(n,e,{pan:iy(SD.pan,this),zoom:iy(SD.zoom,this),scrollMove:iy(SD.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){kv(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(xD),SD={zoom:function(t,e,i,n){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=MD[e](null,[n.originX,n.originY],a,i,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/n.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return fv(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:Dv((function(t,e,i,n,r,o){var a=MD[n]([o.oldX,o.oldY],[o.newX,o.newY],e,r,i);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:Dv((function(t,e,i,n,r,o){var a=MD[n]([0,0],[o.scrollDelta,o.scrollDelta],e,r,i);return a.signal*(t[1]-t[0])*o.scrollDelta}))},MD={grid:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,i,n,r){var o=i.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},TD=y,CD=wi,ID=function(){function t(t,e,i,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=i}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(uv(e)){var i=cv(this._dimName),n=e.getReferringComponents(i,ex).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return l(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){function e(t,e,i,n,r){var a=r?"Span":"ValueSpan";fv(0,t,i,"all",c["min"+a],c["max"+a]);for(var s=0;2>s;s++)e[s]=xi(t[s],i,n,!0),r&&(e[s]=o.parse(e[s]))}var i,n=this._dataExtent,r=this.getAxisModel(),o=r.axis.scale,a=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];TD(["start","end"],(function(e,r){var c=t[e],h=t[e+"Value"];"percent"===a[r]?(null==c&&(c=s[r]),h=o.parse(xi(c,s,n))):(i=!0,h=null==h?n[r]:o.parse(h),c=xi(h,n,s)),u[r]=h,l[r]=c})),CD(u),CD(l);var c=this._minMaxSpan;return i?e(u,l,n,s,!1):e(l,u,s,n,!0),{valueWindow:u,percentWindow:l}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Pv(this,this._dimName,e),this._updateMinMaxSpan();var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t){function e(t){return t>=o[0]&&t<=o[1]}if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&TD(n,(function(t){var n=t.getData(),a=n.mapDimensionsAll(i);a.length&&("weakFilter"===r?n.filterSelf((function(t){for(var e,i,r,s=0;s<a.length;s++){var l=n.get(a[s],t),u=!isNaN(l),c=l<o[0],h=l>o[1];if(u&&!c&&!h)return!0;u&&(r=!0),c&&(e=!0),h&&(i=!0)}return r&&e&&i})):TD(a,(function(i){if("empty"===r)t.setData(n=n.map(i,(function(t){return e(t)?t:NaN})));else{var a={};a[i]=o,n.selectRange(a)}})),TD(a,(function(t){n.setApproximateExtent(o,t)})))}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;TD(["min","max"],(function(n){var r=e.get(n+"Span"),o=e.get(n+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=xi(i[0]+o,i,[0,100],!0):null!=r&&(o=xi(r,[0,100],i,!0)-i[0]),t[n+"Span"]=r,t[n+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(e){var n=Mi(i,[0,500]);n=Math.min(n,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+i[0].toFixed(n)),100!==e[1]&&r.setDeterminedMinMax("max",+i[1].toFixed(n)),r.freeze()}},t}(),AD={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(i){i.eachTargetAxis((function(n,r){var o=t.getComponent(cv(n),r);e(n,r,o,i)}))}))}e((function(t,e,i){i.__dzAxisProxy=null}));var i=[];e((function(e,n,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new ID(e,n,o,t),i.push(r.__dzAxisProxy))}));var n=X();return y(i,(function(t){y(t.getTargetSeriesModels(),(function(t){n.set(t.uid,t)}))})),n},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,i){t.getAxisProxy(e,i).reset(t)})),t.eachTargetAxis((function(i,n){t.getAxisProxy(i,n).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}}))}},DD=!1,PD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return i(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Ra(yD.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(yD),LD=Tb,OD=7,zD=1,RD=30,ED=7,BD="horizontal",ND="vertical",FD=5,VD=["line","bar","candlestick","scatter"],HD={easing:"cubicOut",duration:100},jD=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._displayables={},i}return i(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=iy(this._onBrush,this),this._onBrushEnd=iy(this._onBrushEnd,this)},e.prototype.render=function(e,i,n,r){return t.prototype.render.apply(this,arguments),yu(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1===e.get("show")?void this.group.removeAll():e.noTarget()?(this._clear(),void this.group.removeAll()):(r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),void this._updateView())},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){mu(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Hm;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,i=t.get("brushSelect"),n=i?ED:0,r=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===BD?{right:o.width-r.x-r.width,top:o.height-RD-OD-n,width:r.width,height:RD}:{right:OD,top:r.y,width:RD,height:r.height},s=ks(t.option);y(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=a[t])}));var l=bs(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===ND&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(i!==BD||r?i===BD&&r?{scaleY:a?1:-1,scaleX:-1}:i!==ND||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.sliderGroup,n=t.get("brushSelect");i.add(new LD({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new LD({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:iy(this._onClickPanel,this)}),o=this.api.getZr();n?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),i.add(r)},e.prototype._renderDataShadow=function(){function t(t){var e=v.getModel(t?"selectedDataBackground":"dataBackground"),i=new Hm,n=new A_({shape:{points:h},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new P_({shape:{points:d},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return i.add(n),i.add(r),i}var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var i=this._size,n=e.series,r=n.getRawData(),o=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=o){var a=r.getDataExtent(o),s=.3*(a[1]-a[0]);a=[a[0]-s,a[1]+s];var l,u=[0,i[1]],c=[0,i[0]],h=[[i[0],0],[0,0]],d=[],p=c[1]/(r.count()-1),f=0,g=Math.round(r.count()/i[0]);r.each([o],(function(t,e){if(g>0&&e%g)f+=p;else{var i=null==t||isNaN(t)||""===t,n=i?0:xi(t,a,u,!0);i&&!l&&e?(h.push([h[h.length-1][0],0]),d.push([d[d.length-1][0],0])):!i&&l&&(h.push([f,0]),d.push([f,0])),h.push([f,n]),d.push([f,n]),f+=p,l=i}}));for(var v=this.dataZoomModel,y=0;3>y;y++){var m=t(1===y);this._displayables.sliderGroup.add(m),this._displayables.dataShadowSegs.push(m)}}}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,n=this.ecModel;return t.eachTargetAxis((function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();y(a,(function(t){if(!(i||!0!==e&&p(VD,t.get("type"))<0)){var a,s=n.getComponent(cv(r),o).axis,l=Rv(r),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),i={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),i}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,i=e.handles=[null,null],n=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new LD({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new LD({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:zD,fill:"rgba(0,0,0,0)"}})),y([0,1],(function(e){var o=a.get("handleIcon");!uM[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=oc(o,-1,0,2,2,null,!0);s.attr({cursor:Ev(this._orient),draggable:!0,drift:iy(this._onDragMove,this,e),ondragend:iy(this._onDragEnd,this),onmouseover:iy(this._showDataInfo,this,!0),onmouseout:iy(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=bi(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),vo(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(i[e]=s);var h=a.getModel("textStyle");t.add(n[e]=new Db({silent:!0,invisible:!0,style:{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()},z2:10}))}),this);var h=c;if(u){var d=bi(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new Tb({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=oc(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(d,10));h=e.moveZone=new Tb({invisible:!0,shape:{y:o[1]-v,height:d+v}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:Ev(this._orient),drift:iy(this._onDragMove,this,"all"),ondragstart:iy(this._showDataInfo,this,!0),ondragend:iy(this._onDragEnd,this),onmouseover:iy(this._showDataInfo,this,!0),onmouseout:iy(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[xi(t[0],[0,100],e,!0),xi(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var i=this.dataZoomModel,n=this._handleEnds,r=this._getViewExtent(),o=i.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];fv(e,n,r,i.get("zoomLock")?"all":t,null!=o.minSpan?xi(o.minSpan,a,r,!0):null,null!=o.maxSpan?xi(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=wi([xi(n[0],r,a,!0),xi(n[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,i=this._handleEnds,n=wi(i.slice()),r=this._size;y([0,1],(function(t){var n=e.handles[t],o=this._handleHeight;n.attr({scaleX:o/2,scaleY:o/2,x:i[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:r[1]});var o={x:n[0],width:n[1]-n[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,n[0],n[1],r[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new Tb,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){function e(t){var e=sa(n.handles[t].parent,this.group),i=ua(0===t?"right":"left",e),s=this._handleWidth/2+FD,l=la([h[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:o===BD?"middle":i,align:o===BD?i:"center",text:a[t]})}var i=this.dataZoomModel,n=this._displayables,r=n.handleLabels,o=this._orient,a=["",""];if(i.get("showDetail")){var s=i.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,c=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var h=wi(this._handleEnds.slice());e.call(this,0),e.call(this,1)},e.prototype._formatLabel=function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),r=i.get("labelPrecision");(null==r||"auto"===r)&&(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return T(n)?n(t,o):C(n)?n.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,i=e.handleLabels;i[0].attr("invisible",!t),i[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,i,n){this._dragging=!0,by(n.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=la([e,i],r,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,r=(n[0]+n[1])/2,o=this._updateInterval("all",i[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,i=t.offsetY;this._brushStart=new Jy(e,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var e=t.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(e.width)<5)){var n=this._getViewExtent(),r=[0,100];this._range=wi([xi(e.x,n,r,!0),xi(e.x+e.width,n,r,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(by(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var i=this._displayables,n=this.dataZoomModel,r=i.brushRect;r||(r=i.brushRect=new LD({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?HD:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=dv(this.dataZoomModel).infoList;if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var n=this.api.getWidth(),r=this.api.getHeight();t={x:.2*n,y:.2*r,width:.6*n,height:.6*r}}return t},e.type="dataZoom.slider",e}(xD);xd(Nv),e.version=CM,e.dependencies=IM,e.PRIORITY=YM,e.init=Hc,e.connect=jc,e.disConnect=Wc,e.disconnect=VT,e.dispose=Gc,e.getInstanceByDom=Yc,e.getInstanceById=Uc,e.registerTheme=Xc,e.registerPreprocessor=Zc,e.registerProcessor=qc,e.registerPostInit=$c,e.registerPostUpdate=Kc,e.registerAction=Qc,e.registerCoordinateSystem=Jc,e.getCoordinateSystemDimensions=th,e.registerLayout=eh,e.registerVisual=ih,e.registerLoading=rh,e.setCanvasCreator=oh,e.registerMap=ah,e.getMap=sh,e.registerTransform=jT,e.dataTool=nC,e.registerLocale=Ea,e.zrender=Xm,e.matrix=Dy,e.vector=cy,e.zrUtil=oy,e.color=Zy,e.helper=qC,e.number=tI,e.time=eI,e.graphic=iI,e.format=nI,e.util=rI,e.ComponentModel=Zw,e.ComponentView=rS,e.SeriesModel=nS,e.ChartView=sS,e.extendComponentModel=Hd,e.extendComponentView=jd,e.extendSeriesModel=Wd,e.extendChartView=Gd,e.throttle=vu,e.use=xd,e.parseGeoJSON=Sd,e.parseGeoJson=Sd,e.env=jv,e.List=mC,e.Model=mw,e.Axis=sI,e.innerDrawElementOnCanvas=Ic}))}).call(this,i("5a52")["default"])},"66e9":function(t,e,i){"use strict";i.r(e);var n=i("7892"),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},"685d":function(t,e,i){"use strict";i.r(e);var n=i("77ad"),r=i("45a8");for(var o in r)"default"!==o&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("89ee");var a,s=i("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"ec0c24b0",null,!1,n["a"],a);e["default"]=l.exports},"69d3":function(t,e,i){"use strict";i.r(e);var n=i("8dbc"),r=i("39e4");for(var o in r)"default"!==o&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("4cf7");var a,s=i("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"6ac71468",null,!1,n["a"],a);e["default"]=l.exports},"6bbc":function(t,e,i){"use strict";i.r(e);var n=i("e6d2"),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},7039:function(t,e,i){var n=i("23e7"),r=i("d039"),o=i("057f").f,a=r((function(){return!Object.getOwnPropertyNames(1)}));n({target:"Object",stat:!0,forced:a},{getOwnPropertyNames:o})},"77ad":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"chart-line"},[i("v-uni-canvas",{staticClass:"chart",attrs:{"canvas-id":"line",id:"line","disable-scroll":"true"},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchLine.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.moveLine.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchEndLine.apply(void 0,arguments)}}})],1)},o=[]},7892:function(t,e,i){"use strict";(function(t){var n=i("4ea4");i("99af"),i("c975"),i("d81d"),i("a9e3"),i("b64b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n(i("b662"));var r=n(i("69d3")),o=i("8912"),a=n(i("3811")),s=n(i("685d")),l={data:function(){return{showPicker:!1,date:"2019/01/01",time:"15:00:12",datetime:"2019/01/01 15:00:12",range:"",rangetime:["2019/01/08","2019/01/16"],type:"rangetime",value:"",columnData:{},lineData:{},dataList:[{name:"销售额"},{name:"销量"},{name:"利润"}],dataCur:0,tabList:[{name:"收款明细"},{name:"解冻明细"},{name:"提现明细"},{name:"退款明细"}],tabs:[{name:"销售数据"},{name:"交易明细"}],dataParams:{cycle:"today",startime:"",endtime:""},current:0,account:{available_amount:0,pending_amount:0},params:{type:1,startime:"",endtime:"",page_index:1,page_size:5},recordList:"",total:"",form:"收款",num:0,totalPage:"",option:"",showColumn:!1,showLine:!1,allData:0,chartData:{}}},components:{MxDatePicker:r.default,echarts:a.default,capLine:s.default},onShow:function(){this.getAccount(),this.getData()},onReachBottom:function(){1==this.current&&this.getMore()},filters:{getStatus:function(t){switch(t){case"CREATE_SUCCESS":return"受理成功";case"SUCCESS":return"提现成功";case"FAIL":return"提现失败";case"REFUND":return"提现退票";case"CLOSE":return"关单";case"INIT":return"业务单已创建"}}},methods:{changeData:function(t){this.dataCur=t,this.getData()},getData:function(){var t=this,e=this.dataParams,i=this.dataCur;(0,o.getSaleInfo)(e).then((function(e){if(200==e.code){var n=e.data,r=[],o=[],a=0;n.map((function(t){0==i&&(o.push(t.account),a+=Number(t.account)),1==i&&(o.push(t.num),a+=Number(t.num)),2==i&&(o.push(Number(t.account)-Number(t.cost_account)),a+=Number(t.account)-Number(t.cost_account)),r.push(t.goods.main_attr)})),t.allData=a,t.option={grid:{left:"3%",right:"4%",bottom:"3%",top:"10%",containLabel:!0},tooltip:{trigger:"axis"},xAxis:{type:"category",splitLine:{show:!1},data:r,axisLabel:{interval:0},normal:{nameTextStyle:{fontSize:20}}},yAxis:{type:"value",axisLine:{show:!0}},series:[{name:"销量",data:o,type:"bar",barWidth:30,itemStyle:{normal:{color:function(t){var e=["#F04864","#8543E0","#90ED7D","#FACC14"];return e[t.dataIndex]},label:{show:!0,position:"top",textStyle:{color:"black",fontSize:12}}}}}]},t.showColumn=!0}})),(0,o.getSaleAccount)(e).then((function(e){if(200==e.code){var n=e.data.store,r=e.data.goods,o=[],a=[];r.map((function(t){var e=[];for(var r in n){var s=n[r];if(s.length>0){var l=0;s.map((function(n){n.goods_id==t.id&&(0==i&&e.push(n.account),1==i&&e.push(n.num),2==i&&e.push(Number(n.account)-Number(n.cost_account)),l=1)})),0===l&&e.push(0)}else e.push(0)}o[t.id]=e;var u="";1==t.id&&(u="#F04864"),2==t.id&&(u="#8543E0"),3==t.id&&(u="#90ED7D"),4==t.id&&(u="#FACC14"),a.push({name:t.main_attr,data:o[t.id],color:u})}));var s=[];Object.keys(n).map((function(t){var e=t.indexOf("-");t=t.substring(e+1,t.length),s.push(t)})),t.chartData={categories:s,series:a},t.showLine=!0}}))},zh:function(t){var e=[];for(var i in t)for(var n in e[i]=[],t[i])e[i].push(t[i][n]);return e},onShowDatePicker:function(t){this.type=t,this.showPicker=!0,this.dataParams.cycle="",this.value=this[t]},onSelected:function(t){this.showPicker=!1,t&&(this[this.type]=t.value,0==this.current?(this.dataParams.startime=t.value[0],this.dataParams.endtime=t.value[1],this.getData()):(this.params.startime=t.value[0],this.params.endtime=t.value[1],this.getDetail()))},getAccount:function(){var t=this;(0,o.getAccount)().then((function(e){200==e.code?t.account=e.data:uni.showModal({content:e.data||"获取信息失败",showCancel:!1})}))},getDetail:function(e){var i=this,n=this,r=this.params;(0,o.getRecord)(r).then((function(r){200==r.code?(n.num=r.data.list.account,n.recordList=e?n.recordList.concat(r.data.list.list):r.data.list.list,t.log(i.recordList,"recordList"),n.total=r.data.total,n.totalPage=Math.ceil(r.data.total/n.params.page_size)):uni.showModal({content:r.data||"获取记录失败",showCancel:!1})}))},getMore:function(){if(this.params.page_index++,this.params.page_index>this.totalPage)return uni.showToast({title:"没有更多啦~",icon:"none"}),!1;this.getDetail(!0)},changeTab:function(t){this.current=t,this.range="",0==t?this.getData():this.getDetail()},dateTab:function(t){this.range="",this.dataParams.cycle=t,this.getData()},getType:function(e){t.log(e,"type");var i="";switch(e){case 1:i="收款";break;case 2:i="解冻";break;case 3:i="提现";break;case 4:i="退款";break;default:break}this.recordList=[],this.params.type=e,this.form=i,this.params.page_index=1,this.getDetail()},withdraw:function(){var t=this.account.available_amount;if(0==t)return uni.showModal({content:"暂无可提现金额",showCancel:!1}),!1;uni.navigateTo({url:"../capital-withdrawal/capital-withdrawal?limit="+t})}}};e.default=l}).call(this,i("5a52")["default"])},"7c3f":function(t,e,i){"use strict";(function(t){var n=i("4ea4");i("99af"),i("fb6a"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("4764")),o={props:{unit:String,color:String,chartData:Object,background:String},watch:{chartData:function(){this.draw(this.chartData)}},methods:{draw:function(e){t.log(e.series,1111),this.line=new r.default({$this:this,type:"line",canvasId:"line",colors:[this.color?this.color:"#F76454"],width:uni.upx2px(688),height:uni.upx2px(567),fontSize:uni.upx2px(28),enableScroll:!0,enableMarkLine:!0,animation:!0,legend:{show:!0},extra:{line:{type:"curve",width:uni.upx2px(5)}},dataLabel:!1,dataPointShape:!0,dataPointShapeType:"solid",background:this.background,categories:e.categories,series:e.series,xAxis:{type:"grid",itemCount:5,scrollShow:!0,disableGrid:!0,scrollAlign:"right",fontColor:this.color,scrollColor:this.color,axisLineColor:"#CCCCCC",scrollBackgroundColor:this.background,disabled:!1,format:function(t){var e=new Date(t);return"".concat(("0"+e.getHours()).slice(-2),":").concat(("0"+e.getMinutes()).slice(-2))}},yAxis:{min:0,disabled:!1,format:function(t){return t},gridColor:"#ccc",max:Math.max.apply(Math,e.series[0].data)+123,gridType:"dash"}})},touchLine:function(t){this.line.scrollStart(t)},moveLine:function(t){this.line.scroll(t)},touchEndLine:function(t){this.line.scrollEnd(t)}}};e.default=o}).call(this,i("5a52")["default"])},"89ee":function(t,e,i){"use strict";var n=i("1204"),r=i.n(n);r.a},"8dbc":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isShow?i("v-uni-view",{staticClass:"picker"},["time"!=t.type?i("v-uni-view",{staticClass:"picker-modal"},[i("v-uni-view",{staticClass:"picker-modal-header"},[i("v-uni-view",{staticClass:"picker-icon picker-icon-zuozuo",attrs:{"hover-stay-time":100,"hover-class":"picker-icon-active"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onSetYear("-1")}}}),i("v-uni-view",{staticClass:"picker-icon picker-icon-zuo",attrs:{"hover-stay-time":100,"hover-class":"picker-icon-active"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onSetMonth("-1")}}}),i("v-uni-text",{staticClass:"picker-modal-header-title"},[t._v(t._s(t.title))]),i("v-uni-view",{staticClass:"picker-icon picker-icon-you",attrs:{"hover-stay-time":100,"hover-class":"picker-icon-active"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onSetMonth("+1")}}}),i("v-uni-view",{staticClass:"picker-icon picker-icon-youyou",attrs:{"hover-stay-time":100,"hover-class":"picker-icon-active"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onSetYear("+1")}}})],1),i("v-uni-swiper",{staticClass:"picker-modal-body",attrs:{circular:!0,duration:200,"skip-hidden-item-layout":!0,current:t.calendarIndex},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.onSwiperChange.apply(void 0,arguments)}}},t._l(t.calendars,(function(e,n){return i("v-uni-swiper-item",{key:n,staticClass:"picker-calendar"},[t._l(t.weeks,(function(e,n){return i("v-uni-view",{key:n-7,staticClass:"picker-calendar-view"},[i("v-uni-view",{staticClass:"picker-calendar-view-item"},[t._v(t._s(e))])],1)})),t._l(e,(function(e,n){return i("v-uni-view",{key:n,staticClass:"picker-calendar-view",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onSelectDate(e)}}},[i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.bgStyle.type,expression:"date.bgStyle.type"}],class:"picker-calendar-view-"+e.bgStyle.type,style:{background:e.bgStyle.background}}),i("v-uni-view",{staticClass:"picker-calendar-view-item",style:{opacity:e.statusStyle.opacity,color:e.statusStyle.color,background:e.statusStyle.background}},[i("v-uni-text",[t._v(t._s(e.title))])],1),i("v-uni-view",{staticClass:"picker-calendar-view-dot",style:{opacity:e.dotStyle.opacity,background:e.dotStyle.background}}),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.tips,expression:"date.tips"}],staticClass:"picker-calendar-view-tips"},[t._v(t._s(e.tips))])],1)}))],2)})),1),i("v-uni-view",{staticClass:"picker-modal-footer"},[i("v-uni-view",{staticClass:"picker-modal-footer-info"},[t.isMultiSelect?[i("v-uni-view",{staticClass:"picker-display"},[i("v-uni-text",[t._v(t._s(t.beginText)+"日期")]),i("v-uni-text",{staticClass:"picker-display-text"},[t._v(t._s(t.BeginTitle))]),t.isContainTime?i("v-uni-view",{staticClass:"picker-display-link",style:{color:t.color},attrs:{"hover-stay-time":100,"hover-class":"picker-display-link-active"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onShowTimePicker("begin")}}},[t._v(t._s(t.BeginTimeTitle))]):t._e()],1),i("v-uni-view",{staticClass:"picker-display"},[i("v-uni-text",[t._v(t._s(t.endText)+"日期")]),i("v-uni-text",{staticClass:"picker-display-text"},[t._v(t._s(t.EndTitle))]),t.isContainTime?i("v-uni-view",{staticClass:"picker-display-link",style:{color:t.color},attrs:{"hover-stay-time":100,"hover-class":"picker-display-link-active"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onShowTimePicker("end")}}},[t._v(t._s(t.EndTimeTitle))]):t._e()],1)]:[i("v-uni-view",{staticClass:"picker-display"},[i("v-uni-text",[t._v("当前选择")]),i("v-uni-text",{staticClass:"picker-display-text"},[t._v(t._s(t.BeginTitle))]),t.isContainTime?i("v-uni-view",{staticClass:"picker-display-link",style:{color:t.color},attrs:{"hover-stay-time":100,"hover-class":"picker-display-link-active"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onShowTimePicker("begin")}}},[t._v(t._s(t.BeginTimeTitle))]):t._e()],1)]],2),i("v-uni-view",{staticClass:"picker-modal-footer-btn"},[i("v-uni-view",{staticClass:"picker-btn",attrs:{"hover-stay-time":100,"hover-class":"picker-btn-active"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onCancel.apply(void 0,arguments)}}},[t._v("取消")]),i("v-uni-view",{staticClass:"picker-btn",style:{color:t.color},attrs:{"hover-stay-time":100,"hover-class":"picker-btn-active"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}},[t._v("确定")])],1)],1)],1):t._e(),t.showTimePicker?i("v-uni-view",{staticClass:"picker"},[i("v-uni-view",{staticClass:"picker-modal picker-time"},[i("v-uni-view",{staticClass:"picker-modal-header"},[i("v-uni-text",{staticClass:"picker-modal-header-title"},[t._v("选择日期")])],1),i("v-uni-picker-view",{staticClass:"picker-modal-time",attrs:{"indicator-class":"picker-modal-time-item",value:t.timeValue},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.onTimeChange.apply(void 0,arguments)}}},[i("v-uni-picker-view-column",t._l(24,(function(e,n){return i("v-uni-view",{key:n},[t._v(t._s(n<10?"0"+n:n)+"时")])})),1),i("v-uni-picker-view-column",t._l(60,(function(e,n){return i("v-uni-view",{key:n},[t._v(t._s(n<10?"0"+n:n)+"分")])})),1),t.showSeconds?i("v-uni-picker-view-column",t._l(60,(function(e,n){return i("v-uni-view",{key:n},[t._v(t._s(n<10?"0"+n:n)+"秒")])})),1):t._e()],1),i("v-uni-view",{staticClass:"picker-modal-footer"},[i("v-uni-view",{staticClass:"picker-modal-footer-info"},[i("v-uni-view",{staticClass:"picker-display"},[i("v-uni-text",[t._v("当前选择")]),i("v-uni-text",{staticClass:"picker-display-text"},[t._v(t._s(t.PickerTimeTitle))])],1)],1),i("v-uni-view",{staticClass:"picker-modal-footer-btn"},[i("v-uni-view",{staticClass:"picker-btn",attrs:{"hover-stay-time":100,"hover-class":"picker-btn-active"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onCancelTime.apply(void 0,arguments)}}},[t._v("取消")]),i("v-uni-view",{staticClass:"picker-btn",style:{color:t.color},attrs:{"hover-stay-time":100,"hover-class":"picker-btn-active"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirmTime.apply(void 0,arguments)}}},[t._v("确定")])],1)],1)],1)],1):t._e()],1):t._e()},o=[]},"9a04":function(t,e,i){t.exports=i.p+"static/img/no_order.b014ed4b.png"},"9a41":function(t,e,i){"use strict";var n=i("4ea4");i("4160"),i("c975"),i("a15b"),i("fb6a"),i("4e82"),i("a434"),i("e25e"),i("4d63"),i("ac1f"),i("25f0"),i("5319"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("2909")),o={getHoliday:function(t){var e={"0101":"元旦","0214":"情人","0308":"妇女","0312":"植树","0401":"愚人","0501":"劳动","0504":"青年","0601":"儿童","0701":"建党","0801":"建军","0903":"抗日","0910":"教师",1001:"国庆",1031:"万圣",1224:"平安",1225:"圣诞"},i=this.format(t,"mmdd");return!!e[i]&&e[i]},parse:function(t){return new Date(t.replace(/(年|月|-)/g,"/").replace(/(日)/g,""))},isSameDay:function(t,e){return t.getMonth()==e.getMonth()&&t.getFullYear()==e.getFullYear()&&t.getDate()==e.getDate()},format:function(t,e){var i={"m+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"i+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3)};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),i)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?i[n]:("00"+i[n]).substr((""+i[n]).length)));return e},inverse:function(t,e){var i={y:"",m:"",d:"",h:"",i:"",s:""},n=new Date;if(t.length!=e.length)return n;for(var r in e)void 0!=i[e[r]]&&(i[e[r]]+=t[r]);return i.y&&n.setFullYear(i.y.length<4?(n.getFullYear()+"").substr(0,4-i.y.length)+i.y:i.y),i.m&&n.setMonth(i.m-1,1),i.d&&n.setDate(i.d-0),i.h&&n.setHours(i.h-0),i.i&&n.setMinutes(i.i-0),i.s&&n.setSeconds(i.s-0),n},getCalendar:function(t,e){var i=new Date(t),n=[];i.setDate(1),i.setDate(i.getDate()-((0==i.getDay()?7:i.getDay())-1));for(var r=0;r<42;r++){var o={dateObj:new Date(i),title:i.getDate(),isOtherMonth:i.getMonth()<t.getMonth()||i.getMonth()>t.getMonth()};n.push(Object.assign(o,e?e(o):{})),i.setDate(i.getDate()+1)}return n},getDateToMonth:function(t,e){var i=new Date(t);return i.setMonth(e,1),i},formatTimeArray:function(t,e){var i=(0,r.default)(t);return e||(i.length=2),i.forEach((function(t,e){return i[e]=("0"+t).slice(-2)})),i.join(":")}},a={props:{color:{type:String,default:"#409eff"},showSeconds:{type:Boolean,default:!1},value:[String,Array],type:{type:String,default:"range"},show:{type:Boolean,default:!1},format:{type:String,default:""},showHoliday:{type:Boolean,default:!0},showTips:{type:Boolean,default:!1},beginText:{type:String,default:"开始"},endText:{type:String,default:"结束"}},data:function(){return{isShow:!1,isMultiSelect:!1,isContainTime:!1,date:{},weeks:["一","二","三","四","五","六","日"],title:"初始化",calendars:[[],[],[]],calendarIndex:1,checkeds:[],showTimePicker:!1,timeValue:[0,0,0],timeType:"begin",beginTime:[0,0,0],endTime:[0,0,0]}},methods:{setValue:function(t){var e=this;this.date=new Date,this.checkeds=[],this.isMultiSelect=this.type.indexOf("range")>=0,this.isContainTime=this.type.indexOf("time")>=0;var i=function(t){return e.format?o.inverse(t,e.format):o.parse(t)};if(t){if(this.isMultiSelect)Array.isArray(t)&&t.forEach((function(t,n){var r=i(t),o=[r.getHours(),r.getMinutes(),r.getSeconds()];0==n?e.beginTime=o:e.endTime=o,e.checkeds.push(r)}));else if("time"==this.type){var n=i("2019/1/1 "+t);this.beginTime=[n.getHours(),n.getMinutes(),n.getSeconds()],this.onShowTimePicker("begin")}else this.checkeds.push(i(t)),this.isContainTime&&(this.beginTime=[this.checkeds[0].getHours(),this.checkeds[0].getMinutes(),this.checkeds[0].getSeconds()]);this.checkeds.length&&(this.date=new Date(this.checkeds[0]))}else this.isContainTime&&(this.beginTime=[this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()],this.isMultiSelect&&(this.endTime=(0,r.default)(this.beginTime))),this.checkeds.push(new Date(this.date));"time"!=this.type?this.refreshCalendars(!0):this.onShowTimePicker("begin")},onSetYear:function(t){this.date.setFullYear(this.date.getFullYear()+parseInt(t)),this.refreshCalendars(!0)},onSetMonth:function(t){this.date.setMonth(this.date.getMonth()+parseInt(t)),this.refreshCalendars(!0)},onTimeChange:function(t){this.timeValue=t.detail.value},onShowTimePicker:function(t){this.showTimePicker=!0,this.timeType=t,this.timeValue="begin"==t?(0,r.default)(this.beginTime):(0,r.default)(this.endTime)},procCalendar:function(t){var e=this;if(t.statusStyle={opacity:1,color:t.isOtherMonth?"#ddd":"#000",background:"transparent"},t.bgStyle={type:"",background:"transparent"},t.dotStyle={opacity:1,background:"transparent"},t.tips="",o.isSameDay(new Date,t.dateObj)&&(t.statusStyle.color=this.color,t.isOtherMonth&&(t.statusStyle.opacity=.3)),this.checkeds.forEach((function(i){o.isSameDay(i,t.dateObj)&&(t.statusStyle.background=e.color,t.statusStyle.color="#fff",t.statusStyle.opacity=1,e.isMultiSelect&&e.showTips&&(t.tips=e.beginText))})),t.statusStyle.background!=this.color){var i=!!this.showHoliday&&o.getHoliday(t.dateObj);(i||o.isSameDay(new Date,t.dateObj))&&(t.title=i||t.title,t.dotStyle.background=this.color,t.isOtherMonth&&(t.dotStyle.opacity=.2))}else t.title=t.dateObj.getDate();2==this.checkeds.length&&(o.isSameDay(this.checkeds[0],t.dateObj)&&(t.bgStyle.type="bgbegin"),o.isSameDay(this.checkeds[1],t.dateObj)&&(this.isMultiSelect&&this.showTips&&(t.tips=t.bgStyle.type?this.beginText+" / "+this.endText:this.endText),t.bgStyle.type?t.bgStyle.type="":t.bgStyle.type="bgend"),!t.bgStyle.type&&+t.dateObj>+this.checkeds[0]&&+t.dateObj<+this.checkeds[1]&&(t.bgStyle.type="bg",t.statusStyle.color=this.color),t.bgStyle.type&&(t.bgStyle.background=this.color,t.dotStyle.opacity=1,t.statusStyle.opacity=1))},refreshCalendars:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=new Date(this.date),i=o.getDateToMonth(e,e.getMonth()-1),n=o.getDateToMonth(e,e.getMonth()+1);0==this.calendarIndex?(t&&this.calendars.splice(0,1,o.getCalendar(e,this.procCalendar)),this.calendars.splice(1,1,o.getCalendar(n,this.procCalendar)),this.calendars.splice(2,1,o.getCalendar(i,this.procCalendar))):1==this.calendarIndex?(this.calendars.splice(0,1,o.getCalendar(i,this.procCalendar)),t&&this.calendars.splice(1,1,o.getCalendar(e,this.procCalendar)),this.calendars.splice(2,1,o.getCalendar(n,this.procCalendar))):2==this.calendarIndex&&(this.calendars.splice(0,1,o.getCalendar(n,this.procCalendar)),this.calendars.splice(1,1,o.getCalendar(i,this.procCalendar)),t&&this.calendars.splice(2,1,o.getCalendar(e,this.procCalendar))),this.title=o.format(this.date,"yyyy年mm月")},onSwiperChange:function(t){this.calendarIndex=t.detail.current;var e=this.calendars[this.calendarIndex];this.date=new Date(e[22].dateObj),this.refreshCalendars()},onSelectDate:function(t){var e=this;(~this.type.indexOf("range")&&2==this.checkeds.length||!~this.type.indexOf("range")&&this.checkeds.length)&&(this.checkeds=[]),this.checkeds.push(new Date(t.dateObj)),this.checkeds.sort((function(t,e){return t-e})),this.calendars.forEach((function(t){t.forEach(e.procCalendar)}))},onCancelTime:function(){this.showTimePicker=!1,"time"==this.type&&this.onCancel()},onConfirmTime:function(){"begin"==this.timeType?this.beginTime=this.timeValue:this.endTime=this.timeValue,this.showTimePicker=!1,"time"==this.type&&this.onConfirm()},onCancel:function(){this.$emit("cancel",!1)},onConfirm:function(){var t=this,e={value:null,date:null},i={date:"yyyy/mm/dd",time:"hh:ii"+(this.showSeconds?":ss":""),datetime:""};i["datetime"]=i.date+" "+i.time;var n=function(e,i){e.setHours(i[0],i[1]),t.showSeconds&&e.setSeconds(i[2])};if("time"==this.type){var r=new Date;n(r,this.beginTime),e.value=o.format(r,this.format?this.format:i.time),e.date=r}else if(this.isMultiSelect){var a=[],s=[];if(this.checkeds.length<2)return uni.showToast({icon:"none",title:"请选择两个日期"});this.checkeds.forEach((function(e,r){var l=new Date(e);if(t.isContainTime){var u=[t.beginTime,t.endTime];n(l,u[r])}a.push(o.format(l,t.format?t.format:i[t.isContainTime?"datetime":"date"])),s.push(l)})),e.value=a,e.date=s}else{var l=new Date(this.checkeds[0]);this.isContainTime&&(l.setHours(this.beginTime[0],this.beginTime[1]),this.showSeconds&&l.setSeconds(this.beginTime[2])),e.value=o.format(l,this.format?this.format:i[this.isContainTime?"datetime":"date"]),e.date=l}this.$emit("confirm",e)}},computed:{BeginTitle:function(){var t="未选择";return this.checkeds.length&&(t=o.format(this.checkeds[0],"yy/mm/dd")),t},EndTitle:function(){var t="未选择";return 2==this.checkeds.length&&(t=o.format(this.checkeds[1],"yy/mm/dd")),t},PickerTimeTitle:function(){return o.formatTimeArray(this.timeValue,this.showSeconds)},BeginTimeTitle:function(){return"未选择"!=this.BeginTitle?o.formatTimeArray(this.beginTime,this.showSeconds):""},EndTimeTitle:function(){return"未选择"!=this.EndTitle?o.formatTimeArray(this.endTime,this.showSeconds):""}},watch:{show:function(t,e){t&&this.setValue(this.value),this.isShow=t},value:function(t,e){var i=this;setTimeout((function(){i.setValue(t)}),0)}}};e.default=a},a505:function(t,e,i){var n=i("2a85");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("2b173fe2",n,!0,{sourceMap:!1,shadowMode:!1})},baa5:function(t,e,i){var n=i("23e7"),r=i("e58c");n({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},be29:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";.app-item[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-0b448d68]{margin-top:%?10?%}.app-item uni-input[data-v-0b448d68], .app-item uni-picker[data-v-0b448d68], .app-item uni-textarea[data-v-0b448d68]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-0b448d68]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-0b448d68]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-0b448d68]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-0b448d68]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-0b448d68]{color:#fff;background:#f76454}.small-btn[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-0b448d68]{color:#999;border-color:#999}.login-btn[data-v-0b448d68]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-0b448d68]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-0b448d68]{margin-right:%?20?%}.border-right[data-v-0b448d68]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-0b448d68]{margin-right:%?6?%}.position-center[data-v-0b448d68]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-0b448d68]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-0b448d68]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-0b448d68]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-0b448d68]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-0b448d68]{color:#f76454}.swiper-nav[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-0b448d68]{color:#f76454}.swiper-nav .moveBar[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-0b448d68]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-0b448d68]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-0b448d68]{width:100%;height:100%}.article-header[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-0b448d68]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-0b448d68]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-0b448d68]{color:#f76454}.article-footer[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-0b448d68]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-0b448d68]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-0b448d68]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-0b448d68]{color:#f76454}\r\n/*主题色及按钮渐变背景*/\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.echarts[data-v-0b448d68]{width:100%;height:100%}',""]),t.exports=e},cd6e:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{wxsProps:{"change:prop":"option"},staticClass:"echarts",attrs:{id:t.option.id,prop:t.option,"change:prop":t.echarts.update},on:{click:function(e){e=t.$handleWxsEvent(e),t.echarts.onClick(e,t.$getComponentDescriptor())}}})],1)},o=[]},cfc3:function(t,e,i){var n=i("74e8");n("Float32",(function(t){return function(e,i,n){return t(this,e,i,n)}}))},dca8:function(t,e,i){var n=i("23e7"),r=i("bb2f"),o=i("d039"),a=i("861d"),s=i("f183").onFreeze,l=Object.freeze,u=o((function(){l(1)}));n({target:"Object",stat:!0,forced:u,sham:!r},{freeze:function(t){return l&&a(t)?l(s(t)):t}})},e34d:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";.app-item[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-ec0c24b0]{margin-top:%?10?%}.app-item uni-input[data-v-ec0c24b0], .app-item uni-picker[data-v-ec0c24b0], .app-item uni-textarea[data-v-ec0c24b0]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-ec0c24b0]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-ec0c24b0]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-ec0c24b0]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-ec0c24b0]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-ec0c24b0]{color:#fff;background:#f76454}.small-btn[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-ec0c24b0]{color:#999;border-color:#999}.login-btn[data-v-ec0c24b0]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-ec0c24b0]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-ec0c24b0]{margin-right:%?20?%}.border-right[data-v-ec0c24b0]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-ec0c24b0]{margin-right:%?6?%}.position-center[data-v-ec0c24b0]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-ec0c24b0]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-ec0c24b0]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-ec0c24b0]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-ec0c24b0]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-ec0c24b0]{color:#f76454}.swiper-nav[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-ec0c24b0]{color:#f76454}.swiper-nav .moveBar[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-ec0c24b0]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-ec0c24b0]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-ec0c24b0]{width:100%;height:100%}.article-header[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-ec0c24b0]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-ec0c24b0]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-ec0c24b0]{color:#f76454}.article-footer[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-ec0c24b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-ec0c24b0]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-ec0c24b0]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-ec0c24b0]{color:#f76454}\r\n/*主题色及按钮渐变背景*/\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.chart-line[data-v-ec0c24b0]{width:100%;height:100%;position:relative}.chart-line .chart[data-v-ec0c24b0]{width:100%;height:100%}',""]),t.exports=e},e6d2:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"Echarts",props:{option:{type:Object,required:!0}},created:function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length,i="",n=0;n<32;n++)i+=t.charAt(Math.floor(Math.random()*e));this.option.id=i},methods:{onViewClick:function(t){this.$emit("click",t)}}};e.default=n},ee61:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uTabs:i("f0ec").default,echarts:i("3811").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"capital flexCC"},[n("v-uni-view",{staticClass:"cap_bg"},[n("v-uni-view",{staticClass:"bg_con"},[n("v-uni-view",{staticClass:"bg_up flexB"},[n("v-uni-view",[n("v-uni-view",{staticClass:"title"},[t._v("可提现金额")]),n("v-uni-view",{staticClass:"money"},[n("v-uni-text",[t._v("¥")]),n("v-uni-text",[t._v(t._s(t._f("blanceFmt")(t.account.available_amount)))])],1)],1),n("v-uni-view",{staticClass:"bg_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.withdraw.apply(void 0,arguments)}}},[t._v("去提现")])],1),n("v-uni-view",{staticClass:"bg_center flexS"},[n("v-uni-text",{staticClass:"title"},[t._v("冻结资金")]),n("v-uni-view",{staticClass:"money"},[n("v-uni-text",[t._v("¥")]),n("v-uni-text",[t._v(t._s(t._f("blanceFmt")(t.account.pending_amount)))])],1)],1)],1),n("v-uni-view",{staticClass:"bg_hint"},[n("v-uni-text",[t._v("提醒:客户确认收货后,“冻结金额”里的钱会自动解冻到“可 提现金额”里,同时微信支付官方会收取0.6%的手续费。")])],1)],1),n("v-uni-view",{staticClass:"cap_con"},[n("v-uni-view",{staticClass:"flexB out_tab"},[n("v-uni-view",{staticClass:"tab_one"},[n("u-tabs",{attrs:{list:t.tabs,"is-scroll":!1,current:t.current,"active-color":"#FB231F"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}})],1),n("v-uni-view",{staticClass:"date_picker",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onShowDatePicker("range")}}},[t.range?n("v-uni-text",[t._v(t._s(t.range[0])+" - "+t._s(t.range[1]))]):n("v-uni-text",[t._v("时间筛选")]),n("v-uni-text",{staticClass:"iconfont iconzhcc_xiangxiajiantou"})],1)],1),0==t.current?n("v-uni-view",{staticClass:"tab_three flexA"},[n("v-uni-view",{class:"daily"==t.dataParams.cycle?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTab("daily")}}},[t._v("昨日")]),n("v-uni-view",{class:"today"==t.dataParams.cycle?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTab("today")}}},[t._v("今日")]),n("v-uni-view",{class:"week"==t.dataParams.cycle?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTab("week")}}},[t._v("本周")]),n("v-uni-view",{class:"month"==t.dataParams.cycle?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTab("month")}}},[t._v("本月")]),n("v-uni-view",{class:"all"==t.dataParams.cycle?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTab("all")}}},[t._v("全部")])],1):t._e(),1==t.current?n("v-uni-view",{staticClass:"tab_two flexA"},[n("v-uni-text",{class:1==t.params.type?"base_color":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getType(1)}}},[t._v("收款明细")]),n("v-uni-text",{class:2==t.params.type?"base_color":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getType(2)}}},[t._v("解冻明细")]),n("v-uni-text",{class:3==t.params.type?"base_color":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getType(3)}}},[t._v("提现明细")]),n("v-uni-text",{class:4==t.params.type?"base_color":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getType(4)}}},[t._v("退款明细")])],1):t._e()],1),0==t.current?n("v-uni-view",{staticClass:"data_box"},[n("v-uni-view",{staticClass:"data_tab"},[n("u-tabs",{attrs:{list:t.dataList,"is-scroll":!1,current:t.dataCur,"active-color":"#FB231F"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeData.apply(void 0,arguments)}}})],1),n("v-uni-view",{staticClass:"all_data"},[n("v-uni-text",[t._v("合计:")]),n("v-uni-text",{staticClass:"price"},[1!=t.dataCur?n("v-uni-text",[t._v("¥")]):t._e(),n("v-uni-text",[t._v(t._s(t.allData))])],1)],1),t.showColumn?n("echarts",{staticStyle:{height:"300px"},attrs:{option:t.option}}):t._e(),n("v-uni-view",{staticClass:"cap-line",staticStyle:{height:"300px","margin-top":"30rpx",width:"100%",overflow:"hidden"}},[n("cap-line",{attrs:{chartData:t.chartData}})],1)],1):t._e(),1==t.current?n("v-uni-view",{staticClass:"tab_con"},[t.recordList.length>0?n("v-uni-view",{staticClass:"tab_top flexB"},[n("v-uni-view",[n("v-uni-view",{staticClass:"gray"},[t._v(t._s(t.form)+"记录")]),n("v-uni-view",[t._v("共"),n("v-uni-text",{staticStyle:{color:"#FB231F"}},[t._v(t._s(t.total))]),t._v("次")],1)],1),n("v-uni-view",[n("v-uni-view",{staticClass:"gray"},[t._v(t._s(t.form)+t._s("提现"==t.form?"成功":"")+"金额(元)")]),n("v-uni-view",{staticStyle:{color:"#FB231F"}},[t._v(t._s(t.num))])],1)],1):t._e(),t._l(t.recordList,(function(e){return n("v-uni-view",{key:e.id,staticClass:"tab_list"},[n("v-uni-view",{staticClass:"flexB"},[n("v-uni-text",[t._v(t._s(t.form))]),n("v-uni-text",{staticStyle:{color:"#FB231F"}},[t._v(t._s(e.money))])],1),n("v-uni-view",{staticClass:"record_info"},["收款"==t.form?n("v-uni-view",[t._v("订单号:"+t._s(e.order_no))]):t._e(),"退款"==t.form&&e.refund_money?n("v-uni-view",[t._v("订单号:"+t._s(e.refund_money.order_no))]):t._e(),"退款"==t.form&&e.refund_money?n("v-uni-view",[t._v("退单号:"+t._s(e.refund_money.refund_no))]):t._e(),n("v-uni-view",[t._v(t._s(t.form)+"时间:"+t._s(e.created_at))]),n("v-uni-view",[n("v-uni-text",{staticClass:"gray"},[t._v(t._s(t.form)+"备注:")]),n("v-uni-text",[t._v(t._s(e.remark))])],1),"提现"==t.form&&e.status_code?n("v-uni-view",[n("v-uni-text",{staticClass:"gray"},[t._v("提现状态:")]),n("v-uni-text",[t._v(t._s(t._f("getStatus")(e.status_code)))])],1):t._e(),"提现"==t.form&&"FAIL"==e.status_code?n("v-uni-view",{staticClass:"fail_reason"},[n("v-uni-text",{staticClass:"gray"},[t._v("失败原因:")]),n("v-uni-text",[t._v(t._s(e.reason))])],1):t._e()],1)],1)})),0==t.recordList.length?n("v-uni-view",{staticClass:"noData"},[n("v-uni-image",{attrs:{src:i("9a04")}}),n("v-uni-view",[t._v("--暂无记录--")])],1):t._e()],2):t._e(),n("mx-date-picker",{attrs:{show:t.showPicker,type:t.type,value:t.value,"show-tips":!0,"show-seconds":!0},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onSelected.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.onSelected.apply(void 0,arguments)}}})],1)},o=[]},f332c:function(t,e,i){t.exports=i.p+"static/img/cap_bg1.aacc0d42.png"},fb2c:function(t,e,i){var n=i("74e8");n("Uint32",(function(t){return function(e,i,n){return t(this,e,i,n)}}))}}]);