@ecan-bi/datav 1.0.25 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1 +1,10 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("axios"),require("mitt"),require("dayjs"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style/index"),require("ant-design-vue/es/date-picker/style/index"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/select/style/index"),require("ant-design-vue/es/button/style/index"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("echarts"),require("ant-design-vue/es/modal/style/index"),require("ant-design-vue/es/table/style/index")):"function"==typeof define&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/skeleton/style","lodash-es","axios","mitt","dayjs","ant-design-vue/es/progress/style","ant-design-vue/es/input/style/index","ant-design-vue/es/date-picker/style/index","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/select/style/index","ant-design-vue/es/button/style/index","echarts/renderers","echarts/charts","echarts/components","echarts","ant-design-vue/es/modal/style/index","ant-design-vue/es/table/style/index"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.vue,e["echarts/core"],e["resize-detector"],e["ant-design-vue"],null,e["lodash-es"],e.axios,e.mitt,e.dayjs,null,null,null,e["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,e["echarts/renderers"],e["echarts/charts"],e["echarts/components"],e.echarts)}(this,(function(e,t,n,o,r,a,i,l,c,s,d,u,p,f,m,v,g,h,b,y){"use strict";function k(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function x(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var w=k(l),A=k(c),C=k(s),S=k(f),E=x(y),B=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function O(e,t){return n=Object.create(null),B.forEach((function(o){n[o]=function(n){return function(){if(e.value||t(),!e.value)throw new Error("ECharts is not initialized yet.");for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return e.value[n].apply(e.value,r)}}(o)})),n;var n}function j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var T={exports:{}},L={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}(L);var M={exports:{}};!function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports}(M);var I={exports:{}},P={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o},e.exports.__esModule=!0,e.exports.default=e.exports}(P),function(e){var t=P.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(I);var U={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(U),function(e){var t=L.exports,n=M.exports,o=I.exports,r=U.exports;e.exports=function(e,a){return t(e)||n(e,a)||o(e,a)||r()},e.exports.__esModule=!0,e.exports.default=e.exports}(T);var N=j(T.exports);var R={autoresize:Boolean};var V={loading:Boolean,loadingOptions:Object};function z(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}z("x-vue-echarts{display:block;height:100%;width:100%}");var D=/^on[^a-z]/,F=function(e){return D.test(e)};var q=t.defineComponent({name:"echarts",props:Object.assign(Object.assign({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},R),V),inheritAttrs:!1,setup:function(e,r){var a=r.attrs,i=r.listeners,l=t.shallowRef(),c=t.shallowRef(),s=t.shallowRef(),d=t.inject("ecTheme",null),u=t.inject("ecInitOptions",null),p=t.inject("ecUpdateOptions",null),f=t.toRefs(e),m=f.autoresize,v=f.manualUpdate,g=f.loading,h=f.loadingOptions,b=t.computed((function(){return s.value||e.option||Object.create(null)})),y=t.computed((function(){return e.theme||t.unref(d)||{}})),k=t.computed((function(){return e.initOptions||t.unref(u)||{}})),x=t.computed((function(){return e.updateOptions||t.unref(p)||{}})),w=t.computed((function(){return function(e){var t={};for(var n in e)F(n)||(t[n]=e[n]);return t}(a)}));function A(o){if(!c.value&&l.value){var r=c.value=n.init(l.value,y.value,k.value);e.group&&(r.group=e.group);var s=i;s||(s={},Object.keys(a).filter((function(e){return 0===e.indexOf("on")&&e.length>2})).forEach((function(e){var t=e.charAt(2).toLowerCase()+e.slice(3);s[t]=a[e]}))),Object.keys(s).forEach((function(e){var t=s[e];t&&(0===e.indexOf("zr:")?r.getZr().on(e.slice(3).toLowerCase(),t):r.on(e.toLowerCase(),t))})),m.value?t.nextTick((function(){!function(){if(r&&!r.isDisposed())try{r.resize()}catch(e){if("Cannot read property 'get' of undefined"===e.message)return;throw e}}(),d()})):d()}function d(){r.setOption(o||b.value,x.value)}}function C(){c.value&&(c.value.dispose(),c.value=void 0)}var S=null;t.watch(v,(function(n){"function"==typeof S&&(S(),S=null),n||(S=t.watch((function(){return e.option}),(function(e){e&&(c.value?c.value.setOption(e,x.value):A())}),{deep:!0}))}),{immediate:!0}),t.watch([y,k],(function(){C(),A()}),{deep:!0}),t.watchEffect((function(){e.group&&c.value&&(c.value.group=e.group)}));var E=O(c,A);return function(e,n,o){var r=t.inject("ecLoadingOptions",{}),a=t.computed((function(){return Object.assign(Object.assign({},t.unref(r)),null==o?void 0:o.value)}));t.watchEffect((function(){var t=e.value;t&&(n.value?t.showLoading(a.value):t.hideLoading())}))}(c,g,h),function(e,r,a){var i=null;t.watch([a,e,r],(function(e,t,r){var a=N(e,3),l=a[0],c=a[1],s=a[2];l&&c&&s&&(i=n.throttle((function(){c.resize()}),100),o.addListener(l,i)),r((function(){i&&l&&o.removeListener(l,i)}))}))}(c,m,l),t.onMounted((function(){e.option&&A()})),t.onUnmounted(C),Object.assign({chart:c,root:l,setOption:function(t,n){e.manualUpdate&&(s.value=t),c.value?c.value.setOption(t,n||{}):A(t)},nonEventAttrs:w},E)},render:function(){var e=Object.assign({},this.nonEventAttrs);return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h("x-vue-echarts",e)}});function W(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Y(e){return e<=1?"".concat(100*Number(e),"%"):e}function G(e){return 1===e.length?"0"+e:String(e)}function J(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function K(e){return Q(e)/255}function Q(e){return parseInt(e,16)}var _={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Z(e){var t,n,o,r={r:0,g:0,b:0},a=1,i=null,l=null,c=null,s=!1,d=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(_[e])e=_[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ee.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ee.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ee.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=ee.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ee.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=ee.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ee.hex8.exec(e))return{r:Q(n[1]),g:Q(n[2]),b:Q(n[3]),a:K(n[4]),format:t?"name":"hex8"};if(n=ee.hex6.exec(e))return{r:Q(n[1]),g:Q(n[2]),b:Q(n[3]),format:t?"name":"hex"};if(n=ee.hex4.exec(e))return{r:Q(n[1]+n[1]),g:Q(n[2]+n[2]),b:Q(n[3]+n[3]),a:K(n[4]+n[4]),format:t?"name":"hex8"};if(n=ee.hex3.exec(e))return{r:Q(n[1]+n[1]),g:Q(n[2]+n[2]),b:Q(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(te(e.r)&&te(e.g)&&te(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*W(t,255),g:255*W(n,255),b:255*W(o,255)},s=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):te(e.h)&&te(e.s)&&te(e.v)?(i=Y(e.s),l=Y(e.v),r=function(e,t,n){e=6*W(e,360),t=W(t,100),n=W(n,100);var o=Math.floor(e),r=e-o,a=n*(1-t),i=n*(1-r*t),l=n*(1-(1-r)*t),c=o%6;return{r:255*[n,i,a,a,l,n][c],g:255*[l,n,n,i,a,a][c],b:255*[a,a,l,n,n,i][c]}}(e.h,i,l),s=!0,d="hsv"):te(e.h)&&te(e.s)&&te(e.l)&&(i=Y(e.s),c=Y(e.l),r=function(e,t,n){var o,r,a;if(e=W(e,360),t=W(t,100),n=W(n,100),0===t)r=n,a=n,o=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;o=J(l,i,e+1/3),r=J(l,i,e),a=J(l,i,e-1/3)}return{r:255*o,g:255*r,b:255*a}}(e.h,i,c),s=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(a),{ok:s,format:e.format||d,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:a}}var X="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),H="[\\s|\\(]+(".concat(X,")[,|\\s]+(").concat(X,")[,|\\s]+(").concat(X,")\\s*\\)?"),$="[\\s|\\(]+(".concat(X,")[,|\\s]+(").concat(X,")[,|\\s]+(").concat(X,")[,|\\s]+(").concat(X,")\\s*\\)?"),ee={CSS_UNIT:new RegExp(X),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function te(e){return Boolean(ee.CSS_UNIT.exec(String(e)))}var ne=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function oe(e){var t=function(e,t,n){e=W(e,255),t=W(t,255),n=W(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a=0,i=o,l=o-r,c=0===o?0:l/o;if(o===r)a=0;else{switch(o){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4}a/=6}return{h:a,s:c,v:i}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function re(e){var t=e.r,n=e.g,o=e.b;return"#".concat(function(e,t,n,o){var r=[G(Math.round(e).toString(16)),G(Math.round(t).toString(16)),G(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}(t,n,o,!1))}function ae(e,t,n){var o=n/100;return{r:(t.r-e.r)*o+e.r,g:(t.g-e.g)*o+e.g,b:(t.b-e.b)*o+e.b}}function ie(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?o+=360:o>=360&&(o-=360),o}function le(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(o=1),n&&5===t&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function ce(e,t,n){var o;return(o=n?e.v+.05*t:e.v-.15*t)>1&&(o=1),Number(o.toFixed(2))}function se(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=Z(e),r=5;r>0;r-=1){var a=oe(o),i=re(Z({h:ie(a,r,!0),s:le(a,r,!0),v:ce(a,r,!0)}));n.push(i)}n.push(re(o));for(var l=1;l<=4;l+=1){var c=oe(o),s=re(Z({h:ie(c,l),s:le(c,l),v:ce(c,l)}));n.push(s)}return"dark"===t.theme?ne.map((function(e){var o=e.index,r=e.opacity;return re(ae(Z(t.backgroundColor||"#141414"),Z(n[o]),100*r))})):n}var de={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ue={},pe={};Object.keys(de).forEach((function(e){ue[e]=se(de[e]),ue[e].primary=ue[e][5],pe[e]=se(de[e],{theme:"dark",backgroundColor:"#141414"}),pe[e].primary=pe[e][5]})),ue.red,ue.volcano,ue.gold,ue.orange,ue.yellow,ue.lime,ue.green,ue.cyan,ue.blue,ue.geekblue,ue.purple,ue.magenta,ue.grey;var fe=[],me=[];function ve(e,t){if(t=t||{},void 0===e)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var n,o=!0===t.prepend?"prepend":"append",r=void 0!==t.container?t.container:document.querySelector("head"),a=fe.indexOf(r);return-1===a&&(a=fe.push(r)-1,me[a]={}),void 0!==me[a]&&void 0!==me[a][o]?n=me[a][o]:(n=me[a][o]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===o?r.insertBefore(n,r.childNodes[0]):r.appendChild(n)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),n.styleSheet?n.styleSheet.cssText+=e:n.textContent+=e,n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){he(e,t,n[t])}))}return e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e,t){!function(e,t){"production"===process.env.NODE_ENV||e||void 0===console||console.error("Warning: ".concat(t))}(e,"[@ant-design/icons-vue] ".concat(t))}function ye(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function ke(e,n,o){return o?t.h(e.tag,ge({key:n},o,e.attrs),(e.children||[]).map((function(t,o){return ke(t,"".concat(n,"-").concat(e.tag,"-").concat(o))}))):t.h(e.tag,ge({key:n},e.attrs),(e.children||[]).map((function(t,o){return ke(t,"".concat(n,"-").concat(e.tag,"-").concat(o))})))}function xe(e){return se(e)[0]}function we(e){return e?Array.isArray(e)?e:[e]:[]}var Ae="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",Ce=!1,Se=["icon","primaryColor","secondaryColor"];function Ee(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Oe(e,t,n[t])}))}return e}function Oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var je={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Te=function(e,n){var o=Be({},e,n.attrs),r=o.icon,a=o.primaryColor,i=o.secondaryColor,l=Ee(o,Se),c=je;if(a&&(c={primaryColor:a,secondaryColor:i||xe(a)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ae;t.nextTick((function(){Ce||("undefined"!=typeof window&&window.document&&window.document.documentElement&&ve(e,{prepend:!0}),Ce=!0)}))}(),be(ye(r),"icon should be icon definiton, but got ".concat(r)),!ye(r))return null;var s=r;return s&&"function"==typeof s.icon&&(s=Be({},s,{icon:s.icon(c.primaryColor,c.secondaryColor)})),ke(s.icon,"svg-".concat(s.name),Be({},l,{"data-icon":s.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Te.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Te.inheritAttrs=!1,Te.displayName="IconBase",Te.getTwoToneColors=function(){return Be({},je)},Te.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;je.primaryColor=t,je.secondaryColor=n||xe(t),je.calculated=!!n};var Le=Te;function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var o,r,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ie(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Pe(e){var t=Me(we(e),2),n=t[0],o=t[1];return Le.setTwoToneColors({primaryColor:n,secondaryColor:o})}var Ue=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var o,r,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Re(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){ze(e,t,n[t])}))}return e}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}Pe("#1890ff");var Fe=function(e,n){var o,r=Ve({},e,n.attrs),a=r.class,i=r.icon,l=r.spin,c=r.rotate,s=r.tabindex,d=r.twoToneColor,u=r.onClick,p=De(r,Ue),f=(ze(o={anticon:!0},"anticon-".concat(i.name),Boolean(i.name)),ze(o,a,a),o),m=""===l||l||"loading"===i.name?"anticon-spin":"",v=s;void 0===v&&u&&(v=-1,p.tabindex=v);var g=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,h=Ne(we(d),2),b=h[0],y=h[1];return t.createVNode("span",Ve({role:"img","aria-label":i.name},p,{onClick:u,class:f}),[t.createVNode(Le,{class:m,icon:i,primaryColor:b,secondaryColor:y,style:g},null)])};Fe.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Fe.displayName="AntdIcon",Fe.inheritAttrs=!1,Fe.getTwoToneColor=function(){var e=Le.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Fe.setTwoToneColor=Pe;var qe=Fe,We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Ge(e,t,n[t])}))}return e}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Je=function(e,n){var o=Ye({},e,n.attrs);return t.createVNode(qe,Ye({},o,{icon:We}),null)};Je.displayName="LoadingOutlined",Je.inheritAttrs=!1;var Ke=Je,Qe=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:r.Spin},setup:function(){return{indicator:t.h(Ke,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),_e={class:"spin-wrapper"};z(".spin-wrapper{height:100%;position:relative;width:100%}.spin{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}"),Qe.render=function(e,n,o,r,a,i){var l=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",_e,[e.spinning?(t.openBlock(),t.createBlock(l,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])},Qe.__file="src/common/spin/Spin.vue";var Ze=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:r.Skeleton}});Ze.render=function(e,n,o,r,a,i){var l=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(l,{active:"",loading:e.loading},{default:t.withCtx((function(){return[t.renderSlot(e.$slots,"default")]})),_:3},8,["loading"])},Ze.__file="src/common/skeleton/Skeleton.vue";var Xe={exports:{}},He={exports:{}};!function(e){var t=P.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(He);var $e={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}($e);var et={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(et),function(e){var t=He.exports,n=$e.exports,o=I.exports,r=et.exports;e.exports=function(e){return t(e)||n(e)||o(e)||r()},e.exports.__esModule=!0,e.exports.default=e.exports}(Xe);var tt=j(Xe.exports);"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var nt=function(e,t){if(e.install=function(n){for(var o=0,r=[e].concat(tt(Object.values(null!=t?t:{})));o<r.length;o++){var a=r[o];n.component(a.name,a)}},t)for(var n=0,o=Object.entries(t);n<o.length;n++){var r=N(o[n],2),a=r[0],i=r[1];e[a]=i}return e},ot={exports:{}};!function(e){var t=function(e){var t,n=Object.prototype,o=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var r=t&&t.prototype instanceof g?t:g,a=Object.create(r.prototype),i=new O(o||[]);return a._invoke=function(e,t,n){var o=u;return function(r,a){if(o===f)throw new Error("Generator is already running");if(o===m){if("throw"===r)throw a;return T()}for(n.method=r,n.arg=a;;){var i=n.delegate;if(i){var l=S(i,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===u)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var c=d(e,t,n);if("normal"===c.type){if(o=n.done?m:p,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u="suspendedStart",p="suspendedYield",f="executing",m="completed",v={};function g(){}function h(){}function b(){}var y={};c(y,a,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(j([])));x&&x!==n&&o.call(x,a)&&(y=x);var w=b.prototype=g.prototype=Object.create(y);function A(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(r,a,i,l){var c=d(e[r],e,a);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(c.arg)}var r;this._invoke=function(e,o){function a(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(a,a):a()}}function S(e,n){var o=e.iterator[n.method];if(o===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=d(o,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,v;var a=r.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:T}}function T(){return{value:t,done:!0}}return h.prototype=b,c(w,"constructor",b),c(b,"constructor",h),h.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},A(C.prototype),c(C.prototype,i,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,o,r,a){void 0===a&&(a=Promise);var i=new C(s(t,n,o,r),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},A(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=j,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(B),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(o,r){return l.type="throw",l.arg=e,n.next=o,r&&(n.method="next",n.arg=t),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),B(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;B(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:j(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(ot);var rt=ot.exports;function at(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{c(o.next(e))}catch(e){a(e)}}function l(e){try{c(o.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}c((o=o.apply(e,t||[])).next())}))}var it,lt,ct={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:"",value:{id:"",prop:""}}],events:[],dataType:"static"},st=function(e){return i.mapValues(e,(function(e){return null==e?{}:{type:e.constructor,default:e}}))},dt={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},ut=st(dt),pt=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","textShadow","justifyContent","alignItems"],ft=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=i.without.apply(void 0,[pt].concat(tt(n)));return t.computed((function(){return i.pick(e,o)}))},mt="EVENT_BUS",vt="GLOBAL_CONFIG",gt="GLOBAL_MODEL",ht="REQUEST_MODEL",bt=(null===(it=null===window||void 0===window?void 0:window.config)||void 0===it?void 0:it.uploadPath)||"/api",yt=(null===(lt=null===window||void 0===window?void 0:window.config)||void 0===lt?void 0:lt.baseUrl)||"./",kt=function(e,n){t.watch((function(){return e.id}),(function(e,o){var r=t.inject(mt,{onEvent:function(e,t){},offEvent:function(e){}});null!=o&&""!==o&&r.offEvent(o),null!=e&&""!==e&&r.onEvent(e,n)}),{immediate:!0})},xt=function(e){var n=t.inject(mt,{emitEvent:function(e,t){}});return function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return function(){if(o.call.apply(o,[this].concat(Array.prototype.slice.call(arguments))),n){var r=n.emitEvent;e.forEach((function(e){if(t===e.on)try{r(e.target,e.emit)}catch(e){console.error(e)}}))}}}};function wt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return At(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return At(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Ct=function(e,t){var n=t||{},o=n.name,r=void 0===o?"name":o,a=n.value,i=void 0===a?"value":a,l=n.type,c=void 0===l?"type":l;r=null==r?void 0:r.trim(),i=null==i?void 0:i.trim(),c=null==c?void 0:c.trim();for(var s=new Set,d=new Map,u=e.length,p=0;p<u;p++){var f=e[p],m=f[r]||"",v=f[i]||"",g=f[c]||"";if(s.add(m),d.has(g)){var h=d.get(g);h.push(Object.assign({name:m,value:v},f)),d.set(g,h)}else d.set(g,[Object.assign({name:m,value:v},f)])}var b,y=Array.from(s),k=[],x=wt(d);try{for(x.s();!(b=x.n()).done;){var w=N(b.value,2),A=w[0],C=w[1];k.push({name:A,data:C})}}catch(e){x.e(e)}finally{x.f()}return{dimensions:y,dataset:k}},St={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(St);var Et=j(St.exports),Bt=function(e){return e.replace(/\\n/g,"\n")},Ot=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=parseFloat(e+"");return isNaN(n)||n<0?e:n.toFixed(t).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},jt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=e+"";if(n.includes("%"))return e;var o=parseFloat(n);return isNaN(o)?e:"".concat((100*o).toFixed(t),"%")},Tt=function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLocaleLowerCase().includes(t.toLocaleLowerCase())},Lt=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},o=e.requestUrl,r=e.requestMethod,a=e.requestHeaders,i=e.requestParams,l=e.requestInterval,c=e.isOpenRequestTimer,s=t.inject(vt,{contextRequestUrl:"",pageMode:"normal"}),d=s.contextRequestUrl,u=s.pageMode,p=t.inject(gt,{getGlobalModel:function(e){}}),f=p.getGlobalModel,m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return at(void 0,void 0,void 0,rt.mark((function l(){var c,s,p,m,v,g;return rt.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(o&&r&&a&&"design"!==t.unref(u)){l.next=2;break}return l.abrupt("return");case 2:return c={},i.forEach((function(e){var n=e.key,o=e.value;if("object"===Et(o)&&o.id){var r=f(o.id)||{},a=o.prop,i=o.propKey,l=null!=r[a]?r[a]:{},s=["date","range"].some((function(e){return Tt(null==r?void 0:r.type,e)}));null==i||""===i||s||(l=r[a][i]);var d=t.unref(l);s&&null!=i&&""!==i&&(d=(null==d?void 0:d.format((null==i?void 0:i.trim())||r.format))||""),c[n]=d}else"string"==typeof o&&(c[n]=o)})),c=Object.assign(Object.assign({},c),e),s="",p=Object.keys(c),m=p.length-1,p.forEach((function(e,t){switch(t){case 0:s+="?".concat(e,"=").concat(c[e],"&");break;case m:s+="".concat(e,"=").concat(c[e]);break;default:s+="".concat(e,"=").concat(c[e],"&")}})),l.prev=9,v=["get","head"].includes(r),l.next=13,w.default({baseURL:t.unref(d),url:v?o+s:o,method:r,headers:a,data:v?{}:c});case 13:return g=l.sent,n(g),l.abrupt("return",g);case 18:l.prev=18,l.t0=l.catch(9),console.error(l.t0);case 21:case"end":return l.stop()}}),l,null,[[9,18]])})))},v=c&&setInterval(m,1e3*l);return t.onUnmounted((function(){clearInterval(v)})),m};function Mt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return It(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return It(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function It(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t||{},o=n.name,r=void 0===o?"name":o,a=n.types,i=void 0===a?[]:a;r=(null==r?void 0:r.trim())||r;var l=new Set,c=new Map,s=e.length,d=i.length;if(1===s){for(var u=[],p=0;p<d;p++){var f=i[p],m=f.label,v=f.value,g=e[0][v];l.add(m),u.push(g)}var h=e[0][r]||"";c.set(h,u)}else for(var b=0;b<s;b++){var y=e[b],k=y[r];l.add(k);for(var x=0;x<d;x++){var w=i[x],A=w.label,C=w.value,S=y[C];if(c.has(A)){var E=c.get(A);E.push(S),c.set(A,E)}else c.set(A,[S])}}var B,O=Array.from(l),j=[],T=Mt(c);try{for(T.s();!(B=T.n()).done;){var L=N(B.value,2),M=L[0],I=L[1];j.push({name:M,data:I})}}catch(e){T.e(e)}finally{T.f()}return{dimensions:O,dataset:j}},Ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return e;var n="";return n=(null==e?void 0:e.includes("://"))?e:bt+e,t&&(n="url(".concat(n,")")),n},Nt=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null!==(t=window.config)&&void 0!==t?t:{};n=Object.assign(Object.assign({},o),n);var r=e.match(/\{.*?\}/g);if(null==r||0===r.length)return e;for(var a=0;a<r.length;a++){var i=r[a],l=i.slice(1,i.length-1),c=n[l];e=null!=c?e.replace(i,c):e.replace(i,"")}return e},Rt=t.defineComponent({name:"EcanPageConfig",props:Object.assign({},ut),setup:function(e){var n,o=this,r=t.computed((function(){return{width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:Ut(e.backgroundImage,!0),backgroundSize:e.backgroundSize}})),a=t.ref(0),l=t.ref(0),c=t.ref(0),s=t.ref(0),d=t.ref(!1),u=t.ref(),p=function(){return new Promise((function(n){t.nextTick((function(){e.width&&e.height?(a.value=parseFloat(e.width),l.value=parseFloat(e.height)):(a.value=u.value.clientWidth,l.value=u.value.clientHeight),c.value&&s.value||(c.value=window.screen.width,s.value=window.screen.height),n()}))}))},f=function(){var e=document.body.clientWidth,t=document.body.clientHeight,n=e/(a.value||c.value),o=t/(l.value||s.value);u.value&&(u.value.style.transform="scale(".concat(n,", ").concat(o,")"))},m=function(){return at(o,void 0,void 0,rt.mark((function e(){return rt.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:f();case 3:case"end":return e.stop()}}),e)})))};return t.onMounted((function(){return at(o,void 0,void 0,rt.mark((function e(){return rt.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d.value=!1,e.next=3,p();case 3:a.value&&l.value?(u.value.style.width="".concat(a.value,"px"),u.value.style.height="".concat(l.value,"px")):(u.value.style.width="".concat(c.value,"px"),u.value.style.height="".concat(s.value,"px")),f(),window.addEventListener("resize",i.debounce(m,100)),t=void 0,t=window.MutationObserver,(n=new t(m)).observe(u.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),d.value=!0;case 8:case"end":return e.stop()}var t}),e)})))})),t.onUnmounted((function(){window.removeEventListener("resize",m),n&&(n.disconnect(),n.takeRecords(),n=null)})),{style:r,container:u,ready:d}}}),Vt={id:"container",ref:"container"};z("#container[data-v-f2b96d90]{left:0;overflow:hidden;position:fixed;top:0;transform-origin:left top;z-index:999}.page-config[data-v-f2b96d90]{background-size:cover;overflow:hidden;position:relative}"),Rt.render=function(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",Vt,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("v-if",!0)],512)},Rt.__scopeId="data-v-f2b96d90",Rt.__file="src/setting/page-config/PageConfig.vue";var zt=nt(Rt),Dt={contextRequestUrl:"",pageMode:"normal",theme:"light"},Ft=st(Dt),qt=t.defineComponent({name:"EcanProviderConfig",props:Object.assign({},Ft),setup:function(e,n){var o=this,r=n.expose,a=t.ref(),i=function(){a.value.setAttribute("datav-theme",e.theme)};t.watch((function(){return e.theme}),(function(){i()})),t.onMounted((function(){i()}));var l=t.computed((function(){return Nt(e.contextRequestUrl)})),c=t.computed((function(){return e.pageMode}));console.log(c.value);var s=t.computed((function(){return e.theme}));t.provide(vt,{contextRequestUrl:l,pageMode:c,theme:s});var d=new Map;t.provide(gt,{getGlobalModel:function(e){return d.get(e)},setGlobalModel:function(e,t){d.set(e,t)}});var u=A.default();t.provide(mt,{onEvent:function(e,n){u.on(e,(function(e){return"[object Function]"===Object.prototype.toString.call(n[e])&&n[e]()})),t.onUnmounted((function(){u.off(e)}))},offEvent:function(e){u.off(e)},emitEvent:function(e,t){u.emit(e,t)}});var p=new Map,f=function(e){return new Promise((function(t,n){var o=e.map((function(e){return e()}));Promise.all(o).then((function(e){t(e)})).catch((function(e){n(e)}))}))},m=function(){return at(o,void 0,void 0,rt.mark((function e(){var t,n,o,r;return rt.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=Array.from(p)).sort((function(e,t){return t[0]-e[0]})),n=t.length,e.prev=3,o=0;case 5:if(!(o<n)){e.next=12;break}return r=t[o][1],e.next=9,f(r);case 9:o++,e.next=5;break;case 12:p.clear(),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),console.error(e.t0);case 18:case"end":return e.stop()}}),e,null,[[3,15]])})))};return t.provide(ht,{setRequest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(p.has(t)){var n=p.get(t);null==n||n.push(e)}else p.set(t,[e])},touchRequest:m}),r({touchRequest:m}),{providerConfig:a}}}),Wt={id:"ProviderConfig",ref:"providerConfig"};qt.render=function(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(" 请勿去除属性id "),t.createElementVNode("div",Wt,[t.renderSlot(e.$slots,"default")],512)],2112)},qt.__file="src/setting/provider-config/ProviderConfig.vue";var Yt=nt(qt),Gt=Object.assign(Object.assign({},ct),{name:"基础文本",type:"ecanText",width:"100px",height:"40px",text:"文字",color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",data:{}}),Jt=st(Gt),Kt=["refreshData","click"],Qt=t.defineComponent({name:"EcanText",components:{Skeleton:Ze},props:Object.assign({},Jt),setup:function(e){var n=this,o=ft(e),r=t.ref(e.data),a=t.computed((function(){var n=e.text,o=t.unref(r),a=n.match(/\{.*?\}/g);if(null==a||0===a.length)return n;for(var i=0;i<a.length;i++){var l=a[i],c=l.slice(1,l.length-1),s=null!=o[c]?o[c]:"0";n=null!=s?n.replace(l,'<span style="color:'.concat(e.variableColor,";font-size:").concat(e.variableFontSize,'">').concat(s,"</span>")):n.replace(l,"")}return"<span>".concat(n,"</span>")})),i=t.inject(vt,{pageMode:"normal"}).pageMode,l=Lt(e),c=t.ref(!1),s=function(){return at(n,void 0,void 0,rt.mark((function e(){var n,o;return rt.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("design"!==t.unref(i)){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,c.value=!0,e.next=6,l();case 6:o=e.sent,r.value=(null===(n=null==o?void 0:o.data)||void 0===n?void 0:n.data)||{},e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),console.error(e.t0);case 13:return e.prev=13,c.value=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})))},d=function(){s()};kt(e,{refreshData:d}),(0,t.inject(ht,{setRequest:function(e,t){}}).setRequest)(s,e.requestSort),kt(e,{refreshData:d});var u=xt(e.events)("click",(function(){}));return{style:o,myText:a,loading:c,click:u}}}),_t=["innerHTML"];z(".skeleton-wrapper[data-v-41a337b4]{overflow:hidden}.ecan-text[data-v-41a337b4]{display:flex;overflow:hidden}"),Qt.render=function(e,n,o,r,a,i){var l=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(l,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-text",style:t.normalizeStyle(e.style),innerHTML:e.myText,onClick:n[0]||(n[0]=function(){return e.click&&e.click.apply(e,arguments)})},null,12,_t))},Qt.__scopeId="data-v-41a337b4",Qt.__file="src/text/text/Text.vue";var Zt=nt(Qt),Xt=t.defineComponent({name:"EcanScrollText",setup:function(){return{text:t.ref("基础文本")}}}),Ht={class:"red"};z(".red[data-v-0cbdffb5]{color:red}"),Xt.render=function(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",Ht,t.toDisplayString(e.text),1)},Xt.__scopeId="data-v-0cbdffb5",Xt.__file="src/text/scroll-text/ScrollText.vue";var $t=nt(Xt),en=Object.assign(Object.assign({},ct),{name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",textAlign:"center",fontFamily:"",fontWeight:400,textShadow:"",verticalAlign:"middle"}),tn=st(en),nn=t.defineComponent({name:"EcanTimeDisplay",props:Object.assign({},tn),setup:function(e){var n=ft(e),o=t.ref(C.default().format(e.format)),r=null,a=function(){clearInterval(r),r=null};return t.onMounted((function(){r&&a(),r=setInterval((function(){o.value=C.default().add(1,"s").format(e.format)}),1e3)})),t.onUnmounted((function(){a()})),{style:n,time:o}}});z(".time-display[data-v-6cb314e1]{display:table-cell;overflow:hidden}"),nn.render=function(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)},nn.__scopeId="data-v-6cb314e1",nn.__file="src/text/time-display/TimeDisplay.vue";var on=nt(nn),rn=Object.assign(Object.assign({},ct),{type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#091D40",useRanking:!0,useTitle:!1,sliceCount:6,data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]}),an=st(rn),ln=["refreshData"],cn=t.defineComponent({name:"EcanList",components:{Skeleton:Ze},props:Object.assign({},an),setup:function(e){var n=this,o=t.ref(e.data),r=ft(e,["backgroundColor"]),a=t.computed((function(){return e.useRanking?{textAlign:"center"}:{textAlign:"left"}})),i=Lt(e),l=t.inject(vt,{pageMode:"normal"}).pageMode,c=t.ref(!1),s=function(){return at(n,void 0,void 0,rt.mark((function n(){var r,a;return rt.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(l)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,c.value=!0,n.next=6,i();case 6:a=n.sent,o.value=(null===(r=null==a?void 0:a.data)||void 0===r?void 0:r.data.rows)||[],n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,c.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))};return kt(e,{refreshData:function(){s()}}),(0,t.inject(ht,{setRequest:function(e,t){}}).setRequest)(s,e.requestSort),{style:r,formatFn:function(e,t){return null==t||""===t?e:{money:Ot,percentage:jt,contrast:jt}[t](e)||""},columnStyle:a,contrastClass:function(e,t){var n=parseFloat(e+"");if("contrast"!==t)return"";switch(!0){case n>=0:return"goUp";case n<0:return"goDown"}},dataSource:o,loading:c}}});function sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(n),!0).forEach((function(t){sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pn={key:0,class:"ranking"},fn={key:0,class:"ranking"},mn=function(e){return t.pushScopeId("data-v-2d6c92c6"),e=e(),t.popScopeId(),e}((function(){return t.createElementVNode("div",{class:"icon"},null,-1)})),vn={class:"sort"},gn={key:1,class:"empty"};z('.ecan-list[data-v-2d6c92c6]{overflow:hidden}.item[data-v-2d6c92c6]{align-items:center;color:#fff;display:flex;font-size:16px;height:32px;margin-bottom:11px;padding-left:28px;padding-right:20px;width:100%}.column[data-v-2d6c92c6]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ranking[data-v-2d6c92c6]{align-items:center;display:flex;flex:1;flex-shrink:0}.item[data-v-2d6c92c6]:last-child{margin-bottom:0}.icon[data-v-2d6c92c6]{background:#21bef7;height:8px;margin-right:17px;opacity:.6;width:12px}.item:nth-child(2) .icon[data-v-2d6c92c6]{opacity:.8}.item:first-child .icon[data-v-2d6c92c6]{opacity:1}.sort[data-v-2d6c92c6]{font-weight:600}.goUp[data-v-2d6c92c6]{align-items:center;color:#ff512e;display:flex}.goUp[data-v-2d6c92c6][data-v-2d6c92c6]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}.goDown[data-v-2d6c92c6]{align-items:center;color:#00f7b4;display:flex}.goDown[data-v-2d6c92c6][data-v-2d6c92c6]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAaVBMVEUAAAAA+b0A+LwA+L0A/6AA+LwA+L0A+L0A+b0A+LwA/78A+LwA+L0A+LwA+LwA+b0A+LsA970A+LwA+r0A9boA/7YA+LwA+LwA+LwA+L0A97wA+bwA970A970A+bwA+bwA+LsA9rkA+LzcCa+5AAAAInRSTlMAd/uVAvjYxCsiDvPp37F7aWBMNBgK7s/NvKidh4NXUEcdp9A1SAAAAI5JREFUKM+l0UcOwzAMRFGqWZbcW3rl/Q8ZhUGKMN7lLedD4EKUi/3BEIrGsQu432pmPuF+1WnfRNjLipMz7HbHT3cIF9n3BLYSerzAooSgZNcWQiuhIdBI8JQblNISCqXU/BNG/mqzJ+az13MWluIdRspNmgV+Rvc6vkCwPu1uIhQq5o7WDOwtrToG+ssDeh4QPgfT2X0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}.empty[data-v-2d6c92c6]{margin-top:15%;text-align:center}[datav-theme=darkBlue] .empty[data-v-2d6c92c6]{color:#fff}'),cn.render=function(e,n,o,r,a,i){var l=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(l,{loading:e.loading},{default:t.withCtx((function(){return[e.dataSource.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.useTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor})},[e.useRanking?(t.openBlock(),t.createElementBlock("div",pn)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(function(n,o){return t.openBlock(),t.createElementBlock("div",{class:"column",key:n.key||o,style:t.normalizeStyle(un({color:n.titleColor},e.columnStyle))},t.toDisplayString(n.title),5)})),128))],4)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(function(n,o){return t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor}),key:n.id||o},[e.useRanking?(t.openBlock(),t.createElementBlock("div",fn,[mn,t.createElementVNode("div",vn," Top "+t.toDisplayString(o+1),1)])):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(function(o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(n[o.key],o.format)]),key:o.key,style:t.normalizeStyle(un({fontSize:o.fontSize,color:""===e.contrastClass(n[o.key],o.format)?o.color:"",fontWeight:o.fontWeight},e.columnStyle))},t.toDisplayString((null!=o.format||""!==o.format)&&e.formatFn(n[o.key],o.format)),7)})),128))],4)})),128))],64)):(t.openBlock(),t.createElementBlock("div",gn," 暂无数据 "))]})),_:1},8,["loading"])],4)},cn.__scopeId="data-v-2d6c92c6",cn.__file="src/text/list/List.vue";var hn=nt(cn),bn=Object.assign(Object.assign({},ct),{name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px"}),yn=st(bn),kn=["refreshData","click"],xn=t.defineComponent({name:"EcanProportion",components:{AProgress:r.Progress,Skeleton:Ze},props:Object.assign({},yn),setup:function(e){var n=this,o=ft(e),r=t.computed((function(){var t=e.width;return parseFloat(t)})),a=t.ref(e.data),i=t.computed((function(){var e,n=t.unref(a);return null==n?0:100*(null!==(e=Object.values(n)[0])&&void 0!==e?e:0)})),l=t.computed((function(){var e=t.unref(a)||{};return Object.keys(e)[0]})),c=t.computed((function(){var n,o=e.text,r=t.unref(a),c=o.match(/\{.*?\}/g)||[];if(""===o)return t.unref(i)+"%";for(var s=0;s<c.length;s++){var d=c[s],u=d.slice(1,d.length-1),p="";o=null!=(p=t.unref(l)===u?t.unref(i).toFixed(2):null!==(n=r[u])&&void 0!==n?n:0)?o.replace(d,p):o.replace(d,"")}return o})),s=t.inject(vt,{pageMode:"normal"}).pageMode,d=Lt(e),u=t.ref(!1),p=function(){return at(n,void 0,void 0,rt.mark((function n(){var o,r;return rt.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(s)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,u.value=!0,n.next=6,d();case 6:r=n.sent,a.value=(null===(o=null==r?void 0:r.data)||void 0===o?void 0:o.data)||{},n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,u.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))};kt(e,{refreshData:function(){p()}});var f=xt(e.events)("click",(function(){}));return(0,t.inject(ht,{setRequest:function(e,t){}}).setRequest)(p,e.requestSort),{style:o,myWidth:r,text:c,value:i,loading:u,click:f}}});z(".ecan-proportion[data-v-4a9dae06]{overflow:hidden}.progress[data-v-4a9dae06]{height:100%;width:100%}.format[data-v-4a9dae06]{margin:0 auto}"),xn.render=function(e,n,o,r,a,i){var l=t.resolveComponent("skeleton"),c=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(c,{class:"progress",percent:e.value,width:e.myWidth,type:e.strokeType,strokeColor:e.strokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,onClick:e.click},{format:t.withCtx((function(){return[e.loading?(t.openBlock(),t.createBlock(l,{key:0,loading:e.loading},null,8,["loading"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},t.toDisplayString(e.text),5))]})),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","onClick"])],4)},xn.__scopeId="data-v-4a9dae06",xn.__file="src/text/proportion/Proportion.vue";var wn=nt(xn),An=Object.assign(Object.assign({},ct),{width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"}),Cn=st(An),Sn=t.defineComponent({name:"EcanInput",components:{AInput:r.Input},props:Object.assign({},Cn),setup:function(e){return{style:ft(e)}}});z(".input[data-v-b714c8ac]{height:100%;width:100%}"),Sn.render=function(e,n,o,r,a,i){var l=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"input",value:e.value,placeholder:e.placeholder},null,8,["value","placeholder"])],4)},Sn.__scopeId="data-v-b714c8ac",Sn.__file="src/control/input/Input.vue";var En=nt(Sn),Bn=Object.assign(Object.assign({},ct),{height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:C.default().format("YYYY-MM-DD"),picker:"date",format:"YYYY-MM-DD",showTime:!1}),On=st(Bn),jn=["dateChange"],Tn=t.defineComponent({name:"EcanDatePicker",props:Object.assign({},On),components:{ADatePicker:r.DatePicker},setup:function(e){var n=ft(e),o=t.ref(C.default(e.value));(0,t.inject(gt,{setGlobalModel:function(e,t){}}).setGlobalModel)(e.id,{type:e.type,format:e.format,value:o});var r=e.events,a=xt(r)("dateChange",(function(){}));return kt(e,{dateChange:a}),{style:n,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},myValue:o,locale:S.default,dateChange:a}}});z(".date-picker[data-v-18740e6e]{height:100%;width:100%}");z("[datav-theme=light] .ecan-date-picker .ant-picker{background-color:#fff;border:1px solid #d9d9d9;color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-date-picker .ant-picker-input>input{color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-date-picker .anticon-calendar,[datav-theme=light] .ecan-date-picker .anticon-close-circle{color:#333}[datav-theme=light] .ecan-date-picker .ant-picker-input>input::-moz-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-date-picker .ant-picker-input>input:-ms-input-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-date-picker .ant-picker-input>input::placeholder{color:#bfbfbf}[datav-theme=darkBlue] .ecan-date-picker .ant-picker{background-color:#05164c;border:1px solid #1f63a3;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ecan-date-picker .ant-picker-input>input,[datav-theme=darkBlue] .ecan-date-picker .anticon-calendar{color:#fff}[datav-theme=darkBlue] .ecan-date-picker .anticon-close-circle{color:#333}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-panel{background:#05174e;border-bottom:1px solid #69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-header{border-bottom:1px solid #69befa;color:#69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-panel .ant-picker-footer{border-top:1px solid #69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-content td,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-content th,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-header button,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-today-btn{color:#69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner{background:#1890ff}"),Tn.render=function(e,n,o,r,a,i){var l=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style)},[t.createCommentVNode(" 宽度style有效,class无效 "),t.createVNode(l,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=function(t){return e.myValue=t}),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.dateChange,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)},Tn.__scopeId="data-v-18740e6e",Tn.__file="src/control/date-picker/DatePicker.vue";var Ln=nt(Tn),Mn=Object.assign(Object.assign({},ct),{name:"选择器",keyName:"选择器",width:"120px",height:"33px",type:"ecanSelect",data:[],value:"",dataFieldNames:{label:"label",value:"value"}}),In=st(Mn),Pn=["selectChange"],Un=t.defineComponent({name:"EcanSelect",components:{ASelect:r.Select},props:Object.assign({},In),setup:function(e){var n=this,o=ft(e),r=Lt(e),a=t.inject(vt,{pageMode:"normal"}).pageMode,i=t.ref(e.data),l=t.ref(e.value||e.data[0]);(0,t.inject(gt,{setGlobalModel:function(e,t){}}).setGlobalModel)(e.id,{type:e.type,value:l});var c=e.events,s=xt(c)("selectChange");return kt(e,{selectChange:s}),(0,t.inject(ht,{setRequest:function(e,t){}}).setRequest)((function(){return at(n,void 0,void 0,rt.mark((function n(){var o,c,s,d;return rt.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(a)){n.next=2;break}return n.abrupt("return");case 2:return n.next=4,r();case 4:s=n.sent,i.value=(null===(c=null===(o=null==s?void 0:s.data)||void 0===o?void 0:o.data)||void 0===c?void 0:c.rows)||[],d=t.unref(i)[0],""===e.value&&null!=d&&(l.value=d[e.dataFieldNames.value]);case 8:case"end":return n.stop()}}),n)})))}),e.requestSort),{style:o,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},myValue:l,selectChange:s,options:i}}});z(".ecan-select[data-v-b6743858] [data-v-b6743858] .ant-select-selector{height:100%!important}.select[data-v-b6743858]{height:100%;width:100%}");z("[datav-theme=light] .ant-select:not(.ant-select-customize-input) .ant-select-selector{border:1px solid #d9d9d9}[datav-theme=light] .ant-select-dropdown{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15);color:rgba(0,0,0,.85)}[datav-theme=light] .ant-empty-img-simple-g{stroke:#d9d9d9}[datav-theme=light] .ant-empty-img-simple-ellipse{fill:#f5f5f5}[datav-theme=light] .ant-empty-img-simple-path{fill:#f5f5f5;stroke:#d9d9d9}[datav-theme=light] .ant-empty-description{color:rgba(0,0,0,.25)}[datav-theme=light] .anticon-down{color:#333}[datav-theme=darkBlue] .ant-select:not(.ant-select-customize-input) .ant-select-selector{background-color:#05164c;border:1px solid #1f63a3;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ant-select-dropdown{background-color:#05164c;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ant-empty-img-simple-g{stroke:#69befa}[datav-theme=darkBlue] .ant-empty-img-simple-ellipse{fill-opacity:0}[datav-theme=darkBlue] .ant-empty-img-simple-path{fill:#69befa;stroke:#69befa}[datav-theme=darkBlue] .ant-empty-description{color:#69befa}[datav-theme=darkBlue] .ant-select-item,[datav-theme=darkBlue] .anticon-down{color:#fff}[datav-theme=darkBlue] .ant-select-item-option-active,[datav-theme=darkBlue] .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background:#1f63a3}"),Un.render=function(e,n,o,r,a,i){var l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.myValue,"onUpdate:value":n[0]||(n[0]=function(t){return e.myValue=t}),options:e.options,getPopupContainer:e.getPopupContainer,"field-names":e.dataFieldNames,onChange:e.selectChange},null,8,["value","options","getPopupContainer","field-names","onChange"])],4)},Un.__scopeId="data-v-b6743858",Un.__file="src/control/select/Select.vue";var Nn=nt(Un),Rn=Object.assign(Object.assign({},ct),{name:"范围选择器",keyName:"范围选择器",type:"ecanRangePicker",width:"200px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:""}),Vn=st(Rn),zn=["dateChange"],Dn=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:r.RangePicker},props:Object.assign({},Vn),setup:function(e){var n=ft(e),o=e.startTime,r=e.endTime,a=t.ref([null,null]);t.watch((function(){return[o,r]}),(function(){a.value=o&&r?[C.default(o),C.default(r)]:[null,null]}),{immediate:!0});var i=t.inject(gt,{setGlobalModel:function(e,t){}}).setGlobalModel,l=t.computed((function(){return t.unref(a)[0]})),c=t.computed((function(){return t.unref(a)[1]}));i(e.id,{type:e.type,format:e.format,startTime:l,endTime:c});var s=e.events,d=xt(s)("dateChange",(function(){}));return kt(e,{dateChange:d}),{style:n,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},locale:S.default,dateChange:d,myValue:a}}});z(".range-picker[data-v-9eb3e236]{height:100%;width:100%}");z("[datav-theme=light] .ecan-range-picker .ant-picker{background-color:#fff;border:1px solid #d9d9d9;color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-range-picker .ant-picker-input>input{color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-range-picker .anticon-calendar,[datav-theme=light] .ecan-range-picker .anticon-close-circle{color:#333}[datav-theme=light] .ecan-range-picker .ant-picker-input>input::-moz-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-range-picker .ant-picker-input>input:-ms-input-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-range-picker .ant-picker-input>input::placeholder{color:#bfbfbf}[datav-theme=light] .ecan-range-picker .ant-picker-separator .anticon{color:#333}[datav-theme=darkBlue] .ecan-range-picker .ant-picker{background-color:#05164c;border:1px solid #1f63a3;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ecan-range-picker .ant-picker-input>input,[datav-theme=darkBlue] .ecan-range-picker .anticon-calendar{color:#fff}[datav-theme=darkBlue] .ecan-range-picker .anticon-close-circle{color:#333}[datav-theme=darkBlue] .ecan-range-picker .ant-picker-separator .anticon{color:#fff}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-panel{background:#05174e;border-bottom:1px solid #69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-header{border-bottom:1px solid #69befa;color:#69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-panel .ant-picker-footer{border-top:1px solid #69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-content td,[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-content th,[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-header button,[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-today-btn{color:#69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-cell-disabled .ant-picker-cell-inner{color:#999}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-cell-disabled:before{background:#333}"),Dn.render=function(e,n,o,r,a,i){var l=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=function(t){return e.myValue=t}),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,onChange:e.dateChange},null,8,["value","format","picker","locale","getPopupContainer","onChange"])],4)},Dn.__scopeId="data-v-9eb3e236",Dn.__file="src/control/range-picker/RangePicker.vue";var Fn=nt(Dn),qn=Object.assign(Object.assign({},ct),{width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton"}),Wn=st(qn),Yn=["click"],Gn=t.defineComponent({name:"EcanButton",components:{AButton:r.Button},props:Object.assign({},Wn),setup:function(e){var t=ft(e),n=e.events;return{style:t,click:xt(n)("click")}}}),Jn=t.createTextVNode(" 测试 ");z(".button[data-v-34f909d8]{height:100%;width:100%}"),Gn.render=function(e,n,o,r,a,i){var l=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"button",block:"",onClick:e.click},{default:t.withCtx((function(){return[Jn]})),_:1},8,["onClick"])],4)},Gn.__scopeId="data-v-34f909d8",Gn.__file="src/control/button/Button.vue";var Kn=nt(Gn),Qn=Object.assign(Object.assign({},ct),{type:"ecanTabs",name:"标签页",keyName:"标签页",width:"200px",tabFontSize:"14px",backgroundColor:"",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"0px",value:"",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}]}),_n=st(Qn),Zn=["tabChange"],Xn=t.defineComponent({name:"EcanTabs",props:Object.assign({},_n),setup:function(e){var n,o=ft(e),r=t.ref(0),a=t.ref(e.data),i=t.ref(e.value||t.unref(a)[0]&&(null===(n=t.unref(a)[0])||void 0===n?void 0:n.value)||""),l=e.events,c=xt(l)("tabChange",(function(e,t){i.value=(null==e?void 0:e.value)||"",r.value=t}));return(0,t.inject(gt,{setGlobalModel:function(e,t){}}).setGlobalModel)(e.id,{value:i}),kt(e,{tabChange:c}),{style:o,activeKey:r,isActive:function(e){return r.value===e},tabChange:c,myData:a,useImagePath:Ut}}}),Hn=["onClick"];z(".ecan-tabs[data-v-28df6758]{box-sizing:border-box;color:#333;display:flex}.tab[data-v-28df6758]{align-items:center;background-repeat:no-repeat;background-size:100% 100%;display:flex;flex:1;justify-content:center}.tab[data-v-28df6758]:last-child{margin-right:0!important}"),Xn.render=function(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(function(n,o){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["tab"]),style:t.normalizeStyle({color:e.isActive(o)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(o)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabBarGutter,fontSize:e.tabFontSize}),key:o,onClick:function(t){return e.tabChange(n,o)}},t.toDisplayString(n.title),13,Hn)})),128))],4)},Xn.__scopeId="data-v-28df6758",Xn.__file="src/control/tabs/Tabs.vue";var $n=nt(Xn),eo=Object.assign(Object.assign({},ct),{id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{b} : {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value"}),to=st(eo),no=["click","refreshData"];n.use([g.CanvasRenderer,h.PieChart,b.TitleComponent,b.TooltipComponent,b.LegendComponent]);var oo=t.defineComponent({name:"EcanPie",props:Object.assign({},to),components:{Spin:Qe,Echarts:q},setup:function(e){var n=this,o=ft(e),r=t.ref([]),a=t.computed((function(){var n=(t.unref(r)[0]||{}).data,o=void 0===n?[]:n;if(Array.isArray(e.colors)){var a=e.isUseLabelColors,i=e.colors;o=o.map((function(e,t){return Object.assign({label:a?{color:i[t]}:{}},e)}))}return{title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:Bt(e.tooltipFormatter),textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor}},color:e.colors,series:[{data:o,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,label:{show:"center"!==e.labelPosition&&e.labelShow,color:e.labelColor,fontSize:e.labelFontSize,position:e.labelPosition,formatter:Bt(e.labelFormatter)},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}})),i=t.inject(gt,{getGlobalModel:function(e){},setGlobalModel:function(e,t){}}),l=i.getGlobalModel,c=i.setGlobalModel,s=t.inject(vt,{pageMode:"normal"}).pageMode,d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=Ct(e,t),o=n.dataset;r.value=o};t.watch((function(){return e.data}),(function(n){"static"!==e.dataType&&"design"!==t.unref(s)||d(n)}),{immediate:!0,deep:!0});var u=t.ref(!1),p=Lt(e),f=function(){return at(n,void 0,void 0,rt.mark((function n(){var o,r,a;return rt.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(s)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,u.value=!0,n.next=6,p();case 6:a=n.sent,d(null===(r=null===(o=null==a?void 0:a.data)||void 0===o?void 0:o.data)||void 0===r?void 0:r.rows,e.valueTypeDataFieldNames),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,u.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},m=xt(e.events)("click",(function(t){var n=e.id,o=l(n);c(n,Object.assign(Object.assign({},o),{RECORD:null==t?void 0:t.data}))}));return kt(e,{refreshData:function(){f()},click:m}),(0,t.inject(ht,{setRequest:function(e,t){}}).setRequest)(f,e.requestSort),{option:a,style:o,click:m,loading:u}}});oo.render=function(e,n,o,r,a,i){var l=t.resolveComponent("echarts"),c=t.resolveComponent("spin");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx((function(){return[t.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},oo.__file="src/graph/pie/Pie.vue";var ro=nt(oo),ao=Object.assign(Object.assign({},ct),{id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234},{name:"名称四",value:135},{name:"名称五",value:1548}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value"}),io=st(ao),lo=["click","refreshData"];n.use([g.CanvasRenderer,h.LineChart,b.TitleComponent,b.LegendComponent]);var co=t.defineComponent({name:"EcanLine",props:Object.assign({},io),components:{Spin:Qe,Echarts:q},setup:function(e){var n=this,o=ft(e),r=t.ref([]),a=t.ref([]),i=t.computed((function(){return{title:{text:e.titleText,subText:e.titleSubtext,left:"center"},color:e.colors,xAxis:{type:"category",data:t.unref(a),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{trigger:"axis"},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft},series:t.unref(r)}})),l=t.inject(gt,{getGlobalModel:function(e){},setGlobalModel:function(e,t){}}),c=l.getGlobalModel,s=l.setGlobalModel,d=t.inject(vt,{pageMode:"normal"}).pageMode,u=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===e.dataFieldConfigType){var i=o?e.keyTypeDataFieldNames:null;t=Pt(n,i)}else if("value"===e.dataFieldConfigType){var l=o?e.valueTypeDataFieldNames:null;t=Ct(n,l)}a.value=t.dimensions;for(var c=t.dataset,s=[],d=c.length,u=0;u<d;u++)s.push(Object.assign(Object.assign({type:"line"},c[u]),{symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}}));r.value=s};t.watch((function(){return[e.data,e.symbolSize,e.smooth,e.lineStyleWidth]}),(function(n){var o=N(n,1)[0];"static"!==e.dataType&&"design"!==t.unref(d)||u(o)}),{immediate:!0,deep:!0});var p=t.ref(!1),f=Lt(e),m=function(){return at(n,void 0,void 0,rt.mark((function n(){var o,r,a;return rt.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(d)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,p.value=!0,n.next=6,f();case 6:a=n.sent,u(null===(r=null===(o=null==a?void 0:a.data)||void 0===o?void 0:o.data)||void 0===r?void 0:r.rows,!0),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,p.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},v=xt(e.events)("click",(function(t){var n=e.id,o=c(n);s(n,Object.assign(Object.assign({},o),{RECORD:null==t?void 0:t.data}))}));return kt(e,{refreshData:function(){m()},click:v}),(0,t.inject(ht,{setRequest:function(e,t){}}).setRequest)(m,e.requestSort),{option:i,style:o,click:v,loading:p}}});co.render=function(e,n,o,r,a,i){var l=t.resolveComponent("echarts"),c=t.resolveComponent("spin");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx((function(){return[t.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},co.__file="src/graph/line/Line.vue";var so,uo,po=nt(co);!function(e){e.Vchart="1",e.DataV="2",e.EMS="3"}(so||(so={})),function(e){e.Table="1",e.Graph="2"}(uo||(uo={}));var fo={plugin:so.Vchart,dataSourceId:"",relatedList:[]},mo=Object.assign(Object.assign({},ct),{id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",diagramParam:Object.assign({source:"INDICATOR_LIB",layer:uo.Graph,chartType:"histogram",idxLibMode:"NORMAL_YEAR_TABLE"},fo)}),vo=st(mo),go=["refreshData","click"];function ho(e){var t=e.diagramParam,n=t.layer,o=t.plugin,r=t.source,a=t.chartType,i=t.dataViewId,l=void 0===i?"":i,c=t.dataSourceId,s=void 0===c?"":c,d=t.idxLibMode,u=void 0===d?"NORMAL_YEAR_TABLE":d,p=t.sqlConditions,f=void 0===p?[]:p,m=t.cards,v=void 0===m?[]:m,g={};return g.source=r,"INDICATOR_LIB"===g.source?(g.dataSourceId=s,g.idxLibMode=u,g.dataViewId=l):"SQL_VIEW"===r&&(g.dataViewId=l,g.idxLibMode=u,g.dataSourceId=s),v.forEach((function(e){var t,n=g.indicatorList||[];if(0!==(null===(t=e.arrData)||void 0===t?void 0:t.length))switch(e.type){case"classification":e.arrData.length>1?g.classifications=e.arrData.map((function(e){return{label:e.label,columnName:e.name,rangeIndexTypeGuid:e.rangeIndexTypeGuid}})):e.arrData.length>0?g.classification={label:e.arrData[0].label,columnName:e.arrData[0].name,rangeIndexTypeGuid:e.arrData[0].rangeIndexTypeGuid}:0===e.arrData.length&&(g.classification={});break;case"series":g.series={label:e.arrData[0].label,columnName:e.arrData[0].name,rangeIndexTypeGuid:e.arrData[0].rangeIndexTypeGuid,conditions:[],customFilterSqlPart:""};break;case"indicatorLeft":case"indicatorRight":g.indicatorList=e.arrData.map((function(t){return{label:t.label,columnName:t.name,aggregate:"SUM",location:e.type.replace("indicator","").toUpperCase(),calcType:"COLUMN",hrpIndexCode:t.indexCode}})).concat(n);break;case"rowHeaders":g.rowHeaders=e.arrData.map((function(e){return{label:e.label,columnName:e.label,rangeIndexTypeGuid:e.rangeIndexTypeGuid,customFilterSqlPart:e.filterSql||"",conditions:[],sort:{label:e.label}}}))}})),{requestDiagram:function(){return at(this,void 0,void 0,rt.mark((function e(){return rt.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w.default({baseURL:"http://59.56.182.79:9192/api/",url:"diagram",method:"POST",headers:{Authentication:"f24951816ac99e204fe62e1181a6d21556d4471474b60366a6b465b7e00c9d49055c1ed753d8f07065d31bce7405a045888d7a52062b002327eec99fe7957af91eabc9d955afe397b3a2fbe012251f1753c38874b8a3ceb79cc327688f545788bf45a23f69daf21546108e08b3b6022e0a88c25d0f0ffb2ed054315bdd4a2f9a9b3d3060857d6158dea42be67488d82149fa37f5fcc491ca75cd399201131c1b"},data:Object.assign({layer:n,plugin:o,chartType:a,dataViewId:l,dataSourceId:s,sqlConditions:f},g)});case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0),console.error(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))}}}n.use([g.CanvasRenderer,h.BarChart,b.TitleComponent,b.LegendComponent,b.DatasetComponent]);var bo=t.defineComponent({name:"EcanBar",props:Object.assign({},vo),components:{Spin:Qe,Echarts:q},setup:function(e){var n=this,o=ft(e),r=t.ref([]),a=t.ref([]),i=t.ref(!1),l=t.computed((function(){return{title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:Bt(e.tooltipFormatter),textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor}},xAxis:{type:"category",data:t.unref(a),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},series:t.unref(r)}})),c=t.inject(vt,{pageMode:"normal"}).pageMode,s=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===e.dataFieldConfigType){var i=o?e.keyTypeDataFieldNames:null;t=Pt(n,i)}else if("value"===e.dataFieldConfigType){var l=o?e.valueTypeDataFieldNames:null;t=Ct(n,l)}var c=t.dataset;a.value=t.dimensions;for(var s=[],d=c.length,u=0;u<d;u++)s.push(Object.assign({type:"bar"},c[u]));r.value=s},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=n?t:null,i=Pt(e,o),l=i.dataset;a.value=i.dimensions;for(var c=[],s=l.length,d=0;d<s;d++)c.push(Object.assign({type:"bar"},l[d]));r.value=c};t.watch((function(){return e.data}),(function(n){"static"!==e.dataType&&"design"!==t.unref(c)||s(n)}),{immediate:!0,deep:!0});var u=Lt(e),p=ho(e).requestDiagram,f=function(){"design"!==t.unref(c)&&(at(n,void 0,void 0,rt.mark((function n(){var o,r,a,l,s,u,f;return rt.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("indicator"===e.dataType&&"design"!==t.unref(c)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,i.value=!0,n.next=6,p();case 6:u=n.sent,(null===(a=null===(r=null===(o=null==u?void 0:u.data)||void 0===o?void 0:o.data)||void 0===r?void 0:r.columns)||void 0===a?void 0:a.length)>0&&(f={name:u.data.data.columns[0],types:u.data.data.columns.slice(1).map((function(e){return{label:e,value:e}}))}),d(null===(s=null===(l=null==u?void 0:u.data)||void 0===l?void 0:l.data)||void 0===s?void 0:s.rows,f,!0),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(2),console.error(n.t0);case 14:return n.prev=14,i.value=!1,n.finish(14);case 17:case"end":return n.stop()}}),n,null,[[2,11,14,17]])}))),at(n,void 0,void 0,rt.mark((function n(){var o,r,a;return rt.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("---"),"request"===e.dataType&&"design"!==t.unref(c)){n.next=3;break}return n.abrupt("return");case 3:return n.prev=3,i.value=!0,n.next=7,u();case 7:a=n.sent,s(null===(r=null===(o=null==a?void 0:a.data)||void 0===o?void 0:o.data)||void 0===r?void 0:r.rows,!0),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(3),console.error(n.t0);case 14:return n.prev=14,i.value=!1,n.finish(14);case 17:case"end":return n.stop()}}),n,null,[[3,11,14,17]])}))))},m=function(){f()},v=xt(e.events),g=t.inject(gt,{getGlobalModel:function(e){},setGlobalModel:function(e,t){}}),h=g.getGlobalModel,b=g.setGlobalModel,y=v("click",(function(t){var n=e.id,o=h(n);b(n,Object.assign(Object.assign({},o),{RECORD:null==t?void 0:t.data}))}));return(0,t.inject(ht,{setRequest:function(e,t){}}).setRequest)(f,e.requestSort),kt(e,{refreshData:m,click:y}),{option:l,style:o,refreshData:m,click:y,loading:i}}});bo.render=function(e,n,o,r,a,i){var l=t.resolveComponent("echarts"),c=t.resolveComponent("spin");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx((function(){return[t.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},bo.__file="src/graph/bar/Bar.vue";var yo=nt(bo),ko=Object.assign(Object.assign({},ct),{id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",dataFieldNames:{name:"name",value:"value"}}),xo=st(ko),wo=["click","refreshData"];n.use([g.CanvasRenderer,h.ScatterChart,b.TitleComponent,b.TooltipComponent,b.LegendComponent]);var Ao=t.defineComponent({name:"EcanScatter",props:Object.assign({},xo),components:{Spin:Qe,Echarts:q},setup:function(e){var n=this,o=ft(e),r=t.ref([]),a=t.computed((function(){return{title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:function(t){var n,o,r=null!==(o=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.record)&&void 0!==o?o:{};return Nt(e.tooltipFormatter,r)},axisPointer:{type:"cross"}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft},series:[{data:t.unref(r),type:"scatter",symbolSize:e.symbolSize}]}})),i=t.inject(gt,{getGlobalModel:function(e){},setGlobalModel:function(e,t){}}),l=i.getGlobalModel,c=i.setGlobalModel,s=t.inject(vt,{pageMode:"normal"}).pageMode,d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t||{},o=n.name,a=void 0===o?"name":o,i=n.value,l=void 0===i?"value":i;r.value=e.map((function(e){return{value:[e[a],e[l]],record:e}}))};t.watch((function(){return e.data}),(function(n){"static"!==e.dataType&&"design"!==t.unref(s)||d(n)}),{immediate:!0,deep:!0});var u=t.ref(!1),p=Lt(e),f=function(){return at(n,void 0,void 0,rt.mark((function n(){var o,r,a;return rt.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(s)){n.next=2;break}return n.abrupt("return");case 2:return u.value=!0,n.prev=3,n.next=6,p();case 6:a=n.sent,d(null===(r=null===(o=null==a?void 0:a.data)||void 0===o?void 0:o.data)||void 0===r?void 0:r.rows,e.dataFieldNames),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(3),console.error(n.t0);case 13:return n.prev=13,u.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[3,10,13,16]])})))},m=xt(e.events)("click",(function(t){var n=e.id,o=l(n);c(n,Object.assign(Object.assign({},o),{RECORD:null==t?void 0:t.data}))}));return kt(e,{refreshData:function(){f()},click:m}),(0,t.inject(ht,{setRequest:function(e,t){}}).setRequest)(f,e.requestSort),{option:a,style:o,click:m,loading:u}}});Ao.render=function(e,n,o,r,a,i){var l=t.resolveComponent("echarts"),c=t.resolveComponent("spin");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx((function(){return[t.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},Ao.__file="src/graph/scatter/Scatter.vue";var Co=nt(Ao),So=Object.assign(Object.assign({},ct),{id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""}),Eo=st(So),Bo=t.defineComponent({name:"EcanCustomGraph",props:Object.assign({},Eo),components:{Echarts:q},setup:function(e){var n=ft(e),o=t.ref();return t.watch((function(){return e.optionCode}),(function(e){try{var t=eval;o.value=t(e)}catch(e){console.error(e)}}),{immediate:!0}),{style:n,myOption:o,echarts:E}}});Bo.render=function(e,n,o,r,a,i){var l=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)},Bo.__file="src/graph/custom-graph/CustomGraph.vue";var Oo=nt(Bo),jo=Object.assign(Object.assign({},ct),{id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:["bar","line"]}),To=st(jo),Lo=["refreshData","click"];n.use([g.CanvasRenderer,h.BarChart,h.LineChart,b.TitleComponent,b.LegendComponent,b.DatasetComponent]);var Mo=t.defineComponent({name:"EcanComboGraph",props:Object.assign({},To),components:{Spin:Qe,Echarts:q},setup:function(e){var n=this,o=ft(e),r=t.ref([]),a=t.ref([]),i=t.computed((function(){return{title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:Bt(e.tooltipFormatter),textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor}},xAxis:{type:"category",data:t.unref(a),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},series:t.unref(r)}})),l=t.inject(vt,{pageMode:"normal"}).pageMode,c=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===e.dataFieldConfigType){var i=o?e.keyTypeDataFieldNames:null;t=Pt(n,i)}else if("value"===e.dataFieldConfigType){var l=o?e.valueTypeDataFieldNames:null;t=Ct(n,l)}a.value=t.dimensions;for(var c=t.dataset,s=[],d=c.length,u=e.seriesTypes,p=0;p<d;p++)s.push(Object.assign({type:u[p]},c[p]));r.value=s};t.watch((function(){return[e.data,e.seriesTypes]}),(function(n){var o=N(n,1)[0];"static"!==e.dataType&&"design"!==t.unref(l)||c(o)}),{immediate:!0,deep:!0});var s=t.ref(!1),d=Lt(e),u=function(){return at(n,void 0,void 0,rt.mark((function n(){var o,r,a;return rt.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(l)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,s.value=!0,n.next=6,d();case 6:a=n.sent,c(null===(r=null===(o=null==a?void 0:a.data)||void 0===o?void 0:o.data)||void 0===r?void 0:r.rows,!0),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,s.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},p=xt(e.events),f=t.inject(gt,{getGlobalModel:function(e){},setGlobalModel:function(e,t){}}),m=f.getGlobalModel,v=f.setGlobalModel,g=p("click",(function(t){var n=e.id,o=m(n);v(n,Object.assign(Object.assign({},o),{RECORD:null==t?void 0:t.data}))}));return(0,t.inject(ht,{setRequest:function(e,t){}}).setRequest)(u,e.requestSort),kt(e,{refreshData:function(){u()},click:g}),{style:o,option:i,click:g,loading:s}}});Mo.render=function(e,n,o,r,a,i){var l=t.resolveComponent("echarts"),c=t.resolveComponent("spin");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx((function(){return[t.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},Mo.__file="src/graph/combo-graph/ComboGraph.vue";var Io=nt(Mo),Po=Object.assign(Object.assign({},ct),{name:"边框",keyName:"边框",type:"ecanBorder",width:"450px",height:"450px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"top-title"}),Uo=st(Po),No=["click"],Ro=t.defineComponent({name:"EcanBorder",props:Object.assign({},Uo),setup:function(e){var t=ft(e),n=xt(e.events)("click",(function(){}));return kt(e,{click:n}),{style:t,click:n}}}),Vo=function(e){return t.pushScopeId("data-v-af8a0f90"),e=e(),t.popScopeId(),e},zo={key:0,class:"top-title"},Do={class:"title-item-wrapper"},Fo={class:"title-item"},qo=Vo((function(){return t.createElementVNode("img",{class:"title-decoration-left",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII="},null,-1)})),Wo={class:"title"},Yo=Vo((function(){return t.createElementVNode("img",{class:"title-decoration-right",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg=="},null,-1)})),Go=Vo((function(){return t.createElementVNode("div",{class:"top-left border-item"},null,-1)})),Jo=Vo((function(){return t.createElementVNode("div",{class:"top-right border-item"},null,-1)})),Ko=Vo((function(){return t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)})),Qo=Vo((function(){return t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)})),_o={key:1,class:"no-title"},Zo=[Vo((function(){return t.createElementVNode("div",{class:"top-left border-item"},null,-1)})),Vo((function(){return t.createElementVNode("div",{class:"top-right border-item"},null,-1)})),Vo((function(){return t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)})),Vo((function(){return t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)}))],Xo={key:2,class:"only-border"},Ho={key:3,class:"left-title"},$o={class:"title"};z('.no-title[data-v-af8a0f90],.top-title[data-v-af8a0f90]{background:rgba(7,22,85,.8);border:1px solid rgba(55,85,218,.3);box-sizing:border-box;height:100%;position:relative;width:100%}.no-title[data-v-af8a0f90] .border-item[data-v-af8a0f90],.top-title[data-v-af8a0f90] .border-item[data-v-af8a0f90]{border-color:#50fcfc;border-style:solid;height:11px;position:absolute;width:13px;z-index:2}.no-title[data-v-af8a0f90] .top-left[data-v-af8a0f90],.top-title[data-v-af8a0f90] .top-left[data-v-af8a0f90]{border-width:1px 0 0 1px;left:0;top:0}.no-title[data-v-af8a0f90] .top-right[data-v-af8a0f90],.top-title[data-v-af8a0f90] .top-right[data-v-af8a0f90]{border-width:1px 1px 0 0;right:-2px;top:0}.no-title[data-v-af8a0f90] .bottom-left[data-v-af8a0f90],.top-title[data-v-af8a0f90] .bottom-left[data-v-af8a0f90]{border-width:0 0 1px 1px;bottom:-2px;left:0}.no-title[data-v-af8a0f90] .bottom-right[data-v-af8a0f90],.top-title[data-v-af8a0f90] .bottom-right[data-v-af8a0f90]{border-width:0 1px 1px 0;bottom:-2px;right:-2px}.no-title[data-v-af8a0f90] .title-item-wrapper[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-item-wrapper[data-v-af8a0f90]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcgAAAAsCAMAAADW3dj4AAAAVFBMVEUIKbkAAAAAqv8IL70AovwAnfAAlvEGQsUIOcEAkewGfuQGR8gAg+YIPMMFd+AEadkEXtQAi+sEYtcGTcsFcd4INL8DWdEGUc4EbNsAiOkHVdAIK7o5DngbAAAAHHRSTlNmAAVmCxAVWmEaK1YmXjA8RR5BUjRjSU84IkxfPwrt7wAABlFJREFUeNrMmQtW20AMRWlrJ9R8TCgJ0O5/nxVHIRrNRSgTZwJvJs4C7rnWx1f/FuXug6zXcpmbKn9cng/5e8jO5aHMo8+MvLznyefeZapzW+a1yIb57bJCxg8zhPkZ50eeq6PyK8q2yPX2usqdpYZ7Q7IVWKLdlWhLqhVYItUQqCUgCqZA6UKYJc5BrrIEw7ej/4QoR556uoI0kgTpUBKm5ygXJOkoQYLjowM5H0DKOYDUYxzlGkXhOBUU5RxAyjGQcgqKwlEetZU1TOE1gqOilOgTLC9rpA9J1oGRGchdaKShnE8wcpILIadjjNwUGKnkWCkpGNVIvVQywCi/9yO3A0hJKqRxhJI33kln5HO7kcZSzlFG3sNIU9IbqUmNlMM6KQ8aSYbBe5VC9gdJkj5nNPKBRhrG5Ube1oGQcY00lqMeC2skcUYs9fQCuZVbJFFSj2FsNnKXGzmfYOQkP18jqWRuJJWkkYMqORKiCUmWANgDJLrWhhK5TrrWBiPDpvUlN9JjzJtWi+MY1kgo+amQA3WUv65G5t1OKKRyPKORzsmga30Ka2Ri5OseJY303Y6ct4u21VEMu1aFSCkBsDPI/NXKCrnIyGT+MIypklNoJF+tkZGG09fIVd3qyPG9jglpMJnuNRIYkxrZ3cj5yDnSKUkjo5erF3LjjURGq5Fc7pBlTvBCr1YEPl7KyGxbxxcrlIzmjyKRjxZ0rXpcIKT8UCMV53cYP9Z36RzpnAxXdET5iBrpMc7NRhpHdjty4znSMVxspNFUhh2bnYaNQLJGN4jJii43Mt2f5zXSMCZG0smkad0fubGS5LhXUm+PGukCklzseIw0csEcaUJiikzmyHTX2mYkx0i0rTQyZmhKXmhpnjc7+L6VbHYW1MjFu1YLSMZdq651YOQKRoKi3+wMgZJyu4FsWLYCY2uNpJFWJJfMkdzs1CXSL1vjOZJGYknHQVJhxl1rsRD4NkbWHH0aulYvJDY7MFLTstmZ+BUrN/LtmpU2RcZG5kXSEKqUX7/ZSedIJ2QGctdopKRpsxMtzRuNxKdlGsntHHNRI9nrNH79oJLtRs5yTUnsWi1djFyha02NpJJIIWTM8oLTRzpHuqRGgmObkYWS06lG8utHlVGPyxH78sEYQsjuIHOSbFmh5Ek1kigtMNKy0Mh8jFSEEBJzZCqknyS7g8yX5oGQ5zVyxvQRGgmU5MjNjhwn5MZPkUaSLGkkv34Qoz47G7lN363xFAkfF9RItq3pHJkaic1OViJpJNqdgSsBGhm3rfL/9a/W/92c3UrDQBSEQUK8EJTSCvb9X9RgL8bli7M7dk8NDnmDw8ecn9k8o5Qkcvumz5ECUkQCSZRydI484SAJjzRABl3rkTyylkhaJIk0y1aWMSRy3b1HMnsFj+xldmSNtpbFVyxp7Pgh/X6OFJKTiLzeQSQTyuBxjEjcP0rHD++RYjII0aVz5HDS/DKfyHW1a3PV06foFiK5fSVESvGu1a9aXybMkW/wyHSzw1qyaxWRLKVwZM68Z5LL/vlDMD5w/JBApAvRBfdIEum61vwe2RaxTyTDV+KR2vNIdazWJP+5R7ZN6/ZhjIwTAkDSEenjkB7JfvBqYkDZ1NED6SMC93ukZDYCtmvVkg5I2s2OiPRPBijRGBG56SDjh5CESc4gUsIcOZTZkfxmB12rAZLXDyJJKBeD5BGanV7S/Byt6AyQzfEj3uzkRApI+CS7Vk+kFB8kS/PJkUmeR5fmRJJEqpSzPZJEZkjyGgkg26YVEYH6OfIdQNZ5pCdSKiaSQJq+1RBpm52Gwz9fCHCOfIhHfniPlGKPzInUdq4VcGRB+wnlioCAP2NJFR5JJH3TKiJf8WK5nxAwXasjktVEzJxrgVoik1xrEZF8jDXUtV6C64cqeWKwlXlIAunjkFrs3D4IR6zae2R/ISAVECkBSJNr5WbHB5Q9jwTSeSRXrQ7IJzWtFUR+L6QnEik6IWm61tQj30bukUTSlBLnyD6RQtIQSSxdHW9IFhKZeCQHyeldKyM7d75Y5hmLRArJ/c3OOpRP9pX8QvIQ90i+/ZCqdq30yB+B9JmdK7tWEcmuVTwKSUdke1NemNghkizk7D+YkT3C5z0RZctMkbMjSZQciJJIlLo/vaKW/Rc8IhJAtgsBp08PATOql6UCVwAAAABJRU5ErkJggg==");background-size:cover;display:grid;padding:5px 0;place-content:center;width:100%}.no-title[data-v-af8a0f90] .title-item[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-item[data-v-af8a0f90]{align-items:center;display:flex}.no-title[data-v-af8a0f90] .title[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title[data-v-af8a0f90]{-webkit-text-fill-color:transparent;background:linear-gradient(0deg,#01aaff,#00eaff);-webkit-background-clip:text;color:#d5fdfd;padding:0 17px}.no-title[data-v-af8a0f90] .title-decoration-left[data-v-af8a0f90],.no-title[data-v-af8a0f90] .title-decoration-right[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-decoration-left[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-decoration-right[data-v-af8a0f90]{height:14px;width:58px}.left-title[data-v-af8a0f90],.only-border[data-v-af8a0f90]{border:2px solid #375a8899;border-radius:8px;height:100%;width:100%}.left-title[data-v-af8a0f90]{position:relative}.left-title[data-v-af8a0f90] .title[data-v-af8a0f90]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAADCCAMAAADw6ltxAAACr1BMVEUAAAAhVZMcU4ocU4ocU4kcU4ocU4gbUogcU4kcU4kcU4obU4ocU4kcVIocUoUcUYYcUogcVYwcU4kiXpAcU4ocUokcU4ocVIsbU4ocUYYcUokcU4klXo4cUYYcU4ocVIshVZgbUoccVIocVIwcU4kcVIscVIwdU4gcUYYcU4ocU4kcUokcVIwbUokcUYUbVIodU4scVIscWJEcUogdU4scU4scUogcU4kcUogcVIsdUokcUYccU4kcU4ocVIwcU4sbUogcUogcVIscUokbU4wcUYccU4ccU4ocVI0cUogcU4scVIscU4gcVIsdU4kcVIkbU4kcVYscVIwcVIwcVY0cUogcUogbUIQbUokcUYcdVYocUogcVYwcUoccVY0cVo4cU4kcVo4cU4kcUoYcVYwcUYYcT4McUoYcU4wcVIocUoobUogcVIwcVI0bUogcUYQrVZUeWY8cUogcVIscVIkdUoccVY4cVIwcVo4bVo8cVIwdVYwcVo4cVYsdVYscVY0dVowdWZUArM4Am7MeW5EeV48eVY4bUokeWpccUIUcU4gRWqYErc4dV44cUIYgV40cVIwdVY0eVowXV50cUogRWqYRWaYErc4RWqYgV40QWqYRWqYErc4QWqYeV40Drc8ZWpwErM0Ers0ZW58gYJMdTYQiYpQFrs4eWJAVWJ4iWIwVWZ4nbJsRWqYgWZIErc8Ers4fWo8hXZQSWqYRWaYQWqceU4oQWqUtdaMErc0Erc4iYZgeWJIgZ5gDrc4lZZgcUoUcV5AcU4gcUoccVIkcUIIcVYwcUIQcVo0cU4ocWJEcUYUcWZEdVYscVo4cV48cVIscUYIRWqYcVY4cWI8cVooErc4cU4scV5IcWZMcVYcdXJIeV4wgXJQeWZEcTYEeYJQhZpsgYZYfY5gfbJ4M+CoSAAAAwHRSTlMAD7fQ0qPm1820/KfVr/Dj2vDjCvrJvauW6cObDebAugfgy6j0rJuO7dzZxpWMhbGZ8/DwoIR8/d7Iu/LsxZKQgfXsuZ747tevkYj39/Xx7+nEwrSiivrp39XOv75z+/n48ZR4/fHr3X/eysKxpp6JDPbo5+Gg9/Glne/k/fjRq5k0DgP7mHxvK/iu8O/j3Nh5YFAR/fji39LRvqKAcmpbQzogGffw7qKLVyUf8+3QyMK3mZCJXUg+9vLx4tvPmG19FZIlAAALrUlEQVRYw4ST22pTQRiF01vvxBfoM+QRfAN9ACWP4J2XmqIUqogtPdCDPYFVxLPiWZkahskwe/6QmZ3szSYhhz6I65/pbhOQ5CfsPTBf1qw1K6lMzs5aZc6sbBzMI9rtj4vziPbW/VnEy9dA1veWZiDH223M9qtZMnvrQFY+z0KWt1hmZu7FT4zMzv1lA8hl7gf/0VvYaU/krj4+mJO7qq68mL7H3/Xp3DXV7f5aniQebR5O5b5qXXfw9c8k0ensLl3kXgAhbKtfvD+eJDpvj2JuJmqWbPevGj9fLYl9Rr7vx9ysoaS00g+H4t61c+ToXQdzUg+5mTB9srYorH1SFr+0y0g0DKd+NPLKSWWNufWwLP5wEwgb5rR+MCASzgkjiG6WxddPOqXhmrUkeIjIC1F7OmX4GwxXYUJrgY91pMHdXZsyXK9UBYm+1sZoHKSh1ftxMGmYCWP6QgDBgwnT66Go0nAk8kxjz0CGEY15s3xhGITGZLlhROgMhCBLd55VygEhBIjcCI831EymcYFcVEmwATZKSM2HFbl2NBib66slAXPYYoBEMJoLR6NhofSHa5HwPoSI+5pPwQUXwxHc/QxF1bCjQ1ZPiGWCVWdGPU5+G0WBYIAHBAxHPW+E45W7sQin5XgOpc8JcoSAwsmFC4LzRDc88ZKyzDkQuCkOGY4KBIX0UAuWQMRFH85YJAzDOkqJSBgQhSDoXAJhEDAQejAujLGWtfhrOg+h0SgqYsKZs7NhQU4Rd8aeY2iWtFHDjM+GA0FKWatsv4wlOLQVMQvqMt6qJJFS+egE/cKEshQI9AB9a2UDiFQUmyStQcBHjYiifQIBHSjhPNi0eAUCL9SQFyCaTSm9TxutbuLzTKWMRMJZNkOy1ZK+1/OJbKUqEyAw/L+1GCz5KSV+6cI6nCdAwFVyTqg0bSaKEWvIEsnT1Lk0TZLGKQipkDNNG00JISSxMP6PqbI7lhqGoXAHNEMPPEIVdEQL8EQRxlIce4zBmU0mMyaw/DTCJ3l34MzdO7vxZ0U+ku00NCcdLYYA0XKGGEMnYU0CMdqpY4SwGpEgRlhD+rLvOX21vshjFIiwrU70rhLCVkvO13X0G+VII8QYx7ZtEG+ahnUNIdSocWiUiGclhlpDIAZ5vBQAR0SCSfiLUtfNiA3ixYaWpQYZTiCmVwgQpkIsrhXCh1dXXRcj6iTuTlRCO7Gs/BHCEBgjJlCllIkw5nFYCD8fBN8FF+MkAHwlzrEWeyUB9fr0Rf9lYgQjC8RrVsYMzZ8wGzv+J/iIETyWtrMV6JAD3oFaCRGGKoTZIyXRabecmrqZqCJRI16+E3M90qOpl6YC8LROYqQ/3vKE7MmklKOlFsX0AFQh3t+XsJkjQhiTqqAnodQ23BcIq0w8ULqaElwsn0l8+Ha/P00rpTTryaJOCCTEx58s7kGQSoJg36j4SyCIcYxjIwqcPSu2eYllb2q9RM80DCO83CJAvZTOoGqBCEbQQK5ZS16FnCAbr21dSPWJwEQWbNSskRGk+U9YJxjiTsRKfRTi3/Dqqm624C1pnZynr7YnMCvORLmuaKWXct4+EeMfwVMBqdKa94y02+1mxPYk/KlhdSoo3hgRQBxwn61o/PCEyCdABCM2H1dswKQNQQRcr8uD2LynYrtyTlrhPR0IqRAWgkV4iMz5UKIwiOa/uRZ328qWf/zIuKlR3VOJRaenEPIgPqWzlLP3DhFqvIrngcSkPXGw77knVIQtLFczQiwcAomx7D+/g1jCvF4SxEtRfRCBKJq+f78wqrNQVtA6neyZzRj9++895h/0Ydd5DGmxk+6AcUD3P78+R2vVxKwR6xaiE+1QBNP2z9/28zxvFuTw3Rd1EpzPxGnslCNRTtviRJEA4ad2ewqi5C8Q3OYn1roLEERsONTwoPWW8+3GJZVPzwxNwpUSnynqVyC82Z04e+YZIkUfmztKzXgjmJu4UhjkdrTrUFBURAiPwbeWaAy/bq2H0WS8/nj6l8Y6xlkYhsEwvHv+75L9PwhTjpGRI3AixNAIIXWolI2z8NiFT6W06euosr+4kWxXOWmuM2n6IUTqoqOVnoa599vCxbOYs9pWb0gCoIOmac8OxrKmKkJ2M+IcsRzqrla+fwTTu6s0SJkPloeOdMAUVf6YCWyO88eBMwEI6biAxZgFyQwKoeOl0QghwBBMXWbGmVyNBcij3Zbqz30HreUtJomXw9facuNVRN/p1ddyRrYdcZ9tbnYURxL/PWb0VEQ8IlqLx+3WWuvH+xjbSZTGqAsEFXF9jzEuiPgL+rAwx7oVgmAYho9rBxMTxo4MXQmDA10ccBGhE6P+JuUCSBNOYg+bC/fh2Ivsh/ENwm94wvdxLD0mVh/xvff9sq6vZXk1j883VlsgGKrcX7HlCm+wu/VYyTPmiTGtSyV5Rc3jixHlTNrn8zCaSBPLuhSttYFIVUwoT0RTjBDakKGMEWKCSM3jB6BmjCkDGTOYocS/02iQOaX0DjFPM+J8qAHoMp8Rf3y+BW5FFQiKV4mFYxYxJgEh7nBnueICH1cKh4B4Qvw+axBWqbqsDUphYRTbdomu60CskiqEtpUuhIAJm7Td1lmIHWR3TsoWSSexSRkksvvmXBXIuXEc249/KsVet1kYCsOWgjADEhVSBiQzkCn2+i1G4lsYwhjahR91DjJTRJgaKXfQZs5N9Br7noOq0Ec+531tP/vDEYH6D+14OH58lAclXFmWRbFnoPA6YApAPzBYaE6nU7M/EVAaLBYwSuiyrIukgZBgNxQoTVLUTAHjcrnUy+OaacL3hFDCwJjSJknTJp2WkqR+PU2+X/sYJSrfv/jpgk9lovIERuxfr6xEEUoEaxFiHAyMKIqvccR8fi4lXqFEiJc5+2Nk8+/3TIaXrZgzuJQzWovdzjBaZzM7ZJYSz21rMY62w1OrxEZrOwyDBUg62lqnnbXaOactG8PX1/BCDGiomsBmlAiMoU8shrvRuGLQjBI7U1GrjHwxUsr73UgDcMNICWOsKlkByVT3O13lEyW2IajCsJMylF2H3nUST9gdBkZOxoLXAYRHh+jQzuK/t+b2bA8OGK+324aheHzT9vj6QAVn8cYZ9H2P6B/9JtjgBHgI0NhAAz2BXMPWWbzvFgJe4zhycud3GPm4y/N8t92O4xYg6fxwMfa8DcJgELYiMUSIyRKWiOQMlrMwdGGhElMYWPnYyNQxhSoLUjIxdcnP6S/sncFJm0f2+96dT86dzM/ni9jnC4jSlGlKActCnuZoFCQtUgLhQMJJLmJTkyRJE7KKoq4LOoBG09R1A/tJsBKMBgEOdiNFe2oa3WiN577H0ZDagwc2iNa9R6N0inUca140BhZi0sceBh4pqj15/4f3fPGN419oXbY01OaF47La1Uoxw8BtAQY3YtwWGrVWCrPdttsX2nZZgI23B8PgxWqJFEG0MERR5SXFPaocbNjIIrGW8Z3aVhWUtb5hrVV2HXcupWYFXDTPUpQIZjMrY5RRYagUlgchG6EZR2NMyAsoiDPQUuzCcRydczNwarz6bEQj8FyfijjbXaX47oKOJwu6bApIhgdHMEFI8ZNNmWea3OTqbjeKMsMf5ZMvT3kDJUUpxcfu4Nk9OLABD/XbxxgiVwhDUTRdQ0xEBQ4DTAxIwAaPxIDBpUsIgp9K+PXotgv46+tN4DUiM5zMTR7h5HKmpHF/pZROke4WU3jBWSqFPDHGCCP9p1nX1QgpMHPWCZEJR+YOxM+rH0aEs68jy7IRwT7WNOK84Iyx5buu6wZRqg4oB3bOwNvRAJUqdxAKpLhKmGcp04s8bZBA7gxfs+f/9DRorXMYxNL2XddjYT/RoO9hEO975/FKURTaGx2MwFKVJ0WgJINqSCGLjMDnVpZzSxQIGaHmZ/a0pzfPkYGaoSJgPmBEfDzJeABvxDW2mqYKa9s2MqKa6YKMmF87DcOAkBHDnwO4M1BzQLB3BuMva+8N1Oww7kleyR9E49oLoDfH+QAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-weight:500;left:-33px;min-height:194px;padding-bottom:31px;padding-top:33px;position:absolute;text-align:center;top:-14px;width:33px}.left-title[data-v-af8a0f90] .title[data-v-af8a0f90] span[data-v-af8a0f90]{-ms-writing-mode:tb-lr;writing-mode:vertical-lr}'),Ro.render=function(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle(e.style),onClick:n[0]||(n[0]=function(){return e.click&&e.click.apply(e,arguments)})},["top-title"===e.mode?(t.openBlock(),t.createElementBlock("div",zo,[t.createElementVNode("div",Do,[t.createElementVNode("div",Fo,[qo,t.createElementVNode("div",Wo,t.toDisplayString(e.title),1),Yo])]),Go,Jo,Ko,Qo])):t.createCommentVNode("v-if",!0),"no-title"===e.mode?(t.openBlock(),t.createElementBlock("div",_o,Zo)):t.createCommentVNode("v-if",!0),"only-border"===e.mode?(t.openBlock(),t.createElementBlock("div",Xo)):t.createCommentVNode("v-if",!0),"left-title"===e.mode?(t.openBlock(),t.createElementBlock("div",Ho,[t.createElementVNode("div",$o,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("v-if",!0)],4)},Ro.__scopeId="data-v-af8a0f90",Ro.__file="src/container/border/Border.vue";var er=nt(Ro),tr={id:"",type:"ecanModal",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!1,position:"default"},nr=st(tr),or=["showModal"],rr=t.defineComponent({name:"EcanModal",components:{AModal:r.Modal},props:Object.assign({},nr),setup:function(e){var n=t.computed((function(){return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[e.position]}})),o=e.width,r=e.height,a=e.originalWidth,i=e.originalHeight,l=t.computed((function(){return parseFloat(o)/parseFloat(a)})),c=t.computed((function(){return parseFloat(r)/parseFloat(i)})),s=t.computed((function(){return"".concat(100*t.unref(l),"%")})),d=t.computed((function(){return document.body.offsetWidth})),u=t.computed((function(){return document.body.offsetHeight})),p=t.computed((function(){return t.unref(d)*t.unref(l)})),f=t.computed((function(){return t.unref(u)*t.unref(c)})),m=t.computed((function(){return{width:"".concat(t.unref(p),"px"),height:"".concat(t.unref(f),"px")}})),v=ft(e),g=t.computed((function(){return Object.assign(Object.assign({},t.unref(v)),{backgroundImage:Ut(e.backgroundImage,!0),transform:"scale(".concat(t.unref(p)/parseFloat(o),",").concat(t.unref(f)/parseFloat(r),")")})})),h=t.computed((function(){return t.unref(l)>=1})),b=t.computed((function(){return e.fullModal})),y=t.computed((function(){var e="ecan-modal";return t.unref(h)&&(e+=" ecan-full-width-modal"),t.unref(b)&&(e+=" ecan-full-modal"),e})),k=t.ref(!1),x=t.ref(),w=t.inject(ht,{touchRequest:function(){}}).touchRequest,A=function(){k.value=!0,t.nextTick((function(){w()}))},C=function(){k.value=!1};return kt(e,{showModal:A}),{contain:x,containStyle:m,contentStyle:g,getContainer:function(){return document.getElementById("ProviderConfig")||document.body},modalStyle:n,modalWith:s,isFullModal:b,style:v,visible:k,showModal:A,onOk:function(){C()},onCancel:function(){C()},isFullWidth:h,wrapClassName:y}}});z(".contain[data-v-4efa8b94]{overflow:hidden;position:relative}.content[data-v-4efa8b94]{transform-origin:left top;z-index:999}");z(".ecan-modal .ant-modal-body{padding:0}.ecan-full-width-modal .ant-modal{margin:0;max-width:100%;padding-bottom:0;top:0}.ecan-full-width-modal .ant-modal-content{display:flex;flex-direction:column}.ecan-full-width-modal .ant-modal-body{flex:1}.ecan-full-modal .ant-modal{margin:0;max-width:100%;padding-bottom:0;top:0}.ecan-full-modal .ant-modal-content{display:flex;flex-direction:column;height:100vh}.ecan-full-modal .ant-modal-body{flex:1}[datav-theme=darkBlue] .ecan-modal .anticon-close>svg>path{fill:#fff}"),rr.render=function(e,n,o,r,a,i){var l=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(" centered + style 中的 verticalAlign 调整弹窗位置 "),t.createVNode(l,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),onOk:e.onOk,onCancel:e.onCancel},{default:t.withCtx((function(){return[t.createElementVNode("div",{class:"contain",ref:"contain",style:t.normalizeStyle(e.containStyle)},[t.createElementVNode("div",{class:"content",style:t.normalizeStyle(e.contentStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,(function(e,n){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.type),t.mergeProps({key:e.id+n},e),null,16)})),128))],4)],4)]})),_:1},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])],2112)},rr.__scopeId="data-v-4efa8b94",rr.__file="src/container/modal/Modal.vue";var ar=nt(rr),ir=Object.assign(Object.assign({},ct),{name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",linkUrl:"",linkMethod:"_self",linkPage:""}),lr=st(ir),cr=t.defineComponent({name:"EcanImage",props:Object.assign({},lr),setup:function(e){var n=ft(e),o=t.computed((function(){return Ut(e.imgUrl)})),r=t.inject(vt,{pageMode:"normal"}).pageMode;return{style:n,myImgUrl:o,onClick:function(){var n=e.linkPage,o=""!==n?function(e,t){var n="/preview?pageId=".concat(t),o="".concat(yt).concat(t);return"preview"!==e?o:n}(t.unref(r),n):"",a=e.linkUrl,i=""!==a?a:o;""!==i&&window.open(i,e.linkMethod)}}}}),sr=["src"];z(".image-placeholder[data-v-5a006553]{border:1px solid #d9d9d9;color:#333;display:grid;font-size:16px;place-content:center}"),cr.render=function(e,n,o,r,a,i){return""!==e.myImgUrl?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},null,12,sr)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))},cr.__scopeId="data-v-5a006553",cr.__file="src/media/image/Image.vue";var dr=nt(cr),ur=Object.assign(Object.assign({},ct),{zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,size:"default",isUseSeq:!1,columnsFixedNum:0,scrollX:0,paginationShow:!0,simple:!1,headerCellBackgroundColor:"",cellBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],diagramParam:Object.assign({source:"INDICATOR_LIB",layer:uo.Table,chartType:"grouptable",idxLibMode:"NORMAL_YEAR_TABLE"},fo)}),pr=st(ur),fr=["click","refreshData"],mr=t.defineComponent({name:"EcanTable",components:{Skeleton:Ze,ATable:r.Table,ATableSummary:r.TableSummary,ATableSummaryRow:r.TableSummaryRow,ATableSummaryCell:r.TableSummaryCell},props:Object.assign({},pr),setup:function(e){var n=this,o=ft(e),r=t.computed((function(){if(e.paginationShow)switch(e.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}})),a=t.computed((function(){return e.scrollX})),i=t.computed((function(){return parseFloat(e.height)-t.unref(r)})),l=t.computed((function(){var t=[];e.isUseSeq&&t.push({title:"序号",dataIndex:"SEQ"});for(var n=(t=t.concat(e.columns)).length,o=e.columnsFixedNum,r=function(n){var r=t[n];r.fixed=n<o&&"left";var a=r.headerCellAlign,i=void 0===a?"center":a,l=r.headerCellColor,c=r.cellAlign,s=void 0===c?"center":c,d=r.cellColor;r.customHeaderCell=function(){return{style:{textAlign:i,color:l,backgroundColor:e.headerCellBackgroundColor,borderBottomColor:e.borderColor}}},r.customCell=function(){return{style:{textAlign:s,color:d,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor}}}},a=0;a<n;a++)r(a);return t})),c=t.ref(0),s=t.ref(1),d=t.computed((function(){return e.paginationPageSize})),u=t.ref([]);t.watch((function(){return[e.data,e.dataType]}),(function(e){var t=N(e,2),n=t[0];"request"===t[1]&&(u.value=n)}),{immediate:!0});var p=Lt(e),f=t.ref(!1),m=t.computed((function(){var n=e.simple,o=[e.paginationPosition];return e.paginationShow&&{simple:n,position:o,total:t.unref(c),current:t.unref(s),pageSize:t.unref(d)}})),v=function(e){return 1==+e?"是":0==+e?"否":e},g=xt(e.events),h=t.inject(vt,{pageMode:"normal"}).pageMode,b=t.inject(gt,{getGlobalModel:function(e){},setGlobalModel:function(e,t){}}),y=b.getGlobalModel,k=b.setGlobalModel,x=t.ref([]),w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];x.value=e.map((function(e){return{title:e,dataIndex:e,key:e}})),u.value=t},A=ho(e).requestDiagram,C=function(){return at(n,void 0,void 0,rt.mark((function n(){var o,r,a,i,l;return rt.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("indicator"===e.dataType&&"design"!==t.unref(h)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,f.value=!0,n.next=6,A();case 6:l=n.sent,w(null===(r=null===(o=null==l?void 0:l.data)||void 0===o?void 0:o.data)||void 0===r?void 0:r.columns,null===(i=null===(a=null==l?void 0:l.data)||void 0===a?void 0:a.data)||void 0===i?void 0:i.rows),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,f.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},S=function(){"design"!==t.unref(h)&&(C(),at(n,void 0,void 0,rt.mark((function n(){var o,r,a,i,l,m,v;return rt.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"!==e.dataType){n.next=17;break}return n.prev=1,f.value=!0,n.next=5,p({pageNum:t.unref(s),pageSize:t.unref(d)});case 5:r=n.sent,a=(null===(o=null==r?void 0:r.data)||void 0===o?void 0:o.data)||{},i=a.rows,l=void 0===i?[]:i,m=a.total,v=void 0===m?0:m,c.value=v,u.value=l,n.next=14;break;case 11:n.prev=11,n.t0=n.catch(1),console.error(n.t0);case 14:return n.prev=14,f.value=!1,n.finish(14);case 17:case"end":return n.stop()}}),n,null,[[1,11,14,17]])}))))};kt(e,{refreshData:function(){S()}});var E=t.computed((function(){for(var n=e.columns,o=e.isUseSeq?[{total:"小计"}]:[],r=0,a=0;a<n.length;a++){var i=n[a];i.isCalcTotal?(o.push(Object.assign(Object.assign({},i),{index:a,total:0})),r++):o.push(Object.assign({},i))}if(0===r)return[];for(var l=(t.unref(s)-1)*t.unref(d),c=l+t.unref(d),p=t.unref(u).slice(l,c),f=0;f<p.length;f++)for(var m=p[f],v=0;v<o.length;v++){var g=o[v],h=g.dataIndex,b=g.total,y=+m[h];Number.isNaN(y)||null==b||(g.total=y+b)}return o}));return(0,t.inject(ht,{setRequest:function(e,t){}}).setRequest)(S,e.requestSort),{x:a,y:i,myColumns:l,style:o,customRow:function(t){return{onClick:g("click",(function(){var n=e.id,o=y(n);k(n,Object.assign(Object.assign({},o),{RECORD:t}))}))}},pagination:m,formatFn:function(e,t){return null==t||""===t?e:{money:Ot,percentage:jt,contrast:jt,boolean:v}[t](e)||""},contrastClass:function(e,t){var n=parseFloat(e+"");if("contrast"!==t)return"";switch(!0){case n>=0:return"goUp";case n<0:return"goDown"}},tableChange:function(e,t,n){var o=e.current;s.value=o,C()},dataColumns:x,dataSource:u,summaryList:E,loading:f}}});z('.table[data-v-21849ce3]{height:100%;width:100%}.goUp[data-v-21849ce3]{align-items:center;color:#ff512e;display:flex}.goUp[data-v-21849ce3][data-v-21849ce3]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}.goDown[data-v-21849ce3]{align-items:center;color:#00f7b4;display:flex}.goDown[data-v-21849ce3][data-v-21849ce3]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAaVBMVEUAAAAA+b0A+LwA+L0A/6AA+LwA+L0A+L0A+b0A+LwA/78A+LwA+L0A+LwA+LwA+b0A+LsA970A+LwA+r0A9boA/7YA+LwA+LwA+LwA+L0A97wA+bwA970A970A+bwA+bwA+LsA9rkA+LzcCa+5AAAAInRSTlMAd/uVAvjYxCsiDvPp37F7aWBMNBgK7s/NvKidh4NXUEcdp9A1SAAAAI5JREFUKM+l0UcOwzAMRFGqWZbcW3rl/Q8ZhUGKMN7lLedD4EKUi/3BEIrGsQu432pmPuF+1WnfRNjLipMz7HbHT3cIF9n3BLYSerzAooSgZNcWQiuhIdBI8JQblNISCqXU/BNG/mqzJ+az13MWluIdRspNmgV+Rvc6vkCwPu1uIhQq5o7WDOwtrToG+ssDeh4QPgfT2X0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}');z(".ecan-table .ant-table{background:#fff;color:rgba(0,0,0,.65)}.ecan-table .ant-table-thead>tr>th{background:#fafafa;border-bottom:1px solid #f0f0f0;color:rgba(0,0,0,.85)}.ecan-table .ant-table-tbody>tr>td{border-bottom:1px solid #f0f0f0}.ecan-table .ant-table-bordered .ant-table-container{border:1px solid #f0f0f0!important}.ecan-table .ant-table-bordered .ant-table-cell{border-right:1px solid #f0f0f0!important}.ecan-table .ant-pagination-item-link{border:1px solid #d9d9d9!important}.ecan-table .anticon{color:rgba(0,0,0,.65)!important}[datav-theme=darkBlue] .ecan-table .ant-table{background:#071655;color:#e8e8e8}[datav-theme=darkBlue] .ecan-table .ant-table-thead>tr>th{background:#17338c;border-bottom:1px solid #3e8ee3;color:#cdd0f7}[datav-theme=darkBlue] .ecan-table .ant-table-tbody>tr>td{border-bottom:1px solid #3e8ee3}[datav-theme=darkBlue] .ecan-table .ant-table-bordered .ant-table-container{border:1px solid #3e8ee3!important}[datav-theme=darkBlue] .ecan-table .ant-table-bordered .ant-table-cell{border-right:1px solid #3e8ee3!important}[datav-theme=darkBlue] .ecan-table .ant-pagination-item-link{background:#17338c!important;border:1px solid #243c8e!important}[datav-theme=darkBlue] .ecan-table .ant-pagination-item{background:#17338c!important}[datav-theme=darkBlue] .ecan-table .anticon{color:hsla(0,0%,100%,.65)!important}[datav-theme=darkBlue] .ecan-table .ant-table-tbody>tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td{background:#225b98}"),mr.render=function(e,n,o,r,a,i){var l=t.resolveComponent("a-table-summary-cell"),c=t.resolveComponent("a-table-summary-row"),s=t.resolveComponent("a-table-summary"),d=t.resolveComponent("a-table"),u=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-table",style:t.normalizeStyle(e.style)},[t.createVNode(u,{loading:e.loading},{default:t.withCtx((function(){return[t.createVNode(d,{class:"table",columns:e.dataColumns.length>0?e.dataColumns:e.myColumns,"data-source":e.dataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:{x:e.x,y:e.y},pagination:e.pagination,onChange:e.tableChange},{bodyCell:t.withCtx((function(n){var o=n.column,r=n.index,a=n.text;return[t.createCommentVNode(" 序列配置 "),"SEQ"===o.dataIndex?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(r+1),1)],2112)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([e.contrastClass(a,o.format)])},t.toDisplayString((null!=o.format||""!==o.format)&&e.formatFn(a,o.format)),3))]})),summary:t.withCtx((function(){return[e.summaryList.length>0?(t.openBlock(),t.createBlock(s,{key:0},{default:t.withCtx((function(){return[t.createVNode(c,null,{default:t.withCtx((function(){return[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(function(n,o){return t.openBlock(),t.createBlock(l,{key:n.dataIndex+o,index:n.index,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:n.cellAlign||"center",color:n.cellColor,borderBottomColor:e.borderColor})},{default:t.withCtx((function(){return[t.createElementVNode("div",{class:t.normalizeClass([e.contrastClass(n.total,n.format)])},t.toDisplayString((null!=n.format||""!==n.format)&&e.formatFn(n.total,n.format)),3)]})),_:2},1032,["index","style"])})),128))]})),_:1})]})),_:1})):t.createCommentVNode("v-if",!0)]})),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"])]})),_:1},8,["loading"])],4)},mr.__scopeId="data-v-21849ce3",mr.__file="src/table/table/Table.vue";var vr=nt(mr),gr=Object.assign(Object.assign({},ct),{mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",labelShow:!0,labelColor:"#000",labelFontSize:12,itemStyleAreaColor:"#eee",itemStyleBorderColor:"#000",emphasisLabelColor:"#fff",emphasisItemStyleAreaColor:"#f00",emphasisItemStyleBorderColor:"#000",selectLabelColor:"#000",selectItemStyleAreaColor:"#ff0",selectItemStyleBorderColor:"#000"}),hr=st(gr),br=w.default.create({});n.use([g.CanvasRenderer,h.MapChart,b.TitleComponent,b.VisualMapComponent,b.TooltipComponent]);var yr=t.defineComponent({name:"EcanMap",components:{Echarts:q},props:Object.assign({},hr),setup:function(e){var o=this,r=ft(e),a=t.computed((function(){return{tooltip:{},geo:{zoom:1.2,roam:!0,map:"map",label:{show:e.labelShow,color:e.labelColor,fontSize:e.labelFontSize},itemStyle:{areaColor:e.itemStyleAreaColor,borderColor:e.itemStyleBorderColor,shadowColor:"rgba(0, 0, 0, 0.9)",shadowOffsetX:-12,shadowOffsetY:6,shadowBlur:20},emphasis:{label:{color:e.emphasisLabelColor},itemStyle:{areaColor:e.emphasisItemStyleAreaColor,borderColor:e.emphasisItemStyleBorderColor}},select:{label:{color:e.selectLabelColor},itemStyle:{areaColor:e.selectItemStyleAreaColor,borderColor:e.selectItemStyleBorderColor}}},series:[{type:"effectScatter",coordinateSystem:"geo",itemStyle:{color:"#11BFDA"},label:{},data:e.data}]}})),i=t.ref(!1);return t.watch((function(){return e.mapJson}),(function(){at(o,void 0,void 0,rt.mark((function t(){var o,r;return rt.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=(o=e.mapJson)&&null!=o.path){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,br(bt+o.path);case 5:r=t.sent,n.registerMap("map",(null==r?void 0:r.data)||{}),i.value=!0;case 8:case"end":return t.stop()}}),t)})))}),{immediate:!0}),{option:a,style:r,isLoadedData:i}}});z(".ecan-map[data-v-7865460d]{align-items:center;display:flex;justify-content:center}"),yr.render=function(e,n,o,r,a,i){var l=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(l,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):t.createCommentVNode("v-if",!0)],4)},yr.__scopeId="data-v-7865460d",yr.__file="src/map/map/Map.vue";var kr=nt(yr),xr=Object.freeze({__proto__:null,pageConfig:dt,pageConfigComponentProps:ut,EcanPageConfig:zt,providerConfig:Dt,providerConfigComponentProps:Ft,EcanProviderConfig:Yt,textProps:Gt,textComponentProps:Jt,textEvents:Kt,EcanText:Zt,EcanScrollText:$t,timeDisplayProps:en,timeDisplayComponentProps:tn,EcanTimeDisplay:on,listProps:rn,listComponentProps:an,listEvents:ln,EcanList:hn,proportionProps:bn,proportionComponentProps:yn,proportionEvents:kn,EcanProportion:wn,inputProps:An,inputComponentProps:Cn,EcanInput:En,datePickerProps:Bn,datePickerComponentProps:On,datePickerEvents:jn,EcanDatePicker:Ln,selectProps:Mn,selectComponentProps:In,selectEvents:Pn,EcanSelect:Nn,rangePickerProps:Rn,rangePickerComponentProps:Vn,rangePickerEvents:zn,EcanRangePicker:Fn,buttonProps:qn,buttonComponentProps:Wn,buttonEvents:Yn,EcanButton:Kn,tabsProps:Qn,tabsComponentProps:_n,tabsEvents:Zn,EcanTabs:$n,pieProps:eo,pieComponentProps:to,pieEvents:no,EcanPie:ro,lineProps:ao,lineComponentProps:io,lineEvents:lo,EcanLine:po,barProps:mo,barComponentProps:vo,barEvents:go,EcanBar:yo,scatterProps:ko,scatterComponentProps:xo,scatterEvents:wo,EcanScatter:Co,customGraphProps:So,customGraphComponentProps:Eo,EcanCustomGraph:Oo,comboGraphProps:jo,comboGraphComponentProps:To,comboGraphEvents:Lo,EcanComboGraph:Io,borderProps:Po,borderComponentProps:Uo,borderEvents:No,EcanBorder:er,modalProps:tr,modalComponentProps:nr,modalEvents:or,EcanModal:ar,imageProps:ir,imageComponentProps:lr,EcanImage:dr,tableProps:ur,tableComponentProps:pr,tableEvents:fr,EcanTable:vr,mapProps:gr,mapComponentProps:hr,EcanMap:kr}),wr={install:function(e){Object.keys(xr).forEach((function(t){var n=xr[t];n.install&&e.use(n)}))}};e.EcanBar=yo,e.EcanBorder=er,e.EcanButton=Kn,e.EcanComboGraph=Io,e.EcanCustomGraph=Oo,e.EcanDatePicker=Ln,e.EcanImage=dr,e.EcanInput=En,e.EcanLine=po,e.EcanList=hn,e.EcanMap=kr,e.EcanModal=ar,e.EcanPageConfig=zt,e.EcanPie=ro,e.EcanProportion=wn,e.EcanProviderConfig=Yt,e.EcanRangePicker=Fn,e.EcanScatter=Co,e.EcanScrollText=$t,e.EcanSelect=Nn,e.EcanTable=vr,e.EcanTabs=$n,e.EcanText=Zt,e.EcanTimeDisplay=on,e.barComponentProps=vo,e.barEvents=go,e.barProps=mo,e.borderComponentProps=Uo,e.borderEvents=No,e.borderProps=Po,e.buttonComponentProps=Wn,e.buttonEvents=Yn,e.buttonProps=qn,e.comboGraphComponentProps=To,e.comboGraphEvents=Lo,e.comboGraphProps=jo,e.customGraphComponentProps=Eo,e.customGraphProps=So,e.datePickerComponentProps=On,e.datePickerEvents=jn,e.datePickerProps=Bn,e.default=wr,e.imageComponentProps=lr,e.imageProps=ir,e.inputComponentProps=Cn,e.inputProps=An,e.lineComponentProps=io,e.lineEvents=lo,e.lineProps=ao,e.listComponentProps=an,e.listEvents=ln,e.listProps=rn,e.mapComponentProps=hr,e.mapProps=gr,e.modalComponentProps=nr,e.modalEvents=or,e.modalProps=tr,e.pageConfig=dt,e.pageConfigComponentProps=ut,e.pieComponentProps=to,e.pieEvents=no,e.pieProps=eo,e.proportionComponentProps=yn,e.proportionEvents=kn,e.proportionProps=bn,e.providerConfig=Dt,e.providerConfigComponentProps=Ft,e.rangePickerComponentProps=Vn,e.rangePickerEvents=zn,e.rangePickerProps=Rn,e.scatterComponentProps=xo,e.scatterEvents=wo,e.scatterProps=ko,e.selectComponentProps=In,e.selectEvents=Pn,e.selectProps=Mn,e.tableComponentProps=pr,e.tableEvents=fr,e.tableProps=ur,e.tabsComponentProps=_n,e.tabsEvents=Zn,e.tabsProps=Qn,e.textComponentProps=Jt,e.textEvents=Kt,e.textProps=Gt,e.timeDisplayComponentProps=tn,e.timeDisplayProps=en,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("axios"),require("mitt"),require("dayjs"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style/index"),require("ant-design-vue/es/date-picker/style/index"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/select/style/index"),require("ant-design-vue/es/button/style/index"),require("echarts"),require("ant-design-vue/es/modal/style/index"),require("ant-design-vue/es/table/style/index")):"function"==typeof define&&define.amd?define(["exports","vue","resize-detector","ant-design-vue","ant-design-vue/es/skeleton/style","lodash-es","axios","mitt","dayjs","ant-design-vue/es/progress/style","ant-design-vue/es/input/style/index","ant-design-vue/es/date-picker/style/index","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/select/style/index","ant-design-vue/es/button/style/index","echarts","ant-design-vue/es/modal/style/index","ant-design-vue/es/table/style/index"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.vue,e["resize-detector"],e["ant-design-vue"],null,e["lodash-es"],e.axios,e.mitt,e.dayjs,null,null,null,e["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,e.echarts)}(this,(function(e,t,n,r,i,o,a,s,l,u,c,p,h,d,f,g){"use strict";function v(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function m(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var y=v(a),x=v(s),_=v(l),b=v(h),w=m(g),S=function(e,t){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},S(e,t)};function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function C(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}var M=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},T=new function(){this.browser=new M,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(T.wxa=!0,T.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?T.worker=!0:"undefined"==typeof navigator?(T.node=!0,T.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,T);var A=T,I="12px sans-serif";var D,O,E=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),N={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!D){var n=N.createCanvas();D=n&&n.getContext("2d")}if(D)return O!==t&&(O=D.font=t||I),D.measureText(e);e=e||"";var r=/^([0-9]*?)px$/.exec(t=t||I),i=+(r&&r[1])||12,o=0;if(t.indexOf("mono")>=0)o=i*e.length;else for(var a=0;a<e.length;a++){var s=E[e[a]];o+=null==s?i:s*i}return{width:o}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},L=ie(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),P=ie(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),R=Object.prototype.toString,B=Array.prototype,V=B.forEach,z=B.filter,F=B.slice,G=B.map,U=function(){}.constructor,W=U?U.prototype:null,j="__proto__",H=2311;function Y(){return H++}function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function X(e){if(null==e||"object"!=typeof e)return e;var t=e,n=R.call(e);if("[object Array]"===n){if(!De(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=X(e[r])}}else if(P[n]){if(!De(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!L[n]&&!De(e)&&!me(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==j&&(t[a]=X(e[a]));return t}function Z(e,t,n){if(!fe(t)||!fe(e))return n?X(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==j){var i=e[r],o=t[r];!fe(o)||!fe(i)||ue(o)||ue(i)||me(o)||me(i)||ge(o)||ge(i)||De(o)||De(i)?!n&&r in e||(e[r]=X(t[r])):Z(i,o,n)}return e}function J(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=Z(n,e[r],t);return n}function K(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==j&&(e[n]=t[n]);return e}function Q(e,t,n){for(var r=ae(t),i=0;i<r.length;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}function $(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function ee(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else Q(e,t,n)}function te(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function ne(e,t,n){if(e&&t)if(e.forEach&&e.forEach===V)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function re(e,t,n){if(!e)return[];if(!t)return ke(e);if(e.map&&e.map===G)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function ie(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function oe(e,t,n){if(!e)return[];if(!t)return ke(e);if(e.filter&&e.filter===z)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function ae(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var se=W&&ce(W.bind)?W.call.bind(W.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(F.call(arguments)))}};function le(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(F.call(arguments)))}}function ue(e){return Array.isArray?Array.isArray(e):"[object Array]"===R.call(e)}function ce(e){return"function"==typeof e}function pe(e){return"string"==typeof e}function he(e){return"[object String]"===R.call(e)}function de(e){return"number"==typeof e}function fe(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function ge(e){return!!L[R.call(e)]}function ve(e){return!!P[R.call(e)]}function me(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function ye(e){return null!=e.colorStops}function xe(e){return"[object RegExp]"===R.call(e)}function _e(e){return e!=e}function be(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function we(e,t){return null!=e?e:t}function Se(e,t,n){return null!=e?e:null!=t?t:n}function ke(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return F.apply(e,t)}function Ce(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function Me(e,t){if(!e)throw new Error(t)}function Te(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ae="__ec_primitive__";function Ie(e){e[Ae]=!0}function De(e){return e[Ae]}var Oe=function(){function e(t){this.data={};var n=ue(t);this.data={};var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&ne(t,i)}return e.prototype.get=function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},e.prototype.set=function(e,t){return this.data[e]=t},e.prototype.each=function(e,t){for(var n in this.data)this.data.hasOwnProperty(n)&&e.call(t,this.data[n],n)},e.prototype.keys=function(){return ae(this.data)},e.prototype.removeKey=function(e){delete this.data[e]},e}();function Ee(e){return new Oe(e)}function Ne(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&K(n,t),n}function Le(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Pe(e,t){return e.hasOwnProperty(t)}function Re(){}var Be=180/Math.PI;function Ve(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function ze(e){return[e[0],e[1]]}function Fe(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Ge(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Ue(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function We(e,t){var n=function(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function je(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var He=je;var Ye=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function qe(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Xe(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Ze(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Je(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Ke=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},Qe=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ke(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,t.drift(i,o,e),this.handler.dispatchToElement(new Ke(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Ke(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new Ke(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ke(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ke(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),$e=Qe,et=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a<i[e].length;a++)if(i[e][a].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=t[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),tt=et,nt=Math.log(2);function rt(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/nt);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var p=0,h=0,d=0;h<s;h++){var f=1<<h;f&i||(p+=(d%2?-1:1)*e[n][h]*rt(e,t-1,c,u,i|f,o),d++)}return o[a]=p,p}function it(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=rt(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*rt(n,7,0===a?1:0,1<<a,1<<s,r)/i*t[a];return function(e,t,n){var r=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/r,e[1]=(t*o[3]+n*o[4]+o[5])/r}}}var ot=[];function at(e,t,n,r,i){if(t.getBoundingClientRect&&A.domSupported&&!st(t)){var o=t.___zrEVENTSAVED||(t.___zrEVENTSAVED={}),a=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,o),s=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),p=2*u,h=c.left,d=c.top;a.push(h,d),l=l&&o&&h===o[p]&&d===o[p+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?it(s,a):it(a,s))}(a,o,i);if(s)return s(e,n,r),!0}return!1}function st(e){return"CANVAS"===e.nodeName.toUpperCase()}var lt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ut=[],ct=A.browser.firefox&&+A.browser.version.split(".")[0]<39;function pt(e,t,n,r){return n=n||{},r?ht(e,t,n):ct&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):ht(e,t,n),n}function ht(e,t,n){if(A.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(st(e)){var o=e.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(at(ut,e,r,i))return n.zrX=ut[0],void(n.zrY=ut[1])}n.zrX=n.zrY=0}function dt(e){return e||window.event}function ft(e,t,n){if(null!=(t=dt(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&pt(e,i,t,n)}else{pt(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&lt.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}var gt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function vt(e){return 2===e.which||3===e.which}var mt=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o<a;o++){var s=r[o],l=pt(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in xt)if(xt.hasOwnProperty(t)){var n=xt[t](this._track,e);if(n)return n}},e}();function yt(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var xt={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,o=(e[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=yt(i)/yt(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},_t="silent";function bt(){gt(this.event)}var wt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return k(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(tt),St=function(e,t){this.x=e,this.y=t},kt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ct=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._hovered=new St(0,0),o.storage=t,o.painter=n,o.painterRoot=i,r=r||new wt,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new $e(o),o}return k(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(ne(kt,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Tt(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new St(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new St(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,o=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:bt}}(t,e,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"==typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){for(var r=this.storage.getDisplayList(),i=new St(e,t),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=Mt(r[o],e,t))&&(!i.topTarget&&(i.topTarget=r[o]),a!==_t)){i.target=r[o];break}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new mt);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var o=new St;o.target=r.target,this.dispatchToElement(o,i,r.event)}},t}(tt);function Mt(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||_t}return!1}function Tt(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}ne(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Ct.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=Tt(this,i,o);if("mouseup"===e&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||He(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var At=Ct;function It(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Dt(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o,a=e[r],s=t,l=r;s<l;)i(a,e[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=a}}function Ot(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function Et(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Nt(e,t){var n,r,i=7,o=0,a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],p=r[s+1];r[s]=u+p,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var h=Et(e[c],e,l,u,0,t);l+=h,0!==(u-=h)&&0!==(p=Ot(e[l+u-1],e,c,p,p-1,t))&&(u<=p?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=e[n+l];var u=0,c=o,p=n;if(e[p++]=e[c++],0==--s){for(l=0;l<r;l++)e[p+l]=a[u+l];return}if(1===r){for(l=0;l<s;l++)e[p+l]=e[c+l];return void(e[p+s]=a[u])}var h,d,f,g=i;for(;;){h=0,d=0,f=!1;do{if(t(e[c],a[u])<0){if(e[p++]=e[c++],d++,h=0,0==--s){f=!0;break}}else if(e[p++]=a[u++],h++,d=0,1==--r){f=!0;break}}while((h|d)<g);if(f)break;do{if(0!==(h=Et(e[c],a,u,r,0,t))){for(l=0;l<h;l++)e[p+l]=a[u+l];if(p+=h,u+=h,(r-=h)<=1){f=!0;break}}if(e[p++]=e[c++],0==--s){f=!0;break}if(0!==(d=Ot(a[u],e,c,s,0,t))){for(l=0;l<d;l++)e[p+l]=e[c+l];if(p+=d,c+=d,0===(s-=d)){f=!0;break}}if(e[p++]=a[u++],1==--r){f=!0;break}g--}while(h>=7||d>=7);if(f)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)e[p+l]=e[c+l];e[p+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)e[p+l]=a[u+l]}}(l,u,c,p):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=e[o+l];var u=n+r-1,c=s-1,p=o+s-1,h=0,d=0;if(e[p--]=e[u--],0==--r){for(h=p-(s-1),l=0;l<s;l++)e[h+l]=a[l];return}if(1===s){for(d=(p-=r)+1,h=(u-=r)+1,l=r-1;l>=0;l--)e[d+l]=e[h+l];return void(e[p]=a[c])}var f=i;for(;;){var g=0,v=0,m=!1;do{if(t(a[c],e[u])<0){if(e[p--]=e[u--],g++,v=0,0==--r){m=!0;break}}else if(e[p--]=a[c--],v++,g=0,1==--s){m=!0;break}}while((g|v)<f);if(m)break;do{if(0!==(g=r-Et(a[c],e,n,r,r-1,t))){for(r-=g,d=(p-=g)+1,h=(u-=g)+1,l=g-1;l>=0;l--)e[d+l]=e[h+l];if(0===r){m=!0;break}}if(e[p--]=a[c--],1==--s){m=!0;break}if(0!==(v=s-Ot(e[u],a,0,s,s-1,t))){for(s-=v,d=(p-=v)+1,h=(c-=v)+1,l=0;l<v;l++)e[d+l]=a[h+l];if(s<=1){m=!0;break}}if(e[p--]=e[u--],0==--r){m=!0;break}f--}while(g>=7||v>=7);if(m)break;f<0&&(f=0),f+=2}(i=f)<1&&(i=1);if(1===s){for(d=(p-=r)+1,h=(u-=r)+1,l=r-1;l>=0;l--)e[d+l]=e[h+l];e[p]=a[c]}else{if(0===s)throw new Error;for(h=p-(s-1),l=0;l<s;l++)e[h+l]=a[l]}}(l,u,c,p))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var e=o-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;o>1;){var e=o-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[o]=e,r[o]=t,o+=1}}}function Lt(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<32)Dt(e,n,r,n+(o=It(e,n,r,t)),t);else{var a=Nt(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((o=It(e,n,r,t))<s){var l=i;l>s&&(l=s),Dt(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var Pt=!1;function Rt(){Pt||(Pt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Bt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Vt=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Bt}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Lt(n,Bt)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Rt(),u.z=0),isNaN(u.z2)&&(Rt(),u.z2=0),isNaN(u.zlevel)&&(Rt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,t,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=$(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),zt=Vt,Ft=A.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Gt={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Gt.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*Gt.bounceIn(2*e):.5*Gt.bounceOut(2*e-1)+.5}},Ut=Gt,Wt=Math.pow,jt=Math.sqrt,Ht=1e-8,Yt=1e-4,qt=jt(3),Xt=1/3,Zt=Ve(),Jt=Ve(),Kt=Ve();function Qt(e){return e>-1e-8&&e<Ht}function $t(e){return e>Ht||e<-1e-8}function en(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function tn(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function nn(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,p=s*l-9*a*u,h=l*l-3*s*u,d=0;if(Qt(c)&&Qt(p)){if(Qt(s))o[0]=0;else(k=-l/s)>=0&&k<=1&&(o[d++]=k)}else{var f=p*p-4*c*h;if(Qt(f)){var g=p/c,v=-g/2;(k=-s/a+g)>=0&&k<=1&&(o[d++]=k),v>=0&&v<=1&&(o[d++]=v)}else if(f>0){var m=jt(f),y=c*s+1.5*a*(-p+m),x=c*s+1.5*a*(-p-m);(k=(-s-((y=y<0?-Wt(-y,Xt):Wt(y,Xt))+(x=x<0?-Wt(-x,Xt):Wt(x,Xt))))/(3*a))>=0&&k<=1&&(o[d++]=k)}else{var _=(2*c*s-3*a*p)/(2*jt(c*c*c)),b=Math.acos(_)/3,w=jt(c),S=Math.cos(b),k=(-s-2*w*S)/(3*a),C=(v=(-s+w*(S+qt*Math.sin(b)))/(3*a),(-s+w*(S-qt*Math.sin(b)))/(3*a));k>=0&&k<=1&&(o[d++]=k),v>=0&&v<=1&&(o[d++]=v),C>=0&&C<=1&&(o[d++]=C)}}return d}function rn(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Qt(a)){if($t(o))(c=-s/o)>=0&&c<=1&&(i[l++]=c)}else{var u=o*o-4*a*s;if(Qt(u))i[0]=-o/(2*a);else if(u>0){var c,p=jt(u),h=(-o-p)/(2*a);(c=(-o+p)/(2*a))>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}function on(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,p=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=p,o[4]=p,o[5]=c,o[6]=l,o[7]=r}function an(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,p=0,h=1/l,d=1;d<=l;d++){var f=d*h,g=en(e,n,i,a,f),v=en(t,r,o,s,f),m=g-u,y=v-c;p+=Math.sqrt(m*m+y*y),u=g,c=v}return p}function sn(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function ln(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function un(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function cn(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function pn(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,p=1;p<=a;p++){var h=p*c,d=sn(e,n,i,h),f=sn(t,r,o,h),g=d-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=d,l=f}return u}var hn=/cubic-bezier\(([0-9,\.e ]+)\)/;function dn(e){var t=e&&hn.exec(e);if(t){var n=t[1].split(","),r=+Te(n[0]),i=+Te(n[1]),o=+Te(n[2]),a=+Te(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:nn(0,r,o,1,e,s)&&en(0,i,a,1,s[0])}}}var fn=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Re,this.ondestroy=e.ondestroy||Re,this.onrestart=e.onrestart||Re,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ce(e)?e:Ut[e]||dn(e)},e}(),gn=function(e){this.value=e},vn=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new gn(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),mn=function(){function e(e){this._list=new vn,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(null==r[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new gn(t),a.key=e,n.insertEntry(a),r[e]=a}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),yn=mn,xn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function _n(e){return(e=Math.round(e))<0?0:e>255?255:e}function bn(e){return e<0?0:e>1?1:e}function wn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?_n(parseFloat(t)/100*255):_n(parseInt(t,10))}function Sn(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?bn(parseFloat(t)/100):bn(parseFloat(t))}function kn(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function Cn(e,t,n){return e+(t-e)*n}function Mn(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Tn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var An=new yn(20),In=null;function Dn(e,t){In&&Tn(In,t),In=An.put(e,In||t.slice())}function On(e,t){if(e){t=t||[];var n=An.get(e);if(n)return Tn(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in xn)return Tn(t,xn[r]),Dn(e,t),t;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(Mn(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),Dn(e,t),t):void Mn(t,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(Mn(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),Dn(e,t),t):void Mn(t,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Mn(t,+u[0],+u[1],+u[2],1):Mn(t,0,0,0,1);c=Sn(u.pop());case"rgb":return 3!==u.length?void Mn(t,0,0,0,1):(Mn(t,wn(u[0]),wn(u[1]),wn(u[2]),c),Dn(e,t),t);case"hsla":return 4!==u.length?void Mn(t,0,0,0,1):(u[3]=Sn(u[3]),En(u,t),Dn(e,t),t);case"hsl":return 3!==u.length?void Mn(t,0,0,0,1):(En(u,t),Dn(e,t),t);default:return}}Mn(t,0,0,0,1)}}function En(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Sn(e[1]),i=Sn(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return Mn(t=t||[],_n(255*kn(a,o,n+1/3)),_n(255*kn(a,o,n)),_n(255*kn(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function Nn(e,t){var n=On(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Rn(n,4===n.length?"rgba":"rgb")}}function Ln(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=t[i],s=t[o],l=r-i;return n[0]=_n(Cn(a[0],s[0],l)),n[1]=_n(Cn(a[1],s[1],l)),n[2]=_n(Cn(a[2],s[2],l)),n[3]=bn(Cn(a[3],s[3],l)),n}}function Pn(e,t,n,r){var i=On(e);if(e)return i=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,p=((s-i)/6+l/2)/l,h=((s-o)/6+l/2)/l;r===s?t=h-p:i===s?t=1/3+c-h:o===s&&(t=2/3+p-c),t<0&&(t+=1),t>1&&(t-=1)}var d=[360*t,n,u];return null!=e[3]&&d.push(e[3]),d}}(i),null!=t&&(i[0]=function(e){return(e=Math.round(e))<0?0:e>360?360:e}(t)),null!=n&&(i[1]=Sn(n)),null!=r&&(i[2]=Sn(r)),Rn(En(i),"rgba")}function Rn(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function Bn(e,t){var n=On(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}A.hasGlobalWindow&&ce(window.btoa);var Vn=Array.prototype.slice;function zn(e,t,n){return(t-e)*n+e}function Fn(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=zn(t[o],n[o],r);return e}function Gn(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function Un(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function Wn(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function jn(e,t,n){var r=e,i=t;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:Vn.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function Hn(e){if(te(e)){var t=e.length;if(te(e[0])){for(var n=[],r=0;r<t;r++)n.push(Vn.call(e[r]));return n}return Vn.call(e)}return e}function Yn(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function qn(e){return 4===e||5===e}function Xn(e){return 1===e||2===e}var Zn=[0,0,0,0],Jn=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=t;if(te(t)){var l=function(e){return te(e&&e[0])?2:1}(t);a=l,(1===l&&!de(t[0])||2===l&&!de(t[0][0]))&&(o=!0)}else if(de(t)&&!_e(t))a=0;else if(pe(t))if(isNaN(+t)){var u=On(t);u&&(s=u,a=3)}else a=0;else if(ye(t)){var c=K({},s);c.colorStops=re(t.colorStops,(function(e){return{offset:e.offset,color:On(e.color)}})),"linear"===t.type?a=4:function(e){return"radial"===e.type}(t)&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var p={time:e,value:s,rawValue:t,percent:0};return n&&(p.easing=n,p.easingFunc=ce(n)?n:Ut[n]||dn(n)),r.push(p),p},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=Xn(r),l=qn(r),u=0;u<i;u++){var c=n[u],p=c.value,h=o.value;c.percent=c.time/e,a||(s&&u!==i-1?jn(p,h,r):l&&Wn(p.colorStops,h.colorStops))}if(!a&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var d=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-d:3===r?n[u].additiveValue=Gn([],n[u].value,d,-1):Xn(r)&&(n[u].additiveValue=1===r?Gn([],n[u].value,d,-1):Un([],n[u].value,d,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,p=3===s,h=this._lastFr,d=Math.min;if(1===u)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=d(h+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=d(n,u-2)}else{for(n=h;n<u&&!(l[n].percent>t);n++);n=d(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var f=i.percent-r.percent,g=0===f?1:d((t-r.percent)/f,1);i.easingFunc&&(g=i.easingFunc(g));var v=o?this._additiveValue:p?Zn:e[c];if(!Xn(s)&&!p||v||(v=this._additiveValue=[]),this.discrete)e[c]=g<1?r.rawValue:i.rawValue;else if(Xn(s))1===s?Fn(v,r[a],i[a],g):function(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=zn(t[a][s],n[a][s],r)}}(v,r[a],i[a],g);else if(qn(s)){var m=r[a],y=i[a],x=4===s;e[c]={type:x?"linear":"radial",x:zn(m.x,y.x,g),y:zn(m.y,y.y,g),colorStops:re(m.colorStops,(function(e,t){var n=y.colorStops[t];return{offset:zn(e.offset,n.offset,g),color:Yn(Fn([],e.color,n.color,g))}})),global:y.global},x?(e[c].x2=zn(m.x2,y.x2,g),e[c].y2=zn(m.y2,y.y2,g)):e[c].r=zn(m.r,y.r,g)}else if(p)Fn(v,r[a],i[a],g),o||(e[c]=Yn(v));else{var _=zn(r[a],i[a],g);o?this._additiveValue=_:e[c]=_}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(On(e[n],Zn),Gn(Zn,Zn,r,1),e[n]=Yn(Zn)):1===t?Gn(e[n],e[n],r,1):2===t&&Un(e[n],e[n],r,1)},e}(),Kn=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?q("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,ae(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new Jn(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,p=c[c.length-1];l=p&&p.value,3===u.valType&&l&&(l=Yn(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,Hn(l),r),this._trackKeys.push(a)}s.addKeyframe(e,Hn(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(t._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var p=new fn({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return re(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[i]=Hn(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||ae(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),Qn=Kn;function $n(){return(new Date).getTime()}var er,tr,nr=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return k(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=$n()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,Ft((function t(){e._running&&(Ft(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=$n(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=$n(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=$n()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Qn(e,t.loop);return this.addAnimator(n),n},t}(tt),rr=nr,ir=A.domSupported,or=(tr={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:er=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:re(er,(function(e){var t=e.replace("mouse","pointer");return tr.hasOwnProperty(t)?t:e}))}),ar=["mousemove","mouseup"],sr=["pointermove","pointerup"],lr=!1;function ur(e){var t=e.pointerType;return"pen"===t||"touch"===t}function cr(e){e&&(e.zrByTouch=!0)}function pr(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var hr=function(e,t){this.stopPropagation=Re,this.stopImmediatePropagation=Re,this.preventDefault=Re,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},dr={mousedown:function(e){e=ft(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ft(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ft(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){pr(this,(e=ft(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){lr=!0,e=ft(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){lr||(e=ft(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){cr(e=ft(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),dr.mousemove.call(this,e),dr.mousedown.call(this,e)},touchmove:function(e){cr(e=ft(this.dom,e)),this.handler.processGesture(e,"change"),dr.mousemove.call(this,e)},touchend:function(e){cr(e=ft(this.dom,e)),this.handler.processGesture(e,"end"),dr.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&dr.click.call(this,e)},pointerdown:function(e){dr.mousedown.call(this,e)},pointermove:function(e){ur(e)||dr.mousemove.call(this,e)},pointerup:function(e){dr.mouseup.call(this,e)},pointerout:function(e){ur(e)||dr.mouseout.call(this,e)}};ne(["click","dblclick","contextmenu"],(function(e){dr[e]=function(t){t=ft(this.dom,t),this.trigger(e,t)}}));var fr={pointermove:function(e){ur(e)||fr.mousemove.call(this,e)},pointerup:function(e){fr.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function gr(e,t){var n=t.domHandlers;A.pointerEventsSupported?ne(or.pointer,(function(r){mr(t,r,(function(t){n[r].call(e,t)}))})):(A.touchEventsSupported&&ne(or.touch,(function(r){mr(t,r,(function(i){n[r].call(e,i),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),ne(or.mouse,(function(r){mr(t,r,(function(i){i=dt(i),t.touching||n[r].call(e,i)}))})))}function vr(e,t){function n(n){mr(t,n,(function(r){r=dt(r),pr(e,r.target)||(r=function(e,t){return ft(e.dom,new hr(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))}),{capture:!0})}A.pointerEventsSupported?ne(sr,n):A.touchEventsSupported||ne(ar,n)}function mr(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,function(e,t,n,r){e.addEventListener(t,n,r)}(e.domTarget,t,n,r)}function yr(e){var t,n,r,i,o=e.mounted;for(var a in o)o.hasOwnProperty(a)&&(t=e.domTarget,n=a,r=o[a],i=e.listenerOpts[a],t.removeEventListener(n,r,i));e.mounted={}}var xr=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},_r=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new xr(t,dr),ir&&(r._globalHandlerScope=new xr(document,fr)),gr(r,r._localHandlerScope),r}return k(t,e),t.prototype.dispose=function(){yr(this._localHandlerScope),ir&&yr(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,ir&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?vr(this,t):yr(t)}},t}(tt),br=1;A.hasGlobalWindow&&(br=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var wr=br,Sr="#333",kr="#ccc";function Cr(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Mr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Tr(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function Ar(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Ir(e,t,n){var r=t[0],i=t[2],o=t[4],a=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+a*u,e[1]=-r*u+a*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*o+u*l,e[5]=c*l-u*o,e}function Dr(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Or(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}var Er=Cr,Nr=5e-5;function Lr(e){return e>Nr||e<-5e-5}var Pr=[],Rr=[],Br=[1,0,0,1,0,0],Vr=Math.abs,zr=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Lr(this.rotation)||Lr(this.x)||Lr(this.y)||Lr(this.scaleX-1)||Lr(this.scaleY-1)||Lr(this.skewX)||Lr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):Er(n),e&&(t?Tr(n,e,n):Mr(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Er(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Pr);var n=Pr[0]<0?-1:1,r=Pr[1]<0?-1:1,i=((Pr[0]-n)*t+n)/Pr[0]||0,o=((Pr[1]-r)*t+r)/Pr[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Or(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Tr(Rr,e.invTransform,t),t=Rr);var n=this.originX,r=this.originY;(n||r)&&(Br[4]=n,Br[5]=r,Tr(Rr,t,Br),Rr[4]-=n,Rr[5]-=r,t=Rr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Xe(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Xe(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Vr(e[0]-1)>1e-10&&Vr(e[3]-1)>1e-10?Math.sqrt(Vr(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){!function(e,t){for(var n=0;n<Fr.length;n++){var r=Fr[n];e[r]=t[r]}}(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||s){var d=n+a,f=r+s;t[4]=-d*i-p*f*o,t[5]=-f*o-h*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=p*o,l&&Ir(t,t,l),t[4]+=n+u,t[5]+=r+c,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Fr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];var Gr=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Ur=Gr,Wr=Math.min,jr=Math.max,Hr=new Ur,Yr=new Ur,qr=new Ur,Xr=new Ur,Zr=new Ur,Jr=new Ur,Kr=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=Wr(e.x,this.x),n=Wr(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=jr(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=jr(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=[1,0,0,1,0,0];return Ar(i,i,[-t.x,-t.y]),Dr(i,i,[n,r]),Ar(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,p=t.y+t.height,h=!(o<l||u<i||s<c||p<a);if(n){var d=1/0,f=0,g=Math.abs(o-l),v=Math.abs(u-i),m=Math.abs(s-c),y=Math.abs(p-a),x=Math.min(g,v),_=Math.min(m,y);o<l||u<i?x>f&&(f=x,g<v?Ur.set(Jr,-g,0):Ur.set(Jr,v,0)):x<d&&(d=x,g<v?Ur.set(Zr,g,0):Ur.set(Zr,-v,0)),s<c||p<a?_>f&&(f=_,m<y?Ur.set(Jr,0,-m):Ur.set(Jr,0,y)):x<d&&(d=x,m<y?Ur.set(Zr,0,m):Ur.set(Zr,0,-y))}return n&&Ur.copy(n,h?Zr:Jr),h},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Hr.x=qr.x=n.x,Hr.y=Xr.y=n.y,Yr.x=Xr.x=n.x+n.width,Yr.y=qr.y=n.y+n.height,Hr.transform(r),Xr.transform(r),Yr.transform(r),qr.transform(r),t.x=Wr(Hr.x,Yr.x,qr.x,Xr.x),t.y=Wr(Hr.y,Yr.y,qr.y,Xr.y);var l=jr(Hr.x,Yr.x,qr.x,Xr.x),u=jr(Hr.y,Yr.y,qr.y,Xr.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),Qr=Kr,$r={};function ei(e,t){var n=$r[t=t||I];n||(n=$r[t]=new yn(500));var r=n.get(e);return null==r&&(r=N.measureText(e,t).width,n.put(e,r)),r}function ti(e,t,n,r){var i=ei(e,t),o=oi(t),a=ri(0,i,n),s=ii(0,o,r);return new Qr(a,s,i,o)}function ni(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return ti(i[0],t,n,r);for(var o=new Qr(0,0,0,0),a=0;a<i.length;a++){var s=ti(i[a],t,n,r);0===a?o.copy(s):o.union(s)}return o}function ri(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function ii(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function oi(e){return ei("国",e)}function ai(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function si(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",p="top";if(r instanceof Array)l+=ai(r[0],n.width),u+=ai(r[1],n.height),c=null,p=null;else switch(r){case"left":l-=i,u+=s,c="right",p="middle";break;case"right":l+=i+a,u+=s,p="middle";break;case"top":l+=a/2,u-=i,c="center",p="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",p="middle";break;case"insideLeft":l+=i,u+=s,p="middle";break;case"insideRight":l+=a-i,u+=s,c="right",p="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",p="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,p="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",p="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=p,e}var li="__zr_normal__",ui=Fr.concat(["ignore"]),ci=ie(Fr,(function(e,t){return e[t]=!0,e}),{ignore:!1}),pi={},hi=new Qr(0,0,0,0),di=function(){function e(e){this.id=Y(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var u=hi;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(pi,n,u):si(pi,n,u),i.x=pi.x,i.y=pi.y,o=pi.align,a=pi.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var p=void 0,h=void 0;"center"===c?(p=.5*u.width,h=.5*u.height):(p=ai(c[0],u.width),h=ai(c[1],u.height)),l=!0,i.originX=-i.x+p+(r?0:u.x),i.originY=-i.y+h+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],l||(i.originX=-d[0],i.originY=-d[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,y=void 0;f&&this.canBeInsideText()?(v=n.insideFill,m=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(v),y=!0)):(v=n.outsideFill,m=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(v),y=!0)),(v=v||"#000")===g.fill&&m===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=m,g.autoStroke=y,g.align=o,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?kr:Sr},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&On(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Rn(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(fe(e))for(var n=ae(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==li)){var o=r.targetName,a=o?t[o]:t;r.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,ui)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(li,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===li;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!($(o,e)>=0)||!t&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}q("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(e[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],p=!!(c&&c.hoverLayer||n);p&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,p),g&&g.useStates(e,t,p),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=$(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=$(r,e),o=$(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];K(n,i),i.textConfig&&K(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,o){var a=!(t&&r);t&&t.textConfig?(this.textConfig=K({},r?this.textConfig:n.textConfig),K(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<ui.length;u++){var c=ui[u],p=i&&ci[c];t&&null!=t[c]?p?(l=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(p?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var h=this.animators[u],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(t||n)[d]:t||n)}l&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if(!e.__zr||e.__hostTarget){if(e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}else if("production"!==process.env.NODE_ENV)throw new Error("Recursive component attachment.")}else if("production"!==process.env.NODE_ENV)throw new Error("Text element has been added to zrender.")},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),"production"!==process.env.NODE_ENV&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new zr,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),K(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;if("production"===process.env.NODE_ENV||r){var i=new Qn(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i}q('Property "'+e+'" is not existed in element '+this.id)},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=$(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];e&&e!==a.scope?i.push(a):a.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){fi(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){fi(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=fi(this,t,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;var n={};function r(e,t,r){n[e+t+r]||(console.warn("DEPRECATED: '"+e+"' has been deprecated. use '"+t+"', '"+r+"' instead"),n[e+t+r]=!0)}function i(e,n,i,o){function a(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[o]},set:function(t){e[o]=t}})}Object.defineProperty(t,e,{get:function(){("production"!==process.env.NODE_ENV&&r(e,i,o),this[n])||a(this,this[n]=[]);return this[n]},set:function(t){"production"!==process.env.NODE_ENV&&r(e,i,o),this[i]=t[0],this[o]=t[1],this[n]=t,a(this,t)}})}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),e}();function fi(e,t,n,r,i){var o=[];mi(e,"",e,t,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},p=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var h=0;h<o.length;h++){var d=o[h];c&&d.done(c),p&&d.aborted(p),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function gi(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function vi(e,t,n){if(te(t[n]))if(te(e[n])||(e[n]=[]),ve(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),gi(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(te(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?gi(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else gi(o,i,a);o.length=i.length}else e[n]=t[n]}function mi(e,t,n,r,i,o,a,s){for(var l=ae(r),u=i.duration,c=i.delay,p=i.additive,h=i.setToFinal,d=!fe(o),f=e.animators,g=[],v=0;v<l.length;v++){var m=l[v],y=r[m];if(null!=y&&null!=n[m]&&(d||o[m]))if(!fe(y)||te(y)||ye(y))g.push(m);else{if(t){s||(n[m]=y,e.updateDuringAnimation(t));continue}mi(e,m,n[m],y,i,o&&o[m],a,s)}else s||(n[m]=y,e.updateDuringAnimation(t),g.push(m))}var x=g.length;if(!p&&x)for(var _=0;_<f.length;_++){if((w=f[_]).targetName===t)if(w.stopTracks(g)){var b=$(f,w);f.splice(b,1)}}if(i.force||(g=oe(g,(function(e){return t=r[e],i=n[e],!(t===i||te(t)&&te(i)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(t,i));var t,i})),x=g.length),x>0||i.force&&!a.length){var w,S=void 0,k=void 0,C=void 0;if(s){k={},h&&(S={});for(_=0;_<x;_++){k[m=g[_]]=n[m],h?S[m]=r[m]:n[m]=r[m]}}else if(h){C={};for(_=0;_<x;_++){C[m=g[_]]=Hn(n[m]),vi(n,r,m)}}(w=new Qn(n,!1,!1,p?oe(f,(function(e){return e.targetName===t})):null)).targetName=t,i.scope&&(w.scope=i.scope),h&&S&&w.whenWithKeys(0,S,g),C&&w.whenWithKeys(0,C,g),w.whenWithKeys(null==u?500:u,s?k:r,g).delay(c||0),e.addAnimator(w,t),a.push(w)}}ee(di,tt),ee(di,zr);var yi=di,xi=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return k(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),"production"!==process.env.NODE_ENV&&e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=$(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=$(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new Qr(0,0,0,0),n=e||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(Qr.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(yi);xi.prototype.type="group";var _i=xi,bi={},wi={};
2
+ /*!
3
+ * ZRender, a high performance 2d drawing library.
4
+ *
5
+ * Copyright (c) 2013, Baidu Inc.
6
+ * All rights reserved.
7
+ *
8
+ * LICENSE
9
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
10
+ */var Si=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new zt,o=n.renderer||"canvas";if(bi[o]||(o=ae(bi)[0]),"production"!==process.env.NODE_ENV&&!bi[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new bi[o](t,i,n,e),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l=A.node||A.worker||s?null:new _r(a.getViewportRoot(),a.root);this.handler=new At(i,a,l,a.root),this.animation=new rr({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},e.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return Bn(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Bn(t[i].color,1);return(n/=r)<.4}return!1}(e)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(e){var t,n=$n();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=$n();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof _i&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){var e;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,e=this.id,delete wi[e]},e}();function ki(e,t){var n=new Si(Y(),e,t);return wi[n.id]=n,n}var Ci=1e-4;function Mi(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function Ti(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return pe(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function Ai(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function Ii(e){return e.sort((function(e,t){return e-t})),e}function Di(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return Oi(e)}function Oi(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function Ei(e,t){var n=Math.max(Di(e),Di(t)),r=e+t;return n>20?r:Ai(r,n)}function Ni(e){var t=2*Math.PI;return(e%t+t)%t}function Li(e){return e>-1e-4&&e<Ci}var Pi=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ri(e){if(e instanceof Date)return e;if(pe(e)){var t=Pi.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function Bi(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Vi(e,t){var n=Bi(e),r=Math.pow(10,n),i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function zi(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,o=e[r].close,a=0;a<2;a++)i[a]<=t&&(i[a]=t,o[a]=a?1:1-n),t=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]==(n?-1:1)||!n&&s(e,t,1))}}function Fi(e){var t=parseFloat(e);return t==e&&(0!==t||!pe(e)||e.indexOf("x")<=0)?t:NaN}function Gi(e){return!isNaN(Fi(e))}function Ui(){return Math.round(9*Math.random())}function Wi(e,t){return 0===t?e:Wi(t,e%t)}function ji(e,t){return null==e?t:null==t?e:e*t/Wi(e,t)}var Hi={},Yi="undefined"!=typeof console&&console.warn&&console.log;function qi(e,t,n){if(Yi){if(n){if(Hi[t])return;Hi[t]=!0}console[e]("[ECharts] "+t)}}function Xi(e,t){qi("warn",e,t)}function Zi(e,t){qi("error",e,t)}function Ji(e){"production"!==process.env.NODE_ENV&&qi("warn","DEPRECATED: "+e,!0)}function Ki(e,t,n){"production"!==process.env.NODE_ENV&&Ji((n?"["+n+"]":"")+e+" is deprecated, use "+t+" instead.")}function Qi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="";if("production"!==process.env.NODE_ENV){var r=function(e){return void 0===e?"undefined":e===1/0?"Infinity":e===-1/0?"-Infinity":_e(e)?"NaN":e instanceof Date?"Date("+e.toISOString()+")":ce(e)?"function () { ... }":xe(e)?e+"":null};n=re(e,(function(e){if(pe(e))return e;var t=r(e);if(null!=t)return t;if("undefined"==typeof JSON||!JSON.stringify)return"?";try{return JSON.stringify(e,(function(e,t){var n=r(t);return null==n?t:n}))}catch(e){return"?"}})).join(" ")}return n}function $i(e){throw new Error(e)}function eo(e,t,n){return(t-e)*n+e}var to="series\0";function no(e){return e instanceof Array?e:null==e?[]:[e]}function ro(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var io=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function oo(e){return!fe(e)||ue(e)||e instanceof Date?e:e.value}function ao(e){return fe(e)&&!(e instanceof Array)}function so(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=Ee();ne(t,(function(e,n){fe(e)?"production"!==process.env.NODE_ENV&&(null==e.id||ho(e.id)||po(e.id),null==e.name||ho(e.name)||po(e.name)):t[n]=null}));var s,l,u=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var o=e[i];o&&null!=o.id&&t.set(o.id,i),r.push({existing:"replaceMerge"===n||go(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(e,a,n);return(r||i)&&function(e,t,n,r){ne(r,(function(i,o){if(i&&null!=i.id){var a=uo(i.id),s=n.get(a);if(null!=s){var l=e[s];Me(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}}))}(u,e,a,t),r&&function(e,t){ne(t,(function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(null==o.id||null==n.id)&&!go(n)&&!go(o)&&lo("name",o,n))return e[i].newOption=n,void(t[r]=null)}}))}(u,t),r||i?function(e,t,n){ne(t,(function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||go(r.existing)||r.existing&&null!=t.id&&!lo("id",t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}}))}(u,t,i):o&&function(e,t){ne(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}(u,t),s=u,l=Ee(),ne(s,(function(e){var t=e.existing;t&&l.set(t.id,e)})),ne(s,(function(e){var t=e.newOption;Me(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})})),ne(s,(function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(fe(r)){if(i.name=null!=r.name?uo(r.name):n?n.name:to+t,n)i.id=uo(n.id);else if(null!=r.id)i.id=uo(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,e)}})),u}function lo(e,t,n){var r=co(t[e],null),i=co(n[e],null);return null!=r&&null!=i&&r===i}function uo(e){if("production"!==process.env.NODE_ENV&&null==e)throw new Error;return co(e,"")}function co(e,t){return null==e?t:pe(e)?e:de(e)||he(e)?e+"":t}function po(e){"production"!==process.env.NODE_ENV&&Xi("`"+e+"` is invalid id or name. Must be a string or number.")}function ho(e){return he(e)||Gi(e)}function fo(e){var t=e.name;return!(!t||!t.indexOf(to))}function go(e){return e&&null!=e.id&&0===uo(e.id).indexOf("\0_ec_\0")}function vo(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?ue(t.dataIndex)?re(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?ue(t.name)?re(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function mo(){var e="__ec_inner_"+yo++;return function(t){return t[e]||(t[e]={})}}var yo=Ui();function xo(e,t,n){var r=_o(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each((function(t,r){var i=wo(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]})),a}function _o(e,t){var n;if(pe(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Ee(),o={},a=!1;return ne(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&$(t.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[l]=e}else o[n]=e})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var bo={useDefault:!0,enableAll:!1,enableNone:!1};function wo(e,t,n,r){r=r||bo;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===i||!1===i?(Me(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Me(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function So(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}var ko="___EC__COMPONENT__CONTAINER___",Co="___EC__EXTENDED_CLASS___";function Mo(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function To(e,t){e.$constructor=e,e.extend=function(e){"production"!==process.env.NODE_ENV&&ne(t,(function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?" in "+e.type:"")+".")}));var n,r,i=this;return ce(r=i)&&/^class\s/.test(Function.prototype.toString.call(r))?n=function(e){function t(){return e.apply(this,arguments)||this}return k(t,e),t}(i):(n=function(){(e.$constructor||i).apply(this,arguments)},function(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}(n,this)),K(n.prototype,e),n[Co]=!0,n.extend=this.extend,n.superCall=Do,n.superApply=Oo,n.superClass=i,n}}function Ao(e,t){e.extend=t.extend}var Io=Math.round(10*Math.random());function Do(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function Oo(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Eo(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){Me(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),e.prototype.type=r;var i=Mo(r);if(i.sub){if(i.sub!==ko){var o=function(e){var n=t[e.main];n&&n[ko]||((n=t[e.main]={})[ko]=!0);return n}(i);o[i.sub]=e}}else"production"!==process.env.NODE_ENV&&t[i.main]&&console.warn(i.main+" exists."),t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[ko]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=Mo(e),r=[],i=t[n.main];return i&&i[ko]?ne(i,(function(e,t){t!==ko&&r.push(e)})):r.push(i),r},e.hasClass=function(e){var n=Mo(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return ne(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=Mo(e),r=t[n.main];return r&&r[ko]}}function No(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(r&&$(r,s)>=0||i&&$(i,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var Lo=No([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Po=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Lo(this,e,t)},e}(),Ro=new yn(50);function Bo(e){if("string"==typeof e){var t=Ro.get(e);return t&&t.image}return e}function Vo(e,t,n,r,i){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=Ro.get(e),a={hostEl:n,cb:r,cbPayload:i};if(o)!Fo(t=o.image)&&o.pending.push(a);else{var s=N.loadImage(e,zo,zo);s.__zrImageSrc=e,Ro.put(e,s.__cachedImgObj={image:s,pending:[a]})}return t}return e}return t}function zo(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Fo(e){return e&&e.width&&e.height}var Go=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Uo(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=Wo(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=jo(o[a],i);return o.join("\n")}function Wo(e,t,n,r){var i=K({},r=r||{});i.font=t,n=we(n,"..."),i.maxIterations=we(r.maxIterations,2);var o=i.minChar=we(r.minChar,0);i.cnCharWidth=ei("国",t);var a=i.ascCharWidth=ei("a",t);i.placeholder=we(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=ei(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function jo(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=ei(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?Ho(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;o=ei(e=e.substr(0,s),r)}return""===e&&(e=t.placeholder),e}function Ho(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var Yo=function(){},qo=function(e){this.tokens=[],e&&(this.tokens=e)},Xo=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function Zo(e,t,n,r,i){var o,a,s=""===t,l=i&&n.rich[i]||{},u=e.lines,c=l.font||n.font,p=!1;if(r){var h=l.padding,d=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=ai(l.width,r.width)+d;u.length>0&&f+r.accumWidth>r.width&&(o=t.split("\n"),p=!0),r.accumWidth=f}else{var g=Qo(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var v=0;v<o.length;v++){var m=o[v],y=new Yo;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[v]:ei(m,c),v||p)u.push(new qo([y]));else{var x=(u[u.length-1]||(u[0]=new qo)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=y:(m||!_||s)&&x.push(y)}}}var Jo=ie(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Ko(e){return!function(e){var t=e.charCodeAt(0);return t>=33&&t<=383}(e)||!!Jo[e]}function Qo(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,p=0;p<e.length;p++){var h=e.charAt(p);if("\n"!==h){var d=ei(h,t),f=!r&&!Ko(h);(o.length?c+d>n:i+c+d>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=h,s="",c=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=h,c=d)):f?(o.push(l),a.push(u),l=h,u=d):(o.push(h),a.push(d)):(c+=d,f?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var $o="__zr_style_"+Math.round(10*Math.random()),ea={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ta={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ea[$o]=!0;var na=["z","z2","invisible"],ra=["invisible"],ia=function(e){function t(t){return e.call(this,t)||this}var n;return k(t,e),t.prototype._init=function(t){for(var n=ae(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){oa.copy(e.getBoundingRect()),e.transform&&oa.applyTransform(e.transform);return aa.width=t,aa.height=n,!oa.intersect(aa)}(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Qr(0,0,0,0)),t?Qr.applyTransform(e,n,t):e.copy(n),(i||o||a)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(a),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+a-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Qr(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:K(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Ne(ea,e)},t.prototype.useStyle=function(e){e[$o]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[$o]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,na)},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=ae(u),p=0;p<c.length;p++){(d=c[p])in s&&(s[d]=s[d],this.style[d]=u[d])}var h=ae(s);for(p=0;p<h.length;p++){var d=h[p];this.style[d]=this.style[d]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?ra:na;for(p=0;p<f.length;p++){d=f[p];n&&null!=n[d]?this[d]=n[d]:l&&null!=r[d]&&(this[d]=r[d])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return K(e,t),e},t.prototype.getAnimationStyleProps=function(){return ta},t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),t}(yi),oa=new Qr(0,0,0,0),aa=new Qr(0,0,0,0);var sa=ia,la=Math.min,ua=Math.max,ca=Math.sin,pa=Math.cos,ha=2*Math.PI,da=Ve(),fa=Ve(),ga=Ve();function va(e,t,n,r,i,o){i[0]=la(e,n),i[1]=la(t,r),o[0]=ua(e,n),o[1]=ua(t,r)}var ma=[],ya=[];function xa(e,t,n,r,i,o,a,s,l,u){var c=rn,p=en,h=c(e,n,i,a,ma);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var f=p(e,n,i,a,ma[d]);l[0]=la(f,l[0]),u[0]=ua(f,u[0])}h=c(t,r,o,s,ya);for(d=0;d<h;d++){var g=p(t,r,o,s,ya[d]);l[1]=la(g,l[1]),u[1]=ua(g,u[1])}l[0]=la(e,l[0]),u[0]=ua(e,u[0]),l[0]=la(a,l[0]),u[0]=ua(a,u[0]),l[1]=la(t,l[1]),u[1]=ua(t,u[1]),l[1]=la(s,l[1]),u[1]=ua(s,u[1])}function _a(e,t,n,r,i,o,a,s){var l=un,u=sn,c=ua(la(l(e,n,i),1),0),p=ua(la(l(t,r,o),1),0),h=u(e,n,i,c),d=u(t,r,o,p);a[0]=la(e,i,h),a[1]=la(t,o,d),s[0]=ua(e,i,h),s[1]=ua(t,o,d)}function ba(e,t,n,r,i,o,a,s,l){var u=Ze,c=Je,p=Math.abs(i-o);if(p%ha<1e-4&&p>1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(da[0]=pa(i)*n+e,da[1]=ca(i)*r+t,fa[0]=pa(o)*n+e,fa[1]=ca(o)*r+t,u(s,da,fa),c(l,da,fa),(i%=ha)<0&&(i+=ha),(o%=ha)<0&&(o+=ha),i>o&&!a?o+=ha:i<o&&a&&(i+=ha),a){var h=o;o=i,i=h}for(var d=0;d<o;d+=Math.PI/2)d>i&&(ga[0]=pa(d)*n+e,ga[1]=ca(d)*r+t,u(s,ga,s),c(l,ga,l))}var wa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Sa=[],ka=[],Ca=[],Ma=[],Ta=[],Aa=[],Ia=Math.min,Da=Math.max,Oa=Math.cos,Ea=Math.sin,Na=Math.abs,La=Math.PI,Pa=2*La,Ra="undefined"!=typeof Float32Array,Ba=[];function Va(e){return Math.round(e/La*1e8)/1e8%2*La}var za=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=Na(n/wr/e)||0,this._uy=Na(n/wr/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(wa.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Na(e-this._xi),r=Na(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(wa.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(wa.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(wa.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),Ba[0]=r,Ba[1]=i,function(e,t){var n=Va(e[0]);n<0&&(n+=Pa);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Pa?i=n+Pa:t&&n-i>=Pa?i=n-Pa:!t&&n>i?i=n+(Pa-Va(n-i)):t&&n<i&&(i=n-(Pa-Va(i-n))),e[0]=n,e[1]=i}(Ba,o),r=Ba[0];var a=(i=Ba[1])-r;return this.addData(wa.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=Oa(i)*n+e,this._yi=Ea(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(wa.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(wa.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!Ra||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();Ra&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},e.prototype.addData=function(e,t,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Ra&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Ca[0]=Ca[1]=Ta[0]=Ta[1]=Number.MAX_VALUE,Ma[0]=Ma[1]=Aa[0]=Aa[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(i=n=t[e],o=r=t[e+1]),a){case wa.M:n=i=t[e++],r=o=t[e++],Ta[0]=i,Ta[1]=o,Aa[0]=i,Aa[1]=o;break;case wa.L:va(n,r,t[e],t[e+1],Ta,Aa),n=t[e++],r=t[e++];break;case wa.C:xa(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],Ta,Aa),n=t[e++],r=t[e++];break;case wa.Q:_a(n,r,t[e++],t[e++],t[e],t[e+1],Ta,Aa),n=t[e++],r=t[e++];break;case wa.A:var l=t[e++],u=t[e++],c=t[e++],p=t[e++],h=t[e++],d=t[e++]+h;e+=1;var f=!t[e++];s&&(i=Oa(h)*c+l,o=Ea(h)*p+u),ba(l,u,c,p,h,d,f,Ta,Aa),n=Oa(d)*c+l,r=Ea(d)*p+u;break;case wa.R:va(i=n=t[e++],o=r=t[e++],i+t[e++],o+t[e++],Ta,Aa);break;case wa.Z:n=i,r=o}Ze(Ca,Ca,Ta),Je(Ma,Ma,Aa)}return 0===e&&(Ca[0]=Ca[1]=Ma[0]=Ma[1]=0),new Qr(Ca[0],Ca[1],Ma[0]-Ca[0],Ma[1]-Ca[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,p=0;p<t;){var h=e[p++],d=1===p;d&&(a=i=e[p],s=o=e[p+1]);var f=-1;switch(h){case wa.M:i=a=e[p++],o=s=e[p++];break;case wa.L:var g=e[p++],v=(x=e[p++])-o;(Na(I=g-i)>n||Na(v)>r||p===t-1)&&(f=Math.sqrt(I*I+v*v),i=g,o=x);break;case wa.C:var m=e[p++],y=e[p++],x=(g=e[p++],e[p++]),_=e[p++],b=e[p++];f=an(i,o,m,y,g,x,_,b,10),i=_,o=b;break;case wa.Q:f=pn(i,o,m=e[p++],y=e[p++],g=e[p++],x=e[p++],10),i=g,o=x;break;case wa.A:var w=e[p++],S=e[p++],k=e[p++],C=e[p++],M=e[p++],T=e[p++],A=T+M;p+=1,e[p++],d&&(a=Oa(M)*k+w,s=Ea(M)*C+S),f=Da(k,C)*Ia(Pa,Math.abs(T)),i=Oa(A)*k+w,o=Ea(A)*C+S;break;case wa.R:a=i=e[p++],s=o=e[p++],f=2*e[p++]+2*e[p++];break;case wa.Z:var I=a-i;v=s-o;f=Math.sqrt(I*I+v*v),i=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,l,u,c,p,h=this.data,d=this._ux,f=this._uy,g=this._len,v=t<1,m=0,y=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var _=0;_<g;){var b=h[_++],w=1===_;switch(w&&(n=i=h[_],r=o=h[_+1]),b!==wa.L&&x>0&&(e.lineTo(c,p),x=0),b){case wa.M:n=i=h[_++],r=o=h[_++],e.moveTo(i,o);break;case wa.L:a=h[_++],s=h[_++];var S=Na(a-i),k=Na(s-o);if(S>d||k>f){if(v){if(m+(X=l[y++])>u){var C=(u-m)/X;e.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break e}m+=X}e.lineTo(a,s),i=a,o=s,x=0}else{var M=S*S+k*k;M>x&&(c=a,p=s,x=M)}break;case wa.C:var T=h[_++],A=h[_++],I=h[_++],D=h[_++],O=h[_++],E=h[_++];if(v){if(m+(X=l[y++])>u){on(i,T,I,O,C=(u-m)/X,Sa),on(o,A,D,E,C,ka),e.bezierCurveTo(Sa[1],ka[1],Sa[2],ka[2],Sa[3],ka[3]);break e}m+=X}e.bezierCurveTo(T,A,I,D,O,E),i=O,o=E;break;case wa.Q:T=h[_++],A=h[_++],I=h[_++],D=h[_++];if(v){if(m+(X=l[y++])>u){cn(i,T,I,C=(u-m)/X,Sa),cn(o,A,D,C,ka),e.quadraticCurveTo(Sa[1],ka[1],Sa[2],ka[2]);break e}m+=X}e.quadraticCurveTo(T,A,I,D),i=I,o=D;break;case wa.A:var N=h[_++],L=h[_++],P=h[_++],R=h[_++],B=h[_++],V=h[_++],z=h[_++],F=!h[_++],G=P>R?P:R,U=Na(P-R)>.001,W=B+V,j=!1;if(v)m+(X=l[y++])>u&&(W=B+V*(u-m)/X,j=!0),m+=X;if(U&&e.ellipse?e.ellipse(N,L,P,R,z,B,W,F):e.arc(N,L,G,B,W,F),j)break e;w&&(n=Oa(B)*P+N,r=Ea(B)*R+L),i=Oa(W)*P+N,o=Ea(W)*R+L;break;case wa.R:n=i=h[_],r=o=h[_+1],a=h[_++],s=h[_++];var H=h[_++],Y=h[_++];if(v){if(m+(X=l[y++])>u){var q=u-m;e.moveTo(a,s),e.lineTo(a+Ia(q,H),s),(q-=H)>0&&e.lineTo(a+H,s+Ia(q,Y)),(q-=Y)>0&&e.lineTo(a+Da(H-q,0),s+Y),(q-=H)>0&&e.lineTo(a,s+Da(Y-q,0));break e}m+=X}e.rect(a,s,H,Y);break;case wa.Z:if(v){var X;if(m+(X=l[y++])>u){C=(u-m)/X;e.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break e}m+=X}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=wa,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),Fa=za;function Ga(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;var u=(l=(t-r)/(e-n))*o-a+(e*r-n*t)/(e-n);return u*u/(l*l+1)<=s/2*s/2}function Ua(e,t,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var p=l;if(c>t+p&&c>r+p&&c>o+p&&c>s+p||c<t-p&&c<r-p&&c<o-p&&c<s-p||u>e+p&&u>n+p&&u>i+p&&u>a+p||u<e-p&&u<n-p&&u<i-p&&u<a-p)return!1;var h=function(e,t,n,r,i,o,a,s,l,u,c){var p,h,d,f,g,v=.005,m=1/0;Zt[0]=l,Zt[1]=u;for(var y=0;y<1;y+=.05)Jt[0]=en(e,n,i,a,y),Jt[1]=en(t,r,o,s,y),(f=Ye(Zt,Jt))<m&&(p=y,m=f);m=1/0;for(var x=0;x<32&&!(v<Yt);x++)h=p-v,d=p+v,Jt[0]=en(e,n,i,a,h),Jt[1]=en(t,r,o,s,h),f=Ye(Jt,Zt),h>=0&&f<m?(p=h,m=f):(Kt[0]=en(e,n,i,a,d),Kt[1]=en(t,r,o,s,d),g=Ye(Kt,Zt),d<=1&&g<m?(p=d,m=g):v*=.5);return c&&(c[0]=en(e,n,i,a,p),c[1]=en(t,r,o,s,p)),jt(m)}(e,t,n,r,i,o,a,s,u,c,null);return h<=p/2}function Wa(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)return!1;var c=function(e,t,n,r,i,o,a,s,l){var u,c=.005,p=1/0;Zt[0]=a,Zt[1]=s;for(var h=0;h<1;h+=.05)Jt[0]=sn(e,n,i,h),Jt[1]=sn(t,r,o,h),(v=Ye(Zt,Jt))<p&&(u=h,p=v);p=1/0;for(var d=0;d<32&&!(c<Yt);d++){var f=u-c,g=u+c;Jt[0]=sn(e,n,i,f),Jt[1]=sn(t,r,o,f);var v=Ye(Jt,Zt);if(f>=0&&v<p)u=f,p=v;else{Kt[0]=sn(e,n,i,g),Kt[1]=sn(t,r,o,g);var m=Ye(Kt,Zt);g<=1&&m<p?(u=g,p=m):c*=.5}}return l&&(l[0]=sn(e,n,i,u),l[1]=sn(t,r,o,u)),jt(p)}(e,t,n,r,i,o,s,l,null);return c<=u/2}var ja=2*Math.PI;function Ha(e){return(e%=ja)<0&&(e+=ja),e}var Ya=2*Math.PI;function qa(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Ya<1e-4)return!0;if(o){var p=r;r=Ha(i),i=Ha(p)}else r=Ha(r),i=Ha(i);r>i&&(i+=Ya);var h=Math.atan2(l,s);return h<0&&(h+=Ya),h>=r&&h<=i||h+Ya>=r&&h+Ya<=i}function Xa(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;1!==a&&0!==a||(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var Za=Fa.CMD,Ja=2*Math.PI;var Ka=[-1,-1,-1],Qa=[-1,-1];function $a(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c,p=nn(t,r,o,s,u,Ka);if(0===p)return 0;for(var h=0,d=-1,f=void 0,g=void 0,v=0;v<p;v++){var m=Ka[v],y=0===m||1===m?.5:1;en(e,n,i,a,m)<l||(d<0&&(d=rn(t,r,o,s,Qa),Qa[1]<Qa[0]&&d>1&&(c=void 0,c=Qa[0],Qa[0]=Qa[1],Qa[1]=c),f=en(t,r,o,s,Qa[0]),d>1&&(g=en(t,r,o,s,Qa[1]))),2===d?m<Qa[0]?h+=f<t?y:-y:m<Qa[1]?h+=g<f?y:-y:h+=s<g?y:-y:m<Qa[0]?h+=f<t?y:-y:h+=s<f?y:-y)}return h}function es(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=function(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(Qt(o))$t(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(Qt(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,p=jt(u),h=(-a-p)/(2*o);(c=(-a+p)/(2*o))>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}(t,r,o,s,Ka);if(0===l)return 0;var u=un(t,r,o);if(u>=0&&u<=1){for(var c=0,p=sn(t,r,o,u),h=0;h<l;h++){var d=0===Ka[h]||1===Ka[h]?.5:1;sn(e,n,i,Ka[h])<a||(Ka[h]<u?c+=p<t?d:-d:c+=o<p?d:-d)}return c}d=0===Ka[0]||1===Ka[0]?.5:1;return sn(e,n,i,Ka[0])<a?0:o<t?d:-d}function ts(e,t,n,r,i,o,a,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ka[0]=-l,Ka[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Ja-1e-4){r=0,i=Ja;var c=o?1:-1;return a>=Ka[0]+e&&a<=Ka[1]+e?c:0}if(r>i){var p=r;r=i,i=p}r<0&&(r+=Ja,i+=Ja);for(var h=0,d=0;d<2;d++){var f=Ka[d];if(f+e>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Ja+g),(g>=r&&g<=i||g+Ja>=r&&g+Ja<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function ns(e,t,n,r,i){for(var o,a,s,l,u=e.data,c=e.len(),p=0,h=0,d=0,f=0,g=0,v=0;v<c;){var m=u[v++],y=1===v;switch(m===Za.M&&v>1&&(n||(p+=Xa(h,d,f,g,r,i))),y&&(f=h=u[v],g=d=u[v+1]),m){case Za.M:h=f=u[v++],d=g=u[v++];break;case Za.L:if(n){if(Ga(h,d,u[v],u[v+1],t,r,i))return!0}else p+=Xa(h,d,u[v],u[v+1],r,i)||0;h=u[v++],d=u[v++];break;case Za.C:if(n){if(Ua(h,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],t,r,i))return!0}else p+=$a(h,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],r,i)||0;h=u[v++],d=u[v++];break;case Za.Q:if(n){if(Wa(h,d,u[v++],u[v++],u[v],u[v+1],t,r,i))return!0}else p+=es(h,d,u[v++],u[v++],u[v],u[v+1],r,i)||0;h=u[v++],d=u[v++];break;case Za.A:var x=u[v++],_=u[v++],b=u[v++],w=u[v++],S=u[v++],k=u[v++];v+=1;var C=!!(1-u[v++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,y?(f=o,g=a):p+=Xa(h,d,o,a,r,i);var M=(r-x)*w/b+x;if(n){if(qa(x,_,w,S,S+k,C,t,M,i))return!0}else p+=ts(x,_,w,S,S+k,C,M,i);h=Math.cos(S+k)*b+x,d=Math.sin(S+k)*w+_;break;case Za.R:if(f=h=u[v++],g=d=u[v++],o=f+u[v++],a=g+u[v++],n){if(Ga(f,g,o,g,t,r,i)||Ga(o,g,o,a,t,r,i)||Ga(o,a,f,a,t,r,i)||Ga(f,a,f,g,t,r,i))return!0}else p+=Xa(o,g,o,a,r,i),p+=Xa(f,a,f,g,r,i);break;case Za.Z:if(n){if(Ga(h,d,f,g,t,r,i))return!0}else p+=Xa(h,d,f,g,r,i);h=f,d=g}}return n||(s=d,l=g,Math.abs(s-l)<1e-4)||(p+=Xa(h,d,f,g,r,i)||0),0!==p}var rs=Q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ea),is={style:Q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ta.style)},os=Fr.concat(["invisible","culling","z","z2","zlevel","parent"]),as=function(e){function t(t){return e.call(this,t)||this}var n;return k(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<os.length;++s)i[os[s]]=this[os[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=ae(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=t[o];"style"===o?this.style?K(this.style,a):this.useStyle(a):"shape"===o?K(this.shape,a):e.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(pe(e)){var t=Bn(e,0);return t>.5?Sr:t>.2?"#eee":kr}if(e)return kr}return Sr},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(pe(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Bn(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Fa(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,r){return ns(e,t,!0,n,r)}(o,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return ns(e,0,!1,t,n)}(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:K(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return Ne(rs,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=K({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=K({},r.shape),K(s,n.shape)):(s=K({},i?this.shape:r.shape),K(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=K({},this.shape);for(var u={},c=ae(s),p=0;p<c.length;p++){var h=c[p];"object"==typeof s[h]?this.shape[h]=s[h]:u[h]=s[h]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return is},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return k(n,t),n.prototype.getDefaultStyle=function(){return X(e.style)},n.prototype.getDefaultShape=function(){return X(e.shape)},n}(t);for(var r in e)"function"==typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),t}(sa),ss=as,ls=Q({strokeFirst:!0,font:I,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},rs),us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Ne(ls,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=ni(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(sa);us.prototype.type="tspan";var cs=us,ps=Q({x:0,y:0},ea),hs={style:Q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ta.style)};var ds=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t.prototype.createStyle=function(e){return Ne(ps,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!=typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var o="width"===e?"height":"width",a=t[o];return null==a?i[e]:i[e]/i[o]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return hs},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Qr(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(sa);ds.prototype.type="image";var fs=ds;var gs=Math.round;function vs(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(gs(2*r)===gs(2*i)&&(e.x1=e.x2=ys(r,s,!0)),gs(2*o)===gs(2*a)&&(e.y1=e.y2=ys(o,s,!0)),e):e}}function ms(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=ys(r,s,!0),e.y=ys(i,s,!0),e.width=Math.max(ys(r+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(ys(i+a,s,!1)-e.y,0===a?0:1),e):e}}function ys(e,t,n){if(!t)return e;var r=gs(2*e);return(r+gs(t))%2==0?r/2:(r+(n?1:-1))/2}var xs=function(){this.x=0,this.y=0,this.width=0,this.height=0},_s={},bs=function(e){function t(t){return e.call(this,t)||this}return k(t,e),t.prototype.getDefaultShape=function(){return new xs},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=ms(_s,t,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?function(e,t){var n,r,i,o,a,s=t.x,l=t.y,u=t.width,c=t.height,p=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof p?n=r=i=o=p:p instanceof Array?1===p.length?n=r=i=o=p[0]:2===p.length?(n=i=p[0],r=o=p[1]):3===p.length?(n=p[0],r=o=p[1],i=p[2]):(n=p[0],r=p[1],i=p[2],o=p[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ss);bs.prototype.type="rect";var ws=bs,Ss={fill:"#000"},ks={style:Q({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},ta.style)},Cs=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ss,n.attr(t),n}return k(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,function(e){Os(e),ne(e.rich,Os)}(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Qr(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var o=t[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Ss},t.prototype.setTextContent=function(e){if("production"!==process.env.NODE_ENV)throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return K(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=ae(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},K(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return ks},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||I,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,o=t.font,a="truncate"===r,s=oi(o),l=we(t.lineHeight,s),u=!!t.backgroundColor,c="truncate"===t.lineOverflow,p=t.width,h=(n=null==p||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?Qo(e,t.font,p,"breakAll"===r,0).lines:[]).length*l,d=we(t.height,h);if(h>d&&c){var f=Math.floor(d/l);n=n.slice(0,f)}if(e&&a&&null!=p)for(var g=Wo(p,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;v<n.length;v++)n[v]=jo(n[v],g);var m=d,y=0;for(v=0;v<n.length;v++)y=Math.max(ei(n[v],o),y);null==p&&(p=y);var x=y;return i&&(m+=i[0]+i[2],x+=i[1]+i[3],p+=i[1]+i[3]),u&&(x=p),{lines:n,height:d,outerWidth:x,outerHeight:m,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:h,width:p}}(Ps(e),e),i=Rs(e),o=!!e.backgroundColor,a=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,p=this._defaultStyle,h=e.x||0,d=e.y||0,f=e.align||p.align||"left",g=e.verticalAlign||p.verticalAlign||"top",v=h,m=ii(d,r.contentHeight,g);if(i||n){var y=ri(h,s,f),x=ii(d,a,g);i&&this._renderBackground(e,e,y,x,s,a)}m+=c/2,n&&(v=Ls(h,f,n),"top"===g?m+=n[0]:"bottom"===g&&(m-=n[2]));for(var _=0,b=!1,w=(Ns("fill"in e?e.fill:(b=!0,p.fill))),S=(Es("stroke"in e?e.stroke:o||p.autoStroke&&!b?null:(_=2,p.stroke))),k=e.textShadowBlur>0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),M=r.calculatedLineHeight,T=0;T<u.length;T++){var A=this._getOrCreateChild(cs),D=A.createStyle();A.useStyle(D),D.text=u[T],D.x=v,D.y=m,f&&(D.textAlign=f),D.textBaseline="middle",D.opacity=e.opacity,D.strokeFirst=!0,k&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||"transparent",D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=S,D.fill=w,S&&(D.lineWidth=e.lineWidth||_,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,Ds(D,e),m+=c,C&&A.setBoundingRect(new Qr(ri(D.x,e.width,D.textAlign),ii(D.y,M,D.textBaseline),l,M))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new Xo;if(null!=e&&(e+=""),!e)return n;for(var r,i=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=Go.lastIndex=0;null!=(r=Go.exec(e));){var u=r.index;u>l&&Zo(n,e.substring(l,u),t,s),Zo(n,r[2],t,s,r[1]),l=Go.lastIndex}l<e.length&&Zo(n,e.substring(l,e.length),t,s);var c=[],p=0,h=0,d=t.padding,f="truncate"===a,g="truncate"===t.lineOverflow;function v(e,t,n){e.width=t,e.lineHeight=n,p+=n,h=Math.max(h,t)}e:for(var m=0;m<n.lines.length;m++){for(var y=n.lines[m],x=0,_=0,b=0;b<y.tokens.length;b++){var w=(E=y.tokens[b]).styleName&&t.rich[E.styleName]||{},S=E.textPadding=w.padding,k=S?S[1]+S[3]:0,C=E.font=w.font||t.font;E.contentHeight=oi(C);var M=we(w.height,E.contentHeight);if(E.innerHeight=M,S&&(M+=S[0]+S[2]),E.height=M,E.lineHeight=Se(w.lineHeight,t.lineHeight,M),E.align=w&&w.align||t.align,E.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=o&&p+E.lineHeight>o){b>0?(y.tokens=y.tokens.slice(0,b),v(y,_,x),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var T=w.width,A=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))E.percentWidth=T,c.push(E),E.contentWidth=ei(E.text,C);else{if(A){var I=w.backgroundColor,D=I&&I.image;D&&Fo(D=Bo(D))&&(E.width=Math.max(E.width,D.width*M/D.height))}var O=f&&null!=i?i-_:null;null!=O&&O<E.width?!A||O<k?(E.text="",E.width=E.contentWidth=0):(E.text=Uo(E.text,O-k,C,t.ellipsis,{minChar:t.truncateMinChar}),E.width=E.contentWidth=ei(E.text,C)):E.contentWidth=ei(E.text,C)}E.width+=k,_+=E.width,w&&(x=Math.max(x,E.lineHeight))}v(y,_,x)}for(n.outerWidth=n.width=we(i,h),n.outerHeight=n.height=we(o,p),n.contentHeight=p,n.contentWidth=h,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]),m=0;m<c.length;m++){var E,N=(E=c[m]).percentWidth;E.width=parseInt(N,10)/100*n.width}return n}(Ps(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,o=e.padding,a=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign,p=ri(a,r,u),h=ii(s,i,c),d=p,f=h;o&&(d+=o[3],f+=o[0]);var g=d+n;Rs(e)&&this._renderBackground(e,e,p,h,r,i);for(var v=!!e.backgroundColor,m=0;m<t.lines.length;m++){for(var y=t.lines[m],x=y.tokens,_=x.length,b=y.lineHeight,w=y.width,S=0,k=d,C=g,M=_-1,T=void 0;S<_&&(!(T=x[S]).align||"left"===T.align);)this._placeToken(T,e,b,f,k,"left",v),w-=T.width,k+=T.width,S++;for(;M>=0&&"right"===(T=x[M]).align;)this._placeToken(T,e,b,f,C,"right",v),w-=T.width,C-=T.width,M--;for(k+=(n-(k-d)-(g-C)-w)/2;S<=M;)T=x[S],this._placeToken(T,e,b,f,k+T.width/2,"center",v),k+=T.width,S++;f+=b}},t.prototype._placeToken=function(e,t,n,r,i,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=r+n/2;"top"===l?u=r+e.height/2:"bottom"===l&&(u=r+n-e.height/2),!e.isLineHolder&&Rs(s)&&this._renderBackground(s,t,"right"===o?i-e.width:"center"===o?i-e.width/2:i,u-e.height/2,e.width,e.height);var c=!!s.backgroundColor,p=e.textPadding;p&&(i=Ls(i,o,p),u-=e.height/2-p[0]-e.innerHeight/2);var h=this._getOrCreateChild(cs),d=h.createStyle();h.useStyle(d);var f=this._defaultStyle,g=!1,v=0,m=Ns("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,f.fill)),y=Es("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||a||f.autoStroke&&!g?null:(v=2,f.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;d.text=e.text,d.x=i,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,d.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=e.font||I,d.opacity=Se(s.opacity,t.opacity,1),Ds(d,s),y&&(d.lineWidth=Se(s.lineWidth,t.lineWidth,v),d.lineDash=we(s.lineDash,t.lineDash),d.lineDashOffset=t.lineDashOffset||0,d.stroke=y),m&&(d.fill=m);var _=e.contentWidth,b=e.contentHeight;h.setBoundingRect(new Qr(ri(d.x,_,d.textAlign),ii(d.y,b,d.textBaseline),_,b))},t.prototype._renderBackground=function(e,t,n,r,i,o){var a,s,l,u=e.backgroundColor,c=e.borderWidth,p=e.borderColor,h=u&&u.image,d=u&&!h,f=e.borderRadius,g=this;if(d||e.lineHeight||c&&p){(a=this._getOrCreateChild(ws)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=r,v.width=i,v.height=o,v.r=f,a.dirtyShape()}if(d)(l=a.style).fill=u||null,l.fillOpacity=we(e.fillOpacity,1);else if(h){(s=this._getOrCreateChild(fs)).onload=function(){g.dirtyStyle()};var m=s.style;m.image=u.image,m.x=n,m.y=r,m.width=i,m.height=o}c&&p&&((l=a.style).lineWidth=c,l.stroke=p,l.strokeOpacity=we(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=Se(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return function(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}(e)&&(t=[e.fontStyle,e.fontWeight,Is(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Te(t)||e.textFont||e.font},t}(sa),Ms={left:!0,right:1,center:1},Ts={top:1,bottom:1,middle:1},As=["fontStyle","fontWeight","fontSize","fontFamily"];function Is(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e}function Ds(e,t){for(var n=0;n<As.length;n++){var r=As[n],i=t[r];null!=i&&(e[r]=i)}}function Os(e){if(e){e.font=Cs.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||Ms[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||Ts[n]?n:"top",e.padding&&(e.padding=Ce(e.padding))}}function Es(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function Ns(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function Ls(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function Ps(e){var t=e.text;return null!=t&&(t+=""),t}function Rs(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Bs=Cs,Vs=mo(),zs=1,Fs={},Gs=mo(),Us=mo(),Ws=["emphasis","blur","select"],js=["normal","emphasis","blur","select"],Hs="highlight",Ys="downplay",qs="select",Xs="unselect",Zs="toggleSelect";function Js(e){return null!=e&&"none"!==e}var Ks=new yn(100);function Qs(e){if(pe(e)){var t=Ks.get(e);return t||(t=Nn(e,-.1),Ks.put(e,t)),t}if(ye(e)){var n=K({},e);return n.colorStops=re(e.colorStops,(function(e){return{offset:e.offset,color:Nn(e.color,-.1)}})),n}return e}function $s(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function el(e){$s(e,"emphasis",2)}function tl(e){2===e.hoverState&&$s(e,"normal",0)}function nl(e){$s(e,"blur",1)}function rl(e){1===e.hoverState&&$s(e,"normal",0)}function il(e){e.selected=!0}function ol(e){e.selected=!1}function al(e,t,n){t(e,n)}function sl(e,t,n){al(e,t,n),e.isGroup&&e.traverse((function(e){al(e,t,n)}))}function ll(e,t){switch(t){case"emphasis":e.hoverState=2;break;case"normal":e.hoverState=0;break;case"blur":e.hoverState=1;break;case"select":e.selected=!0}}function ul(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&$(n,"select")>=0,o=!1;if(e instanceof ss){var a=Gs(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Js(s)||Js(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=K({},r),(u=K({},u)).fill=s):!Js(u.fill)&&Js(s)?(o=!0,r=K({},r),(u=K({},u)).fill=Qs(s)):!Js(u.stroke)&&Js(l)&&(o||(r=K({},r),u=K({},u)),u.stroke=Qs(l)),r.style=u}}if(r&&null==r.z2){o||(r=K({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:10)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=$(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:function(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=K({},n),a=K({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=K({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function cl(e){e.stateProxy=ul;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=ul),n&&(n.stateProxy=ul)}function pl(e,t){!yl(e,t)&&!e.__highByOuter&&sl(e,el)}function hl(e,t){!yl(e,t)&&!e.__highByOuter&&sl(e,tl)}function dl(e,t){e.__highByOuter|=1<<(t||0),sl(e,el)}function fl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&sl(e,tl)}function gl(e){sl(e,rl)}function vl(e){sl(e,il)}function ml(e){sl(e,ol)}function yl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function xl(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var o=Us(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(e){rl(e)})),a&&n.push(i)),o.isBlured=!1})),ne(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function _l(e,t,n,r){var i=r.getModel();function o(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&gl(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries((function(e){var i=a===e,u=e.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse((function(e){nl(e)})),te(t))o(e.getData(),t);else if(fe(t))for(var c=ae(t),p=0;p<c.length;p++)o(e.getData(c[p]),t[c[p]]);l.push(e),Us(e).isBlured=!0}})),i.eachComponent((function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function bl(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){Us(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(e){nl(e)}))}}}function wl(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("production"===process.env.NODE_ENV||Ol(l[u])||Zi("param should be highDownDispatcher"),"self"===Vs(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Sl(e){ne(e.getAllData(),(function(t){var n=t.data,r=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,r)?vl(t):ml(t)}))}))}function kl(e){var t=[];return e.eachSeries((function(e){ne(e.getAllData(),(function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}}))})),t}function Cl(e,t,n){Dl(e,!0),sl(e,cl),function(e,t,n){var r=Vs(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}(e,t,n)}function Ml(e,t,n,r){r?function(e){Dl(e,!1)}(e):Cl(e,t,n)}var Tl=["emphasis","blur","select"],Al={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Il(e,t,n,r){n=n||"itemStyle";for(var i=0;i<Tl.length;i++){var o=Tl[i],a=t.getModel([o,n]);e.ensureState(o).style=r?r(a):a[Al[n]]()}}function Dl(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Ol(e){return!(!e||!e.__highDownDispatcher)}function El(e){var t=e.type;return t===qs||t===Xs||t===Zs}function Nl(e){var t=e.type;return t===Hs||t===Ys}var Ll=Fa.CMD,Pl=[[],[],[]],Rl=Math.sqrt,Bl=Math.atan2;var Vl=Math.sqrt,zl=Math.sin,Fl=Math.cos,Gl=Math.PI;function Ul(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Wl(e,t){return(e[0]*t[0]+e[1]*t[1])/(Ul(e)*Ul(t))}function jl(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Wl(e,t))}function Hl(e,t,n,r,i,o,a,s,l,u,c){var p=l*(Gl/180),h=Fl(p)*(e-n)/2+zl(p)*(t-r)/2,d=-1*zl(p)*(e-n)/2+Fl(p)*(t-r)/2,f=h*h/(a*a)+d*d/(s*s);f>1&&(a*=Vl(f),s*=Vl(f));var g=(i===o?-1:1)*Vl((a*a*(s*s)-a*a*(d*d)-s*s*(h*h))/(a*a*(d*d)+s*s*(h*h)))||0,v=g*a*d/s,m=g*-s*h/a,y=(e+n)/2+Fl(p)*v-zl(p)*m,x=(t+r)/2+zl(p)*v+Fl(p)*m,_=jl([1,0],[(h-v)/a,(d-m)/s]),b=[(h-v)/a,(d-m)/s],w=[(-1*h-v)/a,(-1*d-m)/s],S=jl(b,w);if(Wl(b,w)<=-1&&(S=Gl),Wl(b,w)>=1&&(S=0),S<0){var k=Math.round(S/Gl*1e6)/1e6;S=2*Gl+k%2*Gl}c.addData(u,y,x,a,s,_,S,p,o)}var Yl=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ql=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var Xl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t.prototype.applyTransform=function(e){},t}(ss);function Zl(e){return null!=e.setData}function Jl(e,t){var n=function(e){var t=new Fa;if(!e)return t;var n,r=0,i=0,o=r,a=i,s=Fa.CMD,l=e.match(Yl);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],p=c.charAt(0),h=void 0,d=c.match(ql)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var v=0;v<f;){var m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,k=r,C=i,M=void 0,T=void 0;switch(p){case"l":r+=d[v++],i+=d[v++],h=s.L,t.addData(h,r,i);break;case"L":r=d[v++],i=d[v++],h=s.L,t.addData(h,r,i);break;case"m":r+=d[v++],i+=d[v++],h=s.M,t.addData(h,r,i),o=r,a=i,p="l";break;case"M":r=d[v++],i=d[v++],h=s.M,t.addData(h,r,i),o=r,a=i,p="L";break;case"h":r+=d[v++],h=s.L,t.addData(h,r,i);break;case"H":r=d[v++],h=s.L,t.addData(h,r,i);break;case"v":i+=d[v++],h=s.L,t.addData(h,r,i);break;case"V":i=d[v++],h=s.L,t.addData(h,r,i);break;case"C":h=s.C,t.addData(h,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),r=d[v-2],i=d[v-1];break;case"c":h=s.C,t.addData(h,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i),r+=d[v-2],i+=d[v-1];break;case"S":m=r,y=i,M=t.len(),T=t.data,n===s.C&&(m+=r-T[M-4],y+=i-T[M-3]),h=s.C,k=d[v++],C=d[v++],r=d[v++],i=d[v++],t.addData(h,m,y,k,C,r,i);break;case"s":m=r,y=i,M=t.len(),T=t.data,n===s.C&&(m+=r-T[M-4],y+=i-T[M-3]),h=s.C,k=r+d[v++],C=i+d[v++],r+=d[v++],i+=d[v++],t.addData(h,m,y,k,C,r,i);break;case"Q":k=d[v++],C=d[v++],r=d[v++],i=d[v++],h=s.Q,t.addData(h,k,C,r,i);break;case"q":k=d[v++]+r,C=d[v++]+i,r+=d[v++],i+=d[v++],h=s.Q,t.addData(h,k,C,r,i);break;case"T":m=r,y=i,M=t.len(),T=t.data,n===s.Q&&(m+=r-T[M-4],y+=i-T[M-3]),r=d[v++],i=d[v++],h=s.Q,t.addData(h,m,y,r,i);break;case"t":m=r,y=i,M=t.len(),T=t.data,n===s.Q&&(m+=r-T[M-4],y+=i-T[M-3]),r+=d[v++],i+=d[v++],h=s.Q,t.addData(h,m,y,r,i);break;case"A":x=d[v++],_=d[v++],b=d[v++],w=d[v++],S=d[v++],Hl(k=r,C=i,r=d[v++],i=d[v++],w,S,x,_,b,h=s.A,t);break;case"a":x=d[v++],_=d[v++],b=d[v++],w=d[v++],S=d[v++],Hl(k=r,C=i,r+=d[v++],i+=d[v++],w,S,x,_,b,h=s.A,t)}}"z"!==p&&"Z"!==p||(h=s.Z,t.addData(h),r=o,i=a),n=h}return t.toStatic(),t}(e),r=K({},t);return r.buildPath=function(e){if(Zl(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){!function(e,t){if(t){var n,r,i,o,a,s,l=e.data,u=e.len(),c=Ll.M,p=Ll.C,h=Ll.L,d=Ll.R,f=Ll.A,g=Ll.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case h:r=1;break;case p:r=3;break;case g:r=2;break;case f:var v=t[4],m=t[5],y=Rl(t[0]*t[0]+t[1]*t[1]),x=Rl(t[2]*t[2]+t[3]*t[3]),_=Bl(-t[1]/x,t[0]/y);l[i]*=y,l[i++]+=v,l[i]*=x,l[i++]+=m,l[i++]*=y,l[i++]*=x,l[i++]+=_,l[i++]+=_,o=i+=2;break;case d:s[0]=l[i++],s[1]=l[i++],Xe(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],Xe(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var b=Pl[a];b[0]=l[i++],b[1]=l[i++],Xe(b,b,t),l[o++]=b[0],l[o++]=b[1]}}e.increaseVersion()}}(n,e),this.dirtyShape()},r}function Kl(e,t){return new Xl(Jl(e,t))}var Ql=function(){this.cx=0,this.cy=0,this.r=0},$l=function(e){function t(t){return e.call(this,t)||this}return k(t,e),t.prototype.getDefaultShape=function(){return new Ql},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(ss);$l.prototype.type="circle";var eu=$l,tu=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},nu=function(e){function t(t){return e.call(this,t)||this}return k(t,e),t.prototype.getDefaultShape=function(){return new tu},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),e.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),e.closePath()},t}(ss);nu.prototype.type="ellipse";var ru=nu,iu=Math.PI,ou=2*iu,au=Math.sin,su=Math.cos,lu=Math.acos,uu=Math.atan2,cu=Math.abs,pu=Math.sqrt,hu=Math.max,du=Math.min,fu=1e-4;function gu(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/pu(s*s+l*l),c=u*l,p=-u*s,h=e+c,d=t+p,f=n+c,g=r+p,v=(h+f)/2,m=(d+g)/2,y=f-h,x=g-d,_=y*y+x*x,b=i-o,w=h*g-f*d,S=(x<0?-1:1)*pu(hu(0,b*b*_-w*w)),k=(w*x-y*S)/_,C=(-w*y-x*S)/_,M=(w*x+y*S)/_,T=(-w*y+x*S)/_,A=k-v,I=C-m,D=M-v,O=T-m;return A*A+I*I>D*D+O*O&&(k=M,C=T),{cx:k,cy:C,x0:-c,y0:-p,x1:k*(i/b-1),y1:C*(i/b-1)}}function vu(e,t){var n,r=hu(t.r,0),i=hu(t.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,c=t.cy,p=!!t.clockwise,h=cu(l-s),d=h>ou&&h%ou;if(d>fu&&(h=d),r>fu)if(h>ou-fu)e.moveTo(u+r*su(s),c+r*au(s)),e.arc(u,c,r,s,l,!p),i>fu&&(e.moveTo(u+i*su(l),c+i*au(l)),e.arc(u,c,i,l,s,p));else{var f=void 0,g=void 0,v=void 0,m=void 0,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,k=void 0,C=void 0,M=void 0,T=void 0,A=void 0,I=void 0,D=r*su(s),O=r*au(s),E=i*su(l),N=i*au(l),L=h>fu;if(L){var P=t.cornerRadius;P&&(n=function(e){var t;if(ue(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(P),f=n[0],g=n[1],v=n[2],m=n[3]);var R=cu(r-i)/2;if(y=du(R,v),x=du(R,m),_=du(R,f),b=du(R,g),k=w=hu(y,x),C=S=hu(_,b),(w>fu||S>fu)&&(M=r*su(l),T=r*au(l),A=i*su(s),I=i*au(s),h<iu)){var B=function(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,p=s-o,h=p*l-c*u;if(!(h*h<fu))return[e+(h=(c*(t-o)-p*(e-i))/h)*l,t+h*u]}(D,O,A,I,M,T,E,N);if(B){var V=D-B[0],z=O-B[1],F=M-B[0],G=T-B[1],U=1/au(lu((V*F+z*G)/(pu(V*V+z*z)*pu(F*F+G*G)))/2),W=pu(B[0]*B[0]+B[1]*B[1]);k=du(w,(r-W)/(U+1)),C=du(S,(i-W)/(U-1))}}}if(L)if(k>fu){var j=du(v,k),H=du(m,k),Y=gu(A,I,D,O,r,j,p),q=gu(M,T,E,N,r,H,p);e.moveTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),k<w&&j===H?e.arc(u+Y.cx,c+Y.cy,k,uu(Y.y0,Y.x0),uu(q.y0,q.x0),!p):(j>0&&e.arc(u+Y.cx,c+Y.cy,j,uu(Y.y0,Y.x0),uu(Y.y1,Y.x1),!p),e.arc(u,c,r,uu(Y.cy+Y.y1,Y.cx+Y.x1),uu(q.cy+q.y1,q.cx+q.x1),!p),H>0&&e.arc(u+q.cx,c+q.cy,H,uu(q.y1,q.x1),uu(q.y0,q.x0),!p))}else e.moveTo(u+D,c+O),e.arc(u,c,r,s,l,!p);else e.moveTo(u+D,c+O);if(i>fu&&L)if(C>fu){j=du(f,C),Y=gu(E,N,M,T,i,-(H=du(g,C)),p),q=gu(D,O,A,I,i,-j,p);e.lineTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),C<S&&j===H?e.arc(u+Y.cx,c+Y.cy,C,uu(Y.y0,Y.x0),uu(q.y0,q.x0),!p):(H>0&&e.arc(u+Y.cx,c+Y.cy,H,uu(Y.y0,Y.x0),uu(Y.y1,Y.x1),!p),e.arc(u,c,i,uu(Y.cy+Y.y1,Y.cx+Y.x1),uu(q.cy+q.y1,q.cx+q.x1),p),j>0&&e.arc(u+q.cx,c+q.cy,j,uu(q.y1,q.x1),uu(q.y0,q.x0),!p))}else e.lineTo(u+E,c+N),e.arc(u,c,i,l,s,p);else e.lineTo(u+E,c+N)}else e.moveTo(u,c);e.closePath()}}}var mu=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},yu=function(e){function t(t){return e.call(this,t)||this}return k(t,e),t.prototype.getDefaultShape=function(){return new mu},t.prototype.buildPath=function(e,t){vu(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ss);yu.prototype.type="sector";var xu=yu,_u=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},bu=function(e){function t(t){return e.call(this,t)||this}return k(t,e),t.prototype.getDefaultShape=function(){return new _u},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(ss);bu.prototype.type="ring";var wu=bu;function Su(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=function(e,t,n,r){var i,o,a,s,l=[],u=[],c=[],p=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,d=e.length;h<d;h++)Ze(a,a,e[h]),Je(s,s,e[h]);Ze(a,a,r[0]),Je(s,s,r[1])}for(h=0,d=e.length;h<d;h++){var f=e[h];if(n)i=e[h?h-1:d-1],o=e[(h+1)%d];else{if(0===h||h===d-1){l.push(ze(e[h]));continue}i=e[h-1],o=e[h+1]}Ge(u,o,i),Ue(u,u,t);var g=je(f,i),v=je(f,o),m=g+v;0!==m&&(g/=m,v/=m),Ue(c,u,-g),Ue(p,u,v);var y=Fe([],f,c),x=Fe([],f,p);r&&(Je(y,y,a),Ze(y,y,s),Je(x,x,a),Ze(x,x,s)),l.push(y),l.push(x)}return n&&l.push(l.shift()),l}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);s=1;for(var p=i.length;s<p;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var ku=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Cu=function(e){function t(t){return e.call(this,t)||this}return k(t,e),t.prototype.getDefaultShape=function(){return new ku},t.prototype.buildPath=function(e,t){Su(e,t,!0)},t}(ss);Cu.prototype.type="polygon";var Mu=Cu,Tu=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Au=function(e){function t(t){return e.call(this,t)||this}return k(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Tu},t.prototype.buildPath=function(e,t){Su(e,t,!1)},t}(ss);Au.prototype.type="polyline";var Iu=Au,Du={},Ou=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Eu=function(e){function t(t){return e.call(this,t)||this}return k(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ou},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=vs(Du,t,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=t.x1,r=t.y1,i=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),e.lineTo(i,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(ss);Eu.prototype.type="line";var Nu=Eu,Lu=[],Pu=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Ru(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?tn:en)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?tn:en)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?ln:sn)(e.x1,e.cpx1,e.x2,t),(n?ln:sn)(e.y1,e.cpy1,e.y2,t)]}var Bu=function(e){function t(t){return e.call(this,t)||this}return k(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Pu},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==l||null==u?(c<1&&(cn(n,a,i,c,Lu),a=Lu[1],i=Lu[2],cn(r,s,o,c,Lu),s=Lu[1],o=Lu[2]),e.quadraticCurveTo(a,s,i,o)):(c<1&&(on(n,a,l,i,c,Lu),a=Lu[1],l=Lu[2],i=Lu[3],on(r,s,u,o,c,Lu),s=Lu[1],u=Lu[2],o=Lu[3]),e.bezierCurveTo(a,s,l,u,i,o)))},t.prototype.pointAt=function(e){return Ru(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Ru(this.shape,e,!0);return We(t,t)},t}(ss);Bu.prototype.type="bezier-curve";var Vu=Bu,zu=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Fu=function(e){function t(t){return e.call(this,t)||this}return k(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zu},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,o,a,!s)},t}(ss);Fu.prototype.type="arc";var Gu=Fu,Uu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return k(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ss.prototype.getBoundingRect.call(this)},t}(ss),Wu=Uu,ju=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Hu=function(e){function t(t,n,r,i,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return k(t,e),t}(ju),Yu=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return k(t,e),t}(ju),qu=[0,0],Xu=[0,0],Zu=new Ur,Ju=new Ur,Ku=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ur;for(n=0;n<2;n++)this._axes[n]=new Ur;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,o=e.y,a=i+e.width,s=o+e.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),t)for(var l=0;l<4;l++)n[l].transform(t);Ur.sub(r[0],n[1],n[0]),Ur.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return Zu.set(1/0,1/0),Ju.set(0,0),!this._intersectCheckOneSide(this,e,Zu,Ju,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,Zu,Ju,r,-1)&&(n=!1,r)||r||Ur.copy(t,n?Zu:Ju),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,qu),this._getProjMinMaxOnAxis(s,t._corners,Xu),qu[1]<Xu[0]||qu[0]>Xu[1]){if(a=!1,i)return a;var u=Math.abs(Xu[0]-qu[1]),c=Math.abs(qu[0]-Xu[1]);Math.min(u,c)>r.len()&&(u<c?Ur.scale(r,l,-u*o):Ur.scale(r,l,c*o))}else if(n){u=Math.abs(Xu[0]-qu[1]),c=Math.abs(qu[0]-Xu[1]);Math.min(u,c)<n.len()&&(u<c?Ur.scale(n,l,u*o):Ur.scale(n,l,-c*o))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,o=t[0].dot(r)+i[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}(),Qu=Ku,$u=[],ec=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return k(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Qr(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform($u)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(e,t))return!0}return!1},t}(sa),tc=ec,nc=mo();function rc(e,t,n,r,i,o,a){var s,l=!1;ce(i)?(a=o,o=i,i=null):fe(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=function(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=we(r.duration,200),u=we(r.easing,"cubicOut"),c=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),u=t.getShallow(s?"animationEasingUpdate":"animationEasing"),c=t.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),ce(c)&&(c=c(n,i)),ce(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(e,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var p={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,p):t.animateTo(n,p)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function ic(e,t,n,r,i,o){rc("update",e,t,n,r,i,o)}function oc(e,t,n,r,i,o){rc("enter",e,t,n,r,i,o)}function ac(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("leave"===e.animators[t].scope)return!0}return!1}function sc(e,t,n,r,i,o){ac(e)||rc("leave",e,t,n,r,i,o)}function lc(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),sc(e,{style:{opacity:0}},t,n,r)}function uc(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||lc(e,t,n,r)})):lc(e,t,n,r)}function cc(e){nc(e).oldStyle=e.style}var pc=Math.max,hc=Math.min,dc={};var fc=function(e,t){var n=Jl(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return k(t,e),t}(Xl)};function gc(e,t){dc[e]=t}function vc(e,t,n,r){var i=Kl(e,t);return n&&("center"===r&&(n=yc(n,i.getBoundingRect())),_c(i,n)),i}function mc(e,t,n){var r=new fs({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(yc(t,i))}}});return r}function yc(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var xc=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new ss(t);return a.createPathProxy(),a.buildPath=function(e){if(Zl(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function _c(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}var bc=ys;function wc(e,t){for(var n=Cr([]);e&&e!==t;)Tr(n,e.getLocalTransform(),n),e=e.parent;return n}function Sc(e,t,n){return t&&!te(t)&&(t=zr.getLocalTransform(t)),n&&(t=Or([],t)),Xe([],e,t)}function kc(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=Sc(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Cc(e){return!e.isGroup}function Mc(e,t,n){if(e&&t){var r,i=(r={},e.traverse((function(e){Cc(e)&&e.anid&&(r[e.anid]=e)})),r);t.traverse((function(e){if(Cc(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),ic(e,r,n,Vs(e).dataIndex)}}}))}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=K({},e.shape)),t}}function Tc(e,t,n){var r=K({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Q(i,n),new fs(r)):vc(e.replace("path://",""),r,n,"center")}function Ac(e,t,n,r,i,o,a,s){var l,u=n-e,c=r-t,p=a-i,h=s-o,d=Ic(p,h,u,c);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=e-i,g=t-o,v=Ic(f,g,u,c)/d;if(v<0||v>1)return!1;var m=Ic(f,g,p,h)/d;return!(m<0||m>1)}function Ic(e,t,n,r){return e*r-n*t}function Dc(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=pe(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&ne(ae(l),(function(e){Pe(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=Vs(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Q({content:r,formatterParams:s},i)}}function Oc(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Ec(e,t){if(e)if(ue(e))for(var n=0;n<e.length;n++)Oc(e[n],t);else Oc(e,t)}gc("circle",eu),gc("ellipse",ru),gc("sector",xu),gc("ring",wu),gc("polygon",Mu),gc("polyline",Iu),gc("rect",ws),gc("line",Nu),gc("bezierCurve",Vu),gc("arc",Gu);var Nc=Object.freeze({__proto__:null,updateProps:ic,initProps:oc,removeElement:sc,removeElementWithFadeOut:uc,isElementRemoved:ac,extendShape:function(e){return ss.extend(e)},extendPath:function(e,t){return fc(e,t)},registerShape:gc,getShapeClass:function(e){if(dc.hasOwnProperty(e))return dc[e]},makePath:vc,makeImage:mc,mergePath:xc,resizePath:_c,subPixelOptimizeLine:function(e){return vs(e.shape,e.shape,e.style),e},subPixelOptimizeRect:function(e){return ms(e.shape,e.shape,e.style),e},subPixelOptimize:bc,getTransform:wc,applyTransform:Sc,transformDirection:kc,groupTransition:Mc,clipPointsByRect:function(e,t){return re(e,(function(e){var n=e[0];n=pc(n,t.x),n=hc(n,t.x+t.width);var r=e[1];return r=pc(r,t.y),[n,r=hc(r,t.y+t.height)]}))},clipRectByRect:function(e,t){var n=pc(e.x,t.x),r=hc(e.x+e.width,t.x+t.width),i=pc(e.y,t.y),o=hc(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}},createIcon:Tc,linePolygonIntersect:function(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Ac(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}},lineLineIntersect:Ac,setTooltipConfig:Dc,traverseElements:Ec,Group:_i,Image:fs,Text:Bs,Circle:eu,Ellipse:ru,Sector:xu,Ring:wu,Polygon:Mu,Polyline:Iu,Rect:ws,Line:Nu,BezierCurve:Vu,Arc:Gu,IncrementalDisplayable:tc,CompoundPath:Wu,LinearGradient:Hu,RadialGradient:Yu,BoundingRect:Qr,OrientedBoundingRect:Qu,Point:Ur,Path:ss}),Lc={};function Pc(e,t,n){var r,i=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=ce(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var l={normal:r},u=0;u<Ws.length;u++){var c=Ws[u],p=t[c];l[c]=we(i?i.getFormattedLabel(o,c,null,a,p&&p.get("formatter")):null,r)}return l}function Rc(e,t,n,r){n=n||Lc;for(var i=e instanceof Bs,o=!1,a=0;a<js.length;a++){if((h=t[js[a]])&&h.getShallow("show")){o=!0;break}}var s=i?e:e.getTextContent();if(o){i||(s||(s=new Bs,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=Pc(n,t),u=t.normal,c=!!u.getShallow("show"),p=Vc(u,r&&r.normal,n,!1,!i);p.text=l.normal,i||e.setTextConfig(zc(u,n,!1));for(a=0;a<Ws.length;a++){var h,d=Ws[a];if(h=t[d]){var f=s.ensureState(d),g=!!we(h.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=Vc(h,r&&r[d],n,!0,!i),f.style.text=l[d],!i)e.ensureState(d).textConfig=zc(h,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(p.x=s.style.x),null!=s.style.y&&(p.y=s.style.y),s.ignore=!c,s.useStyle(p),s.dirty(),n.enableTextSetter&&(jc(s).setLabelText=function(e){var r=Pc(n,t,e);!function(e,t){for(var n=0;n<Ws.length;n++){var r=Ws[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}(s,r)})}else s&&(s.ignore=!0);e.dirty()}function Bc(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<Ws.length;r++){var i=Ws[r];n[i]=e.getModel([i,t])}return n}function Vc(e,t,n,r,i){var o={};return function(e,t,n,r,i){n=n||Lc;var o,a=t.ecModel,s=a&&a.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||Lc).rich;if(n){t=t||{};for(var r=ae(n),i=0;i<r.length;i++){t[r[i]]=1}}e=e.parentModel}return t}(t);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Wc(o[u]={},c,s,n,r,i,!1,!0)}o&&(e.rich=o);var p=t.get("overflow");p&&(e.overflow=p);var h=t.get("minMargin");null!=h&&(e.margin=h);Wc(e,t,s,n,r,i,!0,!1)}(o,e,n,r,i),t&&K(o,t),o}function zc(e,t,n){t=t||{};var r,i={},o=e.getShallow("rotate"),a=we(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",i}var Fc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Gc=["align","lineHeight","width","height","tag","verticalAlign"],Uc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Wc(e,t,n,r,i,o,a,s){n=!i&&n||Lc;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),p=we(t.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||("production"!==process.env.NODE_ENV&&"auto"===u&&Ki("color: 'auto'","color: 'inherit'"),u=l||null),"inherit"!==c&&"auto"!==c||("production"!==process.env.NODE_ENV&&"auto"===c&&Ki("color: 'auto'","color: 'inherit'"),c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var h=we(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(e.lineWidth=h);var d=we(t.getShallow("textBorderType"),n.textBorderType);null!=d&&(e.lineDash=d);var f=we(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),i||null!=p||s||(p=r&&r.defaultOpacity),null!=p&&(e.opacity=p),i||o||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var g=0;g<Fc.length;g++){var v=Fc[g];null!=(y=we(t.getShallow(v),n[v]))&&(e[v]=y)}for(g=0;g<Gc.length;g++){v=Gc[g];null!=(y=t.getShallow(v))&&(e[v]=y)}if(null==e.verticalAlign){var m=t.getShallow("baseline");null!=m&&(e.verticalAlign=m)}if(!a||!r.disableBox){for(g=0;g<Uc.length;g++){var y;v=Uc[g];null!=(y=t.getShallow(v))&&(e[v]=y)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||("production"!==process.env.NODE_ENV&&"auto"===e.backgroundColor&&Ki("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||("production"!==process.env.NODE_ENV&&"auto"===e.borderColor&&Ki("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}var jc=mo();var Hc,Yc,qc=["textStyle","color"],Xc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Zc=new Bs,Jc=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(qc):null)},e.prototype.getFont=function(){return e={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},t=this.ecModel,n=t&&t.getModel("textStyle"),Te([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "));var e,t,n},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Xc.length;n++)t[Xc[n]]=this.getShallow(Xc[n]);return Zc.useStyle(t),Zc.update(),Zc.getBoundingRect()},e}(),Kc=Jc,Qc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],$c=No(Qc),ep=function(){function e(){}return e.prototype.getLineStyle=function(e){return $c(this,e)},e}(),tp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],np=No(tp),rp=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return np(this,e,t)},e}(),ip=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){Z(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(X(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!A.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();To(ip),Hc=ip,Yc=["__\0is_clz",Io++].join("_"),Hc.prototype[Yc]=!0,"production"!==process.env.NODE_ENV&&Me(!Hc.isInstance,'The method "is" can not be defined.'),Hc.isInstance=function(e){return!(!e||!e[Yc])},ee(ip,ep),ee(ip,rp),ee(ip,Po),ee(ip,Kc);var op=ip,ap=Math.round(10*Math.random());function sp(e){return[e||"",ap++].join("_")}function lp(e,t){return Z(Z({},e,!0),t,!0)}var up="ZH",cp="EN",pp=cp,hp={},dp={},fp=A.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(up)>-1?up:pp;function gp(e,t){e=e.toUpperCase(),dp[e]=new op(t),hp[e]=t}gp(cp,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),gp(up,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var vp=1e3,mp=6e4,yp=36e5,xp=864e5,_p=31536e6,bp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},wp="{yyyy}-{MM}-{dd}",Sp={year:"{yyyy}",month:"{yyyy}-{MM}",day:wp,hour:"{yyyy}-{MM}-{dd} "+bp.hour,minute:"{yyyy}-{MM}-{dd} "+bp.minute,second:"{yyyy}-{MM}-{dd} "+bp.second,millisecond:bp.none},kp=["year","month","day","hour","minute","second","millisecond"],Cp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Mp(e,t){return"0000".substr(0,t-(e+="").length)+e}function Tp(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Ap(e){return e===Tp(e)}function Ip(e,t,n,r){var i=Ri(e),o=i[Ep(n)](),a=i[Np(n)]()+1,s=Math.floor((a-1)/4)+1,l=i[Lp(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Pp(n)](),p=(c-1)%12+1,h=i[Rp(n)](),d=i[Bp(n)](),f=i[Vp(n)](),g=r instanceof op?r:function(e){return dp[e]}(r||fp)||dp.EN,v=g.getModel("time"),m=v.get("month"),y=v.get("monthAbbr"),x=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,Mp(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Mp(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Mp(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Mp(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Mp(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Mp(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Mp(f,3)).replace(/{S}/g,f+"")}function Dp(e,t){var n=Ri(e),r=n[Np(t)]()+1,i=n[Lp(t)](),o=n[Pp(t)](),a=n[Rp(t)](),s=n[Bp(t)](),l=0===n[Vp(t)](),u=l&&0===s,c=u&&0===a,p=c&&0===o,h=p&&1===i;return h&&1===r?"year":h?"month":p?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Op(e,t,n){var r=de(e)?Ri(e):e;switch(t=t||Dp(e,n)){case"year":return r[Ep(n)]();case"half-year":return r[Np(n)]()>=6?1:0;case"quarter":return Math.floor((r[Np(n)]()+1)/4);case"month":return r[Np(n)]();case"day":return r[Lp(n)]();case"half-day":return r[Pp(n)]()/24;case"hour":return r[Pp(n)]();case"minute":return r[Rp(n)]();case"second":return r[Bp(n)]();case"millisecond":return r[Vp(n)]()}}function Ep(e){return e?"getUTCFullYear":"getFullYear"}function Np(e){return e?"getUTCMonth":"getMonth"}function Lp(e){return e?"getUTCDate":"getDate"}function Pp(e){return e?"getUTCHours":"getHours"}function Rp(e){return e?"getUTCMinutes":"getMinutes"}function Bp(e){return e?"getUTCSeconds":"getSeconds"}function Vp(e){return e?"getUTCMilliseconds":"getMilliseconds"}function zp(e){return e?"setUTCFullYear":"setFullYear"}function Fp(e){return e?"setUTCMonth":"setMonth"}function Gp(e){return e?"setUTCDate":"setDate"}function Up(e){return e?"setUTCHours":"setHours"}function Wp(e){return e?"setUTCMinutes":"setMinutes"}function jp(e){return e?"setUTCSeconds":"setSeconds"}function Hp(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Yp(e){if(!Gi(e))return pe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function qp(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Xp=Ce,Zp=/([&<>"'])/g,Jp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Kp(e){return null==e?"":(e+"").replace(Zp,(function(e,t){return Jp[t]}))}function Qp(e,t,n){function r(e){return e&&Te(e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,a=e instanceof Date;if(o||a){var s=o?Ri(e):e;if(!isNaN(+s))return Ip(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return he(e)?r(e):de(e)&&i(e)?e+"":"-";var l=Fi(e);return i(l)?Yp(l):he(e)?r(e):"boolean"==typeof e?e+"":"-"}var $p=["a","b","c","d","e","f","g"],eh=function(e,t){return"{"+e+(null==t?"":t)+"}"};function th(e,t,n){ue(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=$p[o];e=e.replace(eh(a),eh(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(eh($p[l],s),n?Kp(u):u)}return e}function nh(e,t){return t=t||"transparent",pe(e)?e:fe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function rh(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var ih=ne,oh=["left","right","top","bottom","width","height"],ah=[["width","left","right"],["height","top","bottom"]];function sh(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,u){var c,p,h=l.getBoundingRect(),d=t.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===e){var g=h.width+(f?-f.x+h.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var v=h.height+(f?-f.y+h.y:0);(p=a+v)>i||l.newline?(o+=s+n,a=0,p=v,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=p+n)}))}var lh=sh;function uh(e,t,n){n=Xp(n||0);var r=t.width,i=t.height,o=Ti(e.left,r),a=Ti(e.top,i),s=Ti(e.right,r),l=Ti(e.bottom,i),u=Ti(e.width,r),c=Ti(e.height,i),p=n[2]+n[0],h=n[1]+n[3],d=e.aspect;switch(isNaN(u)&&(u=r-s-h-o),isNaN(c)&&(c=i-l-p-a),null!=d&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-h),isNaN(a)&&(a=i-l-c-p),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-h}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-p}o=o||0,a=a||0,isNaN(u)&&(u=r-h-o-(s||0)),isNaN(c)&&(c=i-p-a-(l||0));var f=new Qr(o+n[3],a+n[0],u,c);return f.margin=n,f}function ch(e){var t=e.layoutMode||e.constructor.layoutMode;return fe(t)?t:t?{type:t}:null}function ph(e,t,n){var r=n&&n.ignoreSize;!ue(r)&&(r=[r,r]);var i=a(ah[0],0),o=a(ah[1],1);function a(n,i){var o={},a=0,u={},c=0;if(ih(n,(function(t){u[t]=e[t]})),ih(n,(function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++})),r[i])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var p=0;p<n.length;p++){var h=n[p];if(!s(o,h)&&s(e,h)){o[h]=e[h];break}}return o}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){ih(e,(function(e){t[e]=n[e]}))}u(ah[0],e,i),u(ah[1],e,o)}function hh(e){return function(e,t){return t&&e&&ih(oh,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}({},e)}le(sh,"vertical"),le(sh,"horizontal");var dh=mo(),fh=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=sp("ec_cpt_model"),i}return k(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=ch(this),r=n?hh(e):{};Z(e,t.getTheme().get(this.mainType)),Z(e,this.getDefaultOption()),n&&ph(e,r,n)},t.prototype.mergeOption=function(e,t){Z(this.option,e,!0);var n=ch(this);n&&ph(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[Co])}(e))return e.defaultOption;var t=dh(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=Z(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return wo(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(op);Ao(fh,op),Eo(fh),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Mo(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=Mo(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}(fh),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,i,o){if(e.length){var a=function(e){var r={},i=[];return ne(e,(function(o){var a=n(r,o),s=function(e,t){var n=[];return ne(e,(function(e){$(t,e)>=0&&n.push(e)})),n}(a.originalDeps=t(o),e);a.entryCount=s.length,0===a.entryCount&&i.push(o),ne(s,(function(e){$(a.predecessor,e)<0&&a.predecessor.push(e);var t=n(r,e);$(t.successor,e)<0&&t.successor.push(o)}))})),{graph:r,noEntryList:i}}(r),s=a.graph,l=a.noEntryList,u={};for(ne(e,(function(e){u[e]=!0}));l.length;){var c=l.pop(),p=s[c],h=!!u[c];h&&(i.call(o,c,p.originalDeps.slice()),delete u[c]),ne(p.successor,h?f:d)}ne(u,(function(){var t="";throw"production"!==process.env.NODE_ENV&&(t=Qi("Circular dependency may exists: ",u,e,r)),new Error(t)}))}function d(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function f(e){u[e]=!0,d(e)}}}(fh,(function(e){var t=[];ne(fh.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=re(t,(function(e){return Mo(e).main})),"dataset"!==e&&$(t,"dataset")<=0&&t.unshift("dataset");return t}));var gh=fh,vh="";"undefined"!=typeof navigator&&(vh=navigator.platform||"");var mh="rgba(0, 0, 0, 0.2)",yh={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vh.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},xh=Ee(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),_h="original",bh="arrayRows",wh="objectRows",Sh="keyedColumns",kh="typedArray",Ch="unknown",Mh="column",Th="row",Ah=1,Ih=2,Dh=3,Oh=mo();function Eh(e,t,n){var r={},i=Lh(t);if(!i||!e)return r;var o,a,s=[],l=[],u=t.ecModel,c=Oh(u).datasetMap,p=i.uid+"_"+n.seriesLayoutBy;ne(e=e.slice(),(function(t,n){var i=fe(t)?t:e[n]={name:t};"ordinal"===i.type&&null==o&&(o=n,a=f(i)),r[i.name]=[]}));var h=c.get(p)||c.set(p,{categoryWayDim:a,valueWayDim:0});function d(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function f(e){var t=e.dimsDef;return t?t.length:1}return ne(e,(function(e,t){var n=e.name,i=f(e);if(null==o){var a=h.valueWayDim;d(r[n],a,i),d(l,a,i),h.valueWayDim+=i}else if(o===t)d(r[n],0,i),d(s,0,i);else{a=h.categoryWayDim;d(r[n],a,i),d(l,a,i),h.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Nh(e,t,n){var r={};if(!Lh(e))return r;var i,o=t.sourceFormat,a=t.dimensionsDefine;o!==wh&&o!==Sh||ne(a,(function(e,t){"name"===(fe(e)?e.name:e)&&(i=t)}));var s=function(){for(var e={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Rh(t.data,o,t.seriesLayoutBy,a,t.startIndex,l);s.push(c);var p=c===Dh;if(p&&null==e.v&&l!==i&&(e.v=l),(null==e.n||e.n===e.v||!p&&s[e.n]===Dh)&&(e.n=l),h(e)&&s[e.n]!==Dh)return e;p||(c===Ih&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function h(e){return null!=e.v&&null!=e.n}return h(e)?e:h(r)?r:null}();if(s){r.value=[s.v];var l=null!=i?i:s.n;r.itemName=[l],r.seriesName=[l]}return r}function Lh(e){if(!e.get("data",!0))return wo(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},bo).models[0]}function Ph(e,t){return Rh(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Rh(e,t,n,r,i,o){var a,s,l;if(ve(e))return Dh;if(r){var u=r[o];fe(u)?(s=u.name,l=u.type):pe(u)&&(s=u)}if(null!=l)return"ordinal"===l?Ah:Dh;if(t===bh){var c=e;if(n===Th){for(var p=c[o],h=0;h<(p||[]).length&&h<5;h++)if(null!=(a=y(p[i+h])))return a}else for(h=0;h<c.length&&h<5;h++){var d=c[i+h];if(d&&null!=(a=y(d[o])))return a}}else if(t===wh){var f=e;if(!s)return Dh;for(h=0;h<f.length&&h<5;h++){if((v=f[h])&&null!=(a=y(v[s])))return a}}else if(t===Sh){if(!s)return Dh;if(!(p=e[s])||ve(p))return Dh;for(h=0;h<p.length&&h<5;h++)if(null!=(a=y(p[h])))return a}else if(t===_h){var g=e;for(h=0;h<g.length&&h<5;h++){var v,m=oo(v=g[h]);if(!ue(m))return Dh;if(null!=(a=y(m[o])))return a}}function y(e){var t=pe(e);return null!=e&&isFinite(e)&&""!==e?t?Ih:Dh:t&&"-"!==e?Ah:void 0}return Dh}var Bh=Ee();var Vh=mo();mo();var zh,Fh,Gh,Uh=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=no(this.get("color",!0)),i=this.get("colorLayer",!0);return function(e,t,n,r,i,o,a){var s=t(o=o||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,a):n;if(!(c=c||n)||!c.length)return;var p=c[l];i&&(u[i]=p);return s.paletteIdx=(l+1)%c.length,p}(this,Vh,r,i,e,t,n)},e.prototype.clearColorPalette=function(){!function(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}(this,Vh)},e}();var Wh={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},jh={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Hh={};var Yh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new op(r),this._locale=new op(i),this._optionManager=o},t.prototype.setOption=function(e,t,n){"production"!==process.env.NODE_ENV&&(Me(null!=e,"option is null/undefined"),Me(1!==e["\0_ec_inner"],"please use chart.getOption()"));var r=Zh(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Zh(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);"production"!==process.env.NODE_ENV&&ne(i,(function(e,t){if(!gh.hasClass(t)){var n=Wh[t];n&&!Hh[n]&&(Zi("Component "+t+" is used but not imported.\nimport { "+n+" } from 'echarts/components';\necharts.use(["+n+"]);"),Hh[n]=!0)}})),this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):Gh(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this);a.length&&ne(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Ee(),s=t&&t.replaceMergeMainTypeMap;Oh(this).datasetMap=Ee(),ne(e,(function(e,t){null!=e&&(gh.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?X(e):Z(n[t],e,!0))})),s&&s.each((function(e,t){gh.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),gh.topologicalTravel(o,gh.getAllClassMainTypes(),(function(t){var o=function(e,t,n){var r=Bh.get(t);if(!r)return n;var i=r(e);if(!i)return n;if("production"!==process.env.NODE_ENV)for(var o=0;o<i.length;o++)Me(go(i[o]));return n.concat(i)}(this,t,no(e[t])),a=r.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=so(a,o,l);(function(e,t,n){ne(e,(function(e){var r=e.newOption;fe(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))}))})(u,t,gh),n[t]=null,r.set(t,null),i.set(t,0);var c,p,h=[],d=[],f=0;ne(u,(function(e,n){var r=e.existing,i=e.newOption;if(i){var o="series"===t,a=gh.getClass(t,e.keyInfo.subType,!o);if(!a){if("production"!==process.env.NODE_ENV){var s=e.keyInfo.subType,l=jh[s];Hh[s]||(Hh[s]=!0,Zi(l?"Series "+s+" is used but not imported.\nimport { "+l+" } from 'echarts/charts';\necharts.use(["+l+"]);":"Unkown series "+s))}return}if("tooltip"===t){if(c)return void("production"!==process.env.NODE_ENV&&(p||(Xi("Currently only one tooltip component is allowed."),p=!0)));c=!0}if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var u=K({componentIndex:n},e.keyInfo);K(r=new a(i,this,this,u),u),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),d.push(r),f++):(h.push(void 0),d.push(void 0))}),this),n[t]=h,r.set(t,d),i.set(t,f),"series"===t&&zh(this)}),this),this._seriesIndices||zh(this)},t.prototype.getOption=function(){var e=X(this.option);return ne(e,(function(t,n){if(gh.hasClass(n)){for(var r=no(t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!go(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}})),delete e["\0_ec_inner"],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=r?(n=[],ne(no(r),(function(e){a[e]&&n.push(a[e])}))):n=null!=i?qh("id",i,a):null!=o?qh("name",o,a):oe(a,(function(e){return!!e})),Xh(n,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,o,a=e.query,s=e.mainType,l=(n=s+"Index",r=s+"Id",i=s+"Name",!(t=a)||null==t[n]&&null==t[r]&&null==t[i]?null:{mainType:s,index:t[n],id:t[r],name:t[i]}),u=l?this.queryComponents(l):oe(this._componentsMap.get(s),(function(e){return!!e}));return o=Xh(u,e),e.filter?oe(o,e.filter):o},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(ce(e)){var i=t,o=e;r.each((function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&o.call(i,t,r,r.componentIndex)}}))}else for(var a=pe(e)?r.get(e):fe(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=co(e,null);return oe(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return oe(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return oe(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){Fh(this),ne(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},t.prototype.eachRawSeries=function(e,t){ne(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){Fh(this),ne(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return ne(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Fh(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Fh(this);var n=[];ne(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Ee(n)},t.prototype.restoreData=function(e){zh(this);var t=this._componentsMap,n=[];t.each((function(e,t){gh.hasClass(t)&&n.push(t)})),gh.topologicalTravel(n,gh.getAllClassMainTypes(),(function(n){ne(t.get(n),(function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e)||t.restoreData()}))}))},t.internalField=(zh=function(e){var t=e._seriesIndices=[];ne(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=Ee(t)},Fh=function(e){if("production"!==process.env.NODE_ENV&&!e._seriesIndices)throw new Error("Option should contains series.")},void(Gh=function(e,t){e.option={},e.option["\0_ec_inner"]=1,e._componentsMap=Ee({series:[]}),e._componentsCount=Ee();var n=t.aria;fe(n)&&null==n.enabled&&(n.enabled=!0),function(e,t){var n=e.color&&!e.colorLayer;ne(t,(function(t,r){"colorLayer"===r&&n||gh.hasClass(r)||("object"==typeof t?e[r]=e[r]?Z(e[r],t,!1):X(t):null==e[r]&&(e[r]=t))}))}(t,e._theme.option),Z(t,yh,!1),e._mergeOption(t,null)})),t}(op);function qh(e,t,n){if(ue(t)){var r=Ee();return ne(t,(function(e){null!=e&&(null!=co(e,null)&&r.set(e,!0))})),oe(n,(function(t){return t&&r.get(t[e])}))}var i=co(t,null);return oe(n,(function(t){return t&&null!=i&&t[e]===i}))}function Xh(e,t){return t.hasOwnProperty("subType")?oe(e,(function(e){return e&&e.subType===t.subType})):e}function Zh(e){var t=Ee();return e&&ne(no(e.replaceMerge),(function(e){"production"!==process.env.NODE_ENV&&Me(gh.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)})),{replaceMergeMainTypeMap:t}}ee(Yh,Uh);var Jh=Yh,Kh=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Qh=function(e){ne(Kh,(function(t){this[t]=se(e[t],e)}),this)},$h={},ed=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];ne($h,(function(r,i){var o=r.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){ne(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){$h[e]=t},e.get=function(e){return $h[e]},e}(),td=/^(min|max)?(.+)$/,nd=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(ne(no(e.series),(function(e){e&&e.data&&ve(e.data)&&Ie(e.data)})),ne(no(e.dataset),(function(e){e&&e.source&&ve(e.source)&&Ie(e.source)}))),e=X(e);var r=this._optionBackup,i=function(e,t,n){var r,i,o=[],a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,p=!!(l||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((p||c)&&(e.options=e.media=null),i=e);c&&(ue(u)?ne(u,(function(e){"production"!==process.env.NODE_ENV&&e&&!e.option&&fe(e.query)&&fe(e.query.option)&&Zi("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),e&&e.option&&(e.query?o.push(e):r||(r=e))})):"production"!==process.env.NODE_ENV&&Zi("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }"));function h(e){ne(t,(function(t){t(e,n)}))}return h(i),ne(l,(function(e){return h(e)})),ne(o,(function(e){return h(e.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],X(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=X(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)rd(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=re(s,(function(e){return X(-1===e?a.option:o[e].option)}))),this._currentMediaIndices=s,l},e}();function rd(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return ne(e,(function(e,t){var n=t.match(td);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[a],e,o)||(i=!1)}})),i}var id=nd,od=ne,ad=fe,sd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ld(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=sd.length;n<r;n++){var i=sd[n],o=t.normal,a=t.emphasis;o&&o[i]&&("production"!==process.env.NODE_ENV&&Ki("itemStyle.normal."+i,i),e[i]=e[i]||{},e[i].normal?Z(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&("production"!==process.env.NODE_ENV&&Ki("itemStyle.emphasis."+i,"emphasis."+i),e[i]=e[i]||{},e[i].emphasis?Z(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function ud(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&("production"!==process.env.NODE_ENV&&Ji("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),n?(e[t].normal=e[t].emphasis=null,Q(e[t],r)):e[t]=r),i&&("production"!==process.env.NODE_ENV&&Ji(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function cd(e){ud(e,"itemStyle"),ud(e,"lineStyle"),ud(e,"areaStyle"),ud(e,"label"),ud(e,"labelLine"),ud(e,"upperLabel"),ud(e,"edgeLabel")}function pd(e,t){var n=ad(e)&&e[t],r=ad(n)&&n.textStyle;if(r){"production"!==process.env.NODE_ENV&&Ji("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var i=0,o=io.length;i<o;i++){var a=io[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function hd(e){e&&(cd(e),pd(e,"label"),e.emphasis&&pd(e.emphasis,"label"))}function dd(e){return ue(e)?e:e?[e]:[]}function fd(e){return(ue(e)?e[0]:e)||{}}function gd(e,t){od(dd(e.series),(function(e){ad(e)&&function(e){if(ad(e)){ld(e),cd(e),pd(e,"label"),pd(e,"upperLabel"),pd(e,"edgeLabel"),e.emphasis&&(pd(e.emphasis,"label"),pd(e.emphasis,"upperLabel"),pd(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(ld(t),hd(t));var n=e.markLine;n&&(ld(n),hd(n));var r=e.markArea;r&&hd(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var o=e.links||e.edges;if(o&&!ve(o))for(var a=0;a<o.length;a++)hd(o[a]);ne(e.categories,(function(e){cd(e)}))}if(i&&!ve(i))for(a=0;a<i.length;a++)hd(i[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)hd(s[a])}if((n=e.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)ue(l[a])?(hd(l[a][0]),hd(l[a][1])):hd(l[a])}"gauge"===e.type?(pd(e,"axisLabel"),pd(e,"title"),pd(e,"detail")):"treemap"===e.type?(ud(e.breadcrumb,"itemStyle"),ne(e.levels,(function(e){cd(e)}))):"tree"===e.type&&cd(e.leaves)}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),od(n,(function(t){od(dd(e[t]),(function(e){e&&(pd(e,"axisLabel"),pd(e.axisPointer,"label"))}))})),od(dd(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;pd(t,"axisLabel"),pd(t&&t.axisPointer,"label")})),od(dd(e.calendar),(function(e){ud(e,"itemStyle"),pd(e,"dayLabel"),pd(e,"monthLabel"),pd(e,"yearLabel")})),od(dd(e.radar),(function(e){pd(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name,"production"!==process.env.NODE_ENV&&Ji("name property in radar component has been changed to axisName")),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap,"production"!==process.env.NODE_ENV&&Ji("nameGap property in radar component has been changed to axisNameGap")),"production"!==process.env.NODE_ENV&&od(e.indicator,(function(e){e.text&&Ki("text","name","radar.indicator")}))})),od(dd(e.geo),(function(e){ad(e)&&(hd(e),od(dd(e.regions),(function(e){hd(e)})))})),od(dd(e.timeline),(function(e){hd(e),ud(e,"label"),ud(e,"itemStyle"),ud(e,"controlStyle",!0);var t=e.data;ue(t)&&ne(t,(function(e){fe(e)&&(ud(e,"label"),ud(e,"itemStyle"))}))})),od(dd(e.toolbox),(function(e){ud(e,"iconStyle"),od(e.feature,(function(e){ud(e,"iconStyle")}))})),pd(fd(e.axisPointer),"label"),pd(fd(e.tooltip).axisPointer,"label")}function vd(e){e&&ne(md,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var md=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],yd=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function _d(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<xd.length;n++){var r=xd[n][1],i=xd[n][0];null!=t[r]&&(t[i]=t[r],"production"!==process.env.NODE_ENV&&Ki(r,i))}}function bd(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&("production"!==process.env.NODE_ENV&&Ki("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function wd(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,"production"!==process.env.NODE_ENV&&Ki("downplay","blur","sunburst"))}function Sd(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Sd(e[n].children,t)}function kd(e,t){gd(e,t),e.series=no(e.series),ne(e.series,(function(e){if(fe(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow,"production"!==process.env.NODE_ENV&&Ki("clipOverflow","clip","line"));else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise,"production"!==process.env.NODE_ENV&&Ki("clockWise","clockwise")),bd(e.label),(i=e.data)&&!ve(i))for(var n=0;n<i.length;n++)bd(i[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&("production"!==process.env.NODE_ENV&&Ki("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=r&&function(e,t,n,r){for(var i,o=t.split(","),a=e,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}(e,"itemStyle.color",r)}else if("bar"===t){var i;if(_d(e),_d(e.backgroundStyle),_d(e.emphasis),(i=e.data)&&!ve(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(_d(i[n]),_d(i[n]&&i[n].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o,"production"!==process.env.NODE_ENV&&Ki("highlightPolicy","emphasis.focus","sunburst"))),wd(e),Sd(e.data,wd)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&("production"!==process.env.NODE_ENV&&Ki("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&("production"!==process.env.NODE_ENV&&Ki("mapType","map","map"),e.map=e.mapType),e.mapLocation&&("production"!==process.env.NODE_ENV&&Ji("`mapLocation` is not used anymore."),Q(e,e.mapLocation)));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&("production"!==process.env.NODE_ENV&&Ki("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),vd(e)}})),e.dataRange&&(e.visualMap=e.dataRange),ne(yd,(function(t){var n=e[t];n&&(ue(n)||(n=[n]),ne(n,(function(e){vd(e)})))}))}function Cd(e){ne(e,(function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex;a.modify(o,(function(o,l,u){var c,p,h=a.get(t.stackedDimension,u);if(isNaN(h))return i;s?p=a.getRawIndex(u):c=a.get(t.stackedByDimension,u);for(var d=NaN,f=n-1;f>=0;f--){var g=e[f];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,c)),p>=0){var v=g.data.getByRawIndex(g.stackResultDimension,p);if(h>=0&&v>0||h<=0&&v<0){h=Ei(h,v),d=v;break}}}return r[0]=h,r[1]=d,r}))}))}var Md,Td,Ad,Id,Dd,Od=function(e){this.data=e.data||(e.sourceFormat===Sh?{}:[]),this.sourceFormat=e.sourceFormat||Ch,this.seriesLayoutBy=e.seriesLayoutBy||Mh,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&Ph(this,n)===Ah&&(r.type="ordinal")}};function Ed(e){return e instanceof Od}function Nd(e,t,n){n=n||Pd(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:Rd(i),startIndex:a,dimensionsDetectedCount:o};if(t===bh){var s=e;"auto"===r||null==r?Bd((function(e){null!=e&&"-"!==e&&(pe(e)?null==a&&(a=1):a=0)}),n,s,10):a=de(r)?r:r?1:0,i||1!==a||(i=[],Bd((function(e,t){i[t]=null!=e?e+"":""}),n,s,1/0)),o=i?i.length:n===Th?s.length:s[0]?s[0].length:null}else if(t===wh)i||(i=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t){var r=[];return ne(t,(function(e,t){r.push(t)})),r}}(e));else if(t===Sh)i||(i=[],ne(e,(function(e,t){i.push(t)})));else if(t===_h){var l=oo(e[0]);o=ue(l)&&l.length||1}else t===kh&&"production"!==process.env.NODE_ENV&&Me(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:Rd(i),dimensionsDetectedCount:o}}(e,n,r,t.sourceHeader,t.dimensions);return new Od({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:X(t)})}function Ld(e){return new Od({data:e,sourceFormat:ve(e)?kh:_h})}function Pd(e){var t=Ch;if(ve(e))t=kh;else if(ue(e)){0===e.length&&(t=bh);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(ue(i)){t=bh;break}if(fe(i)){t=wh;break}}}}else if(fe(e))for(var o in e)if(Pe(e,o)&&te(e[o])){t=Sh;break}return t}function Rd(e){if(e){var t=Ee();return re(e,(function(e,n){var r={name:(e=fe(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r}))}}function Bd(e,t,n,r){if(t===Th)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)e(o[i],i)}}function Vd(e){var t=e.sourceFormat;return t===wh||t===Sh}var zd=function(){function e(e,t){var n=Ed(e)?e:Ld(e);this._source=n;var r=this._data=n.data;if(n.sourceFormat===kh){if("production"!==process.env.NODE_ENV&&null==t)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=r}Dd(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Dd=function(e,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Id[Zd(a,s)];if("production"!==process.env.NODE_ENV&&Me(c,"Invalide sourceFormat: "+a),K(e,c),a===kh)e.getItem=t,e.count=r,e.fillStorage=n;else{var p=Ud(a,s);e.getItem=se(p,null,i,l,u);var h=Hd(a,s);e.count=se(h,null,i,l,u)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,o=0;o<r;o++)t[o]=n[i+o];return t},n=function(e,t,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,p=n[a],h=0;h<c;h++){var d=i[h*o+a];p[e+h]=d,d<l&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={}).arrayRows_column={pure:!0,appendData:i},e.arrayRows_row={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e.objectRows={pure:!0,appendData:i},e.keyedColumns={pure:!0,appendData:function(e){var t=this._data;ne(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},e.original={appendData:i},e.typedArray={persistent:!1,pure:!0,appendData:function(e){"production"!==process.env.NODE_ENV&&Me(ve(e),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Id=e}(),e}(),Fd=function(e,t,n,r){return e[r]},Gd=((Md={}).arrayRows_column=function(e,t,n,r){return e[r+t]},Md.arrayRows_row=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Md.objectRows=Fd,Md.keyedColumns=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;if("production"!==process.env.NODE_ENV&&null==s)throw new Error;var l=e[s];o[a]=l?l[r]:null}return o},Md.original=Fd,Md);function Ud(e,t){var n=Gd[Zd(e,t)];return"production"!==process.env.NODE_ENV&&Me(n,'Do not support get item on "'+e+'", "'+t+'".'),n}var Wd=function(e,t,n){return e.length},jd=((Td={}).arrayRows_column=function(e,t,n){return Math.max(0,e.length-t)},Td.arrayRows_row=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Td.objectRows=Wd,Td.keyedColumns=function(e,t,n){var r=n[0].name;if("production"!==process.env.NODE_ENV&&null==r)throw new Error;var i=e[r];return i?i.length:0},Td.original=Wd,Td);function Hd(e,t){var n=jd[Zd(e,t)];return"production"!==process.env.NODE_ENV&&Me(n,'Do not suppport count on "'+e+'", "'+t+'".'),n}var Yd=function(e,t,n){return e[t]},qd=((Ad={}).arrayRows=Yd,Ad.objectRows=function(e,t,n){return e[n]},Ad.keyedColumns=Yd,Ad.original=function(e,t,n){var r=oo(e);return r instanceof Array?r[t]:r},Ad.typedArray=Yd,Ad);function Xd(e){var t=qd[e];return"production"!==process.env.NODE_ENV&&Me(t,'Do not suppport get value on "'+e+'".'),t}function Zd(e,t){return e===bh?e+"_"+t:e}function Jd(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return Xd(o)(r,a,s)}var l=r;return o===_h&&(l=oo(r)),l}}}var Kd=/\{@(.+?)\}/g,Qd=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,p="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:i,data:a,dataType:t,value:r,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);(o&&(s.value=o.interpolatedValue),null!=r&&ue(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return ce(i)?(s.status=t,s.dimensionIndex=r,i(s)):pe(i)?th(i,s).replace(Kd,(function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1),"production"!==process.env.NODE_ENV&&isNaN(i)&&Zi("Invalide label formatter: @"+n+", only support @[0], @[1], @[2], ..."));var s=Jd(a,e,i);if(o&&ue(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},e.prototype.getRawValue=function(e,t){return Jd(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function $d(e){var t,n;return fe(e)?e.type?n=e:"production"!==process.env.NODE_ENV&&console.warn("The return type of `formatTooltip` is not supported: "+Qi(e)):t=e,{text:t,frag:n}}function ef(e){return new tf(e)}var tf=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(n?("production"!==process.env.NODE_ENV&&Me(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):("production"!==process.env.NODE_ENV&&Me(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var h=this._dueIndex,d=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(o||h<d)){var f=this._progress;if(ue(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],h,d,l,u);else this._doProgress(f,h,d,l,u)}this._dueIndex=d;var v=null!=this._settedOutputEnd?this._settedOutputEnd:d;"production"!==process.env.NODE_ENV&&Me(v>=this._outputDueEnd),this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){nf.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:nf.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),ue(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){"production"!==process.env.NODE_ENV&&Me(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),nf=function(){var e,t,n,r,i,o={reset:function(l,u,c,p){t=l,e=u,n=c,r=p,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}();function rf(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||de(e)||null==e||"-"===e||(e=+Ri(e)),null==e||""===e?NaN:+e)}Ee({number:function(e){return parseFloat(e)},time:function(e){return+Ri(e)},trim:function(e){return pe(e)?Te(e):e}});var of=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=de(e)?e:Fi(e),r=de(t)?t:Fi(t),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=pe(e),s=pe(t);a&&(n=s?e:0),s&&(r=a?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),af=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return rf(e,t)},e}();function sf(e){var t=e.sourceFormat;if(!df(t)){var n="";"production"!==process.env.NODE_ENV&&(n="`getRawData` is not supported in source format "+t),$i(n)}return e.data}function lf(e){var t=e.sourceFormat,n=e.data;if(!df(t)){var r="";"production"!==process.env.NODE_ENV&&(r="`cloneRawData` is not supported in source format "+t),$i(r)}if(t===bh){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}if(t===wh){for(i=[],o=0,a=n.length;o<a;o++)i.push(K({},n[o]));return i}}function uf(e,t,n){if(null!=n)return de(n)||!isNaN(n)&&!Pe(t,n)?e[n]:Pe(t,n)?t[n]:void 0}function cf(e){return X(e)}var pf=Ee();function hf(e,t,n,r){var i="";t.length||("production"!==process.env.NODE_ENV&&(i="Must have at least one upstream dataset."),$i(i)),fe(e)||("production"!==process.env.NODE_ENV&&(i="transform declaration must be an object rather than "+typeof e+"."),$i(i));var o=e.type,a=pf.get(o);a||("production"!==process.env.NODE_ENV&&(i='Can not find transform on type "'+o+'".'),$i(i));var s,l=re(t,(function(e){return function(e,t){var n=new af,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==Mh&&("production"!==process.env.NODE_ENV&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),$i(a));var s=[],l={},u=e.dimensionsDefine;if(u)ne(u,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),null!=n){var i="";Pe(l,n)&&("production"!==process.env.NODE_ENV&&(i='dimension name "'+n+'" duplicated.'),$i(i)),l[n]=r}}));else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var p=Ud(i,Mh);t.__isBuiltIn&&(n.getRawDataItem=function(e){return p(r,o,s,e)},n.getRawData=se(sf,null,e)),n.cloneRawData=se(lf,null,e);var h=Hd(i,Mh);n.count=se(h,null,r,o,s);var d=Xd(i);n.retrieveValue=function(e,t){var n=p(r,o,s,e);return f(n,t)};var f=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=s[t];return n?d(e,t,n.name):void 0}};return n.getDimensionInfo=se(uf,null,s,l),n.cloneAllDimensionInfo=se(cf,null,s),n}(e,a)})),u=no(a.transform({upstream:l[0],upstreamList:l,config:X(e.config)}));if("production"!==process.env.NODE_ENV&&e.print){var c=re(u,(function(e){var t=null!=r?" === pipe index: "+r:"";return["=== dataset index: "+n.datasetIndex+t+" ===","- transform result data:",Qi(e.data),"- transform result dimensions:",Qi(e.dimensions)].join("\n")})).join("\n");qi("log",c,s)}return re(u,(function(e,n){var r,i="";fe(e)||("production"!==process.env.NODE_ENV&&(i="A transform should not return some empty results."),$i(i)),e.data||("production"!==process.env.NODE_ENV&&(i="Transform result data should be not be null or undefined"),$i(i)),df(Pd(e.data))||("production"!==process.env.NODE_ENV&&(i="Transform result data should be array rows or object rows."),$i(i));var o=t[0];if(o&&0===n&&!e.dimensions){var a=o.startIndex;a&&(e.data=o.data.slice(0,a).concat(e.data)),r={seriesLayoutBy:Mh,sourceHeader:a,dimensions:o.metaRawOption.dimensions}}else r={seriesLayoutBy:Mh,sourceHeader:0,dimensions:e.dimensions};return Nd(e.data,r,null)}))}function df(e){return e===bh||e===wh}var ff,gf="undefined",vf=typeof Uint32Array===gf?Array:Uint32Array,mf=typeof Uint16Array===gf?Array:Uint16Array,yf=typeof Int32Array===gf?Array:Int32Array,xf=typeof Float64Array===gf?Array:Float64Array,_f={float:xf,int:yf,ordinal:Array,number:Array,time:xf};function bf(e){return e>65535?vf:mf}function wf(e,t,n,r,i){var o=_f[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var Sf=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ee()}return e.prototype.initData=function(e,t,n){"production"!==process.env.NODE_ENV&&Me(ce(e.getItem)&&ce(e.count),"Inavlid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=ff[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=Vd(r);this._dimensions=re(t,(function(e){return"production"!==process.env.NODE_ENV&&o&&Me(null!=e.property),{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new _f[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[e]=[1/0,-1/0]);for(var s=i[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=t,r.ordinalOffset=a,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){"production"!==process.env.NODE_ENV&&Me(!this._indices,"appendData can only be called on raw data.");var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<i;l++){wf(n,l,(d=r[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var p=c-a,h=0;h<i;h++){var d=r[h],f=ff.arrayRows.call(this,e[p]||u,d.property,p,h);n[h][c]=f;var g=o[h];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=re(o,(function(e){return e.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),wf(i,u,c.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var p=[],h=e;h<t;h++){p=r.getItem(h,p);for(var d=0;d<a;d++){var f=i[d],g=this._dimValueGetter(p,l[d],h,d);f[h]=g;var v=s[d];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-r[this.getRawIndex(l)],p=Math.abs(c);p<=n&&((p<o||p===o&&c>=0&&a<0)&&(o=p,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{e=new(n=bf(this._rawCount))(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(bf(n._rawCount))(r),o=[],a=e.length,s=0,l=e[0],u=n._chunks,c=0;c<r;c++){var p=void 0,h=n.getRawIndex(c);if(0===a)p=t(c);else if(1===a){p=t(u[l][h],c)}else{for(var d=0;d<a;d++)o[d]=u[e[d]][h];o[d]=c,p=t.apply(null,o)}p&&(i[s++]=h)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=ae(e),i=r.length;if(!i)return this;var o=t.count(),a=new(bf(t._rawCount))(o),s=0,l=r[0],u=e[l][0],c=e[l][1],p=t._chunks,h=!1;if(!t._indices){var d=0;if(1===i){for(var f=p[r[0]],g=0;g<n;g++){((x=f[g])>=u&&x<=c||isNaN(x))&&(a[s++]=d),d++}h=!0}else if(2===i){f=p[r[0]];var v=p[r[1]],m=e[r[1]][0],y=e[r[1]][1];for(g=0;g<n;g++){var x=f[g],_=v[g];(x>=u&&x<=c||isNaN(x))&&(_>=m&&_<=y||isNaN(_))&&(a[s++]=d),d++}h=!0}}if(!h)if(1===i)for(g=0;g<o;g++){var b=t.getRawIndex(g);((x=p[r[0]][b])>=u&&x<=c||isNaN(x))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=t.getRawIndex(g),0);S<i;S++){var k=r[S];((x=p[k][b])<e[k][0]||x>e[k][1])&&(w=!1)}w&&(a[s++]=t.getRawIndex(g))}return s<o&&(t._indices=a),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)s[h]=r[t[h]][p];s[o]=c;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(i[0]=d,d=i);for(u=0;u<d.length;u++){var f=t[u],g=d[u],v=l[f],m=r[f];m&&(m[p]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=this.clone([e],!0),a=o._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),p=new(bf(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));p[l++]=c;for(var h=1;h<s-1;h+=u){for(var d=Math.min(h+u,s-1),f=Math.min(h+2*u,s),g=(f+d)/2,v=0,m=d;m<f;m++){var y=a[C=this.getRawIndex(m)];isNaN(y)||(v+=y)}v/=f-d;var x=h,_=Math.min(h+u,s),b=h-1,w=a[c];n=-1,i=x;var S=-1,k=0;for(m=x;m<_;m++){var C;y=a[C=this.getRawIndex(m)];isNaN(y)?(k++,S<0&&(S=C)):(r=Math.abs((b-g)*(y-w)-(b-m)*(v-w)))>n&&(n=r,i=C)}k>0&&k<_-x&&(p[l++]=Math.min(S,i),i=Math.max(S,i)),p[l++]=i,c=i}return p[l++]=this.getRawIndex(s-1),o._count=l,o._indices=p,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),o=i._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=i._rawExtent[e]=[1/0,-1/0],p=new(bf(this._rawCount))(Math.ceil(u/s)),h=0,d=0;d<u;d+=s){s>u-d&&(s=u-d,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var v=n(a),m=this.getRawIndex(Math.min(d+r(a,v)||0,u-1));l[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),p[h++]=m}return i._count=h,i._indices=p,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][a],i);break;case 2:t(r[e[0]][a],r[e[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][a];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=t[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r,i,o=new e,a=this._chunks,s=t&&ie(t,(function(e,t){return e[t]=!0,e}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(r=a[l],i=void 0,(i=r.constructor)===Array?r.slice():new i(r)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=X(this._extent),e._rawExtent=X(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return rf(e[r],this._dimensions[r])}ff={arrayRows:e,objectRows:function(e,t,n,r){return rf(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return rf(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),kf=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Mf(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,t=[u._getVersionSign()]}else s=ve(a=o.get("data",!0))?kh:_h,t=[];var c=this._getSourceMetaRawOption()||{},p=l&&l.metaRawOption||{},h=we(c.seriesLayoutBy,p.seriesLayoutBy)||null,d=we(c.sourceHeader,p.sourceHeader),f=we(c.dimensions,p.dimensions);e=h!==p.seriesLayoutBy||!!d!=!!p.sourceHeader||f?[Nd(a,{seriesLayoutBy:h,sourceHeader:d,dimensions:f},s)]:[]}else{var g=n;if(i){var v=this._applyTransform(r);e=v.sourceList,t=v.upstreamSignList}else{e=[Nd(g.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}}"production"!==process.env.NODE_ENV&&Me(e&&t),this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if("production"!==process.env.NODE_ENV&&Me(null!=i||null!=r),null!=i){var o="";1!==e.length&&("production"!==process.env.NODE_ENV&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),Tf(o))}var a,s=[],l=[];return ne(e,(function(e){e.prepareSource();var t=e.getSource(i||0),n="";null==i||t||("production"!==process.env.NODE_ENV&&(n="Can not retrieve result by `fromTransformResult`: "+i),Tf(n)),s.push(t),l.push(e._getVersionSign())})),r?t=function(e,t,n){var r=no(e),i=r.length,o="";i||("production"!==process.env.NODE_ENV&&(o="If `transform` declared, it should at least contain one transform."),$i(o));for(var a=0,s=i;a<s;a++)t=hf(r[a],t,n,1===i?null:a),a!==s-1&&(t.length=Math.max(t.length,1));return t}(r,s,{datasetIndex:n.componentIndex}):null!=i&&(t=[(a=s[0],new Od({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:X(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){"production"!==process.env.NODE_ENV&&Me(Mf(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];Mf(this._sourceHost)&&a?o=a._innerGetDataStore(e,t,n):(o=new Sf).initData(new zd(t,e.length),e),i[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Mf(e)){var t=Lh(e);return t?[t.getSourceManager()]:[]}return re(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?wo(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},bo).models:[]}(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(Mf(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Cf(e){e.option.transform&&Ie(e.option.transform)}function Mf(e){return"series"===e.mainType}function Tf(e){throw new Error(e)}function Af(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Kp(r+"")+"px;color:"+Kp(n)+";font-weight:"+Kp(i+""),valueStyle:"font-size:"+Kp(a+"")+"px;color:"+Kp(o)+";font-weight:"+Kp(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var If=[0,10,20,30],Df=["","\n","\n\n","\n\n\n"];function Of(e,t){return t.type=e,t}function Ef(e){return"section"===e.type}function Nf(e){return Ef(e)?Pf:Rf}function Lf(e){if(Ef(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return ne(e.blocks,(function(e){var n=Lf(e);n>=t&&(t=n+ +(r&&(!n||Ef(e)&&!e.noHeader)))})),t}return 0}function Pf(e,t,n,r){var i,o=t.noHeader,a=(i=Lf(t),{html:If[i],richText:Df[i]}),s=[],l=t.blocks||[];Me(!l||ue(l)),l=l||[];var u=e.orderMode;if(t.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Pe(c,u)){var p=new of(c[u],null);l.sort((function(e,t){return p.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===u&&l.reverse()}ne(l,(function(n,i){var o=t.valueFormatter,l=Nf(n)(o?K(K({},e),{valueFormatter:o}):e,n,i>0?a.html:0,r);null!=l&&s.push(l)}));var h="richText"===e.renderMode?s.join(a.richText):Vf(s.join(""),o?n:a.html);if(o)return h;var d=Qp(t.header,"ordinal",e.useUTC),f=Af(r,e.renderMode).nameStyle;return"richText"===e.renderMode?zf(e,d,f)+a.richText+h:Vf('<div style="'+f+";"+'line-height:1;">'+Kp(d)+"</div>"+h,n)}function Rf(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return re(e=ue(e)?e:[e],(function(e,t){return Qp(e,ue(d)?d[t]:d,u)}))};if(!o||!a){var p=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=o?"":Qp(l,"ordinal",u),d=t.valueType,f=a?[]:c(t.value),g=!s||!o,v=!s&&o,m=Af(r,i),y=m.nameStyle,x=m.valueStyle;return"richText"===i?(s?"":p)+(o?"":zf(e,h,y))+(a?"":function(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ue(t)?t.join(" "):t,o)}(e,f,g,v,x)):Vf((s?"":p)+(o?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+Kp(e)+"</span>"}(h,!s,y))+(a?"":function(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=ue(e)?e:[e],'<span style="'+o+";"+r+'">'+re(e,(function(e){return Kp(e)})).join("&nbsp;&nbsp;")+"</span>"}(f,g,v,x)),n)}}function Bf(e,t,n,r,i,o){if(e)return Nf(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,o)}function Vf(e,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+'line-height:1;">'+e+'<div style="clear:both"></div></div>'}function zf(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Ff(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var Gf=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ui()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=function(e,t){var n=pe(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Kp(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Kp(r)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:t,type:e,renderMode:n,markerId:r});return pe(i)?i:("production"!==process.env.NODE_ENV&&Me(r),this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};ue(t)?ne(t,(function(e){return K(n,e)})):K(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function Uf(e){var t,n,r,i,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,p=o.getRawValue(a),h=ue(p),d=function(e,t){return nh(e.getData().getItemVisual(t,"style")[e.visualDrawType])}(o,a);if(c>1||h&&!c){var f=function(e,t,n,r,i){var o=t.getData(),a=ie(e,(function(e,t,n){var r=o.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(Of("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?ne(r,(function(e){c(Jd(o,n,e),e)})):ne(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(p,o,a,u,d);t=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=t=Jd(l,a,u[0]),n=g.type}else i=t=h?p[0]:p;var v=fo(o),m=v&&o.name||"",y=l.getName(a),x=s?m:y;return Of("section",{header:m,noHeader:s||!v,sortParam:i,blocks:[Of("nameValue",{markerType:"item",markerColor:d,name:x,noName:!Te(x),value:t,valueType:n})].concat(r||[])})}var Wf=mo();function jf(e,t){return e.getName(t)||e.getId(t)}var Hf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return k(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=ef({count:qf,reset:Xf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Wf(this).sourceManager=new kf(this)).prepareSource();var r=this.getInitialData(e,n);Jf(r,this),this.dataTask.context.data=r,"production"!==process.env.NODE_ENV&&Me(r,"getInitialData returned invalid data."),Wf(this).dataBeforeProcessed=r,Yf(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=ch(this),r=n?hh(e):{},i=this.subType;gh.hasClass(i)&&(i+="Series"),Z(e,t.getTheme().get(this.subType)),Z(e,this.getDefaultOption()),ro(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&ph(e,r,n)},t.prototype.mergeOption=function(e,t){e=Z(this.option,e,!0),this.fillDataTextStyle(e.data);var n=ch(this);n&&ph(this.option,e,n);var r=Wf(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Jf(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Wf(this).dataBeforeProcessed=i,Yf(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ve(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&ro(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=Qf(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return Wf(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Qf(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Wf(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Ee(e)},t.prototype.getSourceManager=function(){return Wf(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Wf(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return Uf({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(A.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=Uh.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=jf(i,e[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=ae(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[jf(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,o=i.selectedMode,a=t.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){fe(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=t[l];s[p=jf(e,u)]=!0,this._selectedDataIndicesMap[p]=e.getRawIndex(u)}}else if("single"===o||!0===o){var c=t[a-1],p=jf(e,c);i.selectedMap=((n={})[p]=!0,n),this._selectedDataIndicesMap=((r={})[p]=e.getRawIndex(c),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return gh.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(gh);function Yf(e){var t=e.name;fo(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return ne(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}(e)||t)}function qf(e){return e.model.getRawData().count()}function Xf(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Zf}function Zf(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Jf(e,t){ne(function(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,le(Kf,t))}))}function Kf(e,t){var n=Qf(e);return n&&n.setOutputEnd((t||this).count()),t}function Qf(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}ee(Hf,Qd),ee(Hf,Uh),Ao(Hf,gh);var $f=Hf,eg=function(){function e(){this.group=new _i,this.uid=sp("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();To(eg),Eo(eg);var tg=eg;function ng(){var e=mo();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var rg=mo(),ig=ng(),og=function(){function e(){this.group=new _i,this.uid=sp("viewChart"),this.renderTask=ef({plan:lg,reset:ug}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){if("production"!==process.env.NODE_ENV)throw new Error("render method must been implemented")},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i?sg(i,r,"emphasis"):"production"!==process.env.NODE_ENV&&Zi("Unknown dataType "+r.dataType)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i?sg(i,r,"normal"):"production"!==process.env.NODE_ENV&&Zi("Unknown dataType "+r.dataType)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Ec(this.group,e)},e.markUpdateMethod=function(e,t){rg(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function ag(e,t,n){e&&Ol(e)&&("emphasis"===t?dl:fl)(e,n)}function sg(e,t,n){var r=vo(e,t),i=t&&null!=t.highlightKey?function(e){var t=Fs[e];return null==t&&zs<=32&&(t=Fs[e]=zs++),t}(t.highlightKey):null;null!=r?ne(no(r),(function(t){ag(e.getItemGraphicEl(t),n,i)})):e.eachItemGraphicEl((function(e){ag(e,n,i)}))}function lg(e){return ig(e.model)}function ug(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&rg(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,r,i),cg[l]}To(og,["dispose"]),Eo(og);var cg={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},pg=og,hg="\0__throttleOriginMethod",dg="\0__throttleRate",fg="\0__throttleType";function gg(e,t,n){var r,i,o,a,s,l=0,u=0,c=null;function p(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var h=function(){for(var e=[],h=0;h<arguments.length;h++)e[h]=arguments[h];r=(new Date).getTime(),o=this,a=e;var d=s||t,f=s||n;s=null,i=r-(f?l:u)-d,clearTimeout(c),f?c=setTimeout(p,d):i>=0?p():c=setTimeout(p,-i),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function vg(e,t,n,r){var i=e[t];if(i){var o=i[hg]||i,a=i[fg];if(i[dg]!==n||a!==r){if(null==n||!r)return e[t]=o;(i=e[t]=gg(o,n,"debounce"===r))[hg]=o,i[fg]=r,i[dg]=n}return i}}function mg(e,t){var n=e[t];n&&n[hg]&&(n.clear&&n.clear(),e[t]=n[hg])}var yg=mo(),xg={itemStyle:No(tp,!0),lineStyle:No(Qc,!0)},_g={lineStyle:"stroke",itemStyle:"fill"};function bg(e,t){var n=e.visualStyleMapper||xg[t];return n||(console.warn("Unkown style type '"+t+"'."),xg.itemStyle)}function wg(e,t){var n=e.visualDrawType||_g[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var Sg={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=bg(e,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=wg(e,r),l=o[s],u=ce(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[s]||(o[s]=p,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||ce(o.fill)?p:o.fill,o.stroke="auto"===o.stroke||ce(o.stroke)?p:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=K({},o);i[s]=u(r),t.setItemVisual(n,"style",i)}}}},kg=new op,Cg={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=bg(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){kg.option=n[r];var a=i(kg);K(e.ensureUniqueItemVisual(t,"style"),a),kg.option.decal&&(e.setItemVisual(t,"decal",kg.option.decal),kg.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Mg={performRawSeries:!0,overallReset:function(e){var t=Ee();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),yg(e).scope=i}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=yg(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=wg(t,a);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var a=r[e];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,o,c)}}))}}))}},Tg=Math.PI;var Ag=function(){function e(e,t,n,r){this._stageTaskMap=Ee(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,o=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Ee();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;ne(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{}),o="";"production"!==process.env.NODE_ENV&&(o='"reset" and "overallReset" must not be both specified.'),Me(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}ne(e,(function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var p,h=c.agentStubMap;h.each((function(e){a(r,e)&&(e.dirty(),p=!0)})),p&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,r.block);h.each((function(e){e.perform(d)})),c.perform(d)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,a=t.seriesTaskMap=Ee(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||ef({plan:Ng,reset:Lg,count:Bg}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||ef({reset:Ig});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Ee(),l=e.seriesType,u=e.getTargetSeries,c=!0,p=!1,h="";function d(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(p=!0,ef({reset:Dg,onDirty:Eg})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,i._pipe(e,n)}"production"!==process.env.NODE_ENV&&(h='"createOnAllSeries" do not supported for "overallReset", becuase it will block all streams.'),Me(!e.createOnAllSeries,h),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(c=!1,ne(n.getSeries(),d)),p&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return ce(e)&&(e={overallReset:e,seriesType:Vg(e)}),e.uid=sp("stageHandler"),t&&(e.visualType=t),e},e}();function Ig(e){e.overallReset(e.ecModel,e.api,e.payload)}function Dg(e){return e.overallProgress&&Og}function Og(){this.agent.dirty(),this.getDownstream().dirty()}function Eg(){this.agent&&this.agent.dirty()}function Ng(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Lg(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=no(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?re(t,(function(e,t){return Rg(t)})):Pg}var Pg=Rg(0);function Rg(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function Bg(e){return e.data.count()}function Vg(e){zg=null;try{e(Fg,Gg)}catch(e){}return zg}var zg,Fg={},Gg={};function Ug(e,t){for(var n in t.prototype)e[n]=Re}Ug(Fg,Jh),Ug(Gg,Qh),Fg.eachSeriesByType=Fg.eachRawSeriesByType=function(e){zg=e},Fg.eachComponent=function(e){"series"===e.mainType&&e.subType&&(zg=e.subType)};var Wg=Ag,jg=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Hg={color:jg,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],jg]},Yg="#B9B8CE",qg="#100C2A",Xg=function(){return{axisLine:{lineStyle:{color:Yg}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Zg=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Jg={darkMode:!0,color:Zg,backgroundColor:qg,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Yg}},textStyle:{color:Yg},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Yg}},dataZoom:{borderColor:"#71708A",textStyle:{color:Yg},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Yg}},timeline:{lineStyle:{color:Yg},label:{color:Yg},controlStyle:{color:Yg,borderColor:Yg}},calendar:{itemStyle:{color:qg},dayLabel:{color:Yg},monthLabel:{color:Yg},yearLabel:{color:Yg}},timeAxis:Xg(),logAxis:Xg(),valueAxis:Xg(),categoryAxis:Xg(),line:{symbol:"circle"},graph:{color:Zg},gauge:{title:{color:Yg},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Yg},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Jg.categoryAxis.splitLine.show=!1;var Kg=Jg,Qg=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(pe(e)){var i=Mo(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};ne(e,(function(e,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var p=i.slice(0,c);"data"!==p&&(t.mainType=p,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),$g=["symbol","symbolSize","symbolRotate","symbolOffset"],ev=$g.concat(["symbolKeepAspect"]),tv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<$g.length;a++){var s=$g[a],l=e.get(s);ce(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(K({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var u=ae(i);return{dataEach:o?function(t,n){for(var r=e.getRawValue(n),o=e.getDataParams(n),a=0;a<u.length;a++){var s=u[a];t.setItemVisual(n,s,i[s](r,o))}}:null}}}}},nv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<ev.length;r++){var i=ev[r],o=n.getShallow(i,!0);null!=o&&e.setItemVisual(t,i,o)}}:null}}};function rv(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}function iv(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+t)}}function ov(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){r.push(e.seriesIndex)})),r}ne([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,r,i){t=K({},t),"production"!==process.env.NODE_ENV&&Ki(t.type,e[1]),i.dispatchAction(K(t,{type:e[1],seriesIndex:n(r,t)}))}))}))}function av(e,t,n,r,i){var o=e+t;n.isSilent(o)||("production"!==process.env.NODE_ENV&&Ji("event "+o+" is deprecated."),r.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),u=vo(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:ue(u)?l.getName(u[0]):l.getName(u),selected:pe(r)?r:K({},r)})}})))}function sv(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var lv=Math.round(9*Math.random()),uv="function"==typeof Object.defineProperty,cv=function(){function e(){this._id="__ec_inner_"+lv++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return uv?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),pv=cv,hv=ss.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),dv=ss.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),fv=ss.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,p=Math.sin(u),h=Math.cos(u),d=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-p*d,l+s+h*d,n,r-f,n,r),e.bezierCurveTo(n,r-f,n-c+p*d,l+s+h*d,n-c,l+s),e.closePath()}}),gv=ss.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),vv={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},mv={};ne({line:Nu,rect:ws,roundRect:ws,square:ws,circle:eu,diamond:dv,pin:fv,arrow:gv,triangle:hv},(function(e,t){mv[t]=new e}));var yv=ss.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=si(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=mv[r];i||(i=mv[r="rect"]),vv[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function xv(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function _v(e,t,n,r,i,o,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?mc(e.slice(8),new Qr(t,n,r,i),a?"center":"cover"):0===e.indexOf("path://")?vc(e.slice(7),{},new Qr(t,n,r,i),a?"center":"cover"):new yv({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=xv,o&&s.setColor(o),s}function bv(e,t){if(null!=e)return ue(e)||(e=[e,e]),[Ti(e[0],t[0])||0,Ti(we(e[1],e[0]),t[1])||0]}function wv(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*r+n.x,s=s*i+n.y,l*=o),e.createRadialGradient(a,s,0,a,s,l)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=isNaN(r)?0:r,i=isNaN(i)?1:i,o=isNaN(o)?0:o,a=isNaN(a)?0:a,e.createLinearGradient(r,o,i,a)}(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function Sv(e){return parseInt(e,10)}function kv(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Sv(s[r])||Sv(e.style[r]))-(Sv(s[o])||0)-(Sv(s[a])||0)|0}function Cv(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:de(t)?[t]:ue(t)?t:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(i=re(i,(function(e){return e/a})),o/=a)}return[i,o]}var Mv=new Fa(!0);function Tv(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function Av(e){return"string"==typeof e&&"none"!==e}function Iv(e){var t=e.fill;return null!=t&&"none"!==t}function Dv(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Ov(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Ev(e,t,n){var r=Vo(t.image,t.__image,n);if(Fo(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Be),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var Nv=["shadowBlur","shadowOffsetX","shadowOffsetY"],Lv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Pv(e,t,n,r,i){var o=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){Vv(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?ea.opacity:a}(r||t.blend!==n.blend)&&(o||(Vv(e,i),o=!0),e.globalCompositeOperation=t.blend||ea.blend);for(var s=0;s<Nv.length;s++){var l=Nv[s];(r||t[l]!==n[l])&&(o||(Vv(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(Vv(e,i),o=!0),e.shadowColor=t.shadowColor||ea.shadowColor),o}function Rv(e,t,n,r,i){var o=zv(t,i.inHover),a=r?null:n&&zv(n,i.inHover)||{};if(o===a)return!1;var s=Pv(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Vv(e,i),s=!0),Av(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Vv(e,i),s=!0),Av(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Vv(e,i),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Vv(e,i),s=!0),e.lineWidth=l)}for(var u=0;u<Lv.length;u++){var c=Lv[u],p=c[0];(r||o[p]!==a[p])&&(s||(Vv(e,i),s=!0),e[p]=o[p]||c[1])}return s}function Bv(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Vv(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function zv(e,t){return t&&e.__hoverStyle||e.style}function Fv(e,t){Gv(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Gv(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(o,a)||(a&&a.length&&(Vv(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Vv(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),Bv(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,p,h=t instanceof ss&&t.autoBatch&&function(e){var t=Iv(e),n=Tv(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(c=i,p=u.transform,c&&p?c[0]!==p[0]||c[1]!==p[1]||c[2]!==p[2]||c[3]!==p[3]||c[4]!==p[4]||c[5]!==p[5]:c||p)?(Vv(e,n),Bv(e,t)):h||Vv(e,n);var d=zv(t,n.inHover);t instanceof ss?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Rv(e,t,u,l,n),h&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,o=Tv(n),a=Iv(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||Mv,p=t.__dirty;if(!r){var h=n.fill,d=n.stroke,f=a&&!!h.colorStops,g=o&&!!d.colorStops,v=a&&!!h.image,m=o&&!!d.image,y=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(y=p?wv(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(x=p?wv(e,d,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),v&&(_=p||!t.__canvasFillPattern?Ev(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=_),m&&(b=p||!t.__canvasStrokePattern?Ev(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),f?e.fillStyle=y:v&&(_?e.fillStyle=_:a=!1),g?e.strokeStyle=x:m&&(b?e.strokeStyle=b:o=!1)}var S,k,C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(S=(i=Cv(t))[0],k=i[1]);var M=!0;(u||4&p)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),M=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),M&&c.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=k),r||(n.strokeFirst?(o&&Ov(e,n),a&&Dv(e,n)):(a&&Dv(e,n),o&&Ov(e,n))),S&&e.setLineDash([])}(e,t,d,h),h&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):t instanceof cs?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Rv(e,t,u,l,n),function(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||I,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(o=(r=Cv(t))[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(Tv(n)&&e.strokeText(i,n.x,n.y),Iv(n)&&e.fillText(i,n.x,n.y)):(Iv(n)&&e.fillText(i,n.x,n.y),Tv(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}(e,t,d)):t instanceof fs?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(e,t,n,r,i){Pv(e,zv(t,i.inHover),n&&zv(n,i.inHover),r,i)}(e,t,u,l,n),function(e,t,n){var r=t.__image=Vo(n.image,t.__image,t,t.onload);if(r&&Fo(r)){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var p=a-(u=n.sx),h=s-(c=n.sy);e.drawImage(r,u,c,p,h,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}(e,t,d)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Gv(e,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Gv(e,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),h&&r&&Vv(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var Uv=new pv,Wv=new yn(100),jv=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Hv(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&Uv.delete(e);var o=Uv.get(e);if(o)return o;var a=Q(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,o=[n],s=!0,l=0;l<jv.length;++l){var u=a[jv[l]];if(null!=u&&!ue(u)&&!pe(u)&&!de(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){t=o.join(",")+(i?"-svg":"");var c=Wv.get(t);c&&(i?e.svgElement=c:e.image=c)}var p,h=qv(a.dashArrayX),d=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(de(e)){var t=Math.ceil(e);return[t,t]}var n=re(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}(a.dashArrayY),f=Yv(a.symbol),g=(_=h,re(_,(function(e){return Xv(e)}))),v=Xv(d),m=!i&&N.createCanvas(),y=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var e=1,t=0,n=g.length;t<n;++t)e=ji(e,g[t]);var r=1;for(t=0,n=f.length;t<n;++t)r=ji(r,f[t].length);e*=r;var i=v*g.length*f.length;if("production"!==process.env.NODE_ENV){var o=function(e){console.warn("Calculated decal size is greater than "+e+" due to decal option settings so "+e+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+e+" to be larger to avoid incontinuity.")};e>a.maxTileWidth&&o("maxTileWidth"),i>a.maxTileHeight&&o("maxTileHeight")}return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var _;m&&(m.width=x.width*n,m.height=x.height*n,p=m.getContext("2d"));(function(){p&&(p.clearRect(0,0,m.width,m.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,m.width,m.height)));for(var e=0,t=0;t<d.length;++t)e+=d[t];if(e<=0)return;var o=-v,s=0,l=0,u=0;for(;o<x.height;){if(s%2==0){for(var c=l/2%f.length,g=0,_=0,b=0;g<2*x.width;){var w=0;for(t=0;t<h[u].length;++t)w+=h[u][t];if(w<=0)break;if(_%2==0){var S=.5*(1-a.symbolSize),k=g+h[u][_]*S,C=o+d[s]*S,M=h[u][_]*a.symbolSize,T=d[s]*a.symbolSize,A=b/2%f[c].length;I(k,C,M,T,f[c][A])}g+=h[u][_],++b,++_===h[u].length&&(_=0)}++u===h.length&&(u=0)}o+=d[s],++l,++s===d.length&&(s=0)}function I(e,t,o,s,l){var u=i?1:n,c=_v(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var h=r.painter.renderOneToVNode(c);h&&y.children.push(h)}else Fv(p,c)}})(),s&&Wv.put(t,m||y);e.image=m,e.svgElement=y,e.svgWidth=x.width,e.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Uv.set(e,s),e.dirty=!1,s}function Yv(e){if(!e||0===e.length)return[["rect"]];if(pe(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!pe(e[n])){t=!1;break}if(t)return Yv([e]);var r=[];for(n=0;n<e.length;++n)pe(e[n])?r.push([e[n]]):r.push(e[n]);return r}function qv(e){if(!e||0===e.length)return[[0,0]];if(de(e))return[[i=Math.ceil(e),i]];for(var t=!0,n=0;n<e.length;++n)if(!de(e[n])){t=!1;break}if(t)return qv([e]);var r=[];for(n=0;n<e.length;++n)if(de(e[n])){var i=Math.ceil(e[n]);r.push([i,i])}else{(i=re(e[n],(function(e){return Math.ceil(e)}))).length%2==1?r.push(i.concat(i)):r.push(i)}return r}function Xv(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var Zv=new tt,Jv={};var Kv="undefined"!=typeof window,Qv=2e3,$v=4500,em={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:Qv,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:$v,ARIA:6e3,DECAL:7e3}},tm=/^[a-zA-Z0-9_]+$/,nm="__connectUpdateStatus";function rm(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return om(this,e,t);Im(this.id)}}function im(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return om(this,e,t)}}function om(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),tt.prototype[t].apply(e,n)}var am,sm,lm,um,cm,pm,hm,dm,fm,gm,vm,mm,ym,xm,_m,bm,wm,Sm,km=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t}(tt),Cm=km.prototype;Cm.on=im("on"),Cm.off=im("off");var Mm=function(e){function t(t,n,r){var i=e.call(this,new Qg)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},pe(n)&&(n=Pm[n]),i._dom=t;var o="canvas",a=!1;if("production"!==process.env.NODE_ENV){var s=Kv?window:global;o=s.__ECHARTS__DEFAULT__RENDERER__||o;var l=s.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;a=null==l?a:l}var u=i._zr=ki(t,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:null==r.useDirtyRect?a:r.useDirtyRect});i._ssr=r.ssr,i._throttledZrFlush=gg(se(u.flush,u),17),(n=X(n))&&kd(n,!0),i._theme=n,i._locale=function(e){if(pe(e)){var t=hp[e.toUpperCase()]||{};return e===up||e===cp?X(t):Z(X(t),X(hp.EN),!1)}return Z(X(e),X(hp.EN),!1)}(r.locale||fp),i._coordSysMgr=new ed;var c=i._api=_m(i);function p(e,t){return e.__prio-t.__prio}return Lt(Lm,p),Lt(Em,p),i._scheduler=new Wg(i,c,Em,Lm),i._messageCenter=new km,i._initEvents(),i.resize=se(i.resize,i),u.animation.on("frame",i._onframe,i),gm(u,i),vm(u,i),Ie(i),i}return k(t,e),t.prototype._onframe=function(){if(!this._disposed){Sm(this);var e=this._scheduler;if(this.__pendingUpdate){var t=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{am(this),um.update.call(this,null,this.__pendingUpdate.updateParams)}catch(e){throw this.__flagInMainProcess=!1,this.__pendingUpdate=null,e}this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,dm.call(this,t),fm.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),pm(this,r),e.performVisualTasks(r),xm(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(this.__flagInMainProcess)"production"!==process.env.NODE_ENV&&Zi("`setOption` should not be called during main process.");else if(this._disposed)Im(this.id);else{var r,i,o;if(fe(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this.__flagInMainProcess=!0,!this._model||t){var a=new id(this._api),s=this._theme,l=this._model=new Jh;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:i},Nm);var u={seriesTransition:o,optionChanged:!0};if(n)this.__pendingUpdate={silent:r,updateParams:u},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{am(this),um.update.call(this,null,u)}catch(e){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,e}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,dm.call(this,r),fm.call(this,r)}}},t.prototype.setTheme=function(){Ji("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Kv&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return"production"!==process.env.NODE_ENV&&Ki("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;if("production"!==process.env.NODE_ENV&&"canvas"!==t.type)throw new Error("renderToCanvas can only be used in the canvas renderer.");return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;if("production"!==process.env.NODE_ENV&&"svg"!==t.type)throw new Error("renderToSVGString can only be used in the svg renderer.");return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(A.svgSupported){var e=this._zr;return ne(e.storage.getDisplayList(),(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;ne(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return ne(r,(function(e){e.group.ignore=!1})),o}Im(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(Vm[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],p=e&&e.pixelRatio||this.getDevicePixelRatio();ne(Bm,(function(o,p){if(o.group===n){var h=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(X(e)),d=o.getDom().getBoundingClientRect();a=r(d.left,a),s=r(d.top,s),l=i(d.right,l),u=i(d.bottom,u),c.push({dom:h,left:d.left,top:d.top})}}));var h=(l*=p)-(a*=p),d=(u*=p)-(s*=p),f=N.createCanvas(),g=ki(f,{renderer:t?"svg":"canvas"});if(g.resize({width:h,height:d}),t){var v="";return ne(c,(function(e){var t=e.left-a,n=e.top-s;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new ws({shape:{x:0,y:0,width:h,height:d},style:{fill:e.connectedBackgroundColor}})),ne(c,(function(e){var t=new fs({style:{x:e.left*p-a,y:e.top*p-s,image:e.dom}});g.add(t)})),g.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Im(this.id)},t.prototype.convertToPixel=function(e,t){return cm(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return cm(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return ne(xo(this._model,e),(function(e,r){r.indexOf("Models")>=0&&ne(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint?n=n||o.containPoint(t,e):"production"!==process.env.NODE_ENV&&console.warn(r+": "+(o?"The found component do not support containPoint.":"No view mapping to the found component."))}else"production"!==process.env.NODE_ENV&&console.warn(r+": containPoint is not supported")}),this)}),this),!!n;Im(this.id)},t.prototype.getVisual=function(e,t){var n=xo(this._model,e,{defaultMainType:"series"}),r=n.seriesModel;"production"!==process.env.NODE_ENV&&(r||console.warn("There is no specified seires model"));var i=r.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=o?rv(i,o,t):iv(i,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,r=this;ne(Am,(function(e){var t=function(t){var n,i=r.getModel(),o=t.target,a="globalout"===e;if(a?n={}:o&&sv(o,(function(e){var t=Vs(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return n=K({},t.eventData),!0}),!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&r["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];"production"!==process.env.NODE_ENV&&(a||u&&c||console.warn("model or view can not be found by params")),n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)})),ne(Om,(function(e,t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),ne(["selectchanged"],(function(e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(av("map","selectchanged",t,r,e),av("pie","selectchanged",t,r,e)):"select"===e.fromAction?(av("map","selected",t,r,e),av("pie","selected",t,r,e)):"unselect"===e.fromAction&&(av("map","unselected",t,r,e),av("pie","unselected",t,r,e))}))},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Im(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Im(this.id);else{this._disposed=!0,this.getDom()&&So(this.getDom(),Fm,"");var e=this,t=e._api,n=e._model;ne(e._componentsViews,(function(e){e.dispose(n,t)})),ne(e._chartsViews,(function(e){e.dispose(n,t)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Bm[e.id]}},t.prototype.resize=function(e){if(this.__flagInMainProcess)"production"!==process.env.NODE_ENV&&Zi("`resize` should not be called during main process.");else if(this._disposed)Im(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this.__pendingUpdate&&(null==r&&(r=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&am(this),um.update.call(this,{type:"resize",animation:K({duration:0},e&&e.animation)})}catch(e){throw this.__flagInMainProcess=!1,e}this.__flagInMainProcess=!1,dm.call(this,r),fm.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Im(this.id);else if(fe(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Rm[e]){var n=Rm[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}else"production"!==process.env.NODE_ENV&&console.warn("Loading effects "+e+" not exists.")},t.prototype.hideLoading=function(){this._disposed?Im(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=K({},e);return t.type=Om[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Im(this.id);else if(fe(t)||(t={silent:!!t}),Dm[e.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(e);else{var n=t.silent;hm.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&A.browser.weChat&&this._throttledZrFlush(),dm.call(this,n),fm.call(this,n)}},t.prototype.updateLabelLayout=function(){Zv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Im(this.id);else{var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);"production"!==process.env.NODE_ENV&&Me(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return r(e,n,i,-1/0),!0}))}}function r(e,t,n,i){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(o&&(o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function i(e,t){t.eachRendered((function(e){if(!ac(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function o(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(e){if(e.states&&e.states.emphasis){if(ac(e))return;if(e instanceof ss&&function(e){var t=Gs(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}}))}am=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),sm(e,!0),sm(e,!1),t.plan()},sm=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var p=Mo(e.type),h=t?tg.getClass(p.main,p.sub):pg.getClass(p.sub);"production"!==process.env.NODE_ENV&&Me(h,p.sub+" does not exist."),(c=new h).init(n,s),o[u]=c,i.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},lm=function(e,t,n,r,i){var o=e._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=Ee(),ne(no(u),(function(e){var t=co(e,null);null!=t&&l.set(t,!0)}))),o&&o.eachComponent(s,(function(t){if(!(l&&null!==l.get(t.id)))if(Nl(n))if(t instanceof $f)n.type!==Hs||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=vo(i,t);o=(ue(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Vs(a);_l(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),p=e.get(["emphasis","blurScope"]);null!=c&&_l(r,c,p,n)}}else"production"!==process.env.NODE_ENV&&Zi("Unknown dataType "+t.dataType)}(t,n,e._api);else{var r=wl(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;n.type===Hs&&i&&!n.notBlur&&bl(t.mainType,t.componentIndex,e._api),o&&ne(o,(function(e){n.type===Hs?dl(e):fl(e)}))}else El(n)&&t instanceof $f&&(!function(e,t,n){if(El(t)){var r=t.dataType,i=vo(e.getData(r),t);ue(i)||(i=[i]),e[t.type===Zs?"toggleSelect":t.type===qs?"select":"unselect"](i,r)}}(t,n,e._api),Sl(t),wm(e))}),e),o&&o.eachComponent(s,(function(t){l&&null!==l.get(t.id)||c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else ne([].concat(e._componentsViews).concat(e._chartsViews),c);function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}},um={prepareAndUpdate:function(e){am(this),um.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,t),pm(this,r),a.update(r,i),e(r),s.performVisualTasks(r,t),mm(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Zv.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var o=[];r.eachComponent((function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,t);l&&l.update&&o.push(s)}else o.push(s)}}));var a=Ee();r.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,r,i,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)})),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:a}),xm(this,r,i,t,{},a),Zv.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),pg.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),mm(this,n,this._api,t,{}),Zv.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries((function(e){e.getData().clearAllVisual()})),pg.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent((function(e,i){if("series"!==e){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,t)}})),r.eachSeries((function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)})),Zv.trigger("afterupdate",r,this._api))},updateLayout:function(e){um.update.call(this,e)}},cm=function(e,t,n,r){if(e._disposed)Im(e.id);else{for(var i,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=xo(o,n),l=0;l<a.length;l++){var u=a[l];if(u[t]&&null!=(i=u[t](o,s,r)))return i}"production"!==process.env.NODE_ENV&&console.warn("No coordinate system that supports "+t+" found by the given finder.")}},pm=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},hm=function(e,t){var n=this,r=this.getModel(),i=e.type,o=e.escapeConnect,a=Dm[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&Mo(l[0]);this.__flagInMainProcess=!0;var p=[e],h=!1;e.batch&&(h=!0,p=re(e.batch,(function(t){return(t=Q(K({},t),e)).batch=null,t})));var d,f=[],g=El(e),v=Nl(e);if(v&&xl(this._api),ne(p,(function(t){if((d=(d=a.action(t,n._model,n._api))||K({},t)).type=s.event||d.type,f.push(d),v){var r=_o(e),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";lm(n,u,t,o),wm(n)}else g?(lm(n,u,t,"series"),wm(n)):c&&lm(n,u,t,c.main,c.sub)})),"none"!==u&&!v&&!g&&!c)try{this.__pendingUpdate?(am(this),um.update.call(this,e),this.__pendingUpdate=null):um[u].call(this,e)}catch(e){throw this.__flagInMainProcess=!1,e}if(d=h?{type:s.event||i,escapeConnect:o,batch:f}:f[0],this.__flagInMainProcess=!1,!t){var m=this._messageCenter;if(m.trigger(d.type,d),g){var y={type:"selectchanged",escapeConnect:o,selected:kl(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};m.trigger(y.type,y)}}},dm=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();hm.call(this,n,e)}},fm=function(e){!e&&this.trigger("updated")},gm=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t.__pendingUpdate||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},vm=function(e,t){e.on("mouseover",(function(e){var n=sv(e.target,Ol);n&&(!function(e,t,n){"production"===process.env.NODE_ENV||Ol(e)||Zi("param should be highDownDispatcher");var r=Vs(e),i=wl(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&bl(r.componentMainType,r.componentIndex,n),ne(o,(function(e){return pl(e,t)}))):(_l(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&bl(r.componentMainType,r.componentIndex,n),pl(e,t))}(n,e,t._api),wm(t))})).on("mouseout",(function(e){var n=sv(e.target,Ol);n&&(!function(e,t,n){"production"===process.env.NODE_ENV||Ol(e)||Zi("param should be highDownDispatcher"),xl(n);var r=Vs(e),i=wl(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?ne(i,(function(e){return hl(e,t)})):hl(e,t)}(n,e,t._api),wm(t))})).on("click",(function(e){var n=sv(e.target,(function(e){return null!=Vs(e).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",i=Vs(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}}))},mm=function(e,t,n,r,i){!function(e){var t=[],n=[],r=!1;if(e.eachComponent((function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})})),r){var i,o,a=t.concat(n);Lt(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),ne(a,(function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,a=t.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}(t),ym(e,t,n,r,i),ne(e._chartsViews,(function(e){e.__alive=!1})),xm(e,t,n,r,i),ne(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},ym=function(e,t,r,a,s,l){ne(l||e._componentsViews,(function(e){var s=e.__model;i(s,e),e.render(s,t,r,a),n(s,e),o(s,e)}))},xm=function(e,t,r,a,s,l){var u=e._scheduler;s=K(s||{},{updatedSeries:t.getSeries()}),Zv.trigger("series:beforeupdate",t,r,s);var c=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(t,n),l&&l.get(t.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}(t,n),Sl(t)})),u.unfinished=c||u.unfinished,Zv.trigger("series:layoutlabels",t,r,s),Zv.trigger("series:transition",t,r,s),t.eachSeries((function(t){var r=e._chartsMap[t.__viewId];n(t,r),o(t,r)})),function(e,t){var n=e._zr.storage,r=0;n.traverse((function(e){e.isGroup||r++})),r>t.get("hoverLayerThreshold")&&!A.node&&!A.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),Zv.trigger("series:afterupdate",t,r,s)},wm=function(e){e.__needsUpdateStatus=!0,e.getZr().wakeUp()},Sm=function(e){e.__needsUpdateStatus&&(e.getZr().storage.traverse((function(e){ac(e)||t(e)})),e.__needsUpdateStatus=!1)},_m=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return k(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){dl(t,n),wm(e)},n.prototype.leaveEmphasis=function(t,n){fl(t,n),wm(e)},n.prototype.enterBlur=function(t){!function(e){sl(e,nl)}(t),wm(e)},n.prototype.leaveBlur=function(t){gl(t),wm(e)},n.prototype.enterSelect=function(t){vl(t),wm(e)},n.prototype.leaveSelect=function(t){ml(t),wm(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(Qh))(e)},bm=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][nm]=t}}ne(Om,(function(n,r){e._messageCenter.on(r,(function(n){if(Vm[e.group]&&0!==e[nm]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];ne(Bm,(function(t){t!==e&&t.group===e.group&&i.push(t)})),t(i,0),ne(i,(function(e){1!==e[nm]&&e.dispatchAction(r)})),t(i,2)}}))}))}}(),t}(tt),Tm=Mm.prototype;Tm.on=rm("on"),Tm.off=rm("off"),Tm.one=function(e,t,n){var r=this;Ji("ECharts#one is deprecated."),this.on.call(this,e,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),r.off(e,n)}),n)};var Am=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Im(e){"production"!==process.env.NODE_ENV&&console.warn("Instance "+e+" has been disposed")}var Dm={},Om={},Em=[],Nm=[],Lm=[],Pm={},Rm={},Bm={},Vm={},zm=+new Date-0,Fm="_echarts_instance_";function Gm(e,t,n){var r=!(n&&n.ssr);if(r){if("production"!==process.env.NODE_ENV&&!e)throw new Error("Initialize failed: invalid dom.");var i=function(e){return Bm[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,Fm)]}(e);if(i)return"production"!==process.env.NODE_ENV&&console.warn("There is a chart instance already initialized on the dom."),i;"production"!==process.env.NODE_ENV&&(!me(e)||"CANVAS"===e.nodeName.toUpperCase()||(e.clientWidth||n&&null!=n.width)&&(e.clientHeight||n&&null!=n.height)||console.warn("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload."))}var o=new Mm(e,t,n);return o.id="ec_"+zm++,Bm[o.id]=o,r&&So(e,Fm,o.id),bm(o),Zv.trigger("afterinit",o),o}function Um(e,t){Pm[e]=t}function Wm(e){$(Nm,e)<0&&Nm.push(e)}function jm(e,t){Zm(Em,e,t,2e3)}function Hm(e,t){Zv.on(e,t)}function Ym(e,t,n){ce(t)&&(n=t,t="");var r=fe(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,Om[t]||(Me(tm.test(r)&&tm.test(t)),Dm[r]||(Dm[r]={action:n,actionInfo:e}),Om[t]=r)}function qm(e,t){Zm(Lm,e,t,3e3,"visual")}var Xm=[];function Zm(e,t,n,r,i){if((ce(t)||fe(t))&&(n=t,t=r),"production"!==process.env.NODE_ENV){if(isNaN(t)||null==t)throw new Error("Illegal priority");ne(e,(function(e){Me(e.__raw!==n)}))}if(!($(Xm,n)>=0)){Xm.push(n);var o=Wg.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function Jm(e,t){Rm[e]=t}function Km(e,t,n){var r,i=(r="registerMap","production"!==process.env.NODE_ENV&&(Jv[r]||Zi("Implementation of "+r+" doesn't exists.")),Jv[r]);i&&i(e,t,n)}var Qm=function(e){var t=(e=X(e)).type,n="";t||("production"!==process.env.NODE_ENV&&(n="Must have a `type` when `registerTransform`."),$i(n));var r=t.split(":");2!==r.length&&("production"!==process.env.NODE_ENV&&(n='Name must include namespace like "ns:regression".'),$i(n));var i=!1;"echarts"===r[0]&&(t=r[1],i=!0),e.__isBuiltIn=i,pf.set(t,e)};function $m(e){return null==e?0:e.length||1}function ey(e){return e}qm(Qv,Sg),qm($v,Cg),qm($v,Mg),qm(Qv,tv),qm($v,nv),qm(7e3,(function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=Hv(n,t))}));var i=r.getVisual("decal");if(i)r.getVisual("style").decal=Hv(i,t)}}))})),Wm(kd),jm(900,(function(e){var t=Ee();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),t.each(Cd)})),Jm("default",(function(e,t){Q(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new _i,r=new ws({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new Bs({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new ws({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((i=new Gu({shape:{startAngle:-Tg/2,endAngle:-Tg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Tg/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Tg/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),Ym({type:Hs,event:Hs,update:Hs},Re),Ym({type:Ys,event:Ys,update:Ys},Re),Ym({type:qs,event:qs,update:qs},Re),Ym({type:Xs,event:Xs,update:Xs},Re),Ym({type:Zs,event:Zs,update:Zs},Re),Um("light",Hg),Um("dark",Kg);var ty=function(){function e(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||ey,this._newKeyGetter=r||ey,this.context=i,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=r[o],s=n[a],l=$m(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=$m(l),p=$m(u);if(c>1&&1===p)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&p>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===p)this._update&&this._update(u,l),r[s]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],o=$m(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[r](e[o],o);if(i||(n[o]=a),t){var s=t[a],l=$m(s);0===l?(t[a]=o,i&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}(),ny=ty,ry=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function iy(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}var oy=function(e){this.otherDims={},null!=e&&K(this,e)},ay=mo(),sy={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ly=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=py(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return we(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Vd(this.source),n=!hy(e),r="",i=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var p=this.getSourceDimension(o);p&&(s=t?p.name:null,l=p.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=sy[l]||"f",u&&(r+=u.uid),r+="$"}var h=this.source;return{dimensions:i,hash:[h.seriesLayoutBy,h.startIndex,r].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(t);o&&(r=o.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function uy(e){return e instanceof ly}function cy(e){for(var t=Ee(),n=0;n<(e||[]).length;n++){var r=e[n],i=fe(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function py(e){var t=ay(e);return t.dimNameMap||(t.dimNameMap=cy(e.dimensionsDefine))}function hy(e){return e>30}var dy,fy,gy,vy,my,yy,xy,_y=fe,by=re,wy="undefined"==typeof Int32Array?Array:Int32Array,Sy=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ky=["_approximateExtent"],Cy=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;uy(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],p=pe(c)?new oy({name:c}):c instanceof oy?c:new oy(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(h),i[h]=p,null!=l[h]&&(s=!0),p.createInvertedIndices&&(a[h]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),"production"!==process.env.NODE_ENV&&Me(r||p.storeDimIndex>=0),r&&(p.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=Ee();ne(o,(function(e){f.set(i[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(de(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if("production"!==process.env.NODE_ENV&&null==t)throw new Error("Unkown dimension "+e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof Sf&&(r=e),!r){var o=this.dimensions,a=Ed(e)||te(e)?new zd(e,o.length):e;r=new Sf;var s=by(o,(function(e){return{type:i._dimInfos[e].type,property:e}}));r.initData(a,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},i=Ee(),o=[],a=[],s={};ne(e.dimensions,(function(t){var n,l=e.getDimensionInfo(t),u=l.coordDim;if(u){"production"!==process.env.NODE_ENV&&Me(null==xh.get(u));var c=l.coordDimIndex;iy(r,u)[c]=t,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=t),iy(s,u)[c]=e.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(t)}xh.each((function(e,t){var n=iy(r,t),i=l.otherDims[t];null!=i&&!1!==i&&(n[i]=l.name)}))}));var l=[],u={};i.each((function(e,t){var n=r[t];u[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=re(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var p=r.tooltip;return p&&p.length?a=p.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new ry(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=t[s],o&&xy(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==kh&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===_h&&!n.pure)for(var o=[],a=e;a<t;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&ao(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=co(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=co(u,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)xy(this,a);dy(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){_y(e)?K(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=gy(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return fy(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return ue(e)?r.getValues(by(e,(function(e){return n._getStoreDimIndex(e)})),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if("production"!==process.env.NODE_ENV&&!n)throw new Error("Do not supported yet");var r=n[t];return null==r||isNaN(r)?-1:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){ce(e)&&(n=t,t=e,e=[]);var r=n||this,i=by(vy(e),this._getStoreDimIndex,this);this._store.each(i,r?se(t,r):t)},e.prototype.filterSelf=function(e,t,n){ce(e)&&(n=t,t=e,e=[]);var r=n||this,i=by(vy(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?se(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={};return ne(ae(e),(function(r){var i=t._getStoreDimIndex(r);n[i]=e[r]})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){ce(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,o=by(vy(e),this._getStoreDimIndex,this),a=yy(this);return a._store=this._store.map(o,i?se(t,i):t),a},e.prototype.modify=function(e,t,n,r){var i=this,o=n||r||this;"production"!==process.env.NODE_ENV&&ne(vy(e),(function(e){i.getDimensionInfo(e).isCalculationCoord||console.error("Danger: only stack dimension can be modified")}));var a=by(vy(e),this._getStoreDimIndex,this);this._store.modify(a,o?se(t,o):t)},e.prototype.downSample=function(e,t,n,r){var i=yy(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.lttbDownSample=function(e,t){var n=yy(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new op(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new ny(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return fy(e,t)}),(function(e){return fy(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},_y(e)?K(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(ue(i=this.getVisual(t))?i=i.slice():_y(i)&&(i=K({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,_y(t)?K(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){_y(e)?K(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?K(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){!function(e,t,n,r){if(r){var i=Vs(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,"group"===r.type&&r.traverse((function(r){var i=Vs(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t}))}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){ne(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:by(this.dimensions,this._getDimInfo,this),this.hostModel)),my(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];ce(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(ke(arguments)))})},e.internalField=(dy=function(e){var t=e._invertedIndicesMap;ne(t,(function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new wy(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},gy=function(e,t,n){return co(e._getCategory(t,n),null)},fy=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=gy(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},vy=function(e){return ue(e)||(e=null!=e?[e]:[]),e},yy=function(t){var n=new e(t._schema?t._schema:by(t.dimensions,t._getDimInfo,t),t.hostModel);return my(n,t),n},my=function(e,t){ne(Sy.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,ne(ky,(function(n){e[n]=X(t[n])})),e._calculationInfo=K({},t._calculationInfo)},void(xy=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=r[t];if(null==a&&null!=i&&(n[t]=a=gy(e,i,t)),null==s&&null!=o&&(r[t]=s=gy(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[t]=s}})),e}(),My=Cy;function Ty(e,t){Ed(e)||(e=Ld(e));var n=(t=t||{}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Ee(),o=[],a=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return ne(t,(function(e){var t;fe(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))})),i}(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&hy(a),l=r===e.dimensionsDefine,u=l?py(e):cy(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var p=Ee(c),h=new yf(a),d=0;d<h.length;d++)h[d]=-1;function f(e){var t=h[e];if(t<0){var n=r[e],i=fe(n)?n:{name:n},a=new oy,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return h[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(d=0;d<a;d++)f(d);p.each((function(e,t){var n=no(e).slice();if(1===n.length&&!pe(n[0])&&n[0]<0)p.set(t,!1);else{var r=p.set(t,[]);ne(n,(function(e,n){var i=pe(e)?u.get(e):e;null!=i&&i<a&&(r[n]=i,v(f(i),t,n))}))}}));var g=0;function v(e,t,n){null!=xh.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}ne(n,(function(e){var t,n,r,i;if(pe(e))t=e,i={};else{t=(i=e).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=K({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=p.get(t);if(!1!==s){if(!(s=no(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}ne(s,(function(e,o){var a=f(e);if(l&&null!=i.type&&(a.type=i.type),v(Q(a,i),t,o),null==a.name&&n){var s=n[o];!fe(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Q(a.otherDims,r)}))}}));var m=t.generateCoord,y=t.generateCoordCount,x=null!=y;y=m?y||1:0;var _=m||"value";function b(e){null==e.name&&(e.name=e.coordDim)}if(s)ne(o,(function(e){b(e)})),o.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=Ay(_,i,x),S.coordDimIndex=0,(!m||y<=0)&&(S.isExtraCoord=!0),y--),b(S),null!=S.type||Ph(e,w)!==Ah&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(e){for(var t=Ee(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}(o),new ly({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Ay(e,t,n){var r=t.data;if(n||r.hasOwnProperty(e)){for(var i=0;r.hasOwnProperty(e+i);)i++;e+=i}return t.set(e,!0),e}var Iy=function(e){this.coordSysDims=[],this.axisMap=Ee(),this.categoryAxisMap=Ee(),this.coordSysName=e};var Dy={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",bo).models[0],o=e.getReferringComponents("yAxis",bo).models[0];if("production"!==process.env.NODE_ENV){if(!i)throw new Error('xAxis "'+be(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+be(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Oy(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Oy(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",bo).models[0];if("production"!==process.env.NODE_ENV&&!i)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],n.set("single",i),Oy(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",bo).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");if("production"!==process.env.NODE_ENV){if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Oy(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),Oy(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();ne(o.parallelAxisIndex,(function(e,o){var s=i.getComponent("parallelAxis",e),l=a[o];n.set(l,s),Oy(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function Oy(e){return"category"===e.get("type")}function Ey(e,t,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!uy(e.schema)}(t)?(i=t.schema,r=i.dimensions,o=t.store):r=t;var l,u,c,p,h=!(!e||!e.get("stack"));if(ne(r,(function(e,t){pe(e)&&(r[t]=e={name:e}),h&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,p="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;ne(r,(function(e){e.coordDim===d&&g++}));var v={name:c,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:p,coordDim:p,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(p,f),m.storeDimIndex=o.ensureCalculationDimension(c,f)),i.appendCalculationDimension(v),i.appendCalculationDimension(m)):(r.push(v),r.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:p,stackResultDimension:c}}function Ny(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Ly(e,t,n){n=n||{};var r,i=t.getSourceManager(),o=!1;e?(o=!0,r=Ld(e)):o=(r=i.getSource()).sourceFormat===_h;var a=function(e){var t=e.get("coordinateSystem"),n=new Iy(t),r=Dy[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,r=e.get("coordinateSystem"),i=ed.get(r);return t&&t.coordSysDims&&(n=re(t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=function(e){return"category"===e?"ordinal":"time"===e?"time":"float"}(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(t,a),l=n.useEncodeDefaulter,u=ce(l)?l:l?le(Eh,s,t):null,c=Ty(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),p=function(e,t,n){var r,i;return n&&ne(e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)})),i||null==r||(e[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),h=o?null:i.getSharedDataStore(c),d=Ey(t,{schema:c,store:h}),f=new My(c,t);f.setCalculationInfo(d);var g=null!=p&&function(e){if(e.sourceFormat===_h){var t=function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return!ue(oo(t))}}(r)?function(e,t,n,r){return r===p?n:this.defaultDimValueGetter(e,t,n,r)}:null;return f.hasItemOption=!1,f.initData(o?r:h,null,g),f}var Py=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Eo(Py);var Ry=Py,By=0,Vy=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++By}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&re(r,zy);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!pe(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Ee(this.categories))},e}();function zy(e){return fe(e)&&null!=e.value?e.value:e+""}var Fy=Vy;function Gy(e){return"interval"===e.type||"log"===e.type}function Uy(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=Vi(o/t,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=jy(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Hy(e,0,t),Hy(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(i.niceTickExtent=[Ai(Math.ceil(e[0]/a)*a,s),Ai(Math.floor(e[1]/a)*a,s)],e),i}function Wy(e){var t=Math.pow(10,Bi(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Ai(n*t)}function jy(e){return Di(e)+2}function Hy(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Yy(e,t){return e>=t[0]&&e<=t[1]}function qy(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Xy(e,t){return e*(t[1]-t[0])+t[0]}var Zy=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new Fy({})),ue(r)&&(r=new Fy({categories:re(r,(function(e){return fe(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return k(t,e),t.prototype.parse=function(e){return null==e?NaN:pe(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return Yy(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return qy(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(Xy(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i<a;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ry);Ry.registerClass(Zy);var Jy=Zy,Ky=Ai,Qy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return k(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Yy(e,this._extent)},t.prototype.normalize=function(e){return qy(e,this._extent)},t.prototype.scale=function(e){return Xy(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=jy(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;n[0]<r[0]&&(e?o.push({value:Ky(r[0]-t,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=Ky(a+t,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(e?o.push({value:Ky(s+t,i)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var o=t[i],a=t[i-1],s=0,l=[],u=(o.value-a.value)/e;s<e-1;){var c=Ky(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=Di(e.value)||0:"auto"===n&&(n=this._intervalPrecision),Yp(Ky(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=Uy(r,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=Ky(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=Ky(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(Ry);Ry.registerClass(Qy);var $y=Qy,ex="undefined"!=typeof Float32Array,tx=ex?Float32Array:Array;function nx(e){return ue(e)?ex?new Float32Array(e):e:new tx(e)}function rx(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function ix(e){return e.dim+e.index}function ox(e,t){var n=[];return t.eachSeriesByType(e,(function(e){lx(e)&&n.push(e)})),n}function ax(e){var t=function(e){var t={};ne(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);t[i]?t[i].push(u):t[i]=[u]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort((function(e,t){return e-t}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(e),n=[];return ne(e,(function(e){var r,i=e.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=t[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var p=e.getData();r=Math.abs(o[1]-o[0])/p.count()}var h=Ti(e.get("barWidth"),r),d=Ti(e.get("barMaxWidth"),r),f=Ti(e.get("barMinWidth")||(ux(e)?.5:1),r),g=e.get("barGap"),v=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:h,barMaxWidth:d,barMinWidth:f,barGap:g,barCategoryGap:v,axisKey:ix(i),stackId:rx(e)})})),function(e){var t={};ne(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var p=e.barGap;null!=p&&(o.gap=p);var h=e.barCategoryGap;null!=h&&(o.categoryGap=h)}));var n={};return ne(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=ae(r).length;o=Math.max(35-4*a,15)+"%"}var s=Ti(o,i),l=Ti(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,p=(u-s)/(c+(c-1)*l);p=Math.max(p,0),ne(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--}else{var r=p;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==p&&(e.width=r,u-=r+l*r,c--)}})),p=(u-s)/(c+(c-1)*l),p=Math.max(p,0);var h,d=0;ne(r,(function(e,t){e.width||(e.width=p),h=e,d+=e.width*(1+l)})),h&&(d-=h.width*l);var f=-d/2;ne(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}(n)}function sx(e,t){var n=ox(e,t),r=ax(n);ne(n,(function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=rx(e),o=r[ix(n)][i],a=o.offset,s=o.width;t.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function lx(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function ux(e){return e.pipelineContext&&e.pipelineContext.large}var cx=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return k(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Ip(e.value,Sp[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Tp(this._minLevelUnit))]||Sp.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var o=null;if(pe(n))o=n;else if(ce(n))o=n(e.value,t,{level:e.level});else{var a=K({},bp);if(e.level>0)for(var s=0;s<kp.length;++s)a[kp[s]]="{primary|"+a[kp[s]]+"}";var l=n?!1===n.inherit?n:Q(n,a):a,u=Dp(e.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=Cp.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ue(o)){var c=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[c=Math.min(c,o.length-1)]}}return Ip(new Date(e.value),o,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=function(e,t,n,r){var i=1e4,o=Cp,a=0;function s(e,t,n,i,o,a,s){for(var l=new Date(t),u=t,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,i,o){var a=[],l=!i.length;if(!function(e,t,n,r){var i=Ri(t),o=Ri(n),a=function(e){return Op(i,e,r)===Op(o,e,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},p=function(){return c()&&a("minute")},h=function(){return p()&&a("second")},d=function(){return h()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return p();case"second":return h();case"millisecond":return d()}}(Tp(e),r[0],r[1],n)){l&&(i=[{value:mx(new Date(r[0]),e,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,p=i[u+1].value;if(c!==p){var h=void 0,d=void 0,f=void 0,g=!1;switch(e){case"year":h=Math.max(1,Math.round(t/xp/365)),d=Ep(n),f=zp(n);break;case"half-year":case"quarter":case"month":h=dx(t),d=Np(n),f=Fp(n);break;case"week":case"half-week":case"day":h=hx(t),d=Lp(n),f=Gp(n),g=!0;break;case"half-day":case"quarter-day":case"hour":h=fx(t),d=Pp(n),f=Up(n);break;case"minute":h=gx(t,!0),d=Rp(n),f=Wp(n);break;case"second":h=gx(t,!1),d=Bp(n),f=jp(n);break;case"millisecond":h=vx(t),d=Vp(n),f=Hp(n)}s(h,c,p,d,f,g,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-h})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],p=0,h=0,d=0;d<o.length&&a++<i;++d){var f=Tp(o[d]);if(Ap(o[d]))if(l(o[d],u[u.length-1]||[],c),f!==(o[d+1]?Tp(o[d+1]):null)){if(c.length){h=p,c.sort((function(e,t){return e.value-t.value}));for(var g=[],v=0;v<c.length;++v){var m=c[v].value;0!==v&&c[v-1].value===m||(g.push(c[v]),m>=r[0]&&m<=r[1]&&p++)}var y=(r[1]-r[0])/t;if(p>1.5*y&&h>y/1.5)break;if(u.push(g),p>y||e===o[d])break}c=[]}}"production"!==process.env.NODE_ENV&&a>=i&&Xi("Exceed safe limit.");var x=oe(re(u,(function(e){return oe(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),_=[],b=x.length-1;for(d=0;d<x.length;++d)for(var w=x[d],S=0;S<w.length;++S)_.push({value:w[S].value,level:b-d});_.sort((function(e,t){return e.value-t.value}));var k=[];for(d=0;d<_.length;++d)0!==d&&_[d].value===_[d-1].value||k.push(_[d]);return k}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(i)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=xp,t[1]+=xp),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-xp}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=px.length,a=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(px,this._approxInterval,0,o),o-1);this._interval=px[a][1],this._minLevelUnit=px[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return de(e)?e:+Ri(e)},t.prototype.contain=function(e){return Yy(this.parse(e),this._extent)},t.prototype.normalize=function(e){return qy(this.parse(e),this._extent)},t.prototype.scale=function(e){return Xy(e,this._extent)},t.type="time",t}($y),px=[["second",vp],["minute",mp],["hour",yp],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",_p/2],["year",_p]];function hx(e,t){return(e/=xp)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function dx(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function fx(e){return(e/=yp)>12?12:e>6?6:e>3.5?4:e>2?2:1}function gx(e,t){return(e/=t?mp:vp)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function vx(e){return Vi(e,!0)}function mx(e,t,n){var r=new Date(e);switch(Tp(t)){case"year":case"month":r[Fp(n)](0);case"day":r[Gp(n)](1);case"hour":r[Up(n)](0);case"minute":r[Wp(n)](0);case"second":r[jp(n)](0),r[Hp(n)](0)}return r.getTime()}Ry.registerClass(cx);var yx=cx,xx=Ry.prototype,_x=$y.prototype,bx=Ai,Sx=Math.floor,kx=Math.ceil,Cx=Math.pow,Mx=Math.log,Tx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new $y,t._interval=0,t}return k(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return re(_x.getTicks.call(this,e),(function(e){var t=e.value,i=Ai(Cx(this.base,t));return i=t===n[0]&&this._fixMin?Ix(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?Ix(i,r[1]):i}}),this)},t.prototype.setExtent=function(e,t){var n=this.base;e=Mx(e)/Mx(n),t=Mx(t)/Mx(n),_x.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=xx.getExtent.call(this);t[0]=Cx(e,t[0]),t[1]=Cx(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=Ix(t[0],n[0])),this._fixMax&&(t[1]=Ix(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=Mx(e[0])/Mx(t),e[1]=Mx(e[1])/Mx(t),xx.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r,i=(r=n,Math.pow(10,Bi(r)));for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[Ai(kx(t[0]/i)*i),Ai(Sx(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){_x.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Yy(e=Mx(e)/Mx(this.base),this._extent)},t.prototype.normalize=function(e){return qy(e=Mx(e)/Mx(this.base),this._extent)},t.prototype.scale=function(e){return e=Xy(e,this._extent),Cx(this.base,e)},t.type="log",t}(Ry),Ax=Tx.prototype;function Ix(e,t){return bx(e,Di(t))}Ax.getMinorTicks=_x.getMinorTicks,Ax.getLabel=_x.getLabel,Ry.registerClass(Tx);var Dx=Tx,Ox=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=this._modelMinRaw=t.get("min",!0);ce(i)?this._modelMinNum=Lx(e,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=Lx(e,i));var o=this._modelMaxRaw=t.get("max",!0);if(ce(o)?this._modelMaxNum=Lx(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=Lx(e,o)),r)this._axisDataLen=t.getCategories().length;else{var a=t.get("boundaryGap"),s=ue(a)?a:[a||0,a||0];"boolean"==typeof s[0]||"boolean"==typeof s[1]?("production"!==process.env.NODE_ENV&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[ai(s[0],1),ai(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?r?0:NaN:t-i[0]*o),null==s&&(s=e?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=_e(a)||_e(s)||e&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var p=this._determinedMin,h=this._determinedMax;return null!=p&&(a=p,l=!0),null!=h&&(s=h,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){"production"!==process.env.NODE_ENV&&Me(!this.frozen),this[Nx[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=Ex[e];"production"!==process.env.NODE_ENV&&Me(!this.frozen&&null==this[n]),this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),Ex={min:"_determinedMin",max:"_determinedMax"},Nx={min:"_dataMin",max:"_dataMax"};function Lx(e,t){return null==t?null:_e(t)?NaN:e.parse(t)}function Px(e,t){var n=e.type,r=function(e,t,n){var r=e.rawExtentInfo;return r||(r=new Ox(e,t,n),e.rawExtentInfo=r,r)}(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=ox("bar",a),l=!1;if(ne(s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=ax(s),c=function(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=function(e,t,n){if(e&&t){var r=e[ix(t)];return null!=r&&null!=n?r[rx(n)]:r}}(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;ne(a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;ne(a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,p=c/(1-(s+l)/o)-c;return{min:e-=p*(s/u),max:t+=p*(l/u)}}(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Rx(e,t){var n=t,r=Px(e,n),i=r.extent,o=n.get("splitNumber");e instanceof Dx&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function Bx(e){var t,n,r=e.getLabelModel().get("formatter"),i="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=r,function(t,r){return e.scale.getFormattedLabel(t,r,n)}):pe(r)?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(r):ce(r)?(t=r,function(n,r){return null!=i&&(r=n.value-i),t(Vx(e,n),r,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function Vx(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function zx(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new Qr(e.x,e.y,o,a)}function Fx(e){var t=e.get("interval");return null==t?"auto":t}function Gx(e){return"category"===e.type&&0===Fx(e.getLabelModel())}function Ux(e,t){var n={};return ne(e.mapDimensionsAll(t),(function(t){n[function(e,t){return Ny(e,t)?e.getCalculationInfo("stackResultDimension"):t}(e,t)]=!0})),ae(n)}var Wx=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),jx=[],Hx={registerPreprocessor:Wm,registerProcessor:jm,registerPostInit:function(e){Hm("afterinit",e)},registerPostUpdate:function(e){Hm("afterupdate",e)},registerUpdateLifecycle:Hm,registerAction:Ym,registerCoordinateSystem:function(e,t){ed.register(e,t)},registerLayout:function(e,t){Zm(Lm,e,t,1e3,"layout")},registerVisual:qm,registerTransform:Qm,registerLoading:Jm,registerMap:Km,registerImpl:function(e,t){"production"!==process.env.NODE_ENV&&Jv[e]&&Zi("Already has an implementation of "+e+"."),Jv[e]=t},PRIORITY:em,ComponentModel:gh,ComponentView:tg,SeriesModel:$f,ChartView:pg,registerComponentModel:function(e){gh.registerClass(e)},registerComponentView:function(e){tg.registerClass(e)},registerSeriesModel:function(e){$f.registerClass(e)},registerChartView:function(e){pg.registerClass(e)},registerSubTypeDefaulter:function(e,t){gh.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){var n;n=t,bi[e]=n}};function Yx(e){ue(e)?ne(e,(function(e){Yx(e)})):$(jx,e)>=0||(jx.push(e),ce(e)&&(e={install:e}),e.install(Hx))}function qx(e,t){return Math.abs(e-t)<1e-8}function Xx(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var o=1;o<e.length;o++){var a=e[o];r+=Xa(i[0],i[1],a[0],a[1],t,n),i=a}var s=e[0];return qx(i[0],s[0])&&qx(i[1],s[1])||(r+=Xa(i[0],i[1],s[0],s[1],t,n)),0!==r}var Zx=[];function Jx(e,t){for(var n=0;n<e.length;n++)Xe(e[n],e[n],t)}function Kx(e,t,n,r){for(var i=0;i<e.length;i++){var o=e[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Ze(t,t,o),Je(n,n,o))}}var Qx=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),$x=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},e_=function(e){this.type="linestring",this.points=e},t_=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return k(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,r=0;r<t.length;r++){var i=t[r],o=i.exterior,a=o&&o.length;a>n&&(e=i,n=a)}if(e)return function(e){for(var t=0,n=0,r=0,i=e.length,o=e[i-1][0],a=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],c=o*u-l*a;t+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0];return ne(this.geometries,(function(t){"polygon"===t.type?Kx(t.exterior,n,r,e):ne(t.points,(function(t){Kx(t,n,r,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new Qr(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Xx(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(Xx(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Qr(e,t,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(Jx(c.exterior,s),ne(c.interiors,(function(e){Jx(e,s)}))):ne(c.points,(function(e){Jx(e,s)}))}(i=this._rect).copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Qx),n_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return k(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=Cr(Zx),i=e;i&&!i.isGeoSVGGraphicRoot;)Tr(r,i.getLocalTransform(),r),i=i.parent;return Or(r,r),Xe(n,n,r),n},t}(Qx);function r_(e,t,n){for(var r=0;r<e.length;r++)e[r]=i_(e[r],t[r],n)}function i_(e,t,n){for(var r=[],i=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,o=l+=o,r.push([s/n,l/n])}return r}function o_(e,t){return re(oe((e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;return null==n&&(n=1024),ne(t.features,(function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case"LineString":t.coordinates=i_(i,r,n);break;case"Polygon":case"MultiLineString":r_(i,r,n);break;case"MultiPolygon":ne(i,(function(e,t){return r_(e,r[t],n)}))}})),t.UTF8Encoding=!1,t}(e)).features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new $x(o[0],o.slice(1)));break;case"MultiPolygon":ne(r.coordinates,(function(e){e[0]&&i.push(new $x(e[0],e.slice(1)))}));break;case"LineString":i.push(new e_([r.coordinates]));break;case"MultiLineString":i.push(new e_(r.coordinates))}var a=new t_(n[t||"name"],i,n.cp);return a.properties=n,a}))}var a_=mo();function s_(e){return"category"===e.type?function(e){var t=e.getLabelModel(),n=u_(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=Bx(e);return{labels:re(t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}(e)}function l_(e,t){return"category"===e.type?function(e,t){var n,r,i=c_(e,"ticks"),o=Fx(t),a=p_(i,o);if(a)return a;t.get("show")&&!e.scale.isBlank()||(n=[]);if(ce(o))n=f_(e,o,!0);else if("auto"===o){var s=u_(e,e.getLabelModel());r=s.labelCategoryInterval,n=re(s.labels,(function(e){return e.tickValue}))}else n=d_(e,r=o,!0);return h_(i,o,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:re(e.scale.getTicks(),(function(e){return e.value}))}}function u_(e,t){var n,r,i=c_(e,"labels"),o=Fx(t),a=p_(i,o);return a||(ce(o)?n=f_(e,o):(r="auto"===o?function(e){var t=a_(e).autoInterval;return null!=t?t:a_(e).autoInterval=e.calculateCategoryInterval()}(e):o,n=d_(e,r)),h_(i,o,{labels:n,labelCategoryInterval:r}))}function c_(e,t){return a_(e)[t]||(a_(e)[t]=[])}function p_(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function h_(e,t,n){return e.push({key:t,value:n}),n}function d_(e,t,n){var r=Bx(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var p=Gx(e),h=a.get("showMinLabel")||p,d=a.get("showMaxLabel")||p;h&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return d&&f-l!==o[1]&&g(o[1]),s}function f_(e,t,n){var r=e.scale,i=Bx(e),o=[];return ne(r.getTicks(),(function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})})),o}var g_=[0,1],v_=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return function(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&m_(n=n.slice(),r.count()),Mi(e,g_,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&m_(n=n.slice(),r.count());var i=Mi(e,n,g_,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=re(l_(this,t).ticks,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;ne(t,(function(e){e.coord-=u/2})),a=1+e.scale.getExtent()[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*a},t.push(o)}var c=s[0]>s[1];p(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift());r&&p(s[0],t[0].coord)&&t.unshift({coord:s[0]});p(s[1],o.coord)&&(r?o.coord=s[1]:t.pop());r&&p(o.coord,s[1])&&t.push({coord:s[1]});function p(e,t){return e=Ai(e),t=Ai(t),c?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),re(this.scale.getMinorTicks(e),(function(e){return re(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return s_(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=Bx(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),p=Math.abs(u*Math.sin(r)),h=0,d=0;l<=o[1];l+=s){var f,g,v=ni(n({value:l}),t.font,"center","top");f=1.3*v.width,g=1.3*v.height,h=Math.max(h,f,7),d=Math.max(d,g,7)}var m=h/c,y=d/p;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),_=a_(e.model),b=e.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}(this)},e}();function m_(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var y_=v_;function x_(e,t,n,r,i,o,a,s){var l=i-e,u=o-t,c=n-e,p=r-t,h=Math.sqrt(c*c+p*p),d=(l*(c/=h)+u*(p/=h))/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var f=a[0]=e+d*c,g=a[1]=t+d*p;return Math.sqrt((f-i)*(f-i)+(g-o)*(g-o))}Fa.CMD;var __=new Ur,b_=new Ur,w_=new Ur,S_=new Ur,k_=new Ur,C_=[],M_=new Ur;function T_(e,t){if(t<=180&&t>0){t=t/180*Math.PI,__.fromArray(e[0]),b_.fromArray(e[1]),w_.fromArray(e[2]),Ur.sub(S_,__,b_),Ur.sub(k_,w_,b_);var n=S_.len(),r=k_.len();if(!(n<.001||r<.001)){S_.scale(1/n),k_.scale(1/r);var i=S_.dot(k_);if(Math.cos(t)<i){var o=x_(b_.x,b_.y,w_.x,w_.y,__.x,__.y,C_,!1);M_.fromArray(C_),M_.scaleAndAdd(k_,o/Math.tan(Math.PI-t));var a=w_.x!==b_.x?(M_.x-b_.x)/(w_.x-b_.x):(M_.y-b_.y)/(w_.y-b_.y);if(isNaN(a))return;a<0?Ur.copy(M_,b_):a>1&&Ur.copy(M_,w_),M_.toArray(e[1])}}}}function A_(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,__.fromArray(e[0]),b_.fromArray(e[1]),w_.fromArray(e[2]),Ur.sub(S_,b_,__),Ur.sub(k_,w_,b_);var r=S_.len(),i=k_.len();if(!(r<.001||i<.001))if(S_.scale(1/r),k_.scale(1/i),S_.dot(t)<Math.cos(n)){var o=x_(b_.x,b_.y,w_.x,w_.y,__.x,__.y,C_,!1);M_.fromArray(C_);var a=Math.PI/2,s=a+Math.acos(k_.dot(t))-n;if(s>=a)Ur.copy(M_,w_);else{M_.scaleAndAdd(k_,o/Math.tan(Math.PI/2-s));var l=w_.x!==b_.x?(M_.x-b_.x)/(w_.x-b_.x):(M_.y-b_.y)/(w_.y-b_.y);if(isNaN(l))return;l<0?Ur.copy(M_,b_):l>1&&Ur.copy(M_,w_)}M_.toArray(e[1])}}}function I_(e,t,n,r){var i="normal"===n,o=i?e:e.ensureState(n);o.ignore=t;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):o.style=s}function D_(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=He(r[0],r[1]),o=He(r[1],r[2]);if(!i||!o)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=qe([],r[1],r[0],a/i),l=qe([],r[1],r[2],a/o),u=qe([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function O_(e,t,n,r){return function(e,t,n,r,i,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=0,p=0;p<a;p++){var h=e[p],d=h.rect;(s=d[t]-l)<0&&(d[t]-=s,h.label[t]-=s,u=!0),c+=Math.max(-s,0),l=d[t]+d[n]}c>0&&o&&_(-c/a,0,a);var f,g,v=e[0],m=e[a-1];return y(),f<0&&b(-f,.8),g<0&&b(g,.8),y(),x(f,g,1),x(g,f,-1),y(),f<0&&w(-f),g<0&&w(g),u}function y(){f=v.rect[t]-r,g=i-m.rect[t]-m.rect[n]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){_(r*n,0,a);var i=r+e;i<0&&b(-i*n,1)}else b(-e*n,1)}}function _(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=e[o];a.rect[t]+=n,a.label[t]+=n}}function b(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);o.push(c),s+=c}if(s){var p=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++)_(o[l]*p,0,l+1);else for(l=a-1;l>0;l--)_(-o[l-1]*p,l,a)}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?_(n,0,r+1):_(-n,a-r-1,a),(e-=n)<=0)return}}(e,"y","height",t,n,r)}var E_=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function N_(e,t){return n=Object.create(null),E_.forEach((function(r){n[r]=function(n){return function(){if(e.value||t(),!e.value)throw new Error("ECharts is not initialized yet.");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.value[n].apply(e.value,i)}}(r)})),n;var n}function L_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P_={exports:{}},R_={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}(R_);var B_={exports:{}};!function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports}(B_);var V_={exports:{}},z_={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(z_),function(e){var t=z_.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(V_);var F_={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(F_),function(e){var t=R_.exports,n=B_.exports,r=V_.exports,i=F_.exports;e.exports=function(e,o){return t(e)||n(e,o)||r(e,o)||i()},e.exports.__esModule=!0,e.exports.default=e.exports}(P_);var G_=L_(P_.exports);var U_={autoresize:Boolean};var W_={loading:Boolean,loadingOptions:Object};function j_(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}j_("x-vue-echarts{display:block;height:100%;width:100%}");var H_=/^on[^a-z]/,Y_=function(e){return H_.test(e)};var q_=t.defineComponent({name:"echarts",props:Object.assign(Object.assign({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},U_),W_),inheritAttrs:!1,setup:function(e,r){var i=r.attrs,o=r.listeners,a=t.shallowRef(),s=t.shallowRef(),l=t.shallowRef(),u=t.inject("ecTheme",null),c=t.inject("ecInitOptions",null),p=t.inject("ecUpdateOptions",null),h=t.toRefs(e),d=h.autoresize,f=h.manualUpdate,g=h.loading,v=h.loadingOptions,m=t.computed((function(){return l.value||e.option||Object.create(null)})),y=t.computed((function(){return e.theme||t.unref(u)||{}})),x=t.computed((function(){return e.initOptions||t.unref(c)||{}})),_=t.computed((function(){return e.updateOptions||t.unref(p)||{}})),b=t.computed((function(){return function(e){var t={};for(var n in e)Y_(n)||(t[n]=e[n]);return t}(i)}));function w(n){if(!s.value&&a.value){var r=s.value=Gm(a.value,y.value,x.value);e.group&&(r.group=e.group);var l=o;l||(l={},Object.keys(i).filter((function(e){return 0===e.indexOf("on")&&e.length>2})).forEach((function(e){var t=e.charAt(2).toLowerCase()+e.slice(3);l[t]=i[e]}))),Object.keys(l).forEach((function(e){var t=l[e];t&&(0===e.indexOf("zr:")?r.getZr().on(e.slice(3).toLowerCase(),t):r.on(e.toLowerCase(),t))})),d.value?t.nextTick((function(){!function(){if(r&&!r.isDisposed())try{r.resize()}catch(e){if("Cannot read property 'get' of undefined"===e.message)return;throw e}}(),u()})):u()}function u(){r.setOption(n||m.value,_.value)}}function S(){s.value&&(s.value.dispose(),s.value=void 0)}var k=null;t.watch(f,(function(n){"function"==typeof k&&(k(),k=null),n||(k=t.watch((function(){return e.option}),(function(e){e&&(s.value?s.value.setOption(e,_.value):w())}),{deep:!0}))}),{immediate:!0}),t.watch([y,x],(function(){S(),w()}),{deep:!0}),t.watchEffect((function(){e.group&&s.value&&(s.value.group=e.group)}));var C=N_(s,w);return function(e,n,r){var i=t.inject("ecLoadingOptions",{}),o=t.computed((function(){return Object.assign(Object.assign({},t.unref(i)),null==r?void 0:r.value)}));t.watchEffect((function(){var t=e.value;t&&(n.value?t.showLoading(o.value):t.hideLoading())}))}(s,g,v),function(e,r,i){var o=null;t.watch([i,e,r],(function(e,t,r){var i=G_(e,3),a=i[0],s=i[1],l=i[2];a&&s&&l&&(o=gg((function(){s.resize()}),100),n.addListener(a,o)),r((function(){o&&a&&n.removeListener(a,o)}))}))}(s,d,a),t.onMounted((function(){e.option&&w()})),t.onUnmounted(S),Object.assign({chart:s,root:a,setOption:function(t,n){e.manualUpdate&&(l.value=t),s.value?s.value.setOption(t,n||{}):w(t)},nonEventAttrs:b},C)},render:function(){var e=Object.assign({},this.nonEventAttrs);return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h("x-vue-echarts",e)}});function X_(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Z_(e){return e<=1?"".concat(100*Number(e),"%"):e}function J_(e){return 1===e.length?"0"+e:String(e)}function K_(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Q_(e){return $_(e)/255}function $_(e){return parseInt(e,16)}var eb={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function tb(e){var t,n,r,i={r:0,g:0,b:0},o=1,a=null,s=null,l=null,u=!1,c=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(eb[e])e=eb[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ob.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ob.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ob.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=ob.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ob.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=ob.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ob.hex8.exec(e))return{r:$_(n[1]),g:$_(n[2]),b:$_(n[3]),a:Q_(n[4]),format:t?"name":"hex8"};if(n=ob.hex6.exec(e))return{r:$_(n[1]),g:$_(n[2]),b:$_(n[3]),format:t?"name":"hex"};if(n=ob.hex4.exec(e))return{r:$_(n[1]+n[1]),g:$_(n[2]+n[2]),b:$_(n[3]+n[3]),a:Q_(n[4]+n[4]),format:t?"name":"hex8"};if(n=ob.hex3.exec(e))return{r:$_(n[1]+n[1]),g:$_(n[2]+n[2]),b:$_(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(ab(e.r)&&ab(e.g)&&ab(e.b)?(t=e.r,n=e.g,r=e.b,i={r:255*X_(t,255),g:255*X_(n,255),b:255*X_(r,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):ab(e.h)&&ab(e.s)&&ab(e.v)?(a=Z_(e.s),s=Z_(e.v),i=function(e,t,n){e=6*X_(e,360),t=X_(t,100),n=X_(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,a,s),u=!0,c="hsv"):ab(e.h)&&ab(e.s)&&ab(e.l)&&(a=Z_(e.s),l=Z_(e.l),i=function(e,t,n){var r,i,o;if(e=X_(e,360),t=X_(t,100),n=X_(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=K_(s,a,e+1/3),i=K_(s,a,e),o=K_(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,a,l),u=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(o),{ok:u,format:e.format||c,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o}}var nb="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),rb="[\\s|\\(]+(".concat(nb,")[,|\\s]+(").concat(nb,")[,|\\s]+(").concat(nb,")\\s*\\)?"),ib="[\\s|\\(]+(".concat(nb,")[,|\\s]+(").concat(nb,")[,|\\s]+(").concat(nb,")[,|\\s]+(").concat(nb,")\\s*\\)?"),ob={CSS_UNIT:new RegExp(nb),rgb:new RegExp("rgb"+rb),rgba:new RegExp("rgba"+ib),hsl:new RegExp("hsl"+rb),hsla:new RegExp("hsla"+ib),hsv:new RegExp("hsv"+rb),hsva:new RegExp("hsva"+ib),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ab(e){return Boolean(ob.CSS_UNIT.exec(String(e)))}var sb=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function lb(e){var t=function(e,t,n){e=X_(e,255),t=X_(t,255),n=X_(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,v:a}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function ub(e){var t=e.r,n=e.g,r=e.b;return"#".concat(function(e,t,n,r){var i=[J_(Math.round(e).toString(16)),J_(Math.round(t).toString(16)),J_(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}(t,n,r,!1))}function cb(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function pb(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function hb(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function db(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function fb(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=tb(e),i=5;i>0;i-=1){var o=lb(r),a=ub(tb({h:pb(o,i,!0),s:hb(o,i,!0),v:db(o,i,!0)}));n.push(a)}n.push(ub(r));for(var s=1;s<=4;s+=1){var l=lb(r),u=ub(tb({h:pb(l,s),s:hb(l,s),v:db(l,s)}));n.push(u)}return"dark"===t.theme?sb.map((function(e){var r=e.index,i=e.opacity;return ub(cb(tb(t.backgroundColor||"#141414"),tb(n[r]),100*i))})):n}var gb={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},vb={},mb={};Object.keys(gb).forEach((function(e){vb[e]=fb(gb[e]),vb[e].primary=vb[e][5],mb[e]=fb(gb[e],{theme:"dark",backgroundColor:"#141414"}),mb[e].primary=mb[e][5]})),vb.red,vb.volcano,vb.gold,vb.orange,vb.yellow,vb.lime,vb.green,vb.cyan,vb.blue,vb.geekblue,vb.purple,vb.magenta,vb.grey;var yb=[],xb=[];function _b(e,t){if(t=t||{},void 0===e)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var n,r=!0===t.prepend?"prepend":"append",i=void 0!==t.container?t.container:document.querySelector("head"),o=yb.indexOf(i);return-1===o&&(o=yb.push(i)-1,xb[o]={}),void 0!==xb[o]&&void 0!==xb[o][r]?n=xb[o][r]:(n=xb[o][r]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===r?i.insertBefore(n,i.childNodes[0]):i.appendChild(n)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),n.styleSheet?n.styleSheet.cssText+=e:n.textContent+=e,n}function bb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wb(e,t,n[t])}))}return e}function wb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sb(e,t){!function(e,t){"production"===process.env.NODE_ENV||e||void 0===console||console.error("Warning: ".concat(t))}(e,"[@ant-design/icons-vue] ".concat(t))}function kb(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function Cb(e,n,r){return r?t.h(e.tag,bb({key:n},r,e.attrs),(e.children||[]).map((function(t,r){return Cb(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.h(e.tag,bb({key:n},e.attrs),(e.children||[]).map((function(t,r){return Cb(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function Mb(e){return fb(e)[0]}function Tb(e){return e?Array.isArray(e)?e:[e]:[]}var Ab="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",Ib=!1,Db=["icon","primaryColor","secondaryColor"];function Ob(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Eb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Nb(e,t,n[t])}))}return e}function Nb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lb={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Pb=function(e,n){var r=Eb({},e,n.attrs),i=r.icon,o=r.primaryColor,a=r.secondaryColor,s=Ob(r,Db),l=Lb;if(o&&(l={primaryColor:o,secondaryColor:a||Mb(o)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ab;t.nextTick((function(){Ib||("undefined"!=typeof window&&window.document&&window.document.documentElement&&_b(e,{prepend:!0}),Ib=!0)}))}(),Sb(kb(i),"icon should be icon definiton, but got ".concat(i)),!kb(i))return null;var u=i;return u&&"function"==typeof u.icon&&(u=Eb({},u,{icon:u.icon(l.primaryColor,l.secondaryColor)})),Cb(u.icon,"svg-".concat(u.name),Eb({},s,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Pb.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Pb.inheritAttrs=!1,Pb.displayName="IconBase",Pb.getTwoToneColors=function(){return Eb({},Lb)},Pb.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Lb.primaryColor=t,Lb.secondaryColor=n||Mb(t),Lb.calculated=!!n};var Rb=Pb;function Bb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zb(e){var t=Bb(Tb(e),2),n=t[0],r=t[1];return Rb.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Fb=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Gb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ub(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ub(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ub(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jb(e,t,n[t])}))}return e}function jb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hb(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}zb("#1890ff");var Yb=function(e,n){var r,i=Wb({},e,n.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,p=i.onClick,h=Hb(i,Fb),d=(jb(r={anticon:!0},"anticon-".concat(a.name),Boolean(a.name)),jb(r,o,o),r),f=""===s||s||"loading"===a.name?"anticon-spin":"",g=u;void 0===g&&p&&(g=-1,h.tabindex=g);var v=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,m=Gb(Tb(c),2),y=m[0],x=m[1];return t.createVNode("span",Wb({role:"img","aria-label":a.name},h,{onClick:p,class:d}),[t.createVNode(Rb,{class:f,icon:a,primaryColor:y,secondaryColor:x,style:v},null)])};Yb.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Yb.displayName="AntdIcon",Yb.inheritAttrs=!1,Yb.getTwoToneColor=function(){var e=Rb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Yb.setTwoToneColor=zb;var qb=Yb,Xb={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function Zb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Jb(e,t,n[t])}))}return e}function Jb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kb=function(e,n){var r=Zb({},e,n.attrs);return t.createVNode(qb,Zb({},r,{icon:Xb}),null)};Kb.displayName="LoadingOutlined",Kb.inheritAttrs=!1;var Qb=Kb,$b=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:r.Spin},setup:function(){return{indicator:t.h(Qb,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),ew={class:"spin-wrapper"};j_(".spin-wrapper{height:100%;position:relative;width:100%}.spin{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}"),$b.render=function(e,n,r,i,o,a){var s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",ew,[e.spinning?(t.openBlock(),t.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])},$b.__file="src/common/spin/Spin.vue";var tw=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:r.Skeleton}});tw.render=function(e,n,r,i,o,a){var s=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(s,{active:"",loading:e.loading},{default:t.withCtx((function(){return[t.renderSlot(e.$slots,"default")]})),_:3},8,["loading"])},tw.__file="src/common/skeleton/Skeleton.vue";var nw={exports:{}},rw={exports:{}};!function(e){var t=z_.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(rw);var iw={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(iw);var ow={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(ow),function(e){var t=rw.exports,n=iw.exports,r=V_.exports,i=ow.exports;e.exports=function(e){return t(e)||n(e)||r(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports}(nw);var aw=L_(nw.exports);"production"===process.env.NODE_ENV||Object.freeze({}),"production"===process.env.NODE_ENV||Object.freeze([]);var sw=function(e,t){if(e.install=function(n){for(var r=0,i=[e].concat(aw(Object.values(null!=t?t:{})));r<i.length;r++){var o=i[r];n.component(o.name,o)}},t)for(var n=0,r=Object.entries(t);n<r.length;n++){var i=G_(r[n],2),o=i[0],a=i[1];e[o]=a}return e},lw={exports:{}};!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=function(e,t,n){var r=p;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?f:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",h="suspendedYield",d="executing",f="completed",g={};function v(){}function m(){}function y(){}var x={};l(x,o,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(I([])));b&&b!==n&&r.call(b,o)&&(x=b);var w=y.prototype=v.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function I(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:D}}function D(){return{value:t,done:!0}}return m.prototype=y,l(w,"constructor",y),l(y,"constructor",m),m.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},S(k.prototype),l(k.prototype,a,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(w),l(w,s,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(lw);var uw,cw,pw=lw.exports,hw={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:"",value:{id:"",prop:""}}],events:[],dataType:"static"},dw=function(e){return o.mapValues(e,(function(e){return null==e?{}:{type:e.constructor,default:e}}))},fw={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},gw=dw(fw),vw=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","textShadow","justifyContent","alignItems"],mw=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=o.without.apply(void 0,[vw].concat(aw(n)));return t.computed((function(){return o.pick(e,r)}))},yw="EVENT_BUS",xw="GLOBAL_CONFIG",_w="GLOBAL_MODEL",bw="REQUEST_MODEL",ww=(null===(uw=null===window||void 0===window?void 0:window.config)||void 0===uw?void 0:uw.uploadPath)||"/api",Sw=(null===(cw=null===window||void 0===window?void 0:window.config)||void 0===cw?void 0:cw.baseUrl)||"./",kw=function(e,n){t.watch((function(){return e.id}),(function(e,r){var i=t.inject(yw,{onEvent:function(e,t){},offEvent:function(e){}});null!=r&&""!==r&&i.offEvent(r),null!=e&&""!==e&&i.onEvent(e,n)}),{immediate:!0})},Cw=function(e){var n=t.inject(yw,{emitEvent:function(e,t){}});return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return function(){if(r.call.apply(r,[this].concat(Array.prototype.slice.call(arguments))),n){var i=n.emitEvent;e.forEach((function(e){if(t===e.on)try{i(e.target,e.emit)}catch(e){console.error(e)}}))}}}};function Mw(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Tw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tw(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Tw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Aw=function(e,t){var n=t||{},r=n.name,i=void 0===r?"name":r,o=n.value,a=void 0===o?"value":o,s=n.type,l=void 0===s?"type":s;i=null==i?void 0:i.trim(),a=null==a?void 0:a.trim(),l=null==l?void 0:l.trim();for(var u=new Set,c=new Map,p=e.length,h=0;h<p;h++){var d=e[h],f=d[i]||"",g=d[a]||"",v=d[l]||"";if(u.add(f),c.has(v)){var m=c.get(v);m.push(Object.assign({name:f,value:g},d)),c.set(v,m)}else c.set(v,[Object.assign({name:f,value:g},d)])}var y,x=Array.from(u),_=[],b=Mw(c);try{for(b.s();!(y=b.n()).done;){var w=G_(y.value,2),S=w[0],k=w[1];_.push({name:S,data:k})}}catch(e){b.e(e)}finally{b.f()}return{dimensions:x,dataset:_}},Iw={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Iw);var Dw=L_(Iw.exports),Ow=function(e){return e.replace(/\\n/g,"\n")},Ew=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=parseFloat(e+"");return isNaN(n)||n<0?e:n.toFixed(t).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Nw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=e+"";if(n.includes("%"))return e;var r=parseFloat(n);return isNaN(r)?e:"".concat((100*r).toFixed(t),"%")},Lw=function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLocaleLowerCase().includes(t.toLocaleLowerCase())},Pw=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=e.requestUrl,i=e.requestMethod,o=e.requestHeaders,a=e.requestParams,s=e.requestInterval,l=e.isOpenRequestTimer,u=t.inject(xw,{contextRequestUrl:"",pageMode:"normal"}),c=u.contextRequestUrl,p=u.pageMode,h=t.inject(_w,{getGlobalModel:function(e){}}),d=h.getGlobalModel,f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return C(void 0,void 0,void 0,pw.mark((function s(){var l,u,h,f,g,v;return pw.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(r&&i&&o&&"design"!==t.unref(p)){s.next=2;break}return s.abrupt("return");case 2:return l={},a.forEach((function(e){var n=e.key,r=e.value;if("object"===Dw(r)&&r.id){var i=d(r.id)||{},o=r.prop,a=r.propKey,s=null!=i[o]?i[o]:{},u=["date","range"].some((function(e){return Lw(null==i?void 0:i.type,e)}));null==a||""===a||u||(s=i[o][a]);var c=t.unref(s);u&&null!=a&&""!==a&&(c=(null==c?void 0:c.format((null==a?void 0:a.trim())||i.format))||""),l[n]=c}else"string"==typeof r&&(l[n]=r)})),l=Object.assign(Object.assign({},l),e),u="",h=Object.keys(l),f=h.length-1,h.forEach((function(e,t){switch(t){case 0:u+="?".concat(e,"=").concat(l[e],"&");break;case f:u+="".concat(e,"=").concat(l[e]);break;default:u+="".concat(e,"=").concat(l[e],"&")}})),s.prev=9,g=["get","head"].includes(i),s.next=13,y.default({baseURL:t.unref(c),url:g?r+u:r,method:i,headers:o,data:g?{}:l});case 13:return v=s.sent,n(v),s.abrupt("return",v);case 18:s.prev=18,s.t0=s.catch(9),console.error(s.t0);case 21:case"end":return s.stop()}}),s,null,[[9,18]])})))},g=l&&setInterval(f,1e3*s);return t.onUnmounted((function(){clearInterval(g)})),f};function Rw(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Bw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bw(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Bw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Vw=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t||{},r=n.name,i=void 0===r?"name":r,o=n.types,a=void 0===o?[]:o;i=(null==i?void 0:i.trim())||i;var s=new Set,l=new Map,u=e.length,c=a.length;if(1===u){for(var p=[],h=0;h<c;h++){var d=a[h],f=d.label,g=d.value,v=e[0][g];s.add(f),p.push(v)}var m=e[0][i]||"";l.set(m,p)}else for(var y=0;y<u;y++){var x=e[y],_=x[i];s.add(_);for(var b=0;b<c;b++){var w=a[b],S=w.label,k=w.value,C=x[k];if(l.has(S)){var M=l.get(S);M.push(C),l.set(S,M)}else l.set(S,[C])}}var T,A=Array.from(s),I=[],D=Rw(l);try{for(D.s();!(T=D.n()).done;){var O=G_(T.value,2),E=O[0],N=O[1];I.push({name:E,data:N})}}catch(e){D.e(e)}finally{D.f()}return{dimensions:A,dataset:I}},zw=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return e;var n="";return n=(null==e?void 0:e.includes("://"))?e:ww+e,t&&(n="url(".concat(n,")")),n},Fw=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null!==(t=window.config)&&void 0!==t?t:{};n=Object.assign(Object.assign({},r),n);var i=e.match(/\{.*?\}/g);if(null==i||0===i.length)return e;for(var o=0;o<i.length;o++){var a=i[o],s=a.slice(1,a.length-1),l=n[s];e=null!=l?e.replace(a,l):e.replace(a,"")}return e},Gw=y.default.create({});Gw.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(e)})),Gw.interceptors.response.use((function(e){var t,n,i;return 500==+(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.code)&&r.message.error({content:(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.msg)||(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.message)||"服务器异常",key:"SERVER_ERROR"}),e}),(function(e){if(e.message.includes("timeout"))r.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{var t=e.response.status;t>=400&&t<500&&r.message.error({content:"请求异常",key:"REQUEST_ERROR"}),t>=500&&r.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)}));var Uw=function(e){var n=e.type,r=e.graphicConfig,i=t.inject(_w,{getGlobalModel:function(e){}}).getGlobalModel;function o(e){var t=[];return e.leftAxisList.forEach((function(n){var r=!1;e.leftAxis.includes(n.name)&&(r=!0);var i={label:n.name,columnName:n.label,aggregate:n.calcValue?n.calcValue:"SUM",order:null,location:"LEFT",show:r};"INDICATOR_LIB"===e.source&&(i.hrpIndexCode=n.indexCode),i=a(n,i),t.push(i)})),e.rightAxisList.forEach((function(n){var r=!1;e.rightAxis.includes(n.name)&&(r=!0);var i={label:n.name,columnName:n.label,aggregate:"SUM",order:null,location:"LEFT",show:r};i=a(n,i),"INDICATOR_LIB"===e.source&&(i.hrpIndexCode=n.indexCode),t.push(i)})),t}function a(e,t){var n=Object.assign({},t);return e.calcMethod?"FORMULA"===e.calcMethod?(e.formulafuc&&(n.formula=e.formulafuc),n.calcType="FORMULA"):(n.builtInFormula=e.calculmethod,n.calcType="BUILT_IN",e.comeFrom&&(n.builtInValueSource=e.comeFrom),e.accessPrinciple&&(n.builtInCalcWay=e.accessPrinciple)):n.calcType="COLUMN",n}function s(e){for(var t=[],n=e.relativeList,r=0;r<n.length;r++){var o={alias:n[r].keyName,fieldName:n[r].searchName,rule:n[r].searchType||"NONE",fieldValue:"",valueType:"",variateName:n[r].variateName},a=i(n[r].id)||{};"the_date"===n[r].searchName?o.valueType="DATE":["hbdwbh","hbdwbh_name"].includes(n[r].searchName)&&(o.valueType="TEXT"),"ecanDatePicker"===a.type&&(o.dateFormat=a.format,o.fieldValue=a.value.value.format(a.format)),t.push(o)}return t}function l(e,t){var n=t.find((function(t){return t.name===e.label}));n.sort.type&&("CUSTOM"!==n.sort.type?e.sort={label:n.sort.label,columnName:n.sort.columnName,type:"NORMAL",order:n.sort.type}:e.sort={label:n.label,columnName:n.columnName,type:"CUSTOM",customOrderColumns:n.sort.customOrderColumns}),n.customGroup&&n.customGroup.groupList.length>1&&(e.customGroup={groupInfoMap:{},otherGroupName:""},n.customGroup.groupList.forEach((function(t,n){0!==n&&(e.customGroup.groupInfoMap[t.key]=t.value)})),e.customGroup.otherGroupName=n.customGroup.otherName||""),e.rangeIndexTypeGuid=n.typeGuid,e.customFilterSqlPart=n.filterSql||""}function u(e,t){for(var n=0;n<e.children.length;n++)if(e.children[n].children.length>0){var r="";r="and"===e.type?"&&":"||",t.push({conditions:[],join:r}),u(e.children[n],t[t.length-1].conditions)}else if(e.children[n].fieldName){var i="",o={fieldName:e.children[n].fieldName,fieldType:e.children[n].itemType,rule:e.children[n].rule,fieldValue:"",label:e.children[n].label,version:e.children[n].version?e.children[n].version:100,targetSource:e.children[n].targetSource?e.children[n].targetSource:""};if(i=JSON.parse(JSON.stringify(e.children[n].fieldValue)),"DATE"===e.children[n].itemType)o.dateFormat=e.children[n].format,o.dateCalcTypes=e.children[n].dateCalcTypes,o.calcWays=e.children[n].calcWays,"time"===e.children[n].selectType?e.children[n].absoluteBool&&(i="#######",o.calcWays=e.children[n].calcWays):"component"===e.children[n].selectType&&(i="${"+e.children[n].relateCompent+"}"),o.dateFormat=e.children[n].format,o.dateCalcTypes=e.children[n].dateCalcTypes,o.calcWays=e.children[n].calcWays;else if("[object Array]"===Object.prototype.toString.call(i)){for(var a=[],s=0;s<i.length;s++)"全选"!==i[s]&&a.push(i[s]);i=a.join(",")}o.fieldValue=i,e.children.length>1&&n!==e.children.length-1&&("and"===e.type?o.join="&&":o.join="||"),t.push(o)}}function c(e,t,n){if(e){var r=n[t].find((function(t){return t.name===e.label}));if(r){var i=[],o=r.filterList;if(o)for(var a=0;a<o.length;a++)o[a].children.length>0&&u(o[a],i);return i}}}return function(){return C(this,void 0,void 0,pw.mark((function e(){var t,i,a,u,p,h,d,f,g,v,m,y,x;return pw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r||(r={classify:[],classifyList:[],series:[],seriesList:[],leftAxis:[],leftAxisList:[],rightAxis:[],rightAxisList:[],relativeList:[]}),t=r.classify,0!==[].concat(aw(r.leftAxis),aw(r.rightAxis)).length){e.next=5;break}return e.abrupt("return");case 5:for(i=o(r),r.series.length>0&&(u=r.seriesList.find((function(e){return e.name===r.series[0]||e.nameBak===r.series[0]})),a={label:u.name,columnName:u.label}),t.length>0&&(p={label:t[0],columnName:t[0]},h=r.classifyList.find((function(e){return e.name===t[0]||e.nameBak===t[0]}))||{},p.columnName=h.label,l(p,r.classifyList),p.conditions=c(p,"classifyList",r)||[]),a&&(l(a,r.seriesList),a.conditions=c(a,"seriesList",r)||[]),d=0;d<i.length;d++)"RIGHT"===i[d].location?i[d].conditions=c(i[d],"rightAxisList",r):i[d].conditions=c(i[d],"leftAxisList",r);return f=s(r),g="SQL_VIEW",v="",m="",y="","INDICATOR_LIB"===r.source&&(g="INDICATOR_LIB",v=r.fixedDimSql,m=r.dataSourceId,y=r.idxLibMode),x={ecanBar:"bar"},e.prev=17,e.abrupt("return",Gw.post("".concat("http://59.56.182.79:9192/api/","/diagram"),{dataViewId:r.dataViewId,plugin:"1",layer:"2",chartType:x[n],classification:p,classifications:undefined,indicatorList:i,series:a,sqlConditions:f,source:g,fixedDimSql:v,dataSourceId:m,idxLibMode:y},{headers:{Authentication:window.TEST_TOKEN}}));case 21:e.prev=21,e.t0=e.catch(17),console.error(e.t0);case 24:case"end":return e.stop()}}),e,null,[[17,21]])})))}},Ww=t.defineComponent({name:"EcanPageConfig",props:Object.assign({},gw),setup:function(e){var n,r=this,i=t.computed((function(){return{width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:zw(e.backgroundImage,!0),backgroundSize:e.backgroundSize}})),a=t.ref(0),s=t.ref(0),l=t.ref(0),u=t.ref(0),c=t.ref(!1),p=t.ref(),h=function(){return new Promise((function(n){t.nextTick((function(){e.width&&e.height?(a.value=parseFloat(e.width),s.value=parseFloat(e.height)):(a.value=p.value.clientWidth,s.value=p.value.clientHeight),l.value&&u.value||(l.value=window.screen.width,u.value=window.screen.height),n()}))}))},d=function(){var e=document.body.clientWidth,t=document.body.clientHeight,n=e/(a.value||l.value),r=t/(s.value||u.value);p.value&&(p.value.style.transform="scale(".concat(n,", ").concat(r,")"))},f=function(){return C(r,void 0,void 0,pw.mark((function e(){return pw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:d();case 3:case"end":return e.stop()}}),e)})))};return t.onMounted((function(){return C(r,void 0,void 0,pw.mark((function e(){return pw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.value=!1,e.next=3,h();case 3:a.value&&s.value?(p.value.style.width="".concat(a.value,"px"),p.value.style.height="".concat(s.value,"px")):(p.value.style.width="".concat(l.value,"px"),p.value.style.height="".concat(u.value,"px")),d(),window.addEventListener("resize",o.debounce(f,100)),t=void 0,t=window.MutationObserver,(n=new t(f)).observe(p.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),c.value=!0;case 8:case"end":return e.stop()}var t}),e)})))})),t.onUnmounted((function(){window.removeEventListener("resize",f),n&&(n.disconnect(),n.takeRecords(),n=null)})),{style:i,container:p,ready:c}}}),jw={id:"container",ref:"container"};j_("#container[data-v-f2b96d90]{left:0;overflow:hidden;position:fixed;top:0;transform-origin:left top;z-index:999}.page-config[data-v-f2b96d90]{background-size:cover;overflow:hidden;position:relative}"),Ww.render=function(e,n,r,i,o,a){return t.openBlock(),t.createElementBlock("div",jw,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("v-if",!0)],512)},Ww.__scopeId="data-v-f2b96d90",Ww.__file="src/setting/page-config/PageConfig.vue";var Hw=sw(Ww),Yw={contextRequestUrl:"",pageMode:"normal",theme:"light"},qw=dw(Yw),Xw=t.defineComponent({name:"EcanProviderConfig",props:Object.assign({},qw),setup:function(e,n){var r=this,i=n.expose,o=t.ref(),a=function(){o.value.setAttribute("datav-theme",e.theme)};t.watch((function(){return e.theme}),(function(){a()})),t.onMounted((function(){a()}));var s=t.computed((function(){return Fw(e.contextRequestUrl)})),l=t.computed((function(){return e.pageMode})),u=t.computed((function(){return e.theme}));t.provide(xw,{contextRequestUrl:s,pageMode:l,theme:u});var c=new Map;t.provide(_w,{getGlobalModel:function(e){return c.get(e)},setGlobalModel:function(e,t){c.set(e,t)}});var p=x.default();t.provide(yw,{onEvent:function(e,n){p.on(e,(function(e){return"[object Function]"===Object.prototype.toString.call(n[e])&&n[e]()})),t.onUnmounted((function(){p.off(e)}))},offEvent:function(e){p.off(e)},emitEvent:function(e,t){p.emit(e,t)}});var h=new Map,d=function(e){return new Promise((function(t,n){var r=e.map((function(e){return e()}));Promise.all(r).then((function(e){t(e)})).catch((function(e){n(e)}))}))},f=function(){return C(r,void 0,void 0,pw.mark((function e(){var t,n,r,i;return pw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=Array.from(h)).sort((function(e,t){return t[0]-e[0]})),n=t.length,e.prev=3,r=0;case 5:if(!(r<n)){e.next=12;break}return i=t[r][1],e.next=9,d(i);case 9:r++,e.next=5;break;case 12:h.clear(),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),console.error(e.t0);case 18:case"end":return e.stop()}}),e,null,[[3,15]])})))};return t.provide(bw,{setRequest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(h.has(t)){var n=h.get(t);null==n||n.push(e)}else h.set(t,[e])},touchRequest:f}),i({touchRequest:f}),{providerConfig:o}}}),Zw={id:"ProviderConfig",ref:"providerConfig"};Xw.render=function(e,n,r,i,o,a){return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(" 请勿去除属性id "),t.createElementVNode("div",Zw,[t.renderSlot(e.$slots,"default")],512)],2112)},Xw.__file="src/setting/provider-config/ProviderConfig.vue";var Jw=sw(Xw),Kw=Object.assign(Object.assign({},hw),{name:"基础文本",type:"ecanText",width:"100px",height:"40px",text:"文字",color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",data:{}}),Qw=dw(Kw),$w=["refreshData","click"],eS=t.defineComponent({name:"EcanText",components:{Skeleton:tw},props:Object.assign({},Qw),setup:function(e){var n=this,r=mw(e),i=t.ref(e.data),o=t.computed((function(){var n=e.text,r=t.unref(i),o=n.match(/\{.*?\}/g);if(null==o||0===o.length)return n;for(var a=0;a<o.length;a++){var s=o[a],l=s.slice(1,s.length-1),u=null!=r[l]?r[l]:"0";n=null!=u?n.replace(s,'<span style="color:'.concat(e.variableColor,";font-size:").concat(e.variableFontSize,'">').concat(u,"</span>")):n.replace(s,"")}return"<span>".concat(n,"</span>")})),a=t.inject(xw,{pageMode:"normal"}).pageMode,s=Pw(e),l=t.ref(!1),u=function(){return C(n,void 0,void 0,pw.mark((function e(){var n,r;return pw.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("design"!==t.unref(a)){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,l.value=!0,e.next=6,s();case 6:r=e.sent,i.value=(null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.data)||{},e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),console.error(e.t0);case 13:return e.prev=13,l.value=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})))},c=function(){u()};kw(e,{refreshData:c}),(0,t.inject(bw,{setRequest:function(e,t){}}).setRequest)(u,e.requestSort),kw(e,{refreshData:c});var p=Cw(e.events)("click",(function(){}));return{style:r,myText:o,loading:l,click:p}}}),tS=["innerHTML"];j_(".skeleton-wrapper[data-v-41a337b4]{overflow:hidden}.ecan-text[data-v-41a337b4]{display:flex;overflow:hidden}"),eS.render=function(e,n,r,i,o,a){var s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-text",style:t.normalizeStyle(e.style),innerHTML:e.myText,onClick:n[0]||(n[0]=function(){return e.click&&e.click.apply(e,arguments)})},null,12,tS))},eS.__scopeId="data-v-41a337b4",eS.__file="src/text/text/Text.vue";var nS=sw(eS),rS=t.defineComponent({name:"EcanScrollText",setup:function(){return{text:t.ref("基础文本")}}}),iS={class:"red"};j_(".red[data-v-0cbdffb5]{color:red}"),rS.render=function(e,n,r,i,o,a){return t.openBlock(),t.createElementBlock("div",iS,t.toDisplayString(e.text),1)},rS.__scopeId="data-v-0cbdffb5",rS.__file="src/text/scroll-text/ScrollText.vue";var oS=sw(rS),aS=Object.assign(Object.assign({},hw),{name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",textAlign:"center",fontFamily:"",fontWeight:400,textShadow:"",verticalAlign:"middle"}),sS=dw(aS),lS=t.defineComponent({name:"EcanTimeDisplay",props:Object.assign({},sS),setup:function(e){var n=mw(e),r=t.ref(_.default().format(e.format)),i=null,o=function(){clearInterval(i),i=null};return t.onMounted((function(){i&&o(),i=setInterval((function(){r.value=_.default().add(1,"s").format(e.format)}),1e3)})),t.onUnmounted((function(){o()})),{style:n,time:r}}});j_(".time-display[data-v-6cb314e1]{display:table-cell;overflow:hidden}"),lS.render=function(e,n,r,i,o,a){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)},lS.__scopeId="data-v-6cb314e1",lS.__file="src/text/time-display/TimeDisplay.vue";var uS=sw(lS),cS=Object.assign(Object.assign({},hw),{type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]}),pS=dw(cS),hS=["refreshData","click"],dS=t.defineComponent({name:"EcanList",components:{Skeleton:tw},props:Object.assign({},pS),setup:function(e){var n=this,r=t.ref(e.data),i=mw(e,["backgroundColor"]),o=t.computed((function(){return e.useRanking?{textAlign:"center"}:{textAlign:"left"}})),a=Pw(e),s=t.inject(xw,{pageMode:"normal"}).pageMode,l=t.ref(!1),u=function(){return C(n,void 0,void 0,pw.mark((function n(){var i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(s)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,l.value=!0,n.next=6,a();case 6:o=n.sent,r.value=(null===(i=null==o?void 0:o.data)||void 0===i?void 0:i.data.rows)||[],n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,l.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},c=Cw(e.events)("click",(function(){}));return kw(e,{refreshData:function(){u()}}),(0,t.inject(bw,{setRequest:function(e,t){}}).setRequest)(u,e.requestSort),{style:i,formatFn:function(e,t){return null==t||""===t?e:{money:Ew,percentage:Nw,contrast:Nw}[t](e)||""},columnStyle:o,contrastClass:function(e,t){var n=parseFloat(e+"");if("contrast"!==t)return"";switch(!0){case n>=0:return"goUp";case n<0:return"goDown"}},dataSource:r,loading:l,click:c}}});function fS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gS(Object(n),!0).forEach((function(t){fS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mS={key:0,class:"title"},yS={key:0,class:"ranking"},xS={key:1,class:"ecan-list-content"},_S={key:0,class:"ranking"},bS=function(e){return t.pushScopeId("data-v-2d6c92c6"),e=e(),t.popScopeId(),e}((function(){return t.createElementVNode("div",{class:"icon"},null,-1)})),wS={class:"sort"},SS={key:2,class:"empty"};j_('.ecan-list[data-v-2d6c92c6]{overflow:hidden}.ecan-list[data-v-2d6c92c6][data-v-2d6c92c6]::-webkit-scrollbar-thumb{background-color:#c8c9ca;border-radius:6px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.ecan-list-content[data-v-2d6c92c6]{align-content:flex-start;display:flex;flex-wrap:wrap;height:100%;overflow:auto;width:100%}.title[data-v-2d6c92c6]{align-items:center;color:#fff;display:flex;font-size:16px;height:32px;position:absolute;width:100%;z-index:9}.title-inner[data-v-2d6c92c6]{display:flex;flex:1;height:100%;padding-left:28px;padding-right:20px}.title-placeholder[data-v-2d6c92c6]{height:32px;width:100%}.item[data-v-2d6c92c6]{align-items:center;color:#fff;display:flex;font-size:16px;height:32px;padding-left:28px;padding-right:20px;width:100%}.column[data-v-2d6c92c6],.ranking[data-v-2d6c92c6]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ranking[data-v-2d6c92c6]{align-items:center;display:flex;flex-shrink:0}.icon[data-v-2d6c92c6]{background:#21bef7;height:8px;margin-right:17px;opacity:.6;width:12px}.item:nth-child(2) .icon[data-v-2d6c92c6]{opacity:.8}.item:first-child .icon[data-v-2d6c92c6]{opacity:1}.sort[data-v-2d6c92c6]{font-weight:600}.goUp[data-v-2d6c92c6]{align-items:center;color:#ff512e;display:flex}.goUp[data-v-2d6c92c6][data-v-2d6c92c6]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}.goDown[data-v-2d6c92c6]{align-items:center;color:#00f7b4;display:flex}.goDown[data-v-2d6c92c6][data-v-2d6c92c6]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAaVBMVEUAAAAA+b0A+LwA+L0A/6AA+LwA+L0A+L0A+b0A+LwA/78A+LwA+L0A+LwA+LwA+b0A+LsA970A+LwA+r0A9boA/7YA+LwA+LwA+LwA+L0A97wA+bwA970A970A+bwA+bwA+LsA9rkA+LzcCa+5AAAAInRSTlMAd/uVAvjYxCsiDvPp37F7aWBMNBgK7s/NvKidh4NXUEcdp9A1SAAAAI5JREFUKM+l0UcOwzAMRFGqWZbcW3rl/Q8ZhUGKMN7lLedD4EKUi/3BEIrGsQu432pmPuF+1WnfRNjLipMz7HbHT3cIF9n3BLYSerzAooSgZNcWQiuhIdBI8JQblNISCqXU/BNG/mqzJ+az13MWluIdRspNmgV+Rvc6vkCwPu1uIhQq5o7WDOwtrToG+ssDeh4QPgfT2X0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}.empty[data-v-2d6c92c6]{margin-top:15%;text-align:center}');j_("[datav-theme=darkBlue] .ecan-list ::-webkit-scrollbar-thumb{background-color:#2f4dac!important}[datav-theme=darkBlue] .ecan-list ::-webkit-scrollbar-track{background-color:#192c70}[datav-theme=darkBlue] .ecan-list ::-webkit-scrollbar-corner{background-color:#192c70!important}[datav-theme=darkBlue] .ecan-list .empty{color:#fff}"),dS.render=function(e,n,r,i,o,a){var s=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},{default:t.withCtx((function(){return[e.useTitle?(t.openBlock(),t.createElementBlock("div",mS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,(function(n){return t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:"calc(100% / ".concat(e.columnCount," - ").concat(e.itemColSpan," * ").concat(e.columnCount-1,"/ ").concat(e.columnCount,")"),marginRight:n%e.columnCount!=0?e.itemColSpan:""}),key:n},[e.useRanking?(t.openBlock(),t.createElementBlock("div",yS)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(function(n,r){return t.openBlock(),t.createElementBlock("div",{class:"column",key:n.key||r,style:t.normalizeStyle(vS({color:n.titleColor},e.columnStyle))},t.toDisplayString(n.title),5)})),128))],4)})),128))])):t.createCommentVNode("v-if",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",xS,[e.useTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title-placeholder",style:t.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(function(r,i){return t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:"calc(100% / ".concat(e.columnCount," - ").concat(e.itemColSpan," * ").concat(e.columnCount-1," / ").concat(e.columnCount,")"),marginRight:(i+1)%e.columnCount!=0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:r.id||i,onClick:n[0]||(n[0]=function(){return e.click&&e.click.apply(e,arguments)})},[e.useRanking?(t.openBlock(),t.createElementBlock("div",_S,[bS,t.createElementVNode("div",wS," Top "+t.toDisplayString(i+1),1)])):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(function(n){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(r[n.key],n.format)]),key:n.key,style:t.normalizeStyle(vS({fontSize:n.fontSize,color:""===e.contrastClass(r[n.key],n.format)?n.color:"",fontWeight:n.fontWeight},e.columnStyle))},t.toDisplayString((null!=n.format||""!==n.format)&&e.formatFn(r[n.key],n.format)),7)})),128))],4)})),128))])):(t.openBlock(),t.createElementBlock("div",SS," 暂无数据 "))]})),_:1},8,["loading"])],4)},dS.__scopeId="data-v-2d6c92c6",dS.__file="src/text/list/List.vue";var kS=sw(dS),CS=Object.assign(Object.assign({},hw),{name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px"}),MS=dw(CS),TS=["refreshData","click"],AS=t.defineComponent({name:"EcanProportion",components:{AProgress:r.Progress,Skeleton:tw},props:Object.assign({},MS),setup:function(e){var n=this,r=mw(e),i=t.computed((function(){var t=e.width;return parseFloat(t)})),o=t.ref(e.data),a=t.computed((function(){var e,n=t.unref(o);return null==n?0:100*(null!==(e=Object.values(n)[0])&&void 0!==e?e:0)})),s=t.computed((function(){var e=t.unref(o)||{};return Object.keys(e)[0]})),l=t.computed((function(){var n,r=e.text,i=t.unref(o),l=r.match(/\{.*?\}/g)||[];if(""===r)return t.unref(a)+"%";for(var u=0;u<l.length;u++){var c=l[u],p=c.slice(1,c.length-1),h="";r=null!=(h=t.unref(s)===p?t.unref(a).toFixed(2):null!==(n=i[p])&&void 0!==n?n:0)?r.replace(c,h):r.replace(c,"")}return r})),u=t.inject(xw,{pageMode:"normal"}).pageMode,c=Pw(e),p=t.ref(!1),h=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,p.value=!0,n.next=6,c();case 6:i=n.sent,o.value=(null===(r=null==i?void 0:i.data)||void 0===r?void 0:r.data)||{},n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,p.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))};kw(e,{refreshData:function(){h()}});var d=Cw(e.events)("click",(function(){}));return(0,t.inject(bw,{setRequest:function(e,t){}}).setRequest)(h,e.requestSort),{style:r,myWidth:i,text:l,value:a,loading:p,click:d}}});j_(".ecan-proportion[data-v-4a9dae06]{overflow:hidden}.progress[data-v-4a9dae06]{height:100%;width:100%}.format[data-v-4a9dae06]{margin:0 auto}"),AS.render=function(e,n,r,i,o,a){var s=t.resolveComponent("skeleton"),l=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"progress",percent:e.value,width:e.myWidth,type:e.strokeType,strokeColor:e.strokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,gapDegree:"square"===e.strokeType?75:0,onClick:e.click},{format:t.withCtx((function(){return[e.loading?(t.openBlock(),t.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},t.toDisplayString(e.text),5))]})),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)},AS.__scopeId="data-v-4a9dae06",AS.__file="src/text/proportion/Proportion.vue";var IS=sw(AS),DS=Object.assign(Object.assign({},hw),{width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"}),OS=dw(DS),ES=t.defineComponent({name:"EcanInput",components:{AInput:r.Input},props:Object.assign({},OS),setup:function(e){return{style:mw(e)}}});j_(".input[data-v-b714c8ac]{height:100%;width:100%}"),ES.render=function(e,n,r,i,o,a){var s=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"input",value:e.value,placeholder:e.placeholder},null,8,["value","placeholder"])],4)},ES.__scopeId="data-v-b714c8ac",ES.__file="src/control/input/Input.vue";var NS=sw(ES),LS=Object.assign(Object.assign({},hw),{height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:_.default().format("YYYY-MM-DD"),picker:"date",format:"YYYY-MM-DD",showTime:!1}),PS=dw(LS),RS=["dateChange"],BS=t.defineComponent({name:"EcanDatePicker",props:Object.assign({},PS),components:{ADatePicker:r.DatePicker},setup:function(e){var n=mw(e),r=t.ref(_.default(e.value));(0,t.inject(_w,{setGlobalModel:function(e,t){}}).setGlobalModel)(e.id,{type:e.type,format:e.format,value:r});var i=e.events,o=Cw(i)("dateChange",(function(){}));return kw(e,{dateChange:o}),{style:n,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},myValue:r,locale:b.default,dateChange:o}}});j_(".date-picker[data-v-18740e6e]{height:100%;width:100%}");j_("[datav-theme=light] .ecan-date-picker .ant-picker{background-color:#fff;border:1px solid #d9d9d9;color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-date-picker .ant-picker-input>input{color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-date-picker .anticon-calendar,[datav-theme=light] .ecan-date-picker .anticon-close-circle{color:#333}[datav-theme=light] .ecan-date-picker .ant-picker-input>input::-moz-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-date-picker .ant-picker-input>input:-ms-input-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-date-picker .ant-picker-input>input::placeholder{color:#bfbfbf}[datav-theme=darkBlue] .ecan-date-picker .ant-picker{background-color:#05164c;border:1px solid #1f63a3;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ecan-date-picker .ant-picker-input>input,[datav-theme=darkBlue] .ecan-date-picker .anticon-calendar{color:#fff}[datav-theme=darkBlue] .ecan-date-picker .anticon-close-circle{color:#333}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-panel{background:#05174e;border-bottom:1px solid #69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-header{border-bottom:1px solid #69befa;color:#69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-panel .ant-picker-footer{border-top:1px solid #69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-content td,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-content th,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-header button,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-today-btn{color:#69befa}[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,[datav-theme=darkBlue] .ecan-date-picker-dropdown .ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner{background:#1890ff}"),BS.render=function(e,n,r,i,o,a){var s=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style)},[t.createCommentVNode(" 宽度style有效,class无效 "),t.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=function(t){return e.myValue=t}),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.dateChange,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)},BS.__scopeId="data-v-18740e6e",BS.__file="src/control/date-picker/DatePicker.vue";var VS=sw(BS),zS=Object.assign(Object.assign({},hw),{name:"选择器",keyName:"选择器",width:"120px",height:"33px",type:"ecanSelect",data:[],value:"",dataFieldNames:{label:"label",value:"value"}}),FS=dw(zS),GS=["selectChange"],US=t.defineComponent({name:"EcanSelect",components:{ASelect:r.Select},props:Object.assign({},FS),setup:function(e){var n=this,r=mw(e),i=Pw(e),o=t.inject(xw,{pageMode:"normal"}).pageMode,a=t.ref(e.data),s=t.ref(e.value||e.data[0]);(0,t.inject(_w,{setGlobalModel:function(e,t){}}).setGlobalModel)(e.id,{type:e.type,value:s});var l=e.events,u=Cw(l)("selectChange");return kw(e,{selectChange:u}),(0,t.inject(bw,{setRequest:function(e,t){}}).setRequest)((function(){return C(n,void 0,void 0,pw.mark((function n(){var r,l,u,c;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(o)){n.next=2;break}return n.abrupt("return");case 2:return n.next=4,i();case 4:u=n.sent,a.value=(null===(l=null===(r=null==u?void 0:u.data)||void 0===r?void 0:r.data)||void 0===l?void 0:l.rows)||[],c=t.unref(a)[0],""===e.value&&null!=c&&(s.value=c[e.dataFieldNames.value]);case 8:case"end":return n.stop()}}),n)})))}),e.requestSort),{style:r,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},myValue:s,selectChange:u,options:a}}});j_(".ecan-select[data-v-b6743858] [data-v-b6743858] .ant-select-selector{height:100%!important}.select[data-v-b6743858]{height:100%;width:100%}");j_("[datav-theme=light] .ant-select:not(.ant-select-customize-input) .ant-select-selector{border:1px solid #d9d9d9}[datav-theme=light] .ant-select-dropdown{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15);color:rgba(0,0,0,.85)}[datav-theme=light] .ant-empty-img-simple-g{stroke:#d9d9d9}[datav-theme=light] .ant-empty-img-simple-ellipse{fill:#f5f5f5}[datav-theme=light] .ant-empty-img-simple-path{fill:#f5f5f5;stroke:#d9d9d9}[datav-theme=light] .ant-empty-description{color:rgba(0,0,0,.25)}[datav-theme=light] .anticon-down{color:#333}[datav-theme=darkBlue] .ant-select:not(.ant-select-customize-input) .ant-select-selector{background-color:#05164c;border:1px solid #1f63a3;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ant-select-dropdown{background-color:#05164c;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ant-empty-img-simple-g{stroke:#69befa}[datav-theme=darkBlue] .ant-empty-img-simple-ellipse{fill-opacity:0}[datav-theme=darkBlue] .ant-empty-img-simple-path{fill:#69befa;stroke:#69befa}[datav-theme=darkBlue] .ant-empty-description{color:#69befa}[datav-theme=darkBlue] .ant-select-item,[datav-theme=darkBlue] .anticon-down{color:#fff}[datav-theme=darkBlue] .ant-select-item-option-active,[datav-theme=darkBlue] .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background:#1f63a3}"),US.render=function(e,n,r,i,o,a){var s=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"select",value:e.myValue,"onUpdate:value":n[0]||(n[0]=function(t){return e.myValue=t}),options:e.options,getPopupContainer:e.getPopupContainer,"field-names":e.dataFieldNames,onChange:e.selectChange},null,8,["value","options","getPopupContainer","field-names","onChange"])],4)},US.__scopeId="data-v-b6743858",US.__file="src/control/select/Select.vue";var WS=sw(US),jS=Object.assign(Object.assign({},hw),{name:"范围选择器",keyName:"范围选择器",type:"ecanRangePicker",width:"200px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:""}),HS=dw(jS),YS=["dateChange"],qS=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:r.RangePicker},props:Object.assign({},HS),setup:function(e){var n=mw(e),r=e.startTime,i=e.endTime,o=t.ref([null,null]);t.watch((function(){return[r,i]}),(function(){o.value=r&&i?[_.default(r),_.default(i)]:[null,null]}),{immediate:!0});var a=t.inject(_w,{setGlobalModel:function(e,t){}}).setGlobalModel,s=t.computed((function(){return t.unref(o)[0]})),l=t.computed((function(){return t.unref(o)[1]}));a(e.id,{type:e.type,format:e.format,startTime:s,endTime:l});var u=e.events,c=Cw(u)("dateChange",(function(){}));return kw(e,{dateChange:c}),{style:n,getPopupContainer:function(){return document.getElementById("ProviderConfig")||document.body},locale:b.default,dateChange:c,myValue:o}}});j_(".range-picker[data-v-9eb3e236]{height:100%;width:100%}");j_("[datav-theme=light] .ecan-range-picker .ant-picker{background-color:#fff;border:1px solid #d9d9d9;color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-range-picker .ant-picker-input>input{color:rgba(0,0,0,.85)}[datav-theme=light] .ecan-range-picker .anticon-calendar,[datav-theme=light] .ecan-range-picker .anticon-close-circle{color:#333}[datav-theme=light] .ecan-range-picker .ant-picker-input>input::-moz-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-range-picker .ant-picker-input>input:-ms-input-placeholder{color:#bfbfbf}[datav-theme=light] .ecan-range-picker .ant-picker-input>input::placeholder{color:#bfbfbf}[datav-theme=light] .ecan-range-picker .ant-picker-separator .anticon{color:#333}[datav-theme=darkBlue] .ecan-range-picker .ant-picker{background-color:#05164c;border:1px solid #1f63a3;box-shadow:inset 0 0 10px #005efe;color:#fff}[datav-theme=darkBlue] .ecan-range-picker .ant-picker-input>input,[datav-theme=darkBlue] .ecan-range-picker .anticon-calendar{color:#fff}[datav-theme=darkBlue] .ecan-range-picker .anticon-close-circle{color:#333}[datav-theme=darkBlue] .ecan-range-picker .ant-picker-separator .anticon{color:#fff}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-panel{background:#05174e;border-bottom:1px solid #69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-header{border-bottom:1px solid #69befa;color:#69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-panel .ant-picker-footer{border-top:1px solid #69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-content td,[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-content th,[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-header button,[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-today-btn{color:#69befa}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-cell-disabled .ant-picker-cell-inner{color:#999}[datav-theme=darkBlue] .ecan-range-picker-dropdown .ant-picker-cell-disabled:before{background:#333}"),qS.render=function(e,n,r,i,o,a){var s=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=function(t){return e.myValue=t}),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,onChange:e.dateChange},null,8,["value","format","picker","locale","getPopupContainer","onChange"])],4)},qS.__scopeId="data-v-9eb3e236",qS.__file="src/control/range-picker/RangePicker.vue";var XS=sw(qS),ZS=Object.assign(Object.assign({},hw),{width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton"}),JS=dw(ZS),KS=["click"],QS=t.defineComponent({name:"EcanButton",components:{AButton:r.Button},props:Object.assign({},JS),setup:function(e){var t=mw(e),n=e.events;return{style:t,click:Cw(n)("click")}}}),$S=t.createTextVNode(" 测试 ");j_(".button[data-v-34f909d8]{height:100%;width:100%}"),QS.render=function(e,n,r,i,o,a){var s=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"button",block:"",onClick:e.click},{default:t.withCtx((function(){return[$S]})),_:1},8,["onClick"])],4)},QS.__scopeId="data-v-34f909d8",QS.__file="src/control/button/Button.vue";var ek=sw(QS),tk=Object.assign(Object.assign({},hw),{type:"ecanTabs",name:"标签页",keyName:"标签页",width:"200px",tabFontSize:"14px",backgroundColor:"",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"0px",value:"",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}]}),nk=dw(tk),rk=["tabChange"],ik=t.defineComponent({name:"EcanTabs",props:Object.assign({},nk),setup:function(e){var n,r=mw(e),i=t.ref(0),o=t.ref(e.data),a=t.ref(e.value||t.unref(o)[0]&&(null===(n=t.unref(o)[0])||void 0===n?void 0:n.value)||""),s=e.events,l=Cw(s)("tabChange",(function(e,t){a.value=(null==e?void 0:e.value)||"",i.value=t}));return(0,t.inject(_w,{setGlobalModel:function(e,t){}}).setGlobalModel)(e.id,{value:a}),kw(e,{tabChange:l}),{style:r,activeKey:i,isActive:function(e){return i.value===e},tabChange:l,myData:o,useImagePath:zw}}}),ok=["onClick"];j_(".ecan-tabs[data-v-28df6758]{box-sizing:border-box;color:#333;display:flex}.tab[data-v-28df6758]{align-items:center;background-repeat:no-repeat;background-size:100% 100%;display:flex;flex:1;justify-content:center}.tab[data-v-28df6758]:last-child{margin-right:0!important}"),ik.render=function(e,n,r,i,o,a){return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(function(n,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["tab"]),style:t.normalizeStyle({color:e.isActive(r)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(r)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabBarGutter,fontSize:e.tabFontSize}),key:r,onClick:function(t){return e.tabChange(n,r)}},t.toDisplayString(n.title),13,ok)})),128))],4)},ik.__scopeId="data-v-28df6758",ik.__file="src/control/tabs/Tabs.vue";var ak=sw(ik),sk=Object.assign(Object.assign({},hw),{id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{b} : {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value"}),lk=dw(sk),uk=["click","refreshData"];function ck(e,t,n){var r=N.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var pk=function(e){function t(t,n,r){var i,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||wr,"string"==typeof t?i=ck(t,n,r):fe(t)&&(t=(i=t).id),o.id=t,o.dom=i;var a=i.style;return a&&(Le(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return k(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=ck("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new Qr(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){(t=new Qr(0,0,0,0)).copy(e),o.push(t)}else{for(var t,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(e)){var p=new Qr(0,0,0,0);p.copy(c),p.union(e),o[u]=p,n=!0;break}if(s){l.copy(e),l.union(c);var h=e.width*e.height,d=c.width*c.height,f=l.width*l.height-h-d;f<r&&(r=f,i=u)}}if(s&&(o[i].union(e),n=!0),!n)(t=new Qr(0,0,0,0)).copy(e),o.push(t);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(d=e[c]){var p=d.shouldBePainted(n,r,!0,!0);(f=d.__isRendered&&(1&d.__dirty||!p)?d.getPrevPaintRect():null)&&u(f);var h=p&&(1&d.__dirty||!d.__isRendered)?d.getPaintRect():null;h&&u(h)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d,f;p=(d=t[c]).shouldBePainted(n,r,!0,!0);if(d&&(!p||!d.__zr)&&d.__isRendered)(f=d.getPrevPaintRect())&&u(f)}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var p=this.domBack;function h(e,n,r,o){if(i.clearRect(e,n,r,o),t&&"transparent"!==t){var a=void 0;ye(t)?(a=t.__canvasGradient||wv(i,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=a):null!=t.image&&(a=Ev(i,t,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),i.save(),i.fillStyle=a||t,i.fillRect(e,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(p,e,n,r,o),i.restore())}!n||s?h(0,0,o,a):n.length&&ne(n,(function(e){h(e.x*u,e.y*u,e.width*u,e.height*u)}))},t}(tt),hk=pk,dk=1e5,fk=314159,gk=.01;var vk=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=K({},n||{}),this.dpr=n.devicePixelRatio||wr,this._singleCanvas=i,this.root=e,e.style&&(Le(e),e.innerHTML=""),this.storage=t;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=e,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new hk(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=fk,o.push(fk),this._domRoot=e}else{this._width=kv(e,0,n),this._height=kv(e,1,n);var p=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(p)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(dk)),r||(r=n.ctx).save(),Gv(r,a,i,o===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(dk)},e.prototype.paintOne=function(e,t){Fv(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;Ft((function(){s._paintList(e,t,n,r)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(fk).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,p=function(a){var s,l=i[a],p=l.ctx,d=o&&l.createRepaintRects(e,t,h._width,h._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),m=l.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,m,d);else if(f===l.__startIndex){var y=e[f];y.incremental&&y.notClear&&!n||l.clear(!1,m,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,t,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&p.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=h.dpr,b=0;b<d.length;++b){var w=d[b];p.save(),p.beginPath(),p.rect(w.x*_,w.y*_,w.width*_,w.height*_),p.clip(),x(w),p.restore()}else p.save(),x(),p.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},h=this,d=0;d<i.length;d++)p(d);return A.wxa&&ne(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,r,i,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(Gv(a,e,i,o),e.setPrevPaintRect(s))}else Gv(a,e,i,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=fk);var n=this._layers[e];return n||((n=new hk("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Z(n,this._layerConfig[e],!0):this._layerConfig[e-gk]&&Z(n,this._layerConfig[e-gk],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(n[e])"production"!==process.env.NODE_ENV&&q("ZLevel "+e+" has been used already");else if(function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}else"production"!==process.env.NODE_ENV&&q("Layer of zlevel "+e+" is not valid")},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<e.length;i++){var s,l=(s=e[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?gk:0),this._needsManuallyCompositing),u.__builtin__||q("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,t(i),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}t(i),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,ne(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Z(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+gk)Z(this._layers[i],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice($(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=kv(i,0,r),t=kv(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(fk).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new hk("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Gv(n,u,o,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),mk=vk;function yk(e){e.registerPainter("canvas",mk)}var xk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return k(t,e),t.prototype.getInitialData=function(e){if("production"!==process.env.NODE_ENV){var t=e.coordinateSystem;if("polar"!==t&&"cartesian2d"!==t)throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Ly(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new _i,n=_v("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*e.itemHeight,s=_v(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?i:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}($f),_k=xk;function bk(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Jd(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(Jd(e,t,n[a]));return o.join(" ")}}function wk(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!ue(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}var Sk=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return k(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var o=_v(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=kk,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){dl(this.childAt(0))},t.prototype.downplay=function(){fl(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{(h=this.childAt(0)).silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(p):ic(h,p,a,n),cc(h)}if(this._updateCommon(e,n,s,r,i),l){var h=this.childAt(0);if(!u){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,oc(h,p,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,l,u,c,p,h,d,f=this.childAt(0),g=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,p=r.labelStatesModels,h=r.hoverScale,d=r.cursorStyle,c=r.emphasisDisabled),!r||e.hasItemOption){var v=r&&r.itemModel?r.itemModel:e.getItemModel(t),m=v.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),c=m.get("disabled"),p=Bc(v),h=m.getShallow("scale"),d=v.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var x=bv(e.getItemVisual(t,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),d&&f.attr("cursor",d);var _=e.getItemVisual(t,"style"),b=_.fill;if(f instanceof fs){var w=f.style;f.useStyle(K({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(K({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),k=this._z2;null!=S?null==k&&(this._z2=f.z2,f.z2+=S):null!=k&&(f.z2=k,this._z2=null);var C=i&&i.useNameLabel;Rc(f,p,{labelFetcher:g,labelDataIndex:t,defaultText:function(t){return C?e.getName(t):bk(e,t)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=f.ensureState("emphasis");if(M.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,h){var T=Math.max(de(h)?h:1.1,3/this._sizeY);M.scaleX=this._sizeX*T,M.scaleY=this._sizeY*T}this.setSymbolScale(1),Ml(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Vs(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&sc(a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();sc(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return ue(n=e.getItemVisual(t,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},t}(_i);function kk(e,t){this.parent.drift(e,t)}var Ck=Sk;function Mk(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function Tk(e){return null==e||fe(e)||(e={isIgnore:e}),e||{}}function Ak(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Bc(t),cursorStyle:t.get("cursor")}}var Ik=function(){function e(e){this.group=new _i,this._SymbolCtor=e||Ck}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=Tk(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=Ak(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i=u(r);if(Mk(e,i,r,t)){var a=new o(e,r,s,l);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,p){var h=i.getItemGraphicEl(p),d=u(c);if(Mk(e,d,c,t)){var f=e.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==f)n.remove(h),(h=new o(e,c,s,l)).setPosition(d);else{h.updateData(e,c,s,l);var v={x:d[0],y:d[1]};a?h.attr(v):ic(h,v,r)}n.add(h),e.setItemGraphicEl(c,h)}else n.remove(h)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Ak(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Tk(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Mk(t,o,i,n)){var a=new this._SymbolCtor(t,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){Ec(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}(),Dk=Ik;function Ok(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:de(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,p=re(e.dimensions,(function(e){return t.mapDimension(e)})),h=!1,d=t.getCalculationInfo("stackResultDimension");return Ny(t,p[0])&&(h=!0,p[0]=d),Ny(t,p[1])&&(h=!0,p[1]=d),{dataDimsForPoint:p,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Ek(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var Nk=Math.min,Lk=Math.max;function Pk(e,t){return isNaN(e)||isNaN(t)}function Rk(e,t,n,r,i,o,a,s,l){for(var u,c,p,h,d,f,g=n,v=0;v<r;v++){var m=t[2*g],y=t[2*g+1];if(g>=i||g<0)break;if(Pk(m,y)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](m,y),p=m,h=y;else{var x=m-u,_=y-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=t[2*b],S=t[2*b+1];w===m&&S===y&&v<r;)v++,g+=o,w=t[2*(b+=o)],S=t[2*b+1],x=(m=t[2*g])-u,_=(y=t[2*g+1])-c;var k=v+1;if(l)for(;Pk(w,S)&&k<r;)k++,w=t[2*(b+=o)],S=t[2*b+1];var C=.5,M=0,T=0,A=void 0,I=void 0;if(k>=r||Pk(w,S))d=m,f=y;else{M=w-u,T=S-c;var D=m-u,O=w-m,E=y-c,N=S-y,L=void 0,P=void 0;if("x"===s){var R=M>0?1:-1;d=m-R*(L=Math.abs(D))*a,f=y,A=m+R*(P=Math.abs(O))*a,I=y}else if("y"===s){var B=T>0?1:-1;d=m,f=y-B*(L=Math.abs(E))*a,A=m,I=y+B*(P=Math.abs(N))*a}else L=Math.sqrt(D*D+E*E),d=m-M*a*(1-(C=(P=Math.sqrt(O*O+N*N))/(P+L))),f=y-T*a*(1-C),I=y+T*a*C,A=Nk(A=m+M*a*C,Lk(w,m)),I=Nk(I,Lk(S,y)),A=Lk(A,Nk(w,m)),f=y-(T=(I=Lk(I,Nk(S,y)))-y)*L/P,d=Nk(d=m-(M=A-m)*L/P,Lk(u,m)),f=Nk(f,Lk(c,y)),A=m+(M=m-(d=Lk(d,Nk(u,m))))*P/L,I=y+(T=y-(f=Lk(f,Nk(c,y))))*P/L}e.bezierCurveTo(p,h,d,f,m,y),p=A,h=I}else e.lineTo(m,y)}u=m,c=y,g+=o}return v}var Bk=function(){this.smooth=0,this.smoothConstraint=!0},Vk=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return k(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Bk},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&Pk(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Pk(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Rk(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Fa.CMD,a="x"===t,s=[],l=0;l<i.length;){var u=void 0,c=void 0,p=void 0,h=void 0,d=void 0,f=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(e-n)/(u-n):(e-r)/(c-r))<=1&&g>=0){var v=a?(c-r)*g+r:(u-n)*g+n;return a?[e,v]:[v,e]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],p=i[l++],h=i[l++],d=i[l++],f=i[l++];var m=a?nn(n,u,p,d,e,s):nn(r,c,h,f,e,s);if(m>0)for(var y=0;y<m;y++){var x=s[y];if(x<=1&&x>=0){v=a?en(r,c,h,f,x):en(n,u,p,d,x);return a?[e,v]:[v,e]}}n=d,r=f}}},t}(ss),zk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t}(Bk),Fk=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return k(t,e),t.prototype.getDefaultShape=function(){return new zk},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&Pk(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Pk(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=Rk(e,n,i,o,o,1,t.smooth,a,t.connectNulls);Rk(e,r,i+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),i+=s+1,e.closePath()}},t}(ss);function Gk(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var p=new ws({shape:{x:a,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),d=h.isHorizontal(),f=h.inverse;d?(f&&(p.shape.x+=l),p.shape.width=0):(f||(p.shape.y+=u),p.shape.height=0);var g=ce(i)?function(e){i(e,p)}:null;oc(p,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return p}function Uk(e,t,n){var r=e.getArea(),i=Ai(r.r0,1),o=Ai(r.r,1),a=new xu({shape:{cx:Ai(e.cx,1),cy:Ai(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,oc(a,{shape:{endAngle:r.endAngle,r:o}},n));return a}function Wk(e,t){return e.type===t}function jk(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Hk(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function Yk(e,t){var n=Hk(e),r=n[0],i=n[1],o=Hk(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function qk(e){return de(e)?e:e?.5:0}function Xk(e,t,n,r){var i=t.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],p=[];if(r){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||p.push(e[s],e[s+1]);e=p}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var h=(u[o]+c[o])/2,d=[];l[o]=d[o]=h,l[1-o]=u[1-o],d[1-o]=c[1-o],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function Zk(e,t){var n,r,i=[],o=e.length;function a(e,t,n){var r=e.coord;return{coord:n,color:function(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=On(t[i]),s=On(t[o]),l=r-i,u=Rn([_n(Cn(a[0],s[0],l)),_n(Cn(a[1],s[1],l)),_n(Cn(a[2],s[2],l)),bn(Cn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){r?i.push(a(r,l,t)):n&&i.push(a(n,l,0),a(n,l,t));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function Jk(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*Ck.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return ne(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function Kk(e,t){return[e[2*t],e[2*t+1]]}function Qk(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Ws.length;t++)if(e.get([Ws[t],"endLabel","show"]))return!0;return!1}function $k(e,t,n,r){if(Wk(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=Qk(r)?function(n,r){e._endLabelOnDuring(n,r,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Gk(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var p=c.shape,h=Math.max(p.width,p.height);u?(p.y-=h,p.height+=2*h):(p.x-=h,p.width+=2*h)}return l&&l(1,c),c}return"production"!==process.env.NODE_ENV&&r.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),Uk(t,n,r)}var eC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t.prototype.init=function(){var e=new _i,t=new Dk;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,p=this._coordSys,h=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,v=e.get("animation"),m=!l.isEmpty(),y=l.get("origin"),x=Ok(i,a,y),_=m&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=nx(2*r),o=0;o<r;o++){var a=Ek(n,e,t,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,x),b=e.get("showSymbol"),w=e.get("connectNulls"),S=b&&!c&&Jk(e,a,i),k=this._data;k&&k.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),k.setItemGraphicEl(t,null))})),b||h.remove(),o.add(g);var C,M=!c&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(C=i.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var T=function(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count())if("cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=t.getAxis(i),u=re(o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,p=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),p.reverse());var h=Zk(u,"x"===i?n.getWidth():n.getHeight()),d=h.length;if(!d&&c)return u[0].coord<0?p[1]?p[1]:u[c-1].color:p[0]?p[0]:u[0].color;var f=h[0].coord-10,g=h[d-1].coord+10,v=g-f;if(v<.001)return"transparent";ne(h,(function(e){e.offset=(e.coord-f)/v})),h.push({offset:d?h[d-1].offset:.5,color:p[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:p[0]||"transparent"});var m=new Hu(0,0,0,0,h,!0);return m[i]=f,m[i+"2"]=g,m}"production"!==process.env.NODE_ENV&&console.warn("Visual map on line style only support x or y dimension.")}else"production"!==process.env.NODE_ENV&&console.warn("Visual map on line style is only supported on cartesian2d.")}(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&p.type===i.type&&M===this._step){m&&!f?f=this._newPolygon(u,_):f&&!m&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,nh(T));var A=g.getClipPath();if(A)oc(A,{shape:$k(this,i,!1,e).shape},e);else g.setClipPath($k(this,i,!0,e));b&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),jk(this._stackedOnPoints,_)&&jk(this._points,u)||(v?this._doUpdateAnimation(a,_,i,n,M,y,w):(M&&(u=Xk(u,i,M,w),_&&(_=Xk(_,i,M,w))),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),v&&this._initSymbolLabelAnimation(a,i,C),M&&(u=Xk(u,i,M,w),_&&(_=Xk(_,i,M,w))),d=this._newPolyline(u),m&&(f=this._newPolygon(u,_)),c||this._initOrUpdateEndLabel(e,i,nh(T)),g.setClipPath($k(this,i,!0,e));var I=e.getModel("emphasis"),D=I.get("focus"),O=I.get("blurScope"),E=I.get("disabled");(d.useStyle(Q(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Il(d,e,"lineStyle"),d.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);Vs(d).seriesIndex=e.seriesIndex,Ml(d,D,O,E);var N=qk(e.get("smooth")),L=e.get("smoothMonotone");if(d.setShape({smooth:N,smoothMonotone:L,connectNulls:w}),f){var P=a.getCalculationInfo("stackedOnSeries"),R=0;f.useStyle(Q(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),P&&(R=qk(P.get("smooth"))),f.setShape({smooth:N,stackedOnSmooth:R,smoothMonotone:L,connectNulls:w}),Il(f,e,"areaStyle"),Vs(f).seriesIndex=e.seriesIndex,Ml(f,D,O,E)}var B=function(e){r._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=u,this._step=M,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,d),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){Vs(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=vo(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel"),p=e.get("z");(s=new Ck(i,o)).x=l,s.y=u,s.setZ(c,p);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=p,h.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else pg.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=vo(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else pg.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;ll(this._polyline,e),t&&ll(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Vk({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Fk({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");ce(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=ce(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var p=[e.x,e.y],h=void 0,d=void 0,f=void 0;if(n)if(i){var g=n,v=t.pointToCoord(p);r?(h=g.startAngle,d=g.endAngle,f=-v[1]/180*Math.PI):(h=g.r0,d=g.r,f=v[0])}else{var m=n;r?(h=m.x,d=m.x+m.width,f=e.x):(h=m.y+m.height,d=m.y,f=e.y)}var y=d===h?0:(f-h)/(d-h);a&&(y=1-y);var x=ce(u)?u(o):l*y+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(Qk(e)){var i=e.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Bs({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(e){for(var t,n,r=e.length/2;r>0&&(t=e[2*r-2],n=e[2*r-1],isNaN(t)||isNaN(n));r--);return r-1}(a);l>=0&&(Rc(o,Bc(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?wk(i,n):bk(i,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,p=c.get("connectNulls"),h=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,m=t.shape,y=v?g?m.x:m.y+m.height:g?m.x+m.width:m.y,x=(g?d:0)*(v?-1:1),_=(g?0:-d)*(v?-1:1),b=g?"x":"y",w=function(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=e[2*u+a],!isNaN(i)&&!isNaN(e[2*u+1-a]))if(0!==u){if(r<=t&&i>=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}(u,y,b),S=w.range,k=S[1]-S[0],C=void 0;if(k>=1){if(k>1&&!p){var M=Kk(u,S[0]);s.attr({x:M[0]+x,y:M[1]+_}),i&&(C=c.getRawValue(S[0]))}else{(M=l.getPointOn(y,b))&&s.attr({x:M[0]+x,y:M[1]+_});var T=c.getRawValue(S[0]),A=c.getRawValue(S[1]);i&&(C=function(e,t,n,r,i){var o=null==t||"auto"===t;if(null==r)return r;if(de(r))return Ai(f=eo(n||0,r,i),o?Math.max(Di(n||0),Di(r)):t);if(pe(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var p=e.getDimensionInfo(c);if(p&&"ordinal"===p.type)a[c]=(i<1&&s?s:l)[c];else{var h=s&&s[c]?s[c]:0,d=l[c],f=eo(h,d,i);a[c]=Ai(f,o?Math.max(Di(h),Di(d)):t)}}return a}(n,h,T,A,w.t))}r.lastFrameIndex=S[0]}else{var I=1===e||r.lastFrameIndex>0?S[0]:0;M=Kk(u,I);i&&(C=c.getRawValue(I)),s.attr({x:M[0]+x,y:M[1]+_})}i&&jc(s).setLabelText(C)}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,n,r,i,o,a,s){for(var l=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),u=[],c=[],p=[],h=[],d=[],f=[],g=[],v=Ok(i,t,a),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,w=void 0,S=void 0;switch(_.cmd){case"=":w=2*_.idx,S=2*_.idx1;var k=m[w],C=m[w+1],M=y[S],T=y[S+1];(isNaN(k)||isNaN(C))&&(k=M,C=T),u.push(k,C),c.push(M,T),p.push(n[w],n[w+1]),h.push(r[S],r[S+1]),g.push(t.getRawIndex(_.idx1));break;case"+":var A=_.idx,I=v.dataDimsForPoint,D=i.dataToPoint([t.get(I[0],A),t.get(I[1],A)]);S=2*A,u.push(D[0],D[1]),c.push(y[S],y[S+1]);var O=Ek(v,i,t,A);p.push(O[0],O[1]),h.push(r[S],r[S+1]),g.push(t.getRawIndex(A));break;case"-":b=!1}b&&(d.push(_),f.push(f.length))}f.sort((function(e,t){return g[e]-g[t]}));var E=u.length,N=nx(E),L=nx(E),P=nx(E),R=nx(E),B=[];for(x=0;x<f.length;x++){var V=f[x],z=2*x,F=2*V;N[z]=u[F],N[z+1]=u[F+1],L[z]=c[F],L[z+1]=c[F+1],P[z]=p[F],P[z+1]=p[F+1],R[z]=h[F],R[z+1]=h[F+1],B[x]=d[V]}return{current:N,next:L,stackedOnCurrent:P,stackedOnNext:R,status:B}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),p=c.current,h=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(i&&(p=Xk(c.current,n,i,a),h=Xk(c.stackedOnCurrent,n,i,a),d=Xk(c.next,n,i,a),f=Xk(c.stackedOnNext,n,i,a)),Yk(p,d)>3e3||l&&Yk(h,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=p;var g={shape:{points:d}};c.current!==p&&(g.shape.__points=c.next),s.stopAnimation(),ic(s,g,u),l&&(l.setShape({points:p,stackedOnPoints:h}),l.stopAnimation(),ic(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],m=c.status,y=0;y<m.length;y++){if("="===m[y].cmd){var x=e.getItemGraphicEl(m[y].idx1);x&&v.push({el:x,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<v.length;t++){var n=v[t].el,r=2*v[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(pg),tC=eC;function nC(e,t){return{seriesType:e,plan:ng(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(r){var a=re(r.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Ny(n,a[0])&&(a[0]=l),Ny(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),p=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=o&&nx(n*s),a=[],l=[],h=e.start,d=0;h<e.end;h++){var f=void 0;if(1===s){var g=u.get(c,h);f=r.dataToPoint(g,null,l)}else a[0]=u.get(c,h),a[1]=u.get(p,h),f=r.dataToPoint(a,null,l);o?(i[d++]=f[0],i[d++]=f[1]):t.setItemLayout(h,f.slice())}o&&t.setLayout("points",i)}}}}}}var rC={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},iC=function(e){return Math.round(e.length/2)};function oC(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),p=Math.abs(u[1]-u[0])*(c||1),h=Math.round(a/p);if(isFinite(h)&&h>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/h));var d=void 0;pe(i)?d=rC[i]:ce(i)&&(d=i),d&&e.setData(r.downSample(r.mapDimension(l.dim),1/h,d,iC))}}}}}function aC(e){e.registerChartView(tC),e.registerSeriesModel(_k),e.registerLayout(nC("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,oC("line"))}var sC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.prototype.getInitialData=function(e,t){return Ly(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t&&t.clampData){var n=t.dataToPoint(t.clampData(e)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size");return n[t.getBaseAxis().isHorizontal()?0:1]+=i+o/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}($f);$f.registerClass(sC);var lC=sC,uC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.prototype.getInitialData=function(){return Ly(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=lp(lC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(lC),cC=uC,pC=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},hC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return k(t,e),t.prototype.getDefaultShape=function(){return new pC},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-i),s=i+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,p=2*Math.PI,h=c?u-l<p:l-u<p;h||(l=u-(c?p:-p));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=Math.sin(u);h?(e.moveTo(d*i+n,f*i+r),e.arc(d*s+n,f*s+r,a,-Math.PI+l,l,!c)):e.moveTo(d*o+n,f*o+r),e.arc(n,r,o,l,u,!c),e.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&e.arc(n,r,i,u,l,c)},t}(ss),dC=hC;function fC(e,t,n){return t*Math.sin(e)*(n?-1:1)}function gC(e,t,n){return t*Math.cos(e)*(n?1:-1)}var vC=Math.max,mC=Math.min;var yC=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return k(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");"cartesian2d"===i||"polar"===i?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r)):"production"!==process.env.NODE_ENV&&Xi("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Ec(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,p=function(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();"production"!==process.env.NODE_ENV&&n&&("category"!==r.type&&Xi("`realtimeSort` will not work because this bar series is not based on a category axis."),"cartesian2d"!==t.type&&Xi("`realtimeSort` will not work because this bar series is not on cartesian2d."));if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,l);p&&this._enableRealtimeSort(p,a,n);var h=e.get("clip",!0)||p,d=function(e,t){var n=e.getArea&&e.getArea();if(Wk(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);o.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),v=e.getModel("backgroundStyle"),m=v.get("borderRadius")||0,y=[],x=this._backgroundEls,_=r&&r.isInitSort,b=r&&"changeAxisOrder"===r.type;function w(e){var t=MC[l.type](a,e),n=function(e,t,n){return new("polar"===e.type?xu:ws)({shape:NC(t,n,e),silent:!0,z2:0})}(l,i,t);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",m),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),r=MC[l.type](a,t,n);if(g&&w(t),a.hasValue(t)&&CC[l.type](r)){var s=!1;h&&(s=xC[l.type](d,r));var v=_C[l.type](e,a,t,r,i,c,u.model,!1,f);p&&(v.forceLabelAnimation=!0),AC(v,a,t,n,r,e,i,"polar"===l.type),_?v.attr({shape:r}):p?bC(p,c,v,r,t,i,!1,!1):oc(v,{shape:r},e,t),a.setItemGraphicEl(t,v),o.add(v),v.ignore=s}})).update((function(t,n){var r=a.getItemModel(t),S=MC[l.type](a,t,r);if(g){var k=void 0;0===x.length?k=w(n):((k=x[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type&&k.setShape("r",m),y[t]=k);var C=MC[l.type](a,t);ic(k,{shape:NC(i,C,l)},c,t)}var M=s.getItemGraphicEl(n);if(a.hasValue(t)&&CC[l.type](S)){var T=!1;if(h&&(T=xC[l.type](d,S))&&o.remove(M),M?cc(M):M=_C[l.type](e,a,t,S,i,c,u.model,!!M,f),p&&(M.forceLabelAnimation=!0),b){var A=M.getTextContent();if(A){var I=jc(A);null!=I.prevValue&&(I.prevValue=I.value)}}else AC(M,a,t,r,S,e,i,"polar"===l.type);_?M.attr({shape:S}):p?bC(p,c,M,S,t,i,!0,b):ic(M,{shape:S},e,t,null),a.setItemGraphicEl(t,M),M.ignore=T,o.add(M)}else o.remove(M)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&uc(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new _i);S.removeAll();for(var k=0;k<y.length;++k)S.add(y[k]);o.add(S),this._backgroundEls=y,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),OC(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),OC(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&function(e,t,n,r,i){return e?"polar"===e.type?Uk(e,t,n):"cartesian2d"===e.type?Gk(e,t,n,r,i):null:null}(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:re(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){uc(t,e,Vs(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(pg),xC={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=vC(t.x,e.x),s=mC(t.x+t.width,i),l=vC(t.y,e.y),u=mC(t.y+t.height,o),c=s<a,p=u<l;return t.x=c&&a>i?s:a,t.y=p&&l>o?u:l,t.width=c?0:s-a,t.height=p?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||p},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=mC(t.r,e.r),o=vC(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return a}},_C={cartesian2d:function(e,t,n,r,i,o,a,s,l){var u=new ws({shape:K({},r),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[i?"height":"width"]=0);return u},polar:function(e,t,n,r,i,o,a,s,l){var u=!i&&l?dC:xu,c=new u({shape:r,z2:1});c.name="item";var p,h,d=TC(i);if(c.calculateTextPosition=(p=d,h=({isRoundCap:u===dC}||{}).isRoundCap,function(e,t,n){var r=t.position;if(!r||r instanceof Array)return si(e,t,n);var i=p(r),o=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,d=(u+c)/2,f=a.startAngle,g=a.endAngle,v=(f+g)/2,m=h?Math.abs(u-c)/2:0,y=Math.cos,x=Math.sin,_=s+u*y(f),b=l+u*x(f),w="left",S="top";switch(i){case"startArc":_=s+(c-o)*y(v),b=l+(c-o)*x(v),w="center",S="top";break;case"insideStartArc":_=s+(c+o)*y(v),b=l+(c+o)*x(v),w="center",S="bottom";break;case"startAngle":_=s+d*y(f)+fC(f,o+m,!1),b=l+d*x(f)+gC(f,o+m,!1),w="right",S="middle";break;case"insideStartAngle":_=s+d*y(f)+fC(f,-o+m,!1),b=l+d*x(f)+gC(f,-o+m,!1),w="left",S="middle";break;case"middle":_=s+d*y(v),b=l+d*x(v),w="center",S="middle";break;case"endArc":_=s+(u+o)*y(v),b=l+(u+o)*x(v),w="center",S="bottom";break;case"insideEndArc":_=s+(u-o)*y(v),b=l+(u-o)*x(v),w="center",S="top";break;case"endAngle":_=s+d*y(g)+fC(g,o+m,!0),b=l+d*x(g)+gC(g,o+m,!0),w="left",S="middle";break;case"insideEndAngle":_=s+d*y(g)+fC(g,-o+m,!0),b=l+d*x(g)+gC(g,-o+m,!0),w="right",S="middle";break;default:return si(e,t,n)}return(e=e||{}).x=_,e.y=b,e.align=w,e.verticalAlign=S,e}),o){var f=i?"r":"endAngle",g={};c.shape[f]=i?0:r.startAngle,g[f]=r[f],(s?ic:oc)(c,{shape:g},o)}return c}};function bC(e,t,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?ic:oc)(n,{shape:l},t,i,null),(a?ic:oc)(n,{shape:u},t?e.baseAxis.model:null,i)}function wC(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var SC=["x","y","width","height"],kC=["cx","cy","r","startAngle","endAngle"],CC={cartesian2d:function(e){return!wC(e,SC)},polar:function(e){return!wC(e,kC)}},MC={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function TC(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function AC(e,t,n,r,i,o,a,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",r.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=r.getShallow("cursor");u&&e.attr("cursor",u);var c=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Bc(r);Rc(e,p,{labelFetcher:o,labelDataIndex:n,defaultText:bk(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var h=e.getTextContent();if(s&&h){var d=r.get(["label","position"]);e.textConfig.inside="middle"===d||null,function(e,t,n,r){if(de(r))e.setTextConfig({rotation:r});else if(ue(t))e.setTextConfig({rotation:0});else{var i,o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void e.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}(e,"outside"===d?c:d,TC(a),r.get(["label","rotate"]))}!function(e,t,n,r){if(e){var i=jc(e);i.prevValue=i.value,i.value=n;var o=t.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}(h,p,o.getRawValue(n),(function(e){return wk(t,e)}));var f=r.getModel(["emphasis"]);Ml(e,f.get("focus"),f.get("blurScope"),f.get("disabled")),Il(e,r),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(i)&&(e.style.fill="none",e.style.stroke="none",ne(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var IC=function(){},DC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return k(t,e),t.prototype.getDefaultShape=function(){return new IC},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],e.rect(o[0],o[1],a[0],a[1])},t}(ss);function OC(e,t,n,r){var i=e.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new DC({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var p=new DC({shape:{points:i.getLayout("largePoints")},incremental:!!r,z2:1});p.baseDimIdx=o,p.largeDataIndices=a,p.barWidth=s,t.add(p),p.useStyle(i.getVisual("style")),Vs(p).seriesIndex=e.seriesIndex,e.get("silent")||(p.on("mousedown",EC),p.on("mousemove",EC)),n&&n.push(p)}var EC=gg((function(e){var t=function(e,t,n){for(var r=e.baseDimIdx,i=1-r,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,p=o.length/3;c<p;c++){var h=3*c;if(l[r]=u,l[i]=o[h+2],s[r]=o[h+r],s[i]=o[h+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,e.offsetX,e.offsetY);Vs(this).dataIndex=t>=0?t:null}),30,!1);function NC(e,t,n){if(Wk(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var o=t;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}var LC=yC;function PC(e){e.registerChartView(LC),e.registerSeriesModel(cC),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,le(sx,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,function(e){return{seriesType:e,plan:ng(),reset:function(e){if(lx(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=t.getDimensionIndex(t.mapDimension(i.dim)),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get("showBackground",!0),l=t.mapDimension(i.dim),u=t.getCalculationInfo("stackResultDimension"),c=Ny(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),p=i.isHorizontal(),h=function(e,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}(0,i),d=ux(e),f=e.get("barMinHeight")||0,g=u&&t.getDimensionIndex(u),v=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(e,t){for(var r,i=e.count,l=d&&nx(3*i),u=d&&s&&nx(3*i),y=d&&nx(i),x=n.master.getRect(),_=p?x.width:x.height,b=t.getStore(),w=0;null!=(r=e.next());){var S=b.get(c?g:o,r),k=b.get(a,r),C=h,M=void 0;c&&(M=+S-b.get(o,r));var T=void 0,A=void 0,I=void 0,D=void 0;if(p){var O=n.dataToPoint([S,k]);c&&(C=n.dataToPoint([M,k])[0]),T=C,A=O[1]+m,I=O[0]-C,D=v,Math.abs(I)<f&&(I=(I<0?-1:1)*f)}else O=n.dataToPoint([k,S]),c&&(C=n.dataToPoint([k,M])[1]),T=O[0]+m,A=C,I=v,D=O[1]-C,Math.abs(D)<f&&(D=(D<=0?-1:1)*f);d?(l[w]=T,l[w+1]=A,l[w+2]=p?I:D,u&&(u[w]=p?x.x:T,u[w+1]=p?A:x.y,u[w+2]=_),y[r]=r):t.setItemLayout(r,{x:T,y:A,width:I,height:D}),w+=3}d&&t.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:p})}}}}}}("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,oC("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var RC=2*Math.PI,BC=Math.PI/180;function VC(e,t){return uh(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function zC(e,t){var n=VC(e,t),r=e.get("center"),i=e.get("radius");ue(i)||(i=[0,i]),ue(r)||(r=[r,r]);var o=Ti(n.width,t.getWidth()),a=Ti(n.height,t.getHeight()),s=Math.min(o,a);return{cx:Ti(r[0],o)+n.x,cy:Ti(r[1],a)+n.y,r0:Ti(i[0],s/2),r:Ti(i[1],s/2)}}function FC(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=VC(e,n),o=zC(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*BC,p=e.get("minAngle")*BC,h=0;t.each(r,(function(e){!isNaN(e)&&h++}));var d=t.getSum(r),f=Math.PI/(d||h)*2,g=e.get("clockwise"),v=e.get("roseType"),m=e.get("stillShowZeroSum"),y=t.getDataExtent(r);y[0]=0;var x=RC,_=0,b=c,w=g?1:-1;if(t.setLayout({viewRect:i,r:l}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{(r="area"!==v?0===d&&m?f:e*f:RC/h)<p?(r=p,x-=p):_+=e;var i=b+w*r;t.setItemLayout(n,{angle:r,startAngle:b,endAngle:i,clockwise:g,cx:a,cy:s,r0:u,r:v?Mi(e,y,[u,l]):l}),b=i}})),x<RC&&h)if(x<=.001){var S=RC/h;t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=S,r.startAngle=c+w*n*S,r.endAngle=c+w*(n+1)*S}}))}else f=x/_,b=c,t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===p?p:e*f;r.startAngle=b,r.endAngle=b+w*i,b+=w*i}}))}))}var GC=Math.PI/180;function UC(e,t,n,r,i,o,a,s,l,u){if(!(e.length<2)){for(var c=e.length,p=0;p<c;p++)if("outer"===e[p].position&&"labelLine"===e[p].labelAlignTo){var h=e[p].label.x-u;e[p].linePoints[1][0]+=h,e[p].label.x=u}O_(e,l,l+a)&&function(e){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var p=l.label.x-t-l.len2*i,h=r+l.len,f=Math.abs(p)<h?Math.sqrt(c*c/(1-p*p/h/h)):h;u.rB=f,u.maxY=c}u.list.push(l)}d(o),d(a)}(e)}function d(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=r+l.len,p=c*c,h=Math.sqrt((1-Math.abs(u*u/a))*p),d=t+(h+l.len2)*i,f=d-l.label.x;WC(l,l.targetTextWidth-f*i,!0),l.label.x=d}}}function WC(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var r=e.label,i=r.style,o=e.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(t<c||n){var p=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var h=r.getBoundingRect();r.setStyle("width",Math.ceil(h.width)),r.setStyle("backgroundColor",a)}else{var d=t-l,f=t<c?d:n?d>e.unconstrainedWidth?null:d:null;r.setStyle("width",f)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-p)/2}}}function jC(e){return"center"===e.position}function HC(e){var t,n,r=e.getData(),i=[],o=!1,a=(e.get("minShowLabelAngle")||0)*GC,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,p=s.y,h=s.height;function d(e){e.ignore=!0}r.each((function(e){var s=r.getItemGraphicEl(e),p=s.shape,h=s.getTextContent(),f=s.getTextGuideLine(),g=r.getItemModel(e),v=g.getModel("label"),m=v.get("position")||g.get(["emphasis","label","position"]),y=v.get("distanceToLabelLine"),x=v.get("alignTo"),_=Ti(v.get("edgeDistance"),u),b=v.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=Ti(S,u);var k=w.get("length2");if(k=Ti(k,u),Math.abs(p.endAngle-p.startAngle)<a)return ne(h.states,d),void(h.ignore=!0);if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(h)){var C,M,T,A,I=(p.startAngle+p.endAngle)/2,D=Math.cos(I),O=Math.sin(I);t=p.cx,n=p.cy;var E="inside"===m||"inner"===m;if("center"===m)C=p.cx,M=p.cy,A="center";else{var N=(E?(p.r+p.r0)/2*D:p.r*D)+t,L=(E?(p.r+p.r0)/2*O:p.r*O)+n;if(C=N+3*D,M=L+3*O,!E){var P=N+D*(S+l-p.r),R=L+O*(S+l-p.r),B=P+(D<0?-1:1)*k;C="edge"===x?D<0?c+_:c+u-_:B+(D<0?-y:y),M=R,T=[[N,L],[P,R],[B,R]]}A=E?"center":"edge"===x?D>0?"right":"left":D>0?"left":"right"}var V=Math.PI,z=0,F=v.get("rotate");if(de(F))z=F*(V/180);else if("center"===m)z=0;else if("radial"===F||!0===F){z=D<0?-I+V:-I}else if("tangential"===F&&"outside"!==m&&"outer"!==m){var G=Math.atan2(D,O);G<0&&(G=2*V+G),O>0&&(G=V+G),z=G-V}if(o=!!z,h.x=C,h.y=M,h.rotation=z,h.setStyle({verticalAlign:"middle"}),E){h.setStyle({align:A});var U=h.states.select;U&&(U.x+=h.x,U.y+=h.y)}else{var W=h.getBoundingRect().clone();W.applyTransform(h.getComputedTransform());var j=(h.style.margin||0)+2.1;W.y-=j/2,W.height+=j,i.push({label:h,labelLine:f,position:m,len:S,len2:k,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Ur(D,O),linePoints:T,textAlign:A,labelDistance:y,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:W,unconstrainedWidth:W.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:E})}})),!o&&e.get("avoidLabelOverlap")&&function(e,t,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,p=-Number.MAX_VALUE,h=0;h<e.length;h++){var d=e[h].label;jC(e[h])||(d.x<t?(c=Math.min(c,d.x),l.push(e[h])):(p=Math.max(p,d.x),u.push(e[h])))}for(h=0;h<e.length;h++)if(!jC(v=e[h])&&v.linePoints){if(null!=v.labelStyleWidth)continue;d=v.label;var f=v.linePoints,g=void 0;g="edge"===v.labelAlignTo?d.x<t?f[2][0]-v.labelDistance-a-v.edgeDistance:a+i-v.edgeDistance-f[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?d.x<t?c-a-v.bleedMargin:a+i-p-v.bleedMargin:d.x<t?d.x-a-v.bleedMargin:a+i-d.x-v.bleedMargin,v.targetTextWidth=g,WC(v,g)}for(UC(u,t,n,r,1,0,o,0,s,p),UC(l,t,n,r,-1,0,o,0,s,c),h=0;h<e.length;h++){var v;if(!jC(v=e[h])&&v.linePoints){d=v.label,f=v.linePoints;var m="edge"===v.labelAlignTo,y=d.style.padding,x=y?y[1]+y[3]:0,_=d.style.backgroundColor?0:x,b=v.rect.width+_,w=f[1][0]-f[2][0];m?d.x<t?f[2][0]=a+v.edgeDistance+b+v.labelDistance:f[2][0]=a+i-v.edgeDistance-b-v.labelDistance:(d.x<t?f[2][0]=d.x+v.labelDistance:f[2][0]=d.x-v.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=d.y}}}(i,t,n,l,u,h,c,p);for(var f=0;f<i.length;f++){var g=i[f],v=g.label,m=g.labelLine,y=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:g.textAlign}),y&&(ne(v.states,d),v.ignore=!0);var x=v.states.select;x&&(x.x+=v.x,x.y+=v.y)}if(m){var _=g.linePoints;y||!_?(ne(m.states,d),m.ignore=!0):(T_(_,g.minTurnAngle),A_(_,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:_}),v.__hostTarget.textGuideLineConfig={anchor:new Ur(_[0][0],_[0][1])})}}}function YC(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;ue(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:re(r,(function(e){return ai(e,i)}))}}var qC=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var o=new Bs;return i.setTextContent(o),i.updateData(t,n,r,!0),i}return k(t,e),t.prototype.updateData=function(e,t,n,r){var i=this,o=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),u=K(YC(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(oc(i,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,oc(i,{shape:{r:l.r}},o,t)):null!=n?(i.setShape({startAngle:n,endAngle:n}),oc(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(i.shape.endAngle=l.startAngle,ic(i,{shape:{endAngle:l.endAngle}},o,t))}else cc(i),ic(i,{shape:u},o,t);i.useStyle(e.getItemVisual(t,"style")),Il(i,a);var p=(l.startAngle+l.endAngle)/2,h=o.get("selectedOffset"),d=Math.cos(p)*h,f=Math.sin(p)*h,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,e,t),i.ensureState("emphasis").shape=K({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},YC(s.getModel("itemStyle"),l)),K(i.ensureState("select"),{x:d,y:f,shape:YC(a.getModel(["select","itemStyle"]),l)}),K(i.ensureState("blur"),{shape:YC(a.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),m=i.getTextContent();v&&K(v.ensureState("select"),{x:d,y:f}),K(m.ensureState("select"),{x:d,y:f}),Ml(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),o=i.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;Rc(r,Bc(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Iu,this.setTextGuideLine(p)),function(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var o=t.normal,a=o.get("show"),s=i.ignore,l=0;l<js.length;l++){var u=js[l],c=t[u],p="normal"===u;if(c){var h=c.get("show");if((p?s:we(i.states[u]&&i.states[u].ignore,s))||!we(h,a)){var d=p?r:r&&r.states[u];d&&(d.ignore=!0);continue}r||(r=new Iu,e.setTextGuideLine(r),p||!s&&a||I_(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),I_(r,!1,u,c)}}if(r){Q(r.style,n),r.style.fill=null;var f=o.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=f||!1,r.buildPath=D_}}else r&&e.removeTextGuideLine()}(this,function(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<Ws.length;r++){var i=Ws[r];n[i]=e.getModel([i,t])}return n}(i),{stroke:s,opacity:Se(o.get(["lineStyle","opacity"]),l,1)})}},t}(xu),XC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return k(t,e),t.prototype.render=function(e,t,n,r){var i,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var c=new xu({shape:zC(e,n)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(e){var t=new qC(o,e,i);o.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,i),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){uc(a.getItemGraphicEl(t),e,t)})).execute(),HC(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},t.type="pie",t}(pg),ZC=XC;function JC(e,t,n){t=ue(t)&&{coordDimensions:t}||K({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Ty(r,t).dimensions,o=new My(i,e);return o.initData(r,n),o}var KC=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),QC=KC,$C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new QC(se(this.getData,this),se(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return JC(this,{coordDimensions:["value"],encodeDefaulter:le(Nh,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=[];return n.each(n.mapDimension("value"),(function(e){i.push(e)})),r.percent=function(e,t,n){if(!e[t])return 0;var r=ie(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===r)return 0;for(var i=Math.pow(10,n),o=re(e,(function(e){return(isNaN(e)?0:e)/r*i*100})),a=100*i,s=re(o,(function(e){return Math.floor(e)})),l=ie(s,(function(e,t){return e+t}),0),u=re(o,(function(e,t){return e-s[t]}));l<a;){for(var c=Number.NEGATIVE_INFINITY,p=null,h=0,d=u.length;h<d;++h)u[h]>c&&(c=u[h],p=h);++s[p],u[p]=0,++l}return s[t]/i}(i,t,n.hostModel.get("percentPrecision")),r.$vars.push("percent"),r},t.prototype._defaultLabelLine=function(e){ro(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}($f),eM=$C;var tM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return k(t,e),t.prototype.getInitialData=function(e,t){return Ly(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}($f),nM=tM,rM=function(){},iM=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return k(t,e),t.prototype.getDefaultShape=function(){return new rM},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,i=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&i[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],p=r[n++];isNaN(c)||isNaN(p)||(u&&!u.contain(c,p)||(a.x=c-i[0]/2,a.y=p-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(e,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,r=t.size,i=this._ctx,o=this.softClipShape;if(i){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var p=n[c++],h=n[c++];a=Math.min(p,a),l=Math.max(p,l),s=Math.min(h,s),u=Math.max(h,u)}e=this._rect=new Qr(a-i/2,s-o/2,l-a+i,u-s+o)}return e},t}(ss),oM=function(){function e(){this.group=new _i}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=e.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new iM({cursor:"default"});return this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=_v(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<4;e.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=Vs(e);l.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),aM=oM,sM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=nC("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new aM:new Dk,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(pg),lM=sM,uM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(gh),cM=uM,pM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",bo).models[0]},t.type="cartesian2dAxis",t}(gh);ee(pM,Wx);var hM={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},dM=Z({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},hM),fM=Z({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},hM),gM={category:dM,value:fM,time:Z({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fM),log:Q({logBase:10},fM)},vM={value:1,category:1,time:1,log:1};function mM(e,t,n,r){ne(vM,(function(i,o){var a=Z(Z({},gM[o],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return k(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=ch(this),r=n?hh(e):{};Z(e,t.getTheme().get(o+"Axis")),Z(e,this.getDefaultOption()),e.type=yM(e),n&&ph(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Fy.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",yM)}function yM(e){return e.type||(e.data?"category":"value")}var xM=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return re(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),oe(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),_M=["x","y"];function bM(e){return"interval"===e.type||"time"===e.type}var wM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=_M,t}return k(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(bM(e)&&bM(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,p=i[1]-r[0]*u,h=this._transform=[l,0,0,u,c,p];this._invTransform=Or([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Xe(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Xe(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),r=Math.min(t[0],t[1]),i=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-r;return new Qr(n,r,i,o)},t}(xM),SM=wM,kM=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return k(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(y_),CM=kM;function MM(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),p=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,f="x"===u?[p[2]-d,p[3]+d]:[p[0]-d,p[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[h.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[h[l]]:p[0],"x"===u?f[h[l]]:p[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[h[s]]-f[h.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),be(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function TM(e){return"cartesian2d"===e.get("coordinateSystem")}function AM(e){var t={xAxisModel:null,yAxisModel:null};return ne(t,(function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,bo).models[0];if("production"!==process.env.NODE_ENV&&!o)throw new Error(i+' "'+Se(e.get(i+"Index"),e.get(i+"Id"),0)+'" not found');t[r]=o})),t}var IM=Math.log;function DM(e,t,n){var r=$y.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=Px(e,t),u=l.extent,c=l.fixMin,p=l.fixMax;if("log"===e.type){var h=IM(e.base);u=[IM(u[0])/h,IM(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:p});var d=r.getExtent.call(e);c&&(u[0]=d[0]),p&&(u[1]=d[1]);var f=r.getInterval.call(e),g=u[0],v=u[1];if(c&&p)f=(v-g)/a;else if(c)for(v=u[0]+f*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)f=Wy(f),v=u[0]+f*a;else if(p)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=Wy(f),g=u[1]-f*a;else{e.getTicks().length-1>a&&(f=Wy(f));var m=f*a;(g=Ai((v=Math.ceil(u[1]/f)*f)-m))<0&&u[0]>=0?(g=0,v=Ai(m)):v>0&&u[1]<=0&&(v=0,g=-Ai(m))}var y,x,_,b=(i[0].value-o[0].value)/s,w=(i[a].value-o[a].value)/s;if(r.setExtent.call(e,g+f*b,v+f*w),r.setInterval.call(e,f),(b||w)&&r.setNiceExtent.call(e,g+f,v-f),"production"!==process.env.NODE_ENV){var S=r.getTicks.call(e);S[1]&&(y=f,x=Math.pow(10,Bi(Math.abs(y))),0!==(_=Math.abs(y/x))&&1!==_&&2!==_&&3!==_&&5!==_||Oi(S[1].value)>Oi(f))&&Xi("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var OM=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_M,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=ae(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=e[+n[o]],s=a.model,l=a.scale;Gy(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(Rx(l,s),Gy(l)&&(t=a))}i.length&&(t||Rx((t=i.pop()).scale,t.model),ne(i,(function(e){DM(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};ne(n.x,(function(e){NM(n,"y",e,i)})),ne(n.y,(function(e){NM(n,"x",e,i)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=uh(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){ne(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?o.x:o.y)}))}s(),i&&(ne(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof Jy?n.count():(r=n.getTicks()).length;var a,s=e.getLabelModel(),l=Bx(e),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var p=l(r?r[c]:{value:o[0]+c},c),h=zx(s.getTextRect(p),s.get("rotate")||0);a?a.union(h):a=h}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}})),s()),ne(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}fe(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",bo).models[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis",bo).models[0],a=e.gridModel,s=this._coordsList;if(r)$(s,t=r.coordinateSystem)<0&&(t=null);else if(i&&o)t=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,r){if(EM(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new CM(t,function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new Jy({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new yx({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ry.getClass(t)||$y)}}(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[t][r]=u,s[t]++}}}this._axesMap=a,ne(a.x,(function(t,n){ne(a.y,(function(i,o){var a="x"+n+"y"+o,s=new SM(a);s.master=r,s.model=e,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){ne(Ux(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}ne(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(TM(e)){var r=AM(e),i=r.xAxisModel,o=r.yAxisModel;if(!EM(i,t)||!EM(o,t))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return ne(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);$(t,i)<0&&t.push(i),$(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",(function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),t.eachSeries((function(e){if(TM(e)){var t=AM(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel();if("production"!==process.env.NODE_ENV){if(!i)throw new Error('Grid "'+Se(n.get("gridIndex"),n.get("gridId"),0)+'" not found');if(n.getCoordSysModel()!==r.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var o=i.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}})),r},e.dimensions=_M,e}();function EM(e,t){return e.getCoordSysModel()===t}function NM(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)LM(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&LM(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function LM(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}var PM=OM,RM=Math.PI,BM=function(){function e(e,t){this.group=new _i,this.opt=t,this.axisModel=e,Q(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new _i({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!VM[e]},e.prototype.add=function(e){VM[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,o=Ni(t-e);return Li(o)?(i=n>0?"top":"bottom",r="center"):Li(o-RM)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<RM?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),VM={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0];a&&(Xe(s,s,a),Xe(l,l,a));var u=K({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Nu({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var p=t.get(["axisLine","symbol"]);if(null!=p){var h=t.get(["axisLine","symbolSize"]);pe(p)&&(p=[p,p]),(pe(h)||de(h))&&(h=[h,h]);var d=bv(t.get(["axisLine","symbolOffset"])||0,h),f=h[0],g=h[1];ne([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,r){if("none"!==p[r]&&null!=p[r]){var i=_v(p[r],-f/2,-g/2,f,g,u.stroke,!0),o=t.r+t.offset;i.attr({rotation:t.rotate,x:s[0]+o*Math.cos(e.rotation),y:s[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=function(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=UM(i.getTicksCoords(),t.transform,l,Q(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(n,r,t,e),o=function(e,t,n,r){var i=n.axis;if(!be(r.axisLabelShow,n.get(["axisLabel","show"]))||i.scale.isBlank())return;var o=n.getModel("axisLabel"),a=o.get("margin"),s=i.getViewLabels(),l=(be(r.labelRotate,o.get("rotate"))||0)*RM/180,u=BM.innerTextLayout(r.rotation,l,r.labelDirection),c=n.getCategories&&n.getCategories(!0),p=[],h=BM.isLabelSilent(n),d=n.get("triggerEvent");return ne(s,(function(s,l){var f="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,v=s.rawLabel,m=o;if(c&&c[f]){var y=c[f];fe(y)&&y.textStyle&&(m=new op(y.textStyle,o,n.ecModel))}var x=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=i.dataToCoord(f),b=new Bs({x:_,y:r.labelOffset+r.labelDirection*a,rotation:u.rotation,silent:h,z2:10+(s.level||0),style:Vc(m,{text:g,align:m.getShallow("align",!0)||u.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||u.textVerticalAlign,fill:ce(x)?x("category"===i.type?v:"value"===i.type?f+"":f,l):x})});if(b.anid="label_"+f,d){var w=BM.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=v,w.tickIndex=l,"category"===i.type&&(w.dataIndex=f),Vs(b).eventData=w}t.add(b),b.updateTransform(),p.push(b),e.add(b),b.decomposeTransform()})),p}(n,r,t,e);if(function(e,t,n){if(Gx(e.axis))return;var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(t=t||[])[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],p=n[n.length-1],h=n[n.length-2];!1===r?(zM(o),zM(u)):FM(o,a)&&(r?(zM(a),zM(c)):(zM(o),zM(u)));!1===i?(zM(s),zM(p)):FM(l,s)&&(i?(zM(l),zM(h)):(zM(s),zM(p)))}(t,o,i),function(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Q(s.getLineStyle(),Q(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var p=UM(a[c],t.transform,l,u,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Qu(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}(re(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));!function(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new Qr(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var p=o.obb,h=!1,d=0;d<t.length;d++){var f=t[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){h=!0;break}if(f.obb||(f.obb=new Qu(f.localRect,f.transform)),p||(p=new Qu(s,l)),p.intersect(f.obb)){h=!0;break}}}h?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}(a)}},axisName:function(e,t,n,r){var i=be(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,p=t.axis.getExtent(),h=p[0]>p[1]?-1:1,d=["start"===s?p[0]-h*c:"end"===s?p[1]+h*c:(p[0]+p[1])/2,GM(s)?e.labelOffset+l*c:0],f=t.get("nameRotate");null!=f&&(f=f*RM/180),GM(s)?o=BM.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(o=function(e,t,n,r){var i,o,a=Ni(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;Li(a-RM/2)?(o=l?"bottom":"top",i="center"):Li(a-1.5*RM)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*RM&&a>RM/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(e.rotation,s,f||0,p),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=t.get("nameTruncate",!0)||{},m=v.ellipsis,y=be(e.nameTruncateMaxWidth,v.maxWidth,a),x=new Bs({x:d[0],y:d[1],rotation:o.rotation,silent:BM.isLabelSilent(t),style:Vc(u,{text:i,font:g,overflow:"truncate",width:y,ellipsis:m,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Dc({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var _=BM.makeAxisEventDataBase(t);_.targetType="axisName",_.name=i,Vs(x).eventData=_}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function zM(e){e&&(e.ignore=!0)}function FM(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=Cr([]);return Ir(i,i,-e.rotation),n.applyTransform(Tr([],i,e.getLocalTransform())),r.applyTransform(Tr([],i,t.getLocalTransform())),n.intersect(r)}}function GM(e){return"middle"===e||"center"===e}function UM(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(Xe(a,a,t),Xe(s,s,t));var c=new Nu({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});c.anid=i+"_"+e[l].tickValue,o.push(c)}return o}var WM=BM;function jM(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];ne(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=ZM(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(ne(n.getAxes(),le(d,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),p="cross"===u.get(["axisPointer","type"]),h=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||p)&&ne(h.baseAxes,le(d,!p||"cross",c)),p&&ne(h.otherAxes,le(d,"cross",!1))}}function d(r,s,c){var p=c.model.getModel("axisPointer",i),h=p.get("show");if(h&&("auto"!==h||r||XM(p))){null==s&&(s=p.get("triggerTooltip")),p=r?function(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s={};ne(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){s[e]=X(a.get(e))})),s.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&Q(l,c.textStyle)}}return e.model.getModel("axisPointer",new op(s,n,r))}(c,u,i,t,r,s):p;var d=p.get("snap"),f=ZM(c.model),g=s||d||"category"===c.type,v=e.axesInfo[f]={key:f,axis:c,coordSys:n,axisPointerModel:p,triggerTooltip:s,involveSeries:g,snap:d,useHandle:XM(p),seriesModels:[],linkGroup:null};l[f]=v,e.seriesInvolved=e.seriesInvolved||g;var m=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(HM(o[r+"AxisId"],n.id)||HM(o[r+"AxisIndex"],n.componentIndex)||HM(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=m){var y=a[m]||(a[m]={axesInfo:{}});y.axesInfo[f]=v,y.mapper=o[m].mapper,v.linkGroup=y}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&ne(e.coordSysAxesInfo[ZM(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}(n,e),n}function HM(e,t){return"all"===e||ue(e)&&$(e,t)>=0||e===t}function YM(e){var t=qM(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=XM(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function qM(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ZM(e)]}function XM(e){return!!e.get(["handle","show"])}function ZM(e){return e.type+"||"+e.id}var JM={},KM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&YM(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(e){var t=qM(e);return t&&t.axisPointerModel}(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){if("production"!==process.env.NODE_ENV&&JM[e])throw new Error("axisPointer "+e+" exists");JM[e]=t},t.getAxisPointerClass=function(e){return e&&JM[e]},t.type="axis",t}(tg),QM=KM,$M=mo();var eT=["axisLine","axisTickLabel","axisName"],tT=["splitArea","splitLine","minorSplitLine"],nT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return k(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _i,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=MM(a,t),l=new WM(t,K({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(Gy(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},s));ne(eT,l.add,l),this._axisGroup.add(l.getGroup()),ne(tT,(function(e){t.get([e,"show"])&&rT[e](this,this._axisGroup,t,a)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Mc(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){$M(this).splitAreaColors=null},t.type="cartesianAxis",t}(QM),rT={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=ue(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,p=i.getTicksCoords({tickModel:o}),h=[],d=[],f=a.getLineStyle(),g=0;g<p.length;g++){var v=i.toGlobalCoord(p[g].coord);u?(h[0]=v,h[1]=l.y,d[0]=v,d[1]=l.y+l.height):(h[0]=l.x,h[1]=v,d[0]=l.x+l.width,d[1]=v);var m=c++%s.length,y=p[g].tickValue;t.add(new Nu({anid:null!=y?"line_"+p[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:Q({stroke:s[m]},f),silent:!0}))}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],p=o.getLineStyle(),h=0;h<l.length;h++)for(var d=0;d<l[h].length;d++){var f=i.toGlobalCoord(l[h][d].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f),t.add(new Nu({anid:"minor_line_"+l[h][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:p,silent:!0}))}},splitArea:function(e,t,n,r){!function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,p=$M(e).splitAreaColors,h=Ee(),d=0;if(p)for(var f=0;f<u.length;f++){var g=p.get(u[f].tickValue);if(null!=g){d=(g+(c-1)*f)%c;break}}var v=i.toGlobalCoord(u[0].coord),m=a.getAreaStyle();for(s=ue(s)?s:[s],f=1;f<u.length;f++){var y=i.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;i.isHorizontal()?(x=v,_=l.y,b=y-x,w=l.height,v=x+b):(x=l.x,_=v,b=l.width,v=_+(w=y-_));var S=u[f-1].tickValue;null!=S&&h.set(S,d),t.add(new ws({anid:null!=S?"area_"+S:null,shape:{x:x,y:_,width:b,height:w},style:Q({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}$M(e).splitAreaColors=h}}}(e,t,n,r)}},iT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.type="xAxis",t}(nT),oT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=iT.type,t}return k(t,e),t.type="yAxis",t}(nT),aT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return k(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new ws({shape:e.coordinateSystem.getRect(),style:Q({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(tg),sT={offset:0};function lT(e){e.registerComponentView(aT),e.registerComponentModel(cM),e.registerCoordinateSystem("cartesian2d",PM),mM(e,"x",pM,sT),mM(e,"y",pM,sT),e.registerComponentView(iT),e.registerComponentView(oT),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function uT(e){Yx(lT),e.registerSeriesModel(nM),e.registerChartView(lM),e.registerLayout(nC("scatter"))}var cT="\0_ec_interaction_mutex";function pT(e,t){return!!function(e){return e[cT]||(e[cT]={})}(e)[t]}Ym({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Re);var hT=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=se(n._mousedownHandler,n),i=se(n._mousemoveHandler,n),o=se(n._mouseupHandler,n),a=se(n._mousewheelHandler,n),s=se(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Q(X(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",i),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return k(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(vt(e)||e.target&&e.target.draggable)){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&gT("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!pT(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,o=t-r,a=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&gt(e.event),fT(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){vt(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=gT("zoomOnMouseWheel",e,this._opt),n=gT("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),o=e.offsetX,a=e.offsetY;if(0!==r&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1;dT(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(r);dT(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){pT(this._zr,"globalPan")||dT(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(tt);function dT(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(gt(r.event),fT(e,t,n,r,i))}function fT(e,t,n,r,i){i.isAvailableBehavior=se(gT,null,n,r),e.trigger(t,i)}function gT(e,t,n){var r=n[e];return!e||r&&(!pe(r)||t.event[r+"Key"])}var vT=hT;var mT,yT={axisPointer:1,tooltip:1,brush:1};function xT(e){pe(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var _T={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},bT=ae(_T),wT={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ST=ae(wT),kT=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=xT(e);if("production"!==process.env.NODE_ENV&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var r=new _i;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),DT(n,r,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var p=LT(o);p.length>=4&&(l={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(l&&null!=a&&null!=s&&(u=zT(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var h=r;(r=new _i).add(h),h.scaleX=h.scaleY=u.scale,h.x=u.x,h.y=u.y}return t.ignoreRootClip||null==a||null==s||r.setClipPath(new ws({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,o){var a,s=e.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!i){var u=mT[s];if(u&&Pe(mT,s)){a=u.call(this,e,t);var c=e.getAttribute("name");if(c){var p={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(p),"g"===s&&(l=p)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});t.add(a)}}var h=CT[s];if(h&&Pe(CT,s)){var d=h.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},e.prototype._parseText=function(e,t){var n=new cs({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});AT(t,n),DT(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",e.style.textBaseline=i}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=void(mT={g:function(e,t){var n=new _i;return AT(t,n),DT(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new ws;return AT(t,n),DT(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new eu;return AT(t,n),DT(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Nu;return AT(t,n),DT(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new ru;return AT(t,n),DT(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=IT(r));var i=new Mu({shape:{points:n||[]},silent:!0});return AT(t,i),DT(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=IT(r));var i=new Iu({shape:{points:n||[]},silent:!0});return AT(t,i),DT(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new fs;return AT(t,n),DT(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new _i;return AT(t,a),DT(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new _i;return AT(t,a),DT(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(e,t){var n=Kl(e.getAttribute("d")||"");return AT(t,n),DT(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),e}(),CT={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),o=new Hu(t,n,r,i);return MT(e,o),TT(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new Yu(t,n,r);return MT(e,i),TT(e,i),i}};function MT(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function TT(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};VT(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function AT(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Q(t.__inheritedStyle,e.__inheritedStyle))}function IT(e){for(var t=LT(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),o=parseFloat(t[r+1]);n.push([i,o])}return n}function DT(e,t,n,r,i){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(PT,(function(e,t,n){return r.push(t,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=LT(a);switch(i=i||[1,0,0,1,0,0],s){case"translate":Ar(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Dr(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ir(i,i,-parseFloat(l[0])*RT);break;case"skewX":Tr(i,[1,0,Math.tan(parseFloat(l[0])*RT),1,0,0],i);break;case"skewY":Tr(i,[1,Math.tan(parseFloat(l[0])*RT),0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}t.setLocalTransform(i)}}(e,t),VT(e,a,s),r||function(e,t,n){for(var r=0;r<bT.length;r++){var i=bT[r];null!=(o=e.getAttribute(i))&&(t[_T[i]]=o)}for(r=0;r<ST.length;r++){var o;i=ST[r];null!=(o=e.getAttribute(i))&&(n[wT[i]]=o)}}(e,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=ET(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=ET(o,"stroke",a.stroke,n)),ne(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(o.style[e]=parseFloat(a[e]))})),ne(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(o.style[e]=a[e])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=re(LT(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var OT=/^url\(\s*#(.*?)\)/;function ET(e,t,n,r){var i=n&&n.match(OT);if(!i)return"none"===n&&(n=null),n;var o=Te(i[1]);r.push([e,t,o])}var NT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function LT(e){return e.match(NT)||[]}var PT=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,RT=Math.PI/180;var BT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function VT(e,t,n){var r,i=e.getAttribute("style");if(i)for(BT.lastIndex=0;null!=(r=BT.exec(i));){var o=r[1],a=Pe(_T,o)?_T[o]:null;a&&(t[a]=r[2]);var s=Pe(wT,o)?wT[o]:null;s&&(n[s]=r[2])}}function zT(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}var FT=Ee(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),GT=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Ee(),this._freedGraphics=[],this._mapName=e,this._parsedXML=xT(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function(e){var t=[],n=Ee();return ne(e,(function(e){if(null==e.namedFrom){var r=new n_(e.name,e.el);t.push(r),n.set(e.name,r)}})),{regions:t,regionsMap:n}}(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,r,i;try{Me(null!=(n=(t=e&&(r=e,i={ignoreViewBox:!0,ignoreRootClip:!0},(new kT).parse(r,i))||{}).root))}catch(e){throw new Error("Invalid svg format\n"+e.message)}var o=new _i;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=t.width,s=t.height,l=t.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,p=void 0,h=void 0,d=void 0;if(null!=a?(c=0,h=a):l&&(c=l.x,h=l.width),null!=s?(p=0,d=s):l&&(p=l.y,d=l.height),null==c||null==p){var f=n.getBoundingRect();null==c&&(c=f.x,h=f.width),null==p&&(p=f.y,d=f.height)}u=this._boundingRect=new Qr(c,p,h,d)}if(l){var g=zT(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new ws({shape:u.plain()}));var v=[];return ne(t.named,(function(e){var t;null!=FT.get(e.svgNodeTagLower)&&(v.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse((function(e){e.silent=!1})))})),{root:o,boundingRect:u,named:v}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();for(var UT=[126,25],WT="南海诸岛",jT=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],HT=0;HT<jT.length;HT++)for(var YT=0;YT<jT[HT].length;YT++)jT[HT][YT][0]/=10.5,jT[HT][YT][1]/=-14,jT[HT][YT][0]+=UT[0],jT[HT][YT][1]+=UT[1];var qT={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var XT=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var ZT=function(){function e(e,t,n){var r;this.type="geoJSON",this._parsedMap=Ee(),this._mapName=e,this._specialAreas=n,this._geoJSON=pe(r=t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:JT(r)})}var i=Ee(),o=[];return ne(n.regions,(function(t){var n=t.name;e&&Pe(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),i.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new Qr(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,r=this._geoJSON;try{t=r?o_(r,e):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===WT)return;t.push(new t_(WT,re(jT,(function(e){return{type:"polygon",exterior:e}})),UT))}}(n,t),ne(t,(function(e){var t=e.name;!function(e,t){if("china"===e){var n=qT[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}(n,e),function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:XT[0]})}(n,e);var r=this._specialAreas&&this._specialAreas[t];r&&e.transformTo(r.left,r.top,r.width,r.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function JT(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();(t=t||r.clone()).union(r)}return t}var KT=Ee(),QT=function(e,t,n){if(t.svg){var r=new GT(e,t.svg);KT.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;r=new ZT(e,i,n);KT.set(e,r)}},$T=function(e){return KT.get(e)},eA=function(e){var t=KT.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},tA=function(e,t,n){var r=KT.get(e);if(r)return r.load(t,n);"production"!==process.env.NODE_ENV&&console.error("Map "+e+" not exists. The GeoJSON of the map must be provided.")},nA=["rect","circle","line","ellipse","polygon","polyline","path"],rA=Ee(nA),iA=Ee(nA.concat(["g"])),oA=Ee(nA.concat(["g"])),aA=mo();function sA(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function lA(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var uA=function(){function e(e){var t=new _i;this.uid=sp("ec_map_draw"),this._controller=new vT(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new _i),t.add(this._svgGroup=new _i)}return e.prototype.draw=function(e,t,n,r,i){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),p=c.raw,h=c.roam;!l.childAt(0)||i?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):ic(u,h,e);var d=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:p};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Ee(),n=Ee(),r=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function c(e){for(var t=[],n=!l&&s&&s.project,r=0;r<e.length;++r){var i=u(e[r],n);i&&t.push(i)}return t}function p(e){return{shape:{points:c(e)}}}r.removeAll(),ne(e.geo.regions,(function(i){var c=i.name,h=t.get(c),d=n.get(c)||{},f=d.dataIdx,g=d.regionModel;h||(h=t.set(c,new _i),r.add(h),f=a?a.indexOfName(c):null,g=e.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var v=[],m=[];ne(i.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=gA(t,l)),ne(t,(function(e){v.push(new Mu(p(e)))}))}else{var n=e.points;l&&(n=gA(n,l,!0)),ne(n,(function(e){m.push(new Iu(p(e)))}))}}));var y=u(i.getCenter(),s&&s.project);function x(t,n){if(t.length){var r=new Wu({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});h.add(r),cA(e,r,f,g),pA(e,r,c,g,o,f,y),n&&(lA(r),ne(r.states,lA))}}x(v),x(m,!0)})),t.each((function(t,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;hA(e,t,r,s,o,a),dA(e,t,r,s,o),fA(e,t,r,s,o)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=Ee(),i=!1;ne(this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);(null!=rA.get(s)&&l instanceof sa&&cA(e,l,u,c),l instanceof sa&&(l.culling=!0),l.z2EmphasisLift=0,t.namedFrom)||(null!=oA.get(s)&&pA(e,l,n,c,o,u,null),hA(e,l,n,c,o,u),dA(e,l,n,c,o),null!=iA.get(s)&&("self"===fA(e,l,n,c,o)&&(i=!0),(r.get(n)||r.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){cl(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=$T(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=$T(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}i.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,function(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}(o,e.dx,e.dy),n.dispatchAction(K(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,function(e,t,n,r){var i=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}(o,e.scale,e.originX,e.originY),n.dispatchAction(K(s(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(t,i,o){return r.containPoint([i,o])&&!function(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!yT.hasOwnProperty(r.mainType)&&i&&i.model!==n}(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=aA(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){i._mouseDownFlag=!0})),t.on("click",(function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},e}();function cA(e,t,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=sA(i),u=sA(o),c=sA(s),p=sA(a),h=e.data;if(h){var d=h.getItemVisual(n,"style"),f=h.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),f&&(l.decal=Hv(f,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=p,cl(t)}function pA(e,t,n,r,i,o,a){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var p=l?n:o,h=void 0;(!s||o>=0)&&(h=i);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Rc(t,Bc(r),{labelFetcher:h,labelDataIndex:p,defaultText:n},d);var f=t.getTextContent();if(f&&(aA(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function hA(e,t,n,r,i,o){e.data?e.data.setItemGraphicEl(o,t):Vs(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function dA(e,t,n,r,i){e.data||Dc({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function fA(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Ml(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&function(e,t,n){var r=Vs(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}(t,i,n),a}function gA(e,t,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),ne(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}var vA=uA,mA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id)(o=this._mapDraw)&&i.add(o.group);else if(e.needsDrawMap){var o=this._mapDraw||new vA(n);i.add(o.group),o.draw(e,t,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new eu({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var u=e.mainSeries.getData(),c=r.getName(n),p=u.indexOfName(c),h=r.getItemModel(n),d=h.getModel("label"),f=u.getItemGraphicEl(p);Rc(l,Bc(h),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(p,n)}},defaultText:c}),l.disableLabelAnimation=!0,d.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(e){ll(l,e)}}i.add(l)}}}))},t.type="map",t}(pg),yA=mA,xA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return k(t,e),t.prototype.getInitialData=function(e){for(var t=JC(this,{coordDimensions:["value"],encodeDefaulter:le(Nh,this)}),n=Ee(),r=[],i=0,o=t.count();i<o;i++){var a=t.getName(i);n.set(a,!0)}return ne(tA(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(e){var t=e.name;n.get(t)||r.push(t)})),t.appendValues([],r),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),o=r.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Of("section",{header:s.join(", "),noHeader:!s.length,blocks:[Of("nameValue",{name:o,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=_v(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}($f),_A=xA;function bA(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),ne(t,(function(e,t){for(var n,r,i,o=(n=re(e,(function(e){return e.getData()})),r=e[0].get("mapValueCalculation"),i={},ne(n,(function(e){e.each(e.mapDimension("value"),(function(t,n){var r="ec-"+e.getName(n);i[r]=i[r]||[],isNaN(t)||i[r].push(t)}))})),n[0].map(n[0].mapDimension("value"),(function(e,t){for(var o="ec-"+n[0].getName(t),a=0,s=1/0,l=-1/0,u=i[o].length,c=0;c<u;c++)s=Math.min(s,i[o][c]),l=Math.max(l,i[o][c]),a+=i[o][c];return 0===u?NaN:"min"===r?s:"max"===r?l:"average"===r?a/u:a}))),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=0===a&&!e[a].getHostGeoModel(),e[a].setData(o.cloneShallow()),e[a].mainSeries=e[0]}))}function wA(e){var t={};e.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var i={};ne(n.seriesGroup,(function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),(function(e,t){var o=r.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(t,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!i[t],o.setItemLayout(e,n)})),t[r]=!0}}))}var SA=Xe,kA=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new zr,n._rawTransformable=new zr,n.name=t,n}return k(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new Qr(e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new Qr(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new Qr(e,t,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e){e&&(this._center=e,this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=Xe([],r,e),n=Xe([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),Mr(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Or(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new zr;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?SA(n,e,r):function(e,t){return e[0]=t[0],e[1]=t[1],e}(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?SA([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=CA(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=CA(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(zr);function CA(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var MA=kA,TA={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},AA=["lng","lat"],IA=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.dimensions=AA,i.type="geo",i._nameCoordMap=Ee(),i.map=n;var o,a=r.projection,s=tA(n,r.nameMap,r.nameProperty),l=$T(n),u=i.resourceType=l?l.type:null,c=i.regions=s.regions,p=TA[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,"production"!==process.env.NODE_ENV&&a&&("geoSVG"===u&&("production"!==process.env.NODE_ENV&&Xi("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),a=null),a.project&&a.unproject||("production"!==process.env.NODE_ENV&&Xi("project and unproject must be both provided in the projeciton."),a=null)),i.projection=a,a)for(var h=0;h<c.length;h++){var d=c[h].getBoundingRect(a);(o=o||d.clone()).union(d)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:we(r.aspectScale,p.aspectScale),i._invertLongitute=!a&&p.invertLongitute,i}return k(t,e),t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new Qr(e,t,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if("geoJSON"===r.type&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(pe(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=DA(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=DA(t);return r===this?r.pointToData(n):null},t}(MA);function DA(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",bo).models[0]||{}).coordinateSystem:null}ee(IA,MA);var OA=IA;function EA(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(e,t,n,a){for(var s=n-e,l=a-t,u=0;u<=100;u++){var c=u/100,p=o.project([e+s*c,t+l*c]);Ze(r,r,p),Je(i,i,p)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else"production"!==process.env.NODE_ENV&&console.error("Invalid boundingCoords")}var p,h,d,f=this.getBoundingRect(),g=e.get("layoutCenter"),v=e.get("layoutSize"),m=t.getWidth(),y=t.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&v&&(p=[Ti(g[0],m),Ti(g[1],y)],h=Ti(v,Math.min(m,y)),isNaN(p[0])||isNaN(p[1])||isNaN(h)?"production"!==process.env.NODE_ENV&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):_=!0),_)d={},x>1?(d.width=h,d.height=h/x):(d.height=h,d.width=h*x),d.y=p[1]-d.height/2,d.x=p[0]-d.width/2;else{var b=e.getBoxLayoutParams();b.aspect=x,d=uh(b,{width:m,height:y})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}var NA=function(){function e(){this.dimensions=AA}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,i){var o=e.get("map"),a=new OA(o+i,o,K({nameMap:e.get("nameMap")},r(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=EA,a.resize(e,t)})),e.eachSeries((function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),ne(i,(function(e,i){var o=re(e,(function(e){return e.get("nameMap")})),a=new OA(i,i,K({nameMap:J(o)},r(e[0])));a.zoomLimit=be.apply(null,re(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=EA,a.resize(e[0],t),ne(e,(function(e){e.coordinateSystem=a,function(e,t){ne(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),o=Ee(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);return ne(tA(t,n,r).regions,(function(e){var t=e.name;!o.get(t)&&i.push({name:t})})),i},e}(),LA=new NA,PA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.prototype.init=function(e,t,n){var r=$T(e.map);if(r&&"geoJSON"===r.type){var i=e.itemStyle=e.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(e,n),ro(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=LA.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=ie(t.regions||[],(function(t,r){var i=r.name;return i&&(t.set(i,new op(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t}),Ee()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new op(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:e};return ce(r)?(i.status=t,r(i)):pe(r)?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(gh),RA=PA;function BA(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}var VA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return k(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new vA(n));var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=e.get("silent"),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;sv(e.target,(function(e){return null!=(t=Vs(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse((function(e){var t=Vs(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(tg),zA=VA;function FA(e,t,n){QT(e,t,n)}function GA(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name),ne(n.coordinateSystem.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}));var o=[];ne(r,(function(e,t){r[t]&&o.push(t)})),i.push({geoIndex:n.componentIndex,name:o})})),{selected:r,allSelected:i,name:e.name}}))}e.registerCoordinateSystem("geo",LA),e.registerComponentModel(RA),e.registerComponentView(zA),e.registerImpl("registerMap",FA),e.registerImpl("getMap",(function(e){return eA(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){var r=t.coordinateSystem;if("geo"===r.type){var i=function(e,t,n){var r=e.getZoom(),i=e.getCenter(),o=t.zoom,a=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);if(null!=t.dx&&null!=t.dy&&(a[0]-=t.dx,a[1]-=t.dy,e.setCenter(BA(e,a))),null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(r*o,l),s)/r}e.scaleX*=o,e.scaleY*=o;var u=(t.originX-e.x)*(o-1),c=(t.originY-e.y)*(o-1);e.x-=u,e.y-=c,e.updateTransform(),e.setCenter(BA(e,a)),e.setZoom(o*r)}return{center:e.getCenter(),zoom:e.getZoom()}}(r,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom),"series"===n&&ne(t.seriesGroup,(function(e){e.setCenter(i.center),e.setZoom(i.zoom)}))}}))}))}var UA=ne,WA=fe,jA=-1,HA=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=X(t);this.type=r,this.mappingMethod=n,this._normalizeData=tI[n];var o=e.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(YA(i),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,ne(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(i)):"category"===n?i.categories?function(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(UA(t,(function(e,t){n[e]=t})),!ue(r)){var i=[];fe(r)?UA(r,(function(e,t){var r=n[t];i[null!=r?r:jA]=e})):i[-1]=r,r=eI(e,i)}for(var o=t.length-1;o>=0;o--)null==r[o]&&(delete n[t[o]],t.pop())}(i):YA(i,!0):(Me("linear"!==n||i.dataExtent),YA(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return se(this._normalizeData,this)},e.listVisualTypes=function(){return ae(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){fe(e)?ne(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,o=ue(t)?[]:fe(t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(r,e,t);i?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,r={};return t&&UA(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(ue(e))e=e.slice();else{if(!WA(e))return[];var t=[];UA(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||pe(s)&&s===e+"")return o;n&&p(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(nI(c[1],e,u[1]))return o}else if(u[1]===1/0){if(nI(c[0],u[0],e))return o}else if(nI(c[0],u[0],e)&&nI(c[1],e,u[1]))return o;n&&p(u[0],o),n&&p(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function p(t,n){var o=Math.abs(t-e);o<i&&(i=o,r=n)}},e.visualHandlers={color:{applyVisual:ZA("color"),getColorMapper:function(){var e=this.option;return se("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),JA.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=Ln(t,e.parsedVisual,r),i?r:Rn(r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Rn(Ln(e,this.option.parsedVisual),"rgba")},category:JA,piecewise:function(e,t){var n=$A.call(this,t);return null==n&&(n=Rn(Ln(e,this.option.parsedVisual),"rgba")),n},fixed:KA}},colorHue:qA((function(e,t){return Pn(e,t)})),colorSaturation:qA((function(e,t){return Pn(e,null,t)})),colorLightness:qA((function(e,t){return Pn(e,null,null,t)})),colorAlpha:qA((function(e,t){return function(e,t){var n=On(e);if(n&&null!=t)return n[3]=bn(t),Rn(n,"rgba")}(e,t)})),decal:{applyVisual:ZA("decal"),_normalizedToVisual:{linear:null,category:JA,piecewise:null,fixed:null}},opacity:{applyVisual:ZA("opacity"),_normalizedToVisual:QA([0,1])},liftZ:{applyVisual:ZA("liftZ"),_normalizedToVisual:{linear:KA,category:KA,piecewise:KA,fixed:KA}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:XA,category:JA,piecewise:function(e,t){var n=$A.call(this,t);return null==n&&(n=XA.call(this,e)),n},fixed:KA}},symbolSize:{applyVisual:ZA("symbolSize"),_normalizedToVisual:QA([0,1])}},e}();function YA(e,t){var n=e.visual,r=[];fe(n)?UA(n,(function(e){r.push(e)})):null!=n&&r.push(n);t||1!==r.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(r[1]=r[0]),eI(e,r)}function qA(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:QA([0,1])}}function XA(e){var t=this.option.visual;return t[Math.round(Mi(e,[0,1],[0,t.length-1],!0))]||{}}function ZA(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function JA(e){var t=this.option.visual;return t[this.option.loop&&e!==jA?e%t.length:e]}function KA(){return this.option.visual[0]}function QA(e){return{linear:function(t){return Mi(t,e,this.option.visual,!0)},category:JA,piecewise:function(t,n){var r=$A.call(this,n);return null==r&&(r=Mi(t,e,this.option.visual,!0)),r},fixed:KA}}function $A(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[HA.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function eI(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=re(t,(function(e){var t=On(e);return t||"production"===process.env.NODE_ENV||Xi("'"+e+"' is an illegal color, fallback to '#000000'",!0),t||[0,0,0,1]}))),t}var tI={linear:function(e){return Mi(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=HA.findPieceIndex(e,t,!0);if(null!=n)return Mi(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?jA:t},fixed:Re};function nI(e,t,n){return e?t<=n:t<n}var rI=HA;function iI(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function oI(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var aI=mo(),sI=X,lI=se,uI=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var p=le(cI,t,c);this.updatePointerEl(a,l,p),this.updateLabelEl(a,l,p,t)}else a=this._group=new _i,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);fI(a,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=qM(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var o=aI(e).pointerEl=new Nc[i.type](sI(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=aI(e).labelEl=new Bs(sI(t.label));e.add(i),hI(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=aI(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=aI(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),hI(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=Tc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){gt(e.event)},onmousedown:lI(this._onHandleDragMove,this,0,0),drift:lI(this._onHandleDragMove,this),ondragend:lI(this._onHandleDragEnd,this)}),r.add(i)),fI(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");ue(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,vg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){cI(this._axisPointerModel,!t&&this._moveAnimation,this._handle,dI(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(dI(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(dI(r)),aI(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),mg(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function cI(e,t,n,r){pI(aI(n).lastProp,r)||(aI(n).lastProp=r,t?ic(n,r,e):(n.stopAnimation(),n.attr(r)))}function pI(e,t){if(fe(e)&&fe(t)){var n=!0;return ne(t,(function(t,r){n=n&&pI(e[r],t)})),!!n}return e===t}function hI(e,t){e[t.get(["label","show"])?"show":"hide"]()}function dI(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function fI(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}function gI(e,t,n,r,i){var o=vI(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Xp(a.get("padding")||0),l=a.getFont(),u=ni(o,l),c=i.position,p=u.width+s[1]+s[3],h=u.height+s[0]+s[2],d=i.align;"right"===d&&(c[0]-=p),"center"===d&&(c[0]-=p/2);var f=i.verticalAlign;"bottom"===f&&(c[1]-=h),"middle"===f&&(c[1]-=h/2),function(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,p,h,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:Vc(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function vI(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:Vx(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};ne(r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)})),pe(a)?o=a.replace("{value}",o):ce(a)&&(o=a(s))}return o}function mI(e,t,n){var r=[1,0,0,1,0,0];return Ir(r,r,n.rotation),Ar(r,r,n.position),Sc([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}var yI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return k(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=xI(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=function(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}(r),p=_I[s](o,u,l);p.style=c,e.graphicKey=p.type,e.pointer=p}!function(e,t,n,r,i,o){var a=WM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),gI(t,r,i,o,{position:mI(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(t,e,MM(a.model,n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=MM(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=mI(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=xI(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,p=[c,c];p[l]=u[l];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:p,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(uI);function xI(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var _I={line:function(e,t,n){var r,i,o;return{type:"Line",subPixelOptimize:!0,shape:(r=[t,n[0]],i=[t,n[1]],o=bI(e),{x1:r[o=o||0],y1:r[1-o],x2:i[o],y2:i[1-o]})}},shadow:function(e,t,n){var r,i,o,a=Math.max(1,e.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(r=[t-a/2,n[0]],i=[a,s],o=bI(e),{x:r[o=o||0],y:r[1-o],width:i[o],height:i[1-o]})}}};function bI(e){return"x"===e.dim?0:1}var wI=yI,SI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(gh),kI=SI,CI=mo(),MI=ne;function TI(e,t,n){if(!A.node){var r=t.getZr();CI(r).records||(CI(r).records={}),function(e,t){if(CI(e).initialized)return;function n(n,r){e.on(n,(function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);MI(CI(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)}))}CI(e).initialized=!0,n("click",le(II,"click")),n("mousemove",le(II,"mousemove")),n("globalout",AI)}(r,t),(CI(r).records[e]||(CI(r).records[e]={})).handler=n}}function AI(e,t,n){e.handler("leave",null,n)}function II(e,t,n,r){t.handler(e,n,r)}function DI(e,t){if(!A.node){var n=t.getZr();(CI(n).records||{})[e]&&(CI(n).records[e]=null)}}var OI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";TI("axisPointer",n,(function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){DI("axisPointer",t)},t.prototype.dispose=function(e,t){DI("axisPointer",t)},t.type="axisPointer",t}(tg),EI=OI;function NI(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=vo(o,e);if(null==a||a<0||ue(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,p=u.dim,h="x"===c||"radius"===c?1:0,d=o.mapDimension(p),f=[];f[h]=o.get(d,a),f[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(re(l.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var LI=mo();function PI(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||se(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){FI(i)&&(i=NI({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=FI(i),u=o.axesInfo,c=s.axesInfo,p="leave"===r||FI(i),h={},d={},f={list:[],map:{}},g={showPointer:le(BI,d),showTooltip:le(VI,f)};ne(s.coordSysMap,(function(e,t){var n=l||e.containPoint(i);ne(s.coordSysAxesInfo[t],(function(e,t){var r=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(u,e);if(!p&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&RI(e,a,g,!1,h)}}))}));var v={};return ne(c,(function(e,t){var n=e.linkGroup;n&&!d[t]&&ne(n.axesInfo,(function(t,r){var i=d[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,zI(t),zI(e)))),v[e.key]=o}}))})),ne(v,(function(e,t){RI(c[t],e,g,!0,h)})),function(e,t,n){var r=n.axesInfo=[];ne(t,(function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}(d,c,h),function(e,t,n,r){if(FI(t)||!e.list.length)return void r({type:"hideTip"});var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}(f,i,e,a),function(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=LI(r)[i]||{},a=LI(r)[i]={};ne(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&ne(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];ne(o,(function(e,t){!a[t]&&l.push(e)})),ne(a,(function(e,t){!o[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),h}}function RI(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return ne(t.seriesModels,(function(t,l){var u,c,p=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var h=t.getAxisTooltipData(p,e,n);c=h.dataIndices,u=h.nestestValue}else{if(!(c=t.getData().indicesOfNearest(p[0],e,"category"===n.type?.5:null)).length)return;u=t.getData().get(p[0],c[0])}if(null!=u&&isFinite(u)){var d=e-u,f=Math.abs(d);f<=a&&((f<a||d>=0&&s<0)&&(a=f,s=d,i=u,o.length=0),ne(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:i}}(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&K(i,s[0]),!r&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function BI(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function VI(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=ZM(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function zI(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function FI(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function GI(e){QM.registerAxisPointerClass("CartesianAxisPointer",wI),e.registerComponentModel(kI),e.registerComponentView(EI),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!ue(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=jM(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},PI)}var UI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(gh),WI=UI;function jI(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function HI(e){if(A.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var YI=HI(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function qI(e,t){if(!e)return t;t=qp(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var XI=qI(HI(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),ZI=qI(YI,"transform"),JI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(A.transform3dSupported?"will-change:transform;":"");function KI(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!A.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=A.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+ZI+":"+a+";":[["top",0],["left",0],[YI,a]]}function QI(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),p=Ff(e,"html"),h=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+h),t&&i&&r.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=A.transformSupported?","+ZI+r:",left"+r+",top"+r),XI+":"+i}(i,n)),o&&r.push("background-color:"+o),ne(["width","color","radius"],(function(t){var n="border-"+t,i=qp(n),o=e.get(i);null!=o&&r.push(n+":"+o+("color"===t?"":"px"))})),r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),ne(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}(c)),null!=p&&r.push("padding:"+Xp(p).join("px ")+"px"),r.join(";")+";"}function $I(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&function(e,t,n,r,i){at(ot,t,r,i,!0)&&at(e,n,ot[0],ot[1])}(e,a,document.body,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var eD=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,A.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;$I(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(r):e.appendChild(r),this._container=e;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=i.handler;ft(i.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=function(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}(t,"position"),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative"),e.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=JI+QI(e,!this._firstShow,this._longHide)+KI(i[0],i[1],!0)+"border-color:"+nh(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var o=this.el;if(null!=e){var a="";if(pe(i)&&"item"===n.get("trigger")&&!jI(n)&&(a=function(e,t,n){if(!pe(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=nh(t);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=ZI+":";$(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var p=a*Math.PI/180,h=l+i,d=h*Math.abs(Math.cos(p))+h*Math.abs(Math.sin(p)),f=t+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;",(u+=";"+s+":-"+Math.round(100*((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-h)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),pe(e))o.innerHTML=e+a;else if(e){o.innerHTML="",ue(e)||(e=[e]);for(var s=0;s<e.length;s++)me(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if($I(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;ne(KI(n[0],n[1]),(function(e){r[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",A.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(se(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}(),tD=eD,nD=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),oD(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){e.get("alwaysShowContent")&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var o=this;fe(e)&&$i("production"!==process.env.NODE_ENV?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Bs({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Ff(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),ne(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),ne(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=iD(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;oD(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,o=rD(i.borderWidth||0),a=iD(i);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(se(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function rD(e){return Math.max(0,e)}function iD(e){var t=rD(e.shadowBlur||0),n=rD(e.shadowOffsetX||0),r=rD(e.shadowOffsetY||0);return{left:rD(t-n),right:rD(t+n),top:rD(t-r),bottom:rD(t+r)}}function oD(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var aD=nD,sD=new ws({shape:{x:-1,y:-1,width:2,height:2}}),lD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.prototype.init=function(e,t){if(!A.node&&t.getDom()){var n,r=e.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?A.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new aD(t):new tD(t.getDom(),t,{appendToBody:r.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!A.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?vg(this,"_updatePosition",50,"fixRate"):mg(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");TI("itemTooltip",this._api,se((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!A.node&&n.getDom()){var i=cD(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(e,t,n){var r=_o(e).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o,a=wo(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse((function(t){var n=Vs(t).tooltipConfig;if(n&&n.name===e.name)return o=t,!0})),o)return{componentMainType:i,componentIndex:a.componentIndex,el:o}}(r,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=sD;l.x=r.x,l.y=r.y,l.update(),Vs(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=NI(r,t),c=u.point[0],p=u.point[1];null!=c&&null!=p&&this._tryShow({offsetX:c,offsetY:p,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(cD(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s)if("axis"===uD([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var i,o;this._lastDataByCoordSys=null,sv(n,(function(e){return null!=Vs(e).dataIndex?(i=e,!0):null!=Vs(e).tooltipConfig?(o=e,!0):void 0}),!0),i?this._showSeriesItemTooltip(e,i,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=se(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],o=uD([t.tooltipOption],r),a=this._renderMode,s=[],l=Of("section",{blocks:[],noHeader:!0}),u=[],c=new Gf;ne(e,(function(e){ne(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=vI(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),p=Of("section",{header:o,noHeader:!Te(o),sortBlocks:!0,blocks:[]});l.blocks.push(p),ne(e.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=h.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=Vx(t.axis,{value:i}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",nh(f.color),a);var g=$d(h.formatTooltip(d,!0,null)),v=g.frag;if(v){var m=uD([h],r).get("valueFormatter");p.blocks.push(m?K({valueFormatter:m},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var p=t.position,h=o.get("order"),d=Bf(l,c,a,h,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,p,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],p,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Vs(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),p=this._renderMode,h=e.positionDefault,d=uD([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new Gf;g.marker=v.makeTooltipMarker("item",nh(g.color),p);var m=$d(s.formatTooltip(l,!1,u)),y=d.get("order"),x=d.get("valueFormatter"),_=m.frag,b=_?Bf(x?K({valueFormatter:x},_):_,v,p,y,r.get("useUTC"),d.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,b,g,w,e.offsetX,e.offsetY,e.position,e.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=Vs(t),i=r.tooltipConfig.option||{};if(pe(i)){i={content:i,formatter:i}}var o=[i],a=this._ecModel.getComponent(r.componentMainType,r.componentIndex);a&&o.push(a),o.push({formatter:i.content});var s=e.positionDefault,l=uD(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",p=new Gf;this._showOrMove(l,(function(){var n=X(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,e.offsetX,e.offsetY,e.position,t,p)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var p=t,h=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor")).color;if(c)if(pe(c)){var d=e.ecModel.get("useUTC"),f=ue(n)?n[0]:n;p=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(p=Ip(f.axisValue,p,d)),p=th(p,n,!0)}else if(ce(c)){var g=se((function(t,r){t===this._ticket&&(u.setContent(r,l,e,h,a),this._updatePosition(e,a,i,o,u,n,s))}),this);this._ticket=r,p=c(n,r,g)}else p=c;u.setContent(p,l,e,h,a),u.show(e,h),this._updatePosition(e,a,i,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||ue(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:ue(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=i.getSize(),c=e.get("align"),p=e.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),ce(t)&&(t=t([n,r],o,i.el,h,{viewSize:[s,l],contentSize:u.slice()})),ue(t))n=Ti(t[0],s),r=Ti(t[1],l);else if(fe(t)){var d=t;d.width=u[0],d.height=u[1];var f=uh(d,{width:s,height:l});n=f.x,r=f.y,c=null,p=null}else if(pe(t)&&a){var g=function(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}(t,h,u,e.get("borderWidth"));n=g[0],r=g[1]}else{g=function(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(e+l+o+2>r?e-=l+o:e+=o);null!=a&&(t+u+a>i?t-=u+a:t+=a);return[e,t]}(n,r,i,s,l,c?null:20,p?null:20);n=g[0],r=g[1]}if(c&&(n-=pD(c)?u[0]/2:"right"===c?u[0]:0),p&&(r-=pD(p)?u[1]/2:"bottom"===p?u[1]:0),jI(e)){g=function(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&ne(n,(function(n,o){var a=n.dataByAxis||[],s=(e[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&ne(a,(function(e,n){var o=s[n]||{},a=e.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===l.length)&&ne(a,(function(e,t){var n=l[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&ne(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!A.node&&t.getDom()&&(mg(this,"_updatePosition"),this._tooltipContent.dispose(),DI("itemTooltip",t))},t.type="tooltip",t}(tg);function uD(e,t,n){var r,i=t.ecModel;n?(r=new op(n,i,i),r=new op(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof op&&(a=a.get("tooltip",!0)),pe(a)&&(a={formatter:a}),a&&(r=new op(a,r,i)))}return r}function cD(e,t){return e.dispatchAction||se(t.dispatchAction,t)}function pD(e){return"center"===e||"middle"===e}var hD=lD;function dD(e){Yx(GI),e.registerComponentModel(WI),e.registerComponentView(hD),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Re),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Re)}var fD=ne;function gD(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function vD(e,t,n){var r={};return fD(t,(function(t){var i,o=r[t]=((i=function(){}).prototype.__hidden=i.prototype,new i);fD(e[t],(function(e,r){if(rI.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),o[r]=new rI(i),"opacity"===r&&((i=X(i)).type="colorAlpha",o.__hidden.__alphaForOpacity=new rI(i))}}))})),r}function mD(e,t,n,r){var i={};return ne(e,(function(e){var n=rI.prepareVisualTypes(t[e]);i[e]=n})),{progress:function(e,o){var a,s;function l(e){return rv(o,s,e)}function u(e,t){!function(e,t,n,r){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break;default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}(o,s,e,t)}null!=r&&(a=o.getDimensionIndex(r));for(var c=o.getStore();null!=(s=e.next());){var p=o.getRawDataItem(s);if(!p||!1!==p.visualMap)for(var h=null!=r?c.get(a,s):s,d=n(h),f=t[d],g=i[d],v=0,m=g.length;v<m;v++){var y=g[v];f[y]&&f[y].applyVisual(h,l,u)}}}}}var yD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return k(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(gh),xD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=we(e.get("textBaseline"),e.get("textVerticalAlign")),l=new Bs({style:Vc(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),p=new Bs({style:Vc(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=e.get("link"),d=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!h&&!f,p.silent=!d&&!f,h&&l.on("click",(function(){rh(h,"_"+e.get("target"))})),d&&p.on("click",(function(){rh(d,"_"+e.get("subtarget"))})),Vs(l).eventData=Vs(p).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),c&&r.add(p);var g=r.getBoundingRect(),v=e.getBoxLayoutParams();v.width=g.width,v.height=g.height;var m=uh(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),r.x=m.x,r.y=m.y,r.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),p.setStyle(y),g=r.getBoundingRect();var x=m.margin,_=e.getItemStyle(["color","opacity"]);_.fill=e.get("backgroundColor");var b=new ws({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(b)}},t.type="title",t}(tg);function _D(e){e.registerComponentModel(yD),e.registerComponentView(xD)}var bD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return k(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),ue(t)&&ne(t,(function(e,r){pe(e)&&(e={type:e}),t[r]=Z(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(a)),a.length?t=t.concat(a):i=!0}else i=!0;i&&fo(r)&&t.push(r.name)})),this._availableNames=n;var r=re(this.get("data")||t,(function(e){return(pe(e)||de(e))&&(e={name:e}),new op(e,this,this.ecModel)}),this);this._data=r},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&ne(this._data,(function(e){t[e.get("name")]=!1}));t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;ne(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;ne(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&$(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(gh),wD=bD,SD=le,kD=ne,CD=_i,MD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return k(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new CD),this.group.add(this._selectorGroup=new CD),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),o=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),p=uh(l,u,c),h=this.layoutInner(e,i,p,r,a,s),d=uh(Q({width:h.width,height:h.height},l),u,c);this.group.x=d.x-h.x,this.group.y=d.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(e,t){var n=Xp(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),new ws({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}(h,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,o,a){var s=this.getContentGroup(),l=Ee(),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),kD(t.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var p=new CD;return p.newline=!0,void s.add(p)}var h=n.getSeriesByName(a)[0];if(!l.get(a)){if(h){var d=h.getData(),f=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),v=d.getVisual("style");this._createItem(h,a,o,i,t,e,f,v,g,u).on("click",SD(TD,a,null,r,c)).on("mouseover",SD(ID,h.name,null,r,c)).on("mouseout",SD(DD,h.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var p=s.indexOfName(a),h=s.getItemVisual(p,"style"),d=s.getItemVisual(p,"legendIcon"),f=On(h.fill);f&&0===f[3]&&(f[3]=.2,h=K(K({},h),{fill:Rn(f,"rgba")})),this._createItem(n,a,o,i,t,e,{},h,d,u).on("click",SD(TD,null,a,r,c)).on("mouseover",SD(ID,null,a,r,c)).on("mouseout",SD(DD,null,a,r,c)),l.set(a,!0)}}),this);"production"!==process.env.NODE_ENV&&(l.get(a)||console.warn(a+" series not exists. Legend data should be same with series name or data name."))}}),this),i&&this._createSelector(i,t,r,o,a)},t.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();kD(e,(function(e){var r=e.type,i=new Bs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),Rc(i,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),Cl(i)}))},t.prototype._createItem=function(e,t,n,r,i,o,a,s,l,u){var c=e.visualDrawType,p=i.get("itemWidth"),h=i.get("itemHeight"),d=i.isSelected(t),f=r.get("symbolRotate"),g=r.get("symbolKeepAspect"),v=r.get("icon"),m=function(e,t,n,r,i,o){function a(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),kD(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}var s=t.getModel("itemStyle").getItemStyle(),l=0===e.lastIndexOf("empty",0)?"fill":"stroke";s.decal=r.decal,"inherit"===s.fill&&(s.fill=r[i]);"inherit"===s.stroke&&(s.stroke=r[l]);"inherit"===s.opacity&&(s.opacity=("fill"===i?r:n).opacity);a(s,r);var u=t.getModel("lineStyle"),c=u.getLineStyle();if(a(c,n),"auto"===s.fill&&(s.fill=r.fill),"auto"===s.stroke&&(s.stroke=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),!o){var p=t.get("inactiveBorderWidth"),h=s[l];s.lineWidth="auto"===p?r.lineWidth>0&&h?2:0:s.lineWidth,s.fill=t.get("inactiveColor"),s.stroke=t.get("inactiveBorderColor"),c.stroke=u.get("inactiveColor"),c.lineWidth=u.get("inactiveWidth")}return{itemStyle:s,lineStyle:c}}(l=v||l||"roundRect",r,a,s,c,d),y=new CD,x=r.getModel("textStyle");if(!ce(e.getLegendIcon)||v&&"inherit"!==v){var _="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===f?e.getData().getVisual("symbolRotate"):f:0;y.add(function(e){var t=e.icon||"roundRect",n=_v(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:p,itemHeight:h,icon:l,iconRotate:_,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:g}))}else y.add(e.getLegendIcon({itemWidth:p,itemHeight:h,icon:l,iconRotate:f,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:g}));var b="left"===o?p+5:-5,w=o,S=i.get("formatter"),k=t;pe(S)&&S?k=S.replace("{name}",null!=t?t:""):ce(S)&&(k=S(t));var C=r.get("inactiveColor");y.add(new Bs({style:Vc(x,{text:k,x:b,y:h/2,fill:d?x.getTextColor():C,align:w,verticalAlign:"middle"})}));var M=new ws({shape:y.getBoundingRect(),invisible:!0}),T=r.getModel("tooltip");return T.get("show")&&Dc({el:M,componentModel:i,itemName:t,itemTooltipOption:T.option}),y.add(M),y.eachChild((function(e){e.silent=!0})),M.silent=!u,this.getContentGroup().add(y),Cl(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();lh(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){lh("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),p=[-c.x,-c.y],h=e.get("selectorButtonGap",!0),d=e.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===o?p[d]+=l[f]+h:u[d]+=c[f]+h,p[1-d]+=l[g]/2-c[g]/2,s.x=p[0],s.y=p[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+h+c[f],m[g]=Math.max(l[g],c[g]),m[v]=Math.min(0,c[v]+p[1-d]),m}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(tg);function TD(e,t,n,r){DD(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),ID(e,t,n,r)}function AD(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function ID(e,t,n,r){AD(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function DD(e,t,n,r){AD(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}var OD=MD;function ED(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function ND(e,t,n){var r,i={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name)),ne(n.getData(),(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&r:i[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function LD(e){e.registerComponentModel(wD),e.registerComponentView(OD),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,ED),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(e){e.registerAction("legendToggleSelect","legendselectchanged",le(ND,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",le(ND,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",le(ND,"inverseSelect")),e.registerAction("legendSelect","legendselected",le(ND,"select")),e.registerAction("legendUnSelect","legendunselected",le(ND,"unSelect"))}(e)}var PD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=hh(t);e.prototype.init.call(this,t,n,r),RD(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),RD(this,this.option,t)},t.type="legend.scroll",t.defaultOption=lp(wD.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(wD);function RD(e,t,n){var r=[1,1];r[e.getOrient().index]=0,ph(t,n,{type:"box",ignoreSize:!!r})}var BD=PD,VD=_i,zD=["width","height"],FD=["x","y"],GD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return k(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new VD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new VD)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),p=ue(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");function d(e,t){var r=e+"DataIndex",o=Tc(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:se(l._pageGo,l,r,n,i)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=e,u.add(o)}u.add(new Bs({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=zD[s],u=FD[s],c=zD[1-s],p=FD[1-s];i&&lh("horizontal",a,e.get("selectorItemGap",!0));var h=e.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=X(n);i&&(g[l]=n[l]-d[l]-h);var v=this._layoutContentAndController(e,r,g,s,l,c,p,u);if(i){if("end"===o)f[s]+=v[l]+h;else{var m=d[l]+h;f[s]-=m,v[u]-=m}v[l]+=d[l]+h,f[1-s]+=v[p]+v[c]/2-d[c]/2,v[c]=Math.max(v[c],d[c]),v[p]=Math.min(v[p],d[p]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},t.prototype._layoutContentAndController=function(e,t,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;lh(e.get("orient"),l,e.get("itemGap"),r?n.width:null,r?null:n.height),lh("horizontal",c,e.get("pageButtonItemGap",!0));var p=l.getBoundingRect(),h=c.getBoundingRect(),d=this._showController=p[i]>n[i],f=[-p.x,-p.y];t||(f[r]=l[s]);var g=[0,0],v=[-h.x,-h.y],m=we(e.get("pageButtonGap",!0),e.get("itemGap",!0));d&&("end"===e.get("pageButtonPosition",!0)?v[r]+=n[i]-h[i]:g[r]+=h[i]+m);v[1-r]+=p[o]/2-h[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var y={x:0,y:0};if(y[i]=d?n[i]:p[i],y[o]=Math.max(p[o],h[o]),y[a]=Math.min(0,h[a]+v[1-r]),u.__rectSize=n[i],d){var x={x:0,y:0};x[i]=Math.max(n[i]-h[i]-m,0),x[o]=y[o],u.setClipPath(new ws({shape:x})),u.__rectSize=x[i]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(e);return null!=_.pageIndex&&ic(l,{x:_.contentPosition[0],y:_.contentPosition[1]},d?e:null),this._updatePageInfoView(e,_),y},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;ne(["pagePrev","pageNext"],(function(r){var i=null!=t[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;r&&i&&r.setStyle("text",pe(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=zD[i],a=FD[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,p=c?1:0,h={contentPosition:[n.x,n.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var d=y(u);h.contentPosition[i]=-d.s;for(var f=s+1,g=d,v=d,m=null;f<=c;++f)(!(m=y(l[f]))&&v.e>g.s+r||m&&!x(m,g.s))&&(g=v.i>g.i?v:m)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount),v=m;for(f=s-1,g=d,v=d,m=null;f>=-1;--f)(m=y(l[f]))&&x(v,m.s)||!(g.i<v.i)||(v=g,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=m;return h;function y(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(OD),UD=GD;function WD(e){Yx(LD),e.registerComponentModel(BD),e.registerComponentView(UD),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}function jD(e){Yx(LD),Yx(WD)}var HD={get:function(e,t,n){var r=X((YD[e]||{})[t]);return n&&ue(r)?r[r.length-1]:r}},YD={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},qD=HD,XD=rI.mapVisual,ZD=rI.eachVisual,JD=ue,KD=ne,QD=Ii,$D=Mi,eO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return k(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&function(e,t,n){var r;ne(n,(function(e){t.hasOwnProperty(e)&&gD(t[e])&&(r=!0)})),r&&ne(n,(function(n){t.hasOwnProperty(n)&&gD(t[n])?e[n]=X(t[n]):delete e[n]}))}(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=se(e,this),this.controllerVisuals=vD(this.option.controller,t,e),this.targetVisuals=vD(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=no(e),t},t.prototype.eachTargetSeries=function(e,t){ne(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],ue(e)&&(e=e.slice(),r=!0);var l=t?e:r?[u(e[0]),u(e[1])]:u(e);return pe(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):ce(s)?r?s(e[0],e[1]):s(e):r?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=QD([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=e.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});Z(r,n),Z(i,n);var o=this.isCategory();function a(n){JD(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}a.call(this,r),a.call(this,i),function(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},KD(r,(function(e,t){if(rI.isValidType(t)){var n=qD.get(t,"inactive",o);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";KD(this.stateList,(function(a){var s=this.itemSize,l=e[a];l||(l=e[a]={color:o?r:[r]}),null==l.symbol&&(l.symbol=t&&X(t)||(o?i:[i])),null==l.symbolSize&&(l.symbolSize=n&&X(n)||(o?s[0]:[s[0],s[0]])),l.symbol=XD(l.symbol,(function(e){return"none"===e?i:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;ZD(u,(function(e){e>c&&(c=e)})),l.symbolSize=XD(u,(function(e){return $D(e,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,i)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(gh),tO=eO,nO=[20,140],rO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=nO[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=nO[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):ue(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),ne(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Ii((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=iO(this,"outOfRange",this.getExtent()),n=iO(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&i(t[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(t[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=lp(tO.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(tO);function iO(e,t,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}var oO=rO,aO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return k(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Xp(t.get("padding")||0),r=e.getBoundingRect();e.add(new ws({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var r=(n=n||{}).forceState,i=this.visualMapModel,o={};if("color"===t){var a=i.get("contentColor");o.color=a}function s(e){return o[e]}function l(e,t){o[e]=t}var u=i.controllerVisuals[r||i.getValueState(e)];return ne(rI.prepareVisualTypes(u),(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),rI.dependsOn(r,t)&&i&&i.applyVisual(e,s,l)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;!function(e,t,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if((o=o||e).x=e.x,o.y=e.y,!s&&!l)return!1;if("raw"===u)a="group"===e.type?new Qr(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();(a=a.clone()).applyTransform(c)}var p=uh(Q({width:a.width,height:a.height},t),n,r),h=s?p.x-a.x:0,d=l?p.y-a.y:0;"raw"===u?(o.x=h,o.y=d):(o.x+=h,o.y+=d),o===e&&e.markRedraw()}(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(tg),sO=aO,lO=[["left","right","width"],["top","bottom","height"]];function uO(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===r.orient?1:0,s=lO[a],l=[0,null,10],u={},c=0;c<3;c++)u[lO[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var p=[["x","width",3],["y","height",0]][a],h=uh(u,o,r.padding);return s[(h.margin[p[2]]||0)+h[p[0]]+.5*h[p[1]]<.5*o[p[1]]?0:1]}function cO(e,t){return ne(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var pO=Mi,hO=ne,dO=Math.min,fO=Math.max,gO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return k(t,e),t.prototype.doRender=function(e,t,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new Bs({style:Vc(p,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,o=this._useHandle,a=uO(t,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new _i;s.add(l),l.add(n.outOfRange=vO()),l.add(n.inRange=vO(null,o?yO(this._orient):null,se(this._dragHandle,this,"all",!1),se(this._dragHandle,this,"all",!0))),l.setClipPath(new ws({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=t.textStyleModel.getTextRect("国"),c=fO(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,c,i),this._createHandle(t,s,1,r,c,i)),this._createIndicator(t,s,r,c,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,o){var a=se(this._dragHandle,this,n,!1),s=se(this._dragHandle,this,n,!0),l=ai(e.get("handleSize"),r[0]),u=_v(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=yO(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){gt(e.event)}}),u.x=r[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Dl(u,!0),t.add(u);var p=this.visualMapModel.textStyleModel,h=new Bs({cursor:c,draggable:!0,drift:a,onmousemove:function(e){gt(e.event)},ondragend:s,style:Vc(p,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var d=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=d,f.handleLabels[n]=h},t.prototype._createIndicator=function(e,t,n,r,i){var o=ai(e.get("indicatorSize"),n[0]),a=_v(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof fs){var l=a.style;a.useStyle(K({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);t.add(a);var u=this.visualMapModel.textStyleModel,c=new Bs({silent:!0,invisible:!0,style:Vc(u,{x:0,y:0,text:""})});this.group.add(c);var p=[("horizontal"===i?r/2:6)+n[0]/2,0],h=this._shapes;h.indicator=a,h.indicatorLabel=c,h.indicatorLabelPoint=p,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():mO(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[pO(t[0],n,r,!0),pO(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];!function(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(null!=i&&(i=oI(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=oI(s,[0,a]),i=o=oI(s,[i,o]),r=0}t[0]=oI(t[0],n),t[1]=oI(t[1],n);var l=iI(t,r);t[r]+=e;var u,c=i||0,p=n.slice();l.sign<0?p[0]+=c:p[1]-=c,t[r]=oI(t[r],p),u=iI(t,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(t[1-r]=t[r]+l.sign*i),u=iI(t,r),null!=o&&u.span>o&&(t[1-r]=t[r]+u.sign*o)}(t,r,i,e,0);var o=n.getExtent();this._dataInterval=[pO(r[0],i,o,!0),pO(r[1],i,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],o=e?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,i),a=[this.getControllerVisual(e[0],"symbolSize",i),this.getControllerVisual(e[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new Hu(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],r=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var i=1;i<100;i++){var o=e[0]+r*i;if(o>e[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:i/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new _i("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();hO([0,1],(function(l){var u=i[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=pO(e[l],[0,a[1]],s,!0),p=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=p/a[0],u.x=a[0]-p/2;var h=Sc(n.handleLabelPoints[l],wc(u,this.group));o[l].setStyle({x:h[0],y:h[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),p=this.getControllerVisual(e,"symbolSize"),h=pO(e,o,s,!0),d=a[0]-p/2,f={x:u.x,y:u.y};u.y=h,u.x=d;var g=Sc(l.indicatorLabelPoint,wc(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;v.setStyle({text:(n||"")+i.formatValueText(t),verticalAlign:y?m:"middle",align:y?"center":m});var x={x:d,y:h,style:{fill:c}},_={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),v.animateTo(_,b)}else u.attr(x),v.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this._api.enterBlur(w[S])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=dO(fO(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();e=dO(fO(i[0],e),i[1]);var a=function(e,t,n){var r=6,i=e.get("hoverLinkDataSize");i&&(r=pO(i,t,n,!0)/2);return r}(n,o,i),s=[e-a,e+a],l=pO(e,i,o,!0),u=[pO(s[0],i,o,!0),pO(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,p=[];(t||mO(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var h=function(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[o(n),o(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=co(e[r].seriesId,null);if(null==o)return;for(var a=no(e[r].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(t[o]||(t[o]={}))[c]=1}}}function o(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=o(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}(c,p);this._dispatchHighDown("downplay",cO(h[0],n)),this._dispatchHighDown("highlight",cO(h[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=Vs(t).dataIndex){var r=Vs(t),i=this.ecModel.getSeriesByIndex(r.seriesIndex);if(n.isTargetSeries(i)){var o=i.getData(r.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),r.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this._api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",cO(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=wc(t,r?null:this.group);return ue(e)?Sc(e,i,n):kc(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(sO);function vO(e,t,n,r){return new Mu({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){gt(e.event)},ondragend:r})}function mO(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function yO(e){return"vertical"===e?"ns-resize":"ew-resize"}var xO=gO,_O={type:"selectDataRange",event:"dataRangeSelected",update:"update"},bO=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},wO=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(mD(t.stateList,t.targetVisuals,se(t.getValueState,t),t.getDataDimensionIndex(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(se(SO,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),e.getData().setVisual("visualMeta",r)}}];function SO(e,t,n,r){for(var i=t.targetVisuals[r],o=rI.prepareVisualTypes(i),a={color:iv(e.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,p,h)}return a.color;function p(e){return a[e]}function h(e,t){a[e]=t}}var kO=ne;function CO(e){var t=e&&e.visualMap;ue(t)||(t=t?[t]:[]),kO(t,(function(e){if(e){MO(e,"splitList")&&!MO(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&ue(t)&&kO(t,(function(e){fe(e)&&(MO(e,"start")&&!MO(e,"min")&&(e.min=e.start),MO(e,"end")&&!MO(e,"max")&&(e.max=e.end))}))}}))}function MO(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var TO=!1;function AO(e){TO||(TO=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(_O,bO),ne(wO,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(CO))}function IO(e){e.registerComponentModel(oO),e.registerComponentView(xO),AO(e)}var DO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return k(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],OO[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=X(i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=re(this._pieceList,(function(e){return e=X(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=rI.listVisualTypes(),i=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}ne(t.pieces,(function(e){ne(r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),ne(n,(function(e,n){var r=!1;ne(this.stateList,(function(e){r=r||o(t,e,n)||o(t.target,e,n)}),this),!r&&ne(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=qD.get(n,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,ne(r,(function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;ne(r,(function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(o?i[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=X(e)},t.prototype.getValueState=function(e){var t=rI.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(t,r){rI.findPieceIndex(t,n)===e&&i.push(r)}),this),t.push({seriesId:r.id,dataIndex:i})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),(o=i[i.length-1].interval[1])!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return ne(i,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=e(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=lp(tO.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(tO),OO={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),zi(e),ne(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;ne(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),EO(t,e)},pieces:function(e){var t=this.option;ne(t.pieces,(function(t,n){fe(t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var p=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&null==o[c];h++)o[c]=t[p[h]],a[c]=s[h],u[c]=2===h;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),"production"!==process.env.NODE_ENV&&o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=rI.retrieveVisuals(t),e.push(r)}),this),EO(t,e),zi(e),ne(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function EO(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var NO=DO,LO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return k(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=be(t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,c,a),ne(l.viewPieceList,(function(r){var l=r.piece,u=new _i;u.onclick=se(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var p=t.getRepresentValue(l);if(this._createItemSymbol(u,p,[0,0,s[0],s[1]]),c){var h=this.visualMapModel.getValueState(p);u.add(new Bs({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===h?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),lh(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:cO(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return uO(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var o=new _i,a=this.visualMapModel.textStyleModel;o.add(new Bs({style:Vc(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=re(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(_v(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=X(n.selected),i=t.getSelectedMapKey(e);"single"===n.selectedMode?(r[i]=!0,ne(r,(function(e,t){r[t]=t===i}))):r[i]=!r[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})},t.type="visualMap.piecewise",t}(sO),PO=LO;function RO(e){e.registerComponentModel(NO),e.registerComponentView(PO),AO(e)}var BO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return k(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new kf(this),Cf(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Cf(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Mh},t}(gh),VO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return k(t,e),t.type="dataset",t}(tg);function zO(e){e.registerComponentModel(BO),e.registerComponentView(VO)}Yx([yk,function(e){e.registerChartView(ZC),e.registerSeriesModel(eM),ov("pie",e.registerAction),e.registerLayout(le(FC,"pie")),e.registerProcessor(function(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0}))}}}}("pie")),e.registerProcessor(function(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!(de(r)&&!isNaN(r)&&r<0)}))}}}("pie"))},_D,dD,jD]);var FO=t.defineComponent({name:"EcanPie",props:Object.assign({},lk),components:{Spin:$b,Echarts:q_},setup:function(e){var n=this,r=mw(e),i=t.ref([]),o=t.computed((function(){var n=(t.unref(i)[0]||{}).data,r=void 0===n?[]:n;if(Array.isArray(e.colors)){var o=e.isUseLabelColors,a=e.colors;r=r.map((function(e,t){return Object.assign({label:o?{color:a[t]}:{}},e)}))}return{title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:Ow(e.tooltipFormatter),textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor}},color:e.colors,series:[{data:r,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,label:{show:"center"!==e.labelPosition&&e.labelShow,color:e.labelColor,fontSize:e.labelFontSize,position:e.labelPosition,formatter:Ow(e.labelFormatter)},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}})),a=t.inject(_w,{getGlobalModel:function(e){},setGlobalModel:function(e,t){}}),s=a.getGlobalModel,l=a.setGlobalModel,u=t.inject(xw,{pageMode:"normal"}).pageMode,c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=Aw(e,t),r=n.dataset;i.value=r};t.watch((function(){return e.data}),(function(n){"static"!==e.dataType&&"design"!==t.unref(u)||c(n)}),{immediate:!0,deep:!0});var p=t.ref(!1),h=Pw(e),d=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,p.value=!0,n.next=6,h();case 6:o=n.sent,c(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,e.valueTypeDataFieldNames),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,p.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},f=Cw(e.events)("click",(function(t){var n=e.id,r=s(n);l(n,Object.assign(Object.assign({},r),{RECORD:null==t?void 0:t.data}))}));return kw(e,{refreshData:function(){d()},click:f}),(0,t.inject(bw,{setRequest:function(e,t){}}).setRequest)(d,e.requestSort),{option:o,style:r,click:f,loading:p}}});FO.render=function(e,n,r,i,o,a){var s=t.resolveComponent("echarts"),l=t.resolveComponent("spin");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx((function(){return[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},FO.__file="src/graph/pie/Pie.vue";var GO=sw(FO),UO=Object.assign(Object.assign({},hw),{id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234},{name:"名称四",value:135},{name:"名称五",value:1548}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value"}),WO=dw(UO),jO=["click","refreshData"];Yx([yk,aC,_D,jD]);var HO=t.defineComponent({name:"EcanLine",props:Object.assign({},WO),components:{Spin:$b,Echarts:q_},setup:function(e){var n=this,r=mw(e),i=t.ref([]),o=t.ref([]),a=t.computed((function(){return{title:{text:e.titleText,subText:e.titleSubtext,left:"center"},color:e.colors,xAxis:{type:"category",data:t.unref(o),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{trigger:"axis"},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft},series:t.unref(i)}})),s=t.inject(_w,{getGlobalModel:function(e){},setGlobalModel:function(e,t){}}),l=s.getGlobalModel,u=s.setGlobalModel,c=t.inject(xw,{pageMode:"normal"}).pageMode,p=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===e.dataFieldConfigType){var a=r?e.keyTypeDataFieldNames:null;t=Vw(n,a)}else if("value"===e.dataFieldConfigType){var s=r?e.valueTypeDataFieldNames:null;t=Aw(n,s)}o.value=t.dimensions;for(var l=t.dataset,u=[],c=l.length,p=0;p<c;p++)u.push(Object.assign(Object.assign({type:"line"},l[p]),{symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}}));i.value=u};t.watch((function(){return[e.data,e.symbolSize,e.smooth,e.lineStyleWidth]}),(function(n){var r=G_(n,1)[0];"static"!==e.dataType&&"design"!==t.unref(c)||p(r)}),{immediate:!0,deep:!0});var h=t.ref(!1),d=Pw(e),f=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(c)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,h.value=!0,n.next=6,d();case 6:o=n.sent,p(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,!0),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,h.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},g=Cw(e.events)("click",(function(t){var n=e.id,r=l(n);u(n,Object.assign(Object.assign({},r),{RECORD:null==t?void 0:t.data}))}));return kw(e,{refreshData:function(){f()},click:g}),(0,t.inject(bw,{setRequest:function(e,t){}}).setRequest)(f,e.requestSort),{option:a,style:r,click:g,loading:h}}});HO.render=function(e,n,r,i,o,a){var s=t.resolveComponent("echarts"),l=t.resolveComponent("spin");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx((function(){return[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},HO.__file="src/graph/line/Line.vue";var YO=sw(HO),qO=Object.assign(Object.assign({},hw),{id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"0%",gridLeft:"10%",gridTop:"2%",gridRight:"10%",gridBottom:"2%",graphicConfig:void 0}),XO=dw(qO),ZO=["refreshData","click"];Yx([yk,PC,_D,jD,zO]);var JO=t.defineComponent({name:"EcanBar",props:Object.assign({},XO),components:{Spin:$b,Echarts:q_},setup:function(e){var n=this,r=mw(e),i=t.ref([]),o=t.computed((function(){for(var n=t.unref(i),r=n.length,o=[],a=0;a<r;a++)o.push(Object.assign(Object.assign({},n[a]),{type:"bar",barWidth:e.barWidth}));return o})),a=t.ref([]),s=t.ref(!1),l=t.computed((function(){return{title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:Ow(e.tooltipFormatter),textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor}},xAxis:{type:"category",data:t.unref(a),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},grid:{},series:t.unref(o)}})),u=t.inject(xw,{pageMode:"normal"}).pageMode,c=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===e.dataFieldConfigType){var o=r?e.keyTypeDataFieldNames:null;t=Vw(n,o)}else if("value"===e.dataFieldConfigType){var s=r?e.valueTypeDataFieldNames:null;t=Aw(n,s)}i.value=t.dataset,a.value=t.dimensions},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n?t:null,o=Vw(e,r);i.value=o.dataset,a.value=o.dimensions};t.watch((function(){return e.data}),(function(n){"static"!==e.dataType&&"design"!==t.unref(u)||c(n)}),{immediate:!0,deep:!0});var h=Pw(e),d=Uw(e),f=function(){"design"!==t.unref(u)&&(C(n,void 0,void 0,pw.mark((function n(){var r,i,o,a,l,c,h;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("indicator"===e.dataType&&"design"!==t.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,s.value=!0,n.next=6,d();case 6:c=n.sent,(null===(o=null===(i=null===(r=null==c?void 0:c.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.columns)||void 0===o?void 0:o.length)>0&&(h={name:c.data.data.columns[0],types:c.data.data.columns.slice(1).map((function(e){return{label:e,value:e}}))}),p(null===(l=null===(a=null==c?void 0:c.data)||void 0===a?void 0:a.data)||void 0===l?void 0:l.rows,h,!0),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(2),console.error(n.t0);case 14:return n.prev=14,s.value=!1,n.finish(14);case 17:case"end":return n.stop()}}),n,null,[[2,11,14,17]])}))),C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,s.value=!0,n.next=6,h();case 6:o=n.sent,c(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,!0),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,s.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])}))))},g=function(){f()},v=Cw(e.events),m=t.inject(_w,{getGlobalModel:function(e){},setGlobalModel:function(e,t){}}),y=m.getGlobalModel,x=m.setGlobalModel,_=v("click",(function(t){var n=e.id,r=y(n);x(n,Object.assign(Object.assign({},r),{RECORD:null==t?void 0:t.data}))}));return(0,t.inject(bw,{setRequest:function(e,t){}}).setRequest)(f,e.requestSort),kw(e,{refreshData:g,click:_}),{option:l,style:r,refreshData:g,click:_,loading:s}}});JO.render=function(e,n,r,i,o,a){var s=t.resolveComponent("echarts"),l=t.resolveComponent("spin");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx((function(){return[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},JO.__file="src/graph/bar/Bar.vue";var KO=sw(JO),QO=Object.assign(Object.assign({},hw),{id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",dataFieldNames:{name:"name",value:"value"}}),$O=dw(QO),eE=["click","refreshData"];Yx([yk,uT,_D,dD,jD]);var tE=t.defineComponent({name:"EcanScatter",props:Object.assign({},$O),components:{Spin:$b,Echarts:q_},setup:function(e){var n=this,r=mw(e),i=t.ref([]),o=t.computed((function(){return{title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:function(t){var n,r,i=null!==(r=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.record)&&void 0!==r?r:{};return Fw(e.tooltipFormatter,i)},axisPointer:{type:"cross"}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft},series:[{data:t.unref(i),type:"scatter",symbolSize:e.symbolSize}]}})),a=t.inject(_w,{getGlobalModel:function(e){},setGlobalModel:function(e,t){}}),s=a.getGlobalModel,l=a.setGlobalModel,u=t.inject(xw,{pageMode:"normal"}).pageMode,c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t||{},r=n.name,o=void 0===r?"name":r,a=n.value,s=void 0===a?"value":a;i.value=e.map((function(e){return{value:[e[o],e[s]],record:e}})),console.log(e.map((function(e){return{value:[e[o],e[s]],record:e}})))};t.watch((function(){return e.data}),(function(n){"static"!==e.dataType&&"design"!==t.unref(u)||c(n)}),{immediate:!0,deep:!0});var p=t.ref(!1),h=Pw(e),d=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(u)){n.next=2;break}return n.abrupt("return");case 2:return p.value=!0,n.prev=3,n.next=6,h();case 6:o=n.sent,c(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,e.dataFieldNames),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(3),console.error(n.t0);case 13:return n.prev=13,p.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[3,10,13,16]])})))},f=Cw(e.events)("click",(function(t){var n=e.id,r=s(n);l(n,Object.assign(Object.assign({},r),{RECORD:null==t?void 0:t.data}))}));return kw(e,{refreshData:function(){d()},click:f}),(0,t.inject(bw,{setRequest:function(e,t){}}).setRequest)(d,e.requestSort),{option:o,style:r,click:f,loading:p}}});tE.render=function(e,n,r,i,o,a){var s=t.resolveComponent("echarts"),l=t.resolveComponent("spin");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx((function(){return[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},tE.__file="src/graph/scatter/Scatter.vue";var nE=sw(tE),rE=Object.assign(Object.assign({},hw),{id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""}),iE=dw(rE),oE=t.defineComponent({name:"EcanCustomGraph",props:Object.assign({},iE),components:{Echarts:q_},setup:function(e){var n=mw(e),r=t.ref();return t.watch((function(){return e.optionCode}),(function(e){try{var t=eval;r.value=t(e)}catch(e){console.error(e)}}),{immediate:!0}),{style:n,myOption:r,echarts:w}}});oE.render=function(e,n,r,i,o,a){var s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)},oE.__file="src/graph/custom-graph/CustomGraph.vue";var aE=sw(oE),sE=Object.assign(Object.assign({},hw),{id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}]}),lE=dw(sE),uE=["refreshData","click"];Yx([yk,PC,aC,_D,jD,zO]);var cE=t.defineComponent({name:"EcanComboGraph",props:Object.assign({},lE),components:{Spin:$b,Echarts:q_},setup:function(e){var n=this,r=mw(e),i=t.ref([]),o=t.ref([]),a=t.computed((function(){return{title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:Ow(e.tooltipFormatter),textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor}},xAxis:{type:"category",data:t.unref(o),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:t.unref(u),series:t.unref(i)}})),s=t.inject(xw,{pageMode:"normal"}).pageMode,l=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("key"===e.dataFieldConfigType){var a=r?e.keyTypeDataFieldNames:null;t=Vw(n,a)}else if("value"===e.dataFieldConfigType){var s=r?e.valueTypeDataFieldNames:null;t=Aw(n,s)}o.value=t.dimensions;for(var l=t.dataset,u=[],c=l.length,p=e.seriesTypes,h=0;h<c;h++){var d=p[h];u.push(Object.assign({type:null==d?void 0:d.type,yAxisIndex:null==d?void 0:d.axisIndex},l[h]))}i.value=u};t.watch((function(){return[e.data,e.seriesTypes]}),(function(n){var r=G_(n,1)[0];"static"!==e.dataType&&"design"!==t.unref(s)||l(r)}),{immediate:!0,deep:!0});var u=t.computed((function(){var t=e.yAxis;return null==t?void 0:t.map((function(t){return{type:"value",splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter:t.axisLabelFormatter||"{value}"},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}}}))})),c=t.ref(!1),p=Pw(e),h=function(){return C(n,void 0,void 0,pw.mark((function n(){var r,i,o;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType&&"design"!==t.unref(s)){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,c.value=!0,n.next=6,p();case 6:o=n.sent,l(null===(i=null===(r=null==o?void 0:o.data)||void 0===r?void 0:r.data)||void 0===i?void 0:i.rows,!0),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(2),console.error(n.t0);case 13:return n.prev=13,c.value=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[2,10,13,16]])})))},d=Cw(e.events),f=t.inject(_w,{getGlobalModel:function(e){},setGlobalModel:function(e,t){}}),g=f.getGlobalModel,v=f.setGlobalModel,m=d("click",(function(t){var n=e.id,r=g(n);v(n,Object.assign(Object.assign({},r),{RECORD:null==t?void 0:t.data}))}));return(0,t.inject(bw,{setRequest:function(e,t){}}).setRequest)(h,e.requestSort),kw(e,{refreshData:function(){h()},click:m}),{style:r,option:a,click:m,loading:c}}});cE.render=function(e,n,r,i,o,a){var s=t.resolveComponent("echarts"),l=t.resolveComponent("spin");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx((function(){return[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]})),_:1},8,["spinning"])],4)},cE.__file="src/graph/combo-graph/ComboGraph.vue";var pE=sw(cE),hE=Object.assign(Object.assign({},hw),{name:"边框",keyName:"边框",type:"ecanBorder",width:"450px",height:"450px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"top-title"}),dE=dw(hE),fE=["click"],gE=t.defineComponent({name:"EcanBorder",props:Object.assign({},dE),setup:function(e){var t=mw(e),n=Cw(e.events)("click",(function(){}));return kw(e,{click:n}),{style:t,click:n}}}),vE=function(e){return t.pushScopeId("data-v-af8a0f90"),e=e(),t.popScopeId(),e},mE={key:0,class:"top-title"},yE={class:"title-item-wrapper"},xE={class:"title-item"},_E=vE((function(){return t.createElementVNode("img",{class:"title-decoration-left",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII="},null,-1)})),bE={class:"title"},wE=vE((function(){return t.createElementVNode("img",{class:"title-decoration-right",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg=="},null,-1)})),SE=vE((function(){return t.createElementVNode("div",{class:"top-left border-item"},null,-1)})),kE=vE((function(){return t.createElementVNode("div",{class:"top-right border-item"},null,-1)})),CE=vE((function(){return t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)})),ME=vE((function(){return t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)})),TE={key:1,class:"no-title"},AE=[vE((function(){return t.createElementVNode("div",{class:"top-left border-item"},null,-1)})),vE((function(){return t.createElementVNode("div",{class:"top-right border-item"},null,-1)})),vE((function(){return t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)})),vE((function(){return t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)}))],IE={key:2,class:"only-border"},DE={key:3,class:"left-title"},OE={class:"title"};j_('.no-title[data-v-af8a0f90],.top-title[data-v-af8a0f90]{background:rgba(7,22,85,.8);border:1px solid rgba(55,85,218,.3);box-sizing:border-box;height:100%;position:relative;width:100%}.no-title[data-v-af8a0f90] .border-item[data-v-af8a0f90],.top-title[data-v-af8a0f90] .border-item[data-v-af8a0f90]{border-color:#50fcfc;border-style:solid;height:11px;position:absolute;width:13px;z-index:2}.no-title[data-v-af8a0f90] .top-left[data-v-af8a0f90],.top-title[data-v-af8a0f90] .top-left[data-v-af8a0f90]{border-width:1px 0 0 1px;left:0;top:0}.no-title[data-v-af8a0f90] .top-right[data-v-af8a0f90],.top-title[data-v-af8a0f90] .top-right[data-v-af8a0f90]{border-width:1px 1px 0 0;right:-2px;top:0}.no-title[data-v-af8a0f90] .bottom-left[data-v-af8a0f90],.top-title[data-v-af8a0f90] .bottom-left[data-v-af8a0f90]{border-width:0 0 1px 1px;bottom:-2px;left:0}.no-title[data-v-af8a0f90] .bottom-right[data-v-af8a0f90],.top-title[data-v-af8a0f90] .bottom-right[data-v-af8a0f90]{border-width:0 1px 1px 0;bottom:-2px;right:-2px}.no-title[data-v-af8a0f90] .title-item-wrapper[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-item-wrapper[data-v-af8a0f90]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcgAAAAsCAMAAADW3dj4AAAAVFBMVEUIKbkAAAAAqv8IL70AovwAnfAAlvEGQsUIOcEAkewGfuQGR8gAg+YIPMMFd+AEadkEXtQAi+sEYtcGTcsFcd4INL8DWdEGUc4EbNsAiOkHVdAIK7o5DngbAAAAHHRSTlNmAAVmCxAVWmEaK1YmXjA8RR5BUjRjSU84IkxfPwrt7wAABlFJREFUeNrMmQtW20AMRWlrJ9R8TCgJ0O5/nxVHIRrNRSgTZwJvJs4C7rnWx1f/FuXug6zXcpmbKn9cng/5e8jO5aHMo8+MvLznyefeZapzW+a1yIb57bJCxg8zhPkZ50eeq6PyK8q2yPX2usqdpYZ7Q7IVWKLdlWhLqhVYItUQqCUgCqZA6UKYJc5BrrIEw7ej/4QoR556uoI0kgTpUBKm5ygXJOkoQYLjowM5H0DKOYDUYxzlGkXhOBUU5RxAyjGQcgqKwlEetZU1TOE1gqOilOgTLC9rpA9J1oGRGchdaKShnE8wcpILIadjjNwUGKnkWCkpGNVIvVQywCi/9yO3A0hJKqRxhJI33kln5HO7kcZSzlFG3sNIU9IbqUmNlMM6KQ8aSYbBe5VC9gdJkj5nNPKBRhrG5Ube1oGQcY00lqMeC2skcUYs9fQCuZVbJFFSj2FsNnKXGzmfYOQkP18jqWRuJJWkkYMqORKiCUmWANgDJLrWhhK5TrrWBiPDpvUlN9JjzJtWi+MY1kgo+amQA3WUv65G5t1OKKRyPKORzsmga30Ka2Ri5OseJY303Y6ct4u21VEMu1aFSCkBsDPI/NXKCrnIyGT+MIypklNoJF+tkZGG09fIVd3qyPG9jglpMJnuNRIYkxrZ3cj5yDnSKUkjo5erF3LjjURGq5Fc7pBlTvBCr1YEPl7KyGxbxxcrlIzmjyKRjxZ0rXpcIKT8UCMV53cYP9Z36RzpnAxXdET5iBrpMc7NRhpHdjty4znSMVxspNFUhh2bnYaNQLJGN4jJii43Mt2f5zXSMCZG0smkad0fubGS5LhXUm+PGukCklzseIw0csEcaUJiikzmyHTX2mYkx0i0rTQyZmhKXmhpnjc7+L6VbHYW1MjFu1YLSMZdq651YOQKRoKi3+wMgZJyu4FsWLYCY2uNpJFWJJfMkdzs1CXSL1vjOZJGYknHQVJhxl1rsRD4NkbWHH0aulYvJDY7MFLTstmZ+BUrN/LtmpU2RcZG5kXSEKqUX7/ZSedIJ2QGctdopKRpsxMtzRuNxKdlGsntHHNRI9nrNH79oJLtRs5yTUnsWi1djFyha02NpJJIIWTM8oLTRzpHuqRGgmObkYWS06lG8utHlVGPyxH78sEYQsjuIHOSbFmh5Ek1kigtMNKy0Mh8jFSEEBJzZCqknyS7g8yX5oGQ5zVyxvQRGgmU5MjNjhwn5MZPkUaSLGkkv34Qoz47G7lN363xFAkfF9RItq3pHJkaic1OViJpJNqdgSsBGhm3rfL/9a/W/92c3UrDQBSEQUK8EJTSCvb9X9RgL8bli7M7dk8NDnmDw8ecn9k8o5Qkcvumz5ECUkQCSZRydI484SAJjzRABl3rkTyylkhaJIk0y1aWMSRy3b1HMnsFj+xldmSNtpbFVyxp7Pgh/X6OFJKTiLzeQSQTyuBxjEjcP0rHD++RYjII0aVz5HDS/DKfyHW1a3PV06foFiK5fSVESvGu1a9aXybMkW/wyHSzw1qyaxWRLKVwZM68Z5LL/vlDMD5w/JBApAvRBfdIEum61vwe2RaxTyTDV+KR2vNIdazWJP+5R7ZN6/ZhjIwTAkDSEenjkB7JfvBqYkDZ1NED6SMC93ukZDYCtmvVkg5I2s2OiPRPBijRGBG56SDjh5CESc4gUsIcOZTZkfxmB12rAZLXDyJJKBeD5BGanV7S/Byt6AyQzfEj3uzkRApI+CS7Vk+kFB8kS/PJkUmeR5fmRJJEqpSzPZJEZkjyGgkg26YVEYH6OfIdQNZ5pCdSKiaSQJq+1RBpm52Gwz9fCHCOfIhHfniPlGKPzInUdq4VcGRB+wnlioCAP2NJFR5JJH3TKiJf8WK5nxAwXasjktVEzJxrgVoik1xrEZF8jDXUtV6C64cqeWKwlXlIAunjkFrs3D4IR6zae2R/ISAVECkBSJNr5WbHB5Q9jwTSeSRXrQ7IJzWtFUR+L6QnEik6IWm61tQj30bukUTSlBLnyD6RQtIQSSxdHW9IFhKZeCQHyeldKyM7d75Y5hmLRArJ/c3OOpRP9pX8QvIQ90i+/ZCqdq30yB+B9JmdK7tWEcmuVTwKSUdke1NemNghkizk7D+YkT3C5z0RZctMkbMjSZQciJJIlLo/vaKW/Rc8IhJAtgsBp08PATOql6UCVwAAAABJRU5ErkJggg==");background-size:cover;display:grid;padding:5px 0;place-content:center;width:100%}.no-title[data-v-af8a0f90] .title-item[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-item[data-v-af8a0f90]{align-items:center;display:flex}.no-title[data-v-af8a0f90] .title[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title[data-v-af8a0f90]{-webkit-text-fill-color:transparent;background:linear-gradient(0deg,#01aaff,#00eaff);-webkit-background-clip:text;color:#d5fdfd;padding:0 17px}.no-title[data-v-af8a0f90] .title-decoration-left[data-v-af8a0f90],.no-title[data-v-af8a0f90] .title-decoration-right[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-decoration-left[data-v-af8a0f90],.top-title[data-v-af8a0f90] .title-decoration-right[data-v-af8a0f90]{height:14px;width:58px}.left-title[data-v-af8a0f90],.only-border[data-v-af8a0f90]{border:2px solid #375a8899;border-radius:8px;height:100%;width:100%}.left-title[data-v-af8a0f90]{position:relative}.left-title[data-v-af8a0f90] .title[data-v-af8a0f90]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAADCCAMAAADw6ltxAAACr1BMVEUAAAAhVZMcU4ocU4ocU4kcU4ocU4gbUogcU4kcU4kcU4obU4ocU4kcVIocUoUcUYYcUogcVYwcU4kiXpAcU4ocUokcU4ocVIsbU4ocUYYcUokcU4klXo4cUYYcU4ocVIshVZgbUoccVIocVIwcU4kcVIscVIwdU4gcUYYcU4ocU4kcUokcVIwbUokcUYUbVIodU4scVIscWJEcUogdU4scU4scUogcU4kcUogcVIsdUokcUYccU4kcU4ocVIwcU4sbUogcUogcVIscUokbU4wcUYccU4ccU4ocVI0cUogcU4scVIscU4gcVIsdU4kcVIkbU4kcVYscVIwcVIwcVY0cUogcUogbUIQbUokcUYcdVYocUogcVYwcUoccVY0cVo4cU4kcVo4cU4kcUoYcVYwcUYYcT4McUoYcU4wcVIocUoobUogcVIwcVI0bUogcUYQrVZUeWY8cUogcVIscVIkdUoccVY4cVIwcVo4bVo8cVIwdVYwcVo4cVYsdVYscVY0dVowdWZUArM4Am7MeW5EeV48eVY4bUokeWpccUIUcU4gRWqYErc4dV44cUIYgV40cVIwdVY0eVowXV50cUogRWqYRWaYErc4RWqYgV40QWqYRWqYErc4QWqYeV40Drc8ZWpwErM0Ers0ZW58gYJMdTYQiYpQFrs4eWJAVWJ4iWIwVWZ4nbJsRWqYgWZIErc8Ers4fWo8hXZQSWqYRWaYQWqceU4oQWqUtdaMErc0Erc4iYZgeWJIgZ5gDrc4lZZgcUoUcV5AcU4gcUoccVIkcUIIcVYwcUIQcVo0cU4ocWJEcUYUcWZEdVYscVo4cV48cVIscUYIRWqYcVY4cWI8cVooErc4cU4scV5IcWZMcVYcdXJIeV4wgXJQeWZEcTYEeYJQhZpsgYZYfY5gfbJ4M+CoSAAAAwHRSTlMAD7fQ0qPm1820/KfVr/Dj2vDjCvrJvauW6cObDebAugfgy6j0rJuO7dzZxpWMhbGZ8/DwoIR8/d7Iu/LsxZKQgfXsuZ747tevkYj39/Xx7+nEwrSiivrp39XOv75z+/n48ZR4/fHr3X/eysKxpp6JDPbo5+Gg9/Glne/k/fjRq5k0DgP7mHxvK/iu8O/j3Nh5YFAR/fji39LRvqKAcmpbQzogGffw7qKLVyUf8+3QyMK3mZCJXUg+9vLx4tvPmG19FZIlAAALrUlEQVRYw4ST22pTQRiF01vvxBfoM+QRfAN9ACWP4J2XmqIUqogtPdCDPYFVxLPiWZkahskwe/6QmZ3szSYhhz6I65/pbhOQ5CfsPTBf1qw1K6lMzs5aZc6sbBzMI9rtj4vziPbW/VnEy9dA1veWZiDH223M9qtZMnvrQFY+z0KWt1hmZu7FT4zMzv1lA8hl7gf/0VvYaU/krj4+mJO7qq68mL7H3/Xp3DXV7f5aniQebR5O5b5qXXfw9c8k0ensLl3kXgAhbKtfvD+eJDpvj2JuJmqWbPevGj9fLYl9Rr7vx9ysoaS00g+H4t61c+ToXQdzUg+5mTB9srYorH1SFr+0y0g0DKd+NPLKSWWNufWwLP5wEwgb5rR+MCASzgkjiG6WxddPOqXhmrUkeIjIC1F7OmX4GwxXYUJrgY91pMHdXZsyXK9UBYm+1sZoHKSh1ftxMGmYCWP6QgDBgwnT66Go0nAk8kxjz0CGEY15s3xhGITGZLlhROgMhCBLd55VygEhBIjcCI831EymcYFcVEmwATZKSM2HFbl2NBib66slAXPYYoBEMJoLR6NhofSHa5HwPoSI+5pPwQUXwxHc/QxF1bCjQ1ZPiGWCVWdGPU5+G0WBYIAHBAxHPW+E45W7sQin5XgOpc8JcoSAwsmFC4LzRDc88ZKyzDkQuCkOGY4KBIX0UAuWQMRFH85YJAzDOkqJSBgQhSDoXAJhEDAQejAujLGWtfhrOg+h0SgqYsKZs7NhQU4Rd8aeY2iWtFHDjM+GA0FKWatsv4wlOLQVMQvqMt6qJJFS+egE/cKEshQI9AB9a2UDiFQUmyStQcBHjYiifQIBHSjhPNi0eAUCL9SQFyCaTSm9TxutbuLzTKWMRMJZNkOy1ZK+1/OJbKUqEyAw/L+1GCz5KSV+6cI6nCdAwFVyTqg0bSaKEWvIEsnT1Lk0TZLGKQipkDNNG00JISSxMP6PqbI7lhqGoXAHNEMPPEIVdEQL8EQRxlIce4zBmU0mMyaw/DTCJ3l34MzdO7vxZ0U+ku00NCcdLYYA0XKGGEMnYU0CMdqpY4SwGpEgRlhD+rLvOX21vshjFIiwrU70rhLCVkvO13X0G+VII8QYx7ZtEG+ahnUNIdSocWiUiGclhlpDIAZ5vBQAR0SCSfiLUtfNiA3ixYaWpQYZTiCmVwgQpkIsrhXCh1dXXRcj6iTuTlRCO7Gs/BHCEBgjJlCllIkw5nFYCD8fBN8FF+MkAHwlzrEWeyUB9fr0Rf9lYgQjC8RrVsYMzZ8wGzv+J/iIETyWtrMV6JAD3oFaCRGGKoTZIyXRabecmrqZqCJRI16+E3M90qOpl6YC8LROYqQ/3vKE7MmklKOlFsX0AFQh3t+XsJkjQhiTqqAnodQ23BcIq0w8ULqaElwsn0l8+Ha/P00rpTTryaJOCCTEx58s7kGQSoJg36j4SyCIcYxjIwqcPSu2eYllb2q9RM80DCO83CJAvZTOoGqBCEbQQK5ZS16FnCAbr21dSPWJwEQWbNSskRGk+U9YJxjiTsRKfRTi3/Dqqm624C1pnZynr7YnMCvORLmuaKWXct4+EeMfwVMBqdKa94y02+1mxPYk/KlhdSoo3hgRQBxwn61o/PCEyCdABCM2H1dswKQNQQRcr8uD2LynYrtyTlrhPR0IqRAWgkV4iMz5UKIwiOa/uRZ328qWf/zIuKlR3VOJRaenEPIgPqWzlLP3DhFqvIrngcSkPXGw77knVIQtLFczQiwcAomx7D+/g1jCvF4SxEtRfRCBKJq+f78wqrNQVtA6neyZzRj9++895h/0Ydd5DGmxk+6AcUD3P78+R2vVxKwR6xaiE+1QBNP2z9/28zxvFuTw3Rd1EpzPxGnslCNRTtviRJEA4ad2ewqi5C8Q3OYn1roLEERsONTwoPWW8+3GJZVPzwxNwpUSnynqVyC82Z04e+YZIkUfmztKzXgjmJu4UhjkdrTrUFBURAiPwbeWaAy/bq2H0WS8/nj6l8Y6xlkYhsEwvHv+75L9PwhTjpGRI3AixNAIIXWolI2z8NiFT6W06euosr+4kWxXOWmuM2n6IUTqoqOVnoa599vCxbOYs9pWb0gCoIOmac8OxrKmKkJ2M+IcsRzqrla+fwTTu6s0SJkPloeOdMAUVf6YCWyO88eBMwEI6biAxZgFyQwKoeOl0QghwBBMXWbGmVyNBcij3Zbqz30HreUtJomXw9facuNVRN/p1ddyRrYdcZ9tbnYURxL/PWb0VEQ8IlqLx+3WWuvH+xjbSZTGqAsEFXF9jzEuiPgL+rAwx7oVgmAYho9rBxMTxo4MXQmDA10ccBGhE6P+JuUCSBNOYg+bC/fh2Ivsh/ENwm94wvdxLD0mVh/xvff9sq6vZXk1j883VlsgGKrcX7HlCm+wu/VYyTPmiTGtSyV5Rc3jixHlTNrn8zCaSBPLuhSttYFIVUwoT0RTjBDakKGMEWKCSM3jB6BmjCkDGTOYocS/02iQOaX0DjFPM+J8qAHoMp8Rf3y+BW5FFQiKV4mFYxYxJgEh7nBnueICH1cKh4B4Qvw+axBWqbqsDUphYRTbdomu60CskiqEtpUuhIAJm7Td1lmIHWR3TsoWSSexSRkksvvmXBXIuXEc249/KsVet1kYCsOWgjADEhVSBiQzkCn2+i1G4lsYwhjahR91DjJTRJgaKXfQZs5N9Br7noOq0Ec+531tP/vDEYH6D+14OH58lAclXFmWRbFnoPA6YApAPzBYaE6nU7M/EVAaLBYwSuiyrIukgZBgNxQoTVLUTAHjcrnUy+OaacL3hFDCwJjSJknTJp2WkqR+PU2+X/sYJSrfv/jpgk9lovIERuxfr6xEEUoEaxFiHAyMKIqvccR8fi4lXqFEiJc5+2Nk8+/3TIaXrZgzuJQzWovdzjBaZzM7ZJYSz21rMY62w1OrxEZrOwyDBUg62lqnnbXaOactG8PX1/BCDGiomsBmlAiMoU8shrvRuGLQjBI7U1GrjHwxUsr73UgDcMNICWOsKlkByVT3O13lEyW2IajCsJMylF2H3nUST9gdBkZOxoLXAYRHh+jQzuK/t+b2bA8OGK+324aheHzT9vj6QAVn8cYZ9H2P6B/9JtjgBHgI0NhAAz2BXMPWWbzvFgJe4zhycud3GPm4y/N8t92O4xYg6fxwMfa8DcJgELYiMUSIyRKWiOQMlrMwdGGhElMYWPnYyNQxhSoLUjIxdcnP6S/sncFJm0f2+96dT86dzM/ni9jnC4jSlGlKActCnuZoFCQtUgLhQMJJLmJTkyRJE7KKoq4LOoBG09R1A/tJsBKMBgEOdiNFe2oa3WiN577H0ZDagwc2iNa9R6N0inUca140BhZi0sceBh4pqj15/4f3fPGN419oXbY01OaF47La1Uoxw8BtAQY3YtwWGrVWCrPdttsX2nZZgI23B8PgxWqJFEG0MERR5SXFPaocbNjIIrGW8Z3aVhWUtb5hrVV2HXcupWYFXDTPUpQIZjMrY5RRYagUlgchG6EZR2NMyAsoiDPQUuzCcRydczNwarz6bEQj8FyfijjbXaX47oKOJwu6bApIhgdHMEFI8ZNNmWea3OTqbjeKMsMf5ZMvT3kDJUUpxcfu4Nk9OLABD/XbxxgiVwhDUTRdQ0xEBQ4DTAxIwAaPxIDBpUsIgp9K+PXotgv46+tN4DUiM5zMTR7h5HKmpHF/pZROke4WU3jBWSqFPDHGCCP9p1nX1QgpMHPWCZEJR+YOxM+rH0aEs68jy7IRwT7WNOK84Iyx5buu6wZRqg4oB3bOwNvRAJUqdxAKpLhKmGcp04s8bZBA7gxfs+f/9DRorXMYxNL2XddjYT/RoO9hEO975/FKURTaGx2MwFKVJ0WgJINqSCGLjMDnVpZzSxQIGaHmZ/a0pzfPkYGaoSJgPmBEfDzJeABvxDW2mqYKa9s2MqKa6YKMmF87DcOAkBHDnwO4M1BzQLB3BuMva+8N1Oww7kleyR9E49oLoDfH+QAAAABJRU5ErkJggg==");background-repeat:no-repeat;background-size:100% 100%;color:#fff;font-weight:500;left:-33px;min-height:194px;padding-bottom:31px;padding-top:33px;position:absolute;text-align:center;top:-14px;width:33px}.left-title[data-v-af8a0f90] .title[data-v-af8a0f90] span[data-v-af8a0f90]{-ms-writing-mode:tb-lr;writing-mode:vertical-lr}'),gE.render=function(e,n,r,i,o,a){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle(e.style),onClick:n[0]||(n[0]=function(){return e.click&&e.click.apply(e,arguments)})},["top-title"===e.mode?(t.openBlock(),t.createElementBlock("div",mE,[t.createElementVNode("div",yE,[t.createElementVNode("div",xE,[_E,t.createElementVNode("div",bE,t.toDisplayString(e.title),1),wE])]),SE,kE,CE,ME])):t.createCommentVNode("v-if",!0),"no-title"===e.mode?(t.openBlock(),t.createElementBlock("div",TE,AE)):t.createCommentVNode("v-if",!0),"only-border"===e.mode?(t.openBlock(),t.createElementBlock("div",IE)):t.createCommentVNode("v-if",!0),"left-title"===e.mode?(t.openBlock(),t.createElementBlock("div",DE,[t.createElementVNode("div",OE,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("v-if",!0)],4)},gE.__scopeId="data-v-af8a0f90",gE.__file="src/container/border/Border.vue";var EE=sw(gE),NE={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!1,position:"default"},LE=dw(NE),PE=["showModal"],RE=t.defineComponent({name:"EcanModal",components:{AModal:r.Modal},props:Object.assign({},LE),setup:function(e){var n=t.computed((function(){return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[e.position]}})),r=e.width,i=e.height,o=e.originalWidth,a=e.originalHeight,s=t.computed((function(){return parseFloat(r)/parseFloat(o)})),l=t.computed((function(){return parseFloat(i)/parseFloat(a)})),u=t.computed((function(){return"".concat(100*t.unref(s),"%")})),c=t.computed((function(){return document.body.offsetWidth})),p=t.computed((function(){return document.body.offsetHeight})),h=t.computed((function(){return t.unref(c)*t.unref(s)})),d=t.computed((function(){return t.unref(p)*t.unref(l)})),f=t.computed((function(){return{width:"".concat(t.unref(h),"px"),height:"".concat(t.unref(d),"px")}})),g=mw(e),v=t.computed((function(){return Object.assign(Object.assign({},t.unref(g)),{backgroundImage:zw(e.backgroundImage,!0),transform:"scale(".concat(t.unref(h)/parseFloat(r),",").concat(t.unref(d)/parseFloat(i),")")})})),m=t.computed((function(){return t.unref(s)>=1})),y=t.computed((function(){return e.fullModal})),x=t.computed((function(){var e="ecan-modal";return t.unref(m)&&(e+=" ecan-full-width-modal"),t.unref(y)&&(e+=" ecan-full-modal"),e})),_=t.ref(!1),b=t.ref(),w=t.inject(bw,{touchRequest:function(){}}).touchRequest,S=function(){_.value=!0,t.nextTick((function(){w()}))},k=function(){_.value=!1};return kw(e,{showModal:S}),{contain:b,containStyle:f,contentStyle:v,getContainer:function(){return document.getElementById("ProviderConfig")||document.body},modalStyle:n,modalWith:u,isFullModal:y,style:g,visible:_,showModal:S,onOk:function(){k()},onCancel:function(){k()},isFullWidth:m,wrapClassName:x}}});j_(".contain[data-v-4efa8b94]{overflow:hidden;position:relative}.content[data-v-4efa8b94]{transform-origin:left top;z-index:999}");j_(".ecan-modal .ant-modal-body{padding:0}.ecan-full-width-modal .ant-modal{margin:0;max-width:100%;padding-bottom:0;top:0}.ecan-full-width-modal .ant-modal-content{display:flex;flex-direction:column}.ecan-full-width-modal .ant-modal-body{flex:1}.ecan-full-modal .ant-modal{margin:0;max-width:100%;padding-bottom:0;top:0}.ecan-full-modal .ant-modal-content{display:flex;flex-direction:column;height:100vh}.ecan-full-modal .ant-modal-body{flex:1}[datav-theme=darkBlue] .ecan-modal .anticon-close>svg>path{fill:#fff}"),RE.render=function(e,n,r,i,o,a){var s=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(" centered + style 中的 verticalAlign 调整弹窗位置 "),t.createVNode(s,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),onOk:e.onOk,onCancel:e.onCancel},{title:t.withCtx((function(){return[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.title),5)]})),default:t.withCtx((function(){return[t.createElementVNode("div",{class:"contain",ref:"contain",style:t.normalizeStyle(e.containStyle)},[t.createElementVNode("div",{class:"content",style:t.normalizeStyle(e.contentStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,(function(e,n){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.type),t.mergeProps({key:e.id+n},e),null,16)})),128))],4)],4)]})),_:1},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])],2112)},RE.__scopeId="data-v-4efa8b94",RE.__file="src/container/modal/Modal.vue";var BE=sw(RE),VE=Object.assign(Object.assign({},hw),{name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",linkUrl:"",linkMethod:"_self",linkPage:""}),zE=dw(VE),FE=t.defineComponent({name:"EcanImage",props:Object.assign({},zE),setup:function(e){var n=mw(e),r=t.computed((function(){return zw(e.imgUrl)})),i=t.inject(xw,{pageMode:"normal"}).pageMode;return{style:n,myImgUrl:r,onClick:function(){var n=e.linkPage,r=""!==n?function(e,t){var n="/preview?pageId=".concat(t),r="".concat(Sw).concat(t);return"preview"!==e?r:n}(t.unref(i),n):"",o=e.linkUrl,a=""!==o?o:r;""!==a&&window.open(a,e.linkMethod)}}}}),GE=["src"];j_(".image-placeholder[data-v-5a006553]{border:1px solid #d9d9d9;color:#333;display:grid;font-size:16px;place-content:center}"),FE.render=function(e,n,r,i,o,a){return""!==e.myImgUrl?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=function(){return e.onClick&&e.onClick.apply(e,arguments)})},null,12,GE)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))},FE.__scopeId="data-v-5a006553",FE.__file="src/media/image/Image.vue";var UE=sw(FE),WE=Object.assign(Object.assign({},hw),{zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,size:"default",isUseSeq:!1,columnsFixedNum:0,scrollX:0,paginationShow:!0,simple:!1,headerCellBackgroundColor:"",cellBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:void 0}),jE=dw(WE),HE=["click","refreshData"],YE=t.defineComponent({name:"EcanTable",components:{Skeleton:tw,ATable:r.Table,ATableSummary:r.TableSummary,ATableSummaryRow:r.TableSummaryRow,ATableSummaryCell:r.TableSummaryCell},props:Object.assign({},jE),setup:function(e){var n=this,r=mw(e),i=t.computed((function(){if(e.paginationShow)switch(e.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}})),o=t.computed((function(){return e.scrollX})),a=t.computed((function(){return parseFloat(e.height)-t.unref(i)})),s=t.computed((function(){var t=[];e.isUseSeq&&t.push({title:"序号",dataIndex:"SEQ"});for(var n=(t=t.concat(e.columns)).length,r=e.columnsFixedNum,i=function(n){var i=t[n];i.fixed=n<r&&"left";var o=i.headerCellAlign,a=void 0===o?"center":o,s=i.headerCellColor,l=i.cellAlign,u=void 0===l?"center":l,c=i.cellColor;i.customHeaderCell=function(){return{style:{textAlign:a,color:s,backgroundColor:e.headerCellBackgroundColor,borderBottomColor:e.borderColor}}},i.customCell=function(){return{style:{textAlign:u,color:c,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor}}}},o=0;o<n;o++)i(o);return t})),l=t.ref(0),u=t.ref(1),c=t.computed((function(){return e.paginationPageSize})),p=t.ref(e.data);t.watch((function(){return[e.data,e.dataType]}),(function(e){var t=G_(e,2),n=t[0];"static"===t[1]&&(p.value=n)}));var h=Pw(e),d=t.ref(!1),f=t.computed((function(){var n=e.simple,r=[e.paginationPosition];return e.paginationShow&&{simple:n,position:r,total:t.unref(l),current:t.unref(u),pageSize:t.unref(c)}})),g=function(e){return 1==+e?"是":0==+e?"否":e},v=Cw(e.events),m=t.inject(xw,{pageMode:"normal"}).pageMode,y=t.inject(_w,{getGlobalModel:function(e){},setGlobalModel:function(e,t){}}),x=y.getGlobalModel,_=y.setGlobalModel,b=t.ref([]),w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];b.value=e.map((function(e){return{title:e,dataIndex:e,key:e}})),p.value=t},S=Uw(e),k=function(){return C(n,void 0,void 0,pw.mark((function t(){var n,r,i,o,a;return pw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("indicator"===e.dataType){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,d.value=!0,t.next=6,S();case 6:a=t.sent,w(null===(r=null===(n=null==a?void 0:a.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.columns,null===(o=null===(i=null==a?void 0:a.data)||void 0===i?void 0:i.data)||void 0===o?void 0:o.rows),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),console.error(t.t0);case 13:return t.prev=13,d.value=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})))},M=function(){"design"!==t.unref(m)&&(k(),C(n,void 0,void 0,pw.mark((function n(){var r,i,o,a,s,f,g;return pw.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("request"===e.dataType){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,d.value=!0,n.next=6,h({pageNum:t.unref(u),pageSize:t.unref(c)});case 6:i=n.sent,o=(null===(r=null==i?void 0:i.data)||void 0===r?void 0:r.data)||{},a=o.rows,s=void 0===a?[]:a,f=o.total,g=void 0===f?0:f,l.value=g,p.value=s,n.next=15;break;case 12:n.prev=12,n.t0=n.catch(2),console.error(n.t0);case 15:return n.prev=15,d.value=!1,n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,12,15,18]])}))))};kw(e,{refreshData:function(){M()}});var T=t.computed((function(){for(var n=e.columns,r=e.isUseSeq?[{total:"小计"}]:[],i=0,o=0;o<n.length;o++){var a=n[o];a.isCalcTotal?(r.push(Object.assign(Object.assign({},a),{index:o,total:0})),i++):r.push(Object.assign({},a))}if(0===i)return[];for(var s=(t.unref(u)-1)*t.unref(c),l=s+t.unref(c),h=t.unref(p).slice(s,l),d=0;d<h.length;d++)for(var f=h[d],g=0;g<r.length;g++){var v=r[g],m=v.dataIndex,y=v.total,x=+f[m];Number.isNaN(x)||null==y||(v.total=x+y)}return r}));return(0,t.inject(bw,{setRequest:function(e,t){}}).setRequest)(M,e.requestSort),{x:o,y:a,myColumns:s,style:r,customRow:function(t){return{onClick:v("click",(function(){var n=e.id,r=x(n);_(n,Object.assign(Object.assign({},r),{RECORD:t}))}))}},pagination:f,formatFn:function(e,t){return null==t||""===t?e:{money:Ew,percentage:Nw,contrast:Nw,boolean:g}[t](e)||""},contrastClass:function(e,t){var n=parseFloat(e+"");if("contrast"!==t)return"";switch(!0){case n>=0:return"goUp";case n<0:return"goDown"}},tableChange:function(e,t,n){var r=e.current;u.value=r,k()},dataColumns:b,dataSource:p,summaryList:T,loading:d}}});j_('.table[data-v-21849ce3]{height:100%;width:100%}.goUp[data-v-21849ce3]{align-items:center;color:#ff512e;display:flex}.goUp[data-v-21849ce3][data-v-21849ce3]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}.goDown[data-v-21849ce3]{align-items:center;color:#00f7b4;display:flex}.goDown[data-v-21849ce3][data-v-21849ce3]:before{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAaVBMVEUAAAAA+b0A+LwA+L0A/6AA+LwA+L0A+L0A+b0A+LwA/78A+LwA+L0A+LwA+LwA+b0A+LsA970A+LwA+r0A9boA/7YA+LwA+LwA+LwA+L0A97wA+bwA970A970A+bwA+bwA+LsA9rkA+LzcCa+5AAAAInRSTlMAd/uVAvjYxCsiDvPp37F7aWBMNBgK7s/NvKidh4NXUEcdp9A1SAAAAI5JREFUKM+l0UcOwzAMRFGqWZbcW3rl/Q8ZhUGKMN7lLedD4EKUi/3BEIrGsQu432pmPuF+1WnfRNjLipMz7HbHT3cIF9n3BLYSerzAooSgZNcWQiuhIdBI8JQblNISCqXU/BNG/mqzJ+az13MWluIdRspNmgV+Rvc6vkCwPu1uIhQq5o7WDOwtrToG+ssDeh4QPgfT2X0AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover;content:"";display:block;height:12px;margin-right:2px;width:12px}');j_(".ecan-table ::-webkit-scrollbar{height:6px;width:6px}.ecan-table ::-webkit-scrollbar-thumb{background-color:#c8c9ca!important;border-radius:3px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.ecan-table ::-webkit-scrollbar-track{background-color:#fff}.ecan-table .ant-table-cell-scrollbar{box-shadow:0 1px 0 1px transparent}.ecan-table .ant-table{background:#fff;color:rgba(0,0,0,.65)}.ecan-table .ant-table-thead>tr>th{background:#fafafa;border-bottom:1px solid #f0f0f0;color:rgba(0,0,0,.85)}.ecan-table .ant-table-tbody>tr>td{border-bottom:1px solid #f0f0f0}.ecan-table .ant-table-bordered .ant-table-container{border:1px solid #f0f0f0!important}.ecan-table .ant-table-bordered .ant-table-cell{border-right:1px solid #f0f0f0!important}.ecan-table .ant-pagination-item-link{border:1px solid #d9d9d9!important}.ecan-table .anticon{color:rgba(0,0,0,.65)!important}[datav-theme=darkBlue] .ecan-table ::-webkit-scrollbar-thumb{background-color:#2f4dac!important}[datav-theme=darkBlue] .ecan-table ::-webkit-scrollbar-track{background-color:#192c70}[datav-theme=darkBlue] .ecan-table ::-webkit-scrollbar-corner{background-color:#192c70!important}[datav-theme=darkBlue] .ecan-table .ant-table{background:#071655;color:#e8e8e8}[datav-theme=darkBlue] .ecan-table .ant-table-thead>tr>th{background:#17338c;border-bottom:1px solid #3e8ee3;color:#cdd0f7}[datav-theme=darkBlue] .ecan-table .ant-table-tbody>tr>td{border-bottom:1px solid #3e8ee3}[datav-theme=darkBlue] .ecan-table .ant-table-bordered .ant-table-container{border:1px solid #3e8ee3!important}[datav-theme=darkBlue] .ecan-table .ant-table-bordered .ant-table-cell{border-right:1px solid #3e8ee3!important}[datav-theme=darkBlue] .ecan-table .ant-pagination-item-link{background:#17338c!important;border:1px solid #243c8e!important}[datav-theme=darkBlue] .ecan-table .ant-pagination-item{background:#17338c!important}[datav-theme=darkBlue] .ecan-table .anticon{color:hsla(0,0%,100%,.65)!important}[datav-theme=darkBlue] .ecan-table .ant-table-tbody>tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)>td{background:#225b98}"),YE.render=function(e,n,r,i,o,a){var s=t.resolveComponent("a-table-summary-cell"),l=t.resolveComponent("a-table-summary-row"),u=t.resolveComponent("a-table-summary"),c=t.resolveComponent("a-table"),p=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-table",style:t.normalizeStyle(e.style)},[t.createVNode(p,{loading:e.loading},{default:t.withCtx((function(){return[t.createVNode(c,{class:"table",columns:e.dataColumns.length>0?e.dataColumns:e.myColumns,"data-source":e.dataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:{x:e.x,y:e.y},pagination:e.pagination,onChange:e.tableChange},{bodyCell:t.withCtx((function(n){var r=n.column,i=n.index,o=n.text;return[t.createCommentVNode(" 序列配置 "),"SEQ"===r.dataIndex?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i+1),1)],2112)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([e.contrastClass(o,r.format)])},t.toDisplayString((null!=r.format||""!==r.format)&&e.formatFn(o,r.format)),3))]})),summary:t.withCtx((function(){return[e.summaryList.length>0?(t.openBlock(),t.createBlock(u,{key:0},{default:t.withCtx((function(){return[t.createVNode(l,null,{default:t.withCtx((function(){return[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(function(n,r){return t.openBlock(),t.createBlock(s,{key:n.dataIndex+r,index:n.index,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:n.cellAlign||"center",color:n.cellColor,borderBottomColor:e.borderColor})},{default:t.withCtx((function(){return[t.createElementVNode("div",{class:t.normalizeClass([e.contrastClass(n.total,n.format)])},t.toDisplayString((null!=n.format||""!==n.format)&&e.formatFn(n.total,n.format)),3)]})),_:2},1032,["index","style"])})),128))]})),_:1})]})),_:1})):t.createCommentVNode("v-if",!0)]})),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"])]})),_:1},8,["loading"])],4)},YE.__scopeId="data-v-21849ce3",YE.__file="src/table/table/Table.vue";var qE=sw(YE),XE=Object.assign(Object.assign({},hw),{mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"}),ZE=dw(XE);Yx([yk,function(e){Yx(GA),e.registerChartView(yA),e.registerSeriesModel(_A),e.registerLayout(wA),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,bA),ov("map",e.registerAction)},uT,function(e){Yx(IO),Yx(RO)},dD]);var JE=t.defineComponent({name:"EcanMap",components:{Echarts:q_},props:Object.assign({},ZE),setup:function(e){var n=this,r=mw(e,["backgroundImage"]),i=t.ref(),o=t.computed((function(){return zw(e.geoBackgroundImage)})),a=t.ref(),s=t.computed((function(){return zw(e.backgroundImage)})),l=t.computed((function(){return e.backgroundImage?{image:t.unref(a),repeat:"no-repeat",width:"auto"}:""})),u=t.computed((function(){return e.geoBackgroundImage?{image:t.unref(i),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor})),c=t.computed((function(){var t=e.symbolImage;return e.symbolImage?"image://"+zw(t):"circle"})),p=t.computed((function(){var t;return null===(t=e.geoCenter)||void 0===t?void 0:t.split(",")})),h=t.computed((function(){return{backgroundColor:t.unref(l),tooltip:{show:!0},geo:{zoom:e.geoZoom,roam:e.geoRoam,center:t.unref(p),map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(u),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(c),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}})),d=t.ref(!1);return t.watch((function(){return e.mapJson}),(function(){C(n,void 0,void 0,pw.mark((function t(){var n,r;return pw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=(n=e.mapJson)&&null!=n.path){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,Gw(ww+n.path);case 5:Km("map",(null==(r=t.sent)?void 0:r.data)||{}),d.value=!0;case 8:case"end":return t.stop()}}),t)})))}),{immediate:!0}),{option:h,style:r,isLoadedData:d,myBackgroundImage:s,backgroundImageRef:a,geoBackgroundImageRef:i,myGeoBackgroundImage:o}}}),KE=["src"],QE=["src"];j_(".ecan-map[data-v-7865460d]{align-items:center;display:flex;justify-content:center}"),JE.render=function(e,n,r,i,o,a){var s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):t.createCommentVNode("v-if",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,KE),[[t.vShow,!1]]),t.withDirectives(t.createElementVNode("img",{ref:"backgroundImageRef",src:e.myBackgroundImage},null,8,QE),[[t.vShow,!1]])],4)},JE.__scopeId="data-v-7865460d",JE.__file="src/map/map/Map.vue";var $E=sw(JE),eN=Object.freeze({__proto__:null,pageConfig:fw,pageConfigComponentProps:gw,EcanPageConfig:Hw,providerConfig:Yw,providerConfigComponentProps:qw,EcanProviderConfig:Jw,textProps:Kw,textComponentProps:Qw,textEvents:$w,EcanText:nS,EcanScrollText:oS,timeDisplayProps:aS,timeDisplayComponentProps:sS,EcanTimeDisplay:uS,listProps:cS,listComponentProps:pS,listEvents:hS,EcanList:kS,proportionProps:CS,proportionComponentProps:MS,proportionEvents:TS,EcanProportion:IS,inputProps:DS,inputComponentProps:OS,EcanInput:NS,datePickerProps:LS,datePickerComponentProps:PS,datePickerEvents:RS,EcanDatePicker:VS,selectProps:zS,selectComponentProps:FS,selectEvents:GS,EcanSelect:WS,rangePickerProps:jS,rangePickerComponentProps:HS,rangePickerEvents:YS,EcanRangePicker:XS,buttonProps:ZS,buttonComponentProps:JS,buttonEvents:KS,EcanButton:ek,tabsProps:tk,tabsComponentProps:nk,tabsEvents:rk,EcanTabs:ak,pieProps:sk,pieComponentProps:lk,pieEvents:uk,EcanPie:GO,lineProps:UO,lineComponentProps:WO,lineEvents:jO,EcanLine:YO,barProps:qO,barComponentProps:XO,barEvents:ZO,EcanBar:KO,scatterProps:QO,scatterComponentProps:$O,scatterEvents:eE,EcanScatter:nE,customGraphProps:rE,customGraphComponentProps:iE,EcanCustomGraph:aE,comboGraphProps:sE,comboGraphComponentProps:lE,comboGraphEvents:uE,EcanComboGraph:pE,borderProps:hE,borderComponentProps:dE,borderEvents:fE,EcanBorder:EE,modalProps:NE,modalComponentProps:LE,modalEvents:PE,EcanModal:BE,imageProps:VE,imageComponentProps:zE,EcanImage:UE,tableProps:WE,tableComponentProps:jE,tableEvents:HE,EcanTable:qE,mapProps:XE,mapComponentProps:ZE,EcanMap:$E}),tN={install:function(e){Object.keys(eN).forEach((function(t){var n=eN[t];n.install&&e.use(n)}))}};e.EcanBar=KO,e.EcanBorder=EE,e.EcanButton=ek,e.EcanComboGraph=pE,e.EcanCustomGraph=aE,e.EcanDatePicker=VS,e.EcanImage=UE,e.EcanInput=NS,e.EcanLine=YO,e.EcanList=kS,e.EcanMap=$E,e.EcanModal=BE,e.EcanPageConfig=Hw,e.EcanPie=GO,e.EcanProportion=IS,e.EcanProviderConfig=Jw,e.EcanRangePicker=XS,e.EcanScatter=nE,e.EcanScrollText=oS,e.EcanSelect=WS,e.EcanTable=qE,e.EcanTabs=ak,e.EcanText=nS,e.EcanTimeDisplay=uS,e.barComponentProps=XO,e.barEvents=ZO,e.barProps=qO,e.borderComponentProps=dE,e.borderEvents=fE,e.borderProps=hE,e.buttonComponentProps=JS,e.buttonEvents=KS,e.buttonProps=ZS,e.comboGraphComponentProps=lE,e.comboGraphEvents=uE,e.comboGraphProps=sE,e.customGraphComponentProps=iE,e.customGraphProps=rE,e.datePickerComponentProps=PS,e.datePickerEvents=RS,e.datePickerProps=LS,e.default=tN,e.imageComponentProps=zE,e.imageProps=VE,e.inputComponentProps=OS,e.inputProps=DS,e.lineComponentProps=WO,e.lineEvents=jO,e.lineProps=UO,e.listComponentProps=pS,e.listEvents=hS,e.listProps=cS,e.mapComponentProps=ZE,e.mapProps=XE,e.modalComponentProps=LE,e.modalEvents=PE,e.modalProps=NE,e.pageConfig=fw,e.pageConfigComponentProps=gw,e.pieComponentProps=lk,e.pieEvents=uk,e.pieProps=sk,e.proportionComponentProps=MS,e.proportionEvents=TS,e.proportionProps=CS,e.providerConfig=Yw,e.providerConfigComponentProps=qw,e.rangePickerComponentProps=HS,e.rangePickerEvents=YS,e.rangePickerProps=jS,e.scatterComponentProps=$O,e.scatterEvents=eE,e.scatterProps=QO,e.selectComponentProps=FS,e.selectEvents=GS,e.selectProps=zS,e.tableComponentProps=jE,e.tableEvents=HE,e.tableProps=WE,e.tabsComponentProps=nk,e.tabsEvents=rk,e.tabsProps=tk,e.textComponentProps=Qw,e.textEvents=$w,e.textProps=Kw,e.timeDisplayComponentProps=sS,e.timeDisplayProps=aS,Object.defineProperty(e,"__esModule",{value:!0})}));