From 23c104ad7499c831fb4fc9705c82f7bdf4a3dcb5 Mon Sep 17 00:00:00 2001 From: xiaojingha <2250372702@qq.com> Date: Fri, 15 Dec 2023 17:44:17 +0800 Subject: [PATCH] chore: v0.9.14 --- CHANGELOG.md | 8 ++++++++ docs/change-log.md | 8 ++++++++ lib/ve-charts.common.js | 24 ++++++++++-------------- lib/ve-charts.umd.js | 34 +++++++++++++++------------------- lib/ve-charts.umd.min.js | 4 ++-- package.json | 2 +- 6 files changed, 44 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5339e6b..ea0177f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [0.9.14](https://github.com/vueblocks/ve-charts/compare/v0.9.13...v0.9.14) (2023-12-14) + + +### Bug Fixes + +* 优化悬浮图的默认位置信息,确保其内容不会被遮挡或超出图表容器 ([3a05b9f](https://github.com/vueblocks/ve-charts/commit/3a05b9f2932a2684720122632e925e552542d370)) + + ## [0.9.13](https://github.com/vueblocks/ve-charts/compare/v0.9.12...v0.9.13) (2023-12-14) diff --git a/docs/change-log.md b/docs/change-log.md index b52d447..7e18234 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -1,5 +1,13 @@ # 更新日志 +## v0.9.14 + +* **优化**:优化悬浮图的默认位置信息,确保其内容不会被遮挡或超出图表容器 + +### PRS + +* [#194](https://github.com/vueblocks/ve-charts/pull/194) by [xiaojingha](https://github.com/xiaojingha) + ## v0.9.13 * **新增** 扩展组件:柱图悬浮饼图 diff --git a/lib/ve-charts.common.js b/lib/ve-charts.common.js index c87fb6c..6c057fe 100644 --- a/lib/ve-charts.common.js +++ b/lib/ve-charts.common.js @@ -123,6 +123,13 @@ var update = add("d14a69d0", content, true, {"sourceMap":false,"shadowMode":fals /***/ }), +/***/ "1104": +/***/ (function(module, exports) { + +module.exports = require("echarts"); + +/***/ }), + /***/ "137f": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -1795,13 +1802,6 @@ module.exports = function(originalModule) { }; -/***/ }), - -/***/ "df8e": -/***/ (function(module, exports) { - -module.exports = require("echarts"); - /***/ }), /***/ "dff1": @@ -1916,7 +1916,7 @@ if (typeof window !== 'undefined') { /* harmony default export */ var setPublicPath = (null); // EXTERNAL MODULE: external "echarts" -var external_echarts_ = __webpack_require__("df8e"); +var external_echarts_ = __webpack_require__("1104"); var external_echarts_default = /*#__PURE__*/__webpack_require__.n(external_echarts_); // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"45371285-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HocEcharts.vue?vue&type=template&id=1a0a63b4& @@ -10469,12 +10469,6 @@ class chart_BarpieChart extends src_BaseChart { axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' }, - position: function (pos, params, dom, rect, size) { - // 鼠标在左侧时 tooltip 显示到右侧,鼠标在右侧时 tooltip 显示到左侧。 - let obj = { top: pos[1] - 200 } - obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5 - return obj - }, show: true, enterable: true, hideDelay: 500, @@ -10482,6 +10476,8 @@ class chart_BarpieChart extends src_BaseChart { textStyle: { color: 'black' }, + transitionDuration: 0.4, + confine: true, ...tooltipOptions, formatter: (params) => { let dax = params[0].dataIndex diff --git a/lib/ve-charts.umd.js b/lib/ve-charts.umd.js index c9f66d9..de1d14f 100644 --- a/lib/ve-charts.umd.js +++ b/lib/ve-charts.umd.js @@ -1,13 +1,13 @@ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("zrender"), require("vue"), require("echarts")); + module.exports = factory(require("echarts"), require("zrender"), require("vue")); else if(typeof define === 'function' && define.amd) - define(["zrender", "vue", "echarts"], factory); + define(["echarts", "zrender", "vue"], factory); else if(typeof exports === 'object') - exports["VeCharts"] = factory(require("zrender"), require("vue"), require("echarts")); + exports["VeCharts"] = factory(require("echarts"), require("zrender"), require("vue")); else - root["VeCharts"] = factory(root["zrender"], root["vue"], root["echarts"]); -})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__1523__, __WEBPACK_EXTERNAL_MODULE__8bbf__, __WEBPACK_EXTERNAL_MODULE_aee1__) { + root["VeCharts"] = factory(root["echarts"], root["zrender"], root["vue"]); +})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__1104__, __WEBPACK_EXTERNAL_MODULE__1523__, __WEBPACK_EXTERNAL_MODULE__8bbf__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; @@ -132,6 +132,13 @@ var update = add("d14a69d0", content, true, {"sourceMap":false,"shadowMode":fals /***/ }), +/***/ "1104": +/***/ (function(module, exports) { + +module.exports = __WEBPACK_EXTERNAL_MODULE__1104__; + +/***/ }), + /***/ "137f": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -1708,13 +1715,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__; /***/ }), -/***/ "aee1": -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE_aee1__; - -/***/ }), - /***/ "c6eb": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -1925,7 +1925,7 @@ if (typeof window !== 'undefined') { /* harmony default export */ var setPublicPath = (null); // EXTERNAL MODULE: external "echarts" -var external_echarts_ = __webpack_require__("aee1"); +var external_echarts_ = __webpack_require__("1104"); var external_echarts_default = /*#__PURE__*/__webpack_require__.n(external_echarts_); // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"45371285-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HocEcharts.vue?vue&type=template&id=1a0a63b4& @@ -10478,12 +10478,6 @@ class chart_BarpieChart extends src_BaseChart { axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' }, - position: function (pos, params, dom, rect, size) { - // 鼠标在左侧时 tooltip 显示到右侧,鼠标在右侧时 tooltip 显示到左侧。 - let obj = { top: pos[1] - 200 } - obj[['left', 'right'][+(pos[0] < size.viewSize[0] / 2)]] = 5 - return obj - }, show: true, enterable: true, hideDelay: 500, @@ -10491,6 +10485,8 @@ class chart_BarpieChart extends src_BaseChart { textStyle: { color: 'black' }, + transitionDuration: 0.4, + confine: true, ...tooltipOptions, formatter: (params) => { let dax = params[0].dataIndex diff --git a/lib/ve-charts.umd.min.js b/lib/ve-charts.umd.min.js index bd78003..5038ed8 100644 --- a/lib/ve-charts.umd.min.js +++ b/lib/ve-charts.umd.min.js @@ -1,8 +1,8 @@ -(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("zrender"),require("vue"),require("echarts")):"function"===typeof define&&define.amd?define(["zrender","vue","echarts"],t):"object"===typeof exports?exports["VeCharts"]=t(require("zrender"),require("vue"),require("echarts")):e["VeCharts"]=t(e["zrender"],e["vue"],e["echarts"])})("undefined"!==typeof self?self:this,(function(e,t,r){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({"068a":function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,".ve-charts-empty-data{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}",""]),e.exports=t},"0e45":function(e){e.exports=JSON.parse('{"北京市":[116.46,39.92],"天津市":[117.2,39.13],"上海市":[121.48,31.22],"重庆市":[106.54,29.59],"七台河市":[130.95,45.78],"万宁市":[110.4,18.8],"万州区":[108.4,30.82],"三亚市":[109.5,18.25],"三明市":[117.62,26.27],"三沙市":[112.2,16.5],"三门峡市":[111.2,34.78],"上饶市":[117.97,28.45],"东丽区":[117.3,39.08],"东城区":[116.42,39.93],"东方市":[108.63,19.1],"东莞市":[113.75,23.05],"东营市":[118.67,37.43],"中卫市":[105.18,37.52],"中山市":[113.38,22.52],"丰台区":[116.28,39.85],"丰都县":[107.73,29.87],"临夏州":[103.22,35.6],"临汾市":[111.52,36.08],"临沂市":[118.35,35.05],"临沧市":[100.08,23.88],"临高县":[109.68,19.92],"丹东市":[124.38,40.13],"丽水市":[119.92,28.45],"丽江市":[100.23,26.88],"乌兰察布市":[113.12,40.98],"乌海市":[106.82,39.67],"乌鲁木齐市":[87.62,43.82],"乐东县":[109.17,18.75],"乐山市":[103.77,29.57],"九江市":[116,29.7],"九龙坡区":[106.5,29.5],"云浮市":[112.03,22.92],"云阳县":[108.67,30.95],"五家渠市":[87.53,44.17],"五指山市":[109.52,18.78],"亳州市":[115.78,33.85],"仙桃市":[113.45,30.37],"伊春市":[128.9,47.73],"伊犁州":[81.32,43.92],"佛山市":[113.12,23.02],"佳木斯市":[130.37,46.82],"保亭县":[109.7,18.63],"保定市":[115.47,38.87],"保山市":[99.17,25.12],"信阳市":[114.07,32.13],"儋州市":[109.57,19.52],"克拉玛依市":[84.87,45.6],"六安市":[116.5,31.77],"六盘水市":[104.83,26.6],"兰州市":[103.82,36.07],"兴安盟":[122.05,46.08],"内江市":[105.05,29.58],"凉山州":[102.27,27.9],"包头市":[109.83,40.65],"北海市":[109.12,21.48],"北碚区":[106.4,29.8],"北辰区":[117.13,39.22],"十堰市":[110.78,32.65],"南京市":[118.78,32.07],"南充市":[106.08,30.78],"南宁市":[109.29,22.8],"南岸区":[106.57,29.52],"南川区":[107.17,29.14],"南平市":[118.17,26.65],"南开区":[117.15,39.13],"南昌市":[115.85,28.68],"南通市":[120.88,31.98],"南阳市":[112.52,33],"博尔塔拉州":[82.07,44.9],"厦门市":[118.08,24.48],"双鸭山市":[131.15,46.63],"台州市":[121.43,28.68],"合川区":[106.3,30.11],"合肥市":[117.25,31.83],"吉安市":[114.98,27.12],"吉林市":[126.55,43.83],"吐鲁番地区":[89.17,42.95],"吕梁市":[111.13,37.52],"吴忠市":[106.2,37.98],"周口市":[114.65,33.62],"呼伦贝尔市":[119.77,49.22],"呼和浩特市":[111.73,40.83],"和平区":[117.2,39.12],"和田地区":[79.92,37.12],"咸宁市":[114.32,29.85],"咸阳市":[108.7,34.33],"哈密地区":[93.52,42.83],"哈尔滨市":[126.53,45.8],"唐山市":[118.2,39.63],"商丘市":[115.65,34.45],"商洛市":[109.93,33.87],"喀什地区":[75.98,39.47],"嘉兴市":[120.75,30.75],"嘉定区":[121.27,31.38],"嘉峪关市":[98.27,39.8],"四平市":[124.35,43.17],"固原市":[106.28,36],"图木舒克市":[79.13,39.85],"垫江县":[107.35,30.33],"城口县":[108.67,31.95],"塔城地区":[82.98,46.75],"塘沽区":[117.65,39.02],"大兴区":[116.33,39.73],"大兴安岭地区":[124.12,50.42],"大同市":[113.3,40.08],"大庆市":[125.03,46.58],"大渡口区":[106.48,29.48],"大港区":[117.45,38.83],"大理州":[100.23,25.6],"大足区":[105.72,29.7],"大连市":[121.62,38.92],"天水市":[105.72,34.58],"天门市":[113.17,30.67],"太原市":[112.55,37.87],"奉节县":[109.47,31.02],"奉贤区":[121.47,30.92],"威海市":[122.12,37.52],"娄底市":[112,27.73],"孝感市":[113.92,30.93],"宁德市":[119.52,26.67],"宁河县":[117.82,39.33],"宁波市":[121.55,29.88],"安庆市":[117.05,30.53],"安康市":[109.02,32.68],"安阳市":[114.38,36.1],"安顺市":[105.95,26.25],"定安县":[110.32,19.7],"定西市":[104.62,35.58],"宜宾市":[104.62,28.77],"宜昌市":[111.28,30.7],"宜春市":[114.38,27.8],"宝坻区":[117.3,39.72],"宝山区":[131.4,46.57],"宝鸡市":[107.13,34.37],"宣城市":[118.75,30.95],"宣武区":[116.35,39.87],"宿州市":[116.98,33.63],"宿迁市":[118.28,33.97],"密云区":[116.83,40.37],"屯昌县":[110.1,19.37],"山南地区":[91.77,29.23],"岳阳市":[113.12,29.37],"崇左市":[107.37,22.4],"崇文区":[116.43,39.88],"崇明县":[121.53,31.63],"巫山县":[109.88,31.08],"巫溪县":[109.63,31.4],"巴中市":[106.77,31.85],"巴南区":[106.52,29.38],"巴彦淖尔市":[107.42,40.75],"巴音郭楞州":[86.15,41.77],"常州市":[119.95,31.78],"常德市":[111.68,29.05],"平凉市":[106.67,35.55],"平谷区":[117.12,40.13],"平顶山市":[113.18,33.77],"广元市":[105.83,32.43],"广安市":[106.63,30.47],"广州市":[113.27,23.13],"庆阳市":[107.63,35.73],"廊坊市":[116.7,39.52],"延安市":[109.48,36.6],"延庆县":[115.97,40.45],"延边州":[129.5,42.88],"开县":[108.42,31.18],"开封市":[114.3,34.8],"张家口市":[114.88,40.82],"张家界市":[110.47,29.13],"张掖市":[100.45,38.93],"彭水县":[108.17,29.3],"徐州市":[117.18,34.27],"徐汇区":[121.43,31.18],"德宏州":[98.58,24.43],"德州市":[116.3,37.45],"德阳市":[104.38,31.13],"忠县":[108.02,30.3],"忻州市":[112.73,38.42],"怀化市":[110,27.57],"怀柔区":[116.63,40.32],"怒江州":[98.85,25.85],"恩施州":[109.5,30.3],"惠州市":[114.42,23.12],"成都市":[104.07,30.67],"房山区":[116.13,39.75],"扬州市":[119.4,32.4],"承德市":[117.93,40.97],"抚州市":[116.35,28],"抚顺市":[123.98,41.88],"拉萨市":[91.13,29.65],"揭阳市":[116.37,23.55],"攀枝花市":[101.72,26.58],"文山州":[104.25,23.37],"文昌市":[110.8,19.55],"新乡市":[113.9,35.3],"新余市":[114.92,27.82],"无锡市":[120.3,31.57],"日喀则地区":[88.88,29.27],"日照市":[119.52,35.42],"昆明市":[102.72,25.05],"昌吉州":[87.3,44.02],"昌平区":[116.23,40.22],"昌江县":[109.05,19.25],"昌都地区":[97.18,31.13],"昭通市":[103.72,27.33],"晋中市":[112.75,37.68],"晋城市":[112.83,35.5],"普洱市":[100.98,22.78],"普陀区":[121.4,31.25],"景德镇市":[117.17,29.27],"曲靖市":[103.8,25.5],"朔州市":[112.43,39.33],"朝阳区":[116.43,39.92],"朝阳市":[120.45,41.57],"本溪市":[123.77,41.3],"来宾市":[109.23,23.73],"杨浦区":[121.52,31.27],"杭州市":[120.15,30.28],"松原市":[124.82,45.13],"松江区":[121.22,31.03],"林芝地区":[94.37,29.68],"果洛州":[100.23,34.48],"枣庄市":[117.32,34.82],"柳州市":[109.42,24.32],"株洲市":[113.13,27.83],"桂林市":[110.28,25.28],"梁平县":[107.8,30.68],"梅州市":[116.12,24.28],"梧州市":[111.27,23.48],"楚雄州":[101.55,25.03],"榆林市":[109.73,38.28],"武威市":[102.63,37.93],"武汉市":[114.3,30.6],"武清区":[117.03,39.38],"武隆县":[107.75,29.33],"毕节市":[105.28,27.3],"永川区":[105.87,29.29],"永州市":[111.62,26.43],"汉中市":[107.02,33.07],"汉沽区":[117.8,39.25],"汕头市":[116.68,23.35],"汕尾市":[115.37,22.78],"江北区":[121.55,29.88],"江津区":[106.3,29.03],"江门市":[113.08,22.58],"池州市":[117.48,30.67],"沈阳市":[123.43,41.8],"沙坪坝区":[106.45,29.53],"沧州市":[116.83,38.3],"河东区":[117.22,39.12],"河北区":[117.18,39.15],"河池市":[108.07,24.7],"河源市":[114.7,23.73],"河西区":[117.22,39.12],"泉州市":[118.67,24.88],"泰安市":[117.08,36.2],"泰州市":[119.92,32.45],"泸州市":[105.43,28.87],"洛阳市":[112.45,34.62],"津南区":[117.38,38.98],"济南市":[116.98,36.67],"济宁市":[116.58,35.42],"济源市":[112.58,35.07],"浦东新区":[121.53,31.22],"海东地区":[102.12,36.5],"海北州":[100.9,36.97],"海南州":[100.62,36.28],"海口市":[110.32,20.03],"海淀区":[116.3,39.95],"海西州":[97.37,37.37],"涪陵区":[107.4,29.72],"淄博市":[118.05,36.82],"淮北市":[116.8,33.95],"淮南市":[117,32.63],"淮安市":[119.02,33.62],"深圳市":[114.05,22.55],"清远市":[113.03,23.7],"渝中区":[106.57,29.55],"渝北区":[106.63,29.72],"温州市":[120.7,28],"渭南市":[109.5,34.5],"湖州市":[120.08,30.9],"湘潭市":[112.93,27.83],"湘西州":[109.74,28.31],"湛江市":[110.35,21.27],"滁州市":[118.32,32.3],"滨州市":[117.97,37.38],"漯河市":[114.02,33.58],"漳州市":[117.65,24.52],"潍坊市":[119.15,36.7],"潜江市":[112.88,30.42],"潮州市":[116.62,23.67],"潼南县":[105.83,30.18],"澄迈县":[110,19.73],"濮阳市":[115.03,35.77],"烟台市":[121.43,37.45],"焦作市":[113.25,35.22],"牡丹江市":[129.6,44.58],"玉林市":[110.17,22.63],"玉树州":[97.02,33],"玉溪市":[102.55,24.35],"珠海市":[113.57,22.27],"琼中县":[109.83,19.03],"琼海市":[110.47,19.25],"璧山县":[106.22,29.6],"甘南州":[102.92,34.98],"甘孜州":[101.97,30.05],"白城市":[122.83,45.62],"白山市":[126.42,41.93],"白沙县":[109.45,19.23],"白银市":[104.18,36.55],"百色市":[106.62,23.9],"益阳市":[112.32,28.6],"盐城市":[120.15,33.35],"盘锦市":[122.07,41.12],"眉山市":[103.83,30.05],"石嘴山市":[106.38,39.02],"石家庄市":[114.52,38.05],"石景山区":[116.22,39.9],"石柱县":[108.12,30],"石河子市":[86.03,44.3],"神农架林区":[110.67,31.75],"福州市":[119.3,26.08],"秀山县":[108.98,28.45],"秦皇岛市":[119.6,39.93],"綦江区":[106.65,29.03],"红桥区":[117.15,39.17],"红河州":[103.4,23.37],"绍兴市":[120.57,30],"绥化市":[126.98,46.63],"绵阳市":[104.73,31.47],"聊城市":[115.98,36.45],"肇庆市":[112.47,23.05],"自贡市":[104.78,29.35],"舟山市":[122.2,30],"芜湖市":[118.38,31.33],"苏州市":[120.58,31.3],"茂名市":[110.92,21.67],"荆州市":[112.23,30.33],"荆门市":[112.2,31.03],"荣昌县":[105.58,29.4],"莆田市":[119,25.43],"莱芜市":[117.67,36.22],"菏泽市":[115.46,35.26],"萍乡市":[113.85,27.63],"营口市":[122.23,40.67],"葫芦岛市":[120.83,40.72],"蓟县":[117.4,40.05],"虹口区":[121.5,31.27],"蚌埠市":[117.38,32.92],"衡水市":[115.68,37.73],"衡阳市":[112.57,26.9],"衢州市":[118.87,28.93],"襄阳市":[112.2,32.08],"西双版纳州":[100.8,22.02],"西城区":[116.37,39.92],"西宁市":[101.78,36.62],"西安市":[108.93,34.27],"西青区":[117,39.13],"许昌市":[113.85,34.03],"贵港市":[109.6,23.1],"贵阳市":[106.63,26.65],"贺州市":[111.55,24.42],"资阳市":[104.65,30.12],"赣州市":[114.93,25.83],"赤峰市":[118.92,42.27],"辽源市":[125.13,42.88],"辽阳市":[123.17,41.27],"达州市":[107.5,31.22],"运城市":[110.98,35.02],"连云港市":[119.22,34.6],"迪庆州":[99.7,27.83],"迪庆藏族自治县":[99.7,27.83],"通化市":[125.93,41.73],"通州区":[116.65,39.92],"通辽市":[122.27,43.62],"遂宁市":[105.57,30.52],"遵义市":[106.92,27.73],"邢台市":[114.48,37.07],"那曲地区":[92.07,31.48],"邯郸市":[114.48,36.62],"邵阳市":[111.47,27.25],"郑州市":[113.62,34.75],"郴州市":[113.02,25.78],"鄂尔多斯市":[109.8,39.62],"鄂州市":[114.88,30.4],"酉阳县":[108.77,28.85],"酒泉市":[98.52,39.75],"金华市":[119.65,29.08],"金山区":[121.33,30.75],"金昌市":[102.18,38.5],"钦州市":[108.62,21.95],"铁岭市":[123.83,42.28],"铜仁市":[109.18,27.72],"铜川市":[108.93,34.9],"铜梁县":[106.05,29.85],"铜陵市":[117.82,30.93],"银川市":[106.28,38.47],"锡林郭勒盟":[116.07,43.95],"锦州市":[121.13,41.1],"镇江市":[119.45,32.2],"长宁区":[121.42,31.22],"长寿区":[107.08,29.87],"长春市":[125.32,43.9],"长沙市":[112.93,28.23],"长治市":[113.11,36.2],"门头沟":[116.1,39.93],"闵行区":[121.38,31.12],"闸北区":[121.45,31.25],"阜新市":[121.67,42.02],"阜阳市":[115.82,32.9],"防城港市":[108.35,21.7],"阳江市":[111.98,21.87],"阳泉市":[113.57,37.85],"阿克苏地区":[80.27,41.17],"阿勒泰地区":[88.13,47.85],"阿坝州":[102.22,31.9],"阿拉善盟":[105.67,38.83],"阿拉尔市":[81.28,40.55],"阿里地区":[80.1,32.5],"陇南市":[104.92,33.4],"陵水县":[110.03,18.5],"随州市":[113.37,31.72],"雅安市":[103,29.98],"青岛市":[120.38,36.07],"青浦区":[121.12,31.15],"静安区":[121.45,31.23],"静海县":[116.92,38.93],"鞍山市":[122.98,41.1],"韶关市":[113.6,24.82],"韶山市":[112.52,27.93],"顺义区":[116.65,40.13],"马鞍山市":[118.5,31.7],"驻马店市":[114.02,32.98],"鸡西市":[130.97,45.3],"鹤壁市":[114.28,35.75],"鹤岗市":[130.27,47.33],"鹰潭市":[117.07,28.27],"黄冈市":[114.87,30.45],"黄南州":[102.02,35.52],"黄山市":[118.33,29.72],"黄浦区":[121.48,31.23],"黄石市":[115.03,30.2],"黑河市":[127.48,50.25],"黔东南州":[107.97,26.58],"黔南州":[107.52,26.27],"黔江区":[108.77,29.53],"黔西南州":[106.12,27.05],"齐齐哈尔市":[123.95,47.33],"龙岩市":[117.03,25.1]}')},"0fcc":function(e,t,r){var n=r("3461");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("499e").default;a("d14a69d0",n,!0,{sourceMap:!1,shadowMode:!1})},"137f":function(e,t,r){"use strict";var n=r("3a88"),a=r.n(n);a.a},1523:function(t,r){t.exports=e},"24fb":function(e,t,r){"use strict";function n(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"===typeof btoa){var i=a(n),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot).concat(e," */")}));return[r].concat(o).concat([i]).join("\n")}return[r].join("\n")}function a(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(r," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r){"string"===typeof e&&(e=[[null,e,""]]);for(var n=0;nr.parts.length&&(n.parts.length=r.parts.length)}else{var o=[];for(a=0;ar.parts.length&&(n.parts.length=r.parts.length)}else{var o=[];for(a=0;a=b&&!i||"t"===i?(g+=f.abbreviations.trillion,t/=b):o=y&&!i||"b"===i?(g+=f.abbreviations.billion,t/=y):o=v&&!i||"m"===i?(g+=f.abbreviations.million,t/=v):(o=x&&!i||"k"===i)&&(g+=f.abbreviations.thousand,t/=x)),e._.includes(r,"[.]")&&(p=!0,r=r.replace("[.]",".")),s=t.toString().split(".")[0],l=r.split(".")[1],u=r.indexOf(","),m=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=l.replace("]",""),l=l.split("["),_=e._.toFixed(t,l[0].length+l[1].length,n,l[1].length)):_=e._.toFixed(t,l.length,n),s=_.split(".")[0],_=e._.includes(_,".")?f.delimiters.decimal+_.split(".")[1]:"",p&&0===Number(_.slice(1))&&(_="")):s=e._.toFixed(t,0,n),g&&!i&&Number(s)>=1e3&&g!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion;break}if(e._.includes(s,"-")&&(s=s.slice(1),w=!0),s.length0;A--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===r.indexOf(".")&&(s=""),d=s+_+(g||""),h?d=(h&&w?"(":"")+d+(h&&w?")":""):c>=0?d=0===c?(w?"-":"+")+d:d+(w?"-":"+"):w&&(d="-"+d),d},stringToNumber:function(e){var t,r,n,i=a[o.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(o.zeroFormat&&e===o.zeroFormat)r=0;else if(o.nullFormat&&e===o.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),l)if(n=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),s.match(n)){r*=Math.pow(10,l[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var r,n=Object(e),a=n.length>>>0,i=0;if(3===arguments.length)r=arguments[2];else{while(i=a)throw new TypeError("Reduce of empty array with no initial value");r=n[i++]}for(;in?e:n}),1)},toFixed:function(e,t,r,n){var a,i,o,s,l=e.toString().split("."),c=t-(n||0);return a=2===l.length?Math.min(Math.max(l[1].length,c),t):c,o=Math.pow(10,a),s=(r(e+"e+"+a)/o).toFixed(a),n>t-a&&(i=new RegExp("\\.?0{1,"+(n-(t-a))+"}$"),s=s.replace(i,"")),s}},e.options=o,e.formats=n,e.locales=a,e.locale=function(e){return e&&(o.currentLocale=e.toLowerCase()),o.currentLocale},e.localeData=function(e){if(!e)return a[o.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in i)o[e]=i[e]},e.zeroFormat=function(e){o.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){o.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){o.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var n,a,i,o,s,l,c,u;if("string"!==typeof t&&(t+="",console.warn),t=t.trim(),t.match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(r)}catch(d){c=e.localeData(e.locale())}return i=c.currency.symbol,s=c.abbreviations,n=c.delimiters.decimal,a="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,u=t.match(/^[^\d]+/),(null===u||(t=t.substr(1),u[0]===i))&&(u=t.match(/[^\d]+$/),(null===u||(t=t.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(l=new RegExp(a+"{2}"),!t.match(/[^\d.,]/g)&&(o=t.split(n),!(o.length>2)&&(o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(l):1===o[0].length?!!o[0].match(/^\d+$/)&&!o[0].match(l)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(l)&&!!o[1].match(/^\d+$/)))))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,r){var a,i,s,l=this._value,c=t||o.defaultFormat;if(r=r||Math.round,0===l&&null!==o.zeroFormat)i=o.zeroFormat;else if(null===l&&null!==o.nullFormat)i=o.nullFormat;else{for(a in n)if(c.match(n[a].regexps.format)){s=n[a].format;break}s=s||e._.numberToFormat,i=s(l,c,r)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);function n(e,t,n,a){return e+Math.round(r*t)}return this._value=t.reduce([this._value,e],n,0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);function n(e,t,n,a){return e-Math.round(r*t)}return this._value=t.reduce([e],n,Math.round(this._value*r))/r,this},multiply:function(e){function r(e,r,n,a){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}return this._value=t.reduce([this._value,e],r,1),this},divide:function(e){function r(e,r,n,a){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)}return this._value=t.reduce([this._value,e],r),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var a,i=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),a=e._.numberToFormat(t,r,n),e._.includes(a,")")?(a=a.split(""),a.splice(-1,0,i+"BPS"),a=a.join("")):a=a+i+"BPS",a},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}})}(),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},n=t.suffixes.concat(r.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))),a=n.join("|");a="("+a.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(a)},format:function(n,a,i){var o,s,l,c,u=e._.includes(a,"ib")?r:t,d=e._.includes(a," b")||e._.includes(a," ib")?" ":"";for(a=a.replace(/\s?i?b/,""),s=0;s<=u.suffixes.length;s++)if(l=Math.pow(u.base,s),c=Math.pow(u.base,s+1),null===n||0===n||n>=l&&n0&&(n/=l);break}return o=e._.numberToFormat(n,a,i),o+d},unformat:function(n){var a,i,o=e._.stringToNumber(n);if(o){for(a=t.suffixes.length-1;a>=0;a--){if(e._.includes(n,t.suffixes[a])){i=Math.pow(t.base,a);break}if(e._.includes(n,r.suffixes[a])){i=Math.pow(r.base,a);break}}o*=i||1}return o}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var a,i,o,s=e.locales[e.options.currentLocale],l={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),a=e._.numberToFormat(t,r,n),t>=0?(l.before=l.before.replace(/[\-\(]/,""),l.after=l.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(l.before,"-")&&!e._.includes(l.before,"(")&&(l.before="-"+l.before),o=0;o=0;o--)switch(i=l.after[o],i){case"$":a=o===l.after.length-1?a+s.currency.symbol:e._.insert(a,s.currency.symbol,-(l.after.length-(1+o)));break;case" ":a=o===l.after.length-1?a+" ":e._.insert(a," ",-(l.after.length-(1+o)+s.currency.symbol.length-1));break}return a}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var a,i="number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential(),o=i.split("e");return r=r.replace(/e[\+|\-]{1}0/,""),a=e._.numberToFormat(Number(o[0]),r,n),a+"e"+o[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),a=Number(r[1]);function i(t,r,n,a){var i=e._.correctionFactor(t,r),o=t*i*(r*i)/(i*i);return o}return a=e._.includes(t,"e-")?a*=-1:a,e._.reduce([n,Math.pow(10,a)],i,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var a,i=e.locales[e.options.currentLocale],o=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),o+=i.ordinal(t),a=e._.numberToFormat(t,r,n),a+o}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var a,i=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),a=e._.numberToFormat(t,r,n),e._.includes(a,")")?(a=a.split(""),a.splice(-1,0,i+"%"),a=a.join("")):a=a+i+"%",a},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),a=Math.floor((e-60*n*60)/60),i=Math.round(e-60*n*60-60*a);return n+":"+(a<10?"0"+a:a)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}})}(),e}))},"86eb":function(e,t,r){"use strict";var n=r("ff6f"),a=r.n(n);a.a},"8bbf":function(e,r){e.exports=t},c6eb:function(e,t,r){"use strict";(function(e){var n=r("5ea3"),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o&&n["a"].process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();t["a"]=l}).call(this,r("dd40")(e))},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},dd40:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},ddb4:function(e,t){e.exports=r},dff1:function(e,t,r){"use strict";(function(e){var n=r("26ee"),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?n["a"].Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(e,t){if(t)return e.slice();var r=e.length,n=l?l(r):new e.constructor(r);return e.copy(n),n}t["a"]=c}).call(this,r("dd40")(e))},f6fd:function(e,t){(function(e){var t="currentScript",r=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(n){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in r)if(r[e].src==t||"interactive"==r[e].readyState)return r[e];return null}}})})(document)},fb15:function(e,t,r){"use strict";var n;(r.r(t),"undefined"!==typeof window)&&(r("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1]));var a=r("ddb4"),i=r.n(a),o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ve-charts-parent",style:e.parentStyle},[e.isHasData?r("base-echarts",e._g({attrs:{"init-options":e.initOptions,options:e.options,autoResize:!0,theme:e.theme,"chart-height":e.height,ec:e.ec},on:{"update:ec":function(t){e.ec=t}}},e.$listeners)):e._e(),e.isHasData||e.loading?e._e():e._t("default",[r("empty-data",{attrs:{"empty-text":e.emptyText}})]),e.loading?r("loading-chart"):e._e()],2)},s=[];function l(e){return null===e}var c=l,u=Object.prototype;function d(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||u;return e===r}var f=d;function h(e,t){return function(r){return e(t(r))}}var p=h,m=p(Object.keys,Object),g=m,b=Object.prototype,y=b.hasOwnProperty;function v(e){if(!f(e))return g(e);var t=[];for(var r in Object(e))y.call(e,r)&&"constructor"!=r&&t.push(r);return t}var x=v,_=r("26ee"),w=_["a"].Symbol,A=w,S=Object.prototype,j=S.hasOwnProperty,L=S.toString,T=A?A.toStringTag:void 0;function O(e){var t=j.call(e,T),r=e[T];try{e[T]=void 0;var n=!0}catch(i){}var a=L.call(e);return n&&(t?e[T]=r:delete e[T]),a}var z=O,M=Object.prototype,k=M.toString;function C(e){return k.call(e)}var E=C,N="[object Null]",D="[object Undefined]",P=A?A.toStringTag:void 0;function B(e){return null==e?void 0===e?D:N:P&&P in Object(e)?z(e):E(e)}var F=B;function $(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var V=$,R="[object AsyncFunction]",H="[object Function]",I="[object GeneratorFunction]",U="[object Proxy]";function G(e){if(!V(e))return!1;var t=F(e);return t==H||t==I||t==R||t==U}var W=G,q=_["a"]["__core-js_shared__"],Y=q,J=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Z(e){return!!J&&J in e}var X=Z,K=Function.prototype,Q=K.toString;function ee(e){if(null!=e){try{return Q.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var te=ee,re=/[\\^$.*+?()[\]{}|]/g,ne=/^\[object .+?Constructor\]$/,ae=Function.prototype,ie=Object.prototype,oe=ae.toString,se=ie.hasOwnProperty,le=RegExp("^"+oe.call(se).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ce(e){if(!V(e)||X(e))return!1;var t=W(e)?le:ne;return t.test(te(e))}var ue=ce;function de(e,t){return null==e?void 0:e[t]}var fe=de;function he(e,t){var r=fe(e,t);return ue(r)?r:void 0}var pe=he,me=pe(_["a"],"DataView"),ge=me,be=pe(_["a"],"Map"),ye=be,ve=pe(_["a"],"Promise"),xe=ve,_e=pe(_["a"],"Set"),we=_e,Ae=pe(_["a"],"WeakMap"),Se=Ae,je="[object Map]",Le="[object Object]",Te="[object Promise]",Oe="[object Set]",ze="[object WeakMap]",Me="[object DataView]",ke=te(ge),Ce=te(ye),Ee=te(xe),Ne=te(we),De=te(Se),Pe=F;(ge&&Pe(new ge(new ArrayBuffer(1)))!=Me||ye&&Pe(new ye)!=je||xe&&Pe(xe.resolve())!=Te||we&&Pe(new we)!=Oe||Se&&Pe(new Se)!=ze)&&(Pe=function(e){var t=F(e),r=t==Le?e.constructor:void 0,n=r?te(r):"";if(n)switch(n){case ke:return Me;case Ce:return je;case Ee:return Te;case Ne:return Oe;case De:return ze}return t});var Be=Pe;function Fe(e){return null!=e&&"object"==typeof e}var $e=Fe,Ve="[object Arguments]";function Re(e){return $e(e)&&F(e)==Ve}var He=Re,Ie=Object.prototype,Ue=Ie.hasOwnProperty,Ge=Ie.propertyIsEnumerable,We=He(function(){return arguments}())?He:function(e){return $e(e)&&Ue.call(e,"callee")&&!Ge.call(e,"callee")},qe=We,Ye=Array.isArray,Je=Ye,Ze=9007199254740991;function Xe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ze}var Ke=Xe;function Qe(e){return null!=e&&Ke(e.length)&&!W(e)}var et=Qe,tt=r("58e0"),rt="[object Arguments]",nt="[object Array]",at="[object Boolean]",it="[object Date]",ot="[object Error]",st="[object Function]",lt="[object Map]",ct="[object Number]",ut="[object Object]",dt="[object RegExp]",ft="[object Set]",ht="[object String]",pt="[object WeakMap]",mt="[object ArrayBuffer]",gt="[object DataView]",bt="[object Float32Array]",yt="[object Float64Array]",vt="[object Int8Array]",xt="[object Int16Array]",_t="[object Int32Array]",wt="[object Uint8Array]",At="[object Uint8ClampedArray]",St="[object Uint16Array]",jt="[object Uint32Array]",Lt={};function Tt(e){return $e(e)&&Ke(e.length)&&!!Lt[F(e)]}Lt[bt]=Lt[yt]=Lt[vt]=Lt[xt]=Lt[_t]=Lt[wt]=Lt[At]=Lt[St]=Lt[jt]=!0,Lt[rt]=Lt[nt]=Lt[mt]=Lt[at]=Lt[gt]=Lt[it]=Lt[ot]=Lt[st]=Lt[lt]=Lt[ct]=Lt[ut]=Lt[dt]=Lt[ft]=Lt[ht]=Lt[pt]=!1;var Ot=Tt;function zt(e){return function(t){return e(t)}}var Mt=zt,kt=r("c6eb"),Ct=kt["a"]&&kt["a"].isTypedArray,Et=Ct?Mt(Ct):Ot,Nt=Et,Dt="[object Map]",Pt="[object Set]",Bt=Object.prototype,Ft=Bt.hasOwnProperty;function $t(e){if(null==e)return!0;if(et(e)&&(Je(e)||"string"==typeof e||"function"==typeof e.splice||Object(tt["a"])(e)||Nt(e)||qe(e)))return!e.length;var t=Be(e);if(t==Dt||t==Pt)return!e.size;if(f(e))return!x(e).length;for(var r in e)if(Ft.call(e,r))return!1;return!0}var Vt=$t;function Rt(e){return void 0===e}var Ht=Rt,It="[object Symbol]";function Ut(e){return"symbol"==typeof e||$e(e)&&F(e)==It}var Gt=Ut,Wt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qt=/^\w*$/;function Yt(e,t){if(Je(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Gt(e))||(qt.test(e)||!Wt.test(e)||null!=t&&e in Object(t))}var Jt=Yt,Zt=pe(Object,"create"),Xt=Zt;function Kt(){this.__data__=Xt?Xt(null):{},this.size=0}var Qt=Kt;function er(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tr=er,rr="__lodash_hash_undefined__",nr=Object.prototype,ar=nr.hasOwnProperty;function ir(e){var t=this.__data__;if(Xt){var r=t[e];return r===rr?void 0:r}return ar.call(t,e)?t[e]:void 0}var or=ir,sr=Object.prototype,lr=sr.hasOwnProperty;function cr(e){var t=this.__data__;return Xt?void 0!==t[e]:lr.call(t,e)}var ur=cr,dr="__lodash_hash_undefined__";function fr(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xt&&void 0===t?dr:t,this}var hr=fr;function pr(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t-1}var zr=Or;function Mr(e,t){var r=this.__data__,n=_r(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var kr=Mr;function Cr(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t-1&&e%1==0&&e0){if(++t>=gs)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xs=vs,_s=xs(ms),ws=_s;function As(e,t){return ws(ds(e,t,os),e+"")}var Ss=As;function js(e,t,r){if(!V(r))return!1;var n=typeof t;return!!("number"==n?et(r)&&ta(t,r.length):"string"==n&&t in r)&&vr(r[t],e)}var Ls=js;function Ts(e){return Ss((function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&Ls(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);while(++n{if(isNaN(+e))return e;let r=[{value:1e8,symbol:"亿"},{value:1e4,symbol:"万"},{value:1e3,symbol:"千"}];for(let a=0;a=r[a].value)return e/r[a].value+n+r[a].symbol;return e.toString()};return o(e,i)},unformat:function(e){return.01*gl.a._.stringToNumber(e)}});const bl=e=>{const t={};return Object.keys(e).forEach(r=>{e[r].forEach(e=>{t[e]=r})}),t},yl=e=>new Promise((t,r)=>{const n=new XMLHttpRequest;n.open("GET",e),n.send(null),n.onload=()=>{t(JSON.parse(n.responseText))},n.onerror=()=>{r(JSON.parse(n.responseText))}}),vl=({mapName:e,mapUrlPrefix:t})=>{const r=`${t}${e}.json`;return yl(r)},xl=e=>Object.prototype.toString.call(e),_l=(e,t,r)=>{const n=No(e),a=n&&n.dimensions&&n.dimensions.name,i=n&&n.dimensions&&n.dimensions.data,{isEmptyData:o,chartType:s}=r,l=t&&t.stack||null,c=t&&t.percentage||!1;if(!o&&void 0===i)return void Cs.a.util.warn("data.dimensions.data is required. Please check on you data",void 0);let u=`${a}`,d=i.length>0&&i[0],f=Al(d)&&"pie"===s?i.map((e,t)=>0===t?`${e}`:e):i;const h={[u]:f};let[p,m]=[{},[]];if(l&&c&&n.measures.length>0){const e=n.measures.map(e=>e.data),t=$s(...e);m=t.map(e=>{const t=e.map(e=>Al(e)?e:parseFloat(e,10));return Is(t)})}n.measures.map(e=>{const t=Al(e.name),r=t?`${e.name} `:e.name;Object.assign(p,{[r]:l&&c?e.data.map((e,t)=>cl(e/m[t],4)):e.data})});let g=[];const b=Ht(a)?"dimension":a;g.push(b),g=[...g,...n.measures.map(e=>e.name)];const y=Object.assign({},h,p),v={dimensions:g,source:y};return v},wl=(e,t,r=0)=>{const n=(e,t,r)=>{const n=r>0?`0.${"0".repeat(r)}`:"0",a=r>0?`0,0.${"0".repeat(r)}`:"0,0";switch(e){case"currency":return gl()(t).format(a);case"en":return gl()(t).format(`${n} a`);case"zh":return gl()(t).format(`${n} zh`);case"percentage":return gl()(t).format(`${n}%`);default:return t}};return n(e,t,r)},Al=e=>!pl(parseFloat(e))&&isFinite(e)&&Number(e)===e,Sl={grid:{right:10,bottom:10,left:10,containLabel:!0},series:[]},jl=["#5282e4","#40b17e","#ffd600","#f88d48","#2ebce2","#f35352","#ce62d6","#8954d4","#5257b8","#d42d6b"],Ll=[{itemStyle:{borderColor:"#fff"}},{colorSaturation:[.3,.6],itemStyle:{borderColorSaturation:.7,gapWidth:5,borderWidth:2}},{colorSaturation:[.3,.5],itemStyle:{borderColorSaturation:.6}},{colorSaturation:[.3,.5]}],Tl={secondaryMeasure:{barBorderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)",emphasis:{barBorderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}}},Ol="https://unpkg.com/echarts@4.1.0/map/json/";var zl=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"echarts",style:e.echartsStyle})},Ml=[],kl=function(){return _["a"].Date.now()},Cl=kl,El="Expected a function",Nl=Math.max,Dl=Math.min;function Pl(e,t,r){var n,a,i,o,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError(El);function h(t){var r=n,i=a;return n=a=void 0,c=t,o=e.apply(i,r),o}function p(e){return c=e,s=setTimeout(b,t),u?h(e):o}function m(e){var r=e-l,n=e-c,a=t-r;return d?Dl(a,i-n):a}function g(e){var r=e-l,n=e-c;return void 0===l||r>=t||r<0||d&&n>=i}function b(){var e=Cl();if(g(e))return y(e);s=setTimeout(b,m(e))}function y(e){return s=void 0,f&&n?h(e):(n=a=void 0,o)}function v(){void 0!==s&&clearTimeout(s),c=0,n=l=a=s=void 0}function x(){return void 0===s?o:y(Cl())}function _(){var e=Cl(),r=g(e);if(n=arguments,a=this,l=e,r){if(void 0===s)return p(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return void 0===s&&(s=setTimeout(b,t)),o}return t=Xs(t)||0,V(r)&&(u=!!r.leading,d="maxWait"in r,i=d?Nl(Xs(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f),_.cancel=v,_.flush=x,_}var Bl=Pl;let Fl=null;function $l(e){return Fl||(Fl=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),Fl(e)}let Vl=null;function Rl(e){Vl||(Vl=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),Vl(e)}function Hl(e){var t=document.createElement("style");return t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function Il(e,t={}){let r=document.createElement(e);return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}function Ul(e,t,r){let n=window.getComputedStyle(e,r||null)||{display:"none"};return n[t]}function Gl(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};let t=e;while(t!==document){if("none"===Ul(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var Wl='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}';let ql=0,Yl=null;function Jl(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=Kl.bind(e));let r=e.__resize_listeners__;if(!r)if(e.__resize_listeners__=[],window.ResizeObserver){let{offsetWidth:t,offsetHeight:r}=e,n=new ResizeObserver(()=>{(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==t||e.offsetHeight!==r))&&ec(e)}),{detached:a,rendered:i}=Gl(e);e.__resize_observer_triggered__=!1===a&&!1===i,e.__resize_observer__=n,n.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){ec(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(ql||(Yl=Hl(Wl)),tc(e),e.__resize_rendered__=Gl(e).rendered,window.MutationObserver){let t=new MutationObserver(e.__resize_mutation_handler__);t.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=t}e.__resize_listeners__.push(t),ql++}function Zl(e,t){let r=e.__resize_listeners__;if(r){if(t&&r.splice(r.indexOf(t),1),!r.length||!t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",Ql),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--ql&&Yl&&Yl.parentNode.removeChild(Yl)}}function Xl(e){let{width:t,height:r}=e.__resize_last__,{offsetWidth:n,offsetHeight:a}=e;return n!==t||a!==r?{width:n,height:a}:null}function Kl(){let{rendered:e,detached:t}=Gl(this);e!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(rc(this),this.addEventListener("scroll",Ql,!0)),this.__resize_rendered__=e,ec(this))}function Ql(){rc(this),this.__resize_raf__&&Rl(this.__resize_raf__),this.__resize_raf__=$l(()=>{let e=Xl(this);e&&(this.__resize_last__=e,ec(this))})}function ec(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach(t=>{t.call(e,e)})}function tc(e){let t=Ul(e,"position");t&&"static"!==t||(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};let r=Il("div",{className:"resize-triggers"}),n=Il("div",{className:"resize-expand-trigger"}),a=Il("div"),i=Il("div",{className:"resize-contract-trigger"});n.appendChild(a),r.appendChild(n),r.appendChild(i),e.appendChild(r),e.__resize_triggers__={triggers:r,expand:n,expandChild:a,contract:i},rc(e),e.addEventListener("scroll",Ql,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function rc(e){let{expand:t,expandChild:r,contract:n}=e.__resize_triggers__,{scrollWidth:a,scrollHeight:i}=n,{offsetWidth:o,offsetHeight:s,scrollWidth:l,scrollHeight:c}=t;n.scrollLeft=a,n.scrollTop=i,r.style.width=o+1+"px",r.style.height=s+1+"px",t.scrollLeft=l,t.scrollTop=c}r("1523");const nc=["legendselectchanged","legendselected","legendunselected","legendscroll","datazoom","datarangeselected","timelinechanged","timelineplaychanged","restore","dataviewchanged","magictypechanged","geoselectchanged","geoselected","geounselected","pieselectchanged","pieselected","pieunselected","mapselectchanged","mapselected","mapunselected","axisareaselected","focusnodeadjacency","unfocusnodeadjacency","brush","brushselected","globalcursortaken","rendered","finished","click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout","contextmenu"];var ac={props:{options:Object,theme:[String,Object],initOptions:Object,group:String,autoResize:Boolean,watchShallow:Boolean,chartHeight:{type:Number,default:400}},data(){return{chart:null}},computed:{width:{cache:!1,get(){return this.delegateGet("width","getWidth")}},height:{cache:!1,get(){return this.delegateGet("height","getHeight")}},isDisposed:{cache:!1,get(){return!!this.delegateGet("isDisposed","isDisposed")}},computedOptions:{cache:!1,get(){return this.delegateGet("computedOptions","getOption")}},echartsStyle(){return{width:"auto",height:`${this.chartHeight}px`}}},watch:{group(e){this.chart.group=e}},methods:{mergeOptions(e,t,r){this.delegateMethod("setOption",e,t,r)},appendData(e){this.delegateMethod("appendData",e)},resize(e){this.delegateMethod("resize",e)},dispatchAction(e){this.delegateMethod("dispatchAction",e)},convertToPixel(e,t){return this.delegateMethod("convertToPixel",e,t)},convertFromPixel(e,t){return this.delegateMethod("convertFromPixel",e,t)},containPixel(e,t){return this.delegateMethod("containPixel",e,t)},showLoading(e,t){this.delegateMethod("showLoading",e,t)},hideLoading(){this.delegateMethod("hideLoading")},getDataURL(e){return this.delegateMethod("getDataURL",e)},getConnectedDataURL(e){return this.delegateMethod("getConnectedDataURL",e)},clear(){this.delegateMethod("clear")},dispose(){this.delegateMethod("dispose")},delegateMethod(e,...t){if(this.chart)return this.chart[e](...t);Cs.a.util.warn(`Cannot call [${e}] before the chart is initialized. Set prop [options] first.`,this)},delegateGet(e,t){return this.chart||Cs.a.util.warn(`Cannot get [${e}] before the chart is initialized. Set prop [options] first.`,this),this.chart[t]()},init(){if(this.chart)return;let e=i.a.init(this.$el,this.theme,this.initOptions);this.group&&(e.group=this.group),e.setOption(this.options,!0),e.getZr().on("click",e=>!e.target&&this.$emit("blankClick",e)),nc.forEach(t=>{e.on(t,e=>{this.$emit(t,e)})}),this.autoResize&&(this.__resizeHanlder=Bl(()=>{e.resize()},100,{leading:!0}),Jl(this.$el,this.__resizeHanlder)),this.chart=e,this.$emit("update:ec",e)},destroy(){this.autoResize&&Zl(this.$el,this.__resizeHanlder),this.dispose(),this.chart=null},refresh(){this.destroy(),this.init()}},created(){this.$watch("options",e=>{!this.chart&&e?this.init():this.chart.setOption(this.options,!0)},{deep:!this.watchShallow});let e=["theme","initOptions","autoResize","watchShallow"];e.forEach(e=>{this.$watch(e,()=>{this.refresh()},{deep:!0})})},mounted(){this.options&&this.init()},activated(){this.autoResize&&this.chart&&this.chart.resize()},beforeDestroy(){this.chart&&this.destroy()},connect(e){"string"!==typeof e&&(e=e.map(e=>e.chart)),i.a.connect(e)},disconnect(e){i.a.disConnect(e)},registerMap(e,t,r){i.a.registerMap(e,t,r)},registerTheme(e,t){i.a.registerTheme(e,t)},graphic:i.a.graphic},ic=ac;r("46e2");function oc(e,t,r,n,a,i,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var sc=oc(ic,zl,Ml,!1,null,null,null),lc=sc.exports,cc=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ve-charts-empty-data"},[r("span",{domProps:{textContent:e._s(e.emptyText)}})])},uc=[],dc={name:"EchartsEmptyData",props:{emptyText:{type:String,default:"暂无数据"}}},fc=dc,hc=(r("86eb"),oc(fc,cc,uc,!1,null,null,null)),pc=hc.exports,mc=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ve-charts-loading-mask"},[r("div",{staticClass:"loading-spinner"},[r("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[r("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])])])},gc=[],bc=(r("137f"),{}),yc=oc(bc,mc,gc,!1,null,null,null),vc=yc.exports,xc={components:{BaseEcharts:lc,EmptyData:pc,LoadingChart:vc},props:{data:{type:[Object,Array],default(){return{}}},settings:{type:[Object,Array],default(){return{}}},title:Object,legend:Object,grid:Object,xAxis:[Object,Array],yAxis:[Object,Array],polar:Object,radiusAxis:Object,angleAxis:Object,radar:[Object,Array],dataZoom:[Object,Array],visualMap:[Object,Array],tooltip:Object,axisPointer:Object,toolbox:Object,brush:Object,geo:Object,parallel:Object,parallelAxis:Array,singleAxis:Array,timeline:Object,graphic:Object,calendar:Object,dataset:Object,series:[Object,Array],color:Array,backgroundColor:[Object,String],textStyle:Object,animation:Object,animationThreshold:Number,animationDuration:[Number,Function],animationEasing:[String,Function],animationDelay:[Number,Function],animationDurationUpdate:[Number,Function],animationEasingUpdate:[String,Function],animationDelayUpdate:[String,Function],blendMode:String,hoverLayerThreshold:Number,useUTC:{type:Boolean,default:!1},tooltipVisible:{type:Boolean,default:!0},legendVisible:{type:Boolean,default:!0},tickMarkVisible:{type:Boolean,default:!1},legendPosition:String,theme:[String,Object],loading:{type:Boolean,default:!1},emptyText:String,renderer:{type:String,default:"canvas"},height:{type:Number,default:400},seriesOption:{type:Object,default(){return{}}}},data(){return{ec:null,initOptions:null}},computed:{chartColor(){return this.theme?this.color:this.color||jl},isEmptyData(){if(c(this.data)||Vt(this.data)||Ht(this.data))return!0;if(Array.isArray(this.data))return!1;{const e=Sn(this.data,"measures");return 0===e.length}},isEmptySeries(){return c(this.series)||Vt(this.series)||Ht(this.series)},isHasData(){return!this.isEmptyData||!this.isEmptySeries},isHasParentStyle(){return this.loading||this.isEmptyData&&this.isEmptySeries},parentStyle(){const e=this.isHasParentStyle?{position:"relative",height:`${this.height}px`}:{};return e}},watch:{data:{deep:!0,handler(e){e&&this.dataHandler(e)}},settings:{deep:!0,handler(e){this.dataHandler(this.data)}},ec(e){this.$emit("update:ec",e)}},methods:{dataHandler(e){if(!this.chartHandler||this.isEmptyData&&this.isEmptySeries)return;const t={tooltipVisible:this.tooltipVisible,legendVisible:this.legendVisible,isEmptyData:this.isEmptyData,isEmptySeries:this.isEmptySeries,tickMarkVisible:this.tickMarkVisible,_once:this._once};this.beforeConfig&&(e=this.beforeConfig(e));const r=this.chartHandler(e,No(this.settings),t);r&&("function"===typeof r.then?r.then(this.optionsHandler):this.optionsHandler(r))},optionsHandler(e){if(e.color=this.chartColor,this.legendPosition&&e.legend){const t=this.legendPosition.split("-").shift();e.legend.left=this.legendPosition.split("-").pop(),-1!==["top"].indexOf(t)&&(e.legend.top=0),-1!==["bottom"].indexOf(t)&&(e.legend.bottom=0)}const t=["title","legend","grid","xAxis","yAxis","polar","radiusAxis","angleAxis","radar","dataZoom","visualMap","tooltip","axisPointer","toolbox","brush","geo","parallel","parallelAxis","singleAxis","timeline","graphic","calendar","dataset","series","color","backgroundColor","textStyle","animation","animationThreshold","animationDuration","animationEasing","animationDelay","animationDurationUpdate","animationEasingUpdate","animationDelayUpdate","blendMode","hoverLayerThreshold","useUTC"];t.forEach(t=>{this[t]&&(e[t]=this[t])}),this.animation&&Object.keys(this.animation).forEach(t=>{e[t]=this.animation[t]}),e.series=this.seriesHandler(e.series),this.options=Object.assign(No(this.options),e)},seriesHandler(e){if(Array.isArray(e)&&0===e.length)return[];if(!(e instanceof Array))return[e];if(0===Object.keys(this.seriesOption).length)return e;for(const[t,r]of Object.entries(this.seriesOption)){const n=e.findIndex(e=>e.name===t);n>-1?Ms(e[n],r):r.type&&(e[e.length]=r)}return e},init(){this.data&&this.dataHandler(this.data)},addWatchToProps(){const e=this._watchers.map(e=>e.expression);Object.keys(this.$props).forEach(t=>{if(!~e.indexOf(t)){const e={};"[object Object]"===xl(t)&&(e.deep=!0),this.$watch(t,()=>{this.dataHandler(this.data)},e)}})}},created(){this.initOptions={renderer:this.renderer},this._once={},this.addWatchToProps()},mounted(){this.init()}},_c={mixins:[xc],data(){return{options:Sl,initOptions:{renderer:"canvas"}}}},wc=_c,Ac=oc(wc,o,s,!1,null,null,null),Sc=Ac.exports;class jc{constructor(e,t,r){this.data=e,this.settings=t,this.extra=r}chartHandler(){}}var Lc=jc;class Tc extends Lc{static getBarTooltip(e){const{tooltipOptions:t}=e;return{trigger:"axis",axisPointer:{type:"shadow"},...t}}static getBarLegend(e,t){const{measures:r}=e,{legendType:n,legendPadding:a,waterfall:i,legendOptions:o}=t;let s={type:n||"plain",padding:a||5,...o};return i&&!0===i&&(s["data"]=r.filter(({name:e})=>{if("secondaryMeasure"!==e)return e})),s}static getBarGrid(e){const t={right:30,bottom:10,left:30,containLabel:!0};return e?t:Sl.grid}static getBarDimAxis(e){const{dimAxisType:t,dimAxisLineShow:r,dimAxisLabelShow:n,dimAxisLabelColor:a,xAxisName:i,xAxisSplitLine:o,dimAxisLabelRotate:s,dimAxisPointerType:l}=e,c={type:t,axisLine:{show:Array.isArray(r)?r[0]:r},axisTick:{show:!1},axisLabel:{show:Array.isArray(n)?n[0]:n,margin:10,fontWeight:400,color:Array.isArray(a)?a[0]:a,rotate:s},axisPointer:{show:!0,type:l}};i&&(c.name=i),o&&(c.splitLine=o);const u=[];return u.push(c),u}static getBarMeaAxis(e,t){const{meaAxisType:r,meaAxisDigits:n,meaAxisLineShow:a,meaAxisLabelShow:i,meaAxisLabelColor:o,meaAxisLabelRotate:s,yAxisScale:l=!1,percentage:c=!1,yAxisName:u,yAxisInterval:d,yAxisMax:f,yAxisMin:h}=t,p={type:"value",scale:l,axisTick:{show:!1},min:c?0:null,max:c?1:null},m=[];return r.forEach((e,t)=>{const r={show:Array.isArray(i)?i[t]:i,margin:10,fontWeight:400,color:Array.isArray(o)?o[t]:o,rotate:s};if("normal"!==e)if(Je(n)){let a=Ht(n[t])?0:n[t];r.formatter=t=>wl(e,t,a)}else r.formatter=t=>wl(e,t,n);const l={show:Array.isArray(a)?a[t]:a},g={...p,axisLabel:r,axisLine:l};u&&u.length&&(g["name"]=u[t]),d&&d.length&&d[t]&&(g["interval"]=Number(d[t])),!1===c&&f&&f.length&&(g["max"]=f[t]),!1===c&&h&&h.length&&(g["min"]=h[t]),m.push(g)}),m}static getBarLabel(e,t){const{position:r=(t?"right":"top"),formatType:n="currency",formatDigits:a=0,...i}=e,o=e=>{const{value:t,seriesIndex:r}=e;return t.shift(),wl(n,t[r],a)};return{position:r,formatter:o,...i}}static getBarSeries(e,t,r){const{measures:n}=e,{label:a={},showLine:i=[],stack:o=null,secondMeaAxis:s=[],itemStyle:l={},waterfall:c,markLine:u=null,markArea:d=null,...f}=t,h=r?"xAxisIndex":"yAxisIndex",p=[],m=o&&bl(o);return(u||d)&&p.push({type:"bar",name:"",data:[],markLine:u,markArea:d}),n.forEach(({name:e})=>{let t={};a instanceof Array?(t=a.filter(t=>t.name===e)[0],void 0===t&&(t={})):t=a;const n=i.includes(e)?"line":"bar",u={type:n,name:e,label:Tc.getBarLabel(t,r),stack:o&&m[e],[h]:s.includes(e)?"1":"0",itemStyle:l[e]?l[e]:{},...f};c&&!0===c&&"secondaryMeasure"===e&&(u["itemStyle"]=Tl[e]),p.push(u)}),p}bar(e,t,r){const{tooltipVisible:n,legendVisible:a,isEmptyData:i}=r,{direction:o="column",secondMeaAxis:s=null,yAxisLabelType:l,yAxisLabelDigits:c=0,yAxisName:u,yAxisLabelShow:d=[!0,!0],yAxisLineShow:f=[!0,!0],yAxisLabelColor:h=[null,null],xAxisLabelType:p,xAxisLabelDigits:m=0,xAxisName:g,xAxisLabelShow:b=!0,xAxisLineShow:y=!0,xAxisLabelColor:v=null,xAxisLabelRotate:x=0,yAxisLabelRotate:_=0,xAxisPointerType:w,yAxisPointerType:A}=t,S="column"!==o&&"row"===o,j=null!==s?["normal","normal"]:["normal"];t.meaAxisType=(S?p:l)||j,t.meaAxisDigits=S?m:c,t.meaAxisName=(S?g:u)||[],t.meaAxisLabelShow=S?b:d,t.meaAxisLineShow=S?y:f,t.meaAxisLabelColor=S?v:h,t.meaAxisLabelRotate=S?x:_,t.dimAxisType=(S?l:p)||"category",t.dimAxisDigits=S?c:m,t.dimAxisName=(S?u:g)||"",t.dimAxisLabelShow=S?d:b,t.dimAxisLineShow=S?f:y,t.dimAxisLabelColor=S?h:v,t.dimAxisLabelRotate=S?_:x,t.dimAxisPointerType=S?A:w,j.length>t.meaAxisType.length&&(t.meaAxisType=j.fill(t.meaAxisType[0])),r.chartType="bar";const L=!i&&_l(e,t,r),T=n&&Tc.getBarTooltip(t),O=a&&Tc.getBarLegend(e,t),z=Tc.getBarGrid(S),M=S?Tc.getBarMeaAxis(e,t):Tc.getBarDimAxis(t),k=S?Tc.getBarDimAxis(t):Tc.getBarMeaAxis(e,t),C=Tc.getBarSeries(e,t,S),{yAxisInverse:E,xAxisInverse:N}=t;void 0!==E&&k.forEach((e,t)=>{e.inverse=Array.isArray(E)?E[t]:E}),void 0!==N&&M.forEach(e=>{e.inverse=N});const D={grid:z,dataset:L,tooltip:T,legend:O,xAxis:M,yAxis:k,series:C};return D}}var Oc=Tc,zc={name:"VeBarChart",mixins:[Sc],created(){this.chartHandler=(new Oc).bar}};class Mc extends Lc{static getPieDataset(e,t,r){const n=[];if(r.chartType="pie",e.length&&1!==e.length){if(e.length>1)for(let a of e)n.push(_l(a,t,r))}else n.push(_l(e,t,r));return n}static getPieTooltip(e){return{trigger:"item"}}static getPieLegend(e){const{data:t,settings:r}=e;let n;n=Array.isArray(t)&&t.length>0?t[0].dimensions:t.dimensions;const{legendType:a="plain",legendPadding:i=5,legendSelected:o=n.data.length}=r,s=e=>{let t={};const r=n.data.slice(e);for(let n of r)t[n]=!1;return t};return{type:a,padding:i,selected:s(o)}}static getPieSeries(e){const{data:t,settings:r,isDonut:n}=e;let a=[];if(void 0===t.length)a=this.handleData(t,r,n);else if(1===t.length)a=this.handleData(t[0],r,n);else if(2===t.length)for(let i in t)a.push(this.handleData(t[i],r[i],n,i)[0]);return a}static handleData(e,t,r,n=0){const a=[],{measures:i}=e,{offsetY:o,radius:s=(r?["50%","70%"]:[0,"75%"]),selectedMode:l=!1,...c}=t;return i.forEach(({name:e,data:t},r)=>{a.push({type:"pie",name:e,selectedMode:l,center:o?["50%",o]:["50%","50%"],radius:s,datasetIndex:n,...c})}),a}static chartHandler(e,t,r,n=!1){const{tooltipVisible:a,legendVisible:i}=r,o=Mc.getPieDataset(e,t,r),s=a&&Mc.getPieTooltip(),l=i&&Mc.getPieLegend({data:e,settings:t}),c=Mc.getPieSeries({data:e,settings:t,isDonut:n}),u={dataset:o,tooltip:s,legend:l,series:c};return u}pie(e,t,r){return Mc.chartHandler(e,t,r,!1)}donut(e,t,r){return Mc.chartHandler(e,t,r,!0)}}var kc=Mc,Cc={name:"VeDonutChart",mixins:[Sc],created(){this.chartHandler=(new kc).donut}};function Ec(e,t,r){var n=-1,a=e.length;while(++nt}var Vc=$c;function Rc(e){return e&&e.length?Nc(e,os,Vc):void 0}var Hc=Rc;class Ic extends Lc{static getFunnelTooltip(e){return{trigger:"item"}}static getFunnelLegend(e){const{settings:t}=e,{legendType:r="plain",legendPadding:n=5}=t;return{type:r,padding:n}}static getFunnelSeries(e){const{data:t,settings:r}=e,{dimensions:n,measures:a}=t,i=n&&`${n.name}`,{funnelSort:o="desc",funnelAlign:s="center",contrast:l=!1,symmetric:c=!1,labelPosition:u="outside",funnelLabel:d,...f}=r,h=e=>{if(e.length>2)return void Cs.a.util.warn("data.measures.length is more then 2 in [Contrastive funnel chart]. Please use 2 measures",this);let t="";if(e.length>1){const r=e.reduce((e,t)=>cl(Fc([Hc(e.data),Hc(t.data)])/Hc([Hc(e.data),Hc(t.data)]),2));t=`${100*r}%`}return t},p=(e,t)=>e?0===t?"10%":"50%":"10%",m=(e,t)=>e?0===t?"right":"left":s,g=(e,t)=>{const{contrast:r,symmetric:n,funnelLabel:i}=e;if(i)return Array.isArray(i)?i[t]:i;let o={position:u};if(r){const e={position:"inside",formatter:e=>{const t=a.reduce((e,t)=>Hc([Hc(e.data),Hc(t.data)])),[,,r]=e.value;return`${Math.round(r/t*100,2)}%`},emphasis:{position:"inside",formatter:e=>{const t=a.reduce((e,t)=>Hc([Hc(e.data),Hc(t.data)])),[r,,n]=e.value;return`${r} ${Math.round(n/t*100,2)}%`}}};o=0===t?o:e}if(n){const e={position:"outside"!==u?u:"left"},r={position:"outside"!==u?u:"right"};o=0===t?e:r}return o},b=(e,t)=>({itemName:e,value:t}),y=[];return a.forEach(({name:e,data:t},r)=>{y.push({type:"funnel",name:e,sort:"desc"===o?"descending":"ascending",funnelAlign:m(c,r),width:c?"40%":"80%",x:p(c,r),maxSize:l&&0!==r?h(a):"100%",label:g({contrast:l,symmetric:c,funnelLabel:d},r),encode:b(i,e),...f})}),y}funnel(e,t,r){const{tooltipVisible:n,legendVisible:a}=r;r.chartType="funnel";const i=_l(e,t,r),o=n&&Ic.getFunnelTooltip(),s=a&&Ic.getFunnelLegend({settings:t}),l=Ic.getFunnelSeries({data:e,settings:t}),c={dataset:i,tooltip:o,legend:s,series:l};return c}}var Uc=Ic,Gc={name:"VeFunnelChart",mixins:[Sc],created(){this.chartHandler=(new Uc).funnel}};class Wc extends Lc{static getGaugeTooltip(){return{trigger:"item"}}static getGaugeSeries(e){const{data:t,settings:r}=e,{name:n,data:a}=t&&t.measures&&t.measures[0],{min:i=0,max:o=100,offsetY:s,radius:l="75%",...c}=r;return[{name:n,type:"gauge",min:i,max:o,center:s?["50%",s]:["50%","50%"],radius:l,data:a,...c}]}gauge(e,t,r){const{tooltipVisible:n}=r,a=n&&Wc.getGaugeTooltip(),i=Wc.getGaugeSeries({data:e,settings:t}),o={tooltip:a,series:i};return o}}var qc=Wc,Yc={name:"VeGaugeChart",mixins:[Sc],created(){this.chartHandler=(new qc).gauge}},Jc=sl("ceil"),Zc=Jc,Xc=sl("floor"),Kc=Xc,Qc=r("0e45"),eu=r("274d"),tu=r("2814");class ru extends Lc{static convertCityName(e){return isNaN(1*e)?e:tu[e]}static convertCoord(e){return Qc[e]||eu[e]}static convertCityData(e,t){const{index:r,connect:n}=t,a=n?n.dataIndex:-1,i=n?n.seriesIndex:-1,o=n?n.symbolSize:10,s=n?n.normalShadowBlur:0,l=[];for(let c=0;c{const r=t.map(e=>parseInt(e.value));return O=[...O,...r],[Math.min(...r),Math.max(...r)]});return l?(T=Math.min(...O),L=Math.max(...O)):(T=z.reduce((e,t)=>e+t[0],0),L=z.reduce((e,t)=>e+t[1],0)),n&&n.forEach(({name:e,data:t},r)=>{const n=s?t:l?ru.convertLinesData(e,t):ru.convertCityData(t,{index:r,connect:w}),L={show:!1,emphasis:{show:!1}};l?(e=ru.convertCityName(e),j.push({name:e,type:"lines",zlevel:1,effect:{show:m,period:5,trailLength:0,color:"#fff",symbolSize:3,...g},lineStyle:{width:0,curveness:_&&_.curveness||.2},data:n},{name:e,type:"lines",zlevel:2,effect:{show:b,period:5,trailLength:.4,symbol:"arrow",symbolSize:6,...y},lineStyle:{color:"#ED3574",width:1,opacity:.6,curveness:.2,..._},data:n},{name:e,type:"effectScatter",coordinateSystem:"geo",zlevel:2,showEffectOn:"render",rippleEffect:{brushType:"stroke"},label:v?{show:!0,formatter:"{b}",...x.normal,emphasis:{...x.emphasis}}:L,symbolSize:f,itemStyle:A?{color:A}:{},data:ru.convertEffectScatterData(t)},{name:e,type:"effectScatter",coordinateSystem:"geo",zlevel:3,showEffectOn:"render",rippleEffect:{brushType:"stroke"},label:v?{show:!0,formatter:"{b}",...x.normal,emphasis:{...x.emphasis}}:L,symbolSize:f,itemStyle:A?{color:A}:{},data:[{name:e,value:ru.convertCoord(e)}]})):(j[r]={name:e,type:a,roam:h,visualMap:u,label:o?d:L,selectedMode:"single",mapType:i,data:n,zoom:p},c&&(j[r].itemStyle=c),s||(j[r]={...j[r],coordinateSystem:"geo",label:L,symbolSize:f,showEffectOn:"render",rippleEffect:{brushType:"stroke"},itemStyle:A?{color:A}:{}})),S.push(e)}),{legendData:S,seriesData:j,max:Zc(L,-2),min:Kc(T,-2)}}static getGeoTooltip(e,t){const r=function(e){const{seriesName:r,name:n,value:a,marker:i,seriesType:o,data:s}=e,l=Array.isArray(a)?a[2]:a;if(t){const{fromName:e,toName:t,name:r}=s;return"effectScatter"===o?`${r}`:"lines"===o?`${e} -> ${t}
${l}`:`${t}`}return`${r}
${i}${n}: ${l}`};return e?{trigger:"item"}:{trigger:"item",formatter:r}}static getGeoLegend(e){const{legendData:t,settings:r}=e,{legendType:n="plain",legendPadding:a=5}=r;return{type:n,padding:a,data:t}}static getGeo(e){const{labelVisible:t=!1,label:r,itemStyle:n,silent:a=!1,zoom:i=1,roam:o=!1,mapName:s="china"}=e.settings,l={show:!1,emphasis:{show:!1}},c={map:s,silent:a,roam:o,selectedMode:"single",label:t?r:l,zoom:i};return n&&(c.itemStyle=n),c}static getVisualMap(e){const{min:t=0,max:r=200,settings:n}=e,{visualMap:a}=n;return{min:t,max:r,left:"left",top:"bottom",show:!0,calculable:!0,...a}}static async registerMap(e){const{mapName:t="china",specialAreas:r,mapUrlPrefix:n=Ol,_once:a}=e;let o={};return a[t]||(o=await vl({mapName:t,mapUrlPrefix:n}),Object.assign(a,{[t]:!0}),i.a.registerMap(t,o,r)),o}async geo(e,t,r){const{tooltipVisible:n,legendVisible:a,_once:i}=r,{mode:o="map",visualMapVisible:s=!1}=t,l="map"===o,c="lines"===o;t.isMapMode=l,t.isLinesMode=c;const{legendData:u,seriesData:d,min:f,max:h}=ru.getGeoData({data:e,settings:t}),p=n&&ru.getGeoTooltip(l,c),m=a&&ru.getGeoLegend({legendData:u,settings:t}),g=!l&&ru.getGeo({data:e,settings:t}),b=s&&ru.getVisualMap({min:f,max:h,settings:t}),y={tooltip:p,legend:m,visualMap:b,geo:g,series:d},v={mapName:t.mapName,specialAreas:t.specialAreas,mapUrlPrefix:t.mapUrlPrefix,_once:i};return await ru.registerMap(v),y}}var nu=ru,au={name:"VeGeoChart",mixins:[Sc],created(){this.chartHandler=(new nu).geo}};class iu extends Lc{static getLineTooltip(e){const{tooltipOptions:t}=e;return{trigger:"axis",...t}}static getLineLegend(e){const{legendType:t="plain",legendPadding:r=5,legendOptions:n}=e;return{type:t,padding:r,...n}}static getLineDimAxis({settings:e}){const{yAxisType:t,xAxisLabelShow:r=!0,xAxisLineShow:n=!0,xAxisLabelColor:a,xAxisInverse:i=!1,xAxisName:o,xAxisSplitLine:s}=e,l=t||"category";return{type:l,boundaryGap:!1,axisLine:{show:n},axisTick:{show:!1},axisLabel:{show:r,margin:10,fontWeight:400,color:a||null},inverse:i,name:void 0!==o?o:null,splitLine:void 0!==s?s:null}}static getLineMeaAxis(e){const{settings:t}=e,{yAxisScale:r,yAxisLabelType:n,yAxisLabelDigits:a,yAxisName:i,yAxisInterval:o,yAxisMax:s,yAxisMin:l,yAxisInverse:c,percentage:u=!1,yAxisLabelShow:d=!0,yAxisLineShow:f=!0,yAxisLabelColor:h}=t;let p={type:"value",scale:r,axisLine:{show:f},axisTick:{show:!1},axisLabel:{show:d,margin:10,fontWeight:400,color:h||null,formatter:e=>wl(n,e,a)},min:u?0:null,max:u?1:null};return i&&(p["name"]=i),o&&(p["interval"]=Number(o)),s&&(p["max"]=s),l&&(p["min"]=l),void 0!==c&&(p["inverse"]=c),p}static getLineLabel(e){const{position:t="top",formatType:r="currency",formatDigits:n=0,...a}=e,i=e=>{const{value:t,seriesIndex:a}=e;return t.shift(),wl(r,t[a],n)};return{position:t,formatter:i,...a}}static getLineSeries(e){const{data:t,settings:r}=e,{measures:n}=t,{label:a={},showSymbol:i=!0,smooth:o=!1,stack:s=null,step:l=null,symbol:c="emptyCircle",symbolSize:u=4,itemStyle:d={},markLine:f=null,markArea:h=null,...p}=r,m=[],g=s&&bl(s);return(f||h)&&m.push({type:"line",markLine:f,markArea:h}),n.forEach(({name:e,data:t},r)=>{m.push({type:"line",name:e,label:this.getLineLabel(a),showSymbol:i,smooth:o,stack:s&&g[e],step:l,symbol:c,symbolSize:u,itemStyle:d[e]?d[e]:{},...p})}),m}line(e,t,r){const{tooltipVisible:n,legendVisible:a,isEmptyData:i}=r;r.chartType="line";const o=!i&&_l(e,t,r),s=n&&iu.getLineTooltip(t),l=a&&iu.getLineLegend(t),c=iu.getLineDimAxis({settings:t}),u=iu.getLineMeaAxis({settings:t}),d=!i&&iu.getLineSeries({data:e,settings:t}),f={dataset:o,tooltip:s,legend:l,xAxis:c,yAxis:u,series:d};return f}}var ou=iu,su={name:"VeLineChart",mixins:[Sc],created(){this.chartHandler=(new ou).line}},lu={name:"VePieChart",mixins:[Sc],created(){this.chartHandler=(new kc).pie}};class cu extends Lc{static getRadarTooltip(){return{trigger:"item"}}static getRadarLegend(e){const{data:t,settings:r}=e,{legendType:n="plain",legendPadding:a=5}=r,{measures:i}=t;return{type:n,padding:a,data:i.map(e=>e.name)}}static getRadarRadar(e){const{data:t,settings:r}=e,{offsetY:n="50%",radius:a="75%",splitNumber:i=5,shape:o="polygon",splitArea:s={},name:l={}}=r;return{name:{padding:[3,5],...l},center:["50%",n],radius:a,splitNumber:i,shape:o,splitArea:s,indicator:t.dimensions}}static getRadarLabel(e){const{formatType:t="currency",formatDigits:r=0,...n}=e,a=e=>{const{value:n}=e;return wl(t,n,r)};return{formatter:a,...n}}static getRadarSeries({data:e,settings:t}){const{measures:r}=e,{label:n,itemStyle:a}=t,i=[];return r.forEach((e,t)=>{i.push({type:"radar",data:[{name:e.name,value:e.data}],label:n&&cu.getRadarLabel(n),itemStyle:Object.assign({},a)})}),i}static getRadiusPolar({data:e,settings:t,tickMarkVisible:r}){if(!r)return{polar:null,radiusAxis:null,angleAxis:null};const{splitNumber:n=5,offsetY:a="50%",radius:i="75%",axisLabel:o={},axisLine:s={}}=t,l=e.dimensions[0].max,c=0,u=(l-c)/n;return{polar:{radius:i,center:["50%",a]},radiusAxis:{min:c,max:l,interval:Math.round(100*u)/100,splitLine:{show:!1},axisLabel:o,axisLine:s},angleAxis:{axisTick:{show:!1},axisLabel:{show:!1},axisLine:{show:!1},splitLine:{show:!1}}}}radar(e,t,r){const{tooltipVisible:n,legendVisible:a,isEmptyData:i,tickMarkVisible:o}=r;if(i)return{};const s=n&&cu.getRadarTooltip(),l=a&&cu.getRadarLegend({data:e,settings:t}),c=cu.getRadarRadar({data:e,settings:t}),u=cu.getRadarSeries({data:e,settings:t}),d=cu.getRadiusPolar({data:e,settings:t,tickMarkVisible:o}),f={tooltip:s,legend:l,radar:c,series:u,...d};return f}}var uu=cu,du={name:"VeRadarChart",mixins:[Sc],created(){this.chartHandler=(new uu).radar}};class fu extends Lc{static getScatterDataset(e,t,r){const n=[],{measures:a}=e;if(Je(a))return a.forEach(e=>{n.push({source:e.data})}),n}static getScatterTooltip(e){return{}}static getScatterLegend(e){const{settings:t}=e,{legendType:r="plain",legendPadding:n=5}=t;return{type:r,padding:n}}static getScatterSeries(e){const{data:t,settings:r}=e,{connect:n,...a}=r,i=[];return t.measures.forEach(({name:e},t)=>{i[t]={type:"scatter",name:e,datasetIndex:t,...a}}),i}static getScatterXAxis(e){const{settings:t}=e,{xAxisScale:r=!1,xAxisName:n,xAxisNameGap:a,xAxisNameLocation:i}=t;let o={scale:r,nameGap:5,splitLine:{lineStyle:{type:"dashed"}}};return n&&(o["name"]=n),a&&(o["nameGap"]=a),i&&(o["nameLocation"]=i),o}static getScatterYAxis(e){const{settings:t}=e,{yAxisScale:r=!1,yAxisName:n}=t;let a={scale:r,splitLine:{lineStyle:{type:"dashed"}}};return n&&(a["name"]=n),a}scatter(e,t,r){const{tooltipVisible:n,legendVisible:a}=r,i=fu.getScatterDataset(e,t,r),o=n&&fu.getScatterTooltip({data:e}),s=a&&fu.getScatterLegend({settings:t}),l=fu.getScatterSeries({data:e,settings:t}),c=fu.getScatterXAxis({settings:t}),u=fu.getScatterYAxis({settings:t}),d={dataset:i,tooltip:o,legend:s,series:l,xAxis:c,yAxis:u};return d}}var hu=fu,pu={name:"VeScatterChart",mixins:[Sc],created(){this.chartHandler=(new hu).scatter}};class mu extends Lc{static getTreemapTooltip(e){return{formatter:"{b}:
{c}"}}static getTreemapSeries(e){const{data:t,settings:r}=e,{measures:n}=t,{name:a="根级",levels:i=Ll,...o}=r,s=[];return s.push({type:"treemap",name:a,levels:i,data:n,...o}),s}treemap(e,t,r){const{tooltipVisible:n}=r,a=n&&mu.getTreemapTooltip(),i=mu.getTreemapSeries({data:e,settings:t}),o={tooltip:a,series:i};return o}}var gu=mu,bu={name:"VeTreemapChart",mixins:[Sc],created(){this.chartHandler=(new gu).treemap}};class yu extends Lc{static getBarTooltip(e){const{settings:t}=e,{tooltip:r}=t;return{...r}}static getSunburstSeries(e){const{data:t,settings:r}=e,{measures:n}=t,{label:a={},itemStyle:i={},...o}=r,s=[];return n.forEach(({name:e,data:t},r)=>{const n="sunburst",l={type:n,name:e,data:t,label:a,itemStyle:i,...o};s.push(l)}),s}sunburst(e,t,r){const n=yu.getBarTooltip({settings:t}),a=yu.getSunburstSeries({data:e,settings:t}),i={series:a};return 0!==Object.keys(n).length&&(i["tooltip"]=n),i}}var vu=yu,xu={name:"VeSunburstChart",mixins:[Sc],created(){this.chartHandler=(new vu).sunburst}};class _u extends Lc{static getTreeTooltip(){return{trigger:"item",triggerOn:"mousemove"}}static getTreeLegend(e,t){const{legendType:r="plain",legendPadding:n=5}=t,{measures:a}=e;return{type:r,padding:n,data:a.map(e=>e.name)}}static formatTreeLabels(e="LR",t=0){let[r,n,a,i]=["","","",""];switch(e){case"LR":r="left",n="right",a="right",i="left";break;case"RL":r="right",n="left",a="left",i="right";break;case"TB":r="top",n=t>0?"right":"middle",a="bottom",i=t>0?"left":"middle";break;case"BT":r="bottom",n=t>0?"right":"middle",a="top",i=t>0?"left":"middle";break;default:}return{label:{position:r,verticalAlign:"middle",align:n,rotate:t},leaves:{label:{position:a,verticalAlign:"middle",align:i,rotate:t}}}}static getTreeSeries(e,t){const{seriesMap:r=[],labelRotate:n}=t,a=e.measures.map((e,t)=>{const a=r&&r[t]&&r[t].layout,i=r&&r[t]&&r[t].orient,o="radial"===a?{}:_u.formatTreeLabels(i,n),s={type:"tree",name:e.name,data:[e.value],...o,...r[t]};return s});return a}tree(e,t,r){const{tooltipVisible:n,legendVisible:a}=r,i=n&&_u.getTreeTooltip(),o=a&&_u.getTreeLegend(e,t),s=_u.getTreeSeries(e,t),l={tooltip:i,legend:o,series:s};return l}}var wu=_u,Au={name:"VeTreeChart",mixins:[Sc],created(){this.chartHandler=(new wu).tree}};class Su extends Lc{static getWordcloudSeries(e){const{data:t,settings:r}=e,{measures:n}=t,a="wordCloud",i=[],o={type:a,data:n,...r};return i.push(o),i}wordcloud(e,t,r){const{tooltip:n}=t,a=Su.getWordcloudSeries({data:e,settings:t}),i={tooltip:n,series:a};return i}}var ju=Su,Lu={name:"VeWordcloudChart",mixins:[Sc],created(){this.chartHandler=(new ju).wordcloud}};class Tu extends Lc{static getSeries(e){const{measures:t}=e.data,r=e.settings,n=[];return n.push({type:"liquidFill",data:[...t],...r}),n}liquidfill(e,t,r){const{isEmptyData:n}=r,{tooltip:a}=t;if(n)return{};const i=Tu.getSeries({data:e,settings:t}),o={tooltip:a,series:i};return o}}var Ou=Tu,zu={name:"VeLiquidfillChart",mixins:[Sc],created(){this.chartHandler=(new Ou).liquidfill}};class Mu extends Lc{static getTooltip(e){return{}}static getLegend(e){const{measures:t}=e;return{show:!0,data:t.map(e=>e.name)}}static getPolar(e){return{}}static getAngleAxis(e){const{radial:t=!1,startAngle:r=90,clockwise:n=!0,showAngleAxisLine:a=!0,showAngleSplitLine:i=!0,showAngleAxisLabel:o=!0,angleAxisLabelType:s,angleAxisLabelDigits:l,angleAxisMax:c,angleAxisMin:u}=e;return{type:t?"category":"value",clockwise:n,startAngle:r,min:u||null,max:c||null,axisLine:{show:a},axisTick:{show:a},splitLine:{show:i},axisLabel:{show:o,margin:10,fontWeight:400,formatter:e=>wl(s,e,l)}}}static getRadiusAxis(e){const{radial:t=!1}=e;return{type:t?"value":"category",z:10}}static getSeries({data:e,settings:t}){const{measures:r}=e,{polarType:n="line",stack:a=null,itemStyle:i={},roundCap:o=!1,...s}=t,l=r.map(({name:e},t)=>({type:n,stack:a,roundCap:o,coordinateSystem:"polar",itemStyle:i[e]||{},...s}));return l}polar(e,t,r){const{legendVisible:n,tooltipVisible:a,isEmptyData:i}=r;if(i)return{};const o=a&&Mu.getTooltip(t),s=n&&Mu.getLegend(e),l=Mu.getPolar(t),c=Mu.getAngleAxis(t),u=Mu.getRadiusAxis(t),d=!i&&_l(e,t,r),f=Mu.getSeries({data:e,settings:t}),h={tooltip:o,legend:s,polar:l,angleAxis:c,radiusAxis:u,dataset:d,series:f};return h}}var ku=Mu,Cu={name:"VePolarChart",mixins:[Sc],created(){this.chartHandler=(new ku).polar}};class Eu extends Lc{static getTooltip(e){return{}}static getSeries({data:e,settings:t}){const{dimensions:r,measures:n}=e,{orient:a="horizontal",draggable:i=!0,focusNodeAdjacency:o=!1,...s}=t;return{type:"sankey",data:r,edges:n,orient:a,draggable:i,focusNodeAdjacency:o,...s}}sankey(e,t,r){const{tooltipVisible:n,isEmptyData:a}=r;if(a)return{};const i=n&&Eu.getTooltip(t),o=Eu.getSeries({data:e,settings:t}),s={tooltip:i,series:o};return s}}var Nu=Eu,Du={name:"VeSankeyChart",mixins:[Sc],created(){this.chartHandler=(new Nu).sankey}};class Pu extends Lc{static getBarTooltip(e,t){const{tooltipOptions:r,childSetting:n={series:{},legend:{},legendShow:{},contentSize:{}}}=t,{series:a,legend:o,...s}=n;function l(e,t){return{series:{type:"pie",data:e,center:["20%","50%"],label:{show:!1},...a},tooltip:{trigger:"item",formatter:e=>e.name+" : "+e.value+" ("+e.percent+"%)"},color:["#426fff","#40adff","#3fdace","#18bdb0","#ffda3e","#ffa900","#83dd89","#bedf65","#956bfd","#f67bb2"],animation:!1,legend:{type:"scroll",orient:"vertical",top:"5%",left:"40%",data:e,itemWidth:10,itemHeight:6,textStyle:{color:"black",fontSize:12,fontFamily:"sans-serif",rich:{name:{width:100,align:"left"},value:{width:100,align:"left"},percent:{width:50,height:"14",align:"left"}}},tooltip:{show:!0,formatter:r=>{let n=t.indexOf(r.name),a=e[n].value.toLocaleString("en-US",{maximumFractionDigits:2});return`${r.name} : ${a}`}},pageIconColor:"#426FFF",pageIconInactiveColor:"#aaa",pageIconSize:10,pageButtonItemGap:5,formatter:r=>{let a=t.indexOf(r),i={name:!0,value:!0,percent:!0,...n["legendShow"]};const o=e.reduce((e,t)=>e+t.value,0);let s=(e[a].value/o*100).toFixed(n["toFix"]||2),l=e[a].value.toLocaleString("en-US",{maximumFractionDigits:2}),c=r.length>10?r.substr(0,10)+"...":r;return i.value||i.percent?i.value?i.percent?"{name|"+c+"}{value|"+l+"}{percent|"+s+"%}":"{name|"+c+"}{value|"+l+"}":"{name|"+c+"}{percent|"+s+"%}":"{name|"+c+"}"},...o},...s}}function c(e,t){setTimeout(()=>{if(null!==document.getElementById("pieTooltip")){let r=i.a.init(document.getElementById("pieTooltip"));r.setOption(l(e,t))}},0)}return{trigger:"axis",axisPointer:{type:"shadow"},position:function(e,t,r,n,a){let i={top:e[1]-200};return i[["left","right"][+(e[0]{let r=t[0].dataIndex,a=e.childData[r],i=a.map(e=>(e.icon=e.icon?e.icon:"circle",e.name)),o={width:"500px",height:"200px",...n["contentSize"]};return c(a,i),`
${t[0].name}
\n
`}}}static getBarLegend(e,t){const{measures:r}=e,{legendType:n,legendPadding:a,waterfall:i,legendOptions:o}=t;let s={type:n||"plain",padding:a||5,...o};return i&&!0===i&&(s["data"]=r.filter(({name:e})=>{if("secondaryMeasure"!==e)return e})),s}static getBarGrid(e){const t={right:30,bottom:10,left:30,containLabel:!0};return e?t:Sl.grid}static getBarDimAxis(e){const{dimAxisType:t,dimAxisLineShow:r,dimAxisLabelShow:n,dimAxisLabelColor:a,xAxisName:i,xAxisSplitLine:o,dimAxisLabelRotate:s,dimAxisPointerType:l}=e,c={type:t,axisLine:{show:Array.isArray(r)?r[0]:r},axisTick:{show:!1},axisLabel:{show:Array.isArray(n)?n[0]:n,margin:10,fontWeight:400,color:Array.isArray(a)?a[0]:a,rotate:s},axisPointer:{show:!0,type:l}};i&&(c.name=i),o&&(c.splitLine=o);const u=[];return u.push(c),u}static getBarMeaAxis(e,t){const{meaAxisType:r,meaAxisDigits:n,meaAxisLineShow:a,meaAxisLabelShow:i,meaAxisLabelColor:o,meaAxisLabelRotate:s,yAxisScale:l=!1,percentage:c=!1,yAxisName:u,yAxisInterval:d,yAxisMax:f,yAxisMin:h}=t,p={type:"value",scale:l,axisTick:{show:!1},min:c?0:null,max:c?1:null},m=[];return r.forEach((e,t)=>{const r={show:Array.isArray(i)?i[t]:i,margin:10,fontWeight:400,color:Array.isArray(o)?o[t]:o,rotate:s};if("normal"!==e)if(Je(n)){let a=Ht(n[t])?0:n[t];r.formatter=t=>wl(e,t,a)}else r.formatter=t=>wl(e,t,n);const l={show:Array.isArray(a)?a[t]:a},g={...p,axisLabel:r,axisLine:l};u&&u.length&&(g["name"]=u[t]),d&&d.length&&d[t]&&(g["interval"]=Number(d[t])),!1===c&&f&&f.length&&(g["max"]=f[t]),!1===c&&h&&h.length&&(g["min"]=h[t]),m.push(g)}),m}static getBarLabel(e,t){const{position:r=(t?"right":"top"),formatType:n="currency",formatDigits:a=0,...i}=e,o=e=>{const{value:t,seriesIndex:r}=e;return t.shift(),wl(n,t[r],a)};return{position:r,formatter:o,...i}}static getBarSeries(e,t,r){const{measures:n}=e,{label:a={},showLine:i=[],stack:o=null,secondMeaAxis:s=[],itemStyle:l={},waterfall:c,markLine:u=null,markArea:d=null,...f}=t,h=r?"xAxisIndex":"yAxisIndex",p=[],m=o&&bl(o);return(u||d)&&p.push({type:"bar",name:"",data:[],markLine:u,markArea:d}),n.forEach(({name:e})=>{let t={};a instanceof Array?(t=a.filter(t=>t.name===e)[0],void 0===t&&(t={})):t=a;const n=i.includes(e)?"line":"bar",u={type:n,name:e,label:Pu.getBarLabel(t,r),stack:o&&m[e],[h]:s.includes(e)?"1":"0",itemStyle:l[e]?l[e]:{},...f};c&&!0===c&&"secondaryMeasure"===e&&(u["itemStyle"]=Tl[e]),p.push(u)}),p}bar(e,t,r){const{tooltipVisible:n,legendVisible:a,isEmptyData:i}=r,{direction:o="column",secondMeaAxis:s=null,yAxisLabelType:l,yAxisLabelDigits:c=0,yAxisName:u,yAxisLabelShow:d=[!0,!0],yAxisLineShow:f=[!0,!0],yAxisLabelColor:h=[null,null],xAxisLabelType:p,xAxisLabelDigits:m=0,xAxisName:g,xAxisLabelShow:b=!0,xAxisLineShow:y=!0,xAxisLabelColor:v=null,xAxisLabelRotate:x=0,yAxisLabelRotate:_=0,xAxisPointerType:w,yAxisPointerType:A}=t,S="column"!==o&&"row"===o,j=null!==s?["normal","normal"]:["normal"];t.meaAxisType=(S?p:l)||j,t.meaAxisDigits=S?m:c,t.meaAxisName=(S?g:u)||[],t.meaAxisLabelShow=S?b:d,t.meaAxisLineShow=S?y:f,t.meaAxisLabelColor=S?v:h,t.meaAxisLabelRotate=S?x:_,t.dimAxisType=(S?l:p)||"category",t.dimAxisDigits=S?c:m,t.dimAxisName=(S?u:g)||"",t.dimAxisLabelShow=S?d:b,t.dimAxisLineShow=S?f:y,t.dimAxisLabelColor=S?h:v,t.dimAxisLabelRotate=S?_:x,t.dimAxisPointerType=S?A:w,j.length>t.meaAxisType.length&&(t.meaAxisType=j.fill(t.meaAxisType[0])),r.chartType="bar";const L=!i&&_l(e,t,r),T=n&&Pu.getBarTooltip(e,t),O=a&&Pu.getBarLegend(e,t),z=Pu.getBarGrid(S),M=S?Pu.getBarMeaAxis(e,t):Pu.getBarDimAxis(t),k=S?Pu.getBarDimAxis(t):Pu.getBarMeaAxis(e,t),C=Pu.getBarSeries(e,t,S),{yAxisInverse:E,xAxisInverse:N}=t;void 0!==E&&k.forEach((e,t)=>{e.inverse=Array.isArray(E)?E[t]:E}),void 0!==N&&M.forEach(e=>{e.inverse=N});const D={grid:z,dataset:L,tooltip:T,legend:O,xAxis:M,yAxis:k,series:C};return D}}var Bu=Pu,Fu={name:"VeBarpieChart",mixins:[Sc],created(){this.chartHandler=(new Bu).bar}};const $u=[zc,Cc,Gc,Yc,au,su,lu,du,pu,bu,xu,Au,Lu,zu,Cu,Du,Fu],Vu=e=>{Vu.installed||$u.forEach(t=>{e.component(t.name,t)})};"undefined"!==typeof window&&window.Vue&&(window.Vue.use(Vu),Vu.installed&&(Vu.installed=!1));var Ru={install:Vu,VeBarChart:zc,VeDonutChart:Cc,VeFunnelChart:Gc,VeGaugeChart:Yc,VeGeoChart:au,VeLineChart:su,VePieChart:lu,VeRadarChart:du,VeScatterChart:pu,VeTreemapChart:bu,VeSunburstChart:xu,VeTreeChart:Au,VeWordcloudChart:Lu,VeLiquidfillChart:zu,VePolarChart:Cu,VeSankeyChart:Du,VeBarpieChart:Fu};t["default"]=Ru},ff6f:function(e,t,r){var n=r("068a");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("499e").default;a("3a96cc98",n,!0,{sourceMap:!1,shadowMode:!1})}})["default"]})); \ No newline at end of file + */(function(i,o){n=o,a="function"===typeof n?n.call(t,r,t,e):n,void 0===a||(e.exports=a)})(0,(function(){var e,t,r="2.0.6",n={},a={},i={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},o={currentLocale:i.currentLocale,zeroFormat:i.zeroFormat,nullFormat:i.nullFormat,defaultFormat:i.defaultFormat,scalePercentBy100:i.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return e=function(r){var a,i,l,c;if(e.isNumeral(r))a=r.value();else if(0===r||"undefined"===typeof r)a=0;else if(null===r||t.isNaN(r))a=null;else if("string"===typeof r)if(o.zeroFormat&&r===o.zeroFormat)a=0;else if(o.nullFormat&&r===o.nullFormat||!r.replace(/[^0-9]+/g,"").length)a=null;else{for(i in n)if(c="function"===typeof n[i].regexps.unformat?n[i].regexps.unformat():n[i].regexps.unformat,c&&r.match(c)){l=n[i].unformat;break}l=l||e._.stringToNumber,a=l(r)}else a=Number(r)||null;return new s(r,a)},e.version=r,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,r,n){var i,o,s,l,c,u,d,f=a[e.options.currentLocale],h=!1,p=!1,m=0,g="",b=1e12,y=1e9,v=1e6,x=1e3,_="",w=!1;if(t=t||0,o=Math.abs(t),e._.includes(r,"(")?(h=!0,r=r.replace(/[\(|\)]/g,"")):(e._.includes(r,"+")||e._.includes(r,"-"))&&(c=e._.includes(r,"+")?r.indexOf("+"):t<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),e._.includes(r,"a")&&(i=r.match(/a(k|m|b|t)?/),i=!!i&&i[1],e._.includes(r," a")&&(g=" "),r=r.replace(new RegExp(g+"a[kmbt]?"),""),o>=b&&!i||"t"===i?(g+=f.abbreviations.trillion,t/=b):o=y&&!i||"b"===i?(g+=f.abbreviations.billion,t/=y):o=v&&!i||"m"===i?(g+=f.abbreviations.million,t/=v):(o=x&&!i||"k"===i)&&(g+=f.abbreviations.thousand,t/=x)),e._.includes(r,"[.]")&&(p=!0,r=r.replace("[.]",".")),s=t.toString().split(".")[0],l=r.split(".")[1],u=r.indexOf(","),m=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=l.replace("]",""),l=l.split("["),_=e._.toFixed(t,l[0].length+l[1].length,n,l[1].length)):_=e._.toFixed(t,l.length,n),s=_.split(".")[0],_=e._.includes(_,".")?f.delimiters.decimal+_.split(".")[1]:"",p&&0===Number(_.slice(1))&&(_="")):s=e._.toFixed(t,0,n),g&&!i&&Number(s)>=1e3&&g!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion;break}if(e._.includes(s,"-")&&(s=s.slice(1),w=!0),s.length0;A--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===r.indexOf(".")&&(s=""),d=s+_+(g||""),h?d=(h&&w?"(":"")+d+(h&&w?")":""):c>=0?d=0===c?(w?"-":"+")+d:d+(w?"-":"+"):w&&(d="-"+d),d},stringToNumber:function(e){var t,r,n,i=a[o.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(o.zeroFormat&&e===o.zeroFormat)r=0;else if(o.nullFormat&&e===o.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),l)if(n=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),s.match(n)){r*=Math.pow(10,l[t]);break}r*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),r*=Number(e)}return r},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var r,n=Object(e),a=n.length>>>0,i=0;if(3===arguments.length)r=arguments[2];else{while(i=a)throw new TypeError("Reduce of empty array with no initial value");r=n[i++]}for(;in?e:n}),1)},toFixed:function(e,t,r,n){var a,i,o,s,l=e.toString().split("."),c=t-(n||0);return a=2===l.length?Math.min(Math.max(l[1].length,c),t):c,o=Math.pow(10,a),s=(r(e+"e+"+a)/o).toFixed(a),n>t-a&&(i=new RegExp("\\.?0{1,"+(n-(t-a))+"}$"),s=s.replace(i,"")),s}},e.options=o,e.formats=n,e.locales=a,e.locale=function(e){return e&&(o.currentLocale=e.toLowerCase()),o.currentLocale},e.localeData=function(e){if(!e)return a[o.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in i)o[e]=i[e]},e.zeroFormat=function(e){o.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){o.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){o.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},e.validate=function(t,r){var n,a,i,o,s,l,c,u;if("string"!==typeof t&&(t+="",console.warn),t=t.trim(),t.match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(r)}catch(d){c=e.localeData(e.locale())}return i=c.currency.symbol,s=c.abbreviations,n=c.delimiters.decimal,a="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,u=t.match(/^[^\d]+/),(null===u||(t=t.substr(1),u[0]===i))&&(u=t.match(/[^\d]+$/),(null===u||(t=t.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(l=new RegExp(a+"{2}"),!t.match(/[^\d.,]/g)&&(o=t.split(n),!(o.length>2)&&(o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(l):1===o[0].length?!!o[0].match(/^\d+$/)&&!o[0].match(l)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(l)&&!!o[1].match(/^\d+$/)))))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,r){var a,i,s,l=this._value,c=t||o.defaultFormat;if(r=r||Math.round,0===l&&null!==o.zeroFormat)i=o.zeroFormat;else if(null===l&&null!==o.nullFormat)i=o.nullFormat;else{for(a in n)if(c.match(n[a].regexps.format)){s=n[a].format;break}s=s||e._.numberToFormat,i=s(l,c,r)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=t.correctionFactor.call(null,this._value,e);function n(e,t,n,a){return e+Math.round(r*t)}return this._value=t.reduce([this._value,e],n,0)/r,this},subtract:function(e){var r=t.correctionFactor.call(null,this._value,e);function n(e,t,n,a){return e-Math.round(r*t)}return this._value=t.reduce([e],n,Math.round(this._value*r))/r,this},multiply:function(e){function r(e,r,n,a){var i=t.correctionFactor(e,r);return Math.round(e*i)*Math.round(r*i)/Math.round(i*i)}return this._value=t.reduce([this._value,e],r,1),this},divide:function(e){function r(e,r,n,a){var i=t.correctionFactor(e,r);return Math.round(e*i)/Math.round(r*i)}return this._value=t.reduce([this._value,e],r),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,r,n){var a,i=e._.includes(r," BPS")?" ":"";return t*=1e4,r=r.replace(/\s?BPS/,""),a=e._.numberToFormat(t,r,n),e._.includes(a,")")?(a=a.split(""),a.splice(-1,0,i+"BPS"),a=a.join("")):a=a+i+"BPS",a},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}})}(),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},n=t.suffixes.concat(r.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))),a=n.join("|");a="("+a.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(a)},format:function(n,a,i){var o,s,l,c,u=e._.includes(a,"ib")?r:t,d=e._.includes(a," b")||e._.includes(a," ib")?" ":"";for(a=a.replace(/\s?i?b/,""),s=0;s<=u.suffixes.length;s++)if(l=Math.pow(u.base,s),c=Math.pow(u.base,s+1),null===n||0===n||n>=l&&n0&&(n/=l);break}return o=e._.numberToFormat(n,a,i),o+d},unformat:function(n){var a,i,o=e._.stringToNumber(n);if(o){for(a=t.suffixes.length-1;a>=0;a--){if(e._.includes(n,t.suffixes[a])){i=Math.pow(t.base,a);break}if(e._.includes(n,r.suffixes[a])){i=Math.pow(r.base,a);break}}o*=i||1}return o}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,r,n){var a,i,o,s=e.locales[e.options.currentLocale],l={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(r=r.replace(/\s?\$\s?/,""),a=e._.numberToFormat(t,r,n),t>=0?(l.before=l.before.replace(/[\-\(]/,""),l.after=l.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(l.before,"-")&&!e._.includes(l.before,"(")&&(l.before="-"+l.before),o=0;o=0;o--)switch(i=l.after[o],i){case"$":a=o===l.after.length-1?a+s.currency.symbol:e._.insert(a,s.currency.symbol,-(l.after.length-(1+o)));break;case" ":a=o===l.after.length-1?a+" ":e._.insert(a," ",-(l.after.length-(1+o)+s.currency.symbol.length-1));break}return a}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,r,n){var a,i="number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential(),o=i.split("e");return r=r.replace(/e[\+|\-]{1}0/,""),a=e._.numberToFormat(Number(o[0]),r,n),a+"e"+o[1]},unformat:function(t){var r=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),n=Number(r[0]),a=Number(r[1]);function i(t,r,n,a){var i=e._.correctionFactor(t,r),o=t*i*(r*i)/(i*i);return o}return a=e._.includes(t,"e-")?a*=-1:a,e._.reduce([n,Math.pow(10,a)],i,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,r,n){var a,i=e.locales[e.options.currentLocale],o=e._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),o+=i.ordinal(t),a=e._.numberToFormat(t,r,n),a+o}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,r,n){var a,i=e._.includes(r," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),r=r.replace(/\s?\%/,""),a=e._.numberToFormat(t,r,n),e._.includes(a,")")?(a=a.split(""),a.splice(-1,0,i+"%"),a=a.join("")):a=a+i+"%",a},unformat:function(t){var r=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*r:r}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),a=Math.floor((e-60*n*60)/60),i=Math.round(e-60*n*60-60*a);return n+":"+(a<10?"0"+a:a)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}})}(),e}))},"86eb":function(e,t,r){"use strict";var n=r("ff6f"),a=r.n(n);a.a},"8bbf":function(e,t){e.exports=r},c6eb:function(e,t,r){"use strict";(function(e){var n=r("5ea3"),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o&&n["a"].process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();t["a"]=l}).call(this,r("dd40")(e))},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},dd40:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},dff1:function(e,t,r){"use strict";(function(e){var n=r("26ee"),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?n["a"].Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(e,t){if(t)return e.slice();var r=e.length,n=l?l(r):new e.constructor(r);return e.copy(n),n}t["a"]=c}).call(this,r("dd40")(e))},f6fd:function(e,t){(function(e){var t="currentScript",r=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(n){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(e in r)if(r[e].src==t||"interactive"==r[e].readyState)return r[e];return null}}})})(document)},fb15:function(e,t,r){"use strict";var n;(r.r(t),"undefined"!==typeof window)&&(r("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1]));var a=r("3465"),i=r.n(a),o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ve-charts-parent",style:e.parentStyle},[e.isHasData?r("base-echarts",e._g({attrs:{"init-options":e.initOptions,options:e.options,autoResize:!0,theme:e.theme,"chart-height":e.height,ec:e.ec},on:{"update:ec":function(t){e.ec=t}}},e.$listeners)):e._e(),e.isHasData||e.loading?e._e():e._t("default",[r("empty-data",{attrs:{"empty-text":e.emptyText}})]),e.loading?r("loading-chart"):e._e()],2)},s=[];function l(e){return null===e}var c=l,u=Object.prototype;function d(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||u;return e===r}var f=d;function h(e,t){return function(r){return e(t(r))}}var p=h,m=p(Object.keys,Object),g=m,b=Object.prototype,y=b.hasOwnProperty;function v(e){if(!f(e))return g(e);var t=[];for(var r in Object(e))y.call(e,r)&&"constructor"!=r&&t.push(r);return t}var x=v,_=r("26ee"),w=_["a"].Symbol,A=w,S=Object.prototype,j=S.hasOwnProperty,L=S.toString,T=A?A.toStringTag:void 0;function O(e){var t=j.call(e,T),r=e[T];try{e[T]=void 0;var n=!0}catch(i){}var a=L.call(e);return n&&(t?e[T]=r:delete e[T]),a}var z=O,M=Object.prototype,k=M.toString;function C(e){return k.call(e)}var E=C,N="[object Null]",D="[object Undefined]",P=A?A.toStringTag:void 0;function B(e){return null==e?void 0===e?D:N:P&&P in Object(e)?z(e):E(e)}var F=B;function $(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var V=$,R="[object AsyncFunction]",H="[object Function]",I="[object GeneratorFunction]",U="[object Proxy]";function G(e){if(!V(e))return!1;var t=F(e);return t==H||t==I||t==R||t==U}var W=G,q=_["a"]["__core-js_shared__"],Y=q,J=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Z(e){return!!J&&J in e}var X=Z,K=Function.prototype,Q=K.toString;function ee(e){if(null!=e){try{return Q.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var te=ee,re=/[\\^$.*+?()[\]{}|]/g,ne=/^\[object .+?Constructor\]$/,ae=Function.prototype,ie=Object.prototype,oe=ae.toString,se=ie.hasOwnProperty,le=RegExp("^"+oe.call(se).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ce(e){if(!V(e)||X(e))return!1;var t=W(e)?le:ne;return t.test(te(e))}var ue=ce;function de(e,t){return null==e?void 0:e[t]}var fe=de;function he(e,t){var r=fe(e,t);return ue(r)?r:void 0}var pe=he,me=pe(_["a"],"DataView"),ge=me,be=pe(_["a"],"Map"),ye=be,ve=pe(_["a"],"Promise"),xe=ve,_e=pe(_["a"],"Set"),we=_e,Ae=pe(_["a"],"WeakMap"),Se=Ae,je="[object Map]",Le="[object Object]",Te="[object Promise]",Oe="[object Set]",ze="[object WeakMap]",Me="[object DataView]",ke=te(ge),Ce=te(ye),Ee=te(xe),Ne=te(we),De=te(Se),Pe=F;(ge&&Pe(new ge(new ArrayBuffer(1)))!=Me||ye&&Pe(new ye)!=je||xe&&Pe(xe.resolve())!=Te||we&&Pe(new we)!=Oe||Se&&Pe(new Se)!=ze)&&(Pe=function(e){var t=F(e),r=t==Le?e.constructor:void 0,n=r?te(r):"";if(n)switch(n){case ke:return Me;case Ce:return je;case Ee:return Te;case Ne:return Oe;case De:return ze}return t});var Be=Pe;function Fe(e){return null!=e&&"object"==typeof e}var $e=Fe,Ve="[object Arguments]";function Re(e){return $e(e)&&F(e)==Ve}var He=Re,Ie=Object.prototype,Ue=Ie.hasOwnProperty,Ge=Ie.propertyIsEnumerable,We=He(function(){return arguments}())?He:function(e){return $e(e)&&Ue.call(e,"callee")&&!Ge.call(e,"callee")},qe=We,Ye=Array.isArray,Je=Ye,Ze=9007199254740991;function Xe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ze}var Ke=Xe;function Qe(e){return null!=e&&Ke(e.length)&&!W(e)}var et=Qe,tt=r("58e0"),rt="[object Arguments]",nt="[object Array]",at="[object Boolean]",it="[object Date]",ot="[object Error]",st="[object Function]",lt="[object Map]",ct="[object Number]",ut="[object Object]",dt="[object RegExp]",ft="[object Set]",ht="[object String]",pt="[object WeakMap]",mt="[object ArrayBuffer]",gt="[object DataView]",bt="[object Float32Array]",yt="[object Float64Array]",vt="[object Int8Array]",xt="[object Int16Array]",_t="[object Int32Array]",wt="[object Uint8Array]",At="[object Uint8ClampedArray]",St="[object Uint16Array]",jt="[object Uint32Array]",Lt={};function Tt(e){return $e(e)&&Ke(e.length)&&!!Lt[F(e)]}Lt[bt]=Lt[yt]=Lt[vt]=Lt[xt]=Lt[_t]=Lt[wt]=Lt[At]=Lt[St]=Lt[jt]=!0,Lt[rt]=Lt[nt]=Lt[mt]=Lt[at]=Lt[gt]=Lt[it]=Lt[ot]=Lt[st]=Lt[lt]=Lt[ct]=Lt[ut]=Lt[dt]=Lt[ft]=Lt[ht]=Lt[pt]=!1;var Ot=Tt;function zt(e){return function(t){return e(t)}}var Mt=zt,kt=r("c6eb"),Ct=kt["a"]&&kt["a"].isTypedArray,Et=Ct?Mt(Ct):Ot,Nt=Et,Dt="[object Map]",Pt="[object Set]",Bt=Object.prototype,Ft=Bt.hasOwnProperty;function $t(e){if(null==e)return!0;if(et(e)&&(Je(e)||"string"==typeof e||"function"==typeof e.splice||Object(tt["a"])(e)||Nt(e)||qe(e)))return!e.length;var t=Be(e);if(t==Dt||t==Pt)return!e.size;if(f(e))return!x(e).length;for(var r in e)if(Ft.call(e,r))return!1;return!0}var Vt=$t;function Rt(e){return void 0===e}var Ht=Rt,It="[object Symbol]";function Ut(e){return"symbol"==typeof e||$e(e)&&F(e)==It}var Gt=Ut,Wt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qt=/^\w*$/;function Yt(e,t){if(Je(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Gt(e))||(qt.test(e)||!Wt.test(e)||null!=t&&e in Object(t))}var Jt=Yt,Zt=pe(Object,"create"),Xt=Zt;function Kt(){this.__data__=Xt?Xt(null):{},this.size=0}var Qt=Kt;function er(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tr=er,rr="__lodash_hash_undefined__",nr=Object.prototype,ar=nr.hasOwnProperty;function ir(e){var t=this.__data__;if(Xt){var r=t[e];return r===rr?void 0:r}return ar.call(t,e)?t[e]:void 0}var or=ir,sr=Object.prototype,lr=sr.hasOwnProperty;function cr(e){var t=this.__data__;return Xt?void 0!==t[e]:lr.call(t,e)}var ur=cr,dr="__lodash_hash_undefined__";function fr(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xt&&void 0===t?dr:t,this}var hr=fr;function pr(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t-1}var zr=Or;function Mr(e,t){var r=this.__data__,n=_r(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var kr=Mr;function Cr(e){var t=-1,r=null==e?0:e.length;this.clear();while(++t-1&&e%1==0&&e0){if(++t>=gs)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xs=vs,_s=xs(ms),ws=_s;function As(e,t){return ws(ds(e,t,os),e+"")}var Ss=As;function js(e,t,r){if(!V(r))return!1;var n=typeof t;return!!("number"==n?et(r)&&ta(t,r.length):"string"==n&&t in r)&&vr(r[t],e)}var Ls=js;function Ts(e){return Ss((function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&Ls(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);while(++n{if(isNaN(+e))return e;let r=[{value:1e8,symbol:"亿"},{value:1e4,symbol:"万"},{value:1e3,symbol:"千"}];for(let a=0;a=r[a].value)return e/r[a].value+n+r[a].symbol;return e.toString()};return o(e,i)},unformat:function(e){return.01*gl.a._.stringToNumber(e)}});const bl=e=>{const t={};return Object.keys(e).forEach(r=>{e[r].forEach(e=>{t[e]=r})}),t},yl=e=>new Promise((t,r)=>{const n=new XMLHttpRequest;n.open("GET",e),n.send(null),n.onload=()=>{t(JSON.parse(n.responseText))},n.onerror=()=>{r(JSON.parse(n.responseText))}}),vl=({mapName:e,mapUrlPrefix:t})=>{const r=`${t}${e}.json`;return yl(r)},xl=e=>Object.prototype.toString.call(e),_l=(e,t,r)=>{const n=No(e),a=n&&n.dimensions&&n.dimensions.name,i=n&&n.dimensions&&n.dimensions.data,{isEmptyData:o,chartType:s}=r,l=t&&t.stack||null,c=t&&t.percentage||!1;if(!o&&void 0===i)return void Cs.a.util.warn("data.dimensions.data is required. Please check on you data",void 0);let u=`${a}`,d=i.length>0&&i[0],f=Al(d)&&"pie"===s?i.map((e,t)=>0===t?`${e}`:e):i;const h={[u]:f};let[p,m]=[{},[]];if(l&&c&&n.measures.length>0){const e=n.measures.map(e=>e.data),t=$s(...e);m=t.map(e=>{const t=e.map(e=>Al(e)?e:parseFloat(e,10));return Is(t)})}n.measures.map(e=>{const t=Al(e.name),r=t?`${e.name} `:e.name;Object.assign(p,{[r]:l&&c?e.data.map((e,t)=>cl(e/m[t],4)):e.data})});let g=[];const b=Ht(a)?"dimension":a;g.push(b),g=[...g,...n.measures.map(e=>e.name)];const y=Object.assign({},h,p),v={dimensions:g,source:y};return v},wl=(e,t,r=0)=>{const n=(e,t,r)=>{const n=r>0?`0.${"0".repeat(r)}`:"0",a=r>0?`0,0.${"0".repeat(r)}`:"0,0";switch(e){case"currency":return gl()(t).format(a);case"en":return gl()(t).format(`${n} a`);case"zh":return gl()(t).format(`${n} zh`);case"percentage":return gl()(t).format(`${n}%`);default:return t}};return n(e,t,r)},Al=e=>!pl(parseFloat(e))&&isFinite(e)&&Number(e)===e,Sl={grid:{right:10,bottom:10,left:10,containLabel:!0},series:[]},jl=["#5282e4","#40b17e","#ffd600","#f88d48","#2ebce2","#f35352","#ce62d6","#8954d4","#5257b8","#d42d6b"],Ll=[{itemStyle:{borderColor:"#fff"}},{colorSaturation:[.3,.6],itemStyle:{borderColorSaturation:.7,gapWidth:5,borderWidth:2}},{colorSaturation:[.3,.5],itemStyle:{borderColorSaturation:.6}},{colorSaturation:[.3,.5]}],Tl={secondaryMeasure:{barBorderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)",emphasis:{barBorderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}}},Ol="https://unpkg.com/echarts@4.1.0/map/json/";var zl=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"echarts",style:e.echartsStyle})},Ml=[],kl=function(){return _["a"].Date.now()},Cl=kl,El="Expected a function",Nl=Math.max,Dl=Math.min;function Pl(e,t,r){var n,a,i,o,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError(El);function h(t){var r=n,i=a;return n=a=void 0,c=t,o=e.apply(i,r),o}function p(e){return c=e,s=setTimeout(b,t),u?h(e):o}function m(e){var r=e-l,n=e-c,a=t-r;return d?Dl(a,i-n):a}function g(e){var r=e-l,n=e-c;return void 0===l||r>=t||r<0||d&&n>=i}function b(){var e=Cl();if(g(e))return y(e);s=setTimeout(b,m(e))}function y(e){return s=void 0,f&&n?h(e):(n=a=void 0,o)}function v(){void 0!==s&&clearTimeout(s),c=0,n=l=a=s=void 0}function x(){return void 0===s?o:y(Cl())}function _(){var e=Cl(),r=g(e);if(n=arguments,a=this,l=e,r){if(void 0===s)return p(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return void 0===s&&(s=setTimeout(b,t)),o}return t=Xs(t)||0,V(r)&&(u=!!r.leading,d="maxWait"in r,i=d?Nl(Xs(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f),_.cancel=v,_.flush=x,_}var Bl=Pl;let Fl=null;function $l(e){return Fl||(Fl=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),Fl(e)}let Vl=null;function Rl(e){Vl||(Vl=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),Vl(e)}function Hl(e){var t=document.createElement("style");return t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function Il(e,t={}){let r=document.createElement(e);return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}function Ul(e,t,r){let n=window.getComputedStyle(e,r||null)||{display:"none"};return n[t]}function Gl(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};let t=e;while(t!==document){if("none"===Ul(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var Wl='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}';let ql=0,Yl=null;function Jl(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=Kl.bind(e));let r=e.__resize_listeners__;if(!r)if(e.__resize_listeners__=[],window.ResizeObserver){let{offsetWidth:t,offsetHeight:r}=e,n=new ResizeObserver(()=>{(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==t||e.offsetHeight!==r))&&ec(e)}),{detached:a,rendered:i}=Gl(e);e.__resize_observer_triggered__=!1===a&&!1===i,e.__resize_observer__=n,n.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){ec(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(ql||(Yl=Hl(Wl)),tc(e),e.__resize_rendered__=Gl(e).rendered,window.MutationObserver){let t=new MutationObserver(e.__resize_mutation_handler__);t.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=t}e.__resize_listeners__.push(t),ql++}function Zl(e,t){let r=e.__resize_listeners__;if(r){if(t&&r.splice(r.indexOf(t),1),!r.length||!t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",Ql),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--ql&&Yl&&Yl.parentNode.removeChild(Yl)}}function Xl(e){let{width:t,height:r}=e.__resize_last__,{offsetWidth:n,offsetHeight:a}=e;return n!==t||a!==r?{width:n,height:a}:null}function Kl(){let{rendered:e,detached:t}=Gl(this);e!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(rc(this),this.addEventListener("scroll",Ql,!0)),this.__resize_rendered__=e,ec(this))}function Ql(){rc(this),this.__resize_raf__&&Rl(this.__resize_raf__),this.__resize_raf__=$l(()=>{let e=Xl(this);e&&(this.__resize_last__=e,ec(this))})}function ec(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach(t=>{t.call(e,e)})}function tc(e){let t=Ul(e,"position");t&&"static"!==t||(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};let r=Il("div",{className:"resize-triggers"}),n=Il("div",{className:"resize-expand-trigger"}),a=Il("div"),i=Il("div",{className:"resize-contract-trigger"});n.appendChild(a),r.appendChild(n),r.appendChild(i),e.appendChild(r),e.__resize_triggers__={triggers:r,expand:n,expandChild:a,contract:i},rc(e),e.addEventListener("scroll",Ql,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function rc(e){let{expand:t,expandChild:r,contract:n}=e.__resize_triggers__,{scrollWidth:a,scrollHeight:i}=n,{offsetWidth:o,offsetHeight:s,scrollWidth:l,scrollHeight:c}=t;n.scrollLeft=a,n.scrollTop=i,r.style.width=o+1+"px",r.style.height=s+1+"px",t.scrollLeft=l,t.scrollTop=c}r("1523");const nc=["legendselectchanged","legendselected","legendunselected","legendscroll","datazoom","datarangeselected","timelinechanged","timelineplaychanged","restore","dataviewchanged","magictypechanged","geoselectchanged","geoselected","geounselected","pieselectchanged","pieselected","pieunselected","mapselectchanged","mapselected","mapunselected","axisareaselected","focusnodeadjacency","unfocusnodeadjacency","brush","brushselected","globalcursortaken","rendered","finished","click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout","contextmenu"];var ac={props:{options:Object,theme:[String,Object],initOptions:Object,group:String,autoResize:Boolean,watchShallow:Boolean,chartHeight:{type:Number,default:400}},data(){return{chart:null}},computed:{width:{cache:!1,get(){return this.delegateGet("width","getWidth")}},height:{cache:!1,get(){return this.delegateGet("height","getHeight")}},isDisposed:{cache:!1,get(){return!!this.delegateGet("isDisposed","isDisposed")}},computedOptions:{cache:!1,get(){return this.delegateGet("computedOptions","getOption")}},echartsStyle(){return{width:"auto",height:`${this.chartHeight}px`}}},watch:{group(e){this.chart.group=e}},methods:{mergeOptions(e,t,r){this.delegateMethod("setOption",e,t,r)},appendData(e){this.delegateMethod("appendData",e)},resize(e){this.delegateMethod("resize",e)},dispatchAction(e){this.delegateMethod("dispatchAction",e)},convertToPixel(e,t){return this.delegateMethod("convertToPixel",e,t)},convertFromPixel(e,t){return this.delegateMethod("convertFromPixel",e,t)},containPixel(e,t){return this.delegateMethod("containPixel",e,t)},showLoading(e,t){this.delegateMethod("showLoading",e,t)},hideLoading(){this.delegateMethod("hideLoading")},getDataURL(e){return this.delegateMethod("getDataURL",e)},getConnectedDataURL(e){return this.delegateMethod("getConnectedDataURL",e)},clear(){this.delegateMethod("clear")},dispose(){this.delegateMethod("dispose")},delegateMethod(e,...t){if(this.chart)return this.chart[e](...t);Cs.a.util.warn(`Cannot call [${e}] before the chart is initialized. Set prop [options] first.`,this)},delegateGet(e,t){return this.chart||Cs.a.util.warn(`Cannot get [${e}] before the chart is initialized. Set prop [options] first.`,this),this.chart[t]()},init(){if(this.chart)return;let e=i.a.init(this.$el,this.theme,this.initOptions);this.group&&(e.group=this.group),e.setOption(this.options,!0),e.getZr().on("click",e=>!e.target&&this.$emit("blankClick",e)),nc.forEach(t=>{e.on(t,e=>{this.$emit(t,e)})}),this.autoResize&&(this.__resizeHanlder=Bl(()=>{e.resize()},100,{leading:!0}),Jl(this.$el,this.__resizeHanlder)),this.chart=e,this.$emit("update:ec",e)},destroy(){this.autoResize&&Zl(this.$el,this.__resizeHanlder),this.dispose(),this.chart=null},refresh(){this.destroy(),this.init()}},created(){this.$watch("options",e=>{!this.chart&&e?this.init():this.chart.setOption(this.options,!0)},{deep:!this.watchShallow});let e=["theme","initOptions","autoResize","watchShallow"];e.forEach(e=>{this.$watch(e,()=>{this.refresh()},{deep:!0})})},mounted(){this.options&&this.init()},activated(){this.autoResize&&this.chart&&this.chart.resize()},beforeDestroy(){this.chart&&this.destroy()},connect(e){"string"!==typeof e&&(e=e.map(e=>e.chart)),i.a.connect(e)},disconnect(e){i.a.disConnect(e)},registerMap(e,t,r){i.a.registerMap(e,t,r)},registerTheme(e,t){i.a.registerTheme(e,t)},graphic:i.a.graphic},ic=ac;r("46e2");function oc(e,t,r,n,a,i,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var sc=oc(ic,zl,Ml,!1,null,null,null),lc=sc.exports,cc=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ve-charts-empty-data"},[r("span",{domProps:{textContent:e._s(e.emptyText)}})])},uc=[],dc={name:"EchartsEmptyData",props:{emptyText:{type:String,default:"暂无数据"}}},fc=dc,hc=(r("86eb"),oc(fc,cc,uc,!1,null,null,null)),pc=hc.exports,mc=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ve-charts-loading-mask"},[r("div",{staticClass:"loading-spinner"},[r("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[r("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])])])},gc=[],bc=(r("137f"),{}),yc=oc(bc,mc,gc,!1,null,null,null),vc=yc.exports,xc={components:{BaseEcharts:lc,EmptyData:pc,LoadingChart:vc},props:{data:{type:[Object,Array],default(){return{}}},settings:{type:[Object,Array],default(){return{}}},title:Object,legend:Object,grid:Object,xAxis:[Object,Array],yAxis:[Object,Array],polar:Object,radiusAxis:Object,angleAxis:Object,radar:[Object,Array],dataZoom:[Object,Array],visualMap:[Object,Array],tooltip:Object,axisPointer:Object,toolbox:Object,brush:Object,geo:Object,parallel:Object,parallelAxis:Array,singleAxis:Array,timeline:Object,graphic:Object,calendar:Object,dataset:Object,series:[Object,Array],color:Array,backgroundColor:[Object,String],textStyle:Object,animation:Object,animationThreshold:Number,animationDuration:[Number,Function],animationEasing:[String,Function],animationDelay:[Number,Function],animationDurationUpdate:[Number,Function],animationEasingUpdate:[String,Function],animationDelayUpdate:[String,Function],blendMode:String,hoverLayerThreshold:Number,useUTC:{type:Boolean,default:!1},tooltipVisible:{type:Boolean,default:!0},legendVisible:{type:Boolean,default:!0},tickMarkVisible:{type:Boolean,default:!1},legendPosition:String,theme:[String,Object],loading:{type:Boolean,default:!1},emptyText:String,renderer:{type:String,default:"canvas"},height:{type:Number,default:400},seriesOption:{type:Object,default(){return{}}}},data(){return{ec:null,initOptions:null}},computed:{chartColor(){return this.theme?this.color:this.color||jl},isEmptyData(){if(c(this.data)||Vt(this.data)||Ht(this.data))return!0;if(Array.isArray(this.data))return!1;{const e=Sn(this.data,"measures");return 0===e.length}},isEmptySeries(){return c(this.series)||Vt(this.series)||Ht(this.series)},isHasData(){return!this.isEmptyData||!this.isEmptySeries},isHasParentStyle(){return this.loading||this.isEmptyData&&this.isEmptySeries},parentStyle(){const e=this.isHasParentStyle?{position:"relative",height:`${this.height}px`}:{};return e}},watch:{data:{deep:!0,handler(e){e&&this.dataHandler(e)}},settings:{deep:!0,handler(e){this.dataHandler(this.data)}},ec(e){this.$emit("update:ec",e)}},methods:{dataHandler(e){if(!this.chartHandler||this.isEmptyData&&this.isEmptySeries)return;const t={tooltipVisible:this.tooltipVisible,legendVisible:this.legendVisible,isEmptyData:this.isEmptyData,isEmptySeries:this.isEmptySeries,tickMarkVisible:this.tickMarkVisible,_once:this._once};this.beforeConfig&&(e=this.beforeConfig(e));const r=this.chartHandler(e,No(this.settings),t);r&&("function"===typeof r.then?r.then(this.optionsHandler):this.optionsHandler(r))},optionsHandler(e){if(e.color=this.chartColor,this.legendPosition&&e.legend){const t=this.legendPosition.split("-").shift();e.legend.left=this.legendPosition.split("-").pop(),-1!==["top"].indexOf(t)&&(e.legend.top=0),-1!==["bottom"].indexOf(t)&&(e.legend.bottom=0)}const t=["title","legend","grid","xAxis","yAxis","polar","radiusAxis","angleAxis","radar","dataZoom","visualMap","tooltip","axisPointer","toolbox","brush","geo","parallel","parallelAxis","singleAxis","timeline","graphic","calendar","dataset","series","color","backgroundColor","textStyle","animation","animationThreshold","animationDuration","animationEasing","animationDelay","animationDurationUpdate","animationEasingUpdate","animationDelayUpdate","blendMode","hoverLayerThreshold","useUTC"];t.forEach(t=>{this[t]&&(e[t]=this[t])}),this.animation&&Object.keys(this.animation).forEach(t=>{e[t]=this.animation[t]}),e.series=this.seriesHandler(e.series),this.options=Object.assign(No(this.options),e)},seriesHandler(e){if(Array.isArray(e)&&0===e.length)return[];if(!(e instanceof Array))return[e];if(0===Object.keys(this.seriesOption).length)return e;for(const[t,r]of Object.entries(this.seriesOption)){const n=e.findIndex(e=>e.name===t);n>-1?Ms(e[n],r):r.type&&(e[e.length]=r)}return e},init(){this.data&&this.dataHandler(this.data)},addWatchToProps(){const e=this._watchers.map(e=>e.expression);Object.keys(this.$props).forEach(t=>{if(!~e.indexOf(t)){const e={};"[object Object]"===xl(t)&&(e.deep=!0),this.$watch(t,()=>{this.dataHandler(this.data)},e)}})}},created(){this.initOptions={renderer:this.renderer},this._once={},this.addWatchToProps()},mounted(){this.init()}},_c={mixins:[xc],data(){return{options:Sl,initOptions:{renderer:"canvas"}}}},wc=_c,Ac=oc(wc,o,s,!1,null,null,null),Sc=Ac.exports;class jc{constructor(e,t,r){this.data=e,this.settings=t,this.extra=r}chartHandler(){}}var Lc=jc;class Tc extends Lc{static getBarTooltip(e){const{tooltipOptions:t}=e;return{trigger:"axis",axisPointer:{type:"shadow"},...t}}static getBarLegend(e,t){const{measures:r}=e,{legendType:n,legendPadding:a,waterfall:i,legendOptions:o}=t;let s={type:n||"plain",padding:a||5,...o};return i&&!0===i&&(s["data"]=r.filter(({name:e})=>{if("secondaryMeasure"!==e)return e})),s}static getBarGrid(e){const t={right:30,bottom:10,left:30,containLabel:!0};return e?t:Sl.grid}static getBarDimAxis(e){const{dimAxisType:t,dimAxisLineShow:r,dimAxisLabelShow:n,dimAxisLabelColor:a,xAxisName:i,xAxisSplitLine:o,dimAxisLabelRotate:s,dimAxisPointerType:l}=e,c={type:t,axisLine:{show:Array.isArray(r)?r[0]:r},axisTick:{show:!1},axisLabel:{show:Array.isArray(n)?n[0]:n,margin:10,fontWeight:400,color:Array.isArray(a)?a[0]:a,rotate:s},axisPointer:{show:!0,type:l}};i&&(c.name=i),o&&(c.splitLine=o);const u=[];return u.push(c),u}static getBarMeaAxis(e,t){const{meaAxisType:r,meaAxisDigits:n,meaAxisLineShow:a,meaAxisLabelShow:i,meaAxisLabelColor:o,meaAxisLabelRotate:s,yAxisScale:l=!1,percentage:c=!1,yAxisName:u,yAxisInterval:d,yAxisMax:f,yAxisMin:h}=t,p={type:"value",scale:l,axisTick:{show:!1},min:c?0:null,max:c?1:null},m=[];return r.forEach((e,t)=>{const r={show:Array.isArray(i)?i[t]:i,margin:10,fontWeight:400,color:Array.isArray(o)?o[t]:o,rotate:s};if("normal"!==e)if(Je(n)){let a=Ht(n[t])?0:n[t];r.formatter=t=>wl(e,t,a)}else r.formatter=t=>wl(e,t,n);const l={show:Array.isArray(a)?a[t]:a},g={...p,axisLabel:r,axisLine:l};u&&u.length&&(g["name"]=u[t]),d&&d.length&&d[t]&&(g["interval"]=Number(d[t])),!1===c&&f&&f.length&&(g["max"]=f[t]),!1===c&&h&&h.length&&(g["min"]=h[t]),m.push(g)}),m}static getBarLabel(e,t){const{position:r=(t?"right":"top"),formatType:n="currency",formatDigits:a=0,...i}=e,o=e=>{const{value:t,seriesIndex:r}=e;return t.shift(),wl(n,t[r],a)};return{position:r,formatter:o,...i}}static getBarSeries(e,t,r){const{measures:n}=e,{label:a={},showLine:i=[],stack:o=null,secondMeaAxis:s=[],itemStyle:l={},waterfall:c,markLine:u=null,markArea:d=null,...f}=t,h=r?"xAxisIndex":"yAxisIndex",p=[],m=o&&bl(o);return(u||d)&&p.push({type:"bar",name:"",data:[],markLine:u,markArea:d}),n.forEach(({name:e})=>{let t={};a instanceof Array?(t=a.filter(t=>t.name===e)[0],void 0===t&&(t={})):t=a;const n=i.includes(e)?"line":"bar",u={type:n,name:e,label:Tc.getBarLabel(t,r),stack:o&&m[e],[h]:s.includes(e)?"1":"0",itemStyle:l[e]?l[e]:{},...f};c&&!0===c&&"secondaryMeasure"===e&&(u["itemStyle"]=Tl[e]),p.push(u)}),p}bar(e,t,r){const{tooltipVisible:n,legendVisible:a,isEmptyData:i}=r,{direction:o="column",secondMeaAxis:s=null,yAxisLabelType:l,yAxisLabelDigits:c=0,yAxisName:u,yAxisLabelShow:d=[!0,!0],yAxisLineShow:f=[!0,!0],yAxisLabelColor:h=[null,null],xAxisLabelType:p,xAxisLabelDigits:m=0,xAxisName:g,xAxisLabelShow:b=!0,xAxisLineShow:y=!0,xAxisLabelColor:v=null,xAxisLabelRotate:x=0,yAxisLabelRotate:_=0,xAxisPointerType:w,yAxisPointerType:A}=t,S="column"!==o&&"row"===o,j=null!==s?["normal","normal"]:["normal"];t.meaAxisType=(S?p:l)||j,t.meaAxisDigits=S?m:c,t.meaAxisName=(S?g:u)||[],t.meaAxisLabelShow=S?b:d,t.meaAxisLineShow=S?y:f,t.meaAxisLabelColor=S?v:h,t.meaAxisLabelRotate=S?x:_,t.dimAxisType=(S?l:p)||"category",t.dimAxisDigits=S?c:m,t.dimAxisName=(S?u:g)||"",t.dimAxisLabelShow=S?d:b,t.dimAxisLineShow=S?f:y,t.dimAxisLabelColor=S?h:v,t.dimAxisLabelRotate=S?_:x,t.dimAxisPointerType=S?A:w,j.length>t.meaAxisType.length&&(t.meaAxisType=j.fill(t.meaAxisType[0])),r.chartType="bar";const L=!i&&_l(e,t,r),T=n&&Tc.getBarTooltip(t),O=a&&Tc.getBarLegend(e,t),z=Tc.getBarGrid(S),M=S?Tc.getBarMeaAxis(e,t):Tc.getBarDimAxis(t),k=S?Tc.getBarDimAxis(t):Tc.getBarMeaAxis(e,t),C=Tc.getBarSeries(e,t,S),{yAxisInverse:E,xAxisInverse:N}=t;void 0!==E&&k.forEach((e,t)=>{e.inverse=Array.isArray(E)?E[t]:E}),void 0!==N&&M.forEach(e=>{e.inverse=N});const D={grid:z,dataset:L,tooltip:T,legend:O,xAxis:M,yAxis:k,series:C};return D}}var Oc=Tc,zc={name:"VeBarChart",mixins:[Sc],created(){this.chartHandler=(new Oc).bar}};class Mc extends Lc{static getPieDataset(e,t,r){const n=[];if(r.chartType="pie",e.length&&1!==e.length){if(e.length>1)for(let a of e)n.push(_l(a,t,r))}else n.push(_l(e,t,r));return n}static getPieTooltip(e){return{trigger:"item"}}static getPieLegend(e){const{data:t,settings:r}=e;let n;n=Array.isArray(t)&&t.length>0?t[0].dimensions:t.dimensions;const{legendType:a="plain",legendPadding:i=5,legendSelected:o=n.data.length}=r,s=e=>{let t={};const r=n.data.slice(e);for(let n of r)t[n]=!1;return t};return{type:a,padding:i,selected:s(o)}}static getPieSeries(e){const{data:t,settings:r,isDonut:n}=e;let a=[];if(void 0===t.length)a=this.handleData(t,r,n);else if(1===t.length)a=this.handleData(t[0],r,n);else if(2===t.length)for(let i in t)a.push(this.handleData(t[i],r[i],n,i)[0]);return a}static handleData(e,t,r,n=0){const a=[],{measures:i}=e,{offsetY:o,radius:s=(r?["50%","70%"]:[0,"75%"]),selectedMode:l=!1,...c}=t;return i.forEach(({name:e,data:t},r)=>{a.push({type:"pie",name:e,selectedMode:l,center:o?["50%",o]:["50%","50%"],radius:s,datasetIndex:n,...c})}),a}static chartHandler(e,t,r,n=!1){const{tooltipVisible:a,legendVisible:i}=r,o=Mc.getPieDataset(e,t,r),s=a&&Mc.getPieTooltip(),l=i&&Mc.getPieLegend({data:e,settings:t}),c=Mc.getPieSeries({data:e,settings:t,isDonut:n}),u={dataset:o,tooltip:s,legend:l,series:c};return u}pie(e,t,r){return Mc.chartHandler(e,t,r,!1)}donut(e,t,r){return Mc.chartHandler(e,t,r,!0)}}var kc=Mc,Cc={name:"VeDonutChart",mixins:[Sc],created(){this.chartHandler=(new kc).donut}};function Ec(e,t,r){var n=-1,a=e.length;while(++nt}var Vc=$c;function Rc(e){return e&&e.length?Nc(e,os,Vc):void 0}var Hc=Rc;class Ic extends Lc{static getFunnelTooltip(e){return{trigger:"item"}}static getFunnelLegend(e){const{settings:t}=e,{legendType:r="plain",legendPadding:n=5}=t;return{type:r,padding:n}}static getFunnelSeries(e){const{data:t,settings:r}=e,{dimensions:n,measures:a}=t,i=n&&`${n.name}`,{funnelSort:o="desc",funnelAlign:s="center",contrast:l=!1,symmetric:c=!1,labelPosition:u="outside",funnelLabel:d,...f}=r,h=e=>{if(e.length>2)return void Cs.a.util.warn("data.measures.length is more then 2 in [Contrastive funnel chart]. Please use 2 measures",this);let t="";if(e.length>1){const r=e.reduce((e,t)=>cl(Fc([Hc(e.data),Hc(t.data)])/Hc([Hc(e.data),Hc(t.data)]),2));t=`${100*r}%`}return t},p=(e,t)=>e?0===t?"10%":"50%":"10%",m=(e,t)=>e?0===t?"right":"left":s,g=(e,t)=>{const{contrast:r,symmetric:n,funnelLabel:i}=e;if(i)return Array.isArray(i)?i[t]:i;let o={position:u};if(r){const e={position:"inside",formatter:e=>{const t=a.reduce((e,t)=>Hc([Hc(e.data),Hc(t.data)])),[,,r]=e.value;return`${Math.round(r/t*100,2)}%`},emphasis:{position:"inside",formatter:e=>{const t=a.reduce((e,t)=>Hc([Hc(e.data),Hc(t.data)])),[r,,n]=e.value;return`${r} ${Math.round(n/t*100,2)}%`}}};o=0===t?o:e}if(n){const e={position:"outside"!==u?u:"left"},r={position:"outside"!==u?u:"right"};o=0===t?e:r}return o},b=(e,t)=>({itemName:e,value:t}),y=[];return a.forEach(({name:e,data:t},r)=>{y.push({type:"funnel",name:e,sort:"desc"===o?"descending":"ascending",funnelAlign:m(c,r),width:c?"40%":"80%",x:p(c,r),maxSize:l&&0!==r?h(a):"100%",label:g({contrast:l,symmetric:c,funnelLabel:d},r),encode:b(i,e),...f})}),y}funnel(e,t,r){const{tooltipVisible:n,legendVisible:a}=r;r.chartType="funnel";const i=_l(e,t,r),o=n&&Ic.getFunnelTooltip(),s=a&&Ic.getFunnelLegend({settings:t}),l=Ic.getFunnelSeries({data:e,settings:t}),c={dataset:i,tooltip:o,legend:s,series:l};return c}}var Uc=Ic,Gc={name:"VeFunnelChart",mixins:[Sc],created(){this.chartHandler=(new Uc).funnel}};class Wc extends Lc{static getGaugeTooltip(){return{trigger:"item"}}static getGaugeSeries(e){const{data:t,settings:r}=e,{name:n,data:a}=t&&t.measures&&t.measures[0],{min:i=0,max:o=100,offsetY:s,radius:l="75%",...c}=r;return[{name:n,type:"gauge",min:i,max:o,center:s?["50%",s]:["50%","50%"],radius:l,data:a,...c}]}gauge(e,t,r){const{tooltipVisible:n}=r,a=n&&Wc.getGaugeTooltip(),i=Wc.getGaugeSeries({data:e,settings:t}),o={tooltip:a,series:i};return o}}var qc=Wc,Yc={name:"VeGaugeChart",mixins:[Sc],created(){this.chartHandler=(new qc).gauge}},Jc=sl("ceil"),Zc=Jc,Xc=sl("floor"),Kc=Xc,Qc=r("0e45"),eu=r("274d"),tu=r("2814");class ru extends Lc{static convertCityName(e){return isNaN(1*e)?e:tu[e]}static convertCoord(e){return Qc[e]||eu[e]}static convertCityData(e,t){const{index:r,connect:n}=t,a=n?n.dataIndex:-1,i=n?n.seriesIndex:-1,o=n?n.symbolSize:10,s=n?n.normalShadowBlur:0,l=[];for(let c=0;c{const r=t.map(e=>parseInt(e.value));return O=[...O,...r],[Math.min(...r),Math.max(...r)]});return l?(T=Math.min(...O),L=Math.max(...O)):(T=z.reduce((e,t)=>e+t[0],0),L=z.reduce((e,t)=>e+t[1],0)),n&&n.forEach(({name:e,data:t},r)=>{const n=s?t:l?ru.convertLinesData(e,t):ru.convertCityData(t,{index:r,connect:w}),L={show:!1,emphasis:{show:!1}};l?(e=ru.convertCityName(e),j.push({name:e,type:"lines",zlevel:1,effect:{show:m,period:5,trailLength:0,color:"#fff",symbolSize:3,...g},lineStyle:{width:0,curveness:_&&_.curveness||.2},data:n},{name:e,type:"lines",zlevel:2,effect:{show:b,period:5,trailLength:.4,symbol:"arrow",symbolSize:6,...y},lineStyle:{color:"#ED3574",width:1,opacity:.6,curveness:.2,..._},data:n},{name:e,type:"effectScatter",coordinateSystem:"geo",zlevel:2,showEffectOn:"render",rippleEffect:{brushType:"stroke"},label:v?{show:!0,formatter:"{b}",...x.normal,emphasis:{...x.emphasis}}:L,symbolSize:f,itemStyle:A?{color:A}:{},data:ru.convertEffectScatterData(t)},{name:e,type:"effectScatter",coordinateSystem:"geo",zlevel:3,showEffectOn:"render",rippleEffect:{brushType:"stroke"},label:v?{show:!0,formatter:"{b}",...x.normal,emphasis:{...x.emphasis}}:L,symbolSize:f,itemStyle:A?{color:A}:{},data:[{name:e,value:ru.convertCoord(e)}]})):(j[r]={name:e,type:a,roam:h,visualMap:u,label:o?d:L,selectedMode:"single",mapType:i,data:n,zoom:p},c&&(j[r].itemStyle=c),s||(j[r]={...j[r],coordinateSystem:"geo",label:L,symbolSize:f,showEffectOn:"render",rippleEffect:{brushType:"stroke"},itemStyle:A?{color:A}:{}})),S.push(e)}),{legendData:S,seriesData:j,max:Zc(L,-2),min:Kc(T,-2)}}static getGeoTooltip(e,t){const r=function(e){const{seriesName:r,name:n,value:a,marker:i,seriesType:o,data:s}=e,l=Array.isArray(a)?a[2]:a;if(t){const{fromName:e,toName:t,name:r}=s;return"effectScatter"===o?`${r}`:"lines"===o?`${e} -> ${t}
${l}`:`${t}`}return`${r}
${i}${n}: ${l}`};return e?{trigger:"item"}:{trigger:"item",formatter:r}}static getGeoLegend(e){const{legendData:t,settings:r}=e,{legendType:n="plain",legendPadding:a=5}=r;return{type:n,padding:a,data:t}}static getGeo(e){const{labelVisible:t=!1,label:r,itemStyle:n,silent:a=!1,zoom:i=1,roam:o=!1,mapName:s="china"}=e.settings,l={show:!1,emphasis:{show:!1}},c={map:s,silent:a,roam:o,selectedMode:"single",label:t?r:l,zoom:i};return n&&(c.itemStyle=n),c}static getVisualMap(e){const{min:t=0,max:r=200,settings:n}=e,{visualMap:a}=n;return{min:t,max:r,left:"left",top:"bottom",show:!0,calculable:!0,...a}}static async registerMap(e){const{mapName:t="china",specialAreas:r,mapUrlPrefix:n=Ol,_once:a}=e;let o={};return a[t]||(o=await vl({mapName:t,mapUrlPrefix:n}),Object.assign(a,{[t]:!0}),i.a.registerMap(t,o,r)),o}async geo(e,t,r){const{tooltipVisible:n,legendVisible:a,_once:i}=r,{mode:o="map",visualMapVisible:s=!1}=t,l="map"===o,c="lines"===o;t.isMapMode=l,t.isLinesMode=c;const{legendData:u,seriesData:d,min:f,max:h}=ru.getGeoData({data:e,settings:t}),p=n&&ru.getGeoTooltip(l,c),m=a&&ru.getGeoLegend({legendData:u,settings:t}),g=!l&&ru.getGeo({data:e,settings:t}),b=s&&ru.getVisualMap({min:f,max:h,settings:t}),y={tooltip:p,legend:m,visualMap:b,geo:g,series:d},v={mapName:t.mapName,specialAreas:t.specialAreas,mapUrlPrefix:t.mapUrlPrefix,_once:i};return await ru.registerMap(v),y}}var nu=ru,au={name:"VeGeoChart",mixins:[Sc],created(){this.chartHandler=(new nu).geo}};class iu extends Lc{static getLineTooltip(e){const{tooltipOptions:t}=e;return{trigger:"axis",...t}}static getLineLegend(e){const{legendType:t="plain",legendPadding:r=5,legendOptions:n}=e;return{type:t,padding:r,...n}}static getLineDimAxis({settings:e}){const{yAxisType:t,xAxisLabelShow:r=!0,xAxisLineShow:n=!0,xAxisLabelColor:a,xAxisInverse:i=!1,xAxisName:o,xAxisSplitLine:s}=e,l=t||"category";return{type:l,boundaryGap:!1,axisLine:{show:n},axisTick:{show:!1},axisLabel:{show:r,margin:10,fontWeight:400,color:a||null},inverse:i,name:void 0!==o?o:null,splitLine:void 0!==s?s:null}}static getLineMeaAxis(e){const{settings:t}=e,{yAxisScale:r,yAxisLabelType:n,yAxisLabelDigits:a,yAxisName:i,yAxisInterval:o,yAxisMax:s,yAxisMin:l,yAxisInverse:c,percentage:u=!1,yAxisLabelShow:d=!0,yAxisLineShow:f=!0,yAxisLabelColor:h}=t;let p={type:"value",scale:r,axisLine:{show:f},axisTick:{show:!1},axisLabel:{show:d,margin:10,fontWeight:400,color:h||null,formatter:e=>wl(n,e,a)},min:u?0:null,max:u?1:null};return i&&(p["name"]=i),o&&(p["interval"]=Number(o)),s&&(p["max"]=s),l&&(p["min"]=l),void 0!==c&&(p["inverse"]=c),p}static getLineLabel(e){const{position:t="top",formatType:r="currency",formatDigits:n=0,...a}=e,i=e=>{const{value:t,seriesIndex:a}=e;return t.shift(),wl(r,t[a],n)};return{position:t,formatter:i,...a}}static getLineSeries(e){const{data:t,settings:r}=e,{measures:n}=t,{label:a={},showSymbol:i=!0,smooth:o=!1,stack:s=null,step:l=null,symbol:c="emptyCircle",symbolSize:u=4,itemStyle:d={},markLine:f=null,markArea:h=null,...p}=r,m=[],g=s&&bl(s);return(f||h)&&m.push({type:"line",markLine:f,markArea:h}),n.forEach(({name:e,data:t},r)=>{m.push({type:"line",name:e,label:this.getLineLabel(a),showSymbol:i,smooth:o,stack:s&&g[e],step:l,symbol:c,symbolSize:u,itemStyle:d[e]?d[e]:{},...p})}),m}line(e,t,r){const{tooltipVisible:n,legendVisible:a,isEmptyData:i}=r;r.chartType="line";const o=!i&&_l(e,t,r),s=n&&iu.getLineTooltip(t),l=a&&iu.getLineLegend(t),c=iu.getLineDimAxis({settings:t}),u=iu.getLineMeaAxis({settings:t}),d=!i&&iu.getLineSeries({data:e,settings:t}),f={dataset:o,tooltip:s,legend:l,xAxis:c,yAxis:u,series:d};return f}}var ou=iu,su={name:"VeLineChart",mixins:[Sc],created(){this.chartHandler=(new ou).line}},lu={name:"VePieChart",mixins:[Sc],created(){this.chartHandler=(new kc).pie}};class cu extends Lc{static getRadarTooltip(){return{trigger:"item"}}static getRadarLegend(e){const{data:t,settings:r}=e,{legendType:n="plain",legendPadding:a=5}=r,{measures:i}=t;return{type:n,padding:a,data:i.map(e=>e.name)}}static getRadarRadar(e){const{data:t,settings:r}=e,{offsetY:n="50%",radius:a="75%",splitNumber:i=5,shape:o="polygon",splitArea:s={},name:l={}}=r;return{name:{padding:[3,5],...l},center:["50%",n],radius:a,splitNumber:i,shape:o,splitArea:s,indicator:t.dimensions}}static getRadarLabel(e){const{formatType:t="currency",formatDigits:r=0,...n}=e,a=e=>{const{value:n}=e;return wl(t,n,r)};return{formatter:a,...n}}static getRadarSeries({data:e,settings:t}){const{measures:r}=e,{label:n,itemStyle:a}=t,i=[];return r.forEach((e,t)=>{i.push({type:"radar",data:[{name:e.name,value:e.data}],label:n&&cu.getRadarLabel(n),itemStyle:Object.assign({},a)})}),i}static getRadiusPolar({data:e,settings:t,tickMarkVisible:r}){if(!r)return{polar:null,radiusAxis:null,angleAxis:null};const{splitNumber:n=5,offsetY:a="50%",radius:i="75%",axisLabel:o={},axisLine:s={}}=t,l=e.dimensions[0].max,c=0,u=(l-c)/n;return{polar:{radius:i,center:["50%",a]},radiusAxis:{min:c,max:l,interval:Math.round(100*u)/100,splitLine:{show:!1},axisLabel:o,axisLine:s},angleAxis:{axisTick:{show:!1},axisLabel:{show:!1},axisLine:{show:!1},splitLine:{show:!1}}}}radar(e,t,r){const{tooltipVisible:n,legendVisible:a,isEmptyData:i,tickMarkVisible:o}=r;if(i)return{};const s=n&&cu.getRadarTooltip(),l=a&&cu.getRadarLegend({data:e,settings:t}),c=cu.getRadarRadar({data:e,settings:t}),u=cu.getRadarSeries({data:e,settings:t}),d=cu.getRadiusPolar({data:e,settings:t,tickMarkVisible:o}),f={tooltip:s,legend:l,radar:c,series:u,...d};return f}}var uu=cu,du={name:"VeRadarChart",mixins:[Sc],created(){this.chartHandler=(new uu).radar}};class fu extends Lc{static getScatterDataset(e,t,r){const n=[],{measures:a}=e;if(Je(a))return a.forEach(e=>{n.push({source:e.data})}),n}static getScatterTooltip(e){return{}}static getScatterLegend(e){const{settings:t}=e,{legendType:r="plain",legendPadding:n=5}=t;return{type:r,padding:n}}static getScatterSeries(e){const{data:t,settings:r}=e,{connect:n,...a}=r,i=[];return t.measures.forEach(({name:e},t)=>{i[t]={type:"scatter",name:e,datasetIndex:t,...a}}),i}static getScatterXAxis(e){const{settings:t}=e,{xAxisScale:r=!1,xAxisName:n,xAxisNameGap:a,xAxisNameLocation:i}=t;let o={scale:r,nameGap:5,splitLine:{lineStyle:{type:"dashed"}}};return n&&(o["name"]=n),a&&(o["nameGap"]=a),i&&(o["nameLocation"]=i),o}static getScatterYAxis(e){const{settings:t}=e,{yAxisScale:r=!1,yAxisName:n}=t;let a={scale:r,splitLine:{lineStyle:{type:"dashed"}}};return n&&(a["name"]=n),a}scatter(e,t,r){const{tooltipVisible:n,legendVisible:a}=r,i=fu.getScatterDataset(e,t,r),o=n&&fu.getScatterTooltip({data:e}),s=a&&fu.getScatterLegend({settings:t}),l=fu.getScatterSeries({data:e,settings:t}),c=fu.getScatterXAxis({settings:t}),u=fu.getScatterYAxis({settings:t}),d={dataset:i,tooltip:o,legend:s,series:l,xAxis:c,yAxis:u};return d}}var hu=fu,pu={name:"VeScatterChart",mixins:[Sc],created(){this.chartHandler=(new hu).scatter}};class mu extends Lc{static getTreemapTooltip(e){return{formatter:"{b}:
{c}"}}static getTreemapSeries(e){const{data:t,settings:r}=e,{measures:n}=t,{name:a="根级",levels:i=Ll,...o}=r,s=[];return s.push({type:"treemap",name:a,levels:i,data:n,...o}),s}treemap(e,t,r){const{tooltipVisible:n}=r,a=n&&mu.getTreemapTooltip(),i=mu.getTreemapSeries({data:e,settings:t}),o={tooltip:a,series:i};return o}}var gu=mu,bu={name:"VeTreemapChart",mixins:[Sc],created(){this.chartHandler=(new gu).treemap}};class yu extends Lc{static getBarTooltip(e){const{settings:t}=e,{tooltip:r}=t;return{...r}}static getSunburstSeries(e){const{data:t,settings:r}=e,{measures:n}=t,{label:a={},itemStyle:i={},...o}=r,s=[];return n.forEach(({name:e,data:t},r)=>{const n="sunburst",l={type:n,name:e,data:t,label:a,itemStyle:i,...o};s.push(l)}),s}sunburst(e,t,r){const n=yu.getBarTooltip({settings:t}),a=yu.getSunburstSeries({data:e,settings:t}),i={series:a};return 0!==Object.keys(n).length&&(i["tooltip"]=n),i}}var vu=yu,xu={name:"VeSunburstChart",mixins:[Sc],created(){this.chartHandler=(new vu).sunburst}};class _u extends Lc{static getTreeTooltip(){return{trigger:"item",triggerOn:"mousemove"}}static getTreeLegend(e,t){const{legendType:r="plain",legendPadding:n=5}=t,{measures:a}=e;return{type:r,padding:n,data:a.map(e=>e.name)}}static formatTreeLabels(e="LR",t=0){let[r,n,a,i]=["","","",""];switch(e){case"LR":r="left",n="right",a="right",i="left";break;case"RL":r="right",n="left",a="left",i="right";break;case"TB":r="top",n=t>0?"right":"middle",a="bottom",i=t>0?"left":"middle";break;case"BT":r="bottom",n=t>0?"right":"middle",a="top",i=t>0?"left":"middle";break;default:}return{label:{position:r,verticalAlign:"middle",align:n,rotate:t},leaves:{label:{position:a,verticalAlign:"middle",align:i,rotate:t}}}}static getTreeSeries(e,t){const{seriesMap:r=[],labelRotate:n}=t,a=e.measures.map((e,t)=>{const a=r&&r[t]&&r[t].layout,i=r&&r[t]&&r[t].orient,o="radial"===a?{}:_u.formatTreeLabels(i,n),s={type:"tree",name:e.name,data:[e.value],...o,...r[t]};return s});return a}tree(e,t,r){const{tooltipVisible:n,legendVisible:a}=r,i=n&&_u.getTreeTooltip(),o=a&&_u.getTreeLegend(e,t),s=_u.getTreeSeries(e,t),l={tooltip:i,legend:o,series:s};return l}}var wu=_u,Au={name:"VeTreeChart",mixins:[Sc],created(){this.chartHandler=(new wu).tree}};class Su extends Lc{static getWordcloudSeries(e){const{data:t,settings:r}=e,{measures:n}=t,a="wordCloud",i=[],o={type:a,data:n,...r};return i.push(o),i}wordcloud(e,t,r){const{tooltip:n}=t,a=Su.getWordcloudSeries({data:e,settings:t}),i={tooltip:n,series:a};return i}}var ju=Su,Lu={name:"VeWordcloudChart",mixins:[Sc],created(){this.chartHandler=(new ju).wordcloud}};class Tu extends Lc{static getSeries(e){const{measures:t}=e.data,r=e.settings,n=[];return n.push({type:"liquidFill",data:[...t],...r}),n}liquidfill(e,t,r){const{isEmptyData:n}=r,{tooltip:a}=t;if(n)return{};const i=Tu.getSeries({data:e,settings:t}),o={tooltip:a,series:i};return o}}var Ou=Tu,zu={name:"VeLiquidfillChart",mixins:[Sc],created(){this.chartHandler=(new Ou).liquidfill}};class Mu extends Lc{static getTooltip(e){return{}}static getLegend(e){const{measures:t}=e;return{show:!0,data:t.map(e=>e.name)}}static getPolar(e){return{}}static getAngleAxis(e){const{radial:t=!1,startAngle:r=90,clockwise:n=!0,showAngleAxisLine:a=!0,showAngleSplitLine:i=!0,showAngleAxisLabel:o=!0,angleAxisLabelType:s,angleAxisLabelDigits:l,angleAxisMax:c,angleAxisMin:u}=e;return{type:t?"category":"value",clockwise:n,startAngle:r,min:u||null,max:c||null,axisLine:{show:a},axisTick:{show:a},splitLine:{show:i},axisLabel:{show:o,margin:10,fontWeight:400,formatter:e=>wl(s,e,l)}}}static getRadiusAxis(e){const{radial:t=!1}=e;return{type:t?"value":"category",z:10}}static getSeries({data:e,settings:t}){const{measures:r}=e,{polarType:n="line",stack:a=null,itemStyle:i={},roundCap:o=!1,...s}=t,l=r.map(({name:e},t)=>({type:n,stack:a,roundCap:o,coordinateSystem:"polar",itemStyle:i[e]||{},...s}));return l}polar(e,t,r){const{legendVisible:n,tooltipVisible:a,isEmptyData:i}=r;if(i)return{};const o=a&&Mu.getTooltip(t),s=n&&Mu.getLegend(e),l=Mu.getPolar(t),c=Mu.getAngleAxis(t),u=Mu.getRadiusAxis(t),d=!i&&_l(e,t,r),f=Mu.getSeries({data:e,settings:t}),h={tooltip:o,legend:s,polar:l,angleAxis:c,radiusAxis:u,dataset:d,series:f};return h}}var ku=Mu,Cu={name:"VePolarChart",mixins:[Sc],created(){this.chartHandler=(new ku).polar}};class Eu extends Lc{static getTooltip(e){return{}}static getSeries({data:e,settings:t}){const{dimensions:r,measures:n}=e,{orient:a="horizontal",draggable:i=!0,focusNodeAdjacency:o=!1,...s}=t;return{type:"sankey",data:r,edges:n,orient:a,draggable:i,focusNodeAdjacency:o,...s}}sankey(e,t,r){const{tooltipVisible:n,isEmptyData:a}=r;if(a)return{};const i=n&&Eu.getTooltip(t),o=Eu.getSeries({data:e,settings:t}),s={tooltip:i,series:o};return s}}var Nu=Eu,Du={name:"VeSankeyChart",mixins:[Sc],created(){this.chartHandler=(new Nu).sankey}};class Pu extends Lc{static getBarTooltip(e,t){const{tooltipOptions:r,childSetting:n={series:{},legend:{},legendShow:{},contentSize:{}}}=t,{series:a,legend:o,...s}=n;function l(e,t){return{series:{type:"pie",data:e,center:["20%","50%"],label:{show:!1},...a},tooltip:{trigger:"item",formatter:e=>e.name+" : "+e.value+" ("+e.percent+"%)"},color:["#426fff","#40adff","#3fdace","#18bdb0","#ffda3e","#ffa900","#83dd89","#bedf65","#956bfd","#f67bb2"],animation:!1,legend:{type:"scroll",orient:"vertical",top:"5%",left:"40%",data:e,itemWidth:10,itemHeight:6,textStyle:{color:"black",fontSize:12,fontFamily:"sans-serif",rich:{name:{width:100,align:"left"},value:{width:100,align:"left"},percent:{width:50,height:"14",align:"left"}}},tooltip:{show:!0,formatter:r=>{let n=t.indexOf(r.name),a=e[n].value.toLocaleString("en-US",{maximumFractionDigits:2});return`${r.name} : ${a}`}},pageIconColor:"#426FFF",pageIconInactiveColor:"#aaa",pageIconSize:10,pageButtonItemGap:5,formatter:r=>{let a=t.indexOf(r),i={name:!0,value:!0,percent:!0,...n["legendShow"]};const o=e.reduce((e,t)=>e+t.value,0);let s=(e[a].value/o*100).toFixed(n["toFix"]||2),l=e[a].value.toLocaleString("en-US",{maximumFractionDigits:2}),c=r.length>10?r.substr(0,10)+"...":r;return i.value||i.percent?i.value?i.percent?"{name|"+c+"}{value|"+l+"}{percent|"+s+"%}":"{name|"+c+"}{value|"+l+"}":"{name|"+c+"}{percent|"+s+"%}":"{name|"+c+"}"},...o},...s}}function c(e,t){setTimeout(()=>{if(null!==document.getElementById("pieTooltip")){let r=i.a.init(document.getElementById("pieTooltip"));r.setOption(l(e,t))}},0)}return{trigger:"axis",axisPointer:{type:"shadow"},show:!0,enterable:!0,hideDelay:500,backgroundColor:"rgb(255,255,255,0.94)",textStyle:{color:"black"},transitionDuration:.4,confine:!0,...r,formatter:t=>{let r=t[0].dataIndex,a=e.childData[r],i=a.map(e=>(e.icon=e.icon?e.icon:"circle",e.name)),o={width:"500px",height:"200px",...n["contentSize"]};return c(a,i),`
${t[0].name}
\n
`}}}static getBarLegend(e,t){const{measures:r}=e,{legendType:n,legendPadding:a,waterfall:i,legendOptions:o}=t;let s={type:n||"plain",padding:a||5,...o};return i&&!0===i&&(s["data"]=r.filter(({name:e})=>{if("secondaryMeasure"!==e)return e})),s}static getBarGrid(e){const t={right:30,bottom:10,left:30,containLabel:!0};return e?t:Sl.grid}static getBarDimAxis(e){const{dimAxisType:t,dimAxisLineShow:r,dimAxisLabelShow:n,dimAxisLabelColor:a,xAxisName:i,xAxisSplitLine:o,dimAxisLabelRotate:s,dimAxisPointerType:l}=e,c={type:t,axisLine:{show:Array.isArray(r)?r[0]:r},axisTick:{show:!1},axisLabel:{show:Array.isArray(n)?n[0]:n,margin:10,fontWeight:400,color:Array.isArray(a)?a[0]:a,rotate:s},axisPointer:{show:!0,type:l}};i&&(c.name=i),o&&(c.splitLine=o);const u=[];return u.push(c),u}static getBarMeaAxis(e,t){const{meaAxisType:r,meaAxisDigits:n,meaAxisLineShow:a,meaAxisLabelShow:i,meaAxisLabelColor:o,meaAxisLabelRotate:s,yAxisScale:l=!1,percentage:c=!1,yAxisName:u,yAxisInterval:d,yAxisMax:f,yAxisMin:h}=t,p={type:"value",scale:l,axisTick:{show:!1},min:c?0:null,max:c?1:null},m=[];return r.forEach((e,t)=>{const r={show:Array.isArray(i)?i[t]:i,margin:10,fontWeight:400,color:Array.isArray(o)?o[t]:o,rotate:s};if("normal"!==e)if(Je(n)){let a=Ht(n[t])?0:n[t];r.formatter=t=>wl(e,t,a)}else r.formatter=t=>wl(e,t,n);const l={show:Array.isArray(a)?a[t]:a},g={...p,axisLabel:r,axisLine:l};u&&u.length&&(g["name"]=u[t]),d&&d.length&&d[t]&&(g["interval"]=Number(d[t])),!1===c&&f&&f.length&&(g["max"]=f[t]),!1===c&&h&&h.length&&(g["min"]=h[t]),m.push(g)}),m}static getBarLabel(e,t){const{position:r=(t?"right":"top"),formatType:n="currency",formatDigits:a=0,...i}=e,o=e=>{const{value:t,seriesIndex:r}=e;return t.shift(),wl(n,t[r],a)};return{position:r,formatter:o,...i}}static getBarSeries(e,t,r){const{measures:n}=e,{label:a={},showLine:i=[],stack:o=null,secondMeaAxis:s=[],itemStyle:l={},waterfall:c,markLine:u=null,markArea:d=null,...f}=t,h=r?"xAxisIndex":"yAxisIndex",p=[],m=o&&bl(o);return(u||d)&&p.push({type:"bar",name:"",data:[],markLine:u,markArea:d}),n.forEach(({name:e})=>{let t={};a instanceof Array?(t=a.filter(t=>t.name===e)[0],void 0===t&&(t={})):t=a;const n=i.includes(e)?"line":"bar",u={type:n,name:e,label:Pu.getBarLabel(t,r),stack:o&&m[e],[h]:s.includes(e)?"1":"0",itemStyle:l[e]?l[e]:{},...f};c&&!0===c&&"secondaryMeasure"===e&&(u["itemStyle"]=Tl[e]),p.push(u)}),p}bar(e,t,r){const{tooltipVisible:n,legendVisible:a,isEmptyData:i}=r,{direction:o="column",secondMeaAxis:s=null,yAxisLabelType:l,yAxisLabelDigits:c=0,yAxisName:u,yAxisLabelShow:d=[!0,!0],yAxisLineShow:f=[!0,!0],yAxisLabelColor:h=[null,null],xAxisLabelType:p,xAxisLabelDigits:m=0,xAxisName:g,xAxisLabelShow:b=!0,xAxisLineShow:y=!0,xAxisLabelColor:v=null,xAxisLabelRotate:x=0,yAxisLabelRotate:_=0,xAxisPointerType:w,yAxisPointerType:A}=t,S="column"!==o&&"row"===o,j=null!==s?["normal","normal"]:["normal"];t.meaAxisType=(S?p:l)||j,t.meaAxisDigits=S?m:c,t.meaAxisName=(S?g:u)||[],t.meaAxisLabelShow=S?b:d,t.meaAxisLineShow=S?y:f,t.meaAxisLabelColor=S?v:h,t.meaAxisLabelRotate=S?x:_,t.dimAxisType=(S?l:p)||"category",t.dimAxisDigits=S?c:m,t.dimAxisName=(S?u:g)||"",t.dimAxisLabelShow=S?d:b,t.dimAxisLineShow=S?f:y,t.dimAxisLabelColor=S?h:v,t.dimAxisLabelRotate=S?_:x,t.dimAxisPointerType=S?A:w,j.length>t.meaAxisType.length&&(t.meaAxisType=j.fill(t.meaAxisType[0])),r.chartType="bar";const L=!i&&_l(e,t,r),T=n&&Pu.getBarTooltip(e,t),O=a&&Pu.getBarLegend(e,t),z=Pu.getBarGrid(S),M=S?Pu.getBarMeaAxis(e,t):Pu.getBarDimAxis(t),k=S?Pu.getBarDimAxis(t):Pu.getBarMeaAxis(e,t),C=Pu.getBarSeries(e,t,S),{yAxisInverse:E,xAxisInverse:N}=t;void 0!==E&&k.forEach((e,t)=>{e.inverse=Array.isArray(E)?E[t]:E}),void 0!==N&&M.forEach(e=>{e.inverse=N});const D={grid:z,dataset:L,tooltip:T,legend:O,xAxis:M,yAxis:k,series:C};return D}}var Bu=Pu,Fu={name:"VeBarpieChart",mixins:[Sc],created(){this.chartHandler=(new Bu).bar}};const $u=[zc,Cc,Gc,Yc,au,su,lu,du,pu,bu,xu,Au,Lu,zu,Cu,Du,Fu],Vu=e=>{Vu.installed||$u.forEach(t=>{e.component(t.name,t)})};"undefined"!==typeof window&&window.Vue&&(window.Vue.use(Vu),Vu.installed&&(Vu.installed=!1));var Ru={install:Vu,VeBarChart:zc,VeDonutChart:Cc,VeFunnelChart:Gc,VeGaugeChart:Yc,VeGeoChart:au,VeLineChart:su,VePieChart:lu,VeRadarChart:du,VeScatterChart:pu,VeTreemapChart:bu,VeSunburstChart:xu,VeTreeChart:Au,VeWordcloudChart:Lu,VeLiquidfillChart:zu,VePolarChart:Cu,VeSankeyChart:Du,VeBarpieChart:Fu};t["default"]=Ru},ff6f:function(e,t,r){var n=r("068a");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("499e").default;a("3a96cc98",n,!0,{sourceMap:!1,shadowMode:!1})}})["default"]})); \ No newline at end of file diff --git a/package.json b/package.json index 358d137..54a9eec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ve-charts", - "version": "0.9.13", + "version": "0.9.14", "description": "ECharts 4.x for Vue.js 2.x.", "main": "lib/ve-charts.umd.min.js", "unpkg": "lib/ve-charts.umd.min.js",