PageSourceSearch

https://tjweather.com/js/chunk-echarts.2.5.1.739a32ab.js

js tjweather.com collected 2026-10-03 21:10:18 UTC 830,231 bytes, 1 lines download raw bytes

1"use strict";(window["webpackChunkwebsite_ui"]=window["webpackChunkwebsite_ui"]||[]).push([[294],{22691:function(t,e,n){n.d(e,{Q:function(){return o},S1:function(){return Hh}});var i={};n.r(i),n.d(i,{Arc:function(){return cl.Z},BezierCurve:function(){return ul.Z},BoundingRect:function(){return $n.Z},Circle:function(){return el.Z},CompoundPath:function(){return hl.Z},Ellipse:function(){return nl.Z},Group:function(){return Xs.Z},Image:function(){return tl.ZP},IncrementalDisplayable:function(){return yl.Z},Line:function(){return ll.Z},LinearGradient:function(){return dl.Z},OrientedBoundingRect:function(){return fl.Z},Path:function(){return Ht.ZP},Point:function(){return gl.Z},Polygon:function(){return rl.Z},Polyline:function(){return al.Z},RadialGradient:function(){return pl.Z},Rect:function(){return sl.Z},Ring:function(){return ol.Z},Sector:function(){return il.C},Text:function(){return Bt.ZP},applyTransform:function(){return Ol},clipPointsByRect:function(){return Zl},clipRectByRect:function(){return Gl},createIcon:function(){return Wl},extendPath:function(){return wl},extendShape:function(){return Sl},getShapeClass:function(){return Il},getTransform:function(){return Rl},groupTransition:function(){return Bl},initProps:function(){return cn},isElementRemoved:function(){return hn},lineLineIntersect:function(){return Hl},linePolygonIntersect:function(){return Fl},makeImage:function(){return Dl},makePath:function(){return Tl},mergePath:function(){return Al},registerShape:function(){return Ml},removeElement:function(){return dn},removeElementWithFadeOut:function(){return fn},resizePath:function(){return kl},setTooltipConfig:function(){return Yl},subPixelOptimize:function(){return Nl},subPixelOptimizeLine:function(){return Ll},subPixelOptimizeRect:function(){return Pl},transformDirection:function(){return El},traverseElements:function(){return jl},updateProps:function(){return un}});var o={};n.r(o),n.d(o,{o:function(){return dl.Z}});var r=n(70655),a=n(56641),s=n(33051),l=n(66387),u=n(19455),c=n(23510),h=1e-4,d=20;function p(t){return t.replace(/^\s+|\s+$/g,"")}function f(t,e,n,i){var o=e[0],r=e[1],a=n[0],s=n[1],l=r-o,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=o)return a;if(t>=r)return s}else{if(t>=o)return a;if(t<=r)return s}else{if(t===o)return a;if(t===r)return s}return(t-o)/l*u+a}function g(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return s.HD(t)?p(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function y(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),d),t=(+t).toFixed(e),n?t:+t}function v(t){return t.sort((function(t,e){return t-e})),t}function m(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return x(t)}function x(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,o=n>0?n:e.length,r=e.indexOf("."),a=r<0?0:o-1-r;return Math.max(0,a-i)}function _(t,e){var n=Math.log,i=Math.LN10,o=Math.floor(n(t[1]-t[0])/i),r=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-o+r,0),20);return isFinite(a)?a:20}function S(t,e){var n=s.u4(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var i=Math.pow(10,e),o=s.UI(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),r=100*i,a=s.UI(o,(function(t){return Math.floor(t)})),l=s.u4(a,(function(t,e){return t+e}),0),u=s.UI(o,(function(t,e){return t-a[e]}));while(l<r){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,p=u.length;d<p;++d)u[d]>c&&(c=u[d],h=d);++a[h],u[h]=0,++l}return s.UI(a,(function(t){return t/i}))}function b(t,e){var n=Math.max(m(t),m(e)),i=t+e;return n>d?i:y(i,n)}var w=9007199254740991;function M(t){var e=2*Math.PI;return(t%e+e)%e}function I(t){return t>-h&&t<h}var T=/^(?:(\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 D(t){if(t instanceof Date)return t;if(s.HD(t)){var e=T.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function C(t){return Math.pow(10,A(t))}function A(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function k(t,e){var n,i=A(t),o=Math.pow(10,i),r=t/o;
1return n=e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10,t=n*o,i>=-20?+t.toFixed(i<0?-i:0):t}function L(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),o=+t[i-1],r=n-i;return r?o+r*(t[i]-o):o}function P(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var o=t[i].interval,r=t[i].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-n),e=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!==1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function N(t){var e=parseFloat(t);return e==t&&(0!==e||!s.HD(t)||t.indexOf("x")<=0)?e:NaN}function R(t){return!isNaN(N(t))}function O(){return Math.round(9*Math.random())}function E(t,e){return 0===e?t:E(e,t%e)}function V(t,e){return null==t?e:null==e?t:t*e/E(t,e)}function z(t,e,n){return(e-t)*n+t}var B="series\0",Z="\0_ec_\0";function G(t){return t instanceof Array?t:null==t?[]:[t]}function W(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,o=n.length;i<o;i++){var r=n[i];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}var F=["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 H(t){return!(0,s.Kn)(t)||(0,s.kJ)(t)||t instanceof Date?t:t.value}function U(t){return(0,s.Kn)(t)&&!(t instanceof Array)}function X(t,e,n){var i="normalMerge"===n,o="replaceMerge"===n,r="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=(0,s.kW)();(0,s.S6)(e,(function(t,n){(0,s.Kn)(t)||(e[n]=null)}));var l=Y(t,a,n);return(i||o)&&J(l,t,a,e),i&&j(l,e),i||o?K(l,e,o):r&&q(l,e),$(l),l}function Y(t,e,n){var i=[];if("replaceAll"===n)return i;for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),i.push({existing:"replaceMerge"===n||it(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}function J(t,e,n,i){(0,s.S6)(i,(function(o,r){if(o&&null!=o.id){var a=tt(o.id),l=n.get(a);if(null!=l){var u=t[l];(0,s.hu)(!u.newOption,'Duplicated option on id "'+a+'".'),u.newOption=o,u.existing=e[l],i[r]=null}}}))}function j(t,e){(0,s.S6)(e,(function(n,i){if(n&&null!=n.name)for(var o=0;o<t.length;o++){var r=t[o].existing;if(!t[o].newOption&&r&&(null==r.id||null==n.id)&&!it(n)&&!it(r)&&Q("name",r,n))return t[o].newOption=n,void(e[i]=null)}}))}function K(t,e,n){(0,s.S6)(e,(function(e){if(e){var i,o=0;while((i=t[o])&&(i.newOption||it(i.existing)||i.existing&&null!=e.id&&!Q("id",e,i.existing)))o++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),o++}}))}function q(t,e){(0,s.S6)(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function $(t){var e=(0,s.kW)();(0,s.S6)(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),(0,s.S6)(t,(function(t){var n=t.newOption;(0,s.hu)(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),(0,s.S6)(t,(function(t,n){var i=t.existing,o=t.newOption,r=t.keyInfo;if((0,s.Kn)(o)){if(r.name=null!=o.name?tt(o.name):i?i.name:B+n,i)r.id=tt(i.id);else if(null!=o.id)r.id=tt(o.id);else{var a=0;do{r.id="\0"+r.name+"\0"+a++}while(e.get(r.id))}e.set(r.id,t)}}))}function Q(t,e,n){var i=et(e[t],null),o=et(n[t],null);return null!=i&&null!=o&&i===o}function tt(t){return et(t,"")}function et(t,e){return null==t?e:(0,s.HD)(t)?t:(0,s.hj)(t)||(0,s.cd)(t)?t+"":e}function nt(t){var e=t.name;return!(!e||!e.indexOf(B))}function it(t){return t&&null!=t.id&&0===tt(t.id).indexOf(Z)}function ot(t){return Z+t}function rt(t,e,n){(0,s.S6)(t,(function(t){var i=t.newOption;(0,s.Kn)(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=at(e,i,t.existing,n))}))}function at(t,e,n,i){var o=e.type?e.type:n?n.subType:i.determineSubType(t,e);return o}function st(t,e){var n={},i={};return o(t||[],n),o(e||[],i,n),[r(n),r(i)];function o(t,e,n){for(var i=0,o=t.length;i<o;i++){var r=et(t[i].seriesId,null);if(null==r)return;for(var a=G(t[i].dataIndex),s=n&&n[r],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[r]||(e[r]={}))[c]=1}}}function r(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var o=r(t[i],!0);o.length&&n.push({seriesId:i,dataIndex:o})}return n}}function lt(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?(0,s.kJ)(e.dataIndex)?(0,s.UI)(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?(0,s.kJ)(e.name)?(0,s.UI)(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function ut(){var t="__ec_inner_"+ct++;return function(e){return e[t]||(e[t]={})}}var ct=O();function ht(t,e,n){var i=dt(e,n),o=i.mainTypeSpecified,r=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!o&&l&&r.set(l,{}),r.each((function(e,i){var o=gt(t,i,e,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=o.models,s[i+"Model"]=o.models[0]})),s}function dt(t,e){var n;if((0,s.HD)(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var o=(0,s.kW)(),r={},a=!1;return(0,s.S6)(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=i[1],u=(i[2]||"").toLowerCase();if(l&&u&&!(e&&e.includeMainTypes&&(0,s.cq)(e.includeMainTypes,l)<0)){a=a||!!l;var c=o.get(l)||o.set(l,{});c[u]=t}}else r[n]=t})),{mainTypeSpecified:a,queryOptionMap:o,others:r}}var pt={useDefault:!0,enableAll:!1,enableNone:!1},ft={useDefault:!1,enableAll:!0,enableNone:!0};function gt(t,e,n,i){i=i||pt;var o=n.index,r=n.id,a=n.name,l={models:null,specified:null!=o||null!=r||null!=a};if(!l.specified){var u=void 0;return l.models=i.useDefault&&(u=t.getComponent(e))?[u]:[],l}return"none"===o||!1===o?((0,s.hu)(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===o&&((0,s.hu)(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=a=null),l.models=t.queryComponents({mainType:e,index:o,id:r,name:a}),l)}function yt(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function vt(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function mt(t){return"auto"===t?l.Z.domSupported?"html":"richText":t||"html"}function xt(t,e){var n=(0,s.kW)(),i=[];return(0,s.S6)(t,(function(t){var o=e(t);(n.get(o)||(i.push(o),n.set(o,[]))).push(t)})),{keys:i,buckets:n}}function _t(t,e,n,i,o){var r=null==e||"auto"===e;if(null==i)return i;if((0,s.hj)(i)){var a=z(n||0,i,o);return y(a,r?Math.max(m(n||0),m(i)):e)}if((0,s.HD)(i))return o<1?n:i;for(var l=[],u=n,c=i,h=Math.max(u?u.length:0,c.length),d=0;d<h;++d){var p=t.getDimensionInfo(d);if(p&&"ordinal"===p.type)l[d]=(o<1&&u?u:c)[d];else{var f=u&&u[d]?u[d]:0,g=c[d];a=z(f,g,o);l[d]=y(a,r?Math.max(m(f),m(g)):e)}}return l}var St=".",bt="___EC__COMPONENT__CONTAINER___",wt="___EC__EXTENDED_CLASS___";function Mt(t){var e={main:"",sub:""};if(t){var n=t.split(St);e.main=n[0]||"",e.sub=n[1]||""}return e}function It(t){s.hu(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Tt(t){return!(!t||!t[wt])}function Dt(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return Ct(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},s.XW(e,this)),s.l7(e.prototype,t),e[wt]=!0,e.extend=this.extend,e.superCall=Pt,e.superApply=Nt,e.superClass=n,e}}function Ct(t){return s.mf(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function At(t,e){t.extend=e.extend}var kt=Math.round(10*Math.random());function Lt(t){var e=["__\0is_clz",kt++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Pt(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Nt(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Rt(t){var e={};function n(t){var n=e[t.main];return n&&n[bt]||(n=e[t.main]={},n[bt]=!0),n}t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){It(i),t.prototype.type=i;var o=Mt(i);if(o.sub){if(o.sub!==bt){var r=n(o);r[o.sub]=t}}else e[o.main]=t}return t},t.getClass=function(t,n,i){var o=e[t];if(o&&o[bt]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return o},t.getClassesByMainType=function(t){var n=Mt(t),i=[],o=e[n.main];return o&&o[bt]?s.S6(o,(function(t,e){e!==bt&&i.push(t)})):i.push(o),i},t.hasClass=function(t){var n=Mt(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return s.S6(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=Mt(t),i=e[n.main];return i&&i[bt]}}function Ot(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,o){for(var r={},a=0;a<t.length;a++){var l=t[a][1];if(!(i&&s.cq(i,l)>=0||o&&s.cq(o,l)<0)){var u=n.getShallow(l,e);null!=u&&(r[t[a][0]]=u)}}return r}}var Et=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["o
1pacity"],["shadowColor"]],Vt=Ot(Et),zt=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Vt(this,t,e)},t}(),Bt=n(79750),Zt=n(92528),Gt=ut(),Wt=function(t,e,n,i){if(i){var o=Gt(i);o.dataIndex=n,o.dataType=e,o.seriesIndex=t,"group"===i.type&&i.traverse((function(i){var o=Gt(i);o.seriesIndex=t,o.dataIndex=n,o.dataType=e}))}},Ft=n(21092),Ht=n(8846),Ut=1,Xt={},Yt=ut(),Jt=ut(),jt=0,Kt=1,qt=2,$t=["emphasis","blur","select"],Qt=["normal","emphasis","blur","select"],te=10,ee=9,ne="highlight",ie="downplay",oe="select",re="unselect",ae="toggleSelect";function se(t){return null!=t&&"none"!==t}var le=new Zt.ZP(100);function ue(t){if((0,s.HD)(t)){var e=le.get(t);return e||(e=Ft.xb(t,-.1),le.put(t,e)),e}if((0,s.Qq)(t)){var n=(0,s.l7)({},t);return n.colorStops=(0,s.UI)(t.colorStops,(function(t){return{offset:t.offset,color:Ft.xb(t.color,-.1)}})),n}return t}function ce(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function he(t){ce(t,"emphasis",qt)}function de(t){t.hoverState===qt&&ce(t,"normal",jt)}function pe(t){ce(t,"blur",Kt)}function fe(t){t.hoverState===Kt&&ce(t,"normal",jt)}function ge(t){t.selected=!0}function ye(t){t.selected=!1}function ve(t,e,n){e(t,n)}function me(t,e,n){ve(t,e,n),t.isGroup&&t.traverse((function(t){ve(t,e,n)}))}function xe(t,e){switch(e){case"emphasis":t.hoverState=qt;break;case"normal":t.hoverState=jt;break;case"blur":t.hoverState=Kt;break;case"select":t.selected=!0}}function _e(t,e,n,i){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(r,e)}return r}function Se(t,e,n,i){var o=n&&(0,s.cq)(n,"select")>=0,r=!1;if(t instanceof Ht.ZP){var a=Yt(t),l=o&&a.selectFill||a.normalFill,u=o&&a.selectStroke||a.normalStroke;if(se(l)||se(u)){i=i||{};var c=i.style||{};"inherit"===c.fill?(r=!0,i=(0,s.l7)({},i),c=(0,s.l7)({},c),c.fill=l):!se(c.fill)&&se(l)?(r=!0,i=(0,s.l7)({},i),c=(0,s.l7)({},c),c.fill=ue(l)):!se(c.stroke)&&se(u)&&(r||(i=(0,s.l7)({},i),c=(0,s.l7)({},c)),c.stroke=ue(u)),i.style=c}}if(i&&null==i.z2){r||(i=(0,s.l7)({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:te)}return i}function be(t,e,n){if(n&&null==n.z2){n=(0,s.l7)({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:ee)}return n}function we(t,e,n){var i=(0,s.cq)(t.currentStates,e)>=0,o=t.style.opacity,r=i?null:_e(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=(0,s.l7)({},n),a=(0,s.l7)({opacity:i?o:.1*r.opacity},a),n.style=a),n}function Me(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return Se(this,t,e,n);if("blur"===t)return we(this,t,n);if("select"===t)return be(this,t,n)}return n}function Ie(t){t.stateProxy=Me;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Me),n&&(n.stateProxy=Me)}function Te(t,e){!Re(t,e)&&!t.__highByOuter&&me(t,he)}function De(t,e){!Re(t,e)&&!t.__highByOuter&&me(t,de)}function Ce(t,e){t.__highByOuter|=1<<(e||0),me(t,he)}function Ae(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&me(t,de)}function ke(t){me(t,pe)}function Le(t){me(t,fe)}function Pe(t){me(t,ge)}function Ne(t){me(t,ye)}function Re(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Oe(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,o){var r=Jt(o),a="series"===e,s=a?t.getViewOfSeriesModel(o):t.getViewOfComponentModel(o);!a&&i.push(s),r.isBlured&&(s.group.traverse((function(t){fe(t)})),a&&n.push(o)),r.isBlured=!1})),(0,s.S6)(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Ee(t,e,n,i){var o=i.getModel();function r(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Le(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=o.getSeriesByIndex(t),l=a.coordinateSystem;l&&l.master&&(l=l.master);var u=[];o.eachSeries((function(t){var o=a===t,c=t.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&l?c===l:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!h||"series"===e&&o)){var d=i.getViewOfSeriesModel(t);if(d.group.traverse((function(t){t.__highByOuter&&o&&"self"===e||pe(t)})),(0,s.zG)(e))r(t.getData(),e);else if((0,s.Kn)(e))for(var p=(0,s.XP)(e),f=0;f<p.length;f++)r(t.getData(p[f]),e[p[f]]);u.push(t),Jt(t).isBlured=!0}})),o.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,o)}}))}}function Ve(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){Jt(i).isBlured=!0;var o=n.getViewOfComponentModel(i);o&&o.focusBlurEnabled&&o.group.traverse((function(t){pe(t)}))}}}function ze(t,e,n){var i=t.seriesIndex,o=t.getData(e.dataType);if(o){var r=lt(o,e);r=((0,s.kJ)(r)?r[0]:r)||0;var a=o.getItemGraphicEl(r);if(!a){var l=o.count(),u=0;while(!a&&u<l)a=o.getItemGraphicEl(u++)}
1if(a){var c=Gt(a);Ee(i,c.focus,c.blurScope,n)}else{var h=t.get(["emphasis","focus"]),d=t.get(["emphasis","blurScope"]);null!=h&&Ee(i,h,d,n)}}}function Be(t,e,n,i){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;var r=i.getModel().getComponent(t,e);if(!r)return o;var a=i.getViewOfComponentModel(r);if(!a||!a.findHighDownDispatchers)return o;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Gt(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Ze(t,e,n){var i=Gt(t),o=Be(i.componentMainType,i.componentIndex,i.componentHighDownName,n),r=o.dispatchers,a=o.focusSelf;r?(a&&Ve(i.componentMainType,i.componentIndex,n),(0,s.S6)(r,(function(t){return Te(t,e)}))):(Ee(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&Ve(i.componentMainType,i.componentIndex,n),Te(t,e))}function Ge(t,e,n){Oe(n);var i=Gt(t),o=Be(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;o?(0,s.S6)(o,(function(t){return De(t,e)})):De(t,e)}function We(t,e,n){if(nn(e)){var i=e.dataType,o=t.getData(i),r=lt(o,e);(0,s.kJ)(r)||(r=[r]),t[e.type===ae?"toggleSelect":e.type===oe?"select":"unselect"](r,i)}}function Fe(t){var e=t.getAllData();(0,s.S6)(e,(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?Pe(e):Ne(e)}))}))}function He(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();(0,s.S6)(n,(function(n){n.data;var i=n.type,o=t.getSelectedDataIndices();if(o.length>0){var r={dataIndex:o,seriesIndex:t.seriesIndex};null!=i&&(r.dataType=i),e.push(r)}}))})),e}function Ue(t,e,n){$e(t,!0),me(t,Ie),Je(t,e,n)}function Xe(t){$e(t,!1)}function Ye(t,e,n,i){i?Xe(t):Ue(t,e,n)}function Je(t,e,n){var i=Gt(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var je=["emphasis","blur","select"],Ke={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function qe(t,e,n,i){n=n||"itemStyle";for(var o=0;o<je.length;o++){var r=je[o],a=e.getModel([r,n]),s=t.ensureState(r);s.style=i?i(a):a[Ke[n]]()}}function $e(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Qe(t){return!(!t||!t.__highDownDispatcher)}function tn(t,e,n){var i=Gt(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}function en(t){var e=Xt[t];return null==e&&Ut<=32&&(e=Xt[t]=Ut++),e}function nn(t){var e=t.type;return e===oe||e===re||e===ae}function on(t){var e=t.type;return e===ne||e===ie}function rn(t){var e=Yt(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var an=ut();function sn(t,e,n,i,o){var r;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();r=a&&a.animation}var l=e&&e.isAnimationEnabled(),u="update"===t;if(l){var c=void 0,h=void 0,d=void 0;i?(c=(0,s.pD)(i.duration,200),h=(0,s.pD)(i.easing,"cubicOut"),d=0):(c=e.getShallow(u?"animationDurationUpdate":"animationDuration"),h=e.getShallow(u?"animationEasingUpdate":"animationEasing"),d=e.getShallow(u?"animationDelayUpdate":"animationDelay")),r&&(null!=r.duration&&(c=r.duration),null!=r.easing&&(h=r.easing),null!=r.delay&&(d=r.delay)),(0,s.mf)(d)&&(d=d(n,o)),(0,s.mf)(c)&&(c=c(n));var p={duration:c||0,delay:d,easing:h};return p}return null}function ln(t,e,n,i,o,r,a){var l,u=!1;(0,s.mf)(o)?(a=r,r=o,o=null):(0,s.Kn)(o)&&(r=o.cb,a=o.during,u=o.isFrom,l=o.removeOpt,o=o.dataIndex);var c="leave"===t;c||e.stopAnimation("leave");var h=sn(t,i,o,c?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null);if(h&&h.duration>0){var d=h.duration,p=h.delay,f=h.easing,g={duration:d,delay:p||0,easing:f,done:r,force:!!r||!!a,setToFinal:!c,scope:t,during:a};u?e.animateFrom(n,g):e.animateTo(n,g)}else e.stopAnimation(),!u&&e.attr(n),a&&a(1),r&&r()}function un(t,e,n,i,o,r){ln("update",t,e,n,i,o,r)}function cn(t,e,n,i,o,r){ln("enter",t,e,n,i,o,r)}function hn(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function dn(t,e,n,i,o,r){hn(t)||ln("leave",t,e,n,i,o,r)}function pn(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),dn(t,{style:{opacity:0}
1},e,n,i)}function fn(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||pn(t,e,n,i)})):pn(t,e,n,i)}function gn(t){an(t).oldStyle=t.style}function yn(t){return an(t).oldStyle}var vn={};function mn(t,e){for(var n=0;n<$t.length;n++){var i=$t[n],o=e[i],r=t.ensureState(i);r.style=r.style||{},r.style.text=o}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function xn(t,e,n){var i,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,l=e.normal;o&&(i=o.getFormattedLabel(r,"normal",null,a,l&&l.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=(0,s.mf)(t.defaultText)?t.defaultText(r,t,n):t.defaultText);for(var u={normal:i},c=0;c<$t.length;c++){var h=$t[c],d=e[h];u[h]=(0,s.pD)(o?o.getFormattedLabel(r,h,null,a,d&&d.get("formatter")):null,i)}return u}function _n(t,e,n,i){n=n||vn;for(var o=t instanceof Bt.ZP,r=!1,a=0;a<Qt.length;a++){var l=e[Qt[a]];if(l&&l.getShallow("show")){r=!0;break}}var u=o?t:t.getTextContent();if(r){o||(u||(u=new Bt.ZP,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var c=xn(n,e),h=e.normal,d=!!h.getShallow("show"),p=bn(h,i&&i.normal,n,!1,!o);p.text=c.normal,o||t.setTextConfig(wn(h,n,!1));for(a=0;a<$t.length;a++){var f=$t[a];l=e[f];if(l){var g=u.ensureState(f),y=!!(0,s.pD)(l.getShallow("show"),d);if(y!==d&&(g.ignore=!y),g.style=bn(l,i&&i[f],n,!0,!o),g.style.text=c[f],!o){var v=t.ensureState(f);v.textConfig=wn(l,n,!0)}}}u.silent=!!h.getShallow("silent"),null!=u.style.x&&(p.x=u.style.x),null!=u.style.y&&(p.y=u.style.y),u.ignore=!d,u.useStyle(p),u.dirty(),n.enableTextSetter&&(Ln(u).setLabelText=function(t){var i=xn(n,e,t);mn(u,i)})}else u&&(u.ignore=!0);t.dirty()}function Sn(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<$t.length;i++){var o=$t[i];n[o]=t.getModel([o,e])}return n}function bn(t,e,n,i,o){var r={};return Mn(r,t,n,i,o),e&&(0,s.l7)(r,e),r}function wn(t,e,n){e=e||{};var i,o={},r=t.getShallow("rotate"),a=(0,s.pD)(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=e.defaultOutsidePosition||"top"),null!=i&&(o.position=i),null!=l&&(o.offset=l),null!=r&&(r*=Math.PI/180,o.rotation=r),null!=a&&(o.distance=a),o.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",o}function Mn(t,e,n,i,o){n=n||vn;var r,a=e.ecModel,s=a&&a.option.textStyle,l=In(e);if(l)for(var u in r={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);An(r[u]={},c,s,n,i,o,!1,!0)}r&&(t.rich=r);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("minMargin");null!=d&&(t.margin=d),An(t,e,s,n,i,o,!0,!1)}function In(t){var e;while(t&&t!==t.ecModel){var n=(t.option||vn).rich;if(n){e=e||{};for(var i=(0,s.XP)(n),o=0;o<i.length;o++){var r=i[o];e[r]=1}}t=t.parentModel}return e}var Tn=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Dn=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Cn=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function An(t,e,n,i,o,r,a,l){n=!o&&n||vn;var u=i&&i.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),d=(0,s.pD)(e.getShallow("opacity"),n.opacity);"inherit"!==c&&"auto"!==c||(c=u||null),"inherit"!==h&&"auto"!==h||(h=u||null),r||(c=c||n.color,h=h||n.textBorderColor),null!=c&&(t.fill=c),null!=h&&(t.stroke=h);var p=(0,s.pD)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var f=(0,s.pD)(e.getShallow("textBorderType"),n.textBorderType);null!=f&&(t.lineDash=f);var g=(0,s.pD)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=g&&(t.lineDashOffset=g),o||null!=d||l||(d=i&&i.defaultOpacity),null!=d&&(t.opacity=d),o||r||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var y=0;y<Tn.length;y++){var v=Tn[y],m=(0,s.pD)(e.getShallow(v),n[v]);null!=m&&(t[v]=m)}for(y=0;y<Dn.length;y++){v=Dn[y],m=e.getShallow(v);null!=m&&(t[v]=m)}if(null==t.verticalAlign){var x=e.getShallow("baseline");null!=x&&(t.verticalAlign=x)}if(!a||!i.disableBox){for(y=0;y<Cn.length;y++){v=Cn[y],m=e.getShallow(v);null!=m&&(t[v]=m)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!u||(t.backgroundColor=u),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!u||(t.borderColor=u)}}function kn(t,e){var n=e&&e.getModel("textStyle");return(0,s.fy)([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ln=ut();function Pn(t,e,n,i){if(t){var o=Ln(t);o.prevValue=o.value,o.value=n;var r=e.normal;o.valueAnimation=r.get("valueAnimation"),o.valueAnimation&&(o.precision=r.get("precision"),o.defaultInterpolatedText=i,o.statesModels=e)}}function Nn(t,e,n,i,o){var r=Ln(t);if(r.valueAnimation&&r.prevValue!==r.value){var a=r.defaultInterpolatedText,l=(0,s.pD)(r.interpolatedValue,r.prevValue),u=r.value;t.percent=0,(null==r.prevValue?cn:un)(t,{percent:1},i,e,null,c)}function c(i){var s=_t(n,r.precision,l,u,i);r.interpolatedValue=1===i?null:s;var c=xn({labelDataIndex:e,labelFetcher:o,defaultText:a?a(s):s+""},r.statesModels,s);mn(t,c)}}var Rn=["textStyle","color"],On=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],En=new Bt.ZP,Vn=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;
1return this.getShallow("color")||(!t&&e?e.get(Rn):null)},t.prototype.getFont=function(){return kn({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<On.length;n++)e[On[n]]=this.getShallow(On[n]);return En.useStyle(e),En.update(),En.getBoundingRect()},t}(),zn=Vn,Bn=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Zn=Ot(Bn),Gn=function(){function t(){}return t.prototype.getLineStyle=function(t){return Zn(this,t)},t}(),Wn=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Fn=Ot(Wn),Hn=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Fn(this,t,e)},t}(),Un=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o]},t.prototype.mergeOption=function(t,e){(0,s.TS)(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var o=this.parentModel;o&&(i=o.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,o=i?this.parsePath(e):null,r=i?this._doGet(o):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(o)),new t(r,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t((0,s.d9)(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!l.Z.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length;i++)if(t[i]&&(n=n&&"object"===typeof n?n[t[i]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Dt(Un),Lt(Un),(0,s.jB)(Un,Gn),(0,s.jB)(Un,Hn),(0,s.jB)(Un,zt),(0,s.jB)(Un,zn);var Xn=Un,Yn=Math.round(10*Math.random());function Jn(t){return[t||"",Yn++].join("_")}function jn(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Mt(t);e[i.main]=n},t.determineSubType=function(n,i){var o=i.type;if(!o){var r=Mt(n).main;t.hasSubTypes(n)&&e[r]&&(o=e[r](i))}return o}}function Kn(t,e){function n(t){var n={},r=[];return s.S6(t,(function(a){var l=i(n,a),u=l.originalDeps=e(a),c=o(u,t);l.entryCount=c.length,0===l.entryCount&&r.push(a),s.S6(c,(function(t){s.cq(l.predecessor,t)<0&&l.predecessor.push(t);var e=i(n,t);s.cq(e.successor,t)<0&&e.successor.push(a)}))})),{graph:n,noEntryList:r}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function o(t,e){var n=[];return s.S6(t,(function(t){s.cq(e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,i,o){if(t.length){var r=n(e),a=r.graph,l=r.noEntryList,u={};s.S6(t,(function(t){u[t]=!0}));while(l.length){var c=l.pop(),h=a[c],d=!!u[c];d&&(i.call(o,c,h.originalDeps.slice()),delete u[c]),s.S6(h.successor,d?f:p)}s.S6(u,(function(){var t="";throw new Error(t)}))}function p(t){a[t].entryCount--,0===a[t].entryCount&&l.push(t)}function f(t){u[t]=!0,p(t)}}}function qn(t,e){return s.TS(s.TS({},t,!0),e,!0)}var $n=n(60479),Qn=n(84602),ti={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","Frid
1ay","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:". "}}}},ei={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}
1,",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},ni="ZH",ii="EN",oi=ii,ri={},ai={},si=l.Z.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(ni)>-1?ni:oi}():oi;function li(t,e){t=t.toUpperCase(),ai[t]=new Xn(e),ri[t]=e}function ui(t){if((0,s.HD)(t)){var e=ri[t.toUpperCase()]||{};return t===ni||t===ii?(0,s.d9)(e):(0,s.TS)((0,s.d9)(e),(0,s.d9)(ri[oi]),!1)}return(0,s.TS)((0,s.d9)(t),(0,s.d9)(ri[oi]),!1)}function ci(t){return ai[t]}function hi(){return ai[oi]}li(ii,ti),li(ni,ei);var di=1e3,pi=60*di,fi=60*pi,gi=24*fi,yi=365*gi,vi={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}"},mi="{yyyy}-{MM}-{dd}",xi={year:"{yyyy}",month:"{yyyy}-{MM}",day:mi,hour:mi+" "+vi.hour,minute:mi+" "+vi.minute,second:mi+" "+vi.second,millisecond:vi.none},_i=["year","month","day","hour","minute","second","millisecond"],Si=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function bi(t,e){return t+="","0000".substr(0,e-t.length)+t}function wi(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Mi(t){return t===wi(t)}function Ii(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ti(t,e,n,i){var o=D(t),r=o[ki(n)](),a=o[Li(n)]()+1,s=Math.floor((a-1)/3)+1,l=o[Pi(n)](),u=o["get"+(n?"UTC":"")+"Day"](),c=o[Ni(n)](),h=(c-1)%12+1,d=o[Ri(n)](),p=o[Oi(n)](),f=o[Ei(n)](),g=i instanceof Xn?i:ci(i||si)||hi(),y=g.getModel("time"),v=y.get("month"),m=y.get("monthAbbr"),x=y.get("dayOfWeek"),_=y.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,bi(r%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,bi(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,bi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,bi(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,bi(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,bi(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,bi(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,bi(f,3)).replace(/{S}/g,f+"")}function Di(t,e,n,i,o){var r=null;if(s.HD(n))r=n;else if(s.mf(n))r=n(t.value,e,{level:t.level});else{var a=s.l7({},vi);if(t.level>0)for(var l=0;l<_i.length;++l)a[_i[l]]="{primary|"+a[_i[l]]+"}";var u=n?!1===n.inherit?n:s.ce(n,a):a,c=Ci(t.value,o);if(u[c])r=u[c];else if(u.inherit){var h=Si.indexOf(c);for(l=h-1;l>=0;--l)if(u[c]){r=u[c];break}r=r||a.none}if(s.kJ(r)){var d=null==t.level?0:t.level>=0?t.level:r.length+t.level;d=Math.min(d,r.length-1),r=r[d]}}return Ti(new Date(t.value),r,o,i)}function Ci(t,e){var n=D(t),i=n[Li(e)]()+1,o=n[Pi(e)](),r=n[Ni(e)](),a=n[Ri(e)](),s=n[Oi(e)](),l=n[Ei(e)](),u=0===l,c=u&&0===s,h=c&&0===a,d=h&&0===r,p=d&&1===o,f=p&&1===i;return f?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function Ai(t,e,n){var i=s.hj(t)?D(t):t;switch(e=e||Ci(t,n),e){case"year":return i[ki(n)]();case"half-year":return i[Li(n)]()>=6?1:0;case"quarter":return Math.floor((i[Li(n)]()+1)/4);case"month":return i[Li(n)]();case"day":return i[Pi(n)]();case"half-day":return i[Ni(n)]()/24;case"hour":return i[Ni(n)]();case"minute":return i[Ri(n)]();case"second":return i[Oi(n)]();case"millisecond":return i[Ei(n)]()}}function ki(t){return t?"getUTCFullYear":"getFullYear"}function Li(t){return t?"getUTCMonth":"getMonth"}function Pi(t){return t?"getUTCDate":"getDate"}function Ni(t){return t?"getUTCHours":"getHours"}function Ri(t){return t?"getUTCMinutes":"getMinutes"}function Oi(t){return t?"getUTCSeconds":"getSeconds"}function Ei(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Vi(t){return t?"setUTCFullYear":"setFullYear"}function zi(t){return t?"setUTCMonth":"setMonth"}function Bi(t){return t?"setUTCDate":"setDate"}function Zi(t){return t?"setUTCHours":"setHours"}function Gi(t){return t?"setUTCMinutes":"setMinutes"}function Wi(t){return t?"setUTCSeconds":"setSeconds"}function Fi(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Hi(t){if(!R(t))return s.HD(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Ui(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Xi=s.MY;function Yi(t,e,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(t){return t&&s.fy(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,l=t instanceof Date;if(a||l){var u=a?D(t):t;if(!isNaN(+u))return Ti(u,i,n);if(l)return"-"}if("ordinal"===e)return s.cd(t)?o(t):s.hj(t)&&r(t)?t+"":"-";var c=N(t);return r(c)?Hi(c):s.cd(t)?o(t):"boolean"===typeof t?t+"":"-"}var Ji=["a","b","c","d","e","f","g"],ji=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Ki(t,e,n){s.kJ(e)||(e=[e]);var i=e.length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=Ji[r];t=t.replace(ji(a),ji(a,0))}for(var l=0;l<i;l++)for(var u=0;u<o.length;u++){var c=e[l][o[u]];t=t.replace(ji(Ji[u],l),n?(0,Qn.F1)(c):c)}return t}function qi(t,e,n){return s.S6(e,(function(e,i){t=t.replace("{"+i+"}",n?(0,Qn.F1)(e):e)})),t}function $i(t,e){var n=s.HD(t)?{color:t,extraCssText:e}:t||{},i=n.color,o=n.type;e=n.extraCssText;var r=n.renderMode||"html";if(!i)return"";if("html"===r)return"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+(0,Qn.F1)(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,Qn.F1)(i)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:r,content:"{"+a+"|}  ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Qi(t,e){return e=e||"transparent",s.HD(t)?t:s.Kn(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function to(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var eo=s.S6,no=["left","right","top","bottom","width","height"],io=[["width","left","right"],["height","top","bottom"]];function oo(t,e,n,i,o){var r=0,a=0;null==i&&(i=1/0),null==o&&(o=1/0);var s=0;
1e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);c=r+g,c>i||l.newline?(r=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var y=d.height+(f?-f.y+d.y:0);h=a+y,h>o||l.newline?(r+=s+n,a=0,h=y,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=r,l.y=a,l.markRedraw(),"horizontal"===t?r=c+n:a=h+n)}))}var ro=oo;s.WA(oo,"vertical"),s.WA(oo,"horizontal");function ao(t,e,n){var i=e.width,o=e.height,r=g(t.left,i),a=g(t.top,o),s=g(t.right,i),l=g(t.bottom,o);return(isNaN(r)||isNaN(parseFloat(t.left)))&&(r=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=o),n=Xi(n||0),{width:Math.max(s-r-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function so(t,e,n){n=Xi(n||0);var i=e.width,o=e.height,r=g(t.left,i),a=g(t.top,o),s=g(t.right,i),l=g(t.bottom,o),u=g(t.width,i),c=g(t.height,o),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-d-r),isNaN(c)&&(c=o-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/o?u=.8*i:c=.8*o),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(r)&&(r=i-s-u-d),isNaN(a)&&(a=o-l-c-h),t.left||t.right){case"center":r=i/2-u/2-n[3];break;case"right":r=i-u-d;break}switch(t.top||t.bottom){case"middle":case"center":a=o/2-c/2-n[0];break;case"bottom":a=o-c-h;break}r=r||0,a=a||0,isNaN(u)&&(u=i-d-r-(s||0)),isNaN(c)&&(c=o-h-a-(l||0));var f=new $n.Z(r+n[3],a+n[0],u,c);return f.margin=n,f}function lo(t,e,n,i,o,r){var a,l=!o||!o.hv||o.hv[0],u=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if(r=r||t,r.x=t.x,r.y=t.y,!l&&!u)return!1;if("raw"===c)a="group"===t.type?new $n.Z(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();a=a.clone(),a.applyTransform(h)}var d=so(s.ce({width:a.width,height:a.height},e),n,i),p=l?d.x-a.x:0,f=u?d.y-a.y:0;return"raw"===c?(r.x=p,r.y=f):(r.x+=p,r.y+=f),r===t&&t.markRedraw(),!0}function uo(t,e){return null!=t[io[e][0]]||null!=t[io[e][1]]&&null!=t[io[e][2]]}function co(t){var e=t.layoutMode||t.constructor.layoutMode;return s.Kn(e)?e:e?{type:e}:null}function ho(t,e,n){var i=n&&n.ignoreSize;!s.kJ(i)&&(i=[i,i]);var o=a(io[0],0),r=a(io[1],1);function a(n,o){var r={},a=0,s={},c=0,h=2;if(eo(n,(function(e){s[e]=t[e]})),eo(n,(function(t){l(e,t)&&(r[t]=s[t]=e[t]),u(r,t)&&a++,u(s,t)&&c++})),i[o])return u(e,n[1])?s[n[2]]=null:u(e,n[2])&&(s[n[1]]=null),s;if(c!==h&&a){if(a>=h)return r;for(var d=0;d<n.length;d++){var p=n[d];if(!l(r,p)&&l(t,p)){r[p]=t[p];break}}return r}return s}function l(t,e){return t.hasOwnProperty(e)}function u(t,e){return null!=t[e]&&"auto"!==t[e]}function c(t,e,n){eo(t,(function(t){e[t]=n[t]}))}c(io[0],t,o),c(io[1],t,r)}function po(t){return fo({},t)}function fo(t,e){return e&&t&&eo(no,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var go=ut(),yo=function(t){function e(e,n,i){var o=t.call(this,e,n,i)||this;return o.uid=Jn("ec_cpt_model"),o}return(0,r.ZT)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=co(this),i=n?po(t):{},o=e.getTheme();s.TS(t,o.get(this.mainType)),s.TS(t,this.getDefaultOption()),n&&ho(t,i,n)},e.prototype.mergeOption=function(t,e){s.TS(this.option,t,!0);var n=co(this);n&&ho(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Tt(t))return t.defaultOption;var e=go(this);if(!e.defaultOption){var n=[],i=t;while(i){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var r={},a=n.length-1;a>=0;a--)r=s.TS(r,n[a],!0);e.defaultOption=r}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return gt(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xn);function vo(t){var e=[];return s.S6(yo.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.depen
1dencies||[])})),e=s.UI(e,(function(t){return Mt(t).main})),"dataset"!==t&&s.cq(e,"dataset")<=0&&e.unshift("dataset"),e}At(yo,Xn),Rt(yo),jn(yo),Kn(yo,vo);var mo=yo,xo="";"undefined"!==typeof navigator&&(xo=navigator.platform||"");var _o="rgba(0, 0, 0, 0.2)",So={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:_o,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:_o,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:_o,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:_o,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:_o,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:_o,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:xo.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},bo=(0,s.kW)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),wo="original",Mo="arrayRows",Io="objectRows",To="keyedColumns",Do="typedArray",Co="unknown",Ao="column",ko="row",Lo={Must:1,Might:2,Not:3},Po=ut();function No(t){Po(t).datasetMap=(0,s.kW)()}function Ro(t,e,n){var i={},o=Eo(e);if(!o||!t)return i;var r,a,l=[],u=[],c=e.ecModel,h=Po(c).datasetMap,d=o.uid+"_"+n.seriesLayoutBy;t=t.slice(),(0,s.S6)(t,(function(e,n){var o=(0,s.Kn)(e)?e:t[n]={name:e};"ordinal"===o.type&&null==r&&(r=n,a=g(o)),i[o.name]=[]}));var p=h.get(d)||h.set(d,{categoryWayDim:a,valueWayDim:0});function f(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function g(t){var e=t.dimsDef;return e?e.length:1}return(0,s.S6)(t,(function(t,e){var n=t.name,o=g(t);if(null==r){var a=p.valueWayDim;f(i[n],a,o),f(u,a,o),p.valueWayDim+=o}else if(r===e)f(i[n],0,o),f(l,0,o);else{a=p.categoryWayDim;f(i[n],a,o),f(u,a,o),p.categoryWayDim+=o}})),l.length&&(i.itemName=l),u.length&&(i.seriesName=u),i}function Oo(t,e,n){var i={},o=Eo(t);if(!o)return i;var r,a=e.sourceFormat,l=e.dimensionsDefine;a!==Io&&a!==To||(0,s.S6)(l,(function(t,e){"name"===((0,s.Kn)(t)?t.name:t)&&(r=e)}));var u=function(){for(var t={},i={},o=[],s=0,u=Math.min(5,n);s<u;s++){var c=Bo(e.data,a,e.seriesLayoutBy,l,e.startIndex,s);o.push(c);var h=c===Lo.Not;if(h&&null==t.v&&s!==r&&(t.v=s),(null==t.n||t.n===t.v||!h&&o[t.n]===Lo.Not)&&(t.n=s),d(t)&&o[t.n]!==Lo.Not)return t;h||(c===Lo.Might&&null==i.v&&s!==r&&(i.v=s),null!=i.n&&i.n!==i.v||(i.n=s))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(i)?i:null}();if(u){i.value=[u.v];var c=null!=r?r:u.n;i.itemName=[c],i.seriesName=[c]}return i}function Eo(t){var e=t.get("data",!0);if(!e)return gt(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},pt).models[0]}function Vo(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?gt(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},pt).models:[]}function zo(t,e){return Bo(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Bo(t,e,n,i,o,r){var a,l,u,c=5;if((0,s.fU)(t))return Lo.Not;if(i){var h=i[r];(0,s.Kn)(h)?(l=h.name,u=h.type):(0,s.HD)(h)&&(l=h)}if(null!=u)return"ordinal"===u?Lo.Must:Lo.Not;if(e===Mo){var d=t;if(n===ko){for(var p=d[r],f=0;f<(p||[]).length&&f<c;f++)if(null!=(a=S(p[o+f])))return a}else for(f=0;f<d.length&&f<c;f++){var g=d[o+f];if(g&&null!=(a=S(g[r])))return a}}else if(e===Io){var y=t;if(!l)return Lo.Not;for(f=0;f<y.length&&f<c;f++){var v=y[f];if(v&&null!=(a=S(v[l])))return a}}else if(e===To){var m=t;if(!l)return Lo.Not;p=m[l];if(!p||(0,s.fU)(p))return Lo.Not;for(f=0;f<p.length&&f<c;f++)if(null!=(a=S(p[f])))return a}else if(e===wo){var x=t;for(f=0;f<x.length&&f<c;f++){v=x[f];var _=H(v);if(!(0,s.kJ)(_))return Lo.Not;if(null!=(a=S(_[r])))return a}}function S(t){var e=(0,s.HD)(t);return null!=t&&isFinite(t)&&""!==t?e?Lo.Might:Lo.Not:e&&"-"!==t?Lo.Must:void 0}return Lo.Not}var Zo=(0,s.kW)();function Go(t,e){(0,s.hu)(null==Zo.get(t)&&e),Zo.set(t,e)}function Wo(t,e,n){var i=Zo.get(e);if(!i)return n;var o=i(t);return o?n.concat(o):n}var Fo,Ho,Uo,Xo=ut(),Yo=ut(),Jo=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=G(this.get("color",!0)),o=this.get("colorLayer",!0);return qo(this,Xo,i,o,t,e,n)},t.prototype.clearColorPalette=function(){$o(this,Xo)},t}();function jo(t,e,n,i){var o=G(t.get(["aria","decal","decals"]));return qo(t,Yo,o,null,e,n,i)}function Ko(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}function qo(t,e,n,i,o,r,a){r=r||t;var s=e(r),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(o))return u[o];var c=null!=a&&i?Ko(i,a):n;if(c=c||n,c&&c.length){var h=c[l];return o&&(u[o]=h),s.paletteIdx=(l+1)%c.length,h}}function $o(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Qo="\0_ec_inner",tr=1;var er=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new Xn(i),this._locale=new Xn(o),this._optionManager=r},e.prototype.setOption=function(t,e,n){var i=ar(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,ar(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var o=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(o,e)):Uo(this,o),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=i.getTimelineOption(this);r&&(n=!0,this._mergeOption(r,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&(0,s.S6)(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,o=this._componentsCount,r=[],a=(0,s.kW)(),l=e&&e.replaceMergeMainTypeMap;function u(e){var r=Wo(this,e,G(t[e])),a=i.get(e),u=a?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=X(a,r,u);rt(c,e,mo),n[e]=null,i.set(e,null),o.set(e,0);var h,d=[],p=[],f=0;(0,s.S6)(c,(function(t,n){var i=t.existing,o=t.newOption;if(o){var r="series"===e,a=mo.getClass(e,t.keyInfo.subType,!r);if(!a)return;if("tooltip"===e){if(h)return void 0;h=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(o,this),i.optionUpdated(o,!1);else{var l=(0,s.l7)({componentIndex:n},t.keyInfo);i=new a(o,this,this,l),(0,s.l7)(i,l),t.brandNew&&(i.__requireNewView=!0),i.init(o,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(d.push(i.option),p.push(i),f++):(d.push(void 0),p.push(void 0))}),this),n[e]=d,i.set(e,p),o.set(e,f),"series"===e&&Fo(this)}No(this),(0,s.S6)(t,(function(t,e){null!=t&&(mo.hasClass(e)?e&&(r.push(e),a.set(e,!0)):n[e]=null==n[e]?(0,s.d9)(t):(0,s.TS)(n[e],t,!0))})),l&&l.each((function(t,e){mo.hasClass(e)&&!a.get(e)&&(r.push(e),a.set(e,!0))})),mo.topologicalTravel(r,mo.getAllClassMainTypes(),u,this),this._seriesIndices||Fo(this)},e.prototype.getOption=function(){var t=(0,s.d9)(this.option);return(0,s.S6)(t,(function(e,n){if(mo.hasClass(n)){for(var i=G(e),o=i.length,r=!1,a=o-1;a>=0;a--)i[a]&&!it(i[a])?r=!0:(i[a]=null,!r&&o--);i.length=o,t[n]=i}})),delete t[Qo],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var o=0;o<n.length;o++)if(n[o])return n[o]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,o=t.id,r=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],(0,s.S6)(G(i),(function(t){a[t]&&n.push(a[t])}))):n=null!=o?or("id",o,a):null!=r?or("name",r,a):(0,s.hX)(a,(function(t){return!!t})),rr(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,i=r(e),o=i?this.queryComponents(i):(0,s.hX)(this._componentsMap.get(n),(function(t){return!!t}));return a(rr(o,t));function r(t){var e=n+"Index",i=n+"Id",o=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[o]?null:{mainType:n,index:t[e],id:t[i],name:t[o]}}function a(e){return t.filter?(0,s.hX)(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if((0,s.mf)(t)){var o=e,r=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&r.call(o,e,i,i.componentIndex)}}))}else for(var a=(0,s.HD)(t)?i.get(t):(0,s.Kn)(t)?this.findComponents(t):null,l=0;a&&l<a.length;l++){var u=a[l];u&&e.call(n,u,u.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=et(t,null);return(0,s.hX)(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return(0,s.hX)(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return(0,s.hX)(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Ho(this),(0,s.S6)(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){(0,s.S6)(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Ho(this),(0,s.S6)(this._seriesIndices,(function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&e.call(n,o,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return(0,s.S6)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Ho(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Ho(this);var n=[];(0,s.S6)(this._seriesIndices,(function(i){var o=this._componentsMap.get("series")[i];t.call(e,o,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=(0,s.kW)(n)},e.prototype.restoreData=function(t){Fo(this);var e=this._componentsMap,n=[];e.each((function(t,e){mo.hasClass(e)&&n.push(e)})),mo.topologicalTravel(n,mo.getAllClassMainTypes(),(function(n){(0,s.S6)(e.get(n),(function(e){!e||"series"===n&&nr(e,t)||e.restoreData()}))}))},e.internalField=function(){Fo=function(t){var e=t._seriesIndices=[];(0,s.S6)(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=(0,s.kW)(e)},Ho=function(t){0},Uo=function(t,e){t.option={},t.option[Qo]=tr,t._componentsMap=(0,s.kW)({series:[]}),t._componentsCount=(0,s.kW)();var n=e.aria;(0,s.Kn)(n)&&null==n.enabled&&(n.enabled=!0),ir(e,t._theme.option),(0,s.TS)(e,So,!1),t._mergeOption(e,null)}}(),e}(Xn);function nr(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,o=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=o&&t.n
1ame!==o}}function ir(t,e){var n=t.color&&!t.colorLayer;(0,s.S6)(e,(function(e,i){"colorLayer"===i&&n||mo.hasClass(i)||("object"===typeof e?t[i]=t[i]?(0,s.TS)(t[i],e,!1):(0,s.d9)(e):null==t[i]&&(t[i]=e))}))}function or(t,e,n){if((0,s.kJ)(e)){var i=(0,s.kW)();return(0,s.S6)(e,(function(t){if(null!=t){var e=et(t,null);null!=e&&i.set(t,!0)}})),(0,s.hX)(n,(function(e){return e&&i.get(e[t])}))}var o=et(e,null);return(0,s.hX)(n,(function(e){return e&&null!=o&&e[t]===o}))}function rr(t,e){return e.hasOwnProperty("subType")?(0,s.hX)(t,(function(t){return t&&t.subType===e.subType})):t}function ar(t){var e=(0,s.kW)();return t&&(0,s.S6)(G(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}(0,s.jB)(er,Jo);var sr=er,lr=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ur=function(){function t(t){s.S6(lr,(function(e){this[e]=s.ak(t[e],t)}),this)}return t}(),cr=ur,hr={},dr=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];s.S6(hr,(function(i,o){var r=i.create(t,e);n=n.concat(r||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){s.S6(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){hr[t]=e},t.get=function(t){return hr[t]},t}(),pr=dr,fr=/^(min|max)?(.+)$/,gr=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&((0,s.S6)(G(t.series),(function(t){t&&t.data&&(0,s.fU)(t.data)&&(0,s.s7)(t.data)})),(0,s.S6)(G(t.dataset),(function(t){t&&t.source&&(0,s.fU)(t.source)&&(0,s.s7)(t.source)}))),t=(0,s.d9)(t);var i=this._optionBackup,o=yr(t,e,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],(0,s.d9)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=(0,s.d9)(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,r=[],a=[];if(!i.length&&!o)return a;for(var l=0,u=i.length;l<u;l++)vr(i[l].query,e,n)&&r.push(l);return!r.length&&o&&(r=[-1]),r.length&&!xr(r,this._currentMediaIndices)&&(a=(0,s.UI)(r,(function(t){return(0,s.d9)(-1===t?o.option:i[t].option)}))),this._currentMediaIndices=r,a},t}();function yr(t,e,n){var i,o,r=[],a=t.baseOption,l=t.timeline,u=t.options,c=t.media,h=!!t.media,d=!!(u||l||a&&a.timeline);function p(t){(0,s.S6)(e,(function(e){e(t,n)}))}return a?(o=a,o.timeline||(o.timeline=l)):((d||h)&&(t.options=t.media=null),o=t),h&&(0,s.kJ)(c)&&(0,s.S6)(c,(function(t){t&&t.option&&(t.query?r.push(t):i||(i=t))})),p(o),(0,s.S6)(u,(function(t){return p(t)})),(0,s.S6)(r,(function(t){return p(t.option)})),{baseOption:o,timelineOptions:u||[],mediaDefault:i,mediaList:r}}function vr(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return(0,s.S6)(t,(function(t,e){var n=e.match(fr);if(n&&n[1]&&n[2]){var r=n[1],a=n[2].toLowerCase();mr(i[a],t,r)||(o=!1)}})),o}function mr(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function xr(t,e){return t.join(",")===e.join(",")}var _r=gr,Sr=s.S6,br=s.Kn,wr=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Mr(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=wr.length;n<i;n++){var o=wr[n],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?s.TS(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?s.TS(t[o].emphasis,a[o]):t[o].emphasis=a[o],a[o]=null)}}function Ir(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,o=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,s.ce(t[e],i)):t[e]=i),o&&(t.emphasis=t.emphasis||{},t.emphasis[e]=o,o.focus&&(t.emphasis.focus=o.focus),o.blurScope&&(t.emphasis.blurScope=o.blurScope))}}function Tr(t){Ir(t,"itemStyle"),Ir(t,"lineStyle"),Ir(t,"areaStyle"),Ir(t,"label"),Ir(t,"labelLine"),Ir(t,"upperLabel"),Ir(t,"edgeLabel")}function Dr(t,e){var n=br(t)&&t[e],i=br(n)&&n.textStyle;if(i){0;for(var o=0,r=F.length;o<r;o++){var a=F[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function Cr(t){t&&(Tr(t),Dr(t,"label"),t.emphasis&&Dr(t.emphasis,"label"))}function Ar(t){if(br(t)){Mr(t),Tr(t),Dr(t,"label"),Dr(t,"upperLabel"),Dr(t,"edgeLabel"),t.emphasis&&(Dr(t.emphasis,"label"),Dr(t.emphasis,"upperLabel"),Dr(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Mr(e),Cr(e));var n=t.markLine;n&&(Mr(n),Cr(n));var i=t.markArea;i&&Cr(i);var o=t.data;if("graph"===t.type){o=o||t.nodes;var r=t.links||t.edges;if(r&&!s.fU(r))for(var a=0;a<r.length;a++)Cr(r[a]);s.S6(t.categories,(function(t){Tr(t)}))}if(o&&!s.fU(o))for(a=0;a<o.length;a++)Cr(o[a]);if(e=t.markPoint,e&&e.data){var l=e.data;for(a=0;a<l.length;a++)Cr(l[a])}if(n=t.markLine,n&&n.data){var u=n.data;for(a=0;a<u.length;a++)s.kJ(u[a])?(Cr(u[a][0]),Cr(u[a][1])):Cr(u[a])}"gauge"===t.type?(Dr(t,"axisLabel"),Dr(t,"title"),Dr(t,"detail")):"treemap"===t.type?(Ir(t.breadcrumb,"itemStyle"),s.S6(t.levels,(function(t){Tr(t)}))):"tree"===t.type&&Tr(t.leaves)}}function kr(t){return s.kJ(t)?t:t?[t]:[]}function Lr(t){return(s.kJ(t)?t[0]:t)||{}}function Pr(t,e){Sr(kr(t.series),(function(t){br(t)&&Ar(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Sr(n,(function(e){
1Sr(kr(t[e]),(function(t){t&&(Dr(t,"axisLabel"),Dr(t.axisPointer,"label"))}))})),Sr(kr(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Dr(e,"axisLabel"),Dr(e&&e.axisPointer,"label")})),Sr(kr(t.calendar),(function(t){Ir(t,"itemStyle"),Dr(t,"dayLabel"),Dr(t,"monthLabel"),Dr(t,"yearLabel")})),Sr(kr(t.radar),(function(t){Dr(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),Sr(kr(t.geo),(function(t){br(t)&&(Cr(t),Sr(kr(t.regions),(function(t){Cr(t)})))})),Sr(kr(t.timeline),(function(t){Cr(t),Ir(t,"label"),Ir(t,"itemStyle"),Ir(t,"controlStyle",!0);var e=t.data;s.kJ(e)&&s.S6(e,(function(t){s.Kn(t)&&(Ir(t,"label"),Ir(t,"itemStyle"))}))})),Sr(kr(t.toolbox),(function(t){Ir(t,"iconStyle"),Sr(t.feature,(function(t){Ir(t,"iconStyle")}))})),Dr(Lr(t.axisPointer),"label"),Dr(Lr(t.tooltip).axisPointer,"label")}function Nr(t,e){for(var n=e.split(","),i=t,o=0;o<n.length;o++)if(i=i&&i[n[o]],null==i)break;return i}function Rr(t,e,n,i){for(var o,r=e.split(","),a=t,s=0;s<r.length-1;s++)o=r[s],null==a[o]&&(a[o]={}),a=a[o];(i||null==a[r[s]])&&(a[r[s]]=n)}function Or(t){t&&(0,s.S6)(Er,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var Er=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Vr=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],zr=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Br(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<zr.length;n++){var i=zr[n][1],o=zr[n][0];null!=e[i]&&(e[o]=e[i])}}function Zr(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Gr(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Wr(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function Fr(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Fr(t[n].children,e)}function Hr(t,e){Pr(t,e),t.series=G(t.series),(0,s.S6)(t.series,(function(t){if((0,s.Kn)(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),Zr(t.label);var n=t.data;if(n&&!(0,s.fU)(n))for(var i=0;i<n.length;i++)Zr(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var o=Nr(t,"pointer.color");null!=o&&Rr(t,"itemStyle.color",o)}else if("bar"===e){Br(t),Br(t.backgroundStyle),Br(t.emphasis);n=t.data;if(n&&!(0,s.fU)(n))for(i=0;i<n.length;i++)"object"===typeof n[i]&&(Br(n[i]),Br(n[i]&&n[i].emphasis))}else if("sunburst"===e){var r=t.highlightPolicy;r&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=r)),Gr(t),Fr(t.data,Gr)}else"graph"===e||"sankey"===e?Wr(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&(0,s.ce)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Or(t)}})),t.dataRange&&(t.visualMap=t.dataRange),(0,s.S6)(Vr,(function(e){var n=t[e];n&&((0,s.kJ)(n)||(n=[n]),(0,s.S6)(n,(function(t){Or(t)})))}))}function Ur(t){var e=(0,s.kW)();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),o=t.getData(),r={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:t};if(!r.stackedDimension||!r.isStackedByIndex&&!r.stackedByDimension)return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(r)}})),e.each(Xr)}function Xr(t){(0,s.S6)(t,(function(e,n){var i=[],o=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(r,(function(r,u,c){var h,d,p=a.get(e.stackedDimension,c);if(isNaN(p))return o;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var v=y.data.getByRawIndex(y.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>
10||"samesign"===l&&p<=0&&v<0){p=b(p,v),f=v;break}}}return i[0]=p,i[1]=f,i}))}))}var Yr,Jr,jr,Kr,qr,$r=function(){function t(t){this.data=t.data||(t.sourceFormat===To?{}:[]),this.sourceFormat=t.sourceFormat||Co,this.seriesLayoutBy=t.seriesLayoutBy||Ao,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&zo(this,n)===Lo.Must&&(i.type="ordinal")}}return t}();function Qr(t){return t instanceof $r}function ta(t,e,n){n=n||ia(t);var i=e.seriesLayoutBy,o=oa(t,n,i,e.sourceHeader,e.dimensions),r=new $r({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:(0,s.d9)(e)});return r}function ea(t){return new $r({data:t,sourceFormat:(0,s.fU)(t)?Do:wo})}function na(t){return new $r({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:(0,s.d9)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function ia(t){var e=Co;if((0,s.fU)(t))e=Do;else if((0,s.kJ)(t)){0===t.length&&(e=Mo);for(var n=0,i=t.length;n<i;n++){var o=t[n];if(null!=o){if((0,s.kJ)(o)){e=Mo;break}if((0,s.Kn)(o)){e=Io;break}}}}else if((0,s.Kn)(t))for(var r in t)if((0,s.RI)(t,r)&&(0,s.zG)(t[r])){e=To;break}return e}function oa(t,e,n,i,o){var r,a;if(!t)return{dimensionsDefine:aa(o),startIndex:a,dimensionsDetectedCount:r};if(e===Mo){var l=t;"auto"===i||null==i?sa((function(t){null!=t&&"-"!==t&&((0,s.HD)(t)?null==a&&(a=1):a=0)}),n,l,10):a=(0,s.hj)(i)?i:i?1:0,o||1!==a||(o=[],sa((function(t,e){o[e]=null!=t?t+"":""}),n,l,1/0)),r=o?o.length:n===ko?l.length:l[0]?l[0].length:null}else if(e===Io)o||(o=ra(t));else if(e===To)o||(o=[],(0,s.S6)(t,(function(t,e){o.push(e)})));else if(e===wo){var u=H(t[0]);r=(0,s.kJ)(u)&&u.length||1}return{startIndex:a,dimensionsDefine:aa(o),dimensionsDetectedCount:r}}function ra(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e)return(0,s.XP)(e)}function aa(t){if(t){var e=(0,s.kW)();return(0,s.UI)(t,(function(t,n){t=(0,s.Kn)(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var o=e.get(i.name);return o?i.name+="-"+o.count++:e.set(i.name,{count:1}),i}))}}function sa(t,e,n,i){if(e===ko)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else{var r=n[0]||[];for(o=0;o<r.length&&o<i;o++)t(r[o],o)}}function la(t){var e=t.sourceFormat;return e===Io||e===To}var ua=function(){function t(t,e){var n=Qr(t)?t:ea(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Do&&(this._offset=0,this._dimSize=e,this._data=i),qr(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;qr=function(t,o,r){var a=r.sourceFormat,l=r.seriesLayoutBy,u=r.startIndex,c=r.dimensionsDefine,h=Kr[xa(a,l)];if((0,s.l7)(t,h),a===Do)t.getItem=e,t.count=i,t.fillStorage=n;else{var d=da(a,l);t.getItem=(0,s.ak)(d,null,o,u,c);var p=ga(a,l);t.count=(0,s.ak)(p,null,o,u,c)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,o=i*t,r=0;r<i;r++)e[r]=n[o+r];return e},n=function(t,e,n,i){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],d=0;d<c;d++){var p=o[d*r+a];h[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function o(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[Mo+"_"+Ao]={pure:!0,appendData:o},t[Mo+"_"+ko]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Io]={pure:!0,appendData:o},t[To]={pure:!0,appendData:function(t){var e=this._data;(0,s.S6)(t,(function(t,n){for(var i=e[n]||(e[n]=[]),o=0;o<(t||[]).length;o++)i.push(t[o])}))}},t[wo]={appendData:o},t[Do]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Kr=t}(),t}(),ca=function(t,e,n,i){return t[i]},ha=(Yr={},Yr[Mo+"_"+Ao]=function(t,e,n,i){return t[i+e]},Yr[Mo+"_"+ko]=function(t,e,n,i,o){i+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},Yr[Io]=ca,Yr[To]=function(t,e,n,i,o){for(var r=o||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=t[s];r[a]=l?l[i]:null}return r},Yr[wo]=ca,Yr);function da(t,e){var n=ha[xa(t,e)];return n}var pa=function(t,e,n){return t.length},fa=(Jr={},Jr[Mo+"_"+Ao]=function(t,e,n){return Math.max(0,t.length-e)},Jr[Mo+"_"+ko]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},Jr[Io]=pa,Jr[To]=function(t,e,n){var i=n[0].name;var o=t[i];return o?o.length:0},Jr[wo]=pa,Jr);function ga(t,e){var n=fa[xa(t,e)];return n}var ya=function(t,e,n){return t[e]},va=(jr={},jr[Mo]=ya,jr[Io]=function(t,e,n){return t[n]},jr[To]=ya,jr[wo]=function(t,e,n){var i=H(t);return i instanceof Array?i[e]:i},jr[Do]=ya,jr);function ma(t){var e=va[t];return e}function xa(t,e){return t===Mo?t+"_"+e:t}function _a(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var o=t.getStore(),r=o.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=o.getDimensionProperty(a);return ma(r)(i,a,s)}var l=i;return r===wo&&(l=H(i)),l}}}var Sa=/\{@(.+?)\}/g,ba=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),o=n.getRawIndex(t),r=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,
1seriesName:h?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,o,r){e=e||"normal";var a=this.getData(n),l=this.getDataParams(t,n);if(r&&(l.value=r.interpolatedValue),null!=i&&s.kJ(l.value)&&(l.value=l.value[i]),!o){var u=a.getItemModel(t);o=u.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(s.mf(o))return l.status=e,l.dimensionIndex=i,o(l);if(s.HD(o)){var c=Ki(o,l);return c.replace(Sa,(function(e,n){var i=n.length,o=n;"["===o.charAt(0)&&"]"===o.charAt(i-1)&&(o=+o.slice(1,i-1));var l=_a(a,t,o);if(r&&s.kJ(r.interpolatedValue)){var u=a.getDimensionIndex(o);u>=0&&(l=r.interpolatedValue[u])}return null!=l?l+"":""}))}},t.prototype.getRawValue=function(t,e){return _a(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function wa(t){var e,n;return s.Kn(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Ma(t){return new Ia(t)}var Ia=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var r,a=h(this._modBy),l=this._modDataCount||0,u=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===u&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,r=this._doReset(i)),this._modBy=u,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(r||p<f)){var g=this._progress;if((0,s.kJ)(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],p,f,u,c);else this._doProgress(g,p,f,u,c)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,o){Ta.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Ta.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),(0,s.kJ)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Ta=function(){var t,e,n,i,o,r={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,o=Math.ceil(i/n),r.next=n>1&&i>0?s:a}};return r;function a(){return e<t?e++:null}function s(){var r=e%o*n+Math.ceil(e/o),a=e>=t?null:r<i?r:e;return e++,a}}();"undefined"!==typeof console&&console.warn&&console.log;function Da(t){0}function Ca(t){throw new Error(t)}function Aa(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||(0,s.hj)(t)||null==t||"-"===t||(t=+D(t)),null==t||""===t?NaN:+t)}var ka=(0,s.kW)({number:function(t){return parseFloat(t)},time:function(t){return+D(t)},trim:function(t){return(0,s.HD)(t)?(0,s.fy)(t):t}});function La(t){return ka.get(t)}var Pa={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},Na=function(){function t(t,e){if(!(0,s.hj)(e)){var n="";0,Ca(n)}this._opFn=Pa[t],this._rvalFloat=N(e)}return t.prototype.evaluate=function(t){return(0,s.hj)(t)?this._opFn(t,this._rvalFloat):this._opFn(N(t),this._rvalFloat)},t}(),Ra=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=(0,s.hj)(t)?t:N(t),i=(0,s.hj)(e)?e:N(e),o=isNaN(n),r=isNaN(i);if(o&&(n=this._incomparable),r&&(i=this._incomparable),o&&r){var a=(0,s.HD)(t),l=(0,s.HD)(e);a&&(n=l?t:0),l&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),Oa=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=N(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=N(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Ea(t,e){return"eq"===t||"ne"===t?new Oa("eq"===t,e):(0,s.RI)(Pa,t)?new Na(t,e):null}var Va=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Aa(t,e)},t}();function za(t,e){var n=new Va,i=t.data,o=n.sourceFormat=t.sourceFormat,r=t.startIndex,a="";t.seriesLayoutBy!==Ao&&Ca(a);var l=[],u={},c=t.dimensionsDefine;if(c)(0,s.S6)(c,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(l.push(i),null!=n){var o="";(0,s.RI)(u,n)&&Ca(o),u[n]=i}}));else for(var h=0;h<t.dimensionsDetectedCount;h++)l.push({index:h});var d=da(o,Ao);e.__isBuiltIn&&(n.getRawDataItem=function(t){return d(i,r,l,t)},n.getRawData=(0,s.ak)(Ba,null,t)),n.cloneRawData=(0,s.ak)(Za,null,t);var p=ga(o,Ao);n.count=(0,s.ak)(p,null,i,r,l);var f=ma(o);n.retrieveValue=function(t,e){var n=d(i,r,l,t);return g(n,e)};var g=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=l[e];return n?f(t,e,n.name):void 0}};return n.getDimensionInfo=(0,s.ak)(Ga,null,l,u),n.cloneAllDimensionInfo=(0,s.ak)(Wa,null,l),n}function Ba(t){var e=t.sourceFormat;if(!Ya(e)){var n="";0,Ca(n)}return t.data}function Za(t){var e=t.sourceFormat,n=t.data;if(!Ya(e)){var i="";0,Ca(i)}if(e===Mo){for(var o=[],r=0,a=n.length;r<a;r++)o.push(n[r].slice());return o}if(e===Io){for(o=[],r=0,a=n.length;r<a;r++)o.push((0,s.l7)({},n[r]));return o}}function Ga(t,e,n){if(null!=n)return(0,s.hj)(n)||!isNaN(n)&&!(0,s.RI)(e,n)?t[n]:(0,s.RI)(e,n)?e[n]:void 0}function Wa(t){return(0,s.d9)(t)}var Fa=(0,s.kW)();function Ha(t){t=(0,s.d9)(t);var e=t.type,n="";e||Ca(n);var i=e.split(":");2!==i.length&&Ca(n);var o=!1;"echarts"===i[0]&&(e=i[1],o=!0),t.__isBuiltIn=o,Fa.set(e,t)}function Ua(t,e,n){var i=G(t),o=i.length,r="";o||Ca(r);for(var a=0,s=o;a<s;a++){var l=i[a];e=Xa(l,e,n,1===o?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function Xa(t,e,n,i){var o="";e.length||Ca(o),(0,s.Kn)(t)||Ca(o);var r=t.type,a=Fa.get(r);a||Ca(o);var l=(0,s.UI)(e,(function(t){return za(t,a)})),u=G(a.transform({upstream:l[0],upstreamList:l,config:(0,s.d9)(t.config)}));return(0,s.UI)(u,(function(t,n){var i="";
1(0,s.Kn)(t)||Ca(i),t.data||Ca(i);var o,r=ia(t.data);Ya(r)||Ca(i);var a=e[0];if(a&&0===n&&!t.dimensions){var l=a.startIndex;l&&(t.data=a.data.slice(0,l).concat(t.data)),o={seriesLayoutBy:Ao,sourceHeader:l,dimensions:a.metaRawOption.dimensions}}else o={seriesLayoutBy:Ao,sourceHeader:0,dimensions:t.dimensions};return ta(t.data,o,null)}))}function Ya(t){return t===Mo||t===Io}var Ja,ja="undefined",Ka=typeof Uint32Array===ja?Array:Uint32Array,qa=typeof Uint16Array===ja?Array:Uint16Array,$a=typeof Int32Array===ja?Array:Int32Array,Qa=typeof Float64Array===ja?Array:Float64Array,ts={float:Qa,int:$a,ordinal:Array,number:Array,time:Qa};function es(t){return t>65535?Ka:qa}function ns(){return[1/0,-1/0]}function is(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function os(t,e,n,i,o){var r=ts[n||"float"];if(o){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new r(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new r(i)}var rs=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=(0,s.kW)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=Ja[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[];la(i);this._dimensions=(0,s.UI)(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(t);if(null!=o){if(i[o].type===e)return o}else o=i.length;return i[o]={type:e},n.set(t,o),this._chunks[o]=new ts[e||"float"](this._rawCount),this._rawExtent[o]=ns(),o},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,r=i.ordinalOffset||0,a=n.length;0===r&&(o[t]=ns());for(var s=o[t],l=r;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++){var u=i[l];os(n,l,u.type,s,!0)}for(var c=[],h=a;h<s;h++)for(var d=h-a,p=0;p<o;p++){u=i[p];var f=Ja.arrayRows.call(this,t[d]||c,u.property,d,p);n[p][h]=f;var g=r[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,l=this._rawExtent,u=(0,s.UI)(r,(function(t){return t.property})),c=0;c<a;c++){var h=r[c];l[c]||(l[c]=ns()),os(o,c,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,l);else for(var d=[],p=t;p<e;p++){d=i.getItem(p,d);for(var f=0;f<a;f++){var g=o[f],y=this._dimValueGetter(d,u[f],p,f);g[p]=y;var v=l[f];y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;o=0;for(var r=i.length;o<r;o++)n.push(this.get(i[o],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,o=this.count();i<o;i++){var r=this.get(t,i);isNaN(r)||(n+=r)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;var i=0,o=this._count-1;while(i<=o){var r=(i+o)/2|0;if(e[r]<t)i=r+1;else{if(!(e[r]>t))return r;o=r-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,o=i[t],r=[];if(!o)return r;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;
1u++){var h=this.getRawIndex(u),d=e-o[h],p=Math.abs(d);p<=n&&((p<a||p===a&&d>=0&&s<0)&&(a=p,s=d,l=0),d===s&&(r[l++]=u))}return r.length=l,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var o=0;o<i;o++)t[o]=e[o]}else t=new n(e.buffer,0,i)}else{n=es(this._rawCount);t=new n(this.count());for(o=0;o<t.length;o++)t[o]=o}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=es(n._rawCount),r=new o(i),a=[],s=t.length,l=0,u=t[0],c=n._chunks,h=0;h<i;h++){var d=void 0,p=n.getRawIndex(h);if(0===s)d=e(h);else if(1===s){var f=c[u][p];d=e(f,h)}else{for(var g=0;g<s;g++)a[g]=c[t[g]][p];a[g]=h,d=e.apply(null,a)}d&&(r[l++]=p)}return l<i&&(n._indices=r),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=(0,s.XP)(t),o=i.length;if(!o)return this;var r=e.count(),a=es(e._rawCount),l=new a(r),u=0,c=i[0],h=t[c][0],d=t[c][1],p=e._chunks,f=!1;if(!e._indices){var g=0;if(1===o){for(var y=p[i[0]],v=0;v<n;v++){var m=y[v];(m>=h&&m<=d||isNaN(m))&&(l[u++]=g),g++}f=!0}else if(2===o){y=p[i[0]];var x=p[i[1]],_=t[i[1]][0],S=t[i[1]][1];for(v=0;v<n;v++){m=y[v];var b=x[v];(m>=h&&m<=d||isNaN(m))&&(b>=_&&b<=S||isNaN(b))&&(l[u++]=g),g++}f=!0}}if(!f)if(1===o)for(v=0;v<r;v++){var w=e.getRawIndex(v);m=p[i[0]][w];(m>=h&&m<=d||isNaN(m))&&(l[u++]=w)}else for(v=0;v<r;v++){for(var M=!0,I=(w=e.getRawIndex(v),0);I<o;I++){var T=i[I];m=p[T][w];(m<t[T][0]||m>t[T][1])&&(M=!1)}M&&(l[u++]=e.getRawIndex(v))}return u<r&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=ns();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<r;d++)s[d]=i[e[d]][h];s[r]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!==typeof p&&(o[0]=p,p=o);for(u=0;u<p.length;u++){var f=e[u],g=p[u],y=l[f],v=i[f];v&&(v[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,o,r=this.clone([t],!0),a=r._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),d=new(es(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=h;for(var p=1;p<l-1;p+=c){for(var f=Math.min(p+c,l-1),g=Math.min(p+2*c,l),y=(g+f)/2,v=0,m=f;m<g;m++){var x=this.getRawIndex(m),_=s[x];isNaN(_)||(v+=_)}v/=g-f;var S=p,b=Math.min(p+c,l),w=p-1,M=s[h];n=-1,o=S;var I=-1,T=0;for(m=S;m<b;m++){x=this.getRawIndex(m),_=s[x];isNaN(_)?(T++,I<0&&(I=x)):(i=Math.abs((w-y)*(_-M)-(w-m)*(v-M)),i>n&&(n=i,o=x))}T>0&&T<b-S&&(d[u++]=Math.min(I,o),o=Math.max(I,o)),d[u++]=o,h=o}return d[u++]=this.getRawIndex(l-1),r._count=u,r._indices=d,r.getRawIndex=this._getRawIdx,r},t.prototype.downSample=function(t,e,n,i){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],u=this.count(),c=o._rawExtent[t]=ns(),h=new(es(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var y=n(a),v=this.getRawIndex(Math.min(p+i(a,y)||0,u-1));l[v]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[d++]=v}return o._count=d,o._indices=h,o._updateGetRawIdx(),o},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(n){case 0:e(o);break;case 1:e(i[t[0]][a],o);break;case 2:e(i[t[0]][a],i[t[1]][a],o);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=o,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=ns();if(!e)return n;var i,o=this.count(),r=!this._indices;if(r)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=n;for(var a=i[0],s=i[1],l=0;l<o;l++){var u=this.getRawIndex(l),c=e[u];c<a&&(a=c),c>s&&(s=c)}return i=[a,s],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][e]);return n},t.prototype.clone=function(e,n){var i=new t,o=this._chunks,r=e&&(0,s.u4)(e,(function(t,e){return t[e]=!0,t}),{});if(r)for(var a=0;a<o.length;a++)i._chunks[a]=r[a]?is(o[a]):o[a];else i._chunks=o;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=(0,s.d9)(this._extent),t._rawExtent=(0,s.d9)(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;
1e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Aa(t[i],this._dimensions[i])}Ja={arrayRows:t,objectRows:function(t,e,n,i){return Aa(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var o=t&&(null==t.value?t:t.value);return Aa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),as=rs,ss=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),o=!!i.length;if(us(n)){var r=n,a=void 0,l=void 0,u=void 0;if(o){var c=i[0];c.prepareSource(),u=c.getSource(),a=u.data,l=u.sourceFormat,e=[c._getVersionSign()]}else a=r.get("data",!0),l=(0,s.fU)(a)?Do:wo,e=[];var h=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=(0,s.pD)(h.seriesLayoutBy,d.seriesLayoutBy)||null,f=(0,s.pD)(h.sourceHeader,d.sourceHeader),g=(0,s.pD)(h.dimensions,d.dimensions),y=p!==d.seriesLayoutBy||!!f!==!!d.sourceHeader||g;t=y?[ta(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:g},l)]:[]}else{var v=n;if(o){var m=this._applyTransform(i);t=m.sourceList,e=m.upstreamSignList}else{var x=v.get("source",!0);t=[ta(x,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(null!=o){var r="";1!==t.length&&cs(r)}var a=[],l=[];return(0,s.S6)(t,(function(t){t.prepareSource();var e=t.getSource(o||0),n="";null==o||e||cs(n),a.push(e),l.push(t._getVersionSign())})),i?e=Ua(i,a,{datasetIndex:n.componentIndex}):null!=o&&(e=[na(a[0])]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=0,o=this._storeList,r=o[i];r||(r=o[i]={});var a=r[n];if(!a){var s=this._getUpstreamSourceManagers()[0];us(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,n):(a=new as,a.initData(new ua(e,t.length),t)),r[n]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(us(t)){var e=Eo(t);return e?[e.getSourceManager()]:[]}return(0,s.UI)(Vo(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(us(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=i;t=o.get("seriesLayoutBy",!0),e=o.get("sourceHeader",!0),n=o.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function ls(t){var e=t.option.transform;e&&(0,s.s7)(t.option.transform)}function us(t){return"series"===t.mainType}function cs(t){throw new Error(t)}var hs="line-height:1";function ds(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",r=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+(0,Qn.F1)(i+"")+"px;color:"+(0,Qn.F1)(n)+";font-weight:"+(0,Qn.F1)(o+""),valueStyle:"font-size:"+(0,Qn.F1)(a+"")+"px;color:"+(0,Qn.F1)(r)+";font-weight:"+(0,Qn.F1)(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:s}}}var ps=[0,10,20,30],fs=["","\n","\n\n","\n\n\n"];function gs(t,e){return e.type=t,e}function ys(t){return"section"===t.type}function vs(t){return ys(t)?xs:_s}function ms(t){if(ys(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return(0,s.S6)(t.blocks,(function(t){var n=ms(t);n>=e&&(e=n+ +(i&&(!n||ys(t)&&!t.noHeader)))})),e}return 0}
1function xs(t,e,n,i){var o=e.noHeader,r=bs(ms(e)),a=[],l=e.blocks||[];(0,s.hu)(!l||(0,s.kJ)(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if((0,s.RI)(c,u)){var h=new Ra(c[u],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}(0,s.S6)(l,(function(n,o){var l=e.valueFormatter,u=vs(n)(l?(0,s.l7)((0,s.l7)({},t),{valueFormatter:l}):t,n,o>0?r.html:0,i);null!=u&&a.push(u)}));var d="richText"===t.renderMode?a.join(r.richText):ws(a.join(""),o?n:r.html);if(o)return d;var p=Yi(e.header,"ordinal",t.useUTC),f=ds(i,t.renderMode).nameStyle;return"richText"===t.renderMode?Ts(t,p,f)+r.richText+d:ws('<div style="'+f+";"+hs+';">'+(0,Qn.F1)(p)+"</div>"+d,n)}function _s(t,e,n,i){var o=t.renderMode,r=e.noName,a=e.noValue,l=!e.markerType,u=e.name,c=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=(0,s.kJ)(t)?t:[t],(0,s.UI)(t,(function(t,e){return Yi(t,(0,s.kJ)(f)?f[e]:f,c)}))};if(!r||!a){var d=l?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",o),p=r?"":Yi(u,"ordinal",c),f=e.valueType,g=a?[]:h(e.value),y=!l||!r,v=!l&&r,m=ds(i,o),x=m.nameStyle,_=m.valueStyle;return"richText"===o?(l?"":d)+(r?"":Ts(t,p,x))+(a?"":Ds(t,g,y,v,_)):ws((l?"":d)+(r?"":Ms(p,!l,x))+(a?"":Is(g,y,v,_)),n)}}function Ss(t,e,n,i,o,r){if(t){var a=vs(t),s={useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,r)}}function bs(t){return{html:ps[t],richText:fs[t]}}function ws(t,e){var n='<div style="clear:both"></div>',i="margin: "+e+"px 0 0";return'<div style="'+i+";"+hs+';">'+t+n+"</div>"}function Ms(t,e,n){var i=e?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+(0,Qn.F1)(t)+"</span>"}function Is(t,e,n,i){var o=n?"10px":"20px",r=e?"float:right;margin-left:"+o:"";return t=(0,s.kJ)(t)?t:[t],'<span style="'+r+";"+i+'">'+(0,s.UI)(t,(function(t){return(0,Qn.F1)(t)})).join("&nbsp;&nbsp;")+"</span>"}function Ts(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Ds(t,e,n,i,o){var r=[o],a=i?10:20;return n&&r.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle((0,s.kJ)(e)?e.join("  "):e,r)}function Cs(t,e){var n=t.getData().getItemVisual(e,"style"),i=n[t.visualDrawType];return Qi(i)}function As(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var ks=function(){function t(){this.richTextStyles={},this._nextStyleNameId=O()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,o=$i({color:e,type:t,renderMode:n,markerId:i});return(0,s.HD)(o)?o:(this.richTextStyles[i]=o.style,o.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};(0,s.kJ)(e)?(0,s.S6)(e,(function(t){return(0,s.l7)(n,t)})):(0,s.l7)(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function Ls(t){var e,n,i,o,r=t.series,a=t.dataIndex,l=t.multipleSeries,u=r.getData(),c=u.mapDimensionsAll("defaultedTooltip"),h=c.length,d=r.getRawValue(a),p=(0,s.kJ)(d),f=Cs(r,a);if(h>1||p&&!h){var g=Ps(d,r,a,c,f);e=g.inlineValues,n=g.inlineValueTypes,i=g.blocks,o=g.inlineValues[0]}else if(h){var y=u.getDimensionInfo(c[0]);o=e=_a(u,a,c[0]),n=y.type}else o=e=p?d[0]:d;var v=nt(r),m=v&&r.name||"",x=u.getName(a),_=l?m:x;return gs("section",{header:m,noHeader:l||!v,sortParam:o,blocks:[gs("nameValue",{markerType:"item",markerColor:f,name:_,noName:!(0,s.fy)(_),value:e,valueType:n})].concat(i||[])})}function Ps(t,e,n,i,o){var r=e.getData(),a=(0,s.u4)(t,(function(t,e,n){var i=r.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),l=[],u=[],c=[];function h(t,e){var n=r.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?c.push(gs("nameValue",{markerType:"subItem",markerColor:o,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}return i.length?(0,s.S6)(i,(function(t){h(_a(r,n,t),t)})):(0,s.S6)(t,h),{inlineValues:l,inlineValueTypes:u,blocks:c}}var Ns=ut();function Rs(t,e){return t.getName(e)||t.getId(e)}var Os="__universalTransitionEnabled",Es=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return(0,r.ZT)(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Ma({count:Bs,reset:Zs}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Ns(this).sourceManager=new ss(this);i.prepareSource();var o=this.getInitialData(t,n);Ws(o,this),this.dataTask.context.data=o,Ns(this).dataBeforeProcessed=o,Vs(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=co(this),i=n?po(t):{},o=this.subType;mo.hasClass(o)&&(o+="Series"),s.TS(t,e.getTheme().get(this.subType)),s.TS(t,this.getDefaultOption()),W(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ho(t,i,n)},e.prototype.mergeOption=function(t,e){t=s.TS(this.option,t,!0),this.fillDataTextStyle(t.data);var n=co(this);n&&ho(this.option,t,n);var i=Ns(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,e);Ws(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ns(this).dataBeforeProcessed=o,Vs(this),this._initSelectedMapFromData(o)}
1,e.prototype.fillDataTextStyle=function(t){if(t&&!s.fU(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&W(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=Hs(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Ns(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Hs(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Ns(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return s.kW(t)},e.prototype.getSourceManager=function(){return Ns(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ns(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return Ls({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(l.Z.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,o=Jo.prototype.getColorFromPalette.call(this,t,e,n);return o||(o=i.getColorFromPalette(t,e,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var r=0;r<t.length;r++){var a=t[r],s=Rs(o,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=s.XP(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[Rs(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Os])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,o=this.option,r=o.selectedMode,a=e.length;if(r&&a)if("series"===r)o.selectedMap="all";else if("multiple"===r){s.Kn(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u<a;u++){var c=e[u],h=Rs(t,c);l[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(c)}}else if("single"===r||!0===r){var d=e[a-1];h=Rs(t,d);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(d),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return mo.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(mo);function Vs(t){var e=t.name;nt(t)||(t.name=zs(t)||e)}function zs(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return s.S6(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function Bs(t){return t.model.getRawData().count()}function Zs(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Gs}function Gs(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Ws(t,e){s.S6(s.WW(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,s.WA(Fs,e))}))}function Fs(t,e){var n=Hs(t);return n&&n.setOutputEnd((e||this).count()),e}function Hs(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var o=i.agentStubMap;o&&(i=o.get(t.uid))}return i}}s.jB(Es,ba),s.jB(Es,Jo),At(Es,mo);var Us=Es,Xs=n(38154),Ys=function(){function t(){this.group=new Xs.Z,this.uid=Jn("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Dt(Ys),Rt(Ys);var Js=Ys;function js(){var t=ut();return function(e){var n=t(e),i=e.pipelineContext,o=!!n.large,r=!!n.progressiveRen
1der,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(o===a&&r===s)&&"reset"}}var Ks=n(80073),qs=n(32892),$s=n(45280),Qs=n(87411),tl=n(44535),el=n(69538),nl=n(92797),il=n(97782),ol=n(85795),rl=n(95094),al=n(62514),sl=n(25293),ll=n(22095),ul=n(54174),cl=n(14826),hl=n(52776),dl=n(74438),pl=n(36369),fl=n(41587),gl=n(86735),yl=n(91754),vl=n(24111),ml=Math.max,xl=Math.min,_l={};function Sl(t){return Ht.ZP.extend(t)}var bl=Ks.Pc;function wl(t,e){return bl(t,e)}function Ml(t,e){_l[t]=e}function Il(t){if(_l.hasOwnProperty(t))return _l[t]}function Tl(t,e,n,i){var o=Ks.iR(t,e);return n&&("center"===i&&(n=Cl(n,o.getBoundingRect())),kl(o,n)),o}function Dl(t,e,n){var i=new tl.ZP({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var o={width:t.width,height:t.height};i.setStyle(Cl(e,o))}}});return i}function Cl(t,e){var n,i=e.width/e.height,o=t.height*i;o<=t.width?n=t.height:(o=t.width,n=o/i);var r=t.x+t.width/2,a=t.y+t.height/2;return{x:r-o/2,y:a-n/2,width:o,height:n}}var Al=Ks.AA;function kl(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function Ll(t,e){return vl._3(t,t,{lineWidth:e}),t}function Pl(t){return vl.Pw(t.shape,t.shape,t.style),t}var Nl=vl.vu;function Rl(t,e){var n=qs.yR([]);while(t&&t!==e)qs.dC(n,t.getLocalTransform(),n),t=t.parent;return n}function Ol(t,e,n){return e&&!(0,s.zG)(e)&&(e=Qs.ZP.getLocalTransform(e)),n&&(e=qs.U_([],e)),$s.Ne([],t,e)}function El(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),r=["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0];return r=Ol(r,e,n),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function Vl(t){return!t.isGroup}function zl(t){return null!=t.shape}function Bl(t,e,n){if(t&&e){var i=o(t);e.traverse((function(t){if(Vl(t)&&t.anid){var e=i[t.anid];if(e){var o=r(t);t.attr(r(e)),un(t,o,n,Gt(t).dataIndex)}}}))}function o(t){var e={};return t.traverse((function(t){Vl(t)&&t.anid&&(e[t.anid]=t)})),e}function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return zl(t)&&(e.shape=(0,s.l7)({},t.shape)),e}}function Zl(t,e){return(0,s.UI)(t,(function(t){var n=t[0];n=ml(n,e.x),n=xl(n,e.x+e.width);var i=t[1];return i=ml(i,e.y),i=xl(i,e.y+e.height),[n,i]}))}function Gl(t,e){var n=ml(t.x,e.x),i=xl(t.x+t.width,e.x+e.width),o=ml(t.y,e.y),r=xl(t.y+t.height,e.y+e.height);if(i>=n&&r>=o)return{x:n,y:o,width:i-n,height:r-o}}function Wl(t,e,n){var i=(0,s.l7)({rectHover:!0},e),o=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(o.image=t.slice(8),(0,s.ce)(o,n),new tl.ZP(i)):Tl(t.replace("path://",""),i,n,"center")}function Fl(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(Hl(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Hl(t,e,n,i,o,r,a,s){var l=n-t,u=i-e,c=a-o,h=s-r,d=Ul(c,h,l,u);if(Xl(d))return!1;var p=t-o,f=e-r,g=Ul(p,f,l,u)/d;if(g<0||g>1)return!1;var y=Ul(p,f,c,h)/d;return!(y<0||y>1)}function Ul(t,e,n,i){return t*i-n*e}function Xl(t){return t<=1e-6&&t>=-1e-6}function Yl(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,o=(0,s.HD)(e)?{formatter:e}:e,r=n.mainType,a=n.componentIndex,l={componentType:r,name:i,$vars:["name"]};l[r+"Index"]=a;var u=t.formatterParamsExtra;u&&(0,s.S6)((0,s.XP)(u),(function(t){(0,s.RI)(l,t)||(l[t]=u[t],l.$vars.push(t))}));var c=Gt(t.el);c.componentMainType=r,c.componentIndex=a,c.tooltipConfig={name:i,option:(0,s.ce)({content:i,formatterParams:l},o)}}function Jl(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function jl(t,e){if(t)if((0,s.kJ)(t))for(var n=0;n<t.length;n++)Jl(t[n],e);else Jl(t,e)}Ml("circle",el.Z),Ml("ellipse",nl.Z),Ml("sector",il.C),Ml("ring",ol.Z),Ml("polygon",rl.Z),Ml("polyline",al.Z),Ml("rect",sl.Z),Ml("line",ll.Z),Ml("bezierCurve",ul.Z),Ml("arc",cl.Z);var Kl=ut(),ql=js(),$l=function(){function t(){this.group=new Xs.Z,this.uid=Jn("viewChart"),this.renderTask=Ma({plan:eu,reset:nu}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var o=t.getData(i&&i.dataType);o&&tu(o,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var o=t.getData(i&&i.dataType);o&&tu(o,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){jl(this.group,t)},t.markUpdateMethod=function(t,e){Kl(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function Ql(t,e,n){t&&Qe(t)&&("emphasis"===e?Ce:Ae)(t,n)}function tu(t,e,n){var i=lt(t,e),o=e&&null!=e.highlightKey?en(e.highlightKey):null;null!=i?(0,s.S6)(G(i),(function(e){Ql(t.getItemGraphicEl(e),n,o)})):t.eachItemGraphicEl((function(t){Ql(t,n,o)}))}function eu(t){return ql(t.model)}function nu(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRen
1der,a=t.view,s=o&&Kl(o).updateMethod,l=r?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,o),iu[l]}Dt($l,["dispose"]),Rt($l);var iu={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},ou=$l,ru="\0__throttleOriginMethod",au="\0__throttleRate",su="\0__throttleType";function lu(t,e,n){var i,o,r,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(r,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),r=this,a=t;var p=s||e,f=s||n;s=null,o=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):o>=0?h():c=setTimeout(h,-o),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function uu(t,e,n,i){var o=t[e];if(o){var r=o[ru]||o,a=o[su],s=o[au];if(s!==n||a!==i){if(null==n||!i)return t[e]=r;o=t[e]=lu(r,n,"debounce"===i),o[ru]=r,o[su]=i,o[au]=n}return o}}function cu(t,e){var n=t[e];n&&n[ru]&&(n.clear&&n.clear(),t[e]=n[ru])}var hu=ut(),du={itemStyle:Ot(Wn,!0),lineStyle:Ot(Bn,!0)},pu={lineStyle:"stroke",itemStyle:"fill"};function fu(t,e){var n=t.visualStyleMapper||du[e];return n||(console.warn("Unknown style type '"+e+"'."),du.itemStyle)}function gu(t,e){var n=t.visualDrawType||pu[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var yu={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=t.getModel(i),r=fu(t,i),a=r(o),l=o.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var u=gu(t,i),c=a[u],h=(0,s.mf)(c)?c:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[u]||h||d){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[u]||(a[u]=p,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||(0,s.mf)(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||(0,s.mf)(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",u),!e.isSeriesFiltered(t)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),o=(0,s.l7)({},a);o[u]=h(i),e.setItemVisual(n,"style",o)}}}},vu=new Xn,mu={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=fu(t,i),r=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){vu.option=n[i];var a=o(vu),l=t.ensureUniqueItemVisual(e,"style");(0,s.l7)(l,a),vu.option.decal&&(t.setItemVisual(e,"decal",vu.option.decal),vu.option.decal.dirty=!0),r in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},xu={performRawSeries:!0,overallReset:function(t){var e=(0,s.kW)();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,o=e.get(i);o||(o={},e.set(i,o)),hu(t).scope=o}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},o=e.getData(),r=hu(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=gu(e,a);o.each((function(t){var e=o.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t],l=o.getItemVisual(a,"colorFromPalette");if(l){var u=o.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,r,h)}}))}}))}},_u=Math.PI;function Su(t,e){e=e||{},s.ce(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",
1spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Xs.Z,i=new sl.Z({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var o,r=new Bt.ZP({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new sl.Z({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(o=new cl.Z({shape:{startAngle:-_u/2,endAngle:-_u/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:3*_u/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*_u/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var n=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&o.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var bu=function(){function t(t,e,n,i){this._stageTaskMap=(0,s.kW)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,o=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,r=o?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/r):null;return{step:r,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),o=i.count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&o>=n.threshold,a=t.get("large")&&o>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?o:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=(0,s.kW)();t.eachSeries((function(t){var i=t.getProgressive(),o=t.uid;n.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;(0,s.S6)(this._allHandlers,(function(i){var o=t.get(i.uid)||t.set(i.uid,{}),r="";(0,s.hu)(!(i.reset&&i.overallReset),r),i.reset&&this._createSeriesStageTask(i,o,e,n),i.overallReset&&this._createOverallStageTask(i,o,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var o=!1,r=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}(0,s.S6)(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=r._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),r.updatePayload(c,n);var p=r.getPerformArgs(c,i.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(o=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=r.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),r.updatePayload(s,n),s.perform(u)&&(o=!0)}))}})),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var o=this,r=e.seriesTaskMap,a=e.seriesTaskMap=(0,s.kW)(),l=t.seriesType,u=t.getTargetSeries;function c(e){var s=e.uid,l=a.set(s,r&&r.get(s)||Ma({plan:Du,reset:Cu,count:Lu}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}
1t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||Ma({reset:wu});r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var a=r.agentStubMap,l=r.agentStubMap=(0,s.kW)(),u=t.seriesType,c=t.getTargetSeries,h=!0,d=!1,p="";function f(t){var e=t.uid,n=l.set(e,a&&a.get(e)||(d=!0,Ma({reset:Mu,onDirty:Tu})));n.context={model:t,overallProgress:h},n.agent=r,n.__block=h,o._pipe(t,n)}(0,s.hu)(!t.createOnAllSeries,p),u?n.eachRawSeriesByType(u,f):c?c(n,i).each(f):(h=!1,(0,s.S6)(n.getSeries(),f)),d&&r.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return(0,s.mf)(t)&&(t={overallReset:t,seriesType:Pu(t)}),t.uid=Jn("stageHandler"),e&&(t.visualType=e),t},t}();function wu(t){t.overallReset(t.ecModel,t.api,t.payload)}function Mu(t){return t.overallProgress&&Iu}function Iu(){this.agent.dirty(),this.getDownstream().dirty()}function Tu(){this.agent&&this.agent.dirty()}function Du(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Cu(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=G(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?(0,s.UI)(e,(function(t,e){return ku(e)})):Au}var Au=ku(0);function ku(t){return function(e,n){var i=n.data,o=n.resetDefines[t];if(o&&o.dataEach)for(var r=e.start;r<e.end;r++)o.dataEach(i,r);else o&&o.progress&&o.progress(e,i)}}function Lu(t){return t.data.count()}function Pu(t){Nu=null;try{t(Ru,Ou)}catch(e){}return Nu}var Nu,Ru={},Ou={};function Eu(t,e){for(var n in e.prototype)t[n]=s.ZT}Eu(Ru,sr),Eu(Ou,cr),Ru.eachSeriesByType=Ru.eachRawSeriesByType=function(t){Nu=t},Ru.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Nu=t.subType)};var Vu=bu,zu=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Bu={color:zu,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],zu]}
1,Zu="#B9B8CE",Gu="#100C2A",Wu=function(){return{axisLine:{lineStyle:{color:Zu}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Fu=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Hu={darkMode:!0,color:Fu,backgroundColor:Gu,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Zu}},textStyle:{color:Zu},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Zu}},dataZoom:{borderColor:"#71708A",textStyle:{color:Zu},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:Zu}},timeline:{lineStyle:{color:Zu},label:{color:Zu},controlStyle:{color:Zu,borderColor:Zu}},calendar:{itemStyle:{color:Gu},dayLabel:{color:Zu},monthLabel:{color:Zu},yearLabel:{color:Zu}},timeAxis:Wu(),logAxis:Wu(),valueAxis:Wu(),categoryAxis:Wu(),line:{symbol:"circle"},graph:{color:Fu},gauge:{title:{color:Zu},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Zu},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Hu.categoryAxis.splitLine.show=!1;var Uu=Hu,Xu=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(s.HD(t)){var o=Mt(t);e.mainType=o.main||null,e.subType=o.sub||null}else{var r=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};s.S6(t,(function(t,o){for(var s=!1,l=0;l<r.length;l++){var u=r[l],c=o.lastIndexOf(u);if(c>0&&c===o.length-u.length){var h=o.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(o)&&(n[o]=t,s=!0),s||(i[o]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,o=n.packedEvent,r=n.model,a=n.view;if(!r||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,r,"mainType")&&u(s,r,"subType")&&u(s,r,"index","componentIndex")&&u(s,r,"name")&&u(s,r,"id")&&u(l,o,"name")&&u(l,o,"dataIndex")&&u(l,o,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,o));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Yu=["symbol","symbolSize","symbolRotate","symbolOffset"],Ju=Yu.concat(["symbolKeepAspect"]),ju={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},o={},r=!1,a=0;a<Yu.length;a++){var l=Yu[a],u=t.get(l);(0,s.mf)(u)?(r=!0,o[l]=u):i[l]=u}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual((0,s.l7)({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var c=(0,s.XP)(o);return{dataEach:r?h:null}}}function h(e,n){for(var i=t.getRawValue(n),r=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,o[s](i,r))}}}},Ku={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?i:null}}function i(t,e){for(var n=t.getItemModel(e),i=0;i<Ju.length;i++){var o=Ju[i],r=n.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}}};function qu(t,e,n){switch(n){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function $u(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function Qu(t,e,n,i){switch(n){case"color":var o=t.ensureUniqueItemVisual(e,"style");o[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i);break;default:0}}function tc(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}(0,s.S6)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,o){e=(0,s.l7)({},e),o.dispatchAction((0,s.l7)(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function ec(t,e,n,i,o){var r=t+e;n.isSilent(r)||i.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=o.selected,l=0;l<a.length;l++)if(a[l].seriesIndex===e){var u=t.getData(),c=lt(u,o.fromActionPayload);n.trigger(r,{type:r,seriesId:t.id,name:(0,s.kJ)(c)?u.getName(c[0]):u.getName(c),selected:(0,s.HD)(i)?i:(0,s.l7)({},i)})}}))}function nc(t,e,n){t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(ec("map","selectchanged",e,i,t),ec("pie","selectchanged",e,i,t)):"select"===t.fromAction?(ec("map","selected",e,i,t),ec("pie","selected",e,i,t)):"unselect"===t.fromAction&&(ec("map","unselected",e,i,t),ec("pie","unselected",e,i,t))}))}function ic(t,e,n){var i;while(t){if(e(t)&&(i=t,n))break;t=t.__hostTarget||t.parent}return i}var oc=n(10675),rc=n(80423),ac=Ht.ZP.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,r=e.height/2;t.moveTo(n,i-r),t.lineTo(n+o,i+r),t.lineTo(n-o,i+r),t.closePath()}}),sc=Ht.ZP.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,r=e.height/2;t.moveTo(n,i-r),t.lineTo(n+o,i),t.lineTo(n,i+r),t.lineTo(n-o,i),t.closePath()}}),lc=Ht.ZP.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width/5*3,r=Math.max(o,e.height),a=o/2,s=a
1*a/(r-a),l=i-r+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),p=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),uc=Ht.ZP.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,o=e.x,r=e.y,a=i/3*2;t.moveTo(o,r),t.lineTo(o+a,r+n),t.lineTo(o,r+n/4*3),t.lineTo(o-a,r+n),t.lineTo(o,r),t.closePath()}}),cc={line:ll.Z,rect:sl.Z,roundRect:sl.Z,square:sl.Z,circle:el.Z,diamond:sc,pin:lc,arrow:uc,triangle:ac},hc={line:function(t,e,n,i,o){o.x1=t,o.y1=e+i/2,o.x2=t+n,o.y2=e+i/2},rect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i},roundRect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(t,e,n,i,o){var r=Math.min(n,i);o.x=t,o.y=e,o.width=r,o.height=r},circle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.r=Math.min(n,i)/2},diamond:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i},pin:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},arrow:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},triangle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i}},dc={};(0,s.S6)(cc,(function(t,e){dc[e]=new t}));var pc=Ht.ZP.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=(0,rc.wI)(t,e,n),o=this.shape;return o&&"pin"===o.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var o=dc[i];o||(i="rect",o=dc[i]),hc[i](e.x,e.y,e.width,e.height,o.shape),o.buildPath(t,o.shape,n)}}});function fc(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function gc(t,e,n,i,o,r,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?Dl(t.slice(8),new $n.Z(e,n,i,o),a?"center":"cover"):0===t.indexOf("path://")?Tl(t.slice(7),{},new $n.Z(e,n,i,o),a?"center":"cover"):new pc({shape:{symbolType:t,x:e,y:n,width:i,height:o}}),s.__isEmptyBrush=l,s.setColor=fc,r&&s.setColor(r),s}function yc(t){return(0,s.kJ)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function vc(t,e){if(null!=t)return(0,s.kJ)(t)||(t=[t,t]),[g(t[0],e[0])||0,g((0,s.pD)(t[1],t[0]),e[1])||0]}var mc=n(97772),xc=n(23132),_c=new oc.Z,Sc=new Zt.ZP(100),bc=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function wc(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),o="svg"===i.painter.type;t.dirty&&_c["delete"](t);var r=_c.get(t);if(r)return r;var a=(0,s.ce)(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var l={repeat:"repeat"};return u(l),l.rotation=a.rotation,l.scaleX=l.scaleY=o?1:1/n,_c.set(t,l),t.dirty=!1,l;function u(t){for(var e,r=[n],l=!0,u=0;u<bc.length;++u){var c=a[bc[u]];if(null!=c&&!(0,s.kJ)(c)&&!(0,s.HD)(c)&&!(0,s.hj)(c)&&"boolean"!==typeof c){l=!1;break}r.push(c)}if(l){e=r.join(",")+(o?"-svg":"");var h=Sc.get(e);h&&(o?t.svgElement=h:t.image=h)}var d,p=Ic(a.dashArrayX),f=Tc(a.dashArrayY),g=Mc(a.symbol),y=Dc(p),v=Cc(f),m=!o&&xc.qW.createCanvas(),x=o&&{tag:"g",attrs:{},key:"dcl",children:[]},_=S();function S(){for(var t=1,e=0,n=y.length;e<n;++e)t=V(t,y[e]);var i=1;for(e=0,n=g.length;e<n;++e)i=V(i,g[e].length);t*=i;var o=v*y.length*g.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(o,a.maxTileHeight))}}function b(){d&&(d.clearRect(0,0,m.width,m.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(!(t<=0)){var r=-v,s=0,l=0,u=0;while(r<_.height){if(s%2===0){var c=l/2%g.length,h=0,y=0,S=0;while(h<2*_.width){var b=0;for(e=0;e<p[u].length;++e)b+=p[u][e];if(b<=0)break;if(y%2===0){var w=.5*(1-a.symbolSize),M=h+p[u][y]*w,I=r+f[s]*w,T=p[u][y]*a.symbolSize,D=f[s]*a.symbolSize,C=S/2%g[c].length;A(M,I,T,D,g[c][C])}h+=p[u][y],++S,++y,y===p[u].length&&(y=0)}++u,u===p.length&&(u=0)}r+=f[s],++l,++s,s===f.length&&(s=0)}}function A(t,e,r,s,l){var u=o?1:n,c=gc(l,t*u,e*u,r*u,s*u,a.color,a.symbolKeepAspect);if(o){var h=i.painter.renderOneToVNode(c);h&&x.children.push(h)}else(0,mc.RV)(d,c)}}m&&(m.width=_.width*n,m.height=_.height*n,d=m.getContext("2d")),b(),l&&Sc.put(e,m||x),t.image=m,t.svgElement=x,t.svgWidth=_.width,t.svgHeight=_.height}}function Mc(t){if(!t||0===t.length)return[["rect"]];if((0,s.HD)(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!(0,s.HD)(t[n])){e=!1;break}if(e)return Mc([t]);var i=[];for(n=0;n<t.length;
1++n)(0,s.HD)(t[n])?i.push([t[n]]):i.push(t[n]);return i}function Ic(t){if(!t||0===t.length)return[[0,0]];if((0,s.hj)(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,i=0;i<t.length;++i)if(!(0,s.hj)(t[i])){n=!1;break}if(n)return Ic([t]);var o=[];for(i=0;i<t.length;++i)if((0,s.hj)(t[i])){e=Math.ceil(t[i]);o.push([e,e])}else{e=(0,s.UI)(t[i],(function(t){return Math.ceil(t)}));e.length%2===1?o.push(e.concat(e)):o.push(e)}return o}function Tc(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if((0,s.hj)(t)){var e=Math.ceil(t);return[e,e]}var n=(0,s.UI)(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function Dc(t){return(0,s.UI)(t,(function(t){return Cc(t)}))}function Cc(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}function Ac(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");if(n){var o=i.ensureUniqueItemVisual(t,"style");o.decal=wc(n,e)}}));var o=i.getVisual("decal");if(o){var r=i.getVisual("style");r.decal=wc(o,e)}}}))}var kc=new c.Z,Lc=kc,Pc={};function Nc(t,e){Pc[t]=e}function Rc(t){return Pc[t]}var Oc=1,Ec=800,Vc=900,zc=1e3,Bc=2e3,Zc=5e3,Gc=1e3,Wc=1100,Fc=2e3,Hc=3e3,Uc=4e3,Xc=4500,Yc=4600,Jc=5e3,jc=6e3,Kc=7e3,qc={PROCESSOR:{FILTER:zc,SERIES_FILTER:Ec,STATISTIC:Zc},VISUAL:{LAYOUT:Gc,PROGRESSIVE_LAYOUT:Wc,GLOBAL:Fc,CHART:Hc,POST_CHART_LAYOUT:Yc,COMPONENT:Uc,BRUSH:Jc,CHART_ITEM:Xc,ARIA:jc,DECAL:Kc}},$c="__flagInMainProcess",Qc="__pendingUpdate",th="__needsUpdateStatus",eh=/^[a-zA-Z0-9_]+$/,nh="__connectUpdateStatus",ih=0,oh=1,rh=2;function ah(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return lh(this,t,e);Ph(this.id)}}function sh(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return lh(this,t,e)}}function lh(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),c.Z.prototype[e].apply(t,n)}var uh,ch,hh,dh,ph,fh,gh,yh,vh,mh,xh,_h,Sh,bh,wh,Mh,Ih,Th,Dh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e}(c.Z),Ch=Dh.prototype;Ch.on=sh("on"),Ch.off=sh("off");var Ah=function(t){function e(e,n,i){var o=t.call(this,new Xu)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},(0,s.HD)(n)&&(n=zh[n]),o._dom=e;var r="canvas",l="auto",c=!1,h=o._zr=a.S1(e,{renderer:i.renderer||r,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:(0,s.pD)(i.useDirtyRect,c),useCoarsePointer:(0,s.pD)(i.useCoarsePointer,l),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=lu((0,s.ak)(h.flush,h),17),n=(0,s.d9)(n),n&&Hr(n,!0),o._theme=n,o._locale=ui(i.locale||si),o._coordSysMgr=new pr;var d=o._api=wh(o);function p(t,e){return t.__prio-e.__prio}return(0,u.Z)(Vh,p),(0,u.Z)(Oh,p),o._scheduler=new Vu(o,d,Oh,Vh),o._messageCenter=new Dh,o._initEvents(),o.resize=(0,s.ak)(o.resize,o),h.animation.on("frame",o._onframe,o),mh(h,o),xh(h,o),(0,s.s7)(o),o}return(0,r.ZT)(e,t),e.prototype._onframe=function(){if(!this._disposed){Th(this);var t=this._scheduler;if(this[Qc]){var e=this[Qc].silent;this[$c]=!0;try{uh(this),dh.update.call(this,null,this[Qc].updateParams)}catch(a){throw this[$c]=!1,this[Qc]=null,a}this._zr.flush(),this[$c]=!1,this[Qc]=null,yh.call(this,e),vh.call(this,e)}else if(t.unfinished){var n=Oc,i=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),fh(this,i),t.performVisualTasks(i),bh(this,this._model,o,"remain",{}),n-=+new Date-r}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[$c])if(this._disposed)Ph(this.id);else{var i,o,r;if((0,s.Kn)(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[$c]=!0,!this._model||e){var a=new _r(this._api),l=this._theme,u=this._model=new sr;
1u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,a)}this._model.setOption(t,{replaceMerge:o},Eh);var c={seriesTransition:r,optionChanged:!0};if(n)this[Qc]={silent:i,updateParams:c},this[$c]=!1,this.getZr().wakeUp();else{try{uh(this),dh.update.call(this,null,c)}catch(h){throw this[Qc]=null,this[$c]=!1,h}this._ssr||this._zr.flush(),this[Qc]=null,this[$c]=!1,yh.call(this,i),vh.call(this,i)}}},e.prototype.setTheme=function(){Da("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||l.Z.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(l.Z.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return(0,s.S6)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],o=this;(0,s.S6)(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=o._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return(0,s.S6)(i,(function(t){t.group.ignore=!1})),r}Ph(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,o=Math.max,r=1/0;if(Gh[n]){var l=r,u=r,c=-r,h=-r,d=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();(0,s.S6)(Zh,(function(r,a){if(r.group===n){var p=e?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas((0,s.d9)(t)),f=r.getDom().getBoundingClientRect();l=i(f.left,l),u=i(f.top,u),c=o(f.right,c),h=o(f.bottom,h),d.push({dom:p,left:f.left,top:f.top})}})),l*=p,u*=p,c*=p,h*=p;var f=c-l,g=h-u,y=xc.qW.createCanvas(),v=a.S1(y,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:g}),e){var m="";return(0,s.S6)(d,(function(t){var e=t.left-l,n=t.top-u;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new sl.Z({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),(0,s.S6)(d,(function(t){var e=new tl.ZP({style:{x:t.left*p-l,y:t.top*p-u,image:t.dom}});v.add(e)})),v.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Ph(this.id)},e.prototype.convertToPixel=function(t,e){return ph(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return ph(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,o=ht(i,t);return(0,s.S6)(o,(function(t,i){i.indexOf("Models")>=0&&(0,s.S6)(t,(function(t){var o=t.coordinateSystem;if(o&&o.containPoint)n=n||!!o.containPoint(e);else if("seriesModels"===i){var r=this._chartsMap[t.__viewId];r&&r.containPoint&&(n=n||r.containPoint(e,t))}else 0}),this)}),this),!!n}Ph(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=ht(n,t,{defaultMainType:"series"}),o=i.seriesModel;var r=o.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?r.indexOfRawIndex(i.dataIndex):null;return null!=a?qu(r,a,e):$u(r,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;(0,s.S6)(Lh,(function(e){var n=function(n){var i,o=t.getModel(),r=n.target,a="globalout"===e;if(a?i={}:r&&ic(r,(function(t){var e=Gt(t);if(e&&null!=e.dataIndex){var n=e.dataModel||o.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,r)||{},!0}if(e.eventData)return i=(0,s.l7)({},e.eventData),!0}),!0),i){var l=i.componentType,u=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=i.seriesIndex);var c=l&&null!=u&&o.getComponent(l,u),h=c&&t["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:r,packedEvent:i,model:c,view:h}
1,t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),(0,s.S6)(Rh,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),(0,s.S6)(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),nc(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Ph(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Ph(this.id);else{this._disposed=!0;var t=this.getDom();t&&yt(this.getDom(),Fh,"");var e=this,n=e._api,i=e._model;(0,s.S6)(e._componentsViews,(function(t){t.dispose(i,n)})),(0,s.S6)(e._chartsViews,(function(t){t.dispose(i,n)})),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 Zh[e.id]}},e.prototype.resize=function(t){if(!this[$c])if(this._disposed)Ph(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Qc]&&(null==i&&(i=this[Qc].silent),n=!0,this[Qc]=null),this[$c]=!0;try{n&&uh(this),dh.update.call(this,{type:"resize",animation:(0,s.l7)({duration:0},t&&t.animation)})}catch(o){throw this[$c]=!1,o}this[$c]=!1,yh.call(this,i),vh.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Ph(this.id);else if((0,s.Kn)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Bh[t]){var n=Bh[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?Ph(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=(0,s.l7)({},t);return e.type=Rh[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Ph(this.id);else if((0,s.Kn)(e)||(e={silent:!!e}),Nh[t.type]&&this._model)if(this[$c])this._pendingActions.push(t);else{var n=e.silent;gh.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&l.Z.browser.weChat&&this._throttledZrFlush(),yh.call(this,n),vh.call(this,n)}},e.prototype.updateLabelLayout=function(){Lc.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Ph(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);0,i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,o){var r=o.get("zlevel")||0,a=o.get("z")||0,s=o.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:r,z:a,idx:o.componentIndex,type:t,key:s})})),i){var o,r,a=e.concat(n);(0,u.Z)(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),(0,s.S6)(a,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=o&&(i=Math.max(o,i)),a?(i===o&&a!==r&&i++,r=a):r&&(i===o&&i++,r=""),o=i,n.setZLevel(i)}))}}function n(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var o=n[i];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===qt&&t.states.emphasis?e.push("emphasis"):t.hoverState===Kt&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){var n=t._zr,i=n.storage,o=0;i.traverse((function(t){t.isGroup||o++})),o>e.get("hoverLayerThreshold")&&!l.Z.node&&!l.Z.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function o(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function a(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return c(t,n,i,-1/0),!0}))}}function c(t,e,n,i){var o=t.getTextContent(),r=t.getTextGuideLine(),a=t.isGroup;if(a)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(c(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(o&&(o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),r){var u=t.textGuideLineConfig;r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+(u&&u.showAbove?1:-1))}return i}function h(t,e){e.eachRendered((function(t){if(!hn(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function d(t,e){var i=t.getModel("stateAnimation"),o=t.isAnimationEnabled(),r=i.get("duration"),a=r>0?{duration:r,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(hn(t))return;if(t instanceof Ht.ZP&&rn(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(o){t.stateTransition=a;var i=t.getTextContent(),r=t.getTextGuideLine();i&&(i.stateTransition=a),r&&(r.stateTransition=a)}t.__dirty&&n(t)}}))}uh=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),ch(t,!0),ch(t,!1),e.plan()},ch=function(t,e){for(var n=t._model,i=t._scheduler,o=e?t._componentsViews:t._chartsViews,r=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<o.length;l++)o[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&r[u];if(!c){var h=Mt(t.type),d=e?Js.getClass(h.main,h.sub):ou.getClass(h.sub);0,c=new d,c.init(n,s),r[u]=c,o.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}
1e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<o.length;){var c=o[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),o.splice(l,1),r[c.__id]===c&&delete r[c.__id],c.__id=c.group.__ecComponentInfo=null)}},hh=function(t,e,n,i,o){var r=t._model;if(r.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var l={mainType:i,query:a};o&&(l.subType=o);var u,c=n.excludeSeriesId;null!=c&&(u=(0,s.kW)(),(0,s.S6)(G(c),(function(t){var e=et(t,null);null!=e&&u.set(e,!0)}))),r&&r.eachComponent(l,(function(e){var i=u&&null!=u.get(e.id);if(!i)if(on(n))if(e instanceof Us)n.type!==ne||n.notBlur||e.get(["emphasis","disabled"])||ze(e,n,t._api);else{var o=Be(e.mainType,e.componentIndex,n.name,t._api),r=o.focusSelf,a=o.dispatchers;n.type===ne&&r&&!n.notBlur&&Ve(e.mainType,e.componentIndex,t._api),a&&(0,s.S6)(a,(function(t){n.type===ne?Ce(t):Ae(t)}))}else nn(n)&&e instanceof Us&&(We(e,n,t._api),Fe(e),Ih(t))}),t),r&&r.eachComponent(l,(function(e){var n=u&&null!=u.get(e.id);n||h(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else(0,s.S6)([].concat(t._componentsViews).concat(t._chartsViews),h);function h(i){i&&i.__alive&&i[e]&&i[e](i.__model,r,t._api,n)}},dh={prepareAndUpdate:function(t){uh(this),dh.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,o=this._api,r=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,o),s.performDataProcessorTasks(i,e),fh(this,i),a.update(i,o),t(i),s.performVisualTasks(i,e),_h(this,i,o,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");r.setBackgroundColor(l),null!=u&&"auto"!==u&&r.setDarkMode(u),Lc.trigger("afterupdate",i,o)}},updateTransform:function(e){var n=this,i=this._model,o=this._api;if(i){i.setUpdatePayload(e);var r=[];i.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,o,e);l&&l.update&&r.push(s)}else r.push(s)}}));var a=(0,s.kW)();i.eachSeries((function(t){var r=n._chartsMap[t.__viewId];if(r.updateTransform){var s=r.updateTransform(t,i,o,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),bh(this,i,o,e,{},a),Lc.trigger("afterupdate",i,o)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),ou.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),_h(this,n,this._api,e,{}),Lc.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),ou.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,o){if("series"!==t){var r=n.getViewOfComponentModel(o);r&&r.__alive&&r.updateVisual(o,i,n._api,e)}})),i.eachSeries((function(t){var o=n._chartsMap[t.__viewId];o.updateVisual(t,i,n._api,e)})),Lc.trigger("afterupdate",i,this._api))},updateLayout:function(t){dh.update.call(this,t)}},ph=function(t,e,n,i){if(t._disposed)Ph(t.id);else{for(var o,r=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=ht(r,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(o=u[e](r,s,i)))return o}0}},fh=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},gh=function(t,e){var n=this,i=this.getModel(),o=t.type,r=t.escapeConnect,a=Nh[o],l=a.actionInfo,u=(l.update||"update").split(":"),c=u.pop(),h=null!=u[0]&&Mt(u[0]);this[$c]=!0;var d=[t],p=!1;t.batch&&(p=!0,d=(0,s.UI)(t.batch,(function(e){return e=(0,s.ce)((0,s.l7)({},e),t),e.batch=null,e})));var f,g=[],y=nn(t),v=on(t);if(v&&Oe(this._api),(0,s.S6)(d,(function(e){if(f=a.action(e,n._model,n._api),f=f||(0,s.l7)({},e),f.type=l.event||f.type,g.push(f),v){var i=dt(t),o=i.queryOptionMap,r=i.mainTypeSpecified,u=r?o.keys()[0]:"series";hh(n,c,e,u),Ih(n)}else y?(hh(n,c,e,"series"),Ih(n)):h&&hh(n,c,e,h.main,h.sub)})),"none"!==c&&!v&&!y&&!h)try{this[Qc]?(uh(this),dh.update.call(this,t),this[Qc]=null):dh[c].call(this,t)}catch(_){throw this[$c]=!1,_}if(f=p?{type:l.event||o,escapeConnect:r,batch:g}:g[0],this[$c]=!1,!e){var m=this._messageCenter;if(m.trigger(f.type,f),y){var x={type:"selectchanged",escapeConnect:r,selected:He(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};m.trigger(x.type,x)}}}
1,yh=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();gh.call(this,n,t)}},vh=function(t){!t&&this.trigger("updated")},mh=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Qc]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},xh=function(t,e){t.on("mouseover",(function(t){var n=t.target,i=ic(n,Qe);i&&(Ze(i,t,e._api),Ih(e))})).on("mouseout",(function(t){var n=t.target,i=ic(n,Qe);i&&(Ge(i,t,e._api),Ih(e))})).on("click",(function(t){var n=t.target,i=ic(n,(function(t){return null!=Gt(t).dataIndex}),!0);if(i){var o=i.selected?"unselect":"select",r=Gt(i);e._api.dispatchAction({type:o,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}}))},_h=function(t,n,i,o,r){e(n),Sh(t,n,i,o,r),(0,s.S6)(t._chartsViews,(function(t){t.__alive=!1})),bh(t,n,i,o,r),(0,s.S6)(t._chartsViews,(function(t){t.__alive||t.remove(n,i)}))},Sh=function(t,e,n,i,o,r){(0,s.S6)(r||t._componentsViews,(function(t){var o=t.__model;h(o,t),t.render(o,e,n,i),a(o,t),d(o,t)}))},bh=function(t,e,n,r,l,u){var c=t._scheduler;l=(0,s.l7)(l||{},{updatedSeries:e.getSeries()}),Lc.trigger("series:beforeupdate",e,n,l);var p=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;c.updatePayload(i,r),h(e,n),u&&u.get(e.uid)&&i.dirty(),i.perform(c.getPerformArgs(i))&&(p=!0),n.group.silent=!!e.get("silent"),o(e,n),Fe(e)})),c.unfinished=p||c.unfinished,Lc.trigger("series:layoutlabels",e,n,l),Lc.trigger("series:transition",e,n,l),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];a(e,n),d(e,n)})),i(t,e),Lc.trigger("series:afterupdate",e,n,l)},Ih=function(t){t[th]=!0,t.getZr().wakeUp()},Th=function(t){t[th]&&(t.getZr().storage.traverse((function(t){hn(t)||n(t)})),t[th]=!1)},wh=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Ce(e,n),Ih(t)},n.prototype.leaveEmphasis=function(e,n){Ae(e,n),Ih(t)},n.prototype.enterBlur=function(e){ke(e),Ih(t)},n.prototype.leaveBlur=function(e){Le(e),Ih(t)},n.prototype.enterSelect=function(e){Pe(e),Ih(t)},n.prototype.leaveSelect=function(e){Ne(e),Ih(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(cr))(t)},Mh=function(t){function e(t,e){for(var n=0;n<t.length;n++){var i=t[n];i[nh]=e}}(0,s.S6)(Rh,(function(n,i){t._messageCenter.on(i,(function(n){if(Gh[t.group]&&t[nh]!==ih){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),o=[];(0,s.S6)(Zh,(function(e){e!==t&&e.group===t.group&&o.push(e)})),e(o,ih),(0,s.S6)(o,(function(t){t[nh]!==oh&&t.dispatchAction(i)})),e(o,rh)}}))}))}}(),e}(c.Z),kh=Ah.prototype;kh.on=ah("on"),kh.off=ah("off"),kh.one=function(t,e,n){var i=this;function o(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e&&e.apply&&e.apply(this,n),i.off(t,o)}Da("ECharts#one is deprecated."),this.on.call(this,t,o,n)};var Lh=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Ph(t){0}var Nh={},Rh={},Oh=[],Eh=[],Vh=[],zh={},Bh={},Zh={},Gh={},Wh=+new Date-0,Fh=(new Date,"_echarts_instance_");function Hh(t,e,n){var i=!(n&&n.ssr);if(i){0;var o=Uh(t);if(o)return o;0}var r=new Ah(t,e,n);return r.id="ec_"+Wh++,Zh[r.id]=r,i&&yt(t,Fh,r.id),Mh(r),Lc.trigger("afterinit",r),r}function Uh(t){return Zh[vt(t,Fh)]}function Xh(t,e){zh[t]=e}function Yh(t){(0,s.cq)(Eh,t)<0&&Eh.push(t)}function Jh(t,e){id(Oh,t,e,Bc)}function jh(t){qh("afterinit",t)}function Kh(t){qh("afterupdate",t)}function qh(t,e){Lc.on(t,e)}function $h(t,e,n){(0,s.mf)(e)&&(n=e,e="");var i=(0,s.Kn)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,Rh[e]||((0,s.hu)(eh.test(i)&&eh.test(e)),Nh[i]||(Nh[i]={action:n,actionInfo:t}),Rh[e]=i)}function Qh(t,e){pr.register(t,e)}function td(t,e){id(Vh,t,e,Gc,"layout")}function ed(t,e){id(Vh,t,e,Hc,"visual")}var nd=[];function id(t,e,n,i,o){if(((0,s.mf)(e)||(0,s.Kn)(e))&&(n=e,e=i),!((0,s.cq)(nd,n)>=0)){nd.push(n);var r=Vu.wrapStageHandler(n,o);r.__prio=e,r.__raw=n,t.push(r)}}function od(t,e){Bh[t]=e}function rd(t,e,n){var i=Rc("registerMap");i&&i(t,e,n)}var ad=Ha;ed(Fc,yu),ed(Xc,mu),ed(Xc,xu),ed(Fc,ju),ed(Xc,Ku),ed(Kc,Ac),Yh(Hr),Jh(Vc,Ur),od("default",Su),$h({type:ne,event:ne,update:ne},s.ZT),$h({type:ie,event:ie,update:ie},s.ZT),$h({type:oe,event:oe,update:oe},s.ZT),$h({type:re,event:re,update:re},s.ZT),$h({type:ae,event:ae,update:ae},s.ZT),Xh("light",Bu),Xh("dark",Uu);var sd=[],ld={registerPreprocessor:Yh,registerProcessor:Jh,registerPostInit:jh,registerPostUpdate:Kh,registerUpdateLifecycle:qh,registerAction:$h,registerCoordinateSystem:Qh,registerLayout:td,registerVisual:ed,registerTransform:ad,registerLoading:od,registerMap:rd,registerImpl:Nc,PRIORITY:qc,ComponentModel:mo,ComponentView:Js,SeriesModel:Us,ChartView:ou,registerComponentModel:function(t){mo.registerClass(t)},registerComponentView:function(t){Js.registerClass(t)},registerSeriesModel:function(t){Us.registerClass(t)},registerChartView:function(t){ou.registerClass(t)},registerSubTypeDefaulter:function(t,e){mo.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){(0,a.wm)(t,e)}};function ud(t){(0,s.kJ)(t)?(0,s.S6)(t,(function(t){ud(t)})):(0,s.cq)(sd,t)>=0||(sd.push(t),(0,s.mf)(t)&&(t={install:t}),t.install(ld))}var cd=n(14014),hd=n(3266),dd=n(18554),pd=2*Math.PI,fd=cd.Z.CMD,gd=["top","right","bottom","left"];function yd(t,e,n,i,o){var r=n.width,a=n.height;switch(t){case"top":i.set(n.x+r/2,n.y-e),o.set(0,-1);break;case"bottom":i.set(n.x+r/2,n.y+a+e),o.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),o.set(-1,0);break;case"right":i.set(n.x+r+e,n.y+a/2),o.set(1,0);break}}function vd(t,e,n,i,o,r,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+t,h=s*n+e;if(Math.abs(i-o)%pd<1e-4)return l[0]=c,l[1]=h,u-n;
1if(r){var d=i;i=(0,hd.m)(o),o=(0,hd.m)(d)}else i=(0,hd.m)(i),o=(0,hd.m)(o);i>o&&(o+=pd);var p=Math.atan2(s,a);if(p<0&&(p+=pd),p>=i&&p<=o||p+pd>=i&&p+pd<=o)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(o)+t,v=n*Math.sin(o)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m<x?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(x))}function md(t,e,n,i,o,r,a,s){var l=o-t,u=r-e,c=n-t,h=i-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=l*c+u*h,f=p/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var g=a[0]=t+f*c,y=a[1]=e+f*h;return Math.sqrt((g-o)*(g-o)+(y-r)*(y-r))}function xd(t,e,n,i,o,r,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(o,t),s),c=a[1]=Math.min(Math.max(r,e),l);return Math.sqrt((u-o)*(u-o)+(c-r)*(c-r))}var _d=[];function Sd(t,e,n){var i=xd(e.x,e.y,e.width,e.height,t.x,t.y,_d);return n.set(_d[0],_d[1]),i}function bd(t,e,n){for(var i,o,r=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,p=0;p<c.length;){var f=c[p++];1===p&&(r=c[p],a=c[p+1],s=r,l=a);var g=u;switch(f){case fd.M:s=c[p++],l=c[p++],r=s,a=l;break;case fd.L:g=md(r,a,c[p],c[p+1],h,d,_d,!0),r=c[p++],a=c[p++];break;case fd.C:g=(0,dd.t1)(r,a,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,_d),r=c[p++],a=c[p++];break;case fd.Q:g=(0,dd.Wr)(r,a,c[p++],c[p++],c[p],c[p+1],h,d,_d),r=c[p++],a=c[p++];break;case fd.A:var y=c[p++],v=c[p++],m=c[p++],x=c[p++],_=c[p++],S=c[p++];p+=1;var b=!!(1-c[p++]);i=Math.cos(_)*m+y,o=Math.sin(_)*x+v,p<=1&&(s=i,l=o);var w=(h-y)*x/m+y;g=vd(y,v,x,_,_+S,b,w,d,_d),r=Math.cos(_+S)*m+y,a=Math.sin(_+S)*x+v;break;case fd.R:s=r=c[p++],l=a=c[p++];var M=c[p++],I=c[p++];g=xd(s,l,M,I,h,d,_d);break;case fd.Z:g=md(r,a,s,l,h,d,_d,!0),r=s,a=l;break}g<u&&(u=g,n.set(_d[0],_d[1]))}return u}var wd=new gl.Z,Md=new gl.Z,Id=new gl.Z,Td=new gl.Z,Dd=new gl.Z;function Cd(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||gd,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=o.anchor,c=t.getComputedTransform(),h=c&&(0,qs.U_)([],c),d=e.get("length2")||0;u&&Id.copy(u);for(var p=0;p<a.length;p++){var f=a[p];yd(f,0,s,wd,Td),gl.Z.scaleAndAdd(Md,wd,Td,d),Md.transform(h);var g=t.getBoundingRect(),y=u?u.distance(Md):t instanceof Ht.ZP?bd(Md,t.path,Id):Sd(Md,g,Id);y<l&&(l=y,Md.transform(c),Id.transform(c),Id.toArray(r[0]),Md.toArray(r[1]),wd.toArray(r[2]))}Ld(r,e.get("minTurnAngle")),n.setShape({points:r})}}}var Ad=[],kd=new gl.Z;function Ld(t,e){if(e<=180&&e>0){e=e/180*Math.PI,wd.fromArray(t[0]),Md.fromArray(t[1]),Id.fromArray(t[2]),gl.Z.sub(Td,wd,Md),gl.Z.sub(Dd,Id,Md);var n=Td.len(),i=Dd.len();if(!(n<.001||i<.001)){Td.scale(1/n),Dd.scale(1/i);var o=Td.dot(Dd),r=Math.cos(e);if(r<o){var a=md(Md.x,Md.y,Id.x,Id.y,wd.x,wd.y,Ad,!1);kd.fromArray(Ad),kd.scaleAndAdd(Dd,a/Math.tan(Math.PI-e));var s=Id.x!==Md.x?(kd.x-Md.x)/(Id.x-Md.x):(kd.y-Md.y)/(Id.y-Md.y);if(isNaN(s))return;s<0?gl.Z.copy(kd,Md):s>1&&gl.Z.copy(kd,Id),kd.toArray(t[1])}}}}function Pd(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,wd.fromArray(t[0]),Md.fromArray(t[1]),Id.fromArray(t[2]),gl.Z.sub(Td,Md,wd),gl.Z.sub(Dd,Id,Md);var i=Td.len(),o=Dd.len();if(!(i<.001||o<.001)){Td.scale(1/i),Dd.scale(1/o);var r=Td.dot(e),a=Math.cos(n);if(r<a){var s=md(Md.x,Md.y,Id.x,Id.y,wd.x,wd.y,Ad,!1);kd.fromArray(Ad);var l=Math.PI/2,u=Math.acos(Dd.dot(e)),c=l+u-n;if(c>=l)gl.Z.copy(kd,Id);else{kd.scaleAndAdd(Dd,s/Math.tan(Math.PI/2-c));var h=Id.x!==Md.x?(kd.x-Md.x)/(Id.x-Md.x):(kd.y-Md.y)/(Id.y-Md.y);if(isNaN(h))return;h<0?gl.Z.copy(kd,Md):h>1&&gl.Z.copy(kd,Id)}kd.toArray(t[1])}}}}function Nd(t,e,n,i){var o="normal"===n,r=o?t:t.ensureState(n);r.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),r.shape=r.shape||{},a>0&&(r.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();o?t.useStyle(s):r.style=s}function Rd(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var o=$s.TK(i[0],i[1]),r=$s.TK(i[1],i[2]);if(!o||!r)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(o,r)*n,s=$s.t7([],i[1],i[0],a/o),l=$s.t7([],i[1],i[2],a/r),u=$s.t7([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function Od(t,e,n){var i=t.getTextGuideLine(),o=t.getTextContent();if(o){for(var r=e.normal,a=r.get("show"),l=o.ignore,u=0;u<Qt.length;u++){var c=Qt[u],h=e[c],d="normal"===c;if(h){var p=h.get("show"),f=d?l:(0,s.pD)(o.states[c]&&o.states[c].ignore,l);if(f||!(0,s.pD)(p,a)){var g=d?i:i&&i.states[c];g&&(g.ignore=!0);continue}
1i||(i=new al.Z,t.setTextGuideLine(i),d||!l&&a||Nd(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),Nd(i,!1,c,h)}}if(i){(0,s.ce)(i.style,n),i.style.fill=null;var y=r.get("showAbove"),v=t.textGuideLineConfig=t.textGuideLineConfig||{};v.showAbove=y||!1,i.buildPath=Rd}}else i&&t.removeTextGuideLine()}function Ed(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<$t.length;i++){var o=$t[i];n[o]=t.getModel([o,e])}return n}function Vd(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var o=i.label,r=o.getComputedTransform(),a=o.getBoundingRect(),s=!r||r[1]<1e-5&&r[2]<1e-5,l=o.style.margin||0,u=a.clone();u.applyTransform(r),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new fl.Z(a,r):null;e.push({label:o,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:r})}}return e}function zd(t,e,n,i,o,r){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var p=t[d],f=p.rect;s=f[e]-l,s<0&&(f[e]-=s,p.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=f[e]+f[n]}h>0&&r&&b(-h/a,0,a);var y,v,m=t[0],x=t[a-1];return _(),y<0&&w(-y,.8),v<0&&w(v,.8),_(),S(y,v,1),S(v,y,-1),_(),y<0&&M(-y),v<0&&M(v),u}function _(){y=m.rect[e]-i,v=o-x.rect[e]-x.rect[n]}function S(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){b(i*n,0,a);var o=i+t;o<0&&w(-o*n,1)}else w(-t*n,1)}}function b(n,i,o){0!==n&&(u=!0);for(var r=i;r<o;r++){var a=t[r],s=a.rect;s[e]+=n,a.label[e]+=n}}function w(i,o){for(var r=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);r.push(c),s+=c}if(s){var h=Math.min(Math.abs(i)/s,o);if(i>0)for(l=0;l<a-1;l++){var d=r[l]*h;b(d,0,l+1)}else for(l=a-1;l>0;l--){d=r[l-1]*h;b(-d,l,a)}}}function M(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?b(n,0,i+1):b(-n,a-i-1,a),t-=n,t<=0)return}}function Bd(t,e,n,i){return zd(t,"x","width",e,n,i)}function Zd(t,e,n,i){return zd(t,"y","height",e,n,i)}function Gd(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new $n.Z(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var o=0;o<t.length;o++){var r=t[o],a=r.axisAligned,s=r.localRect,l=r.transform,u=r.label,c=r.labelLine;n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=r.obb,d=!1,p=0;p<e.length;p++){var f=e[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new fl.Z(f.localRect,f.transform)),h||(h=new fl.Z(s,l)),h.intersect(f.obb)){d=!0;break}}}d?(i(u),c&&i(c)):(u.attr("ignore",r.defaultAttr.ignore),c&&c.attr("ignore",r.defaultAttr.labelGuideIgnore),e.push(r))}}function Wd(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function Fd(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:Wd(i&&i.shape.points)}}var Hd=["align","verticalAlign","width","height","fontSize"],Ud=new Qs.ZP,Xd=ut(),Yd=ut();function Jd(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}var jd=["x","y","rotation"],Kd=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,o){var r=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();$n.Z.applyTransform(u,u,l),l?Ud.setLocalTransform(l):(Ud.x=Ud.y=Ud.rotation=Ud.originX=Ud.originY=0,Ud.scaleX=Ud.scaleY=1),Ud.rotation=(0,hd.m)(Ud.rotation);var c,h=i.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();$n.Z.applyTransform(c,c,d)}var p=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:Ud.x,y:Ud.y,scaleX:Ud.scaleX,scaleY:Ud.scaleY,rotation:Ud.rotation,style:{x:r.x,y:r.y,align:r.align,verticalAlign:r.verticalAlign,width:r.width,height:r.height,fontSize:r.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");((0,s.mf)(i)||(0,s.XP)(i).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var o=t.getTextContent(),r=Gt(t);o&&!o.disableLabelLayout&&e._addLabel(r.dataIndex,r.dataType,n,o,i)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(t,e){return function(){Cd(t,e)}}for(var o=0;o<this._labelList.length;o++){var r=this._labelList[o],a=r.label,l=a.__hostTarget,u=r.defaultAttr,c=void 0;c=(0,s.mf)(r.layoutOption)?r.layoutOption(Fd(r,l)):r.layoutOption,c=c||{},r.computedLayoutOption=c;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:u.attachedPos,rotation:null!=c.rotate?c.rotate*h:u.attachedRot,offset:[c.dx||0,c.dy||
10]});var d=!1;if(null!=c.x?(a.x=g(c.x,e),a.setStyle("x",0),d=!0):(a.x=u.x,a.setStyle("x",u.style.x)),null!=c.y?(a.y=g(c.y,n),a.setStyle("y",0),d=!0):(a.y=u.y,a.setStyle("y",u.style.y)),c.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),d=!1)}var f=Xd(a);f.needsUpdateLabelLine=d,a.rotation=null!=c.rotate?c.rotate*h:u.rotation,a.scaleX=u.scaleX,a.scaleY=u.scaleY;for(var y=0;y<Hd.length;y++){var v=Hd[y];a.setStyle(v,null!=c[v]?c[v]:u.style[v])}if(c.draggable){if(a.draggable=!0,a.cursor="move",l){var m=r.seriesModel;if(null!=r.dataIndex){var x=r.seriesModel.getData(r.dataType);m=x.getItemModel(r.dataIndex)}a.on("drag",i(l,m.getModel("labelLine")))}}else a.off("drag"),a.cursor=u.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=Vd(this._labelList),o=(0,s.hX)(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),r=(0,s.hX)(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));Bd(o,0,e),Zd(r,0,n);var a=(0,s.hX)(i,(function(t){return t.layoutOption.hideOverlap}));Gd(a)},t.prototype.processLabelsOverall=function(){var t=this;(0,s.S6)(this._chartViewList,(function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,o=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var r=!i,a=e.getTextContent();!r&&a&&(r=Xd(a).needsUpdateLabelLine),r&&t._updateLabelLine(e,n),o&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=Gt(t),o=i.dataIndex;if(n&&null!=o){var r=e.getData(i.dataType),a=r.getItemModel(o),s={},l=r.getItemVisual(o,"style");if(l){var u=r.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");Od(t,Ed(a),s),Cd(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!hn(t))){var o=Xd(n),r=o.oldLayout,a=Gt(t),l=a.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=e.getData(a.dataType);if(r){n.attr(r);var h=t.prevStates;h&&((0,s.cq)(h,"select")>=0&&n.attr(o.oldLayoutSelect),(0,s.cq)(h,"emphasis")>=0&&n.attr(o.oldLayoutEmphasis)),un(n,u,e,l)}else if(n.attr(u),!Ln(n).valueAnimation){var d=(0,s.pD)(n.style.opacity,1);n.style.opacity=0,cn(n,{style:{opacity:d}},e,l)}if(o.oldLayout=u,n.states.select){var p=o.oldLayoutSelect={};Jd(p,u,jd),Jd(p,n.states.select,jd)}if(n.states.emphasis){var f=o.oldLayoutEmphasis={};Jd(f,u,jd),Jd(f,n.states.emphasis,jd)}Nn(n,l,c,e,e)}if(i&&!i.ignore&&!i.invisible){o=Yd(i),r=o.oldLayout;var g={points:i.shape.points};r?(i.attr({shape:r}),un(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,cn(i,{style:{strokePercent:1}},e)),o.oldLayout=g}},t}(),qd=Kd,$d=ut();function Qd(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=$d(e).labelManager;i||(i=$d(e).labelManager=new qd),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=$d(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}ud(Qd);var tp=n(19451);function ep(t){t.registerPainter("canvas",tp.Z)}var np=n(12308);function ip(t){t.registerPainter("svg",np.Z)}function op(t){return null==t?0:t.length||1}function rp(t){return t}var ap=function(){function t(t,e,n,i,o,r){this._old=t,this._new=e,this._oldKeyGetter=n||rp,this._newKeyGetter=i||rp,this.context=o,this._diffModeMultiple="multiple"===r}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a=i[r],s=n[a],l=op(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,r)}else 1===l?(n[a]=null,this._update&&this._update(s,r)):this._remove&&this._remove(r)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],r=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=n[s],u=i[s],c=op(l),h=op(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(r,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],r=op(o);if(r>1)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a="_ec_"+this[i](t[r],r);if(o||(n[r]=a),e){var s=e[a],l=op(s);
10===l?(e[a]=r,o&&n.push(a)):1===l?e[a]=[s,r]:s.push(r)}}},t}(),sp=ap,lp=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function up(t,e){var n={},i=n.encode={},o=(0,s.kW)(),r=[],a=[],l={};(0,s.S6)(t.dimensions,(function(e){var n=t.getDimensionInfo(e),s=n.coordDim;if(s){0;var u=n.coordDimIndex;cp(i,s)[u]=e,n.isExtraCoord||(o.set(s,1),dp(n.type)&&(r[0]=e),cp(l,s)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}bo.each((function(t,e){var o=cp(i,e),r=n.otherDims[e];null!=r&&!1!==r&&(o[r]=n.name)}))}));var u=[],c={};o.each((function(t,e){var n=i[e];c[e]=n[0],u=u.concat(n)})),n.dataDimsOnCoord=u,n.dataDimIndicesOnCoord=(0,s.UI)(u,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=c;var h=i.label;h&&h.length&&(r=h.slice());var d=i.tooltip;return d&&d.length?a=d.slice():a.length||(a=r.slice()),i.defaultedLabel=r,i.defaultedTooltip=a,n.userOutput=new lp(l,e),n}function cp(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function hp(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function dp(t){return!("ordinal"===t||"time"===t)}var pp=function(){function t(t){this.otherDims={},null!=t&&s.l7(this,t)}return t}(),fp=pp,gp=ut(),yp={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},vp=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=_p(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return(0,s.pD)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=la(this.source),n=!Sp(t),i="",o=[],r=0,a=0;r<t;r++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===r)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(r);h&&(s=e?h.name:null,l=h.type)}o.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=yp[l]||"f",u&&(i+=u.uid),i+="$"}var d=this.source,p=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:o,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===e)o.isCalculationCoord||(i=o.name),n++;else{var r=this.getSourceDimension(e);r&&(i=r.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function mp(t){return t instanceof vp}function xp(t){for(var e=(0,s.kW)(),n=0;n<(t||[]).length;n++){var i=t[n],o=(0,s.Kn)(i)?i.name:i;null!=o&&null==e.get(o)&&e.set(o,n)}return e}function _p(t){var e=gp(t);return e.dimNameMap||(e.dimNameMap=xp(t.dimensionsDefine))}function Sp(t){return t>30}var bp,wp,Mp,Ip,Tp,Dp,Cp,Ap=s.Kn,kp=s.UI,Lp="undefined"===typeof Int32Array?Array:Int32Array,Pp="e\0\0",Np=-1,Rp=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Op=["_approximateExtent"],Ep=function(){function t(t,e){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 i=!1;mp(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var o={},r=[],a={},l=!1,u={},c=0;c<n.length;c++){var h=n[c],d=s.HD(h)?new fp({name:h}):h instanceof fp?h:new fp(h),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var f=d.otherDims=d.otherDims||{};r.push(p),o[p]=d,null!=u[p]&&(l=!0),d.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=c),0===f.itemId&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=r,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=s.kW();s.S6(r,(function(t){g.set(o[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(s.hj(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,o=this;if(t instanceof as&&(i=t),!i){var r=this.dimensions,a=Qr(t)||s.zG(t)?new ua(t,r.length):t;i=new as;var l=kp(r,(function(t){return{type:o._dimInfos[t].type,property:t}}));i.initData(a,l,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=up(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,o=n.end,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<o;a++){var s=a-i;this._nameList[a]=e[s],r&&Cp(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Do&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();
1var o=this._nameList,r=this._idList,a=i.getSource().sourceFormat,s=a===wo;if(s&&!i.pure)for(var l=[],u=t;u<e;u++){var c=i.getItem(u,l);if(!this.hasItemOption&&U(c)&&(this.hasItemOption=!0),c){var h=c.name;null==o[u]&&null!=h&&(o[u]=et(h,null));var d=c.id;null==r[u]&&null!=d&&(r[u]=et(d,null))}}if(this._shouldMakeIdFromName())for(u=t;u<e;u++)Cp(this,u);bp(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){Ap(t)?s.l7(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=Mp(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return wp(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return s.kJ(t)?i.getValues(kp(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var i=n[e];return null==i||isNaN(i)?Np:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){s.mf(t)&&(n=e,e=t,t=[]);var i=n||this,o=kp(Ip(t),this._getStoreDimIndex,this);this._store.each(o,i?s.ak(e,i):e)},t.prototype.filterSelf=function(t,e,n){s.mf(t)&&(n=e,e=t,t=[]);var i=n||this,o=kp(Ip(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?s.ak(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=s.XP(t),o=[];return s.S6(i,(function(i){var r=e._getStoreDimIndex(i);n[r]=t[i],o.push(r)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){s.mf(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var o=n||i||this,r=kp(Ip(t),this._getStoreDimIndex,this),a=Dp(this);return a._store=this._store.map(r,o?s.ak(e,o):e),a},t.prototype.modify=function(t,e,n,i){var o=n||i||this;var r=kp(Ip(t),this._getStoreDimIndex,this);this._store.modify(r,o?s.ak(e,o):e)},t.prototype.downSample=function(t,e,n,i){var o=Dp(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},t.prototype.lttbDownSample=function(t,e){var n=Dp(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Xn(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;
1return new sp(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return wp(t,e)}),(function(t){return wp(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},Ap(t)?s.l7(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var o=i[e];return null==o&&(o=this.getVisual(e),s.kJ(o)?o=o.slice():Ap(o)&&(o=s.l7({},o)),i[e]=o),o},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ap(e)?s.l7(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){Ap(t)?s.l7(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?s.l7(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Wt(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){s.S6(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:kp(this.dimensions,this._getDimInfo,this),this.hostModel)),Tp(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];s.mf(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(s.tP(arguments)))})},t.internalField=function(){bp=function(t){var e=t._invertedIndicesMap;s.S6(e,(function(n,i){var o=t._dimInfos[i],r=o.ordinalMeta,a=t._store;if(r){n=e[i]=new Lp(r.categories.length);for(var s=0;s<n.length;s++)n[s]=Np;for(s=0;s<a.count();s++)n[a.get(o.storeDimIndex,s)]=s}}))},Mp=function(t,e,n){return et(t._getCategory(e,n),null)},wp=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=Mp(t,t._idDimIdx,e)),null==n&&(n=Pp+e),n},Ip=function(t){return s.kJ(t)||(t=null!=t?[t]:[]),t},Dp=function(e){var n=new t(e._schema?e._schema:kp(e.dimensions,e._getDimInfo,e),e.hostModel);return Tp(n,e),n},Tp=function(t,e){s.S6(Rp.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,s.S6(Op,(function(n){t[n]=s.d9(e[n])})),t._calculationInfo=s.l7({},e._calculationInfo)},Cp=function(t,e){var n=t._nameList,i=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=o&&(n[e]=a=Mp(t,o,e)),null==s&&null!=r&&(i[e]=s=Mp(t,r,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),Vp=Ep;function zp(t,e){Qr(t)||(t=ea(t)),e=e||{};var n=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],o=(0,s.kW)(),r=[],a=Zp(t,n,i,e.dimensionsCount),l=e.canOmitUnusedDimensions&&Sp(a),u=i===t.dimensionsDefine,c=u?_p(t):xp(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var d=(0,s.kW)(h),p=new $a(a),f=0;f<p.length;f++)p[f]=-1;function g(t){var e=p[t];if(e<0){var n=i[t],o=(0,s.Kn)(n)?n:{name:n},a=new fp,l=o.name;null!=l&&null!=c.get(l)&&(a.name=a.displayName=l),null!=o.type&&(a.type=o.type),null!=o.displayName&&(a.displayName=o.displayName);var u=r.length;return p[t]=u,a.storeDimIndex=t,r.push(a),a}return r[e]}if(!l)for(f=0;f<a;f++)g(f);d.each((function(t,e){var n=G(t).slice();if(1===n.length&&!(0,s.HD)(n[0])&&n[0]<0)d.set(e,!1);else{var i=d.set(e,[]);(0,s.S6)(n,(function(t,n){var o=(0,s.HD)(t)?c.get(t):t;null!=o&&o<a&&(i[n]=o,v(g(o),e,n))}
1))}}));var y=0;function v(t,e,n){null!=bo.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,o.set(e,!0))}(0,s.S6)(n,(function(t){var e,n,i,o;if((0,s.HD)(t))e=t,o={};else{o=t,e=o.name;var r=o.ordinalMeta;o.ordinalMeta=null,o=(0,s.l7)({},o),o.ordinalMeta=r,n=o.dimsDef,i=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var l=d.get(e);if(!1!==l){if(l=G(l),!l.length)for(var c=0;c<(n&&n.length||1);c++){while(y<a&&null!=g(y).coordDim)y++;y<a&&l.push(y++)}(0,s.S6)(l,(function(t,r){var a=g(t);if(u&&null!=o.type&&(a.type=o.type),v((0,s.ce)(a,o),e,r),null==a.name&&n){var l=n[r];!(0,s.Kn)(l)&&(l={name:l}),a.name=a.displayName=l.name,a.defaultTooltip=l.defaultTooltip}i&&(0,s.ce)(a.otherDims,i)}))}}));var m=e.generateCoord,x=e.generateCoordCount,_=null!=x;x=m?x||1:0;var S=m||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(l)(0,s.S6)(r,(function(t){b(t)})),r.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var M=g(w),I=M.coordDim;null==I&&(M.coordDim=Gp(S,o,_),M.coordDimIndex=0,(!m||x<=0)&&(M.isExtraCoord=!0),x--),b(M),null!=M.type||zo(t,w)!==Lo.Must&&(!M.isExtraCoord||null==M.otherDims.itemName&&null==M.otherDims.seriesName)||(M.type="ordinal")}return Bp(r),new vp({source:t,dimensions:r,fullDimensionCount:a,dimensionOmitted:l})}function Bp(t){for(var e=(0,s.kW)(),n=0;n<t.length;n++){var i=t[n],o=i.name,r=e.get(o)||0;r>0&&(i.name=o+(r-1)),r++,e.set(o,r)}}function Zp(t,e,n,i){var o=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return(0,s.S6)(e,(function(t){var e;(0,s.Kn)(t)&&(e=t.dimsDef)&&(o=Math.max(o,e.length))})),o}function Gp(t,e,n){if(n||e.hasKey(t)){var i=0;while(e.hasKey(t+i))i++;t+=i}return e.set(t,!0),t}var Wp=function(){function t(t){this.coordSysDims=[],this.axisMap=(0,s.kW)(),this.categoryAxisMap=(0,s.kW)(),this.coordSysName=t}return t}();function Fp(t){var e=t.get("coordinateSystem"),n=new Wp(e),i=Hp[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var Hp={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",pt).models[0],r=t.getReferringComponents("yAxis",pt).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",r),Up(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),Up(r)&&(i.set("y",r),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var o=t.getReferringComponents("singleAxis",pt).models[0];e.coordSysDims=["single"],n.set("single",o),Up(o)&&(i.set("single",o),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var o=t.getReferringComponents("polar",pt).models[0],r=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",a),Up(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),Up(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var o=t.ecModel,r=o.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=r.dimensions.slice();(0,s.S6)(r.parallelAxisIndex,(function(t,r){var s=o.getComponent("parallelAxis",t),l=a[r];n.set(l,s),Up(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=r))}))}};function Up(t){return"category"===t.get("type")}function Xp(t,e,n){n=n||{};var i,o,r,a=n.byIndex,l=n.stackedCoordDimension;Yp(e)?i=e:(o=e.schema,i=o.dimensions,r=e.store);var u,c,h,d,p=!(!t||!t.get("stack"));if((0,s.S6)(i,(function(t,e){(0,s.HD)(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||u||!t.ordinalMeta||(u=t),c||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(c=t))})),!c||a||u||(a=!0),c){h="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var f=c.coordDim,g=c.type,y=0;(0,s.S6)(i,(function(t){t.coordDim===f&&y++}));var v={name:h,coordDim:f,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(r&&(v.storeDimIndex=r.ensureCalculationDimension(d,g),m.storeDimIndex=r.ensureCalculationDimension(h,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:h}}function Yp(t){return!mp(t.schema)}function Jp(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function jp(t,e){return Jp(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Kp(t,e){var n,i=t.get("coordinateSystem"),o=pr.get(i);return e&&e.coordSysDims&&(n=s.UI(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var o=i.get("type");
1n.type=hp(o)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}function qp(t,e,n){var i,o;return n&&s.S6(t,(function(t,r){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=r),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(o=!0)})),o||null==i||(t[i].otherDims.itemName=0),i}function $p(t,e,n){n=n||{};var i,o=e.getSourceManager(),r=!1;t?(r=!0,i=ea(t)):(i=o.getSource(),r=i.sourceFormat===wo);var a=Fp(e),l=Kp(e,a),u=n.useEncodeDefaulter,c=s.mf(u)?u:u?s.WA(Ro,l,e):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!r},d=zp(i,h),p=qp(d.dimensions,n.createInvertedIndices,a),f=r?null:o.getSharedDataStore(d),g=Xp(e,{schema:d,store:f}),y=new Vp(d,e);y.setCalculationInfo(g);var v=null!=p&&Qp(i)?function(t,e,n,i){return i===p?n:this.defaultDimValueGetter(t,e,n,i)}:null;return y.hasItemOption=!1,y.initData(r?i:f,null,v),y}function Qp(t){if(t.sourceFormat===wo){var e=tf(t.data||[]);return!s.kJ(H(e))}}function tf(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var ef=$p,nf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t){return ef(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Xs.Z,n=gc("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),r="none"===i?"circle":i,a=.8*t.itemHeight,s=gc(r,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?o:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),r.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(Us),of=nf;function rf(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var o=_a(t,e,n[0]);return null!=o?o+"":null}if(i){for(var r=[],a=0;a<n.length;a++)r.push(_a(t,e,n[a]));return r.join(" ")}}function af(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!(0,s.kJ)(e))return e+"";for(var i=[],o=0;o<n.length;o++){var r=t.getDimensionIndex(n[o]);r>=0&&i.push(e[r])}return i.join(" ")}var sf=function(t){function e(e,n,i,o){var r=t.call(this)||this;return r.updateData(e,n,i,o),r}return(0,r.ZT)(e,t),e.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();var r=gc(t,-1,-1,2,2,null,o);r.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),r.drift=lf,this._symbolType=t,this.add(r)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ce(this.childAt(0))},e.prototype.downplay=function(){Ae(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,o){this.silent=!1;var r=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=r!==this._symbolType,u=o&&o.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(r,t,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(d):un(h,d,a,n),gn(h)}if(this._updateCommon(t,n,s,i,o),l){h=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,cn(h,d,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,o){var r,a,l,u,c,h,d,p,f,g=this.childAt(0),y=t.hostModel;if(i&&(r=i.emphasisItemStyle,a=i.blurItemStyle,l=i.selectItemStyle,u=i.focus,c=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,f=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=v.getModel("emphasis");r=m.getModel("itemStyle").getItemStyle(),l=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),u=m.get("focus"),c=m.get("blurScope"),h=m.get("disabled"),d=Sn(v),p=m.getShallow("scale"),f=v.getShallow("cursor")}var x=t.getItemVisual(e,"symbolRotate");g.attr("rotation",(x||0)*Math.PI/180||0);var _=vc(t.getItemVisual(e,"symbolOffset"),n);_&&(g.x=_[0],g.y=_[1]),f&&g.attr("cursor",f);var S=t.getItemVisual(e,"style"),b=S.fill;if(g instanceof tl.ZP){var w=g.style;g.useStyle((0,s.l7)({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},S))}else g.__isEmptyBrush?g.useStyle((0,s.l7)({},S)):g.useStyle(S),g.style.decal=null,g.setColor(b,o&&o.symbolInnerColor),g.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),I=this._z2;null!=M?null==I&&(this._z2=g.z2,g.z2+=M):null!=I&&(g.z2=I,this._z2=null);var T=o&&o.useNameLabel;function D(e){return T?t.getName(e):rf(t,e)}_n(g,d,{labelFetcher:y,labelDataIndex:e,defaultText:D,inheritColor:b,defaultOpacity:S.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=g.ensureState("emphasis");C.style=r,g.ensureState("select").style=l,g.ensureState("blur").style=a;var A=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;C.scaleX=this._sizeX*A,C.scaleY=this._sizeY*A,this.setSymbolScale(1),Ye(this,u,c,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),o=Gt(this).dataIndex,r=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&dn(a,{style:{opacity:0}
1},e,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}})}else i.removeTextContent();dn(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:r})},e.getSymbolSize=function(t,e){return yc(t.getItemVisual(e,"symbolSize"))},e}(Xs.Z);function lf(t,e){this.parent.drift(t,e)}var uf=sf;function cf(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function hf(t){return null==t||(0,s.Kn)(t)||(t={isIgnore:t}),t||{}}function df(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Sn(e),cursorStyle:e.get("cursor")}}var pf=function(){function t(t){this.group=new Xs.Z,this._SymbolCtor=t||uf}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=hf(e);var n=this.group,i=t.hostModel,o=this._data,r=this._SymbolCtor,a=e.disableAnimation,s=df(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add((function(i){var o=u(i);if(cf(t,o,i,e)){var a=new r(t,i,s,l);a.setPosition(o),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,h){var d=o.getItemGraphicEl(h),p=u(c);if(cf(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),d=new r(t,c,s,l),d.setPosition(p);else{d.updateData(t,c,s,l);var y={x:p[0],y:p[1]};a?d.attr(y):un(d,y,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=df(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=hf(n);for(var o=t.start;o<t.end;o++){var r=e.getItemLayout(o);if(cf(e,r,o,n)){var a=new this._SymbolCtor(e,o,this._seriesScope);a.traverse(i),a.setPosition(r),this.group.add(a),e.setItemGraphicEl(o,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){jl(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}(),ff=pf;function gf(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),r=yf(o,n),a=i.dim,l=o.dim,u=e.mapDimension(l),c=e.mapDimension(a),h="x"===l||"radius"===l?1:0,d=(0,s.UI)(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,f=e.getCalculationInfo("stackResultDimension");return Jp(e,d[0])&&(p=!0,d[0]=f),Jp(e,d[1])&&(p=!0,d[1]=f),{dataDimsForPoint:d,valueStart:r,valueAxisDim:l,baseAxisDim:a,stacked:!!p,valueDim:u,baseDim:c,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function yf(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:(0,s.hj)(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function vf(t,e,n,i){var o=NaN;t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart);var r=t.baseDataOffset,a=[];return a[r]=n.get(t.baseDim,i),a[1-r]=o,e.dataToPoint(a)}var mf="undefined"!==typeof Float32Array,xf=mf?Float32Array:Array;function _f(t){return(0,s.kJ)(t)?mf?new Float32Array(t):t:new xf(t)}function Sf(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function bf(t,e,n,i,o,r,a,s){for(var l=Sf(t,e),u=[],c=[],h=[],d=[],p=[],f=[],g=[],y=gf(o,e,a),v=t.getLayout("points")||[],m=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],S=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=2*_.idx,w=2*_.idx1;var M=v[b],I=v[b+1],T=m[w],D=m[w+1];(isNaN(M)||isNaN(I))&&(M=T,I=D),u.push(M,I),c.push(T,D),h.push(n[b],n[b+1]),d.push(i[w],i[w+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var C=_.idx,A=y.dataDimsForPoint,k=o.dataToPoint([e.get(A[0],C),e.get(A[1],C)]);w=2*C,u.push(k[0],k[1]),c.push(m[w],m[w+1]);var L=vf(y,o,e,C);h.push(L[0],L[1]),d.push(i[w],i[w+1]),g.push(e.getRawIndex(C));break;case"-":S=!1}S&&(p.push(_),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var P=u.length,N=_f(P),R=_f(P),O=_f(P),E=_f(P),V=[];for(x=0;x<f.length;x++){var z=f[x],B=2*x,Z=2*z;N[B]=u[Z],N[B+1]=u[Z+1],R[B]=c[Z],R[B+1]=c[Z+1],O[B]=h[Z],O[B+1]=h[Z+1],E[B]=d[Z],E[B+1]=d[Z+1],V[x]=p[z]}return{current:N,next:R,stackedOnCurrent:O,stackedOnNext:E,status:V}}var wf=Math.min,Mf=Math.max;function If(t,e){return isNaN(t)||isNaN(e)}function Tf(t,e,n,i,o,r,a,s,l){for(var u,c,h,d,p,f,g=n,y=0;y<i;y++){var v=e[2*g],m=e[2*g+1];if(g>=o||g<0)break;if(If(v,m)){if(l){g+=r;continue}break}if(g===n)t[r>0?"moveTo":"lineTo"](v,m),h=v,d=m;else{var x=v-u,_=m-c;if(x*x+_*_<.5){g+=r;continue}if(a>0){var S=g+r,b=e[2*S],w=e[2*S+1];while(b===v&&w===m&&y<i)y++,S+=r,g+=r,b=e[2*S],w=e[2*S+1],v=e[2*g],m=e[2*g+1],x=v-u,_=m-c;var M=y+1;if(l)while(If(b,w)&&M<i)M++,S+=r,b=e[2*S],w=e[2*S+1];var I=.5,T=0,D=0,C=void 0,A=void 0;if(M>=i||If(b,w))p=v,f=m;else{T=b-u,D=w-c;var k=v-u,L=b-v,P=m-c,N=w-m,R=void 0,O=void 0;if("x"===s){R=Math.abs(k),O=Math.abs(L);var E=T>0?1:-1;p=v-E*R*a,f=m,C=v+E*O*a,A=m}else if("y"===s){R=Math.abs(P),O=Math.abs(N);var V=D>0?1:-1;p=v,f=m-V*R*a,C=v,A=m+V*O*a}else R=Math.sqrt(k*k+P*P),O=Math.sqrt(L*L+N*N),I=O/(O+R),p=v-T*a*(1-I),f=m-D*a*(1-I),C=v+T*a*I,A=m+D*a*I,C=wf(C,Mf(b,v)),A=wf(A,Mf(w,m)),C=Mf(C,wf(b,v)),A=Mf(A,wf(w,m)),T=C-v,D=A-m,p=v-T*R/O,f=m-D*R/O,p=wf(p,Mf(u,v)),f=wf(f,Mf(c,m)),p=Mf(p,wf(u,v)),f=Mf(f,wf(c,m)),T=v-p,D=m-f,C=v+T*O/R,A=m+D*O/R}t.bezierCurveTo(h,d,p,f,v,m),h=C,d=A}else t.lineTo(v,m)}u=v,c=m,g+=r}return y}var Df=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),Cf=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return(0,r.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Df},e.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;o>0;o--)if(!If(n[2*o-2],n[2*o-1]))break;for(;i<o;i++)if(!If(n[2*i],n[2*i+1]))break}while(i<o)i+=Tf(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path,r=o.data,a=cd.Z.CMD,s="x"===e,l=[],u=0;u<r.length;){var c=r[u++],h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,y=void 0,v=void 0;switch(c){case a.M:n=r[u++],i=r[u++];break;case a.L:if(h=r[u++],d=r[u++],v=s?(t-n)/(h-n):(t-i)/(d-i),v<=1&&v>=0){var m=s?(d-i)*v+i:(h-n)*v+n;return s?[t,m]:[m,t]}
1n=h,i=d;break;case a.C:h=r[u++],d=r[u++],p=r[u++],f=r[u++],g=r[u++],y=r[u++];var x=s?(0,dd.kD)(n,h,p,g,t,l):(0,dd.kD)(i,d,f,y,t,l);if(x>0)for(var _=0;_<x;_++){var S=l[_];if(S<=1&&S>=0){m=s?(0,dd.af)(i,d,f,y,S):(0,dd.af)(n,h,p,g,S);return s?[t,m]:[m,t]}}n=g,i=y;break}}},e}(Ht.ZP),Af=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e}(Df),kf=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new Af},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,r=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;r>0;r--)if(!If(n[2*r-2],n[2*r-1]))break;for(;o<r;o++)if(!If(n[2*o],n[2*o+1]))break}while(o<r){var s=Tf(t,n,o,r,r,1,e.smooth,a,e.connectNulls);Tf(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}},e}(Ht.ZP);function Lf(t,e,n,i,o){var r=t.getArea(),a=r.x,l=r.y,u=r.width,c=r.height,h=n.get(["lineStyle","width"])||2;a-=h/2,l-=h/2,u+=h,c+=h,a=Math.floor(a),u=Math.round(u);var d=new sl.Z({shape:{x:a,y:l,width:u,height:c}});if(e){var p=t.getBaseAxis(),f=p.isHorizontal(),g=p.inverse;f?(g&&(d.shape.x+=u),d.shape.width=0):(g||(d.shape.y+=c),d.shape.height=0);var y=(0,s.mf)(o)?function(t){o(t,d)}:null;cn(d,{shape:{width:u,height:c,x:a,y:l}},n,null,i,y)}return d}function Pf(t,e,n){var i=t.getArea(),o=y(i.r0,1),r=y(i.r,1),a=new il.C({shape:{cx:y(t.cx,1),cy:y(t.cy,1),r0:o,r:r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=o,cn(a,{shape:{endAngle:i.endAngle,r:r}},n)}return a}function Nf(t,e,n,i,o){return t?"polar"===t.type?Pf(t,e,n):"cartesian2d"===t.type?Lf(t,e,n,i,o):null:null}function Rf(t,e){return t.type===e}function Of(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function Ef(t){for(var e=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[e,n],[i,o]]}function Vf(t,e){var n=Ef(t),i=n[0],o=n[1],r=Ef(e),a=r[0],s=r[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function zf(t){return s.hj(t)?t:t?.5:0}function Bf(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=_f(2*i),r=0;r<i;r++){var a=vf(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}function Zf(t,e,n,i){var o=e.getBaseAxis(),r="x"===o.dim||"radius"===o.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[r]=c[r],l[1-r]=u[1-r],a.push(l[0],l[1]);break;case"middle":var d=(u[r]+c[r])/2,p=[];l[r]=p[r]=d,l[1-r]=u[1-r],p[1-r]=c[1-r],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[r]=u[r],l[1-r]=c[1-r],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function Gf(t,e){var n,i,o=[],r=t.length;function a(t,e,n){var i=t.coord,o=(n-i)/(e.coord-i),r=(0,Ft.t7)(o,[t.color,e.color]);return{coord:n,color:r}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?o.push(a(i,l,e)):n&&o.push(a(n,l,0),a(n,l,e));break}n&&(o.push(a(n,l,0)),n=null),o.push(l),i=l}}return o}function Wf(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var o,r,a=i.length-1;a>=0;a--){var l=t.getDimensionInfo(i[a].dimension);if(o=l&&l.coordDim,"x"===o||"y"===o){r=i[a];break}}if(r){var u=e.getAxis(o),c=s.UI(r.stops,(function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}})),h=c.length,d=r.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),d.reverse());var p=Gf(c,"x"===o?n.getWidth():n.getHeight()),f=p.length;if(!f&&h)return c[0].coord<0?d[1]?d[1]:c[h-1].color:d[0]?d[0]:c[0].color;var g=10,y=p[0].coord-g,v=p[f-1].coord+g,m=v-y;if(m<.001)return"transparent";s.S6(p,(function(t){t.offset=(t.coord-y)/m})),p.push({offset:f?p[f-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:d[0]||"transparent"});var x=new dl.Z(0,0,0,0,p,!0);return x[o]=y,x[o+"2"]=v,x}}}function Ff(t,e,n){var i=t.get("showAllSymbol"),o="auto"===i;if(!i||o){var r=n.getAxesByScale("ordinal")[0];if(r&&(!o||!Hf(r,e))){var a=e.mapDimension(r.dim),l={};return s.S6(r.getViewLabels(),(function(t){var e=r.scale.getRawOrdinalNumber(t.tickValue);l[e]=1})),function(t){return!l.hasOwnProperty(e.get(a,t))}}}}function Hf(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*uf.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function Uf(t,e){return isNaN(t)||isNaN(e)}function Xf(t){for(var e=t.length/2;e>0;e--)if(!Uf(t[2*e-2],t[2*e-1]))break;return e-1}
1function Yf(t,e){return[t[2*e],t[2*e+1]]}function Jf(t,e,n){for(var i,o,r=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<r;u++)if(o=t[2*u+a],!isNaN(o)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}else i=o;return{range:[s,l],t:(e-i)/(o-i)}}function jf(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<$t.length;e++)if(t.get([$t[e],"endLabel","show"]))return!0;return!1}function Kf(t,e,n,i){if(Rf(e,"cartesian2d")){var o=i.getModel("endLabel"),r=o.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=jf(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,r,o,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Lf(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return Pf(e,n,i)}function qf(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),o=n.inverse,r=i?o?"right":"left":"center",a=i?"middle":o?"top":"bottom";return{normal:{align:t.get("align")||r,verticalAlign:t.get("verticalAlign")||a}}}var $f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.init=function(){var t=new Xs.Z,e=new ff;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,o=t.coordinateSystem,r=this.group,a=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=a.getLayout("points")||[],h="polar"===o.type,d=this._coordSys,p=this._symbolDraw,f=this._polyline,g=this._polygon,y=this._lineGroup,v=!e.ssr&&t.isAnimationEnabled(),m=!u.isEmpty(),x=u.get("origin"),_=gf(o,a,x),S=m&&Bf(o,a,_),b=t.get("showSymbol"),w=t.get("connectNulls"),M=b&&!h&&Ff(t,a,o),I=this._data;I&&I.eachItemGraphicEl((function(t,e){t.__temp&&(r.remove(t),I.setItemGraphicEl(e,null))})),b||p.remove(),r.add(y);var T,D=!h&&t.get("step");o&&o.getArea&&t.get("clip",!0)&&(T=o.getArea(),null!=T.width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var C=Wf(a,o,n)||a.getVisual("style")[a.getVisual("drawType")];if(f&&d.type===o.type&&D===this._step){m&&!g?g=this._newPolygon(c,S):g&&!m&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,Qi(C));var A=y.getClipPath();if(A){var k=Kf(this,o,!1,t);cn(A,{shape:k.shape},t)}else y.setClipPath(Kf(this,o,!0,t));b&&p.updateData(a,{isIgnore:M,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),Of(this._stackedOnPoints,S)&&Of(this._points,c)||(v?this._doUpdateAnimation(a,S,o,n,D,x,w):(D&&(c=Zf(c,o,D,w),S&&(S=Zf(S,o,D,w))),f.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:S})))}else b&&p.updateData(a,{isIgnore:M,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,o,T),D&&(c=Zf(c,o,D,w),S&&(S=Zf(S,o,D,w))),f=this._newPolyline(c),m?g=this._newPolygon(c,S):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,Qi(C)),y.setClipPath(Kf(this,o,!0,t));var L=t.getModel("emphasis"),P=L.get("focus"),N=L.get("blurScope"),R=L.get("disabled");if(f.useStyle(s.ce(l.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),qe(f,t,"lineStyle"),f.style.lineWidth>
vendor: 10,902 bytes, line 1
10&&"bolder"===t.get(["emphasis","lineStyle","width"])){var O=f.getState("emphasis").style;O.lineWidth=+f.style.lineWidth+1}Gt(f).seriesIndex=t.seriesIndex,Ye(f,P,N,R);var E=zf(t.get("smooth")),V=t.get("smoothMonotone");if(f.setShape({smooth:E,smoothMonotone:V,connectNulls:w}),g){var z=a.getCalculationInfo("stackedOnSeries"),B=0;g.useStyle(s.ce(u.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),z&&(B=zf(z.get("smooth"))),g.setShape({smooth:E,stackedOnSmooth:B,smoothMonotone:V,connectNulls:w}),qe(g,t,"areaStyle"),Gt(g).seriesIndex=t.seriesIndex,Ye(g,P,N,R)}var Z=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=Z)})),this._polyline.onHoverStateChange=Z,this._data=a,this._coordSys=o,this._stackedOnPoints=S,this._points=c,this._step=D,this._valueOrigin=x,t.get("triggerLineEvent")&&(this.packEventData(t,f),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,e){Gt(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=lt(o,i);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&r>=0){var a=o.getLayout("points"),s=o.getItemGraphicEl(r);if(!s){var l=a[2*r],u=a[2*r+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;s=new uf(o,r),s.x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,o.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else ou.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var o=t.getData(),r=lt(o,i);if(this._changePolyState("normal"),null!=r&&r>=0){var a=o.getItemGraphicEl(r);a&&(a.__temp?(o.setItemGraphicEl(r,null),this.group.remove(a)):a.downplay())}else ou.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;xe(this._polyline,t),e&&xe(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Cf({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new kf({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,o,r=e.getBaseAxis(),a=r.inverse;"cartesian2d"===e.type?(i=r.isHorizontal(),o=!1):"polar"===e.type&&(i="angle"===r.dim,o=!0);var l=t.hostModel,u=l.get("animationDuration");s.mf(u)&&(u=u(null));var c=l.get("animationDelay")||0,h=s.mf(c)?c(null):c;t.eachItemGraphicEl((function(t,r){var l=t;if(l){var d=[t.x,t.y],p=void 0,f=void 0,g=void 0;if(n)if(o){var y=n,v=e.pointToCoord(d);i?(p=y.startAngle,f=y.endAngle,g=-v[1]/180*Math.PI):(p=y.r0,f=y.r,g=v[0])}else{var m=n;i?(p=m.x,f=m.x+m.width,g=t.x):(p=m.y+m.height,f=m.y,g=t.y)}var x=f===p?0:(g-p)/(f-p);a&&(x=1-x);var _=s.mf(c)?c(r):u*x+h,S=l.getSymbolPath(),b=S.getTextContent();l.attr({scaleX:0,scaleY:0}),l.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),S.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(jf(t)){var o=t.getData(),r=this._polyline,a=o.getLayout("points");if(!a)return r.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Bt.ZP({z2:200}),s.ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0);var l=Xf(a);l>=0&&(_n(r,Sn(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?af(o,n):rf(o,t)},enableTextSetter:!0},qf(i,e)),r.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=r.get("precision"),p=r.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?p:0)*(y?-1:1),_=(g?0:-p)*(y?-1:1),S=g?"x":"y",b=Jf(u,m,S),w=b.range,M=w[1]-w[0],I=void 0;if(M>=1){if(M>1&&!h){var T=Yf(u,w[0]);s.attr({x:T[0]+x,y:T[1]+_}),o&&(I=c.getRawValue(w[0]))}else{T=l.getPointOn(m,S);T&&s.attr({x:T[0]+x,y:T[1]+_});var D=c.getRawValue(w[0]),C=c.getRawValue(w[1]);o&&(I=_t(n,d,D,C,b.t))}i.lastFrameIndex=w[0]}else{var A=1===t||i.lastFrameIndex>0?w[0]:0;T=Yf(u,A);o&&(I=c.getRawValue(A)),s.attr({x:T[0]+x,y:T[1]+_})}if(o){var k=Ln(s);"function"===typeof k.setLabelText&&k.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,o,r,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=bf(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,r),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(o&&(h=Zf(c.current,n,o,a),d=Zf(c.stackedOnCurrent,n,o,a),p=Zf(c.next,n,o,a),f=Zf(c.stackedOnNext,n,o,a)),Vf(h,p)>3e3||l&&Vf(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),un(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),un(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=c.status,m=0;m<v.length;m++){var x=v[m].cmd;if("="===x){var _=t.getItemGraphicEl(v[m].idx1);_&&y.push({el:_,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<y.length;e++){var n=y[e].el,i=2*y[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(ou),Qf=$f;function tg(t,e){return{seriesType:t,plan:js(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,o=t.pipelineContext,r=e||o.large;if(i){var a=(0,s.UI)(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),l=a.length,u=n.getCalculationInfo("stackResultDimension");Jp(n,a[0])&&(a[0]=u),Jp(n,a[1])&&(a[1]=u);var c=n.getStore(),h=n.getDimensionIndex(a[0]),d=n.getDimensionIndex(a[1]);return l&&{progress:function(t,e){for(var n=t.end-t.start,o=r&&_f(n*l),a=[],s=[],u=t.start,p=0;u<t.end;u++){var f=void 0;if(1===l){var g=c.get(h,u);f=i.dataToPoint(g,null,s)}else a[0]=c.get(h,u),a[1]=c.get(d,u),f=i.dataToPoint(a,null,s);r?(o[p++]=f[0],o[p++]=f[1]):e.setItemLayout(u,f.slice())}r&&e.setLayout("points",o)}}}}}}var eg={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},ng=function(t){return Math.round(t.length/2)};function ig(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),o=t.get("sampling"),r=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===r.type&&o){var l=r.getBaseAxis(),u=r.getOtherAxis(l),c=l.getExtent(),h=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(h||1),p=Math.round(a/d);if(isFinite(p)&&p>1){"lttb"===o&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/p));var f=void 0;(0,s.HD)(o)?f=eg[o]:(0,s.mf)(o)&&(f=o),f&&t.setData(i.downSample(i.mapDimension(u.dim),1/p,f,ng))}}}}}function og(t){t.registerChartView(Qf),t.registerSeriesModel(of),t.registerLayout(tg("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ig("line"))}var rg="__ec_stack_";function ag(t){return t.get("stack")||rg+t.seriesIndex}function sg(t){return t.dim+t.index}function lg(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var o=n.getBandWidth(),r=0;r<t.count;r++)e.push((0,s.ce)({bandWidth:o,axisKey:i,stackId:rg+r},t));var a=dg(e),l=[];for(r=0;r<t.count;r++){var u=a[i][rg+r];u.offsetCenter=u.offset+u.width/2,l.push(u)}return l}}function ug(t,e){var n=[];return e.eachSeriesByType(t,(function(t){yg(t)&&n.push(t)})),n}function cg(t){var e={};(0,s.S6)(t,(function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var o=t.getData(),r=i.dim+"_"+i.index,a=o.getDimensionIndex(o.mapDimension(i.dim)),s=o.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(a,l);e[r]?e[r].push(c):e[r]=[c]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];if(o){o.sort((function(t,e){return t-e}));for(var r=null,a=1;a<o.length;++a){var l=o[a]-o[a-1];l>0&&(r=null===r?l:Math.min(r,l))}n[i]=r}}return n}function hg(t){var e=cg(t),n=[];return(0,s.S6)(t,(function(t){var i,o=t.coordinateSystem,r=o.getBaseAxis(),a=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var s=r.dim+"_"+r.index,l=e[s],u=Math.abs(a[1]-a[0]),c=r.scale.getExtent(),h=Math.abs(c[1]-c[0]);i=l?u/h*l:u}else{var d=t.getData();i=Math.abs(a[1]-a[0])/d.count()}var p=g(t.get("barWidth"),i),f=g(t.get("barMaxWidth"),i),y=g(t.get("barMinWidth")||(vg(t)?.5:1),i),v=t.get("barGap"),m=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:y,barGap:v,barCategoryGap:m,axisKey:sg(r),stackId:ag(t)})})),dg(n)}function dg(t){var e={};(0,s.S6)(t,(function(t,n){var i=t.axisKey,o=t.bandWidth,r=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=r.stacks;e[i]=r;var s=t.stackId;a[s]||r.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(r.gap=h);var d=t.barCategoryGap;null!=d&&(r.categoryGap=d)}));var n={};return(0,s.S6)(e,(function(t,e){n[e]={};var i=t.stacks,o=t.bandWidth,r=t.categoryGap;if(null==r){var a=(0,s.XP)(i).length;r=Math.max(35-4*a,15)+"%"}var l=g(r,o),u=g(t.gap,1),c=t.remainedWidth,h=t.autoWidthCount,d=(c-l)/(h+(h-1)*u);d=Math.max(d,0),(0,s.S6)(i,(function(t){var e=t.maxWidth,n=t.minWidth;
1if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,c-=i+u*i,h--}else{var i=d;e&&e<i&&(i=Math.min(e,c)),n&&n>i&&(i=n),i!==d&&(t.width=i,c-=i+u*i,h--)}})),d=(c-l)/(h+(h-1)*u),d=Math.max(d,0);var p,f=0;(0,s.S6)(i,(function(t,e){t.width||(t.width=d),p=t,f+=t.width*(1+u)})),p&&(f-=p.width*u);var y=-f/2;(0,s.S6)(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:y,width:t.width},y+=t.width*(1+u)}))})),n}function pg(t,e,n){if(t&&e){var i=t[sg(e)];return null!=i&&null!=n?i[ag(n)]:i}}function fg(t,e){var n=ug(t,e),i=hg(n);(0,s.S6)(n,(function(t){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),r=ag(t),a=i[sg(o)][r],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function gg(t){return{seriesType:t,plan:js(),reset:function(t){if(yg(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=n.getOtherAxis(i),r=e.getDimensionIndex(e.mapDimension(o.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(o.dim),u=e.getCalculationInfo("stackResultDimension"),c=Jp(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=o.isHorizontal(),d=mg(i,o),p=vg(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){var i,o=t.count,l=p&&_f(3*o),u=p&&s&&_f(3*o),m=p&&_f(o),x=n.master.getRect(),_=h?x.width:x.height,S=e.getStore(),b=0;while(null!=(i=t.next())){var w=S.get(c?g:r,i),M=S.get(a,i),I=d,T=void 0;c&&(T=+w-S.get(r,i));var D=void 0,C=void 0,A=void 0,k=void 0;if(h){var L=n.dataToPoint([w,M]);if(c){var P=n.dataToPoint([T,M]);I=P[0]}D=I,C=L[1]+v,A=L[0]-I,k=y,Math.abs(A)<f&&(A=(A<0?-1:1)*f)}else{L=n.dataToPoint([M,w]);if(c){P=n.dataToPoint([M,T]);I=P[1]}D=L[0]+v,C=I,A=y,k=L[1]-I,Math.abs(k)<f&&(k=(k<=0?-1:1)*f)}p?(l[b]=D,l[b+1]=C,l[b+2]=h?A:k,u&&(u[b]=h?x.x:D,u[b+1]=h?C:x.y,u[b+2]=_),m[i]=i):e.setItemLayout(i,{x:D,y:C,width:A,height:k}),b+=3}p&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function yg(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function vg(t){return t.pipelineContext&&t.pipelineContext.large}function mg(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}var xg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t,e){return ef(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),r=i.dataToPoint(o);if(n)(0,s.S6)(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=o[n],s="x1"===e[n]||"y1"===e[n];if(s&&(a+=1),i.length<2)return;if(2===i.length)return void(r[n]=t.toGlobalCoord(t.getExtent()[s?1:0]));for(var l=void 0,u=void 0,c=1,h=0;h<i.length;h++){var d=i[h].coord,p=h===i.length-1?i[h-1].tickValue+c:i[h].tickValue;if(p===a){u=d;break}if(p<a)l=d;else if(null!=l&&p>a){u=(d+l)/2;break}1===h&&(c=p-i[0].tickValue)}null==u&&(l?l&&(u=i[i.length-1].coord):u=i[0].coord),r[n]=t.toGlobalCoord(u)}}));else{var a=this.getData(),l=a.getLayout("offset"),u=a.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;r[c]+=l+u/2}return r}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Us);Us.registerClass(xg);var _g=xg,Sg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(){return ef(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=qn(_g.defaultOption,{clip:!0,roundCap:!1,showBackgroun
1d:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(_g),bg=Sg,wg=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Mg=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new wg},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),r=Math.max(e.r,0),a=.5*(r-o),s=o+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);d?(t.moveTo(p*o+n,f*o+i),t.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!c)):t.moveTo(p*r+n,f*r+i),t.arc(n,i,r,l,u,!c),t.arc(g*s+n,y*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==o&&t.arc(n,i,o,u,l,c)},e}(Ht.ZP),Ig=Mg;function Tg(t,e){e=e||{};var n=e.isRoundCap;return function(e,i,o){var r=i.position;if(!r||r instanceof Array)return(0,rc.wI)(e,i,o);var a=t(r),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,c=l.cy,h=l.r,d=l.r0,p=(h+d)/2,f=l.startAngle,g=l.endAngle,y=(f+g)/2,v=n?Math.abs(h-d)/2:0,m=Math.cos,x=Math.sin,_=u+h*m(f),S=c+h*x(f),b="left",w="top";switch(a){case"startArc":_=u+(d-s)*m(y),S=c+(d-s)*x(y),b="center",w="top";break;case"insideStartArc":_=u+(d+s)*m(y),S=c+(d+s)*x(y),b="center",w="bottom";break;case"startAngle":_=u+p*m(f)+Cg(f,s+v,!1),S=c+p*x(f)+Ag(f,s+v,!1),b="right",w="middle";break;case"insideStartAngle":_=u+p*m(f)+Cg(f,-s+v,!1),S=c+p*x(f)+Ag(f,-s+v,!1),b="left",w="middle";break;case"middle":_=u+p*m(y),S=c+p*x(y),b="center",w="middle";break;case"endArc":_=u+(h+s)*m(y),S=c+(h+s)*x(y),b="center",w="bottom";break;case"insideEndArc":_=u+(h-s)*m(y),S=c+(h-s)*x(y),b="center",w="top";break;case"endAngle":_=u+p*m(g)+Cg(g,s+v,!0),S=c+p*x(g)+Ag(g,s+v,!0),b="left",w="middle";break;case"insideEndAngle":_=u+p*m(g)+Cg(g,-s+v,!0),S=c+p*x(g)+Ag(g,-s+v,!0),b="right",w="middle";break;default:return(0,rc.wI)(e,i,o)}return e=e||{},e.x=_,e.y=S,e.align=b,e.verticalAlign=w,e}}function Dg(t,e,n,i){if((0,s.hj)(i))t.setTextConfig({rotation:i});else if((0,s.kJ)(e))t.setTextConfig({rotation:0});else{var o,r=t.shape,a=r.clockwise?r.startAngle:r.endAngle,l=r.clockwise?r.endAngle:r.startAngle,u=(a+l)/2,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=u;break;case"startAngle":case"insideStartAngle":o=a;break;case"endAngle":case"insideEndAngle":o=l;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-o;"middle"===c&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}function Cg(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Ag(t,e,n){return e*Math.cos(t)*(n?1:-1)}function kg(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;(0,s.kJ)(i)||(i=[i,i,i,i]);var o=Math.abs(e.r||0-e.r0||0);return{cornerRadius:(0,s.UI)(i,(function(t){return(0,rc.GM)(t,o)}))}}var Lg=Math.max,Pg=Math.min;function Ng(t,e){var n=t.getArea&&t.getArea();if(Rf(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var o=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=o,n.width+=2*o):(n.y-=o,n.height+=2*o)}}return n}var Rg=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");("cartesian2d"===o||"polar"===o)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){jl(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var o,r=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?o=u.isHorizontal():"polar"===l.type&&(o="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=Vg(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,p=Ng(l,a);r.removeClipPath();
vendor: 4,252 bytes, line 1
1var f=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),v=y.get("borderRadius")||0,m=[],x=this._backgroundEls,_=i&&i.isInitSort,S=i&&"changeAxisOrder"===i.type;function b(t){var e=Fg[l.type](a,t),n=ty(l,o,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=Fg[l.type](a,e,n);if(g&&b(e),a.hasValue(e)&&Wg[l.type](i)){var s=!1;d&&(s=Og[l.type](p,i));var y=Eg[l.type](t,a,e,i,o,c,u.model,!1,f);h&&(y.forceLabelAnimation=!0),Xg(y,a,e,n,i,t,o,"polar"===l.type),_?y.attr({shape:i}):h?zg(h,c,y,i,e,o,!1,!1):cn(y,{shape:i},t,e),a.setItemGraphicEl(e,y),r.add(y),y.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),w=Fg[l.type](a,e,i);if(g){var M=void 0;0===x.length?M=b(n):(M=x[n],M.useStyle(y.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",v):M.setShape("cornerRadius",v),m[e]=M);var I=Fg[l.type](a,e),T=Qg(o,I,l);un(M,{shape:T},c,e)}var D=s.getItemGraphicEl(n);if(a.hasValue(e)&&Wg[l.type](w)){var C=!1;if(d&&(C=Og[l.type](p,w),C&&r.remove(D)),D?gn(D):D=Eg[l.type](t,a,e,w,o,c,u.model,!!D,f),h&&(D.forceLabelAnimation=!0),S){var A=D.getTextContent();if(A){var k=Ln(A);null!=k.prevValue&&(k.prevValue=k.value)}}else Xg(D,a,e,i,w,t,o,"polar"===l.type);_?D.attr({shape:w}):h?zg(h,c,D,w,e,o,!0,S):un(D,{shape:w},t,e,null),a.setItemGraphicEl(e,D),D.ignore=C,r.add(D)}else r.remove(D)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&fn(n,t,e)})).execute();var w=this._backgroundGroup||(this._backgroundGroup=new Xs.Z);w.removeAll();for(var M=0;M<m.length;++M)w.add(m[M]);r.add(w),this._backgroundEls=m,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),Kg(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),Kg(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&Nf(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var r=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(o.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,r,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var o=n(e);o=null==o?NaN:o,i.push({dataIndex:e,mappedValue:o,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:(0,s.UI)(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,o=t.mapDimension(n.dim),r=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(o,i.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>r)return!0;r=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),o=Math.max(0,i[0]),r=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=r;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var o=this._dataSort(t,n,e);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,o=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackgroun
1d(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){fn(e,t,Gt(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(ou),Og={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var o=t.x+t.width,r=t.y+t.height,a=Lg(e.x,t.x),s=Pg(e.x+e.width,o),l=Lg(e.y,t.y),u=Pg(e.y+e.height,r),c=s<a,h=u<l;return e.x=c&&a>o?s:a,e.y=h&&l>r?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var o=Pg(e.r,t.r),r=Lg(e.r0,t.r0);e.r=o,e.r0=r;var a=o-r<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},Eg={cartesian2d:function(t,e,n,i,o,r,a,l,u){var c=new sl.Z({shape:(0,s.l7)({},i),z2:1});if(c.__dataIndex=n,c.name="item",r){var h=c.shape,d=o?"height":"width";h[d]=0}return c},polar:function(t,e,n,i,o,r,a,s,l){var u=!o&&l?Ig:il.C,c=new u({shape:i,z2:1});c.name="item";var h=Ug(o);if(c.calculateTextPosition=Tg(h,{isRoundCap:u===Ig}),r){var d=c.shape,p=o?"r":"endAngle",f={};d[p]=o?i.r0:i.startAngle,f[p]=i[p],(s?un:cn)(c,{shape:f},r)}return c}};function Vg(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function zg(t,e,n,i,o,r,a,s){var l,u;r?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?un:cn)(n,{shape:l},e,o,null);var c=e?t.baseAxis.model:null;(a?un:cn)(n,{shape:u},c,o)}function Bg(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var Zg=["x","y","width","height"],Gg=["cx","cy","r","startAngle","endAngle"],Wg={cartesian2d:function(t){return!Bg(t,Zg)},polar:function(t){return!Bg(t,Gg)}},Fg={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),o=n?Yg(n,i):0,r=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+r*o/2,y:i.y+a*o/2,width:i.width-r*o,height:i.height-a*o}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Hg(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function Ug(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function Xg(t,e,n,i,o,r,a,l){var u=e.getItemVisual(n,"style");if(l){if(!r.get("roundCap")){var c=t.shape,h=kg(i.getModel("itemStyle"),c,!0);(0,s.l7)(c,h),t.setShape(c)}}else{var d=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",d)}t.useStyle(u);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var f=l?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?o.height>=0?"bottom":"top":o.width>=0?"right":"left",g=Sn(i);_n(t,g,{labelFetcher:r,labelDataIndex:n,defaultText:rf(r.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:f});var y=t.getTextContent();if(l&&y){var v=i.get(["label","position"]);t.textConfig.inside="middle"===v||null,Dg(t,"outside"===v?f:v,Ug(a),i.get(["label","rotate"]))}Pn(y,g,r.getRawValue(n),(function(t){return af(e,t)}));var m=i.getModel(["emphasis"]);Ye(t,m.get("focus"),m.get("blurScope"),m.get("disabled")),qe(t,i),Hg(o)&&(t.style.fill="none",t.style.stroke="none",(0,s.S6)(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function Yg(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,o=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,o,r)}var Jg=function(){function t(){}return t}(),jg=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new Jg},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[o]=n[l+2],r[i]=n[l+i],r[o]=n[l+o],t.rect(r[0],r[1],a[0],a[1])},e}(Ht.ZP);function Kg(t,e,n,i){var o=t.getData(),r=o.getLayout("valueAxisHorizontal")?1:0,a=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=t.getModel("backgroundStyle"),u=o.getLayout("largeBackgroun
1dPoints");if(u){var c=new jg({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=r,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new jg({shape:{points:o.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=r,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(o.getVisual("style")),Gt(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",qg),h.on("mousemove",qg)),n&&n.push(h)}var qg=lu((function(t){var e=this,n=$g(e,t.offsetX,t.offsetY);Gt(e).dataIndex=n>=0?n:null}),30,!1);function $g(t,e,n){for(var i=t.baseDimIdx,o=1-i,r=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=r.length/3;c<h;c++){var d=3*c;if(l[i]=u,l[o]=r[d+2],s[i]=r[d+i],s[o]=r[d+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function Qg(t,e,n){if(Rf(n,"cartesian2d")){var i=e,o=n.getArea();return{x:t?i.x:o.x,y:t?o.y:i.y,width:t?i.width:o.width,height:t?o.height:i.height}}o=n.getArea();var r=e;return{cx:o.cx,cy:o.cy,r0:t?o.r0:r.r0,r:t?o.r:r.r,startAngle:t?r.startAngle:0,endAngle:t?r.endAngle:2*Math.PI}}function ty(t,e,n){var i="polar"===t.type?il.C:sl.Z;return new i({shape:Qg(e,n,t),silent:!0,z2:0})}var ey=Rg;function ny(t){t.registerChartView(ey),t.registerSeriesModel(bg),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,s.WA(fg,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gg("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ig("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var iy=2*Math.PI,oy=Math.PI/180;function ry(t,e){return so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function ay(t,e){var n=ry(t,e),i=t.get("center"),o=t.get("radius");s.kJ(o)||(o=[0,o]);var r,a,l=g(n.width,e.getWidth()),u=g(n.height,e.getHeight()),c=Math.min(l,u),h=g(o[0],c/2),d=g(o[1],c/2),p=t.coordinateSystem;if(p){var f=p.dataToPoint(i);r=f[0]||0,a=f[1]||0}else s.kJ(i)||(i=[i,i]),r=g(i[0],l)+n.x,a=g(i[1],u)+n.y;return{cx:r,cy:a,r0:h,r:d}}function sy(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),o=ry(t,n),r=ay(t,n),a=r.cx,s=r.cy,l=r.r,u=r.r0,c=-t.get("startAngle")*oy,h=t.get("minA
1ngle")*oy,d=0;e.each(i,(function(t){!isNaN(t)&&d++}));var p=e.getSum(i),g=Math.PI/(p||d)*2,y=t.get("clockwise"),v=t.get("roseType"),m=t.get("stillShowZeroSum"),x=e.getDataExtent(i);x[0]=0;var _=iy,S=0,b=c,w=y?1:-1;if(e.setLayout({viewRect:o,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:a,cy:s,r0:u,r:v?NaN:l});else{i="area"!==v?0===p&&m?g:t*g:iy/d,i<h?(i=h,_-=h):S+=t;var o=b+w*i;e.setItemLayout(n,{angle:i,startAngle:b,endAngle:o,clockwise:y,cx:a,cy:s,r0:u,r:v?f(t,x,[u,l]):l}),b=o}})),_<iy&&d)if(_<=.001){var M=iy/d;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=M,i.startAngle=c+w*n*M,i.endAngle=c+w*(n+1)*M}}))}else g=_/S,b=c,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),o=i.angle===h?h:t*g;i.startAngle=b,i.endAngle=b+w*o,b+=w*o}}))}))}function ly(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),o=0;o<n.length;o++)if(!n[o].isSelected(e))return!1;return!0}))}}}}var uy=Math.PI/180;function cy(t,e,n,i,o,r,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}Zd(t,l,l+a)&&f(t)}function p(t){for(var r=t.rB,a=r*r,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=c*c,d=Math.sqrt((1-Math.abs(u*u/a))*h),p=e+(d+l.len2)*o,f=p-l.label.x,g=l.targetTextWidth-f*o;dy(l,g,!0),l.label.x=p}}function f(t){for(var r={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:r,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*o,d=i+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(r),p(a)}}function hy(t,e,n,i,o,r,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;py(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(h=Math.max(h,p.x),u.push(t[d])))}for(d=0;d<t.length;d++){var f=t[d];if(!py(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;p=f.label;var g=f.linePoints,y=void 0;y="edge"===f.labelAlignTo?p.x<e?g[2][0]-f.labelDistance-a-f.edgeDistance:a+o-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<e?c-a-f.bleedMargin:a+o-h-f.bleedMargin:p.x<e?p.x-a-f.bleedMargin:a+o-p.x-f.bleedMargin,f.targetTextWidth=y,dy(f,y)}}cy(u,e,n,i,1,o,r,a,s,h),cy(l,e,n,i,-1,o,r,a,s,c);for(d=0;d<t.length;d++){f=t[d];if(!py(f)&&f.linePoints){p=f.label,g=f.linePoints;var v="edge"===f.labelAlignTo,m=p.style.padding,x=m?m[1]+m[3]:0,_=p.style.backgroundColor?0:x,S=f.rect.width+_,b=g[1][0]-g[2][0];v?p.x<e?g[2][0]=a+f.edgeDistance+S+f.labelDistance:g[2][0]=a+o-f.edgeDistance-S-f.labelDistance:(p.x<e?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+b),g[1][1]=g[2][1]=p.y}}}function dy(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,o=i.style,r=t.rect,a=o.backgroundColor,s=o.padding,l=s?s[1]+s[3]:0,u=o.overflow,c=r.width+(a?0:l);if(e<c||n){var h=r.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var p=e-l,f=e<c?p:n?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();r.width=g.width;var y=(i.style.margin||0)+2.1;r.height=g.height+y,r.y-=(r.height-h)/2}}}function py(t){return"center"===t.position}function fy(t){var e,n,i=t.getData(),o=[],r=!1,a=(t.get("minShowLabelAngle")||0)*uy,l=i.getLayout("viewRect"),u=i.getLayout("r"),c=l.width,h=l.x,d=l.y,p=l.height;function f(t){t.ignore=!0}function y(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}i.each((function(t){var l=i.getItemGraphicEl(t),d=l.shape,p=l.getTextContent(),v=l.getTextGuideLine(),m=i.getItemModel(t),x=m.getModel("label"),_=x.get("position")||m.get(["emp
1hasis","label","position"]),S=x.get("distanceToLabelLine"),b=x.get("alignTo"),w=g(x.get("edgeDistance"),c),M=x.get("bleedMargin"),I=m.getModel("labelLine"),T=I.get("length");T=g(T,c);var D=I.get("length2");if(D=g(D,c),Math.abs(d.endAngle-d.startAngle)<a)return(0,s.S6)(p.states,f),p.ignore=!0,void(v&&((0,s.S6)(v.states,f),v.ignore=!0));if(y(p)){var C,A,k,L,P=(d.startAngle+d.endAngle)/2,N=Math.cos(P),R=Math.sin(P);e=d.cx,n=d.cy;var O="inside"===_||"inner"===_;if("center"===_)C=d.cx,A=d.cy,L="center";else{var E=(O?(d.r+d.r0)/2*N:d.r*N)+e,V=(O?(d.r+d.r0)/2*R:d.r*R)+n;if(C=E+3*N,A=V+3*R,!O){var z=E+N*(T+u-d.r),B=V+R*(T+u-d.r),Z=z+(N<0?-1:1)*D,G=B;C="edge"===b?N<0?h+w:h+c-w:Z+(N<0?-S:S),A=G,k=[[E,V],[z,B],[Z,G]]}L=O?"center":"edge"===b?N>0?"right":"left":N>0?"left":"right"}var W=Math.PI,F=0,H=x.get("rotate");if((0,s.hj)(H))F=H*(W/180);else if("center"===_)F=0;else if("radial"===H||!0===H){var U=N<0?-P+W:-P;F=U}else if("tangential"===H&&"outside"!==_&&"outer"!==_){var X=Math.atan2(N,R);X<0&&(X=2*W+X);var Y=R>0;Y&&(X=W+X),F=X-W}if(r=!!F,p.x=C,p.y=A,p.rotation=F,p.setStyle({verticalAlign:"middle"}),O){p.setStyle({align:L});var J=p.states.select;J&&(J.x+=p.x,J.y+=p.y)}else{var j=p.getBoundingRect().clone();j.applyTransform(p.getComputedTransform());var K=(p.style.margin||0)+2.1;j.y-=K/2,j.height+=K,o.push({label:p,labelLine:v,position:_,len:T,len2:D,minTurnAngle:I.get("minTurnAngle"),maxSurfaceAngle:I.get("maxSurfaceAngle"),surfaceNormal:new gl.Z(N,R),linePoints:k,textAlign:L,labelDistance:S,labelAlignTo:b,edgeDistance:w,bleedMargin:M,rect:j,unconstrainedWidth:j.width,labelStyleWidth:p.style.width})}l.setTextConfig({inside:O})}})),!r&&t.get("avoidLabelOverlap")&&hy(o,e,n,u,c,p,h,d);for(var v=0;v<o.length;v++){var m=o[v],x=m.label,_=m.labelLine,S=isNaN(x.x)||isNaN(x.y);if(x){x.setStyle({align:m.textAlign}),S&&((0,s.S6)(x.states,f),x.ignore=!0);var b=x.states.select;b&&(b.x+=x.x,b.y+=x.y)}if(_){var w=m.linePoints;S||!w?((0,s.S6)(_.states,f),_.ignore=!0):(Ld(w,m.minTurnAngle),Pd(w,m.surfaceNormal,m.maxSurfaceAngle),_.setShape({points:w}),x.__hostTarget.textGuideLineConfig={anchor:new gl.Z(w[0][0],w[0][1])})}}}var gy=function(t){function e(e,n,i){var o=t.call(this)||this;o.z2=2;var r=new Bt.ZP;return o.setTextContent(r),o.updateData(e,n,i,!0),o}return(0,r.ZT)(e,t),e.prototype.updateData=function(t,e,n,i){var o=this,r=t.hostModel,a=t.getItemModel(e),l=a.getModel("emphasis"),u=t.getItemLayout(e),c=(0,s.l7)(kg(a.getModel("itemStyle"),u,!0),u);if(isNaN(c.startAngle))o.setShape(c);else{if(i){o.setShape(c);var h=r.getShallow("animationType");r.ecModel.ssr?(cn(o,{scaleX:0,scaleY:0},r,{dataIndex:e,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):"scale"===h?(o.shape.r=u.r0,cn(o,{shape:{r:u.r}},r,e)):null!=n?(o.setShape({startAngle:n,endAngle:n}),cn(o,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},r,e)):(o.shape.endAngle=u.startAngle,un(o,{shape:{endAngle:u.endAngle}},r,e))}else gn(o),un(o,{shape:c},r,e);o.useStyle(t.getItemVisual(e,"style")),qe(o,a);var d=(u.startAngle+u.endAngle)/2,p=r.get("selectedOffset"),f=Math.cos(d)*p,g=Math.sin(d)*p,y=a.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(r,t,e),o.ensureState("emphasis").shape=(0,s.l7)({r:u.r+(l.get("scale")&&l.get("scaleSize")||0)},kg(l.getModel("itemStyle"),u)),(0,s.l7)(o.ensureState("select"),{x:f,y:g,shape:kg(a.getModel(["select","itemStyle"]),u)}),(0,s.l7)(o.ensureState("blur"),{shape:kg(a.getModel(["blur","itemStyle"]),u)});var v=o.getTextGuideLine(),m=o.getTextContent();v&&(0,s.l7)(v.ensureState("select"),{x:f,y:g}),(0,s.l7)(m.ensureState("select"),{x:f,y:g}),Ye(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,o=e.getItemModel(n),r=o.getModel("labelLine"),a=e.getItemVisual(n,"style"),l=a&&a.fill,u=a&&a.opacity;_n(i,Sn(o),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:l,defaultOpacity:u,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=t.get(["label","position"]);if("outside"!==h&&"outer"!==h)i.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new al.Z,this.setTextGuideLine(d)),Od(this,Ed(o),{stroke:l,opacity:(0,s.R1)(r.get(["lineStyle","opacity"]),u,1)})}},e}(il.C),yy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n,i){var o,r=t.getData(),a=this._data,s=this.group;if(!a&&r.count()>0){for(var l=r.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<r.count();++u)l=r.getItemLayout(u);l&&(o=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===r.count()&&t.get("showEmptyCircle")){var c=new il.C({shape:ay(t,n)});
1c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}r.diff(a).add((function(t){var e=new gy(r,t,o);r.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(r,t,o),n.off("click"),s.add(n),r.setItemGraphicEl(t,n)})).remove((function(e){var n=a.getItemGraphicEl(e);fn(n,t,e)})).execute(),fy(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=r)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,r=t[1]-i.cy,a=Math.sqrt(o*o+r*r);return a<=i.r&&a>=i.r0}},e.type="pie",e}(ou),vy=yy;function my(t,e,n){e=(0,s.kJ)(e)&&{coordDimensions:e}||(0,s.l7)({encodeDefine:t.getEncode()},e);var i=t.getSource(),o=zp(i,e).dimensions,r=new Vp(o,t);return r.initData(i,n),r}var xy=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),_y=xy,Sy=ut(),by=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new _y(s.ak(this.getData,this),s.ak(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return my(this,{coordDimensions:["value"],encodeDefaulter:s.WA(Oo,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=Sy(n),o=i.seats;if(!o){var r=[];n.each(n.mapDimension("value"),(function(t){r.push(t)})),o=i.seats=S(r,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=o[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){W(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.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"},e}(Us),wy=by;function My(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!((0,s.hj)(i)&&!isNaN(i)&&i<0)}))}}}function Iy(t){t.registerChartView(vy),t.registerSeriesModel(wy),tc("pie",t.registerAction),t.registerLayout((0,s.WA)(sy,"pie")),t.registerProcessor(ly("pie")),t.registerProcessor(My("pie"))}var Ty=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t,e){return ef(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}},e}(Us),Dy=Ty,Cy=4,Ay=function(){function t(){}return t}(),ky=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new Ay},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,o=e.size,r=this.symbolProxy,a=r.shape,s=t.getContext?t.getContext():t,l=s&&o[0]<Cy,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(a.x=c-o[0]/2,a.y=h-o[1]/2,a.width=o[0],a.height=o[
11],r.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,o=this._ctx,r=this.softClipShape;if(o){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(r&&!r.contain(a,s)||o.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,o=n.size,r=Math.max(o[0],4),a=Math.max(o[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-r/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+r&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var o=this.hoverDataIdx=this.findDataIndex(t,e);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,o=i[0],r=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new $n.Z(a-o/2,s-r/2,l-a+o,u-s+r)}return t},e}(Ht.ZP),Ly=function(){function t(){this.group=new Xs.Z}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],o=e.getLayout("points"),r=i&&i.shape.points;if(r&&r.length<2e4){var a=r.length,s=new Float32Array(a+o.length);s.set(r),s.set(o,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:o}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new ky({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=n.clipShape||null,t.symbolProxy=gc(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var r=t.shape.size[0]<Cy;t.useStyle(i.getModel("itemStyle").getItemStyle(r?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=Gt(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>
1=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Py=Ly,Ny=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=tg("").reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext,o=i.large;return n&&o===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=o?new Py:new ff,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(ou),Ry=Ny,Oy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(mo),Ey=Oy,Vy=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),zy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",pt).models[0]},e.type="cartesian2dAxis",e}(mo);s.jB(zy,Vy);var By={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)"]}}},Zy=s.TS({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},By),Gy=s.TS({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}}},By),Wy=s.TS({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Gy),Fy=s.ce({logBase:10},Gy),Hy={category:Zy,value:Gy,time:Wy,log:Fy},Uy=0,Xy=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Uy}return t.createByAxisModel=function(e){var n=e.option,i=n.data,o=i&&(0,s.UI)(i,Yy);return new t({categories:o,needCollect:!o,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!(0,s.HD)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=(0,s.kW)(this.categories))},t}();function Yy(t){return(0,s.Kn)(t)&&null!=t.value?t.value:t+""}var Jy=Xy,jy={value:1,category:1,time:1,log:1};
1function Ky(t,e,n,i){(0,s.S6)(jy,(function(o,a){var l=(0,s.TS)((0,s.TS)({},Hy[a],!0),i,!0),u=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return(0,r.ZT)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=co(this),i=n?po(t):{},o=e.getTheme();(0,s.TS)(t,o.get(a+"Axis")),(0,s.TS)(t,this.getDefaultOption()),t.type=qy(t),n&&ho(t,i,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=Jy.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+a,n.defaultOption=l,n}(n);t.registerComponentModel(u)})),t.registerSubTypeDefaulter(e+"Axis",qy)}function qy(t){return t.type||(t.data?"category":"value")}var $y=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Rt($y);var Qy=$y;function tv(t){return"interval"===t.type||"log"===t.type}function ev(t,e,n,i){var o={},r=t[1]-t[0],a=o.interval=k(r/e,!0);null!=n&&a<n&&(a=o.interval=n),null!=i&&a>i&&(a=o.interval=i);var s=o.intervalPrecision=iv(a),l=o.niceTickExtent=[y(Math.ceil(t[0]/a)*a,s),y(Math.floor(t[1]/a)*a,s)];return rv(l,t),o}function nv(t){var e=Math.pow(10,A(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,y(n*e)}function iv(t){return m(t)+2}function ov(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function rv(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),ov(t,0,e),ov(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function av(t,e){return t>=e[0]&&t<=e[1]}function sv(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function lv(t,e){return t*(e[1]-e[0])+e[0]}var uv=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Jy({})),(0,s.kJ)(i)&&(i=new Jy({categories:(0,s.UI)(i,(function(t){return(0,s.Kn)(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return(0,r.ZT)(e,t),e.prototype.parse=function(t){return null==t?NaN:(0,s.HD)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),av(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),sv(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(lv(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];n[o]=s,i[s]=o}for(var l=0;o<r;++o){while(null!=i[l])l++;n.push(l),i[l]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Qy);Qy.registerClass(uv);var cv=uv,hv=y,dv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return(0,r.ZT)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return av(t,this._extent)},e.prototype.normalize=function(t){return sv(t,this._extent)},e.prototype.scale=function(t){return lv(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=iv(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(!e)return r;var a=1e4;n[0]<i[0]&&(t?r.push({value:hv(i[0]-e,o)}):r.push({value:n[0]}));var s=i[0];while(s<=i[1]){if(r.push({value:s}),s=hv(s+e,o),s===r[r.length-1].value)break;
1if(r.length>a)return[]}var l=r.length?r[r.length-1].value:i[1];return n[1]>l&&(t?r.push({value:hv(l+e,o)}):r.push({value:n[1]})),r},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<e.length;o++){var r=e[o],a=e[o-1],s=0,l=[],u=r.value-a.value,c=u/t;while(s<t-1){var h=hv(a.value+(s+1)*c);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=m(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=hv(t.value,n,!0);return Hi(i)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var r=ev(i,t,e,n);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(e[0]=hv(Math.floor(e[0]/o)*o)),t.fixMax||(e[1]=hv(Math.ceil(e[1]/o)*o))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Qy);Qy.registerClass(dv);var pv=dv,fv=function(t,e,n,i){while(n<i){var o=n+i>>>1;t[o][1]<e?n=o+1:i=o}return n},gv=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return(0,r.ZT)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Ti(t.value,xi[Ii(wi(this._minLevelUnit))]||xi.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Di(t,e,n,o,i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),o=Mv(this._minLevelUnit,this._approxInterval,i,e);return n=n.concat(o),n.push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=gi,e[1]+=gi),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-gi}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var r=yv.length,a=Math.min(fv(yv,this._approxInterval,0,r),r-1);this._interval=yv[a][1],this._minLevelUnit=yv[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return(0,s.hj)(t)?t:+D(t)},e.prototype.contain=function(t){return av(this.parse(t),this._extent)},e.prototype.normalize=function(t){return sv(this.parse(t),this._extent)},e.prototype.scale=function(t){return lv(t,this._extent)},e.type="time",e}(pv),yv=[["second",di],["minute",pi],["hour",fi],["quarter-day",6*fi],["half-day",12*fi],["day",1.2*gi],["half-week",3.5*gi],["week",7*gi],["month",31*gi],["quarter",95*gi],["half-year",yi/2],["year",yi]];function vv(t,e,n,i){var o=D(e),r=D(n),a=function(t){return Ai(o,t,i)===Ai(r,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")},p=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return p()}}function mv(t,e){return t/=gi,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function xv(t){var e=30*gi;return t/=e,t>6?6:t>3?3:t>2?2:1}function _v(t){return t/=fi,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Sv(t,e){return t/=e?pi:di,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function bv(t){return k(t,!0)}function wv(t,e,n){var i=new Date(t);switch(wi(e)){case"year":case"month":i[zi(n)](0);case"day":i[Bi(n)](1);case"hour":i[Zi(n)](0);case"minute":i[Gi(n)](0);case"second":i[Wi(n)](0),i[Fi(n)](0)}return i.getTime()}function Mv(t,e,n,i){var o=1e4,r=Si,a=0;function l(t,e,n,o,r,a,s){var l=new Date(e),u=e,c=l[o]();while(u<n&&u<=i[1])s.push({value:u}),c+=t,l[r](c),u=l.getTime();
1s.push({value:u,notAdd:!0})}function u(t,o,r){var a=[],s=!o.length;if(!vv(wi(t),i[0],i[1],n)){s&&(o=[{value:wv(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<o.length-1;u++){var c=o[u].value,h=o[u+1].value;if(c!==h){var d=void 0,p=void 0,f=void 0,g=!1;switch(t){case"year":d=Math.max(1,Math.round(e/gi/365)),p=ki(n),f=Vi(n);break;case"half-year":case"quarter":case"month":d=xv(e),p=Li(n),f=zi(n);break;case"week":case"half-week":case"day":d=mv(e,31),p=Pi(n),f=Bi(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=_v(e),p=Ni(n),f=Zi(n);break;case"minute":d=Sv(e,!0),p=Ri(n),f=Gi(n);break;case"second":d=Sv(e,!1),p=Oi(n),f=Wi(n);break;case"millisecond":d=bv(e),p=Ei(n),f=Fi(n);break}l(d,c,h,p,f,g,a),"year"===t&&r.length>1&&0===u&&r.unshift({value:r[0].value-d})}}for(u=0;u<a.length;u++)r.push(a[u]);return a}}for(var c=[],h=[],d=0,p=0,f=0;f<r.length&&a++<o;++f){var g=wi(r[f]);if(Mi(r[f])){u(r[f],c[c.length-1]||[],h);var y=r[f+1]?wi(r[f+1]):null;if(g!==y){if(h.length){p=d,h.sort((function(t,e){return t.value-e.value}));for(var v=[],m=0;m<h.length;++m){var x=h[m].value;0!==m&&h[m-1].value===x||(v.push(h[m]),x>=i[0]&&x<=i[1]&&d++)}var _=(i[1]-i[0])/e;if(d>1.5*_&&p>_/1.5)break;if(c.push(v),d>_||t===r[f])break}h=[]}}}var S=(0,s.hX)((0,s.UI)(c,(function(t){return(0,s.hX)(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),b=[],w=S.length-1;for(f=0;f<S.length;++f)for(var M=S[f],I=0;I<M.length;++I)b.push({value:M[I].value,level:w-f});b.sort((function(t,e){return t.value-e.value}));var T=[];for(f=0;f<b.length;++f)0!==f&&b[f].value===b[f-1].value||T.push(b[f]);return T}Qy.registerClass(gv);var Iv=gv,Tv=Qy.prototype,Dv=pv.prototype,Cv=y,Av=Math.floor,kv=Math.ceil,Lv=Math.pow,Pv=Math.log,Nv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new pv,e._interval=0,e}return(0,r.ZT)(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent(),o=Dv.getTicks.call(this,t);return s.UI(o,(function(t){var e=t.value,o=y(Lv(this.base,e));return o=e===n[0]&&this._fixMin?Ov(o,i[0]):o,o=e===n[1]&&this._fixMax?Ov(o,i[1]):o,{value:o}}),this)},e.prototype.setExtent=function(t,e){var n=Pv(this.base);t=Pv(Math.max(0,t))/n,e=Pv(Math.max(0,e))/n,Dv.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=Tv.getExtent.call(this);e[0]=Lv(t,e[0]),e[1]=Lv(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=Ov(e[0],i[0])),this._fixMax&&(e[1]=Ov(e[1],i[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Pv(t[0])/Pv(e),t[1]=Pv(t[1])/Pv(e),Tv.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=C(n),o=t/n*i;o<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var r=[y(kv(e[0]/i)*i),y(Av(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.calcNiceExtent=function(t){Dv.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Pv(t)/Pv(this.base),av(t,this._extent)},e.prototype.normalize=function(t){return t=Pv(t)/Pv(this.base),sv(t,this._extent)},e.prototype.scale=function(t){return t=lv(t,this._extent),Lv(this.base,t)},e.type="log",e}(Qy),Rv=Nv.prototype;function Ov(t,e){return Cv(t,m(e))}Rv.getMinorTicks=Dv.getMinorTicks,Rv.getLabel=Dv.getLabel,Qy.registerClass(Nv);var Ev=Nv,Vv=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var o=this._modelMinRaw=e.get("min",!0);(0,s.mf)(o)?this._modelMinNum=Gv(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Gv(t,o));var r=this._modelMaxRaw=e.get("max",!0);if((0,s.mf)(r)?this._modelMaxNum=Gv(t,r({min:n[0],max:n[1]})):"dataMax"!==r&&(this._modelMaxNum=Gv(t,r)),i)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),l=(0,s.kJ)(a)?a:[a||0,a||0];"boolean"===typeof l[0]||"boolean"===typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[(0,rc.GM)(l[0],1),(0,rc.GM)(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,r=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=a,c=null!=l;
1null==a&&(a=t?i?0:NaN:e-o[0]*r),null==l&&(l=t?i?i-1:NaN:n+o[1]*r),(null==a||!isFinite(a))&&(a=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=(0,s.Bu)(a)||(0,s.Bu)(l)||t&&!i;this._needCrossZero&&(a>0&&l>0&&!u&&(a=0),a<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(a=d,u=!0),null!=p&&(l=p,c=!0),{min:a,max:l,minFixed:u,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[Bv[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=zv[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),zv={min:"_determinedMin",max:"_determinedMax"},Bv={min:"_dataMin",max:"_dataMax"};function Zv(t,e,n){var i=t.rawExtentInfo;return i||(i=new Vv(t,e,n),t.rawExtentInfo=i,i)}function Gv(t,e){return null==e?null:(0,s.Bu)(e)?NaN:t.parse(e)}function Wv(t,e){var n=t.type,i=Zv(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var o=i.min,r=i.max,a=e.ecModel;if(a&&"time"===n){var l=ug("bar",a),u=!1;if(s.S6(l,(function(t){u=u||t.getBaseAxis()===e.axis})),u){var c=hg(l),h=Fv(o,r,e,c);o=h.min,r=h.max}}return{extent:[o,r],fixMin:i.minFixed,fixMax:i.maxFixed}}function Fv(t,e,n,i){var o=n.axis.getExtent(),r=o[1]-o[0],a=pg(i,n.axis);if(void 0===a)return{min:t,max:e};var l=1/0;s.S6(a,(function(t){l=Math.min(t.offset,l)}));var u=-1/0;s.S6(a,(function(t){u=Math.max(t.offset+t.width,u)})),l=Math.abs(l),u=Math.abs(u);var c=l+u,h=e-t,d=1-(l+u)/r,p=h/d-h;return e+=p*(u/c),t-=p*(l/c),{min:t,max:e}}function Hv(t,e){var n=e,i=Wv(t,n),o=i.extent,r=n.get("splitNumber");t instanceof Ev&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(o[0],o[1]),t.calcNiceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function Uv(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new cv({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Iv({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Qy.getClass(e)||pv)}}function Xv(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function Yv(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):s.HD(e)?function(e){return function(n){var i=t.scale.getLabel(n),o=e.replace("{value}",null!=i?i:"");return o}}(e):s.mf(e)?function(e){return function(i,o){return null!=n&&(o=i.value-n),e(Jv(t,i),o,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Jv(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function jv(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,r=n.getExtent();n instanceof cv?o=n.count():(i=n.getTicks(),o=i.length);var a,s=t.getLabelModel(),l=Yv(t),u=1;o>40&&(u=Math.ceil(o/40));for(var c=0;c<o;c+=u){var h=i?i[c]:{value:r[0]+c},d=l(h,c),p=s.getTextRect(d),f=Kv(p,s.get("rotate")||0);a?a.union(f):a=f}return a}}function Kv(t,e){var n=e*Math.PI/180,i=t.width,o=t.height,r=i*Math.abs(Math.cos(n))+Math.abs(o*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(o*Math.cos(n)),s=new $n.Z(t.x,t.y,r,a);return s}function qv(t){var e=t.get("interval");return null==e?"auto":e}function $v(t){return"category"===t.type&&0===qv(t.getLabelModel())}function Qv(t,e){var n={};return s.S6(t.mapDimensionsAll(e),(function(e){n[jp(t,e)]=!0})),s.XP(n)}function tm(t,e,n){e&&s.S6(Qv(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])}))}var em=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return s.UI(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),s.hX(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),nm=em,im=["x","y"];function om(t){return"interval"===t.type||"time"===t.type}var rm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=im,e}return(0,r.ZT)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(om(t)&&om(e)){var n=t.getExtent(),i=e.getExtent(),o=this.dataToPoint([n[0],i[0]]),r=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(r[0]-o[0])/a,u=(r[1]-o[1])/s,c=o[0]-n[0]*l,h=o[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=(0,qs.U_)([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),o=this.getArea(),r=new $n.Z(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(r)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return(0,$s.Ne)(n,t,this._transform);var r=this.getAxis("x"),a=this.getAxis("y");return n[0]=r.toGlobalCoord(r.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(o,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(o[0],o[1]),a),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return(0,$s.Ne)(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=o.coordToData(o.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),o=Math.max(t[0],t[1])-n,r=Math.max(e[0],e[1])-i;return new $n.Z(n,i,o,r)},e}(nm),am=rm,sm=ut();function lm(t){return"category"===t.type?cm(t):pm(t)}
1function um(t,e){return"category"===t.type?dm(t,e):{ticks:s.UI(t.scale.getTicks(),(function(t){return t.value}))}}function cm(t){var e=t.getLabelModel(),n=hm(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function hm(t,e){var n,i,o=fm(t,"labels"),r=qv(e),a=gm(o,r);return a||(s.mf(r)?n=Sm(t,r):(i="auto"===r?vm(t):r,n=_m(t,i)),ym(o,r,{labels:n,labelCategoryInterval:i}))}function dm(t,e){var n,i,o=fm(t,"ticks"),r=qv(e),a=gm(o,r);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),s.mf(r))n=Sm(t,r,!0);else if("auto"===r){var l=hm(t,t.getLabelModel());i=l.labelCategoryInterval,n=s.UI(l.labels,(function(t){return t.tickValue}))}else i=r,n=_m(t,i,!0);return ym(o,r,{ticks:n,tickCategoryInterval:i})}function pm(t){var e=t.scale.getTicks(),n=Yv(t);return{labels:s.UI(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function fm(t,e){return sm(t)[e]||(sm(t)[e]=[])}function gm(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function ym(t,e,n){return t.push({key:e,value:n}),n}function vm(t){var e=sm(t).autoInterval;return null!=e?e:sm(t).autoInterval=t.calculateCategoryInterval()}function mm(t){var e=xm(t),n=Yv(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,o=t.scale,r=o.getExtent(),a=o.count();if(r[1]-r[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=r[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,p=0;l<=r[1];l+=s){var f=0,g=0,y=rc.lP(n({value:l}),e.font,"center","top");f=1.3*y.width,g=1.3*y.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var v=d/c,m=p/h;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(v,m))),_=sm(t.model),S=t.getExtent(),b=_.lastAutoInterval,w=_.lastTickCount;return null!=b&&null!=w&&Math.abs(b-x)<=1&&Math.abs(w-a)<=1&&b>x&&_.axisExtent0===S[0]&&_.axisExtent1===S[1]?x=b:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=S[0],_.axisExtent1=S[1]),x}function xm(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function _m(t,e,n){var i=Yv(t),o=t.scale,r=o.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=r[0],c=o.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=$v(t),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&u!==r[0]&&g(r[0]);for(var f=u;f<=r[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}return p&&f-l!==r[1]&&g(r[1]),s}function Sm(t,e,n){var i=t.scale,o=Yv(t),r=[];return s.S6(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&r.push(n?s:{formattedLabel:o(t),rawLabel:a,tickValue:s})})),r}var bm=[0,1],wm=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return _(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),Mm(n,i.count())),f(t,bm,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),Mm(n,i.count()));var o=f(t,n,bm,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=um(this,e),i=n.ticks,o=(0,s.UI)(i,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),r=e.get("alignWithLabel");return Im(this,o,r,t.clamp),o},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=(0,s.UI)(n,(function(t){return(0,s.UI)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return i},t.prototype.getViewLabels=function(){return lm(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return mm(this)},t}();function Mm(t,e){var n=t[1]-t[0],i=e,o=n/i/2;t[0]+=o,t[1]-=o}function Im(t,e,n,i){var o=e.length;if(t.onBand&&!n&&o){var r,a,l=t.getExtent();
1if(1===o)e[0].coord=l[0],r=e[1]={coord:l[1]};else{var u=e[o-1].tickValue-e[0].tickValue,c=(e[o-1].coord-e[0].coord)/u;(0,s.S6)(e,(function(t){t.coord-=c/2}));var h=t.scale.getExtent();a=1+h[1]-e[o-1].tickValue,r={coord:e[o-1].coord+c*a},e.push(r)}var d=l[0]>l[1];p(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]}),p(l[1],r.coord)&&(i?r.coord=l[1]:e.pop()),i&&p(r.coord,l[1])&&e.push({coord:l[1]})}function p(t,e){return t=y(t),e=y(e),d?t>e:t<e}}var Tm=wm,Dm=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=o||"value",a.position=r||"bottom",a}return(0,r.ZT)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Tm),Cm=Dm;function Am(t,e,n){n=n||{};var i=t.coordinateSystem,o=e.axis,r={},a=o.getAxesOnZeroOf()[0],l=o.position,u=a?"onZero":l,c=o.dim,h=i.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,g="x"===c?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(a){var y=a.toGlobalCoord(a.dataToCoord(0));g[p.onZero]=Math.max(Math.min(y,g[1]),g[0])}r.position=["y"===c?g[p[u]]:d[0],"x"===c?g[p[u]]:d[3]],r.rotation=Math.PI/2*("x"===c?0:1);var v={top:-1,bottom:1,left:-1,right:1};r.labelDirection=r.tickDirection=r.nameDirection=v[l],r.labelOffset=a?g[p[l]]-g[p.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),s.Jv(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var m=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===u?-m:m,r.z2=1,r}function km(t){return"cartesian2d"===t.get("coordinateSystem")}function Lm(t){var e={xAxisModel:null,yAxisModel:null};return s.S6(e,(function(n,i){var o=i.replace(/Model$/,""),r=t.getReferringComponents(o,pt).models[0];e[i]=r})),e}var Pm=Math.log;function Nm(t,e,n){var i=pv.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,s=i.getInterval.call(n),l=Wv(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var d=Pm(t.base);u=[Pm(u[0])/d,Pm(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var p=i.getExtent.call(t);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var f=i.getInterval.call(t),g=u[0],v=u[1];if(c&&h)f=(v-g)/a;else if(c){v=u[0]+f*a;while(v<u[1]&&isFinite(v)&&isFinite(u[1]))f=nv(f),v=u[0]+f*a}else if(h){g=u[1]-f*a;while(g>u[0]&&isFinite(g)&&isFinite(u[0]))f=nv(f),g=u[1]-f*a}else{var m=t.getTicks().length-1;m>a&&(f=nv(f));var x=f*a;v=Math.ceil(u[1]/f)*f,g=y(v-x),g<0&&u[0]>=0?(g=0,v=y(x)):v>0&&u[1]<=0&&(v=0,g=-y(x))}var _=(o[0].value-r[0].value)/s,S=(o[a].value-r[a].value)/s;i.setExtent.call(t,g+f*_,v+f*S),i.setInterval.call(t,f),(_||S)&&i.setNiceExtent.call(t,g+f,v-f)}var Rm=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=im,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=(0,s.XP)(t),i=n.length;if(i){for(var o=[],r=i-1;r>=0;r--){var a=+n[r],l=t[a],u=l.model,c=l.scale;tv(c)&&u.get("alignTicks")&&null==u.get("interval")?o.push(l):(Hv(c,u),tv(c)&&(e=l))}o.length&&(e||(e=o.pop(),Hv(e.scale,e.model)),(0,s.S6)(o,(function(t){Nm(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var o={};(0,s.S6)(n.x,(function(t){Em(n,"y",t,o)})),(0,s.S6)(n.y,(function(t){Em(n,"x",t,o)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),r=so(i,{width:e.getWidth(),height:e.getHeight()});this._rect=r;var a=this._axesList;function l(){(0,s.S6)(a,(function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),zm(t,e?r.x:r.y)}))}l(),o&&((0,s.S6)(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=jv(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i)}}})),l()),(0,s.S6)(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}(0,s.Kn)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===e)return o[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",pt).models[0],r=t.yAxisModel||i&&i.getReferringComponents("yAxis",pt).models[0],a=t.gridModel,l=this._coordsList;if(i)e=i.coordinateSystem,(0,s.cq)(l,e)<0&&(e=null);else if(o&&r)e=this.getCartesian(o.componentIndex,r.componentIndex);else if(o)n=this.getAxis("x",o.componentIndex);else if(r)n=this.getAxis("y",r.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,o=this,r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y)return this._axesMap={},void(this._axesList=[]);
1function u(e){return function(n,i){if(Om(n,t)){var s=n.get("position");"x"===e?"top"!==s&&"bottom"!==s&&(s=r.bottom?"top":"bottom"):"left"!==s&&"right"!==s&&(s=r.left?"right":"left"),r[s]=!0;var u=new Cm(e,Uv(n),[0,0],n.get("type"),s),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=o,u.index=i,o._axesList.push(u),a[e][i]=u,l[e]++}}}this._axesMap=a,(0,s.S6)(a.x,(function(e,n){(0,s.S6)(a.y,(function(o,r){var a="x"+n+"y"+r,s=new am(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(o)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){(0,s.S6)(Qv(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}(0,s.S6)(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(km(t)){var i=Lm(t),o=i.xAxisModel,r=i.yAxisModel;if(!Om(o,e)||!Om(r,e))return;var a=this.getCartesian(o.componentIndex,r.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return(0,s.S6)(this.getCartesians(),(function(i){var o=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),r=i.getOtherAxis(o);(0,s.cq)(e,o)<0&&e.push(o),(0,s.cq)(n,r)<0&&n.push(r)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(o,r){var a=new t(o,e,n);a.name="grid_"+r,a.resize(o,n,!0),o.coordinateSystem=a,i.push(a)})),e.eachSeries((function(t){if(km(t)){var e=Lm(t),n=e.xAxisModel,i=e.yAxisModel,o=n.getCoordSysModel();0;var r=o.coordinateSystem;t.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=im,t}();function Om(t,e){return t.getCoordSysModel()===e}function Em(t,e,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Vm(r[l])&&(o=r[l]);else for(var u in r)if(r.hasOwnProperty(u)&&Vm(r[u])&&!i[c(r[u])]){o=r[u];break}o&&(i[c(o)]=!0)}function c(t){return t.dim+"_"+t.index}}function Vm(t){return t&&"category"!==t.type&&"time"!==t.type&&Xv(t)}function zm(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}var Bm=Rm,Zm=Math.PI,Gm=function(){function t(t,e){this.group=new Xs.Z,this.opt=e,this.axisModel=t,(0,s.ce)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Xs.Z({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Wm[t]},t.prototype.add=function(t){Wm[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,o,r=M(e-t);return I(r)?(o=n>0?"top":"bottom",i="center"):I(r-Zm)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=r>0&&r<Zm?n>0?"right":"left":n>0?"left":"right"),{rotation:r,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Wm={axisLine:function(t,e,n,i){var o=e.get(["axisLine","show"]);if("auto"===o&&t.handleAutoShown&&(o=t.handleAutoShown("axisLine")),o){var r=e.axis.getExtent(),a=i.transform,l=[r[0],0],u=[r[1],0],c=l[0]>u[0];a&&((0,$s.Ne)(l,l,a),(0,$s.Ne)(u,u,a));var h=(0,s.l7)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new ll.Z({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Ll(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var p=e.get(["axisLine","symbol"]);if(null!=p){var f=e.get(["axisLine","symbolSize"]);(0,s.HD)(p)&&(p=[p,p]),((0,s.HD)(f)||(0,s.hj)(f))&&(f=[f,f]);var g=vc(e.get(["axisLine","symbolOffset"])||0,f),y=f[0],v=f[1];(0,s.S6)([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((l[0]-u[0])*(l[0]-u[0])+(l[1]-u[1])*(l[1]-u[1]))}],(function(e,i){if("none"!==p[i]&&null!=p[i]){var o=gc(p[i],-y/2,-v/2,y,v,h.stroke,!0),r=e.r+e.offset,a=c?u:l;o.attr({rotation:e.rotate,x:a[0]+r*Math.cos(t.rotation),y:a[1]-r*Math.sin(t.rotation),silent:!0,z2:11}),n.add(o)}}))}}},axisTickLabel:function(t,e,n,i){var o=jm(n,i,e,t),r=qm(n,i,e,t);if(Hm(e,r,o),Km(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=Vd((0,s.UI)(r,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Gd(a)}},axisName:function(t,e,n,i){var o=(0,s.Jv)(t.axisName,e.get("name"));if(o){var r,a,l=e.get("nameLocation"),u=t.nameDirection,c=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,d=e.axis.getExtent(),p=d[0]>d[1]?-1:1,f=["start"===l?d[0]-p*h:"end"===l?d[1]+p*h:(d[0]+d[1])/2,Ym(l)?t.labelOffset+u*h:0],g=e.get("nameRotate");null!=g&&(g=g*Zm/180),Ym(l)?r=Gm.innerTextLayout(t.rotation,null!=g?g:t.rotation,u):(r=Fm(t.rotation,l,g||0,d),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(r.rotation)),!isFinite(a)&&(a=null)));var y=c.getFont(),v=e.get("nameTruncate",!0)||{},m=v.ellipsis,x=(0,s.Jv)(t.nameTruncateMaxWidth,v.maxWidth,a),_=new Bt.ZP({x:f[0],y:f[1],rotation:r.rotation,silent:Gm.isLabelSilent(e),style:bn(c,{text:o,font:y,overflow:"truncate",width:x,ellipsis:m,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||r.textAlign,verticalAlign:c.get("verticalAlign")||r.textVerticalAlign}),z2:1});if(Yl({el:_,componentModel:e,itemName:o}),_.__fullText=o,_.anid="name",e.get("triggerEvent")){var S=Gm.makeAxisEventDataBase(e);S.targetType="axisName",S.name=o,Gt(_).eventData=S}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function Fm(t,e,n,i){var o,r,a=M(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return I(a-Zm/2)?(r=l?"bottom":"top",o="center"):I(a-1.5*Zm)?(r=l?"top":"bottom",o="center"):(r="middle",o=a<1.5*Zm&&a>Zm/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:r}}function Hm(t,e,n){if(!$v(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),o=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var r=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(Um(r),Um(u)):Xm(r,a)&&(i?(Um(a),Um(c)):(Um(r),Um(u))),!1===o?(Um(s),Um(h)):Xm(l,s)&&(o?(Um(l),Um(d)):(Um(s),Um(h)))}}function Um(t){t&&(t.ignore=!0)}
1function Xm(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var o=qs.yR([]);return qs.U1(o,o,-t.rotation),n.applyTransform(qs.dC([],o,t.getLocalTransform())),i.applyTransform(qs.dC([],o,e.getLocalTransform())),n.intersect(i)}}function Ym(t){return"middle"===t||"center"===t}function Jm(t,e,n,i,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&((0,$s.Ne)(a,a,e),(0,$s.Ne)(s,s,e));var c=new ll.Z({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Ll(c.shape,c.style.lineWidth),c.anid=o+"_"+t[l].tickValue,r.push(c)}return r}function jm(t,e,n,i){var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!o.scale.isBlank()){for(var l=r.getModel("lineStyle"),u=i.tickDirection*r.get("length"),c=o.getTicksCoords(),h=Jm(c,e.transform,u,(0,s.ce)(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<h.length;d++)t.add(h[d]);return h}}function Km(t,e,n,i){var o=n.axis,r=n.getModel("minorTick");if(r.get("show")&&!o.scale.isBlank()){var a=o.getMinorTicksCoords();if(a.length)for(var l=r.getModel("lineStyle"),u=i*r.get("length"),c=(0,s.ce)(l.getLineStyle(),(0,s.ce)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<a.length;h++)for(var d=Jm(a[h],e.transform,u,c,"minorticks_"+h),p=0;p<d.length;p++)t.add(d[p])}}function qm(t,e,n,i){var o=n.axis,r=(0,s.Jv)(i.axisLabelShow,n.get(["axisLabel","show"]));if(r&&!o.scale.isBlank()){var a=n.getModel("axisLabel"),l=a.get("margin"),u=o.getViewLabels(),c=((0,s.Jv)(i.labelRotate,a.get("rotate"))||0)*Zm/180,h=Gm.innerTextLayout(i.rotation,c,i.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],f=Gm.isLabelSilent(n),g=n.get("triggerEvent");return(0,s.S6)(u,(function(r,u){var c="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(r.tickValue):r.tickValue,y=r.formattedLabel,v=r.rawLabel,m=a;if(d&&d[c]){var x=d[c];(0,s.Kn)(x)&&x.textStyle&&(m=new Xn(x.textStyle,a,n.ecModel))}var _=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),S=o.dataToCoord(c),b=new Bt.ZP({x:S,y:i.labelOffset+i.labelDirection*l,rotation:h.rotation,silent:f,z2:10+(r.level||0),style:bn(m,{text:y,align:m.getShallow("align",!0)||h.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||h.textVerticalAlign,fill:(0,s.mf)(_)?_("category"===o.type?v:"value"===o.type?c+"":c,u):_})});if(b.anid="label_"+c,g){var w=Gm.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=v,w.tickIndex=u,"category"===o.type&&(w.dataIndex=c),Gt(b).eventData=w}e.add(b),b.updateTransform(),p.push(b),t.add(b),b.decomposeTransform()})),p}}var $m=Gm;function Qm(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return tx(n,t,e),n.seriesInvolved&&nx(n,t),n}function tx(t,e,n){var i=e.getComponent("tooltip"),o=e.getComponent("axisPointer"),r=o.get("link",!0)||[],a=[];(0,s.S6)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var l=ux(n.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=n;var c=n.model,h=c.getModel("tooltip",i);if((0,s.S6)(n.getAxes(),(0,s.WA)(g,!1,null)),n.getTooltipAxes&&i&&h.get("show")){var d="axis"===h.get("trigger"),p="cross"===h.get(["axisPointer","type"]),f=n.getTooltipAxes(h.get(["axisPointer","axis"]));(d||p)&&(0,s.S6)(f.baseAxes,(0,s.WA)(g,!p||"cross",d)),p&&(0,s.S6)(f.otherAxes,(0,s.WA)(g,"cross",!1))}}function g(i,s,l){var c=l.model.getModel("axisPointer",o),d=c.get("show");if(d&&("auto"!==d||i||lx(c))){null==s&&(s=c.get("triggerTooltip")),c=i?ex(l,h,o,e,i,s):c;var p=c.get("snap"),f=c.get("triggerEmphasis"),g=ux(l.model),y=s||p||"category"===l.type,v=t.axesInfo[g]={key:g,axis:l,coordSys:n,axisPointerModel:c,triggerTooltip:s,triggerEmphasis:f,involveSeries:y,snap:p,useHandle:lx(c),seriesModels:[],linkGroup:null};u[g]=v,t.seriesInvolved=t.seriesInvolved||y;var m=ix(r,l);if(null!=m){var x=a[m]||(a[m]={axesInfo:{}});x.axesInfo[g]=v,x.mapper=r[m].mapper,v.linkGroup=x}}}}))}function ex(t,e,n,i,o,r){var a=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};(0,s.S6)(l,(function(t){u[t]=(0,s.d9)(a.get(t))})),u.snap="category"!==t.type&&!!r,"cross"===a.get("type")&&(u.type="line");var c=u.label||(u.label={});if(null==c.show&&(c.show=!1),"cross"===o){var h=a.get(["label","show"]);if(c.show=null==h||h,!r){var d=u.lineStyle=a.get("crossStyle");d&&(0,s.ce)(c,d.textStyle)}}return t.model.getModel("axisPointer",new Xn(u,n,i))}function nx(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),o=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==o&&!1!==e.get(["axisPointer","show"],!0)&&(0,s.S6)(t.coordSysAxesInfo[ux(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function ix(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(ox(r[i+"AxisId"],n.id)||ox(r[i+"AxisIndex"],n.componentIndex)||ox(r[i+"AxisName"],n.name))return o}}function ox(t,e){return"all"===t||(0,s.kJ)(t)&&(0,s.cq)(t,e)>=0||t===e}function rx(t){var e=ax(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,o=n.option,r=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=lx(n);null==r&&(o.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),o.value=a,s&&(o.status=e.axis.scale.isBlank()?"hide":"show")}}function ax(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ux(t)]}function sx(t){var e=ax(t);return e&&e.axisPointerModel}function lx(t){return!!t.get(["handle","show"])}
1function ux(t){return t.type+"||"+t.id}var cx={},hx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(e,n,i,o){this.axisPointerClass&&rx(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var o=e.getAxisPointerClass(this.axisPointerClass);if(o){var r=sx(t);r?(this._axisPointer||(this._axisPointer=new o)).render(t,r,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){cx[t]=e},e.getAxisPointerClass=function(t){return t&&cx[t]},e.type="axis",e}(Js),dx=hx,px=ut();function fx(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){var r=n.getModel("splitArea"),a=r.getModel("areaStyle"),l=a.get("color"),u=i.coordinateSystem.getRect(),c=o.getTicksCoords({tickModel:r,clamp:!0});if(c.length){var h=l.length,d=px(t).splitAreaColors,p=s.kW(),f=0;if(d)for(var g=0;g<c.length;g++){var y=d.get(c[g].tickValue);if(null!=y){f=(y+(h-1)*g)%h;break}}var v=o.toGlobalCoord(c[0].coord),m=a.getAreaStyle();l=s.kJ(l)?l:[l];for(g=1;g<c.length;g++){var x=o.toGlobalCoord(c[g].coord),_=void 0,S=void 0,b=void 0,w=void 0;o.isHorizontal()?(_=v,S=u.y,b=x-_,w=u.height,v=_+b):(_=u.x,S=v,b=u.width,w=x-S,v=S+w);var M=c[g-1].tickValue;null!=M&&p.set(M,f),e.add(new sl.Z({anid:null!=M?"area_"+M:null,shape:{x:_,y:S,width:b,height:w},style:s.ce({fill:l[f]},m),autoBatch:!0,silent:!0})),f=(f+1)%h}px(t).splitAreaColors=p}}}function gx(t){px(t).splitAreaColors=null}var yx=["axisLine","axisTickLabel","axisName"],vx=["splitArea","splitLine","minorSplitLine"],mx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return(0,r.ZT)(e,t),e.prototype.render=function(e,n,i,o){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Xs.Z,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),l=Am(a,e),u=new $m(e,s.l7({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(tv(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},l));s.S6(yx,u.add,u),this._axisGroup.add(u.getGroup()),s.S6(vx,(function(t){e.get([t,"show"])&&xx[t](this,this._axisGroup,e,a)}),this);var c=o&&"changeAxisOrder"===o.type&&o.isInitSort;c||Bl(r,this._axisGroup,e),t.prototype.render.call(this,e,n,i,o)}},e.prototype.remove=function(){gx(this)},e.type="cartesianAxis",e}(dx),xx={splitLine:function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){var r=n.getModel("splitLine"),a=r.getModel("lineStyle"),l=a.get("color");l=s.kJ(l)?l:[l];for(var u=i.coordinateSystem.getRect(),c=o.isHorizontal(),h=0,d=o.getTicksCoords({tickModel:r}),p=[],f=[],g=a.getLineStyle(),y=0;y<d.length;y++){var v=o.toGlobalCoord(d[y].coord);c?(p[0]=v,p[1]=u.y,f[0]=v,f[1]=u.y+u.height):(p[0]=u.x,p[1]=v,f[0]=u.x+u.width,f[1]=v);var m=h++%l.length,x=d[y].tickValue,_=new ll.Z({anid:null!=x?"line_"+d[y].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:f[0],y2:f[1]},style:s.ce({stroke:l[m]},g),silent:!0});Ll(_.shape,g.lineWidth),e.add(_)}}},minorSplitLine:function(t,e,n,i){var o=n.axis,r=n.getModel("minorSplitLine"),a=r.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=o.toGlobalCoord(u[p][f].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var y=new ll.Z({anid:"minor_line_"+u[p][f].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0});Ll(y.shape,d.lineWidth),e.add(y)}},splitArea:function(t,e,n,i){fx(t,e,n,i)}},_x=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="xAxis",e}(mx),Sx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=_x.type,e}return(0,r.ZT)(e,t),e.type="yAxis",e}(mx),bx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return(0,r.ZT)(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new sl.Z({shape:t.coordinateSystem.getRect(),style:(0,s.ce)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}
1))},e.type="grid",e}(Js),wx={offset:0};function Mx(t){t.registerComponentView(bx),t.registerComponentModel(Ey),t.registerCoordinateSystem("cartesian2d",Bm),Ky(t,"x",zy,wx),Ky(t,"y",zy,wx),t.registerComponentView(_x),t.registerComponentView(Sx),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function Ix(t){ud(Mx),t.registerSeriesModel(Dy),t.registerChartView(Ry),t.registerLayout(tg("scatter"))}function Tx(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var o=i.getIndicatorAxes();s.S6(o,(function(t,r){e.each(e.mapDimension(o[r].dim),(function(t,e){n[e]=n[e]||[];var o=i.dataToPoint(t,r);n[e][r]=Dx(o)?o:Cx(i)}))})),e.each((function(t){var o=s.sE(n[t],(function(t){return Dx(t)}))||Cx(i);n[t].push(o.slice()),e.setItemLayout(t,n[t])}))}}))}function Dx(t){return!isNaN(t[0])&&!isNaN(t[1])}function Cx(t){return[t.cx,t.cy]}function Ax(t){var e=t.polar;if(e){s.kJ(e)||(e=[e]);var n=[];s.S6(e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],s.kJ(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}s.S6(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var kx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var o=t.coordinateSystem,r=this.group,a=t.getData(),l=this._data;function u(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=yc(t.getItemVisual(e,"symbolSize")),o=gc(n,-1,-1,2,2),r=t.getItemVisual(e,"symbolRotate")||0;return o.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:r*Math.PI/180||0}),o}}function c(e,n,o,r,a,s){o.removeAll();for(var l=0;l<n.length-1;l++){var c=u(r,a);c&&(c.__dimIdx=l,e[l]?(c.setPosition(e[l]),i[s?"initProps":"updateProps"](c,{x:n[l][0],y:n[l][1]},t,a)):c.setPosition(n[l]),o.add(c))}}function h(t){return s.UI(t,(function(t){return[o.cx,o.cy]}))}a.diff(l).add((function(e){var n=a.getItemLayout(e);if(n){var i=new rl.Z,o=new al.Z,r={shape:{points:n}};i.shape.points=h(n),o.shape.points=h(n),cn(i,r,t,e),cn(o,r,t,e);var s=new Xs.Z,l=new Xs.Z;s.add(o),s.add(i),s.add(l),c(o.shape.points,n,l,a,e,!0),a.setItemGraphicEl(e,s)}})).update((function(e,n){var i=l.getItemGraphicEl(n),o=i.childAt(0),r=i.childAt(1),s=i.childAt(2),u={shape:{points:a.getItemLayout(e)}};u.shape.points&&(c(o.shape.points,u.shape.points,s,a,e,!1),gn(r),gn(o),un(o,u,t),un(r,u,t),a.setItemGraphicEl(e,i))})).remove((function(t){r.remove(l.getItemGraphicEl(t))})).execute(),a.eachItemGraphicEl((function(t,e){var n=a.getItemModel(e),i=t.childAt(0),o=t.childAt(1),l=t.childAt(2),u=a.getItemVisual(e,"style"),c=u.fill;r.add(t),i.useStyle(s.ce(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),qe(i,n,"lineStyle"),qe(o,n,"areaStyle");var h=n.getModel("areaStyle"),d=h.isEmpty()&&h.parentModel.isEmpty();o.ignore=d,s.S6(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();o.ensureState(t).ignore=i&&d})),o.useStyle(s.ce(h.getAreaStyle(),{fill:c,opacity:.7,decal:u.decal}));var p=n.getModel("emphasis"),f=p.getModel("itemStyle").getItemStyle();l.eachChild((function(t){if(t instanceof tl.ZP){var i=t.style;t.useStyle(s.l7({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},u))}else t.useStyle(u),t.setColor(c),t.style.strokeNoScale=!0;var o=t.ensureState("emphasis");o.style=s.d9(f);var r=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),_n(t,Sn(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:c,defaultOpacity:u.opacity})})),Ye(t,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(ou),Lx=kx,Px=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,r.ZT)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new _y(s.ak(this.getData,this),s.ak(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return my(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.coordinateSystem,r=o.getIndicatorAxes(),a=this.getData().getName(t),l=""===a?this.name:a,u=Cs(this,t);return gs("section",{header:l,sortBlocks:!0,blocks:s.UI(r,(function(e){var n=i.get(i.mapDimension(e.dim),t);return gs("nameValue",{markerType:"subItem",markerColor:u,name:e.name,value:n,sortParam
1:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(s.UI(n.dimensions,(function(t){return e.mapDimension(t)})),t),o=0,r=i.length;o<r;o++)if(!isNaN(i[o])){var a=n.getIndicatorAxes();return n.coordToPoint(a[o].dataToCoord(i[o]),o)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Us),Nx=Px,Rx=Hy.value;function Ox(t,e){return s.ce({show:e},t)}var Ex=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),r=this.get("axisLabel"),a=this.get("axisName"),l=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),d=s.UI(this.get("indicator")||[],(function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=a;null!=d.color&&(p=s.ce({color:d.color},a));var f=s.TS(s.d9(d),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:o,axisLabel:r,name:d.text,showName:l,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(s.HD(u)){var g=f.name;f.name=u.replace("{value}",null!=g?g:"")}else s.mf(u)&&(f.name=u(f.name,f));var y=new Xn(f,null,this.ecModel);return s.jB(y,Vy.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:s.TS({lineStyle:{color:"#bbb"}},Rx.axisLine),axisLabel:Ox(Rx.axisLabel,!1),axisTick:Ox(Rx.axisTick,!1),splitLine:Ox(Rx.splitLine,!0),splitArea:Ox(Rx.splitArea,!0),indicator:[]},e}(mo),Vx=Ex,zx=["axisLine","axisTickLabel","axisName"],Bx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=s.UI(n,(function(t){var n=t.model.get("showName")?t.name:"",i=new $m(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));s.S6(i,(function(t){s.S6(zx,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),o=t.getModel("splitLine"),r=t.getModel("splitArea"),a=o.getModel("lineStyle"),l=r.getModel("areaStyle"),u=o.get("show"),c=r.get("show"),h=a.get("color"),d=l.get("color"),p=s.kJ(h)?h:[h],f=s.kJ(d)?d:[d],g=[],y=[];if("circle"===i)for(var v=n[0].getTicksCoords(),m=e.cx,x=e.cy,_=0;_<v.length;_++){if(u){var S=A(g,p,_);g[S].push(new el.Z({shape:{cx:m,cy:x,r:v[_].coord}}))}if(c&&_<v.length-1){S=A(y,f,_);y[S].push(new ol.Z({shape:{cx:m,cy:x,r0:v[_].coord,r:v[_+1].coord}}))}}else{var b,w=s.UI(n,(function(t,n){var i=t.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),s.UI(i,(function(t){return e.coordToPoint(t.coord,n)}))})),M=[];for(_=0;_<=b;_++){for(var I=[],T=0;T<n.length;T++)I.push(w[T][_]);if(I[0]&&I.push(I[0].slice()),u){S=A(g,p,_);g[S].push(new al.Z({shape:{points:I}}))}if(c&&M){S=A(y,f,_-1);y[S].push(new rl.Z({shape:{points:I.concat(M)}}))}M=I.slice().reverse()}}var D=a.getLineStyle(),C=l.getAreaStyle();s.S6(y,(function(t,e){this.group.add(Al(t,{style:s.ce({stroke:"none",fill:f[e%f.length]},C),silent:!0}))}),this),s.S6(g,(function(t,e){this.group.add(Al(t,{style:s.ce({fill:"none",stroke:p[e%p.length]},D),silent:!0}))}),this)}function A(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(Js),Zx=Bx,Gx=function(t){function e(e,n,i){var o=t.call(this,e,n,i)||this;return o.type="value",o.angle=0,o.name="",o}return(0,r.ZT)(e,t),e}(Tm),Wx=Gx,Fx=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=(0,s.UI)(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new Wx(n,new pv);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,o=this.cx+t*Math.cos(i),r=this.cy-t*Math.sin(i);return[o,r]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var o,r=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(r-u.angle);c<a&&(o=u,s=l,a=c)}
1return[s,+(o&&o.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight(),r=Math.min(i,o)/2;this.cx=g(n[0],i),this.cy=g(n[1],o),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");((0,s.HD)(a)||(0,s.hj)(a))&&(a=[0,a]),this.r0=g(a[0],r),this.r=g(a[1],r),(0,s.S6)(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;(0,s.S6)(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,o){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var r=e.getData();(0,s.S6)(n,(function(t){t.scale.unionExtentFromData(r,r.mapDimension(t.dim))}))}}),this);var o=i.get("splitNumber"),r=new pv;r.setExtent(0,o),r.setInterval(1),(0,s.S6)(n,(function(t,e){Nm(t.scale,t.model,r)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",(function(o){var r=new t(o,e,n);i.push(r),o.coordinateSystem=r})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},t.dimensions=[],t}(),Hx=Fx;function Ux(t){t.registerCoordinateSystem("radar",Hx),t.registerComponentModel(Vx),t.registerComponentView(Zx),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}function Xx(t){ud(Ux),t.registerChartView(Lx),t.registerSeriesModel(Nx),t.registerLayout(Tx),t.registerProcessor(ly("radar")),t.registerPreprocessor(Ax)}var Yx=n(61158),Jx="\0_ec_interaction_mutex";function jx(t,e,n){var i=$x(t);i[e]=n}function Kx(t,e,n){var i=$x(t),o=i[e];o===n&&(i[e]=null)}function qx(t,e){return!!$x(t)[e]}function $x(t){return t[Jx]||(t[Jx]={})}$h({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},s.ZT);var Qx=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=(0,s.ak)(n._mousedownHandler,n),o=(0,s.ak)(n._mousemoveHandler,n),r=(0,s.ak)(n._mouseupHandler,n),a=(0,s.ak)(n._mousewheelHandler,n),l=(0,s.ak)(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=(0,s.ce)((0,s.d9)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",o),e.on("mouseup",r)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",l))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",o),e.off("mouseup",r),e.off("mousewheel",a),e.off("pinch",l)},n}return(0,r.ZT)(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!Yx.x1(t)){var e=t.target;while(e){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&n_("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!qx(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,o=this._y,r=e-i,a=n-o;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Yx.sT(t.event),e_(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Yx.x1(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=n_("zoomOnMouseWheel",t,this._opt),n=n_("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),r=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=o>3?1.4:o>1?1.2:1.1,l=i>0?s:1/s;t_(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:r,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);t_(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:r,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!qx(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;t_(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(c.Z);function t_(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(Yx.sT(i.event),e_(t,e,n,i,o))}function e_(t,e,n,i,o){o.isAvailableBehavior=(0,s.ak)(n_,null,n,i),t.trigger(e,o)}function n_(t,e,n){var i=n[t];return!t||i&&(!(0,s.HD)(i)||e.event[i+"Key"])}var i_=Qx;function o_(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function r_(t,e,n,i){var o=t.target,r=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,r){var s=r.min||0,l=r.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,o.x-=(n-o.x)*(u-1),o.y-=(i-o.y)*(u-1),o.scaleX*=u,o.scaleY*=u,o.dirty()}var a_={axisPointer:1,tooltip:1,brush:1};function s_(t,e,n){var i=e.getComponentByElement(t.topTarget),o=i&&i.coordinateSystem;return i&&i!==n&&!a_.hasOwnProperty(i.mainType)&&o&&o.model!==n}var l_=n(10003),u_=n(84735),c_=n(40765),h_=[];function d_(t,e){for(var n=0;n<t.length;n++)$s.Ne(t[n],t[n],e)}function p_(t,e,n,i){for(var o=0;o<t.length;o++){var r=t[o];i&&(r=i.project(r)),r&&isFinite(r[0])&&isFinite(r[1])&&($s.VV(e,e,r),$s.Fp(n,n,r))}}function f_(t){for(var e=0,n=0,i=0,o=t.length,r=t[o-1][0],a=t[o-1][1],s=0;s<o;s++){var l=t[s][0],u=t[s][1],c=r*u-l*a;e+=c,n+=(r+l)*c,i+=(a+u)*c,r=l,a=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}var g_=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),y_=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),v_=function(){function t(t){this.type="linestring",this.points=t}return t}(),m_=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.type="geoJSON",o.geometries=n,o._center=i&&[i[0],i[1]],o}return(0,r.ZT)(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var o=e[i],r=o.exterior,a=r&&r.length;a>n&&(t=o,n=a)}if(t)return f_(t.exterior);
1var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return(0,s.S6)(o,(function(e){"polygon"===e.type?p_(e.exterior,n,i,t):(0,s.S6)(e.points,(function(e){p_(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new $n.Z(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i<o;i++){var r=n[i];if("polygon"===r.type){var a=r.exterior,s=r.interiors;if(c_.X(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(c_.X(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=o.width/o.height;n?i||(i=n/r):n=r*i;for(var a=new $n.Z(t,e,n,i),l=o.calculateTransform(a),u=this.geometries,c=0;c<u.length;c++){var h=u[c];"polygon"===h.type?(d_(h.exterior,l),(0,s.S6)(h.interiors,(function(t){d_(t,l)}))):(0,s.S6)(h.points,(function(t){d_(t,l)}))}o=this._rect,o.copy(a),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(g_),x_=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return(0,r.ZT)(e,t),e.prototype.calcCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=qs.yR(h_),o=t;while(o&&!o.isGeoSVGGraphicRoot)qs.dC(i,o.getLocalTransform(),i),o=o.parent;return qs.U_(i,i),$s.Ne(n,n,i),n},e}(g_),__=(0,s.kW)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),S_=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=(0,s.kW)(),this._freedGraphics=[],this._mapName=t,this._parsedXML=(0,u_.s)(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=w_(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&(0,l_.hS)(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,(0,s.hu)(null!=n)}catch(y){throw new Error("Invalid svg format\n"+y.message)}var i=new Xs.Z;i.add(n),i.isGeoSVGGraphicRoot=!0;var o=e.width,r=e.height,a=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,h=void 0,d=void 0;if(null!=o?(u=0,h=o):a&&(u=a.x,h=a.width),null!=r?(c=0,d=r):a&&(c=a.y,d=a.height),null==u||null==c){var p=n.getBoundingRect();null==u&&(u=p.x,h=p.width),null==c&&(c=p.y,d=p.height)}l=this._boundingRect=new $n.Z(u,c,h,d)}if(a){var f=(0,l_.sd)(a,l);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}i.setClipPath(new sl.Z({shape:l.plain()}));var g=[];return(0,s.S6)(e.named,(function(t){null!=__.get(t.svgNodeTagLower)&&(g.push(t),b_(t.el))})),{root:i,boundingRect:l,named:g}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function b_(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function w_(t){var e=[],n=(0,s.kW)();return(0,s.S6)(t,(function(t){if(null==t.namedFrom){var i=new x_(t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}function M_(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return s.S6(i,(function(t){var e=t.geometry,i=e.encodeOffsets,o=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=T_(o,i,n);break;case"Polygon":I_(o,i,n);break;case"MultiLineString":I_(o,i,n);break;case"MultiPolygon":s.S6(o,(function(t,e){return I_(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}function I_(t,e,n){for(var i=0;i<t.length;
1i++)t[i]=T_(t[i],e[i],n)}function T_(t,e,n){for(var i=[],o=e[0],r=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=o,l+=r,o=s,r=l,i.push([s/n,l/n])}return i}function D_(t,e){return t=M_(t),s.UI(s.hX(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,o=[];switch(i.type){case"Polygon":var r=i.coordinates;o.push(new y_(r[0],r.slice(1)));break;case"MultiPolygon":s.S6(i.coordinates,(function(t){t[0]&&o.push(new y_(t[0],t.slice(1)))}));break;case"LineString":o.push(new v_([i.coordinates]));break;case"MultiLineString":o.push(new v_(i.coordinates))}var a=new m_(n[e||"name"],o,n.cp);return a.properties=n,a}))}for(var C_=[126,25],A_="南海诸岛",k_=[[[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]]],L_=0;L_<k_.length;L_++)for(var P_=0;P_<k_[L_].length;P_++)k_[L_][P_][0]/=10.5,k_[L_][P_][1]/=-14,k_[L_][P_][0]+=C_[0],k_[L_][P_][1]+=C_[1];function N_(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===A_)return;e.push(new m_(A_,s.UI(k_,(function(t){return{type:"polygon",exterior:t}})),C_))}}var R_={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function O_(t,e){if("china"===t){var n=R_[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}var E_=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function V_(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:E_[0]})}var z_="name",B_=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=(0,s.kW)(),this._mapName=t,this._specialAreas=n,this._geoJSON=G_(e)}return t.prototype.load=function(t,e){e=e||z_;var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:Z_(i)})}var o=(0,s.kW)(),r=[];return(0,s.S6)(n.regions,(function(e){var n=e.name;t&&(0,s.RI)(t,n)&&(e=e.cloneShallow(n=t[n])),r.push(e),o.set(n,e)})),{regions:r,boundingRect:n.boundingRect||new $n.Z(0,0,0,0),regionsMap:o}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?D_(i,t):[]}catch(o){throw new Error("Invalid geoJson format\n"+o.message)}return N_(n,e),(0,s.S6)(e,(function(t){var e=t.name;O_(n,t),V_(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function Z_(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function G_(t){return(0,s.HD)(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var W_=(0,s.kW)(),F_={registerMap:function(t,e,n){if(e.svg){var i=new S_(t,e.svg);W_.set(t,i)}else{var o=e.geoJson||e.geoJSON;o&&!e.features?n=e.specialAreas:o=e;i=new B_(t,o,n);W_.set(t,i)}},getGeoResource:function(t){return W_.get(t)},getMapForUser:function(t){var e=W_.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var i=W_.get(t);if(i)return i.load(e,n)}},H_=n(7719),U_=["rect","circle","line","ellipse","polygon","polyline","path"],X_=s.kW(U_),Y_=s.kW(U_.concat(["g"])),J_=s.kW(U_.concat(["g"])),j_=ut();function K_(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function q_(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var $_=function(){function t(t){var e=new Xs.Z;this.uid=Jn("ec_map_draw"),this._controller=new i_(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Xs.Z),e.add(this._svgGroup=new Xs.Z)}return t.prototype.draw=function(t,e,n,i,o){var r="geo"===t.mainType,a=t.getData&&t.getData();r&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam,p=!l.childAt(0)||o;p?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):un(u,d,t);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:r,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=s.kW(),n=s.kW(),i=this._regionsGroup,o=t.transformInfoRaw,r=t.mapOrGeoModel,a=t.data,l=t.geo.projection,u=l&&l.stream;function c(t,e){return e&&(t=e(t)),t&&[t[0]*o.scaleX+o.x,t[1]*o.scaleY+o.y]}function h(t){for(var e=[],n=!u&&l&&l.project,i=0;i<t.length;++i){var o=c(t[i],n);o&&e.push(o)}return e}function d(t){return{shape:{points:h(t)}}}i.removeAll(),s.S6(t.geo.regions,(function(o){var h=o.name,p=e.get(h),f=n.get(h)||{},g=f.dataIdx,y=f.regionModel;p||(p=e.set(h,new Xs.Z),i.add(p),g=a?a.indexOfName(h):null,y=t.isGeo?r.getRegionModel(h):a?a.getItemModel(g):null,n.set(h,{dataIdx:g,regionModel:y}));var v=[],m=[];s.S6(o.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);u&&(e=oS(e,u)),s.S6(e,(function(t){v.push(new rl.Z(d(t)))}))}else{var n=t.points;u&&(n=oS(n,u,!0)),s.S6(n,(function(t){m.push(new al.Z(d(t)))}))}}));var x=c(o.getCenter(),l&&l.project);function _(e,n){if(e.length){var i=new hl.Z({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});p.add(i),Q_(t,i,g,y),tS(t,i,h,y,r,g,x),n&&(q_(i),s.S6(i.states,q_))}}_(v),_(m,!0)})),e.each((function(e,i){var o=n.get(i),a=o.dataIdx,s=o.regionModel;
1eS(t,e,i,s,r,a),nS(t,e,i,s,r),iS(t,e,i,s,r)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=s.kW(),o=!1;s.S6(this._svgGraphicRecord.named,(function(e){var n=e.name,r=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=r.getRegionModel(n);if(null!=X_.get(s)&&l instanceof H_.ZP&&Q_(t,l,u,c),l instanceof H_.ZP&&(l.culling=!0),l.z2EmphasisLift=0,!e.namedFrom&&(null!=J_.get(s)&&tS(t,l,n,c,r,u,null),eS(t,l,n,c,r,u),nS(t,l,n,c,r),null!=Y_.get(s))){var h=iS(t,l,n,c,r);"self"===h&&(o=!0);var d=i.get(n)||i.set(n,[]);d.push(l)}}),this),this._enableBlurEntireSVG(o,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){Ie(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=i&&(e.opacity=i),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var o=i.get(t);return o?[o]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=F_.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=F_.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,o=this._controller,r=this._controllerHost;r.zoomLimit=t.get("scaleLimit"),r.zoom=i.getZoom(),o.enable(t.get("roam")||!1);var a=t.mainType;function l(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}o.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,o_(r,t.dx,t.dy),n.dispatchAction(s.l7(l(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),o.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,r_(r,t.scale,t.originX,t.originY),n.dispatchAction(s.l7(l(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),o.setPointerChecker((function(e,o,r){return i.containPoint([o,r])&&!s_(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=j_(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var o=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){o._mouseDownFlag=!0})),e.on("click",(function(t){o._mouseDownFlag&&(o._mouseDownFlag=!1)})))},t}();function Q_(t,e,n,i){var o=i.getModel("itemStyle"),r=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=K_(o),u=K_(r),c=K_(s),h=K_(a),d=t.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=wc(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,Ie(e)}function tS(t,e,n,i,o,r,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),r)),c=s&&s.getItemLayout(r);if(l||u||c&&c.showLabel){var h=l?n:r,d=void 0;(!s||r>=0)&&(d=o);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;_n(e,Sn(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=e.getTextContent();if(f&&(j_(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect
1().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function eS(t,e,n,i,o,r){t.data?t.data.setItemGraphicEl(r,e):Gt(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function nS(t,e,n,i,o){t.data||Yl({el:e,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function iS(t,e,n,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var r=i.getModel("emphasis"),a=r.get("focus");return Ye(e,a,r.get("blurScope"),r.get("disabled")),t.isGeo&&tn(e,o,n),a}function oS(t,e,n){var i,o=[];function r(){i=[]}function a(){i.length&&(o.push(i),i=[])}var l=e({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&l.polygonStart(),s.S6(t,(function(t){l.lineStart();for(var e=0;e<t.length;e++)l.point(t[e][0],t[e][1]);l.lineEnd()})),!n&&l.polygonEnd(),o}var rS=$_,aS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){r=this._mapDraw;r&&o.add(r.group)}else if(t.needsDrawMap){var r=this._mapDraw||new rS(n);o.add(r.group),r.draw(t,e,n,this,i),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var r=i.getItemLayout(n);if(r&&r.point){var a=r.point,s=r.offset,l=new el.Z({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:te+1)});if(!s){var u=t.mainSeries.getData(),c=i.getName(n),h=u.indexOfName(c),d=i.getItemModel(n),p=d.getModel("label"),f=u.getItemGraphicEl(h);_n(l,Sn(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){xe(l,t)}}o.add(l)}}}))},e.type="map",e}(ou),sS=aS,lS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t){for(var e=my(this,{coordDimensions:["value"],encodeDefaulter:s.WA(Oo,this)}),n=s.kW(),i=[],o=0,r=e.count();o<r;o++){var a=e.getName(o);n.set(a,!0)}var l=F_.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return s.S6(l.regions,(function(t){var e=t.name;n.get(e)||i.push(e)})),e.appendValues([],i),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),o=this.getRawValue(t),r=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(r),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return gs("section",{header:s.join(", "),noHeader:!s.length,blocks:[gs("nameValue",{name:r,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=gc(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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"},e}(Us),uS=lS;function cS(t,e){var n={};return s.S6(t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var o="ec-"+t.getName(i);n[o]=n[o]||[],isNaN(e)||n[o].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,o){for(var r,a="ec-"+t[0].getName(o),s=0,l=1/0,u=-1/0,c=n[a].length,h=0;h<c;h++)l=Math.min(l,n[a][h]),u=Math.max(u,n[a][h]),s+=n[a][h];return r="min"===e?l:"max"===e?u:"average"===e?s/c:s,0===c?NaN:r}))}function hS(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),s.S6(e,(function(t,e){for(var n=cS(s.UI(t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(n.
1cloneShallow()),t[i].mainSeries=t[0]}))}function dS(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var o={};s.S6(n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var r=i.getName(e),a=n.getRegion(r);if(a&&!isNaN(t)){var s=o[r]||0,l=n.dataToPoint(a.getCenter());o[r]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var r=n.getData();r.each((function(t){var e=r.getName(t),n=r.getItemLayout(t)||{};n.showLabel=!o[e],r.setItemLayout(t,n)})),e[i]=!0}}))}var pS=$s.Ne,fS=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Qs.ZP,n._rawTransformable=new Qs.ZP,n.name=e,n}return(0,r.ZT)(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new $n.Z(t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new $n.Z(t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._rawTransformable;r.transform=o.calculateTransform(new $n.Z(t,e,n,i));var a=r.parent;r.parent=null,r.decomposeTransform(),r.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[g(t[0],e.getWidth()),g(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=$s.Ne([],i,t),n=$s.Ne([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),qs.JG(this.transform||(this.transform=[]),e.transform||qs.Ue()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],qs.U_(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new Qs.ZP;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?pS(n,t,i):$s.JG(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?pS([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=gS(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=gS(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(Qs.ZP);function gS(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var yS=fS,vS={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},mS=["lng","lat"],xS=function(t){function e(e,n,i){var o=t.call(this,e)||this;o.dimensions=mS,o.type="geo",o._nameCoordMap=s.kW(),o.map=n;var r,a=i.projection,l=F_.load(n,i.nameMap,i.nameProperty),u=F_.getGeoResource(n),c=(o.resourceType=u?u.type:null,o.regions=l.regions),h=vS[u.type];if(o._regionsMap=l.regionsMap,o.regions=l.regions,o.projection=a,a)for(var d=0;d<c.length;
1d++){var p=c[d].getBoundingRect(a);r=r||p.clone(),r.union(p)}else r=l.boundingRect;return o.setBoundingRect(r.x,r.y,r.width,r.height),o.aspectScale=a?1:s.pD(i.aspectScale,h.aspectScale),o._invertLongitute=!a&&h.invertLongitute,o}return(0,r.ZT)(e,t),e.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._invertLongitute;o=o.clone(),r&&(o.y=-o.y-o.height);var a=this._rawTransformable;a.transform=o.calculateTransform(new $n.Z(t,e,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,r&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(s.HD(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=_S(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=_S(e);return i===this?i.pointToData(n):null},e}(yS);function _S(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",pt).models[0]||{}).coordinateSystem:null}s.jB(xS,yS);var SS=xS;function bS(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],o=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])){var r=this.projection;if(r){var a=i[0],s=i[1],l=o[0],u=o[1];i=[1/0,1/0],o=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var c=u/100,h=r.project([t+s*c,e+l*c]);$s.VV(i,i,h),$s.Fp(o,o,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1])}else 0}var h,d,p,f=this.getBoundingRect(),y=t.get("layoutCenter"),v=t.get("layoutSize"),m=e.getWidth(),x=e.getHeight(),_=f.width/f.height*this.aspectScale,S=!1;if(y&&v&&(h=[g(y[0],m),g(y[1],x)],d=g(v,Math.min(m,x)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(S=!0)),S)p={},_>1?(p.width=d,p.height=d/_):(p.height=d,p.width=d*_),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var b=t.getBoxLayoutParams();b.aspect=_,p=so(b,{width:m,height:x})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function wS(t,e){s.S6(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var MS=function(){function t(){this.dimensions=mS}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,o){var r=t.get("map"),a=new SS(r+o,r,s.l7({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=bS,a.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var i=t.get("geoIndex")||0;t.coordinateSystem=n[i]}}));var o={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();o[e]=o[e]||[],o[e].push(t)}})),s.S6(o,(function(t,o){var r=s.UI(t,(function(t){return t.get("nameMap")})),a=new SS(o,o,s.l7({nameMap:s.Jn(r)},i(t[0])));a.zoomLimit=s.Jv.apply(null,s.UI(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=bS,a.resize(t[0],e),s.S6(t,(function(t){t.coordinateSystem=a,wS(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),r=s.kW(),a=0;a<o.length;a++)r.set(o[a].name,o[a]);var l=F_.load(e,n,i);return s.S6(l.regions,(function(t){var e=t.name;!r.get(e)&&o.push({name:e})})),o},t}(),IS=new MS,TS=IS,DS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e,n){var i=F_.getGeoResource(t.map);if(i&&"geoJSON"===i.type){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),W(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=TS.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=s.u4(e.regions||[],(function(e,i){var o=i.name;return o&&(e.set(o,new Xn(i,t,t.ecModel)),i.selected&&(n[o]=!0)),e}),s.kW()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Xn(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emp
1hasis","label","formatter"]),o={name:t};return s.mf(i)?(o.status=e,i(o)):s.HD(i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;if(n){"multiple"!==n&&(e.selectedMap=null);var i=e.selectedMap||(e.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.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:[]},e}(mo),CS=DS;function AS(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function kS(t,e,n,i){var o=t.getZoom(),r=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(r):t.dataToPoint(r);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(AS(t,s),i)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(o*a,u),l)/o}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),h=(e.originY-t.y)*(a-1);t.x-=c,t.y-=h,t.updateTransform(),t.setCenter(AS(t,s),i),t.setZoom(a*o)}return{center:t.getCenter(),zoom:t.getZoom()}}var LS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new rS(n));var o=this._mapDraw;o.draw(t,e,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;ic(t.target,(function(t){return null!=(e=Gt(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=Gt(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Js),PS=LS;function NS(t,e,n){F_.registerMap(t,e,n)}function RS(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},o=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var r=n.coordinateSystem;(0,s.S6)(r.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var a=[];(0,s.S6)(i,(function(t,e){i[e]&&a.push(e)})),o.push({geoIndex:n.componentIndex,name:a})})),{selected:i,allSelected:o,name:t.name}}))}t.registerCoordinateSystem("geo",TS),t.registerComponentModel(CS),t.registerComponentView(PS),t.registerImpl("registerMap",NS),t.registerImpl("getMap",(function(t){return F_.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var o=e.coordinateSystem;if("geo"===o.type){var r=kS(o,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),"series"===i&&(0,s.S6)(e.seriesGroup,(function(t){t.setCenter(r.center),t.setZoom(r.zoom)}))}}))}))}function OS(t){ud(RS),t.registerChartView(sS),t.registerSeriesModel(uS),t.registerLayout(dS),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,hS),tc("map",t.registerAction)}function ES(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,o=[e];while(n=o.pop())if(i=n.children,n.isExpand&&i.length)for(var r=i.length,a=r-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},o.push(s)}}function VS(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,o=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){WS(t);var r=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(t.hierNode.prelim=o.hierNode.prelim+e(t,o),t.hierNode.modifier=t.hier
1Node.prelim-r):t.hierNode.prelim=r}else o&&(t.hierNode.prelim=o.hierNode.prelim+e(t,o));t.parentNode.hierNode.defaultAncestor=FS(t,o,t.parentNode.hierNode.defaultAncestor||i[0],e)}function zS(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function BS(t){return arguments.length?t:JS}function ZS(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function GS(t,e){return so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function WS(t){var e=t.children,n=e.length,i=0,o=0;while(--n>=0){var r=e[n];r.hierNode.prelim+=i,r.hierNode.modifier+=i,o+=r.hierNode.change,i+=r.hierNode.shift+o}}function FS(t,e,n,i){if(e){var o=t,r=t,a=r.parentNode.children[0],s=e,l=o.hierNode.modifier,u=r.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;while(s=HS(s),r=US(r),s&&r){o=HS(o),a=US(a),o.hierNode.ancestor=t;var d=s.hierNode.prelim+h-r.hierNode.prelim-u+i(s,r);d>0&&(YS(XS(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=o.hierNode.modifier,c+=a.hierNode.modifier}s&&!HS(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=h-l),r&&!US(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-c,n=t)}return n}function HS(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function US(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function XS(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function YS(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function JS(t,e){return t.parentNode===e.parentNode?1:2}var jS=n(3726),KS=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),qS=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new KS},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,o=e.parentPoint,r=n[0],a=n[i-1];if(1===i)return t.moveTo(o[0],o[1]),void t.lineTo(r[0],r[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=g(e.forkPosition,1),h=[];h[l]=o[l],h[u]=o[u]+(a[u]-o[u])*c,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(r[0],r[1]),h[l]=r[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}},e}(Ht.ZP),$S=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Xs.Z,n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e){this._controller=new i_(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),o=t.layoutInfo,r=this._mainGroup,a=t.get("layout");"radial"===a?(r.x=o.x+o.width/2,r.y=o.y+o.height/2):(r.x=o.x,r.y=o.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var s=this._data;i.diff(s).add((function(e){QS(i,e)&&tb(i,e,null,r,t)})).update((function(e,n){var o=s.getItemGraphicEl(n);QS(i,e)?tb(i,e,o,r,t):o&&ob(s,n,o,r,t)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&ob(s,e,n,r,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])}));var o=[],r=[];jS.zk(i,o,r);var a=this._min,s=this._max;r[0]-o[0]===0&&(o[0]=a?a[0]:o[0]-1,r[0]=s?s[0]:r[0]+1),r[1]-o[1]===0&&(o[1]=a?a[1]:o[1]-1,r[1]=s?s[1]:r[1]+1);var l=t.coordinateSystem=new yS;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(o[0],o[1],r[0]-o[0],r[1]-o[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=o,this._max=r},e.prototype._updateController=function(t,e,n){var i=this,o=this._controller,r=this._controllerHost,a=this.group;
1o.setPointerChecker((function(e,i,o){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(i,o)&&!s_(e,n,t)})),o.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(e){o_(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){r_(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1,o=e.getZoom(),r=(o-1)*n+1;return r/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(ou);function QS(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function tb(t,e,n,i,o){var r=!n,a=t.tree.getNodeByDataIndex(e),l=a.getModel(),u=a.getVisual("style").fill,c=!1===a.isExpand&&0!==a.children.length?u:"#fff",h=t.tree.root,d=a.parentNode===h?a:a.parentNode||a,p=t.getItemGraphicEl(d.dataIndex),f=d.getLayout(),g=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:f,y=a.getLayout();r?(n=new uf(t,e,null,{symbolInnerColor:c,useNameLabel:!0}),n.x=g.x,n.y=g.y):n.updateData(t,e,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=y.rawX,n.__radialRawY=y.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,un(n,{x:y.x,y:y.y},o);var v=n.getSymbolPath();if("radial"===o.get("layout")){var m=h.children[0],x=m.getLayout(),_=m.children.length,S=void 0,b=void 0;if(y.x===x.x&&!0===a.isExpand&&m.children.length){var w={x:(m.children[0].getLayout().x+m.children[_-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[_-1].getLayout().y)/2};S=Math.atan2(w.y-x.y,w.x-x.x),S<0&&(S=2*Math.PI+S),b=w.x<x.x,b&&(S-=Math.PI)}else S=Math.atan2(y.y-x.y,y.x-x.x),S<0&&(S=2*Math.PI+S),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(b=y.x<x.x,b&&(S-=Math.PI)):(b=y.x>x.x,b||(S-=Math.PI));var M=b?"left":"right",I=l.getModel("label"),T=I.get("rotate"),D=T*(Math.PI/180),C=v.getTextContent();C&&(v.setTextConfig({position:I.get("position")||M,rotation:null==T?-S:D,origin:"center"}),C.setStyle("verticalAlign","middle"))}var A=l.get(["emphasis","focus"]),k="relative"===A?s.WW(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;k&&(Gt(n).focus=k),eb(o,a,h,n,g,f,y,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Kt||xe(n.__edge,e)}})}function eb(t,e,n,i,o,r,a,l){var u=e.getModel(),c=t.get("edgeShape"),h=t.get("layout"),d=t.getOrient(),p=t.get(["lineStyle","curveness"]),f=t.get("edgeForkPosition"),g=u.getModel("lineStyle").getLineStyle(),y=i.__edge;if("curve"===c)e.parentNode&&e.parentNode!==n&&(y||(y=i.__edge=new ul.Z({shape:rb(h,d,p,o,o)})),un(y,{shape:rb(h,d,p,r,a)},t));else if("polyline"===c)if("orthogonal"===h){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,m=[],x=0;x<v.length;x++){var _=v[x].getLayout();m.push([_.x,_.y])}y||(y=i.__edge=new qS({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:f}})),un(y,{shape:{parentPoint:[a.x,a.y],childPoints:m}},t)}}else 0;y&&("polyline"!==c||e.isExpand)&&(y.useStyle(s.ce({strokeNoScale:!0,fill:null},g)),qe(y,u,"lineStyle"),Ie(y),l.add(y))}function nb(t,e,n,i,o){var r=e.tree.root,a=ib(r,t),s=a.source,l=a.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),h=c.__edge,d=u.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),p=i.get("edgeShape"),f=i.get("layout"),g=i.get("orient"),y=i.get(["lineStyle","curveness"]);d&&("curve"===p?dn(d,{shape:rb(f,g,y,l,l),style:{opacity:0}
1},i,{cb:function(){n.remove(d)},removeOpt:o}):"polyline"===p&&"orthogonal"===i.get("layout")&&dn(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:o}))}}function ib(t,e){var n,i=e.parentNode===t?e:e.parentNode||e;while(n=i.getLayout(),null==n)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function ob(t,e,n,i,o){var r=t.tree.getNodeByDataIndex(e),a=t.tree.root,s=ib(a,r).sourceLayout,l={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};dn(n,{x:s.x+1,y:s.y+1},o,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),r.children.forEach((function(e){nb(e,t,i,o,l)})),nb(r,t,i,o,l)}function rb(t,e,n,i,o){var r,a,s,l,u,c,h,d;if("radial"===t){u=i.rawX,h=i.rawY,c=o.rawX,d=o.rawY;var p=ZS(u,h),f=ZS(u,h+(d-h)*n),g=ZS(c,d+(h-d)*n),y=ZS(c,d);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,h=i.y,c=o.x,d=o.y,"LR"!==e&&"RL"!==e||(r=u+(c-u)*n,a=h,s=c+(u-c)*n,l=d),"TB"!==e&&"BT"!==e||(r=u,a=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:r,cpy1:a,cpx2:s,cpy2:l}}var ab=$S,sb=ut();function lb(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,gb(e,n,t),(0,s.S6)(n,(function(n){(0,s.S6)(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,(0,s.WA)(ub,t))}))})),e.wrapMethod("cloneShallow",(0,s.WA)(hb,t)),(0,s.S6)(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,(0,s.WA)(cb,t))})),(0,s.hu)(n[e.dataType]===e)}function ub(t,e){if(fb(this)){var n=(0,s.l7)({},sb(this).datas);n[this.dataType]=e,gb(e,n,t)}else yb(e,this.dataType,sb(this).mainData,t);return e}function cb(t,e){return t.struct&&t.struct.update(),e}function hb(t,e){return(0,s.S6)(sb(e).datas,(function(n,i){n!==e&&yb(n.cloneShallow(),i,e,t)})),e}function db(t){var e=sb(this).mainData;return null==t||null==e?e:sb(e).datas[t]}function pb(){var t=sb(this).mainData;return null==t?[{data:t}]:(0,s.UI)((0,s.XP)(sb(t).datas),(function(e){return{type:e,data:sb(t).datas[e]}}))}function fb(t){return sb(t).mainData===t}function gb(t,e,n){sb(t).datas={},(0,s.S6)(e,(function(e,i){yb(e,i,t,n)}))}function yb(t,e,n,i){sb(n).datas[e]=t,sb(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=db,t.getLinkedDataAll=pb}var vb=lb,mb=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){s.mf(t)&&(n=e,e=t,t=null),t=t||{},s.HD(t)&&(t={order:t});var i,o=t.order||"preorder",r=this[t.attr||"children"];"preorder"===o&&(i=e.call(n,this));for(var a=0;!i&&a<r.length;a++)r[a].eachNode(t,e,n);"postorder"===o&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].getNodeById(t);if(o)return o}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].contains(t);if(o)return o}},t.prototype.getAncestors=function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),xb=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var o=new t(n),r=[],a=1;function l(t,e){var n=t.value;a=Math.max(a,s.kJ(n)?n.length:1),r.push(t);var i=new mb(et(t.name,""),o);e?_b(i,e):o.root=i,o._nodes.push(i);var u=t.children;if(u)for(var c=0;c<u.length;c++)l(u[c],i)}l(e),o.root.updateDepthAndHeight(0);var u=zp(r,{coordDimensions:["value"],dimensionsCount:a}).dimensions,c=new Vp(u,n);return c.initData(r),i&&i(c),vb({mainData:c,struct:o,structAttr:"tree"}),o.update(),o},t}();function _b(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var Sb=xb;function bb(t,e,n){if(t&&s.cq(e,t.type)>=0){var i=n.getData().tree.root,o=t.targetNode;if(s.HD(o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var r=t.targetNodeId;if(null!=r&&(o=i.getNodeById(r)))return{node:o}}}function wb(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function Mb(t,e){var n=wb(t);return s.cq(n,e)>=0}function Ib(t,e){var n=[];while(t){var i=t.dataIndex;
1n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var Tb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Xn(n,this,this.ecModel),o=Sb.createTree(e,this,r);function r(t){t.wrapMethod("getItemModel",(function(t,e){var n=o.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}var a=0;o.eachNode("preorder",(function(t){t.depth>a&&(a=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;return o.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(t),a=r.getValue(),s=r.name;while(r&&r!==o)s=r.parentNode.name+"."+s,r=r.parentNode;return gs("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Ib(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Us),Db=Tb;function Cb(t,e,n){var i,o=[t],r=[];while(i=o.pop())if(r.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)o.push(a[s])}while(i=r.pop())e(i,n)}function Ab(t,e){var n,i=[t];while(n=i.pop())if(e(n),n.isExpand){var o=n.children;if(o.length)for(var r=o.length-1;r>=0;r--)i.push(o[r])}}function kb(t,e){t.eachSeriesByType("tree",(function(t){Lb(t,e)}))}function Lb(t,e){var n=GS(t,e);t.layoutInfo=n;var i=t.get("layout"),o=0,r=0,a=null;"radial"===i?(o=2*Math.PI,r=Math.min(n.height,n.width)/2,a=BS((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=n.width,r=n.height,a=BS());var s=t.getData().tree.root,l=s.children[0];if(l){ES(s),Cb(l,VS,a),s.hierNode.modifier=-l.hierNode.prelim,Ab(l,zS);var u=l,c=l,h=l;Ab(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,f=0,g=0,y=0,v=0;if("radial"===i)f=o/(c.getLayout().x+d+p),g=r/(h.depth-1||1),Ab(l,(function(t){y=(t.getLayout().x+p)*f,v=(t.depth-1)*g;var e=ZS(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(g=r/(c.getLayout().x+d+p),f=o/(h.depth-1||1),Ab(l,(function(t){v=(t.getLayout().x+p)*g,y="LR"===m?(t.depth-1)*f:o-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)}))):"TB"!==m&&"BT"!==m||(f=o/(c.getLayout().x+d+p),g=r/(h.depth-1||1),Ab(l,(function(t){y=(t.getLayout().x+p)*f,v="TB"===m?(t.depth-1)*g:r-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)})))}}}function Pb(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),i=n.getModel("itemStyle").getItemStyle(),o=e.ensureUniqueItemVisual(t.dataIndex,"style");(0,s.l7)(o,i)}))}))}function Nb(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=e.coordinateSystem,o=kS(i,t,void 0,n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom)}))}))}function Rb(t){t.registerChartView(ab),t.registerSeriesModel(Db),t.registerLayout(kb),t.registerVisual(Pb),Nb(t)}var Ob=["treemapZoomToNode","treemapRender","treemapMove"];function Eb(t){for(var e=0;e<Ob.length;e++)t.registerAction({type:Ob[e],update:"updateView"},s.ZT);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var i=["treemapZoomToNode","treemapRootToNode"],o=bb(t,i,e);if(o){var r=e.getViewRoot();r&&(t.direction=Mb(r,o.node)?"rollUp":"drillDown"),e.resetViewRoot(o.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))}function Vb(t){var e=t.getData(),n=e.tree,i={};n.eachNode((function(e){var n=e;while(n&&n.depth>
11)n=n.parentNode;var o=jo(t.ecModel,n.name||n.dataIndex+"",i);e.setVisual("decal",o)}))}var zb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};Bb(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},r=new Xn({itemStyle:o},this,e);i=t.levels=Zb(i,e);var a=s.UI(i||[],(function(t){return new Xn(t,r,e)}),this),l=Sb.createTree(n,this,u);function u(t){t.wrapMethod("getItemModel",(function(t,e){var n=l.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||r,t}))}return l.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),r=i.getName(t);return gs("nameValue",{name:r,value:o})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Ib(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},s.l7(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=s.kW(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Vb(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Us);function Bb(t){var e=0;s.S6(t.children,(function(t){Bb(t);var n=t.value;s.kJ(n)&&(n=n[0]),e+=n}));var n=t.value;s.kJ(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),s.kJ(t.value)?t.value[0]=n:t.value=n}function Zb(t,e){var n=G(e.get("color")),i=G(e.get(["aria","decal","decals"]));if(n){var o,r;t=t||[],s.S6(t,(function(t){var e=new Xn(t),n=e.get("color"),i=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(o=!0),(e.get(["itemStyle","decal"])||i&&"none"!==i)&&(r=!0)}));var a=t[0]||(t[0]={});return o||(a.color=n.slice()),!r&&i&&(a.decal=i.slice()),t}}var Gb=zb,Wb=8,Fb=8,Hb=5,Ub=function(){function t(t){this.group=new Xs.Z,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var o=t.getModel("breadcrumb"),r=this.group;if(r.removeAll(),o.get("show")&&n){var a=o.getModel("itemStyle"),s=o.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,i),lo(r,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var o=et(i.getModel().get("name"),""),r=n.getTextRect(o),a=Math.max(r.width+2*Wb,e.emptyItemWidth);e.totalWidth+=a+Fb,e.renderList.push({node:i,text:o,width:a})}},t.prototype._renderContent=function(t,e,n,i,o,r,a){for(var l=0,u=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),h=ao(e.pos,e.box),d=e.totalWidth,p=e.renderList,f=i.getModel("itemStyle").getItemStyle(),g=p.length-1;g>=0;g--){var y=p[g],v=y.node,m=y.width,x=y.text;d>h.width&&(d-=m-u,m=u,x=null);var _=new rl.Z({shape:{points:Xb(l,0,m,c,g===p.length-1,0===g)},style:(0,s.ce)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Bt.ZP({style:bn(o,{text:x})}),textConfig:{position:"inside"},z2:1e4*te,onclick:(0,s.WA)(a,v)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=bn(r,{text:x}),_.ensureState("emphasis").style=f,Ye(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),Yb(_,t,v),l+=m+Fb}},t.prototype.remove=function(){this.group.removeAll()},t}();function Xb(t,e,n,i,o,r){var a=[[o?t:t-Hb,e],[t+n,e],[t+n,e+i],[o?t:t-Hb,e+i]];return!r&&a.splice(2,0,[t+n+Hb,e+i/2]),!o&&a.push([t,e+i/2]),a}function Yb(t,e,n){Gt(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.n
1ame,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Ib(n,e)}}var Jb=Ub,jb=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,o){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:o}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,o=this._storage.length;i<o;i++){var r=this._storage[i];r.el.animateTo(r.target,{duration:r.duration,delay:r.delay,easing:r.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function Kb(){return new jb}var qb=Xs.Z,$b=sl.Z,Qb=3,tw="label",ew="upperLabel",nw=10*te,iw=2*te,ow=3*te,rw=Ot([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),aw=function(t){var e=rw(t);return e.stroke=e.fill=e.lineWidth=null,e},sw=ut(),lw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=uw(),n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n,i){var o=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!((0,s.cq)(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var r=["treemapZoomToNode","treemapRootToNode"],a=bb(i,r,t),l=i&&i.type,u=t.layoutInfo,c=!this._oldTree,h=this._storage,d="treemapRootToNode"===l&&a&&h?{rootNodeGroup:h.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(u),f=t.get("animation"),g=this._doRender(p,t,d);!f||c||l&&"treemapZoomToNode"!==l&&"treemapRootToNode"!==l?g.renderFinally():this._doAnimation(p,g,t,d),this._resetController(n),this._renderBreadcrumb(t,n,a)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new qb,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,o=this._oldTree,r=uw(),a=uw(),l=this._storage,u=[];function c(t,i,o,s){return cw(e,a,l,n,r,u,t,i,o,s)}d(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var h=p(l);return this._oldTree=i,this._storage=a,{lastsForAnimation:r,willDeleteEls:h,renderFinally:f};function d(t,e,n,i,o){function r(t){return t.getId()}function a(r,a){var s=null!=r?t[r]:null,l=null!=a?e[a]:null,u=c(s,l,n,o);u&&d(s&&s.viewChildren||[],l&&l.viewChildren||[],u,i,o+1)}i?(e=t,(0,s.S6)(t,(function(t,e){!t.isRemoved()&&a(e,e)}))):new sp(e,t,r,r).add(a).update(a).remove((0,s.WA)(a,null)).execute()}function p(t){var e=uw();return t&&(0,s.S6)(t,(function(t,n){var i=e[n];(0,s.S6)(t,(function(t){t&&(i.push(t),sw(t).willDelete=!0)}))})),e}function f(){(0,s.S6)(h,(function(t){(0,s.S6)(t,(function(t){t.parent&&t.parent.remove(t)}))})),(0,s.S6)(u,(function(t){t.invisible=!0,t.dirty()}))}},e.prototype._doAnimation=function(t,e,n,i){var o=n.get("animationDurationUpdate"),r=n.get("animationEasing"),a=((0,s.mf)(o)?0:o)||0,l=((0,s.mf)(r)?null:r)||"cubicOut",u=Kb();(0,s.S6)(e.willDeleteEls,(function(t,e){(0,s.S6)(t,(function(t,n){if(!t.invisible){var o,r=t.parent,s=sw(r);if(i&&"drillDown"===i.direction)o=r===i.rootNodeGroup?{shape:{x:0,y:0,width:s.nodeWidth,height:s.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;s.willDelete||(c=s.nodeWidth/2,h=s.nodeHeight/2),o="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}o&&u.add(t,o,a,0,l)}}))})),(0,s.S6)(this._storage,(function(t,n){(0,s.S6)(t,(function(t,i){var o=e.lastsForAnimation[n][i],r={};o&&(t instanceof Xs.Z?null!=o.oldX&&(r.x=t.x,r.y=t.y,t.x=o.oldX,t.y=o.oldY):(o.oldShape&&(r.shape=(0,s.l7)({},t.shape),t.setShape(o.oldShape)),o.fadein?(t.setStyle("opacity",0),r.style={opacity:1}):1!==t.style.opacity&&(r.style={opacity:1})),u.add(t,r,a,0,l))}))}),this),this._state="animating",u.finished((0,s.ak)((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||(e=this._controller=new i_(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",(0,s.ak)(this._onPan,this)),e.on("zoom",(0,s.ak)(this._onZoom,this)));var n=new $n.Z(0,0,t.getWidth(),t.getHeight());
1e.setPointerChecker((function(t,e,i){return n.contain(e,i)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>Qb||Math.abs(t.dy)>Qb)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var r=new $n.Z(o.x,o.y,o.width,o.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=qs.Ue();qs.Iu(s,s,[-e,-n]),qs.bA(s,s,[t.scale,t.scale]),qs.Iu(s,s,[e,n]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var o=i.node;if(o.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var r=o.hostTree.data.getItemModel(o.dataIndex),a=r.get("link",!0),s=r.get("target",!0)||"blank";a&&to(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Jb(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(Mb(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=uw(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var o=this._storage.background[i.getRawIndex()];if(o){var r=o.transformCoordToLocal(t,e),a=o.shape;if(!(a.x<=r[0]&&r[0]<=a.x+a.width&&a.y<=r[1]&&r[1]<=a.y+a.height))return!1;n={node:i,offsetX:r[0],offsetY:r[1]}}}),this),n},e.type="treemap",e}(ou);function uw(){return{nodeGroup:[],background:[],content:[]}}function cw(t,e,n,i,o,r,a,l,u,c){if(a){var h=a.getLayout(),d=t.getData(),p=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),h&&h.isInView){var f=h.width,g=h.height,y=h.borderWidth,v=h.invisible,m=a.getRawIndex(),x=l&&l.getRawIndex(),_=a.viewChildren,S=h.upperHeight,b=_&&_.length,w=p.getModel("itemStyle"),M=p.getModel(["emphasis","itemStyle"]),I=p.getModel(["blur","itemStyle"]),T=p.getModel(["select","itemStyle"]),D=w.get("borderRadius")||0,C=G("nodeGroup",qb);if(C){if(u.add(C),C.x=h.x||0,C.y=h.y||0,C.markRedraw(),sw(C).nodeWidth=f,sw(C).nodeHeight=g,h.isAboveViewRoot)return C;var A=G("background",$b,c,iw);A&&E(C,A,b&&h.upperLabelHeight);var k=p.getModel("emphasis"),L=k.get("focus"),P=k.get("blurScope"),N=k.get("disabled"),R="ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():L;if(b)Qe(C)&&$e(C,!1),A&&($e(A,!N),d.setItemGraphicEl(a.dataIndex,A),Je(A,R,P));else{var O=G("content",$b,c,ow);O&&V(C,O),A.disableMorphing=!0,A&&Qe(A)&&$e(A,!1),$e(C,!N),d.setItemGraphicEl(a.dataIndex,C),Je(C,R,P)}return C}}}function E(e,n,i){var o=Gt(n);if(o.dataIndex=a.dataIndex,o.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:f,height:g,r:D}),v)z(n);else{n.invisible=!1;var r=a.getVisual("style"),s=r.stroke,l=aw(w);l.fill=s;var u=rw(M);u.fill=M.get("borderColor");var c=rw(I);c.fill=I.get("borderColor");var h=rw(T);if(h.fill=T.get("borderColor"),i){var d=f-2*y;B(n,s,r.opacity,{x:y,y:0,width:d,height:S})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,Ie(n)}e.add(n)}
1function V(e,n){var i=Gt(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var o=Math.max(f-2*y,0),r=Math.max(g-2*y,0);if(n.culling=!0,n.setShape({x:y,y:y,width:o,height:r,r:D}),v)z(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=aw(w);u.fill=l,u.decal=s.decal;var c=rw(M),h=rw(I),d=rw(T);B(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,Ie(n)}e.add(n)}function z(t){!t.invisible&&r.push(t)}function B(e,n,i,o){var r=p.getModel(o?ew:tw),l=et(p.get("name"),null),u=r.getShallow("show");_n(e,Sn(p,o?ew:tw),{defaultText:u?l:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var c=e.getTextContent();if(c){var d=c.style,f=(0,s.MY)(d.padding||0);o&&(e.setTextConfig({layoutRect:o}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var t=Math.max((o?o.width:e.shape.width)-f[1]-f[3],0),n=Math.max((o?o.height:e.shape.height)-f[0]-f[2],0);d.width===t&&d.height===n||c.setStyle({width:t,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",Z(d,o,h);var g=c.getState("emphasis");Z(g?g.style:null,o,h)}}function Z(e,n,i){var o=e?e.text:null;if(!n&&i.isLeafRoot&&null!=o){var r=t.get("drillDownIcon",!0);e.text=r?r+" "+o:o}}function G(t,i,r,a){var s=null!=x&&n[t][x],l=o[t];return s?(n[t][x]=null,W(l,s)):v||(s=new i,s instanceof H_.ZP&&(s.z2=hw(r,a)),F(l,s)),e[t][m]=s}function W(t,e){var n=t[m]={};e instanceof qb?(n.oldX=e.x,n.oldY=e.y):n.oldShape=(0,s.l7)({},e.shape)}function F(t,e){var n=t[m]={},r=a.parentNode,s=e instanceof Xs.Z;if(r&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=o.background[r.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function hw(t,e){return t*nw+e}var dw=lw,pw=s.S6,fw=s.Kn,gw=-1,yw=function(){function t(e){var n=e.mappingMethod,i=e.type,o=this.option=s.d9(e);this.type=i,this.mappingMethod=n,this._normalizeData=Cw[n];var r=t.visualHandlers[i];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._normalizedToVisual=r._normalizedToVisual[n],"piecewise"===n?(xw(o),vw(o)):"category"===n?o.categories?mw(o):xw(o,!0):(s.hu("linear"!==n||o.dataExtent),xw(o))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return s.ak(this._normalizeData,this)},t.listVisualTypes=function(){return s.XP(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){s.Kn(t)?s.S6(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var o,r=s.kJ(e)?[]:s.Kn(e)?{}:(o=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);o?r=a:r[e]=a})),r},t.retrieveVisuals=function(e){var n,i={};return e&&pw(t.visualHandlers,(function(t,o){e.hasOwnProperty(o)&&(i[o]=e[o],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(s.kJ(t))t=t.slice();else{if(!fw(t))return[];var e=[];pw(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,o=1/0,r=0,a=e.length;r<a;r++){var l=e[r].value;if(null!=l){if(l===t||s.HD(l)&&l===t+"")return r;n&&d(l,r)}}for(r=0,a=e.length;r<a;r++){var u=e[r],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(Aw(h[1],t,c[1]))return r}else if(c[1]===1/0){if(Aw(h[0],c[0],t))return r}else if(Aw(h[0],c[0],t)&&Aw(h[1],t,c[1]))return r;n&&d(c[0],r),n&&d(c[1],r)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function d(e,n){var r=Math.abs(e-t);r<o&&(o=r,i=n)}},t.visualHandlers={color:{applyVisual:bw("color"),getColorMapper:function(){var t=this.option;return s.ak("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),ww.call(this,t)}:function(e,n,i){var o=!!i;return!n&&(e=this._normalizeData(e)),i=Ft.Uu(e,t.parsedVisual,i),o?i:Ft.Pz(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Ft.Pz(Ft.Uu(t,this.option.parsedVisual),"rgba")}
1,category:ww,piecewise:function(t,e){var n=Tw.call(this,e);return null==n&&(n=Ft.Pz(Ft.Uu(t,this.option.parsedVisual),"rgba")),n},fixed:Mw}},colorHue:_w((function(t,e){return Ft.ox(t,e)})),colorSaturation:_w((function(t,e){return Ft.ox(t,null,e)})),colorLightness:_w((function(t,e){return Ft.ox(t,null,null,e)})),colorAlpha:_w((function(t,e){return Ft.m8(t,e)})),decal:{applyVisual:bw("decal"),_normalizedToVisual:{linear:null,category:ww,piecewise:null,fixed:null}},opacity:{applyVisual:bw("opacity"),_normalizedToVisual:Iw([0,1])},liftZ:{applyVisual:bw("liftZ"),_normalizedToVisual:{linear:Mw,category:Mw,piecewise:Mw,fixed:Mw}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:Sw,category:ww,piecewise:function(t,e){var n=Tw.call(this,e);return null==n&&(n=Sw.call(this,t)),n},fixed:Mw}},symbolSize:{applyVisual:bw("symbolSize"),_normalizedToVisual:Iw([0,1])}},t}();function vw(t){var e=t.pieceList;t.hasSpecialVisual=!1,s.S6(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function mw(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(pw(e,(function(t,e){n[t]=e})),!s.kJ(i)){var o=[];s.Kn(i)?pw(i,(function(t,e){var i=n[e];o[null!=i?i:gw]=t})):o[gw]=i,i=Dw(t,o)}for(var r=e.length-1;r>=0;r--)null==i[r]&&(delete n[e[r]],e.pop())}function xw(t,e){var n=t.visual,i=[];s.Kn(n)?pw(n,(function(t){i.push(t)})):null!=n&&i.push(n);var o={color:1,symbol:1};e||1!==i.length||o.hasOwnProperty(t.type)||(i[1]=i[0]),Dw(t,i)}function _w(t){return{applyVisual:function(e,n,i){var o=this.mapValueToVisual(e);i("color",t(n("color"),o))},_normalizedToVisual:Iw([0,1])}}function Sw(t){var e=this.option.visual;return e[Math.round(f(t,[0,1],[0,e.length-1],!0))]||{}}function bw(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function ww(t){var e=this.option.visual;return e[this.option.loop&&t!==gw?t%e.length:t]}function Mw(){return this.option.visual[0]}function Iw(t){return{linear:function(e){return f(e,t,this.option.visual,!0)},category:ww,piecewise:function(e,n){var i=Tw.call(this,n);return null==i&&(i=f(e,t,this.option.visual,!0)),i},fixed:Mw}}function Tw(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=yw.findPieceIndex(t,n),o=n[i];if(o&&o.visual)return o.visual[this.type]}}function Dw(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=s.UI(e,(function(t){var e=Ft.Qc(t);return e||[0,0,0,1]}))),e}var Cw={linear:function(t){return f(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=yw.findPieceIndex(t,e,!0);if(null!=n)return f(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?gw:e},fixed:s.ZT};function Aw(t,e,n){return t?e<=n:e<n}var kw=yw,Lw="itemStyle",Pw=ut(),Nw={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||Rw(n,{},t.getViewRoot().getAncestors(),t)}};function Rw(t,e,n,i){var o=t.getModel(),r=t.getLayout(),a=t.hostTree.data;if(r&&!r.invisible&&r.isInView){var l,u=o.getModel(Lw),c=Ow(u,e,i),h=a.ensureUniqueItemVisual(t.dataIndex,"style"),d=u.get("borderColor"),p=u.get("borderColorSaturation");null!=p&&(l=Ew(c),d=Vw(p,l)),h.stroke=d;var f=t.viewChildren;if(f&&f.length){var g=Bw(t,o,r,u,c,f);(0,s.S6)(f,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var r=Gw(o,c,t,e,g,i);Rw(t,r,n,i)}}))}else l=Ew(c),h.fill=l}}function Ow(t,e,n){var i=(0,s.l7)({},e),o=n.designatedVisualItemStyle;return(0,s.S6)(["color","colorAlpha","colorSaturation"],(function(n){o[n]=e[n];var r=t.get(n);o[n]=null,null!=r&&(i[n]=r)})),i}function Ew(t){var e=zw(t,"color");if(e){var n=zw(t,"colorAlpha"),i=zw(t,"colorSaturation");return i&&(e=(0,Ft.ox)(e,null,null,i)),n&&(e=(0,Ft.m8)(e,n)),e}}function Vw(t,e){return null!=e?(0,Ft.ox)(e,null,null,t):null}function zw(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function Bw(t,e,n,i,o,r){if(r&&r.length){var a=Zw(e,"color")||null!=o.color&&"none"!==o.color&&(Zw(e,"colorAlpha")||Zw(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);
1var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new kw(h);return Pw(d).drColorMappingBy=c,d}}}function Zw(t,e){var n=t.get(e);return(0,s.kJ)(n)&&n.length?{name:e,range:n}:null}function Gw(t,e,n,i,o,r){var a=(0,s.l7)({},e);if(o){var l=o.type,u="color"===l&&Pw(o).drColorMappingBy,c="index"===u?i:"id"===u?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[l]=o.mapValueToVisual(c)}return a}var Ww=Math.max,Fw=Math.min,Hw=s.Jv,Uw=s.S6,Xw=["itemStyle","borderWidth"],Yw=["itemStyle","gapWidth"],Jw=["upperLabel","show"],jw=["upperLabel","height"],Kw={seriesType:"treemap",reset:function(t,e,n,i){var o=n.getWidth(),r=n.getHeight(),a=t.option,l=so(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=a.size||[],c=g(Hw(l.width,u[0]),o),h=g(Hw(l.height,u[1]),r),d=i&&i.type,p=["treemapZoomToNode","treemapRootToNode"],f=bb(i,p,t),y="treemapRender"===d||"treemapMove"===d?i.rootRect:null,v=t.getViewRoot(),m=wb(v);if("treemapMove"!==d){var x="treemapZoomToNode"===d?oM(t,f,v,c,h):y?[y.width,y.height]:[c,h],_=a.sort;_&&"asc"!==_&&"desc"!==_&&(_="desc");var S={squareRatio:a.squareRatio,sort:_,leafDepth:a.leafDepth};v.hostTree.clearLayouts();var b={x:0,y:0,width:x[0],height:x[1],area:x[0]*x[1]};v.setLayout(b),qw(v,S,!1,0),b=v.getLayout(),Uw(m,(function(t,e){var n=(m[e+1]||v).getValue();t.setLayout(s.l7({dataExtent:[n,n],borderWidth:0,upperHeight:0},b))}))}var w=t.getData().tree.root;w.setLayout(rM(l,y,f),!0),t.setLayoutInfo(l),aM(w,new $n.Z(-l.x,-l.y,o,r),m,v,0)}};function qw(t,e,n,i){var o,r;if(!t.isRemoved()){var a=t.getLayout();o=a.width,r=a.height;var s=t.getModel(),l=s.get(Xw),u=s.get(Yw)/2,c=sM(s),h=Math.max(l,c),d=l-u,p=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),o=Ww(o-2*d,0),r=Ww(r-d-p,0);var f=o*r,g=$w(t,s,f,e,n,i);if(g.length){var y={x:d,y:p,width:o,height:r},v=Fw(o,r),m=1/0,x=[];x.area=0;for(var _=0,S=g.length;_<S;){var b=g[_];x.push(b),x.area+=b.getLayout().area;var w=nM(x,v,e.squareRatio);w<=m?(_++,m=w):(x.area-=x.pop().getLayout().area,iM(x,v,y,u,!1),v=Fw(y.width,y.height),x.length=x.area=0,m=1/0)}if(x.length&&iM(x,v,y,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(_=0,S=g.length;_<S;_++)qw(g[_],e,n,i+1)}}}function $w(t,e,n,i,o,r){var a=t.children||[],l=i.sort;"asc"!==l&&"desc"!==l&&(l=null);var u=null!=i.leafDepth&&i.leafDepth<=r;if(o&&!u)return t.viewChildren=[];a=s.hX(a,(function(t){return!t.isRemoved()})),tM(a,l);var c=eM(e,a,l);if(0===c.sum)return t.viewChildren=[];if(c.sum=Qw(e,n,c.sum,l,a),0===c.sum)return t.viewChildren=[];for(var h=0,d=a.length;h<d;h++){var p=a[h].getValue()/c.sum*n;a[h].setLayout({area:p})}return u&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:c.dataExtent},!0),a}function Qw(t,e,n,i,o){if(!i)return n;for(var r=t.get("visibleMin"),a=o.length,s=a,l=a-1;l>=0;l--){var u=o["asc"===i?a-l-1:l].getValue();u/n*e<r&&(s=l,n-=u)}return"asc"===i?o.splice(0,a-s):o.splice(s,a-s),n}function tM(t,e){return e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i})),t}function eM(t,e,n){for(var i=0,o=0,r=e.length;o<r;o++)i+=e[o].getValue();var a,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],Uw(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function nM(t,e,n){for(var i=0,o=1/0,r=0,a=void 0,s=t.length;r<s;r++)a=t[r].getLayout().area,a&&(a<o&&(o=a),a>i&&(i=a));var l=t.area*t.area,u=e*e*n;return l?Ww(u*i/l,l/(u*o)):1/0}function iM(t,e,n,i,o){var r=e===n.width?0:1,a=1-r,s=["x","y"],l=["width","height"],u=n[s[r]],c=e?t.area/e:0;(o||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;h<d;h++){var p=t[h],f={},g=c?p.getLayout().area/c:0,y=f[l[a]]=Ww(c-2*i,0),v=n[s[r]]+n[l[r]]-u,m=h===d-1||v<g?v:g,x=f[l[r]]=Ww(m-2*i,0);
1f[s[a]]=n[s[a]]+Fw(i,y/2),f[s[r]]=u+Fw(i,x/2),u+=m,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function oM(t,e,n,i,o){var r,a=(e||{}).node,s=[i,o];if(!a||a===n)return s;var l=i*o,u=l*t.option.zoomToNodeRatio;while(r=a.parentNode){for(var c=0,h=r.children,d=0,p=h.length;d<p;d++)c+=h[d].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=r.getModel(),y=g.get(Xw),v=Math.max(y,sM(g));u+=4*y*y+(3*y+v)*Math.pow(u,.5),u>w&&(u=w),a=r}u<l&&(u=l);var m=Math.pow(u/l,.5);return[i*m,o*m]}function rM(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var o=n.node,r=o.getLayout();if(!r)return i;var a=[r.width/2,r.height/2],s=o;while(s){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function aM(t,e,n,i,o){var r=t.getLayout(),a=n[o],s=a&&a===t;if(!(a&&!s||o===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(r),isAboveViewRoot:s},!0);var l=new $n.Z(e.x-r.x,e.y-r.y,e.width,e.height);Uw(t.viewChildren||[],(function(t){aM(t,l,n,i,o+1)}))}}function sM(t){return t.get(Jw)?t.get(jw):0}function lM(t){t.registerSeriesModel(Gb),t.registerChartView(dw),t.registerVisual(Nw),t.registerLayout(Kw),Eb(t)}function uM(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph(),o=i.data,r=n.mapArray(n.getName);o.filterSelf((function(t){var n=o.getItemModel(t),i=n.getShallow("category");if(null!=i){(0,s.hj)(i)&&(i=r[i]);for(var a=0;a<e.length;a++)if(!e[a].isSelected(i))return!1}return!0}))}))}function cM(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),o={};n.each((function(i){var r=n.getName(i);o["ec-"+r]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(r,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t),r=e.getShallow("category");if(null!=r){(0,s.HD)(r)&&(r=o["ec-"+r]);var a=n.getItemVisual(r,"style"),l=i.ensureUniqueItemVisual(t,"style");(0,s.l7)(l,a);for(var u=["symbol","symbolSize","symbolKeepAspect"],c=0;c<u.length;c++)i.setItemVisual(t,u[c],n.getItemVisual(r,u[c]))}}))}))}function hM(t){return t instanceof Array||(t=[t,t]),t}function dM(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=hM(t.get("edgeSymbol")),o=hM(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",o&&o[0]),n.setVisual("toSymbolSize",o&&o[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),o=e.getEdgeByIndex(t),r=hM(i.get
1Shallow("symbol",!0)),a=hM(i.getShallow("symbolSize",!0)),l=i.getModel("lineStyle").getLineStyle(),u=n.ensureUniqueItemVisual(t,"style");switch((0,s.l7)(u,l),u.stroke){case"source":var c=o.node1.getVisual("style");u.stroke=c&&c.fill;break;case"target":c=o.node2.getVisual("style");u.stroke=c&&c.fill;break}r[0]&&o.setVisual("fromSymbol",r[0]),r[1]&&o.setVisual("toSymbol",r[1]),a[0]&&o.setVisual("fromSymbolSize",a[0]),a[1]&&o.setVisual("toSymbolSize",a[1])}))}))}var pM="--\x3e",fM=function(t){return t.get("autoCurveness")||null},gM=function(t,e){var n=fM(t),i=20,o=[];if(s.hj(n))i=n;else if(s.kJ(n))return void(t.__curvenessList=n);e>i&&(i=e);var r=i%2?i+2:i+3;o=[];for(var a=0;a<r;a++)o.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=o},yM=function(t,e,n){var i=[t.id,t.dataIndex].join("."),o=[e.id,e.dataIndex].join(".");return[n.uid,i,o].join(pM)},vM=function(t){var e=t.split(pM);return[e[0],e[2],e[1]].join(pM)},mM=function(t,e){var n=yM(t.node1,t.node2,e);return e.__edgeMap[n]},xM=function(t,e){var n=_M(yM(t.node1,t.node2,e),e),i=_M(yM(t.node2,t.node1,e),e);return n+i},_M=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function SM(t){fM(t)&&(t.__curvenessList=[],t.__edgeMap={},gM(t))}function bM(t,e,n,i){if(fM(n)){var o=yM(t,e,n),r=n.__edgeMap,a=r[vM(o)];r[o]&&!a?r[o].isForward=!0:a&&r[o]&&(a.isForward=!0,r[o].isForward=!1),r[o]=r[o]||[],r[o].push(i)}}function wM(t,e,n,i){var o=fM(e),r=s.kJ(o);if(!o)return null;var a=mM(t,e);if(!a)return null;for(var l=-1,u=0;u<a.length;u++)if(a[u]===n){l=u;break}var c=xM(t,e);gM(e,c),t.lineStyle=t.lineStyle||{};var h=yM(t.node1,t.node2,e),d=e.__curvenessList,p=r||c%2?0:1;if(a.isForward)return d[p+l];var f=vM(h),g=_M(f,e),y=d[l+g+p];return i?r?o&&0===o[0]?(g+p)%2?y:-y:((g%2?0:1)+p)%2?y:-y:(g+p)%2?y:-y:d[l+g+p]}function MM(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),IM(n,t)}}function IM(t,e){t.eachEdge((function(t,n){var i=s.R1(t.getModel().get(["lineStyle","curveness"]),-wM(t,e,n,!0),0),o=$s.d9(t.node1.getLayout()),r=$s.d9(t.node2.getLayout()),a=[o,r];+i&&a.push([(o[0]+r[0])/2-(o[1]-r[1])*i,(o[1]+r[1])/2-(r[0]-o[0])*i]),t.setLayout(a)}))}function TM(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),o=[];(0,s.S6)(n.dimensions,(function(t){o=o.concat(i.mapDimensionsAll(t))}));for(var r=0;r<i.count();r++){for(var a=[],l=!1,u=0;u<o.length;u++){var c=i.get(o[u],r);isNaN(c)||(l=!0),a.push(c)}l?i.setItemLayout(r,n.dataToPoint(a)):i.setItemLayout(r,[NaN,NaN])}IM(i.graph,t)}else e&&"none"!==e||MM(t)}))}function DM(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX,o=e.getZoom(),r=(o-1)*n+1;return r/i}function CM(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var AM=Math.PI,kM=[];function LM(t,e,n,i){var o=t.coordinateSystem;if(!o||"view"===o.type){var r=o.getBoundingRect(),a=t.getData(),l=a.graph,u=r.width/2+r.x,c=r.height/2+r.y,h=Math.min(r.width,r.height)/2,d=a.count();if(a.setLayout({cx:u,cy:c}),d){if(n){var p=o.pointToData(i),f=p[0],g=p[1],y=[f-u,g-c];$s.Fv(y,y),$s.bA(y,y,h),n.setLayout([u+y[0],c+y[1]],!0);var v=t.get(["circular","rotateLabel"]);NM(n,v,u,c)}PM[e](t,l,a,h,u,c,d),l.eachEdge((function(e,n){var i,o=s.R1(e.getModel().get(["lineStyle","curveness"]),wM(e,t,n),0),r=$s.d9(e.node1.getLayout()),a=$s.d9(e.node2.getLayout()),l=(r[0]+a[0])/2,h=(r[1]+a[1])/2;+o&&(o*=3,i=[u*o+l*(1-o),c*o+h*(1-o)]),e.setLayout([r,a,i])}))}}}var PM={value:function(t,e,n,i,o,r,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+o,i*Math.sin(s)+r]),s+=n}))},symbolSize:function(t,e,n,i,o,r,a){var s=0;kM.length=a;var l=DM(t);e.eachNode((function(t){var e=CM(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=AM/2),kM[t.dataIndex]=n,s+=2*n}));var u=(2*AM-s)/a/2,c=0;e.eachNode((function(t){var e=u+kM[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(c)+o,i*Math.sin(c)+r]),c+=e}))}};function NM(t,e,n,i){var o=t.getGraphicEl();if(o){var r=t.getModel(),a=r.get(["label","rotate"])||0,l=o.getSymbolPath();if(e){var u=t.getLayout(),c=Math.atan2(u[1]-i,u[0]-n);c<0&&(c=2*Math.PI+c);var h=u[0]<n;h&&(c-=Math.PI);var d=h?"left":"right";l.setTextConfig({rotation:-c,position:d,origin:"center"});var p=l.ensureState("emphasis");s.l7(p.textConfig||(p.textConfig={}),{position:d})}else l.setTextConfig({rotation:a*=Math.PI/180})}}function RM(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&LM(t,"
1symbolSize")}))}var OM=$s.od;function EM(t,e,n){for(var i=t,o=e,r=n.rect,a=r.width,s=r.height,l=[r.x+a/2,r.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=$s.Ue(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=$s.d9(h.p),h.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){p=t},step:function(t){d&&d(i,o);for(var e=[],n=i.length,r=0;r<o.length;r++){var a=o[r];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;$s.lu(e,c.p,s.p);var h=$s.Zh(e)-a.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),$s.Fv(e,e),!s.fixed&&OM(s.p,s.p,e,f*h*g),!c.fixed&&OM(c.p,c.p,e,-(1-f)*h*g)}}for(r=0;r<n;r++){var y=i[r];y.fixed||($s.lu(e,l,y.p),OM(y.p,y.p,e,u*g))}for(r=0;r<n;r++){s=i[r];for(var v=r+1;v<n;v++){c=i[v];$s.lu(e,c.p,s.p);h=$s.Zh(e);0===h&&($s.t8(e,Math.random()-.5,Math.random()-.5),h=1);var m=(s.rep+c.rep)/h/h;!s.fixed&&OM(s.pp,s.pp,e,m),!c.fixed&&OM(c.pp,c.pp,e,-m)}}var x=[];for(r=0;r<n;r++){y=i[r];y.fixed||($s.lu(x,y.p,y.pp),OM(y.p,y.p,x,g),$s.JG(y.pp,y.p))}g*=.992;var _=g<.01;p&&p(i,o,_),t&&t(_)}}}function VM(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),o=i.data,r=i.edgeData,a=t.getModel("force"),l=a.get("initLayout");t.preservedPoints?o.each((function(t){var e=o.getId(t);o.setItemLayout(t,n[e]||[NaN,NaN])})):l&&"none"!==l?"circular"===l&&LM(t,"value"):MM(t);var u=o.getDataExtent("value"),c=r.getDataExtent("value"),h=a.get("repulsion"),d=a.get("edgeLength"),p=s.kJ(h)?h:[h,h],g=s.kJ(d)?d:[d,d];g=[g[1],g[0]];var y=o.mapArray("value",(function(t,e){var n=o.getItemLayout(e),i=f(t,u,p);return isNaN(i)&&(i=(p[0]+p[1])/2),{w:i,rep:i,fixed:o.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),v=r.mapArray("value",(function(e,n){var o=i.getEdgeByIndex(n),r=f(e,c,g);isNaN(r)&&(r=(g[0]+g[1])/2);var a=o.getModel(),l=s.R1(o.getModel().get(["lineStyle","curveness"]),-wM(o,t,n,!0),0);return{n1:y[o.node1.dataIndex],n2:y[o.node2.dataIndex],d:r,curveness:l,ignoreForceLayout:a.get("ignoreForceLayout")}})),m=e.getBoundingRect(),x=EM(y,v,{rect:m,gravity:a.get("gravity"),friction:a.get("friction")});x.beforeStep((function(t,e){for(var n=0,o=t.length;n<o;n++)t[n].fixed&&$s.JG(t[n].p,i.getNodeByIndex(n).getLayout())})),x.afterStep((function(t,e,r){for(var a=0,s=t.length;a<s;a++)t[a].fixed||i.getNodeByIndex(a).setLayout(t[a].p),n[o.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=i.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,d=u.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],$s.JG(d[0],c),$s.JG(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),t.forceLayout=x,t.preservedPoints=n,x.step()}else t.forceLayout=null}))}function zM(t,e,n){var i=(0,s.l7)(t.getBoxLayoutParams(),{aspect:n});return so(i,{width:e.getWidth(),height:e.getHeight()})}function BM(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var i=t.get("coordinateSystem");if(!i||"view"===i){var o=t.getData(),r=o.mapArray((function(t){var e=o.getItemModel(t);return[+e.get("x"),+e.get("y")]})),a=[],s=[];jS.zk(r,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=zM(t,e,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],h=s[1]-a[1],d=u.width,p=u.height,f=t.coordinateSystem=new yS;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,h),f.setViewRect(u.x,u.y,d,p),f.setCenter(t.get("center"),e),f.setZoom(t.get("zoom")),n.push(f)}})),n}var ZM=ll.Z.prototype,GM=ul.Z.prototype,WM=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}(0,r.ZT)(e,t)})(WM);function FM(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var HM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return(0,r.ZT)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WM},e.prototype.buildPath=function(t,e){FM(e)?ZM.buildPath.call(this,t,e):GM.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return FM(this.shape)?ZM.pointAt.call(this,t):GM.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=FM(e)?[e.x2-e.x1,e.y2-e.y1]:GM.tangentAt.call(this,t);return $s.Fv(n,n)},e}(Ht.ZP),UM=HM,XM=["fromSymbol","toSymbol"];function YM(t){return"_"+t+"Type"}function JM(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var o=e.getItemVisual(n,t+"Size"),r=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=yc(o),u=vc(a||0,l);return i+l+u+(r||"")+(s||"")}function jM(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var o=e.getItemVisual(n,t+"Size"),r=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=yc(o),u=vc(a||0,l),c=gc(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==r||isNaN(r)?void 0:+r*Math.PI/180||0,c.name=t,c}}function KM(t){var e=new UM({name:"line",subPixelOptimize:!0});return qM(e.shape,t),e}function qM(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var $M=function(t){function e(e,n,i){var o=t.call(this)||this;return o._createLine(e,n,i),o}return(0,r.ZT)(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,o=t.getItemLayout(e),r=KM(o);r.shape.percent=0,cn(r,{shape:{percent:1}},i,e),this.add(r),(0,s.S6)(XM,(function(n){var i=jM(n,t,e);this.add(i),this[YM(n)]=JM(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,o=this.childOfName("line"),r=t.getItemLayout(e),a={shape:{}};qM(a.shape,r),un(o,a,i,e),(0,s.S6)(XM,(function(n){var i=JM(n,t,e),o=YM(n);if(this[o]!==i){this.remove(this.childOfName(n));var r=jM(n,t,e);this.add(r)}this[o]=i}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,o=this.childOfName("line"),r=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,l=n&&n.selectLineStyle,u=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,h=n&&n.focus,d=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(e),f=p.getModel("emphasis");r=f.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),l=p.getModel(["select","lineStyle"]).getLineStyle(),c=f.get("disabled"),h=f.get("focus"),d=f.get("blurScope"),u=Sn(p)}var g=t.getItemVisual(e,"style"),v=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=r,o.ensureState("blur").style=a,o.ensureState("select").style=l,(0,s.S6)(XM,(function(t){var e=this.childOfName(t);if(e){e.setColor(v),e.style.opacity=g.opacity;for(var n=0;n<$t.length;n++){var i=$t[n],r=o.getState(i);if(r){var a=r.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var m=i.getRawValue(e);_n(this,u,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:v||"#000",defaultOpacity:g.opacity,defaultText:(null==m?t.getName(e):isFinite(m)?y(m):m)+""});var x=this.getTextContent();if(x){var _=u.normal;
1x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=_.get("position")||"middle";var S=_.get("distance");(0,s.kJ)(S)||(S=[S,S]),x.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Ye(this,h,d,c)},e.prototype.highlight=function(){Ce(this)},e.prototype.downplay=function(){Ae(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");qM(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){var o=1,r=this.parent;while(r)r.scaleX&&(o/=r.scaleX),r=r.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=$s.lu([],u,l);if($s.Fv(c,c),e&&(e.setPosition(l),w(e,0),e.scaleX=e.scaleY=o*s,e.markRedraw()),n&&(n.setPosition(u),w(n,1),n.scaleX=n.scaleY=o*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,f=p[0]*o,g=p[1]*o,y=s/2,v=a.tangentAt(y),m=[v[1],-v[0]],x=a.pointAt(y);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var _=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var S=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(S=Math.PI+S),i.rotation=S}var b=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":b=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":b=g,d="top";break;default:b=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*f+u[0],i.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+b,h=v[0]<0?"right":"left",i.originX=-f*_,i.originY=-b;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+b,h="center",i.originY=-b;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+b,h=v[0]>=0?"right":"left",i.originX=f*_,i.originY=-b;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function w(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(Xs.Z),QM=$M,tI=function(){function t(t){this.group=new Xs.Z,this._LineCtor=t||QM}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,o=n._lineData;n._lineData=t,o||i.removeAll();var r=nI(t);
1t.diff(o).add((function(n){e._doAdd(t,n,r)})).update((function(n,i){e._doUpdate(o,t,i,n,r)})).remove((function(t){i.remove(o.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=nI(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||eI(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(oI(o)){var r=new this._LineCtor(e,i,this._seriesScope);r.traverse(n),this.group.add(r),e.setItemGraphicEl(i,r),this._progressiveEls.push(r)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){jl(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(oI(i)){var o=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,o),this.group.add(o)}},t.prototype._doUpdate=function(t,e,n,i,o){var r=t.getItemGraphicEl(n);oI(e.getItemLayout(i))?(r?r.updateData(e,i,o):r=new this._LineCtor(e,i,o),e.setItemGraphicEl(i,r),this.group.add(r)):this.group.remove(r)},t}();function eI(t){return t.animators&&t.animators.length>0}function nI(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Sn(e)}}function iI(t){return isNaN(t[0])||isNaN(t[1])}function oI(t){return t&&!iI(t[0])&&!iI(t[1])}var rI=tI,aI=[],sI=[],lI=[],uI=dd.Zm,cI=$s.WU,hI=Math.abs;function dI(t,e,n){for(var i,o=t[0],r=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){aI[0]=uI(o[0],r[0],a[0],c),aI[1]=uI(o[1],r[1],a[1],c);var h=hI(cI(aI,e)-l);h<s&&(s=h,i=c)}for(var d=0;d<32;d++){var p=i+u;sI[0]=uI(o[0],r[0],a[0],i),sI[1]=uI(o[1],r[1],a[1],i),lI[0]=uI(o[0],r[0],a[0],p),lI[1]=uI(o[1],r[1],a[1],p);h=cI(sI,e)-l;if(hI(h)<.01)break;var f=cI(lI,e)-l;u/=2,h<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function pI(t,e){var n=[],i=dd.Lx,o=[[],[],[]],r=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[$s.d9(l[0]),$s.d9(l[1])],l[2]&&l.__original.push($s.d9(l[2])));var h=l.__original;if(null!=l[2]){if($s.JG(o[0],h[0]),$s.JG(o[1],h[2]),$s.JG(o[2],h[1]),u&&"none"!==u){var d=CM(t.node1),p=dI(o,h[0],d*e);i(o[0][0],o[1][0],o[2][0],p,n),o[0][0]=n[3],o[1][0]=n[4],i(o[0][1],o[1][1],o[2][1],p,n),o[0][1]=n[3],o[1][1]=n[4]}if(c&&"none"!==c){d=CM(t.node2),p=dI(o,h[1],d*e);i(o[0][0],o[1][0],o[2][0],p,n),o[1][0]=n[1],o[2][0]=n[2],i(o[0][1],o[1][1],o[2][1],p,n),o[1][1]=n[1],o[2][1]=n[2]}$s.JG(l[0],o[0]),$s.JG(l[1],o[2]),$s.JG(l[2],o[1])}else{if($s.JG(r[0],h[0]),$s.JG(r[1],h[1]),$s.lu(a,r[1],r[0]),$s.Fv(a,a),u&&"none"!==u){d=CM(t.node1);$s.od(r[0],r[0],a,d*e)}if(c&&"none"!==c){d=CM(t.node2);$s.od(r[1],r[1],a,-d*e)}$s.JG(l[0],r[0]),$s.JG(l[1],r[1])}}))}function fI(t){return"view"===t.type}var gI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e){var n=new ff,i=new rI,o=this.group;this._controller=new i_(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,o=t.coordinateSystem;this._model=t;var r=this._symbolDraw,a=this._lineDraw,s=this.group;if(fI(o)){var l={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?s.attr(l):un(s,l,t)}pI(t.getGraph(),DM(t));var u=t.getData();r.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,o=e.getGraphicEl(),r=e.getModel();if(o){o.off("drag").off("dragend");var a=r.get("draggable");a&&o.on("drag",(function(r){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),u.setItemLayout(n,[o.x,o.y]);break;case"circular":u.setItemLayout(n,[o.x,o.y]),e.setLayout({fixed:!0},!0),LM(t,"symbolSize",e,[r.offsetX,r.offsetY]),i.updateLayout(t);break;case"none":default:u.setItemLayout(n,[o.x,o.y]),IM(t.getGraph(),t),i.updateLayout(t);break}}
vendor: 5,158 bytes, line 1
1)).on("dragend",(function(){h&&h.setUnfixed(n)})),o.setDraggable(a,!!r.get("cursor"));var s=r.get(["emphasis","focus"]);"adjacency"===s&&(Gt(o).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Gt(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),y=u.getLayout("cy");u.graph.eachNode((function(t){NM(t,f,g,y)})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;(function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))})()},e.prototype._updateController=function(t,e,n){var i=this,o=this._controller,r=this._controllerHost,a=this.group;o.setPointerChecker((function(e,i,o){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(i,o)&&!s_(e,n,t)})),fI(t.coordinateSystem)?(o.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(e){o_(r,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){r_(r,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),pI(t.getGraph(),DM(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):o.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=DM(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){pI(t.getGraph(),DM(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(ou),yI=gI;function vI(t){return"_EC_"+t}var mI=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[vI(t)]){var i=new xI(t,e);return i.hostGraph=this,this.nodes.push(i),n[vI(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[vI(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,o=this._edgesMap;if(s.hj(t)&&(t=this.nodes[t]),s.hj(e)&&(e=this.nodes[e]),t instanceof xI||(t=i[vI(t)]),e instanceof xI||(e=i[vI(e)]),t&&e){var r=t.id+"-"+e.id,a=new _I(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),o[r]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof xI&&(t=t.id),e instanceof xI&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,o=0;o<i;o++)n[o].dataIndex>=0&&t.call(e,n[o],o)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,o=0;o<i;o++)n[o].dataIndex>=0&&n[o].node1.dataIndex>=0&&n[o].node2.dataIndex>=0&&t.call(e,n[o],o)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof xI||(e=this._nodesMap[vI(e)]),e){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",r=0;r<this.nodes.length;r++)this.nodes[r].__visited=!1;if(!t.call(i,e,null)){var a=[e];while(a.length){var s=a.shift(),l=s[o];for(r=0;r<l.length;r++){var u=l[r],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(i,c,s))return;a.push(c),c.__visited=!0}}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,o=0,r=n.length;o<r;o++)n[o].dataIndex=-1;for(o=0,r=t.count();o<r;o++)n[t.getRawIndex(o)].dataIndex=o;e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(o=0,r=i.length;o<r;o++)i[o].dataIndex=-1;for(o=0,r=e.count();o<r;o++)i[e.getRawIndex(o)].dataIndex=o},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,o=0;o<n.length;o++)e.addNode(n[o].id,n[o].dataIndex);for(o=0;o<i.length;o++){var r=i[o];e.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return e},t}(),xI=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];
1n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=s.kW(),e=s.kW(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);var o=[i.node1],r=[i.node2],a=0;while(a<o.length){var l=o[a];a++,e.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),o.push(l.inEdges[u].node1)}a=0;while(a<r.length){var c=r[a];a++,e.set(c.dataIndex,!0);for(u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),r.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),_I=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=s.kW(),e=s.kW();t.set(this.dataIndex,!0);var n=[this.node1],i=[this.node2],o=0;while(o<n.length){var r=n[o];o++,e.set(r.dataIndex,!0);for(var a=0;a<r.inEdges.length;a++)t.set(r.inEdges[a].dataIndex,!0),n.push(r.inEdges[a].node1)}o=0;while(o<i.length){var l=i[o];o++,e.set(l.dataIndex,!0);for(a=0;a<l.outEdges.length;a++)t.set(l.outEdges[a].dataIndex,!0),i.push(l.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}},t}();function SI(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}s.jB(xI,SI("hostGraph","data")),s.jB(_I,SI("hostGraph","edgeData"));var bI=mI;function wI(t,e,n,i,o){for(var r=new bI(i),a=0;a<t.length;a++)r.addNode(s.Jv(t[a].id,t[a].name,a),a);var l=[],u=[],c=0;for(a=0;a<e.length;a++){var h=e[a],d=h.source,p=h.target;r.addEdge(d,p,c)&&(u.push(h),l.push(s.Jv(et(h.id,null),d+" > "+p)),c++)}var f,g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)f=ef(t,n);else{var y=pr.get(g),v=y&&y.dimensions||[];s.cq(v,"value")<0&&v.concat(["value"]);var m=zp(t,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;f=new Vp(m,n),f.initData(t)}var x=new Vp(["value"],n);return x.initData(u,l),o&&o(f,x),vb({mainData:f,struct:r,structAttr:"graph",datas:{node:f,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}var MI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,r.ZT)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new _y(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),W(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){SM(this);var r=wI(i,n,this,!0,a);return s.S6(r.edges,(function(t){bM(t.node1,t.node2,this,t.dataIndex)}),this),r.data}function a(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));var n=Xn.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),o=this.getDataParams(t,n),r=i.graph.getEdgeByIndex(t),a=i.getName(r.node1.dataIndex),s=i.getName(r.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),gs("nameValue",{name:l.join(" > "),value:o.value,noValue:null==o.value})}var u=Ls({series:this,dataIndex:t,multipleSeries:e});return u},e.prototype._updateCategoriesData=function(){var t=s.UI(this.option.categories||[],(function(t){return null!=t.value?t:s.l7({value:0},t)})),e=new Vp(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0}
1,left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Us),II=MI,TI={type:"graphRoam",event:"graphRoam",update:"none"};function DI(t){t.registerChartView(yI),t.registerSeriesModel(II),t.registerProcessor(uM),t.registerVisual(cM),t.registerVisual(dM),t.registerLayout(TM),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,RM),t.registerLayout(VM),t.registerCoordinateSystem("graphView",{dimensions:yS.dimensions,create:BM}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},s.ZT),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},s.ZT),t.registerAction(TI,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=e.coordinateSystem,o=kS(i,t,void 0,n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom)}))}))}var CI=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),AI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new CI},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.angle,s=e.x-n(a)*r*(r>=o/3?1:2),l=e.y-i(a)*r*(r>=o/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*r,e.y+i(a)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(a)*r,e.y-i(a)*r),t.lineTo(s,l)},e}(Ht.ZP),kI=AI;function LI(t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight(),r=Math.min(i,o),a=g(n[0],e.getWidth()),s=g(n[1],e.getHeight()),l=g(t.get("radius"),r/2);return{cx:a,cy:s,r:l}}function PI(t,e){var n=null==t?"":t+"";return e&&((0,s.HD)(e)?n=e.replace("{value}",n):(0,s.mf)(e)&&(n=e(t))),n}var NI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=LI(t,n);this._renderMain(t,e,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,o){var r=this.group,a=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,u=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap"),d=h?Ig:il.C,p=c.get("show"),f=c.getModel("lineStyle"),g=f.get("width"),y=[l,u];(0,cd.L)(y,!a),l=y[0],u=y[1];for(var v=u-l,m=l,x=[],_=0;p&&_<i.length;_++){var S=Math.min(Math.max(i[_][0],0),1);u=l+v*S;var b=new d({shape:{startAngle:m,endAngle:u,cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-g,r:o.r},silent:!0});b.setStyle({fill:i[_][1]}),b.setStyle(f.getLineStyle(["color","width"])),x.push(b),m=u}x.reverse(),(0,s.S6)(x,(function(t){return r.add(t)}));var w=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,w,o,l,u,a,g),this._renderTitleAndDetail(t,e,n,w,o),this._renderAnchor(t,o),this._renderPointer(t,e,n,w,o,l,u,a,g)},e.prototype._renderTicks=function(t,e,n,i,o,r,a,l,u){for(var c,h,d=this.group,p=o.cx,f=o.cy,v=o.r,m=+t.get("min"),x=+t.get("max"),_=t.getModel("splitLine"),S=t.getModel("axisTick"),b=t.getModel("axisLabel"),w=t.get("splitNumber"),M=S.get("splitNumber"),I=g(_.get("length"),v),T=g(S.get("length"),v),D=r,C=(a-r)/w,A=C/M,k=_.getModel("lineStyle").getLineStyle(),L=S.getModel("lineStyle").getLineStyle(),P=_.get("distance"),N=0;N<=w;N++){if(c=Math.cos(D),h=Math.sin(D),_.get("show")){var R=P?P+u:u,O=new ll.Z({shape:{x1:c*(v-R)+p,y1:h*(v-R)+f,x2:c*(v-I-R)+p,y2:h*(v-I-R)+f},style:k,silent:!0});"auto"===k.stroke&&O.setStyle({stroke:i(N/w)}),d.add(O)}if(b.get("show")){R=b.get("distance")+P;var E=PI(y(N/w*(x-m)+m),b.get("formatter")),V=i(N/w),z=c*(v-I-R)+p,B=h*(v-I-R)+f,Z=b.get("rotate"),G=0;"radial"===Z?(G=-D+2*Math.PI,G>Math.PI/2&&(G+=Math.PI)):"tangential"===Z?G=-D-Math.PI/2:(0,s.hj)(Z)&&(G=Z*Math.PI/180),0===G?d.add(new Bt.ZP({style:bn(b,{text:E,x:z,y:B,verticalAlign:h<-.8?"top":h>
1.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:V}),silent:!0})):d.add(new Bt.ZP({style:bn(b,{text:E,x:z,y:B,verticalAlign:"middle",align:"center"},{inheritColor:V}),silent:!0,originX:z,originY:B,rotation:G}))}if(S.get("show")&&N!==w){R=S.get("distance");R=R?R+u:u;for(var W=0;W<=M;W++){c=Math.cos(D),h=Math.sin(D);var F=new ll.Z({shape:{x1:c*(v-R)+p,y1:h*(v-R)+f,x2:c*(v-T-R)+p,y2:h*(v-T-R)+f},silent:!0,style:L});"auto"===L.stroke&&F.setStyle({stroke:i((N+W/M)/w)}),d.add(F),D+=A}D-=A}else D+=C}},e.prototype._renderPointer=function(t,e,n,i,o,r,a,l,u){var c=this.group,h=this._data,d=this._progressEls,p=[],y=t.get(["pointer","show"]),v=t.getModel("progress"),m=v.get("show"),x=t.getData(),_=x.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),w=[S,b],M=[r,a];function I(e,n){var i,r=x.getItemModel(e),a=r.getModel("pointer"),s=g(a.get("width"),o.r),l=g(a.get("length"),o.r),u=t.get(["pointer","icon"]),c=a.get("offsetCenter"),h=g(c[0],o.r),d=g(c[1],o.r),p=a.get("keepAspect");return i=u?gc(u,h-s/2,d-l,s,l,null,p):new kI({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=o.cx,i.y=o.cy,i}function T(t,e){var n=v.get("roundCap"),i=n?Ig:il.C,a=v.get("overlap"),s=a?v.get("width"):u/x.count(),c=a?o.r-s:o.r-(t+1)*s,h=a?o.r:o.r-t*s,d=new i({shape:{startAngle:r,endAngle:e,cx:o.cx,cy:o.cy,clockwise:l,r0:c,r:h}});return a&&(d.z2=b-x.get(_,t)%b),d}(m||y)&&(x.diff(h).add((function(e){var n=x.get(_,e);if(y){var i=I(e,r);cn(i,{rotation:-((isNaN(+n)?M[0]:f(n,w,M,!0))+Math.PI/2)},t),c.add(i),x.setItemGraphicEl(e,i)}if(m){var o=T(e,r),a=v.get("clip");cn(o,{shape:{endAngle:f(n,w,M,a)}},t),c.add(o),Wt(t.seriesIndex,x.dataType,e,o),p[e]=o}})).update((function(e,n){var i=x.get(_,e);if(y){var o=h.getItemGraphicEl(n),a=o?o.rotation:r,s=I(e,a);s.rotation=a,un(s,{rotation:-((isNaN(+i)?M[0]:f(i,w,M,!0))+Math.PI/2)},t),c.add(s),x.setItemGraphicEl(e,s)}
1if(m){var l=d[n],u=l?l.shape.endAngle:r,g=T(e,u),S=v.get("clip");un(g,{shape:{endAngle:f(i,w,M,S)}},t),c.add(g),Wt(t.seriesIndex,x.dataType,e,g),p[e]=g}})).execute(),x.each((function(t){var e=x.getItemModel(t),n=e.getModel("emphasis"),o=n.get("focus"),r=n.get("blurScope"),a=n.get("disabled");if(y){var l=x.getItemGraphicEl(t),u=x.getItemVisual(t,"style"),c=u.fill;if(l instanceof tl.ZP){var h=l.style;l.useStyle((0,s.l7)({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else l.useStyle(u),"pointer"!==l.type&&l.setColor(c);l.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===l.style.fill&&l.setStyle("fill",i(f(x.get(_,t),w,[0,1],!0))),l.z2EmphasisLift=0,qe(l,e),Ye(l,o,r,a)}if(m){var d=p[t];d.useStyle(x.getItemVisual(t,"style")),d.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,qe(d,e),Ye(d,o,r,a)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),r=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=gc(r,e.cx-o/2+g(a[0],e.r),e.cy-o/2+g(a[1],e.r),o,o,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,o){var r=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new Xs.Z,h=[],d=[],p=t.isAnimationEnabled(),y=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new Bt.ZP({silent:!0}),d[t]=new Bt.ZP({silent:!0})})).update((function(t,e){h[t]=r._titleEls[e],d[t]=r._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),r=a.get(s,e),v=new Xs.Z,m=i(f(r,[l,u],[0,1],!0)),x=n.getModel("title");if(x.get("show")){var _=x.get("offsetCenter"),S=o.cx+g(_[0],o.r),b=o.cy+g(_[1],o.r),w=h[e];w.attr({z2:y?0:2,style:bn(x,{x:S,y:b,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:m})}),v.add(w)}var M=n.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),T=o.cx+g(I[0],o.r),D=o.cy+g(I[1],o.r),C=g(M.get("width"),o.r),A=g(M.get("height"),o.r),k=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:m,L=(w=d[e],M.get("formatter"));w.attr({z2:y?0:2,style:bn(M,{x:T,y:D,text:PI(r,L),width:isNaN(C)?null:C,height:isNaN(A)?null:A,align:"center",verticalAlign:"middle"},{inheritColor:k})}),Pn(w,{normal:M},r,(function(t){return PI(t,L)})),p&&Nn(w,e,a,t,{getFormattedLabel:function(t,e,n,i,o,a){return PI(a?a.interpolatedValue:r,L)}}),v.add(w)}c.add(v)})),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(ou),RI=NI,OI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t,e){return my(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Us),EI=OI;function VI(t){t.registerChartView(RI),t.registerSeriesModel(EI)}var zI=["itemStyle","opacity"],BI=function(t){function e(e,n){var i=t.call(this)||this,o=i,r=new al.Z,a=new Bt.ZP;return o.setTextContent(a),i.setTextGuideLine(r),i.updateData(e,n,!0),i}return(0,r.ZT)(e,t),e.prototype.updateData=function(t,e,n){var i=this,o=t.hostModel,r=t.getItemModel(e),a=t.getItemLayout(e),s=r.getModel("emphasis"),l=r.get(zI);l=null==l?1:l,n||gn(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,cn(i,{style:{opacity:l}},o,e)):un(i,{style:{opacity:l},shape:{points:a.points}},o,e),qe(i,r),this._updateLabel(t,e),Ye(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),r=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"style"),c=u.fill;_n(o,Sn(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new gl.Z(h[0][0],h[0][1]):null},un(o,{style:{x:l.x,y:l.y}},r,e),o.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Od(n,Ed(a),{stroke:c})},e}(rl.Z),ZI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this._data,r=this.group;i.diff(o).add((function(t){var e=new BI(i,t);i.setItemGraphicEl(t,e),r.add(e)})).update((function(t,e){var n=o.getItemGraphicEl(e);n.updateData(i,t),r.add(n),i.setItemGraphicEl(t,n)}
1)).remove((function(e){var n=o.getItemGraphicEl(e);fn(n,t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(ou),GI=ZI,WI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new _y(s.ak(this.getData,this),s.ak(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return my(this,{coordDimensions:["value"],encodeDefaulter:s.WA(Oo,this)})},e.prototype._defaultLabelLine=function(t){W(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),o=n.mapDimension("value"),r=n.getSum(o);return i.percent=r?+(n.get(o,e)/r*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Us),FI=WI;function HI(t,e){return so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function UI(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),o=[],r="ascending"===e,a=0,l=t.count();a<l;a++)o[a]=a;return(0,s.mf)(e)?o.sort(e):"none"!==e&&o.sort((function(t,e){return r?i[t]-i[e]:i[e]-i[t]})),o}function XI(t){var e=t.hostModel,n=e.get("orient");t.each((function(e){var i,o,r,a,s=t.getItemModel(e),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),h=t.getItemLayout(e),d=h.points,p="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(p)"insideLeft"===u?(o=(d[0][0]+d[3][0])/2+5,r=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===u?(o=(d[1][0]+d[2][0])/2-5,r=(d[1][1]+d[2][1])/2,i="right"):(o=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,r=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),a=[[o,r],[o,r]];else{var f=void 0,g=void 0,y=void 0,v=void 0,m=c.get("length");0,"left"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,y=f-m,o=y-5,i="right"):"right"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,y=f+m,o=y+5,i="left"):"top"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=g-m,r=v-5,i="center"):"bottom"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=g+m,r=v+5,i="center"):"rightTop"===u?(f="horizontal"===n?d[3][0]:d[1][0],g="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(v=g-m,r=v-5,i="center"):(y=f+m,o=y+5,i="top")):"rightBottom"===u?(f=d[2][0],g=d[2][1],"horizontal"===n?(v=g+m,r=v+5,i="center"):(y=f+m,o=y+5,i="bottom")):"leftTop"===u?(f=d[0][0],g="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(v=g-m,r=v-5,i="center"):(y=f-m,o=y-5,i="right")):"leftBottom"===u?(f="horizontal"===n?d[1][0]:d[3][0],g="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(v=g+m,r=v+5,i="center"):(y=f-m,o=y-5,i="right")):(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===n?(v=g+m,r=v+5,i="center"):(y=f+m,o=y+5,i="left")),"horizontal"===n?(y=f,o=y):(v=g,r=v),a=[[f,g],[y,v]]}h.label={linePoints:a,x:o,y:r,verticalAlign:"middle",textAlign:i,inside:p}}))}function YI(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),o=t.get("sort"),r=HI(t,e),a=t.get("orient"),s=r.width,l=r.height,u=UI(n,o),c=r.x,h=r.y,d="horizontal"===a?[g(t.get("minSize"),l),g(t.get("maxSize"),l)]:[g(t.get("minSize"),s),g(t.get("maxSize"),s)],p=n.getDataExtent(i),y=t.get("min"),v=t.get("max");null==y&&(y=Math.min(p[0],0)),null==v&&(v=p[1]);var m=t.get("funnelAlign"),x=t.get("gap"),_="horizontal"===a?s:l,S=(_-x*(n.count()-1))/n.count(),b=function(t,e){if("horizontal"===a){var o=n.get(i,t)||0,r=f(o,[y,v],d,!0),u=void 0;switch(m){case"top":u=h;break;case"center":u=h+(l-r)/2;break;case"bottom":u=h+(l-r);break}return[[e,u],[e,u+r]]}var p,g=n.get(i,t)||0,x=f(g,[y,v],d,!0);switch(m){case"left":p=c;break;case"center":p=c+(s-x)/2;break;case"right":p=c+s-x;break}return[[p,e],[p+x,e]]};"ascending"===o&&(S=-S,x=-x,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var w=0;w<u.length;w++){var M=u[w],I=u[w+1],T=n.getItemModel(M);if("horizontal"===a){var D=T.get(["itemStyle","width"]);null==D?D=S:(D=g(D,s),"ascending"===o&&(D=-D));var C=b(M,c),A=b(I,c+D);c+=D+x,n.setItemLayout(M,{points:C.concat(A.slice().reverse())})}else{var k=T.get(["itemStyle","height"]);null==k?k=S:(k=g(k,l),"ascending"===o&&(k=-k));C=b(M,h),A=b(I,h+k);h+=k+x,n.setItemLayout(M,{points:C.concat(A.slice().reverse())})}}XI(n)}))}function JI(t){t.registerChartView(GI),t.registerSeriesModel(FI),t.registerLayout(YI),t.registerProcessor(ly("funnel"))}var jI=.3,KI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new Xs.Z,n._initialized=!1,n}return(0,r.ZT)(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var o=this._dataGroup,r=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=tT(t);function c(t){var e=QI(r,o,t,l,s);eT(e,r,t,u)}function h(e,n){var i=a.getItemGraphicEl(n),o=$I(r,e,l,s);r.setItemGraphicEl(e,i),un(i,{shape:{points:o}},t,e),gn(i),eT(i,r,e,u)}
1function d(t){var e=a.getItemGraphicEl(t);o.remove(e)}if(r.diff(a).add(c).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var p=qI(s,t,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(p)}this._data=r},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),o=e.coordinateSystem,r=o.dimensions,a=tT(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=QI(i,this._dataGroup,l,r,o);u.incremental=!0,eT(u,i,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(ou);function qI(t,e,n){var i=t.model,o=t.getRect(),r=new sl.Z({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),a="horizontal"===i.get("layout")?"width":"height";return r.setShape(a,0),cn(r,{shape:{width:o.width,height:o.height}},e,n),r}function $I(t,e,n,i){for(var o=[],r=0;r<n.length;r++){var a=n[r],s=t.get(t.mapDimension(a),e);nT(s,i.getAxis(a).type)||o.push(i.dataToPoint(s,a))}return o}function QI(t,e,n,i,o){var r=$I(t,n,i,o),a=new al.Z({shape:{points:r},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function tT(t){var e=t.get("smooth",!0);return!0===e&&(e=jI),e=N(e),(0,s.Bu)(e)&&(e=0),{smooth:e}}function eT(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var o=e.getItemModel(n),r=o.getModel("emphasis");qe(t,o,"lineStyle"),Ye(t,r.get("focus"),r.get("blurScope"),r.get("disabled"))}function nT(t,e){return"category"===e?null==t:null==t||isNaN(t)}var iT=KI,oT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t,e){return ef(null,this,{useEncodeDefaulter:(0,s.ak)(rT,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,o){t===e&&i.push(n.getRawIndex(o))})),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Us);function rT(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return(0,s.S6)(e.dimensions,(function(t){var e=aT(t);n[t]=e})),n}}function aT(t){return+t.replace("dim","")}var sT=oT,lT=["lineStyle","opacity"],uT={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var o=i[t];if("normal"===t&&e.hasItemOption){var r=e.getItemModel(n).get(lT,!0);null!=r&&(o=r)}var a=e.ensureUniqueItemVisual(n,"style");a.opacity=o}),t.start,t.end)}}}},cT=uT;function hT(t){dT(t),pT(t)}function dT(t){if(!t.parallel){var e=!1;s.S6(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function pT(t){var e=G(t.parallelAxis);s.S6(e,(function(e){if(s.Kn(e)){var n=e.parallelIndex||0,i=G(t.parallel)[n];i&&i.parallelAxisDefault&&s.TS(e,i.parallelAxisDefault,!1)}}))}var fT=5,gT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},(0,s.S6)(yT,(function(t,e){n.getZr().on(e,this._handlers[e]=(0,s.ak)(t,this))}),this)),uu(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){cu(this,"_throttledDispatchExpand"),(0,s.S6)(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction((0,s.l7)({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Js),yT={mousedown:function(t){vT(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(vT(this,"click")&&e){var n=[t.offsetX,t.offsetY],i=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(i>fT)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==o.behavior&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&vT(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function vT(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var mT=gT,xT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(){t.prototype.init.a
vendor: 7,534 bytes, line 1
1pply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&s.TS(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){s.S6(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=s.hX(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);s.S6(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(mo),_T=xT,ST=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n,i)||this;return a.type=o||"value",a.axisIndex=r,a}return(0,r.ZT)(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(Tm),bT=ST;function wT(t,e,n,i,o,r){t=t||0;var a=n[1]-n[0];if(null!=o&&(o=IT(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=IT(s,[0,a]),o=r=IT(s,[o,r]),i=0}e[0]=IT(e[0],n),e[1]=IT(e[1],n);var l=MT(e,i);e[i]+=t;var u,c=o||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[i]=IT(e[i],h),u=MT(e,i),null!=o&&(u.sign!==l.sign||u.span<o)&&(e[1-i]=e[i]+l.sign*o),u=MT(e,i),null!=r&&u.span>r&&(e[1-i]=e[i]+u.sign*r),e}function MT(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function IT(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var TT=s.S6,DT=Math.min,CT=Math.max,AT=Math.floor,kT=Math.ceil,LT=y,PT=Math.PI,NT=function(){function t(t,e,n){this.type="parallel",this._axesMap=s.kW(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,o=t.parallelAxisIndex;TT(i,(function(t,n){var i=o[n],r=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new bT(t,Uv(r),[0,0],r.get("type"),i)),s="category"===a.type;a.onBand=s&&r.get("boundaryGap"),a.inverse=r.get("inverse"),r.axis=a,a.model=r,a.coordinateSystem=r.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,o=e.pixelDimIndex,r=t[1-o],a=t[o];return r>=n&&r<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();TT(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),Hv(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],o=["width","height"],r=e.get("layout"),a="horizontal"===r?0:1,s=n[o[a]],l=[0,s],u=this.dimensions.length,c=RT(e.get("axisExpandWidth"),l),h=RT(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");if(p)t=RT(p[1]-p[0],l),p[1]=p[0]+t;else{t=RT(c*(h-1),l);var f=e.get("axisExpandCenter")||AT(u/2);p=[c*f-t/2],p[1]=p[0]+t}var g=(s-t)/(u-h);g<3&&(g=0);var y=[AT(LT(p[0]/c,1))+1,kT(LT(p[1]/c,1))-1],v=g/c*p[0];return{layout:r,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[o[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),TT(n,(function(e,n){var r=(i.axisExpandable?ET:OT)(n,i),a={horizontal:{x:r.position,y:i.axisLength},vertical:{x:0,y:r.position}},s={horizontal:PT/2,vertical:0},l=[a[o].x+t.x,a[o].y+t.y],u=s[o],c=qs.Ue();qs.U1(c,c,u),qs.Iu(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:r.axisNameAvailableWidth,axisLabelShow:r.axisLabelShow,nameTruncateMaxWidth:r.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var o=this._axesMap,r=this.dimensions,a=[],l=[];s.S6(r,(function(e){a.push(t.mapDimension(e)),l.push(o.get(e).model)}));for(var u=this.hasAxisBrushed(),c=n;c<i;c++){var h=void 0;if(u){h="active";for(var d=t.getValues(a,c),p=0,f=r.length;p<f;p++){var g=l[p].getActiveState(d[p]);if("inactive"===g){h="inactive";break}}}else h="normal";e(h,c)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,o=t.length;i<o;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return Ol([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return s.d9(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),o=i[1]-i[0],r=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<o*c[0]?(l="jump",a=s-o*c[2]):h&&u&&s>o*(1-c[0])?(l="jump",a=s-o*(1-c[2])):(a=s-o*c[1])>=0&&(a=s-o*(1-c[1]))<=0&&(a=0),a*=e.axisExpandWidth/u,a?wT(a,i,r,"all"):l="none";else{var d=i[1]-i[0],p=r[1]*s/d;i=[CT(0,p-d/2)],i[1]=DT(r[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function RT(t,e){return DT(CT(t,e[0]),e[1])}function OT(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function ET(t,e){var n,i,o=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*r-e.axisExpandWindow[0],u=r,c=!0):(n=o-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}var VT=NT;function zT(t,e){var n=[];return t.eachComponent("parallel",(function(i,o){var r=new VT(i,t,e);r.name="parallel_"+o,r.resize(i,e),i.coordinateSystem=r,r.model=i,n.push(r)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",pt).models[0];t.coordinateSystem=e.coordinateSystem}})),n}var BT={create:zT},ZT=BT,GT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return(0,r.ZT)(e,t),e.prototype.getAreaSelectStyle=function(){return Ot([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["
1width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=s.d9(t);if(e)for(var n=e.length-1;n>=0;n--)v(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=e.length;i<o;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(mo);s.jB(GT,Vy);var WT=GT,FT=!0,HT=Math.min,UT=Math.max,XT=Math.pow,YT=1e4,JT=6,jT=6,KT="globalPan",qT={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},$T={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},QT={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},tD=0,eD=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Xs.Z,n._uid="brushController_"+tD++,(0,s.S6)(ND,(function(t,e){this._handlers[e]=(0,s.ak)(t,this)}),n),n}return(0,r.ZT)(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||jx(e,KT,this._uid),(0,s.S6)(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=(0,s.TS)((0,s.d9)(QT),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Kx(t,KT,this._uid),(0,s.S6)(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};(0,s.S6)(t,(function(t){e[t.panelId]=(0,s.d9)(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=(0,s.UI)(t,(function(t){return(0,s.TS)((0,s.d9)(QT),t,!0)}));var e="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,r=this._creatingCover;return new sp(n,t,l,a).add(u).update(u).remove(c).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function l(t,e){return a(t.__brushOption,e)}function u(e,a){var s=t[e];if(null!=a&&n[a]===r)i[e]=n[a];else{var l=i[e]=null!=a?(n[a].__brushOption=s,n[a]):iD(o,nD(o,s));aD(o,l)}}function c(t){n[t]!==r&&o.group.remove(n[t])}},e.prototype.unmount=function(){return this.enableBrush(!1),cD(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(c.Z);function nD(t,e){var n=ED[e.brushType].createCover(t,e);return n.__brushOption=e,rD(n,e),t.group.add(n),n}function iD(t,e){var n=sD(e);return n.endCreating&&(n.endCreating(t,e),rD(e,e.__brushOption)),e}function oD(t,e){var n=e.__brushOption;sD(e).updateCoverShape(t,e,n.range,n)}function rD(t,e){var n=e.z;null==n&&(n=YT),t.traverse((function(t){t.z=n,t.z2=n}))}function aD(t,e){sD(e).updateCommon(t,e),oD(t,e)}function sD(t){return ED[t.__brushOption.brushType]}function lD(t,e,n){var i,o=t._panels;if(!o)return FT;var r=t._transform;return(0,s.S6)(o,(function(t){t.isTargetByCursor(e,n,r)&&(i=t)})),i}function uD(t,e){var n=t._panels;if(!n)return FT;var i=e.__brushOption.panelId;return null!=i?n[i]:FT}function cD(t){var e=t._covers,n=e.length;return(0,s.S6)(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function hD(t,e){var n=(0,s.UI)(t._covers,(function(t){var e=t.__brushOption,n=(0,s.d9)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function dD(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],o=n[0]-i[0],r=n[1]-i[1],a=XT(o*o+r*r,.5);return a>JT}function pD(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function fD(t,e,n,i){var o=new Xs.Z;return o.add(new sl.Z({name:"main",style:mD(n),silent:!0,draggable:!0,cursor:"move",drift:(0,s.WA)(wD,t,e,o,["n","s","w","e"]),ondragend:(0,s.WA)(hD,e,{isEnd:!0})})),(0,s.S6)(i,(function(n){o.add(new sl.Z({name:n.join(""),style:{opacity:0}
1,draggable:!0,silent:!0,invisible:!0,drift:(0,s.WA)(wD,t,e,o,n),ondragend:(0,s.WA)(hD,e,{isEnd:!0})}))})),o}function gD(t,e,n,i){var o=i.brushStyle.lineWidth||0,r=UT(o,jT),a=n[0][0],s=n[1][0],l=a-o/2,u=s-o/2,c=n[0][1],h=n[1][1],d=c-r+o/2,p=h-r+o/2,f=c-a,g=h-s,y=f+o,v=g+o;vD(t,e,"main",a,s,f,g),i.transformable&&(vD(t,e,"w",l,u,r,v),vD(t,e,"e",d,u,r,v),vD(t,e,"n",l,u,y,r),vD(t,e,"s",l,p,y,r),vD(t,e,"nw",l,u,r,r),vD(t,e,"ne",d,u,r,r),vD(t,e,"sw",l,p,r,r),vD(t,e,"se",d,p,r,r))}function yD(t,e){var n=e.__brushOption,i=n.transformable,o=e.childAt(0);o.useStyle(mD(n)),o.attr({silent:!i,cursor:i?"move":"default"}),(0,s.S6)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var o=e.childOfName(n.join("")),r=1===n.length?SD(t,n[0]):bD(t,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?$T[r]+"-resize":null})}))}function vD(t,e,n,i,o,r,a){var s=e.childOfName(n);s&&s.setShape(DD(TD(t,e,[[i,o],[i+r,o+a]])))}function mD(t){return(0,s.ce)({strokeNoScale:!0},t.brushStyle)}function xD(t,e,n,i){var o=[HT(t,n),HT(e,i)],r=[UT(t,n),UT(e,i)];return[[o[0],r[0]],[o[1],r[1]]]}function _D(t){return Rl(t.group)}function SD(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},o=El(n[e],_D(t));return i[o]}function bD(t,e){var n=[SD(t,e[0]),SD(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function wD(t,e,n,i,o,r){var a=n.__brushOption,l=t.toRectRange(a.range),u=ID(e,o,r);(0,s.S6)(i,(function(t){var e=qT[t];l[e[0]][e[1]]+=u[e[0]]})),a.range=t.fromRectRange(xD(l[0][0],l[1][0],l[0][1],l[1][1])),aD(e,n),hD(e,{isEnd:!1})}function MD(t,e,n,i){var o=e.__brushOption.range,r=ID(t,n,i);(0,s.S6)(o,(function(t){t[0]+=r[0],t[1]+=r[1]})),aD(t,e),hD(t,{isEnd:!1})}function ID(t,e,n){var i=t.group,o=i.transformCoordToLocal(e,n),r=i.transformCoordToLocal(0,0);return[o[0]-r[0],o[1]-r[1]]}function TD(t,e,n){var i=uD(t,e);return i&&i!==FT?i.clipPath(n,t._transform):(0,s.d9)(n)}function DD(t){var e=HT(t[0][0],t[1][0]),n=HT(t[0][1],t[1][1]),i=UT(t[0][0],t[1][0]),o=UT(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:o-n}}function CD(t,e,n){if(t._brushType&&!OD(t,e.offsetX,e.offsetY)){var i=t._zr,o=t._covers,r=lD(t,e,n);if(!t._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===FT||s.panelId===r.panelId)&&ED[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}function AD(t){var e=t.event;e.preventDefault&&e.preventDefault()}function kD(t,e,n){return t.childOfName("main").contain(e,n)}function LD(t,e,n,i){var o,r=t._creatingCover,a=t._creatingPanel,l=t._brushOption;if(t._track.push(n.slice()),dD(t)||r){if(a&&!r){"single"===l.brushMode&&cD(t);var u=(0,s.d9)(l);u.brushType=PD(u.brushType,a),u.panelId=a===FT?null:a.panelId,r=t._creatingCover=nD(t,u),t._covers.push(r)}if(r){var c=ED[PD(t._brushType,a)],h=r.__brushOption;h.range=c.getCreatingRange(TD(t,r,t._track)),i&&(iD(t,r),c.updateCommon(t,r)),oD(t,r),o={isEnd:i}}}else i&&"single"===l.brushMode&&l.removeOnClick&&lD(t,e,n)&&cD(t)&&(o={isEnd:i,removeOnClick:!0});return o}function PD(t,e){return"auto"===t?e.defaultBrushType:t}var ND={mousedown:function(t){if(this._dragging)RD(this,t);else if(!t.target||!t.target.draggable){AD(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=lD(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(CD(this,t,i),this._dragging){AD(t);var o=LD(this,t,i,!1);o&&hD(this,o)}},mouseup:function(t){RD(this,t)}};function RD(t,e){if(t._dragging){AD(e);var n=e.offsetX,i=e.offsetY,o=t.group.transformCoordToLocal(n,i),r=LD(t,e,o,!0);t._dragging=!1,t._track=[],t._creatingCover=null,r&&hD(t,r)}}function OD(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}var ED={lineX:VD(0),lineY:VD(1),rect:{createCover:function(t,e){function n(t){return t}return fD({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=pD(t);return xD(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){gD(t,e,n,i)},updateCommon:yD,contain:kD},polygon:{createCover:function(t,e){var n=new Xs.Z;return n.add(new al.Z({name:"main",style:mD(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new rl.Z({name:"main",draggable:!0,drift:(0,s.WA)(MD,t,e),ondragend:(0,s.WA)(hD,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:TD(t,e,n)})},updateCommon:yD,contain:kD}};function VD(t){return{createCover:function(e,n){return fD({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=pD(e),i=HT(n[0][t],n[1][t]),o=UT(n[0][t],n[1][t]);return[i,o]},updateCoverShape:function(e,n,i,o){var r,a=uD(e,n);if(a!==FT&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(t);else{var s=e._zr;r=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,r];t&&l.reverse(),gD(e,n,l,o)},updateCommon:yD,contain:kD}}var zD=eD;function BD(t){return t=WD(t),function(e){return Zl(e,t)}}function ZD(t,e){return t=WD(t),function(n){var i=null!=e?e:n,o=i?t.width:t.height,r=i?t.x:t.y;return[r,r+(o||0)]}}function GD(t,e,n){var i=WD(t);return function(t,o){return i.contain(o[0],o[1])&&!s_(t,e,n)}}function WD(t){return $n.Z.create(t)}var FD=["axisLine","axisTickLabel","axisName"],HD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(e,n){t.prototype.init.a
1pply(this,arguments),(this._brushController=new zD(n.getZr())).on("brush",s.ak(this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!UD(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Xs.Z,this.group.add(this._axisGroup),t.get("show")){var r=YD(t,e),a=r.coordinateSystem,l=t.getAreaSelectStyle(),u=l.width,c=t.axis.dim,h=a.getAxisLayout(c),d=s.l7({strokeContainThreshold:u},h),p=new $m(t,d);s.S6(FD,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,l,t,r,u,n),Bl(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,o,r){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=$n.Z.create({x:a[0],y:-o/2,width:s,height:o});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:BD(u),isTargetByCursor:GD(u,r,i),getLinearBrushOtherExtent:ZD(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(XD(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,o=s.UI(e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Js);function UD(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function XD(t){var e=t.axis;return s.UI(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function YD(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var JD=HD,jD={type:"axisAreaSelect",event:"axisAreaSelected"};function KD(t){t.registerAction(jD,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var qD={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function $D(t){t.registerComponentView(mT),t.registerComponentModel(_T),t.registerCoordinateSystem("parallel",ZT),t.registerPreprocessor(hT),t.registerComponentModel(WT),t.registerComponentView(JD),Ky(t,"parallel",WT,qD),KD(t)}function QD(t){ud($D),t.registerChartView(iT),t.registerSeriesModel(sT),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,cT)}var tC=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),eC=function(t){function e(e){return t.call(this,e)||this}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new tC},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Ce(this)},e.prototype.downplay=function(){Ae(this)},e}(Ht.ZP),nC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var i=this,o=t.getGraph(),r=this.group,a=t.layoutInfo,l=a.width,u=a.height,c=t.getData(),h=t.getData("edge"),d=t.get("orient");this._model=t,r.removeAll(),r.x=a.x,r.y=a.y,o.eachEdge((function(e){var n=new eC,i=Gt(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var o,a,c,p,f,g,y,v,m=e.getModel(),x=m.getModel("lineStyle"),_=x.get("curveness"),S=e.node1.getLayout(),b=e.node1.getModel(),w=b.get("localX"),M=b.get("localY"),I=e.node2.getLayout(),T=e.node2.getModel(),D=T.get("localX"),C=T.get("localY"),A=e.getLayout();n.shape.extent=Math.max(1,A.dy),n.shape.orient=d,"vertical"===d?(o=(null!=w?w*l:S.x)+A.sy,a=(null!=M?M*u:S.y)+S.dy,c=(null!=D?D*l:I.x)+A.ty,p=null!=C?C*u:I.y,f=o,g=a*(1-_)+p*_,y=c,v=a*_+p*(1-_)):(o=(null!=w?w*l:S.x)+S.dx,a=(null!=M?M*u:S.y)+A.sy,c=null!=D?D*l:I.x,p=(null!=C?C*u:I.y)+A.ty,f=o*(1-_)+c*_,g=a,y=o*_+c*(1-_),v=p),n.setShape({x1:o,y1:a,x2:c,y2:p,cpx1:f,cpy1:g,cpx2:y,cpy2:v}),n.useStyle(x.getItemStyle()),iC(n.style,d,e);var k=""+m.get("value"),L=Sn(m,"edgeLabel");_n(n,L,{labelFetcher:{getFormattedLabel:function(e,n,i,o,r,a){return t.getFormattedLabel(e,n,"edge",o,
1(0,s.R1)(r,L.normal&&L.normal.get("formatter"),k),a)}},labelDataIndex:e.dataIndex,defaultText:k}),n.setTextConfig({position:"inside"});var P=m.getModel("emphasis");qe(n,m,"lineStyle",(function(t){var n=t.getItemStyle();return iC(n,d,e),n})),r.add(n),h.setItemGraphicEl(e.dataIndex,n);var N=P.get("focus");Ye(n,"adjacency"===N?e.getAdjacentDataIndices():"trajectory"===N?e.getTrajectoryDataIndices():N,P.get("blurScope"),P.get("disabled"))})),o.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),o=i.get("localX"),a=i.get("localY"),s=i.getModel("emphasis"),h=new sl.Z({shape:{x:null!=o?o*l:n.x,y:null!=a?a*u:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});_n(h,Sn(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),qe(h,i),r.add(h),c.setItemGraphicEl(e.dataIndex,h),Gt(h).dataType="node";var d=s.get("focus");Ye(h,"adjacency"===d?e.getAdjacentDataIndices():"trajectory"===d?e.getTrajectoryDataIndices():d,s.get("blurScope"),s.get("disabled"))})),c.eachItemGraphicEl((function(e,o){var r=c.getItemModel(o);r.get("draggable")&&(e.drift=function(e,r){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=r,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(o),localX:this.shape.x/l,localY:this.shape.y/u})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&r.setClipPath(oC(r.getBoundingRect(),t,(function(){r.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(ou);function iC(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),o=n.node2.getVisual("color");(0,s.HD)(i)&&(0,s.HD)(o)&&(t.fill=new dl.Z(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:o,offset:1}]))}}function oC(t,e,n){var i=new sl.Z({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return cn(i,{shape:{width:t.width+20}},e,n),i}var rC=nC,aC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var r=this.levelModels,a=0;a<o.length;a++)null!=o[a].depth&&o[a].depth>=0&&(r[o[a].depth]=new Xn(o[a],this,e));if(i&&n){var s=wI(i,n,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var o=i.depth,r=n.levelModels[o];r&&(t.parentModel=r)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),o=i.node1.getLayout();if(o){var r=o.depth,a=n.levelModels[r];a&&(t.parentModel=a)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,i=n[t];i.localX=e[0],i.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var o=this.getDataParams(t,n),r=o.data,a=o.value,s=r.source+" -- "+r.target;return gs("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,c=this.getDataParams(t,n).data.name;return gs("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var o=this.getGraph().getNodeByIndex(e),r=o.getLayout().value;i.value=r}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Us),sC=aC;function lC(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),o=uC(t,e);t.layoutInfo=o;var r=o.width,a=o.height,l=t.getGraph(),u=l.nodes,c=l.edges;hC(u);var h=s.hX(u,(function(t){return 0===t.getLayout().value})),d=0!==h.length?0:t.get("layoutIterations"),p=t.get("orient"),f=t.get("nodeAlign");cC(u,c,n,i,r,a,d,p,f)}))}function uC(t,e){return so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function cC(t,e,n,i,o,r,a,s,l){dC(t,e,n,o,r,s,l),vC(t,e,r,o,i,a,s),kC(t,s)}function hC(t){s.S6(t,(function(t){var e=CC(t.outEdges,DC),n=CC(t.inEdges,DC),i=t.getValue()||0,o=Math.max(e,n,i);t.setLayout({value:o},!0)}))}function dC(t,e,n,i,o,r,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&u.push(t[d]);var p=-1;while(u.length){for(var f=0;f<u.length;f++){var g=u[f],y=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=y.depth&&y.depth>
1=0;v&&y.depth>p&&(p=y.depth),g.setLayout({depth:v?y.depth:h},!0),"vertical"===r?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;m<g.outEdges.length;m++){var x=g.outEdges[m],_=e.indexOf(x);s[_]=0;var S=x.node2,b=t.indexOf(S);0===--l[b]&&c.indexOf(S)<0&&c.push(S)}}++h,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var w=p>h-1?p:h-1;a&&"left"!==a&&fC(t,a,r,w);var M="vertical"===r?(o-n)/w:(i-n)/w;yC(t,M,r)}function pC(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function fC(t,e,n,i){if("right"===e){var o=[],r=t,a=0;while(r.length){for(var l=0;l<r.length;l++){var u=r[l];u.setLayout({skNodeHeight:a},!0);for(var c=0;c<u.inEdges.length;c++){var h=u.inEdges[c];o.indexOf(h.node1)<0&&o.push(h.node1)}}r=o,o=[],++a}s.S6(t,(function(t){pC(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&gC(t,i)}function gC(t,e){s.S6(t,(function(t){pC(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function yC(t,e,n){s.S6(t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}function vC(t,e,n,i,o,r,a){var s=mC(t,a);xC(s,e,n,i,o,a),_C(s,o,n,i,a);for(var l=1;r>0;r--)l*=.99,SC(s,l,a),_C(s,o,n,i,a),AC(s,l,a),_C(s,o,n,i,a)}function mC(t,e){var n=[],i="vertical"===e?"y":"x",o=xt(t,(function(t){return t.getLayout()[i]}));return o.keys.sort((function(t,e){return t-e})),s.S6(o.keys,(function(t){n.push(o.buckets.get(t))})),n}function xC(t,e,n,i,o,r){var a=1/0;s.S6(t,(function(t){var e=t.length,l=0;s.S6(t,(function(t){l+=t.getLayout().value}));var u="vertical"===r?(i-(e-1)*o)/l:(n-(e-1)*o)/l;u<a&&(a=u)})),s.S6(t,(function(t){s.S6(t,(function(t,e){var n=t.getLayout().value*a;"vertical"===r?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),s.S6(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))}function _C(t,e,n,i,o){var r="vertical"===o?"x":"y";s.S6(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[r]-e.getLayout()[r]}));for(var u=0,c=t.length,h="vertical"===o?"dx":"dy",d=0;d<c;d++)s=t[d],l=u-s.getLayout()[r],l>0&&(a=s.getLayout()[r]+l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[r]+s.getLayout()[h]+e;var p="vertical"===o?i:n;if(l=u-e-p,l>0){a=s.getLayout()[r]-l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)s=t[d],l=s.getLayout()[r]+s.getLayout()[h]+e-u,l>0&&(a=s.getLayout()[r]-l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[r]}}))}function SC(t,e,n){s.S6(t.slice().reverse(),(function(t){s.S6(t,(function(t){if(t.outEdges.length){var i=CC(t.outEdges,bC,n)/CC(t.outEdges,DC);if(isNaN(i)){var o=t.outEdges.length;i=o?CC(t.outEdges,wC,n)/o:0}if("vertical"===n){var r=t.getLayout().x+(i-TC(t,n))*e;t.setLayout({x:r},!0)}else{var a=t.getLayout().y+(i-TC(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function bC(t,e){return TC(t.node2,e)*t.getValue()}function wC(t,e){return TC(t.node2,e)}function MC(t,e){return TC(t.node1,e)*t.getValue()}function IC(t,e){return TC(t.node1,e)}function TC(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function DC(t){return t.getValue()}function CC(t,e,n){var i=0,o=t.length,r=-1;while(++r<o){var a=+e(t[r],n);isNaN(a)||(i+=a)}return i}function AC(t,e,n){s.S6(t,(function(t){s.S6(t,(function(t){if(t.inEdges.length){var i=CC(t.inEdges,MC,n)/CC(t.inEdges,DC);if(isNaN(i)){var o=t.inEdges.length;i=o?CC(t.inEdges,IC,n)/o:0}if("vertical"===n){var r=t.getLayout().x+(i-TC(t,n))*e;t.setLayout({x:r},!0)}else{var a=t.getLayout().y+(i-TC(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function kC(t,e){var n="vertical"===e?"x":"y";s.S6(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),s.S6(t,(function(t){var e=0,n=0;s.S6(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),s.S6(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}function LC(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var o=1/0,r=-1/0;s.S6(n,(function(t){var e=t.getLayout().value;e<o&&(o=e),e>r&&(r=e)})),s.S6(n,(function(e){var n=new kw({type:"color",mappingMethod:"linear",dataExtent:[o,r],visual:t.get("color")}),i=n.mapValueToVisual(e.getLayout().value),a=e.getModel().get(["itemStyle","color"]);null!=a?(e.setVisual("color",a),e.setVisual("style",{fill:a})):(e.setVisual("color",i),e.setVisual("style",{fill:i}))}))}i.length&&s.S6(i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}
1))}function PC(t){t.registerChartView(rC),t.registerSeriesModel(sC),t.registerLayout(lC),t.registerVisual(LC),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var NC=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,o=e.getComponent("xAxis",this.get("xAxisIndex")),r=e.getComponent("yAxis",this.get("yAxisIndex")),a=o.get("type"),l=r.get("type");"category"===a?(t.layout="horizontal",n=o.getOrdinalMeta(),i=!0):"category"===l?(t.layout="vertical",n=r.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c="horizontal"===t.layout?0:1,h=this._baseAxisDim=u[c],d=u[1-c],p=[o,r],f=p[c].get("type"),g=p[1-c].get("type"),y=t.data;if(y&&i){var v=[];s.S6(y,(function(t,e){var n;s.kJ(t)?(n=t.slice(),t.unshift(e)):s.kJ(t.value)?(n=s.l7({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,v.push(n)})),t.data=v}var m=this.defaultValueDimensions,x=[{name:h,type:hp(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:hp(g),dimsDef:m.slice()}];return my(this,{coordDimensions:x,dimensionsCount:m.length+1,encodeDefaulter:s.WA(Ro,x,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),RC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return(0,r.ZT)(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Us);(0,s.jB)(RC,NC,!0);var OC=RC,EC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this.group,r=this._data;this._data||o.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(r).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=BC(e,i,t,a,!0);i.setItemGraphicEl(t,n),o.add(n)}})).update((function(t,e){var n=r.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(gn(n),ZC(s,n,i,t)):n=BC(s,i,t,a),o.add(n),i.setItemGraphicEl(t,n)}else o.remove(n)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&o.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(ou),VC=function(){function t(){}return t}(),zC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new VC},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(Ht.ZP);function BC(t,e,n,i,o){var r=t.ends,a=new zC({shape:{points:o?GC(r,i,t):r}});return ZC(t,a,e,n,o),a}function ZC(t,e,n,o,r){var a=n.hostModel,s=i[r?"initProps":"updateProps"];s(e,{shape:{points:t.ends}},a,o),e.useStyle(n.getItemVisual(o,"style")),e.style.strokeNoScale=!0,e.z2=100;var l=n.getItemModel(o),u=l.getModel("emphasis");qe(e,l),Ye(e,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function GC(t,e,n){return s.UI(t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var WC=EC,FC=s.S6;function HC(t){var e=UC(t);FC(e,(function(t){var e=t.seriesModels;e.length&&(XC(t),FC(e,(function(e,n){YC(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}function UC(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),o=s.cq(n,i);o<0&&(o=n.length,n[o]=i,e[o]={axis:i,seriesModels:[]}),e[o].seriesModels.push(t)})),e}function XC(t){var e,n=t.axis,i=t.seriesModels,o=i.length,r=t.boxWidthList=[],a=t.boxOffsetList=[],l=[];
1if("category"===n.type)e=n.getBandWidth();else{var u=0;FC(i,(function(t){u=Math.max(u,t.getData().count())}));var c=n.getExtent();e=Math.abs(c[1]-c[0])/u}FC(i,(function(t){var n=t.get("boxWidth");s.kJ(n)||(n=[n,n]),l.push([g(n[0],e)||0,g(n[1],e)||0])}));var h=.8*e-2,d=h/o*.3,p=(h-d*(o-1))/o,f=p/2-h/2;FC(i,(function(t,e){a.push(f),f+=d+p,r.push(Math.min(Math.max(p,l[e][0]),l[e][1]))}))}function YC(t,e,n){var i=t.coordinateSystem,o=t.getData(),r=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=o.mapDimension(l[a]),c=o.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<o.count();h++){var d=o.get(u,h),p=x(d,c[2],h),f=x(d,c[0],h),g=x(d,c[1],h),y=x(d,c[3],h),v=x(d,c[4],h),m=[];_(m,g,!1),_(m,y,!0),m.push(f,g,v,y),S(m,f),S(m,v),S(m,p),o.setItemLayout(h,{initBaseline:p[s],ends:m})}function x(t,n,r){var l,u=o.get(n,r),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c),l[a]+=e),l}function _(t,e,n){var i=e.slice(),o=e.slice();i[a]+=r,o[a]-=r,n?t.push(i,o):t.push(o,i)}function S(t,e){var n=e.slice(),i=e.slice();n[a]-=r,i[a]+=r,t.push(n,i)}}function JC(t,e){e=e||{};for(var n=[],i=[],o=e.boundIQR,r="none"===o||0===o,a=0;a<t.length;a++){var l=v(t[a].slice()),u=L(l,.25),c=L(l,.5),h=L(l,.75),d=l[0],p=l[l.length-1],f=(null==o?1.5:o)*(h-u),g=r?d:Math.max(d,u-f),y=r?p:Math.min(p,h+f),m=e.itemNameFormatter,x=(0,s.mf)(m)?m({value:a}):(0,s.HD)(m)?m.replace("{value}",a+""):a+"";n.push([x,g,u,c,h,y]);for(var _=0;_<l.length;_++){var S=l[_];
1if(S<g||S>y){var b=[x,S];i.push(b)}}}return{boxData:n,outliers:i}}var jC={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Mo){var n="";0,Ca(n)}var i=JC(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function KC(t){t.registerSeriesModel(OC),t.registerChartView(WC),t.registerLayout(HC),t.registerTransform(jC)}var qC=["color","borderColor"],$C=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){jl(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,o=e.getLayout("isSimpleBox"),r=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(r&&nA(s,a))return;var l=eA(a,n,!0);cn(l,{shape:{points:a.ends}},t,n),iA(l,e,n,o),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);r&&nA(s,c)?i.remove(u):(u?(un(u,{shape:{points:c.ends}},t,a),gn(u)):u=eA(c,a),iA(u,e,a,o),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),sA(t,this.group);var e=t.get("clip",!0)?Nf(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var n,i=e.getData(),o=i.getLayout("isSimpleBox");while(null!=(n=t.next())){var r=i.getItemLayout(n),a=eA(r,n);iA(a,i,n,o),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){sA(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(ou),QC=function(){function t(){}return t}(),tA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new QC},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(Ht.ZP);function eA(t,e,n){var i=t.ends;return new tA({shape:{points:n?oA(i,t):i},z2:100})}function nA(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function iA(t,e,n,i){var o=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,qe(t,o)}function oA(t,e){return s.UI(t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var rA=function(){function t(){}return t}(),aA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return(0,r.ZT)(e,t),e.prototype.getDefaultShape=function(){return new rA},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];t.moveTo(o,n[i++]),t.lineTo(o,n[i++])}else i+=3},e}(Ht.ZP);function sA(t,e,n,i){var o=t.getData(),r=o.getLayout("largePoints"),a=new aA({shape:{points:r},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new aA({shape:{points:r},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new aA({shape:{points:r},__sign:0,ignoreCoarsePointer:!0});e.add(l),lA(1,a,t,o),lA(-1,s,t,o),lA(0,l,t,o),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function lA(t,e,n,i){var o=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(o=n.get(["itemStyle","borderColorDoji"]));var r=n.getModel("itemStyle").getItemStyle(qC);e.useStyle(r),e.style.fill=null,e.style.stroke=o}var uA=$C,cA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return(0,r.ZT)(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Us);(0,s.jB)(cA,NC,!0);var hA=cA;function dA(t){t&&s.kJ(t.series)&&s.S6(t.series,(function(t){s.Kn(t)&&"k"===t.type&&(t.type="candlestick")}))}var pA=["itemStyle","borderColor"],fA=["itemStyle","borderColor0"],gA=["itemStyle","borderColorDoji"],yA=["itemStyle","color"],vA=["itemStyle","color0"],mA={seriesType:"candlestick",plan:js(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?yA:vA)}function i(t,e){return e.get(0===t?gA:t>0?pA:fA)}if(!e.isSeriesFiltered(t)){var o=t.pipelineContext.large;return!o&&{progress:function(t,e){var o;while(null!=(o=t.next())){var r=e.getItemModel(o),a=e.getItemLayout(o).sign,l=r.getItemStyle();l.fill=n(a,r),l.stroke=i(a,r)||l.fill;var u=e.ensureUniqueItemVisual(o,"style");(0,s.l7)(u,l)}}}}}},xA=mA,_A={seriesType:"candlestick",plan:js(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=bA(t,n),o=0,r=1,a=["x","y"],l=n.getDimensionIndex(n.mapDimension(a[o])),u=(0,s.UI)(n.mapDimensionsAll(a[r]),n.getDimensionIndex,n),c=u[0],h=u[1],d=u[2],p=u[3];
1if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(l<0||u.length<4))return{progress:t.pipelineContext.large?g:f};function f(t,n){var a,s=n.getStore();while(null!=(a=t.next())){var u=s.get(l,a),f=s.get(c,a),g=s.get(h,a),y=s.get(d,a),v=s.get(p,a),m=Math.min(f,g),x=Math.max(f,g),_=D(m,u),S=D(x,u),b=D(y,u),w=D(v,u),M=[];C(M,S,0),C(M,_,1),M.push(k(w),k(S),k(b),k(_));var I=n.getItemModel(a),T=!!I.get(["itemStyle","borderColorDoji"]);n.setItemLayout(a,{sign:SA(s,a,f,g,h,T),initBaseline:f>g?S[r]:_[r],ends:M,brushRect:A(y,v,u)})}function D(t,n){var i=[];return i[o]=n,i[r]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function C(t,e,n){var r=e.slice(),a=e.slice();r[o]=Nl(r[o]+i/2,1,!1),a[o]=Nl(a[o]-i/2,1,!0),n?t.push(r,a):t.push(a,r)}function A(t,e,n){var a=D(t,n),s=D(e,n);return a[o]-=i/2,s[o]-=i/2,{x:a[0],y:a[1],width:r?i:s[0]-a[0],height:r?s[1]-a[1]:i}}function k(t){return t[o]=Nl(t[o],1),t}}function g(n,i){var a,s,u=_f(4*n.count),f=0,g=[],y=[],v=i.getStore(),m=!!t.get(["itemStyle","borderColorDoji"]);while(null!=(s=n.next())){var x=v.get(l,s),_=v.get(c,s),S=v.get(h,s),b=v.get(d,s),w=v.get(p,s);isNaN(x)||isNaN(b)||isNaN(w)?(u[f++]=NaN,f+=3):(u[f++]=SA(v,s,_,S,h,m),g[o]=x,g[r]=b,a=e.dataToPoint(g,null,y),u[f++]=a?a[0]:NaN,u[f++]=a?a[1]:NaN,g[r]=w,a=e.dataToPoint(g,null,y),u[f++]=a?a[1]:NaN)}i.setLayout("largePoints",u)}}};function SA(t,e,n,i,o,r){var a;return a=n>i?-1:n<i?1:r?0:e>0?t.get(o,e-1)<=i?1:-1:1,a}function bA(t,e){var n,i=t.getBaseAxis(),o="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),r=g((0,s.pD)(t.get("barMaxWidth"),o),o),a=g((0,s.pD)(t.get("barMinWidth"),1),o),l=t.get("barWidth");return null!=l?g(l,o):Math.max(Math.min(o/2,r),a)}var wA=_A;function MA(t){t.registerChartView(uA),t.registerSeriesModel(hA),t.registerPreprocessor(dA),t.registerVisual(xA),t.registerLayout(wA)}function IA(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var TA=function(t){function e(e,n){var i=t.call(this)||this,o=new uf(e,n),r=new Xs.Z;return i.add(o),i.add(r),i.updateData(e,n),i}return(0,r.ZT)(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),r=0;r<i;r++){var a=gc(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-r/i*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),o.add(a)}IA(o,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var r=i[o];if(e[r]!==t[r])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}IA(n,t)},e.prototype.highlight=function(){Ce(this)},e.prototype.downplay=function(){Ae(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var o=this.childAt(1),r=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=yc(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=r.getModel("emphasis");o.setScale(s),o.traverse((function(t){t.setStyle("fill",u)}));var h=vc(t.getItemVisual(e,"symbolOffset"),s);h&&(o.x=h[0],o.y=h[1]);var d=t.getItemVisual(e,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=r.get(["rippleEffect","scale"]),p.brushType=r.get(["rippleEffect","brushType"]),p.period=1e3*r.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=a,p.color=u,p.rippleEffectColor=r.get(["rippleEffect","color"]),p.rippleNumber=r.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Ye(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Xs.Z),DA=TA,CA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(){this._symbolDraw=new ff(DA)},e.prototype.render=function(t,e,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();
1return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var o=tg("").reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=qs.d9(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(ou),AA=CA,kA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t,e){return ef(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Us),LA=kA;function PA(t){t.registerChartView(AA),t.registerSeriesModel(LA),t.registerLayout(tg("effectScatter"))}var NA=function(t){function e(e,n,i){var o=t.call(this)||this;return o.add(o.createLine(e,n,i)),o._updateEffectSymbol(e,n),o}return(0,r.ZT)(e,t),e.prototype.createLine=function(t,e,n){return new QM(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),i=n.getModel("effect"),o=i.get("symbolSize"),r=i.get("symbol");s.kJ(o)||(o=[o,o]);var a=t.getItemVisual(e,"style"),l=i.get("color")||a&&a.stroke,u=this.childAt(1);this._symbolType!==r&&(this.remove(u),u=gc(r,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(i.getItemStyle(["color"])),u.scaleX=o[0],u.scaleY=o[1],u.setColor(l),this._symbolType=r,this._symbolScale=o,this._updateEffectAnimation(t,i,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var o=t.getItemLayout(n),r=1e3*e.get("period"),a=e.get("loop"),l=e.get("roundTrip"),u=e.get("constantSpeed"),c=s.Jv(e.get("delay"),(function(e){return e/t.count()*r/3}));if(i.ignore=!0,this._updateAnimationPoints(i,o),u>0&&(r=this._getLineLength(i)/u*1e3),r!==this._period||a!==this._loop||l!==this._roundTrip){i.stopAnimation();var h=void 0;h=s.mf(c)?c(n):c,i.__t>0&&(h=-r*i.__t),this._animateSymbol(i,r,h,a,l)}this._period=r,this._loop=a,this._roundTrip=l}},e.prototype._animateSymbol=function(t,e,n,i,o){if(e>0){t.__t=0;var r=this,a=t.animate("",i).when(o?2*e:e,{__t:o?2:1}).delay(n).during((function(){r._updateSymbolPosition(t)}));i||a.done((function(){r.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return $s.TK(t.__p1,t.__cp1)+$s.TK(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,r=[t.x,t.y],a=r.slice(),s=dd.Zm,l=dd.AZ;r[0]=s(e[0],i[0],n[0],o),r[1]=s(e[1],i[1],n[1],o);var u=t.__t<1?l(e[0],i[0],n[0],o):l(n[0],i[0],e[0],1-o),c=t.__t<1?l(e[1],i[1],n[1],o):l(n[1],i[1],e[1],1-o);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*$s.TK(a,r),1===o&&(r[0]=a[0]+(r[0]-a[0])/2,r[1]=a[1]+(r[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*$s.TK(e,r):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=r[0],t.y=r[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(Xs.Z),RA=NA,OA=function(t){function e(e,n,i){var o=t.call(this)||this;return o._createPolyline(e,n,i),o}return(0,r.ZT)(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),o=new al.Z({shape:{points:i}});this.add(o),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,o=this.childAt(0),r={shape:{points:t.getItemLayout(e)}};un(o,r,i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),o=t.getItemModel(e),r=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=o.getModel("emphasis");r=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=r,Ye(this,a,s,l)},e.prototype.updateLayout=function(t,e){var n=this.childAt(0);n.setShape("points",t.getItemLayout(e))},e}(Xs.Z),EA=OA,VA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return(0,r.ZT)(e,t),e.prototype.createLine=function(t,e,n){return new EA(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,o=1;o<e.length;o++){var r=e[o-1],a=e[o];i+=$s.TK(r,a),n.push(i)}if(0!==i){for(o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var r,a=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(a+1,o-1);for(r=s;r>=0;r--)if(i[r]<=e)break;r=Math.min(r,o-2)}else{for(r=a;r<o;r++)if(i[r]>e)break;r=Math.min(r-1,o-2)}var l=(e-i[r])/(i[r+1]-i[r]),u=n[r],c=n[r+1];t.x=u[0]*(1-l)+l*c[0],t.y=u[1]*(1-l)+l*c[1];var h=t.__t<1?c[0]-u[0]:u[0]-c[0],d=t.__t<1?c[1]-u[1]:u[1]-c[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=e,t.ignore=!1}},e}(RA),zA=VA,BA=n(33640),ZA=n(25674),GA=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),WA=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,r.ZT)(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new GA},e.prototype.buildPath=function(t,e){var n,i=e.segs,o=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var r=i[n++];if(r>0){t.moveTo(i[n++],i[n++]);for(var a=1;a<r;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];if(t.moveTo(s,l),o>0){var h=(s+u)/2-(l-c)*o,d=(l+c)/2-(u-s)*o;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,o=n.curveness,r=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],h=1;h<l;h++){var d=i[s++],p=i[s++];if(BA.m(u,c,d,p,r,t,e))return a}
1a++}else for(a=0,s=0;s<i.length;){u=i[s++],c=i[s++],d=i[s++],p=i[s++];if(o>0){var f=(u+d)/2-(c-p)*o,g=(c+p)/2-(d-u)*o;if(ZA.m(u,c,f,g,d,p,r,t,e))return a}else if(BA.m(u,c,d,p,r,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var o=this.hoverDataIdx=this.findDataIndex(t,e);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,i=1/0,o=1/0,r=-1/0,a=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];i=Math.min(l,i),r=Math.max(l,r),o=Math.min(u,o),a=Math.max(u,a)}t=this._rect=new $n.Z(i,o,r,a)}return t},e}(Ht.ZP),FA=function(){function t(){this.group=new Xs.Z}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),o=n&&n.shape.segs;if(o&&o.length<2e4){var r=o.length,a=new Float32Array(r+i.length);a.set(o),a.set(i,r),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new WA({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var o=e.getVisual("style");o&&o.stroke&&t.setStyle("stroke",o.stroke),t.setStyle("fill",null);var r=Gt(t);r.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){r.dataIndex=null;var n=t.hoverDataIdx;n>0&&(r.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),HA=FA,UA={seriesType:"lines",plan:js(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(o,r){var a=[];if(i){var s=void 0,l=o.end-o.start;if(n){for(var u=0,c=o.start;c<o.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=o.start;c<o.end;c++){var p=t.getLineCoords(c,a);n&&(s[h++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}r.setLayout("linesPoints",s)}else for(c=o.start;c<o.end;c++){var g=r.getItemModel(c),y=(p=t.getLineCoords(c,a),[]);if(n)for(var v=0;v<p;v++)y.push(e.dataToPoint(a[v]));else{y[0]=e.dataToPoint(a[0]),y[1]=e.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}r.setItemLayout(c,y)}}}}}},XA=UA,YA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this._updateLineDraw(i,t),r=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),o.updateData(i);var u=t.get("clip",!0)&&Nf(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),o=t.pipelineContext;
1if(!this._finished||o.large||o.progressiveRender)return{update:!0};var r=XA.reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),o=!!e.get("polyline"),r=e.pipelineContext,a=r.large;return n&&i===this._hasEffet&&o===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new HA:new rI(o?i?zA:EA:i?RA:QM),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=a),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(ou),JA=YA,jA="undefined"===typeof Uint32Array?Array:Uint32Array,KA="undefined"===typeof Float64Array?Array:Float64Array;function qA(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=(0,s.UI)(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),(0,s.Jn)([n,t[0],t[1]])})))}var $A=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,r.ZT)(e,t),e.prototype.init=function(e){e.data=e.data||[],qA(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(qA(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=(0,s.WW)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=(0,s.WW)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],o=0;o<i;o++)e[o]=e[o]||[],e[o][0]=this._flatCoords[n+2*o],e[o][1]=this._flatCoords[n+2*o+1];return i}var r=this._getCoordsFromItemModel(t);for(o=0;o<r.length;o++)e[o]=e[o]||[],e[o][0]=r[o][0],e[o][1]=r[o][1];return r.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),(0,s.hj)(t[0])){for(var n=t.length,i=new jA(n),o=new KA(n),r=0,a=0,l=0,u=0;u<n;){l++;var c=t[u++];i[a++]=r+e,i[a++]=c;for(var h=0;h<c;h++){var d=t[u++],p=t[u++];o[r++]=d,o[r++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:o,count:l}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new Vp(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,o){if(t instanceof Array)return NaN;n.hasItemOption=!0;var r=t.value;return null!=r?r instanceof Array?r[o]:r:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=i.getItemModel(t),r=o.get("name");if(r)return r;var a=o.get("fromName"),s=o.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),gs("nameValue",{name:l.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Us),QA=$A;function tk(t){return t instanceof Array||(t=[t,t]),t}var ek={seriesType:"lines",reset:function(t){var e=tk(t.get("symbol")),n=tk(t.get("symbolSize")),i=t.getData();function o(t,e){var n=t.getItemModel(e),i=tk(n.getShallow("symbol",!0)),o=tk(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),o[0]&&t.setItemVisual(e,"fromSymbolSize",o[0]),o[1]&&t.setItemVisual(e,"toSymbolSize",o[1])}return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?o:null}}},nk=ek;function ik(t){t.registerChartView(JA),t.registerSeriesModel(QA),t.registerLayout(XA),t.registerVisual(nk)}var ok=256,rk=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=xc.qW.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,o,r){var a=this._getBrush(),s=this._getGradient(o,"inRange"),l=this._getGradient(o,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],y=f[1],v=f[2],m=i(v);h.globalAlpha=m,h.drawImage(a,g-u,y-u)}if(!c.width||!c.height)return c;var x=h.getImageData(0,0,c.width,c.height),_=x.data,S=0,b=_.length,w=this.minOpacity,M=this.maxOpacity,I=M-w;while(S<b){m=_[S+3]/256;var T=4*Math.floor(m*(ok-1));if(m>0){var D=r(m)?s:l;m>0&&(m=m*I+w),_[S++]=D[T],_[S++]=D[T+1],_[S++]=D[T+2],_[S++]=D[T+3]*m*256}else S+=4}return h.putImageData(x,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=xc.qW.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),o=[0,0,0,0],r=0,a=0;a<256;a++)t[e](a/255,!0,o),i[r++]=o[0],i[r++]=o[1],i[r++]=o[2],i[r++]=o[3];return i},t}(),ak=rk;function sk(t,e,n){var i=t[1]-t[0];e=s.UI(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var o=e.length,r=0;return function(t){var i;for(i=r;i<o;i++){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){r=i;break}}if(i===o)for(i=r-1;i>=0;i--){a=e[i].interval;if(a[0]<=t&&t<=a[1]){r=i;break}}return i>=0&&i<o&&n[i]}}function lk(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function uk(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var ck=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):uk(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var o=e.coordinateSystem;o&&(uk(o)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){jl(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,o){var r,a,s,l,u=t.coordinateSystem,c=Rf(u,"cartesian2d");if(c){var h=u.getAxis("x"),d=u.getAxis("y");0,r=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),x=Sn(t),_=t.getModel("emphasis"),S=_.get("focus"),b=_.get("blurScope"),w=_.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],I=n;I<i;I++){var T=void 0,D=f.getItemVisual(I,"style");
1if(c){var C=f.get(M[0],I),A=f.get(M[1],I);if(isNaN(f.get(M[2],I))||isNaN(C)||isNaN(A)||C<s[0]||C>s[1]||A<l[0]||A>l[1])continue;var k=u.dataToPoint([C,A]);T=new sl.Z({shape:{x:k[0]-r/2,y:k[1]-a/2,width:r,height:a},style:D})}else{if(isNaN(f.get(M[1],I)))continue;T=new sl.Z({z2:1,shape:u.dataToRect([f.get(M[0],I)]).contentShape,style:D})}if(f.hasItemOption){var L=f.getItemModel(I),P=L.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=L.getModel(["blur","itemStyle"]).getItemStyle(),v=L.getModel(["select","itemStyle"]).getItemStyle(),m=L.get(["itemStyle","borderRadius"]),S=P.get("focus"),b=P.get("blurScope"),w=P.get("disabled"),x=Sn(L)}T.shape.r=m;var N=t.getRawValue(I),R="-";N&&null!=N[2]&&(R=N[2]+""),_n(T,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:D.opacity,defaultText:R}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=y,T.ensureState("select").style=v,Ye(T,S,b,w),T.incremental=o,o&&(T.states.emphasis.hoverLayer=!0),p.add(T),f.setItemGraphicEl(I,T),this._progressiveEls&&this._progressiveEls.push(T)}},e.prototype._renderOnGeo=function(t,e,n,i){var o=n.targetVisuals.inRange,r=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new ak;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-c,g=p-h,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(y,(function(e,n,i){var o=t.dataToPoint([e,n]);return o[0]-=c,o[1]-=h,o.push(i),o})),m=n.getExtent(),x="visualMap.continuous"===n.type?lk(m,n.option.range):sk(m,n.getPieceList(),n.option.selected);s.update(v,f,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:r.color.getColorMapper()},x);var _=new tl.ZP({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(ou),hk=ck,dk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t,e){return ef(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=pr.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Us),pk=dk;function fk(t){t.registerChartView(hk),t.registerSeriesModel(pk)}var gk=["itemStyle","borderWidth"],yk=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],vk=new el.Z,mk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var i=this.group,o=t.getData(),r=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:yk[+l],categoryDim:yk[1-+l]};return o.diff(r).add((function(t){if(o.hasValue(t)){var e=kk(o,t),n=xk(o,t,e,c),r=Nk(o,c,n);o.setItemGraphicEl(t,r),i.add(r),Bk(r,c,n)}})).update((function(t,e){var n=r.getItemGraphicEl(e);if(o.hasValue(t)){var a=kk(o,t),s=xk(o,t,a,c),l=Ek(o,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),o.setItemGraphicEl(t,null),n=null),n?Rk(n,c,s):n=Nk(o,c,s,!0),o.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),Bk(n,c,s)}else i.remove(n)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&Ok(r,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=o,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){Ok(i,Gt(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(ou);function xk(t,e,n,i){var o=t.getItemLayout(e),r=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:e,layout:o,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:r,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emp
1hasis","scale"]),z2:n.getShallow("z",!0)||0};_k(n,r,o,i,d),bk(t,e,o,r,a,d.boundingLength,d.pxSign,c,i,d),wk(n,d.symbolScale,u,i,d);var p=d.symbolSize,f=vc(n.get("symbolOffset"),p);return Mk(n,p,o,r,a,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function _k(t,e,n,i,o){var r,a=i.valueDim,l=t.get("symbolBoundingData"),u=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),h=1-+(n[a.wh]<=0);if(s.kJ(l)){var d=[Sk(u,l[0])-c,Sk(u,l[1])-c];d[1]<d[0]&&d.reverse(),r=d[h]}else r=null!=l?Sk(u,l)-c:e?i.coordSysExtent[a.index][h]-c:n[a.wh];o.boundingLength=r,e&&(o.repeatCutLength=n[a.wh]),o.pxSign=r>0?1:-1}function Sk(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function bk(t,e,n,i,o,r,a,l,u,c){var h,d=u.valueDim,p=u.categoryDim,f=Math.abs(n[p.wh]),y=t.getItemVisual(e,"symbolSize");h=s.kJ(y)?y.slice():null==y?["100%","100%"]:[y,y],h[p.index]=g(h[p.index],f),h[d.index]=g(h[d.index],i?f:Math.abs(r)),c.symbolSize=h;var v=c.symbolScale=[h[0]/l,h[1]/l];v[d.index]*=(u.isHorizontal?-1:1)*a}function wk(t,e,n,i,o){var r=t.get(gk)||0;r&&(vk.attr({scaleX:e[0],scaleY:e[1],rotation:n}),vk.updateTransform(),r/=vk.getLineScale(),r*=e[i.valueDim.index]),o.valueLineWidth=r||0}function Mk(t,e,n,i,o,r,a,l,u,c,h,d){var p=h.categoryDim,f=h.valueDim,y=d.pxSign,v=Math.max(e[f.index]+l,0),m=v;if(i){var x=Math.abs(u),_=s.Jv(t.get("symbolMargin"),"15%")+"",S=!1;_.lastIndexOf("!")===_.length-1&&(S=!0,_=_.slice(0,_.length-1));var b=g(_,e[f.index]),w=Math.max(v+2*b,0),M=S?0:2*b,I=R(i),T=I?i:Zk((x+M)/w),D=x-T*v;b=D/2/(S?T:Math.max(T-1,1)),w=v+2*b,M=S?0:2*b,I||"fixed"===i||(T=c?Zk((Math.abs(c)+M)/w):0),m=T*w-M,d.repeatTimes=T,d.symbolMargin=b}var C=y*(m/2),A=d.pathPosition=[];A[p.index]=n[p.wh]/2,A[f.index]="start"===a?C:"end"===a?u-C:u/2,r&&(A[0]+=r[0],A[1]+=r[1]);var k=d.bundlePosition=[];k[p.index]=n[p.xy],k[f.index]=n[f.xy];var L=d.barRectShape=s.l7({},n);L[f.wh]=y*Math.max(Math.abs(n[f.wh]),Math.abs(A[f.index]+C)),L[p.wh]=n[p.wh];var P=d.clipShape={};P[p.xy]=-n[p.xy],P[p.wh]=h.ecSize[p.wh],P[f.xy]=0,P[f.wh]=n[f.wh]}function Ik(t){var e=t.symbolPatternSize,n=gc(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Tk(t,e,n,i){var o=t.__pictorialBundle,r=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=r[e.valueDim.index]+a+2*n.symbolMargin;for(Vk(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?zk(t,null,f(c),n,i):zk(t,null,{scaleX:0,scaleY:0},n,i,(function(){o.remove(t)})),c++}));c<u;c++){var d=Ik(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,o.add(d);var p=f(c);zk(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,o=t;return("start"===n.symbolRepeatDirection?i>
10:i<0)&&(o=u-1-t),e[l.index]=h*(o-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Dk(t,e,n,i){var o=t.__pictorialBundle,r=t.__pictorialMainPath;r?zk(r,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(r=t.__pictorialMainPath=Ik(n),o.add(r),zk(r,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function Ck(t,e,n){var i=s.l7({},e.barRectShape),o=t.__pictorialBarRect;o?zk(o,null,{shape:i},e,n):(o=t.__pictorialBarRect=new sl.Z({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),o.disableMorphing=!0,t.add(o))}function Ak(t,e,n,o){if(n.symbolClip){var r=t.__pictorialClipPath,a=s.l7({},n.clipShape),l=e.valueDim,u=n.animationModel,c=n.dataIndex;if(r)un(r,{shape:a},u,c);else{a[l.wh]=0,r=new sl.Z({shape:a}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var h={};h[l.wh]=n.clipShape[l.wh],i[o?"updateProps":"initProps"](r,{shape:h},u,c)}}}function kk(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=Lk,n.isAnimationEnabled=Pk,n}function Lk(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Pk(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Nk(t,e,n,i){var o=new Xs.Z,r=new Xs.Z;return o.add(r),o.__pictorialBundle=r,r.x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?Tk(o,e,n):Dk(o,e,n),Ck(o,n,i),Ak(o,e,n,i),o.__pictorialShapeStr=Ek(t,n),o.__pictorialSymbolMeta=n,o}function Rk(t,e,n){var i=n.animationModel,o=n.dataIndex,r=t.__pictorialBundle;un(r,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,o),n.symbolRepeat?Tk(t,e,n,!0):Dk(t,e,n,!0),Ck(t,n,!0),Ak(t,e,n,!0)}function Ok(t,e,n,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var r=[];Vk(i,(function(t){r.push(t)})),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),s.S6(r,(function(t){dn(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function Ek(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Vk(t,e,n){s.S6(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function zk(t,e,n,o,r,a){e&&t.attr(e),o.symbolClip&&!r?n&&t.attr(n):n&&i[r?"updateProps":"initProps"](t,n,o.animationModel,o.dataIndex,a)}function Bk(t,e,n){var i=n.dataIndex,o=n.itemModel,r=o.getModel("emphasis"),a=r.getModel("itemStyle").getItemStyle(),l=o.getModel(["blur","itemStyle"]).getItemStyle(),u=o.getModel(["select","itemStyle"]).getItemStyle(),c=o.getShallow("cursor"),h=r.get("focus"),d=r.get("blurScope"),p=r.get("scale");Vk(t,(function(t){if(t instanceof tl.ZP){var e=t.style;t.useStyle(s.l7({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=l,t.ensureState("select").style=u,c&&(t.cursor=c),t.z2=n.z2}));var f=e.valueDim.posDesc[+(n.boundingLength>0)],g=t.__pictorialBarRect;_n(g,Sn(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:rf(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Ye(t,h,d,r.get("disabled"))}function Zk(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Gk=mk,Wk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=qn(_g.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(_g),Fk=Wk;function Hk(t){t.registerChartView(Gk),t.registerSeriesModel(Fk),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,(0,s.WA)(fg,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gg("pictorialBar"))}var Uk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this,r=this.group,a=t.getLayerSeries(),l=i.getLayout("layoutInfo"),u=l.rect,c=l.boundaryGap;function h(t){return t.name}r.x=0,r.y=u.y+c[0];var d=new sp(this._layersSeries||[],a,h,h),p=[];function f(e,n,s){var l=o._layers;if("remove"!==e){for(var u,c,h=[],d=[],f=a[n].indices,g=0;g<f.length;g++){var y=i.getItemLayout(f[g]),v=y.x,m=y.y0,x=y.y;h.push(v,m),d.push(v,m+x),u=i.getItemVisual(f[g],"style")}var _=i.getItemLayout(f[0]),S=t.getModel("label"),b=S.get("margin"),w=t.getModel("emphasis");if("add"===e){var M=p[n]=new Xs.Z;c=new kf({shape:{points:h,stackedOnPoints:d,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M.add(c),r.add(M),t.isAnimationEnabled()&&c.setClipPath(Xk(c.getBoundingRect
1(),t,(function(){c.removeClipPath()})))}else{M=l[s];c=M.childAt(0),r.add(M),p[n]=M,un(c,{shape:{points:h,stackedOnPoints:d}},t),gn(c)}_n(c,Sn(t),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var I=c.getTextContent();I&&(I.x=_.x-b,I.y=_.y0+_.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),qe(c,t),Ye(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else r.remove(l[n])}d.add((0,s.ak)(f,this,"add")).update((0,s.ak)(f,this,"update")).remove((0,s.ak)(f,this,"remove")).execute(),this._layersSeries=a,this._layers=p},e.type="themeRiver",e}(ou);function Xk(t,e,n){var i=new sl.Z({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return cn(i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}var Yk=Uk,Jk=2,jk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new _y(s.ak(this.getData,this),s.ak(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=xt(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),o=[];i.buckets.each((function(t,e){o.push({name:e,dataList:t})}));for(var r=o.length,a=0;a<r;++a){for(var s=o[a].name,l=0;l<o[a].dataList.length;++l){var u=o[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",pt).models[0],i=n.get("type"),o=s.hX(t.data,(function(t){return void 0!==t[2]})),r=this.fixData(o||[]),a=[],l=this.nameMap=s.kW(),u=0,c=0;c<r.length;++c)a.push(r[c][Jk]),l.get(r[c][Jk])||(l.set(r[c][Jk],u),u++);var h=zp(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:hp(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new Vp(h,this);return d.initData(r),d},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var o=t.mapDimension("single"),r=xt(n,(function(e){return t.get("name",e)})),a=[];return r.buckets.each((function(e,n){e.sort((function(e,n){return t.get(o,e)-t.get(o,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){s.kJ(t)||(t=t?[t]:[]);for(var i,o=this.getData(),r=this.getLayerSeries(),a=[],l=r.length,u=0;u<l;++u){for(var c=Number.MAX_VALUE,h=-1,d=r[u].indices.length,p=0;p<d;++p){var f=o.get(t[0],r[u].indices[p]),g=Math.abs(f-e);g<=c&&(i=f,c=g,h=r[u].indices[p])}a.push(h)}return{dataIndices:a,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=i.getName(t),r=i.get(i.mapDimension("value"),t);return gs("nameValue",{name:o,value:r})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Us),Kk=jk;function qk(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var r=t.get("boundaryGap"),a=n.getAxis();if(i.boundaryGap=r,"horizontal"===a.orient){r[0]=g(r[0],o.height),r[1]=g(r[1],o.height);var s=o.height-r[0]-r[1];$k(e,t,s)}else{r[0]=g(r[0],o.width),r[1]=g(r[1],o.width);var l=o.width-r[0]-r[1];$k(e,t,l)}e.setLayout("layoutInfo",i)}))}function $k(t,e,n){if(t.count())for(var i,o=e.coordinateSystem,r=e.getLayerSeries(),a=t.mapDimension("single"),l=t.mapDimension("value"),u=s.UI(r,(function(e){return s.UI(e.indices,(function(e){var n=o.dataToPoint(t.get(a,e));return n[1]=t.get(l,e),n}))})),c=Qk(u),h=c.y0,d=n/c.max,p=r.length,f=r[0].indices.length,g=0;g<f;++g){i=h[g]*d,t.setItemLayout(r[0].indices[g],{layerIndex:0,x:u[0][g][0],y0:i,y:u[0][g][1]*d});for(var y=1;y<p;++y)i+=u[y-1][g][1]*d,t.setItemLayout(r[y].indices[g],{layerIndex:y,x:u[y][g][0],y0:i,y:u[y][g][1]*d})}}function Qk(t){for(var e=t.length,n=t[0].length,i=[],o=[],r=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>r&&(r=s),i.push(s)}for(var u=0;u<n;++u)o[u]=(r-i[u])/2;r=0;for(var c=0;c<n;++c){var h=i[c]+o[c];h>r&&(r=h)}return{y0:o,max:r}}function tL(t){t.registerChartView(Yk),t.registerSeriesModel(Kk),t.registerLayout(qk),t.registerProcessor(ly("themeRiver"))}var eL=2,nL=4,iL=function(t){function e(e,n,i,o){var r=t.call(this)||this;r.z2=eL,r.textConfig={inside:!0},Gt(r).seriesIndex=n.seriesIndex;var a=new Bt.ZP({z2:nL,silent:e.getModel().get(["label","silent"])});return r.setTextContent(a),r.updateData(!0,e,n,i,o),r}return(0,r.ZT)(e,t),e.prototype.updateData=function(t,e,n,i,o){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var r=this;Gt(r).dataIndex=e.dataIndex;var a=e.getModel(),l=a.getModel("emphasis"),u=e.getLayout(),c=s.l7({},u);c.label=null;var h=e.getVisual("style");h.lineJoin="bevel";var d=e.getVisual("decal");d&&(h.decal=wc(d,o));var p=kg(a.getModel("itemStyle"),c,!0);s.l7(c,p),s.S6($t,(function(t){var e=r.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=kg(n,c);i&&(e.shape=i)})),t?(r.setShape(c),r.shape.r=u.r0,cn(r,{shape:{r:u.r}},n,e.dataIndex)):(un(r,{shape:c},n),gn(r)),r.useStyle(h),this._updateLabel(n);var f=a.getShallow("cursor");f&&r.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=l.get("focus"),y="ancestor"===g?e.getAncestorsIndices():"descendant"===g?e.getDescendantIndices():g;Ye(this,y,l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),r=o.endAngle-o.startAngle,a=(o.startAngle+o.endAngle)/2,l=Math.cos(a),u=Math.sin(a),c=this,h=c.getTextContent(),d=this.node.dataIndex,p=i.get("minA
1ngle")/180*Math.PI,f=i.get("show")&&!(null!=p&&Math.abs(r)<p);function g(t,e){var n=t.get(e);return null==n?i.get(e):n}h.ignore=!f,s.S6(Qt,(function(i){var p="normal"===i?n.getModel("label"):n.getModel([i,"label"]),f="normal"===i,y=f?h:h.ensureState(i),v=t.getFormattedLabel(d,i);f&&(v=v||e.node.name),y.style=bn(p,{},null,"normal"!==i,!0),v&&(y.style.text=v);var m=p.get("show");null==m||f||(y.ignore=!m);var x,_=g(p,"position"),S=f?c:c.states[i],b=S.style.fill;S.textConfig={outsideFill:"inherit"===p.get("color")?b:null,inside:"outside"!==_};var w=g(p,"distance")||0,M=g(p,"align");"outside"===_?(x=o.r+w,M=a>Math.PI/2?"right":"left"):M&&"center"!==M?"left"===M?(x=o.r0+w,a>Math.PI/2&&(M="right")):"right"===M&&(x=o.r-w,a>Math.PI/2&&(M="left")):(x=r===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,M="center"),y.style.align=M,y.style.verticalAlign=g(p,"verticalAlign")||"middle",y.x=x*l+o.cx,y.y=x*u+o.cy;var I=g(p,"rotate"),T=0;"radial"===I?(T=(0,hd.m)(-a),T>Math.PI/2&&T<1.5*Math.PI&&(T+=Math.PI)):"tangential"===I?(T=Math.PI/2-a,T>Math.PI/2?T-=Math.PI:T<-Math.PI/2&&(T+=Math.PI)):s.hj(I)&&(T=I*Math.PI/180),y.rotation=(0,hd.m)(T)})),h.dirtyStyle()},e}(il.C),oL=iL,rL="sunburstRootToNode",aL="sunburstHighlight",sL="sunburstUnhighlight";function lL(t){t.registerAction({type:rL,update:"updateView"},(function(t,e){function n(e,n){var i=bb(t,[rL],e);if(i){var o=e.getViewRoot();o&&(t.direction=Mb(o,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:aL,update:"none"},(function(t,e,n){function i(e){var n=bb(t,[aL],e);
1n&&(t.dataIndex=n.node.dataIndex)}t=(0,s.l7)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i),n.dispatchAction((0,s.l7)(t,{type:"highlight"}))})),t.registerAction({type:sL,update:"updateView"},(function(t,e,n){t=(0,s.l7)({},t),n.dispatchAction((0,s.l7)(t,{type:"downplay"}))}))}var uL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=e;var r=t.getData(),a=r.tree.root,l=t.getViewRoot(),u=this.group,c=t.get("renderLabelForZeroData"),h=[];l.eachNode((function(t){h.push(t)}));var d=this._oldChildren||[];function p(t,e){function n(t){return t.getId()}function i(n,i){var o=null==n?null:t[n],r=null==i?null:e[i];f(o,r)}0===t.length&&0===e.length||new sp(e,t,n,n).add(i).update(i).remove(s.WA(i,null)).execute()}function f(i,o){if(c||!i||i.getValue()||(i=null),i!==a&&o!==a)if(o&&o.piece)i?(o.piece.updateData(!1,i,t,e,n),r.setItemGraphicEl(i.dataIndex,o.piece)):g(o);else if(i){var s=new oL(i,t,e,n);u.add(s),r.setItemGraphicEl(i.dataIndex,s)}}function g(t){t&&t.piece&&(u.remove(t.piece),t.piece=null)}function y(i,r){r.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,i,t,e,n):(o.virtualPiece=new oL(i,t,e,n),u.add(o.virtualPiece)),r.piece.off("click"),o.virtualPiece.on("click",(function(t){o._rootToNode(r.parentNode)}))):o.virtualPiece&&(u.remove(o.virtualPiece),o.virtualPiece=null)}p(h,d),y(a,l),this._initEvents(),this._oldChildren=h},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var o=i.getModel().get("nodeClick");if("rootToNode"===o)t._rootToNode(i);else if("link"===o){var r=i.getModel(),a=r.get("link");if(a){var s=r.get("target",!0)||"_blank";to(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:rL,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,r=t[1]-i.cy,a=Math.sqrt(o*o+r*r);return a<=i.r&&a>=i.r0}},e.type="sunburst",e}(ou),cL=uL,hL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return(0,r.ZT)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};dL(n);var i=this._levelModels=s.UI(t.levels||[],(function(t){return new Xn(t,this,e)}),this),o=Sb.createTree(n,this,r);function r(t){t.wrapMethod("getItemModel",(function(t,e){var n=o.getNodeByDataIndex(e),r=i[n.depth];return r&&(t.parentModel=r),t}))}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Ib(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Vb(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Us);function dL(t){var e=0;s.S6(t.children,(function(t){dL(t);var n=t.value;s.kJ(n)&&(n=n[0]),e+=n}));var n=t.value;s.kJ(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),s.kJ(t.value)?t.value[0]=n:t.value=n}var pL=hL,fL=Math.PI/180;function gL(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");s.kJ(i)||(i=[0,i]),s.kJ(e)||(e=[e,e]);var o=n.getWidth(),r=n.getHeight(),a=Math.min(o,r),l=g(e[0],o),u=g(e[1],r),c=g(i[0],a/2),h=g(i[1],a/2),d=-t.get("startAngle")*fL,p=t.get("minA
1ngle")*fL,f=t.getData().tree.root,y=t.getViewRoot(),v=y.depth,m=t.get("sort");null!=m&&yL(y,m);var x=0;s.S6(y.children,(function(t){!isNaN(t.getValue())&&x++}));var _=y.getValue(),S=Math.PI/(_||x)*2,b=y.depth>0,w=y.height-(b?-1:1),M=(h-c)/(w||1),I=t.get("clockwise"),T=t.get("stillShowZeroSum"),D=I?1:-1,C=function(e,n){if(e){var i=n;if(e!==f){var o=e.getValue(),r=0===_&&T?S:o*S;r<p&&(r=p),i=n+D*r;var h=e.depth-v-(b?-1:1),d=c+M*h,y=c+M*(h+1),m=t.getLevelModel(e);if(m){var x=m.get("r0",!0),w=m.get("r",!0),A=m.get("radius",!0);null!=A&&(x=A[0],w=A[1]),null!=x&&(d=g(x,a/2)),null!=w&&(y=g(w,a/2))}e.setLayout({angle:r,startAngle:n,endAngle:i,clockwise:I,cx:l,cy:u,r0:d,r:y})}if(e.children&&e.children.length){var k=0;s.S6(e.children,(function(t){k+=C(t,n+k)}))}return i-n}};if(b){var A=c,k=c+M,L=2*Math.PI;f.setLayout({angle:L,startAngle:d,endAngle:d+L,clockwise:I,cx:l,cy:u,r0:A,r:k})}C(y,d)}))}function yL(t,e){var n=t.children||[];t.children=vL(n,e),n.length&&s.S6(t.children,(function(t){yL(t,e)}))}function vL(t,e){if(s.mf(e)){var n=s.UI(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),s.UI(n,(function(e){return t[e.index]}))}var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}function mL(t){var e={};function n(t,n,i){var o=t;while(o&&o.depth>1)o=o.parentNode;var r=n.getColorFromPalette(o.name||o.dataIndex+"",e);return t.depth>1&&(0,s.HD)(r)&&(r=(0,Ft.xb)(r,(t.depth-1)/(i-1)*.5)),r}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),i=e.tree;i.eachNode((function(o){var r=o.getModel(),a=r.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(o,t,i.root.height));var l=e.ensureUniqueItemVisual(o.dataIndex,"style");(0,s.l7)(l,a)}))}))}function xL(t){t.registerChartView(cL),t.registerSeriesModel(pL),t.registerLayout((0,s.WA)(gL,"sunburst")),t.registerProcessor((0,s.WA)(ly,"sunburst")),t.registerVisual(mL),lL(t)}var _L={color:"fill",borderColor:"stroke"},SL={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},bL=ut(),wL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return ef(null,this)},e.prototype.getDataParams=function(e,n,i){var o=t.prototype.getDataParams.call(this,e,n);return i&&(o.info=bL(i).info),o},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Us),ML=wL;function IL(t,e){return e=e||[0,0],s.UI(["x","y"],(function(n,i){var o=this.getAxis(n),r=e[i],a=t[i]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a))}),this)}function TL(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:s.ak(IL,t)}}}function DL(t,e){return e=e||[0,0],s.UI([0,1],(function(n){var i=e[n],o=t[n]/2,r=[],a=[];return r[n]=i-o,a[n]=i+o,r[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(r)[n]-this.dataToPoint(a)[n])}),this)}function CL(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:s.ak(DL,t)}}}function AL(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,o=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))}function kL(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:(0,s.ak)(AL,t)}}}function LL(t,e){return e=e||[0,0],s.UI(["Radius","Angle"],(function(n,i){var o="get"+n+"Axis",r=this[o](),a=e[i],s=t[i]/2,l="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(a-s)-r.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function PL(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var o=e.dataToRadius(i[0]),r=n.dataToAngle(i[1]),a=t.coordToPoint([o,r]);return a.push(o,r*Math.PI/180),a},size:s.ak(LL,t)}}}function NL(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function RL(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||(0,s.RI)(t,"text")))}function OL(t,e,n){var i,o,r,a=t;if("text"===e)r=a;else{r={},(0,s.RI)(a,"text")&&(r.text=a.text),(0,s.RI)(a,"rich")&&(r.rich=a.rich),(0,s.RI)(a,"textFill")&&(r.fill=a.textFill),(0,s.RI)(a,"textStroke")&&(r.stroke=a.textStroke),(0,s.RI)(a,"fontFamily")&&(r.fontFamily=a.fontFamily),(0,s.RI)(a,"fontSize")&&(r.fontSize=a.fontSize),(0,s.RI)(a,"fontStyle")&&(r.fontStyle=a.fontStyle),(0,s.RI)(a,"fontWeight")&&(r.fontWeight=a.fontWeight),o={type:"text",style:r,silent:!0},i={};var l=(0,s.RI)(a,"textPosition");n?i.position=l?a.textPosition:"inside":l&&(i.position=a.textPosition),(0,s.RI)(a,"textPosition")&&(i.position=a.textPosition),(0,s.RI)(a,"textOffset")&&(i.offset=a.textOffset),(0,s.RI)(a,"textRotation")&&(i.rotation=a.textRotation),(0,s.RI)(a,"textDistance")&&(i.distance=a.textDistance)}return EL(r,t),(0,s.S6)(r.rich,(function(t){EL(t,t)})),{textConfig:i,textContent:o}}function EL(t,e){e&&(e.font=e.textFont||e.font,(0,s.RI)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),(0,s.RI)(e,"textAlign")&&(t.align=e.textAlign),(0,s.RI)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),(0,s.RI)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),(0,s.RI)(e,"textWidth")&&(t.width=e.textWidth),(0,s.RI)(e,"textHeight")&&(t.height=e.textHeight),(0,s.RI)(e,"textBackgroun
1dColor")&&(t.backgroundColor=e.textBackgroundColor),(0,s.RI)(e,"textPadding")&&(t.padding=e.textPadding),(0,s.RI)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),(0,s.RI)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),(0,s.RI)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),(0,s.RI)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),(0,s.RI)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),(0,s.RI)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),(0,s.RI)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function VL(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var o=i.textPosition.indexOf("inside")>=0,r=t.fill||"#000";zL(i,e);var a=null==i.textFill;return o?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=r),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,(0,s.S6)(e.rich,(function(t){zL(t,t)})),i}function zL(t,e){e&&((0,s.RI)(e,"fill")&&(t.textFill=e.fill),(0,s.RI)(e,"stroke")&&(t.textStroke=e.fill),(0,s.RI)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),(0,s.RI)(e,"font")&&(t.font=e.font),(0,s.RI)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),(0,s.RI)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),(0,s.RI)(e,"fontSize")&&(t.fontSize=e.fontSize),(0,s.RI)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),(0,s.RI)(e,"align")&&(t.textAlign=e.align),(0,s.RI)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),(0,s.RI)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),(0,s.RI)(e,"width")&&(t.textWidth=e.width),(0,s.RI)(e,"height")&&(t.textHeight=e.height),(0,s.RI)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),(0,s.RI)(e,"padding")&&(t.textPadding=e.padding),(0,s.RI)(e,"borderColor")&&(t.textBorderColor=e.borderColor),(0,s.RI)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),(0,s.RI)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),(0,s.RI)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),(0,s.RI)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),(0,s.RI)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),(0,s.RI)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),(0,s.RI)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),(0,s.RI)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),(0,s.RI)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),(0,s.RI)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var BL=n(60411),ZL={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},GL=(0,s.XP)(ZL),WL=((0,s.u4)(Qs.dN,(function(t,e){return t[e]=1,t}),{}),Qs.dN.join(", "),["","style","shape","extra"]),FL=ut();function HL(t,e,n,i,o){var r=t+"Animation",a=sn(t,i,o)||{},l=FL(e).userDuring;return a.duration>0&&(a.during=l?(0,s.ak)(tP,{el:e,userDuring:l}):null,a.setToFinal=!0,a.scope=t),(0,s.l7)(a,n[r]),a}function UL(t,e,n,i){i=i||{};var o=i.dataIndex,r=i.isInit,a=i.clearStyle,l=n.isAnimationEnabled(),u=FL(t),c=e.style;u.userDuring=e.during;var h={},d={};if(oP(t,e,d),nP("shape",e,d),nP("extra",e,d),!r&&l&&(iP(t,e,h),eP("shape",t,e,h),eP("extra",t,e,h),rP(t,e,c,h)),d.style=c,jL(t,d,a),qL(t,e),l)if(r){var p={};(0,s.S6)(WL,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(p[t]=p[t]||{}),(0,s.l7)(t?p[t]:p,n.enterFrom))}));var f=HL("enter",t,e,n,o);f.duration>0&&t.animateFrom(p,f)}else KL(t,e,o||0,n,h);XL(t,e),c?t.dirty():t.markRedraw()}function XL(t,e){for(var n=FL(t).leaveToProps,i=0;i<WL.length;i++){var o=WL[i],r=o?e[o]:e;r&&r.leaveTo&&(n||(n=FL(t).leaveToProps={}),o&&(n[o]=n[o]||{}),(0,s.l7)(o?n[o]:n,r.leaveTo))}}function YL(t,e,n,i){if(t){var o=t.parent,r=FL(t).leaveToProps;if(r){var a=HL("update",t,e,n,0);a.done=function(){o.remove(t),i&&i()},t.animateTo(r,a)}else o.remove(t),i&&i()}}function JL(t){return"all"===t}function jL(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var o=t.animators,r=0;r<o.length;r++){var a=o[r];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}function KL(t,e,n,i,o){if(o){var r=HL("update",t,e,i,n);r.duration>0&&t.animateFrom(o,r)}}function qL(t,e){(0,s.RI)(e,"silent")&&(t.silent=e.silent),(0,s.RI)(e,"ignore")&&(t.ignore=e.ignore),t instanceof H_.ZP&&(0,s.RI)(e,"invisible")&&(t.invisible=e.invisible),t instanceof Ht.ZP&&(0,s.RI)(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var $L={},QL={setTransform:function(t,e){return $L.el[t]=e,this},getTransform:function(t){return $L.el[t]},setShape:function(t,e){var n=$L.el,i=n.shape||(n.shape={});return i[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=$L.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=$L.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=$L.el.style;if(e)return e[t]},setExtra:function(t,e){var n=$L.el.extra||($L.el.extra={});return n[t]=e,this},getExtra:function(t){var e=$L.el.extra;if(e)return e[t]}};function tP(){var t=this,e=t.el;if(e){var n=FL(e).userDuring,i=t.userDuring;n===i?($L.el=e,i(QL)):t.el=t.userDuring=null}}function eP(t,e,n,i){var o=n[t];if(o){var r,a=e[t];if(a){var l=n.transition,u=o.transition;if(u)if(!r&&(r=i[t]={}),JL(u))(0,s.l7)(r,a);else for(var c=G(u),h=0;h<c.length;h++){var d=c[h],p=a[d];r[d]=p}else if(JL(l)||(0,s.cq)(l,t)>=0){!r&&(r=i[t]={});var f=(0,s.XP)(a);for(h=0;h<f.length;h++){d=f[h],p=a[d];aP(o[d],p)&&(r[d]=p)}}}}}function nP(t,e,n){var i=e[t];if(i)for(var o=n[t]={},r=(0,s.XP)(i),a=0;a<r.length;a++){var l=r[a];o[l]=(0,BL.V)(i[l])}}function iP(t,e,n){for(var i=e.transition,o=JL(i)?Qs.dN:G(i||[]),r=0;r<o.length;r++){var a=o[r];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];0,n[a]=s}}}function oP(t,e,n){for(var i=0;i<GL.length;i++){var o=GL[i],r=ZL[o],a=e[o];a&&(n[r[0]]=a[0],n[r[1]]=a[1])}for(i=0;i<Qs.dN.length;i++){var s=Qs.dN[i];null!=e[s]&&(n[s]=e[s])}}function rP(t,e,n,i){if(n){var o,r=t.style;if(r){var a=n.transition,l=e.transition;if(a&&!JL(a)){var u=G(a);!o&&(o=i.style={});for(var c=0;c<u.length;c++){var h=u[c],d=r[h];o[h]=d}}else if(t.getAnimationStyleProps&&(JL(l)||JL(a)||(0,s.cq)(l,"style")>=0)){var p=t.getAnimationStyleProps(),f=p?p.style:null;if(f){!o&&(o=i.style={});var g=(0,s.XP)(n);for(c=0;c<g.length;c++){h=g[c];if(f[h]){d=r[h];o[h]=d}}}}}}}function aP(t,e){return(0,s.zG)(t)?t!==e:null!=t&&isFinite(t)}
1var sP=ut(),lP=["percent","easing","shape","style","extra"];function uP(t){t.stopAnimation("keyframe"),t.attr(sP(t))}function cP(t,e,n){if(n.isAnimationEnabled()&&e)if((0,s.kJ)(e))(0,s.S6)(e,(function(e){cP(t,e,n)}));else{var i=e.keyframes,o=e.duration;if(n&&null==o){var r=sn("enter",n,0);o=r&&r.duration}if(i&&o){var a=sP(t);(0,s.S6)(WL,(function(n){if(!n||t[n]){var r;i.sort((function(t,e){return t.percent-e.percent})),(0,s.S6)(i,(function(i){var l=t.animators,u=n?i[n]:i;if(u){var c=(0,s.XP)(u);if(n||(c=(0,s.hX)(c,(function(t){return(0,s.cq)(lP,t)<0}))),c.length){r||(r=t.animate(n,e.loop,!0),r.scope="keyframe");for(var h=0;h<l.length;h++)l[h]!==r&&l[h].targetName===r.targetName&&l[h].stopTracks(c);n&&(a[n]=a[n]||{});var d=n?a[n]:a;(0,s.S6)(c,(function(e){d[e]=((n?t[n]:t)||{})[e]})),r.whenWithKeys(o*i.percent,u,c,i.easing)}}})),r&&r.delay(e.delay||0).duration(o).start(e.easing)}}))}}}var hP="emphasis",dP="normal",pP="blur",fP="select",gP=[dP,hP,pP,fP],yP={normal:["itemStyle"],emphasis:[hP,"itemStyle"],blur:[pP,"itemStyle"],select:[fP,"itemStyle"]},vP={normal:["label"],emphasis:[hP,"label"],blur:[pP,"label"],select:[fP,"label"]},mP=["x","y"],xP="e\0\0",_P={normal:{},emphasis:{},blur:{},select:{}},SP={cartesian2d:TL,geo:CL,single:kL,polar:PL,calendar:NL};function bP(t){return t instanceof Ht.ZP}function wP(t){return t instanceof H_.ZP}function MP(t,e){e.copyTransform(t),wP(e)&&wP(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,bP(e)&&bP(t)&&e.setShape(t.shape))}var IP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var o=this._data,r=t.getData(),a=this.group,s=PP(t,r,e,n);o||a.removeAll(),r.diff(o).add((function(e){RP(n,null,e,s(e,i),t,a,r)})).remove((function(e){var n=o.getItemGraphicEl(e);n&&YL(n,bL(n).option,t)})).update((function(e,l){var u=o.getItemGraphicEl(l);RP(n,u,e,s(e,i),t,a,r)})).execute();var l=t.get("clip",!0)?Nf(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=r},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=PP(e,r,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=RP(null,null,u,a(u,o),e,this.group,r);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){jl(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var o=e.element;if(null==o||n.name===o)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===o)return!0;return!1},e.type="custom",e}(ou),TP=IP;function DP(t){var e,n=t.type;if("path"===n){var i=t.shape,o=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,r=JP(i);e=Tl(r,null,o,i.layout||"center"),bL(e).customPathData=r}else if("image"===n)e=new tl.ZP({}),bL(e).customImagePath=t.style.image;else if("text"===n)e=new Bt.ZP({});else if("group"===n)e=new Xs.Z;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=Il(n);if(!a){var s="";0,Ca(s)}e=new a}return bL(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function CP(t,e,n,i,o,r,a){uP(e);var l=o&&o.normal.cfg;l&&e.setTextConfig(l),i&&null==i.transition&&(i.transition=mP);var u=i&&i.style;if(u){if("text"===e.type){var c=u;(0,s.RI)(c,"textFill")&&(c.fill=c.textFill),(0,s.RI)(c,"textStroke")&&(c.stroke=c.textStroke)}var h=void 0,d=bP(e)?u.decal:null;t&&d&&(d.dirty=!0,h=wc(d,t)),u.__decalPattern=h}if(wP(e)&&u){h=u.__decalPattern;h&&(u.decal=h)}UL(e,i,r,{dataIndex:n,isInit:a,clearStyle:!0}),cP(e,i.keyframeAnimation,r)}function AP(t,e,n,i,o){var r=e.isGroup?null:e,a=o&&o[t].cfg;if(r){var s=r.ensureState(t);if(!1===i){var l=r.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),Ie(r)}}function kP(t,e,n){if(!t.isGroup){var i=t,o=n.currentZ,r=n.currentZLevel;i.z=o,i.zlevel=r;var a=e.z2;null!=a&&(i.z2=a||0);for(var s=0;s<gP.length;s++)LP(i,e,gP[s])}}function LP(t,e,n){var i,o=n===dP,r=o?e:ZP(e,n),a=r?r.z2:null;null!=a&&(i=o?t:t.ensureState(n),i.z2=a||0)}function PP(t,e,n,i){var o=t.get("renderItem"),r=t.coordinateSystem,a={};r&&(a=r.prepareCustoms?r.prepareCustoms(r):SP[r.type](r));for(var l,u,c=(0,s.ce)({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:S,style:w,ordinalRawValue:b,styleEmphasis:M,visual:D,barLayout:C,currentSeriesIndices:A,font:k},a.api||{}),h={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:NP(t.getData())},d={},p={},f={},g={},y=0;y<gP.length;y++){var v=gP[y];f[v]=t.getModel(yP[v]),g[v]=t.getModel(vP[v])}function m(t){return t===l?u||(u=e.getItemModel(t)):e.getItemModel(t)}function x(t,n){return e.hasItemOption?t===l?d[n]||(d[n]=m(t).getModel(yP[n])):m(t).getModel(yP[n]):f[n]}function _(t,n){return e.hasItemOption?t===l?p[n]||(p[n]=m(t).getModel(vP[n])):m(t).getModel(vP[n]):g[n]}return function(t,n){return l=t,u=null,d={},p={},o&&o((0,s.ce)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},h),c)};function S(t,n){return null==n&&(n=l),e.getStore().get(e.getDimensionIndex(t||0),n)}function b(t,n){null==n&&(n=l),t=t||0;var i=e.getDimensionInfo(t);if(!i){var o=e.getDimensionIndex(t);return o>=0?e.getStore().get(o,n):void 0}
1var r=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[r]:r}function w(n,i){null==i&&(i=l);var o=e.getItemVisual(i,"style"),r=o&&o.fill,a=o&&o.opacity,u=x(i,dP).getItemStyle();null!=r&&(u.fill=r),null!=a&&(u.opacity=a);var c={inheritColor:(0,s.HD)(r)?r:"#000"},h=_(i,dP),d=bn(h,null,c,!1,!0);d.text=h.getShallow("show")?(0,s.pD)(t.getFormattedLabel(i,dP),rf(e,i)):null;var p=wn(h,c,!1);return T(n,u),u=VL(u,d,p),n&&I(u,n),u.legacy=!0,u}function M(n,i){null==i&&(i=l);var o=x(i,hP).getItemStyle(),r=_(i,hP),a=bn(r,null,null,!0,!0);a.text=r.getShallow("show")?(0,s.R1)(t.getFormattedLabel(i,hP),t.getFormattedLabel(i,dP),rf(e,i)):null;var u=wn(r,null,!0);return T(n,o),o=VL(o,a,u),n&&I(o,n),o.legacy=!0,o}function I(t,e){for(var n in e)(0,s.RI)(e,n)&&(t[n]=e[n])}function T(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function D(t,n){if(null==n&&(n=l),(0,s.RI)(_L,t)){var i=e.getItemVisual(n,"style");return i?i[_L[t]]:null}if((0,s.RI)(SL,t))return e.getItemVisual(n,t)}function C(t){if("cartesian2d"===r.type){var e=r.getBaseAxis();return lg((0,s.ce)({axis:e},t))}}function A(){return n.getCurrentSeriesIndices()}function k(t){return kn(t,n)}}function NP(t){var e={};return(0,s.S6)(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var o=i.coordDim,r=e[o]=e[o]||[];r[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function RP(t,e,n,i,o,r,a){if(i){var s=OP(t,e,n,i,o,r);return s&&a.setItemGraphicEl(n,s),s&&Ye(s,i.focus,i.blurScope,i.emphasisDisabled),s}r.remove(e)}function OP(t,e,n,i,o,r){var a=-1,l=e;e&&EP(e,i,o)&&(a=(0,s.cq)(r.childrenRef(),e),e=null);var u=!e,c=e;c?c.clearStates():(c=DP(i),l&&MP(l,c)),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),_P.normal.cfg=_P.normal.conOpt=_P.emphasis.cfg=_P.emphasis.conOpt=_P.blur.cfg=_P.blur.conOpt=_P.select.cfg=_P.select.conOpt=null,_P.isLegacy=!1,zP(c,n,i,o,u,_P),VP(c,n,i,o,u),CP(t,c,n,i,_P,o,u),(0,s.RI)(i,"info")&&(bL(c).info=i.info);for(var h=0;h<gP.length;h++){var d=gP[h];if(d!==dP){var p=ZP(i,d),f=GP(i,p,d);AP(d,c,p,f,_P)}}return kP(c,i,o),"group"===i.type&&WP(t,c,n,i,o),a>=0?r.replaceAt(c,a):r.add(c),c}function EP(t,e,n){var i=bL(t),o=e.type,r=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==i.customGraphicType||"path"===o&&jP(r)&&JP(r)!==i.customPathData||"image"===o&&(0,s.RI)(a,"image")&&a.image!==i.customImagePath}function VP(t,e,n,i,o){var r=n.clipPath;if(!1===r)t&&t.getClipPath()&&t.removeClipPath();else if(r){var a=t.getClipPath();a&&EP(a,r,i)&&(a=null),a||(a=DP(r),t.setClipPath(a)),CP(null,a,e,r,null,i,o)}}function zP(t,e,n,i,o,r){if(!t.isGroup){BP(n,null,r),BP(n,hP,r);var a=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,u=r.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=r.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=DP(a),t.setTextContent(c)),CP(null,c,e,a,null,i,o);for(var h=a&&a.style,d=0;d<gP.length;d++){var p=gP[d];if(p!==dP){var f=r[p].conOpt;AP(p,c,f,GP(a,f,p),null)}}h?c.dirty():c.markRedraw()}}}}function BP(t,e,n){var i=e?ZP(t,e):t,o=e?GP(t,i,hP):t.style,r=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?ZP(s,e):s:null;if(o&&(n.isLegacy||RL(o,r,!!a,!!l))){n.isLegacy=!0;var u=OL(o,r,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function ZP(t,e){return e?t?t[e]:null:t}function GP(t,e,n){var i=e&&e.style;return null==i&&n===hP&&t&&(i=t.styleEmphasis),i}function WP(t,e,n,i,o){var r=i.children,a=r?r.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(a||l||u)if(l)HP({api:t,oldChildren:e.children()||[],newChildren:r||[],dataIndex:n,seriesModel:o,group:e});else{u&&e.removeAll();for(var c=0;c<a;c++){var h=r[c],d=e.childAt(c);h?(null==h.ignore&&(h.ignore=!1),OP(t,d,n,h,o,e)):d.ignore=!0}for(var p=e.childCount()-1;p>=c;p--){var f=e.childAt(p);FP(e,f,o)}}}function FP(t,e,n){e&&YL(e,bL(t).option,n)}function HP(t){new sp(t.oldChildren,t.newChildren,UP,UP,t).add(XP).update(XP).remove(YP).execute()}function UP(t,e){var n=t&&t.name;return null!=n?n:xP+e}function XP(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,o=null!=e?n.oldChildren[e]:null;OP(n.api,o,n.dataIndex,i,n.seriesModel,n.group)}function YP(t){var e=this.context,n=e.oldChildren[t];n&&YL(n,bL(n).option,e.seriesModel)}function JP(t){return t&&(t.pathData||t.d)}function jP(t){return t&&((0,s.RI)(t,"pathData")||(0,s.RI)(t,"d"))}function KP(t){t.registerChartView(TP),t.registerSeriesModel(ML)}var qP=ut(),$P=s.d9,QP=s.ak,tN=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var o=e.get("value"),r=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==o||this._lastStatus!==r){this._lastValue=o,this._lastStatus=r;var a=this._group,l=this._handle;if(!r||"hide"===r)return a&&a.hide(),void(l&&l.hide());a&&a.show(),l&&l.show();var u={};this.makeElOption(u,o,t,e,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var d=s.WA(eN,e,h);this.updatePointerEl(a,u,d),this.updateLabelEl(a,u,d,e)}else a=this._group=new Xs.Z,this.createPointerEl(a,u,t,e),this.createLabelEl(a,u,t,e),n.getZr().add(a);rN(a,e,!0),this._renderHandle(o)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,o="category"===i.type,r=e.get("snap");if(!r&&!o)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(o&&i.getBandWidth()>a)return!0;
1if(r){var s=ax(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,o){},t.prototype.createPointerEl=function(t,e,n,o){var r=e.pointer;if(r){var a=qP(t).pointerEl=new i[r.type]($P(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var o=qP(t).labelEl=new Bt.ZP($P(e.label));t.add(o),iN(o,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=qP(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var o=qP(t).labelEl;o&&(o.setStyle(e.label.style),n(o,{x:e.label.x,y:e.label.y}),iN(o,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=n.getModel("handle"),a=n.get("status");if(!r.get("show")||!a||"hide"===a)return o&&i.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=Wl(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Yx.sT(t.event)},onmousedown:QP(this._onHandleDragMove,this,0,0),drift:QP(this._onHandleDragMove,this),ondragend:QP(this._onHandleDragEnd,this)}),i.add(o)),rN(o,n,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=r.get("size");s.kJ(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,uu(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){eN(this._axisPointerModel,!e&&this._moveAnimation,this._handle,oN(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(oN(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(oN(i)),qP(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),cu(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function eN(t,e,n,i){nN(qP(n).lastProp,i)||(qP(n).lastProp=i,e?un(n,i,t):(n.stopAnimation(),n.attr(i)))}function nN(t,e){if(s.Kn(t)&&s.Kn(e)){var n=!0;return s.S6(e,(function(e,i){n=n&&nN(t[i],e)})),!!n}return t===e}function iN(t,e){t[e.get(["label","show"])?"show":"hide"]()}function oN(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function rN(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)}))}var aN=tN;function sN(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function lN(t,e,n,i,o){var r=n.get("value"),a=cN(r,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Xi(s.get("padding")||0),u=s.getFont(),c=rc.lP(a,u),h=o.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=o.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=o.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),uN(h,d,p,i);var y=s.get("backgroundColor");y&&"auto"!==y||(y=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:bn(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function uN(t,e,n,i){var o=i.getWidth(),r=i.getHeight();t[0]=Math.min(t[0]+e,o)-e,t[1]=Math.min(t[1]+n,r)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function cN(t,e,n,i,o){t=e.scale.parse(t);var r=e.scale.getLabel({value:t},{precision:o.precision}),a=o.formatter;if(a){var l={value:Jv(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};s.S6(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,o=e&&e.getDataParams(i);o&&l.seriesData.push(o)})),s.HD(a)?r=a.replace("{value}",r):s.mf(a)&&(r=a(l))}return r}function hN(t,e,n){var i=qs.Ue();return qs.U1(i,i,n.rotation),qs.Iu(i,i,n.position),Ol([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function dN(t,e,n,i,o,r){var a=$m.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),lN(e,i,o,r,{position:hN(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function pN(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function fN(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function gN(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}var yN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.makeElOption=function(t,e,n,i,o){var r=n.axis,a=r.grid,s=i.get("type"),l=vN(a,r).getOtherAxis(r).getGlobalExtent(),u=r.toGlobalCoord(r.dataToCoord(e,!0));if(s&&"none"!==s){var c=sN(i),h=mN[s](r,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=Am(a.model,n);dN(e,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,e,n){var i=Am(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=hN(e.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.grid,a=o.getGlobalExtent(!0),s=vN(r,o).getOtherAxis(o).getGlobalExtent(),l="x"===o.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(aN);function vN(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var mN={line:function(t,e,n){var i=pN([e,n[0]],[e,n[1]],xN(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:fN([e-i/2,n[0]],[i,o],xN(t))}}};function xN(t){return"x"===t.dim?0:1}var _N=yN,SN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(mo),bN=SN,wN=ut(),MN=s.S6;function IN(t,e,n){if(!l.Z.node){var i=e.getZr();wN(i).records||(wN(i).records={}),TN(i,e);var o=wN(i).records[t]||(wN(i).records[t]={});o.handler=n}}function TN(t,e){function n(n,i){t.on(n,(function(n){var o=kN(e);MN(wN(t).records,(function(t){t&&i(t,n,o.dispatchAction)})),DN(o.pendings,e)}))}
1wN(t).initialized||(wN(t).initialized=!0,n("click",s.WA(AN,"click")),n("mousemove",s.WA(AN,"mousemove")),n("globalout",CN))}function DN(t,e){var n,i=t.showTip.length,o=t.hideTip.length;i?n=t.showTip[i-1]:o&&(n=t.hideTip[o-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function CN(t,e,n){t.handler("leave",null,n)}function AN(t,e,n,i){e.handler(t,n,i)}function kN(t){var e={showTip:[],hideTip:[]},n=function(i){var o=e[i.type];o?o.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function LN(t,e){if(!l.Z.node){var n=e.getZr(),i=(wN(n).records||{})[t];i&&(wN(n).records[t]=null)}}var PN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";IN("axisPointer",n,(function(t,e,n){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){LN("axisPointer",e)},e.prototype.dispose=function(t,e){LN("axisPointer",e)},e.type="axisPointer",e}(Js),NN=PN;function RN(t,e){var n,i=[],o=t.seriesIndex;if(null==o||!(n=e.getSeriesByIndex(o)))return{point:[]};var r=n.getData(),a=lt(r,t);if(null==a||a<0||s.kJ(a))return{point:[]};var l=r.getItemGraphicEl(a),u=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(u&&u.dataToPoint)if(t.isStacked){var c=u.getBaseAxis(),h=u.getOtherAxis(c),d=h.dim,p=c.dim,f="x"===d||"radius"===d?1:0,g=r.mapDimension(p),y=[];y[f]=r.get(g,a),y[1-f]=r.get(r.getCalculationInfo("stackResultDimension"),a),i=u.dataToPoint(y)||[]}else i=u.dataToPoint(r.getValues(s.UI(u.dimensions,(function(t){return r.mapDimension(t)})),a))||[];else if(l){var v=l.getBoundingRect().clone();v.applyTransform(l.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:l}}var ON=ut();function EN(t,e,n){var i=t.currTrigger,o=[t.x,t.y],r=t,a=t.dispatchAction||(0,s.ak)(n.dispatchAction,n),l=e.getComponent("axisPointer").coordSysAxesInfo;if(l){XN(o)&&(o=RN({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},e).point);var u=XN(o),c=r.axesInfo,h=l.axesInfo,d="leave"===i||XN(o),p={},f={},g={list:[],map:{}},y={showPointer:(0,s.WA)(BN,f),showTooltip:(0,s.WA)(ZN,g)};(0,s.S6)(l.coordSysMap,(function(t,e){var n=u||t.containPoint(o);(0,s.S6)(l.coordSysAxesInfo[e],(function(t,e){var i=t.axis,r=HN(c,t);if(!d&&n&&(!c||r)){var a=r&&r.value;null!=a||u||(a=i.pointToData(o)),null!=a&&VN(t,a,y,!1,p)}}))}));var v={};return(0,s.S6)(h,(function(t,e){var n=t.linkGroup;n&&!f[e]&&(0,s.S6)(n.axesInfo,(function(e,i){var o=f[i];if(e!==t&&o){var r=o.value;n.mapper&&(r=t.axis.scale.parse(n.mapper(r,UN(e),UN(t)))),v[t.key]=r}}))})),(0,s.S6)(v,(function(t,e){VN(h[e],t,y,!0,p)})),GN(f,h,p),WN(g,o,t,a),FN(h,a,n),p}}function VN(t,e,n,i,o){var r=t.axis;if(!r.scale.isBlank()&&r.containData(e))if(t.involveSeries){var a=zN(e,t),l=a.payloadBatch,u=a.snapToValue;l[0]&&null==o.seriesIndex&&(0,s.l7)(o,l[0]),!i&&t.snap&&r.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,l),n.showTooltip(t,a,u)}else n.showPointer(t,e)}function zN(t,e){var n=e.axis,i=n.dim,o=t,r=[],a=Number.MAX_VALUE,l=-1;return(0,s.S6)(e.seriesModels,(function(e,u){var c,h,d=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(d,t,n);h=p.dataIndices,c=p.nestestValue}else{if(h=e.getData().indicesOfNearest(d[0],t,"category"===n.type?.5:null),!h.length)return;c=e.getData().get(d[0],h[0])}if(null!=c&&isFinite(c)){var f=t-c,g=Math.abs(f);g<=a&&((g<a||f>=0&&l<0)&&(a=g,l=f,o=c,r.length=0),(0,s.S6)(h,(function(t){r.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:r,snapToValue:o}}function BN(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function ZN(t,e,n,i){var o=n.payloadBatch,r=e.axis,a=r.model,s=e.axisPointerModel;if(e.triggerTooltip&&o.length){var l=e.coordSys.model,u=ux(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:r.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function GN(t,e,n){var i=n.axesInfo=[];(0,s.S6)(e,(function(e,n){var o=e.axisPointerModel.option,r=t[n];r?(!e.useHandle&&(o.status="show"),o.value=r.value,o.seriesDataIndices=(r.payloadBatch||[]).slice()):!e.useHandle&&(o.status="hide"),"show"===o.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:o.value})}))}function WN(t,e,n,i){if(!XN(e)&&t.list.length){var o=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function FN(t,e,n){var i=n.getZr(),o="axisPointerLastHighlights",r=ON(i)[o]||{},a=ON(i)[o]={};(0,s.S6)(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&(0,s.S6)(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var l=[],u=[];(0,s.S6)(r,(function(t,e){!a[e]&&u.push(t)})),(0,s.S6)(a,(function(t,e){!r[e]&&l.push(t)})),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function HN(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function UN(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function XN(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function YN(t){dx.registerAxisPointerClass("CartesianAxisPointer",_N),t.registerComponentModel(bN),t.registerComponentView(NN),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!(0,s.kJ)(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Qm(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},EN)}function JN(t){ud(Mx),ud(YN)}var jN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.makeElOption=function(t,e,n,i,o){var r=n.axis;"angle"===r.dim&&(this.animationThreshold=Math.PI/18);var a=r.polar,s=a.getOtherAxis(r),l=s.getExtent(),u=r.dataToCoord(e),c=i.get("type");if(c&&"none"!==c){var h=sN(i),d=qN[c](r,a,u,l);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),f=KN(e,n,i,a,p);lN(t,n,i,o,f)},e}(aN);function KN(t,e,n,i,o){var r=e.axis,a=r.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===r.dim){var d=qs.Ue();qs.U1(d,d,s),qs.Iu(d,d,[i.cx,i.cy]),l=Ol([a,-o],d);var p=e.getModel("axisLabel").get("rotate")||0,f=$m.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+o,a]);var y=i.cx,v=i.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var qN={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:pN(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var o=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:gN(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:gN(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},$N=jN,QN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(mo),tR=QN,eR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",pt).models[0]},e.type="polarAxis",e}(mo);s.jB(eR,Vy);var nR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="angleAxis",e}(eR),iR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="radiusAxis",e}
1(eR),oR=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return(0,r.ZT)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(Tm);oR.prototype.dataToRadius=Tm.prototype.dataToCoord,oR.prototype.radiusToData=Tm.prototype.coordToData;var rR=oR,aR=ut(),sR=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return(0,r.ZT)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var r=i[0],a=t.dataToCoord(r+1)-t.dataToCoord(r),s=Math.abs(a),l=rc.lP(null==r?"":r+"",e.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=aR(t.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},e}(Tm);sR.prototype.dataToAngle=Tm.prototype.dataToCoord,sR.prototype.angleToData=Tm.prototype.coordToData;var lR=sR,uR=["radius","angle"],cR=function(){function t(t){this.dimensions=uR,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new rR,this._angleAxis=new lR,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),r=Math.min(o[0],o[1]),a=Math.max(o[0],o[1]);i.inverse?r=a-360:a=r+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,u=l<r?1:-1;while(l<r||l>a)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,o=-Math.sin(n)*e+this.cy;return[i,o]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*o,endAngle:-i[1]*o,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,o=n*n+i*i-1e-4,r=this.r,a=this.r0;return o<=r*r&&o>=a*a}}},t.prototype.convertToPixel=function(t,e,n){var i=hR(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=hR(e);return i===this?this.pointToData(n):null},t}();function hR(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var dR=cR;function pR(t,e,n){var i=e.get("center"),o=n.getWidth(),r=n.getHeight();t.cx=g(i[0],o),t.cy=g(i[1],r);var a=t.getRadiusAxis(),l=Math.min(o,r)/2,u=e.get("radius");null==u?u=[0,"100%"]:s.kJ(u)||(u=[0,u]);var c=[g(u[0],l),g(u[1],l)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function fR(t,e){var n=this,i=n.getAngleAxis(),o=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();s.S6(Qv(e,"radius"),(function(t){o.scale.unionExtentFromData(e,t)})),s.S6(Qv(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),Hv(i.scale,i.model),Hv(o.scale,o.model),"category"===i.type&&!i.onBand){var r=i.getExtent(),a=360/i.scale.count();i.inverse?r[1]+=a:r[1]-=a,i.setExtent(r[0],r[1])}}function gR(t){return"angleAxis"===t.mainType}function yR(t,e){if(t.type=e.get("type"),t.scale=Uv(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),gR(e)){t.inverse=t.inverse!==e.get("
1clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var vR={dimensions:uR,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var o=new dR(i+"");o.update=fR;var r=o.getRadiusAxis(),a=o.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");yR(r,s),yR(a,l),pR(o,t,e),n.push(o),t.coordinateSystem=o,o.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",pt).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},mR=vR,xR=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function _R(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),o=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function SR(t){var e=t.getRadiusAxis();return e.inverse?0:1}function bR(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var wR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),l=s.UI(n.getViewLabels(),(function(t){t=s.d9(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));bR(l),bR(r),s.S6(xR,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||MR[e](this.group,t,i,r,a,o,l)}),this)}},e.type="angleAxis",e}(dx),MR={axisLine:function(t,e,n,i,o,r){var a,s=e.getModel(["axisLine","lineStyle"]),l=SR(n),u=l?0:1;a=0===r[u]?new el.Z({shape:{cx:n.cx,cy:n.cy,r:r[l]},style:s.getLineStyle(),z2:1,silent:!0}):new ol.Z({shape:{cx:n.cx,cy:n.cy,r:r[l],r0:r[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axisTick:function(t,e,n,i,o,r){var a=e.getModel("axisTick"),l=(a.get("inside")?-1:1)*a.get("length"),u=r[SR(n)],c=s.UI(i,(function(t){return new ll.Z({shape:_R(n,[u,u+l],t.coord)})}));t.add(Al(c,{style:s.ce(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel("axisTick"),l=e.getModel("minorTick"),u=(a.get("inside")?-1:1)*l.get("length"),c=r[SR(n)],h=[],d=0;d<o.length;d++)for(var p=0;p<o[d].length;p++)h.push(new ll.Z({shape:_R(n,[c,c+u],o[d][p].coord)}));t.add(Al(h,{style:s.ce(l.getModel("lineStyle").getLineStyle(),s.ce(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,o,r,a){var l=e.getCategories(!0),u=e.getModel("axisLabel"),c=u.get("margin"),h=e.get("triggerEvent");s.S6(a,(function(i,o){var a=u,d=i.tickValue,p=r[SR(n)],f=n.coordToPoint([p+c,i.coord]),g=n.cx,y=n.cy,v=Math.abs(f[0]-g)/p<.3?"center":f[0]>g?"left":"right",m=Math.abs(f[1]-y)/p<.3?"middle":f[1]>y?"top":"bottom";if(l&&l[d]){var x=l[d];s.Kn(x)&&x.textStyle&&(a=new Xn(x.textStyle,u,u.ecModel))}var _=new Bt.ZP({silent:$m.isLabelSilent(e),style:bn(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:m})});if(t.add(_),h){var S=$m.makeAxisEventDataBase(e);S.targetType="axisLabel",S.value=i.rawLabel,Gt(_).eventData=S}}),this)},splitLine:function(t,e,n,i,o,r){var a=e.getModel("splitLine"),l=a.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<i.length;d++){var p=c++%u.length;h[p]=h[p]||[],h[p].push(new ll.Z({shape:_R(n,r,i[d].coord)}))}for(d=0;d<h.length;d++)t.add(Al(h[d],{style:s.ce({stroke:u[d%u.length]},l.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<o.length;u++)for(var c=0;c<o[u].length;c++)l.push(new ll.Z({shape:_R(n,r,o[u][c].coord)}));t.add(Al(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,o,r){if(i.length){var a=e.getModel("splitArea"),l=a.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=Math.PI/180,p=-i[0].coord*d,f=Math.min(r[0],r[1]),g=Math.max(r[0],r[1]),y=e.get("
1clockwise"),v=1,m=i.length;v<=m;v++){var x=v===m?i[0].coord:i[v].coord,_=c++%u.length;h[_]=h[_]||[],h[_].push(new il.C({shape:{cx:n.cx,cy:n.cy,r0:f,r:g,startAngle:p,endAngle:-x*d,clockwise:y},silent:!0})),p=-x*d}for(v=0;v<h.length;v++)t.add(Al(h[v],{style:s.ce({fill:u[v%u.length]},l.getAreaStyle()),silent:!0}))}}},IR=wR,TR=["axisLine","axisTickLabel","axisName"],DR=["splitLine","splitArea","minorSplitLine"],CR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,i=this._axisGroup=new Xs.Z;this.group.add(i);var o=t.axis,r=o.polar,a=r.getAngleAxis(),l=o.getTicksCoords(),u=o.getMinorTicksCoords(),c=a.getExtent()[0],h=o.getExtent(),d=kR(r,t,c),p=new $m(t,d);s.S6(TR,p.add,p),i.add(p.getGroup()),Bl(n,i,t),s.S6(DR,(function(e){t.get([e,"show"])&&!o.scale.isBlank()&&AR[e](this.group,t,r,c,h,l,u)}),this)}},e.type="radiusAxis",e}(dx),AR={splitLine:function(t,e,n,i,o,r){var a=e.getModel("splitLine"),l=a.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;d<r.length;d++){var p=c++%u.length;h[p]=h[p]||[],h[p].push(new el.Z({shape:{cx:n.cx,cy:n.cy,r:Math.max(r[d].coord,0)}}))}for(d=0;d<h.length;d++)t.add(Al(h[d],{style:s.ce({stroke:u[d%u.length],fill:null},l.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,o,r,a){if(a.length){for(var l=e.getModel("minorSplitLine"),u=l.getModel("lineStyle"),c=[],h=0;h<a.length;h++)for(var d=0;d<a[h].length;d++)c.push(new el.Z({shape:{cx:n.cx,cy:n.cy,r:a[h][d].coord}}));t.add(Al(c,{style:s.ce({fill:null},u.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,o,r){if(r.length){var a=e.getModel("splitArea"),l=a.getModel("areaStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=r[0].coord,p=1;p<r.length;p++){var f=c++%u.length;h[f]=h[f]||[],h[f].push(new il.C({shape:{cx:n.cx,cy:n.cy,r0:d,r:r[p].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=r[p].coord}for(p=0;p<h.length;p++)t.add(Al(h[p],{style:s.ce({fill:u[p%u.length]},l.getAreaStyle()),silent:!0}))}}};function kR(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var LR=CR;function PR(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function NR(t,e){return e.dim+t.model.componentIndex}function RR(t,e,n){var i={},o=OR(s.hX(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),a=NR(n,r),s=PR(t),l=o[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(r),d=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var y=e.mapDimension(h.dim),v=e.mapDimension(r.dim),m=Jp(e,y),x="radius"!==r.dim||!t.get("roundCap",!0),_=h.dataToCoord(0),S=0,b=e.count();S<b;S++){var w=e.get(y,S),M=e.get(v,S),I=w>=0?"p":"n",T=_;m&&(i[s][M]||(i[s][M]={p:_,n:_}),T=i[s][M][I]);var D=void 0,C=void 0,A=void 0,k=void 0;if("radius"===h.dim){var L=h.dataToCoord(w)-_,P=r.dataToCoord(M);Math.abs(L)<f&&(L=(L<0?-1:1)*f),D=T,C=T+L,A=P-u,k=A-c,m&&(i[s][M][I]=C)}else{var N=h.dataToCoord(w,x)-_,R=r.dataToCoord(M);Math.abs(N)<g&&(N=(N<0?-1:1)*g),D=R+u,C=D+c,A=T,k=T+N,m&&(i[s][M][I]=k)}e.setItemLayout(S,{cx:d,cy:p,r0:D,r:C,startAngle:-A*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:A>=k})}}}))}function OR(t){var e={};s.S6(t,(function(t,n){var i=t.getData(),o=t.coordinateSystem,r=o.getBaseAxis(),a=NR(o,r),s=r.getExtent(),l="category"===r.type?r.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=PR(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=g(t.get("barWidth"),l),p=g(t.get("barMaxWidth"),l),f=t.get("barGap"),y=t.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(u.remainedWidth,d),c[h].width=d,u.remainedWidth-=d),p&&(c[h].maxWidth=p),null!=f&&(u.gap=f),null!=y&&(u.categoryGap=y)}));var n={};return s.S6(e,(function(t,e){n[e]={};var i=t.stacks,o=t.bandWidth,r=g(t.categoryGap,o),a=g(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,c=(l-r)/(u+(u-1)*a);c=Math.max(c,0),s.S6(i,(function(t,e){var n=t.maxWidth;n&&n<c&&(n=Math.min(n,l),t.width&&(n=Math.min(n,t.width)),l-=n,t.width=n,u--)})),c=(l-r)/(u+(u-1)*a),c=Math.max(c,0);var h,d=0;s.S6(i,(function(t,e){t.width||(t.width=c),h=t,d+=t.width*(1+a)})),h&&(d-=h.width*a);var p=-d/2;s.S6(i,(function(t,i){n[e][i]=n[e][i]||{offset:p,width:t.width},p+=t.width*(1+a)}))})),n}var ER=RR,VR={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},zR={splitNumber:5},BR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="polar",e}(Js);function ZR(t){ud(YN),dx.registerAxisPointerClass("PolarAxisPointer",$N),t.registerCoordinateSystem("polar",mR),t.registerComponentModel(tR),t.registerComponentView(BR),Ky(t,"angle",nR,VR),Ky(t,"radius",iR,zR),t.registerComponentView(IR),t.registerComponentView(LR),t.registerLayout((0,s.WA)(ER,"bar"))}function GR(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,o={},r=i.position,a=i.orient,l=n.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};o.position=["vertical"===a?c.vertical[r]:u[0],"horizontal"===a?c.horizontal[r]:u[3]];var h={horizontal:0,vertical:1};o.rotation=Math.PI/2*h[a];var d={top:-1,bottom:1,right:1,left:-1}
vendor: 7,362 bytes, line 1
1;o.labelDirection=o.tickDirection=o.nameDirection=d[r],t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),s.Jv(e.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var p=e.rotate;return null==p&&(p=t.get(["axisLabel","rotate"])),o.labelRotation="top"===r?-p:p,o.z2=1,o}var WR=["axisLine","axisTickLabel","axisName"],FR=["splitArea","splitLine"],HR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return(0,r.ZT)(e,t),e.prototype.render=function(e,n,i,o){var r=this.group;r.removeAll();var a=this._axisGroup;this._axisGroup=new Xs.Z;var l=GR(e),u=new $m(e,l);s.S6(WR,u.add,u),r.add(this._axisGroup),r.add(u.getGroup()),s.S6(FR,(function(t){e.get([t,"show"])&&UR[t](this,this.group,this._axisGroup,e)}),this),Bl(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,o)},e.prototype.remove=function(){gx(this)},e.type="singleAxis",e}(dx),UR={splitLine:function(t,e,n,i){var o=i.axis;if(!o.scale.isBlank()){var r=i.getModel("splitLine"),a=r.getModel("lineStyle"),l=a.get("color");l=l instanceof Array?l:[l];for(var u=a.get("width"),c=i.coordinateSystem.getRect(),h=o.isHorizontal(),d=[],p=0,f=o.getTicksCoords({tickModel:r}),g=[],y=[],v=0;v<f.length;++v){var m=o.toGlobalCoord(f[v].coord);h?(g[0]=m,g[1]=c.y,y[0]=m,y[1]=c.y+c.height):(g[0]=c.x,g[1]=m,y[0]=c.x+c.width,y[1]=m);var x=new ll.Z({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},silent:!0});Ll(x.shape,u);var _=p++%l.length;d[_]=d[_]||[],d[_].push(x)}var S=a.getLineStyle(["color"]);for(v=0;v<d.length;++v)e.add(Al(d[v],{style:s.ce({stroke:l[v%l.length]},S),silent:!0}))}},splitArea:function(t,e,n,i){fx(t,n,i,i)}},XR=HR,YR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(mo);(0,s.jB)(YR,Vy.prototype);var JR=YR,jR=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n,i)||this;return a.type=o||"value",a.position=r||"bottom",a}return(0,r.ZT)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(Tm),KR=jR,qR=["single"],$R=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=qR,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,o=new KR(i,Uv(t),[0,0],t.get("type"),t.get("position")),r="category"===o.type;o.onBand=r&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();(0,s.S6)(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),Hv(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=so({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],o=e.inverse?1:0;e.setExtent(i[o],i[1-o]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],o=t.isHorizontal();t.toGlobalCoord=o?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=o?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0===o?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){var i=QR(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=QR(e);return i===this?this.pointToData(n):null},t}();function QR(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var tO=$R;function eO(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,o){var r=new tO(i,t,e);r.name="single_"+o,r.resize(i,e),i.coordinateSystem=r,n.push(r)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",pt).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var nO={create:eO,dimensions:qR},iO=nO,oO=["x","y"],rO=["width","height"],aO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.makeElOption=function(t,e,n,i,o){var r=n.axis,a=r.coordinateSystem,s=uO(a,1-lO(r)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=sN(i),h=sO[u](r,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=GR(n);dN(e,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,e,n){var i=GR(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=hN(e.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.coordinateSystem,a=lO(o),s=uO(r,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=uO(r,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(aN),sO={line:function(t,e,n){var i=pN([e,n[0]],[e,n[1]],lO(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:fN([e-i/2,n[0]],[i,o],lO(t))}}};function lO(t){return t.isHorizontal()?0:1}function uO(t,e){var n=t.getRect();return[n[oO[e]],n[oO[e]]+n[rO[e]]]}var cO=aO,hO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="single",e}(Js);function dO(t){ud(YN),dx.registerAxisPointerClass("SingleAxisPointer",cO),t.registerComponentView(hO),t.registerComponentView(XR),t.registerComponentModel(JR),Ky(t,"single",JR,JR.defaultOption),t.registerCoordinateSystem("single",iO)}var pO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(e,n,i){var o=po(e);
1t.prototype.init.apply(this,arguments),fO(e,o)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),fO(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(mo);function fO(t,e){var n,i=t.cellSize;n=s.kJ(i)?i:t.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var o=s.UI([0,1],(function(t){return uo(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));ho(t,e,{type:"box",ignoreSize:o})}var gO=pO,yO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,r=o.getRangeInfo(),a=o.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,r,i),this._renderLines(t,r,a,i),this._renderYearText(t,r,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,r,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new sl.Z({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var o=this,r=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=r.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=r.getDateInfo(h)}function d(e){o._firstDayOfMonth.push(r.getDateInfo(e)),o._firstDayPoints.push(r.dataToRect([e],!1).tl);var l=o._getLinePointsOfOneWeek(t,e,n);o._tlpoints.push(l[0]),o._blpoints.push(l[l.length-1]),s&&o._drawSplitline(l,a,i)}d(r.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],o="horizontal"===n?0:1;return i[0][o]=i[0][o]-e/2,i[1][o]=i[1][o]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new al.Z({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,o=i.getDateInfo(e),r=[],a=0;a<7;a++){var s=i.getNextNDay(o.time,a),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},e.prototype._formatterLabel=function(t,e){return(0,s.HD)(t)&&t?qi(t,e):(0,s.mf)(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,o){var r=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=o,s=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,s=["center","top"]):a-=o;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:r,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var r=o.get("margin"),a=o.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=o.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),y=new Bt.ZP({z2:30,style:bn(o,{text:g})});y.attr(this._yearTextPositionControl(y,h[a],n,a,r)),i.add(y)}}
vendor: 9,846 bytes, line 1
1,e.prototype._monthTextPositionControl=function(t,e,n,i,o){var r="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=o,e&&(r="center"),"start"===i&&(a="bottom")):(s+=o,e&&(a="middle"),"start"===i&&(r="right")),{x:s,y:l,align:r,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var r=o.get("nameMap"),a=o.get("margin"),l=o.get("position"),u=o.get("align"),c=[this._tlpoints,this._blpoints];r&&!(0,s.HD)(r)||(r&&(e=ci(r)||e),r=e.get(["time","monthAbbr"])||[]);var h="start"===l?0:1,d="horizontal"===n?0:1;a="start"===l?-a:a;for(var p="center"===u,f=0;f<c[h].length-1;f++){var g=c[h][f].slice(),y=this._firstDayOfMonth[f];if(p){var v=this._firstDayPoints[f];g[d]=(v[d]+c[0][f+1][d])/2}var m=o.get("formatter"),x=r[+y.m-1],_={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:x},S=this._formatterLabel(m,_),b=new Bt.ZP({z2:30,style:(0,s.l7)(bn(o,{text:S}),this._monthTextPositionControl(g,p,n,l,a))});i.add(b)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,o){var r="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*o[0]/2,r=u?"right":"left"):(l=l+i+(u?1:-1)*o[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:r,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,i,o){var r=t.getModel("dayLabel");if(r.get("show")){var a=t.coordinateSystem,l=r.get("position"),u=r.get("nameMap"),c=r.get("margin"),h=a.getFirstDayOfWeek();if(!u||(0,s.HD)(u)){u&&(e=ci(u)||e);var d=e.get(["time","dayOfWeekShort"]);u=d||(0,s.UI)(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}))}var p=a.getNextNDay(n.end.time,7-n.lweek).time,f=[a.getCellWidth(),a.getCellHeight()];c=g(c,Math.min(f[1],f[0])),"start"===l&&(p=a.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var y=0;y<7;y++){var v=a.getNextNDay(p,y),m=a.dataToRect([v.time],!1).center,x=y;x=Math.abs((y+h)%7);var _=new Bt.ZP({z2:30,style:(0,s.l7)(bn(r,{text:u[x]}),this._weekTextPositionControl(m,i,l,c,f))});o.add(_)}}},e.type="calendar",e}(Js),vO=yO,mO=864e5,xO=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=D(t);var e=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,o=t.getDate(),r=o<10?"0"+o:""+o,a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:r,day:a,time:t.getTime(),formatedDate:e+"-"+i+"-"+r,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),r=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];s.S6([0,1],(function(t){c(o,t)&&(r[i[t]]=o[t]*a[t])}));var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=so(r,l);function c(t,e){return null!=t[e]&&"auto"!==t[e]}s.S6([0,1],(function(t){c(o,t)||(o[t]=u[i[t]]/a[t])})),this._sw=o[0],this._sh=o[1]},t.prototype.dataToPoint=function(t,e){s.kJ(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,o=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+mO))return[NaN,NaN];var r=n.day,a=this._getRangeInfo([i.start.time,o]).nthWeek;return"vertical"===this._orient?[this._rect.x+r*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=_O(e);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=_O(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(s.kJ(e)&&1===e.length&&(e=e[0]),s.kJ(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),o=i.date;o.setMonth(o.getMonth()+1);var r=this.getNextNDay(o,-1);t=[i.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/mO)-Math.floor(n[0].time/mO)+1,o=new Date(n[0].time),r=o.getDate(),a=n[1].date.getDate();o.setDate(r+i-1);var s=o.getDate();if(s!==a){var l=o.getTime()-n[1].time>0?1:-1;while((s=o.getDate())!==a&&(o.getTime()-n[1].time)*l>0)i-=l,o.setDate(s-l)}var u=Math.floor((i+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var o=7*(t-1)-i.fweek+e,r=new Date(i.start.time);return r.setDate(+i.start.d+o),this.getDateInfo(r)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(o){var r=new t(o,e,n);i.push(r),o.coordinateSystem=r})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function _O(t){var e=t.calendarModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}var SO=xO;function bO(t){t.registerComponentModel(gO),t.registerComponentView(vO),t.registerCoordinateSystem("calendar",SO)}function wO(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function MO(t,e){var n;return s.S6(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function IO(t,e,n){var i=s.l7({},n),o=t[e],r=n.$action||"merge";"merge"===r?o?(s.TS(o,i,!0),ho(o,i,{ignoreSize:!0}),fo(n,o),CO(n,o),CO(n,o,"shape"),CO(n,o,"style"),CO(n,o,"extra"),n.clipPath=o.clipPath):t[e]=i:"replace"===r?t[e]=i:"remove"===r&&o&&(t[e]=null)}var TO=["transition","enterFrom","leaveTo"],DO=TO.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function CO(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?TO:DO,o=0;o<i.length;o++){var r=i[o];null==t[r]&&null!=e[r]&&(t[r]=e[r])}}function AO(t,e){if(t&&(t.hv=e.hv=[MO(e,["left","right"]),MO(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var kO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return(0,r.ZT)(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,o=n.elements=e?[]:n.elements,r=[];this._flatten(i,r,null);var a=X(o,r,"normalMerge"),l=this._elOptionsToUpdate=[];s.S6(a,(function(t,e){var n=t.newOption;n&&(l.push(n),wO(t,n),IO(o,e,n),AO(o[e],n))}),this),n.elements=s.hX(o,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){s.S6(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(mo),LO={path:null,compoundPath:null,group:Xs.Z,image:tl.ZP,text:Bt.ZP},PO=ut(),NO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(){this._elMap=s.kW()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,o=t.get("z"),r=t.get("zlevel");s.S6(e,(function(e){var a=et(e.id,null),s=null!=a?n.get(a):null,l=et(e.parentId,null),u=null!=l?n.get(l):i,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=e.textContent,p=e.textConfig;if(h&&RL(h,c,!!p,!!d)){var f=OL(h,c,!0);
1!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=zO(e);var y=e.$action||"merge",v="merge"===y,m="replace"===y;if(v){var x=!s,_=s;x?_=OO(a,u,e.type,n):(_&&(PO(_).isNew=!1),uP(_)),_&&(UL(_,g,t,{isInit:x}),VO(_,e,o,r))}else if(m){EO(s,e,n,t);var S=OO(a,u,e.type,n);S&&(UL(S,g,t,{isInit:!0}),VO(S,e,o,r))}else"remove"===y&&(XL(s,e),EO(s,e,n,t));var b=n.get(a);if(b&&d)if(v){var w=b.getTextContent();w?w.attr(d):b.setTextContent(new Bt.ZP(d))}else m&&b.setTextContent(new Bt.ZP(d));if(b){var M=e.clipPath;if(M){var I=M.type,T=void 0;x=!1;if(v){var D=b.getClipPath();x=!D||PO(D).type!==I,T=x?RO(I):D}else m&&(x=!0,T=RO(I));b.setClipPath(T),UL(T,M,t,{isInit:x}),cP(T,M.keyframeAnimation,t)}var C=PO(b);b.setTextConfig(p),C.option=e,BO(b,t,e),Yl({el:b,componentModel:t,itemName:b.name,itemTooltipOption:e.tooltip}),cP(b,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,o=this._elMap,r=e.getWidth(),a=e.getHeight(),l=["x","y"],u=0;u<n.length;u++){var c=n[u],h=et(c.id,null),d=null!=h?o.get(h):null;if(d&&d.isGroup){var p=d.parent,f=p===i,y=PO(d),v=PO(p);y.width=g(y.option.width,f?r:v.width)||0,y.height=g(y.option.height,f?a:v.height)||0}}for(u=n.length-1;u>=0;u--){c=n[u],h=et(c.id,null),d=null!=h?o.get(h):null;if(d){p=d.parent,v=PO(p);var m=p===i?{width:r,height:a}:{width:v.width,height:v.height},x={},_=lo(d,c,m,null,{hv:c.hv,boundingMode:c.bounding},x);if(!PO(d).isNew&&_){for(var S=c.transition,b={},w=0;w<l.length;w++){var M=l[w],I=x[M];S&&(JL(S)||s.cq(S,M)>=0)?b[M]=I:d[M]=I}un(d,b,t,0)}else d.attr(x)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){EO(n,PO(n).option,e,t._lastGraphicModel)})),this._elMap=s.kW()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Js);function RO(t){var e=s.RI(LO,t)?LO[t]:Il(t);var n=new e({});return PO(n).type=t,n}function OO(t,e,n,i){var o=RO(n);return e.add(o),i.set(t,o),PO(o).id=t,PO(o).isNew=!0,o}function EO(t,e,n,i){var o=t&&t.parent;o&&("group"===t.type&&t.traverse((function(t){EO(t,e,n,i)})),YL(t,e,i),n.removeKey(PO(t).id))}function VO(t,e,n,i){t.isGroup||s.S6([["cursor",H_.ZP.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];s.RI(e,i)?t[i]=s.pD(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),s.S6(s.XP(e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=s.mf(i)?i:null}})),s.RI(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function zO(t){return t=s.l7({},t),s.S6(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(no),(function(e){delete t[e]})),t}function BO(t,e,n){var i=Gt(t).eventData;t.silent||t.ignore||i||(i=Gt(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}function ZO(t){t.registerComponentModel(kO),t.registerComponentView(NO),t.registerPreprocessor((function(t){var e=t.graphic;(0,s.kJ)(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var GO=["x","y","radius","angle","single"],WO=["cartesian2d","polar","singleAxis"];function FO(t){var e=t.get("coordinateSystem");return(0,s.cq)(WO,e)>=0}function HO(t){return t+"Axis"}function UO(t,e){var n,i=(0,s.kW)(),o=[],r=(0,s.kW)();t.eachComponent({mainType:"dataZoom",query:e},(function(t){r.get(t.uid)||l(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!r.get(t.uid)&&u(t)&&(l(t),n=!0)}function l(t){r.set(t.uid,!0),o.push(t),c(t)}function u(t){var e=!1;return t.eachTargetAxis((function(t,n){var o=i.get(t);o&&o[n]&&(e=!0)})),e}function c(t){t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return o}function XO(t){var e=t.ecModel,n={infoList:[],infoMap:(0,s.kW)()};return t.eachTargetAxis((function(t,i){var o=e.getComponent(HO(t),i);if(o){var r=o.getCoordSysModel();if(r){var a=r.uid,s=n.infoMap.get(a);s||(s={model:r,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(o)}}})),n}var YO=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),JO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e,n){var i=jO(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=jO(t);(0,s.TS)(this.option,t,!0),(0,s.TS)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;(0,s.S6)([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=(0,s.kW)(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return(0,s.S6)(GO,(function(n){var i=this.getReferringComponents(HO(n),ft);if(i.specified){e=!0;var o=new YO;(0,s.S6)(i.models,(function(t){o.add(t.componentIndex)})),t.set(n,o)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var o="vertical"===e?"y":"x",r=n.findComponents({mainType:o+"Axis"});a(r,o)}if(i){r=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(r,"single")}function a(e,n){var o=e[0];if(o){var r=new YO;if(r.add(o.componentIndex),t.set(n,r),i=!1,"x"===n||"y"===n){var a=o.getReferringComponents("grid",pt).models[0];a&&(0,s.S6)(e,(function(t){o.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",pt).models[0]&&r.add(t.componentIndex)}))}}}i&&(0,s.S6)(GO,(function(e){if(i){var o=n.findComponents({mainType:HO(e),filter:function(t){return"category"===t.get("type",!0)}});if(o[0]){var r=new YO;r.add(o[0].componentIndex),t.set(e,r),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");(0,s.S6)([["start","startValue"],["end","endValue"]],(function(i,o){var r=null!=t[i[0]],a=null!=t[i[1]];r&&!a?e[o]="percent":!r&&a?e[o]="value":n?e[o]=n[o]:r&&(e[o]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;
1return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(HO(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){(0,s.S6)(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(HO(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;(0,s.S6)([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;(0,s.S6)(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],r=this._targetAxisInfoMap.get(o),a=0;a<r.indexList.length;a++){var s=this.getAxisProxy(o,r.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(mo);function jO(t){var e={};return(0,s.S6)(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var KO=JO,qO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="dataZoom.select",e}(KO),$O=qO,QO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(Js),tE=QO,eE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="dataZoom.select",e}(tE),nE=eE,iE=s.S6,oE=v,rE=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(FO(e)){var n=HO(this._dimName),i=e.getReferringComponents(n,pt).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return s.d9(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel(),o=i.axis.scale,r=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];iE(["start","end"],(function(i,u){var c=t[i],h=t[i+"Value"];"percent"===r[u]?(null==c&&(c=a[u]),h=o.parse(f(c,a,n))):(e=!0,h=null==h?n[u]:o.parse(h),c=f(h,n,a)),l[u]=null==h||isNaN(h)?n[u]:h,s[u]=null==c||isNaN(c)?a[u]:c})),oE(l),oE(s);var u=this._minMaxSpan;function c(t,e,n,i,r){var a=r?"Span":"ValueSpan";wT(0,t,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)e[s]=f(t[s],n,i,!0),r&&(e[s]=o.parse(e[s]))}return e?c(l,s,n,a,!1):c(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=aE(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),r=this._valueWindow;"none"!==o&&iE(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===o){var l=e.getStore(),u=s.UI(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,o,a=0;a<i.length;a++){var s=l.get(u[a],t),c=!isNaN(s),h=s<r[0],d=s>r[1];if(c&&!h&&!d)return!0;c&&(o=!0),h&&(e=!0),d&&(n=!0)}return o&&e&&n}))}else iE(i,(function(n){if("empty"===o)t.setData(e=e.map(n,(function(t){return a(t)?t:NaN})));else{var i={};i[n]=r,e.selectRange(i)}}));iE(i,(function(t){e.setApproximateExtent(r,t)}))}}))}function a(t){return t>=r[0]&&t<=r[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;iE(["min","max"],(function(i){var o=e.get(i+"Span"),r=e.get(i+"ValueSpan");null!=r&&(r=this.getAxisModel().axis.scale.parse(r)),null!=r?o=f(n[0]+r,n,[0,100],!0):null!=o&&(r=f(o,[0,100],n,!0)-n[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=r}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=_(n,[0,500]);i=Math.min(i,20);var o=t.axis.scale.rawExtentInfo;0!==e[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(i)),o.freeze()}},t}();function aE(t,e,n){var i=[1/0,-1/0];iE(n,(function(t){tm(i,t.getData(),e)}));var o=t.getAxisModel(),r=Zv(o.axis.scale,o,i).calculate();return[r.min,r.max]}var sE=rE,lE={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,o){var r=t.getComponent(HO(i),o);e(i,o,r,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,o,r){o.__dzAxisProxy||(o.__dzAxisProxy=new sE(e,i,r,t),n.push(o.__dzAxisProxy))}));var i=(0,s.kW)();return(0,s.S6)(n,(function(t){(0,s.S6)(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))}
1)),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},uE=lE;function cE(t){t.registerAction("dataZoom",(function(t,e){var n=UO(e,t);(0,s.S6)(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var hE=!1;function dE(t){hE||(hE=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,uE),cE(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function pE(t){t.registerComponentModel($O),t.registerComponentView(nE),dE(t)}var fE=function(){function t(){}return t}(),gE={};function yE(t,e){gE[t]=e}function vE(t){return gE[t]}var mE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;s.S6(this.option.feature,(function(t,n){var i=vE(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),s.TS(t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(mo),xE=mE;function _E(t,e,n){var i=e.getBoxLayoutParams(),o=e.get("padding"),r={width:n.getWidth(),height:n.getHeight()},a=so(i,r,o);ro(e.get("orient"),t,e.get("itemGap"),a.width,a.height),lo(t,i,r,o)}function SE(t,e){var n=Xi(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new sl.Z({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),t}var bE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n,i){var o=this.group;if(o.removeAll(),t.get("show")){var r=+t.get("itemSize"),a="vertical"===t.get("orient"),l=t.get("feature")||{},u=this._features||(this._features={}),c=[];s.S6(l,(function(t,e){c.push(e)})),new sp(this._featureNames||[],c).add(h).update(h).remove(s.WA(h,null)).execute(),this._featureNames=c,_E(o,t,n),o.add(SE(o.getBoundingRect(),t)),a||o.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),l=t.getTextContent(),u=l&&l.ensureState("emphasis");if(u&&!s.mf(u)&&e){var c=u.style||(u.style={}),h=rc.lP(e,Bt.ZP.makeFont(c)),d=t.x+o.x,p=t.y+o.y+r,f=!1;p+h.height>n.getHeight()&&(a.position="top",f=!0);var g=f?-5-h.height:r+10;d+h.width/2>n.getWidth()?(a.position=["100%",g],c.align="right"):d-h.width/2<0&&(a.position=[0,g],c.align="left")}}))}function h(o,r){var a,s=c[o],h=c[r],p=l[s],f=new Xn(p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===s&&(p.title=i.newTitle),s&&!h){if(wE(s))a={onclick:f.option.onclick,featureName:s};else{var g=vE(s);if(!g)return;a=new g}u[s]=a}else if(a=u[h],!a)return;a.uid=Jn("toolbox-feature"),a.model=f,a.ecModel=e,a.api=n;var y=a instanceof fE;s||!h?!f.get("show")||y&&a.unusable?y&&a.remove&&a.remove(e,n):(d(f,a,s),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Ce:Ae)(i[t])},a instanceof fE&&a.render&&a.render(f,e,n,i)):y&&a.dispose&&a.dispose(e,n)}function d(i,l,u){var c,h,d=i.getModel("iconStyle"),p=i.getModel(["emphasis","iconStyle"]),f=l instanceof fE&&l.getIcons?l.getIcons():i.get("icon"),g=i.get("title")||{};s.HD(f)?(c={},c[u]=f):c=f,s.HD(g)?(h={},h[u]=g):h=g;var y=i.iconPaths={};s.S6(c,(function(u,c){var f=Wl(u,{},{x:-r/2,y:-r/2,width:r,height:r});f.setStyle(d.getItemStyle());var g=f.ensureState("emphasis");g.style=p.getItemStyle();var v=new Bt.ZP({style:{text:h[c],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null},ignore:!0});f.setTextContent(v),Yl({el:f,componentModel:t,itemName:c,formatterParamsExtra:{title:h[c]}}),f.__title=h[c],f.on("mouseover",(function(){var e=p.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";v.setStyle({fill:p.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:p.get("textBackgroun
1dColor")}),f.setTextConfig({position:p.get("textPosition")||i}),v.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===i.get(["iconStatus",c])?Ce:Ae)(f),o.add(f),f.on("click",s.ak(l.onclick,l,e,n,c)),y[c]=f}))}},e.prototype.updateView=function(t,e,n,i){s.S6(this._features,(function(t){t instanceof fE&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){s.S6(this._features,(function(n){n instanceof fE&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){s.S6(this._features,(function(n){n instanceof fE&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Js);function wE(t){return 0===t.indexOf("my")}var ME=bE,IE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),r=o?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=l.Z.browser;if((0,s.mf)(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+r,c.target="_blank",c.href=a;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var d=a.split(","),p=d[0].indexOf("base64")>-1,f=o?decodeURIComponent(d[1]):d[1];p&&(f=window.atob(f));var g=i+"."+r;if(window.navigator.msSaveOrOpenBlob){var y=f.length,v=new Uint8Array(y);while(y--)v[y]=f.charCodeAt(y);var m=new Blob([v]);window.navigator.msSaveOrOpenBlob(m,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,S=_.document;S.open("image/svg+xml","replace"),S.write(f),S.close(),_.focus(),S.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',M=window.open();M.document.write(w),M.document.title=i}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",n
1ame:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(fE),TE=IE,DE="__ec_magicType_stack__",CE=[["line","bar"],["stack"]],AE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return s.S6(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var i=this.model,o=i.get(["seriesIndex",n]);if(kE[n]){var r,a={series:[]},l=function(t){var e=t.subType,o=t.id,r=kE[n](e,o,t,i);r&&(s.ce(r,t.option),a.series.push(r));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var u=l.getAxesByScale("ordinal")[0];if(u){var c=u.dim,h=c+"Axis",d=t.getReferringComponents(h,pt).models[0],p=d.componentIndex;a[h]=a[h]||[];for(var f=0;f<=p;f++)a[h][p]=a[h][p]||{};a[h][p].boundaryGap="bar"===n}}};s.S6(CE,(function(t){s.cq(t,n)>=0&&s.S6(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},l);var u=n;"stack"===n&&(r=s.TS({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(u="tiled")),e.dispatchAction({type:"changeMagicType",currentType:u,newOption:a,newTitle:r,featureName:"magicType"})}},e}(fE),kE={line:function(t,e,n,i){if("bar"===t)return s.TS({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return s.TS({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var o=n.get("stack")===DE;if("line"===t||"bar"===t)return i.setIconStatus("stack",o?"normal":"emphasis"),s.TS({id:e,stack:o?"":DE},i.get(["option","stack"])||{},!0)}};$h({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var LE=AE,PE=new Array(60).join("-"),NE="\t";function RE(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var o=t.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)n.push(t);else{var r=o.getBaseAxis();if("category"===r.type){var a=r.dim+"_"+r.index;e[a]||(e[a]={categoryAxis:r,valueAxis:o.getOtherAxis(r),series:[]},i.push({axisDim:r.dim,axisIndex:r.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function OE(t){var e=[];return s.S6(t,(function(t,n){var i=t.categoryAxis,o=t.valueAxis,r=o.dim,a=[" "].concat(s.UI(t.series,(function(t){return t.name}))),l=[i.model.getCategories()];s.S6(t.series,(function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(r),(function(t){return t})))}));for(var u=[a.join(NE)],c=0;c<l[0].length;c++){for(var h=[],d=0;d<l.length;d++)h.push(l[d][c]);u.push(h.join(NE))}e.push(u.join("\n"))})),e.join("\n\n"+PE+"\n\n")}function EE(t){return s.UI(t,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,o=arguments[t-1],r=e.getName(o),a=0;a<t-1;a++)i[a]=arguments[a];n.push((r?r+NE:"")+i.join(NE))})),n.join("\n")})).join("\n\n"+PE+"\n\n")}function VE(t){var e=RE(t);return{value:s.hX([OE(e.seriesGroupByCategoryAxis),EE(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+PE+"\n\n"),meta:e.meta}}function zE(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function BE(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(NE)>=0)return!0}var ZE=new RegExp("["+NE+"]+","g");function GE(t){for(var e=t.split(/\n+/g),n=zE(e.shift()).split(ZE),i=[],o=s.UI(n,(function(t){return{name:t,data:[]}})),r=0;r<e.length;r++){var a=zE(e[r]).split(ZE);i.push(a.shift());for(var l=0;l<a.length;l++)o[l]&&(o[l].data[r]=a[l])}return{series:o,categories:i}}function WE(t){for(var e=t.split(/\n+/g),n=zE(e.shift()),i=[],o=0;o<e.length;o++){var r=zE(e[o]);if(r){var a=r.split(ZE),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[o]={name:s,value:[]},l=i[o].value):l=i[o]=[];for(var c=0;c<a.length;
1c++)l.push(+a[c]);1===l.length&&(u?i[o].value=l[0]:i[o]=l[0])}}return{name:n,data:i}}function FE(t,e){var n=t.split(new RegExp("\n*"+PE+"\n*","g")),i={series:[]};return s.S6(n,(function(t,n){if(BE(t)){var o=GE(t),r=e[n],a=r.axisDim+"Axis";r&&(i[a]=i[a]||[],i[a][r.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{o=WE(t);i.series.push(o)}})),i}var HE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var r=document.createElement("h4"),a=i.get("lang")||[];r.innerHTML=a[0]||i.get("title"),r.style.cssText="margin:10px 20px",r.style.color=i.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="overflow:auto";var c=i.get("optionToContent"),h=i.get("contentToOption"),d=VE(t);if(s.mf(c)){var p=c(e.getOption());s.HD(p)?l.innerHTML=p:s.Mh(p)&&l.appendChild(p)}else{u.readOnly=i.get("readOnly");var f=u.style;f.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",f.color=i.get("textColor"),f.borderColor=i.get("textareaBorderColor"),f.backgroundColor=i.get("textareaColor"),u.value=d.value,l.appendChild(u)}var g=d.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),x=document.createElement("div");v+=";background-color:"+i.get("buttonColor"),v+=";color:"+i.get("buttonTextColor");var _=this;function S(){n.removeChild(o),_._dom=null}(0,Yx.Oo)(m,"click",S),(0,Yx.Oo)(x,"click",(function(){if(null==h&&null!=c||null!=h&&null==c)S();else{var t;try{t=s.mf(h)?h(l,e.getOption()):FE(u.value,g)}catch(n){throw S(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),S()}})),m.innerHTML=a[1],x.innerHTML=a[2],x.style.cssText=m.style.cssText=v,!i.get("readOnly")&&y.appendChild(x),y.appendChild(m),o.appendChild(r),o.appendChild(l),o.appendChild(y),l.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){var e={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return e},e}(fE);function UE(t,e){return s.UI(t,(function(t,n){var i=e&&e[n];if(s.Kn(i)&&!s.kJ(i)){var o=s.Kn(t)&&!s.kJ(t);o||(t={value:t});var r=null!=i.name&&null==t.name;return t=s.ce(t,i),r&&delete t.name,t}return t}))}$h({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];s.S6(t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var o=i.get("data");n.push({name:t.name,data:UE(t.data,o)})}else n.push(s.l7({type:"scatter"},t))})),e.mergeOption(s.ce({series:n},t.newOption))}));var XE=HE,YE=s.S6,JE=ut();function jE(t,e){var n=QE(t);YE(e,(function(e,i){for(var o=n.length-1;o>=0;o--){var r=n[o];if(r[i])break}if(o<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(e)}function KE(t){var e=QE(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return YE(n,(function(t,n){for(var o=e.length-1;o>=0;o--)if(t=e[o][n],t){i[n]=t;break}}
1)),i}function qE(t){JE(t).snapshots=null}function $E(t){return QE(t).length}function QE(t){var e=JE(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var tV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.onclick=function(t,e){qE(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(fE);$h({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var eV=tV,nV=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],iV=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var o=rV(e,t);(0,s.S6)(aV,(function(t,e){(!n||!n.include||(0,s.cq)(n.include,e)>=0)&&t(o,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=uV[t.brushType](0,n,e);t.__rangeOffset={offset:hV[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){(0,s.S6)(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&(0,s.S6)(i.coordSyses,(function(i){var o=uV[t.brushType](1,i,t.range,!0);n(t,o.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){(0,s.S6)(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=uV[t.brushType](0,n.coordSys,t.coordRange),o=t.__rangeOffset;t.range=o?hV[t.brushType](i.values,o.offset,pV(i.xyMinMax,o.xyMinMax)):i.values}}),this)},t.prototype.makePanelOpts=function(t,e){return(0,s.UI)(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:BD(i),isTargetByCursor:GD(i,t,n.coordSysModel),getLinearBrushOtherExtent:ZD(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&(0,s.cq)(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=rV(e,t),o=0;o<n.length;o++){var r=n[o],a=t.panelId;if(a){if(r.panelId===a)return r}else for(var s=0;s<sV.length;s++)if(sV[s](i,r))return r}return!0},t}();function oV(t){return t[0]>t[1]&&t.reverse(),t}function rV(t,e){return ht(t,e,{includeMainTypes:nV})}var aV={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,o=t.gridModels,r=(0,s.kW)(),a={},l={};(n||i||o)&&((0,s.S6)(n,(function(t){var e=t.axis.grid.model;r.set(e.id,e),a[e.id]=!0})),(0,s.S6)(i,(function(t){var e=t.axis.grid.model;r.set(e.id,e),l[e.id]=!0})),(0,s.S6)(o,(function(t){r.set(t.id,t),a[t.id]=!0,l[t.id]=!0})),r.each((function(t){var o=t.coordinateSystem,r=[];(0,s.S6)(o.getCartesians(),(function(t,e){((0,s.cq)(n,t.getAxis("x").model)>=0||(0,s.cq)(i,t.getAxis("y").model)>=0)&&r.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:lV.grid,xAxisDeclared:a[t.id],yAxisDeclared:l[t.id]})})))},geo:function(t,e){(0,s.S6)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:lV.geo})}))}},sV=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,o=t.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],lV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Rl(t)),e}},uV={lineX:(0,s.WA)(cV,0),lineY:(0,s.WA)(cV,1),rect:function(t,e,n,i){var o=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),r=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[oV([o[0],r[0]]),oV([o[1],r[1]])];return{values:a,xyMinMax:a}}
1,polygon:function(t,e,n,i){var o=[[1/0,-1/0],[1/0,-1/0]],r=(0,s.UI)(n,(function(n){var r=t?e.pointToData(n,i):e.dataToPoint(n,i);return o[0][0]=Math.min(o[0][0],r[0]),o[1][0]=Math.min(o[1][0],r[1]),o[0][1]=Math.max(o[0][1],r[0]),o[1][1]=Math.max(o[1][1],r[1]),r}));return{values:r,xyMinMax:o}}};function cV(t,e,n,i){var o=n.getAxis(["x","y"][t]),r=oV((0,s.UI)([0,1],(function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))}))),a=[];return a[t]=r,a[1-t]=[NaN,NaN],{values:r,xyMinMax:a}}var hV={lineX:(0,s.WA)(dV,0),lineY:(0,s.WA)(dV,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return(0,s.UI)(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function dV(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function pV(t,e){var n=fV(t),i=fV(e),o=[n[0]/i[0],n[1]/i[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function fV(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var gV=iV,yV=s.S6,vV=ot("toolbox-dataZoom_"),mV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new zD(n.getZr()),this._brushController.on("brush",s.ak(this._onBrush,this)).mount()),bV(t,e,this,i,n),SV(t,e)},e.prototype.onclick=function(t,e,n){xV[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new gV(_V(this.model),i,{include:["grid"]});o.matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}})),jE(i,n),this._dispatchZoomAction(n)}function r(t,e,o){var r=e.getAxis(t),s=r.model,l=a(t,s,i),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(o=wT(0,o.slice(),r.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:o[0],endValue:o[1]})}function a(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var o=n.getAxisModel(t,e.componentIndex);o&&(i=n)})),i}},e.prototype._dispatchZoomAction=function(t){var e=[];yV(t,(function(t,n){e.push(s.d9(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(fE),xV={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(KE(this.ecModel))}};function _V(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function SV(t,e){t.setIconStatus("back",$E(e)>1?"emphasis":"normal")}function bV(t,e,n,i,o){var r=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(r="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");var a=new gV(_V(t),e,{include:["grid"]}),s=a.makePanelOpts(o,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!r||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}Go("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),o=[],r=_V(i),a=ht(t,r);return yV(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),yV(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),o}function s(t,e,n){var r=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:vV+e+r};a[n]=r,o.push(a)}}));var wV=mV;function MV(t){t.registerComponentModel(xE),t.registerComponentView(ME),yE("saveAsImage",TE),yE("magicType",LE),yE("dataView",XE),yE("dataZoom",wV),yE("restore",eV),ud(pE)}var IV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(mo),TV=IV;function DV(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function CV(t){if(l.Z.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var AV=CV(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),kV=CV(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function LV(t,e){if(!t)return e;e=Ui(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function PV(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var NV=LV(kV,"transition"),RV=LV(AV,"transform"),OV="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(l.Z.transform3dSupported?"will-change:transform;":"");function EV(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function VV(t,e,n){if(!(0,s.HD)(n)||"inside"===n)return"";var i=t.get("backgroundColor"),o=t.get("borderWidth");e=Qi(e);var r,a=EV(n),l=Math.max(1.5*Math.round(o),6),u="",c=RV+":";(0,s.cq)(["left","right"],a)>
1-1?(u+="top:50%",c+="translateY(-50%) rotate("+(r="left"===a?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(r="top"===a?225:45)+"deg)");var h=r*Math.PI/180,d=l+o,p=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),f=Math.round(100*((p-Math.SQRT2*o)/2+Math.SQRT2*o-(p-d)/2))/100;u+=";"+a+":-"+f+"px";var g=e+" solid "+o+"px;",y=["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",u+";"+c+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'<div style="'+y.join("")+'"></div>'}function zV(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,o="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,o+=l.Z.transformSupported?","+RV+i:",left"+i+",top"+i),NV+":"+o}function BV(t,e,n){var i=t.toFixed(0)+"px",o=e.toFixed(0)+"px";if(!l.Z.transformSupported)return n?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var r=l.Z.transform3dSupported,a="translate"+(r?"3d":"")+"("+i+","+o+(r?",0":"")+")";return n?"top:0;left:0;"+RV+":"+a+";":[["top",0],["left",0],[AV,a]]}function ZV(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var o=t.get("textShadowColor"),r=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&r&&e.push("text-shadow:"+a+"px "+l+"px "+r+"px "+o),(0,s.S6)(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function GV(t,e,n){var i=[],o=t.get("transitionDuration"),r=t.get("backgroundColor"),a=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),h=t.getModel("textStyle"),d=As(t,"html"),p=u+"px "+c+"px "+a+"px "+l;return i.push("box-shadow:"+p),e&&o&&i.push(zV(o,n)),r&&i.push("background-color:"+r),(0,s.S6)(["width","color","radius"],(function(e){var n="border-"+e,o=Ui(n),r=t.get(o);null!=r&&i.push(n+":"+r+("color"===e?"":"px"))})),i.push(ZV(h)),null!=d&&i.push("padding:"+Xi(d).join("px ")+"px"),i.join(";")+";"}function WV(t,e,n,i,o){var r=e&&e.painter;if(n){var a=r&&r.getViewportRoot();a&&(0,Qn.YB)(t,a,document.body,i,o)}else{t[0]=i,t[1]=o;var s=r&&r.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var FV=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,l.Z.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var o=this._zr=e.getZr(),r=this._appendToBody=n&&n.appendToBody;WV(this._styleCoord,o,r,e.getWidth()/2,e.getHeight()/2),r?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=o.handler,n=o.painter.getViewportRoot();(0,Yx.OD)(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=PV(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=OV+GV(t,!this._firstShow,this._longHide)+BV(o[0],o[1],!0)+"border-color:"+Qi(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,o){var r=this.el;if(null!=t){var a="";if((0,s.HD)(o)&&"item"===n.get("trigger")&&!DV(n)&&(a=VV(n,i,o)),(0,s.HD)(t))r.innerHTML=t+a;else if(t){r.innerHTML="",(0,s.kJ)(t)||(t=[t]);for(var l=0;l<t.length;l++)(0,s.Mh)(t[l])&&t[l].parentNode!==r&&r.appendChild(t[l]);if(a&&r.childNodes.length){var u=document.createElement("div");u.innerHTML=a,r.appendChild(u)}}}else r.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(WV(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,o=BV(n[0],n[1]);(0,s.S6)(o,(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",l.Z.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout((0,s.ak)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),HV=FV,UV=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),JV(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,o){var r=this;
1s.Kn(t)&&Ca(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Bt.ZP({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:As(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),s.S6(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){r.el.style[t]=n.get(t)})),s.S6(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){r.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var l=this;this.el.on("mouseover",(function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0})),this.el.on("mouseout",(function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=YV(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;JV(i,this._zr,t,e),t=i[0],e=i[1];var o=n.style,r=XV(o.borderWidth||0),a=YV(o);n.x=t+r+a.left,n.y=e+r+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(s.ak(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function XV(t){return Math.max(0,t)}function YV(t){var e=XV(t.shadowBlur||0),n=XV(t.shadowOffsetX||0),i=XV(t.shadowOffsetY||0);return{left:XV(e-n),right:XV(e+n),top:XV(e-i),bottom:XV(e+i)}}function JV(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var jV=UV,KV=new sl.Z({shape:{x:-1,y:-1,width:2,height:2}}),qV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e){if(!l.Z.node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=mt(n.get("renderMode"));this._tooltipContent="richText"===i?new jV(e):new HV(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!l.Z.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?uu(this,"_updatePosition",50,"fixRate"):cu(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");IN("itemTooltip",this._api,(0,s.ak)((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&o.manuallyShowTip(t,e,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!l.Z.node&&n.getDom()){var o=QV(i,n);this._ticket="";var r=i.dataByCoordSys,a=oz(i,e,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:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var u=KV;u.x=i.x,u.y=i.y,u.update(),Gt(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},o)}else if(r)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:r,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var c=RN(i,e),h=c.point[0],d=c.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,target:c.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(QV(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,r=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){var s=e.getSeriesByIndex(o);if(s){var l=s.getData(),u=$V([l.getItemModel(r),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var r,a;this._lastDataByCoordSys=null,ic(n,(function(t){return null!=Gt(t).dataIndex?(r=t,!0):null!=Gt(t).tooltipConfig?(a=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=(0,s.ak)(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,o=[e.offsetX,e.offsetY],r=$V([e.tooltipOption],i),a=this._renderMode,l=[],u=gs("section",{blocks:[],noHeader:!0}),c=[],h=new ks;(0,s.S6)(t,(function(t){(0,s.S6)(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),o=t.value;if(e&&null!=o){var r=cN(o,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),d=gs("section",{header:r,noHeader:!(0,s.fy)(r),sortBlocks:!0,blocks:[]});u.blocks.push(d),(0,s.S6)(t.seriesDataIndices,(function(u){var p=n.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,g=p.getDataParams(f);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Jv(e.axis,{value:o}),g.axisValueLabel=r,g.marker=h.makeTooltipMarker("item",Qi(g.color),a);var y=wa(p.formatTooltip(f,!0,null)),v=y.frag;if(v){var m=$V([p],i).get("valueFormatter");d.blocks.push(m?(0,s.l7)({valueFormatter:m},v):v)}y.text&&c.push(y.text),l.push(g)}}))}}))})),u.blocks.reverse(),c.reverse();var d=e.position,p=r.get("order"),f=Ss(u,h,a,p,n.get("useUTC"),r.get("textStyle"));f&&c.unshift(f);var g="richText"===a?"\n\n":"<br/>",y=c.join(g);this._showOrMove(r,(function(){this._updateContentNotChangedOnAxis(t,l)?this._updatePosition(r,d,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(r,y,l,Math.random()+"",o[0],o[1],d,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,o=Gt(e),r=o.seriesIndex,a=i.getSeriesByIndex(r),l=o.dataModel||a,u=o.dataIndex,c=o.dataType,h=l.getData(c),d=this._renderMode,p=t.positionDefault,f=$V([h.getItemModel(u),l,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=f.get("trigger");if(null==g||"item"===g){var y=l.getDataParams(u,c),v=new ks;y.marker=v.makeTooltipMarker("item",Qi(y.color),d);var m=wa(l.formatTooltip(u,!1,c)),x=f.get("order"),_=f.get("valueFormatter"),S=m.frag,b=S?Ss(_?(0,s.l7)({valueFormatter:_},S):S,v,d,x,i.get("useUTC"),f.get("textStyle")):m.text,w="item_"+l.name+"_"+u;this._showOrMove(f,(function(){this._showTooltipContent(f,b,y,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:r,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=Gt(e),o=i.tooltipConfig,r=o.option||{};if((0,s.HD)(r)){var a=r;r={content:a,formatter:a}}var l=[r],u=this._ecModel.getComponent(i.componentMainType,i.componentIndex);u&&l.push(u),l.push({formatter:r.content});var c=t.positionDefault,h=$V(l,this._tooltipModel,c?{position:c}:null),d=h.get("content"),p=Math.random()+"",f=new ks;this._showOrMove(h,(function(){var n=(0,s.d9)(h.get("formatterParams")||{});this._showTooltipContent(h,d,n,p,t.offsetX,t.offsetY,t.position,e,f)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,o,r,a,l,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var d=e,p=this._getNearestPoint([o,r],n,t.get("trigger"),t.get("borderColor")),f=p.color;if(h)if((0,s.HD)(h)){var g=t.ecModel.get("useUTC"),y=(0,s.kJ)(n)?n[0]:n,v=y&&y.axisType&&y.axisType.indexOf("time")>=0;
1d=h,v&&(d=Ti(y.axisValue,d,g)),d=Ki(d,n,!0)}else if((0,s.mf)(h)){var m=(0,s.ak)((function(e,i){e===this._ticket&&(c.setContent(i,u,t,f,a),this._updatePosition(t,a,o,r,c,n,l))}),this);this._ticket=i,d=h(n,i,m)}else d=h;c.setContent(d,u,t,f,a),c.show(t,f),this._updatePosition(t,a,o,r,c,n,l)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||(0,s.kJ)(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:(0,s.kJ)(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,o,r,a){var l=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var c=o.getSize(),h=t.get("align"),d=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),(0,s.mf)(e)&&(e=e([n,i],r,o.el,p,{viewSize:[l,u],contentSize:c.slice()})),(0,s.kJ)(e))n=g(e[0],l),i=g(e[1],u);else if((0,s.Kn)(e)){var f=e;f.width=c[0],f.height=c[1];var y=so(f,{width:l,height:u});n=y.x,i=y.y,h=null,d=null}else if((0,s.HD)(e)&&a){var v=nz(e,p,c,t.get("borderWidth"));n=v[0],i=v[1]}else{v=tz(n,i,o,l,u,h?null:20,d?null:20);n=v[0],i=v[1]}if(h&&(n-=iz(h)?c[0]/2:"right"===h?c[0]:0),d&&(i-=iz(d)?c[1]/2:"bottom"===d?c[1]:0),DV(t)){v=ez(n,i,o,l,u);n=v[0],i=v[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&(0,s.S6)(n,(function(n,r){var a=n.dataByAxis||[],l=t[r]||{},u=l.dataByAxis||[];o=o&&a.length===u.length,o&&(0,s.S6)(a,(function(t,n){var r=u[n]||{},a=t.seriesDataIndices||[],l=r.seriesDataIndices||[];o=o&&t.value===r.value&&t.axisType===r.axisType&&t.axisId===r.axisId&&a.length===l.length,o&&(0,s.S6)(a,(function(t,e){var n=l[e];o=o&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&(0,s.S6)(t.seriesDataIndices,(function(t){var n=t.seriesIndex,r=e[n],a=i[n];r&&a&&a.data!==r.data&&(o=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!l.Z.node&&e.getDom()&&(cu(this,"_updatePosition"),this._tooltipContent.dispose(),LN("itemTooltip",e))},e.type="tooltip",e}(Js);function $V(t,e,n){var i,o=e.ecModel;n?(i=new Xn(n,o,o),i=new Xn(e.option,i,o)):i=e;for(var r=t.length-1;r>=0;r--){var a=t[r];a&&(a instanceof Xn&&(a=a.get("tooltip",!0)),(0,s.HD)(a)&&(a={formatter:a}),a&&(i=new Xn(a,i,o)))}return i}function QV(t,e){return t.dispatchAction||(0,s.ak)(e.dispatchAction,e)}function tz(t,e,n,i,o,r,a){var s=n.getSize(),l=s[0],u=s[1];return null!=r&&(t+l+r+2>i?t-=l+r:t+=r),null!=a&&(e+u+a>o?e-=u+a:e+=a),[t,e]}function ez(t,e,n,i,o){var r=n.getSize(),a=r[0],s=r[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,o)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function nz(t,e,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+c/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+c+a;break;case"left":s=e.x-o-a,l=e.y+c/2-r/2;break;case"right":s=e.x+u+a,l=e.y+c/2-r/2}return[s,l]}function iz(t){return"center"===t||"middle"===t}function oz(t,e,n){var i=dt(t).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var r=gt(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),a=r.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Gt(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:o,componentIndex:a.componentIndex,el:s}:void 0}}}var rz=qV;function az(t){ud(YN),t.registerComponentModel(TV),t.registerComponentView(rz),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},s.ZT),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},s.ZT)}var sz=["rect","polygon","keep","clear"];function lz(t,e){var n=G(t?t.brush:[]);if(n.length){var i=[];s.S6(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var o=t&&t.toolbox;s.kJ(o)&&(o=o[0]),o||(o={feature:{}},t.toolbox=[o]);var r=o.feature||(o.feature={}),a=r.brush||(r.brush={}),l=a.type||(a.type=[]);l.push.apply(l,i),uz(l),e&&!l.length&&l.push.apply(l,sz)}}function uz(t){var e={};s.S6(t,(function(t){e[t]=1})),t.length=0,s.S6(e,(function(e,n){t.push(n)}))}var cz=s.S6;function hz(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function dz(t,e,n){var i={};return cz(e,(function(e){var r=i[e]=o();cz(t[e],(function(t,i){if(kw.isValidType(i)){var o={type:i,visual:t};n&&n(o,e),r[i]=new kw(o),"opacity"===i&&(o=s.d9(o),o.type="colorAlpha",r.__hidden.__alphaForOpacity=new kw(o))}}))})),i;function o(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function pz(t,e,n){var i;s.S6(n,(function(t){e.hasOwnProperty(t)&&hz(e[t])&&(i=!0)})),i&&s.S6(n,(function(n){e.hasOwnProperty(n)&&hz(e[n])?t[n]=s.d9(e[n]):delete t[n]}))}function fz(t,e,n,i,o,r){var a,l={};function u(t){return qu(n,a,t)}function c(t,e){Qu(n,a,t,e)}function h(t,s){a=null==r?t:s;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=i.call(o,t),p=e[d],f=l[d],g=0,y=f.length;g<y;g++){var v=f[g];p[v]&&p[v].applyVisual(t,u,c)}}s.S6(t,(function(t){var n=kw.prepareVisualTypes(e[t]);l[t]=n})),null==r?n.each(h):n.each([r],h)}function gz(t,e,n,i){var o={};return s.S6(t,(function(t){var n=kw.prepareVisualTypes(e[t]);o[t]=n})),{progress:function(t,r){var a,s;function l(t){return qu(r,s,t)}function u(t,e){Qu(r,s,t,e)}null!=i&&(a=r.getDimensionIndex(i));var c=r.getStore();while(null!=(s=t.next())){var h=r.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=null!=i?c.get(a,s):s,p=n(d),f=e[p],g=o[p],y=0,v=g.length;y<v;y++){var m=g[y];f[m]&&f[m].applyVisual(d,l,u)}}}}}function yz(t){var e=t.brushType,n={point:function(i){return vz[e].point(i,n,t)},rect:function(i){return vz[e].rect(i,n,t)}};return n}var vz={lineX:mz(0),lineY:mz(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&c_.X(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var o=t.x,r=t.y,a=t.width,s=t.height,l=i[0];return!!(c_.X(i,o,r)||c_.X(i,o+a,r)||c_.X(i,o,r+s)||c_.X(i,o+a,r+s)||$n.Z.create(t).contain(l[0],l[1])||Fl(o,r,o+a,r,i)||Fl(o,r,o,r+s,i)||Fl(o+a,r,o+a,r+s,i)||Fl(o,r+s,o+a,r+s,i))||void 0}}};function mz(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var o=i.range,r=e[t];return xz(r,o)}},rect:function(i,o,r){if(i){var a=r.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),xz(s[0],a)||xz(s[1],a)||xz(a[0],s)||xz(a[1],s)}}}}function xz(t,e){return e[0]<=t&&t<=e[1]}var _z=["inBrush","outOfBrush"],Sz="__ecBrushSelect",bz="__ecInBrushSelectEvent";function wz(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new gV(e.option,t);n.setInputRanges(e.areas,t)}))}function Mz(t,e,n){var i,o,r=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),wz(t),t.eachComponent({mainType:"brush"}
1,(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:s.d9(e.areas),selected:[]};r.push(a);var l=e.option,u=l.brushLink,c=[],h=[],d=[],p=!1;n||(i=l.throttleType,o=l.throttleDelay);var f=s.UI(e.areas,(function(t){var e=Az[t.brushType],n=s.ce({boundingRect:e?e(t):void 0},t);return n.selectors=yz(n),n})),g=dz(e.option,_z,(function(t){t.mappingMethod="fixed"}));function y(t){return"all"===u||!!c[t]}function v(t){return!!t.length}function m(t,e){var n=t.coordinateSystem;p=p||n.hasAxisBrushed(),y(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(h[e]=1)}))}function x(n,i,o){if(n.brushSelector&&!Cz(e,i)&&(s.S6(f,(function(i){e.brushTargetManager.controlSeries(i,n,t)&&o.push(i),p=p||v(o)})),y(i)&&v(o))){var r=n.getData();r.each((function(t){Dz(n,o,r,t)&&(h[t]=1)}))}}s.kJ(u)&&s.S6(u,(function(t){c[t]=1})),t.eachSeries((function(t,e){var n=d[e]=[];"parallel"===t.subType?m(t,e):x(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var i=d[e],o=t.getData(),r=y(e)?function(t){return h[t]?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return Dz(t,i,o,e)?(n.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"};(y(e)?p:v(i))&&fz(_z,g,o,r)}))})),Iz(e,i,o,r,n)}function Iz(t,e,n,i,o){if(o){var r=t.getZr();if(!r[bz]){r[Sz]||(r[Sz]=Tz);var a=uu(r,Sz,n,e);a(t,i)}}}function Tz(t,e){if(!t.isDisposed()){var n=t.getZr();n[bz]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[bz]=!1}}function Dz(t,e,n,i){for(var o=0,r=e.length;o<r;o++){var a=e[o];if(t.brushSelector(i,n,a.selectors,a))return!0}}function Cz(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(s.kJ(n)?s.cq(n,e)<0:e!==n)}var Az={rect:function(t){return kz(t.range)},polygon:function(t){for(var e,n=t.range,i=0,o=n.length;i<o;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var r=n[i];r[0]<e[0][0]&&(e[0][0]=r[0]),r[0]>e[0][1]&&(e[0][1]=r[0]),r[1]<e[1][0]&&(e[1][0]=r[1]),r[1]>e[1][1]&&(e[1][1]=r[1])}return e&&kz(e)}};function kz(t){return new $n.Z(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var Lz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new zD(e.getZr())).on("brush",s.ak(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){wz(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:s.d9(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:s.d9(n),$from:e})},e.type="brush",e}(Js),Pz=Lz,Nz="#ddd",Rz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return(0,r.ZT)(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&pz(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:Nz},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=s.UI(t,(function(t){return Oz(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=Oz(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(mo);function Oz(t,e){return s.TS({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Xn(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var Ez=Rz,Vz=["rect","polygon","lineX","lineY","keep","clear"],zz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){var i,o,r;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,o=t.brushOption.brushMode||"single",r=r||!!t.areas.length}
1)),this._brushType=i,this._brushMode=o,s.S6(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===o:"clear"===e?r:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return s.S6(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},e.getDefaultOption=function(t){var e={show:!0,type:Vz.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(fE),Bz=zz;function Zz(t){t.registerComponentView(Pz),t.registerComponentModel(Ez),t.registerPreprocessor(lz),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Mz),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},s.ZT),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},s.ZT),yE("brush",Bz)}var Gz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,r.ZT)(e,t),e.type="title",e.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"}},e}(mo),Wz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,o=t.getModel("textStyle"),r=t.getModel("subtextStyle"),a=t.get("textAlign"),l=s.pD(t.get("textBaseline"),t.get("textVerticalAlign")),u=new Bt.ZP({style:bn(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=u.getBoundingRect(),h=t.get("subtext"),d=new Bt.ZP({style:bn(r,{text:h,fill:r.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),f=t.get("sublink"),g=t.get("triggerEvent",!0);u.silent=!p&&!g,d.silent=!f&&!g,p&&u.on("click",(function(){to(p,"_"+t.get("target"))})),f&&d.on("click",(function(){to(f,"_"+t.get("subtarget"))})),Gt(u).eventData=Gt(d).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),h&&i.add(d);
1var y=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=y.width,v.height=y.height;var m=so(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),l||(l=t.get("top")||t.get("bottom"),"center"===l&&(l="middle"),"bottom"===l?m.y+=m.height:"middle"===l&&(m.y+=m.height/2),l=l||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var x={align:a,verticalAlign:l};u.setStyle(x),d.setStyle(x),y=i.getBoundingRect();var _=m.margin,S=t.getItemStyle(["color","opacity"]);S.fill=t.get("backgroundColor");var b=new sl.Z({shape:{x:y.x-_[3],y:y.y-_[0],width:y.width+_[1]+_[3],height:y.height+_[0]+_[2],r:t.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(Js);function Fz(t){t.registerComponentModel(Gz),t.registerComponentView(Wz)}var Hz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,o=this._names=[];"category"===i?(t=[],(0,s.S6)(n,(function(e,n){var i,r=et(H(e),"");(0,s.Kn)(e)?(i=(0,s.d9)(e),i.value=n):i=n,t.push(i),o.push(r)}))):t=n;var r={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new Vp([{name:"value",type:r}],this);a.initData(t,o)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(mo),Uz=Hz,Xz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="timeline.slider",e.defaultOption=qn(Uz.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(Uz);(0,s.jB)(Xz,ba.prototype);var Yz=Xz,Jz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="timeline",e}(Js),jz=Jz,Kz=function(t){function e(e,n,i,o){var r=t.call(this,e,n,i)||this;return r.type=o||"value",r}return(0,r.ZT)(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(Tm),qz=Kz,$z=Math.PI,Qz=ut(),tB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),r=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return gs("nameValue",{noName:!0,value:e})},(0,s.S6)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,o,a,t)}),this),this._renderAxisLabel(i,r,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i=t.get(["label","position"]),o=t.get("orient"),r=nB(t,e);n=null==i||"auto"===i?"horizontal"===o?r.y+r.height/2<e.getHeight()/2?"-":"+":r.x+r.width/2<e.getWidth()/2?"+":"-":(0,s.HD)(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[o][i]:i;var a,l,u,c={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:$z/2},p="vertical"===o?r.height:r.width,f=t.getModel("controlStyle"),g=f.get("show",!0),y=g?f.get("itemSize"):0,v=g?f.get("itemGap"):0,m=y+v,x=t.get(["label","rotate"])||0;x=x*$z/180;var _=f.get("position",!0),S=g&&f.get("showPlayBtn",!0),b=g&&f.get("showPrevBtn",!0),w=g&&f.get("showNextBtn",!0),M=0,I=p;"left"===_||"bottom"===_?(S&&(a=[0,0],M+=m),b&&(l=[M,0],M+=m),w&&(u=[I-y,0],I-=m)):(S&&(a=[I-y,0],I-=m),b&&(l=[0,0],M+=m),w&&(u=[I-y,0],I-=m));var T=[M,I];return t.get("inverse")&&T.reverse(),{viewRect:r,mainLength:p,orient:o,rotation:d[o],labelRotation:x,labelPosOpt:n,labelAlign:t.get(["label","align"])||c[o],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[o],playPosition:a,prevBtnPosition:l,nextBtnPosition:u,axisExtent:T,controlSize:y,controlGa
1p:v}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var r=qs.Ue(),a=o.x,l=o.y+o.height;qs.Iu(r,r,[-a,-l]),qs.U1(r,r,-$z/2),qs.Iu(r,r,[a,l]),o=o.clone(),o.applyTransform(r)}var u=v(o),c=v(n.getBoundingRect()),h=v(i.getBoundingRect()),d=[n.x,n.y],p=[i.x,i.y];p[0]=d[0]=u[0][0];var f=t.labelPosOpt;if(null==f||(0,s.HD)(f)){var g="+"===f?0:1;m(d,c,u,1,g),m(p,h,u,1,1-g)}else{g=f>=0?0:1;m(d,c,u,1,g),p[1]=d[1]+f}function y(t){t.originX=u[0][0]-t.x,t.originY=u[1][0]-t.y}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function m(t,e,n,i,o){t[i]+=n[i][o]-e[i][o]}n.setPosition(d),i.setPosition(p),n.rotation=i.rotation=t.rotation,y(n),y(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),o=eB(e,i);o.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var r=n.getDataExtent("value");o.setExtent(r[0],r[1]),o.calcNiceTicks();var a=new qz("value",o,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Xs.Z;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var r=new ll.Z({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:(0,s.l7)({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(r);var a=this._progressLine=new ll.Z({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:(0,s.ce)({lineCap:"round",lineWidth:r.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var o=this,r=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],(0,s.S6)(a,(function(t){var a=n.dataToCoord(t.value),l=r.getItemModel(t.value),u=l.getModel("itemStyle"),c=l.getModel(["emphasis","itemStyle"]),h=l.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:(0,s.ak)(o._changeTimeline,o,t.value)},p=oB(l,u,e,d);p.ensureState("emphasis").style=c.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),Ue(p);var f=Gt(p);l.get("tooltip")?(f.dataIndex=t.value,f.dataModel=i):f.dataIndex=f.dataModel=null,o._tickSymbols.push(p)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var o=this,r=n.getLabelModel();if(r.get("show")){var a=i.getData(),l=n.getViewLabels();this._tickLabels=[],(0,s.S6)(l,(function(i){var r=i.tickValue,l=a.getItemModel(r),u=l.getModel("label"),c=l.getModel(["emphasis","label"]),h=l.getModel(["progress","label"]),d=n.dataToCoord(i.tickValue),p=new Bt.ZP({x:d,y:0,rotation:t.labelRotation-t.rotation,onclick:(0,s.ak)(o._changeTimeline,o,r),silent:!1,style:bn(u,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=bn(c),p.ensureState("progress").style=bn(h),e.add(p),Ue(p),Qz(p).dataIndex=r,o._tickLabels.push(p)}))}},e.prototype._renderControl=function(t,e,n,i){var o=t.controlSize,r=t.rotation,a=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),c=i.get("inverse",!0);function h(t,n,u,c){if(t){var h=(0,rc.GM)((0,s.pD)(i.get(["controlStyle",n+"BtnSize"]),o),o),d=[0,-h/2,h,h],p=iB(i,n+"Icon",d,{x:t[0],y:t[1],originX:o/2,originY:0,rotation:c?-r:0,rectHover:!0,style:a,onclick:u});p.ensureState("emphasis").style=l,e.add(p),Ue(p)}}h(t.nextBtnPosition,"next",(0,s.ak)(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",(0,s.ak)(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,u?"stop":"play",(0,s.ak)(this._handlePlayClick,this,!u),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),r=i.getCurrentIndex(),a=o.getItemModel(r).getModel("checkpointStyle"),l=this,u={onCreate:function(t){t.draggable=!0,t.drift=(0,s.ak)(l._handlePointerDrag,l),t.ondragend=(0,s.ak)(l._handlePointerDragend,l),rB(t,l._progressLine,r,n,i,!0)},onUpdate:function(t){rB(t,l._progressLine,r,n,i)}};this._currentPointer=oB(a,a,this._mainGroup,{},this._currentPointer,u)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,o=v(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var r=this._progressLine;r&&(r.shape.x2=n,r.dirty());var a=this._findNearestTick(n),s=this.model;(e||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getL
1ocalTransform();return Ol(t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,o=this._axis;return n.each(["value"],(function(n,r){var a=o.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=r)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",Qz(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(jz);function eB(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new cv({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new Iv({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new pv}}function nB(t,e){return so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function iB(t,e,n,i){var o=i.style,r=Wl(t.get(["controlStyle",e]),i||{},new $n.Z(n[0],n[1],n[2],n[3]));return o&&r.setStyle(o),r}function oB(t,e,n,i,o,r){var a=e.get("color");if(o)o.setColor(a),n.add(o),r&&r.onUpdate(o);else{var l=t.get("symbol");o=gc(l,-1,-1,2,2,a),o.setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o)}var u=e.getItemStyle(["color"]);o.setStyle(u),i=(0,s.TS)({rectHover:!0,z2:100},i,!0);var c=yc(t.get("symbolSize"));i.scaleX=c[0]/2,i.scaleY=c[1]/2;var h=vc(t.get("symbolOffset"),c);h&&(i.x=(i.x||0)+h[0],i.y=(i.y||0)+h[1]);var d=t.get("symbolRotate");return i.rotation=(d||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function rB(t,e,n,i,o,r){if(!t.dragging){var a=o.getModel("checkpointStyle"),s=i.dataToCoord(o.getData().get("value",n));if(r||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var aB=tB;function sB(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),(0,s.ce)({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}function lB(t){var e=t&&t.timeline;s.kJ(e)||(e=e?[e]:[]),s.S6(e,(function(t){t&&uB(t)}))}function uB(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),cB(t),hB(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});hB(i,"position")||(i.position=t.controlPosition),"none"!==i.position||hB(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}s.S6(t.data||[],(function(t){s.Kn(t)&&!s.kJ(t)&&(!hB(t,"value")&&hB(t,"name")&&(t.value=t.name),cB(t))}))}function cB(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},o=i.normal||(i.normal={}),r={normal:1,emphasis:1};s.S6(i,(function(t,e){r[e]||hB(o,e)||(o[e]=t)})),n.label&&!hB(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function hB(t,e){return t.hasOwnProperty(e)}function dB(t){t.registerComponentModel(Yz),t.registerComponentView(aB),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),sB(t),t.registerPreprocessor(lB)}function pB(t,e){if(!t)return!1;for(var n=(0,s.kJ)(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function fB(t){W(t,"label",["show"])}var gB=ut(),yB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(l.Z.node)return!1;var t=this.__hostSeries;
1return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var o=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),r=gB(t)[o];n&&n.data?(r?r._mergeOption(n,e,!0):(i&&fB(n),s.S6(n.data,(function(t){t instanceof Array?(fB(t[0]),fB(t[1])):fB(t)})),r=this.createMarkerModelFromSeries(n,this,e),s.l7(r,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),r.__hostSeries=t),gB(t)[o]=r):gB(t)[o]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),r=i.getName(t);return gs("section",{header:this.name,blocks:[gs("nameValue",{name:r,value:o,noName:!r,noValue:null==o})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return gB(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(mo);s.jB(yB,ba.prototype);var vB=yB,mB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(vB),xB=mB;function _B(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function SB(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function bB(t,e,n,i,o,r){var a=[],s=Jp(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,u=kB(e,l,t),c=e.indicesOfNearest(l,u)[0];a[o]=e.get(n,c),a[r]=e.get(l,c);var h=e.get(i,c),d=m(e.get(i,c));return d=Math.min(d,20),d>=0&&(a[r]=+a[r].toFixed(d)),[a,h]}var wB={min:(0,s.WA)(bB,"min"),max:(0,s.WA)(bB,"max"),average:(0,s.WA)(bB,"average"),median:(0,s.WA)(bB,"median")};function MB(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,o=i&&i.dimensions;if(!SB(e)&&!(0,s.kJ)(e.coord)&&(0,s.kJ)(o)){var r=IB(e,n,i,t);if(e=(0,s.d9)(e),e.type&&wB[e.type]&&r.baseAxis&&r.valueAxis){var a=(0,s.cq)(o,r.baseAxis.dim),l=(0,s.cq)(o,r.valueAxis.dim),u=wB[e.type](n,r.baseDataDim,r.valueDataDim,a,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&(0,s.kJ)(o))for(var c=e.coord,h=0;h<2;h++)wB[c[h]]&&(c[h]=kB(n,n.mapDimension(o[h]),c[h]));else e.coord=[];return e}}function IB(t,e,n,i){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=n.getAxis(TB(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function TB(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function DB(t,e){return!(t&&t.containData&&e.coord&&!_B(e))||t.containData(e.coord)}function CB(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!_B(e)&&!_B(n))||t.containZone(e.coord,n.coord)}function AB(t,e){return t?function(t,n,i,o){var r=o<2?t.coord&&t.coord[o]:t.value;return Aa(r,e[o])}:function(t,n,i,o){return Aa(t.value,e[o])}}function kB(t,e,n){if("average"===n){var i=0,o=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,o++)})),i/o}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var LB=ut(),PB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.init=function(){this.markerGroupMap=(0,s.kW)()},e.prototype.render=function(t,e,n){var i=this,o=this.markerGroupMap;o.each((function(t){LB(t).keep=!1})),e.eachSeries((function(t){var o=vB.getMarkerModelFromSeries(t,i.type);o&&i.renderSeries(t,o,e,n)})),o.each((function(t){!LB(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){LB(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;(0,s.S6)(t,(function(t){var i=vB.getMarkerModelFromSeries(t,n.type);if(i){var o=i.getData();o.eachItemGraphicEl((function(t){t&&(e?ke(t):Le(t))}))}}))},e.type="marker",e}(Js),NB=PB;function RB(t,e,n){var i=e.coordinateSystem;t.each((function(o){var r,a=t.getItemModel(o),s=g(a.get("x"),n.getWidth()),l=g(a.get("y"),n.getHeight());
1if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)r=e.getMarkerPosition(t.getValues(t.dimensions,o));else if(i){var u=t.get(i.dimensions[0],o),c=t.get(i.dimensions[1],o);r=i.dataToPoint([u,c])}}else r=[s,l];isNaN(s)||(r[0]=s),isNaN(l)||(r[1]=l),t.setItemLayout(o,r)}))}var OB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=vB.getMarkerModelFromSeries(t,"markPoint");e&&(RB(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,r=t.id,a=t.getData(),l=this.markerGroupMap,u=l.get(r)||l.set(r,new ff),c=EB(o,t,e);e.setData(c),RB(e.getData(),t,i),c.each((function(t){var n=c.getItemModel(t),i=n.getShallow("symbol"),o=n.getShallow("symbolSize"),r=n.getShallow("symbolRotate"),l=n.getShallow("symbolOffset"),u=n.getShallow("symbolKeepAspect");if((0,s.mf)(i)||(0,s.mf)(o)||(0,s.mf)(r)||(0,s.mf)(l)){var h=e.getRawValue(t),d=e.getDataParams(t);(0,s.mf)(i)&&(i=i(h,d)),(0,s.mf)(o)&&(o=o(h,d)),(0,s.mf)(r)&&(r=r(h,d)),(0,s.mf)(l)&&(l=l(h,d))}var p=n.getModel("itemStyle").getItemStyle(),f=$u(a,"color");p.fill||(p.fill=f),c.setItemVisual(t,{symbol:i,symbolSize:o,symbolRotate:r,symbolOffset:l,symbolKeepAspect:u,style:p})})),u.updateData(c),this.group.add(u.group),c.eachItemGraphicEl((function(t){t.traverse((function(t){Gt(t).dataModel=e}))})),this.markKeep(u),u.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(NB);function EB(t,e,n){var i;i=t?(0,s.UI)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return(0,s.l7)((0,s.l7)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new Vp(i,n),r=(0,s.UI)(n.get("data"),(0,s.WA)(MB,e));t&&(r=(0,s.hX)(r,(0,s.WA)(DB,t)));var a=AB(!!t,i);return o.initData(r,null,a),o}var VB=OB;function zB(t){t.registerComponentModel(xB),t.registerComponentView(VB),t.registerPreprocessor((function(t){pB(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var BB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(vB),ZB=BB,GB=ut(),WB=function(t,e,n,i){var o,r=t.getData();if((0,s.kJ)(i))o=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var l=void 0,u=void 0;if(null!=i.yAxis||null!=i.xAxis)l=e.getAxis(null!=i.yAxis?"y":"x"),u=(0,s.Jv)(i.yAxis,i.xAxis);else{var c=IB(i,r,e,t);l=c.valueAxis;var h=jp(r,c.valueDataDim);u=kB(r,h,a)}var d="x"===l.dim?0:1,p=1-d,f=(0,s.d9)(i),g={coord:[]};f.type=null,f.coord=[],f.coord[p]=-1/0,g.coord[p]=1/0;var y=n.get("precision");y>=0&&(0,s.hj)(u)&&(u=+u.toFixed(Math.min(y,20))),f.coord[d]=g.coord[d]=u,o=[f,g,{type:a,valueIndex:i.valueIndex,value:u}]}else o=[]}var v=[MB(t,o[0]),MB(t,o[1]),(0,s.l7)({},o[2])];return v[2].type=v[2].type||null,(0,s.TS)(v[2],v[0]),(0,s.TS)(v[2],v[1]),v};function FB(t){return!isNaN(t)&&!isFinite(t)}function HB(t,e,n,i){var o=1-t,r=i.dimensions[t];return FB(e[o])&&FB(n[o])&&e[t]===n[t]&&i.getAxis(r).containData(e[t])}function UB(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(HB(1,n,i,t)||HB(0,n,i,t)))return!0}return DB(t,e[0])&&DB(t,e[1])}function XB(t,e,n,i,o){var r,a=i.coordinateSystem,s=t.getItemModel(e),l=g(s.get("x"),o.getWidth()),u=g(s.get("y"),o.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)r=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);r=a.dataToPoint([h,d])}if(Rf(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;FB(t.get(c[0],e))?r[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):FB(t.get(c[1],e))&&(r[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(r[0]=l),isNaN(u)||(r[1]=u)}else r=[l,u];t.setItemLayout(e,r)}var YB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=vB.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),o=GB(e).from,r=GB(e).to;o.each((function(e){XB(o,e,!0,t,n),XB(r,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[o.getItemLayout(t),r.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,r=t.id,a=t.getData(),l=this.markerGroupMap,u=l.get(r)||l.set(r,new rI);this.group.add(u.group);var c=JB(o,t,e),h=c.from,d=c.to,p=c.line;GB(e).from=h,GB(e).to=d,e.setData(p);var f=e.get("symbol"),g=e.get("symbolSize"),y=e.get("symbolRotate"),v=e.get("symbolOffset");function m(e,n,o){var r=e.getItemModel(n);XB(e,n,o,t,i);var l=r.getModel("itemStyle").getItemStyle();null==l.fill&&(l.fill=$u(a,"color")),e.setItemVisual(n,{symbolKeepAspect:r.get("symbolKeepAspect"),symbolOffset:(0,s.pD)(r.get("symbolOffset",!0),v[o?0:1]),symbolRotate:(0,s.pD)(r.get("symbolRotate",!0),y[o?0:1]),symbolSize:(0,s.pD)(r.get("symbolSize"),g[o?0:1]),symbol:(0,s.pD)(r.get("symbol",!0),f[o?0:1]),style:l})}(0,s.kJ)(f)||(f=[f,f]),(0,s.kJ)(g)||(g=[g,g]),(0,s.kJ)(y)||(y=[y,y]),(0,s.kJ)(v)||(v=[v,v]),c.from.each((function(t){m(h,t,!0),m(d,t,!1)})),p.each((function(t){var e=p.getItemModel(t).getModel("lineStyle").getLineStyle();p.setItemLayout(t,[h.getItemLayout(t),d.getItemLayout(t)]),null==e.stroke&&(e.stroke=h.getItemVisual(t,"style").fill),p.setItemVisual(t,{fromSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(t,"symbolOffset"),fromSymbolRotate:h.getItemVisual(t,"symbolRotate"),fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol
1:h.getItemVisual(t,"symbol"),toSymbolKeepAspect:d.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(t,"symbolOffset"),toSymbolRotate:d.getItemVisual(t,"symbolRotate"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol"),style:e})})),u.updateData(p),c.line.eachItemGraphicEl((function(t){Gt(t).dataModel=e,t.traverse((function(t){Gt(t).dataModel=e}))})),this.markKeep(u),u.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(NB);function JB(t,e,n){var i;i=t?(0,s.UI)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return(0,s.l7)((0,s.l7)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new Vp(i,n),r=new Vp(i,n),a=new Vp([],n),l=(0,s.UI)(n.get("data"),(0,s.WA)(WB,e,t,n));t&&(l=(0,s.hX)(l,(0,s.WA)(UB,t)));var u=AB(!!t,i);return o.initData((0,s.UI)(l,(function(t){return t[0]})),null,u),r.initData((0,s.UI)(l,(function(t){return t[1]})),null,u),a.initData((0,s.UI)(l,(function(t){return t[2]}))),a.hasItemOption=!0,{from:o,to:r,line:a}}var jB=YB;function KB(t){t.registerComponentModel(ZB),t.registerComponentView(jB),t.registerPreprocessor((function(t){pB(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var qB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(vB),$B=qB,QB=ut(),tZ=function(t,e,n,i){var o=i[0],r=i[1];if(o&&r){var a=MB(t,o),l=MB(t,r),u=a.coord,c=l.coord;u[0]=(0,s.Jv)(u[0],-1/0),u[1]=(0,s.Jv)(u[1],-1/0),c[0]=(0,s.Jv)(c[0],1/0),c[1]=(0,s.Jv)(c[1],1/0);var h=(0,s.Jn)([{},a,l]);return h.coord=[a.coord,l.coord],h.x0=a.x,h.y0=a.y,h.x1=l.x,h.y1=l.y,h}};function eZ(t){return!isNaN(t)&&!isFinite(t)}function nZ(t,e,n,i){var o=1-t;return eZ(e[o])&&eZ(n[o])}function iZ(t,e){var n=e.coord[0],i=e.coord[1],o={coord:n,x:e.x0,y:e.y0},r={coord:i,x:e.x1,y:e.y1};return Rf(t,"cartesian2d")?!(!n||!i||!nZ(1,n,i,t)&&!nZ(0,n,i,t))||CB(t,o,r):DB(t,o)||DB(t,r)}function oZ(t,e,n,i,o){var r,a=i.coordinateSystem,s=t.getItemModel(e),l=g(s.get(n[0]),o.getWidth()),u=g(s.get(n[1]),o.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=a.clampData(c),p=a.clampData(h),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?h[0]:c[0]:f[0]=d[0]>p[0]?c[0]:h[0],"y0"===n[1]?f[1]=d[1]>p[1]?h[1]:c[1]:f[1]=d[1]>p[1]?c[1]:h[1],r=i.getMarkerPosition(f,n,!0)}else{var y=t.get(n[0],e),v=t.get(n[1],e),m=[y,v];a.clampData&&a.clampData(m,m),r=a.dataToPoint(m,!0)}if(Rf(a,"cartesian2d")){var x=a.getAxis("x"),_=a.getAxis("y");y=t.get(n[0],e),v=t.get(n[1],e);eZ(y)?r[0]=x.toGlobalCoord(x.getExtent()["x0"===n[0]?0:1]):eZ(v)&&(r[1]=_.toGlobalCoord(_.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(r[0]=l),isNaN(u)||(r[1]=u)}else r=[l,u];return r}var rZ=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],aZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=vB.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var o=(0,s.UI)(rZ,(function(o){return oZ(i,e,o,t,n)}));i.setItemLayout(e,o);var r=i.getItemGraphicEl(e);r.setShape("points",o)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,r=t.id,a=t.getData(),l=this.markerGroupMap,u=l.get(r)||l.set(r,{group:new Xs.Z});this.group.add(u.group),this.markKeep(u);var c=sZ(o,t,e);e.setData(c),c.each((function(e){var n=(0,s.UI)(rZ,(function(n){return oZ(c,e,n,t,i)})),r=o.getAxis("x").scale,l=o.getAxis("y").scale,u=r.getExtent(),h=l.getExtent(),d=[r.parse(c.get("x0",e)),r.parse(c.get("x1",e))],p=[l.parse(c.get("y0",e)),l.parse(c.get("y1",e))];v(d),v(p);var f=!(u[0]>d[1]||u[1]<d[0]||h[0]>p[1]||h[1]<p[0]),g=!f;c.setItemLayout(e,{points:n,allClipped:g});var y=c.getItemModel(e).getModel("itemStyle").getItemStyle(),m=$u(a,"color");y.fill||(y.fill=m,(0,s.HD)(y.fill)&&(y.fill=Ft.m8(y.fill,.4))),y.stroke||(y.stroke=m),c.setItemVisual(e,"style",y)})),c.diff(QB(u).data).add((function(t){var e=c.getItemLayout(t);if(!e.allClipped){var n=new rl.Z({shape:{points:e.points}});c.setItemGraphicEl(t,n),u.group.add(n)}})).update((function(t,n){var i=QB(u).data.getItemGraphicEl(n),o=c.getItemLayout(t);o.allClipped?i&&u.group.remove(i):(i?un(i,{shape:{points:o.points}},e,t):i=new rl.Z({shape:{points:o.points}}),c.setItemGraphicEl(t,i),u.group.add(i))})).remove((function(t){var e=QB(u).data.getItemGraphicEl(t);u.group.remove(e)})).execute(),c.eachItemGraphicEl((function(t,n){var i=c.getItemModel(n),o=c.getItemVisual(n,"style");t.useStyle(c.getItemVisual(n,"style")),_n(t,Sn(i),{labelFetcher:e,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:(0,s.HD)(o.fill)?Ft.m8(o.fill,1):"#000"}
1),qe(t,i),Ye(t,null,null,i.get(["emphasis","disabled"])),Gt(t).dataModel=e})),QB(u).data=c,u.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(NB);function sZ(t,e,n){var i,o,r=["x0","y0","x1","y1"];if(t){var a=(0,s.UI)(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return(0,s.l7)((0,s.l7)({},i),{name:t,ordinalMeta:null})}));o=(0,s.UI)(r,(function(t,e){return{name:t,type:a[e%2].type}})),i=new Vp(o,n)}else o=[{name:"value",type:"float"}],i=new Vp(o,n);var l=(0,s.UI)(n.get("data"),(0,s.WA)(tZ,e,t,n));t&&(l=(0,s.hX)(l,(0,s.WA)(iZ,t)));var u=t?function(t,e,n,i){var r=t.coord[Math.floor(i/2)][i%2];return Aa(r,o[i])}:function(t,e,n,i){return Aa(t.value,o[i])};return i.initData(l,null,u),i.hasItemOption=!0,i}var lZ=aZ;function uZ(t){t.registerComponentModel($B),t.registerComponentView(lZ),t.registerPreprocessor((function(t){pB(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}var cZ=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},hZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),s.kJ(e)&&s.S6(e,(function(t,i){s.HD(t)&&(t={type:t}),e[i]=s.TS(t,cZ(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var o,r=i.name;if(n.push(r),i.legendVisualProvider){var a=i.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):o=!0}else o=!0;o&&nt(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,o=s.kW(),r=s.UI(i,(function(t){return(s.HD(t)||s.hj(t))&&(t={name:t}),o.get(t.name)?null:(o.set(t.name,!0),new Xn(t,this,this.ecModel))}),this);this._data=s.hX(r,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;s.S6(i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;s.S6(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;s.S6(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&s.cq(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={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",miter
1Limit:"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}},e}(mo),dZ=hZ,pZ=s.WA,fZ=s.S6,gZ=Xs.Z,yZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return(0,r.ZT)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new gZ),this.group.add(this._selectorGroup=new gZ),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),r=t.get("orient");o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===r?"right":"left");var a=t.get("selector",!0),l=t.get("selectorPosition",!0);!a||l&&"auto"!==l||(l="horizontal"===r?"end":"start"),this.renderInner(o,t,e,n,a,r,l);var u=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),d=so(u,c,h),p=this.layoutInner(t,o,d,i,a,l),f=so(s.ce({width:p.width,height:p.height},u),c,h);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=SE(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,o,r,a){var l=this.getContentGroup(),u=s.kW(),c=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),fZ(e.getData(),(function(o,r){var a=o.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new gZ;return d.newline=!0,void l.add(d)}var p=n.getSeriesByName(a)[0];if(!u.get(a)){if(p){var f=p.getData(),g=f.getVisual("legendLineStyle")||{},y=f.getVisual("legendIcon"),v=f.getVisual("style"),m=this._createItem(p,a,r,o,e,t,g,v,y,c,i);m.on("click",pZ(xZ,a,null,i,h)).on("mouseover",pZ(SZ,p.name,null,i,h)).on("mouseout",pZ(bZ,p.name,null,i,h)),u.set(a,!0)}else n.eachRawSeries((function(n){if(!u.get(a)&&n.legendVisualProvider){var l=n.legendVisualProvider;if(!l.containName(a))return;var d=l.indexOfName(a),p=l.getItemVisual(d,"style"),f=l.getItemVisual(d,"legendIcon"),g=(0,Ft.Qc)(p.fill);g&&0===g[3]&&(g[3]=.2,p=s.l7(s.l7({},p),{fill:(0,Ft.Pz)(g,"rgba")}));var y=this._createItem(n,a,r,o,e,t,{},p,f,c,i);y.on("click",pZ(xZ,null,a,i,h)).on("mouseover",pZ(SZ,null,a,i,h)).on("mouseout",pZ(bZ,null,a,i,h)),u.set(a,!0)}}),this);0}}),this),o&&this._createSelector(o,e,i,r,a)},e.prototype._createSelector=function(t,e,n,i,o){var r=this.getSelectorGroup();fZ(t,(function(t){var i=t.type,o=new Bt.ZP({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});r.add(o);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);_n(o,{normal:a,emphasis:s},{defaultText:t.title}),Ue(o)}))},e.prototype._createItem=function(t,e,n,i,o,r,a,l,u,c,h){var d=t.visualDrawType,p=o.get("itemWidth"),f=o.get("itemHeight"),g=o.isSelected(e),y=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),m=i.get("icon");u=m||u||"roundRect";var x=vZ(u,i,a,l,d,g,h),_=new gZ,S=i.getModel("textStyle");if(!s.mf(t.getLegendIcon)||m&&"inherit"!==m){var b="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===y?t.getData().getVisual("symbolRotate"):y:0;_.add(mZ({itemWidth:p,itemHeight:f,icon:u,iconRotate:b,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:v}))}else _.add(t.getLegendIcon({itemWidth:p,itemHeight:f,icon:u,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:v}));var w="left"===r?p+5:-5,M=r,I=o.get("formatter"),T=e;s.HD(I)&&I?T=I.replace("{name}",null!=e?e:""):s.mf(I)&&(T=I(e));var D=g?S.getTextColor():i.get("inactiveColor");_.add(new Bt.ZP({style:bn(S,{text:T,x:w,y:f/2,fill:D,align:M,verticalAlign:"middle"},{inheritColor:D})}));
1var C=new sl.Z({shape:_.getBoundingRect(),invisible:!0}),A=i.getModel("tooltip");return A.get("show")&&Yl({el:C,componentModel:o,itemName:e,itemTooltipOption:A.option}),_.add(C),_.eachChild((function(t){t.silent=!0})),C.silent=!c,this.getContentGroup().add(_),Ue(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getContentGroup(),s=this.getSelectorGroup();ro(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),o){ro("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",y=0===p?"y":"x";"end"===r?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+d+c[f],v[g]=Math.max(l[g],c[g]),v[y]=Math.min(0,c[y]+h[1-p]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Js);function vZ(t,e,n,i,o,r,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),fZ(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?wc(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[o]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===o?i:n).opacity),s(u,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!r){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function mZ(t){var e=t.icon||"roundRect",n=gc(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function xZ(t,e,n,i){bZ(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),SZ(t,e,n,i)}function _Z(t){var e,n=t.getZr().storage.getDisplayList(),i=0,o=n.length;while(i<o&&!(e=n[i].states.emphasis))i++;return e&&e.hoverLayer}function SZ(t,e,n,i){_Z(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function bZ(t,e,n,i){_Z(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var wZ=yZ;function MZ(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function IZ(t,e,n){var i,o={},r="toggleSelected"===t;return n.eachComponent("legend",(function(n){r&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var a=n.getData();(0,s.S6)(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);o.hasOwnProperty(e)?o[e]=o[e]&&i:o[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function TZ(t){t.registerAction("legendToggleSelect","legendselectchanged",(0,s.WA)(IZ,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",(0,s.WA)(IZ,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",(0,s.WA)(IZ,"inverseSelect")),t.registerAction("legendSelect","legendselected",(0,s.WA)(IZ,"select")),t.registerAction("legendUnSelect","legendunselected",(0,s.WA)(IZ,"unSelect"))}function DZ(t){t.registerComponentModel(dZ),t.registerComponentView(wZ),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,MZ),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),TZ(t)}var CZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var o=po(e);t.prototype.init.call(this,e,n,i),AZ(this,e,o)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),AZ(this,this.option,e)},e.type="legend.scroll",e.defaultOption=qn(dZ.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(dZ);function AZ(t,e,n){var i=t.getOrient(),o=[1,1];o[i.index]=0,ho(e,n,{type:"box",ignoreSize:!!o})}var kZ=CZ,LZ=Xs.Z,PZ=["width","height"],NZ=["x","y"],RZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return(0,r.ZT)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new LZ),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new LZ)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,o,r,a,l){var u=this;t.prototype.renderInner.call(this,e,n,i,o,r,a,l);var c=this._controllerGroup,h=n.get("pageIconSize",!0),d=s.kJ(h)?h:[h,h];f("pagePrev",0);var p=n.getModel("pageTextStyle");function f(t,e){var i=t+"DataIndex",r=Wl(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:s.ak(u._pageGo,u,i,n,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});r.name=t,c.add(r)}c.add(new Bt.ZP({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getSelectorGroup(),l=t.getOrient().index,u=PZ[l],c=NZ[l],h=PZ[1-l],d=NZ[1-l];o&&ro("horizontal",a,t.get("selectorItemGap",!0));
1var p=t.get("selectorButtonGap",!0),f=a.getBoundingRect(),g=[-f.x,-f.y],y=s.d9(n);o&&(y[u]=n[u]-f[u]-p);var v=this._layoutContentAndController(t,i,y,l,u,h,d,c);if(o){if("end"===r)g[l]+=v[u]+p;else{var m=f[u]+p;g[l]-=m,v[c]-=m}v[u]+=f[u]+p,g[1-l]+=v[d]+v[h]/2-f[h]/2,v[h]=Math.max(v[h],f[h]),v[d]=Math.min(v[d],f[d]+g[1-l]),a.x=g[0],a.y=g[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,i,o,r,a,l){var u=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;ro(t.get("orient"),u,t.get("itemGap"),i?n.width:null,i?null:n.height),ro("horizontal",h,t.get("pageButtonItemGap",!0));var d=u.getBoundingRect(),p=h.getBoundingRect(),f=this._showController=d[o]>n[o],g=[-d.x,-d.y];e||(g[i]=u[l]);var y=[0,0],v=[-p.x,-p.y],m=s.pD(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(f){var x=t.get("pageButtonPosition",!0);"end"===x?v[i]+=n[o]-p[o]:y[i]+=p[o]+m}v[1-i]+=d[r]/2-p[r]/2,u.setPosition(g),c.setPosition(y),h.setPosition(v);var _={x:0,y:0};if(_[o]=f?n[o]:d[o],_[r]=Math.max(d[r],p[r]),_[a]=Math.min(0,p[a]+v[1-i]),c.__rectSize=n[o],f){var S={x:0,y:0};S[o]=Math.max(n[o]-p[o]-m,0),S[r]=_[r],c.setClipPath(new sl.Z({shape:S})),c.__rectSize=S[o]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(t);return null!=b.pageIndex&&un(u,{x:b.contentPosition[0],y:b.contentPosition[1]},f?t:null),this._updatePageInfoView(t,b),_},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;s.S6(["pagePrev","pageNext"],(function(i){var o=i+"DataIndex",r=null!=e[o],a=n.childOfName(i);a&&(a.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),o=t.get("pageFormatter"),r=e.pageIndex,a=null!=r?r+1:0,l=e.pageCount;i&&o&&i.setStyle("text",s.HD(o)?o.replace("{current}",null==a?"":a+"").replace("{total}",null==l?"":l+""):o({current:a,total:l}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,r=PZ[o],a=NZ[o],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=m(u);d.contentPosition[o]=-p.s;for(var f=s+1,g=p,y=p,v=null;f<=c;++f)v=m(l[f]),(!v&&y.e>g.s+i||v&&!x(v,g.s))&&(g=y.i>g.i?y:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=v;for(f=s-1,g=p,y=p,v=null;f>=-1;--f)v=m(l[f]),v&&x(y,v.s)||!(g.i<y.i)||(y=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[r],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,o){var r=i.__legendDataIndex;null==n&&null!=r&&(n=o),r===t&&(e=o)})),null!=e?e:n},e.type="legend.scroll",e}(wZ),OZ=RZ;function EZ(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function VZ(t){ud(DZ),t.registerComponentModel(kZ),t.registerComponentView(OZ),EZ(t)}function zZ(t){ud(DZ),ud(VZ)}var BZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="dataZoom.inside",e.defaultOption=qn(KO.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(KO),ZZ=BZ,GZ=ut();function WZ(t,e,n){GZ(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function FZ(t,e){for(var n=GZ(t).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var r=i[o],a=n.get(r),s=a.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||HZ(n,a))}}}function HZ(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function UZ(t,e){var n={model:e,containsPoint:(0,s.WA)(YZ,e),dispatchAction:(0,s.WA)(XZ,t),dataZoomInfoMap:null,controller:null},i=n.controller=new i_(t.getZr());return(0,s.S6)(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];
1n.dataZoomInfoMap.each((function(o){if(e.isAvailableBehavior(o.model.option)){var r=(o.getRange||{})[t],a=r&&r(o.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!o.model.get("disabled",!0)&&a&&i.push({dataZoomId:o.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function XZ(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function YZ(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function JZ(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return t.each((function(t){var r=t.model,a=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),o=o&&r.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function jZ(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=GZ(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=(0,s.kW)());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=XO(t);(0,s.S6)(n.infoList,(function(n){var o=n.model.uid,r=i.get(o)||i.set(o,UZ(e,n.model)),a=r.dataZoomInfoMap||(r.dataZoomInfoMap=(0,s.kW)());a.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,o=t.dataZoomInfoMap;if(o){var r=o.keys()[0];null!=r&&(e=o.get(r))}if(e){var a=JZ(o);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),uu(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else HZ(i,t)}))}))}var KZ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return(0,r.ZT)(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),WZ(i,e,{pan:(0,s.ak)(qZ.pan,this),zoom:(0,s.ak)(qZ.zoom,this),scrollMove:(0,s.ak)(qZ.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){FZ(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(tE),qZ={zoom:function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a){var s=QZ[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(r[1]-r[0])+r[0],u=Math.max(1/i.scale,0);r[0]=(r[0]-l)*u+l,r[1]=(r[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
1return wT(0,r,[0,100],0,c.minSpan,c.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}},pan:$Z((function(t,e,n,i,o,r){var a=QZ[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:$Z((function(t,e,n,i,o,r){var a=QZ[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,n);return a.signal*(t[1]-t[0])*r.scrollDelta}))};function $Z(t){return function(e,n,i,o){var r=this.range,a=r.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,o);return wT(l,a,[0,100],"all"),this.range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}}}var QZ={grid:function(t,e,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(t,e,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=r.inverse?-1:1),a},singleAxis:function(t,e,n,i,o){var r=n.axis,a=o.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===r.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}},tG=KZ;function eG(t){dE(t),t.registerComponentModel(ZZ),t.registerComponentView(tG),jZ(t)}var nG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=qn(KO.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(KO),iG=nG,oG=sl.Z,rG=7,aG=1,sG=30,lG=7,uG="horizontal",cG="vertical",hG=5,dG=["line","bar","candlestick","scatter"],pG={easing:"cubicOut",duration:100,delay:0},fG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=(0,s.ak)(this._onBrush,this),this._onBrushEnd=(0,s.ak)(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,o){if(t.prototype.render.apply(this,arguments),uu(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();o&&"dataZoom"===o.type&&o.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){cu(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Xs.Z;
1this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=n?lG:0,o=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},a=this._orient===uG?{right:r.width-o.x-o.width,top:r.height-sG-rG-i,width:o.width,height:sG}:{right:rG,top:o.y,width:sG,height:o.height},l=po(t.option);(0,s.S6)(["right","top","width","height"],(function(t){"ph"===l[t]&&(l[t]=a[t])}));var u=so(l,r);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===cG&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),r=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(n!==uG||o?n===uG&&o?{scaleY:a?1:-1,scaleX:-1}:n!==cG||o?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([r]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new oG({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new oG({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:(0,s.ak)(this._onClickPanel,this)}),r=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",r.on("mousemove",this._onBrush),r.on("mouseup",this._onBrushEnd)):(r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),r=i.getShadowDim&&i.getShadowDim(),a=r&&o.getDimensionInfo(r)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(o!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=o.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,d=[0,e[1]],p=[0,e[0]],g=[[e[0],0],[0,0]],y=[],v=p[1]/(o.count()-1),m=0,x=Math.round(o.count()/e[0]);o.each([a],(function(t,e){if(x>0&&e%x)m+=v;else{var n=null==t||isNaN(t)||""===t,i=n?0:f(t,u,d,!0);n&&!h&&e?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!n&&h&&(g.push([m,0]),y.push([m,0])),g.push([m,i]),y.push([m,i]),m+=v,h=n}})),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var _=this.dataZoomModel,S=0;S<3;S++){var b=w(1===S);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function w(t){var e=_.getModel(t?"selectedDataBackground":"dataBackground"),n=new Xs.Z,i=new rl.Z({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),o=new al.Z({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(o),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(o,r){var a=t.getAxisProxy(o,r).getTargetSeriesModels();(0,s.S6)(a,(function(t){if(!n&&!(!0!==e&&(0,s.cq)(dG,t.get("type"))<0)){var a,l=i.getComponent(HO(o),r).axis,u=gG(o),c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(a=c.getOtherAxis(l).inverse),u=t.getData().mapDimension(u),n={thisAxis:l,series:t,thisDim:o,otherDim:u,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],o=this._displayables.sliderGroup,r=this._size,a=this.dataZoomModel,l=this.api,u=a.get("borderRadius")||0,c=a.get("brushSelect"),h=e.filler=new oG({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new oG({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1],r:u}
1,style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:aG,fill:"rgba(0,0,0,0)"}})),(0,s.S6)([0,1],(function(e){var r=a.get("handleIcon");!dc[r]&&r.indexOf("path://")<0&&r.indexOf("image://")<0&&(r="path://"+r);var l=gc(r,-1,0,2,2,null,!0);l.attr({cursor:yG(this._orient),draggable:!0,drift:(0,s.ak)(this._onDragMove,this,e),ondragend:(0,s.ak)(this._onDragEnd,this),onmouseover:(0,s.ak)(this._showDataInfo,this,!0),onmouseout:(0,s.ak)(this._showDataInfo,this,!1),z2:5});var u=l.getBoundingRect(),c=a.get("handleSize");this._handleHeight=g(c,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,l.setStyle(a.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Ue(l);var h=a.get("handleColor");null!=h&&(l.style.fill=h),o.add(n[e]=l);var d=a.getModel("textStyle");t.add(i[e]=new Bt.ZP({silent:!0,invisible:!0,style:bn(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=h;if(c){var p=g(a.get("moveHandleSize"),r[1]),f=e.moveHandle=new sl.Z({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:r[1]-.5,height:p}}),y=.8*p,v=e.moveHandleIcon=gc(a.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);v.silent=!0,v.y=r[1]+p/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(r[1]/2,Math.max(p,10));d=e.moveZone=new sl.Z({invisible:!0,shape:{y:r[1]-m,height:p+m}}),d.on("mouseover",(function(){l.enterEmphasis(f)})).on("mouseout",(function(){l.leaveEmphasis(f)})),o.add(f),o.add(v),o.add(d)}d.attr({draggable:!0,cursor:yG(this._orient),drift:(0,s.ak)(this._onDragMove,this,"all"),ondragstart:(0,s.ak)(this._showDataInfo,this,!0),ondragend:(0,s.ak)(this._onDragEnd,this),onmouseover:(0,s.ak)(this._showDataInfo,this,!0),onmouseout:(0,s.ak)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[f(t[0],[0,100],e,!0),f(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];wT(e,i,o,n.get("zoomLock")?"all":t,null!=r.minSpan?f(r.minSpan,a,o,!0):null,null!=r.maxSpan?f(r.maxSpan,a,o,!0):null);var s=this._range,l=this._range=v([f(i[0],o,a,!0),f(i[1],o,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=v(n.slice()),o=this._size;(0,s.S6)([0,1],(function(t){var i=e.handles[t],r=this._handleHeight;i.attr({scaleX:r/2,scaleY:r/2,x:n[t]+(t?-1:1),y:o[1]/2-r/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var r={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(r),e.moveZone.setShape(r),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",r.x+r.width/2));for(var a=e.dataShadowSegs,l=[0,i[0],i[1],o[0]],u=0;u<a.length;u++){var c=a[u],h=c.getClipPath();h||(h=new sl.Z,c.setClipPath(h)),h.setShape({x:l[u],y:0,width:l[u+1]-l[u],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,r=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();r=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=v(this._handleEnds.slice());function h(t){var e=Rl(n.handles[t].parent,this.group),a=El(0===t?"right":"left",e),s=this._handleWidth/2+hG,l=Ol([c[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:o===uG?"middle":a,align:o===uG?a:"center",text:r[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=e.getPixelPrecision());var r=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return(0,s.mf)(i)?i(t,r):(0,s.HD)(i)?i.replace("{value}",r):r},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Yx.sT(i.event);
1var o=this._displayables.sliderGroup.getLocalTransform(),r=Ol([e,n],o,!0),a=this._updateInterval(t,r[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,r=this._updateInterval("all",n[0]-o);this._updateView(),r&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new gl.Z(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),r=[0,100];this._range=v([f(n.x,o,r,!0),f(n.x+n.width,o,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Yx.sT(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new oG({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var r=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(r.x,r.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),o.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?pG:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=XO(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:.2*i,y:.2*o,width:.6*i,height:.6*o}}return t},e.type="dataZoom.slider",e}(tE);function gG(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function yG(t){return"vertical"===t?"ns-resize":"ew-resize"}var vG=fG;function mG(t){t.registerComponentModel(iG),t.registerComponentView(vG),dE(t)}function xG(t){ud(eG),ud(mG)}var _G={get:function(t,e,n){var i=s.d9((SG[t]||{})[e]);return n&&s.kJ(i)?i[i.length-1]:i}},SG={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]}
1,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]}},bG=_G,wG=kw.mapVisual,MG=kw.eachVisual,IG=s.kJ,TG=s.S6,DG=v,CG=f,AG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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(0,r.ZT)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&pz(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=s.ak(t,this),this.controllerVisuals=dz(this.option.controller,e,t),this.targetVisuals=dz(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=G(t),e},e.prototype.eachTargetSeries=function(t,e){s.S6(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound,l=o.formatter;n=n||["<",">"],s.kJ(t)&&(t=t.slice(),i=!0);var u=e?t:i?[c(t[0]),c(t[1])]:c(t);return s.HD(l)?l.replace("{value}",i?u[0]:u).replace("{value2}",i?u[1]:u):s.mf(l)?i?l(t[0],t[1]):l(t):i?t[0]===a[0]?n[0]+" "+u[1]:t[1]===a[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(r,20))}},e.prototype.resetExtent=function(){var t=this.option,e=DG([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],r=t.getDimensionInfo(o);if(!r.isCalculationCoord)return r.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),o=e.controller||(e.controller={});s.TS(i,n),s.TS(o,n);var r=this.isCategory();function a(n){IG(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function l(t,e,n){var i=t[e],o=t[n];i&&!o&&(o=t[n]={},TG(i,(function(t,e){if(kw.isValidType(e)){var n=bG.get(e,"inactive",r);null!=n&&(o[e]=n,"color"!==e||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}})))}function u(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),o=this.getItemSymbol(),a=o||"roundRect";TG(this.stateList,(function(o){var l=this.itemSize,u=t[o];u||(u=t[o]={color:r?i:[i]}),null==u.symbol&&(u.symbol=e&&s.d9(e)||(r?a:[a])),null==u.symbolSize&&(u.symbolSize=n&&s.d9(n)||(r?l[0]:[l[0],l[0]])),u.symbol=wG(u.symbol,(function(t){return"none"===t?a:t}));var c=u.symbolSize;if(null!=c){var h=-1/0;MG(c,(function(t){t>h&&(h=t)})),u.symbolSize=wG(c,(function(t){return CG(t,[0,h],[0,l[0]],!0)}))}}),this)}a.call(this,i),a.call(this,o),l.call(this,i,"inRange","outOfRange"),u.call(this,o)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.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"}},e}(mo),kG=AG,LG=[20,140],PG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=LG[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=LG[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):s.kJ(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),s.S6(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}
vendor: 4,583 bytes, line 1
1),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=v((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=NG(this,"outOfRange",this.getExtent()),n=NG(this,"inRange",this.option.range.slice()),i=[];function o(e,n){i.push({value:e,color:t(e,n)})}for(var r=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[r]&&o(e[a],"outOfRange");for(var u=1;r<s;r++,u=0)u&&i.length&&o(n[r],"outOfRange"),o(n[r],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(i.length&&o(i[i.length-1].value,"outOfRange"),u=0),o(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=qn(kG.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)"}}),e}(kG);function NG(t,e,n){if(n[0]===n[1])return n.slice();for(var i=200,o=(n[1]-n[0])/i,r=n[0],a=[],s=0;s<=i&&r<n[1];s++)a.push(r),r+=o;return a.push(n[1]),a}var RG=PG,OG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return(0,r.ZT)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Xi(e.get("padding")||0),i=t.getBoundingRect();t.add(new sl.Z({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){n=n||{};var i=n.forceState,o=this.visualMapModel,r={};if("color"===e){var a=o.get("contentColor");r.color=a}function l(t){return r[t]}function u(t,e){r[t]=e}var c=o.controllerVisuals[i||o.getValueState(t)],h=kw.prepareVisualTypes(c);return s.S6(h,(function(i){var o=c[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",o=c.__alphaForOpacity),kw.dependsOn(i,e)&&o&&o.applyVisual(t,l,u)})),r[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;lo(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(Js),EG=OG,VG=[["left","right","width"],["top","bottom","height"]];function zG(t,e,n){var i=t.option,o=i.align;if(null!=o&&"auto"!==o)return o;for(var r={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=VG[a],l=[0,null,10],u={},c=0;c<3;c++)u[VG[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],d=so(u,r,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*r[h[1]]?0:1]}function BG(t,e){return s.S6(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var ZG=f,GG=s.S6,WG=Math.min,FG=Math.max,HG=12,UG=6,XG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return(0,r.ZT)(e,t),e.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackgroun
1d(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var o=this.visualMapModel,r=o.get("textGap"),a=o.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-r:a[1]+r],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Bt.ZP({style:bn(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,r=this._useHandle,a=zG(e,this.api,i),l=n.mainGroup=this._createBarGroup(a),u=new Xs.Z;l.add(u),u.add(n.outOfRange=YG()),u.add(n.inRange=YG(null,r?KG(this._orient):null,s.ak(this._dragHandle,this,"all",!1),s.ak(this._dragHandle,this,"all",!0))),u.setClipPath(new sl.Z({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=e.textStyleModel.getTextRect("国"),h=FG(c.width,c.height);r&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,l,0,i,h,o),this._createHandle(e,l,1,i,h,o)),this._createIndicator(e,l,i,h,o),t.add(l)},e.prototype._createHandle=function(t,e,n,i,o,r){var a=s.ak(this._dragHandle,this,n,!1),l=s.ak(this._dragHandle,this,n,!0),u=(0,rc.GM)(t.get("handleSize"),i[0]),c=gc(t.get("handleIcon"),-u/2,-u/2,u,u,null,!0),h=KG(this._orient);c.attr({cursor:h,draggable:!0,drift:a,ondragend:l,onmousemove:function(t){Yx.sT(t.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),$e(c,!0),e.add(c);var d=this.visualMapModel.textStyleModel,p=new Bt.ZP({cursor:h,draggable:!0,drift:a,onmousemove:function(t){Yx.sT(t.event)},ondragend:l,style:bn(d,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var f=[u,0],g=this._shapes;g.handleThumbs[n]=c,g.handleLabelPoints[n]=f,g.handleLabels[n]=p},e.prototype._createIndicator=function(t,e,n,i,o){var r=(0,rc.GM)(t.get("indicatorSize"),n[0]),a=gc(t.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var l=t.getModel("indicatorStyle").getItemStyle();if(a instanceof tl.ZP){var u=a.style;a.useStyle(s.l7({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else a.useStyle(l);e.add(a);var c=this.visualMapModel.textStyleModel,h=new Bt.ZP({silent:!0,invisible:!0,style:bn(c,{x:0,y:0,text:""})});this.group.add(h);var d=[("horizontal"===o?i/2:UG)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=h,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():jG(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[ZG(e[0],n,i,!0),ZG(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];wT(e,i,o,t,0);var r=n.getExtent();this._dataInterval=[ZG(i[0],o,r,!0),ZG(i[1],o,r,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,o=[0,e.itemSize[1]],r=t?o:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,r,"inRange"),s=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(r,a)},e.prototype._createBarVisual=function(t,e,n,i){var o={forceState:i,convertOpacityToAlpha:!0},r=this._makeColorGradient(t,o),a=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],s=this._createBarPoints(n,a);return{barColor:new dl.Z(0,0,0,1,r),barPoints:s,handlesColor:[r[0].color,r[r.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<n;r++){var a=t[0]+o*r;if(a>t[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:r/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Xs.Z("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,r=n.handleLabels,a=i.itemSize,s=i.getExtent();GG([0,1],(function(l){var u=o[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=ZG(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=Ol(n.handleLabelPoints[l],Rl(u,this.group));r[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=ZG(t,r,s,!0),f=a[0]-d/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var y=Ol(l.indicatorLabelPoint,Rl(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),x=this._orient,_="horizontal"===x;v.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:_?m:"middle",align:_?"center":m});var S={x:f,y:p,style:{fill:h}},b={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(S,w),v.animateTo(b,w)}else u.attr(S),v.attr(b);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var I=0;I<M.length;I++)this._api.enterBlur(M[I])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,
vendor: 4,591 bytes, line 1
1!0);i[1]=WG(FG(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],r=n.getExtent();t=WG(FG(o[0],t),o[1]);var a=JG(n,r,o),s=[t-a,t+a],l=ZG(t,o,r,!0),u=[ZG(s[0],o,r,!0),ZG(s[1],o,r,!0)];s[0]<o[0]&&(u[0]=-1/0),s[1]>o[1]&&(u[1]=1/0),e&&(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,h=[];(e||jG(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=st(c,h);this._dispatchHighDown("downplay",BG(d[0],n)),this._dispatchHighDown("highlight",BG(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(ic(t.target,(function(t){var n=Gt(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(e.dataType),r=o.getStore().get(i.getDataDimensionIndex(o),e.dataIndex);isNaN(r)||this._showIndicator(r,r)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",BG(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var o=Rl(e,i?null:this.group);return s.kJ(t)?Ol(t,o,n):El(t,o,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(EG);function YG(t,e,n,i){return new rl.Z({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Yx.sT(t.event)},ondragend:i})}function JG(t,e,n){var i=HG/2,o=t.get("hoverLinkDataSize");return o&&(i=ZG(o,e,n,!0)/2),i}function jG(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function KG(t){return"vertical"===t?"ns-resize":"ew-resize"}var qG=XG,$G={type:"selectDataRange",event:"dataRangeSelected",update:"update"},QG=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},tW=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i=t.pipelineContext;!e.isTargetSeries(t)||i&&i.large||n.push(gz(e.stateList,e.targetVisuals,s.ak(e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var o=e.getVisualMeta(s.ak(eW,null,t,e))||{stops:[],outerColors:[]},r=e.getDataDimensionIndex(n);r>=0&&(o.dimension=r,i.push(o))}})),t.getData().setVisual("visualMeta",i)}}];function eW(t,e,n,i){for(var o=e.targetVisuals[i],r=kw.prepareVisualTypes(o),a={color:$u(t.getData(),"color")},s=0,l=r.length;s<l;s++){var u=r[s],c=o["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return a.color;function h(t){return a[t]}function d(t,e){a[t]=e}}var nW=s.S6;function iW(t){var e=t&&t.visualMap;s.kJ(e)||(e=e?[e]:[]),nW(e,(function(t){if(t){oW(t,"splitList")&&!oW(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&s.kJ(e)&&nW(e,(function(t){s.Kn(t)&&(oW(t,"start")&&!oW(t,"min")&&(t.min=t.start),oW(t,"end")&&!oW(t,"max")&&(t.max=t.end))}))}}))}function oW(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var rW=!1;function aW(t){rW||(rW=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction($G,QG),(0,s.S6)(tW,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(iW))}
1function sW(t){t.registerComponentModel(RG),t.registerComponentView(qG),aW(t)}var lW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return(0,r.ZT)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],uW[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var o=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=s.d9(o)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=s.UI(this._pieceList,(function(t){return t=s.d9(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=kw.listVisualTypes(),o=this.isCategory();function r(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}s.S6(e.pieces,(function(t){s.S6(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),s.S6(n,(function(t,n){var i=!1;s.S6(this.stateList,(function(t){i=i||r(e,t,n)||r(e.target,t,n)}),this),!i&&s.S6(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=bG.get(n,"inRange"===t?"active":"inactive",o)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,o=(e?n:t).selected||{};if(n.selected=o,s.S6(i,(function(t,e){var n=this.getSelectedMapKey(t);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===n.selectedMode){var r=!1;s.S6(i,(function(t,e){var n=this.getSelectedMapKey(t);o[n]&&(r?o[n]=!1:r=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=s.d9(t)},e.prototype.getValueState=function(t){var e=kw.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var o=[],r=i.getData();r.each(this.getDataDimensionIndex(r),(function(e,i){var r=kw.findPieceIndex(e,n);r===t&&o.push(i)}),this),e.push({seriesId:i.id,dataIndex:o})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,o=this._pieceList.slice();if(o.length){var r=o[0].interval[0];r!==-1/0&&o.unshift({interval:[-1/0,r]}),r=o[o.length-1].interval[1],r!==1/0&&o.push({interval:[r,1/0]})}else o.push({interval:[-1/0,1/0]});var a=-1/0;return s.S6(o,(function(t){var e=t.interval;e&&(e[0]>a&&l([a,e[0]],"outOfRange"),l(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function l(o,r){var a=i.getRepresentValue({interval:o});r||(r=i.getValueState(a));var s=t(a,r);o[0]===-1/0?n[0]=s:o[1]===1/0?n[1]=s:e.push({value:o[0],color:s},{value:o[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=qn(kG.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}),e}(kG),uW={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;var r=(i[1]-i[0])/o;while(+r.toFixed(n)!==r&&n<5)n++;e.precision=n,r=+r.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,l=i[0];a<o;l+=r,a++){var u=a===o-1?i[1]:l+r;t.push({interval:[l,u],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),P(t),s.S6(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;s.S6(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),cW(e,t)},pieces:function(t){var e=this.option;s.S6(e.pieces,(function(e,n){s.Kn(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var o=i.value=e.value;i.interval=[o,o],i.close=[1,1]}else{for(var r=i.interval=[],a=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var d=[["gte","gt","min"],["lte","lt","max"]][h],p=0;p<3&&null==r[h];p++)r[h]=e[d[p]],a[h]=l[p],c[h]=2===p;null==r[h]&&(r[h]=u[h])}c[0]&&r[1]===1/0&&(a[0]=0),c[1]&&r[0]===-1/0&&(a[1]=0),r[0]===r[1]&&a[0]&&a[1]&&(i.value=r[0])}i.visual=kw.retrieveVisuals(e),t.push(i)}),this),cW(e,t),P(t),s.S6(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function cW(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var hW=lW,dW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.ZT)(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,o=i.getFont(),r=i.getTextColor(),a=this._getItemAlign(),l=e.itemSize,u=this._getViewData(),c=u.endsText,h=s.Jv(e.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],l,h,a),s.S6(u.viewPieceList,(function(i){var u=i.piece,c=new Xs.Z;c.onclick=s.ak(this._onItemClick,this,u),this._enableHoverLink(c,i.indexInModelPieceList);var d=e.getRepresentValue(u);if(this._createItemSymbol(c,d,[0,0,l[0],l[1]]),h){var p=this.visualMapModel.getValueState(d);c.add(new Bt.ZP({style:{x:"right"===a?-n:l[0]+n,y:l[1]/2,text:u.text,verticalAlign:"middle",align:a,font:o,fill:r,opacity:"outOfRange"===p?.5:1}}))}t.add(c)}),this),c&&this._renderEndsText(t,c[1],l,h,a),ro(e.get("orient"),t,e.get("itemGap")),this.renderBackgroun
1d(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:BG(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return zG(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,o){if(e){var r=new Xs.Z,a=this.visualMapModel.textStyleModel;r.add(new Bt.ZP({style:bn(a,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e})})),t.add(r)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=s.UI(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return("horizontal"===i?o:!o)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(gc(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var o=s.d9(n.selected),r=e.getSelectedMapKey(t);"single"===i||!0===i?(o[r]=!0,s.S6(o,(function(t,e){o[e]=e===r}))):o[r]=!o[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(EG),pW=dW;function fW(t){t.registerComponentModel(hW),t.registerComponentView(pW),aW(t)}function gW(t){ud(sW),ud(fW)}var yW={label:{enabled:!0},decal:{show:!1}},vW=ut(),mW={};function xW(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=s.d9(yW);s.TS(i.label,t.getLocaleModel().get("aria"),!1),s.TS(n.option,i,!1),o(),r()}function o(){var e=n.getModel("decal"),i=e.get("show");if(i){var o=s.kW();t.eachSeries((function(t){if(!t.isColorBySeries()){var e=o.get(t.type);e||(e={},o.set(t.type,e)),vW(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(s.mf(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=jo(e.ecModel,e.name,mW,t.getSeriesCount()),o=n.getVisual("decal");n.setVisual("decal",c(o,i))}else{var r=e.getRawData(),a={},l=vW(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var u=r.count();r.each((function(t){var i=a[t],o=r.getName(t)||t+"",s=jo(e.ecModel,o,l,u),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(h,s))}))}}function c(t,e){var n=t?s.l7(s.l7({},e),t):e;return n.dirty=!0,n}}))}}function r(){var i=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=s.ce(o.option,i),o.get("enabled")){var r=e.getZr().dom;if(o.get("description"))r.setAttribute("aria-label",o.get("description"));else{var c,h=t.getSeriesCount(),d=o.get(["data","maxCount"])||10,p=o.get(["series","maxCount"])||10,f=Math.min(h,p);if(!(h<1)){var g=l();if(g){var y=o.get(["general","withTitle"]);c=a(y,{title:g})}else c=o.get(["general","withoutTitle"]);var v=[],m=h>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);c+=a(m,{seriesCount:h}),t.eachSeries((function(t,e){if(e<f){var n=void 0,i=t.get("name"),r=i?"withName":"withoutName";n=h>1?o.get(["series","multiple",r]):o.get(["series","single",r]),n=a(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:u(t.subType)});var s=t.getData();if(s.count()>d){var l=o.get(["data","partialData"]);n+=a(l,{displayCnt:d})}else n+=o.get(["data","allData"]);for(var c=o.get(["data","separator","middle"]),p=o.get(["data","separator","end"]),g=[],y=0;y<s.count();y++)if(y<d){var m=s.getName(y),x=s.getValues(y),_=o.get(["data",m?"withName":"withoutName"]);g.push(a(_,{name:m,value:x.join(c)}))}n+=g.join(c)+p,v.push(n)}}));var x=o.getModel(["series","multiple","separator"]),_=x.get("middle"),S=x.get("end");c+=v.join(_)+S,r.setAttribute("aria-label",c)}}}}function a(t,e){if(!s.HD(t))return t;var n=t;return s.S6(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function l(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}function u(e){return t.getLocaleModel().get(["series","typeNames"])[e]||"自定义图"}}function _W(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},s.S6(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}function SW(t){t.registerPreprocessor(_W),t.registerVisual(t.PRIORITY.VISUAL.ARIA,xW)}var bW={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},wW=function(){function t(t){var e=this._condVal=(0,s.HD)(t)?new RegExp(t):(0,s.Kj)(t)?t:null;if(null==e){var n="";0,Ca(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return(0,s.HD)(e)?this._condVal.test(t):!!(0,s.hj)(e)&&this._condVal.test(t+"")},t}(),MW=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),IW=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),TW=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),DW=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),CW=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,o=0;o<this.subCondList.length;o++)if(!this.subCondList[o].evaluate(t?i:n))return!1;return!0},t}();function AW(t,e){if(!0===t||!1===t){var n=new MW;return n.value=t,n}var i="";return NW(t)||Ca(i),t.and?kW("and",t,e):t.or?kW("or",t,e):t.not?LW(t,e):PW(t,e)}function kW(t,e,n){var i=e[t],o="";(0,s.kJ)(i)||Ca(o),i.length||Ca(o);var r="and"===t?new IW:new TW;return r.children=(0,s.UI)(i,(function(t){return AW(t,n)}
1)),r.children.length||Ca(o),r}function LW(t,e){var n=t.not,i="";NW(n)||Ca(i);var o=new DW;return o.child=AW(n,e),o.child||Ca(i),o}function PW(t,e){for(var n="",i=e.prepareGetValue(t),o=[],r=(0,s.XP)(t),a=t.parser,l=a?La(a):null,u=0;u<r.length;u++){var c=r[u];if("parser"!==c&&!e.valueGetterAttrMap.get(c)){var h=(0,s.RI)(bW,c)?bW[c]:c,d=t[c],p=l?l(d):d,f=Ea(h,p)||"reg"===h&&new wW(p);f||Ca(n),o.push(f)}}o.length||Ca(n);var g=new CW;return g.valueGetterParam=i,g.valueParser=l,g.getValue=e.getValue,g.subCondList=o,g}function NW(t){return(0,s.Kn)(t)&&!(0,s.zG)(t)}var RW=function(){function t(t,e){this._cond=AW(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function OW(t,e){return new RW(t,e)}var EW={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,i=OW(t.config,{valueGetterAttrMap:(0,s.kW)({dimension:!0}),prepareGetValue:function(t){var e="",i=t.dimension;(0,s.RI)(t,"dimension")||Ca(e);var o=n.getDimensionInfo(i);return o||Ca(e),{dimIdx:o.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),o=[],r=0,a=n.count();r<a;r++)e=n.getRawDataItem(r),i.evaluate()&&o.push(e);return{data:o}}};var VW={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",o=G(n);o.length||Ca(i);var r=[];(0,s.S6)(o,(function(t){var n=t.dimension,o=t.order,a=t.parser,s=t.incomparable;if(null==n&&Ca(i),"asc"!==o&&"desc"!==o&&Ca(i),s&&"min"!==s&&"max"!==s){var l="";0,Ca(l)}if("asc"!==o&&"desc"!==o){var u="";0,Ca(u)}var c=e.getDimensionInfo(n);c||Ca(i);var h=a?La(a):null;a&&!h&&Ca(i),r.push({dimIdx:c.index,parser:h,comparator:new Ra(o,s)})}));var a=e.sourceFormat;a!==Mo&&a!==Io&&Ca(i);for(var l=[],u=0,c=e.count();u<c;u++)l.push(e.getRawDataItem(u));return l.sort((function(t,n){for(var i=0;i<r.length;i++){var o=r[i],a=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var l=o.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:l}}};function zW(t){t.registerTransform(EW),t.registerTransform(VW)}var BW=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return(0,r.ZT)(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new ss(this),ls(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),ls(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ao},e}(mo),ZW=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return(0,r.ZT)(e,t),e.type="dataset",e}(Js);function GW(t){t.registerComponentModel(BW),t.registerComponentView(ZW)}var WW=n(62313);function FW(t){return(0,s.kJ)(t[0])}function HW(t,e){for(var n=[],i=t.length,o=0;o<i;o++)n.push({one:t[o],many:[]});for(o=0;o<e.length;o++){var r=e[o].length,a=void 0;for(a=0;a<r;a++)n[a%i].many.push(e[o][a])}var s=0;for(o=i-1;o>=0;o--)if(!n[o].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}r=l.length;var u=Math.ceil(r/2);n[o].many=l.slice(u,r),n[s].many=l.slice(0,u),s++}return n}var UW={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var o=(0,Ks.U5)(t.path);o.setStyle("opacity",n),e.push(o)}return e},split:null};function XW(t,e,n,i,o,r){if(t.length&&e.length){var a=sn("update",i,o);if(a&&a.duration>0){var l,u,c=i.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},a);FW(t)&&(l=t,u=e),FW(e)&&(l=e,u=t);for(var d=l?l===t:t.length>e.length,p=l?HW(u,l):HW(d?e:t,[d?t:e]),f=0,g=0;g<p.length;g++)f+=p[g].many.length;var y=0;for(g=0;g<p.length;g++)v(p[g],d,y,f),y+=p[g].many.length}}function v(t,e,i,o,a){var l=t.many,u=t.one;if(1!==l.length||a)for(var d=(0,s.ce)({dividePath:UW[n],individualDelay:c&&function(t,e,n,r){return c(t+i,o)}},h),p=e?(0,WW.a4)(l,u,d):(0,WW.nY)(u,l,d),f=p.fromIndividuals,g=p.toIndividuals,y=f.length,m=0;m<y;m++){S=c?(0,s.ce)({delay:c(m,y)},h):h;r(f[m],g[m],e?l[m]:t.one,e?t.one:l[m],S)}else{var x=e?l[0]:u,_=e?u:l[0];if((0,WW.j)(x))v({many:[x],one:_},!0,i,o,!0);else{var S=c?(0,s.ce)({delay:c(i,o)},h):h;(0,WW.xQ)(x,_,S),r(x,_,x,_,S)}}}}function YW(t){if(!t)return[];if((0,s.kJ)(t)){for(var e=[],n=0;n<t.length;n++)e.push(YW(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof Ht.ZP&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}var JW=1e4,jW=ut();function KW(t){for(var e=t.dimensions,n=0;n<e.length;n++){var i=t.getDimensionInfo(e[n]);if(i&&0===i.otherDims.itemGroupId)return e[n]}}function qW(t){var e=[];return(0,s.S6)(t,(function(t){var n=t.data;if(!(n.count()>JW))for(var i=n.getIndices(),o=KW(n),r=0;r<i.length;r++)e.push({dataGroupId:t.dataGroupId,data:n,dim:t.dim||o,divide:t.divide,dataIndex:r})})),e}function $W(t,e,n){t.traverse((function(t){t instanceof Ht.ZP&&cn(t,{style:{opacity:0}
1},e,{dataIndex:n,isFrom:!0})}))}function QW(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function tF(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function eF(t,e,n){var i=sn("update",n,e);i&&t.traverse((function(t){if(t instanceof H_.ZP){var e=yn(t);e&&t.animateFrom({style:e},i)}}))}function nF(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var o=t[i],r=e[i];if(o.data.getId(o.dataIndex)!==r.data.getId(r.dataIndex))return!1}return!0}function iF(t,e,n){var i=qW(t),o=qW(e);function r(t,e,n,i,o){(n||t)&&e.animateFrom({style:n&&n!==t?(0,s.l7)((0,s.l7)({},n.style),t.style):t.style},o)}function a(t){for(var e=0;e<t.length;e++)if(t[e].dim)return t[e].dim}var l=a(i),u=a(o),c=!1;function h(t,e){return function(n){var i=n.data,o=n.dataIndex;if(e)return i.getId(o);var r=n.dataGroupId,a=t?l||u:u||l,s=a&&i.getDimensionInfo(a),c=s&&s.ordinalMeta;if(s){var h=i.get(s.name,o);return c&&c.categories[h]||h+""}var d=i.getRawDataItem(o);return d&&d.groupId?d.groupId+"":r||i.getId(o)}}var d=nF(i,o),p={};if(!d)for(var f=0;f<o.length;f++){var g=o[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function v(t,e){var n=i[e],a=o[t],s=a.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=a.data.getItemGraphicEl(a.dataIndex);l!==u?l&&p[l.id]||u&&(tF(u),l?(tF(l),QW(l),c=!0,XW(YW(l),YW(u),a.divide,s,t,r)):$W(u,s,t)):u&&eF(u,a.dataIndex,s)}new sp(i,o,h(!0,d),h(!1,d),null,"multiple").update(v).updateManyToOne((function(t,e){var n=o[t],a=n.data,l=a.hostModel,u=a.getItemGraphicEl(n.dataIndex),h=(0,s.hX)((0,s.UI)(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==u&&!p[t.id]}));u&&(tF(u),h.length?((0,s.S6)(h,(function(t){tF(t),QW(t)})),c=!0,XW(YW(h),YW(u),n.divide,l,t,r)):$W(u,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=i[e],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!p[a.id]){var l=(0,s.hX)((0,s.UI)(t,(function(t){return o[t].data.getItemGraphicEl(o[t].dataIndex)})),(function(t){return t&&t!==a})),u=o[t[0]].data.hostModel;l.length&&((0,s.S6)(l,(function(t){return tF(t)})),a?(tF(a),QW(a),c=!0,XW(YW(a),YW(l),n.divide,u,t[0],r)):(0,s.S6)(l,(function(e){return $W(e,u,t[0])})))}})).updateManyToMany((function(t,e){new sp(e,t,(function(t){return i[t].data.getId(i[t].dataIndex)}),(function(t){return o[t].data.getId(o[t].dataIndex)})).update((function(n,i){v(t[n],e[i])})).execute()})).execute(),c&&(0,s.S6)(e,(function(t){var e=t.data,i=e.hostModel,o=i&&n.getViewOfSeriesModel(i),r=sn("update",i,0);o&&i.isAnimationEnabled()&&r&&r.duration>0&&o.group.traverse((function(t){t instanceof Ht.ZP&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)}))}))}function oF(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function rF(t){return(0,s.kJ)(t)?t.sort().join(","):t}function aF(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function sF(t,e){var n=(0,s.kW)(),i=(0,s.kW)(),o=(0,s.kW)();return(0,s.S6)(t.oldSeries,(function(e,n){var r=t.oldDataGroupIds[n],a=t.oldData[n],l=oF(e),u=rF(l);i.set(u,{dataGroupId:r,data:a}),(0,s.kJ)(l)&&(0,s.S6)(l,(function(t){o.set(t,{key:u,dataGroupId:r,data:a})}))})),(0,s.S6)(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),r=t.getData(),a=oF(t),l=rF(a),u=i.get(l);if(u)n.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:aF(u.data),data:u.data}],newSeries:[{dataGroupId:e,divide:aF(r),data:r}]});else if((0,s.kJ)(a)){0;var c=[];(0,s.S6)(a,(function(t){var e=i.get(t);e.data&&c.push({dataGroupId:e.dataGroupId,divide:aF(e.data),data:e.data})})),c.length&&n.set(l,{oldSeries:c,newSeries:[{dataGroupId:e,data:r,divide:aF(r)}]})}else{var h=o.get(a);if(h){var d=n.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:aF(h.data)}],newSeries:[]},n.set(h.key,d)),d.newSeries.push({dataGroupId:e,data:r,divide:aF(r)})}}}})),n}function lF(t,e){for(var n=0;n<t.length;n++){var i=null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id;if(i)return n}}function uF(t,e,n,i){var o=[],r=[];(0,s.S6)(G(t.from),(function(t){var n=lF(e.oldSeries,t);n>=0&&o.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:aF(e.oldData[n]),dim:t.dimension})}
1)),(0,s.S6)(G(t.to),(function(t){var i=lF(n.updatedSeries,t);if(i>=0){var o=n.updatedSeries[i].getData();r.push({dataGroupId:e.oldDataGroupIds[i],data:o,divide:aF(o),dim:t.dimension})}})),o.length>0&&r.length>0&&iF(o,r,i)}function cF(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){(0,s.S6)(G(n.seriesTransition),(function(t){(0,s.S6)(G(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][Os]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var i=jW(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var o=n.seriesTransition;if(o)(0,s.S6)(G(o),(function(t){uF(t,i,n,e)}));else{var r=sF(i,n);(0,s.S6)(r.keys(),(function(t){var n=r.get(t);iF(n.oldSeries,n.newSeries,e)}))}(0,s.S6)(n.updatedSeries,(function(t){t[Os]&&(t[Os]=!1)}))}for(var a=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],h=0;h<a.length;h++){var d=a[h].getData();d.count()<JW&&(l.push(a[h]),u.push(a[h].get("dataGroupId")),c.push(d))}}))}ud([ep]),ud([ip]),ud([og,ny,Iy,Ix,Xx,OS,Rb,lM,DI,VI,JI,QD,PC,KC,MA,PA,ik,fk,Hk,tL,xL,KP]),ud(JN),ud(ZR),ud(RS),ud(dO),ud($D),ud(bO),ud(ZO),ud(MV),ud(az),ud(YN),ud(Zz),ud(Fz),ud(dB),ud(zB),ud(KB),ud(uZ),ud(zZ),ud(xG),ud(eG),ud(mG),ud(gW),ud(sW),ud(fW),ud(SW),ud(zW),ud(GW),ud(cF),ud(Qd)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.